1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for REDUCE from SourceForge. 4# 5# Report bugs to <acn1@cam.ac.uk>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13# 14# The REDUCE project 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139# Use a proper internal environment variable to ensure we don't fall 140 # into an infinite loop, continuously re-executing ourselves. 141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 142 _as_can_reexec=no; export _as_can_reexec; 143 # We cannot yet assume a decent shell, so we have to provide a 144# neutralization value for shells without unset; and this also 145# works around shells that cannot unset nonexistent variables. 146# Preserve -v and -x to the replacement shell. 147BASH_ENV=/dev/null 148ENV=/dev/null 149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 150case $- in # (((( 151 *v*x* | *x*v* ) as_opts=-vx ;; 152 *v* ) as_opts=-v ;; 153 *x* ) as_opts=-x ;; 154 * ) as_opts= ;; 155esac 156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 157# Admittedly, this is quite paranoid, since all the known shells bail 158# out after a failed `exec'. 159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 160as_fn_exit 255 161 fi 162 # We don't want this to propagate to other subprocesses. 163 { _as_can_reexec=; unset _as_can_reexec;} 164if test "x$CONFIG_SHELL" = x; then 165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 166 emulate sh 167 NULLCMD=: 168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 169 # is contrary to our usage. Disable this feature. 170 alias -g '\${1+\"\$@\"}'='\"\$@\"' 171 setopt NO_GLOB_SUBST 172else 173 case \`(set -o) 2>/dev/null\` in #( 174 *posix*) : 175 set -o posix ;; #( 176 *) : 177 ;; 178esac 179fi 180" 181 as_required="as_fn_return () { (exit \$1); } 182as_fn_success () { as_fn_return 0; } 183as_fn_failure () { as_fn_return 1; } 184as_fn_ret_success () { return 0; } 185as_fn_ret_failure () { return 1; } 186 187exitcode=0 188as_fn_success || { exitcode=1; echo as_fn_success failed.; } 189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 193 194else 195 exitcode=1; echo positional parameters were not saved. 196fi 197test x\$exitcode = x0 || exit 1 198test -x / || exit 1" 199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 203 204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 208 PATH=/empty FPATH=/empty; export PATH FPATH 209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 211test \$(( 1 + 1 )) = 2 || exit 1" 212 if (eval "$as_required") 2>/dev/null; then : 213 as_have_required=yes 214else 215 as_have_required=no 216fi 217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 218 219else 220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 221as_found=false 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 as_found=: 227 case $as_dir in #( 228 /*) 229 for as_base in sh bash ksh sh5; do 230 # Try only shells that exist, to save several forks. 231 as_shell=$as_dir/$as_base 232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 CONFIG_SHELL=$as_shell as_have_required=yes 235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 236 break 2 237fi 238fi 239 done;; 240 esac 241 as_found=false 242done 243$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 245 CONFIG_SHELL=$SHELL as_have_required=yes 246fi; } 247IFS=$as_save_IFS 248 249 250 if test "x$CONFIG_SHELL" != x; then : 251 export CONFIG_SHELL 252 # We cannot yet assume a decent shell, so we have to provide a 253# neutralization value for shells without unset; and this also 254# works around shells that cannot unset nonexistent variables. 255# Preserve -v and -x to the replacement shell. 256BASH_ENV=/dev/null 257ENV=/dev/null 258(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 259case $- in # (((( 260 *v*x* | *x*v* ) as_opts=-vx ;; 261 *v* ) as_opts=-v ;; 262 *x* ) as_opts=-x ;; 263 * ) as_opts= ;; 264esac 265exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 266# Admittedly, this is quite paranoid, since all the known shells bail 267# out after a failed `exec'. 268$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 269exit 255 270fi 271 272 if test x$as_have_required = xno; then : 273 $as_echo "$0: This script requires a shell more modern than all" 274 $as_echo "$0: the shells that I found on your system." 275 if test x${ZSH_VERSION+set} = xset ; then 276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 277 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 278 else 279 $as_echo "$0: Please tell bug-autoconf@gnu.org and acn1@cam.ac.uk 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307# as_fn_set_status STATUS 308# ----------------------- 309# Set $? to STATUS, without forking. 310as_fn_set_status () 311{ 312 return $1 313} # as_fn_set_status 314 315# as_fn_exit STATUS 316# ----------------- 317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 318as_fn_exit () 319{ 320 set +e 321 as_fn_set_status $1 322 exit $1 323} # as_fn_exit 324 325# as_fn_mkdir_p 326# ------------- 327# Create "$as_dir" as a directory, including parents if necessary. 328as_fn_mkdir_p () 329{ 330 331 case $as_dir in #( 332 -*) as_dir=./$as_dir;; 333 esac 334 test -d "$as_dir" || eval $as_mkdir_p || { 335 as_dirs= 336 while :; do 337 case $as_dir in #( 338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 339 *) as_qdir=$as_dir;; 340 esac 341 as_dirs="'$as_qdir' $as_dirs" 342 as_dir=`$as_dirname -- "$as_dir" || 343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 344 X"$as_dir" : 'X\(//\)[^/]' \| \ 345 X"$as_dir" : 'X\(//\)$' \| \ 346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 347$as_echo X"$as_dir" | 348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)[^/].*/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\/\)$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\).*/{ 361 s//\1/ 362 q 363 } 364 s/.*/./; q'` 365 test -d "$as_dir" && break 366 done 367 test -z "$as_dirs" || eval "mkdir $as_dirs" 368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 369 370 371} # as_fn_mkdir_p 372 373# as_fn_executable_p FILE 374# ----------------------- 375# Test if FILE is an executable regular file. 376as_fn_executable_p () 377{ 378 test -f "$1" && test -x "$1" 379} # as_fn_executable_p 380# as_fn_append VAR VALUE 381# ---------------------- 382# Append the text in VALUE to the end of the definition contained in VAR. Take 383# advantage of any shell optimizations that allow amortized linear growth over 384# repeated appends, instead of the typical quadratic growth present in naive 385# implementations. 386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 387 eval 'as_fn_append () 388 { 389 eval $1+=\$2 390 }' 391else 392 as_fn_append () 393 { 394 eval $1=\$$1\$2 395 } 396fi # as_fn_append 397 398# as_fn_arith ARG... 399# ------------------ 400# Perform arithmetic evaluation on the ARGs, and store the result in the 401# global $as_val. Take advantage of shells that can avoid forks. The arguments 402# must be portable across $(()) and expr. 403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408else 409 as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } 413fi # as_fn_arith 414 415 416# as_fn_error STATUS ERROR [LINENO LOG_FD] 417# ---------------------------------------- 418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 420# script with STATUS, using 1 if that was 0. 421as_fn_error () 422{ 423 as_status=$1; test $as_status -eq 0 && as_status=1 424 if test "$4"; then 425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 427 fi 428 $as_echo "$as_me: error: $2" >&2 429 as_fn_exit $as_status 430} # as_fn_error 431 432if expr a : '\(a\)' >/dev/null 2>&1 && 433 test "X`expr 00001 : '.*\(...\)'`" = X001; then 434 as_expr=expr 435else 436 as_expr=false 437fi 438 439if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 440 as_basename=basename 441else 442 as_basename=false 443fi 444 445if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 446 as_dirname=dirname 447else 448 as_dirname=false 449fi 450 451as_me=`$as_basename -- "$0" || 452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 453 X"$0" : 'X\(//\)$' \| \ 454 X"$0" : 'X\(/\)' \| . 2>/dev/null || 455$as_echo X/"$0" | 456 sed '/^.*\/\([^/][^/]*\)\/*$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\/\)$/{ 461 s//\1/ 462 q 463 } 464 /^X\/\(\/\).*/{ 465 s//\1/ 466 q 467 } 468 s/.*/./; q'` 469 470# Avoid depending upon Character Ranges. 471as_cr_letters='abcdefghijklmnopqrstuvwxyz' 472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 473as_cr_Letters=$as_cr_letters$as_cr_LETTERS 474as_cr_digits='0123456789' 475as_cr_alnum=$as_cr_Letters$as_cr_digits 476 477 478 as_lineno_1=$LINENO as_lineno_1a=$LINENO 479 as_lineno_2=$LINENO as_lineno_2a=$LINENO 480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 483 sed -n ' 484 p 485 /[$]LINENO/= 486 ' <$as_myself | 487 sed ' 488 s/[$]LINENO.*/&-/ 489 t lineno 490 b 491 :lineno 492 N 493 :loop 494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 495 t loop 496 s/-\n.*// 497 ' >$as_me.lineno && 498 chmod +x "$as_me.lineno" || 499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 500 501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 502 # already done that, so ensure we don't try to do so again and fall 503 # in an infinite loop. This has already happened in practice. 504 _as_can_reexec=no; export _as_can_reexec 505 # Don't try to exec as it changes $[0], causing all sort of problems 506 # (the dirname of $[0] is not the place where we might find the 507 # original and so on. Autoconf is especially sensitive to this). 508 . "./$as_me.lineno" 509 # Exit status is that of the last command. 510 exit 511} 512 513ECHO_C= ECHO_N= ECHO_T= 514case `echo -n x` in #((((( 515-n*) 516 case `echo 'xy\c'` in 517 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 518 xy) ECHO_C='\c';; 519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 520 ECHO_T=' ';; 521 esac;; 522*) 523 ECHO_N='-n';; 524esac 525 526rm -f conf$$ conf$$.exe conf$$.file 527if test -d conf$$.dir; then 528 rm -f conf$$.dir/conf$$.file 529else 530 rm -f conf$$.dir 531 mkdir conf$$.dir 2>/dev/null 532fi 533if (echo >conf$$.file) 2>/dev/null; then 534 if ln -s conf$$.file conf$$ 2>/dev/null; then 535 as_ln_s='ln -s' 536 # ... but there are two gotchas: 537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 539 # In both cases, we have to default to `cp -pR'. 540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 541 as_ln_s='cp -pR' 542 elif ln conf$$.file conf$$ 2>/dev/null; then 543 as_ln_s=ln 544 else 545 as_ln_s='cp -pR' 546 fi 547else 548 as_ln_s='cp -pR' 549fi 550rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 551rmdir conf$$.dir 2>/dev/null 552 553if mkdir -p . 2>/dev/null; then 554 as_mkdir_p='mkdir -p "$as_dir"' 555else 556 test -d ./-p && rmdir ./-p 557 as_mkdir_p=false 558fi 559 560as_test_x='test -x' 561as_executable_p=as_fn_executable_p 562 563# Sed expression to map a string onto a valid CPP name. 564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 565 566# Sed expression to map a string onto a valid variable name. 567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 568 569SHELL=${CONFIG_SHELL-/bin/sh} 570 571 572test -n "$DJDIR" || exec 7<&0 </dev/null 573exec 6>&1 574 575# Name of the host. 576# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 577# so uname gets run too. 578ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 579 580# 581# Initializations. 582# 583ac_default_prefix=/usr/local 584ac_clean_files= 585ac_config_libobj_dir=. 586LIBOBJS= 587cross_compiling=no 588subdirs= 589MFLAGS= 590MAKEFLAGS= 591 592# Identity of this package. 593PACKAGE_NAME='REDUCE' 594PACKAGE_TARNAME='reduce' 595PACKAGE_VERSION='from SourceForge' 596PACKAGE_STRING='REDUCE from SourceForge' 597PACKAGE_BUGREPORT='acn1@cam.ac.uk' 598PACKAGE_URL='' 599 600ac_unique_file="scripts/make.sh" 601# Factoring default headers for most tests. 602ac_includes_default="\ 603#include <stdio.h> 604#ifdef HAVE_SYS_TYPES_H 605# include <sys/types.h> 606#endif 607#ifdef HAVE_SYS_STAT_H 608# include <sys/stat.h> 609#endif 610#ifdef STDC_HEADERS 611# include <stdlib.h> 612# include <stddef.h> 613#else 614# ifdef HAVE_STDLIB_H 615# include <stdlib.h> 616# endif 617#endif 618#ifdef HAVE_STRING_H 619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 620# include <memory.h> 621# endif 622# include <string.h> 623#endif 624#ifdef HAVE_STRINGS_H 625# include <strings.h> 626#endif 627#ifdef HAVE_INTTYPES_H 628# include <inttypes.h> 629#endif 630#ifdef HAVE_STDINT_H 631# include <stdint.h> 632#endif 633#ifdef HAVE_UNISTD_H 634# include <unistd.h> 635#endif" 636 637ac_subst_vars='am__EXEEXT_FALSE 638am__EXEEXT_TRUE 639LTLIBOBJS 640LIBOBJS 641crlibm_FALSE 642crlibm_TRUE 643wx_FALSE 644wx_TRUE 645fox_FALSE 646fox_TRUE 647cslpsl_FALSE 648cslpsl_TRUE 649psl_FALSE 650psl_TRUE 651csl_FALSE 652csl_TRUE 653CXXCPP 654am__fastdepCXX_FALSE 655am__fastdepCXX_TRUE 656CXXDEPMODE 657ac_ct_CXX 658CXXFLAGS 659CXX 660CCACHE 661CPP 662LT_SYS_LIBRARY_PATH 663OTOOL64 664OTOOL 665LIPO 666NMEDIT 667DSYMUTIL 668MANIFEST_TOOL 669RANLIB 670ac_ct_AR 671AR 672DLLTOOL 673OBJDUMP 674LN_S 675NM 676ac_ct_DUMPBIN 677DUMPBIN 678LD 679FGREP 680EGREP 681GREP 682SED 683am__fastdepCC_FALSE 684am__fastdepCC_TRUE 685CCDEPMODE 686am__nodep 687AMDEPBACKSLASH 688AMDEP_FALSE 689AMDEP_TRUE 690am__quote 691am__include 692DEPDIR 693OBJEXT 694EXEEXT 695ac_ct_CC 696CPPFLAGS 697LDFLAGS 698CFLAGS 699CC 700LIBTOOL 701AM_BACKSLASH 702AM_DEFAULT_VERBOSITY 703AM_DEFAULT_V 704AM_V 705am__untar 706am__tar 707AMTAR 708am__leading_dot 709SET_MAKE 710AWK 711mkdir_p 712MKDIR_P 713INSTALL_STRIP_PROGRAM 714STRIP 715install_sh 716MAKEINFO 717AUTOHEADER 718AUTOMAKE 719AUTOCONF 720ACLOCAL 721VERSION 722PACKAGE 723CYGPATH_W 724am__isrc 725INSTALL_DATA 726INSTALL_SCRIPT 727INSTALL_PROGRAM 728host_os 729host_vendor 730host_cpu 731host 732build_os 733build_vendor 734build_cpu 735build 736target_alias 737host_alias 738build_alias 739LIBS 740ECHO_T 741ECHO_N 742ECHO_C 743DEFS 744mandir 745localedir 746libdir 747psdir 748pdfdir 749dvidir 750htmldir 751infodir 752docdir 753oldincludedir 754includedir 755runstatedir 756localstatedir 757sharedstatedir 758sysconfdir 759datadir 760datarootdir 761libexecdir 762sbindir 763bindir 764program_transform_name 765prefix 766exec_prefix 767PACKAGE_URL 768PACKAGE_BUGREPORT 769PACKAGE_STRING 770PACKAGE_VERSION 771PACKAGE_TARNAME 772PACKAGE_NAME 773PATH_SEPARATOR 774SHELL' 775ac_subst_files='' 776ac_user_opts=' 777enable_option_checking 778with_autogen 779with_csl 780with_psl 781with_gui 782with_wx 783with_fox 784with_build 785with_pslbuild 786with_cygbuild 787with_force 788with_cygwin 789with_xft 790with_xim 791enable_debug 792enable_conservative 793enable_test 794enable_experiment 795with_arithlib 796enable_static 797with_sequential 798with_windows_layout 799enable_silent_rules 800enable_shared 801with_pic 802enable_fast_install 803with_aix_soname 804enable_dependency_tracking 805with_gnu_ld 806with_sysroot 807enable_libtool_lock 808with_ccache 809' 810 ac_precious_vars='build_alias 811host_alias 812target_alias 813CC 814CFLAGS 815LDFLAGS 816LIBS 817CPPFLAGS 818LT_SYS_LIBRARY_PATH 819CPP 820CXX 821CXXFLAGS 822CCC 823CXXCPP' 824 825 826# Initialize some variables set by options. 827ac_init_help= 828ac_init_version=false 829ac_unrecognized_opts= 830ac_unrecognized_sep= 831# The variables have the same names as the options, with 832# dashes changed to underlines. 833cache_file=/dev/null 834exec_prefix=NONE 835no_create= 836no_recursion= 837prefix=NONE 838program_prefix=NONE 839program_suffix=NONE 840program_transform_name=s,x,x, 841silent= 842site= 843srcdir= 844verbose= 845x_includes=NONE 846x_libraries=NONE 847 848# Installation directory options. 849# These are left unexpanded so users can "make install exec_prefix=/foo" 850# and all the variables that are supposed to be based on exec_prefix 851# by default will actually change. 852# Use braces instead of parens because sh, perl, etc. also accept them. 853# (The list follows the same order as the GNU Coding Standards.) 854bindir='${exec_prefix}/bin' 855sbindir='${exec_prefix}/sbin' 856libexecdir='${exec_prefix}/libexec' 857datarootdir='${prefix}/share' 858datadir='${datarootdir}' 859sysconfdir='${prefix}/etc' 860sharedstatedir='${prefix}/com' 861localstatedir='${prefix}/var' 862runstatedir='${localstatedir}/run' 863includedir='${prefix}/include' 864oldincludedir='/usr/include' 865docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 866infodir='${datarootdir}/info' 867htmldir='${docdir}' 868dvidir='${docdir}' 869pdfdir='${docdir}' 870psdir='${docdir}' 871libdir='${exec_prefix}/lib' 872localedir='${datarootdir}/locale' 873mandir='${datarootdir}/man' 874 875ac_prev= 876ac_dashdash= 877for ac_option 878do 879 # If the previous option needs an argument, assign it. 880 if test -n "$ac_prev"; then 881 eval $ac_prev=\$ac_option 882 ac_prev= 883 continue 884 fi 885 886 case $ac_option in 887 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 888 *=) ac_optarg= ;; 889 *) ac_optarg=yes ;; 890 esac 891 892 # Accept the important Cygnus configure options, so we can diagnose typos. 893 894 case $ac_dashdash$ac_option in 895 --) 896 ac_dashdash=yes ;; 897 898 -bindir | --bindir | --bindi | --bind | --bin | --bi) 899 ac_prev=bindir ;; 900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 901 bindir=$ac_optarg ;; 902 903 -build | --build | --buil | --bui | --bu) 904 ac_prev=build_alias ;; 905 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 906 build_alias=$ac_optarg ;; 907 908 -cache-file | --cache-file | --cache-fil | --cache-fi \ 909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 910 ac_prev=cache_file ;; 911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 913 cache_file=$ac_optarg ;; 914 915 --config-cache | -C) 916 cache_file=config.cache ;; 917 918 -datadir | --datadir | --datadi | --datad) 919 ac_prev=datadir ;; 920 -datadir=* | --datadir=* | --datadi=* | --datad=*) 921 datadir=$ac_optarg ;; 922 923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 924 | --dataroo | --dataro | --datar) 925 ac_prev=datarootdir ;; 926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 928 datarootdir=$ac_optarg ;; 929 930 -disable-* | --disable-*) 931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 932 # Reject names that are not valid shell variable names. 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 934 as_fn_error $? "invalid feature name: $ac_useropt" 935 ac_useropt_orig=$ac_useropt 936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 937 case $ac_user_opts in 938 *" 939"enable_$ac_useropt" 940"*) ;; 941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 942 ac_unrecognized_sep=', ';; 943 esac 944 eval enable_$ac_useropt=no ;; 945 946 -docdir | --docdir | --docdi | --doc | --do) 947 ac_prev=docdir ;; 948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 949 docdir=$ac_optarg ;; 950 951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 952 ac_prev=dvidir ;; 953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 954 dvidir=$ac_optarg ;; 955 956 -enable-* | --enable-*) 957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 958 # Reject names that are not valid shell variable names. 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 960 as_fn_error $? "invalid feature name: $ac_useropt" 961 ac_useropt_orig=$ac_useropt 962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 963 case $ac_user_opts in 964 *" 965"enable_$ac_useropt" 966"*) ;; 967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 968 ac_unrecognized_sep=', ';; 969 esac 970 eval enable_$ac_useropt=\$ac_optarg ;; 971 972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 974 | --exec | --exe | --ex) 975 ac_prev=exec_prefix ;; 976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 978 | --exec=* | --exe=* | --ex=*) 979 exec_prefix=$ac_optarg ;; 980 981 -gas | --gas | --ga | --g) 982 # Obsolete; use --with-gas. 983 with_gas=yes ;; 984 985 -help | --help | --hel | --he | -h) 986 ac_init_help=long ;; 987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 988 ac_init_help=recursive ;; 989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 990 ac_init_help=short ;; 991 992 -host | --host | --hos | --ho) 993 ac_prev=host_alias ;; 994 -host=* | --host=* | --hos=* | --ho=*) 995 host_alias=$ac_optarg ;; 996 997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 998 ac_prev=htmldir ;; 999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1000 | --ht=*) 1001 htmldir=$ac_optarg ;; 1002 1003 -includedir | --includedir | --includedi | --included | --include \ 1004 | --includ | --inclu | --incl | --inc) 1005 ac_prev=includedir ;; 1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1007 | --includ=* | --inclu=* | --incl=* | --inc=*) 1008 includedir=$ac_optarg ;; 1009 1010 -infodir | --infodir | --infodi | --infod | --info | --inf) 1011 ac_prev=infodir ;; 1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1013 infodir=$ac_optarg ;; 1014 1015 -libdir | --libdir | --libdi | --libd) 1016 ac_prev=libdir ;; 1017 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1018 libdir=$ac_optarg ;; 1019 1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1021 | --libexe | --libex | --libe) 1022 ac_prev=libexecdir ;; 1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1024 | --libexe=* | --libex=* | --libe=*) 1025 libexecdir=$ac_optarg ;; 1026 1027 -localedir | --localedir | --localedi | --localed | --locale) 1028 ac_prev=localedir ;; 1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1030 localedir=$ac_optarg ;; 1031 1032 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1033 | --localstate | --localstat | --localsta | --localst | --locals) 1034 ac_prev=localstatedir ;; 1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1037 localstatedir=$ac_optarg ;; 1038 1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1040 ac_prev=mandir ;; 1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1042 mandir=$ac_optarg ;; 1043 1044 -nfp | --nfp | --nf) 1045 # Obsolete; use --without-fp. 1046 with_fp=no ;; 1047 1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1049 | --no-cr | --no-c | -n) 1050 no_create=yes ;; 1051 1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1054 no_recursion=yes ;; 1055 1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1058 | --oldin | --oldi | --old | --ol | --o) 1059 ac_prev=oldincludedir ;; 1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1063 oldincludedir=$ac_optarg ;; 1064 1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1066 ac_prev=prefix ;; 1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1068 prefix=$ac_optarg ;; 1069 1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1071 | --program-pre | --program-pr | --program-p) 1072 ac_prev=program_prefix ;; 1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1075 program_prefix=$ac_optarg ;; 1076 1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1078 | --program-suf | --program-su | --program-s) 1079 ac_prev=program_suffix ;; 1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1082 program_suffix=$ac_optarg ;; 1083 1084 -program-transform-name | --program-transform-name \ 1085 | --program-transform-nam | --program-transform-na \ 1086 | --program-transform-n | --program-transform- \ 1087 | --program-transform | --program-transfor \ 1088 | --program-transfo | --program-transf \ 1089 | --program-trans | --program-tran \ 1090 | --progr-tra | --program-tr | --program-t) 1091 ac_prev=program_transform_name ;; 1092 -program-transform-name=* | --program-transform-name=* \ 1093 | --program-transform-nam=* | --program-transform-na=* \ 1094 | --program-transform-n=* | --program-transform-=* \ 1095 | --program-transform=* | --program-transfor=* \ 1096 | --program-transfo=* | --program-transf=* \ 1097 | --program-trans=* | --program-tran=* \ 1098 | --progr-tra=* | --program-tr=* | --program-t=*) 1099 program_transform_name=$ac_optarg ;; 1100 1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1102 ac_prev=pdfdir ;; 1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1104 pdfdir=$ac_optarg ;; 1105 1106 -psdir | --psdir | --psdi | --psd | --ps) 1107 ac_prev=psdir ;; 1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1109 psdir=$ac_optarg ;; 1110 1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1112 | -silent | --silent | --silen | --sile | --sil) 1113 silent=yes ;; 1114 1115 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1116 | --runstate | --runstat | --runsta | --runst | --runs \ 1117 | --run | --ru | --r) 1118 ac_prev=runstatedir ;; 1119 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1120 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1121 | --run=* | --ru=* | --r=*) 1122 runstatedir=$ac_optarg ;; 1123 1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1125 ac_prev=sbindir ;; 1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1127 | --sbi=* | --sb=*) 1128 sbindir=$ac_optarg ;; 1129 1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1132 | --sharedst | --shareds | --shared | --share | --shar \ 1133 | --sha | --sh) 1134 ac_prev=sharedstatedir ;; 1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1138 | --sha=* | --sh=*) 1139 sharedstatedir=$ac_optarg ;; 1140 1141 -site | --site | --sit) 1142 ac_prev=site ;; 1143 -site=* | --site=* | --sit=*) 1144 site=$ac_optarg ;; 1145 1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1147 ac_prev=srcdir ;; 1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1149 srcdir=$ac_optarg ;; 1150 1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1152 | --syscon | --sysco | --sysc | --sys | --sy) 1153 ac_prev=sysconfdir ;; 1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1156 sysconfdir=$ac_optarg ;; 1157 1158 -target | --target | --targe | --targ | --tar | --ta | --t) 1159 ac_prev=target_alias ;; 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1161 target_alias=$ac_optarg ;; 1162 1163 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1164 verbose=yes ;; 1165 1166 -version | --version | --versio | --versi | --vers | -V) 1167 ac_init_version=: ;; 1168 1169 -with-* | --with-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=\$ac_optarg ;; 1184 1185 -without-* | --without-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"with_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=no ;; 1200 1201 --x) 1202 # Obsolete; use --with-x. 1203 with_x=yes ;; 1204 1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1206 | --x-incl | --x-inc | --x-in | --x-i) 1207 ac_prev=x_includes ;; 1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1210 x_includes=$ac_optarg ;; 1211 1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1214 ac_prev=x_libraries ;; 1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1217 x_libraries=$ac_optarg ;; 1218 1219 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1220Try \`$0 --help' for more information" 1221 ;; 1222 1223 *=*) 1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1225 # Reject names that are not valid shell variable names. 1226 case $ac_envvar in #( 1227 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1229 esac 1230 eval $ac_envvar=\$ac_optarg 1231 export $ac_envvar ;; 1232 1233 *) 1234 # FIXME: should be removed in autoconf 3.0. 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1239 ;; 1240 1241 esac 1242done 1243 1244if test -n "$ac_prev"; then 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1246 as_fn_error $? "missing argument to $ac_option" 1247fi 1248 1249if test -n "$ac_unrecognized_opts"; then 1250 case $enable_option_checking in 1251 no) ;; 1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1254 esac 1255fi 1256 1257# Check all directory arguments for consistency. 1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1259 datadir sysconfdir sharedstatedir localstatedir includedir \ 1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1261 libdir localedir mandir runstatedir 1262do 1263 eval ac_val=\$$ac_var 1264 # Remove trailing slashes. 1265 case $ac_val in 1266 */ ) 1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1268 eval $ac_var=\$ac_val;; 1269 esac 1270 # Be sure to have absolute directory names. 1271 case $ac_val in 1272 [\\/$]* | ?:[\\/]* ) continue;; 1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1274 esac 1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1276done 1277 1278# There might be people who depend on the old broken behavior: `$host' 1279# used to hold the argument of --host etc. 1280# FIXME: To remove some day. 1281build=$build_alias 1282host=$host_alias 1283target=$target_alias 1284 1285# FIXME: To remove some day. 1286if test "x$host_alias" != x; then 1287 if test "x$build_alias" = x; then 1288 cross_compiling=maybe 1289 elif test "x$build_alias" != "x$host_alias"; then 1290 cross_compiling=yes 1291 fi 1292fi 1293 1294ac_tool_prefix= 1295test -n "$host_alias" && ac_tool_prefix=$host_alias- 1296 1297test "$silent" = yes && exec 6>/dev/null 1298 1299 1300ac_pwd=`pwd` && test -n "$ac_pwd" && 1301ac_ls_di=`ls -di .` && 1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1303 as_fn_error $? "working directory cannot be determined" 1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1305 as_fn_error $? "pwd does not report name of working directory" 1306 1307 1308# Find the source files, if location was not specified. 1309if test -z "$srcdir"; then 1310 ac_srcdir_defaulted=yes 1311 # Try the directory containing this script, then the parent directory. 1312 ac_confdir=`$as_dirname -- "$as_myself" || 1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1314 X"$as_myself" : 'X\(//\)[^/]' \| \ 1315 X"$as_myself" : 'X\(//\)$' \| \ 1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1317$as_echo X"$as_myself" | 1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\/\)[^/].*/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\/\)$/{ 1327 s//\1/ 1328 q 1329 } 1330 /^X\(\/\).*/{ 1331 s//\1/ 1332 q 1333 } 1334 s/.*/./; q'` 1335 srcdir=$ac_confdir 1336 if test ! -r "$srcdir/$ac_unique_file"; then 1337 srcdir=.. 1338 fi 1339else 1340 ac_srcdir_defaulted=no 1341fi 1342if test ! -r "$srcdir/$ac_unique_file"; then 1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1345fi 1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1347ac_abs_confdir=`( 1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1349 pwd)` 1350# When building in place, set srcdir=. 1351if test "$ac_abs_confdir" = "$ac_pwd"; then 1352 srcdir=. 1353fi 1354# Remove unnecessary trailing slashes from srcdir. 1355# Double slashes in file names in object file debugging info 1356# mess up M-x gdb in Emacs. 1357case $srcdir in 1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1359esac 1360for ac_var in $ac_precious_vars; do 1361 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_env_${ac_var}_value=\$${ac_var} 1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1364 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1365done 1366 1367# 1368# Report the --help message. 1369# 1370if test "$ac_init_help" = "long"; then 1371 # Omit some internal or obsolete options to make the list less imposing. 1372 # This message is too long to be a string in the A/UX 3.1 sh. 1373 cat <<_ACEOF 1374\`configure' configures REDUCE from SourceForge to adapt to many kinds of systems. 1375 1376Usage: $0 [OPTION]... [VAR=VALUE]... 1377 1378To assign environment variables (e.g., CC, CFLAGS...), specify them as 1379VAR=VALUE. See below for descriptions of some of the useful variables. 1380 1381Defaults for the options are specified in brackets. 1382 1383Configuration: 1384 -h, --help display this help and exit 1385 --help=short display options specific to this package 1386 --help=recursive display the short help of all the included packages 1387 -V, --version display version information and exit 1388 -q, --quiet, --silent do not print \`checking ...' messages 1389 --cache-file=FILE cache test results in FILE [disabled] 1390 -C, --config-cache alias for \`--cache-file=config.cache' 1391 -n, --no-create do not create output files 1392 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1393 1394Installation directories: 1395 --prefix=PREFIX install architecture-independent files in PREFIX 1396 [$ac_default_prefix] 1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1398 [PREFIX] 1399 1400By default, \`make install' will install all the files in 1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1402an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1403for instance \`--prefix=\$HOME'. 1404 1405For better control, use the options below. 1406 1407Fine tuning of the installation directories: 1408 --bindir=DIR user executables [EPREFIX/bin] 1409 --sbindir=DIR system admin executables [EPREFIX/sbin] 1410 --libexecdir=DIR program executables [EPREFIX/libexec] 1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1414 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1415 --libdir=DIR object code libraries [EPREFIX/lib] 1416 --includedir=DIR C header files [PREFIX/include] 1417 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1420 --infodir=DIR info documentation [DATAROOTDIR/info] 1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1422 --mandir=DIR man documentation [DATAROOTDIR/man] 1423 --docdir=DIR documentation root [DATAROOTDIR/doc/reduce] 1424 --htmldir=DIR html documentation [DOCDIR] 1425 --dvidir=DIR dvi documentation [DOCDIR] 1426 --pdfdir=DIR pdf documentation [DOCDIR] 1427 --psdir=DIR ps documentation [DOCDIR] 1428_ACEOF 1429 1430 cat <<\_ACEOF 1431 1432Program names: 1433 --program-prefix=PREFIX prepend PREFIX to installed program names 1434 --program-suffix=SUFFIX append SUFFIX to installed program names 1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1436 1437System types: 1438 --build=BUILD configure for building on BUILD [guessed] 1439 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1440_ACEOF 1441fi 1442 1443if test -n "$ac_init_help"; then 1444 case $ac_init_help in 1445 short | recursive ) echo "Configuration of REDUCE from SourceForge:";; 1446 esac 1447 cat <<\_ACEOF 1448 1449Optional Features: 1450 --disable-option-checking ignore unrecognized --enable/--with options 1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1453 --enable-debug compile for debugging (CSL only) 1454 --enable-conservative garbage collect option: testing and development use 1455 (CSL only) 1456 --enable-test testing-mode version (CSL only) 1457 --enable-experiment testing-mode version (CSL only) 1458 --enable-static link it all statically (CSL only) 1459 --enable-silent-rules less verbose build output (undo: "make V=1") 1460 --disable-silent-rules verbose build output (undo: "make V=0") 1461 --enable-shared[=PKGS] build shared libraries [default=yes] 1462 --enable-static[=PKGS] build static libraries [default=yes] 1463 --enable-fast-install[=PKGS] 1464 optimize for fast installation [default=yes] 1465 --enable-dependency-tracking 1466 do not reject slow dependency extractors 1467 --disable-dependency-tracking 1468 speeds up one-time build 1469 --disable-libtool-lock avoid locking (might break parallel builds) 1470 1471Optional Packages: 1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1474 --with-autogen Regenerate autoconf file at start 1475 --with-csl Use the CSL Lisp system 1476 --with-psl Use the PSL Lisp system 1477 --with-gui use --without-gui to get a text-only system (CSL 1478 only) 1479 --with-wx enable or disable use of wxWidgets (CSL only) 1480 --with-fox enable or disable use of FOX (CSL only) 1481 --with-build Used internally to control build directory 1482 --with-pslbuild Used internally to control build directory 1483 --with-cygbuild Used internally to control build directory 1484 --with-force Forces refresh of windows varients 1485 --with-cygwin Force use of raw cygwin (CSL only) 1486 --with-xft Can be used to disable use of XFT. Default is yes 1487 (CSL only) 1488 --with-xim Can be used to control use of XIM. Default is yes 1489 (now) (CSL only) 1490 --with-arithlib development of arithlib.hpp support (CSL only) 1491 --with-sequential Avoid parallel configure to make log clearer to read 1492 --with-windows_layout old or new windows layout 1493 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1494 both] 1495 --with-aix-soname=aix|svr4|both 1496 shared library versioning (aka "SONAME") variant to 1497 provide on AIX, [default=aix]. 1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1499 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1500 compiler's sysroot if not specified). 1501 --with-ccache --without-ccache can be used to disable use of 1502 ccache 1503 1504Some influential environment variables: 1505 CC C compiler command 1506 CFLAGS C compiler flags 1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1508 nonstandard directory <lib dir> 1509 LIBS libraries to pass to the linker, e.g. -l<library> 1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1511 you have headers in a nonstandard directory <include dir> 1512 LT_SYS_LIBRARY_PATH 1513 User-defined run-time library search path. 1514 CPP C preprocessor 1515 CXX C++ compiler command 1516 CXXFLAGS C++ compiler flags 1517 CXXCPP C++ preprocessor 1518 1519Use these variables to override the choices made by `configure' or to help 1520it to find libraries and programs with nonstandard names/locations. 1521 1522Report bugs to <acn1@cam.ac.uk>. 1523_ACEOF 1524ac_status=$? 1525fi 1526 1527if test "$ac_init_help" = "recursive"; then 1528 # If there are subdirs, report their specific --help. 1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1530 test -d "$ac_dir" || 1531 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1532 continue 1533 ac_builddir=. 1534 1535case "$ac_dir" in 1536.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1537*) 1538 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1539 # A ".." for each directory in $ac_dir_suffix. 1540 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1541 case $ac_top_builddir_sub in 1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1544 esac ;; 1545esac 1546ac_abs_top_builddir=$ac_pwd 1547ac_abs_builddir=$ac_pwd$ac_dir_suffix 1548# for backward compatibility: 1549ac_top_builddir=$ac_top_build_prefix 1550 1551case $srcdir in 1552 .) # We are building in place. 1553 ac_srcdir=. 1554 ac_top_srcdir=$ac_top_builddir_sub 1555 ac_abs_top_srcdir=$ac_pwd ;; 1556 [\\/]* | ?:[\\/]* ) # Absolute name. 1557 ac_srcdir=$srcdir$ac_dir_suffix; 1558 ac_top_srcdir=$srcdir 1559 ac_abs_top_srcdir=$srcdir ;; 1560 *) # Relative name. 1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1562 ac_top_srcdir=$ac_top_build_prefix$srcdir 1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1564esac 1565ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1566 1567 cd "$ac_dir" || { ac_status=$?; continue; } 1568 # Check for guested configure. 1569 if test -f "$ac_srcdir/configure.gnu"; then 1570 echo && 1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1572 elif test -f "$ac_srcdir/configure"; then 1573 echo && 1574 $SHELL "$ac_srcdir/configure" --help=recursive 1575 else 1576 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1577 fi || ac_status=$? 1578 cd "$ac_pwd" || { ac_status=$?; break; } 1579 done 1580fi 1581 1582test -n "$ac_init_help" && exit $ac_status 1583if $ac_init_version; then 1584 cat <<\_ACEOF 1585REDUCE configure from SourceForge 1586generated by GNU Autoconf 2.69 1587 1588Copyright (C) 2012 Free Software Foundation, Inc. 1589This configure script is free software; the Free Software Foundation 1590gives unlimited permission to copy, distribute and modify it. 1591 1592The REDUCE project 1593_ACEOF 1594 exit 1595fi 1596 1597## ------------------------ ## 1598## Autoconf initialization. ## 1599## ------------------------ ## 1600 1601# ac_fn_c_try_compile LINENO 1602# -------------------------- 1603# Try to compile conftest.$ac_ext, and return whether this succeeded. 1604ac_fn_c_try_compile () 1605{ 1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1607 rm -f conftest.$ac_objext 1608 if { { ac_try="$ac_compile" 1609case "(($ac_try" in 1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1611 *) ac_try_echo=$ac_try;; 1612esac 1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1614$as_echo "$ac_try_echo"; } >&5 1615 (eval "$ac_compile") 2>conftest.err 1616 ac_status=$? 1617 if test -s conftest.err; then 1618 grep -v '^ *+' conftest.err >conftest.er1 1619 cat conftest.er1 >&5 1620 mv -f conftest.er1 conftest.err 1621 fi 1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1623 test $ac_status = 0; } && { 1624 test -z "$ac_c_werror_flag" || 1625 test ! -s conftest.err 1626 } && test -s conftest.$ac_objext; then : 1627 ac_retval=0 1628else 1629 $as_echo "$as_me: failed program was:" >&5 1630sed 's/^/| /' conftest.$ac_ext >&5 1631 1632 ac_retval=1 1633fi 1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1635 as_fn_set_status $ac_retval 1636 1637} # ac_fn_c_try_compile 1638 1639# ac_fn_c_try_link LINENO 1640# ----------------------- 1641# Try to link conftest.$ac_ext, and return whether this succeeded. 1642ac_fn_c_try_link () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 rm -f conftest.$ac_objext conftest$ac_exeext 1646 if { { ac_try="$ac_link" 1647case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650esac 1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652$as_echo "$ac_try_echo"; } >&5 1653 (eval "$ac_link") 2>conftest.err 1654 ac_status=$? 1655 if test -s conftest.err; then 1656 grep -v '^ *+' conftest.err >conftest.er1 1657 cat conftest.er1 >&5 1658 mv -f conftest.er1 conftest.err 1659 fi 1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1661 test $ac_status = 0; } && { 1662 test -z "$ac_c_werror_flag" || 1663 test ! -s conftest.err 1664 } && test -s conftest$ac_exeext && { 1665 test "$cross_compiling" = yes || 1666 test -x conftest$ac_exeext 1667 }; then : 1668 ac_retval=0 1669else 1670 $as_echo "$as_me: failed program was:" >&5 1671sed 's/^/| /' conftest.$ac_ext >&5 1672 1673 ac_retval=1 1674fi 1675 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1676 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1677 # interfere with the next link command; also delete a directory that is 1678 # left behind by Apple's compiler. We do this before executing the actions. 1679 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 as_fn_set_status $ac_retval 1682 1683} # ac_fn_c_try_link 1684 1685# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1686# ------------------------------------------------------- 1687# Tests whether HEADER exists and can be compiled using the include files in 1688# INCLUDES, setting the cache variable VAR accordingly. 1689ac_fn_c_check_header_compile () 1690{ 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1693$as_echo_n "checking for $2... " >&6; } 1694if eval \${$3+:} false; then : 1695 $as_echo_n "(cached) " >&6 1696else 1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1698/* end confdefs.h. */ 1699$4 1700#include <$2> 1701_ACEOF 1702if ac_fn_c_try_compile "$LINENO"; then : 1703 eval "$3=yes" 1704else 1705 eval "$3=no" 1706fi 1707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1708fi 1709eval ac_res=\$$3 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1711$as_echo "$ac_res" >&6; } 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 1714} # ac_fn_c_check_header_compile 1715 1716# ac_fn_c_try_cpp LINENO 1717# ---------------------- 1718# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1719ac_fn_c_try_cpp () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 if { { ac_try="$ac_cpp conftest.$ac_ext" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728$as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1730 ac_status=$? 1731 if test -s conftest.err; then 1732 grep -v '^ *+' conftest.err >conftest.er1 1733 cat conftest.er1 >&5 1734 mv -f conftest.er1 conftest.err 1735 fi 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } > conftest.i && { 1738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1739 test ! -s conftest.err 1740 }; then : 1741 ac_retval=0 1742else 1743 $as_echo "$as_me: failed program was:" >&5 1744sed 's/^/| /' conftest.$ac_ext >&5 1745 1746 ac_retval=1 1747fi 1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1749 as_fn_set_status $ac_retval 1750 1751} # ac_fn_c_try_cpp 1752 1753# ac_fn_c_try_run LINENO 1754# ---------------------- 1755# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1756# that executables *can* be run. 1757ac_fn_c_try_run () 1758{ 1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1760 if { { ac_try="$ac_link" 1761case "(($ac_try" in 1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1763 *) ac_try_echo=$ac_try;; 1764esac 1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1766$as_echo "$ac_try_echo"; } >&5 1767 (eval "$ac_link") 2>&5 1768 ac_status=$? 1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1770 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1771 { { case "(($ac_try" in 1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1773 *) ac_try_echo=$ac_try;; 1774esac 1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1776$as_echo "$ac_try_echo"; } >&5 1777 (eval "$ac_try") 2>&5 1778 ac_status=$? 1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1780 test $ac_status = 0; }; }; then : 1781 ac_retval=0 1782else 1783 $as_echo "$as_me: program exited with status $ac_status" >&5 1784 $as_echo "$as_me: failed program was:" >&5 1785sed 's/^/| /' conftest.$ac_ext >&5 1786 1787 ac_retval=$ac_status 1788fi 1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 as_fn_set_status $ac_retval 1792 1793} # ac_fn_c_try_run 1794 1795# ac_fn_c_check_func LINENO FUNC VAR 1796# ---------------------------------- 1797# Tests whether FUNC exists, setting the cache variable VAR accordingly 1798ac_fn_c_check_func () 1799{ 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1802$as_echo_n "checking for $2... " >&6; } 1803if eval \${$3+:} false; then : 1804 $as_echo_n "(cached) " >&6 1805else 1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1807/* end confdefs.h. */ 1808/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1809 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1810#define $2 innocuous_$2 1811 1812/* System header to define __stub macros and hopefully few prototypes, 1813 which can conflict with char $2 (); below. 1814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1815 <limits.h> exists even on freestanding compilers. */ 1816 1817#ifdef __STDC__ 1818# include <limits.h> 1819#else 1820# include <assert.h> 1821#endif 1822 1823#undef $2 1824 1825/* Override any GCC internal prototype to avoid an error. 1826 Use char because int might match the return type of a GCC 1827 builtin and then its argument prototype would still apply. */ 1828#ifdef __cplusplus 1829extern "C" 1830#endif 1831char $2 (); 1832/* The GNU C library defines this for functions which it implements 1833 to always fail with ENOSYS. Some functions are actually named 1834 something starting with __ and the normal name is an alias. */ 1835#if defined __stub_$2 || defined __stub___$2 1836choke me 1837#endif 1838 1839int 1840main () 1841{ 1842return $2 (); 1843 ; 1844 return 0; 1845} 1846_ACEOF 1847if ac_fn_c_try_link "$LINENO"; then : 1848 eval "$3=yes" 1849else 1850 eval "$3=no" 1851fi 1852rm -f core conftest.err conftest.$ac_objext \ 1853 conftest$ac_exeext conftest.$ac_ext 1854fi 1855eval ac_res=\$$3 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1857$as_echo "$ac_res" >&6; } 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 1860} # ac_fn_c_check_func 1861 1862# ac_fn_cxx_try_compile LINENO 1863# ---------------------------- 1864# Try to compile conftest.$ac_ext, and return whether this succeeded. 1865ac_fn_cxx_try_compile () 1866{ 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1868 rm -f conftest.$ac_objext 1869 if { { ac_try="$ac_compile" 1870case "(($ac_try" in 1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1872 *) ac_try_echo=$ac_try;; 1873esac 1874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1875$as_echo "$ac_try_echo"; } >&5 1876 (eval "$ac_compile") 2>conftest.err 1877 ac_status=$? 1878 if test -s conftest.err; then 1879 grep -v '^ *+' conftest.err >conftest.er1 1880 cat conftest.er1 >&5 1881 mv -f conftest.er1 conftest.err 1882 fi 1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1884 test $ac_status = 0; } && { 1885 test -z "$ac_cxx_werror_flag" || 1886 test ! -s conftest.err 1887 } && test -s conftest.$ac_objext; then : 1888 ac_retval=0 1889else 1890 $as_echo "$as_me: failed program was:" >&5 1891sed 's/^/| /' conftest.$ac_ext >&5 1892 1893 ac_retval=1 1894fi 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 as_fn_set_status $ac_retval 1897 1898} # ac_fn_cxx_try_compile 1899 1900# ac_fn_cxx_try_cpp LINENO 1901# ------------------------ 1902# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1903ac_fn_cxx_try_cpp () 1904{ 1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1906 if { { ac_try="$ac_cpp conftest.$ac_ext" 1907case "(($ac_try" in 1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1909 *) ac_try_echo=$ac_try;; 1910esac 1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1912$as_echo "$ac_try_echo"; } >&5 1913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1914 ac_status=$? 1915 if test -s conftest.err; then 1916 grep -v '^ *+' conftest.err >conftest.er1 1917 cat conftest.er1 >&5 1918 mv -f conftest.er1 conftest.err 1919 fi 1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1921 test $ac_status = 0; } > conftest.i && { 1922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1923 test ! -s conftest.err 1924 }; then : 1925 ac_retval=0 1926else 1927 $as_echo "$as_me: failed program was:" >&5 1928sed 's/^/| /' conftest.$ac_ext >&5 1929 1930 ac_retval=1 1931fi 1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1933 as_fn_set_status $ac_retval 1934 1935} # ac_fn_cxx_try_cpp 1936 1937# ac_fn_cxx_try_link LINENO 1938# ------------------------- 1939# Try to link conftest.$ac_ext, and return whether this succeeded. 1940ac_fn_cxx_try_link () 1941{ 1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1943 rm -f conftest.$ac_objext conftest$ac_exeext 1944 if { { ac_try="$ac_link" 1945case "(($ac_try" in 1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1947 *) ac_try_echo=$ac_try;; 1948esac 1949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1950$as_echo "$ac_try_echo"; } >&5 1951 (eval "$ac_link") 2>conftest.err 1952 ac_status=$? 1953 if test -s conftest.err; then 1954 grep -v '^ *+' conftest.err >conftest.er1 1955 cat conftest.er1 >&5 1956 mv -f conftest.er1 conftest.err 1957 fi 1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1959 test $ac_status = 0; } && { 1960 test -z "$ac_cxx_werror_flag" || 1961 test ! -s conftest.err 1962 } && test -s conftest$ac_exeext && { 1963 test "$cross_compiling" = yes || 1964 test -x conftest$ac_exeext 1965 }; then : 1966 ac_retval=0 1967else 1968 $as_echo "$as_me: failed program was:" >&5 1969sed 's/^/| /' conftest.$ac_ext >&5 1970 1971 ac_retval=1 1972fi 1973 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1974 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1975 # interfere with the next link command; also delete a directory that is 1976 # left behind by Apple's compiler. We do this before executing the actions. 1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1979 as_fn_set_status $ac_retval 1980 1981} # ac_fn_cxx_try_link 1982cat >config.log <<_ACEOF 1983This file contains any messages produced by compilers while 1984running configure, to aid debugging if configure makes a mistake. 1985 1986It was created by REDUCE $as_me from SourceForge, which was 1987generated by GNU Autoconf 2.69. Invocation command line was 1988 1989 $ $0 $@ 1990 1991_ACEOF 1992exec 5>>config.log 1993{ 1994cat <<_ASUNAME 1995## --------- ## 1996## Platform. ## 1997## --------- ## 1998 1999hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2000uname -m = `(uname -m) 2>/dev/null || echo unknown` 2001uname -r = `(uname -r) 2>/dev/null || echo unknown` 2002uname -s = `(uname -s) 2>/dev/null || echo unknown` 2003uname -v = `(uname -v) 2>/dev/null || echo unknown` 2004 2005/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2006/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2007 2008/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2009/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2010/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2011/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2012/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2013/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2014/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2015 2016_ASUNAME 2017 2018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2019for as_dir in $PATH 2020do 2021 IFS=$as_save_IFS 2022 test -z "$as_dir" && as_dir=. 2023 $as_echo "PATH: $as_dir" 2024 done 2025IFS=$as_save_IFS 2026 2027} >&5 2028 2029cat >&5 <<_ACEOF 2030 2031 2032## ----------- ## 2033## Core tests. ## 2034## ----------- ## 2035 2036_ACEOF 2037 2038 2039# Keep a trace of the command line. 2040# Strip out --no-create and --no-recursion so they do not pile up. 2041# Strip out --silent because we don't want to record it for future runs. 2042# Also quote any args containing shell meta-characters. 2043# Make two passes to allow for proper duplicate-argument suppression. 2044ac_configure_args= 2045ac_configure_args0= 2046ac_configure_args1= 2047ac_must_keep_next=false 2048for ac_pass in 1 2 2049do 2050 for ac_arg 2051 do 2052 case $ac_arg in 2053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2055 | -silent | --silent | --silen | --sile | --sil) 2056 continue ;; 2057 *\'*) 2058 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2059 esac 2060 case $ac_pass in 2061 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2062 2) 2063 as_fn_append ac_configure_args1 " '$ac_arg'" 2064 if test $ac_must_keep_next = true; then 2065 ac_must_keep_next=false # Got value, back to normal. 2066 else 2067 case $ac_arg in 2068 *=* | --config-cache | -C | -disable-* | --disable-* \ 2069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2071 | -with-* | --with-* | -without-* | --without-* | --x) 2072 case "$ac_configure_args0 " in 2073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2074 esac 2075 ;; 2076 -* ) ac_must_keep_next=true ;; 2077 esac 2078 fi 2079 as_fn_append ac_configure_args " '$ac_arg'" 2080 ;; 2081 esac 2082 done 2083done 2084{ ac_configure_args0=; unset ac_configure_args0;} 2085{ ac_configure_args1=; unset ac_configure_args1;} 2086 2087# When interrupted or exit'd, cleanup temporary files, and complete 2088# config.log. We remove comments because anyway the quotes in there 2089# would cause problems or look ugly. 2090# WARNING: Use '\'' to represent an apostrophe within the trap. 2091# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2092trap 'exit_status=$? 2093 # Save into config.log some information that might help in debugging. 2094 { 2095 echo 2096 2097 $as_echo "## ---------------- ## 2098## Cache variables. ## 2099## ---------------- ##" 2100 echo 2101 # The following way of writing the cache mishandles newlines in values, 2102( 2103 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2104 eval ac_val=\$$ac_var 2105 case $ac_val in #( 2106 *${as_nl}*) 2107 case $ac_var in #( 2108 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2109$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2110 esac 2111 case $ac_var in #( 2112 _ | IFS | as_nl) ;; #( 2113 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2114 *) { eval $ac_var=; unset $ac_var;} ;; 2115 esac ;; 2116 esac 2117 done 2118 (set) 2>&1 | 2119 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2120 *${as_nl}ac_space=\ *) 2121 sed -n \ 2122 "s/'\''/'\''\\\\'\'''\''/g; 2123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2124 ;; #( 2125 *) 2126 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2127 ;; 2128 esac | 2129 sort 2130) 2131 echo 2132 2133 $as_echo "## ----------------- ## 2134## Output variables. ## 2135## ----------------- ##" 2136 echo 2137 for ac_var in $ac_subst_vars 2138 do 2139 eval ac_val=\$$ac_var 2140 case $ac_val in 2141 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2142 esac 2143 $as_echo "$ac_var='\''$ac_val'\''" 2144 done | sort 2145 echo 2146 2147 if test -n "$ac_subst_files"; then 2148 $as_echo "## ------------------- ## 2149## File substitutions. ## 2150## ------------------- ##" 2151 echo 2152 for ac_var in $ac_subst_files 2153 do 2154 eval ac_val=\$$ac_var 2155 case $ac_val in 2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2157 esac 2158 $as_echo "$ac_var='\''$ac_val'\''" 2159 done | sort 2160 echo 2161 fi 2162 2163 if test -s confdefs.h; then 2164 $as_echo "## ----------- ## 2165## confdefs.h. ## 2166## ----------- ##" 2167 echo 2168 cat confdefs.h 2169 echo 2170 fi 2171 test "$ac_signal" != 0 && 2172 $as_echo "$as_me: caught signal $ac_signal" 2173 $as_echo "$as_me: exit $exit_status" 2174 } >&5 2175 rm -f core *.core core.conftest.* && 2176 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2177 exit $exit_status 2178' 0 2179for ac_signal in 1 2 13 15; do 2180 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2181done 2182ac_signal=0 2183 2184# confdefs.h avoids OS command line length limits that DEFS can exceed. 2185rm -f -r conftest* confdefs.h 2186 2187$as_echo "/* confdefs.h */" > confdefs.h 2188 2189# Predefined preprocessor variables. 2190 2191cat >>confdefs.h <<_ACEOF 2192#define PACKAGE_NAME "$PACKAGE_NAME" 2193_ACEOF 2194 2195cat >>confdefs.h <<_ACEOF 2196#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2197_ACEOF 2198 2199cat >>confdefs.h <<_ACEOF 2200#define PACKAGE_VERSION "$PACKAGE_VERSION" 2201_ACEOF 2202 2203cat >>confdefs.h <<_ACEOF 2204#define PACKAGE_STRING "$PACKAGE_STRING" 2205_ACEOF 2206 2207cat >>confdefs.h <<_ACEOF 2208#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2209_ACEOF 2210 2211cat >>confdefs.h <<_ACEOF 2212#define PACKAGE_URL "$PACKAGE_URL" 2213_ACEOF 2214 2215 2216# Let the site file select an alternate cache file if it wants to. 2217# Prefer an explicitly selected file to automatically selected ones. 2218ac_site_file1=NONE 2219ac_site_file2=NONE 2220if test -n "$CONFIG_SITE"; then 2221 # We do not want a PATH search for config.site. 2222 case $CONFIG_SITE in #(( 2223 -*) ac_site_file1=./$CONFIG_SITE;; 2224 */*) ac_site_file1=$CONFIG_SITE;; 2225 *) ac_site_file1=./$CONFIG_SITE;; 2226 esac 2227elif test "x$prefix" != xNONE; then 2228 ac_site_file1=$prefix/share/config.site 2229 ac_site_file2=$prefix/etc/config.site 2230else 2231 ac_site_file1=$ac_default_prefix/share/config.site 2232 ac_site_file2=$ac_default_prefix/etc/config.site 2233fi 2234for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2235do 2236 test "x$ac_site_file" = xNONE && continue 2237 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2239$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2240 sed 's/^/| /' "$ac_site_file" >&5 2241 . "$ac_site_file" \ 2242 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2244as_fn_error $? "failed to load site script $ac_site_file 2245See \`config.log' for more details" "$LINENO" 5; } 2246 fi 2247done 2248 2249if test -r "$cache_file"; then 2250 # Some versions of bash will fail to source /dev/null (special files 2251 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2252 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2254$as_echo "$as_me: loading cache $cache_file" >&6;} 2255 case $cache_file in 2256 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2257 *) . "./$cache_file";; 2258 esac 2259 fi 2260else 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2262$as_echo "$as_me: creating cache $cache_file" >&6;} 2263 >$cache_file 2264fi 2265 2266# Check that the precious variables saved in the cache have kept the same 2267# value. 2268ac_cache_corrupted=false 2269for ac_var in $ac_precious_vars; do 2270 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2271 eval ac_new_set=\$ac_env_${ac_var}_set 2272 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2273 eval ac_new_val=\$ac_env_${ac_var}_value 2274 case $ac_old_set,$ac_new_set in 2275 set,) 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2277$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2278 ac_cache_corrupted=: ;; 2279 ,set) 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2281$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2282 ac_cache_corrupted=: ;; 2283 ,);; 2284 *) 2285 if test "x$ac_old_val" != "x$ac_new_val"; then 2286 # differences in whitespace do not lead to failure. 2287 ac_old_val_w=`echo x $ac_old_val` 2288 ac_new_val_w=`echo x $ac_new_val` 2289 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2291$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2292 ac_cache_corrupted=: 2293 else 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2295$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2296 eval $ac_var=\$ac_old_val 2297 fi 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2299$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2301$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2302 fi;; 2303 esac 2304 # Pass precious variables to config.status. 2305 if test "$ac_new_set" = set; then 2306 case $ac_new_val in 2307 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2308 *) ac_arg=$ac_var=$ac_new_val ;; 2309 esac 2310 case " $ac_configure_args " in 2311 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2312 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2313 esac 2314 fi 2315done 2316if $ac_cache_corrupted; then 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2320$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2321 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2322fi 2323## -------------------- ## 2324## Main body of script. ## 2325## -------------------- ## 2326 2327ac_ext=c 2328ac_cpp='$CPP $CPPFLAGS' 2329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2331ac_compiler_gnu=$ac_cv_c_compiler_gnu 2332 2333 2334 2335# ************************************************************************** 2336# * Copyright (C) 2017-20, Codemist. A C Norman * 2337# * * 2338# * Redistribution and use in source and binary forms, with or without * 2339# * modification, are permitted provided that the following conditions are * 2340# * met: * 2341# * * 2342# * * Redistributions of source code must retain the relevant * 2343# * copyright notice, this list of conditions and the following * 2344# * disclaimer. * 2345# * * Redistributions in binary form must reproduce the above * 2346# * copyright notice, this list of conditions and the following * 2347# * disclaimer in the documentation and/or other materials provided * 2348# * with the distribution. * 2349# * * 2350# * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * 2351# * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * 2352# * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * 2353# * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * 2354# * COPYRIGHT OWNERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * 2355# * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * 2356# * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * 2357# * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * 2358# * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR * 2359# * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF * 2360# * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * 2361# * DAMAGE. * 2362# ************************************************************************** 2363 2364 2365 2366# The next line is a dreadful thing and is in case I am launched 2367# from a bash prompt, in which case the SHELL variable will be set 2368# to /bin/bash (or perhaps the user's login shell?). Anyway that hurts 2369# config.guess on Solaris.... so I will force matters so that I use 2370# plan vanilla /bin/sh henceforth. So BEWARE and do not use bash extensions. 2371if test -x /bin/sh 2372then 2373 SHELL=/bin/sh 2374 export SHELL 2375fi 2376 2377 2378 2379# $Id: configure.ac 5398 2020-09-11 19:24:14Z arthurcnorman $ 2380 2381# If necessary you can fetch source versions of autoconf and automake and 2382# install private versions for use here. Following discussions with other 2383# developers I am now going to require autoconf, automake and libtool 2384# availability, although an enthusiastic person could probably get things 2385# working without them. 2386 2387 2388 2389 2390ac_aux_dir= 2391for ac_dir in . "$srcdir"/.; do 2392 if test -f "$ac_dir/install-sh"; then 2393 ac_aux_dir=$ac_dir 2394 ac_install_sh="$ac_aux_dir/install-sh -c" 2395 break 2396 elif test -f "$ac_dir/install.sh"; then 2397 ac_aux_dir=$ac_dir 2398 ac_install_sh="$ac_aux_dir/install.sh -c" 2399 break 2400 elif test -f "$ac_dir/shtool"; then 2401 ac_aux_dir=$ac_dir 2402 ac_install_sh="$ac_aux_dir/shtool install -c" 2403 break 2404 fi 2405done 2406if test -z "$ac_aux_dir"; then 2407 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2408fi 2409 2410# These three variables are undocumented and unsupported, 2411# and are intended to be withdrawn in a future Autoconf release. 2412# They can cause serious problems if a builder's source tree is in a directory 2413# whose full name contains unusual characters. 2414ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2415ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2416ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2417 2418 2419 2420abssrcdir=`"$srcdir/scripts/here.sh"` 2421 2422if which cygpath 2> /dev/null 2423then 2424 a=`cygpath -am "$abssrcdir"` 2425 b="${a%%/*}/" 2426 d="${a#${b}}" 2427 c=`cygpath $b` 2428 abssrcdir="$c$d" 2429fi 2430 2431{ $as_echo "$as_me:${as_lineno-$LINENO}: Absolute path to source directory = $abssrcdir" >&5 2432$as_echo "$as_me: Absolute path to source directory = $abssrcdir" >&6;} 2433 2434# 2435# There is a horror here. If one fetches everything from subversion 2436# then timstamps can be ill-ordered, and it can seem necessary to 2437# re-create the autoconf-related files. The standard way that autoconf and 2438# automake allow for this is not very generous if the version of autoconf 2439# on the local machine does not match the one used in the files from the 2440# central site. 2441# 2442# I am now going to try to respond to that by forcing a re-generation of 2443# all the autoconf files each time anybody runs configure. That adds to the 2444# cost for everybody and means that everybody NEEDS autoconf, automake and 2445# libtool installed, but may be more robust. I will check the versions of 2446# autoconf and automake that are present and stop if they are too old. 2447# If that case hits you you may need to fetch new versions (in source form) 2448# and build and install them somewhere on your PATH. This is in fact not 2449# too difficult, it is along the lines of 2450# <fetch source archive from the Free Software Foundation archives> 2451# # (please use a local mirror) 2452# tar xvfz <source-archive.tgz> 2453# cd <where it unpacked to> 2454# ./configure --prefix=/usr/local/bin 2455# make 2456# sudo make install 2457# and if you do not have authority to write files to /usr/local/bin then 2458# set up a directory of your own, put it early in your PATH and use that as 2459# the "--prefix". 2460 2461 2462# Check whether --with-autogen was given. 2463if test "${with_autogen+set}" = set; then : 2464 withval=$with_autogen; 2465else 2466 with_autogen="yes" 2467fi 2468 2469 2470if test "x$with_autogen" = "xyes" 2471then 2472 2473 if ! which autoconf > /dev/null 2> /dev/null 2474 then 2475 wait $procids 2476 printf "You must have autoconf (at least version 2.61) installed to\n" 2477 printf "build this package. Install it and try again please.\n" 2478 exit 1 2479 fi 2480 2481 if ! which automake > /dev/null 2> /dev/null 2482 then 2483 wait $procids 2484 printf "You must have automake (at least version 1.13) installed to\n" 2485 printf "build this package. Install it and try again please.\n" 2486 exit 1 2487 fi 2488 2489 if ! which libtool > /dev/null 2> /dev/null 2490 then 2491 wait $procids 2492 printf "You must have libtool installed to build this package. Install\n" 2493 printf "it and try again please.\n" 2494 printf "Note on some Linux systems it is in a package called libtool-bin\n" 2495 exit 1 2496 fi 2497 2498# The next fragment should extract version numbers for autoconf and automake 2499 2500# I extract version info from the two utilities. The first line of 2501# the output from "autoxx --version" is "autoxx ... nn.nn.nn" with 2502# a two or three component version number at the end. 2503 2504 acver=`autoconf --version 2> /dev/null | head -1` 2505 amver=`automake --version 2> /dev/null | head -1` 2506 2507# Get rid of everything as far as the final blank in the data. What is 2508# left is just the version number, whihc may be two or three components, 2509# such as 14.2.1 or 15.0 2510 2511 acver=`echo $acver | sed -e 's/.* //'` 2512 amver=`echo $amver | sed -e 's/.* //'` 2513 2514# The major version number is got by stripping of everything from the "." on. 2515 2516 acmaj=`echo $acver | sed -e 's/\..*//'` 2517 ammaj=`echo $amver | sed -e 's/\..*//'` 2518 2519# The minor version number is left if one deleted the major number. 2520 2521 acver=`echo $acver | sed -e "s/$acmaj\.//"` 2522 amver=`echo $amver | sed -e "s/$ammaj\.//"` 2523 2524# What was left could have a patch level - get rid of it. 2525 2526 acmin=`echo $acver | sed -e 's/\..*//'` 2527 ammin=`echo $amver | sed -e 's/\..*//'` 2528 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: detected autoconf: $acmaj.$acmin automake: $ammaj.$ammin" >&5 2530$as_echo "$as_me: detected autoconf: $acmaj.$acmin automake: $ammaj.$ammin" >&6;} 2531 2532 if test $acmaj -lt 2 || test $acmaj -eq 2 && test $acmin -lt 61 2533 then 2534 wait $procids 2535 printf "You have autoconf $acmaj.$acmin but at least 2.61 is needed\n" 2536 printf "to build this package. Install it and try again please.\n" 2537 exit 1 2538 fi 2539 2540 if test $ammaj -lt 1 || test $ammaj -eq 1 && test $ammin -lt 13 2541 then 2542 wait $procids 2543 printf "You have automake $ammaj.$ammin but at least 1.13 is needed\n" 2544 printf "to build this package. Install it and try again please.\n" 2545 exit 1 2546 fi 2547 2548 here=`pwd` 2549 cd $abssrcdir 2550 printf "Regenerate autoconf-related files\n" 2551 if ! eval $SHELL -c \"./autogen.sh $ac_configure_args\" 2552 then 2553 wait $procids 2554 printf "The autogen.sh script seems to have failed. I can not continue\n" 2555 exit 1 2556 fi 2557 cd $here 2558 2559# It is unexpectedly important the the "--without-autogen" be provided as 2560# the first argument in the re-try. This is because otherwise some malformed 2561# input later on (eg "--") could cause it not to be recognised, leading 2562# to an infinite cycle of attempted re-generation! 2563 printf "Restart: $abssrcdir/configure --without-autogen $ac_configure_args\n" 2564# Because this uses "exec" it chains into the restarted processing and does 2565# not proceed further in this shell. 2566 exec $SHELL -c "$abssrcdir/configure --without-autogen $ac_configure_args" 2567fi 2568 2569# Next and before I do anything much else I will see if any GUI toolkit that 2570# I am using needs to be unpacked from source. Well before I do that I need 2571# to sort out whether I am using CSL or PSL and in the former case whether 2572# I am using the FOX or wxWidgets toolkit. 2573 2574 2575# Check whether --with-csl was given. 2576if test "${with_csl+set}" = set; then : 2577 withval=$with_csl; 2578else 2579 with_csl="no" 2580fi 2581 2582 2583 2584# Check whether --with-psl was given. 2585if test "${with_psl+set}" = set; then : 2586 withval=$with_psl; 2587else 2588 with_psl="no" 2589fi 2590 2591 2592# Ensure that at least one Lisp system is selected 2593if test "x$with_psl" = "xno" && test "x$with_csl" = "xno" 2594then 2595 as_fn_error $? "you must specify either --with-csl or --with-psl to select a Lisp" "$LINENO" 5 2596fi 2597 2598if test "x$with_psl" != "xno" && test "x$with_csl" != "xno" 2599then 2600 as_fn_error $? "If you want to build both CSL and PSL versions then you will 2601need to run the configure script twice, once with --with-csl and any 2602other relevent options and once with --with-psl and any relevant PSL 2603options. After that you may use \"make\" and both systems should be made." "$LINENO" 5 2604fi 2605 2606 2607# Check whether --with-gui was given. 2608if test "${with_gui+set}" = set; then : 2609 withval=$with_gui; 2610else 2611 with_gui="yes" 2612fi 2613 2614 2615# As part of what MAY be a transition I am supporting two possible GUI 2616# toolkits, viz FOX and wxWidgets. See www.fox-toolkit.org and 2617# www.wxwidgets.org. If you do not say anything explicit then you will 2618# get the code built with my default choice and the build will occur in 2619# un-decorated directory-names. If you explicitly go either "--with-fox" 2620# or "--with-wx" then you get that GUI toolkit used and the directory will 2621# be decorated so that this does not interfere with the default. I set the 2622# default here... 2623# If you go "--without-fox" or "--without-wx" then that will disable use 2624# of that toolkit. If the other was selected this will in effect get ignored. 2625# If the one you say "--without" about is the one that would have been the 2626# default then you get a system without a GUI at all. 2627 2628# I reserve the right (one day) to change the default toolkit I use to build 2629# a GUI, but at the stage I put this in there is a workable one using FOX 2630# and essentially nothing beyond some configuration steps using wxWidgets! 2631 2632default_gui="fox" 2633#default_gui="wx" 2634 2635 2636# Check whether --with-wx was given. 2637if test "${with_wx+set}" = set; then : 2638 withval=$with_wx; 2639else 2640 with_wx="default" 2641fi 2642 2643 2644 2645# Check whether --with-fox was given. 2646if test "${with_fox+set}" = set; then : 2647 withval=$with_fox; 2648else 2649 with_fox="default" 2650fi 2651 2652 2653if test "x$with_psl" != "xno" 2654then 2655 with_fox=no 2656 with_wx=no 2657 with_gui=no 2658fi 2659 2660if test "x$with_csl" != "xno" 2661then 2662# This is where I unpack a new copy of wxWidgets if I need to. 2663 2664# If the user has said nothing then both with_fox and with_wx will be 2665# "default", and default_gui will be either"fox" or "wx". 2666 2667# The things the user can reasonably say will be 2668# <nothing> build using default GUI in directory x-y-z 2669# (eg in cslbuild/i386-pc-windows) 2670# --without-gui build non-GUI version in x-y-x-nogui 2671# --with-fox build FOX version in x-y-z 2672# --with-wx build wxWidgets version in x-y-z-wx 2673# --without-fox if FOX is the default behave as --without -gui 2674# --without-wx if wxWidgets is the default behave as --without-gui 2675# If the user says --without-wx when FOX was to be the default GUI then in 2676# effect this redundant statement is ignored. 2677# It is not proper to say more than one from --with-fox, --with-wx, 2678# and --without-gui, but each can be used in separate calls to the 2679# configure script to build parallel versions. 2680# 2681# There is no point or merit in --with-fox=XXXX for some XXX 2682# other than "yes" OR "no", and "--with-fox=no" is interpreted as being the 2683# same as "--without-fox" (etc). I use "--with-fox=default" as the situation 2684# if the user does not specify "--with-fox" at all. 2685 2686 if test "x$with_gui" = "xno" && (test "x$with_fox" != "xdefault" || test "x$with_wx" != "xdefault") 2687 then 2688 as_fn_error $? "If you say --without-gui you must not say --with-fox or --with-wx as well 2689(or even --without-fox or --without-wx)" "$LINENO" 5 2690 fi 2691 if test "x$with_fox" != "xdefault" && test "x$with_wx" != "xdefault" 2692 then 2693 as_fn_error $? "You must not say --with-fox (or --without-fox) and --with-wx 2694(or --without-wx) at the same time" "$LINENO" 5 2695 fi 2696 2697 if test "x$with_gui" = "xno" 2698 then 2699 with_fox="no" 2700 with_wx="no" 2701 else 2702 case $default_gui/$with_fox/$with_wx in 2703 fox/default/default) 2704# simple default case 2705 with_fox="yes" 2706 with_wx="no"; 2707 ;; 2708 fox/yes/*) 2709# explicit --with-fox. I allow this even though in this situation it 2710# is redundant because when wxWidgets becomes the default it will be 2711# needed if you want a fox build. 2712 with_fox="yes" 2713 with_wx="no"; 2714 ;; 2715 fox/no/*) 2716# explicit --without-fox. If fox is that default this 2717# leads to the without-gui situation. 2718 with_fox="no" 2719 with_wx="no"; 2720 ;; 2721 fox/*/yes) 2722# explicit --with-wx overrides the default 2723 with_fox="no" 2724 with_wx="yes"; 2725 ;; 2726 fox/*/no) 2727# explicit --without-wx. If fox is the default this will not have any 2728# effect and since maybe somebody thought it would disable the whole 2729# GUI I will make it an error. 2730 as_fn_error $? "--with-fox is the default configuration so --without-wx is not needed" "$LINENO" 5 2731 ;; 2732 wx/default/default) 2733# simple default case (if wx is preferred) 2734 with_fox="no" 2735 with_wx="yes"; 2736 ;; 2737 wx/*/yes) 2738# explicit --with-wx is permitted even when not needed 2739 with_fox="no" 2740 with_wx="yes"; 2741 ;; 2742 wx/yes/*) 2743# explicit --with-fox that overrides default 2744 with_fox="yes" 2745 with_wx="no"; 2746 ;; 2747 wx/no/*) 2748# explicit --without-fox 2749 as_fn_error $? "--with-wx is the default configuration so --without-fox is not needed" "$LINENO" 5 2750 ;; 2751 *) 2752 as_fn_error $? "--with-fox=$with_fox and --with-wx=$with_wx inconsistent here" "$LINENO" 5 2753 ;; 2754 esac 2755 fi 2756 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: with_fox=$with_fox, with_wx=$with_wx" >&5 2758$as_echo "$as_me: with_fox=$with_fox, with_wx=$with_wx" >&6;} 2759 2760# Now at most one of with_wx and with_fox will be "yes". They could both 2761# be "no". 2762 if test "x$with_wx" != "xno" 2763 then 2764 d=`pwd` 2765 cd $abssrcdir/csl/support-packages 2766# The next line should collect the names of all versions of wxWidgets that 2767# I have .tar.bz2 files for, and they should end up in alphabetic order. 2768 a=`echo wxWidgets-*-*-*.tar.bz2` 2769# Here I keep the last item in the list, which should be the latest version 2770# present. 2771 a=${a##* } 2772# Remove the ".tar.bz2" suffix 2773 b=${a%.tar.bz2} 2774 cd .. 2775# Now I need to check if the version of wxWidgets I have already got 2776# in an unpacked state matches the most recent one available. Well I look at 2777# date-stamps - has the unpacked copy of wxWidgets got a newer date-stamp than 2778# the archived one? 2779 if test $abssrcdir/csl/support-packages/wxWidgets_revision -nt \ 2780 wxWidgets/wxWidgets_revision 2781 then 2782 printf "will unpack a fresh copy of wxWidgets\n" 2783 mkdir wxWidgets-new 2784 cp $abssrcdir/csl/support-packages/wxWidgets_revision wxWidgets-new 2785 mv wxWidgets-new wxWidgets 2786# At present my wxWidgets archive is packed as for a directory named 2787# just "wxWidgets", but I will allow for any future change where the 2788# directory mentioned in the tar archive has a version number included. 2789 tar xfj support-packages/$a -C wxWidgets --strip-components=1 2790# At one stage I had trouble with the unpacked archive not being all 2791# readable, so here I forcibly reset permssions 2792 chmod -R +rw wxWidgets 2793# The official distribution needs its autogen.sh script run to create 2794# a configure file. 2795 cd wxWidgets 2796 ./autogen.sh 2797 cd .. 2798 printf "wxWidgets unpacked from archive $a\n" 2799 fi 2800 cd $d 2801 fi 2802fi 2803 2804# On Windows there should be 3 variants of Reduce made: 2805# cygwin 64-bit (this can be used either in console mode or using X) 2806# native windows 64-bit console mode 2807# native windows 64-bit windows mode 2808# 2809 2810uname_s=`uname -s` 2811case "$uname_s" in 2812Darwin) 2813# "uname -o" is not available on the Macintosh! 2814 uname_o="macOS" 2815 ;; 2816*) 2817 uname_o=`uname -o 2>/dev/null` 2818 ;; 2819esac 2820 2821# Make sure we can run config.sub. 2822$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2823 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2824 2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2826$as_echo_n "checking build system type... " >&6; } 2827if ${ac_cv_build+:} false; then : 2828 $as_echo_n "(cached) " >&6 2829else 2830 ac_build_alias=$build_alias 2831test "x$ac_build_alias" = x && 2832 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2833test "x$ac_build_alias" = x && 2834 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2835ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2836 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2837 2838fi 2839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2840$as_echo "$ac_cv_build" >&6; } 2841case $ac_cv_build in 2842*-*-*) ;; 2843*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2844esac 2845build=$ac_cv_build 2846ac_save_IFS=$IFS; IFS='-' 2847set x $ac_cv_build 2848shift 2849build_cpu=$1 2850build_vendor=$2 2851shift; shift 2852# Remember, the first character of IFS is used to create $*, 2853# except with old shells: 2854build_os=$* 2855IFS=$ac_save_IFS 2856case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2857 2858 2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2860$as_echo_n "checking host system type... " >&6; } 2861if ${ac_cv_host+:} false; then : 2862 $as_echo_n "(cached) " >&6 2863else 2864 if test "x$host_alias" = x; then 2865 ac_cv_host=$ac_cv_build 2866else 2867 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2868 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2869fi 2870 2871fi 2872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2873$as_echo "$ac_cv_host" >&6; } 2874case $ac_cv_host in 2875*-*-*) ;; 2876*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2877esac 2878host=$ac_cv_host 2879ac_save_IFS=$IFS; IFS='-' 2880set x $ac_cv_host 2881shift 2882host_cpu=$1 2883host_vendor=$2 2884shift; shift 2885# Remember, the first character of IFS is used to create $*, 2886# except with old shells: 2887host_os=$* 2888IFS=$ac_save_IFS 2889case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2890 2891 2892 2893 2894# Check whether --with-build was given. 2895if test "${with_build+set}" = set; then : 2896 withval=$with_build; 2897else 2898 with_build="unknown" 2899fi 2900 2901 2902 2903# Check whether --with-pslbuild was given. 2904if test "${with_pslbuild+set}" = set; then : 2905 withval=$with_pslbuild; 2906else 2907 with_pslbuild="unknown" 2908fi 2909 2910 2911 2912# Check whether --with-cygbuild was given. 2913if test "${with_cygbuild+set}" = set; then : 2914 withval=$with_cygbuild; 2915else 2916 with_cygbuild="unknown" 2917fi 2918 2919 2920 2921# Check whether --with-force was given. 2922if test "${with_force+set}" = set; then : 2923 withval=$with_force; 2924else 2925 with_force="no" 2926fi 2927 2928 2929# I could provide a --with-libedit=... option but the plan here is that 2930# the version used will only change during transitions made by the developers 2931# and so I limit myself to a fixed setting here. No ordinary person should 2932# ever need to alter this. 2933 2934# This is set here so that if I need to experiment with or chance to a 2935# different version that will be reasonably tidy. 2936LIBEDIT_VERSION=20140620-3.1 2937 2938############################################################################ 2939# 2940# Modern versions of the autoconf tools seems to moan dreadfully if you pass 2941# down a flag that they do not know about, and so I transcribe into here 2942# all the flags that the CSL configuration may ever want. The down-side of 2943# this is that "configure --help" shows them all. 2944 2945 2946# Check whether --with-cygwin was given. 2947if test "${with_cygwin+set}" = set; then : 2948 withval=$with_cygwin; 2949else 2950 with_cygwin="no" 2951fi 2952 2953 2954 2955# Check whether --with-xft was given. 2956if test "${with_xft+set}" = set; then : 2957 withval=$with_xft; 2958else 2959 with_xft="yes" 2960fi 2961 2962 2963 2964# Check whether --with-xim was given. 2965if test "${with_xim+set}" = set; then : 2966 withval=$with_xim; 2967else 2968 with_xim="yes" 2969fi 2970 2971 2972# Check whether --enable-debug was given. 2973if test "${enable_debug+set}" = set; then : 2974 enableval=$enable_debug; 2975else 2976 enable_debug="no" 2977fi 2978 2979 2980# Check whether --enable-conservative was given. 2981if test "${enable_conservative+set}" = set; then : 2982 enableval=$enable_conservative; 2983else 2984 enable_conservative="no" 2985fi 2986 2987 2988# Check whether --enable-test was given. 2989if test "${enable_test+set}" = set; then : 2990 enableval=$enable_test; 2991else 2992 enable_test="no" 2993fi 2994 2995 2996# Check whether --enable-experiment was given. 2997if test "${enable_experiment+set}" = set; then : 2998 enableval=$enable_experiment; 2999else 3000 enable_experiment="no" 3001fi 3002 3003 3004if test "x$enable_experiment" = "xyes" 3005then 3006 enable_test="yes" 3007fi 3008 3009 3010# Check whether --with-arithlib was given. 3011if test "${with_arithlib+set}" = set; then : 3012 withval=$with_arithlib; 3013else 3014 with_arithlib="no" 3015fi 3016 3017 3018# Check whether --enable-static was given. 3019if test "${enable_static+set}" = set; then : 3020 enableval=$enable_static; 3021else 3022 enable_static="no" 3023fi 3024 3025 3026########################################################################### 3027 3028# Now I want to know if the current directory is the same as $srcdir. At 3029# one stage I checked that by looking to see if $srcdir was ".". That was OK 3030# for direct calls of the form "./configure" where the "." as in "./" was 3031# detected. But the reconfig step messes that up and anyway it is a delicate 3032# cheat. So here is a different delicate cheat! 3033 3034rm -f ./testfile.tst "$abssrcdir/testfile.tst" 3035touch "$abssrcdir/testfile.tst" 3036if test -f ./testfile.tst 3037then 3038 rm -f ./testfile.tst 3039 inplace="yes" 3040else 3041 inplace="no" 3042fi 3043 3044printf "in-place build attempt = $inplace\n" 3045 3046# I have a fairly elaborate scheme to select a directory to use. At present 3047# for PSL there are no relevant extra configure parameters, so I will not 3048# pass anthing down even if something has been specified! Thus PSL will get 3049# built in a simple directory named after the operating system while for 3050# CSL you may be able to create multiple versions (eg debugging and 3051# non-debugging) on the same machine, and the binaries will get created in 3052# separate sub-directories. 3053 3054# One HORRID issue is that as regards anything that is to do with selecting 3055# directories to build in etc I want to look at $host as produced by 3056# just one version of config.guess. This is because in the past I have 3057# come across cases where different versions or releases of config.guess 3058# report the same machine with slightly different names. That could cause 3059# messy confusion! So when I want that information I find it once here and 3060# as necessary pass it down to lower parts of the tree. 3061 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: host=$host args=$ac_configure_args" >&5 3063$as_echo "$as_me: host=$host args=$ac_configure_args" >&6;} 3064 3065if test "x$with_psl" != "xno" 3066then 3067 case $host in 3068 *windows | *cygwin) 3069 build="x86_64-pc-windows" 3070 ;; 3071 *) 3072# For cases other than Windows the PSL case is simpler. 3073 build=`$SHELL $abssrcdir/scripts/findhost.sh $host` 3074 ;; 3075 esac 3076else 3077# For PSL find an initial name for the directory to build in. In the Windows 3078# case this will be messed with further. 3079 build=`eval "$SHELL $abssrcdir/scripts/findhost.sh $host $ac_configure_args"` 3080fi 3081 3082{ $as_echo "$as_me:${as_lineno-$LINENO}: Will build in the $build subdirectory" >&5 3083$as_echo "$as_me: Will build in the $build subdirectory" >&6;} 3084procids="" 3085 3086# There are many configure options that are valid or relevant at the 3087# top level but are not needed for sub-configure calls 3088filtered=`$abssrcdir/scripts/filter.sh "$ac_configure_args"` 3089nohost=`$abssrcdir/scripts/nohost.sh "$ac_configure_args"` 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: args=<$ac_configure_args>" >&5 3091$as_echo "$as_me: args=<$ac_configure_args>" >&6;} 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: filtered=<$filtered>" >&5 3093$as_echo "$as_me: filtered=<$filtered>" >&6;} 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: nohost=<$nohost>" >&5 3095$as_echo "$as_me: nohost=<$nohost>" >&6;} 3096 3097 3098# Check whether --with-sequential was given. 3099if test "${with_sequential+set}" = set; then : 3100 withval=$with_sequential; 3101else 3102 with_sequential="no" 3103fi 3104 3105 3106 3107# Hah - the next is a jolly hape. It arranged that when I build on one of my 3108# own real machines I default to a new and experimental layout for the build 3109# of windows versions, but everybody else (unless their host has a name 3110# matching mine!) should be undisturbed. 3111 3112# I gave disabled this just for a while... I am making other changes and I do 3113# not want this confusion to mess me up. 3114 3115case `uname -n` in 3116*panamintXXX* | *gauguinXXX*) 3117 default_windows_layout="new" 3118 ;; 3119*) 3120 default_windows_layout="old" 3121 ;; 3122esac 3123 3124 3125# Check whether --with-windows_layout was given. 3126if test "${with_windows_layout+set}" = set; then : 3127 withval=$with_windows_layout; 3128else 3129 with_windows_layout="$default_windows_layout" 3130fi 3131 3132 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: default=$default_windows_layout this-layout=$with_windows_layout" >&5 3134$as_echo "$as_me: default=$default_windows_layout this-layout=$with_windows_layout" >&6;} 3135 3136if test "$with_windows_layout" != "new" 3137then 3138 with_windows_layout="old" 3139fi 3140 3141csl_inplace_cygwin_build () 3142{ 3143# The argument here should be x88_64-pc-cygwin 3144 target=$1 3145 forcer=$2 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: in csl_inplace_cygwin_build wwl=$with_windows_layout" >&5 3147$as_echo "$as_me: in csl_inplace_cygwin_build wwl=$with_windows_layout" >&6;} 3148# Find the proper name for the target directory, allowing for --enable-debug 3149# and any other options that may be relevant. 3150 if test "$with_windows_layout" = "new" 3151 then 3152 cygver="cyg64" 3153 build=`eval "$SHELL $abssrcdir/scripts/findhost.sh intel-pc-windows $ac_configure_args --with-cygwin"` 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: target=$target => build=$build/$cygver" >&5 3155$as_echo "$as_me: target=$target => build=$build/$cygver" >&6;} 3156 mkdir -p "$abssrcdir/cslbuild/$build/$cygver" 3157 cp "$abssrcdir/csl/cslbase/Makefile.windows" "$abssrcdir/cslbuild/$build/Makefile" 3158 cp "$abssrcdir/csl/cslbase/stub2020.c" "$abssrcdir/cslbuild/$build/stub2020.c" 3159 cp "$abssrcdir/csl/cslbase/make-cygwin-symlink.c" "$abssrcdir/cslbuild/$build/make-cygwin-symlink.c" 3160 cp "$abssrcdir/csl/cslbase/redpsl.sh" "$abssrcdir/cslbuild/$build/redpsl" 3161 cd "$abssrcdir/cslbuild/$build/$cygver" 3162 else 3163 build=`eval "$SHELL $abssrcdir/scripts/findhost.sh $target $ac_configure_args --with-cygwin"` 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: target=$target => build=$build" >&5 3165$as_echo "$as_me: target=$target => build=$build" >&6;} 3166 mkdir -p "$abssrcdir/cslbuild/$build" 3167 cd "$abssrcdir/cslbuild/$build" 3168 fi 3169 if test "x$CC$CPP$CXX$CXXCPP" != "x" 3170 then 3171 passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\"" 3172 else 3173 passcc="" 3174 fi 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5 3176$as_echo "$as_me: passcc = $passcc" >&6;} 3177 { $as_echo "$as_me:${as_lineno-$LINENO}: host=$host buildmc=$buildmc pass_host=$pass_host" >&5 3178$as_echo "$as_me: host=$host buildmc=$buildmc pass_host=$pass_host" >&6;} 3179 pass_build="--with-build=\"$build\" --with-pslbuild=\"$pslbuild\"" 3180 doconfig="$SHELL $abssrcdir/configure --config-cache $ac_configure_args \ 3181 CC=\"$CC\" CXX=\"$CXX\" \ 3182 STRIP=\"$STRIP\" RANLIB=\"$RANLIB\" \ 3183 $forcer CPPFLAGS=\"$CPPFLAGS\" CFLAGS=\"$CFLAGS\" \ 3184 CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBS=\"$LIBS\" \ 3185 $passcc $pass_build --with-cygwin" 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5 3187$as_echo "$as_me: doconfig = $doconfig" >&6;} 3188 if test "x$with_sequential" = "xno" 3189 then 3190 eval "$doconfig" & 3191 procids="$procids $!" 3192 else 3193 eval "$doconfig" 3194 fi 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: configuration for cygwin on $target complete" >&5 3196$as_echo "$as_me: configuration for cygwin on $target complete" >&6;} 3197 cd "$abssrcdir" 3198} 3199 3200csl_inplace_nativewin_build () 3201{ 3202 buildmc=$1 3203 host=$2 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: CSL inplace for native Windows" >&5 3205$as_echo "$as_me: CSL inplace for native Windows" >&6;} 3206 if test "$with_windows_layout" = "new" 3207 then 3208 winver="win64" 3209 build=`eval "$SHELL $abssrcdir/scripts/findhost.sh intel-pc-windows $ac_configure_args"` 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure using $host in $build/$winver" >&5 3211$as_echo "$as_me: About to configure using $host in $build/$winver" >&6;} 3212 mkdir -p "$abssrcdir/cslbuild/$build/$winver" 3213 cp "$abssrcdir/csl/cslbase/Makefile.windows" "$abssrcdir/cslbuild/$build/Makefile" 3214 cd "$abssrcdir/cslbuild/$build/$winver" 3215 else 3216 build=`eval "$SHELL $abssrcdir/scripts/findhost.sh $target $ac_configure_args"` 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure using $host in $build" >&5 3218$as_echo "$as_me: About to configure using $host in $build" >&6;} 3219 mkdir -p "$abssrcdir/cslbuild/$build" 3220 cd "$abssrcdir/cslbuild/$build" 3221 fi 3222 if test "x$CC$CPP$CXX$CXXCPP" != "x" 3223 then 3224 passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\"" 3225 else 3226 passcc="" 3227 fi 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5 3229$as_echo "$as_me: passcc = $passcc" >&6;} 3230 if test "$with_windows_layout" = "new" 3231 then 3232 cygextra= 3233 else 3234# The Windows version would like to know where to find cygwin variants 3235# at run-time. 3236 cygextra= 3237 ed64="s/.*windows/x86_64-pc-cygwin/; s/.*cygwin/x86_64-pc-cygwin/" 3238 dd64=`echo $build | sed -e "$ed64"` 3239 cygextra="$cygextra --with-cygbuild64=$abssrcdir/cslbuild/$dd64" 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: cygextra = $cygextra" >&5 3241$as_echo "$as_me: cygextra = $cygextra" >&6;} 3242 fi 3243 pass_build="--with-build=\"$build\" --with-pslbuild=\"$pslbuild\"" 3244 doconfig="$SHELL $abssrcdir/configure --config-cache $ac_configure_args \ 3245 CC=\"$CC\" CXX=\"$CXX\" \ 3246 CPPFLAGS=\"$CPPFLAGS\" CFLAGS=\"$CFLAGS\" \ 3247 CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBS=\"$LIBS\" \ 3248 $passcc $cygextra $pass_build --host=$host" 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5 3250$as_echo "$as_me: doconfig = $doconfig" >&6;} 3251 if test "x$with_sequential" = "xno" 3252 then 3253 eval "$doconfig" & 3254 procids="$procids $!" 3255 else 3256 eval "$doconfig" 3257 fi 3258 { $as_echo "$as_me:${as_lineno-$LINENO}: configuration for $target complete" >&5 3259$as_echo "$as_me: configuration for $target complete" >&6;} 3260 cd "$abssrcdir" 3261} 3262 3263csl_inplace_windows_build () 3264{ 3265# If I am on Windows I will configure for variants: 3266# x86_64-pc-cygwin 3267# x86_64-w64-mingw 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: Inplace Windows build..." >&5 3269$as_echo "$as_me: Inplace Windows build..." >&6;} 3270# I am going to suppose that all the compilers I could possibly want 3271# are installed. That means I do not need to put in code here to test that! 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: Configure cygwin64 version" >&5 3273$as_echo "$as_me: Configure cygwin64 version" >&6;} 3274 csl_inplace_cygwin_build "x86_64-pc-cygwin" "--with-cygwin64" 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: Configure windows64 version" >&5 3276$as_echo "$as_me: Configure windows64 version" >&6;} 3277 csl_inplace_nativewin_build "x86_64-pc-windows" "x86_64-w64-mingw32" 3278} 3279 3280csl_inplace_build () 3281{ 3282 mkdir -p "$abssrcdir/cslbuild" 3283# When I configure I will install a default "profile.dat" if there is 3284# not one in place already, but the user can always regenerate a newer 3285# local version of the profile. 3286 if test ! -d "$abssrcdir/cslbuild/generated-c" || 3287 test ! -f "$abssrcdir/cslbuild/generated-c/profile.dat" 3288 then 3289 rm -rf "$abssrcdir/cslbuild/generated-c" 3290 mkdir -p "$abssrcdir/cslbuild/generated-c" 3291 cp -r "$abssrcdir/csl/generated-c" "$abssrcdir/cslbuild" 3292 fi 3293# Now I am configuring for CSL and am doing so from the top directory. 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: CSL in-place build for $build" >&5 3295$as_echo "$as_me: CSL in-place build for $build" >&6;} 3296 case $build in 3297 *cygwin* | *windows* | *mingw*) 3298 csl_inplace_windows_build 3299 ;; 3300 *) 3301# All other platforms come here... 3302 mkdir -p "$abssrcdir/cslbuild/$build" 3303 cd "$abssrcdir/cslbuild/$build" 3304 if test "x$CC$CPP$CXX$CXXCPP" != "x" 3305 then 3306 passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\"" 3307 else 3308 passcc="" 3309 fi 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5 3311$as_echo "$as_me: passcc = $passcc" >&6;} 3312 pass_build="--with-build=\"$build\" --with-pslbuild=\"$pslbuild\"" 3313 doconfig="$SHELL $abssrcdir/configure --config-cache $ac_configure_args \ 3314 CC=\"$CC\" CXX=\"$CXX\" \ 3315 CPPFLAGS=\"$CPPFLAGS\" CFLAGS=\"$CFLAGS\" \ 3316 CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBS=\"$LIBS\" \ 3317 $passcc $pass_build" 3318 { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5 3319$as_echo "$as_me: doconfig = $doconfig" >&6;} 3320 eval "$doconfig" 3321 cd "$abssrcdir" 3322 ;; 3323 esac 3324} 3325 3326psl_inplace_build () 3327{ 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: +++ Will build in $abssrcdir/pslbuild/$build" >&5 3329$as_echo "$as_me: +++ Will build in $abssrcdir/pslbuild/$build" >&6;} 3330 mkdir -p "$abssrcdir/pslbuild/$build" 3331 cd "$abssrcdir/pslbuild/$build" 3332# This passes down any configure arguments to the PSL-specific configuration 3333# but at present I do not expect any to be relevant. 3334 pass_build="--with-build=\"$build\"" 3335 eval "$SHELL $abssrcdir/psl/configure --config-cache $ac_configure_args $pass_build" 3336 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure crlibm" >&5 3338$as_echo "$as_me: About to configure crlibm" >&6;} 3339 builddir=`pwd` 3340 mkdir -p crlibm 3341 cd crlibm 3342 3343 if test "x$CC$CPP$CXX$CXXCPP" != "x" 3344 then 3345 passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\"" 3346 else 3347 passcc="" 3348 fi 3349 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5 3351$as_echo "$as_me: passcc = $passcc" >&6;} 3352 doconfig="$SHELL $abssrcdir/libraries/crlibm/configure --config-cache $filtered \ 3353 $pass_host \ 3354 CPPFLAGS=\"$CPPFLAGS\" \ 3355 CFLAGS=\"$CFLAGS\" \ 3356 CXXFLAGS=\"$CXXFLAGS\" \ 3357 LDFLAGS=\"$LDFLAGS\" \ 3358 $passcc \ 3359 --prefix=\"$builddir\" \ 3360 --libdir=\"$builddir/lib\" \ 3361 --includedir=\"$builddir/include\"" 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5 3363$as_echo "$as_me: doconfig = $doconfig" >&6;} 3364 eval "$doconfig" 3365 cd "$builddir" 3366 3367 { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure libedit" >&5 3368$as_echo "$as_me: About to configure libedit" >&6;} 3369 mkdir -p libedit 3370 cd libedit 3371 doconfig="$SHELL $abssrcdir/libraries/libedit-$LIBEDIT_VERSION/configure --config-cache \ 3372 $nohost \ 3373 CC=\"$CC\" CXX=\"$CXX\" \ 3374 CPPFLAGS=\"$CPPFLAGS\" \ 3375 CFLAGS=\"$CFLAGS\" \ 3376 CXXFLAGS=\"$CXXFLAGS\" \ 3377 LDFLAGS=\"$LDFLAGS\" \ 3378 --enable-widec=yes \ 3379 --prefix=\"$builddir\" \ 3380 --libdir=\"$builddir/lib\" \ 3381 --includedir=\"$builddir/include\"" 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5 3383$as_echo "$as_me: doconfig = $doconfig" >&6;} 3384 eval "$doconfig" 3385 3386 cd "$builddir" 3387 3388 ln -f -s $abssrcdir/libraries/wineditline . 3389 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure redfront" >&5 3391$as_echo "$as_me: About to configure redfront" >&6;} 3392 mkdir -p redfront 3393 cd redfront 3394 3395 doconfig="$SHELL $abssrcdir/generic/newfront/configure --config-cache $nohost \ 3396 CC=\"$CC\" CXX=\"$CXX\" \ 3397 CPPFLAGS=\"$CPPFLAGS\" \ 3398 CFLAGS=\"$CFLAGS\" \ 3399 CXXFLAGS=\"$CXXFLAGS\" \ 3400 LDFLAGS=\"$LDFLAGS\" \ 3401 --prefix=\"$builddir\" \ 3402 --libdir=\"$builddir/lib\" \ 3403 --includedir=\"$builddir/include\"" 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5 3405$as_echo "$as_me: doconfig = $doconfig" >&6;} 3406 eval "$doconfig" 3407 3408 cd "$builddir" 3409} 3410 3411# There are many configure options that are valid or relevant at the 3412# top level but are not needed for sub-configure calls 3413filtered=`$abssrcdir/scripts/filter.sh "$ac_configure_args"` 3414nohost=`$abssrcdir/scripts/nohost.sh "$ac_configure_args"` 3415 3416case $inplace in 3417yes) 3418# Here somebody has run the "configure" script within the top-level 3419# source directory. I really want the build to take place in a 3420# host-specific subdirectory so I will divert things! 3421# When testing if --with-csl etc got passed I should check that the option 3422# NO was NOT given rather than that the option yes was. 3423 if test "x$with_csl" != "xno" 3424 then 3425 csl_inplace_build 3426 fi 3427 if test "x$with_psl" != "xno" 3428 then 3429 psl_inplace_build 3430 fi 3431 wait $procids 3432 printf "All sub-tasks should have completed\n" 3433 exit 0 3434 ;; 3435*) 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: +++ standard build case, abssrcdir = $abssrcdir = \"$abssrcdir\"" >&5 3437$as_echo "$as_me: +++ standard build case, abssrcdir = $abssrcdir = \"$abssrcdir\"" >&6;} 3438 ;; 3439esac 3440 3441# This is where the main bit of this script starts. 3442 3443 3444 3445am__api_version='1.15' 3446 3447# Find a good install program. We prefer a C program (faster), 3448# so one script is as good as another. But avoid the broken or 3449# incompatible versions: 3450# SysV /etc/install, /usr/sbin/install 3451# SunOS /usr/etc/install 3452# IRIX /sbin/install 3453# AIX /bin/install 3454# AmigaOS /C/install, which installs bootblocks on floppy discs 3455# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3456# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3457# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3458# OS/2's system install, which has a completely different semantic 3459# ./install, which can be erroneously created by make from ./install.sh. 3460# Reject install programs that cannot install multiple files. 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3462$as_echo_n "checking for a BSD-compatible install... " >&6; } 3463if test -z "$INSTALL"; then 3464if ${ac_cv_path_install+:} false; then : 3465 $as_echo_n "(cached) " >&6 3466else 3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3468for as_dir in $PATH 3469do 3470 IFS=$as_save_IFS 3471 test -z "$as_dir" && as_dir=. 3472 # Account for people who put trailing slashes in PATH elements. 3473case $as_dir/ in #(( 3474 ./ | .// | /[cC]/* | \ 3475 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3476 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3477 /usr/ucb/* ) ;; 3478 *) 3479 # OSF1 and SCO ODT 3.0 have their own names for install. 3480 # Don't use installbsd from OSF since it installs stuff as root 3481 # by default. 3482 for ac_prog in ginstall scoinst install; do 3483 for ac_exec_ext in '' $ac_executable_extensions; do 3484 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3485 if test $ac_prog = install && 3486 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3487 # AIX install. It has an incompatible calling convention. 3488 : 3489 elif test $ac_prog = install && 3490 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3491 # program-specific install script used by HP pwplus--don't use. 3492 : 3493 else 3494 rm -rf conftest.one conftest.two conftest.dir 3495 echo one > conftest.one 3496 echo two > conftest.two 3497 mkdir conftest.dir 3498 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3499 test -s conftest.one && test -s conftest.two && 3500 test -s conftest.dir/conftest.one && 3501 test -s conftest.dir/conftest.two 3502 then 3503 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3504 break 3 3505 fi 3506 fi 3507 fi 3508 done 3509 done 3510 ;; 3511esac 3512 3513 done 3514IFS=$as_save_IFS 3515 3516rm -rf conftest.one conftest.two conftest.dir 3517 3518fi 3519 if test "${ac_cv_path_install+set}" = set; then 3520 INSTALL=$ac_cv_path_install 3521 else 3522 # As a last resort, use the slow shell script. Don't cache a 3523 # value for INSTALL within a source directory, because that will 3524 # break other packages using the cache if that directory is 3525 # removed, or if the value is a relative name. 3526 INSTALL=$ac_install_sh 3527 fi 3528fi 3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3530$as_echo "$INSTALL" >&6; } 3531 3532# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3533# It thinks the first close brace ends the variable substitution. 3534test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3535 3536test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3537 3538test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3539 3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3541$as_echo_n "checking whether build environment is sane... " >&6; } 3542# Reject unsafe characters in $srcdir or the absolute working directory 3543# name. Accept space and tab only in the latter. 3544am_lf=' 3545' 3546case `pwd` in 3547 *[\\\"\#\$\&\'\`$am_lf]*) 3548 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3549esac 3550case $srcdir in 3551 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3552 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3553esac 3554 3555# Do 'set' in a subshell so we don't clobber the current shell's 3556# arguments. Must try -L first in case configure is actually a 3557# symlink; some systems play weird games with the mod time of symlinks 3558# (eg FreeBSD returns the mod time of the symlink's containing 3559# directory). 3560if ( 3561 am_has_slept=no 3562 for am_try in 1 2; do 3563 echo "timestamp, slept: $am_has_slept" > conftest.file 3564 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3565 if test "$*" = "X"; then 3566 # -L didn't work. 3567 set X `ls -t "$srcdir/configure" conftest.file` 3568 fi 3569 if test "$*" != "X $srcdir/configure conftest.file" \ 3570 && test "$*" != "X conftest.file $srcdir/configure"; then 3571 3572 # If neither matched, then we have a broken ls. This can happen 3573 # if, for instance, CONFIG_SHELL is bash and it inherits a 3574 # broken ls alias from the environment. This has actually 3575 # happened. Such a system could not be considered "sane". 3576 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3577 alias in your environment" "$LINENO" 5 3578 fi 3579 if test "$2" = conftest.file || test $am_try -eq 2; then 3580 break 3581 fi 3582 # Just in case. 3583 sleep 1 3584 am_has_slept=yes 3585 done 3586 test "$2" = conftest.file 3587 ) 3588then 3589 # Ok. 3590 : 3591else 3592 as_fn_error $? "newly created file is older than distributed files! 3593Check your system clock" "$LINENO" 5 3594fi 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3596$as_echo "yes" >&6; } 3597# If we didn't sleep, we still need to ensure time stamps of config.status and 3598# generated files are strictly newer. 3599am_sleep_pid= 3600if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3601 ( sleep 1 ) & 3602 am_sleep_pid=$! 3603fi 3604 3605rm -f conftest.file 3606 3607test "$program_prefix" != NONE && 3608 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3609# Use a double $ so make ignores it. 3610test "$program_suffix" != NONE && 3611 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3612# Double any \ or $. 3613# By default was `s,x,x', remove it if useless. 3614ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3615program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3616 3617# Expand $ac_aux_dir to an absolute path. 3618am_aux_dir=`cd "$ac_aux_dir" && pwd` 3619 3620if test x"${MISSING+set}" != xset; then 3621 case $am_aux_dir in 3622 *\ * | *\ *) 3623 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3624 *) 3625 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3626 esac 3627fi 3628# Use eval to expand $SHELL 3629if eval "$MISSING --is-lightweight"; then 3630 am_missing_run="$MISSING " 3631else 3632 am_missing_run= 3633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3634$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3635fi 3636 3637if test x"${install_sh+set}" != xset; then 3638 case $am_aux_dir in 3639 *\ * | *\ *) 3640 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3641 *) 3642 install_sh="\${SHELL} $am_aux_dir/install-sh" 3643 esac 3644fi 3645 3646# Installed binaries are usually stripped using 'strip' when the user 3647# run "make install-strip". However 'strip' might not be the right 3648# tool to use in cross-compilation environments, therefore Automake 3649# will honor the 'STRIP' environment variable to overrule this program. 3650if test "$cross_compiling" != no; then 3651 if test -n "$ac_tool_prefix"; then 3652 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3653set dummy ${ac_tool_prefix}strip; ac_word=$2 3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3655$as_echo_n "checking for $ac_word... " >&6; } 3656if ${ac_cv_prog_STRIP+:} false; then : 3657 $as_echo_n "(cached) " >&6 3658else 3659 if test -n "$STRIP"; then 3660 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3661else 3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3663for as_dir in $PATH 3664do 3665 IFS=$as_save_IFS 3666 test -z "$as_dir" && as_dir=. 3667 for ac_exec_ext in '' $ac_executable_extensions; do 3668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3669 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3671 break 2 3672 fi 3673done 3674 done 3675IFS=$as_save_IFS 3676 3677fi 3678fi 3679STRIP=$ac_cv_prog_STRIP 3680if test -n "$STRIP"; then 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3682$as_echo "$STRIP" >&6; } 3683else 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3685$as_echo "no" >&6; } 3686fi 3687 3688 3689fi 3690if test -z "$ac_cv_prog_STRIP"; then 3691 ac_ct_STRIP=$STRIP 3692 # Extract the first word of "strip", so it can be a program name with args. 3693set dummy strip; ac_word=$2 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3695$as_echo_n "checking for $ac_word... " >&6; } 3696if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3697 $as_echo_n "(cached) " >&6 3698else 3699 if test -n "$ac_ct_STRIP"; then 3700 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3701else 3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3703for as_dir in $PATH 3704do 3705 IFS=$as_save_IFS 3706 test -z "$as_dir" && as_dir=. 3707 for ac_exec_ext in '' $ac_executable_extensions; do 3708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3709 ac_cv_prog_ac_ct_STRIP="strip" 3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3711 break 2 3712 fi 3713done 3714 done 3715IFS=$as_save_IFS 3716 3717fi 3718fi 3719ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3720if test -n "$ac_ct_STRIP"; then 3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3722$as_echo "$ac_ct_STRIP" >&6; } 3723else 3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3725$as_echo "no" >&6; } 3726fi 3727 3728 if test "x$ac_ct_STRIP" = x; then 3729 STRIP=":" 3730 else 3731 case $cross_compiling:$ac_tool_warned in 3732yes:) 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3735ac_tool_warned=yes ;; 3736esac 3737 STRIP=$ac_ct_STRIP 3738 fi 3739else 3740 STRIP="$ac_cv_prog_STRIP" 3741fi 3742 3743fi 3744INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3745 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3747$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3748if test -z "$MKDIR_P"; then 3749 if ${ac_cv_path_mkdir+:} false; then : 3750 $as_echo_n "(cached) " >&6 3751else 3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3753for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3754do 3755 IFS=$as_save_IFS 3756 test -z "$as_dir" && as_dir=. 3757 for ac_prog in mkdir gmkdir; do 3758 for ac_exec_ext in '' $ac_executable_extensions; do 3759 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3760 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3761 'mkdir (GNU coreutils) '* | \ 3762 'mkdir (coreutils) '* | \ 3763 'mkdir (fileutils) '4.1*) 3764 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3765 break 3;; 3766 esac 3767 done 3768 done 3769 done 3770IFS=$as_save_IFS 3771 3772fi 3773 3774 test -d ./--version && rmdir ./--version 3775 if test "${ac_cv_path_mkdir+set}" = set; then 3776 MKDIR_P="$ac_cv_path_mkdir -p" 3777 else 3778 # As a last resort, use the slow shell script. Don't cache a 3779 # value for MKDIR_P within a source directory, because that will 3780 # break other packages using the cache if that directory is 3781 # removed, or if the value is a relative name. 3782 MKDIR_P="$ac_install_sh -d" 3783 fi 3784fi 3785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3786$as_echo "$MKDIR_P" >&6; } 3787 3788for ac_prog in gawk mawk nawk awk 3789do 3790 # Extract the first word of "$ac_prog", so it can be a program name with args. 3791set dummy $ac_prog; ac_word=$2 3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3793$as_echo_n "checking for $ac_word... " >&6; } 3794if ${ac_cv_prog_AWK+:} false; then : 3795 $as_echo_n "(cached) " >&6 3796else 3797 if test -n "$AWK"; then 3798 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3799else 3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3801for as_dir in $PATH 3802do 3803 IFS=$as_save_IFS 3804 test -z "$as_dir" && as_dir=. 3805 for ac_exec_ext in '' $ac_executable_extensions; do 3806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3807 ac_cv_prog_AWK="$ac_prog" 3808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3809 break 2 3810 fi 3811done 3812 done 3813IFS=$as_save_IFS 3814 3815fi 3816fi 3817AWK=$ac_cv_prog_AWK 3818if test -n "$AWK"; then 3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3820$as_echo "$AWK" >&6; } 3821else 3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3823$as_echo "no" >&6; } 3824fi 3825 3826 3827 test -n "$AWK" && break 3828done 3829 3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3831$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3832set x ${MAKE-make} 3833ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3834if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3835 $as_echo_n "(cached) " >&6 3836else 3837 cat >conftest.make <<\_ACEOF 3838SHELL = /bin/sh 3839all: 3840 @echo '@@@%%%=$(MAKE)=@@@%%%' 3841_ACEOF 3842# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3843case `${MAKE-make} -f conftest.make 2>/dev/null` in 3844 *@@@%%%=?*=@@@%%%*) 3845 eval ac_cv_prog_make_${ac_make}_set=yes;; 3846 *) 3847 eval ac_cv_prog_make_${ac_make}_set=no;; 3848esac 3849rm -f conftest.make 3850fi 3851if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3853$as_echo "yes" >&6; } 3854 SET_MAKE= 3855else 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3857$as_echo "no" >&6; } 3858 SET_MAKE="MAKE=${MAKE-make}" 3859fi 3860 3861rm -rf .tst 2>/dev/null 3862mkdir .tst 2>/dev/null 3863if test -d .tst; then 3864 am__leading_dot=. 3865else 3866 am__leading_dot=_ 3867fi 3868rmdir .tst 2>/dev/null 3869 3870# Check whether --enable-silent-rules was given. 3871if test "${enable_silent_rules+set}" = set; then : 3872 enableval=$enable_silent_rules; 3873fi 3874 3875case $enable_silent_rules in # ((( 3876 yes) AM_DEFAULT_VERBOSITY=0;; 3877 no) AM_DEFAULT_VERBOSITY=1;; 3878 *) AM_DEFAULT_VERBOSITY=1;; 3879esac 3880am_make=${MAKE-make} 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3882$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3883if ${am_cv_make_support_nested_variables+:} false; then : 3884 $as_echo_n "(cached) " >&6 3885else 3886 if $as_echo 'TRUE=$(BAR$(V)) 3887BAR0=false 3888BAR1=true 3889V=1 3890am__doit: 3891 @$(TRUE) 3892.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3893 am_cv_make_support_nested_variables=yes 3894else 3895 am_cv_make_support_nested_variables=no 3896fi 3897fi 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3899$as_echo "$am_cv_make_support_nested_variables" >&6; } 3900if test $am_cv_make_support_nested_variables = yes; then 3901 AM_V='$(V)' 3902 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3903else 3904 AM_V=$AM_DEFAULT_VERBOSITY 3905 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3906fi 3907AM_BACKSLASH='\' 3908 3909if test "`cd $srcdir && pwd`" != "`pwd`"; then 3910 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3911 # is not polluted with repeated "-I." 3912 am__isrc=' -I$(srcdir)' 3913 # test to see if srcdir already configured 3914 if test -f $srcdir/config.status; then 3915 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3916 fi 3917fi 3918 3919# test whether we have cygpath 3920if test -z "$CYGPATH_W"; then 3921 if (cygpath --version) >/dev/null 2>/dev/null; then 3922 CYGPATH_W='cygpath -w' 3923 else 3924 CYGPATH_W=echo 3925 fi 3926fi 3927 3928 3929# Define the identity of the package. 3930 PACKAGE='reduce' 3931 VERSION='from SourceForge' 3932 3933 3934cat >>confdefs.h <<_ACEOF 3935#define PACKAGE "$PACKAGE" 3936_ACEOF 3937 3938 3939cat >>confdefs.h <<_ACEOF 3940#define VERSION "$VERSION" 3941_ACEOF 3942 3943# Some tools Automake needs. 3944 3945ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3946 3947 3948AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3949 3950 3951AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3952 3953 3954AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3955 3956 3957MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3958 3959# For better backward compatibility. To be removed once Automake 1.9.x 3960# dies out for good. For more background, see: 3961# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3962# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3963mkdir_p='$(MKDIR_P)' 3964 3965# We need awk for the "check" target (and possibly the TAP driver). The 3966# system "awk" is bad on some platforms. 3967# Always define AMTAR for backward compatibility. Yes, it's still used 3968# in the wild :-( We should find a proper way to deprecate it ... 3969AMTAR='$${TAR-tar}' 3970 3971 3972# We'll loop over all known methods to create a tar archive until one works. 3973_am_tools='gnutar pax cpio none' 3974 3975am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3976 3977 3978 3979 3980 3981 3982# POSIX will say in a future version that running "rm -f" with no argument 3983# is OK; and we want to be able to make that assumption in our Makefile 3984# recipes. So use an aggressive probe to check that the usage we want is 3985# actually supported "in the wild" to an acceptable degree. 3986# See automake bug#10828. 3987# To make any issue more visible, cause the running configure to be aborted 3988# by default if the 'rm' program in use doesn't match our expectations; the 3989# user can still override this though. 3990if rm -f && rm -fr && rm -rf; then : OK; else 3991 cat >&2 <<'END' 3992Oops! 3993 3994Your 'rm' program seems unable to run without file operands specified 3995on the command line, even when the '-f' option is present. This is contrary 3996to the behaviour of most rm programs out there, and not conforming with 3997the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3998 3999Please tell bug-automake@gnu.org about your system, including the value 4000of your $PATH and any error possibly output before this message. This 4001can help us improve future automake versions. 4002 4003END 4004 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4005 echo 'Configuration will proceed anyway, since you have set the' >&2 4006 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4007 echo >&2 4008 else 4009 cat >&2 <<'END' 4010Aborting the configuration process, to ensure you take notice of the issue. 4011 4012You can download and install GNU coreutils to get an 'rm' implementation 4013that behaves properly: <http://www.gnu.org/software/coreutils/>. 4014 4015If you want to complete the configuration process using your problematic 4016'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4017to "yes", and re-run configure. 4018 4019END 4020 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4021 fi 4022fi 4023 4024case `pwd` in 4025 *\ * | *\ *) 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4027$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4028esac 4029 4030 4031 4032macro_version='2.4.6' 4033macro_revision='2.4.6' 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047ltmain=$ac_aux_dir/ltmain.sh 4048 4049# Backslashify metacharacters that are still active within 4050# double-quoted strings. 4051sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4052 4053# Same as above, but do not quote variable references. 4054double_quote_subst='s/\(["`\\]\)/\\\1/g' 4055 4056# Sed substitution to delay expansion of an escaped shell variable in a 4057# double_quote_subst'ed string. 4058delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4059 4060# Sed substitution to delay expansion of an escaped single quote. 4061delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4062 4063# Sed substitution to avoid accidental globbing in evaled expressions 4064no_glob_subst='s/\*/\\\*/g' 4065 4066ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4067ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4068ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4069 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4071$as_echo_n "checking how to print strings... " >&6; } 4072# Test print first, because it will be a builtin if present. 4073if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4074 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4075 ECHO='print -r --' 4076elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4077 ECHO='printf %s\n' 4078else 4079 # Use this function as a fallback that always works. 4080 func_fallback_echo () 4081 { 4082 eval 'cat <<_LTECHO_EOF 4083$1 4084_LTECHO_EOF' 4085 } 4086 ECHO='func_fallback_echo' 4087fi 4088 4089# func_echo_all arg... 4090# Invoke $ECHO with all args, space-separated. 4091func_echo_all () 4092{ 4093 $ECHO "" 4094} 4095 4096case $ECHO in 4097 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4098$as_echo "printf" >&6; } ;; 4099 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4100$as_echo "print -r" >&6; } ;; 4101 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4102$as_echo "cat" >&6; } ;; 4103esac 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118DEPDIR="${am__leading_dot}deps" 4119 4120ac_config_commands="$ac_config_commands depfiles" 4121 4122 4123am_make=${MAKE-make} 4124cat > confinc << 'END' 4125am__doit: 4126 @echo this is the am__doit target 4127.PHONY: am__doit 4128END 4129# If we don't find an include directive, just comment out the code. 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4131$as_echo_n "checking for style of include used by $am_make... " >&6; } 4132am__include="#" 4133am__quote= 4134_am_result=none 4135# First try GNU make style include. 4136echo "include confinc" > confmf 4137# Ignore all kinds of additional output from 'make'. 4138case `$am_make -s -f confmf 2> /dev/null` in #( 4139*the\ am__doit\ target*) 4140 am__include=include 4141 am__quote= 4142 _am_result=GNU 4143 ;; 4144esac 4145# Now try BSD make style include. 4146if test "$am__include" = "#"; then 4147 echo '.include "confinc"' > confmf 4148 case `$am_make -s -f confmf 2> /dev/null` in #( 4149 *the\ am__doit\ target*) 4150 am__include=.include 4151 am__quote="\"" 4152 _am_result=BSD 4153 ;; 4154 esac 4155fi 4156 4157 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4159$as_echo "$_am_result" >&6; } 4160rm -f confinc confmf 4161 4162# Check whether --enable-dependency-tracking was given. 4163if test "${enable_dependency_tracking+set}" = set; then : 4164 enableval=$enable_dependency_tracking; 4165fi 4166 4167if test "x$enable_dependency_tracking" != xno; then 4168 am_depcomp="$ac_aux_dir/depcomp" 4169 AMDEPBACKSLASH='\' 4170 am__nodep='_no' 4171fi 4172 if test "x$enable_dependency_tracking" != xno; then 4173 AMDEP_TRUE= 4174 AMDEP_FALSE='#' 4175else 4176 AMDEP_TRUE='#' 4177 AMDEP_FALSE= 4178fi 4179 4180 4181ac_ext=c 4182ac_cpp='$CPP $CPPFLAGS' 4183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4185ac_compiler_gnu=$ac_cv_c_compiler_gnu 4186if test -n "$ac_tool_prefix"; then 4187 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4188set dummy ${ac_tool_prefix}gcc; ac_word=$2 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4190$as_echo_n "checking for $ac_word... " >&6; } 4191if ${ac_cv_prog_CC+:} false; then : 4192 $as_echo_n "(cached) " >&6 4193else 4194 if test -n "$CC"; then 4195 ac_cv_prog_CC="$CC" # Let the user override the test. 4196else 4197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4198for as_dir in $PATH 4199do 4200 IFS=$as_save_IFS 4201 test -z "$as_dir" && as_dir=. 4202 for ac_exec_ext in '' $ac_executable_extensions; do 4203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4204 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4206 break 2 4207 fi 4208done 4209 done 4210IFS=$as_save_IFS 4211 4212fi 4213fi 4214CC=$ac_cv_prog_CC 4215if test -n "$CC"; then 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4217$as_echo "$CC" >&6; } 4218else 4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4220$as_echo "no" >&6; } 4221fi 4222 4223 4224fi 4225if test -z "$ac_cv_prog_CC"; then 4226 ac_ct_CC=$CC 4227 # Extract the first word of "gcc", so it can be a program name with args. 4228set dummy gcc; ac_word=$2 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4230$as_echo_n "checking for $ac_word... " >&6; } 4231if ${ac_cv_prog_ac_ct_CC+:} false; then : 4232 $as_echo_n "(cached) " >&6 4233else 4234 if test -n "$ac_ct_CC"; then 4235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4236else 4237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4238for as_dir in $PATH 4239do 4240 IFS=$as_save_IFS 4241 test -z "$as_dir" && as_dir=. 4242 for ac_exec_ext in '' $ac_executable_extensions; do 4243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4244 ac_cv_prog_ac_ct_CC="gcc" 4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4246 break 2 4247 fi 4248done 4249 done 4250IFS=$as_save_IFS 4251 4252fi 4253fi 4254ac_ct_CC=$ac_cv_prog_ac_ct_CC 4255if test -n "$ac_ct_CC"; then 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4257$as_echo "$ac_ct_CC" >&6; } 4258else 4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4260$as_echo "no" >&6; } 4261fi 4262 4263 if test "x$ac_ct_CC" = x; then 4264 CC="" 4265 else 4266 case $cross_compiling:$ac_tool_warned in 4267yes:) 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4270ac_tool_warned=yes ;; 4271esac 4272 CC=$ac_ct_CC 4273 fi 4274else 4275 CC="$ac_cv_prog_CC" 4276fi 4277 4278if test -z "$CC"; then 4279 if test -n "$ac_tool_prefix"; then 4280 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4281set dummy ${ac_tool_prefix}cc; ac_word=$2 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4283$as_echo_n "checking for $ac_word... " >&6; } 4284if ${ac_cv_prog_CC+:} false; then : 4285 $as_echo_n "(cached) " >&6 4286else 4287 if test -n "$CC"; then 4288 ac_cv_prog_CC="$CC" # Let the user override the test. 4289else 4290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4291for as_dir in $PATH 4292do 4293 IFS=$as_save_IFS 4294 test -z "$as_dir" && as_dir=. 4295 for ac_exec_ext in '' $ac_executable_extensions; do 4296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4297 ac_cv_prog_CC="${ac_tool_prefix}cc" 4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4299 break 2 4300 fi 4301done 4302 done 4303IFS=$as_save_IFS 4304 4305fi 4306fi 4307CC=$ac_cv_prog_CC 4308if test -n "$CC"; then 4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4310$as_echo "$CC" >&6; } 4311else 4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4313$as_echo "no" >&6; } 4314fi 4315 4316 4317 fi 4318fi 4319if test -z "$CC"; then 4320 # Extract the first word of "cc", so it can be a program name with args. 4321set dummy cc; ac_word=$2 4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4323$as_echo_n "checking for $ac_word... " >&6; } 4324if ${ac_cv_prog_CC+:} false; then : 4325 $as_echo_n "(cached) " >&6 4326else 4327 if test -n "$CC"; then 4328 ac_cv_prog_CC="$CC" # Let the user override the test. 4329else 4330 ac_prog_rejected=no 4331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4332for as_dir in $PATH 4333do 4334 IFS=$as_save_IFS 4335 test -z "$as_dir" && as_dir=. 4336 for ac_exec_ext in '' $ac_executable_extensions; do 4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4338 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4339 ac_prog_rejected=yes 4340 continue 4341 fi 4342 ac_cv_prog_CC="cc" 4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4344 break 2 4345 fi 4346done 4347 done 4348IFS=$as_save_IFS 4349 4350if test $ac_prog_rejected = yes; then 4351 # We found a bogon in the path, so make sure we never use it. 4352 set dummy $ac_cv_prog_CC 4353 shift 4354 if test $# != 0; then 4355 # We chose a different compiler from the bogus one. 4356 # However, it has the same basename, so the bogon will be chosen 4357 # first if we set CC to just the basename; use the full file name. 4358 shift 4359 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4360 fi 4361fi 4362fi 4363fi 4364CC=$ac_cv_prog_CC 4365if test -n "$CC"; then 4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4367$as_echo "$CC" >&6; } 4368else 4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4370$as_echo "no" >&6; } 4371fi 4372 4373 4374fi 4375if test -z "$CC"; then 4376 if test -n "$ac_tool_prefix"; then 4377 for ac_prog in cl.exe 4378 do 4379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4380set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4382$as_echo_n "checking for $ac_word... " >&6; } 4383if ${ac_cv_prog_CC+:} false; then : 4384 $as_echo_n "(cached) " >&6 4385else 4386 if test -n "$CC"; then 4387 ac_cv_prog_CC="$CC" # Let the user override the test. 4388else 4389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4390for as_dir in $PATH 4391do 4392 IFS=$as_save_IFS 4393 test -z "$as_dir" && as_dir=. 4394 for ac_exec_ext in '' $ac_executable_extensions; do 4395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4396 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4398 break 2 4399 fi 4400done 4401 done 4402IFS=$as_save_IFS 4403 4404fi 4405fi 4406CC=$ac_cv_prog_CC 4407if test -n "$CC"; then 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4409$as_echo "$CC" >&6; } 4410else 4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4412$as_echo "no" >&6; } 4413fi 4414 4415 4416 test -n "$CC" && break 4417 done 4418fi 4419if test -z "$CC"; then 4420 ac_ct_CC=$CC 4421 for ac_prog in cl.exe 4422do 4423 # Extract the first word of "$ac_prog", so it can be a program name with args. 4424set dummy $ac_prog; ac_word=$2 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4426$as_echo_n "checking for $ac_word... " >&6; } 4427if ${ac_cv_prog_ac_ct_CC+:} false; then : 4428 $as_echo_n "(cached) " >&6 4429else 4430 if test -n "$ac_ct_CC"; then 4431 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4432else 4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4434for as_dir in $PATH 4435do 4436 IFS=$as_save_IFS 4437 test -z "$as_dir" && as_dir=. 4438 for ac_exec_ext in '' $ac_executable_extensions; do 4439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4440 ac_cv_prog_ac_ct_CC="$ac_prog" 4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4442 break 2 4443 fi 4444done 4445 done 4446IFS=$as_save_IFS 4447 4448fi 4449fi 4450ac_ct_CC=$ac_cv_prog_ac_ct_CC 4451if test -n "$ac_ct_CC"; then 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4453$as_echo "$ac_ct_CC" >&6; } 4454else 4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4456$as_echo "no" >&6; } 4457fi 4458 4459 4460 test -n "$ac_ct_CC" && break 4461done 4462 4463 if test "x$ac_ct_CC" = x; then 4464 CC="" 4465 else 4466 case $cross_compiling:$ac_tool_warned in 4467yes:) 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4470ac_tool_warned=yes ;; 4471esac 4472 CC=$ac_ct_CC 4473 fi 4474fi 4475 4476fi 4477 4478 4479test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4481as_fn_error $? "no acceptable C compiler found in \$PATH 4482See \`config.log' for more details" "$LINENO" 5; } 4483 4484# Provide some information about the compiler. 4485$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4486set X $ac_compile 4487ac_compiler=$2 4488for ac_option in --version -v -V -qversion; do 4489 { { ac_try="$ac_compiler $ac_option >&5" 4490case "(($ac_try" in 4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4492 *) ac_try_echo=$ac_try;; 4493esac 4494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4495$as_echo "$ac_try_echo"; } >&5 4496 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4497 ac_status=$? 4498 if test -s conftest.err; then 4499 sed '10a\ 4500... rest of stderr output deleted ... 4501 10q' conftest.err >conftest.er1 4502 cat conftest.er1 >&5 4503 fi 4504 rm -f conftest.er1 conftest.err 4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4506 test $ac_status = 0; } 4507done 4508 4509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4510/* end confdefs.h. */ 4511 4512int 4513main () 4514{ 4515 4516 ; 4517 return 0; 4518} 4519_ACEOF 4520ac_clean_files_save=$ac_clean_files 4521ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4522# Try to create an executable without -o first, disregard a.out. 4523# It will help us diagnose broken compilers, and finding out an intuition 4524# of exeext. 4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4526$as_echo_n "checking whether the C compiler works... " >&6; } 4527ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4528 4529# The possible output files: 4530ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4531 4532ac_rmfiles= 4533for ac_file in $ac_files 4534do 4535 case $ac_file in 4536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4537 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4538 esac 4539done 4540rm -f $ac_rmfiles 4541 4542if { { ac_try="$ac_link_default" 4543case "(($ac_try" in 4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4545 *) ac_try_echo=$ac_try;; 4546esac 4547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4548$as_echo "$ac_try_echo"; } >&5 4549 (eval "$ac_link_default") 2>&5 4550 ac_status=$? 4551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4552 test $ac_status = 0; }; then : 4553 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4554# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4555# in a Makefile. We should not override ac_cv_exeext if it was cached, 4556# so that the user can short-circuit this test for compilers unknown to 4557# Autoconf. 4558for ac_file in $ac_files '' 4559do 4560 test -f "$ac_file" || continue 4561 case $ac_file in 4562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4563 ;; 4564 [ab].out ) 4565 # We found the default executable, but exeext='' is most 4566 # certainly right. 4567 break;; 4568 *.* ) 4569 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4570 then :; else 4571 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4572 fi 4573 # We set ac_cv_exeext here because the later test for it is not 4574 # safe: cross compilers may not add the suffix if given an `-o' 4575 # argument, so we may need to know it at that point already. 4576 # Even if this section looks crufty: it has the advantage of 4577 # actually working. 4578 break;; 4579 * ) 4580 break;; 4581 esac 4582done 4583test "$ac_cv_exeext" = no && ac_cv_exeext= 4584 4585else 4586 ac_file='' 4587fi 4588if test -z "$ac_file"; then : 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4590$as_echo "no" >&6; } 4591$as_echo "$as_me: failed program was:" >&5 4592sed 's/^/| /' conftest.$ac_ext >&5 4593 4594{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4596as_fn_error 77 "C compiler cannot create executables 4597See \`config.log' for more details" "$LINENO" 5; } 4598else 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4600$as_echo "yes" >&6; } 4601fi 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4603$as_echo_n "checking for C compiler default output file name... " >&6; } 4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4605$as_echo "$ac_file" >&6; } 4606ac_exeext=$ac_cv_exeext 4607 4608rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4609ac_clean_files=$ac_clean_files_save 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4611$as_echo_n "checking for suffix of executables... " >&6; } 4612if { { ac_try="$ac_link" 4613case "(($ac_try" in 4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4615 *) ac_try_echo=$ac_try;; 4616esac 4617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4618$as_echo "$ac_try_echo"; } >&5 4619 (eval "$ac_link") 2>&5 4620 ac_status=$? 4621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4622 test $ac_status = 0; }; then : 4623 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4624# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4625# work properly (i.e., refer to `conftest.exe'), while it won't with 4626# `rm'. 4627for ac_file in conftest.exe conftest conftest.*; do 4628 test -f "$ac_file" || continue 4629 case $ac_file in 4630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4631 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4632 break;; 4633 * ) break;; 4634 esac 4635done 4636else 4637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4639as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4640See \`config.log' for more details" "$LINENO" 5; } 4641fi 4642rm -f conftest conftest$ac_cv_exeext 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4644$as_echo "$ac_cv_exeext" >&6; } 4645 4646rm -f conftest.$ac_ext 4647EXEEXT=$ac_cv_exeext 4648ac_exeext=$EXEEXT 4649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4650/* end confdefs.h. */ 4651#include <stdio.h> 4652int 4653main () 4654{ 4655FILE *f = fopen ("conftest.out", "w"); 4656 return ferror (f) || fclose (f) != 0; 4657 4658 ; 4659 return 0; 4660} 4661_ACEOF 4662ac_clean_files="$ac_clean_files conftest.out" 4663# Check that the compiler produces executables we can run. If not, either 4664# the compiler is broken, or we cross compile. 4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4666$as_echo_n "checking whether we are cross compiling... " >&6; } 4667if test "$cross_compiling" != yes; then 4668 { { ac_try="$ac_link" 4669case "(($ac_try" in 4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4671 *) ac_try_echo=$ac_try;; 4672esac 4673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4674$as_echo "$ac_try_echo"; } >&5 4675 (eval "$ac_link") 2>&5 4676 ac_status=$? 4677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4678 test $ac_status = 0; } 4679 if { ac_try='./conftest$ac_cv_exeext' 4680 { { case "(($ac_try" in 4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4682 *) ac_try_echo=$ac_try;; 4683esac 4684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4685$as_echo "$ac_try_echo"; } >&5 4686 (eval "$ac_try") 2>&5 4687 ac_status=$? 4688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4689 test $ac_status = 0; }; }; then 4690 cross_compiling=no 4691 else 4692 if test "$cross_compiling" = maybe; then 4693 cross_compiling=yes 4694 else 4695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4697as_fn_error $? "cannot run C compiled programs. 4698If you meant to cross compile, use \`--host'. 4699See \`config.log' for more details" "$LINENO" 5; } 4700 fi 4701 fi 4702fi 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4704$as_echo "$cross_compiling" >&6; } 4705 4706rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4707ac_clean_files=$ac_clean_files_save 4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4709$as_echo_n "checking for suffix of object files... " >&6; } 4710if ${ac_cv_objext+:} false; then : 4711 $as_echo_n "(cached) " >&6 4712else 4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4714/* end confdefs.h. */ 4715 4716int 4717main () 4718{ 4719 4720 ; 4721 return 0; 4722} 4723_ACEOF 4724rm -f conftest.o conftest.obj 4725if { { ac_try="$ac_compile" 4726case "(($ac_try" in 4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4728 *) ac_try_echo=$ac_try;; 4729esac 4730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4731$as_echo "$ac_try_echo"; } >&5 4732 (eval "$ac_compile") 2>&5 4733 ac_status=$? 4734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4735 test $ac_status = 0; }; then : 4736 for ac_file in conftest.o conftest.obj conftest.*; do 4737 test -f "$ac_file" || continue; 4738 case $ac_file in 4739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4740 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4741 break;; 4742 esac 4743done 4744else 4745 $as_echo "$as_me: failed program was:" >&5 4746sed 's/^/| /' conftest.$ac_ext >&5 4747 4748{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4750as_fn_error $? "cannot compute suffix of object files: cannot compile 4751See \`config.log' for more details" "$LINENO" 5; } 4752fi 4753rm -f conftest.$ac_cv_objext conftest.$ac_ext 4754fi 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4756$as_echo "$ac_cv_objext" >&6; } 4757OBJEXT=$ac_cv_objext 4758ac_objext=$OBJEXT 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4760$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4761if ${ac_cv_c_compiler_gnu+:} false; then : 4762 $as_echo_n "(cached) " >&6 4763else 4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4765/* end confdefs.h. */ 4766 4767int 4768main () 4769{ 4770#ifndef __GNUC__ 4771 choke me 4772#endif 4773 4774 ; 4775 return 0; 4776} 4777_ACEOF 4778if ac_fn_c_try_compile "$LINENO"; then : 4779 ac_compiler_gnu=yes 4780else 4781 ac_compiler_gnu=no 4782fi 4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4784ac_cv_c_compiler_gnu=$ac_compiler_gnu 4785 4786fi 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4788$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4789if test $ac_compiler_gnu = yes; then 4790 GCC=yes 4791else 4792 GCC= 4793fi 4794ac_test_CFLAGS=${CFLAGS+set} 4795ac_save_CFLAGS=$CFLAGS 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4797$as_echo_n "checking whether $CC accepts -g... " >&6; } 4798if ${ac_cv_prog_cc_g+:} false; then : 4799 $as_echo_n "(cached) " >&6 4800else 4801 ac_save_c_werror_flag=$ac_c_werror_flag 4802 ac_c_werror_flag=yes 4803 ac_cv_prog_cc_g=no 4804 CFLAGS="-g" 4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4806/* end confdefs.h. */ 4807 4808int 4809main () 4810{ 4811 4812 ; 4813 return 0; 4814} 4815_ACEOF 4816if ac_fn_c_try_compile "$LINENO"; then : 4817 ac_cv_prog_cc_g=yes 4818else 4819 CFLAGS="" 4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4821/* end confdefs.h. */ 4822 4823int 4824main () 4825{ 4826 4827 ; 4828 return 0; 4829} 4830_ACEOF 4831if ac_fn_c_try_compile "$LINENO"; then : 4832 4833else 4834 ac_c_werror_flag=$ac_save_c_werror_flag 4835 CFLAGS="-g" 4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4837/* end confdefs.h. */ 4838 4839int 4840main () 4841{ 4842 4843 ; 4844 return 0; 4845} 4846_ACEOF 4847if ac_fn_c_try_compile "$LINENO"; then : 4848 ac_cv_prog_cc_g=yes 4849fi 4850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4851fi 4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4853fi 4854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4855 ac_c_werror_flag=$ac_save_c_werror_flag 4856fi 4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4858$as_echo "$ac_cv_prog_cc_g" >&6; } 4859if test "$ac_test_CFLAGS" = set; then 4860 CFLAGS=$ac_save_CFLAGS 4861elif test $ac_cv_prog_cc_g = yes; then 4862 if test "$GCC" = yes; then 4863 CFLAGS="-g -O2" 4864 else 4865 CFLAGS="-g" 4866 fi 4867else 4868 if test "$GCC" = yes; then 4869 CFLAGS="-O2" 4870 else 4871 CFLAGS= 4872 fi 4873fi 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4875$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4876if ${ac_cv_prog_cc_c89+:} false; then : 4877 $as_echo_n "(cached) " >&6 4878else 4879 ac_cv_prog_cc_c89=no 4880ac_save_CC=$CC 4881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4882/* end confdefs.h. */ 4883#include <stdarg.h> 4884#include <stdio.h> 4885struct stat; 4886/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4887struct buf { int x; }; 4888FILE * (*rcsopen) (struct buf *, struct stat *, int); 4889static char *e (p, i) 4890 char **p; 4891 int i; 4892{ 4893 return p[i]; 4894} 4895static char *f (char * (*g) (char **, int), char **p, ...) 4896{ 4897 char *s; 4898 va_list v; 4899 va_start (v,p); 4900 s = g (p, va_arg (v,int)); 4901 va_end (v); 4902 return s; 4903} 4904 4905/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4906 function prototypes and stuff, but not '\xHH' hex character constants. 4907 These don't provoke an error unfortunately, instead are silently treated 4908 as 'x'. The following induces an error, until -std is added to get 4909 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4910 array size at least. It's necessary to write '\x00'==0 to get something 4911 that's true only with -std. */ 4912int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4913 4914/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4915 inside strings and character constants. */ 4916#define FOO(x) 'x' 4917int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4918 4919int test (int i, double x); 4920struct s1 {int (*f) (int a);}; 4921struct s2 {int (*f) (double a);}; 4922int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4923int argc; 4924char **argv; 4925int 4926main () 4927{ 4928return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4929 ; 4930 return 0; 4931} 4932_ACEOF 4933for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4934 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4935do 4936 CC="$ac_save_CC $ac_arg" 4937 if ac_fn_c_try_compile "$LINENO"; then : 4938 ac_cv_prog_cc_c89=$ac_arg 4939fi 4940rm -f core conftest.err conftest.$ac_objext 4941 test "x$ac_cv_prog_cc_c89" != "xno" && break 4942done 4943rm -f conftest.$ac_ext 4944CC=$ac_save_CC 4945 4946fi 4947# AC_CACHE_VAL 4948case "x$ac_cv_prog_cc_c89" in 4949 x) 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4951$as_echo "none needed" >&6; } ;; 4952 xno) 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4954$as_echo "unsupported" >&6; } ;; 4955 *) 4956 CC="$CC $ac_cv_prog_cc_c89" 4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4958$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4959esac 4960if test "x$ac_cv_prog_cc_c89" != xno; then : 4961 4962fi 4963 4964ac_ext=c 4965ac_cpp='$CPP $CPPFLAGS' 4966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4968ac_compiler_gnu=$ac_cv_c_compiler_gnu 4969 4970ac_ext=c 4971ac_cpp='$CPP $CPPFLAGS' 4972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4974ac_compiler_gnu=$ac_cv_c_compiler_gnu 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4976$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4977if ${am_cv_prog_cc_c_o+:} false; then : 4978 $as_echo_n "(cached) " >&6 4979else 4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4981/* end confdefs.h. */ 4982 4983int 4984main () 4985{ 4986 4987 ; 4988 return 0; 4989} 4990_ACEOF 4991 # Make sure it works both with $CC and with simple cc. 4992 # Following AC_PROG_CC_C_O, we do the test twice because some 4993 # compilers refuse to overwrite an existing .o file with -o, 4994 # though they will create one. 4995 am_cv_prog_cc_c_o=yes 4996 for am_i in 1 2; do 4997 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4998 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4999 ac_status=$? 5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5001 (exit $ac_status); } \ 5002 && test -f conftest2.$ac_objext; then 5003 : OK 5004 else 5005 am_cv_prog_cc_c_o=no 5006 break 5007 fi 5008 done 5009 rm -f core conftest* 5010 unset am_i 5011fi 5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5013$as_echo "$am_cv_prog_cc_c_o" >&6; } 5014if test "$am_cv_prog_cc_c_o" != yes; then 5015 # Losing compiler, so override with the script. 5016 # FIXME: It is wrong to rewrite CC. 5017 # But if we don't then we get into trouble of one sort or another. 5018 # A longer-term fix would be to have automake use am__CC in this case, 5019 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5020 CC="$am_aux_dir/compile $CC" 5021fi 5022ac_ext=c 5023ac_cpp='$CPP $CPPFLAGS' 5024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5026ac_compiler_gnu=$ac_cv_c_compiler_gnu 5027 5028 5029depcc="$CC" am_compiler_list= 5030 5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5032$as_echo_n "checking dependency style of $depcc... " >&6; } 5033if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5034 $as_echo_n "(cached) " >&6 5035else 5036 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5037 # We make a subdir and do the tests there. Otherwise we can end up 5038 # making bogus files that we don't know about and never remove. For 5039 # instance it was reported that on HP-UX the gcc test will end up 5040 # making a dummy file named 'D' -- because '-MD' means "put the output 5041 # in D". 5042 rm -rf conftest.dir 5043 mkdir conftest.dir 5044 # Copy depcomp to subdir because otherwise we won't find it if we're 5045 # using a relative directory. 5046 cp "$am_depcomp" conftest.dir 5047 cd conftest.dir 5048 # We will build objects and dependencies in a subdirectory because 5049 # it helps to detect inapplicable dependency modes. For instance 5050 # both Tru64's cc and ICC support -MD to output dependencies as a 5051 # side effect of compilation, but ICC will put the dependencies in 5052 # the current directory while Tru64 will put them in the object 5053 # directory. 5054 mkdir sub 5055 5056 am_cv_CC_dependencies_compiler_type=none 5057 if test "$am_compiler_list" = ""; then 5058 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5059 fi 5060 am__universal=false 5061 case " $depcc " in #( 5062 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5063 esac 5064 5065 for depmode in $am_compiler_list; do 5066 # Setup a source with many dependencies, because some compilers 5067 # like to wrap large dependency lists on column 80 (with \), and 5068 # we should not choose a depcomp mode which is confused by this. 5069 # 5070 # We need to recreate these files for each test, as the compiler may 5071 # overwrite some of them when testing with obscure command lines. 5072 # This happens at least with the AIX C compiler. 5073 : > sub/conftest.c 5074 for i in 1 2 3 4 5 6; do 5075 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5076 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5077 # Solaris 10 /bin/sh. 5078 echo '/* dummy */' > sub/conftst$i.h 5079 done 5080 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5081 5082 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5083 # mode. It turns out that the SunPro C++ compiler does not properly 5084 # handle '-M -o', and we need to detect this. Also, some Intel 5085 # versions had trouble with output in subdirs. 5086 am__obj=sub/conftest.${OBJEXT-o} 5087 am__minus_obj="-o $am__obj" 5088 case $depmode in 5089 gcc) 5090 # This depmode causes a compiler race in universal mode. 5091 test "$am__universal" = false || continue 5092 ;; 5093 nosideeffect) 5094 # After this tag, mechanisms are not by side-effect, so they'll 5095 # only be used when explicitly requested. 5096 if test "x$enable_dependency_tracking" = xyes; then 5097 continue 5098 else 5099 break 5100 fi 5101 ;; 5102 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5103 # This compiler won't grok '-c -o', but also, the minuso test has 5104 # not run yet. These depmodes are late enough in the game, and 5105 # so weak that their functioning should not be impacted. 5106 am__obj=conftest.${OBJEXT-o} 5107 am__minus_obj= 5108 ;; 5109 none) break ;; 5110 esac 5111 if depmode=$depmode \ 5112 source=sub/conftest.c object=$am__obj \ 5113 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5114 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5115 >/dev/null 2>conftest.err && 5116 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5117 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5118 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5119 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5120 # icc doesn't choke on unknown options, it will just issue warnings 5121 # or remarks (even with -Werror). So we grep stderr for any message 5122 # that says an option was ignored or not supported. 5123 # When given -MP, icc 7.0 and 7.1 complain thusly: 5124 # icc: Command line warning: ignoring option '-M'; no argument required 5125 # The diagnosis changed in icc 8.0: 5126 # icc: Command line remark: option '-MP' not supported 5127 if (grep 'ignoring option' conftest.err || 5128 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5129 am_cv_CC_dependencies_compiler_type=$depmode 5130 break 5131 fi 5132 fi 5133 done 5134 5135 cd .. 5136 rm -rf conftest.dir 5137else 5138 am_cv_CC_dependencies_compiler_type=none 5139fi 5140 5141fi 5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5143$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5144CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5145 5146 if 5147 test "x$enable_dependency_tracking" != xno \ 5148 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5149 am__fastdepCC_TRUE= 5150 am__fastdepCC_FALSE='#' 5151else 5152 am__fastdepCC_TRUE='#' 5153 am__fastdepCC_FALSE= 5154fi 5155 5156 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5158$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5159if ${ac_cv_path_SED+:} false; then : 5160 $as_echo_n "(cached) " >&6 5161else 5162 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5163 for ac_i in 1 2 3 4 5 6 7; do 5164 ac_script="$ac_script$as_nl$ac_script" 5165 done 5166 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5167 { ac_script=; unset ac_script;} 5168 if test -z "$SED"; then 5169 ac_path_SED_found=false 5170 # Loop through the user's path and test for each of PROGNAME-LIST 5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5172for as_dir in $PATH 5173do 5174 IFS=$as_save_IFS 5175 test -z "$as_dir" && as_dir=. 5176 for ac_prog in sed gsed; do 5177 for ac_exec_ext in '' $ac_executable_extensions; do 5178 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5179 as_fn_executable_p "$ac_path_SED" || continue 5180# Check for GNU ac_path_SED and select it if it is found. 5181 # Check for GNU $ac_path_SED 5182case `"$ac_path_SED" --version 2>&1` in 5183*GNU*) 5184 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5185*) 5186 ac_count=0 5187 $as_echo_n 0123456789 >"conftest.in" 5188 while : 5189 do 5190 cat "conftest.in" "conftest.in" >"conftest.tmp" 5191 mv "conftest.tmp" "conftest.in" 5192 cp "conftest.in" "conftest.nl" 5193 $as_echo '' >> "conftest.nl" 5194 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5196 as_fn_arith $ac_count + 1 && ac_count=$as_val 5197 if test $ac_count -gt ${ac_path_SED_max-0}; then 5198 # Best one so far, save it but keep looking for a better one 5199 ac_cv_path_SED="$ac_path_SED" 5200 ac_path_SED_max=$ac_count 5201 fi 5202 # 10*(2^10) chars as input seems more than enough 5203 test $ac_count -gt 10 && break 5204 done 5205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5206esac 5207 5208 $ac_path_SED_found && break 3 5209 done 5210 done 5211 done 5212IFS=$as_save_IFS 5213 if test -z "$ac_cv_path_SED"; then 5214 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5215 fi 5216else 5217 ac_cv_path_SED=$SED 5218fi 5219 5220fi 5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5222$as_echo "$ac_cv_path_SED" >&6; } 5223 SED="$ac_cv_path_SED" 5224 rm -f conftest.sed 5225 5226test -z "$SED" && SED=sed 5227Xsed="$SED -e 1s/^X//" 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5240$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5241if ${ac_cv_path_GREP+:} false; then : 5242 $as_echo_n "(cached) " >&6 5243else 5244 if test -z "$GREP"; then 5245 ac_path_GREP_found=false 5246 # Loop through the user's path and test for each of PROGNAME-LIST 5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5248for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5249do 5250 IFS=$as_save_IFS 5251 test -z "$as_dir" && as_dir=. 5252 for ac_prog in grep ggrep; do 5253 for ac_exec_ext in '' $ac_executable_extensions; do 5254 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5255 as_fn_executable_p "$ac_path_GREP" || continue 5256# Check for GNU ac_path_GREP and select it if it is found. 5257 # Check for GNU $ac_path_GREP 5258case `"$ac_path_GREP" --version 2>&1` in 5259*GNU*) 5260 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5261*) 5262 ac_count=0 5263 $as_echo_n 0123456789 >"conftest.in" 5264 while : 5265 do 5266 cat "conftest.in" "conftest.in" >"conftest.tmp" 5267 mv "conftest.tmp" "conftest.in" 5268 cp "conftest.in" "conftest.nl" 5269 $as_echo 'GREP' >> "conftest.nl" 5270 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5272 as_fn_arith $ac_count + 1 && ac_count=$as_val 5273 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5274 # Best one so far, save it but keep looking for a better one 5275 ac_cv_path_GREP="$ac_path_GREP" 5276 ac_path_GREP_max=$ac_count 5277 fi 5278 # 10*(2^10) chars as input seems more than enough 5279 test $ac_count -gt 10 && break 5280 done 5281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5282esac 5283 5284 $ac_path_GREP_found && break 3 5285 done 5286 done 5287 done 5288IFS=$as_save_IFS 5289 if test -z "$ac_cv_path_GREP"; then 5290 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5291 fi 5292else 5293 ac_cv_path_GREP=$GREP 5294fi 5295 5296fi 5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5298$as_echo "$ac_cv_path_GREP" >&6; } 5299 GREP="$ac_cv_path_GREP" 5300 5301 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5303$as_echo_n "checking for egrep... " >&6; } 5304if ${ac_cv_path_EGREP+:} false; then : 5305 $as_echo_n "(cached) " >&6 5306else 5307 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5308 then ac_cv_path_EGREP="$GREP -E" 5309 else 5310 if test -z "$EGREP"; then 5311 ac_path_EGREP_found=false 5312 # Loop through the user's path and test for each of PROGNAME-LIST 5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5314for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5315do 5316 IFS=$as_save_IFS 5317 test -z "$as_dir" && as_dir=. 5318 for ac_prog in egrep; do 5319 for ac_exec_ext in '' $ac_executable_extensions; do 5320 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5321 as_fn_executable_p "$ac_path_EGREP" || continue 5322# Check for GNU ac_path_EGREP and select it if it is found. 5323 # Check for GNU $ac_path_EGREP 5324case `"$ac_path_EGREP" --version 2>&1` in 5325*GNU*) 5326 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5327*) 5328 ac_count=0 5329 $as_echo_n 0123456789 >"conftest.in" 5330 while : 5331 do 5332 cat "conftest.in" "conftest.in" >"conftest.tmp" 5333 mv "conftest.tmp" "conftest.in" 5334 cp "conftest.in" "conftest.nl" 5335 $as_echo 'EGREP' >> "conftest.nl" 5336 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5338 as_fn_arith $ac_count + 1 && ac_count=$as_val 5339 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5340 # Best one so far, save it but keep looking for a better one 5341 ac_cv_path_EGREP="$ac_path_EGREP" 5342 ac_path_EGREP_max=$ac_count 5343 fi 5344 # 10*(2^10) chars as input seems more than enough 5345 test $ac_count -gt 10 && break 5346 done 5347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5348esac 5349 5350 $ac_path_EGREP_found && break 3 5351 done 5352 done 5353 done 5354IFS=$as_save_IFS 5355 if test -z "$ac_cv_path_EGREP"; then 5356 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5357 fi 5358else 5359 ac_cv_path_EGREP=$EGREP 5360fi 5361 5362 fi 5363fi 5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5365$as_echo "$ac_cv_path_EGREP" >&6; } 5366 EGREP="$ac_cv_path_EGREP" 5367 5368 5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5370$as_echo_n "checking for fgrep... " >&6; } 5371if ${ac_cv_path_FGREP+:} false; then : 5372 $as_echo_n "(cached) " >&6 5373else 5374 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5375 then ac_cv_path_FGREP="$GREP -F" 5376 else 5377 if test -z "$FGREP"; then 5378 ac_path_FGREP_found=false 5379 # Loop through the user's path and test for each of PROGNAME-LIST 5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5381for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5382do 5383 IFS=$as_save_IFS 5384 test -z "$as_dir" && as_dir=. 5385 for ac_prog in fgrep; do 5386 for ac_exec_ext in '' $ac_executable_extensions; do 5387 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5388 as_fn_executable_p "$ac_path_FGREP" || continue 5389# Check for GNU ac_path_FGREP and select it if it is found. 5390 # Check for GNU $ac_path_FGREP 5391case `"$ac_path_FGREP" --version 2>&1` in 5392*GNU*) 5393 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5394*) 5395 ac_count=0 5396 $as_echo_n 0123456789 >"conftest.in" 5397 while : 5398 do 5399 cat "conftest.in" "conftest.in" >"conftest.tmp" 5400 mv "conftest.tmp" "conftest.in" 5401 cp "conftest.in" "conftest.nl" 5402 $as_echo 'FGREP' >> "conftest.nl" 5403 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5405 as_fn_arith $ac_count + 1 && ac_count=$as_val 5406 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5407 # Best one so far, save it but keep looking for a better one 5408 ac_cv_path_FGREP="$ac_path_FGREP" 5409 ac_path_FGREP_max=$ac_count 5410 fi 5411 # 10*(2^10) chars as input seems more than enough 5412 test $ac_count -gt 10 && break 5413 done 5414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5415esac 5416 5417 $ac_path_FGREP_found && break 3 5418 done 5419 done 5420 done 5421IFS=$as_save_IFS 5422 if test -z "$ac_cv_path_FGREP"; then 5423 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5424 fi 5425else 5426 ac_cv_path_FGREP=$FGREP 5427fi 5428 5429 fi 5430fi 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5432$as_echo "$ac_cv_path_FGREP" >&6; } 5433 FGREP="$ac_cv_path_FGREP" 5434 5435 5436test -z "$GREP" && GREP=grep 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456# Check whether --with-gnu-ld was given. 5457if test "${with_gnu_ld+set}" = set; then : 5458 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5459else 5460 with_gnu_ld=no 5461fi 5462 5463ac_prog=ld 5464if test yes = "$GCC"; then 5465 # Check if gcc -print-prog-name=ld gives a path. 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5467$as_echo_n "checking for ld used by $CC... " >&6; } 5468 case $host in 5469 *-*-mingw*) 5470 # gcc leaves a trailing carriage return, which upsets mingw 5471 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5472 *) 5473 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5474 esac 5475 case $ac_prog in 5476 # Accept absolute paths. 5477 [\\/]* | ?:[\\/]*) 5478 re_direlt='/[^/][^/]*/\.\./' 5479 # Canonicalize the pathname of ld 5480 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5481 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5482 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5483 done 5484 test -z "$LD" && LD=$ac_prog 5485 ;; 5486 "") 5487 # If it fails, then pretend we aren't using GCC. 5488 ac_prog=ld 5489 ;; 5490 *) 5491 # If it is relative, then search for the first ld in PATH. 5492 with_gnu_ld=unknown 5493 ;; 5494 esac 5495elif test yes = "$with_gnu_ld"; then 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5497$as_echo_n "checking for GNU ld... " >&6; } 5498else 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5500$as_echo_n "checking for non-GNU ld... " >&6; } 5501fi 5502if ${lt_cv_path_LD+:} false; then : 5503 $as_echo_n "(cached) " >&6 5504else 5505 if test -z "$LD"; then 5506 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5507 for ac_dir in $PATH; do 5508 IFS=$lt_save_ifs 5509 test -z "$ac_dir" && ac_dir=. 5510 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5511 lt_cv_path_LD=$ac_dir/$ac_prog 5512 # Check to see if the program is GNU ld. I'd rather use --version, 5513 # but apparently some variants of GNU ld only accept -v. 5514 # Break only if it was the GNU/non-GNU ld that we prefer. 5515 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5516 *GNU* | *'with BFD'*) 5517 test no != "$with_gnu_ld" && break 5518 ;; 5519 *) 5520 test yes != "$with_gnu_ld" && break 5521 ;; 5522 esac 5523 fi 5524 done 5525 IFS=$lt_save_ifs 5526else 5527 lt_cv_path_LD=$LD # Let the user override the test with a path. 5528fi 5529fi 5530 5531LD=$lt_cv_path_LD 5532if test -n "$LD"; then 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5534$as_echo "$LD" >&6; } 5535else 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5537$as_echo "no" >&6; } 5538fi 5539test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5541$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5542if ${lt_cv_prog_gnu_ld+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5546case `$LD -v 2>&1 </dev/null` in 5547*GNU* | *'with BFD'*) 5548 lt_cv_prog_gnu_ld=yes 5549 ;; 5550*) 5551 lt_cv_prog_gnu_ld=no 5552 ;; 5553esac 5554fi 5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5556$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5557with_gnu_ld=$lt_cv_prog_gnu_ld 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5568$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5569if ${lt_cv_path_NM+:} false; then : 5570 $as_echo_n "(cached) " >&6 5571else 5572 if test -n "$NM"; then 5573 # Let the user override the test. 5574 lt_cv_path_NM=$NM 5575else 5576 lt_nm_to_check=${ac_tool_prefix}nm 5577 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5578 lt_nm_to_check="$lt_nm_to_check nm" 5579 fi 5580 for lt_tmp_nm in $lt_nm_to_check; do 5581 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5582 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5583 IFS=$lt_save_ifs 5584 test -z "$ac_dir" && ac_dir=. 5585 tmp_nm=$ac_dir/$lt_tmp_nm 5586 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5587 # Check to see if the nm accepts a BSD-compat flag. 5588 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5589 # nm: unknown option "B" ignored 5590 # Tru64's nm complains that /dev/null is an invalid object file 5591 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5592 case $build_os in 5593 mingw*) lt_bad_file=conftest.nm/nofile ;; 5594 *) lt_bad_file=/dev/null ;; 5595 esac 5596 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5597 *$lt_bad_file* | *'Invalid file or object type'*) 5598 lt_cv_path_NM="$tmp_nm -B" 5599 break 2 5600 ;; 5601 *) 5602 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5603 */dev/null*) 5604 lt_cv_path_NM="$tmp_nm -p" 5605 break 2 5606 ;; 5607 *) 5608 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5609 continue # so that we can try to find one that supports BSD flags 5610 ;; 5611 esac 5612 ;; 5613 esac 5614 fi 5615 done 5616 IFS=$lt_save_ifs 5617 done 5618 : ${lt_cv_path_NM=no} 5619fi 5620fi 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5622$as_echo "$lt_cv_path_NM" >&6; } 5623if test no != "$lt_cv_path_NM"; then 5624 NM=$lt_cv_path_NM 5625else 5626 # Didn't find any BSD compatible name lister, look for dumpbin. 5627 if test -n "$DUMPBIN"; then : 5628 # Let the user override the test. 5629 else 5630 if test -n "$ac_tool_prefix"; then 5631 for ac_prog in dumpbin "link -dump" 5632 do 5633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5634set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5636$as_echo_n "checking for $ac_word... " >&6; } 5637if ${ac_cv_prog_DUMPBIN+:} false; then : 5638 $as_echo_n "(cached) " >&6 5639else 5640 if test -n "$DUMPBIN"; then 5641 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5642else 5643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5644for as_dir in $PATH 5645do 5646 IFS=$as_save_IFS 5647 test -z "$as_dir" && as_dir=. 5648 for ac_exec_ext in '' $ac_executable_extensions; do 5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5650 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5652 break 2 5653 fi 5654done 5655 done 5656IFS=$as_save_IFS 5657 5658fi 5659fi 5660DUMPBIN=$ac_cv_prog_DUMPBIN 5661if test -n "$DUMPBIN"; then 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5663$as_echo "$DUMPBIN" >&6; } 5664else 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5666$as_echo "no" >&6; } 5667fi 5668 5669 5670 test -n "$DUMPBIN" && break 5671 done 5672fi 5673if test -z "$DUMPBIN"; then 5674 ac_ct_DUMPBIN=$DUMPBIN 5675 for ac_prog in dumpbin "link -dump" 5676do 5677 # Extract the first word of "$ac_prog", so it can be a program name with args. 5678set dummy $ac_prog; ac_word=$2 5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5680$as_echo_n "checking for $ac_word... " >&6; } 5681if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683else 5684 if test -n "$ac_ct_DUMPBIN"; then 5685 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5686else 5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5688for as_dir in $PATH 5689do 5690 IFS=$as_save_IFS 5691 test -z "$as_dir" && as_dir=. 5692 for ac_exec_ext in '' $ac_executable_extensions; do 5693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5694 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5696 break 2 5697 fi 5698done 5699 done 5700IFS=$as_save_IFS 5701 5702fi 5703fi 5704ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5705if test -n "$ac_ct_DUMPBIN"; then 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5707$as_echo "$ac_ct_DUMPBIN" >&6; } 5708else 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5710$as_echo "no" >&6; } 5711fi 5712 5713 5714 test -n "$ac_ct_DUMPBIN" && break 5715done 5716 5717 if test "x$ac_ct_DUMPBIN" = x; then 5718 DUMPBIN=":" 5719 else 5720 case $cross_compiling:$ac_tool_warned in 5721yes:) 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5724ac_tool_warned=yes ;; 5725esac 5726 DUMPBIN=$ac_ct_DUMPBIN 5727 fi 5728fi 5729 5730 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5731 *COFF*) 5732 DUMPBIN="$DUMPBIN -symbols -headers" 5733 ;; 5734 *) 5735 DUMPBIN=: 5736 ;; 5737 esac 5738 fi 5739 5740 if test : != "$DUMPBIN"; then 5741 NM=$DUMPBIN 5742 fi 5743fi 5744test -z "$NM" && NM=nm 5745 5746 5747 5748 5749 5750 5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5752$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5753if ${lt_cv_nm_interface+:} false; then : 5754 $as_echo_n "(cached) " >&6 5755else 5756 lt_cv_nm_interface="BSD nm" 5757 echo "int some_variable = 0;" > conftest.$ac_ext 5758 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5759 (eval "$ac_compile" 2>conftest.err) 5760 cat conftest.err >&5 5761 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5762 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5763 cat conftest.err >&5 5764 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5765 cat conftest.out >&5 5766 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5767 lt_cv_nm_interface="MS dumpbin" 5768 fi 5769 rm -f conftest* 5770fi 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5772$as_echo "$lt_cv_nm_interface" >&6; } 5773 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5775$as_echo_n "checking whether ln -s works... " >&6; } 5776LN_S=$as_ln_s 5777if test "$LN_S" = "ln -s"; then 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5779$as_echo "yes" >&6; } 5780else 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5782$as_echo "no, using $LN_S" >&6; } 5783fi 5784 5785# find the maximum length of command line arguments 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5787$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5788if ${lt_cv_sys_max_cmd_len+:} false; then : 5789 $as_echo_n "(cached) " >&6 5790else 5791 i=0 5792 teststring=ABCD 5793 5794 case $build_os in 5795 msdosdjgpp*) 5796 # On DJGPP, this test can blow up pretty badly due to problems in libc 5797 # (any single argument exceeding 2000 bytes causes a buffer overrun 5798 # during glob expansion). Even if it were fixed, the result of this 5799 # check would be larger than it should be. 5800 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5801 ;; 5802 5803 gnu*) 5804 # Under GNU Hurd, this test is not required because there is 5805 # no limit to the length of command line arguments. 5806 # Libtool will interpret -1 as no limit whatsoever 5807 lt_cv_sys_max_cmd_len=-1; 5808 ;; 5809 5810 cygwin* | mingw* | cegcc*) 5811 # On Win9x/ME, this test blows up -- it succeeds, but takes 5812 # about 5 minutes as the teststring grows exponentially. 5813 # Worse, since 9x/ME are not pre-emptively multitasking, 5814 # you end up with a "frozen" computer, even though with patience 5815 # the test eventually succeeds (with a max line length of 256k). 5816 # Instead, let's just punt: use the minimum linelength reported by 5817 # all of the supported platforms: 8192 (on NT/2K/XP). 5818 lt_cv_sys_max_cmd_len=8192; 5819 ;; 5820 5821 mint*) 5822 # On MiNT this can take a long time and run out of memory. 5823 lt_cv_sys_max_cmd_len=8192; 5824 ;; 5825 5826 amigaos*) 5827 # On AmigaOS with pdksh, this test takes hours, literally. 5828 # So we just punt and use a minimum line length of 8192. 5829 lt_cv_sys_max_cmd_len=8192; 5830 ;; 5831 5832 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5833 # This has been around since 386BSD, at least. Likely further. 5834 if test -x /sbin/sysctl; then 5835 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5836 elif test -x /usr/sbin/sysctl; then 5837 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5838 else 5839 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5840 fi 5841 # And add a safety zone 5842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5844 ;; 5845 5846 interix*) 5847 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5848 lt_cv_sys_max_cmd_len=196608 5849 ;; 5850 5851 os2*) 5852 # The test takes a long time on OS/2. 5853 lt_cv_sys_max_cmd_len=8192 5854 ;; 5855 5856 osf*) 5857 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5858 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5859 # nice to cause kernel panics so lets avoid the loop below. 5860 # First set a reasonable default. 5861 lt_cv_sys_max_cmd_len=16384 5862 # 5863 if test -x /sbin/sysconfig; then 5864 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5865 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5866 esac 5867 fi 5868 ;; 5869 sco3.2v5*) 5870 lt_cv_sys_max_cmd_len=102400 5871 ;; 5872 sysv5* | sco5v6* | sysv4.2uw2*) 5873 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5874 if test -n "$kargmax"; then 5875 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5876 else 5877 lt_cv_sys_max_cmd_len=32768 5878 fi 5879 ;; 5880 *) 5881 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5882 if test -n "$lt_cv_sys_max_cmd_len" && \ 5883 test undefined != "$lt_cv_sys_max_cmd_len"; then 5884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5886 else 5887 # Make teststring a little bigger before we do anything with it. 5888 # a 1K string should be a reasonable start. 5889 for i in 1 2 3 4 5 6 7 8; do 5890 teststring=$teststring$teststring 5891 done 5892 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5893 # If test is not a shell built-in, we'll probably end up computing a 5894 # maximum length that is only half of the actual maximum length, but 5895 # we can't tell. 5896 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5897 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5898 test 17 != "$i" # 1/2 MB should be enough 5899 do 5900 i=`expr $i + 1` 5901 teststring=$teststring$teststring 5902 done 5903 # Only check the string length outside the loop. 5904 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5905 teststring= 5906 # Add a significant safety factor because C++ compilers can tack on 5907 # massive amounts of additional arguments before passing them to the 5908 # linker. It appears as though 1/2 is a usable value. 5909 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5910 fi 5911 ;; 5912 esac 5913 5914fi 5915 5916if test -n "$lt_cv_sys_max_cmd_len"; then 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5918$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5919else 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5921$as_echo "none" >&6; } 5922fi 5923max_cmd_len=$lt_cv_sys_max_cmd_len 5924 5925 5926 5927 5928 5929 5930: ${CP="cp -f"} 5931: ${MV="mv -f"} 5932: ${RM="rm -f"} 5933 5934if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5935 lt_unset=unset 5936else 5937 lt_unset=false 5938fi 5939 5940 5941 5942 5943 5944# test EBCDIC or ASCII 5945case `echo X|tr X '\101'` in 5946 A) # ASCII based system 5947 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5948 lt_SP2NL='tr \040 \012' 5949 lt_NL2SP='tr \015\012 \040\040' 5950 ;; 5951 *) # EBCDIC based system 5952 lt_SP2NL='tr \100 \n' 5953 lt_NL2SP='tr \r\n \100\100' 5954 ;; 5955esac 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5966$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5967if ${lt_cv_to_host_file_cmd+:} false; then : 5968 $as_echo_n "(cached) " >&6 5969else 5970 case $host in 5971 *-*-mingw* ) 5972 case $build in 5973 *-*-mingw* ) # actually msys 5974 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5975 ;; 5976 *-*-cygwin* ) 5977 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5978 ;; 5979 * ) # otherwise, assume *nix 5980 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5981 ;; 5982 esac 5983 ;; 5984 *-*-cygwin* ) 5985 case $build in 5986 *-*-mingw* ) # actually msys 5987 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5988 ;; 5989 *-*-cygwin* ) 5990 lt_cv_to_host_file_cmd=func_convert_file_noop 5991 ;; 5992 * ) # otherwise, assume *nix 5993 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5994 ;; 5995 esac 5996 ;; 5997 * ) # unhandled hosts (and "normal" native builds) 5998 lt_cv_to_host_file_cmd=func_convert_file_noop 5999 ;; 6000esac 6001 6002fi 6003 6004to_host_file_cmd=$lt_cv_to_host_file_cmd 6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6006$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6007 6008 6009 6010 6011 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6013$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6014if ${lt_cv_to_tool_file_cmd+:} false; then : 6015 $as_echo_n "(cached) " >&6 6016else 6017 #assume ordinary cross tools, or native build. 6018lt_cv_to_tool_file_cmd=func_convert_file_noop 6019case $host in 6020 *-*-mingw* ) 6021 case $build in 6022 *-*-mingw* ) # actually msys 6023 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6024 ;; 6025 esac 6026 ;; 6027esac 6028 6029fi 6030 6031to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6033$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6034 6035 6036 6037 6038 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6040$as_echo_n "checking for $LD option to reload object files... " >&6; } 6041if ${lt_cv_ld_reload_flag+:} false; then : 6042 $as_echo_n "(cached) " >&6 6043else 6044 lt_cv_ld_reload_flag='-r' 6045fi 6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6047$as_echo "$lt_cv_ld_reload_flag" >&6; } 6048reload_flag=$lt_cv_ld_reload_flag 6049case $reload_flag in 6050"" | " "*) ;; 6051*) reload_flag=" $reload_flag" ;; 6052esac 6053reload_cmds='$LD$reload_flag -o $output$reload_objs' 6054case $host_os in 6055 cygwin* | mingw* | pw32* | cegcc*) 6056 if test yes != "$GCC"; then 6057 reload_cmds=false 6058 fi 6059 ;; 6060 darwin*) 6061 if test yes = "$GCC"; then 6062 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6063 else 6064 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6065 fi 6066 ;; 6067esac 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077if test -n "$ac_tool_prefix"; then 6078 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6079set dummy ${ac_tool_prefix}objdump; ac_word=$2 6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6081$as_echo_n "checking for $ac_word... " >&6; } 6082if ${ac_cv_prog_OBJDUMP+:} false; then : 6083 $as_echo_n "(cached) " >&6 6084else 6085 if test -n "$OBJDUMP"; then 6086 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6087else 6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6089for as_dir in $PATH 6090do 6091 IFS=$as_save_IFS 6092 test -z "$as_dir" && as_dir=. 6093 for ac_exec_ext in '' $ac_executable_extensions; do 6094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6095 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6097 break 2 6098 fi 6099done 6100 done 6101IFS=$as_save_IFS 6102 6103fi 6104fi 6105OBJDUMP=$ac_cv_prog_OBJDUMP 6106if test -n "$OBJDUMP"; then 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6108$as_echo "$OBJDUMP" >&6; } 6109else 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6111$as_echo "no" >&6; } 6112fi 6113 6114 6115fi 6116if test -z "$ac_cv_prog_OBJDUMP"; then 6117 ac_ct_OBJDUMP=$OBJDUMP 6118 # Extract the first word of "objdump", so it can be a program name with args. 6119set dummy objdump; ac_word=$2 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6121$as_echo_n "checking for $ac_word... " >&6; } 6122if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6123 $as_echo_n "(cached) " >&6 6124else 6125 if test -n "$ac_ct_OBJDUMP"; then 6126 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6127else 6128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6129for as_dir in $PATH 6130do 6131 IFS=$as_save_IFS 6132 test -z "$as_dir" && as_dir=. 6133 for ac_exec_ext in '' $ac_executable_extensions; do 6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6135 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6137 break 2 6138 fi 6139done 6140 done 6141IFS=$as_save_IFS 6142 6143fi 6144fi 6145ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6146if test -n "$ac_ct_OBJDUMP"; then 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6148$as_echo "$ac_ct_OBJDUMP" >&6; } 6149else 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6151$as_echo "no" >&6; } 6152fi 6153 6154 if test "x$ac_ct_OBJDUMP" = x; then 6155 OBJDUMP="false" 6156 else 6157 case $cross_compiling:$ac_tool_warned in 6158yes:) 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6161ac_tool_warned=yes ;; 6162esac 6163 OBJDUMP=$ac_ct_OBJDUMP 6164 fi 6165else 6166 OBJDUMP="$ac_cv_prog_OBJDUMP" 6167fi 6168 6169test -z "$OBJDUMP" && OBJDUMP=objdump 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6180$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6181if ${lt_cv_deplibs_check_method+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 lt_cv_file_magic_cmd='$MAGIC_CMD' 6185lt_cv_file_magic_test_file= 6186lt_cv_deplibs_check_method='unknown' 6187# Need to set the preceding variable on all platforms that support 6188# interlibrary dependencies. 6189# 'none' -- dependencies not supported. 6190# 'unknown' -- same as none, but documents that we really don't know. 6191# 'pass_all' -- all dependencies passed with no checks. 6192# 'test_compile' -- check by making test program. 6193# 'file_magic [[regex]]' -- check by looking for files in library path 6194# that responds to the $file_magic_cmd with a given extended regex. 6195# If you have 'file' or equivalent on your system and you're not sure 6196# whether 'pass_all' will *always* work, you probably want this one. 6197 6198case $host_os in 6199aix[4-9]*) 6200 lt_cv_deplibs_check_method=pass_all 6201 ;; 6202 6203beos*) 6204 lt_cv_deplibs_check_method=pass_all 6205 ;; 6206 6207bsdi[45]*) 6208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6209 lt_cv_file_magic_cmd='/usr/bin/file -L' 6210 lt_cv_file_magic_test_file=/shlib/libc.so 6211 ;; 6212 6213cygwin*) 6214 # func_win32_libid is a shell function defined in ltmain.sh 6215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6216 lt_cv_file_magic_cmd='func_win32_libid' 6217 ;; 6218 6219mingw* | pw32*) 6220 # Base MSYS/MinGW do not provide the 'file' command needed by 6221 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6222 # unless we find 'file', for example because we are cross-compiling. 6223 if ( file / ) >/dev/null 2>&1; then 6224 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6225 lt_cv_file_magic_cmd='func_win32_libid' 6226 else 6227 # Keep this pattern in sync with the one in func_win32_libid. 6228 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6229 lt_cv_file_magic_cmd='$OBJDUMP -f' 6230 fi 6231 ;; 6232 6233cegcc*) 6234 # use the weaker test based on 'objdump'. See mingw*. 6235 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6236 lt_cv_file_magic_cmd='$OBJDUMP -f' 6237 ;; 6238 6239darwin* | rhapsody*) 6240 lt_cv_deplibs_check_method=pass_all 6241 ;; 6242 6243freebsd* | dragonfly*) 6244 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6245 case $host_cpu in 6246 i*86 ) 6247 # Not sure whether the presence of OpenBSD here was a mistake. 6248 # Let's accept both of them until this is cleared up. 6249 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6250 lt_cv_file_magic_cmd=/usr/bin/file 6251 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6252 ;; 6253 esac 6254 else 6255 lt_cv_deplibs_check_method=pass_all 6256 fi 6257 ;; 6258 6259haiku*) 6260 lt_cv_deplibs_check_method=pass_all 6261 ;; 6262 6263hpux10.20* | hpux11*) 6264 lt_cv_file_magic_cmd=/usr/bin/file 6265 case $host_cpu in 6266 ia64*) 6267 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6268 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6269 ;; 6270 hppa*64*) 6271 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]' 6272 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6273 ;; 6274 *) 6275 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6276 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6277 ;; 6278 esac 6279 ;; 6280 6281interix[3-9]*) 6282 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6284 ;; 6285 6286irix5* | irix6* | nonstopux*) 6287 case $LD in 6288 *-32|*"-32 ") libmagic=32-bit;; 6289 *-n32|*"-n32 ") libmagic=N32;; 6290 *-64|*"-64 ") libmagic=64-bit;; 6291 *) libmagic=never-match;; 6292 esac 6293 lt_cv_deplibs_check_method=pass_all 6294 ;; 6295 6296# This must be glibc/ELF. 6297linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6298 lt_cv_deplibs_check_method=pass_all 6299 ;; 6300 6301netbsd* | netbsdelf*-gnu) 6302 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6304 else 6305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6306 fi 6307 ;; 6308 6309newos6*) 6310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6311 lt_cv_file_magic_cmd=/usr/bin/file 6312 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6313 ;; 6314 6315*nto* | *qnx*) 6316 lt_cv_deplibs_check_method=pass_all 6317 ;; 6318 6319openbsd* | bitrig*) 6320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6322 else 6323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6324 fi 6325 ;; 6326 6327osf3* | osf4* | osf5*) 6328 lt_cv_deplibs_check_method=pass_all 6329 ;; 6330 6331rdos*) 6332 lt_cv_deplibs_check_method=pass_all 6333 ;; 6334 6335solaris*) 6336 lt_cv_deplibs_check_method=pass_all 6337 ;; 6338 6339sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6340 lt_cv_deplibs_check_method=pass_all 6341 ;; 6342 6343sysv4 | sysv4.3*) 6344 case $host_vendor in 6345 motorola) 6346 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]' 6347 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6348 ;; 6349 ncr) 6350 lt_cv_deplibs_check_method=pass_all 6351 ;; 6352 sequent) 6353 lt_cv_file_magic_cmd='/bin/file' 6354 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6355 ;; 6356 sni) 6357 lt_cv_file_magic_cmd='/bin/file' 6358 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6359 lt_cv_file_magic_test_file=/lib/libc.so 6360 ;; 6361 siemens) 6362 lt_cv_deplibs_check_method=pass_all 6363 ;; 6364 pc) 6365 lt_cv_deplibs_check_method=pass_all 6366 ;; 6367 esac 6368 ;; 6369 6370tpf*) 6371 lt_cv_deplibs_check_method=pass_all 6372 ;; 6373os2*) 6374 lt_cv_deplibs_check_method=pass_all 6375 ;; 6376esac 6377 6378fi 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6380$as_echo "$lt_cv_deplibs_check_method" >&6; } 6381 6382file_magic_glob= 6383want_nocaseglob=no 6384if test "$build" = "$host"; then 6385 case $host_os in 6386 mingw* | pw32*) 6387 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6388 want_nocaseglob=yes 6389 else 6390 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6391 fi 6392 ;; 6393 esac 6394fi 6395 6396file_magic_cmd=$lt_cv_file_magic_cmd 6397deplibs_check_method=$lt_cv_deplibs_check_method 6398test -z "$deplibs_check_method" && deplibs_check_method=unknown 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421if test -n "$ac_tool_prefix"; then 6422 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6423set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6425$as_echo_n "checking for $ac_word... " >&6; } 6426if ${ac_cv_prog_DLLTOOL+:} false; then : 6427 $as_echo_n "(cached) " >&6 6428else 6429 if test -n "$DLLTOOL"; then 6430 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6431else 6432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6433for as_dir in $PATH 6434do 6435 IFS=$as_save_IFS 6436 test -z "$as_dir" && as_dir=. 6437 for ac_exec_ext in '' $ac_executable_extensions; do 6438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6439 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6441 break 2 6442 fi 6443done 6444 done 6445IFS=$as_save_IFS 6446 6447fi 6448fi 6449DLLTOOL=$ac_cv_prog_DLLTOOL 6450if test -n "$DLLTOOL"; then 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6452$as_echo "$DLLTOOL" >&6; } 6453else 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6455$as_echo "no" >&6; } 6456fi 6457 6458 6459fi 6460if test -z "$ac_cv_prog_DLLTOOL"; then 6461 ac_ct_DLLTOOL=$DLLTOOL 6462 # Extract the first word of "dlltool", so it can be a program name with args. 6463set dummy dlltool; ac_word=$2 6464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6465$as_echo_n "checking for $ac_word... " >&6; } 6466if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6467 $as_echo_n "(cached) " >&6 6468else 6469 if test -n "$ac_ct_DLLTOOL"; then 6470 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6471else 6472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6473for as_dir in $PATH 6474do 6475 IFS=$as_save_IFS 6476 test -z "$as_dir" && as_dir=. 6477 for ac_exec_ext in '' $ac_executable_extensions; do 6478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6479 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6481 break 2 6482 fi 6483done 6484 done 6485IFS=$as_save_IFS 6486 6487fi 6488fi 6489ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6490if test -n "$ac_ct_DLLTOOL"; then 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6492$as_echo "$ac_ct_DLLTOOL" >&6; } 6493else 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6495$as_echo "no" >&6; } 6496fi 6497 6498 if test "x$ac_ct_DLLTOOL" = x; then 6499 DLLTOOL="false" 6500 else 6501 case $cross_compiling:$ac_tool_warned in 6502yes:) 6503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6505ac_tool_warned=yes ;; 6506esac 6507 DLLTOOL=$ac_ct_DLLTOOL 6508 fi 6509else 6510 DLLTOOL="$ac_cv_prog_DLLTOOL" 6511fi 6512 6513test -z "$DLLTOOL" && DLLTOOL=dlltool 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6525$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6526if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6527 $as_echo_n "(cached) " >&6 6528else 6529 lt_cv_sharedlib_from_linklib_cmd='unknown' 6530 6531case $host_os in 6532cygwin* | mingw* | pw32* | cegcc*) 6533 # two different shell functions defined in ltmain.sh; 6534 # decide which one to use based on capabilities of $DLLTOOL 6535 case `$DLLTOOL --help 2>&1` in 6536 *--identify-strict*) 6537 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6538 ;; 6539 *) 6540 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6541 ;; 6542 esac 6543 ;; 6544*) 6545 # fallback: assume linklib IS sharedlib 6546 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6547 ;; 6548esac 6549 6550fi 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6552$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6553sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6554test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6555 6556 6557 6558 6559 6560 6561 6562 6563if test -n "$ac_tool_prefix"; then 6564 for ac_prog in ar 6565 do 6566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6567set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6569$as_echo_n "checking for $ac_word... " >&6; } 6570if ${ac_cv_prog_AR+:} false; then : 6571 $as_echo_n "(cached) " >&6 6572else 6573 if test -n "$AR"; then 6574 ac_cv_prog_AR="$AR" # Let the user override the test. 6575else 6576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6577for as_dir in $PATH 6578do 6579 IFS=$as_save_IFS 6580 test -z "$as_dir" && as_dir=. 6581 for ac_exec_ext in '' $ac_executable_extensions; do 6582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6583 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6585 break 2 6586 fi 6587done 6588 done 6589IFS=$as_save_IFS 6590 6591fi 6592fi 6593AR=$ac_cv_prog_AR 6594if test -n "$AR"; then 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6596$as_echo "$AR" >&6; } 6597else 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6599$as_echo "no" >&6; } 6600fi 6601 6602 6603 test -n "$AR" && break 6604 done 6605fi 6606if test -z "$AR"; then 6607 ac_ct_AR=$AR 6608 for ac_prog in ar 6609do 6610 # Extract the first word of "$ac_prog", so it can be a program name with args. 6611set dummy $ac_prog; ac_word=$2 6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6613$as_echo_n "checking for $ac_word... " >&6; } 6614if ${ac_cv_prog_ac_ct_AR+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616else 6617 if test -n "$ac_ct_AR"; then 6618 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6619else 6620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6621for as_dir in $PATH 6622do 6623 IFS=$as_save_IFS 6624 test -z "$as_dir" && as_dir=. 6625 for ac_exec_ext in '' $ac_executable_extensions; do 6626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6627 ac_cv_prog_ac_ct_AR="$ac_prog" 6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6629 break 2 6630 fi 6631done 6632 done 6633IFS=$as_save_IFS 6634 6635fi 6636fi 6637ac_ct_AR=$ac_cv_prog_ac_ct_AR 6638if test -n "$ac_ct_AR"; then 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6640$as_echo "$ac_ct_AR" >&6; } 6641else 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6643$as_echo "no" >&6; } 6644fi 6645 6646 6647 test -n "$ac_ct_AR" && break 6648done 6649 6650 if test "x$ac_ct_AR" = x; then 6651 AR="false" 6652 else 6653 case $cross_compiling:$ac_tool_warned in 6654yes:) 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6657ac_tool_warned=yes ;; 6658esac 6659 AR=$ac_ct_AR 6660 fi 6661fi 6662 6663: ${AR=ar} 6664: ${AR_FLAGS=cru} 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6677$as_echo_n "checking for archiver @FILE support... " >&6; } 6678if ${lt_cv_ar_at_file+:} false; then : 6679 $as_echo_n "(cached) " >&6 6680else 6681 lt_cv_ar_at_file=no 6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6683/* end confdefs.h. */ 6684 6685int 6686main () 6687{ 6688 6689 ; 6690 return 0; 6691} 6692_ACEOF 6693if ac_fn_c_try_compile "$LINENO"; then : 6694 echo conftest.$ac_objext > conftest.lst 6695 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6697 (eval $lt_ar_try) 2>&5 6698 ac_status=$? 6699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6700 test $ac_status = 0; } 6701 if test 0 -eq "$ac_status"; then 6702 # Ensure the archiver fails upon bogus file names. 6703 rm -f conftest.$ac_objext libconftest.a 6704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6705 (eval $lt_ar_try) 2>&5 6706 ac_status=$? 6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6708 test $ac_status = 0; } 6709 if test 0 -ne "$ac_status"; then 6710 lt_cv_ar_at_file=@ 6711 fi 6712 fi 6713 rm -f conftest.* libconftest.a 6714 6715fi 6716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6717 6718fi 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6720$as_echo "$lt_cv_ar_at_file" >&6; } 6721 6722if test no = "$lt_cv_ar_at_file"; then 6723 archiver_list_spec= 6724else 6725 archiver_list_spec=$lt_cv_ar_at_file 6726fi 6727 6728 6729 6730 6731 6732 6733 6734if test -n "$ac_tool_prefix"; then 6735 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6736set dummy ${ac_tool_prefix}strip; ac_word=$2 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6738$as_echo_n "checking for $ac_word... " >&6; } 6739if ${ac_cv_prog_STRIP+:} false; then : 6740 $as_echo_n "(cached) " >&6 6741else 6742 if test -n "$STRIP"; then 6743 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6744else 6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6746for as_dir in $PATH 6747do 6748 IFS=$as_save_IFS 6749 test -z "$as_dir" && as_dir=. 6750 for ac_exec_ext in '' $ac_executable_extensions; do 6751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6752 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6754 break 2 6755 fi 6756done 6757 done 6758IFS=$as_save_IFS 6759 6760fi 6761fi 6762STRIP=$ac_cv_prog_STRIP 6763if test -n "$STRIP"; then 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6765$as_echo "$STRIP" >&6; } 6766else 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6768$as_echo "no" >&6; } 6769fi 6770 6771 6772fi 6773if test -z "$ac_cv_prog_STRIP"; then 6774 ac_ct_STRIP=$STRIP 6775 # Extract the first word of "strip", so it can be a program name with args. 6776set dummy strip; ac_word=$2 6777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6778$as_echo_n "checking for $ac_word... " >&6; } 6779if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6780 $as_echo_n "(cached) " >&6 6781else 6782 if test -n "$ac_ct_STRIP"; then 6783 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6784else 6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6786for as_dir in $PATH 6787do 6788 IFS=$as_save_IFS 6789 test -z "$as_dir" && as_dir=. 6790 for ac_exec_ext in '' $ac_executable_extensions; do 6791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6792 ac_cv_prog_ac_ct_STRIP="strip" 6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6794 break 2 6795 fi 6796done 6797 done 6798IFS=$as_save_IFS 6799 6800fi 6801fi 6802ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6803if test -n "$ac_ct_STRIP"; then 6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6805$as_echo "$ac_ct_STRIP" >&6; } 6806else 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6808$as_echo "no" >&6; } 6809fi 6810 6811 if test "x$ac_ct_STRIP" = x; then 6812 STRIP=":" 6813 else 6814 case $cross_compiling:$ac_tool_warned in 6815yes:) 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6818ac_tool_warned=yes ;; 6819esac 6820 STRIP=$ac_ct_STRIP 6821 fi 6822else 6823 STRIP="$ac_cv_prog_STRIP" 6824fi 6825 6826test -z "$STRIP" && STRIP=: 6827 6828 6829 6830 6831 6832 6833if test -n "$ac_tool_prefix"; then 6834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6835set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6837$as_echo_n "checking for $ac_word... " >&6; } 6838if ${ac_cv_prog_RANLIB+:} false; then : 6839 $as_echo_n "(cached) " >&6 6840else 6841 if test -n "$RANLIB"; then 6842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6843else 6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6845for as_dir in $PATH 6846do 6847 IFS=$as_save_IFS 6848 test -z "$as_dir" && as_dir=. 6849 for ac_exec_ext in '' $ac_executable_extensions; do 6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6851 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6853 break 2 6854 fi 6855done 6856 done 6857IFS=$as_save_IFS 6858 6859fi 6860fi 6861RANLIB=$ac_cv_prog_RANLIB 6862if test -n "$RANLIB"; then 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6864$as_echo "$RANLIB" >&6; } 6865else 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6867$as_echo "no" >&6; } 6868fi 6869 6870 6871fi 6872if test -z "$ac_cv_prog_RANLIB"; then 6873 ac_ct_RANLIB=$RANLIB 6874 # Extract the first word of "ranlib", so it can be a program name with args. 6875set dummy ranlib; ac_word=$2 6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6877$as_echo_n "checking for $ac_word... " >&6; } 6878if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6879 $as_echo_n "(cached) " >&6 6880else 6881 if test -n "$ac_ct_RANLIB"; then 6882 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6883else 6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6885for as_dir in $PATH 6886do 6887 IFS=$as_save_IFS 6888 test -z "$as_dir" && as_dir=. 6889 for ac_exec_ext in '' $ac_executable_extensions; do 6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6891 ac_cv_prog_ac_ct_RANLIB="ranlib" 6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6893 break 2 6894 fi 6895done 6896 done 6897IFS=$as_save_IFS 6898 6899fi 6900fi 6901ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6902if test -n "$ac_ct_RANLIB"; then 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6904$as_echo "$ac_ct_RANLIB" >&6; } 6905else 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6907$as_echo "no" >&6; } 6908fi 6909 6910 if test "x$ac_ct_RANLIB" = x; then 6911 RANLIB=":" 6912 else 6913 case $cross_compiling:$ac_tool_warned in 6914yes:) 6915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6917ac_tool_warned=yes ;; 6918esac 6919 RANLIB=$ac_ct_RANLIB 6920 fi 6921else 6922 RANLIB="$ac_cv_prog_RANLIB" 6923fi 6924 6925test -z "$RANLIB" && RANLIB=: 6926 6927 6928 6929 6930 6931 6932# Determine commands to create old-style static archives. 6933old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6934old_postinstall_cmds='chmod 644 $oldlib' 6935old_postuninstall_cmds= 6936 6937if test -n "$RANLIB"; then 6938 case $host_os in 6939 bitrig* | openbsd*) 6940 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6941 ;; 6942 *) 6943 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6944 ;; 6945 esac 6946 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6947fi 6948 6949case $host_os in 6950 darwin*) 6951 lock_old_archive_extraction=yes ;; 6952 *) 6953 lock_old_archive_extraction=no ;; 6954esac 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994# If no C compiler was specified, use CC. 6995LTCC=${LTCC-"$CC"} 6996 6997# If no C compiler flags were specified, use CFLAGS. 6998LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6999 7000# Allow CC to be a program name with arguments. 7001compiler=$CC 7002 7003 7004# Check for command to grab the raw symbol name followed by C symbol from nm. 7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7006$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7007if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7008 $as_echo_n "(cached) " >&6 7009else 7010 7011# These are sane defaults that work on at least a few old systems. 7012# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7013 7014# Character class describing NM global symbol codes. 7015symcode='[BCDEGRST]' 7016 7017# Regexp to match symbols that can be accessed directly from C. 7018sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7019 7020# Define system-specific variables. 7021case $host_os in 7022aix*) 7023 symcode='[BCDT]' 7024 ;; 7025cygwin* | mingw* | pw32* | cegcc*) 7026 symcode='[ABCDGISTW]' 7027 ;; 7028hpux*) 7029 if test ia64 = "$host_cpu"; then 7030 symcode='[ABCDEGRST]' 7031 fi 7032 ;; 7033irix* | nonstopux*) 7034 symcode='[BCDEGRST]' 7035 ;; 7036osf*) 7037 symcode='[BCDEGQRST]' 7038 ;; 7039solaris*) 7040 symcode='[BDRT]' 7041 ;; 7042sco3.2v5*) 7043 symcode='[DT]' 7044 ;; 7045sysv4.2uw2*) 7046 symcode='[DT]' 7047 ;; 7048sysv5* | sco5v6* | unixware* | OpenUNIX*) 7049 symcode='[ABDT]' 7050 ;; 7051sysv4) 7052 symcode='[DFNSTU]' 7053 ;; 7054esac 7055 7056# If we're using GNU nm, then use its standard symbol codes. 7057case `$NM -V 2>&1` in 7058*GNU* | *'with BFD'*) 7059 symcode='[ABCDGIRSTW]' ;; 7060esac 7061 7062if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7063 # Gets list of data symbols to import. 7064 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7065 # Adjust the below global symbol transforms to fixup imported variables. 7066 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7067 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7068 lt_c_name_lib_hook="\ 7069 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7070 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7071else 7072 # Disable hooks by default. 7073 lt_cv_sys_global_symbol_to_import= 7074 lt_cdecl_hook= 7075 lt_c_name_hook= 7076 lt_c_name_lib_hook= 7077fi 7078 7079# Transform an extracted symbol line into a proper C declaration. 7080# Some systems (esp. on ia64) link data and code symbols differently, 7081# so use this general approach. 7082lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7083$lt_cdecl_hook\ 7084" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7085" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7086 7087# Transform an extracted symbol line into symbol name and symbol address 7088lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7089$lt_c_name_hook\ 7090" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7091" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7092 7093# Transform an extracted symbol line into symbol name with lib prefix and 7094# symbol address. 7095lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7096$lt_c_name_lib_hook\ 7097" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7098" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7099" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7100 7101# Handle CRLF in mingw tool chain 7102opt_cr= 7103case $build_os in 7104mingw*) 7105 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7106 ;; 7107esac 7108 7109# Try without a prefix underscore, then with it. 7110for ac_symprfx in "" "_"; do 7111 7112 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7113 symxfrm="\\1 $ac_symprfx\\2 \\2" 7114 7115 # Write the raw and C identifiers. 7116 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7117 # Fake it for dumpbin and say T for any non-static function, 7118 # D for any global variable and I for any imported variable. 7119 # Also find C++ and __fastcall symbols from MSVC++, 7120 # which start with @ or ?. 7121 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7122" {last_section=section; section=\$ 3};"\ 7123" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7124" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7125" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7126" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7127" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7128" \$ 0!~/External *\|/{next};"\ 7129" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7130" {if(hide[section]) next};"\ 7131" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7132" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7133" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7134" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7135" ' prfx=^$ac_symprfx" 7136 else 7137 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7138 fi 7139 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7140 7141 # Check to see that the pipe works correctly. 7142 pipe_works=no 7143 7144 rm -f conftest* 7145 cat > conftest.$ac_ext <<_LT_EOF 7146#ifdef __cplusplus 7147extern "C" { 7148#endif 7149char nm_test_var; 7150void nm_test_func(void); 7151void nm_test_func(void){} 7152#ifdef __cplusplus 7153} 7154#endif 7155int main(){nm_test_var='a';nm_test_func();return(0);} 7156_LT_EOF 7157 7158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7159 (eval $ac_compile) 2>&5 7160 ac_status=$? 7161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7162 test $ac_status = 0; }; then 7163 # Now try to grab the symbols. 7164 nlist=conftest.nm 7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7166 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7167 ac_status=$? 7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7169 test $ac_status = 0; } && test -s "$nlist"; then 7170 # Try sorting and uniquifying the output. 7171 if sort "$nlist" | uniq > "$nlist"T; then 7172 mv -f "$nlist"T "$nlist" 7173 else 7174 rm -f "$nlist"T 7175 fi 7176 7177 # Make sure that we snagged all the symbols we need. 7178 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7179 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7180 cat <<_LT_EOF > conftest.$ac_ext 7181/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7182#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7183/* DATA imports from DLLs on WIN32 can't be const, because runtime 7184 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7185# define LT_DLSYM_CONST 7186#elif defined __osf__ 7187/* This system does not cope well with relocations in const data. */ 7188# define LT_DLSYM_CONST 7189#else 7190# define LT_DLSYM_CONST const 7191#endif 7192 7193#ifdef __cplusplus 7194extern "C" { 7195#endif 7196 7197_LT_EOF 7198 # Now generate the symbol file. 7199 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7200 7201 cat <<_LT_EOF >> conftest.$ac_ext 7202 7203/* The mapping between symbol names and symbols. */ 7204LT_DLSYM_CONST struct { 7205 const char *name; 7206 void *address; 7207} 7208lt__PROGRAM__LTX_preloaded_symbols[] = 7209{ 7210 { "@PROGRAM@", (void *) 0 }, 7211_LT_EOF 7212 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7213 cat <<\_LT_EOF >> conftest.$ac_ext 7214 {0, (void *) 0} 7215}; 7216 7217/* This works around a problem in FreeBSD linker */ 7218#ifdef FREEBSD_WORKAROUND 7219static const void *lt_preloaded_setup() { 7220 return lt__PROGRAM__LTX_preloaded_symbols; 7221} 7222#endif 7223 7224#ifdef __cplusplus 7225} 7226#endif 7227_LT_EOF 7228 # Now try linking the two files. 7229 mv conftest.$ac_objext conftstm.$ac_objext 7230 lt_globsym_save_LIBS=$LIBS 7231 lt_globsym_save_CFLAGS=$CFLAGS 7232 LIBS=conftstm.$ac_objext 7233 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7235 (eval $ac_link) 2>&5 7236 ac_status=$? 7237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7238 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7239 pipe_works=yes 7240 fi 7241 LIBS=$lt_globsym_save_LIBS 7242 CFLAGS=$lt_globsym_save_CFLAGS 7243 else 7244 echo "cannot find nm_test_func in $nlist" >&5 7245 fi 7246 else 7247 echo "cannot find nm_test_var in $nlist" >&5 7248 fi 7249 else 7250 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7251 fi 7252 else 7253 echo "$progname: failed program was:" >&5 7254 cat conftest.$ac_ext >&5 7255 fi 7256 rm -rf conftest* conftst* 7257 7258 # Do not use the global_symbol_pipe unless it works. 7259 if test yes = "$pipe_works"; then 7260 break 7261 else 7262 lt_cv_sys_global_symbol_pipe= 7263 fi 7264done 7265 7266fi 7267 7268if test -z "$lt_cv_sys_global_symbol_pipe"; then 7269 lt_cv_sys_global_symbol_to_cdecl= 7270fi 7271if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7273$as_echo "failed" >&6; } 7274else 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7276$as_echo "ok" >&6; } 7277fi 7278 7279# Response file support. 7280if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7281 nm_file_list_spec='@' 7282elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7283 nm_file_list_spec='@' 7284fi 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7323$as_echo_n "checking for sysroot... " >&6; } 7324 7325# Check whether --with-sysroot was given. 7326if test "${with_sysroot+set}" = set; then : 7327 withval=$with_sysroot; 7328else 7329 with_sysroot=no 7330fi 7331 7332 7333lt_sysroot= 7334case $with_sysroot in #( 7335 yes) 7336 if test yes = "$GCC"; then 7337 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7338 fi 7339 ;; #( 7340 /*) 7341 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7342 ;; #( 7343 no|'') 7344 ;; #( 7345 *) 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7347$as_echo "$with_sysroot" >&6; } 7348 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7349 ;; 7350esac 7351 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7353$as_echo "${lt_sysroot:-no}" >&6; } 7354 7355 7356 7357 7358 7359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7360$as_echo_n "checking for a working dd... " >&6; } 7361if ${ac_cv_path_lt_DD+:} false; then : 7362 $as_echo_n "(cached) " >&6 7363else 7364 printf 0123456789abcdef0123456789abcdef >conftest.i 7365cat conftest.i conftest.i >conftest2.i 7366: ${lt_DD:=$DD} 7367if test -z "$lt_DD"; then 7368 ac_path_lt_DD_found=false 7369 # Loop through the user's path and test for each of PROGNAME-LIST 7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7371for as_dir in $PATH 7372do 7373 IFS=$as_save_IFS 7374 test -z "$as_dir" && as_dir=. 7375 for ac_prog in dd; do 7376 for ac_exec_ext in '' $ac_executable_extensions; do 7377 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7378 as_fn_executable_p "$ac_path_lt_DD" || continue 7379if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7380 cmp -s conftest.i conftest.out \ 7381 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7382fi 7383 $ac_path_lt_DD_found && break 3 7384 done 7385 done 7386 done 7387IFS=$as_save_IFS 7388 if test -z "$ac_cv_path_lt_DD"; then 7389 : 7390 fi 7391else 7392 ac_cv_path_lt_DD=$lt_DD 7393fi 7394 7395rm -f conftest.i conftest2.i conftest.out 7396fi 7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7398$as_echo "$ac_cv_path_lt_DD" >&6; } 7399 7400 7401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7402$as_echo_n "checking how to truncate binary pipes... " >&6; } 7403if ${lt_cv_truncate_bin+:} false; then : 7404 $as_echo_n "(cached) " >&6 7405else 7406 printf 0123456789abcdef0123456789abcdef >conftest.i 7407cat conftest.i conftest.i >conftest2.i 7408lt_cv_truncate_bin= 7409if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7410 cmp -s conftest.i conftest.out \ 7411 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7412fi 7413rm -f conftest.i conftest2.i conftest.out 7414test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7415fi 7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7417$as_echo "$lt_cv_truncate_bin" >&6; } 7418 7419 7420 7421 7422 7423 7424 7425# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7426func_cc_basename () 7427{ 7428 for cc_temp in $*""; do 7429 case $cc_temp in 7430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7432 \-*) ;; 7433 *) break;; 7434 esac 7435 done 7436 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7437} 7438 7439# Check whether --enable-libtool-lock was given. 7440if test "${enable_libtool_lock+set}" = set; then : 7441 enableval=$enable_libtool_lock; 7442fi 7443 7444test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7445 7446# Some flags need to be propagated to the compiler or linker for good 7447# libtool support. 7448case $host in 7449ia64-*-hpux*) 7450 # Find out what ABI is being produced by ac_compile, and set mode 7451 # options accordingly. 7452 echo 'int i;' > conftest.$ac_ext 7453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7454 (eval $ac_compile) 2>&5 7455 ac_status=$? 7456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7457 test $ac_status = 0; }; then 7458 case `/usr/bin/file conftest.$ac_objext` in 7459 *ELF-32*) 7460 HPUX_IA64_MODE=32 7461 ;; 7462 *ELF-64*) 7463 HPUX_IA64_MODE=64 7464 ;; 7465 esac 7466 fi 7467 rm -rf conftest* 7468 ;; 7469*-*-irix6*) 7470 # Find out what ABI is being produced by ac_compile, and set linker 7471 # options accordingly. 7472 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7474 (eval $ac_compile) 2>&5 7475 ac_status=$? 7476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7477 test $ac_status = 0; }; then 7478 if test yes = "$lt_cv_prog_gnu_ld"; then 7479 case `/usr/bin/file conftest.$ac_objext` in 7480 *32-bit*) 7481 LD="${LD-ld} -melf32bsmip" 7482 ;; 7483 *N32*) 7484 LD="${LD-ld} -melf32bmipn32" 7485 ;; 7486 *64-bit*) 7487 LD="${LD-ld} -melf64bmip" 7488 ;; 7489 esac 7490 else 7491 case `/usr/bin/file conftest.$ac_objext` in 7492 *32-bit*) 7493 LD="${LD-ld} -32" 7494 ;; 7495 *N32*) 7496 LD="${LD-ld} -n32" 7497 ;; 7498 *64-bit*) 7499 LD="${LD-ld} -64" 7500 ;; 7501 esac 7502 fi 7503 fi 7504 rm -rf conftest* 7505 ;; 7506 7507mips64*-*linux*) 7508 # Find out what ABI is being produced by ac_compile, and set linker 7509 # options accordingly. 7510 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7512 (eval $ac_compile) 2>&5 7513 ac_status=$? 7514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7515 test $ac_status = 0; }; then 7516 emul=elf 7517 case `/usr/bin/file conftest.$ac_objext` in 7518 *32-bit*) 7519 emul="${emul}32" 7520 ;; 7521 *64-bit*) 7522 emul="${emul}64" 7523 ;; 7524 esac 7525 case `/usr/bin/file conftest.$ac_objext` in 7526 *MSB*) 7527 emul="${emul}btsmip" 7528 ;; 7529 *LSB*) 7530 emul="${emul}ltsmip" 7531 ;; 7532 esac 7533 case `/usr/bin/file conftest.$ac_objext` in 7534 *N32*) 7535 emul="${emul}n32" 7536 ;; 7537 esac 7538 LD="${LD-ld} -m $emul" 7539 fi 7540 rm -rf conftest* 7541 ;; 7542 7543x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7544s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7545 # Find out what ABI is being produced by ac_compile, and set linker 7546 # options accordingly. Note that the listed cases only cover the 7547 # situations where additional linker options are needed (such as when 7548 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7549 # vice versa); the common cases where no linker options are needed do 7550 # not appear in the list. 7551 echo 'int i;' > conftest.$ac_ext 7552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7553 (eval $ac_compile) 2>&5 7554 ac_status=$? 7555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7556 test $ac_status = 0; }; then 7557 case `/usr/bin/file conftest.o` in 7558 *32-bit*) 7559 case $host in 7560 x86_64-*kfreebsd*-gnu) 7561 LD="${LD-ld} -m elf_i386_fbsd" 7562 ;; 7563 x86_64-*linux*) 7564 case `/usr/bin/file conftest.o` in 7565 *x86-64*) 7566 LD="${LD-ld} -m elf32_x86_64" 7567 ;; 7568 *) 7569 LD="${LD-ld} -m elf_i386" 7570 ;; 7571 esac 7572 ;; 7573 powerpc64le-*linux*) 7574 LD="${LD-ld} -m elf32lppclinux" 7575 ;; 7576 powerpc64-*linux*) 7577 LD="${LD-ld} -m elf32ppclinux" 7578 ;; 7579 s390x-*linux*) 7580 LD="${LD-ld} -m elf_s390" 7581 ;; 7582 sparc64-*linux*) 7583 LD="${LD-ld} -m elf32_sparc" 7584 ;; 7585 esac 7586 ;; 7587 *64-bit*) 7588 case $host in 7589 x86_64-*kfreebsd*-gnu) 7590 LD="${LD-ld} -m elf_x86_64_fbsd" 7591 ;; 7592 x86_64-*linux*) 7593 LD="${LD-ld} -m elf_x86_64" 7594 ;; 7595 powerpcle-*linux*) 7596 LD="${LD-ld} -m elf64lppc" 7597 ;; 7598 powerpc-*linux*) 7599 LD="${LD-ld} -m elf64ppc" 7600 ;; 7601 s390*-*linux*|s390*-*tpf*) 7602 LD="${LD-ld} -m elf64_s390" 7603 ;; 7604 sparc*-*linux*) 7605 LD="${LD-ld} -m elf64_sparc" 7606 ;; 7607 esac 7608 ;; 7609 esac 7610 fi 7611 rm -rf conftest* 7612 ;; 7613 7614*-*-sco3.2v5*) 7615 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7616 SAVE_CFLAGS=$CFLAGS 7617 CFLAGS="$CFLAGS -belf" 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7619$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7620if ${lt_cv_cc_needs_belf+:} false; then : 7621 $as_echo_n "(cached) " >&6 7622else 7623 ac_ext=c 7624ac_cpp='$CPP $CPPFLAGS' 7625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7627ac_compiler_gnu=$ac_cv_c_compiler_gnu 7628 7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7630/* end confdefs.h. */ 7631 7632int 7633main () 7634{ 7635 7636 ; 7637 return 0; 7638} 7639_ACEOF 7640if ac_fn_c_try_link "$LINENO"; then : 7641 lt_cv_cc_needs_belf=yes 7642else 7643 lt_cv_cc_needs_belf=no 7644fi 7645rm -f core conftest.err conftest.$ac_objext \ 7646 conftest$ac_exeext conftest.$ac_ext 7647 ac_ext=c 7648ac_cpp='$CPP $CPPFLAGS' 7649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7651ac_compiler_gnu=$ac_cv_c_compiler_gnu 7652 7653fi 7654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7655$as_echo "$lt_cv_cc_needs_belf" >&6; } 7656 if test yes != "$lt_cv_cc_needs_belf"; then 7657 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7658 CFLAGS=$SAVE_CFLAGS 7659 fi 7660 ;; 7661*-*solaris*) 7662 # Find out what ABI is being produced by ac_compile, and set linker 7663 # options accordingly. 7664 echo 'int i;' > conftest.$ac_ext 7665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7666 (eval $ac_compile) 2>&5 7667 ac_status=$? 7668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7669 test $ac_status = 0; }; then 7670 case `/usr/bin/file conftest.o` in 7671 *64-bit*) 7672 case $lt_cv_prog_gnu_ld in 7673 yes*) 7674 case $host in 7675 i?86-*-solaris*|x86_64-*-solaris*) 7676 LD="${LD-ld} -m elf_x86_64" 7677 ;; 7678 sparc*-*-solaris*) 7679 LD="${LD-ld} -m elf64_sparc" 7680 ;; 7681 esac 7682 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7683 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7684 LD=${LD-ld}_sol2 7685 fi 7686 ;; 7687 *) 7688 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7689 LD="${LD-ld} -64" 7690 fi 7691 ;; 7692 esac 7693 ;; 7694 esac 7695 fi 7696 rm -rf conftest* 7697 ;; 7698esac 7699 7700need_locks=$enable_libtool_lock 7701 7702if test -n "$ac_tool_prefix"; then 7703 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7704set dummy ${ac_tool_prefix}mt; ac_word=$2 7705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7706$as_echo_n "checking for $ac_word... " >&6; } 7707if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7708 $as_echo_n "(cached) " >&6 7709else 7710 if test -n "$MANIFEST_TOOL"; then 7711 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7712else 7713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7714for as_dir in $PATH 7715do 7716 IFS=$as_save_IFS 7717 test -z "$as_dir" && as_dir=. 7718 for ac_exec_ext in '' $ac_executable_extensions; do 7719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7720 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7722 break 2 7723 fi 7724done 7725 done 7726IFS=$as_save_IFS 7727 7728fi 7729fi 7730MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7731if test -n "$MANIFEST_TOOL"; then 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7733$as_echo "$MANIFEST_TOOL" >&6; } 7734else 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7736$as_echo "no" >&6; } 7737fi 7738 7739 7740fi 7741if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7742 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7743 # Extract the first word of "mt", so it can be a program name with args. 7744set dummy mt; ac_word=$2 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7746$as_echo_n "checking for $ac_word... " >&6; } 7747if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7748 $as_echo_n "(cached) " >&6 7749else 7750 if test -n "$ac_ct_MANIFEST_TOOL"; then 7751 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7752else 7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7754for as_dir in $PATH 7755do 7756 IFS=$as_save_IFS 7757 test -z "$as_dir" && as_dir=. 7758 for ac_exec_ext in '' $ac_executable_extensions; do 7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7760 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7762 break 2 7763 fi 7764done 7765 done 7766IFS=$as_save_IFS 7767 7768fi 7769fi 7770ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7771if test -n "$ac_ct_MANIFEST_TOOL"; then 7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7773$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7774else 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7776$as_echo "no" >&6; } 7777fi 7778 7779 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7780 MANIFEST_TOOL=":" 7781 else 7782 case $cross_compiling:$ac_tool_warned in 7783yes:) 7784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7786ac_tool_warned=yes ;; 7787esac 7788 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7789 fi 7790else 7791 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7792fi 7793 7794test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7796$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7797if ${lt_cv_path_mainfest_tool+:} false; then : 7798 $as_echo_n "(cached) " >&6 7799else 7800 lt_cv_path_mainfest_tool=no 7801 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7802 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7803 cat conftest.err >&5 7804 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7805 lt_cv_path_mainfest_tool=yes 7806 fi 7807 rm -f conftest* 7808fi 7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7810$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7811if test yes != "$lt_cv_path_mainfest_tool"; then 7812 MANIFEST_TOOL=: 7813fi 7814 7815 7816 7817 7818 7819 7820 case $host_os in 7821 rhapsody* | darwin*) 7822 if test -n "$ac_tool_prefix"; then 7823 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7824set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7826$as_echo_n "checking for $ac_word... " >&6; } 7827if ${ac_cv_prog_DSYMUTIL+:} false; then : 7828 $as_echo_n "(cached) " >&6 7829else 7830 if test -n "$DSYMUTIL"; then 7831 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7832else 7833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7834for as_dir in $PATH 7835do 7836 IFS=$as_save_IFS 7837 test -z "$as_dir" && as_dir=. 7838 for ac_exec_ext in '' $ac_executable_extensions; do 7839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7840 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7842 break 2 7843 fi 7844done 7845 done 7846IFS=$as_save_IFS 7847 7848fi 7849fi 7850DSYMUTIL=$ac_cv_prog_DSYMUTIL 7851if test -n "$DSYMUTIL"; then 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7853$as_echo "$DSYMUTIL" >&6; } 7854else 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7856$as_echo "no" >&6; } 7857fi 7858 7859 7860fi 7861if test -z "$ac_cv_prog_DSYMUTIL"; then 7862 ac_ct_DSYMUTIL=$DSYMUTIL 7863 # Extract the first word of "dsymutil", so it can be a program name with args. 7864set dummy dsymutil; ac_word=$2 7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7866$as_echo_n "checking for $ac_word... " >&6; } 7867if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7868 $as_echo_n "(cached) " >&6 7869else 7870 if test -n "$ac_ct_DSYMUTIL"; then 7871 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7872else 7873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7874for as_dir in $PATH 7875do 7876 IFS=$as_save_IFS 7877 test -z "$as_dir" && as_dir=. 7878 for ac_exec_ext in '' $ac_executable_extensions; do 7879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7880 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7882 break 2 7883 fi 7884done 7885 done 7886IFS=$as_save_IFS 7887 7888fi 7889fi 7890ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7891if test -n "$ac_ct_DSYMUTIL"; then 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7893$as_echo "$ac_ct_DSYMUTIL" >&6; } 7894else 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7896$as_echo "no" >&6; } 7897fi 7898 7899 if test "x$ac_ct_DSYMUTIL" = x; then 7900 DSYMUTIL=":" 7901 else 7902 case $cross_compiling:$ac_tool_warned in 7903yes:) 7904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7906ac_tool_warned=yes ;; 7907esac 7908 DSYMUTIL=$ac_ct_DSYMUTIL 7909 fi 7910else 7911 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7912fi 7913 7914 if test -n "$ac_tool_prefix"; then 7915 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7916set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7918$as_echo_n "checking for $ac_word... " >&6; } 7919if ${ac_cv_prog_NMEDIT+:} false; then : 7920 $as_echo_n "(cached) " >&6 7921else 7922 if test -n "$NMEDIT"; then 7923 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7924else 7925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7926for as_dir in $PATH 7927do 7928 IFS=$as_save_IFS 7929 test -z "$as_dir" && as_dir=. 7930 for ac_exec_ext in '' $ac_executable_extensions; do 7931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7932 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7934 break 2 7935 fi 7936done 7937 done 7938IFS=$as_save_IFS 7939 7940fi 7941fi 7942NMEDIT=$ac_cv_prog_NMEDIT 7943if test -n "$NMEDIT"; then 7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7945$as_echo "$NMEDIT" >&6; } 7946else 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7948$as_echo "no" >&6; } 7949fi 7950 7951 7952fi 7953if test -z "$ac_cv_prog_NMEDIT"; then 7954 ac_ct_NMEDIT=$NMEDIT 7955 # Extract the first word of "nmedit", so it can be a program name with args. 7956set dummy nmedit; ac_word=$2 7957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7958$as_echo_n "checking for $ac_word... " >&6; } 7959if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7960 $as_echo_n "(cached) " >&6 7961else 7962 if test -n "$ac_ct_NMEDIT"; then 7963 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7964else 7965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7966for as_dir in $PATH 7967do 7968 IFS=$as_save_IFS 7969 test -z "$as_dir" && as_dir=. 7970 for ac_exec_ext in '' $ac_executable_extensions; do 7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7972 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7974 break 2 7975 fi 7976done 7977 done 7978IFS=$as_save_IFS 7979 7980fi 7981fi 7982ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7983if test -n "$ac_ct_NMEDIT"; then 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7985$as_echo "$ac_ct_NMEDIT" >&6; } 7986else 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7988$as_echo "no" >&6; } 7989fi 7990 7991 if test "x$ac_ct_NMEDIT" = x; then 7992 NMEDIT=":" 7993 else 7994 case $cross_compiling:$ac_tool_warned in 7995yes:) 7996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7998ac_tool_warned=yes ;; 7999esac 8000 NMEDIT=$ac_ct_NMEDIT 8001 fi 8002else 8003 NMEDIT="$ac_cv_prog_NMEDIT" 8004fi 8005 8006 if test -n "$ac_tool_prefix"; then 8007 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8008set dummy ${ac_tool_prefix}lipo; ac_word=$2 8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8010$as_echo_n "checking for $ac_word... " >&6; } 8011if ${ac_cv_prog_LIPO+:} false; then : 8012 $as_echo_n "(cached) " >&6 8013else 8014 if test -n "$LIPO"; then 8015 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8016else 8017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8018for as_dir in $PATH 8019do 8020 IFS=$as_save_IFS 8021 test -z "$as_dir" && as_dir=. 8022 for ac_exec_ext in '' $ac_executable_extensions; do 8023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8024 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8026 break 2 8027 fi 8028done 8029 done 8030IFS=$as_save_IFS 8031 8032fi 8033fi 8034LIPO=$ac_cv_prog_LIPO 8035if test -n "$LIPO"; then 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8037$as_echo "$LIPO" >&6; } 8038else 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8040$as_echo "no" >&6; } 8041fi 8042 8043 8044fi 8045if test -z "$ac_cv_prog_LIPO"; then 8046 ac_ct_LIPO=$LIPO 8047 # Extract the first word of "lipo", so it can be a program name with args. 8048set dummy lipo; ac_word=$2 8049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8050$as_echo_n "checking for $ac_word... " >&6; } 8051if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8052 $as_echo_n "(cached) " >&6 8053else 8054 if test -n "$ac_ct_LIPO"; then 8055 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8056else 8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8058for as_dir in $PATH 8059do 8060 IFS=$as_save_IFS 8061 test -z "$as_dir" && as_dir=. 8062 for ac_exec_ext in '' $ac_executable_extensions; do 8063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8064 ac_cv_prog_ac_ct_LIPO="lipo" 8065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8066 break 2 8067 fi 8068done 8069 done 8070IFS=$as_save_IFS 8071 8072fi 8073fi 8074ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8075if test -n "$ac_ct_LIPO"; then 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8077$as_echo "$ac_ct_LIPO" >&6; } 8078else 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8080$as_echo "no" >&6; } 8081fi 8082 8083 if test "x$ac_ct_LIPO" = x; then 8084 LIPO=":" 8085 else 8086 case $cross_compiling:$ac_tool_warned in 8087yes:) 8088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8090ac_tool_warned=yes ;; 8091esac 8092 LIPO=$ac_ct_LIPO 8093 fi 8094else 8095 LIPO="$ac_cv_prog_LIPO" 8096fi 8097 8098 if test -n "$ac_tool_prefix"; then 8099 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8100set dummy ${ac_tool_prefix}otool; ac_word=$2 8101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8102$as_echo_n "checking for $ac_word... " >&6; } 8103if ${ac_cv_prog_OTOOL+:} false; then : 8104 $as_echo_n "(cached) " >&6 8105else 8106 if test -n "$OTOOL"; then 8107 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8108else 8109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8110for as_dir in $PATH 8111do 8112 IFS=$as_save_IFS 8113 test -z "$as_dir" && as_dir=. 8114 for ac_exec_ext in '' $ac_executable_extensions; do 8115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8116 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8118 break 2 8119 fi 8120done 8121 done 8122IFS=$as_save_IFS 8123 8124fi 8125fi 8126OTOOL=$ac_cv_prog_OTOOL 8127if test -n "$OTOOL"; then 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8129$as_echo "$OTOOL" >&6; } 8130else 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8132$as_echo "no" >&6; } 8133fi 8134 8135 8136fi 8137if test -z "$ac_cv_prog_OTOOL"; then 8138 ac_ct_OTOOL=$OTOOL 8139 # Extract the first word of "otool", so it can be a program name with args. 8140set dummy otool; ac_word=$2 8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8142$as_echo_n "checking for $ac_word... " >&6; } 8143if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 if test -n "$ac_ct_OTOOL"; then 8147 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8148else 8149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8150for as_dir in $PATH 8151do 8152 IFS=$as_save_IFS 8153 test -z "$as_dir" && as_dir=. 8154 for ac_exec_ext in '' $ac_executable_extensions; do 8155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8156 ac_cv_prog_ac_ct_OTOOL="otool" 8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8158 break 2 8159 fi 8160done 8161 done 8162IFS=$as_save_IFS 8163 8164fi 8165fi 8166ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8167if test -n "$ac_ct_OTOOL"; then 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8169$as_echo "$ac_ct_OTOOL" >&6; } 8170else 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8172$as_echo "no" >&6; } 8173fi 8174 8175 if test "x$ac_ct_OTOOL" = x; then 8176 OTOOL=":" 8177 else 8178 case $cross_compiling:$ac_tool_warned in 8179yes:) 8180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8182ac_tool_warned=yes ;; 8183esac 8184 OTOOL=$ac_ct_OTOOL 8185 fi 8186else 8187 OTOOL="$ac_cv_prog_OTOOL" 8188fi 8189 8190 if test -n "$ac_tool_prefix"; then 8191 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8192set dummy ${ac_tool_prefix}otool64; ac_word=$2 8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8194$as_echo_n "checking for $ac_word... " >&6; } 8195if ${ac_cv_prog_OTOOL64+:} false; then : 8196 $as_echo_n "(cached) " >&6 8197else 8198 if test -n "$OTOOL64"; then 8199 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8200else 8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8202for as_dir in $PATH 8203do 8204 IFS=$as_save_IFS 8205 test -z "$as_dir" && as_dir=. 8206 for ac_exec_ext in '' $ac_executable_extensions; do 8207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8208 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8210 break 2 8211 fi 8212done 8213 done 8214IFS=$as_save_IFS 8215 8216fi 8217fi 8218OTOOL64=$ac_cv_prog_OTOOL64 8219if test -n "$OTOOL64"; then 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8221$as_echo "$OTOOL64" >&6; } 8222else 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8224$as_echo "no" >&6; } 8225fi 8226 8227 8228fi 8229if test -z "$ac_cv_prog_OTOOL64"; then 8230 ac_ct_OTOOL64=$OTOOL64 8231 # Extract the first word of "otool64", so it can be a program name with args. 8232set dummy otool64; ac_word=$2 8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8234$as_echo_n "checking for $ac_word... " >&6; } 8235if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8236 $as_echo_n "(cached) " >&6 8237else 8238 if test -n "$ac_ct_OTOOL64"; then 8239 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8240else 8241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8242for as_dir in $PATH 8243do 8244 IFS=$as_save_IFS 8245 test -z "$as_dir" && as_dir=. 8246 for ac_exec_ext in '' $ac_executable_extensions; do 8247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8248 ac_cv_prog_ac_ct_OTOOL64="otool64" 8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8250 break 2 8251 fi 8252done 8253 done 8254IFS=$as_save_IFS 8255 8256fi 8257fi 8258ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8259if test -n "$ac_ct_OTOOL64"; then 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8261$as_echo "$ac_ct_OTOOL64" >&6; } 8262else 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8264$as_echo "no" >&6; } 8265fi 8266 8267 if test "x$ac_ct_OTOOL64" = x; then 8268 OTOOL64=":" 8269 else 8270 case $cross_compiling:$ac_tool_warned in 8271yes:) 8272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8274ac_tool_warned=yes ;; 8275esac 8276 OTOOL64=$ac_ct_OTOOL64 8277 fi 8278else 8279 OTOOL64="$ac_cv_prog_OTOOL64" 8280fi 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8309$as_echo_n "checking for -single_module linker flag... " >&6; } 8310if ${lt_cv_apple_cc_single_mod+:} false; then : 8311 $as_echo_n "(cached) " >&6 8312else 8313 lt_cv_apple_cc_single_mod=no 8314 if test -z "$LT_MULTI_MODULE"; then 8315 # By default we will add the -single_module flag. You can override 8316 # by either setting the environment variable LT_MULTI_MODULE 8317 # non-empty at configure time, or by adding -multi_module to the 8318 # link flags. 8319 rm -rf libconftest.dylib* 8320 echo "int foo(void){return 1;}" > conftest.c 8321 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8322-dynamiclib -Wl,-single_module conftest.c" >&5 8323 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8324 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8325 _lt_result=$? 8326 # If there is a non-empty error log, and "single_module" 8327 # appears in it, assume the flag caused a linker warning 8328 if test -s conftest.err && $GREP single_module conftest.err; then 8329 cat conftest.err >&5 8330 # Otherwise, if the output was created with a 0 exit code from 8331 # the compiler, it worked. 8332 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8333 lt_cv_apple_cc_single_mod=yes 8334 else 8335 cat conftest.err >&5 8336 fi 8337 rm -rf libconftest.dylib* 8338 rm -f conftest.* 8339 fi 8340fi 8341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8342$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8343 8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8345$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8346if ${lt_cv_ld_exported_symbols_list+:} false; then : 8347 $as_echo_n "(cached) " >&6 8348else 8349 lt_cv_ld_exported_symbols_list=no 8350 save_LDFLAGS=$LDFLAGS 8351 echo "_main" > conftest.sym 8352 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8354/* end confdefs.h. */ 8355 8356int 8357main () 8358{ 8359 8360 ; 8361 return 0; 8362} 8363_ACEOF 8364if ac_fn_c_try_link "$LINENO"; then : 8365 lt_cv_ld_exported_symbols_list=yes 8366else 8367 lt_cv_ld_exported_symbols_list=no 8368fi 8369rm -f core conftest.err conftest.$ac_objext \ 8370 conftest$ac_exeext conftest.$ac_ext 8371 LDFLAGS=$save_LDFLAGS 8372 8373fi 8374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8375$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8376 8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8378$as_echo_n "checking for -force_load linker flag... " >&6; } 8379if ${lt_cv_ld_force_load+:} false; then : 8380 $as_echo_n "(cached) " >&6 8381else 8382 lt_cv_ld_force_load=no 8383 cat > conftest.c << _LT_EOF 8384int forced_loaded() { return 2;} 8385_LT_EOF 8386 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8387 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8388 echo "$AR cru libconftest.a conftest.o" >&5 8389 $AR cru libconftest.a conftest.o 2>&5 8390 echo "$RANLIB libconftest.a" >&5 8391 $RANLIB libconftest.a 2>&5 8392 cat > conftest.c << _LT_EOF 8393int main() { return 0;} 8394_LT_EOF 8395 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8396 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8397 _lt_result=$? 8398 if test -s conftest.err && $GREP force_load conftest.err; then 8399 cat conftest.err >&5 8400 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8401 lt_cv_ld_force_load=yes 8402 else 8403 cat conftest.err >&5 8404 fi 8405 rm -f conftest.err libconftest.a conftest conftest.c 8406 rm -rf conftest.dSYM 8407 8408fi 8409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8410$as_echo "$lt_cv_ld_force_load" >&6; } 8411 case $host_os in 8412 rhapsody* | darwin1.[012]) 8413 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8414 darwin1.*) 8415 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8416 darwin*) # darwin 5.x on 8417 # if running on 10.5 or later, the deployment target defaults 8418 # to the OS version, if on x86, and 10.4, the deployment 8419 # target defaults to 10.4. Don't you love it? 8420 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8421 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8422 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8423 10.[012][,.]*) 8424 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8425 10.*) 8426 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8427 esac 8428 ;; 8429 esac 8430 if test yes = "$lt_cv_apple_cc_single_mod"; then 8431 _lt_dar_single_mod='$single_module' 8432 fi 8433 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8434 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8435 else 8436 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8437 fi 8438 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8439 _lt_dsymutil='~$DSYMUTIL $lib || :' 8440 else 8441 _lt_dsymutil= 8442 fi 8443 ;; 8444 esac 8445 8446# func_munge_path_list VARIABLE PATH 8447# ----------------------------------- 8448# VARIABLE is name of variable containing _space_ separated list of 8449# directories to be munged by the contents of PATH, which is string 8450# having a format: 8451# "DIR[:DIR]:" 8452# string "DIR[ DIR]" will be prepended to VARIABLE 8453# ":DIR[:DIR]" 8454# string "DIR[ DIR]" will be appended to VARIABLE 8455# "DIRP[:DIRP]::[DIRA:]DIRA" 8456# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8457# "DIRA[ DIRA]" will be appended to VARIABLE 8458# "DIR[:DIR]" 8459# VARIABLE will be replaced by "DIR[ DIR]" 8460func_munge_path_list () 8461{ 8462 case x$2 in 8463 x) 8464 ;; 8465 *:) 8466 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8467 ;; 8468 x:*) 8469 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8470 ;; 8471 *::*) 8472 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8473 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8474 ;; 8475 *) 8476 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8477 ;; 8478 esac 8479} 8480 8481ac_ext=c 8482ac_cpp='$CPP $CPPFLAGS' 8483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8485ac_compiler_gnu=$ac_cv_c_compiler_gnu 8486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8487$as_echo_n "checking how to run the C preprocessor... " >&6; } 8488# On Suns, sometimes $CPP names a directory. 8489if test -n "$CPP" && test -d "$CPP"; then 8490 CPP= 8491fi 8492if test -z "$CPP"; then 8493 if ${ac_cv_prog_CPP+:} false; then : 8494 $as_echo_n "(cached) " >&6 8495else 8496 # Double quotes because CPP needs to be expanded 8497 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8498 do 8499 ac_preproc_ok=false 8500for ac_c_preproc_warn_flag in '' yes 8501do 8502 # Use a header file that comes with gcc, so configuring glibc 8503 # with a fresh cross-compiler works. 8504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8505 # <limits.h> exists even on freestanding compilers. 8506 # On the NeXT, cc -E runs the code through the compiler's parser, 8507 # not just through cpp. "Syntax error" is here to catch this case. 8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8509/* end confdefs.h. */ 8510#ifdef __STDC__ 8511# include <limits.h> 8512#else 8513# include <assert.h> 8514#endif 8515 Syntax error 8516_ACEOF 8517if ac_fn_c_try_cpp "$LINENO"; then : 8518 8519else 8520 # Broken: fails on valid input. 8521continue 8522fi 8523rm -f conftest.err conftest.i conftest.$ac_ext 8524 8525 # OK, works on sane cases. Now check whether nonexistent headers 8526 # can be detected and how. 8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8528/* end confdefs.h. */ 8529#include <ac_nonexistent.h> 8530_ACEOF 8531if ac_fn_c_try_cpp "$LINENO"; then : 8532 # Broken: success on invalid input. 8533continue 8534else 8535 # Passes both tests. 8536ac_preproc_ok=: 8537break 8538fi 8539rm -f conftest.err conftest.i conftest.$ac_ext 8540 8541done 8542# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8543rm -f conftest.i conftest.err conftest.$ac_ext 8544if $ac_preproc_ok; then : 8545 break 8546fi 8547 8548 done 8549 ac_cv_prog_CPP=$CPP 8550 8551fi 8552 CPP=$ac_cv_prog_CPP 8553else 8554 ac_cv_prog_CPP=$CPP 8555fi 8556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8557$as_echo "$CPP" >&6; } 8558ac_preproc_ok=false 8559for ac_c_preproc_warn_flag in '' yes 8560do 8561 # Use a header file that comes with gcc, so configuring glibc 8562 # with a fresh cross-compiler works. 8563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8564 # <limits.h> exists even on freestanding compilers. 8565 # On the NeXT, cc -E runs the code through the compiler's parser, 8566 # not just through cpp. "Syntax error" is here to catch this case. 8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8568/* end confdefs.h. */ 8569#ifdef __STDC__ 8570# include <limits.h> 8571#else 8572# include <assert.h> 8573#endif 8574 Syntax error 8575_ACEOF 8576if ac_fn_c_try_cpp "$LINENO"; then : 8577 8578else 8579 # Broken: fails on valid input. 8580continue 8581fi 8582rm -f conftest.err conftest.i conftest.$ac_ext 8583 8584 # OK, works on sane cases. Now check whether nonexistent headers 8585 # can be detected and how. 8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8587/* end confdefs.h. */ 8588#include <ac_nonexistent.h> 8589_ACEOF 8590if ac_fn_c_try_cpp "$LINENO"; then : 8591 # Broken: success on invalid input. 8592continue 8593else 8594 # Passes both tests. 8595ac_preproc_ok=: 8596break 8597fi 8598rm -f conftest.err conftest.i conftest.$ac_ext 8599 8600done 8601# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8602rm -f conftest.i conftest.err conftest.$ac_ext 8603if $ac_preproc_ok; then : 8604 8605else 8606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8608as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8609See \`config.log' for more details" "$LINENO" 5; } 8610fi 8611 8612ac_ext=c 8613ac_cpp='$CPP $CPPFLAGS' 8614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8616ac_compiler_gnu=$ac_cv_c_compiler_gnu 8617 8618 8619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8620$as_echo_n "checking for ANSI C header files... " >&6; } 8621if ${ac_cv_header_stdc+:} false; then : 8622 $as_echo_n "(cached) " >&6 8623else 8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8625/* end confdefs.h. */ 8626#include <stdlib.h> 8627#include <stdarg.h> 8628#include <string.h> 8629#include <float.h> 8630 8631int 8632main () 8633{ 8634 8635 ; 8636 return 0; 8637} 8638_ACEOF 8639if ac_fn_c_try_compile "$LINENO"; then : 8640 ac_cv_header_stdc=yes 8641else 8642 ac_cv_header_stdc=no 8643fi 8644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8645 8646if test $ac_cv_header_stdc = yes; then 8647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8649/* end confdefs.h. */ 8650#include <string.h> 8651 8652_ACEOF 8653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8654 $EGREP "memchr" >/dev/null 2>&1; then : 8655 8656else 8657 ac_cv_header_stdc=no 8658fi 8659rm -f conftest* 8660 8661fi 8662 8663if test $ac_cv_header_stdc = yes; then 8664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8666/* end confdefs.h. */ 8667#include <stdlib.h> 8668 8669_ACEOF 8670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8671 $EGREP "free" >/dev/null 2>&1; then : 8672 8673else 8674 ac_cv_header_stdc=no 8675fi 8676rm -f conftest* 8677 8678fi 8679 8680if test $ac_cv_header_stdc = yes; then 8681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8682 if test "$cross_compiling" = yes; then : 8683 : 8684else 8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8686/* end confdefs.h. */ 8687#include <ctype.h> 8688#include <stdlib.h> 8689#if ((' ' & 0x0FF) == 0x020) 8690# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8691# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8692#else 8693# define ISLOWER(c) \ 8694 (('a' <= (c) && (c) <= 'i') \ 8695 || ('j' <= (c) && (c) <= 'r') \ 8696 || ('s' <= (c) && (c) <= 'z')) 8697# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8698#endif 8699 8700#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8701int 8702main () 8703{ 8704 int i; 8705 for (i = 0; i < 256; i++) 8706 if (XOR (islower (i), ISLOWER (i)) 8707 || toupper (i) != TOUPPER (i)) 8708 return 2; 8709 return 0; 8710} 8711_ACEOF 8712if ac_fn_c_try_run "$LINENO"; then : 8713 8714else 8715 ac_cv_header_stdc=no 8716fi 8717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8718 conftest.$ac_objext conftest.beam conftest.$ac_ext 8719fi 8720 8721fi 8722fi 8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8724$as_echo "$ac_cv_header_stdc" >&6; } 8725if test $ac_cv_header_stdc = yes; then 8726 8727$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8728 8729fi 8730 8731# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8732for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8733 inttypes.h stdint.h unistd.h 8734do : 8735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8736ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8737" 8738if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8739 cat >>confdefs.h <<_ACEOF 8740#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8741_ACEOF 8742 8743fi 8744 8745done 8746 8747 8748for ac_header in dlfcn.h 8749do : 8750 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8751" 8752if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8753 cat >>confdefs.h <<_ACEOF 8754#define HAVE_DLFCN_H 1 8755_ACEOF 8756 8757fi 8758 8759done 8760 8761 8762 8763 8764 8765# Set options 8766 8767 8768 8769 enable_dlopen=no 8770 8771 8772 enable_win32_dll=no 8773 8774 8775 # Check whether --enable-shared was given. 8776if test "${enable_shared+set}" = set; then : 8777 enableval=$enable_shared; p=${PACKAGE-default} 8778 case $enableval in 8779 yes) enable_shared=yes ;; 8780 no) enable_shared=no ;; 8781 *) 8782 enable_shared=no 8783 # Look at the argument we got. We use all the common list separators. 8784 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8785 for pkg in $enableval; do 8786 IFS=$lt_save_ifs 8787 if test "X$pkg" = "X$p"; then 8788 enable_shared=yes 8789 fi 8790 done 8791 IFS=$lt_save_ifs 8792 ;; 8793 esac 8794else 8795 enable_shared=yes 8796fi 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 # Check whether --enable-static was given. 8807if test "${enable_static+set}" = set; then : 8808 enableval=$enable_static; p=${PACKAGE-default} 8809 case $enableval in 8810 yes) enable_static=yes ;; 8811 no) enable_static=no ;; 8812 *) 8813 enable_static=no 8814 # Look at the argument we got. We use all the common list separators. 8815 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8816 for pkg in $enableval; do 8817 IFS=$lt_save_ifs 8818 if test "X$pkg" = "X$p"; then 8819 enable_static=yes 8820 fi 8821 done 8822 IFS=$lt_save_ifs 8823 ;; 8824 esac 8825else 8826 enable_static=yes 8827fi 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838# Check whether --with-pic was given. 8839if test "${with_pic+set}" = set; then : 8840 withval=$with_pic; lt_p=${PACKAGE-default} 8841 case $withval in 8842 yes|no) pic_mode=$withval ;; 8843 *) 8844 pic_mode=default 8845 # Look at the argument we got. We use all the common list separators. 8846 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8847 for lt_pkg in $withval; do 8848 IFS=$lt_save_ifs 8849 if test "X$lt_pkg" = "X$lt_p"; then 8850 pic_mode=yes 8851 fi 8852 done 8853 IFS=$lt_save_ifs 8854 ;; 8855 esac 8856else 8857 pic_mode=default 8858fi 8859 8860 8861 8862 8863 8864 8865 8866 8867 # Check whether --enable-fast-install was given. 8868if test "${enable_fast_install+set}" = set; then : 8869 enableval=$enable_fast_install; p=${PACKAGE-default} 8870 case $enableval in 8871 yes) enable_fast_install=yes ;; 8872 no) enable_fast_install=no ;; 8873 *) 8874 enable_fast_install=no 8875 # Look at the argument we got. We use all the common list separators. 8876 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8877 for pkg in $enableval; do 8878 IFS=$lt_save_ifs 8879 if test "X$pkg" = "X$p"; then 8880 enable_fast_install=yes 8881 fi 8882 done 8883 IFS=$lt_save_ifs 8884 ;; 8885 esac 8886else 8887 enable_fast_install=yes 8888fi 8889 8890 8891 8892 8893 8894 8895 8896 8897 shared_archive_member_spec= 8898case $host,$enable_shared in 8899power*-*-aix[5-9]*,yes) 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8901$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8902 8903# Check whether --with-aix-soname was given. 8904if test "${with_aix_soname+set}" = set; then : 8905 withval=$with_aix_soname; case $withval in 8906 aix|svr4|both) 8907 ;; 8908 *) 8909 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8910 ;; 8911 esac 8912 lt_cv_with_aix_soname=$with_aix_soname 8913else 8914 if ${lt_cv_with_aix_soname+:} false; then : 8915 $as_echo_n "(cached) " >&6 8916else 8917 lt_cv_with_aix_soname=aix 8918fi 8919 8920 with_aix_soname=$lt_cv_with_aix_soname 8921fi 8922 8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8924$as_echo "$with_aix_soname" >&6; } 8925 if test aix != "$with_aix_soname"; then 8926 # For the AIX way of multilib, we name the shared archive member 8927 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8928 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8929 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8930 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8931 if test 64 = "${OBJECT_MODE-32}"; then 8932 shared_archive_member_spec=shr_64 8933 else 8934 shared_archive_member_spec=shr 8935 fi 8936 fi 8937 ;; 8938*) 8939 with_aix_soname=aix 8940 ;; 8941esac 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952# This can be used to rebuild libtool when needed 8953LIBTOOL_DEPS=$ltmain 8954 8955# Always use our own libtool. 8956LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987test -z "$LN_S" && LN_S="ln -s" 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002if test -n "${ZSH_VERSION+set}"; then 9003 setopt NO_GLOB_SUBST 9004fi 9005 9006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9007$as_echo_n "checking for objdir... " >&6; } 9008if ${lt_cv_objdir+:} false; then : 9009 $as_echo_n "(cached) " >&6 9010else 9011 rm -f .libs 2>/dev/null 9012mkdir .libs 2>/dev/null 9013if test -d .libs; then 9014 lt_cv_objdir=.libs 9015else 9016 # MS-DOS does not allow filenames that begin with a dot. 9017 lt_cv_objdir=_libs 9018fi 9019rmdir .libs 2>/dev/null 9020fi 9021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9022$as_echo "$lt_cv_objdir" >&6; } 9023objdir=$lt_cv_objdir 9024 9025 9026 9027 9028 9029cat >>confdefs.h <<_ACEOF 9030#define LT_OBJDIR "$lt_cv_objdir/" 9031_ACEOF 9032 9033 9034 9035 9036case $host_os in 9037aix3*) 9038 # AIX sometimes has problems with the GCC collect2 program. For some 9039 # reason, if we set the COLLECT_NAMES environment variable, the problems 9040 # vanish in a puff of smoke. 9041 if test set != "${COLLECT_NAMES+set}"; then 9042 COLLECT_NAMES= 9043 export COLLECT_NAMES 9044 fi 9045 ;; 9046esac 9047 9048# Global variables: 9049ofile=libtool 9050can_build_shared=yes 9051 9052# All known linkers require a '.a' archive for static linking (except MSVC, 9053# which needs '.lib'). 9054libext=a 9055 9056with_gnu_ld=$lt_cv_prog_gnu_ld 9057 9058old_CC=$CC 9059old_CFLAGS=$CFLAGS 9060 9061# Set sane defaults for various variables 9062test -z "$CC" && CC=cc 9063test -z "$LTCC" && LTCC=$CC 9064test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9065test -z "$LD" && LD=ld 9066test -z "$ac_objext" && ac_objext=o 9067 9068func_cc_basename $compiler 9069cc_basename=$func_cc_basename_result 9070 9071 9072# Only perform the check for file, if the check method requires it 9073test -z "$MAGIC_CMD" && MAGIC_CMD=file 9074case $deplibs_check_method in 9075file_magic*) 9076 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9078$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9079if ${lt_cv_path_MAGIC_CMD+:} false; then : 9080 $as_echo_n "(cached) " >&6 9081else 9082 case $MAGIC_CMD in 9083[\\/*] | ?:[\\/]*) 9084 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9085 ;; 9086*) 9087 lt_save_MAGIC_CMD=$MAGIC_CMD 9088 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9089 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9090 for ac_dir in $ac_dummy; do 9091 IFS=$lt_save_ifs 9092 test -z "$ac_dir" && ac_dir=. 9093 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9094 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9095 if test -n "$file_magic_test_file"; then 9096 case $deplibs_check_method in 9097 "file_magic "*) 9098 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9099 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9100 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9101 $EGREP "$file_magic_regex" > /dev/null; then 9102 : 9103 else 9104 cat <<_LT_EOF 1>&2 9105 9106*** Warning: the command libtool uses to detect shared libraries, 9107*** $file_magic_cmd, produces output that libtool cannot recognize. 9108*** The result is that libtool may fail to recognize shared libraries 9109*** as such. This will affect the creation of libtool libraries that 9110*** depend on shared libraries, but programs linked with such libtool 9111*** libraries will work regardless of this problem. Nevertheless, you 9112*** may want to report the problem to your system manager and/or to 9113*** bug-libtool@gnu.org 9114 9115_LT_EOF 9116 fi ;; 9117 esac 9118 fi 9119 break 9120 fi 9121 done 9122 IFS=$lt_save_ifs 9123 MAGIC_CMD=$lt_save_MAGIC_CMD 9124 ;; 9125esac 9126fi 9127 9128MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9129if test -n "$MAGIC_CMD"; then 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9131$as_echo "$MAGIC_CMD" >&6; } 9132else 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9134$as_echo "no" >&6; } 9135fi 9136 9137 9138 9139 9140 9141if test -z "$lt_cv_path_MAGIC_CMD"; then 9142 if test -n "$ac_tool_prefix"; then 9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9144$as_echo_n "checking for file... " >&6; } 9145if ${lt_cv_path_MAGIC_CMD+:} false; then : 9146 $as_echo_n "(cached) " >&6 9147else 9148 case $MAGIC_CMD in 9149[\\/*] | ?:[\\/]*) 9150 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9151 ;; 9152*) 9153 lt_save_MAGIC_CMD=$MAGIC_CMD 9154 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9155 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9156 for ac_dir in $ac_dummy; do 9157 IFS=$lt_save_ifs 9158 test -z "$ac_dir" && ac_dir=. 9159 if test -f "$ac_dir/file"; then 9160 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9161 if test -n "$file_magic_test_file"; then 9162 case $deplibs_check_method in 9163 "file_magic "*) 9164 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9165 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9166 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9167 $EGREP "$file_magic_regex" > /dev/null; then 9168 : 9169 else 9170 cat <<_LT_EOF 1>&2 9171 9172*** Warning: the command libtool uses to detect shared libraries, 9173*** $file_magic_cmd, produces output that libtool cannot recognize. 9174*** The result is that libtool may fail to recognize shared libraries 9175*** as such. This will affect the creation of libtool libraries that 9176*** depend on shared libraries, but programs linked with such libtool 9177*** libraries will work regardless of this problem. Nevertheless, you 9178*** may want to report the problem to your system manager and/or to 9179*** bug-libtool@gnu.org 9180 9181_LT_EOF 9182 fi ;; 9183 esac 9184 fi 9185 break 9186 fi 9187 done 9188 IFS=$lt_save_ifs 9189 MAGIC_CMD=$lt_save_MAGIC_CMD 9190 ;; 9191esac 9192fi 9193 9194MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9195if test -n "$MAGIC_CMD"; then 9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9197$as_echo "$MAGIC_CMD" >&6; } 9198else 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9200$as_echo "no" >&6; } 9201fi 9202 9203 9204 else 9205 MAGIC_CMD=: 9206 fi 9207fi 9208 9209 fi 9210 ;; 9211esac 9212 9213# Use C for the default configuration in the libtool script 9214 9215lt_save_CC=$CC 9216ac_ext=c 9217ac_cpp='$CPP $CPPFLAGS' 9218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9220ac_compiler_gnu=$ac_cv_c_compiler_gnu 9221 9222 9223# Source file extension for C test sources. 9224ac_ext=c 9225 9226# Object file extension for compiled C test sources. 9227objext=o 9228objext=$objext 9229 9230# Code to be used in simple compile tests 9231lt_simple_compile_test_code="int some_variable = 0;" 9232 9233# Code to be used in simple link tests 9234lt_simple_link_test_code='int main(){return(0);}' 9235 9236 9237 9238 9239 9240 9241 9242# If no C compiler was specified, use CC. 9243LTCC=${LTCC-"$CC"} 9244 9245# If no C compiler flags were specified, use CFLAGS. 9246LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9247 9248# Allow CC to be a program name with arguments. 9249compiler=$CC 9250 9251# Save the default compiler, since it gets overwritten when the other 9252# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9253compiler_DEFAULT=$CC 9254 9255# save warnings/boilerplate of simple test code 9256ac_outfile=conftest.$ac_objext 9257echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9258eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9259_lt_compiler_boilerplate=`cat conftest.err` 9260$RM conftest* 9261 9262ac_outfile=conftest.$ac_objext 9263echo "$lt_simple_link_test_code" >conftest.$ac_ext 9264eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9265_lt_linker_boilerplate=`cat conftest.err` 9266$RM -r conftest* 9267 9268 9269## CAVEAT EMPTOR: 9270## There is no encapsulation within the following macros, do not change 9271## the running order or otherwise move them around unless you know exactly 9272## what you are doing... 9273if test -n "$compiler"; then 9274 9275lt_prog_compiler_no_builtin_flag= 9276 9277if test yes = "$GCC"; then 9278 case $cc_basename in 9279 nvcc*) 9280 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9281 *) 9282 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9283 esac 9284 9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9286$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9287if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9288 $as_echo_n "(cached) " >&6 9289else 9290 lt_cv_prog_compiler_rtti_exceptions=no 9291 ac_outfile=conftest.$ac_objext 9292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9293 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9294 # Insert the option either (1) after the last *FLAGS variable, or 9295 # (2) before a word containing "conftest.", or (3) at the end. 9296 # Note that $ac_compile itself does not contain backslashes and begins 9297 # with a dollar sign (not a hyphen), so the echo should work correctly. 9298 # The option is referenced via a variable to avoid confusing sed. 9299 lt_compile=`echo "$ac_compile" | $SED \ 9300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9302 -e 's:$: $lt_compiler_flag:'` 9303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9304 (eval "$lt_compile" 2>conftest.err) 9305 ac_status=$? 9306 cat conftest.err >&5 9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9308 if (exit $ac_status) && test -s "$ac_outfile"; then 9309 # The compiler can only warn and ignore the option if not recognized 9310 # So say no if there are warnings other than the usual output. 9311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9313 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9314 lt_cv_prog_compiler_rtti_exceptions=yes 9315 fi 9316 fi 9317 $RM conftest* 9318 9319fi 9320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9321$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9322 9323if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9324 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9325else 9326 : 9327fi 9328 9329fi 9330 9331 9332 9333 9334 9335 9336 lt_prog_compiler_wl= 9337lt_prog_compiler_pic= 9338lt_prog_compiler_static= 9339 9340 9341 if test yes = "$GCC"; then 9342 lt_prog_compiler_wl='-Wl,' 9343 lt_prog_compiler_static='-static' 9344 9345 case $host_os in 9346 aix*) 9347 # All AIX code is PIC. 9348 if test ia64 = "$host_cpu"; then 9349 # AIX 5 now supports IA64 processor 9350 lt_prog_compiler_static='-Bstatic' 9351 fi 9352 lt_prog_compiler_pic='-fPIC' 9353 ;; 9354 9355 amigaos*) 9356 case $host_cpu in 9357 powerpc) 9358 # see comment about AmigaOS4 .so support 9359 lt_prog_compiler_pic='-fPIC' 9360 ;; 9361 m68k) 9362 # FIXME: we need at least 68020 code to build shared libraries, but 9363 # adding the '-m68020' flag to GCC prevents building anything better, 9364 # like '-m68040'. 9365 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9366 ;; 9367 esac 9368 ;; 9369 9370 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9371 # PIC is the default for these OSes. 9372 ;; 9373 9374 mingw* | cygwin* | pw32* | os2* | cegcc*) 9375 # This hack is so that the source file can tell whether it is being 9376 # built for inclusion in a dll (and should export symbols for example). 9377 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9378 # (--disable-auto-import) libraries 9379 lt_prog_compiler_pic='-DDLL_EXPORT' 9380 case $host_os in 9381 os2*) 9382 lt_prog_compiler_static='$wl-static' 9383 ;; 9384 esac 9385 ;; 9386 9387 darwin* | rhapsody*) 9388 # PIC is the default on this platform 9389 # Common symbols not allowed in MH_DYLIB files 9390 lt_prog_compiler_pic='-fno-common' 9391 ;; 9392 9393 haiku*) 9394 # PIC is the default for Haiku. 9395 # The "-static" flag exists, but is broken. 9396 lt_prog_compiler_static= 9397 ;; 9398 9399 hpux*) 9400 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9401 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9402 # sets the default TLS model and affects inlining. 9403 case $host_cpu in 9404 hppa*64*) 9405 # +Z the default 9406 ;; 9407 *) 9408 lt_prog_compiler_pic='-fPIC' 9409 ;; 9410 esac 9411 ;; 9412 9413 interix[3-9]*) 9414 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9415 # Instead, we relocate shared libraries at runtime. 9416 ;; 9417 9418 msdosdjgpp*) 9419 # Just because we use GCC doesn't mean we suddenly get shared libraries 9420 # on systems that don't support them. 9421 lt_prog_compiler_can_build_shared=no 9422 enable_shared=no 9423 ;; 9424 9425 *nto* | *qnx*) 9426 # QNX uses GNU C++, but need to define -shared option too, otherwise 9427 # it will coredump. 9428 lt_prog_compiler_pic='-fPIC -shared' 9429 ;; 9430 9431 sysv4*MP*) 9432 if test -d /usr/nec; then 9433 lt_prog_compiler_pic=-Kconform_pic 9434 fi 9435 ;; 9436 9437 *) 9438 lt_prog_compiler_pic='-fPIC' 9439 ;; 9440 esac 9441 9442 case $cc_basename in 9443 nvcc*) # Cuda Compiler Driver 2.2 9444 lt_prog_compiler_wl='-Xlinker ' 9445 if test -n "$lt_prog_compiler_pic"; then 9446 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9447 fi 9448 ;; 9449 esac 9450 else 9451 # PORTME Check for flag to pass linker flags through the system compiler. 9452 case $host_os in 9453 aix*) 9454 lt_prog_compiler_wl='-Wl,' 9455 if test ia64 = "$host_cpu"; then 9456 # AIX 5 now supports IA64 processor 9457 lt_prog_compiler_static='-Bstatic' 9458 else 9459 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9460 fi 9461 ;; 9462 9463 darwin* | rhapsody*) 9464 # PIC is the default on this platform 9465 # Common symbols not allowed in MH_DYLIB files 9466 lt_prog_compiler_pic='-fno-common' 9467 case $cc_basename in 9468 nagfor*) 9469 # NAG Fortran compiler 9470 lt_prog_compiler_wl='-Wl,-Wl,,' 9471 lt_prog_compiler_pic='-PIC' 9472 lt_prog_compiler_static='-Bstatic' 9473 ;; 9474 esac 9475 ;; 9476 9477 mingw* | cygwin* | pw32* | os2* | cegcc*) 9478 # This hack is so that the source file can tell whether it is being 9479 # built for inclusion in a dll (and should export symbols for example). 9480 lt_prog_compiler_pic='-DDLL_EXPORT' 9481 case $host_os in 9482 os2*) 9483 lt_prog_compiler_static='$wl-static' 9484 ;; 9485 esac 9486 ;; 9487 9488 hpux9* | hpux10* | hpux11*) 9489 lt_prog_compiler_wl='-Wl,' 9490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9491 # not for PA HP-UX. 9492 case $host_cpu in 9493 hppa*64*|ia64*) 9494 # +Z the default 9495 ;; 9496 *) 9497 lt_prog_compiler_pic='+Z' 9498 ;; 9499 esac 9500 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9501 lt_prog_compiler_static='$wl-a ${wl}archive' 9502 ;; 9503 9504 irix5* | irix6* | nonstopux*) 9505 lt_prog_compiler_wl='-Wl,' 9506 # PIC (with -KPIC) is the default. 9507 lt_prog_compiler_static='-non_shared' 9508 ;; 9509 9510 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9511 case $cc_basename in 9512 # old Intel for x86_64, which still supported -KPIC. 9513 ecc*) 9514 lt_prog_compiler_wl='-Wl,' 9515 lt_prog_compiler_pic='-KPIC' 9516 lt_prog_compiler_static='-static' 9517 ;; 9518 # icc used to be incompatible with GCC. 9519 # ICC 10 doesn't accept -KPIC any more. 9520 icc* | ifort*) 9521 lt_prog_compiler_wl='-Wl,' 9522 lt_prog_compiler_pic='-fPIC' 9523 lt_prog_compiler_static='-static' 9524 ;; 9525 # Lahey Fortran 8.1. 9526 lf95*) 9527 lt_prog_compiler_wl='-Wl,' 9528 lt_prog_compiler_pic='--shared' 9529 lt_prog_compiler_static='--static' 9530 ;; 9531 nagfor*) 9532 # NAG Fortran compiler 9533 lt_prog_compiler_wl='-Wl,-Wl,,' 9534 lt_prog_compiler_pic='-PIC' 9535 lt_prog_compiler_static='-Bstatic' 9536 ;; 9537 tcc*) 9538 # Fabrice Bellard et al's Tiny C Compiler 9539 lt_prog_compiler_wl='-Wl,' 9540 lt_prog_compiler_pic='-fPIC' 9541 lt_prog_compiler_static='-static' 9542 ;; 9543 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9544 # Portland Group compilers (*not* the Pentium gcc compiler, 9545 # which looks to be a dead project) 9546 lt_prog_compiler_wl='-Wl,' 9547 lt_prog_compiler_pic='-fpic' 9548 lt_prog_compiler_static='-Bstatic' 9549 ;; 9550 ccc*) 9551 lt_prog_compiler_wl='-Wl,' 9552 # All Alpha code is PIC. 9553 lt_prog_compiler_static='-non_shared' 9554 ;; 9555 xl* | bgxl* | bgf* | mpixl*) 9556 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9557 lt_prog_compiler_wl='-Wl,' 9558 lt_prog_compiler_pic='-qpic' 9559 lt_prog_compiler_static='-qstaticlink' 9560 ;; 9561 *) 9562 case `$CC -V 2>&1 | sed 5q` in 9563 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9564 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9565 lt_prog_compiler_pic='-KPIC' 9566 lt_prog_compiler_static='-Bstatic' 9567 lt_prog_compiler_wl='' 9568 ;; 9569 *Sun\ F* | *Sun*Fortran*) 9570 lt_prog_compiler_pic='-KPIC' 9571 lt_prog_compiler_static='-Bstatic' 9572 lt_prog_compiler_wl='-Qoption ld ' 9573 ;; 9574 *Sun\ C*) 9575 # Sun C 5.9 9576 lt_prog_compiler_pic='-KPIC' 9577 lt_prog_compiler_static='-Bstatic' 9578 lt_prog_compiler_wl='-Wl,' 9579 ;; 9580 *Intel*\ [CF]*Compiler*) 9581 lt_prog_compiler_wl='-Wl,' 9582 lt_prog_compiler_pic='-fPIC' 9583 lt_prog_compiler_static='-static' 9584 ;; 9585 *Portland\ Group*) 9586 lt_prog_compiler_wl='-Wl,' 9587 lt_prog_compiler_pic='-fpic' 9588 lt_prog_compiler_static='-Bstatic' 9589 ;; 9590 esac 9591 ;; 9592 esac 9593 ;; 9594 9595 newsos6) 9596 lt_prog_compiler_pic='-KPIC' 9597 lt_prog_compiler_static='-Bstatic' 9598 ;; 9599 9600 *nto* | *qnx*) 9601 # QNX uses GNU C++, but need to define -shared option too, otherwise 9602 # it will coredump. 9603 lt_prog_compiler_pic='-fPIC -shared' 9604 ;; 9605 9606 osf3* | osf4* | osf5*) 9607 lt_prog_compiler_wl='-Wl,' 9608 # All OSF/1 code is PIC. 9609 lt_prog_compiler_static='-non_shared' 9610 ;; 9611 9612 rdos*) 9613 lt_prog_compiler_static='-non_shared' 9614 ;; 9615 9616 solaris*) 9617 lt_prog_compiler_pic='-KPIC' 9618 lt_prog_compiler_static='-Bstatic' 9619 case $cc_basename in 9620 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9621 lt_prog_compiler_wl='-Qoption ld ';; 9622 *) 9623 lt_prog_compiler_wl='-Wl,';; 9624 esac 9625 ;; 9626 9627 sunos4*) 9628 lt_prog_compiler_wl='-Qoption ld ' 9629 lt_prog_compiler_pic='-PIC' 9630 lt_prog_compiler_static='-Bstatic' 9631 ;; 9632 9633 sysv4 | sysv4.2uw2* | sysv4.3*) 9634 lt_prog_compiler_wl='-Wl,' 9635 lt_prog_compiler_pic='-KPIC' 9636 lt_prog_compiler_static='-Bstatic' 9637 ;; 9638 9639 sysv4*MP*) 9640 if test -d /usr/nec; then 9641 lt_prog_compiler_pic='-Kconform_pic' 9642 lt_prog_compiler_static='-Bstatic' 9643 fi 9644 ;; 9645 9646 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9647 lt_prog_compiler_wl='-Wl,' 9648 lt_prog_compiler_pic='-KPIC' 9649 lt_prog_compiler_static='-Bstatic' 9650 ;; 9651 9652 unicos*) 9653 lt_prog_compiler_wl='-Wl,' 9654 lt_prog_compiler_can_build_shared=no 9655 ;; 9656 9657 uts4*) 9658 lt_prog_compiler_pic='-pic' 9659 lt_prog_compiler_static='-Bstatic' 9660 ;; 9661 9662 *) 9663 lt_prog_compiler_can_build_shared=no 9664 ;; 9665 esac 9666 fi 9667 9668case $host_os in 9669 # For platforms that do not support PIC, -DPIC is meaningless: 9670 *djgpp*) 9671 lt_prog_compiler_pic= 9672 ;; 9673 *) 9674 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9675 ;; 9676esac 9677 9678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9679$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9680if ${lt_cv_prog_compiler_pic+:} false; then : 9681 $as_echo_n "(cached) " >&6 9682else 9683 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9684fi 9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9686$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9687lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9688 9689# 9690# Check to make sure the PIC flag actually works. 9691# 9692if test -n "$lt_prog_compiler_pic"; then 9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9694$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9695if ${lt_cv_prog_compiler_pic_works+:} false; then : 9696 $as_echo_n "(cached) " >&6 9697else 9698 lt_cv_prog_compiler_pic_works=no 9699 ac_outfile=conftest.$ac_objext 9700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9701 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9702 # Insert the option either (1) after the last *FLAGS variable, or 9703 # (2) before a word containing "conftest.", or (3) at the end. 9704 # Note that $ac_compile itself does not contain backslashes and begins 9705 # with a dollar sign (not a hyphen), so the echo should work correctly. 9706 # The option is referenced via a variable to avoid confusing sed. 9707 lt_compile=`echo "$ac_compile" | $SED \ 9708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9710 -e 's:$: $lt_compiler_flag:'` 9711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9712 (eval "$lt_compile" 2>conftest.err) 9713 ac_status=$? 9714 cat conftest.err >&5 9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9716 if (exit $ac_status) && test -s "$ac_outfile"; then 9717 # The compiler can only warn and ignore the option if not recognized 9718 # So say no if there are warnings other than the usual output. 9719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9721 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9722 lt_cv_prog_compiler_pic_works=yes 9723 fi 9724 fi 9725 $RM conftest* 9726 9727fi 9728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9729$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9730 9731if test yes = "$lt_cv_prog_compiler_pic_works"; then 9732 case $lt_prog_compiler_pic in 9733 "" | " "*) ;; 9734 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9735 esac 9736else 9737 lt_prog_compiler_pic= 9738 lt_prog_compiler_can_build_shared=no 9739fi 9740 9741fi 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753# 9754# Check to make sure the static flag actually works. 9755# 9756wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9758$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9759if ${lt_cv_prog_compiler_static_works+:} false; then : 9760 $as_echo_n "(cached) " >&6 9761else 9762 lt_cv_prog_compiler_static_works=no 9763 save_LDFLAGS=$LDFLAGS 9764 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9765 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9766 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9767 # The linker can only warn and ignore the option if not recognized 9768 # So say no if there are warnings 9769 if test -s conftest.err; then 9770 # Append any errors to the config.log. 9771 cat conftest.err 1>&5 9772 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9774 if diff conftest.exp conftest.er2 >/dev/null; then 9775 lt_cv_prog_compiler_static_works=yes 9776 fi 9777 else 9778 lt_cv_prog_compiler_static_works=yes 9779 fi 9780 fi 9781 $RM -r conftest* 9782 LDFLAGS=$save_LDFLAGS 9783 9784fi 9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9786$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9787 9788if test yes = "$lt_cv_prog_compiler_static_works"; then 9789 : 9790else 9791 lt_prog_compiler_static= 9792fi 9793 9794 9795 9796 9797 9798 9799 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9801$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9802if ${lt_cv_prog_compiler_c_o+:} false; then : 9803 $as_echo_n "(cached) " >&6 9804else 9805 lt_cv_prog_compiler_c_o=no 9806 $RM -r conftest 2>/dev/null 9807 mkdir conftest 9808 cd conftest 9809 mkdir out 9810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9811 9812 lt_compiler_flag="-o out/conftest2.$ac_objext" 9813 # Insert the option either (1) after the last *FLAGS variable, or 9814 # (2) before a word containing "conftest.", or (3) at the end. 9815 # Note that $ac_compile itself does not contain backslashes and begins 9816 # with a dollar sign (not a hyphen), so the echo should work correctly. 9817 lt_compile=`echo "$ac_compile" | $SED \ 9818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9820 -e 's:$: $lt_compiler_flag:'` 9821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9822 (eval "$lt_compile" 2>out/conftest.err) 9823 ac_status=$? 9824 cat out/conftest.err >&5 9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9826 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9827 then 9828 # The compiler can only warn and ignore the option if not recognized 9829 # So say no if there are warnings 9830 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9833 lt_cv_prog_compiler_c_o=yes 9834 fi 9835 fi 9836 chmod u+w . 2>&5 9837 $RM conftest* 9838 # SGI C++ compiler will create directory out/ii_files/ for 9839 # template instantiation 9840 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9841 $RM out/* && rmdir out 9842 cd .. 9843 $RM -r conftest 9844 $RM conftest* 9845 9846fi 9847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9848$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9849 9850 9851 9852 9853 9854 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9856$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9857if ${lt_cv_prog_compiler_c_o+:} false; then : 9858 $as_echo_n "(cached) " >&6 9859else 9860 lt_cv_prog_compiler_c_o=no 9861 $RM -r conftest 2>/dev/null 9862 mkdir conftest 9863 cd conftest 9864 mkdir out 9865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9866 9867 lt_compiler_flag="-o out/conftest2.$ac_objext" 9868 # Insert the option either (1) after the last *FLAGS variable, or 9869 # (2) before a word containing "conftest.", or (3) at the end. 9870 # Note that $ac_compile itself does not contain backslashes and begins 9871 # with a dollar sign (not a hyphen), so the echo should work correctly. 9872 lt_compile=`echo "$ac_compile" | $SED \ 9873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9875 -e 's:$: $lt_compiler_flag:'` 9876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9877 (eval "$lt_compile" 2>out/conftest.err) 9878 ac_status=$? 9879 cat out/conftest.err >&5 9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9881 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9882 then 9883 # The compiler can only warn and ignore the option if not recognized 9884 # So say no if there are warnings 9885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9886 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9887 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9888 lt_cv_prog_compiler_c_o=yes 9889 fi 9890 fi 9891 chmod u+w . 2>&5 9892 $RM conftest* 9893 # SGI C++ compiler will create directory out/ii_files/ for 9894 # template instantiation 9895 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9896 $RM out/* && rmdir out 9897 cd .. 9898 $RM -r conftest 9899 $RM conftest* 9900 9901fi 9902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9903$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9904 9905 9906 9907 9908hard_links=nottested 9909if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9910 # do not overwrite the value of need_locks provided by the user 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9912$as_echo_n "checking if we can lock with hard links... " >&6; } 9913 hard_links=yes 9914 $RM conftest* 9915 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9916 touch conftest.a 9917 ln conftest.a conftest.b 2>&5 || hard_links=no 9918 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9920$as_echo "$hard_links" >&6; } 9921 if test no = "$hard_links"; then 9922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9923$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9924 need_locks=warn 9925 fi 9926else 9927 need_locks=no 9928fi 9929 9930 9931 9932 9933 9934 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9936$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9937 9938 runpath_var= 9939 allow_undefined_flag= 9940 always_export_symbols=no 9941 archive_cmds= 9942 archive_expsym_cmds= 9943 compiler_needs_object=no 9944 enable_shared_with_static_runtimes=no 9945 export_dynamic_flag_spec= 9946 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9947 hardcode_automatic=no 9948 hardcode_direct=no 9949 hardcode_direct_absolute=no 9950 hardcode_libdir_flag_spec= 9951 hardcode_libdir_separator= 9952 hardcode_minus_L=no 9953 hardcode_shlibpath_var=unsupported 9954 inherit_rpath=no 9955 link_all_deplibs=unknown 9956 module_cmds= 9957 module_expsym_cmds= 9958 old_archive_from_new_cmds= 9959 old_archive_from_expsyms_cmds= 9960 thread_safe_flag_spec= 9961 whole_archive_flag_spec= 9962 # include_expsyms should be a list of space-separated symbols to be *always* 9963 # included in the symbol list 9964 include_expsyms= 9965 # exclude_expsyms can be an extended regexp of symbols to exclude 9966 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9967 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9968 # as well as any symbol that contains 'd'. 9969 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9970 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9971 # platforms (ab)use it in PIC code, but their linkers get confused if 9972 # the symbol is explicitly referenced. Since portable code cannot 9973 # rely on this symbol name, it's probably fine to never include it in 9974 # preloaded symbol tables. 9975 # Exclude shared library initialization/finalization symbols. 9976 extract_expsyms_cmds= 9977 9978 case $host_os in 9979 cygwin* | mingw* | pw32* | cegcc*) 9980 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9981 # When not using gcc, we currently assume that we are using 9982 # Microsoft Visual C++. 9983 if test yes != "$GCC"; then 9984 with_gnu_ld=no 9985 fi 9986 ;; 9987 interix*) 9988 # we just hope/assume this is gcc and not c89 (= MSVC++) 9989 with_gnu_ld=yes 9990 ;; 9991 openbsd* | bitrig*) 9992 with_gnu_ld=no 9993 ;; 9994 linux* | k*bsd*-gnu | gnu*) 9995 link_all_deplibs=no 9996 ;; 9997 esac 9998 9999 ld_shlibs=yes 10000 10001 # On some targets, GNU ld is compatible enough with the native linker 10002 # that we're better off using the native interface for both. 10003 lt_use_gnu_ld_interface=no 10004 if test yes = "$with_gnu_ld"; then 10005 case $host_os in 10006 aix*) 10007 # The AIX port of GNU ld has always aspired to compatibility 10008 # with the native linker. However, as the warning in the GNU ld 10009 # block says, versions before 2.19.5* couldn't really create working 10010 # shared libraries, regardless of the interface used. 10011 case `$LD -v 2>&1` in 10012 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10013 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10014 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10015 *) 10016 lt_use_gnu_ld_interface=yes 10017 ;; 10018 esac 10019 ;; 10020 *) 10021 lt_use_gnu_ld_interface=yes 10022 ;; 10023 esac 10024 fi 10025 10026 if test yes = "$lt_use_gnu_ld_interface"; then 10027 # If archive_cmds runs LD, not CC, wlarc should be empty 10028 wlarc='$wl' 10029 10030 # Set some defaults for GNU ld with shared library support. These 10031 # are reset later if shared libraries are not supported. Putting them 10032 # here allows them to be overridden if necessary. 10033 runpath_var=LD_RUN_PATH 10034 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10035 export_dynamic_flag_spec='$wl--export-dynamic' 10036 # ancient GNU ld didn't support --whole-archive et. al. 10037 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10038 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10039 else 10040 whole_archive_flag_spec= 10041 fi 10042 supports_anon_versioning=no 10043 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10044 *GNU\ gold*) supports_anon_versioning=yes ;; 10045 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10046 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10047 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10048 *\ 2.11.*) ;; # other 2.11 versions 10049 *) supports_anon_versioning=yes ;; 10050 esac 10051 10052 # See if GNU ld supports shared libraries. 10053 case $host_os in 10054 aix[3-9]*) 10055 # On AIX/PPC, the GNU linker is very broken 10056 if test ia64 != "$host_cpu"; then 10057 ld_shlibs=no 10058 cat <<_LT_EOF 1>&2 10059 10060*** Warning: the GNU linker, at least up to release 2.19, is reported 10061*** to be unable to reliably create shared libraries on AIX. 10062*** Therefore, libtool is disabling shared libraries support. If you 10063*** really care for shared libraries, you may want to install binutils 10064*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10065*** You will then need to restart the configuration process. 10066 10067_LT_EOF 10068 fi 10069 ;; 10070 10071 amigaos*) 10072 case $host_cpu in 10073 powerpc) 10074 # see comment about AmigaOS4 .so support 10075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10076 archive_expsym_cmds='' 10077 ;; 10078 m68k) 10079 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)' 10080 hardcode_libdir_flag_spec='-L$libdir' 10081 hardcode_minus_L=yes 10082 ;; 10083 esac 10084 ;; 10085 10086 beos*) 10087 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10088 allow_undefined_flag=unsupported 10089 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10090 # support --undefined. This deserves some investigation. FIXME 10091 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10092 else 10093 ld_shlibs=no 10094 fi 10095 ;; 10096 10097 cygwin* | mingw* | pw32* | cegcc*) 10098 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10099 # as there is no search path for DLLs. 10100 hardcode_libdir_flag_spec='-L$libdir' 10101 export_dynamic_flag_spec='$wl--export-all-symbols' 10102 allow_undefined_flag=unsupported 10103 always_export_symbols=no 10104 enable_shared_with_static_runtimes=yes 10105 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' 10106 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10107 10108 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10110 # If the export-symbols file already is a .def file, use it as 10111 # is; otherwise, prepend EXPORTS... 10112 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10113 cp $export_symbols $output_objdir/$soname.def; 10114 else 10115 echo EXPORTS > $output_objdir/$soname.def; 10116 cat $export_symbols >> $output_objdir/$soname.def; 10117 fi~ 10118 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10119 else 10120 ld_shlibs=no 10121 fi 10122 ;; 10123 10124 haiku*) 10125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10126 link_all_deplibs=yes 10127 ;; 10128 10129 os2*) 10130 hardcode_libdir_flag_spec='-L$libdir' 10131 hardcode_minus_L=yes 10132 allow_undefined_flag=unsupported 10133 shrext_cmds=.dll 10134 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10135 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10136 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10137 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10138 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10139 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10140 emximp -o $lib $output_objdir/$libname.def' 10141 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10142 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10143 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10144 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10145 prefix_cmds="$SED"~ 10146 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10147 prefix_cmds="$prefix_cmds -e 1d"; 10148 fi~ 10149 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10150 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10151 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10152 emximp -o $lib $output_objdir/$libname.def' 10153 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10154 enable_shared_with_static_runtimes=yes 10155 ;; 10156 10157 interix[3-9]*) 10158 hardcode_direct=no 10159 hardcode_shlibpath_var=no 10160 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10161 export_dynamic_flag_spec='$wl-E' 10162 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10163 # Instead, shared libraries are loaded at an image base (0x10000000 by 10164 # default) and relocated if they conflict, which is a slow very memory 10165 # consuming and fragmenting process. To avoid this, we pick a random, 10166 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10167 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10169 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' 10170 ;; 10171 10172 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10173 tmp_diet=no 10174 if test linux-dietlibc = "$host_os"; then 10175 case $cc_basename in 10176 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10177 esac 10178 fi 10179 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10180 && test no = "$tmp_diet" 10181 then 10182 tmp_addflag=' $pic_flag' 10183 tmp_sharedflag='-shared' 10184 case $cc_basename,$host_cpu in 10185 pgcc*) # Portland Group C compiler 10186 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' 10187 tmp_addflag=' $pic_flag' 10188 ;; 10189 pgf77* | pgf90* | pgf95* | pgfortran*) 10190 # Portland Group f77 and f90 compilers 10191 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' 10192 tmp_addflag=' $pic_flag -Mnomain' ;; 10193 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10194 tmp_addflag=' -i_dynamic' ;; 10195 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10196 tmp_addflag=' -i_dynamic -nofor_main' ;; 10197 ifc* | ifort*) # Intel Fortran compiler 10198 tmp_addflag=' -nofor_main' ;; 10199 lf95*) # Lahey Fortran 8.1 10200 whole_archive_flag_spec= 10201 tmp_sharedflag='--shared' ;; 10202 nagfor*) # NAGFOR 5.3 10203 tmp_sharedflag='-Wl,-shared' ;; 10204 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10205 tmp_sharedflag='-qmkshrobj' 10206 tmp_addflag= ;; 10207 nvcc*) # Cuda Compiler Driver 2.2 10208 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' 10209 compiler_needs_object=yes 10210 ;; 10211 esac 10212 case `$CC -V 2>&1 | sed 5q` in 10213 *Sun\ C*) # Sun C 5.9 10214 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' 10215 compiler_needs_object=yes 10216 tmp_sharedflag='-G' ;; 10217 *Sun\ F*) # Sun Fortran 8.3 10218 tmp_sharedflag='-G' ;; 10219 esac 10220 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10221 10222 if test yes = "$supports_anon_versioning"; then 10223 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10224 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10225 echo "local: *; };" >> $output_objdir/$libname.ver~ 10226 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10227 fi 10228 10229 case $cc_basename in 10230 tcc*) 10231 export_dynamic_flag_spec='-rdynamic' 10232 ;; 10233 xlf* | bgf* | bgxlf* | mpixlf*) 10234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10235 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10237 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10238 if test yes = "$supports_anon_versioning"; then 10239 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10241 echo "local: *; };" >> $output_objdir/$libname.ver~ 10242 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10243 fi 10244 ;; 10245 esac 10246 else 10247 ld_shlibs=no 10248 fi 10249 ;; 10250 10251 netbsd* | netbsdelf*-gnu) 10252 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10253 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10254 wlarc= 10255 else 10256 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10257 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10258 fi 10259 ;; 10260 10261 solaris*) 10262 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10263 ld_shlibs=no 10264 cat <<_LT_EOF 1>&2 10265 10266*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10267*** create shared libraries on Solaris systems. Therefore, libtool 10268*** is disabling shared libraries support. We urge you to upgrade GNU 10269*** binutils to release 2.9.1 or newer. Another option is to modify 10270*** your PATH or compiler configuration so that the native linker is 10271*** used, and then restart. 10272 10273_LT_EOF 10274 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10276 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10277 else 10278 ld_shlibs=no 10279 fi 10280 ;; 10281 10282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10283 case `$LD -v 2>&1` in 10284 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10285 ld_shlibs=no 10286 cat <<_LT_EOF 1>&2 10287 10288*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10289*** reliably create shared libraries on SCO systems. Therefore, libtool 10290*** is disabling shared libraries support. We urge you to upgrade GNU 10291*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10292*** your PATH or compiler configuration so that the native linker is 10293*** used, and then restart. 10294 10295_LT_EOF 10296 ;; 10297 *) 10298 # For security reasons, it is highly recommended that you always 10299 # use absolute paths for naming shared libraries, and exclude the 10300 # DT_RUNPATH tag from executables and libraries. But doing so 10301 # requires that you compile everything twice, which is a pain. 10302 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10303 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10306 else 10307 ld_shlibs=no 10308 fi 10309 ;; 10310 esac 10311 ;; 10312 10313 sunos4*) 10314 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10315 wlarc= 10316 hardcode_direct=yes 10317 hardcode_shlibpath_var=no 10318 ;; 10319 10320 *) 10321 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10322 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10323 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10324 else 10325 ld_shlibs=no 10326 fi 10327 ;; 10328 esac 10329 10330 if test no = "$ld_shlibs"; then 10331 runpath_var= 10332 hardcode_libdir_flag_spec= 10333 export_dynamic_flag_spec= 10334 whole_archive_flag_spec= 10335 fi 10336 else 10337 # PORTME fill in a description of your system's linker (not GNU ld) 10338 case $host_os in 10339 aix3*) 10340 allow_undefined_flag=unsupported 10341 always_export_symbols=yes 10342 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' 10343 # Note: this linker hardcodes the directories in LIBPATH if there 10344 # are no directories specified by -L. 10345 hardcode_minus_L=yes 10346 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10347 # Neither direct hardcoding nor static linking is supported with a 10348 # broken collect2. 10349 hardcode_direct=unsupported 10350 fi 10351 ;; 10352 10353 aix[4-9]*) 10354 if test ia64 = "$host_cpu"; then 10355 # On IA64, the linker does run time linking by default, so we don't 10356 # have to do anything special. 10357 aix_use_runtimelinking=no 10358 exp_sym_flag='-Bexport' 10359 no_entry_flag= 10360 else 10361 # If we're using GNU nm, then we don't want the "-C" option. 10362 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10363 # Without the "-l" option, or with the "-B" option, AIX nm treats 10364 # weak defined symbols like other global defined symbols, whereas 10365 # GNU nm marks them as "W". 10366 # While the 'weak' keyword is ignored in the Export File, we need 10367 # it in the Import File for the 'aix-soname' feature, so we have 10368 # to replace the "-B" option with "-P" for AIX nm. 10369 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10370 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' 10371 else 10372 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' 10373 fi 10374 aix_use_runtimelinking=no 10375 10376 # Test if we are trying to use run time linking or normal 10377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10378 # have runtime linking enabled, and use it for executables. 10379 # For shared libraries, we enable/disable runtime linking 10380 # depending on the kind of the shared library created - 10381 # when "with_aix_soname,aix_use_runtimelinking" is: 10382 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10383 # "aix,yes" lib.so shared, rtl:yes, for executables 10384 # lib.a static archive 10385 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10386 # lib.a(lib.so.V) shared, rtl:no, for executables 10387 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10388 # lib.a(lib.so.V) shared, rtl:no 10389 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10390 # lib.a static archive 10391 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10392 for ld_flag in $LDFLAGS; do 10393 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10394 aix_use_runtimelinking=yes 10395 break 10396 fi 10397 done 10398 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10399 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10400 # so we don't have lib.a shared libs to link our executables. 10401 # We have to force runtime linking in this case. 10402 aix_use_runtimelinking=yes 10403 LDFLAGS="$LDFLAGS -Wl,-brtl" 10404 fi 10405 ;; 10406 esac 10407 10408 exp_sym_flag='-bexport' 10409 no_entry_flag='-bnoentry' 10410 fi 10411 10412 # When large executables or shared objects are built, AIX ld can 10413 # have problems creating the table of contents. If linking a library 10414 # or program results in "error TOC overflow" add -mminimal-toc to 10415 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10416 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10417 10418 archive_cmds='' 10419 hardcode_direct=yes 10420 hardcode_direct_absolute=yes 10421 hardcode_libdir_separator=':' 10422 link_all_deplibs=yes 10423 file_list_spec='$wl-f,' 10424 case $with_aix_soname,$aix_use_runtimelinking in 10425 aix,*) ;; # traditional, no import file 10426 svr4,* | *,yes) # use import file 10427 # The Import File defines what to hardcode. 10428 hardcode_direct=no 10429 hardcode_direct_absolute=no 10430 ;; 10431 esac 10432 10433 if test yes = "$GCC"; then 10434 case $host_os in aix4.[012]|aix4.[012].*) 10435 # We only want to do this on AIX 4.2 and lower, the check 10436 # below for broken collect2 doesn't work under 4.3+ 10437 collect2name=`$CC -print-prog-name=collect2` 10438 if test -f "$collect2name" && 10439 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10440 then 10441 # We have reworked collect2 10442 : 10443 else 10444 # We have old collect2 10445 hardcode_direct=unsupported 10446 # It fails to find uninstalled libraries when the uninstalled 10447 # path is not listed in the libpath. Setting hardcode_minus_L 10448 # to unsupported forces relinking 10449 hardcode_minus_L=yes 10450 hardcode_libdir_flag_spec='-L$libdir' 10451 hardcode_libdir_separator= 10452 fi 10453 ;; 10454 esac 10455 shared_flag='-shared' 10456 if test yes = "$aix_use_runtimelinking"; then 10457 shared_flag="$shared_flag "'$wl-G' 10458 fi 10459 # Need to ensure runtime linking is disabled for the traditional 10460 # shared library, or the linker may eventually find shared libraries 10461 # /with/ Import File - we do not want to mix them. 10462 shared_flag_aix='-shared' 10463 shared_flag_svr4='-shared $wl-G' 10464 else 10465 # not using gcc 10466 if test ia64 = "$host_cpu"; then 10467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10468 # chokes on -Wl,-G. The following line is correct: 10469 shared_flag='-G' 10470 else 10471 if test yes = "$aix_use_runtimelinking"; then 10472 shared_flag='$wl-G' 10473 else 10474 shared_flag='$wl-bM:SRE' 10475 fi 10476 shared_flag_aix='$wl-bM:SRE' 10477 shared_flag_svr4='$wl-G' 10478 fi 10479 fi 10480 10481 export_dynamic_flag_spec='$wl-bexpall' 10482 # It seems that -bexpall does not export symbols beginning with 10483 # underscore (_), so it is better to generate a list of symbols to export. 10484 always_export_symbols=yes 10485 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10486 # Warning - without using the other runtime loading flags (-brtl), 10487 # -berok will link without error, but may produce a broken library. 10488 allow_undefined_flag='-berok' 10489 # Determine the default libpath from the value encoded in an 10490 # empty executable. 10491 if test set = "${lt_cv_aix_libpath+set}"; then 10492 aix_libpath=$lt_cv_aix_libpath 10493else 10494 if ${lt_cv_aix_libpath_+:} false; then : 10495 $as_echo_n "(cached) " >&6 10496else 10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10498/* end confdefs.h. */ 10499 10500int 10501main () 10502{ 10503 10504 ; 10505 return 0; 10506} 10507_ACEOF 10508if ac_fn_c_try_link "$LINENO"; then : 10509 10510 lt_aix_libpath_sed=' 10511 /Import File Strings/,/^$/ { 10512 /^0/ { 10513 s/^0 *\([^ ]*\) *$/\1/ 10514 p 10515 } 10516 }' 10517 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10518 # Check for a 64-bit object if we didn't find anything. 10519 if test -z "$lt_cv_aix_libpath_"; then 10520 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10521 fi 10522fi 10523rm -f core conftest.err conftest.$ac_objext \ 10524 conftest$ac_exeext conftest.$ac_ext 10525 if test -z "$lt_cv_aix_libpath_"; then 10526 lt_cv_aix_libpath_=/usr/lib:/lib 10527 fi 10528 10529fi 10530 10531 aix_libpath=$lt_cv_aix_libpath_ 10532fi 10533 10534 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10535 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 10536 else 10537 if test ia64 = "$host_cpu"; then 10538 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10539 allow_undefined_flag="-z nodefs" 10540 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" 10541 else 10542 # Determine the default libpath from the value encoded in an 10543 # empty executable. 10544 if test set = "${lt_cv_aix_libpath+set}"; then 10545 aix_libpath=$lt_cv_aix_libpath 10546else 10547 if ${lt_cv_aix_libpath_+:} false; then : 10548 $as_echo_n "(cached) " >&6 10549else 10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10551/* end confdefs.h. */ 10552 10553int 10554main () 10555{ 10556 10557 ; 10558 return 0; 10559} 10560_ACEOF 10561if ac_fn_c_try_link "$LINENO"; then : 10562 10563 lt_aix_libpath_sed=' 10564 /Import File Strings/,/^$/ { 10565 /^0/ { 10566 s/^0 *\([^ ]*\) *$/\1/ 10567 p 10568 } 10569 }' 10570 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10571 # Check for a 64-bit object if we didn't find anything. 10572 if test -z "$lt_cv_aix_libpath_"; then 10573 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10574 fi 10575fi 10576rm -f core conftest.err conftest.$ac_objext \ 10577 conftest$ac_exeext conftest.$ac_ext 10578 if test -z "$lt_cv_aix_libpath_"; then 10579 lt_cv_aix_libpath_=/usr/lib:/lib 10580 fi 10581 10582fi 10583 10584 aix_libpath=$lt_cv_aix_libpath_ 10585fi 10586 10587 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10588 # Warning - without using the other run time loading flags, 10589 # -berok will link without error, but may produce a broken library. 10590 no_undefined_flag=' $wl-bernotok' 10591 allow_undefined_flag=' $wl-berok' 10592 if test yes = "$with_gnu_ld"; then 10593 # We only use this code for GNU lds that support --whole-archive. 10594 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10595 else 10596 # Exported symbols can be pulled into shared objects from archives 10597 whole_archive_flag_spec='$convenience' 10598 fi 10599 archive_cmds_need_lc=yes 10600 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10601 # -brtl affects multiple linker settings, -berok does not and is overridden later 10602 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10603 if test svr4 != "$with_aix_soname"; then 10604 # This is similar to how AIX traditionally builds its shared libraries. 10605 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' 10606 fi 10607 if test aix != "$with_aix_soname"; then 10608 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' 10609 else 10610 # used by -dlpreopen to get the symbols 10611 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10612 fi 10613 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10614 fi 10615 fi 10616 ;; 10617 10618 amigaos*) 10619 case $host_cpu in 10620 powerpc) 10621 # see comment about AmigaOS4 .so support 10622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10623 archive_expsym_cmds='' 10624 ;; 10625 m68k) 10626 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)' 10627 hardcode_libdir_flag_spec='-L$libdir' 10628 hardcode_minus_L=yes 10629 ;; 10630 esac 10631 ;; 10632 10633 bsdi[45]*) 10634 export_dynamic_flag_spec=-rdynamic 10635 ;; 10636 10637 cygwin* | mingw* | pw32* | cegcc*) 10638 # When not using gcc, we currently assume that we are using 10639 # Microsoft Visual C++. 10640 # hardcode_libdir_flag_spec is actually meaningless, as there is 10641 # no search path for DLLs. 10642 case $cc_basename in 10643 cl*) 10644 # Native MSVC 10645 hardcode_libdir_flag_spec=' ' 10646 allow_undefined_flag=unsupported 10647 always_export_symbols=yes 10648 file_list_spec='@' 10649 # Tell ltmain to make .lib files, not .a files. 10650 libext=lib 10651 # Tell ltmain to make .dll files, not .so files. 10652 shrext_cmds=.dll 10653 # FIXME: Setting linknames here is a bad hack. 10654 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10655 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10656 cp "$export_symbols" "$output_objdir/$soname.def"; 10657 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10658 else 10659 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10660 fi~ 10661 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10662 linknames=' 10663 # The linker will not automatically build a static lib if we build a DLL. 10664 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10665 enable_shared_with_static_runtimes=yes 10666 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10667 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10668 # Don't use ranlib 10669 old_postinstall_cmds='chmod 644 $oldlib' 10670 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10671 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10672 case $lt_outputfile in 10673 *.exe|*.EXE) ;; 10674 *) 10675 lt_outputfile=$lt_outputfile.exe 10676 lt_tool_outputfile=$lt_tool_outputfile.exe 10677 ;; 10678 esac~ 10679 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10680 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10681 $RM "$lt_outputfile.manifest"; 10682 fi' 10683 ;; 10684 *) 10685 # Assume MSVC wrapper 10686 hardcode_libdir_flag_spec=' ' 10687 allow_undefined_flag=unsupported 10688 # Tell ltmain to make .lib files, not .a files. 10689 libext=lib 10690 # Tell ltmain to make .dll files, not .so files. 10691 shrext_cmds=.dll 10692 # FIXME: Setting linknames here is a bad hack. 10693 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10694 # The linker will automatically build a .lib file if we build a DLL. 10695 old_archive_from_new_cmds='true' 10696 # FIXME: Should let the user specify the lib program. 10697 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10698 enable_shared_with_static_runtimes=yes 10699 ;; 10700 esac 10701 ;; 10702 10703 darwin* | rhapsody*) 10704 10705 10706 archive_cmds_need_lc=no 10707 hardcode_direct=no 10708 hardcode_automatic=yes 10709 hardcode_shlibpath_var=unsupported 10710 if test yes = "$lt_cv_ld_force_load"; then 10711 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\"`' 10712 10713 else 10714 whole_archive_flag_spec='' 10715 fi 10716 link_all_deplibs=yes 10717 allow_undefined_flag=$_lt_dar_allow_undefined 10718 case $cc_basename in 10719 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10720 *) _lt_dar_can_shared=$GCC ;; 10721 esac 10722 if test yes = "$_lt_dar_can_shared"; then 10723 output_verbose_link_cmd=func_echo_all 10724 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10725 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10726 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" 10727 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" 10728 10729 else 10730 ld_shlibs=no 10731 fi 10732 10733 ;; 10734 10735 dgux*) 10736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10737 hardcode_libdir_flag_spec='-L$libdir' 10738 hardcode_shlibpath_var=no 10739 ;; 10740 10741 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10742 # support. Future versions do this automatically, but an explicit c++rt0.o 10743 # does not break anything, and helps significantly (at the cost of a little 10744 # extra space). 10745 freebsd2.2*) 10746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10747 hardcode_libdir_flag_spec='-R$libdir' 10748 hardcode_direct=yes 10749 hardcode_shlibpath_var=no 10750 ;; 10751 10752 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10753 freebsd2.*) 10754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10755 hardcode_direct=yes 10756 hardcode_minus_L=yes 10757 hardcode_shlibpath_var=no 10758 ;; 10759 10760 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10761 freebsd* | dragonfly*) 10762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10763 hardcode_libdir_flag_spec='-R$libdir' 10764 hardcode_direct=yes 10765 hardcode_shlibpath_var=no 10766 ;; 10767 10768 hpux9*) 10769 if test yes = "$GCC"; then 10770 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' 10771 else 10772 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' 10773 fi 10774 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10775 hardcode_libdir_separator=: 10776 hardcode_direct=yes 10777 10778 # hardcode_minus_L: Not really in the search PATH, 10779 # but as the default location of the library. 10780 hardcode_minus_L=yes 10781 export_dynamic_flag_spec='$wl-E' 10782 ;; 10783 10784 hpux10*) 10785 if test yes,no = "$GCC,$with_gnu_ld"; then 10786 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10787 else 10788 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10789 fi 10790 if test no = "$with_gnu_ld"; then 10791 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10792 hardcode_libdir_separator=: 10793 hardcode_direct=yes 10794 hardcode_direct_absolute=yes 10795 export_dynamic_flag_spec='$wl-E' 10796 # hardcode_minus_L: Not really in the search PATH, 10797 # but as the default location of the library. 10798 hardcode_minus_L=yes 10799 fi 10800 ;; 10801 10802 hpux11*) 10803 if test yes,no = "$GCC,$with_gnu_ld"; then 10804 case $host_cpu in 10805 hppa*64*) 10806 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10807 ;; 10808 ia64*) 10809 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10810 ;; 10811 *) 10812 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10813 ;; 10814 esac 10815 else 10816 case $host_cpu in 10817 hppa*64*) 10818 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10819 ;; 10820 ia64*) 10821 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10822 ;; 10823 *) 10824 10825 # Older versions of the 11.00 compiler do not understand -b yet 10826 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10828$as_echo_n "checking if $CC understands -b... " >&6; } 10829if ${lt_cv_prog_compiler__b+:} false; then : 10830 $as_echo_n "(cached) " >&6 10831else 10832 lt_cv_prog_compiler__b=no 10833 save_LDFLAGS=$LDFLAGS 10834 LDFLAGS="$LDFLAGS -b" 10835 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10837 # The linker can only warn and ignore the option if not recognized 10838 # So say no if there are warnings 10839 if test -s conftest.err; then 10840 # Append any errors to the config.log. 10841 cat conftest.err 1>&5 10842 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10844 if diff conftest.exp conftest.er2 >/dev/null; then 10845 lt_cv_prog_compiler__b=yes 10846 fi 10847 else 10848 lt_cv_prog_compiler__b=yes 10849 fi 10850 fi 10851 $RM -r conftest* 10852 LDFLAGS=$save_LDFLAGS 10853 10854fi 10855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10856$as_echo "$lt_cv_prog_compiler__b" >&6; } 10857 10858if test yes = "$lt_cv_prog_compiler__b"; then 10859 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10860else 10861 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10862fi 10863 10864 ;; 10865 esac 10866 fi 10867 if test no = "$with_gnu_ld"; then 10868 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10869 hardcode_libdir_separator=: 10870 10871 case $host_cpu in 10872 hppa*64*|ia64*) 10873 hardcode_direct=no 10874 hardcode_shlibpath_var=no 10875 ;; 10876 *) 10877 hardcode_direct=yes 10878 hardcode_direct_absolute=yes 10879 export_dynamic_flag_spec='$wl-E' 10880 10881 # hardcode_minus_L: Not really in the search PATH, 10882 # but as the default location of the library. 10883 hardcode_minus_L=yes 10884 ;; 10885 esac 10886 fi 10887 ;; 10888 10889 irix5* | irix6* | nonstopux*) 10890 if test yes = "$GCC"; then 10891 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' 10892 # Try to use the -exported_symbol ld option, if it does not 10893 # work, assume that -exports_file does not work either and 10894 # implicitly export all symbols. 10895 # This should be the same for all languages, so no per-tag cache variable. 10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10897$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10898if ${lt_cv_irix_exported_symbol+:} false; then : 10899 $as_echo_n "(cached) " >&6 10900else 10901 save_LDFLAGS=$LDFLAGS 10902 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10904/* end confdefs.h. */ 10905int foo (void) { return 0; } 10906_ACEOF 10907if ac_fn_c_try_link "$LINENO"; then : 10908 lt_cv_irix_exported_symbol=yes 10909else 10910 lt_cv_irix_exported_symbol=no 10911fi 10912rm -f core conftest.err conftest.$ac_objext \ 10913 conftest$ac_exeext conftest.$ac_ext 10914 LDFLAGS=$save_LDFLAGS 10915fi 10916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10917$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10918 if test yes = "$lt_cv_irix_exported_symbol"; then 10919 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' 10920 fi 10921 link_all_deplibs=no 10922 else 10923 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' 10924 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' 10925 fi 10926 archive_cmds_need_lc='no' 10927 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10928 hardcode_libdir_separator=: 10929 inherit_rpath=yes 10930 link_all_deplibs=yes 10931 ;; 10932 10933 linux*) 10934 case $cc_basename in 10935 tcc*) 10936 # Fabrice Bellard et al's Tiny C Compiler 10937 ld_shlibs=yes 10938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10939 ;; 10940 esac 10941 ;; 10942 10943 netbsd* | netbsdelf*-gnu) 10944 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10945 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10946 else 10947 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10948 fi 10949 hardcode_libdir_flag_spec='-R$libdir' 10950 hardcode_direct=yes 10951 hardcode_shlibpath_var=no 10952 ;; 10953 10954 newsos6) 10955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10956 hardcode_direct=yes 10957 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10958 hardcode_libdir_separator=: 10959 hardcode_shlibpath_var=no 10960 ;; 10961 10962 *nto* | *qnx*) 10963 ;; 10964 10965 openbsd* | bitrig*) 10966 if test -f /usr/libexec/ld.so; then 10967 hardcode_direct=yes 10968 hardcode_shlibpath_var=no 10969 hardcode_direct_absolute=yes 10970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10971 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10972 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10973 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10974 export_dynamic_flag_spec='$wl-E' 10975 else 10976 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10977 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10978 fi 10979 else 10980 ld_shlibs=no 10981 fi 10982 ;; 10983 10984 os2*) 10985 hardcode_libdir_flag_spec='-L$libdir' 10986 hardcode_minus_L=yes 10987 allow_undefined_flag=unsupported 10988 shrext_cmds=.dll 10989 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10990 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10991 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10992 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10993 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10994 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10995 emximp -o $lib $output_objdir/$libname.def' 10996 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10997 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10998 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10999 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11000 prefix_cmds="$SED"~ 11001 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11002 prefix_cmds="$prefix_cmds -e 1d"; 11003 fi~ 11004 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11005 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11006 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11007 emximp -o $lib $output_objdir/$libname.def' 11008 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11009 enable_shared_with_static_runtimes=yes 11010 ;; 11011 11012 osf3*) 11013 if test yes = "$GCC"; then 11014 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11015 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' 11016 else 11017 allow_undefined_flag=' -expect_unresolved \*' 11018 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' 11019 fi 11020 archive_cmds_need_lc='no' 11021 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11022 hardcode_libdir_separator=: 11023 ;; 11024 11025 osf4* | osf5*) # as osf3* with the addition of -msym flag 11026 if test yes = "$GCC"; then 11027 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11028 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' 11029 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11030 else 11031 allow_undefined_flag=' -expect_unresolved \*' 11032 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' 11033 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~ 11034 $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' 11035 11036 # Both c and cxx compiler support -rpath directly 11037 hardcode_libdir_flag_spec='-rpath $libdir' 11038 fi 11039 archive_cmds_need_lc='no' 11040 hardcode_libdir_separator=: 11041 ;; 11042 11043 solaris*) 11044 no_undefined_flag=' -z defs' 11045 if test yes = "$GCC"; then 11046 wlarc='$wl' 11047 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11048 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11049 $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' 11050 else 11051 case `$CC -V 2>&1` in 11052 *"Compilers 5.0"*) 11053 wlarc='' 11054 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11056 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11057 ;; 11058 *) 11059 wlarc='$wl' 11060 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11061 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11062 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11063 ;; 11064 esac 11065 fi 11066 hardcode_libdir_flag_spec='-R$libdir' 11067 hardcode_shlibpath_var=no 11068 case $host_os in 11069 solaris2.[0-5] | solaris2.[0-5].*) ;; 11070 *) 11071 # The compiler driver will combine and reorder linker options, 11072 # but understands '-z linker_flag'. GCC discards it without '$wl', 11073 # but is careful enough not to reorder. 11074 # Supported since Solaris 2.6 (maybe 2.5.1?) 11075 if test yes = "$GCC"; then 11076 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11077 else 11078 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11079 fi 11080 ;; 11081 esac 11082 link_all_deplibs=yes 11083 ;; 11084 11085 sunos4*) 11086 if test sequent = "$host_vendor"; then 11087 # Use $CC to link under sequent, because it throws in some extra .o 11088 # files that make .init and .fini sections work. 11089 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11090 else 11091 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11092 fi 11093 hardcode_libdir_flag_spec='-L$libdir' 11094 hardcode_direct=yes 11095 hardcode_minus_L=yes 11096 hardcode_shlibpath_var=no 11097 ;; 11098 11099 sysv4) 11100 case $host_vendor in 11101 sni) 11102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11103 hardcode_direct=yes # is this really true??? 11104 ;; 11105 siemens) 11106 ## LD is ld it makes a PLAMLIB 11107 ## CC just makes a GrossModule. 11108 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11109 reload_cmds='$CC -r -o $output$reload_objs' 11110 hardcode_direct=no 11111 ;; 11112 motorola) 11113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11114 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11115 ;; 11116 esac 11117 runpath_var='LD_RUN_PATH' 11118 hardcode_shlibpath_var=no 11119 ;; 11120 11121 sysv4.3*) 11122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11123 hardcode_shlibpath_var=no 11124 export_dynamic_flag_spec='-Bexport' 11125 ;; 11126 11127 sysv4*MP*) 11128 if test -d /usr/nec; then 11129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11130 hardcode_shlibpath_var=no 11131 runpath_var=LD_RUN_PATH 11132 hardcode_runpath_var=yes 11133 ld_shlibs=yes 11134 fi 11135 ;; 11136 11137 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11138 no_undefined_flag='$wl-z,text' 11139 archive_cmds_need_lc=no 11140 hardcode_shlibpath_var=no 11141 runpath_var='LD_RUN_PATH' 11142 11143 if test yes = "$GCC"; then 11144 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11145 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11146 else 11147 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11148 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11149 fi 11150 ;; 11151 11152 sysv5* | sco3.2v5* | sco5v6*) 11153 # Note: We CANNOT use -z defs as we might desire, because we do not 11154 # link with -lc, and that would cause any symbols used from libc to 11155 # always be unresolved, which means just about no library would 11156 # ever link correctly. If we're not using GNU ld we use -z text 11157 # though, which does catch some bad symbols but isn't as heavy-handed 11158 # as -z defs. 11159 no_undefined_flag='$wl-z,text' 11160 allow_undefined_flag='$wl-z,nodefs' 11161 archive_cmds_need_lc=no 11162 hardcode_shlibpath_var=no 11163 hardcode_libdir_flag_spec='$wl-R,$libdir' 11164 hardcode_libdir_separator=':' 11165 link_all_deplibs=yes 11166 export_dynamic_flag_spec='$wl-Bexport' 11167 runpath_var='LD_RUN_PATH' 11168 11169 if test yes = "$GCC"; then 11170 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11171 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11172 else 11173 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11174 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11175 fi 11176 ;; 11177 11178 uts4*) 11179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11180 hardcode_libdir_flag_spec='-L$libdir' 11181 hardcode_shlibpath_var=no 11182 ;; 11183 11184 *) 11185 ld_shlibs=no 11186 ;; 11187 esac 11188 11189 if test sni = "$host_vendor"; then 11190 case $host in 11191 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11192 export_dynamic_flag_spec='$wl-Blargedynsym' 11193 ;; 11194 esac 11195 fi 11196 fi 11197 11198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11199$as_echo "$ld_shlibs" >&6; } 11200test no = "$ld_shlibs" && can_build_shared=no 11201 11202with_gnu_ld=$with_gnu_ld 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218# 11219# Do we need to explicitly link libc? 11220# 11221case "x$archive_cmds_need_lc" in 11222x|xyes) 11223 # Assume -lc should be added 11224 archive_cmds_need_lc=yes 11225 11226 if test yes,yes = "$GCC,$enable_shared"; then 11227 case $archive_cmds in 11228 *'~'*) 11229 # FIXME: we may have to deal with multi-command sequences. 11230 ;; 11231 '$CC '*) 11232 # Test whether the compiler implicitly links with -lc since on some 11233 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11234 # to ld, don't add -lc before -lgcc. 11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11236$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11237if ${lt_cv_archive_cmds_need_lc+:} false; then : 11238 $as_echo_n "(cached) " >&6 11239else 11240 $RM conftest* 11241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11242 11243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11244 (eval $ac_compile) 2>&5 11245 ac_status=$? 11246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11247 test $ac_status = 0; } 2>conftest.err; then 11248 soname=conftest 11249 lib=conftest 11250 libobjs=conftest.$ac_objext 11251 deplibs= 11252 wl=$lt_prog_compiler_wl 11253 pic_flag=$lt_prog_compiler_pic 11254 compiler_flags=-v 11255 linker_flags=-v 11256 verstring= 11257 output_objdir=. 11258 libname=conftest 11259 lt_save_allow_undefined_flag=$allow_undefined_flag 11260 allow_undefined_flag= 11261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11262 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11263 ac_status=$? 11264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11265 test $ac_status = 0; } 11266 then 11267 lt_cv_archive_cmds_need_lc=no 11268 else 11269 lt_cv_archive_cmds_need_lc=yes 11270 fi 11271 allow_undefined_flag=$lt_save_allow_undefined_flag 11272 else 11273 cat conftest.err 1>&5 11274 fi 11275 $RM conftest* 11276 11277fi 11278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11279$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11280 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11281 ;; 11282 esac 11283 fi 11284 ;; 11285esac 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11439$as_echo_n "checking dynamic linker characteristics... " >&6; } 11440 11441if test yes = "$GCC"; then 11442 case $host_os in 11443 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11444 *) lt_awk_arg='/^libraries:/' ;; 11445 esac 11446 case $host_os in 11447 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11448 *) lt_sed_strip_eq='s|=/|/|g' ;; 11449 esac 11450 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11451 case $lt_search_path_spec in 11452 *\;*) 11453 # if the path contains ";" then we assume it to be the separator 11454 # otherwise default to the standard path separator (i.e. ":") - it is 11455 # assumed that no part of a normal pathname contains ";" but that should 11456 # okay in the real world where ";" in dirpaths is itself problematic. 11457 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11458 ;; 11459 *) 11460 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11461 ;; 11462 esac 11463 # Ok, now we have the path, separated by spaces, we can step through it 11464 # and add multilib dir if necessary... 11465 lt_tmp_lt_search_path_spec= 11466 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11467 # ...but if some path component already ends with the multilib dir we assume 11468 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11469 case "$lt_multi_os_dir; $lt_search_path_spec " in 11470 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11471 lt_multi_os_dir= 11472 ;; 11473 esac 11474 for lt_sys_path in $lt_search_path_spec; do 11475 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11476 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11477 elif test -n "$lt_multi_os_dir"; then 11478 test -d "$lt_sys_path" && \ 11479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11480 fi 11481 done 11482 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11483BEGIN {RS = " "; FS = "/|\n";} { 11484 lt_foo = ""; 11485 lt_count = 0; 11486 for (lt_i = NF; lt_i > 0; lt_i--) { 11487 if ($lt_i != "" && $lt_i != ".") { 11488 if ($lt_i == "..") { 11489 lt_count++; 11490 } else { 11491 if (lt_count == 0) { 11492 lt_foo = "/" $lt_i lt_foo; 11493 } else { 11494 lt_count--; 11495 } 11496 } 11497 } 11498 } 11499 if (lt_foo != "") { lt_freq[lt_foo]++; } 11500 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11501}'` 11502 # AWK program above erroneously prepends '/' to C:/dos/paths 11503 # for these hosts. 11504 case $host_os in 11505 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11506 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11507 esac 11508 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11509else 11510 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11511fi 11512library_names_spec= 11513libname_spec='lib$name' 11514soname_spec= 11515shrext_cmds=.so 11516postinstall_cmds= 11517postuninstall_cmds= 11518finish_cmds= 11519finish_eval= 11520shlibpath_var= 11521shlibpath_overrides_runpath=unknown 11522version_type=none 11523dynamic_linker="$host_os ld.so" 11524sys_lib_dlsearch_path_spec="/lib /usr/lib" 11525need_lib_prefix=unknown 11526hardcode_into_libs=no 11527 11528# when you set need_version to no, make sure it does not cause -set_version 11529# flags to be left without arguments 11530need_version=unknown 11531 11532 11533 11534case $host_os in 11535aix3*) 11536 version_type=linux # correct to gnu/linux during the next big refactor 11537 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11538 shlibpath_var=LIBPATH 11539 11540 # AIX 3 has no versioning support, so we append a major version to the name. 11541 soname_spec='$libname$release$shared_ext$major' 11542 ;; 11543 11544aix[4-9]*) 11545 version_type=linux # correct to gnu/linux during the next big refactor 11546 need_lib_prefix=no 11547 need_version=no 11548 hardcode_into_libs=yes 11549 if test ia64 = "$host_cpu"; then 11550 # AIX 5 supports IA64 11551 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11552 shlibpath_var=LD_LIBRARY_PATH 11553 else 11554 # With GCC up to 2.95.x, collect2 would create an import file 11555 # for dependence libraries. The import file would start with 11556 # the line '#! .'. This would cause the generated library to 11557 # depend on '.', always an invalid library. This was fixed in 11558 # development snapshots of GCC prior to 3.0. 11559 case $host_os in 11560 aix4 | aix4.[01] | aix4.[01].*) 11561 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11562 echo ' yes ' 11563 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11564 : 11565 else 11566 can_build_shared=no 11567 fi 11568 ;; 11569 esac 11570 # Using Import Files as archive members, it is possible to support 11571 # filename-based versioning of shared library archives on AIX. While 11572 # this would work for both with and without runtime linking, it will 11573 # prevent static linking of such archives. So we do filename-based 11574 # shared library versioning with .so extension only, which is used 11575 # when both runtime linking and shared linking is enabled. 11576 # Unfortunately, runtime linking may impact performance, so we do 11577 # not want this to be the default eventually. Also, we use the 11578 # versioned .so libs for executables only if there is the -brtl 11579 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11580 # To allow for filename-based versioning support, we need to create 11581 # libNAME.so.V as an archive file, containing: 11582 # *) an Import File, referring to the versioned filename of the 11583 # archive as well as the shared archive member, telling the 11584 # bitwidth (32 or 64) of that shared object, and providing the 11585 # list of exported symbols of that shared object, eventually 11586 # decorated with the 'weak' keyword 11587 # *) the shared object with the F_LOADONLY flag set, to really avoid 11588 # it being seen by the linker. 11589 # At run time we better use the real file rather than another symlink, 11590 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11591 11592 case $with_aix_soname,$aix_use_runtimelinking in 11593 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11594 # soname into executable. Probably we can add versioning support to 11595 # collect2, so additional links can be useful in future. 11596 aix,yes) # traditional libtool 11597 dynamic_linker='AIX unversionable lib.so' 11598 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11599 # instead of lib<name>.a to let people know that these are not 11600 # typical AIX shared libraries. 11601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11602 ;; 11603 aix,no) # traditional AIX only 11604 dynamic_linker='AIX lib.a(lib.so.V)' 11605 # We preserve .a as extension for shared libraries through AIX4.2 11606 # and later when we are not doing run time linking. 11607 library_names_spec='$libname$release.a $libname.a' 11608 soname_spec='$libname$release$shared_ext$major' 11609 ;; 11610 svr4,*) # full svr4 only 11611 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11612 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11613 # We do not specify a path in Import Files, so LIBPATH fires. 11614 shlibpath_overrides_runpath=yes 11615 ;; 11616 *,yes) # both, prefer svr4 11617 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11618 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11619 # unpreferred sharedlib libNAME.a needs extra handling 11620 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"' 11621 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"' 11622 # We do not specify a path in Import Files, so LIBPATH fires. 11623 shlibpath_overrides_runpath=yes 11624 ;; 11625 *,no) # both, prefer aix 11626 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11627 library_names_spec='$libname$release.a $libname.a' 11628 soname_spec='$libname$release$shared_ext$major' 11629 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11630 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)' 11631 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"' 11632 ;; 11633 esac 11634 shlibpath_var=LIBPATH 11635 fi 11636 ;; 11637 11638amigaos*) 11639 case $host_cpu in 11640 powerpc) 11641 # Since July 2007 AmigaOS4 officially supports .so libraries. 11642 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11644 ;; 11645 m68k) 11646 library_names_spec='$libname.ixlibrary $libname.a' 11647 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11648 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' 11649 ;; 11650 esac 11651 ;; 11652 11653beos*) 11654 library_names_spec='$libname$shared_ext' 11655 dynamic_linker="$host_os ld.so" 11656 shlibpath_var=LIBRARY_PATH 11657 ;; 11658 11659bsdi[45]*) 11660 version_type=linux # correct to gnu/linux during the next big refactor 11661 need_version=no 11662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11663 soname_spec='$libname$release$shared_ext$major' 11664 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11665 shlibpath_var=LD_LIBRARY_PATH 11666 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11667 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11668 # the default ld.so.conf also contains /usr/contrib/lib and 11669 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11670 # libtool to hard-code these into programs 11671 ;; 11672 11673cygwin* | mingw* | pw32* | cegcc*) 11674 version_type=windows 11675 shrext_cmds=.dll 11676 need_version=no 11677 need_lib_prefix=no 11678 11679 case $GCC,$cc_basename in 11680 yes,*) 11681 # gcc 11682 library_names_spec='$libname.dll.a' 11683 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11684 postinstall_cmds='base_file=`basename \$file`~ 11685 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11686 dldir=$destdir/`dirname \$dlpath`~ 11687 test -d \$dldir || mkdir -p \$dldir~ 11688 $install_prog $dir/$dlname \$dldir/$dlname~ 11689 chmod a+x \$dldir/$dlname~ 11690 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11691 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11692 fi' 11693 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11694 dlpath=$dir/\$dldll~ 11695 $RM \$dlpath' 11696 shlibpath_overrides_runpath=yes 11697 11698 case $host_os in 11699 cygwin*) 11700 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11701 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11702 11703 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11704 ;; 11705 mingw* | cegcc*) 11706 # MinGW DLLs use traditional 'lib' prefix 11707 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11708 ;; 11709 pw32*) 11710 # pw32 DLLs use 'pw' prefix rather than 'lib' 11711 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11712 ;; 11713 esac 11714 dynamic_linker='Win32 ld.exe' 11715 ;; 11716 11717 *,cl*) 11718 # Native MSVC 11719 libname_spec='$name' 11720 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11721 library_names_spec='$libname.dll.lib' 11722 11723 case $build_os in 11724 mingw*) 11725 sys_lib_search_path_spec= 11726 lt_save_ifs=$IFS 11727 IFS=';' 11728 for lt_path in $LIB 11729 do 11730 IFS=$lt_save_ifs 11731 # Let DOS variable expansion print the short 8.3 style file name. 11732 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11733 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11734 done 11735 IFS=$lt_save_ifs 11736 # Convert to MSYS style. 11737 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11738 ;; 11739 cygwin*) 11740 # Convert to unix form, then to dos form, then back to unix form 11741 # but this time dos style (no spaces!) so that the unix form looks 11742 # like /cygdrive/c/PROGRA~1:/cygdr... 11743 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11744 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11745 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11746 ;; 11747 *) 11748 sys_lib_search_path_spec=$LIB 11749 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11750 # It is most probably a Windows format PATH. 11751 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11752 else 11753 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11754 fi 11755 # FIXME: find the short name or the path components, as spaces are 11756 # common. (e.g. "Program Files" -> "PROGRA~1") 11757 ;; 11758 esac 11759 11760 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11761 postinstall_cmds='base_file=`basename \$file`~ 11762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11763 dldir=$destdir/`dirname \$dlpath`~ 11764 test -d \$dldir || mkdir -p \$dldir~ 11765 $install_prog $dir/$dlname \$dldir/$dlname' 11766 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11767 dlpath=$dir/\$dldll~ 11768 $RM \$dlpath' 11769 shlibpath_overrides_runpath=yes 11770 dynamic_linker='Win32 link.exe' 11771 ;; 11772 11773 *) 11774 # Assume MSVC wrapper 11775 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11776 dynamic_linker='Win32 ld.exe' 11777 ;; 11778 esac 11779 # FIXME: first we should search . and the directory the executable is in 11780 shlibpath_var=PATH 11781 ;; 11782 11783darwin* | rhapsody*) 11784 dynamic_linker="$host_os dyld" 11785 version_type=darwin 11786 need_lib_prefix=no 11787 need_version=no 11788 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11789 soname_spec='$libname$release$major$shared_ext' 11790 shlibpath_overrides_runpath=yes 11791 shlibpath_var=DYLD_LIBRARY_PATH 11792 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11793 11794 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11795 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11796 ;; 11797 11798dgux*) 11799 version_type=linux # correct to gnu/linux during the next big refactor 11800 need_lib_prefix=no 11801 need_version=no 11802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11803 soname_spec='$libname$release$shared_ext$major' 11804 shlibpath_var=LD_LIBRARY_PATH 11805 ;; 11806 11807freebsd* | dragonfly*) 11808 # DragonFly does not have aout. When/if they implement a new 11809 # versioning mechanism, adjust this. 11810 if test -x /usr/bin/objformat; then 11811 objformat=`/usr/bin/objformat` 11812 else 11813 case $host_os in 11814 freebsd[23].*) objformat=aout ;; 11815 *) objformat=elf ;; 11816 esac 11817 fi 11818 version_type=freebsd-$objformat 11819 case $version_type in 11820 freebsd-elf*) 11821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11822 soname_spec='$libname$release$shared_ext$major' 11823 need_version=no 11824 need_lib_prefix=no 11825 ;; 11826 freebsd-*) 11827 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11828 need_version=yes 11829 ;; 11830 esac 11831 shlibpath_var=LD_LIBRARY_PATH 11832 case $host_os in 11833 freebsd2.*) 11834 shlibpath_overrides_runpath=yes 11835 ;; 11836 freebsd3.[01]* | freebsdelf3.[01]*) 11837 shlibpath_overrides_runpath=yes 11838 hardcode_into_libs=yes 11839 ;; 11840 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11841 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11842 shlibpath_overrides_runpath=no 11843 hardcode_into_libs=yes 11844 ;; 11845 *) # from 4.6 on, and DragonFly 11846 shlibpath_overrides_runpath=yes 11847 hardcode_into_libs=yes 11848 ;; 11849 esac 11850 ;; 11851 11852haiku*) 11853 version_type=linux # correct to gnu/linux during the next big refactor 11854 need_lib_prefix=no 11855 need_version=no 11856 dynamic_linker="$host_os runtime_loader" 11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11858 soname_spec='$libname$release$shared_ext$major' 11859 shlibpath_var=LIBRARY_PATH 11860 shlibpath_overrides_runpath=no 11861 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11862 hardcode_into_libs=yes 11863 ;; 11864 11865hpux9* | hpux10* | hpux11*) 11866 # Give a soname corresponding to the major version so that dld.sl refuses to 11867 # link against other versions. 11868 version_type=sunos 11869 need_lib_prefix=no 11870 need_version=no 11871 case $host_cpu in 11872 ia64*) 11873 shrext_cmds='.so' 11874 hardcode_into_libs=yes 11875 dynamic_linker="$host_os dld.so" 11876 shlibpath_var=LD_LIBRARY_PATH 11877 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11879 soname_spec='$libname$release$shared_ext$major' 11880 if test 32 = "$HPUX_IA64_MODE"; then 11881 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11882 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11883 else 11884 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11885 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11886 fi 11887 ;; 11888 hppa*64*) 11889 shrext_cmds='.sl' 11890 hardcode_into_libs=yes 11891 dynamic_linker="$host_os dld.sl" 11892 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11895 soname_spec='$libname$release$shared_ext$major' 11896 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11898 ;; 11899 *) 11900 shrext_cmds='.sl' 11901 dynamic_linker="$host_os dld.sl" 11902 shlibpath_var=SHLIB_PATH 11903 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11905 soname_spec='$libname$release$shared_ext$major' 11906 ;; 11907 esac 11908 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11909 postinstall_cmds='chmod 555 $lib' 11910 # or fails outright, so override atomically: 11911 install_override_mode=555 11912 ;; 11913 11914interix[3-9]*) 11915 version_type=linux # correct to gnu/linux during the next big refactor 11916 need_lib_prefix=no 11917 need_version=no 11918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11919 soname_spec='$libname$release$shared_ext$major' 11920 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11921 shlibpath_var=LD_LIBRARY_PATH 11922 shlibpath_overrides_runpath=no 11923 hardcode_into_libs=yes 11924 ;; 11925 11926irix5* | irix6* | nonstopux*) 11927 case $host_os in 11928 nonstopux*) version_type=nonstopux ;; 11929 *) 11930 if test yes = "$lt_cv_prog_gnu_ld"; then 11931 version_type=linux # correct to gnu/linux during the next big refactor 11932 else 11933 version_type=irix 11934 fi ;; 11935 esac 11936 need_lib_prefix=no 11937 need_version=no 11938 soname_spec='$libname$release$shared_ext$major' 11939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11940 case $host_os in 11941 irix5* | nonstopux*) 11942 libsuff= shlibsuff= 11943 ;; 11944 *) 11945 case $LD in # libtool.m4 will add one of these switches to LD 11946 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11947 libsuff= shlibsuff= libmagic=32-bit;; 11948 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11949 libsuff=32 shlibsuff=N32 libmagic=N32;; 11950 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11951 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11952 *) libsuff= shlibsuff= libmagic=never-match;; 11953 esac 11954 ;; 11955 esac 11956 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11957 shlibpath_overrides_runpath=no 11958 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11959 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11960 hardcode_into_libs=yes 11961 ;; 11962 11963# No shared lib support for Linux oldld, aout, or coff. 11964linux*oldld* | linux*aout* | linux*coff*) 11965 dynamic_linker=no 11966 ;; 11967 11968linux*android*) 11969 version_type=none # Android doesn't support versioned libraries. 11970 need_lib_prefix=no 11971 need_version=no 11972 library_names_spec='$libname$release$shared_ext' 11973 soname_spec='$libname$release$shared_ext' 11974 finish_cmds= 11975 shlibpath_var=LD_LIBRARY_PATH 11976 shlibpath_overrides_runpath=yes 11977 11978 # This implies no fast_install, which is unacceptable. 11979 # Some rework will be needed to allow for fast_install 11980 # before this can be enabled. 11981 hardcode_into_libs=yes 11982 11983 dynamic_linker='Android linker' 11984 # Don't embed -rpath directories since the linker doesn't support them. 11985 hardcode_libdir_flag_spec='-L$libdir' 11986 ;; 11987 11988# This must be glibc/ELF. 11989linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11990 version_type=linux # correct to gnu/linux during the next big refactor 11991 need_lib_prefix=no 11992 need_version=no 11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11994 soname_spec='$libname$release$shared_ext$major' 11995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11996 shlibpath_var=LD_LIBRARY_PATH 11997 shlibpath_overrides_runpath=no 11998 11999 # Some binutils ld are patched to set DT_RUNPATH 12000 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12001 $as_echo_n "(cached) " >&6 12002else 12003 lt_cv_shlibpath_overrides_runpath=no 12004 save_LDFLAGS=$LDFLAGS 12005 save_libdir=$libdir 12006 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12007 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12009/* end confdefs.h. */ 12010 12011int 12012main () 12013{ 12014 12015 ; 12016 return 0; 12017} 12018_ACEOF 12019if ac_fn_c_try_link "$LINENO"; then : 12020 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12021 lt_cv_shlibpath_overrides_runpath=yes 12022fi 12023fi 12024rm -f core conftest.err conftest.$ac_objext \ 12025 conftest$ac_exeext conftest.$ac_ext 12026 LDFLAGS=$save_LDFLAGS 12027 libdir=$save_libdir 12028 12029fi 12030 12031 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12032 12033 # This implies no fast_install, which is unacceptable. 12034 # Some rework will be needed to allow for fast_install 12035 # before this can be enabled. 12036 hardcode_into_libs=yes 12037 12038 # Ideally, we could use ldconfig to report *all* directores which are 12039 # searched for libraries, however this is still not possible. Aside from not 12040 # being certain /sbin/ldconfig is available, command 12041 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12042 # even though it is searched at run-time. Try to do the best guess by 12043 # appending ld.so.conf contents (and includes) to the search path. 12044 if test -f /etc/ld.so.conf; then 12045 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' ' '` 12046 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12047 fi 12048 12049 # We used to test for /lib/ld.so.1 and disable shared libraries on 12050 # powerpc, because MkLinux only supported shared libraries with the 12051 # GNU dynamic linker. Since this was broken with cross compilers, 12052 # most powerpc-linux boxes support dynamic linking these days and 12053 # people can always --disable-shared, the test was removed, and we 12054 # assume the GNU/Linux dynamic linker is in use. 12055 dynamic_linker='GNU/Linux ld.so' 12056 ;; 12057 12058netbsdelf*-gnu) 12059 version_type=linux 12060 need_lib_prefix=no 12061 need_version=no 12062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12063 soname_spec='${libname}${release}${shared_ext}$major' 12064 shlibpath_var=LD_LIBRARY_PATH 12065 shlibpath_overrides_runpath=no 12066 hardcode_into_libs=yes 12067 dynamic_linker='NetBSD ld.elf_so' 12068 ;; 12069 12070netbsd*) 12071 version_type=sunos 12072 need_lib_prefix=no 12073 need_version=no 12074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12075 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12077 dynamic_linker='NetBSD (a.out) ld.so' 12078 else 12079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12080 soname_spec='$libname$release$shared_ext$major' 12081 dynamic_linker='NetBSD ld.elf_so' 12082 fi 12083 shlibpath_var=LD_LIBRARY_PATH 12084 shlibpath_overrides_runpath=yes 12085 hardcode_into_libs=yes 12086 ;; 12087 12088newsos6) 12089 version_type=linux # correct to gnu/linux during the next big refactor 12090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12091 shlibpath_var=LD_LIBRARY_PATH 12092 shlibpath_overrides_runpath=yes 12093 ;; 12094 12095*nto* | *qnx*) 12096 version_type=qnx 12097 need_lib_prefix=no 12098 need_version=no 12099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12100 soname_spec='$libname$release$shared_ext$major' 12101 shlibpath_var=LD_LIBRARY_PATH 12102 shlibpath_overrides_runpath=no 12103 hardcode_into_libs=yes 12104 dynamic_linker='ldqnx.so' 12105 ;; 12106 12107openbsd* | bitrig*) 12108 version_type=sunos 12109 sys_lib_dlsearch_path_spec=/usr/lib 12110 need_lib_prefix=no 12111 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12112 need_version=no 12113 else 12114 need_version=yes 12115 fi 12116 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12118 shlibpath_var=LD_LIBRARY_PATH 12119 shlibpath_overrides_runpath=yes 12120 ;; 12121 12122os2*) 12123 libname_spec='$name' 12124 version_type=windows 12125 shrext_cmds=.dll 12126 need_version=no 12127 need_lib_prefix=no 12128 # OS/2 can only load a DLL with a base name of 8 characters or less. 12129 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12130 v=$($ECHO $release$versuffix | tr -d .-); 12131 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12132 $ECHO $n$v`$shared_ext' 12133 library_names_spec='${libname}_dll.$libext' 12134 dynamic_linker='OS/2 ld.exe' 12135 shlibpath_var=BEGINLIBPATH 12136 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12138 postinstall_cmds='base_file=`basename \$file`~ 12139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12140 dldir=$destdir/`dirname \$dlpath`~ 12141 test -d \$dldir || mkdir -p \$dldir~ 12142 $install_prog $dir/$dlname \$dldir/$dlname~ 12143 chmod a+x \$dldir/$dlname~ 12144 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12145 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12146 fi' 12147 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12148 dlpath=$dir/\$dldll~ 12149 $RM \$dlpath' 12150 ;; 12151 12152osf3* | osf4* | osf5*) 12153 version_type=osf 12154 need_lib_prefix=no 12155 need_version=no 12156 soname_spec='$libname$release$shared_ext$major' 12157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12158 shlibpath_var=LD_LIBRARY_PATH 12159 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12161 ;; 12162 12163rdos*) 12164 dynamic_linker=no 12165 ;; 12166 12167solaris*) 12168 version_type=linux # correct to gnu/linux during the next big refactor 12169 need_lib_prefix=no 12170 need_version=no 12171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12172 soname_spec='$libname$release$shared_ext$major' 12173 shlibpath_var=LD_LIBRARY_PATH 12174 shlibpath_overrides_runpath=yes 12175 hardcode_into_libs=yes 12176 # ldd complains unless libraries are executable 12177 postinstall_cmds='chmod +x $lib' 12178 ;; 12179 12180sunos4*) 12181 version_type=sunos 12182 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12183 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12184 shlibpath_var=LD_LIBRARY_PATH 12185 shlibpath_overrides_runpath=yes 12186 if test yes = "$with_gnu_ld"; then 12187 need_lib_prefix=no 12188 fi 12189 need_version=yes 12190 ;; 12191 12192sysv4 | sysv4.3*) 12193 version_type=linux # correct to gnu/linux during the next big refactor 12194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12195 soname_spec='$libname$release$shared_ext$major' 12196 shlibpath_var=LD_LIBRARY_PATH 12197 case $host_vendor in 12198 sni) 12199 shlibpath_overrides_runpath=no 12200 need_lib_prefix=no 12201 runpath_var=LD_RUN_PATH 12202 ;; 12203 siemens) 12204 need_lib_prefix=no 12205 ;; 12206 motorola) 12207 need_lib_prefix=no 12208 need_version=no 12209 shlibpath_overrides_runpath=no 12210 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12211 ;; 12212 esac 12213 ;; 12214 12215sysv4*MP*) 12216 if test -d /usr/nec; then 12217 version_type=linux # correct to gnu/linux during the next big refactor 12218 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12219 soname_spec='$libname$shared_ext.$major' 12220 shlibpath_var=LD_LIBRARY_PATH 12221 fi 12222 ;; 12223 12224sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12225 version_type=sco 12226 need_lib_prefix=no 12227 need_version=no 12228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12229 soname_spec='$libname$release$shared_ext$major' 12230 shlibpath_var=LD_LIBRARY_PATH 12231 shlibpath_overrides_runpath=yes 12232 hardcode_into_libs=yes 12233 if test yes = "$with_gnu_ld"; then 12234 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12235 else 12236 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12237 case $host_os in 12238 sco3.2v5*) 12239 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12240 ;; 12241 esac 12242 fi 12243 sys_lib_dlsearch_path_spec='/usr/lib' 12244 ;; 12245 12246tpf*) 12247 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12248 version_type=linux # correct to gnu/linux during the next big refactor 12249 need_lib_prefix=no 12250 need_version=no 12251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12252 shlibpath_var=LD_LIBRARY_PATH 12253 shlibpath_overrides_runpath=no 12254 hardcode_into_libs=yes 12255 ;; 12256 12257uts4*) 12258 version_type=linux # correct to gnu/linux during the next big refactor 12259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12260 soname_spec='$libname$release$shared_ext$major' 12261 shlibpath_var=LD_LIBRARY_PATH 12262 ;; 12263 12264*) 12265 dynamic_linker=no 12266 ;; 12267esac 12268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12269$as_echo "$dynamic_linker" >&6; } 12270test no = "$dynamic_linker" && can_build_shared=no 12271 12272variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12273if test yes = "$GCC"; then 12274 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12275fi 12276 12277if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12278 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12279fi 12280 12281if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12282 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12283fi 12284 12285# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12286configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12287 12288# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12289func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12290 12291# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12292configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12391$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12392hardcode_action= 12393if test -n "$hardcode_libdir_flag_spec" || 12394 test -n "$runpath_var" || 12395 test yes = "$hardcode_automatic"; then 12396 12397 # We can hardcode non-existent directories. 12398 if test no != "$hardcode_direct" && 12399 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12400 # have to relink, otherwise we might link with an installed library 12401 # when we should be linking with a yet-to-be-installed one 12402 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12403 test no != "$hardcode_minus_L"; then 12404 # Linking always hardcodes the temporary library directory. 12405 hardcode_action=relink 12406 else 12407 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12408 hardcode_action=immediate 12409 fi 12410else 12411 # We cannot hardcode anything, or else we can only hardcode existing 12412 # directories. 12413 hardcode_action=unsupported 12414fi 12415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12416$as_echo "$hardcode_action" >&6; } 12417 12418if test relink = "$hardcode_action" || 12419 test yes = "$inherit_rpath"; then 12420 # Fast installation is not supported 12421 enable_fast_install=no 12422elif test yes = "$shlibpath_overrides_runpath" || 12423 test no = "$enable_shared"; then 12424 # Fast installation is not necessary 12425 enable_fast_install=needless 12426fi 12427 12428 12429 12430 12431 12432 12433 if test yes != "$enable_dlopen"; then 12434 enable_dlopen=unknown 12435 enable_dlopen_self=unknown 12436 enable_dlopen_self_static=unknown 12437else 12438 lt_cv_dlopen=no 12439 lt_cv_dlopen_libs= 12440 12441 case $host_os in 12442 beos*) 12443 lt_cv_dlopen=load_add_on 12444 lt_cv_dlopen_libs= 12445 lt_cv_dlopen_self=yes 12446 ;; 12447 12448 mingw* | pw32* | cegcc*) 12449 lt_cv_dlopen=LoadLibrary 12450 lt_cv_dlopen_libs= 12451 ;; 12452 12453 cygwin*) 12454 lt_cv_dlopen=dlopen 12455 lt_cv_dlopen_libs= 12456 ;; 12457 12458 darwin*) 12459 # if libdl is installed we need to link against it 12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12461$as_echo_n "checking for dlopen in -ldl... " >&6; } 12462if ${ac_cv_lib_dl_dlopen+:} false; then : 12463 $as_echo_n "(cached) " >&6 12464else 12465 ac_check_lib_save_LIBS=$LIBS 12466LIBS="-ldl $LIBS" 12467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12468/* end confdefs.h. */ 12469 12470/* Override any GCC internal prototype to avoid an error. 12471 Use char because int might match the return type of a GCC 12472 builtin and then its argument prototype would still apply. */ 12473#ifdef __cplusplus 12474extern "C" 12475#endif 12476char dlopen (); 12477int 12478main () 12479{ 12480return dlopen (); 12481 ; 12482 return 0; 12483} 12484_ACEOF 12485if ac_fn_c_try_link "$LINENO"; then : 12486 ac_cv_lib_dl_dlopen=yes 12487else 12488 ac_cv_lib_dl_dlopen=no 12489fi 12490rm -f core conftest.err conftest.$ac_objext \ 12491 conftest$ac_exeext conftest.$ac_ext 12492LIBS=$ac_check_lib_save_LIBS 12493fi 12494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12495$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12496if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12497 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12498else 12499 12500 lt_cv_dlopen=dyld 12501 lt_cv_dlopen_libs= 12502 lt_cv_dlopen_self=yes 12503 12504fi 12505 12506 ;; 12507 12508 tpf*) 12509 # Don't try to run any link tests for TPF. We know it's impossible 12510 # because TPF is a cross-compiler, and we know how we open DSOs. 12511 lt_cv_dlopen=dlopen 12512 lt_cv_dlopen_libs= 12513 lt_cv_dlopen_self=no 12514 ;; 12515 12516 *) 12517 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12518if test "x$ac_cv_func_shl_load" = xyes; then : 12519 lt_cv_dlopen=shl_load 12520else 12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12522$as_echo_n "checking for shl_load in -ldld... " >&6; } 12523if ${ac_cv_lib_dld_shl_load+:} false; then : 12524 $as_echo_n "(cached) " >&6 12525else 12526 ac_check_lib_save_LIBS=$LIBS 12527LIBS="-ldld $LIBS" 12528cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12529/* end confdefs.h. */ 12530 12531/* Override any GCC internal prototype to avoid an error. 12532 Use char because int might match the return type of a GCC 12533 builtin and then its argument prototype would still apply. */ 12534#ifdef __cplusplus 12535extern "C" 12536#endif 12537char shl_load (); 12538int 12539main () 12540{ 12541return shl_load (); 12542 ; 12543 return 0; 12544} 12545_ACEOF 12546if ac_fn_c_try_link "$LINENO"; then : 12547 ac_cv_lib_dld_shl_load=yes 12548else 12549 ac_cv_lib_dld_shl_load=no 12550fi 12551rm -f core conftest.err conftest.$ac_objext \ 12552 conftest$ac_exeext conftest.$ac_ext 12553LIBS=$ac_check_lib_save_LIBS 12554fi 12555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12556$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12557if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12558 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12559else 12560 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12561if test "x$ac_cv_func_dlopen" = xyes; then : 12562 lt_cv_dlopen=dlopen 12563else 12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12565$as_echo_n "checking for dlopen in -ldl... " >&6; } 12566if ${ac_cv_lib_dl_dlopen+:} false; then : 12567 $as_echo_n "(cached) " >&6 12568else 12569 ac_check_lib_save_LIBS=$LIBS 12570LIBS="-ldl $LIBS" 12571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12572/* end confdefs.h. */ 12573 12574/* Override any GCC internal prototype to avoid an error. 12575 Use char because int might match the return type of a GCC 12576 builtin and then its argument prototype would still apply. */ 12577#ifdef __cplusplus 12578extern "C" 12579#endif 12580char dlopen (); 12581int 12582main () 12583{ 12584return dlopen (); 12585 ; 12586 return 0; 12587} 12588_ACEOF 12589if ac_fn_c_try_link "$LINENO"; then : 12590 ac_cv_lib_dl_dlopen=yes 12591else 12592 ac_cv_lib_dl_dlopen=no 12593fi 12594rm -f core conftest.err conftest.$ac_objext \ 12595 conftest$ac_exeext conftest.$ac_ext 12596LIBS=$ac_check_lib_save_LIBS 12597fi 12598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12599$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12600if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12601 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12602else 12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12604$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12605if ${ac_cv_lib_svld_dlopen+:} false; then : 12606 $as_echo_n "(cached) " >&6 12607else 12608 ac_check_lib_save_LIBS=$LIBS 12609LIBS="-lsvld $LIBS" 12610cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12611/* end confdefs.h. */ 12612 12613/* Override any GCC internal prototype to avoid an error. 12614 Use char because int might match the return type of a GCC 12615 builtin and then its argument prototype would still apply. */ 12616#ifdef __cplusplus 12617extern "C" 12618#endif 12619char dlopen (); 12620int 12621main () 12622{ 12623return dlopen (); 12624 ; 12625 return 0; 12626} 12627_ACEOF 12628if ac_fn_c_try_link "$LINENO"; then : 12629 ac_cv_lib_svld_dlopen=yes 12630else 12631 ac_cv_lib_svld_dlopen=no 12632fi 12633rm -f core conftest.err conftest.$ac_objext \ 12634 conftest$ac_exeext conftest.$ac_ext 12635LIBS=$ac_check_lib_save_LIBS 12636fi 12637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12638$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12639if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12640 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12641else 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12643$as_echo_n "checking for dld_link in -ldld... " >&6; } 12644if ${ac_cv_lib_dld_dld_link+:} false; then : 12645 $as_echo_n "(cached) " >&6 12646else 12647 ac_check_lib_save_LIBS=$LIBS 12648LIBS="-ldld $LIBS" 12649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12650/* end confdefs.h. */ 12651 12652/* Override any GCC internal prototype to avoid an error. 12653 Use char because int might match the return type of a GCC 12654 builtin and then its argument prototype would still apply. */ 12655#ifdef __cplusplus 12656extern "C" 12657#endif 12658char dld_link (); 12659int 12660main () 12661{ 12662return dld_link (); 12663 ; 12664 return 0; 12665} 12666_ACEOF 12667if ac_fn_c_try_link "$LINENO"; then : 12668 ac_cv_lib_dld_dld_link=yes 12669else 12670 ac_cv_lib_dld_dld_link=no 12671fi 12672rm -f core conftest.err conftest.$ac_objext \ 12673 conftest$ac_exeext conftest.$ac_ext 12674LIBS=$ac_check_lib_save_LIBS 12675fi 12676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12677$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12678if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12679 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12680fi 12681 12682 12683fi 12684 12685 12686fi 12687 12688 12689fi 12690 12691 12692fi 12693 12694 12695fi 12696 12697 ;; 12698 esac 12699 12700 if test no = "$lt_cv_dlopen"; then 12701 enable_dlopen=no 12702 else 12703 enable_dlopen=yes 12704 fi 12705 12706 case $lt_cv_dlopen in 12707 dlopen) 12708 save_CPPFLAGS=$CPPFLAGS 12709 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12710 12711 save_LDFLAGS=$LDFLAGS 12712 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12713 12714 save_LIBS=$LIBS 12715 LIBS="$lt_cv_dlopen_libs $LIBS" 12716 12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12718$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12719if ${lt_cv_dlopen_self+:} false; then : 12720 $as_echo_n "(cached) " >&6 12721else 12722 if test yes = "$cross_compiling"; then : 12723 lt_cv_dlopen_self=cross 12724else 12725 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12726 lt_status=$lt_dlunknown 12727 cat > conftest.$ac_ext <<_LT_EOF 12728#line $LINENO "configure" 12729#include "confdefs.h" 12730 12731#if HAVE_DLFCN_H 12732#include <dlfcn.h> 12733#endif 12734 12735#include <stdio.h> 12736 12737#ifdef RTLD_GLOBAL 12738# define LT_DLGLOBAL RTLD_GLOBAL 12739#else 12740# ifdef DL_GLOBAL 12741# define LT_DLGLOBAL DL_GLOBAL 12742# else 12743# define LT_DLGLOBAL 0 12744# endif 12745#endif 12746 12747/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12748 find out it does not work in some platform. */ 12749#ifndef LT_DLLAZY_OR_NOW 12750# ifdef RTLD_LAZY 12751# define LT_DLLAZY_OR_NOW RTLD_LAZY 12752# else 12753# ifdef DL_LAZY 12754# define LT_DLLAZY_OR_NOW DL_LAZY 12755# else 12756# ifdef RTLD_NOW 12757# define LT_DLLAZY_OR_NOW RTLD_NOW 12758# else 12759# ifdef DL_NOW 12760# define LT_DLLAZY_OR_NOW DL_NOW 12761# else 12762# define LT_DLLAZY_OR_NOW 0 12763# endif 12764# endif 12765# endif 12766# endif 12767#endif 12768 12769/* When -fvisibility=hidden is used, assume the code has been annotated 12770 correspondingly for the symbols needed. */ 12771#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12772int fnord () __attribute__((visibility("default"))); 12773#endif 12774 12775int fnord () { return 42; } 12776int main () 12777{ 12778 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12779 int status = $lt_dlunknown; 12780 12781 if (self) 12782 { 12783 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12784 else 12785 { 12786 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12787 else puts (dlerror ()); 12788 } 12789 /* dlclose (self); */ 12790 } 12791 else 12792 puts (dlerror ()); 12793 12794 return status; 12795} 12796_LT_EOF 12797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12798 (eval $ac_link) 2>&5 12799 ac_status=$? 12800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12801 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12802 (./conftest; exit; ) >&5 2>/dev/null 12803 lt_status=$? 12804 case x$lt_status in 12805 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12806 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12807 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12808 esac 12809 else : 12810 # compilation failed 12811 lt_cv_dlopen_self=no 12812 fi 12813fi 12814rm -fr conftest* 12815 12816 12817fi 12818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12819$as_echo "$lt_cv_dlopen_self" >&6; } 12820 12821 if test yes = "$lt_cv_dlopen_self"; then 12822 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12824$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12825if ${lt_cv_dlopen_self_static+:} false; then : 12826 $as_echo_n "(cached) " >&6 12827else 12828 if test yes = "$cross_compiling"; then : 12829 lt_cv_dlopen_self_static=cross 12830else 12831 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12832 lt_status=$lt_dlunknown 12833 cat > conftest.$ac_ext <<_LT_EOF 12834#line $LINENO "configure" 12835#include "confdefs.h" 12836 12837#if HAVE_DLFCN_H 12838#include <dlfcn.h> 12839#endif 12840 12841#include <stdio.h> 12842 12843#ifdef RTLD_GLOBAL 12844# define LT_DLGLOBAL RTLD_GLOBAL 12845#else 12846# ifdef DL_GLOBAL 12847# define LT_DLGLOBAL DL_GLOBAL 12848# else 12849# define LT_DLGLOBAL 0 12850# endif 12851#endif 12852 12853/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12854 find out it does not work in some platform. */ 12855#ifndef LT_DLLAZY_OR_NOW 12856# ifdef RTLD_LAZY 12857# define LT_DLLAZY_OR_NOW RTLD_LAZY 12858# else 12859# ifdef DL_LAZY 12860# define LT_DLLAZY_OR_NOW DL_LAZY 12861# else 12862# ifdef RTLD_NOW 12863# define LT_DLLAZY_OR_NOW RTLD_NOW 12864# else 12865# ifdef DL_NOW 12866# define LT_DLLAZY_OR_NOW DL_NOW 12867# else 12868# define LT_DLLAZY_OR_NOW 0 12869# endif 12870# endif 12871# endif 12872# endif 12873#endif 12874 12875/* When -fvisibility=hidden is used, assume the code has been annotated 12876 correspondingly for the symbols needed. */ 12877#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12878int fnord () __attribute__((visibility("default"))); 12879#endif 12880 12881int fnord () { return 42; } 12882int main () 12883{ 12884 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12885 int status = $lt_dlunknown; 12886 12887 if (self) 12888 { 12889 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12890 else 12891 { 12892 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12893 else puts (dlerror ()); 12894 } 12895 /* dlclose (self); */ 12896 } 12897 else 12898 puts (dlerror ()); 12899 12900 return status; 12901} 12902_LT_EOF 12903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12904 (eval $ac_link) 2>&5 12905 ac_status=$? 12906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12907 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12908 (./conftest; exit; ) >&5 2>/dev/null 12909 lt_status=$? 12910 case x$lt_status in 12911 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12912 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12913 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12914 esac 12915 else : 12916 # compilation failed 12917 lt_cv_dlopen_self_static=no 12918 fi 12919fi 12920rm -fr conftest* 12921 12922 12923fi 12924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12925$as_echo "$lt_cv_dlopen_self_static" >&6; } 12926 fi 12927 12928 CPPFLAGS=$save_CPPFLAGS 12929 LDFLAGS=$save_LDFLAGS 12930 LIBS=$save_LIBS 12931 ;; 12932 esac 12933 12934 case $lt_cv_dlopen_self in 12935 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12936 *) enable_dlopen_self=unknown ;; 12937 esac 12938 12939 case $lt_cv_dlopen_self_static in 12940 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12941 *) enable_dlopen_self_static=unknown ;; 12942 esac 12943fi 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961striplib= 12962old_striplib= 12963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12964$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12965if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12966 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12967 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12969$as_echo "yes" >&6; } 12970else 12971# FIXME - insert some real tests, host_os isn't really good enough 12972 case $host_os in 12973 darwin*) 12974 if test -n "$STRIP"; then 12975 striplib="$STRIP -x" 12976 old_striplib="$STRIP -S" 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12978$as_echo "yes" >&6; } 12979 else 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12981$as_echo "no" >&6; } 12982 fi 12983 ;; 12984 *) 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12986$as_echo "no" >&6; } 12987 ;; 12988 esac 12989fi 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 # Report what library types will actually be built 13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13004$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13006$as_echo "$can_build_shared" >&6; } 13007 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13009$as_echo_n "checking whether to build shared libraries... " >&6; } 13010 test no = "$can_build_shared" && enable_shared=no 13011 13012 # On AIX, shared libraries and static libraries use the same namespace, and 13013 # are all built from PIC. 13014 case $host_os in 13015 aix3*) 13016 test yes = "$enable_shared" && enable_static=no 13017 if test -n "$RANLIB"; then 13018 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13019 postinstall_cmds='$RANLIB $lib' 13020 fi 13021 ;; 13022 13023 aix[4-9]*) 13024 if test ia64 != "$host_cpu"; then 13025 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13026 yes,aix,yes) ;; # shared object as lib.so file only 13027 yes,svr4,*) ;; # shared object as lib.so archive member only 13028 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13029 esac 13030 fi 13031 ;; 13032 esac 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13034$as_echo "$enable_shared" >&6; } 13035 13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13037$as_echo_n "checking whether to build static libraries... " >&6; } 13038 # Make sure either enable_shared or enable_static is yes. 13039 test yes = "$enable_shared" || enable_static=yes 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13041$as_echo "$enable_static" >&6; } 13042 13043 13044 13045 13046fi 13047ac_ext=c 13048ac_cpp='$CPP $CPPFLAGS' 13049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13051ac_compiler_gnu=$ac_cv_c_compiler_gnu 13052 13053CC=$lt_save_CC 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 ac_config_commands="$ac_config_commands libtool" 13070 13071 13072 13073 13074# Only expand once: 13075 13076 13077 13078ac_config_files="$ac_config_files Makefile" 13079 13080 13081############################################################################### 13082builddir=`pwd` 13083 13084 13085# Check whether --with-ccache was given. 13086if test "${with_ccache+set}" = set; then : 13087 withval=$with_ccache; 13088fi 13089 13090 13091# Extract the first word of "ccache", so it can be a program name with args. 13092set dummy ccache; ac_word=$2 13093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13094$as_echo_n "checking for $ac_word... " >&6; } 13095if ${ac_cv_prog_CCACHE+:} false; then : 13096 $as_echo_n "(cached) " >&6 13097else 13098 if test -n "$CCACHE"; then 13099 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test. 13100else 13101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13102for as_dir in $PATH 13103do 13104 IFS=$as_save_IFS 13105 test -z "$as_dir" && as_dir=. 13106 for ac_exec_ext in '' $ac_executable_extensions; do 13107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13108 ac_cv_prog_CCACHE="ccache" 13109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13110 break 2 13111 fi 13112done 13113 done 13114IFS=$as_save_IFS 13115 13116fi 13117fi 13118CCACHE=$ac_cv_prog_CCACHE 13119if test -n "$CCACHE"; then 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 13121$as_echo "$CCACHE" >&6; } 13122else 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13124$as_echo "no" >&6; } 13125fi 13126 13127 13128{ $as_echo "$as_me:${as_lineno-$LINENO}: CC=/$CC/ CXX=/$CXX/ CCACHE=/$CCACHE/" >&5 13129$as_echo "$as_me: CC=/$CC/ CXX=/$CXX/ CCACHE=/$CCACHE/" >&6;} 13130 13131# The use of ccache here deserves an explanation. The first and maybe obvious 13132# thing is that if wither ccache seems to to be installed or if the person 13133# who invoked the configure script had overridden CC or CXX so specify any 13134# custom compilers that I will not do anything. 13135# Then the "obvious" thing do do would be to go 'CC="ccache $CC"' so that 13136# subsequent compilation ended up cached. Well before I can do that I need 13137# to get CC set - and remember that if --host is set then it may end up 13138# being a cross-compiler. So 'CC="ccache gcc"' is certainly not good enough. 13139# However the autoconf macros that set CC (and CXX) also set CFLAGS etc 13140# in ways I do not want, so I take steps to preserve and restore those. 13141# Now an issue that caused me much pain. If CC ends up as text with embedded 13142# whitespace then passing it down to lower-level configure scripts is 13143# delicate. And at leats one library that I use performs a test of the form 13144# if test $CC = xxx; then 13145# (where perhaps more properly it would have gone 'test "$CC" = "xxx"') and 13146# if CC expands to more than one word that gives a syntax error. So to work 13147# around both those problems I dynamically create short scripts to compile 13148# via ccache. These are placed in the top level build directory, which should 13149# be platform specific. This extra layer of shell scripting will have an 13150# adverse cost, but I hope that will be balanced by the effects of ccache. 13151# Please note that here (and in other places) that whitespace in the path 13152# to where Reduce gets built is not supported. If some keen person would 13153# like to review all the build scripts and get quoting of strings fully 13154# correct that might be nice! 13155# Hah - a further issue. On some platforms gcc and g++ (and som others) will 13156# be links to ccache and so the facility is already used automatically. In 13157# that case it is not a help to wrap in an extra call to ccache! 13158 13159ORIG="$CC$CXX" 13160OLD_CFLAGS="$CFLAGS" 13161OLD_CXXFLAGS="$CXXFLAGS" 13162OLD_CPPFLAGS="$CPPFLAGS" 13163ac_ext=c 13164ac_cpp='$CPP $CPPFLAGS' 13165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13167ac_compiler_gnu=$ac_cv_c_compiler_gnu 13168if test -n "$ac_tool_prefix"; then 13169 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 13170set dummy ${ac_tool_prefix}gcc; ac_word=$2 13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13172$as_echo_n "checking for $ac_word... " >&6; } 13173if ${ac_cv_prog_CC+:} false; then : 13174 $as_echo_n "(cached) " >&6 13175else 13176 if test -n "$CC"; then 13177 ac_cv_prog_CC="$CC" # Let the user override the test. 13178else 13179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13180for as_dir in $PATH 13181do 13182 IFS=$as_save_IFS 13183 test -z "$as_dir" && as_dir=. 13184 for ac_exec_ext in '' $ac_executable_extensions; do 13185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13186 ac_cv_prog_CC="${ac_tool_prefix}gcc" 13187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13188 break 2 13189 fi 13190done 13191 done 13192IFS=$as_save_IFS 13193 13194fi 13195fi 13196CC=$ac_cv_prog_CC 13197if test -n "$CC"; then 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13199$as_echo "$CC" >&6; } 13200else 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13202$as_echo "no" >&6; } 13203fi 13204 13205 13206fi 13207if test -z "$ac_cv_prog_CC"; then 13208 ac_ct_CC=$CC 13209 # Extract the first word of "gcc", so it can be a program name with args. 13210set dummy gcc; ac_word=$2 13211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13212$as_echo_n "checking for $ac_word... " >&6; } 13213if ${ac_cv_prog_ac_ct_CC+:} false; then : 13214 $as_echo_n "(cached) " >&6 13215else 13216 if test -n "$ac_ct_CC"; then 13217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13218else 13219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13220for as_dir in $PATH 13221do 13222 IFS=$as_save_IFS 13223 test -z "$as_dir" && as_dir=. 13224 for ac_exec_ext in '' $ac_executable_extensions; do 13225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13226 ac_cv_prog_ac_ct_CC="gcc" 13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13228 break 2 13229 fi 13230done 13231 done 13232IFS=$as_save_IFS 13233 13234fi 13235fi 13236ac_ct_CC=$ac_cv_prog_ac_ct_CC 13237if test -n "$ac_ct_CC"; then 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13239$as_echo "$ac_ct_CC" >&6; } 13240else 13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13242$as_echo "no" >&6; } 13243fi 13244 13245 if test "x$ac_ct_CC" = x; then 13246 CC="" 13247 else 13248 case $cross_compiling:$ac_tool_warned in 13249yes:) 13250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13252ac_tool_warned=yes ;; 13253esac 13254 CC=$ac_ct_CC 13255 fi 13256else 13257 CC="$ac_cv_prog_CC" 13258fi 13259 13260if test -z "$CC"; then 13261 if test -n "$ac_tool_prefix"; then 13262 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 13263set dummy ${ac_tool_prefix}cc; ac_word=$2 13264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13265$as_echo_n "checking for $ac_word... " >&6; } 13266if ${ac_cv_prog_CC+:} false; then : 13267 $as_echo_n "(cached) " >&6 13268else 13269 if test -n "$CC"; then 13270 ac_cv_prog_CC="$CC" # Let the user override the test. 13271else 13272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13273for as_dir in $PATH 13274do 13275 IFS=$as_save_IFS 13276 test -z "$as_dir" && as_dir=. 13277 for ac_exec_ext in '' $ac_executable_extensions; do 13278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13279 ac_cv_prog_CC="${ac_tool_prefix}cc" 13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13281 break 2 13282 fi 13283done 13284 done 13285IFS=$as_save_IFS 13286 13287fi 13288fi 13289CC=$ac_cv_prog_CC 13290if test -n "$CC"; then 13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13292$as_echo "$CC" >&6; } 13293else 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13295$as_echo "no" >&6; } 13296fi 13297 13298 13299 fi 13300fi 13301if test -z "$CC"; then 13302 # Extract the first word of "cc", so it can be a program name with args. 13303set dummy cc; ac_word=$2 13304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13305$as_echo_n "checking for $ac_word... " >&6; } 13306if ${ac_cv_prog_CC+:} false; then : 13307 $as_echo_n "(cached) " >&6 13308else 13309 if test -n "$CC"; then 13310 ac_cv_prog_CC="$CC" # Let the user override the test. 13311else 13312 ac_prog_rejected=no 13313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13314for as_dir in $PATH 13315do 13316 IFS=$as_save_IFS 13317 test -z "$as_dir" && as_dir=. 13318 for ac_exec_ext in '' $ac_executable_extensions; do 13319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13320 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 13321 ac_prog_rejected=yes 13322 continue 13323 fi 13324 ac_cv_prog_CC="cc" 13325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13326 break 2 13327 fi 13328done 13329 done 13330IFS=$as_save_IFS 13331 13332if test $ac_prog_rejected = yes; then 13333 # We found a bogon in the path, so make sure we never use it. 13334 set dummy $ac_cv_prog_CC 13335 shift 13336 if test $# != 0; then 13337 # We chose a different compiler from the bogus one. 13338 # However, it has the same basename, so the bogon will be chosen 13339 # first if we set CC to just the basename; use the full file name. 13340 shift 13341 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 13342 fi 13343fi 13344fi 13345fi 13346CC=$ac_cv_prog_CC 13347if test -n "$CC"; then 13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13349$as_echo "$CC" >&6; } 13350else 13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13352$as_echo "no" >&6; } 13353fi 13354 13355 13356fi 13357if test -z "$CC"; then 13358 if test -n "$ac_tool_prefix"; then 13359 for ac_prog in cl.exe 13360 do 13361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13362set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13364$as_echo_n "checking for $ac_word... " >&6; } 13365if ${ac_cv_prog_CC+:} false; then : 13366 $as_echo_n "(cached) " >&6 13367else 13368 if test -n "$CC"; then 13369 ac_cv_prog_CC="$CC" # Let the user override the test. 13370else 13371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13372for as_dir in $PATH 13373do 13374 IFS=$as_save_IFS 13375 test -z "$as_dir" && as_dir=. 13376 for ac_exec_ext in '' $ac_executable_extensions; do 13377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13378 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13380 break 2 13381 fi 13382done 13383 done 13384IFS=$as_save_IFS 13385 13386fi 13387fi 13388CC=$ac_cv_prog_CC 13389if test -n "$CC"; then 13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13391$as_echo "$CC" >&6; } 13392else 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13394$as_echo "no" >&6; } 13395fi 13396 13397 13398 test -n "$CC" && break 13399 done 13400fi 13401if test -z "$CC"; then 13402 ac_ct_CC=$CC 13403 for ac_prog in cl.exe 13404do 13405 # Extract the first word of "$ac_prog", so it can be a program name with args. 13406set dummy $ac_prog; ac_word=$2 13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13408$as_echo_n "checking for $ac_word... " >&6; } 13409if ${ac_cv_prog_ac_ct_CC+:} false; then : 13410 $as_echo_n "(cached) " >&6 13411else 13412 if test -n "$ac_ct_CC"; then 13413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13414else 13415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13416for as_dir in $PATH 13417do 13418 IFS=$as_save_IFS 13419 test -z "$as_dir" && as_dir=. 13420 for ac_exec_ext in '' $ac_executable_extensions; do 13421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13422 ac_cv_prog_ac_ct_CC="$ac_prog" 13423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13424 break 2 13425 fi 13426done 13427 done 13428IFS=$as_save_IFS 13429 13430fi 13431fi 13432ac_ct_CC=$ac_cv_prog_ac_ct_CC 13433if test -n "$ac_ct_CC"; then 13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13435$as_echo "$ac_ct_CC" >&6; } 13436else 13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13438$as_echo "no" >&6; } 13439fi 13440 13441 13442 test -n "$ac_ct_CC" && break 13443done 13444 13445 if test "x$ac_ct_CC" = x; then 13446 CC="" 13447 else 13448 case $cross_compiling:$ac_tool_warned in 13449yes:) 13450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13452ac_tool_warned=yes ;; 13453esac 13454 CC=$ac_ct_CC 13455 fi 13456fi 13457 13458fi 13459 13460 13461test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13463as_fn_error $? "no acceptable C compiler found in \$PATH 13464See \`config.log' for more details" "$LINENO" 5; } 13465 13466# Provide some information about the compiler. 13467$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 13468set X $ac_compile 13469ac_compiler=$2 13470for ac_option in --version -v -V -qversion; do 13471 { { ac_try="$ac_compiler $ac_option >&5" 13472case "(($ac_try" in 13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13474 *) ac_try_echo=$ac_try;; 13475esac 13476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13477$as_echo "$ac_try_echo"; } >&5 13478 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13479 ac_status=$? 13480 if test -s conftest.err; then 13481 sed '10a\ 13482... rest of stderr output deleted ... 13483 10q' conftest.err >conftest.er1 13484 cat conftest.er1 >&5 13485 fi 13486 rm -f conftest.er1 conftest.err 13487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13488 test $ac_status = 0; } 13489done 13490 13491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 13492$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 13493if ${ac_cv_c_compiler_gnu+:} false; then : 13494 $as_echo_n "(cached) " >&6 13495else 13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13497/* end confdefs.h. */ 13498 13499int 13500main () 13501{ 13502#ifndef __GNUC__ 13503 choke me 13504#endif 13505 13506 ; 13507 return 0; 13508} 13509_ACEOF 13510if ac_fn_c_try_compile "$LINENO"; then : 13511 ac_compiler_gnu=yes 13512else 13513 ac_compiler_gnu=no 13514fi 13515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13516ac_cv_c_compiler_gnu=$ac_compiler_gnu 13517 13518fi 13519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 13520$as_echo "$ac_cv_c_compiler_gnu" >&6; } 13521if test $ac_compiler_gnu = yes; then 13522 GCC=yes 13523else 13524 GCC= 13525fi 13526ac_test_CFLAGS=${CFLAGS+set} 13527ac_save_CFLAGS=$CFLAGS 13528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 13529$as_echo_n "checking whether $CC accepts -g... " >&6; } 13530if ${ac_cv_prog_cc_g+:} false; then : 13531 $as_echo_n "(cached) " >&6 13532else 13533 ac_save_c_werror_flag=$ac_c_werror_flag 13534 ac_c_werror_flag=yes 13535 ac_cv_prog_cc_g=no 13536 CFLAGS="-g" 13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13538/* end confdefs.h. */ 13539 13540int 13541main () 13542{ 13543 13544 ; 13545 return 0; 13546} 13547_ACEOF 13548if ac_fn_c_try_compile "$LINENO"; then : 13549 ac_cv_prog_cc_g=yes 13550else 13551 CFLAGS="" 13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13553/* end confdefs.h. */ 13554 13555int 13556main () 13557{ 13558 13559 ; 13560 return 0; 13561} 13562_ACEOF 13563if ac_fn_c_try_compile "$LINENO"; then : 13564 13565else 13566 ac_c_werror_flag=$ac_save_c_werror_flag 13567 CFLAGS="-g" 13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13569/* end confdefs.h. */ 13570 13571int 13572main () 13573{ 13574 13575 ; 13576 return 0; 13577} 13578_ACEOF 13579if ac_fn_c_try_compile "$LINENO"; then : 13580 ac_cv_prog_cc_g=yes 13581fi 13582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13583fi 13584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13585fi 13586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13587 ac_c_werror_flag=$ac_save_c_werror_flag 13588fi 13589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 13590$as_echo "$ac_cv_prog_cc_g" >&6; } 13591if test "$ac_test_CFLAGS" = set; then 13592 CFLAGS=$ac_save_CFLAGS 13593elif test $ac_cv_prog_cc_g = yes; then 13594 if test "$GCC" = yes; then 13595 CFLAGS="-g -O2" 13596 else 13597 CFLAGS="-g" 13598 fi 13599else 13600 if test "$GCC" = yes; then 13601 CFLAGS="-O2" 13602 else 13603 CFLAGS= 13604 fi 13605fi 13606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 13607$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 13608if ${ac_cv_prog_cc_c89+:} false; then : 13609 $as_echo_n "(cached) " >&6 13610else 13611 ac_cv_prog_cc_c89=no 13612ac_save_CC=$CC 13613cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13614/* end confdefs.h. */ 13615#include <stdarg.h> 13616#include <stdio.h> 13617struct stat; 13618/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 13619struct buf { int x; }; 13620FILE * (*rcsopen) (struct buf *, struct stat *, int); 13621static char *e (p, i) 13622 char **p; 13623 int i; 13624{ 13625 return p[i]; 13626} 13627static char *f (char * (*g) (char **, int), char **p, ...) 13628{ 13629 char *s; 13630 va_list v; 13631 va_start (v,p); 13632 s = g (p, va_arg (v,int)); 13633 va_end (v); 13634 return s; 13635} 13636 13637/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 13638 function prototypes and stuff, but not '\xHH' hex character constants. 13639 These don't provoke an error unfortunately, instead are silently treated 13640 as 'x'. The following induces an error, until -std is added to get 13641 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 13642 array size at least. It's necessary to write '\x00'==0 to get something 13643 that's true only with -std. */ 13644int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 13645 13646/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 13647 inside strings and character constants. */ 13648#define FOO(x) 'x' 13649int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 13650 13651int test (int i, double x); 13652struct s1 {int (*f) (int a);}; 13653struct s2 {int (*f) (double a);}; 13654int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 13655int argc; 13656char **argv; 13657int 13658main () 13659{ 13660return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 13661 ; 13662 return 0; 13663} 13664_ACEOF 13665for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 13666 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13667do 13668 CC="$ac_save_CC $ac_arg" 13669 if ac_fn_c_try_compile "$LINENO"; then : 13670 ac_cv_prog_cc_c89=$ac_arg 13671fi 13672rm -f core conftest.err conftest.$ac_objext 13673 test "x$ac_cv_prog_cc_c89" != "xno" && break 13674done 13675rm -f conftest.$ac_ext 13676CC=$ac_save_CC 13677 13678fi 13679# AC_CACHE_VAL 13680case "x$ac_cv_prog_cc_c89" in 13681 x) 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13683$as_echo "none needed" >&6; } ;; 13684 xno) 13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13686$as_echo "unsupported" >&6; } ;; 13687 *) 13688 CC="$CC $ac_cv_prog_cc_c89" 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13690$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 13691esac 13692if test "x$ac_cv_prog_cc_c89" != xno; then : 13693 13694fi 13695 13696ac_ext=c 13697ac_cpp='$CPP $CPPFLAGS' 13698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13700ac_compiler_gnu=$ac_cv_c_compiler_gnu 13701 13702ac_ext=c 13703ac_cpp='$CPP $CPPFLAGS' 13704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13706ac_compiler_gnu=$ac_cv_c_compiler_gnu 13707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 13708$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 13709if ${am_cv_prog_cc_c_o+:} false; then : 13710 $as_echo_n "(cached) " >&6 13711else 13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13713/* end confdefs.h. */ 13714 13715int 13716main () 13717{ 13718 13719 ; 13720 return 0; 13721} 13722_ACEOF 13723 # Make sure it works both with $CC and with simple cc. 13724 # Following AC_PROG_CC_C_O, we do the test twice because some 13725 # compilers refuse to overwrite an existing .o file with -o, 13726 # though they will create one. 13727 am_cv_prog_cc_c_o=yes 13728 for am_i in 1 2; do 13729 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 13730 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 13731 ac_status=$? 13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13733 (exit $ac_status); } \ 13734 && test -f conftest2.$ac_objext; then 13735 : OK 13736 else 13737 am_cv_prog_cc_c_o=no 13738 break 13739 fi 13740 done 13741 rm -f core conftest* 13742 unset am_i 13743fi 13744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 13745$as_echo "$am_cv_prog_cc_c_o" >&6; } 13746if test "$am_cv_prog_cc_c_o" != yes; then 13747 # Losing compiler, so override with the script. 13748 # FIXME: It is wrong to rewrite CC. 13749 # But if we don't then we get into trouble of one sort or another. 13750 # A longer-term fix would be to have automake use am__CC in this case, 13751 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 13752 CC="$am_aux_dir/compile $CC" 13753fi 13754ac_ext=c 13755ac_cpp='$CPP $CPPFLAGS' 13756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13758ac_compiler_gnu=$ac_cv_c_compiler_gnu 13759 13760 13761depcc="$CC" am_compiler_list= 13762 13763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13764$as_echo_n "checking dependency style of $depcc... " >&6; } 13765if ${am_cv_CC_dependencies_compiler_type+:} false; then : 13766 $as_echo_n "(cached) " >&6 13767else 13768 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13769 # We make a subdir and do the tests there. Otherwise we can end up 13770 # making bogus files that we don't know about and never remove. For 13771 # instance it was reported that on HP-UX the gcc test will end up 13772 # making a dummy file named 'D' -- because '-MD' means "put the output 13773 # in D". 13774 rm -rf conftest.dir 13775 mkdir conftest.dir 13776 # Copy depcomp to subdir because otherwise we won't find it if we're 13777 # using a relative directory. 13778 cp "$am_depcomp" conftest.dir 13779 cd conftest.dir 13780 # We will build objects and dependencies in a subdirectory because 13781 # it helps to detect inapplicable dependency modes. For instance 13782 # both Tru64's cc and ICC support -MD to output dependencies as a 13783 # side effect of compilation, but ICC will put the dependencies in 13784 # the current directory while Tru64 will put them in the object 13785 # directory. 13786 mkdir sub 13787 13788 am_cv_CC_dependencies_compiler_type=none 13789 if test "$am_compiler_list" = ""; then 13790 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13791 fi 13792 am__universal=false 13793 case " $depcc " in #( 13794 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13795 esac 13796 13797 for depmode in $am_compiler_list; do 13798 # Setup a source with many dependencies, because some compilers 13799 # like to wrap large dependency lists on column 80 (with \), and 13800 # we should not choose a depcomp mode which is confused by this. 13801 # 13802 # We need to recreate these files for each test, as the compiler may 13803 # overwrite some of them when testing with obscure command lines. 13804 # This happens at least with the AIX C compiler. 13805 : > sub/conftest.c 13806 for i in 1 2 3 4 5 6; do 13807 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13808 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13809 # Solaris 10 /bin/sh. 13810 echo '/* dummy */' > sub/conftst$i.h 13811 done 13812 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13813 13814 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13815 # mode. It turns out that the SunPro C++ compiler does not properly 13816 # handle '-M -o', and we need to detect this. Also, some Intel 13817 # versions had trouble with output in subdirs. 13818 am__obj=sub/conftest.${OBJEXT-o} 13819 am__minus_obj="-o $am__obj" 13820 case $depmode in 13821 gcc) 13822 # This depmode causes a compiler race in universal mode. 13823 test "$am__universal" = false || continue 13824 ;; 13825 nosideeffect) 13826 # After this tag, mechanisms are not by side-effect, so they'll 13827 # only be used when explicitly requested. 13828 if test "x$enable_dependency_tracking" = xyes; then 13829 continue 13830 else 13831 break 13832 fi 13833 ;; 13834 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13835 # This compiler won't grok '-c -o', but also, the minuso test has 13836 # not run yet. These depmodes are late enough in the game, and 13837 # so weak that their functioning should not be impacted. 13838 am__obj=conftest.${OBJEXT-o} 13839 am__minus_obj= 13840 ;; 13841 none) break ;; 13842 esac 13843 if depmode=$depmode \ 13844 source=sub/conftest.c object=$am__obj \ 13845 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13846 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13847 >/dev/null 2>conftest.err && 13848 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13850 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13852 # icc doesn't choke on unknown options, it will just issue warnings 13853 # or remarks (even with -Werror). So we grep stderr for any message 13854 # that says an option was ignored or not supported. 13855 # When given -MP, icc 7.0 and 7.1 complain thusly: 13856 # icc: Command line warning: ignoring option '-M'; no argument required 13857 # The diagnosis changed in icc 8.0: 13858 # icc: Command line remark: option '-MP' not supported 13859 if (grep 'ignoring option' conftest.err || 13860 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13861 am_cv_CC_dependencies_compiler_type=$depmode 13862 break 13863 fi 13864 fi 13865 done 13866 13867 cd .. 13868 rm -rf conftest.dir 13869else 13870 am_cv_CC_dependencies_compiler_type=none 13871fi 13872 13873fi 13874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13875$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 13876CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13877 13878 if 13879 test "x$enable_dependency_tracking" != xno \ 13880 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13881 am__fastdepCC_TRUE= 13882 am__fastdepCC_FALSE='#' 13883else 13884 am__fastdepCC_TRUE='#' 13885 am__fastdepCC_FALSE= 13886fi 13887 13888 13889ac_ext=cpp 13890ac_cpp='$CXXCPP $CPPFLAGS' 13891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13894if test -z "$CXX"; then 13895 if test -n "$CCC"; then 13896 CXX=$CCC 13897 else 13898 if test -n "$ac_tool_prefix"; then 13899 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13900 do 13901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13902set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13904$as_echo_n "checking for $ac_word... " >&6; } 13905if ${ac_cv_prog_CXX+:} false; then : 13906 $as_echo_n "(cached) " >&6 13907else 13908 if test -n "$CXX"; then 13909 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13910else 13911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13912for as_dir in $PATH 13913do 13914 IFS=$as_save_IFS 13915 test -z "$as_dir" && as_dir=. 13916 for ac_exec_ext in '' $ac_executable_extensions; do 13917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13918 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13920 break 2 13921 fi 13922done 13923 done 13924IFS=$as_save_IFS 13925 13926fi 13927fi 13928CXX=$ac_cv_prog_CXX 13929if test -n "$CXX"; then 13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13931$as_echo "$CXX" >&6; } 13932else 13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13934$as_echo "no" >&6; } 13935fi 13936 13937 13938 test -n "$CXX" && break 13939 done 13940fi 13941if test -z "$CXX"; then 13942 ac_ct_CXX=$CXX 13943 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13944do 13945 # Extract the first word of "$ac_prog", so it can be a program name with args. 13946set dummy $ac_prog; ac_word=$2 13947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13948$as_echo_n "checking for $ac_word... " >&6; } 13949if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13950 $as_echo_n "(cached) " >&6 13951else 13952 if test -n "$ac_ct_CXX"; then 13953 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13954else 13955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13956for as_dir in $PATH 13957do 13958 IFS=$as_save_IFS 13959 test -z "$as_dir" && as_dir=. 13960 for ac_exec_ext in '' $ac_executable_extensions; do 13961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13962 ac_cv_prog_ac_ct_CXX="$ac_prog" 13963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13964 break 2 13965 fi 13966done 13967 done 13968IFS=$as_save_IFS 13969 13970fi 13971fi 13972ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13973if test -n "$ac_ct_CXX"; then 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13975$as_echo "$ac_ct_CXX" >&6; } 13976else 13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13978$as_echo "no" >&6; } 13979fi 13980 13981 13982 test -n "$ac_ct_CXX" && break 13983done 13984 13985 if test "x$ac_ct_CXX" = x; then 13986 CXX="g++" 13987 else 13988 case $cross_compiling:$ac_tool_warned in 13989yes:) 13990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13992ac_tool_warned=yes ;; 13993esac 13994 CXX=$ac_ct_CXX 13995 fi 13996fi 13997 13998 fi 13999fi 14000# Provide some information about the compiler. 14001$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 14002set X $ac_compile 14003ac_compiler=$2 14004for ac_option in --version -v -V -qversion; do 14005 { { ac_try="$ac_compiler $ac_option >&5" 14006case "(($ac_try" in 14007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14008 *) ac_try_echo=$ac_try;; 14009esac 14010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 14011$as_echo "$ac_try_echo"; } >&5 14012 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 14013 ac_status=$? 14014 if test -s conftest.err; then 14015 sed '10a\ 14016... rest of stderr output deleted ... 14017 10q' conftest.err >conftest.er1 14018 cat conftest.er1 >&5 14019 fi 14020 rm -f conftest.er1 conftest.err 14021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14022 test $ac_status = 0; } 14023done 14024 14025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 14026$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 14027if ${ac_cv_cxx_compiler_gnu+:} false; then : 14028 $as_echo_n "(cached) " >&6 14029else 14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14031/* end confdefs.h. */ 14032 14033int 14034main () 14035{ 14036#ifndef __GNUC__ 14037 choke me 14038#endif 14039 14040 ; 14041 return 0; 14042} 14043_ACEOF 14044if ac_fn_cxx_try_compile "$LINENO"; then : 14045 ac_compiler_gnu=yes 14046else 14047 ac_compiler_gnu=no 14048fi 14049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14050ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 14051 14052fi 14053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 14054$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 14055if test $ac_compiler_gnu = yes; then 14056 GXX=yes 14057else 14058 GXX= 14059fi 14060ac_test_CXXFLAGS=${CXXFLAGS+set} 14061ac_save_CXXFLAGS=$CXXFLAGS 14062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 14063$as_echo_n "checking whether $CXX accepts -g... " >&6; } 14064if ${ac_cv_prog_cxx_g+:} false; then : 14065 $as_echo_n "(cached) " >&6 14066else 14067 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 14068 ac_cxx_werror_flag=yes 14069 ac_cv_prog_cxx_g=no 14070 CXXFLAGS="-g" 14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14072/* end confdefs.h. */ 14073 14074int 14075main () 14076{ 14077 14078 ; 14079 return 0; 14080} 14081_ACEOF 14082if ac_fn_cxx_try_compile "$LINENO"; then : 14083 ac_cv_prog_cxx_g=yes 14084else 14085 CXXFLAGS="" 14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14087/* end confdefs.h. */ 14088 14089int 14090main () 14091{ 14092 14093 ; 14094 return 0; 14095} 14096_ACEOF 14097if ac_fn_cxx_try_compile "$LINENO"; then : 14098 14099else 14100 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 14101 CXXFLAGS="-g" 14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14103/* end confdefs.h. */ 14104 14105int 14106main () 14107{ 14108 14109 ; 14110 return 0; 14111} 14112_ACEOF 14113if ac_fn_cxx_try_compile "$LINENO"; then : 14114 ac_cv_prog_cxx_g=yes 14115fi 14116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14117fi 14118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14119fi 14120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 14122fi 14123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 14124$as_echo "$ac_cv_prog_cxx_g" >&6; } 14125if test "$ac_test_CXXFLAGS" = set; then 14126 CXXFLAGS=$ac_save_CXXFLAGS 14127elif test $ac_cv_prog_cxx_g = yes; then 14128 if test "$GXX" = yes; then 14129 CXXFLAGS="-g -O2" 14130 else 14131 CXXFLAGS="-g" 14132 fi 14133else 14134 if test "$GXX" = yes; then 14135 CXXFLAGS="-O2" 14136 else 14137 CXXFLAGS= 14138 fi 14139fi 14140ac_ext=c 14141ac_cpp='$CPP $CPPFLAGS' 14142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14144ac_compiler_gnu=$ac_cv_c_compiler_gnu 14145 14146depcc="$CXX" am_compiler_list= 14147 14148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 14149$as_echo_n "checking dependency style of $depcc... " >&6; } 14150if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 14151 $as_echo_n "(cached) " >&6 14152else 14153 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 14154 # We make a subdir and do the tests there. Otherwise we can end up 14155 # making bogus files that we don't know about and never remove. For 14156 # instance it was reported that on HP-UX the gcc test will end up 14157 # making a dummy file named 'D' -- because '-MD' means "put the output 14158 # in D". 14159 rm -rf conftest.dir 14160 mkdir conftest.dir 14161 # Copy depcomp to subdir because otherwise we won't find it if we're 14162 # using a relative directory. 14163 cp "$am_depcomp" conftest.dir 14164 cd conftest.dir 14165 # We will build objects and dependencies in a subdirectory because 14166 # it helps to detect inapplicable dependency modes. For instance 14167 # both Tru64's cc and ICC support -MD to output dependencies as a 14168 # side effect of compilation, but ICC will put the dependencies in 14169 # the current directory while Tru64 will put them in the object 14170 # directory. 14171 mkdir sub 14172 14173 am_cv_CXX_dependencies_compiler_type=none 14174 if test "$am_compiler_list" = ""; then 14175 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 14176 fi 14177 am__universal=false 14178 case " $depcc " in #( 14179 *\ -arch\ *\ -arch\ *) am__universal=true ;; 14180 esac 14181 14182 for depmode in $am_compiler_list; do 14183 # Setup a source with many dependencies, because some compilers 14184 # like to wrap large dependency lists on column 80 (with \), and 14185 # we should not choose a depcomp mode which is confused by this. 14186 # 14187 # We need to recreate these files for each test, as the compiler may 14188 # overwrite some of them when testing with obscure command lines. 14189 # This happens at least with the AIX C compiler. 14190 : > sub/conftest.c 14191 for i in 1 2 3 4 5 6; do 14192 echo '#include "conftst'$i'.h"' >> sub/conftest.c 14193 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 14194 # Solaris 10 /bin/sh. 14195 echo '/* dummy */' > sub/conftst$i.h 14196 done 14197 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 14198 14199 # We check with '-c' and '-o' for the sake of the "dashmstdout" 14200 # mode. It turns out that the SunPro C++ compiler does not properly 14201 # handle '-M -o', and we need to detect this. Also, some Intel 14202 # versions had trouble with output in subdirs. 14203 am__obj=sub/conftest.${OBJEXT-o} 14204 am__minus_obj="-o $am__obj" 14205 case $depmode in 14206 gcc) 14207 # This depmode causes a compiler race in universal mode. 14208 test "$am__universal" = false || continue 14209 ;; 14210 nosideeffect) 14211 # After this tag, mechanisms are not by side-effect, so they'll 14212 # only be used when explicitly requested. 14213 if test "x$enable_dependency_tracking" = xyes; then 14214 continue 14215 else 14216 break 14217 fi 14218 ;; 14219 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 14220 # This compiler won't grok '-c -o', but also, the minuso test has 14221 # not run yet. These depmodes are late enough in the game, and 14222 # so weak that their functioning should not be impacted. 14223 am__obj=conftest.${OBJEXT-o} 14224 am__minus_obj= 14225 ;; 14226 none) break ;; 14227 esac 14228 if depmode=$depmode \ 14229 source=sub/conftest.c object=$am__obj \ 14230 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 14231 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 14232 >/dev/null 2>conftest.err && 14233 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 14234 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 14235 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 14236 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 14237 # icc doesn't choke on unknown options, it will just issue warnings 14238 # or remarks (even with -Werror). So we grep stderr for any message 14239 # that says an option was ignored or not supported. 14240 # When given -MP, icc 7.0 and 7.1 complain thusly: 14241 # icc: Command line warning: ignoring option '-M'; no argument required 14242 # The diagnosis changed in icc 8.0: 14243 # icc: Command line remark: option '-MP' not supported 14244 if (grep 'ignoring option' conftest.err || 14245 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 14246 am_cv_CXX_dependencies_compiler_type=$depmode 14247 break 14248 fi 14249 fi 14250 done 14251 14252 cd .. 14253 rm -rf conftest.dir 14254else 14255 am_cv_CXX_dependencies_compiler_type=none 14256fi 14257 14258fi 14259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 14260$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 14261CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 14262 14263 if 14264 test "x$enable_dependency_tracking" != xno \ 14265 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 14266 am__fastdepCXX_TRUE= 14267 am__fastdepCXX_FALSE='#' 14268else 14269 am__fastdepCXX_TRUE='#' 14270 am__fastdepCXX_FALSE= 14271fi 14272 14273 14274 14275 14276func_stripname_cnf () 14277{ 14278 case $2 in 14279 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 14280 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 14281 esac 14282} # func_stripname_cnf 14283 14284 if test -n "$CXX" && ( test no != "$CXX" && 14285 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 14286 (test g++ != "$CXX"))); then 14287 ac_ext=cpp 14288ac_cpp='$CXXCPP $CPPFLAGS' 14289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 14293$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 14294if test -z "$CXXCPP"; then 14295 if ${ac_cv_prog_CXXCPP+:} false; then : 14296 $as_echo_n "(cached) " >&6 14297else 14298 # Double quotes because CXXCPP needs to be expanded 14299 for CXXCPP in "$CXX -E" "/lib/cpp" 14300 do 14301 ac_preproc_ok=false 14302for ac_cxx_preproc_warn_flag in '' yes 14303do 14304 # Use a header file that comes with gcc, so configuring glibc 14305 # with a fresh cross-compiler works. 14306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14307 # <limits.h> exists even on freestanding compilers. 14308 # On the NeXT, cc -E runs the code through the compiler's parser, 14309 # not just through cpp. "Syntax error" is here to catch this case. 14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14311/* end confdefs.h. */ 14312#ifdef __STDC__ 14313# include <limits.h> 14314#else 14315# include <assert.h> 14316#endif 14317 Syntax error 14318_ACEOF 14319if ac_fn_cxx_try_cpp "$LINENO"; then : 14320 14321else 14322 # Broken: fails on valid input. 14323continue 14324fi 14325rm -f conftest.err conftest.i conftest.$ac_ext 14326 14327 # OK, works on sane cases. Now check whether nonexistent headers 14328 # can be detected and how. 14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14330/* end confdefs.h. */ 14331#include <ac_nonexistent.h> 14332_ACEOF 14333if ac_fn_cxx_try_cpp "$LINENO"; then : 14334 # Broken: success on invalid input. 14335continue 14336else 14337 # Passes both tests. 14338ac_preproc_ok=: 14339break 14340fi 14341rm -f conftest.err conftest.i conftest.$ac_ext 14342 14343done 14344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14345rm -f conftest.i conftest.err conftest.$ac_ext 14346if $ac_preproc_ok; then : 14347 break 14348fi 14349 14350 done 14351 ac_cv_prog_CXXCPP=$CXXCPP 14352 14353fi 14354 CXXCPP=$ac_cv_prog_CXXCPP 14355else 14356 ac_cv_prog_CXXCPP=$CXXCPP 14357fi 14358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 14359$as_echo "$CXXCPP" >&6; } 14360ac_preproc_ok=false 14361for ac_cxx_preproc_warn_flag in '' yes 14362do 14363 # Use a header file that comes with gcc, so configuring glibc 14364 # with a fresh cross-compiler works. 14365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14366 # <limits.h> exists even on freestanding compilers. 14367 # On the NeXT, cc -E runs the code through the compiler's parser, 14368 # not just through cpp. "Syntax error" is here to catch this case. 14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14370/* end confdefs.h. */ 14371#ifdef __STDC__ 14372# include <limits.h> 14373#else 14374# include <assert.h> 14375#endif 14376 Syntax error 14377_ACEOF 14378if ac_fn_cxx_try_cpp "$LINENO"; then : 14379 14380else 14381 # Broken: fails on valid input. 14382continue 14383fi 14384rm -f conftest.err conftest.i conftest.$ac_ext 14385 14386 # OK, works on sane cases. Now check whether nonexistent headers 14387 # can be detected and how. 14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14389/* end confdefs.h. */ 14390#include <ac_nonexistent.h> 14391_ACEOF 14392if ac_fn_cxx_try_cpp "$LINENO"; then : 14393 # Broken: success on invalid input. 14394continue 14395else 14396 # Passes both tests. 14397ac_preproc_ok=: 14398break 14399fi 14400rm -f conftest.err conftest.i conftest.$ac_ext 14401 14402done 14403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14404rm -f conftest.i conftest.err conftest.$ac_ext 14405if $ac_preproc_ok; then : 14406 14407else 14408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14410as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 14411See \`config.log' for more details" "$LINENO" 5; } 14412fi 14413 14414ac_ext=c 14415ac_cpp='$CPP $CPPFLAGS' 14416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14418ac_compiler_gnu=$ac_cv_c_compiler_gnu 14419 14420else 14421 _lt_caught_CXX_error=yes 14422fi 14423 14424ac_ext=cpp 14425ac_cpp='$CXXCPP $CPPFLAGS' 14426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14429 14430archive_cmds_need_lc_CXX=no 14431allow_undefined_flag_CXX= 14432always_export_symbols_CXX=no 14433archive_expsym_cmds_CXX= 14434compiler_needs_object_CXX=no 14435export_dynamic_flag_spec_CXX= 14436hardcode_direct_CXX=no 14437hardcode_direct_absolute_CXX=no 14438hardcode_libdir_flag_spec_CXX= 14439hardcode_libdir_separator_CXX= 14440hardcode_minus_L_CXX=no 14441hardcode_shlibpath_var_CXX=unsupported 14442hardcode_automatic_CXX=no 14443inherit_rpath_CXX=no 14444module_cmds_CXX= 14445module_expsym_cmds_CXX= 14446link_all_deplibs_CXX=unknown 14447old_archive_cmds_CXX=$old_archive_cmds 14448reload_flag_CXX=$reload_flag 14449reload_cmds_CXX=$reload_cmds 14450no_undefined_flag_CXX= 14451whole_archive_flag_spec_CXX= 14452enable_shared_with_static_runtimes_CXX=no 14453 14454# Source file extension for C++ test sources. 14455ac_ext=cpp 14456 14457# Object file extension for compiled C++ test sources. 14458objext=o 14459objext_CXX=$objext 14460 14461# No sense in running all these tests if we already determined that 14462# the CXX compiler isn't working. Some variables (like enable_shared) 14463# are currently assumed to apply to all compilers on this platform, 14464# and will be corrupted by setting them based on a non-working compiler. 14465if test yes != "$_lt_caught_CXX_error"; then 14466 # Code to be used in simple compile tests 14467 lt_simple_compile_test_code="int some_variable = 0;" 14468 14469 # Code to be used in simple link tests 14470 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14471 14472 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14473 14474 14475 14476 14477 14478 14479# If no C compiler was specified, use CC. 14480LTCC=${LTCC-"$CC"} 14481 14482# If no C compiler flags were specified, use CFLAGS. 14483LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14484 14485# Allow CC to be a program name with arguments. 14486compiler=$CC 14487 14488 14489 # save warnings/boilerplate of simple test code 14490 ac_outfile=conftest.$ac_objext 14491echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14492eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14493_lt_compiler_boilerplate=`cat conftest.err` 14494$RM conftest* 14495 14496 ac_outfile=conftest.$ac_objext 14497echo "$lt_simple_link_test_code" >conftest.$ac_ext 14498eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14499_lt_linker_boilerplate=`cat conftest.err` 14500$RM -r conftest* 14501 14502 14503 # Allow CC to be a program name with arguments. 14504 lt_save_CC=$CC 14505 lt_save_CFLAGS=$CFLAGS 14506 lt_save_LD=$LD 14507 lt_save_GCC=$GCC 14508 GCC=$GXX 14509 lt_save_with_gnu_ld=$with_gnu_ld 14510 lt_save_path_LD=$lt_cv_path_LD 14511 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14512 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14513 else 14514 $as_unset lt_cv_prog_gnu_ld 14515 fi 14516 if test -n "${lt_cv_path_LDCXX+set}"; then 14517 lt_cv_path_LD=$lt_cv_path_LDCXX 14518 else 14519 $as_unset lt_cv_path_LD 14520 fi 14521 test -z "${LDCXX+set}" || LD=$LDCXX 14522 CC=${CXX-"c++"} 14523 CFLAGS=$CXXFLAGS 14524 compiler=$CC 14525 compiler_CXX=$CC 14526 func_cc_basename $compiler 14527cc_basename=$func_cc_basename_result 14528 14529 14530 if test -n "$compiler"; then 14531 # We don't want -fno-exception when compiling C++ code, so set the 14532 # no_builtin_flag separately 14533 if test yes = "$GXX"; then 14534 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14535 else 14536 lt_prog_compiler_no_builtin_flag_CXX= 14537 fi 14538 14539 if test yes = "$GXX"; then 14540 # Set up default GNU C++ configuration 14541 14542 14543 14544# Check whether --with-gnu-ld was given. 14545if test "${with_gnu_ld+set}" = set; then : 14546 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14547else 14548 with_gnu_ld=no 14549fi 14550 14551ac_prog=ld 14552if test yes = "$GCC"; then 14553 # Check if gcc -print-prog-name=ld gives a path. 14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14555$as_echo_n "checking for ld used by $CC... " >&6; } 14556 case $host in 14557 *-*-mingw*) 14558 # gcc leaves a trailing carriage return, which upsets mingw 14559 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14560 *) 14561 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14562 esac 14563 case $ac_prog in 14564 # Accept absolute paths. 14565 [\\/]* | ?:[\\/]*) 14566 re_direlt='/[^/][^/]*/\.\./' 14567 # Canonicalize the pathname of ld 14568 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14569 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14570 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14571 done 14572 test -z "$LD" && LD=$ac_prog 14573 ;; 14574 "") 14575 # If it fails, then pretend we aren't using GCC. 14576 ac_prog=ld 14577 ;; 14578 *) 14579 # If it is relative, then search for the first ld in PATH. 14580 with_gnu_ld=unknown 14581 ;; 14582 esac 14583elif test yes = "$with_gnu_ld"; then 14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14585$as_echo_n "checking for GNU ld... " >&6; } 14586else 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14588$as_echo_n "checking for non-GNU ld... " >&6; } 14589fi 14590if ${lt_cv_path_LD+:} false; then : 14591 $as_echo_n "(cached) " >&6 14592else 14593 if test -z "$LD"; then 14594 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14595 for ac_dir in $PATH; do 14596 IFS=$lt_save_ifs 14597 test -z "$ac_dir" && ac_dir=. 14598 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14599 lt_cv_path_LD=$ac_dir/$ac_prog 14600 # Check to see if the program is GNU ld. I'd rather use --version, 14601 # but apparently some variants of GNU ld only accept -v. 14602 # Break only if it was the GNU/non-GNU ld that we prefer. 14603 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14604 *GNU* | *'with BFD'*) 14605 test no != "$with_gnu_ld" && break 14606 ;; 14607 *) 14608 test yes != "$with_gnu_ld" && break 14609 ;; 14610 esac 14611 fi 14612 done 14613 IFS=$lt_save_ifs 14614else 14615 lt_cv_path_LD=$LD # Let the user override the test with a path. 14616fi 14617fi 14618 14619LD=$lt_cv_path_LD 14620if test -n "$LD"; then 14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14622$as_echo "$LD" >&6; } 14623else 14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14625$as_echo "no" >&6; } 14626fi 14627test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14629$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14630if ${lt_cv_prog_gnu_ld+:} false; then : 14631 $as_echo_n "(cached) " >&6 14632else 14633 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14634case `$LD -v 2>&1 </dev/null` in 14635*GNU* | *'with BFD'*) 14636 lt_cv_prog_gnu_ld=yes 14637 ;; 14638*) 14639 lt_cv_prog_gnu_ld=no 14640 ;; 14641esac 14642fi 14643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14644$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14645with_gnu_ld=$lt_cv_prog_gnu_ld 14646 14647 14648 14649 14650 14651 14652 14653 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14654 # archiving commands below assume that GNU ld is being used. 14655 if test yes = "$with_gnu_ld"; then 14656 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14657 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' 14658 14659 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14660 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14661 14662 # If archive_cmds runs LD, not CC, wlarc should be empty 14663 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14664 # investigate it a little bit more. (MM) 14665 wlarc='$wl' 14666 14667 # ancient GNU ld didn't support --whole-archive et. al. 14668 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14669 $GREP 'no-whole-archive' > /dev/null; then 14670 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14671 else 14672 whole_archive_flag_spec_CXX= 14673 fi 14674 else 14675 with_gnu_ld=no 14676 wlarc= 14677 14678 # A generic and very simple default shared library creation 14679 # command for GNU C++ for the case where it uses the native 14680 # linker, instead of GNU ld. If possible, this setting should 14681 # overridden to take advantage of the native linker features on 14682 # the platform it is being used on. 14683 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14684 fi 14685 14686 # Commands to make compiler produce verbose output that lists 14687 # what "hidden" libraries, object files and flags are used when 14688 # linking a shared library. 14689 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14690 14691 else 14692 GXX=no 14693 with_gnu_ld=no 14694 wlarc= 14695 fi 14696 14697 # PORTME: fill in a description of your system's C++ link characteristics 14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14699$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14700 ld_shlibs_CXX=yes 14701 case $host_os in 14702 aix3*) 14703 # FIXME: insert proper C++ library support 14704 ld_shlibs_CXX=no 14705 ;; 14706 aix[4-9]*) 14707 if test ia64 = "$host_cpu"; then 14708 # On IA64, the linker does run time linking by default, so we don't 14709 # have to do anything special. 14710 aix_use_runtimelinking=no 14711 exp_sym_flag='-Bexport' 14712 no_entry_flag= 14713 else 14714 aix_use_runtimelinking=no 14715 14716 # Test if we are trying to use run time linking or normal 14717 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14718 # have runtime linking enabled, and use it for executables. 14719 # For shared libraries, we enable/disable runtime linking 14720 # depending on the kind of the shared library created - 14721 # when "with_aix_soname,aix_use_runtimelinking" is: 14722 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14723 # "aix,yes" lib.so shared, rtl:yes, for executables 14724 # lib.a static archive 14725 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14726 # lib.a(lib.so.V) shared, rtl:no, for executables 14727 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14728 # lib.a(lib.so.V) shared, rtl:no 14729 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14730 # lib.a static archive 14731 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14732 for ld_flag in $LDFLAGS; do 14733 case $ld_flag in 14734 *-brtl*) 14735 aix_use_runtimelinking=yes 14736 break 14737 ;; 14738 esac 14739 done 14740 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14741 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14742 # so we don't have lib.a shared libs to link our executables. 14743 # We have to force runtime linking in this case. 14744 aix_use_runtimelinking=yes 14745 LDFLAGS="$LDFLAGS -Wl,-brtl" 14746 fi 14747 ;; 14748 esac 14749 14750 exp_sym_flag='-bexport' 14751 no_entry_flag='-bnoentry' 14752 fi 14753 14754 # When large executables or shared objects are built, AIX ld can 14755 # have problems creating the table of contents. If linking a library 14756 # or program results in "error TOC overflow" add -mminimal-toc to 14757 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14758 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14759 14760 archive_cmds_CXX='' 14761 hardcode_direct_CXX=yes 14762 hardcode_direct_absolute_CXX=yes 14763 hardcode_libdir_separator_CXX=':' 14764 link_all_deplibs_CXX=yes 14765 file_list_spec_CXX='$wl-f,' 14766 case $with_aix_soname,$aix_use_runtimelinking in 14767 aix,*) ;; # no import file 14768 svr4,* | *,yes) # use import file 14769 # The Import File defines what to hardcode. 14770 hardcode_direct_CXX=no 14771 hardcode_direct_absolute_CXX=no 14772 ;; 14773 esac 14774 14775 if test yes = "$GXX"; then 14776 case $host_os in aix4.[012]|aix4.[012].*) 14777 # We only want to do this on AIX 4.2 and lower, the check 14778 # below for broken collect2 doesn't work under 4.3+ 14779 collect2name=`$CC -print-prog-name=collect2` 14780 if test -f "$collect2name" && 14781 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14782 then 14783 # We have reworked collect2 14784 : 14785 else 14786 # We have old collect2 14787 hardcode_direct_CXX=unsupported 14788 # It fails to find uninstalled libraries when the uninstalled 14789 # path is not listed in the libpath. Setting hardcode_minus_L 14790 # to unsupported forces relinking 14791 hardcode_minus_L_CXX=yes 14792 hardcode_libdir_flag_spec_CXX='-L$libdir' 14793 hardcode_libdir_separator_CXX= 14794 fi 14795 esac 14796 shared_flag='-shared' 14797 if test yes = "$aix_use_runtimelinking"; then 14798 shared_flag=$shared_flag' $wl-G' 14799 fi 14800 # Need to ensure runtime linking is disabled for the traditional 14801 # shared library, or the linker may eventually find shared libraries 14802 # /with/ Import File - we do not want to mix them. 14803 shared_flag_aix='-shared' 14804 shared_flag_svr4='-shared $wl-G' 14805 else 14806 # not using gcc 14807 if test ia64 = "$host_cpu"; then 14808 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14809 # chokes on -Wl,-G. The following line is correct: 14810 shared_flag='-G' 14811 else 14812 if test yes = "$aix_use_runtimelinking"; then 14813 shared_flag='$wl-G' 14814 else 14815 shared_flag='$wl-bM:SRE' 14816 fi 14817 shared_flag_aix='$wl-bM:SRE' 14818 shared_flag_svr4='$wl-G' 14819 fi 14820 fi 14821 14822 export_dynamic_flag_spec_CXX='$wl-bexpall' 14823 # It seems that -bexpall does not export symbols beginning with 14824 # underscore (_), so it is better to generate a list of symbols to 14825 # export. 14826 always_export_symbols_CXX=yes 14827 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14828 # Warning - without using the other runtime loading flags (-brtl), 14829 # -berok will link without error, but may produce a broken library. 14830 # The "-G" linker flag allows undefined symbols. 14831 no_undefined_flag_CXX='-bernotok' 14832 # Determine the default libpath from the value encoded in an empty 14833 # executable. 14834 if test set = "${lt_cv_aix_libpath+set}"; then 14835 aix_libpath=$lt_cv_aix_libpath 14836else 14837 if ${lt_cv_aix_libpath__CXX+:} false; then : 14838 $as_echo_n "(cached) " >&6 14839else 14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14841/* end confdefs.h. */ 14842 14843int 14844main () 14845{ 14846 14847 ; 14848 return 0; 14849} 14850_ACEOF 14851if ac_fn_cxx_try_link "$LINENO"; then : 14852 14853 lt_aix_libpath_sed=' 14854 /Import File Strings/,/^$/ { 14855 /^0/ { 14856 s/^0 *\([^ ]*\) *$/\1/ 14857 p 14858 } 14859 }' 14860 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14861 # Check for a 64-bit object if we didn't find anything. 14862 if test -z "$lt_cv_aix_libpath__CXX"; then 14863 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14864 fi 14865fi 14866rm -f core conftest.err conftest.$ac_objext \ 14867 conftest$ac_exeext conftest.$ac_ext 14868 if test -z "$lt_cv_aix_libpath__CXX"; then 14869 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14870 fi 14871 14872fi 14873 14874 aix_libpath=$lt_cv_aix_libpath__CXX 14875fi 14876 14877 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14878 14879 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 14880 else 14881 if test ia64 = "$host_cpu"; then 14882 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14883 allow_undefined_flag_CXX="-z nodefs" 14884 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" 14885 else 14886 # Determine the default libpath from the value encoded in an 14887 # empty executable. 14888 if test set = "${lt_cv_aix_libpath+set}"; then 14889 aix_libpath=$lt_cv_aix_libpath 14890else 14891 if ${lt_cv_aix_libpath__CXX+:} false; then : 14892 $as_echo_n "(cached) " >&6 14893else 14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14895/* end confdefs.h. */ 14896 14897int 14898main () 14899{ 14900 14901 ; 14902 return 0; 14903} 14904_ACEOF 14905if ac_fn_cxx_try_link "$LINENO"; then : 14906 14907 lt_aix_libpath_sed=' 14908 /Import File Strings/,/^$/ { 14909 /^0/ { 14910 s/^0 *\([^ ]*\) *$/\1/ 14911 p 14912 } 14913 }' 14914 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14915 # Check for a 64-bit object if we didn't find anything. 14916 if test -z "$lt_cv_aix_libpath__CXX"; then 14917 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14918 fi 14919fi 14920rm -f core conftest.err conftest.$ac_objext \ 14921 conftest$ac_exeext conftest.$ac_ext 14922 if test -z "$lt_cv_aix_libpath__CXX"; then 14923 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14924 fi 14925 14926fi 14927 14928 aix_libpath=$lt_cv_aix_libpath__CXX 14929fi 14930 14931 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14932 # Warning - without using the other run time loading flags, 14933 # -berok will link without error, but may produce a broken library. 14934 no_undefined_flag_CXX=' $wl-bernotok' 14935 allow_undefined_flag_CXX=' $wl-berok' 14936 if test yes = "$with_gnu_ld"; then 14937 # We only use this code for GNU lds that support --whole-archive. 14938 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14939 else 14940 # Exported symbols can be pulled into shared objects from archives 14941 whole_archive_flag_spec_CXX='$convenience' 14942 fi 14943 archive_cmds_need_lc_CXX=yes 14944 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14945 # -brtl affects multiple linker settings, -berok does not and is overridden later 14946 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14947 if test svr4 != "$with_aix_soname"; then 14948 # This is similar to how AIX traditionally builds its shared 14949 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14950 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' 14951 fi 14952 if test aix != "$with_aix_soname"; then 14953 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' 14954 else 14955 # used by -dlpreopen to get the symbols 14956 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14957 fi 14958 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14959 fi 14960 fi 14961 ;; 14962 14963 beos*) 14964 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14965 allow_undefined_flag_CXX=unsupported 14966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14967 # support --undefined. This deserves some investigation. FIXME 14968 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14969 else 14970 ld_shlibs_CXX=no 14971 fi 14972 ;; 14973 14974 chorus*) 14975 case $cc_basename in 14976 *) 14977 # FIXME: insert proper C++ library support 14978 ld_shlibs_CXX=no 14979 ;; 14980 esac 14981 ;; 14982 14983 cygwin* | mingw* | pw32* | cegcc*) 14984 case $GXX,$cc_basename in 14985 ,cl* | no,cl*) 14986 # Native MSVC 14987 # hardcode_libdir_flag_spec is actually meaningless, as there is 14988 # no search path for DLLs. 14989 hardcode_libdir_flag_spec_CXX=' ' 14990 allow_undefined_flag_CXX=unsupported 14991 always_export_symbols_CXX=yes 14992 file_list_spec_CXX='@' 14993 # Tell ltmain to make .lib files, not .a files. 14994 libext=lib 14995 # Tell ltmain to make .dll files, not .so files. 14996 shrext_cmds=.dll 14997 # FIXME: Setting linknames here is a bad hack. 14998 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14999 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15000 cp "$export_symbols" "$output_objdir/$soname.def"; 15001 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 15002 else 15003 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 15004 fi~ 15005 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15006 linknames=' 15007 # The linker will not automatically build a static lib if we build a DLL. 15008 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 15009 enable_shared_with_static_runtimes_CXX=yes 15010 # Don't use ranlib 15011 old_postinstall_cmds_CXX='chmod 644 $oldlib' 15012 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 15013 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15014 case $lt_outputfile in 15015 *.exe|*.EXE) ;; 15016 *) 15017 lt_outputfile=$lt_outputfile.exe 15018 lt_tool_outputfile=$lt_tool_outputfile.exe 15019 ;; 15020 esac~ 15021 func_to_tool_file "$lt_outputfile"~ 15022 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 15023 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15024 $RM "$lt_outputfile.manifest"; 15025 fi' 15026 ;; 15027 *) 15028 # g++ 15029 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 15030 # as there is no search path for DLLs. 15031 hardcode_libdir_flag_spec_CXX='-L$libdir' 15032 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 15033 allow_undefined_flag_CXX=unsupported 15034 always_export_symbols_CXX=no 15035 enable_shared_with_static_runtimes_CXX=yes 15036 15037 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15038 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' 15039 # If the export-symbols file already is a .def file, use it as 15040 # is; otherwise, prepend EXPORTS... 15041 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15042 cp $export_symbols $output_objdir/$soname.def; 15043 else 15044 echo EXPORTS > $output_objdir/$soname.def; 15045 cat $export_symbols >> $output_objdir/$soname.def; 15046 fi~ 15047 $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' 15048 else 15049 ld_shlibs_CXX=no 15050 fi 15051 ;; 15052 esac 15053 ;; 15054 darwin* | rhapsody*) 15055 15056 15057 archive_cmds_need_lc_CXX=no 15058 hardcode_direct_CXX=no 15059 hardcode_automatic_CXX=yes 15060 hardcode_shlibpath_var_CXX=unsupported 15061 if test yes = "$lt_cv_ld_force_load"; then 15062 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\"`' 15063 15064 else 15065 whole_archive_flag_spec_CXX='' 15066 fi 15067 link_all_deplibs_CXX=yes 15068 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 15069 case $cc_basename in 15070 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 15071 *) _lt_dar_can_shared=$GCC ;; 15072 esac 15073 if test yes = "$_lt_dar_can_shared"; then 15074 output_verbose_link_cmd=func_echo_all 15075 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" 15076 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 15077 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" 15078 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" 15079 if test yes != "$lt_cv_apple_cc_single_mod"; then 15080 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" 15081 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" 15082 fi 15083 15084 else 15085 ld_shlibs_CXX=no 15086 fi 15087 15088 ;; 15089 15090 os2*) 15091 hardcode_libdir_flag_spec_CXX='-L$libdir' 15092 hardcode_minus_L_CXX=yes 15093 allow_undefined_flag_CXX=unsupported 15094 shrext_cmds=.dll 15095 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15096 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15097 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15098 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15099 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15100 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15101 emximp -o $lib $output_objdir/$libname.def' 15102 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15103 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15104 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15105 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15106 prefix_cmds="$SED"~ 15107 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15108 prefix_cmds="$prefix_cmds -e 1d"; 15109 fi~ 15110 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15111 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15112 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15113 emximp -o $lib $output_objdir/$libname.def' 15114 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15115 enable_shared_with_static_runtimes_CXX=yes 15116 ;; 15117 15118 dgux*) 15119 case $cc_basename in 15120 ec++*) 15121 # FIXME: insert proper C++ library support 15122 ld_shlibs_CXX=no 15123 ;; 15124 ghcx*) 15125 # Green Hills C++ Compiler 15126 # FIXME: insert proper C++ library support 15127 ld_shlibs_CXX=no 15128 ;; 15129 *) 15130 # FIXME: insert proper C++ library support 15131 ld_shlibs_CXX=no 15132 ;; 15133 esac 15134 ;; 15135 15136 freebsd2.*) 15137 # C++ shared libraries reported to be fairly broken before 15138 # switch to ELF 15139 ld_shlibs_CXX=no 15140 ;; 15141 15142 freebsd-elf*) 15143 archive_cmds_need_lc_CXX=no 15144 ;; 15145 15146 freebsd* | dragonfly*) 15147 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 15148 # conventions 15149 ld_shlibs_CXX=yes 15150 ;; 15151 15152 haiku*) 15153 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15154 link_all_deplibs_CXX=yes 15155 ;; 15156 15157 hpux9*) 15158 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 15159 hardcode_libdir_separator_CXX=: 15160 export_dynamic_flag_spec_CXX='$wl-E' 15161 hardcode_direct_CXX=yes 15162 hardcode_minus_L_CXX=yes # Not in the search PATH, 15163 # but as the default 15164 # location of the library. 15165 15166 case $cc_basename in 15167 CC*) 15168 # FIXME: insert proper C++ library support 15169 ld_shlibs_CXX=no 15170 ;; 15171 aCC*) 15172 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' 15173 # Commands to make compiler produce verbose output that lists 15174 # what "hidden" libraries, object files and flags are used when 15175 # linking a shared library. 15176 # 15177 # There doesn't appear to be a way to prevent this compiler from 15178 # explicitly linking system object files so we need to strip them 15179 # from the output so that they don't get included in the library 15180 # dependencies. 15181 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"' 15182 ;; 15183 *) 15184 if test yes = "$GXX"; then 15185 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' 15186 else 15187 # FIXME: insert proper C++ library support 15188 ld_shlibs_CXX=no 15189 fi 15190 ;; 15191 esac 15192 ;; 15193 15194 hpux10*|hpux11*) 15195 if test no = "$with_gnu_ld"; then 15196 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 15197 hardcode_libdir_separator_CXX=: 15198 15199 case $host_cpu in 15200 hppa*64*|ia64*) 15201 ;; 15202 *) 15203 export_dynamic_flag_spec_CXX='$wl-E' 15204 ;; 15205 esac 15206 fi 15207 case $host_cpu in 15208 hppa*64*|ia64*) 15209 hardcode_direct_CXX=no 15210 hardcode_shlibpath_var_CXX=no 15211 ;; 15212 *) 15213 hardcode_direct_CXX=yes 15214 hardcode_direct_absolute_CXX=yes 15215 hardcode_minus_L_CXX=yes # Not in the search PATH, 15216 # but as the default 15217 # location of the library. 15218 ;; 15219 esac 15220 15221 case $cc_basename in 15222 CC*) 15223 # FIXME: insert proper C++ library support 15224 ld_shlibs_CXX=no 15225 ;; 15226 aCC*) 15227 case $host_cpu in 15228 hppa*64*) 15229 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15230 ;; 15231 ia64*) 15232 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15233 ;; 15234 *) 15235 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15236 ;; 15237 esac 15238 # Commands to make compiler produce verbose output that lists 15239 # what "hidden" libraries, object files and flags are used when 15240 # linking a shared library. 15241 # 15242 # There doesn't appear to be a way to prevent this compiler from 15243 # explicitly linking system object files so we need to strip them 15244 # from the output so that they don't get included in the library 15245 # dependencies. 15246 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"' 15247 ;; 15248 *) 15249 if test yes = "$GXX"; then 15250 if test no = "$with_gnu_ld"; then 15251 case $host_cpu in 15252 hppa*64*) 15253 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15254 ;; 15255 ia64*) 15256 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15257 ;; 15258 *) 15259 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' 15260 ;; 15261 esac 15262 fi 15263 else 15264 # FIXME: insert proper C++ library support 15265 ld_shlibs_CXX=no 15266 fi 15267 ;; 15268 esac 15269 ;; 15270 15271 interix[3-9]*) 15272 hardcode_direct_CXX=no 15273 hardcode_shlibpath_var_CXX=no 15274 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15275 export_dynamic_flag_spec_CXX='$wl-E' 15276 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15277 # Instead, shared libraries are loaded at an image base (0x10000000 by 15278 # default) and relocated if they conflict, which is a slow very memory 15279 # consuming and fragmenting process. To avoid this, we pick a random, 15280 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15281 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15282 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' 15283 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' 15284 ;; 15285 irix5* | irix6*) 15286 case $cc_basename in 15287 CC*) 15288 # SGI C++ 15289 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' 15290 15291 # Archives containing C++ object files must be created using 15292 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 15293 # necessary to make sure instantiated templates are included 15294 # in the archive. 15295 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 15296 ;; 15297 *) 15298 if test yes = "$GXX"; then 15299 if test no = "$with_gnu_ld"; then 15300 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' 15301 else 15302 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' 15303 fi 15304 fi 15305 link_all_deplibs_CXX=yes 15306 ;; 15307 esac 15308 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15309 hardcode_libdir_separator_CXX=: 15310 inherit_rpath_CXX=yes 15311 ;; 15312 15313 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15314 case $cc_basename in 15315 KCC*) 15316 # Kuck and Associates, Inc. (KAI) C++ Compiler 15317 15318 # KCC will only create a shared library if the output file 15319 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15320 # to its proper name (with version) after linking. 15321 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' 15322 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' 15323 # Commands to make compiler produce verbose output that lists 15324 # what "hidden" libraries, object files and flags are used when 15325 # linking a shared library. 15326 # 15327 # There doesn't appear to be a way to prevent this compiler from 15328 # explicitly linking system object files so we need to strip them 15329 # from the output so that they don't get included in the library 15330 # dependencies. 15331 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"' 15332 15333 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15334 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15335 15336 # Archives containing C++ object files must be created using 15337 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 15338 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 15339 ;; 15340 icpc* | ecpc* ) 15341 # Intel C++ 15342 with_gnu_ld=yes 15343 # version 8.0 and above of icpc choke on multiply defined symbols 15344 # if we add $predep_objects and $postdep_objects, however 7.1 and 15345 # earlier do not add the objects themselves. 15346 case `$CC -V 2>&1` in 15347 *"Version 7."*) 15348 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15349 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' 15350 ;; 15351 *) # Version 8.0 or newer 15352 tmp_idyn= 15353 case $host_cpu in 15354 ia64*) tmp_idyn=' -i_dynamic';; 15355 esac 15356 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15357 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' 15358 ;; 15359 esac 15360 archive_cmds_need_lc_CXX=no 15361 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15362 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15363 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15364 ;; 15365 pgCC* | pgcpp*) 15366 # Portland Group C++ compiler 15367 case `$CC -V` in 15368 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 15369 prelink_cmds_CXX='tpldir=Template.dir~ 15370 rm -rf $tpldir~ 15371 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 15372 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 15373 old_archive_cmds_CXX='tpldir=Template.dir~ 15374 rm -rf $tpldir~ 15375 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 15376 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 15377 $RANLIB $oldlib' 15378 archive_cmds_CXX='tpldir=Template.dir~ 15379 rm -rf $tpldir~ 15380 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15381 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15382 archive_expsym_cmds_CXX='tpldir=Template.dir~ 15383 rm -rf $tpldir~ 15384 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15385 $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' 15386 ;; 15387 *) # Version 6 and above use weak symbols 15388 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15389 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' 15390 ;; 15391 esac 15392 15393 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 15394 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15395 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' 15396 ;; 15397 cxx*) 15398 # Compaq C++ 15399 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15400 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' 15401 15402 runpath_var=LD_RUN_PATH 15403 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15404 hardcode_libdir_separator_CXX=: 15405 15406 # Commands to make compiler produce verbose output that lists 15407 # what "hidden" libraries, object files and flags are used when 15408 # linking a shared library. 15409 # 15410 # There doesn't appear to be a way to prevent this compiler from 15411 # explicitly linking system object files so we need to strip them 15412 # from the output so that they don't get included in the library 15413 # dependencies. 15414 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' 15415 ;; 15416 xl* | mpixl* | bgxl*) 15417 # IBM XL 8.0 on PPC, with GNU ld 15418 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15419 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15420 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15421 if test yes = "$supports_anon_versioning"; then 15422 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 15423 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15424 echo "local: *; };" >> $output_objdir/$libname.ver~ 15425 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15426 fi 15427 ;; 15428 *) 15429 case `$CC -V 2>&1 | sed 5q` in 15430 *Sun\ C*) 15431 # Sun C++ 5.9 15432 no_undefined_flag_CXX=' -zdefs' 15433 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15434 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' 15435 hardcode_libdir_flag_spec_CXX='-R$libdir' 15436 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' 15437 compiler_needs_object_CXX=yes 15438 15439 # Not sure whether something based on 15440 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 15441 # would be better. 15442 output_verbose_link_cmd='func_echo_all' 15443 15444 # Archives containing C++ object files must be created using 15445 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15446 # necessary to make sure instantiated templates are included 15447 # in the archive. 15448 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15449 ;; 15450 esac 15451 ;; 15452 esac 15453 ;; 15454 15455 lynxos*) 15456 # FIXME: insert proper C++ library support 15457 ld_shlibs_CXX=no 15458 ;; 15459 15460 m88k*) 15461 # FIXME: insert proper C++ library support 15462 ld_shlibs_CXX=no 15463 ;; 15464 15465 mvs*) 15466 case $cc_basename in 15467 cxx*) 15468 # FIXME: insert proper C++ library support 15469 ld_shlibs_CXX=no 15470 ;; 15471 *) 15472 # FIXME: insert proper C++ library support 15473 ld_shlibs_CXX=no 15474 ;; 15475 esac 15476 ;; 15477 15478 netbsd*) 15479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15480 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15481 wlarc= 15482 hardcode_libdir_flag_spec_CXX='-R$libdir' 15483 hardcode_direct_CXX=yes 15484 hardcode_shlibpath_var_CXX=no 15485 fi 15486 # Workaround some broken pre-1.5 toolchains 15487 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15488 ;; 15489 15490 *nto* | *qnx*) 15491 ld_shlibs_CXX=yes 15492 ;; 15493 15494 openbsd* | bitrig*) 15495 if test -f /usr/libexec/ld.so; then 15496 hardcode_direct_CXX=yes 15497 hardcode_shlibpath_var_CXX=no 15498 hardcode_direct_absolute_CXX=yes 15499 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15500 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 15502 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 15503 export_dynamic_flag_spec_CXX='$wl-E' 15504 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15505 fi 15506 output_verbose_link_cmd=func_echo_all 15507 else 15508 ld_shlibs_CXX=no 15509 fi 15510 ;; 15511 15512 osf3* | osf4* | osf5*) 15513 case $cc_basename in 15514 KCC*) 15515 # Kuck and Associates, Inc. (KAI) C++ Compiler 15516 15517 # KCC will only create a shared library if the output file 15518 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15519 # to its proper name (with version) after linking. 15520 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' 15521 15522 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15523 hardcode_libdir_separator_CXX=: 15524 15525 # Archives containing C++ object files must be created using 15526 # the KAI C++ compiler. 15527 case $host in 15528 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15529 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15530 esac 15531 ;; 15532 RCC*) 15533 # Rational C++ 2.4.1 15534 # FIXME: insert proper C++ library support 15535 ld_shlibs_CXX=no 15536 ;; 15537 cxx*) 15538 case $host in 15539 osf3*) 15540 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15541 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' 15542 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15543 ;; 15544 *) 15545 allow_undefined_flag_CXX=' -expect_unresolved \*' 15546 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' 15547 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15548 echo "-hidden">> $lib.exp~ 15549 $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~ 15550 $RM $lib.exp' 15551 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15552 ;; 15553 esac 15554 15555 hardcode_libdir_separator_CXX=: 15556 15557 # Commands to make compiler produce verbose output that lists 15558 # what "hidden" libraries, object files and flags are used when 15559 # linking a shared library. 15560 # 15561 # There doesn't appear to be a way to prevent this compiler from 15562 # explicitly linking system object files so we need to strip them 15563 # from the output so that they don't get included in the library 15564 # dependencies. 15565 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"' 15566 ;; 15567 *) 15568 if test yes,no = "$GXX,$with_gnu_ld"; then 15569 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15570 case $host in 15571 osf3*) 15572 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' 15573 ;; 15574 *) 15575 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' 15576 ;; 15577 esac 15578 15579 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15580 hardcode_libdir_separator_CXX=: 15581 15582 # Commands to make compiler produce verbose output that lists 15583 # what "hidden" libraries, object files and flags are used when 15584 # linking a shared library. 15585 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15586 15587 else 15588 # FIXME: insert proper C++ library support 15589 ld_shlibs_CXX=no 15590 fi 15591 ;; 15592 esac 15593 ;; 15594 15595 psos*) 15596 # FIXME: insert proper C++ library support 15597 ld_shlibs_CXX=no 15598 ;; 15599 15600 sunos4*) 15601 case $cc_basename in 15602 CC*) 15603 # Sun C++ 4.x 15604 # FIXME: insert proper C++ library support 15605 ld_shlibs_CXX=no 15606 ;; 15607 lcc*) 15608 # Lucid 15609 # FIXME: insert proper C++ library support 15610 ld_shlibs_CXX=no 15611 ;; 15612 *) 15613 # FIXME: insert proper C++ library support 15614 ld_shlibs_CXX=no 15615 ;; 15616 esac 15617 ;; 15618 15619 solaris*) 15620 case $cc_basename in 15621 CC* | sunCC*) 15622 # Sun C++ 4.2, 5.x and Centerline C++ 15623 archive_cmds_need_lc_CXX=yes 15624 no_undefined_flag_CXX=' -zdefs' 15625 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15626 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15627 $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' 15628 15629 hardcode_libdir_flag_spec_CXX='-R$libdir' 15630 hardcode_shlibpath_var_CXX=no 15631 case $host_os in 15632 solaris2.[0-5] | solaris2.[0-5].*) ;; 15633 *) 15634 # The compiler driver will combine and reorder linker options, 15635 # but understands '-z linker_flag'. 15636 # Supported since Solaris 2.6 (maybe 2.5.1?) 15637 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15638 ;; 15639 esac 15640 link_all_deplibs_CXX=yes 15641 15642 output_verbose_link_cmd='func_echo_all' 15643 15644 # Archives containing C++ object files must be created using 15645 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15646 # necessary to make sure instantiated templates are included 15647 # in the archive. 15648 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15649 ;; 15650 gcx*) 15651 # Green Hills C++ Compiler 15652 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15653 15654 # The C++ compiler must be used to create the archive. 15655 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15656 ;; 15657 *) 15658 # GNU C++ compiler with Solaris linker 15659 if test yes,no = "$GXX,$with_gnu_ld"; then 15660 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15661 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15662 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15663 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15664 $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' 15665 15666 # Commands to make compiler produce verbose output that lists 15667 # what "hidden" libraries, object files and flags are used when 15668 # linking a shared library. 15669 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15670 else 15671 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15672 # platform. 15673 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15674 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15675 $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' 15676 15677 # Commands to make compiler produce verbose output that lists 15678 # what "hidden" libraries, object files and flags are used when 15679 # linking a shared library. 15680 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15681 fi 15682 15683 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15684 case $host_os in 15685 solaris2.[0-5] | solaris2.[0-5].*) ;; 15686 *) 15687 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15688 ;; 15689 esac 15690 fi 15691 ;; 15692 esac 15693 ;; 15694 15695 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15696 no_undefined_flag_CXX='$wl-z,text' 15697 archive_cmds_need_lc_CXX=no 15698 hardcode_shlibpath_var_CXX=no 15699 runpath_var='LD_RUN_PATH' 15700 15701 case $cc_basename in 15702 CC*) 15703 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15704 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15705 ;; 15706 *) 15707 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15708 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15709 ;; 15710 esac 15711 ;; 15712 15713 sysv5* | sco3.2v5* | sco5v6*) 15714 # Note: We CANNOT use -z defs as we might desire, because we do not 15715 # link with -lc, and that would cause any symbols used from libc to 15716 # always be unresolved, which means just about no library would 15717 # ever link correctly. If we're not using GNU ld we use -z text 15718 # though, which does catch some bad symbols but isn't as heavy-handed 15719 # as -z defs. 15720 no_undefined_flag_CXX='$wl-z,text' 15721 allow_undefined_flag_CXX='$wl-z,nodefs' 15722 archive_cmds_need_lc_CXX=no 15723 hardcode_shlibpath_var_CXX=no 15724 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15725 hardcode_libdir_separator_CXX=':' 15726 link_all_deplibs_CXX=yes 15727 export_dynamic_flag_spec_CXX='$wl-Bexport' 15728 runpath_var='LD_RUN_PATH' 15729 15730 case $cc_basename in 15731 CC*) 15732 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15733 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15734 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15735 '"$old_archive_cmds_CXX" 15736 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15737 '"$reload_cmds_CXX" 15738 ;; 15739 *) 15740 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15741 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15742 ;; 15743 esac 15744 ;; 15745 15746 tandem*) 15747 case $cc_basename in 15748 NCC*) 15749 # NonStop-UX NCC 3.20 15750 # FIXME: insert proper C++ library support 15751 ld_shlibs_CXX=no 15752 ;; 15753 *) 15754 # FIXME: insert proper C++ library support 15755 ld_shlibs_CXX=no 15756 ;; 15757 esac 15758 ;; 15759 15760 vxworks*) 15761 # FIXME: insert proper C++ library support 15762 ld_shlibs_CXX=no 15763 ;; 15764 15765 *) 15766 # FIXME: insert proper C++ library support 15767 ld_shlibs_CXX=no 15768 ;; 15769 esac 15770 15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15772$as_echo "$ld_shlibs_CXX" >&6; } 15773 test no = "$ld_shlibs_CXX" && can_build_shared=no 15774 15775 GCC_CXX=$GXX 15776 LD_CXX=$LD 15777 15778 ## CAVEAT EMPTOR: 15779 ## There is no encapsulation within the following macros, do not change 15780 ## the running order or otherwise move them around unless you know exactly 15781 ## what you are doing... 15782 # Dependencies to place before and after the object being linked: 15783predep_objects_CXX= 15784postdep_objects_CXX= 15785predeps_CXX= 15786postdeps_CXX= 15787compiler_lib_search_path_CXX= 15788 15789cat > conftest.$ac_ext <<_LT_EOF 15790class Foo 15791{ 15792public: 15793 Foo (void) { a = 0; } 15794private: 15795 int a; 15796}; 15797_LT_EOF 15798 15799 15800_lt_libdeps_save_CFLAGS=$CFLAGS 15801case "$CC $CFLAGS " in #( 15802*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15803*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15804*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15805esac 15806 15807if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15808 (eval $ac_compile) 2>&5 15809 ac_status=$? 15810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15811 test $ac_status = 0; }; then 15812 # Parse the compiler output and extract the necessary 15813 # objects, libraries and library flags. 15814 15815 # Sentinel used to keep track of whether or not we are before 15816 # the conftest object file. 15817 pre_test_object_deps_done=no 15818 15819 for p in `eval "$output_verbose_link_cmd"`; do 15820 case $prev$p in 15821 15822 -L* | -R* | -l*) 15823 # Some compilers place space between "-{L,R}" and the path. 15824 # Remove the space. 15825 if test x-L = "$p" || 15826 test x-R = "$p"; then 15827 prev=$p 15828 continue 15829 fi 15830 15831 # Expand the sysroot to ease extracting the directories later. 15832 if test -z "$prev"; then 15833 case $p in 15834 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15835 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15836 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15837 esac 15838 fi 15839 case $p in 15840 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15841 esac 15842 if test no = "$pre_test_object_deps_done"; then 15843 case $prev in 15844 -L | -R) 15845 # Internal compiler library paths should come after those 15846 # provided the user. The postdeps already come after the 15847 # user supplied libs so there is no need to process them. 15848 if test -z "$compiler_lib_search_path_CXX"; then 15849 compiler_lib_search_path_CXX=$prev$p 15850 else 15851 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15852 fi 15853 ;; 15854 # The "-l" case would never come before the object being 15855 # linked, so don't bother handling this case. 15856 esac 15857 else 15858 if test -z "$postdeps_CXX"; then 15859 postdeps_CXX=$prev$p 15860 else 15861 postdeps_CXX="${postdeps_CXX} $prev$p" 15862 fi 15863 fi 15864 prev= 15865 ;; 15866 15867 *.lto.$objext) ;; # Ignore GCC LTO objects 15868 *.$objext) 15869 # This assumes that the test object file only shows up 15870 # once in the compiler output. 15871 if test "$p" = "conftest.$objext"; then 15872 pre_test_object_deps_done=yes 15873 continue 15874 fi 15875 15876 if test no = "$pre_test_object_deps_done"; then 15877 if test -z "$predep_objects_CXX"; then 15878 predep_objects_CXX=$p 15879 else 15880 predep_objects_CXX="$predep_objects_CXX $p" 15881 fi 15882 else 15883 if test -z "$postdep_objects_CXX"; then 15884 postdep_objects_CXX=$p 15885 else 15886 postdep_objects_CXX="$postdep_objects_CXX $p" 15887 fi 15888 fi 15889 ;; 15890 15891 *) ;; # Ignore the rest. 15892 15893 esac 15894 done 15895 15896 # Clean up. 15897 rm -f a.out a.exe 15898else 15899 echo "libtool.m4: error: problem compiling CXX test program" 15900fi 15901 15902$RM -f confest.$objext 15903CFLAGS=$_lt_libdeps_save_CFLAGS 15904 15905# PORTME: override above test on systems where it is broken 15906case $host_os in 15907interix[3-9]*) 15908 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15909 # hack all around it, let's just trust "g++" to DTRT. 15910 predep_objects_CXX= 15911 postdep_objects_CXX= 15912 postdeps_CXX= 15913 ;; 15914esac 15915 15916 15917case " $postdeps_CXX " in 15918*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15919esac 15920 compiler_lib_search_dirs_CXX= 15921if test -n "${compiler_lib_search_path_CXX}"; then 15922 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15923fi 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 lt_prog_compiler_wl_CXX= 15956lt_prog_compiler_pic_CXX= 15957lt_prog_compiler_static_CXX= 15958 15959 15960 # C++ specific cases for pic, static, wl, etc. 15961 if test yes = "$GXX"; then 15962 lt_prog_compiler_wl_CXX='-Wl,' 15963 lt_prog_compiler_static_CXX='-static' 15964 15965 case $host_os in 15966 aix*) 15967 # All AIX code is PIC. 15968 if test ia64 = "$host_cpu"; then 15969 # AIX 5 now supports IA64 processor 15970 lt_prog_compiler_static_CXX='-Bstatic' 15971 fi 15972 lt_prog_compiler_pic_CXX='-fPIC' 15973 ;; 15974 15975 amigaos*) 15976 case $host_cpu in 15977 powerpc) 15978 # see comment about AmigaOS4 .so support 15979 lt_prog_compiler_pic_CXX='-fPIC' 15980 ;; 15981 m68k) 15982 # FIXME: we need at least 68020 code to build shared libraries, but 15983 # adding the '-m68020' flag to GCC prevents building anything better, 15984 # like '-m68040'. 15985 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15986 ;; 15987 esac 15988 ;; 15989 15990 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15991 # PIC is the default for these OSes. 15992 ;; 15993 mingw* | cygwin* | os2* | pw32* | cegcc*) 15994 # This hack is so that the source file can tell whether it is being 15995 # built for inclusion in a dll (and should export symbols for example). 15996 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15997 # (--disable-auto-import) libraries 15998 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15999 case $host_os in 16000 os2*) 16001 lt_prog_compiler_static_CXX='$wl-static' 16002 ;; 16003 esac 16004 ;; 16005 darwin* | rhapsody*) 16006 # PIC is the default on this platform 16007 # Common symbols not allowed in MH_DYLIB files 16008 lt_prog_compiler_pic_CXX='-fno-common' 16009 ;; 16010 *djgpp*) 16011 # DJGPP does not support shared libraries at all 16012 lt_prog_compiler_pic_CXX= 16013 ;; 16014 haiku*) 16015 # PIC is the default for Haiku. 16016 # The "-static" flag exists, but is broken. 16017 lt_prog_compiler_static_CXX= 16018 ;; 16019 interix[3-9]*) 16020 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16021 # Instead, we relocate shared libraries at runtime. 16022 ;; 16023 sysv4*MP*) 16024 if test -d /usr/nec; then 16025 lt_prog_compiler_pic_CXX=-Kconform_pic 16026 fi 16027 ;; 16028 hpux*) 16029 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16030 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16031 # sets the default TLS model and affects inlining. 16032 case $host_cpu in 16033 hppa*64*) 16034 ;; 16035 *) 16036 lt_prog_compiler_pic_CXX='-fPIC' 16037 ;; 16038 esac 16039 ;; 16040 *qnx* | *nto*) 16041 # QNX uses GNU C++, but need to define -shared option too, otherwise 16042 # it will coredump. 16043 lt_prog_compiler_pic_CXX='-fPIC -shared' 16044 ;; 16045 *) 16046 lt_prog_compiler_pic_CXX='-fPIC' 16047 ;; 16048 esac 16049 else 16050 case $host_os in 16051 aix[4-9]*) 16052 # All AIX code is PIC. 16053 if test ia64 = "$host_cpu"; then 16054 # AIX 5 now supports IA64 processor 16055 lt_prog_compiler_static_CXX='-Bstatic' 16056 else 16057 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 16058 fi 16059 ;; 16060 chorus*) 16061 case $cc_basename in 16062 cxch68*) 16063 # Green Hills C++ Compiler 16064 # _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" 16065 ;; 16066 esac 16067 ;; 16068 mingw* | cygwin* | os2* | pw32* | cegcc*) 16069 # This hack is so that the source file can tell whether it is being 16070 # built for inclusion in a dll (and should export symbols for example). 16071 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16072 ;; 16073 dgux*) 16074 case $cc_basename in 16075 ec++*) 16076 lt_prog_compiler_pic_CXX='-KPIC' 16077 ;; 16078 ghcx*) 16079 # Green Hills C++ Compiler 16080 lt_prog_compiler_pic_CXX='-pic' 16081 ;; 16082 *) 16083 ;; 16084 esac 16085 ;; 16086 freebsd* | dragonfly*) 16087 # FreeBSD uses GNU C++ 16088 ;; 16089 hpux9* | hpux10* | hpux11*) 16090 case $cc_basename in 16091 CC*) 16092 lt_prog_compiler_wl_CXX='-Wl,' 16093 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 16094 if test ia64 != "$host_cpu"; then 16095 lt_prog_compiler_pic_CXX='+Z' 16096 fi 16097 ;; 16098 aCC*) 16099 lt_prog_compiler_wl_CXX='-Wl,' 16100 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 16101 case $host_cpu in 16102 hppa*64*|ia64*) 16103 # +Z the default 16104 ;; 16105 *) 16106 lt_prog_compiler_pic_CXX='+Z' 16107 ;; 16108 esac 16109 ;; 16110 *) 16111 ;; 16112 esac 16113 ;; 16114 interix*) 16115 # This is c89, which is MS Visual C++ (no shared libs) 16116 # Anyone wants to do a port? 16117 ;; 16118 irix5* | irix6* | nonstopux*) 16119 case $cc_basename in 16120 CC*) 16121 lt_prog_compiler_wl_CXX='-Wl,' 16122 lt_prog_compiler_static_CXX='-non_shared' 16123 # CC pic flag -KPIC is the default. 16124 ;; 16125 *) 16126 ;; 16127 esac 16128 ;; 16129 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16130 case $cc_basename in 16131 KCC*) 16132 # KAI C++ Compiler 16133 lt_prog_compiler_wl_CXX='--backend -Wl,' 16134 lt_prog_compiler_pic_CXX='-fPIC' 16135 ;; 16136 ecpc* ) 16137 # old Intel C++ for x86_64, which still supported -KPIC. 16138 lt_prog_compiler_wl_CXX='-Wl,' 16139 lt_prog_compiler_pic_CXX='-KPIC' 16140 lt_prog_compiler_static_CXX='-static' 16141 ;; 16142 icpc* ) 16143 # Intel C++, used to be incompatible with GCC. 16144 # ICC 10 doesn't accept -KPIC any more. 16145 lt_prog_compiler_wl_CXX='-Wl,' 16146 lt_prog_compiler_pic_CXX='-fPIC' 16147 lt_prog_compiler_static_CXX='-static' 16148 ;; 16149 pgCC* | pgcpp*) 16150 # Portland Group C++ compiler 16151 lt_prog_compiler_wl_CXX='-Wl,' 16152 lt_prog_compiler_pic_CXX='-fpic' 16153 lt_prog_compiler_static_CXX='-Bstatic' 16154 ;; 16155 cxx*) 16156 # Compaq C++ 16157 # Make sure the PIC flag is empty. It appears that all Alpha 16158 # Linux and Compaq Tru64 Unix objects are PIC. 16159 lt_prog_compiler_pic_CXX= 16160 lt_prog_compiler_static_CXX='-non_shared' 16161 ;; 16162 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 16163 # IBM XL 8.0, 9.0 on PPC and BlueGene 16164 lt_prog_compiler_wl_CXX='-Wl,' 16165 lt_prog_compiler_pic_CXX='-qpic' 16166 lt_prog_compiler_static_CXX='-qstaticlink' 16167 ;; 16168 *) 16169 case `$CC -V 2>&1 | sed 5q` in 16170 *Sun\ C*) 16171 # Sun C++ 5.9 16172 lt_prog_compiler_pic_CXX='-KPIC' 16173 lt_prog_compiler_static_CXX='-Bstatic' 16174 lt_prog_compiler_wl_CXX='-Qoption ld ' 16175 ;; 16176 esac 16177 ;; 16178 esac 16179 ;; 16180 lynxos*) 16181 ;; 16182 m88k*) 16183 ;; 16184 mvs*) 16185 case $cc_basename in 16186 cxx*) 16187 lt_prog_compiler_pic_CXX='-W c,exportall' 16188 ;; 16189 *) 16190 ;; 16191 esac 16192 ;; 16193 netbsd* | netbsdelf*-gnu) 16194 ;; 16195 *qnx* | *nto*) 16196 # QNX uses GNU C++, but need to define -shared option too, otherwise 16197 # it will coredump. 16198 lt_prog_compiler_pic_CXX='-fPIC -shared' 16199 ;; 16200 osf3* | osf4* | osf5*) 16201 case $cc_basename in 16202 KCC*) 16203 lt_prog_compiler_wl_CXX='--backend -Wl,' 16204 ;; 16205 RCC*) 16206 # Rational C++ 2.4.1 16207 lt_prog_compiler_pic_CXX='-pic' 16208 ;; 16209 cxx*) 16210 # Digital/Compaq C++ 16211 lt_prog_compiler_wl_CXX='-Wl,' 16212 # Make sure the PIC flag is empty. It appears that all Alpha 16213 # Linux and Compaq Tru64 Unix objects are PIC. 16214 lt_prog_compiler_pic_CXX= 16215 lt_prog_compiler_static_CXX='-non_shared' 16216 ;; 16217 *) 16218 ;; 16219 esac 16220 ;; 16221 psos*) 16222 ;; 16223 solaris*) 16224 case $cc_basename in 16225 CC* | sunCC*) 16226 # Sun C++ 4.2, 5.x and Centerline C++ 16227 lt_prog_compiler_pic_CXX='-KPIC' 16228 lt_prog_compiler_static_CXX='-Bstatic' 16229 lt_prog_compiler_wl_CXX='-Qoption ld ' 16230 ;; 16231 gcx*) 16232 # Green Hills C++ Compiler 16233 lt_prog_compiler_pic_CXX='-PIC' 16234 ;; 16235 *) 16236 ;; 16237 esac 16238 ;; 16239 sunos4*) 16240 case $cc_basename in 16241 CC*) 16242 # Sun C++ 4.x 16243 lt_prog_compiler_pic_CXX='-pic' 16244 lt_prog_compiler_static_CXX='-Bstatic' 16245 ;; 16246 lcc*) 16247 # Lucid 16248 lt_prog_compiler_pic_CXX='-pic' 16249 ;; 16250 *) 16251 ;; 16252 esac 16253 ;; 16254 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16255 case $cc_basename in 16256 CC*) 16257 lt_prog_compiler_wl_CXX='-Wl,' 16258 lt_prog_compiler_pic_CXX='-KPIC' 16259 lt_prog_compiler_static_CXX='-Bstatic' 16260 ;; 16261 esac 16262 ;; 16263 tandem*) 16264 case $cc_basename in 16265 NCC*) 16266 # NonStop-UX NCC 3.20 16267 lt_prog_compiler_pic_CXX='-KPIC' 16268 ;; 16269 *) 16270 ;; 16271 esac 16272 ;; 16273 vxworks*) 16274 ;; 16275 *) 16276 lt_prog_compiler_can_build_shared_CXX=no 16277 ;; 16278 esac 16279 fi 16280 16281case $host_os in 16282 # For platforms that do not support PIC, -DPIC is meaningless: 16283 *djgpp*) 16284 lt_prog_compiler_pic_CXX= 16285 ;; 16286 *) 16287 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 16288 ;; 16289esac 16290 16291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16292$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16293if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 16294 $as_echo_n "(cached) " >&6 16295else 16296 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 16297fi 16298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 16299$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 16300lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 16301 16302# 16303# Check to make sure the PIC flag actually works. 16304# 16305if test -n "$lt_prog_compiler_pic_CXX"; then 16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 16307$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 16308if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 16309 $as_echo_n "(cached) " >&6 16310else 16311 lt_cv_prog_compiler_pic_works_CXX=no 16312 ac_outfile=conftest.$ac_objext 16313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16314 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 16315 # Insert the option either (1) after the last *FLAGS variable, or 16316 # (2) before a word containing "conftest.", or (3) at the end. 16317 # Note that $ac_compile itself does not contain backslashes and begins 16318 # with a dollar sign (not a hyphen), so the echo should work correctly. 16319 # The option is referenced via a variable to avoid confusing sed. 16320 lt_compile=`echo "$ac_compile" | $SED \ 16321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16323 -e 's:$: $lt_compiler_flag:'` 16324 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16325 (eval "$lt_compile" 2>conftest.err) 16326 ac_status=$? 16327 cat conftest.err >&5 16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16329 if (exit $ac_status) && test -s "$ac_outfile"; then 16330 # The compiler can only warn and ignore the option if not recognized 16331 # So say no if there are warnings other than the usual output. 16332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16335 lt_cv_prog_compiler_pic_works_CXX=yes 16336 fi 16337 fi 16338 $RM conftest* 16339 16340fi 16341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 16342$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 16343 16344if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 16345 case $lt_prog_compiler_pic_CXX in 16346 "" | " "*) ;; 16347 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 16348 esac 16349else 16350 lt_prog_compiler_pic_CXX= 16351 lt_prog_compiler_can_build_shared_CXX=no 16352fi 16353 16354fi 16355 16356 16357 16358 16359 16360# 16361# Check to make sure the static flag actually works. 16362# 16363wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 16364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16365$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16366if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 16367 $as_echo_n "(cached) " >&6 16368else 16369 lt_cv_prog_compiler_static_works_CXX=no 16370 save_LDFLAGS=$LDFLAGS 16371 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16372 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16373 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16374 # The linker can only warn and ignore the option if not recognized 16375 # So say no if there are warnings 16376 if test -s conftest.err; then 16377 # Append any errors to the config.log. 16378 cat conftest.err 1>&5 16379 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16381 if diff conftest.exp conftest.er2 >/dev/null; then 16382 lt_cv_prog_compiler_static_works_CXX=yes 16383 fi 16384 else 16385 lt_cv_prog_compiler_static_works_CXX=yes 16386 fi 16387 fi 16388 $RM -r conftest* 16389 LDFLAGS=$save_LDFLAGS 16390 16391fi 16392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 16393$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 16394 16395if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 16396 : 16397else 16398 lt_prog_compiler_static_CXX= 16399fi 16400 16401 16402 16403 16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16405$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16406if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16407 $as_echo_n "(cached) " >&6 16408else 16409 lt_cv_prog_compiler_c_o_CXX=no 16410 $RM -r conftest 2>/dev/null 16411 mkdir conftest 16412 cd conftest 16413 mkdir out 16414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16415 16416 lt_compiler_flag="-o out/conftest2.$ac_objext" 16417 # Insert the option either (1) after the last *FLAGS variable, or 16418 # (2) before a word containing "conftest.", or (3) at the end. 16419 # Note that $ac_compile itself does not contain backslashes and begins 16420 # with a dollar sign (not a hyphen), so the echo should work correctly. 16421 lt_compile=`echo "$ac_compile" | $SED \ 16422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16424 -e 's:$: $lt_compiler_flag:'` 16425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16426 (eval "$lt_compile" 2>out/conftest.err) 16427 ac_status=$? 16428 cat out/conftest.err >&5 16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16430 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16431 then 16432 # The compiler can only warn and ignore the option if not recognized 16433 # So say no if there are warnings 16434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16437 lt_cv_prog_compiler_c_o_CXX=yes 16438 fi 16439 fi 16440 chmod u+w . 2>&5 16441 $RM conftest* 16442 # SGI C++ compiler will create directory out/ii_files/ for 16443 # template instantiation 16444 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16445 $RM out/* && rmdir out 16446 cd .. 16447 $RM -r conftest 16448 $RM conftest* 16449 16450fi 16451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16452$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16453 16454 16455 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16457$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16458if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16459 $as_echo_n "(cached) " >&6 16460else 16461 lt_cv_prog_compiler_c_o_CXX=no 16462 $RM -r conftest 2>/dev/null 16463 mkdir conftest 16464 cd conftest 16465 mkdir out 16466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16467 16468 lt_compiler_flag="-o out/conftest2.$ac_objext" 16469 # Insert the option either (1) after the last *FLAGS variable, or 16470 # (2) before a word containing "conftest.", or (3) at the end. 16471 # Note that $ac_compile itself does not contain backslashes and begins 16472 # with a dollar sign (not a hyphen), so the echo should work correctly. 16473 lt_compile=`echo "$ac_compile" | $SED \ 16474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16476 -e 's:$: $lt_compiler_flag:'` 16477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16478 (eval "$lt_compile" 2>out/conftest.err) 16479 ac_status=$? 16480 cat out/conftest.err >&5 16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16482 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16483 then 16484 # The compiler can only warn and ignore the option if not recognized 16485 # So say no if there are warnings 16486 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16487 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16488 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16489 lt_cv_prog_compiler_c_o_CXX=yes 16490 fi 16491 fi 16492 chmod u+w . 2>&5 16493 $RM conftest* 16494 # SGI C++ compiler will create directory out/ii_files/ for 16495 # template instantiation 16496 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16497 $RM out/* && rmdir out 16498 cd .. 16499 $RM -r conftest 16500 $RM conftest* 16501 16502fi 16503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16504$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16505 16506 16507 16508 16509hard_links=nottested 16510if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 16511 # do not overwrite the value of need_locks provided by the user 16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16513$as_echo_n "checking if we can lock with hard links... " >&6; } 16514 hard_links=yes 16515 $RM conftest* 16516 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16517 touch conftest.a 16518 ln conftest.a conftest.b 2>&5 || hard_links=no 16519 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16521$as_echo "$hard_links" >&6; } 16522 if test no = "$hard_links"; then 16523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16524$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16525 need_locks=warn 16526 fi 16527else 16528 need_locks=no 16529fi 16530 16531 16532 16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16534$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16535 16536 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16537 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16538 case $host_os in 16539 aix[4-9]*) 16540 # If we're using GNU nm, then we don't want the "-C" option. 16541 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16542 # Without the "-l" option, or with the "-B" option, AIX nm treats 16543 # weak defined symbols like other global defined symbols, whereas 16544 # GNU nm marks them as "W". 16545 # While the 'weak' keyword is ignored in the Export File, we need 16546 # it in the Import File for the 'aix-soname' feature, so we have 16547 # to replace the "-B" option with "-P" for AIX nm. 16548 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16549 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' 16550 else 16551 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' 16552 fi 16553 ;; 16554 pw32*) 16555 export_symbols_cmds_CXX=$ltdll_cmds 16556 ;; 16557 cygwin* | mingw* | cegcc*) 16558 case $cc_basename in 16559 cl*) 16560 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16561 ;; 16562 *) 16563 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' 16564 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16565 ;; 16566 esac 16567 ;; 16568 linux* | k*bsd*-gnu | gnu*) 16569 link_all_deplibs_CXX=no 16570 ;; 16571 *) 16572 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16573 ;; 16574 esac 16575 16576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16577$as_echo "$ld_shlibs_CXX" >&6; } 16578test no = "$ld_shlibs_CXX" && can_build_shared=no 16579 16580with_gnu_ld_CXX=$with_gnu_ld 16581 16582 16583 16584 16585 16586 16587# 16588# Do we need to explicitly link libc? 16589# 16590case "x$archive_cmds_need_lc_CXX" in 16591x|xyes) 16592 # Assume -lc should be added 16593 archive_cmds_need_lc_CXX=yes 16594 16595 if test yes,yes = "$GCC,$enable_shared"; then 16596 case $archive_cmds_CXX in 16597 *'~'*) 16598 # FIXME: we may have to deal with multi-command sequences. 16599 ;; 16600 '$CC '*) 16601 # Test whether the compiler implicitly links with -lc since on some 16602 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16603 # to ld, don't add -lc before -lgcc. 16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16605$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16606if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16607 $as_echo_n "(cached) " >&6 16608else 16609 $RM conftest* 16610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16611 16612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16613 (eval $ac_compile) 2>&5 16614 ac_status=$? 16615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16616 test $ac_status = 0; } 2>conftest.err; then 16617 soname=conftest 16618 lib=conftest 16619 libobjs=conftest.$ac_objext 16620 deplibs= 16621 wl=$lt_prog_compiler_wl_CXX 16622 pic_flag=$lt_prog_compiler_pic_CXX 16623 compiler_flags=-v 16624 linker_flags=-v 16625 verstring= 16626 output_objdir=. 16627 libname=conftest 16628 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16629 allow_undefined_flag_CXX= 16630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16631 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16632 ac_status=$? 16633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16634 test $ac_status = 0; } 16635 then 16636 lt_cv_archive_cmds_need_lc_CXX=no 16637 else 16638 lt_cv_archive_cmds_need_lc_CXX=yes 16639 fi 16640 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16641 else 16642 cat conftest.err 1>&5 16643 fi 16644 $RM conftest* 16645 16646fi 16647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16648$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16649 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16650 ;; 16651 esac 16652 fi 16653 ;; 16654esac 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16718$as_echo_n "checking dynamic linker characteristics... " >&6; } 16719 16720library_names_spec= 16721libname_spec='lib$name' 16722soname_spec= 16723shrext_cmds=.so 16724postinstall_cmds= 16725postuninstall_cmds= 16726finish_cmds= 16727finish_eval= 16728shlibpath_var= 16729shlibpath_overrides_runpath=unknown 16730version_type=none 16731dynamic_linker="$host_os ld.so" 16732sys_lib_dlsearch_path_spec="/lib /usr/lib" 16733need_lib_prefix=unknown 16734hardcode_into_libs=no 16735 16736# when you set need_version to no, make sure it does not cause -set_version 16737# flags to be left without arguments 16738need_version=unknown 16739 16740 16741 16742case $host_os in 16743aix3*) 16744 version_type=linux # correct to gnu/linux during the next big refactor 16745 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16746 shlibpath_var=LIBPATH 16747 16748 # AIX 3 has no versioning support, so we append a major version to the name. 16749 soname_spec='$libname$release$shared_ext$major' 16750 ;; 16751 16752aix[4-9]*) 16753 version_type=linux # correct to gnu/linux during the next big refactor 16754 need_lib_prefix=no 16755 need_version=no 16756 hardcode_into_libs=yes 16757 if test ia64 = "$host_cpu"; then 16758 # AIX 5 supports IA64 16759 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16760 shlibpath_var=LD_LIBRARY_PATH 16761 else 16762 # With GCC up to 2.95.x, collect2 would create an import file 16763 # for dependence libraries. The import file would start with 16764 # the line '#! .'. This would cause the generated library to 16765 # depend on '.', always an invalid library. This was fixed in 16766 # development snapshots of GCC prior to 3.0. 16767 case $host_os in 16768 aix4 | aix4.[01] | aix4.[01].*) 16769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16770 echo ' yes ' 16771 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16772 : 16773 else 16774 can_build_shared=no 16775 fi 16776 ;; 16777 esac 16778 # Using Import Files as archive members, it is possible to support 16779 # filename-based versioning of shared library archives on AIX. While 16780 # this would work for both with and without runtime linking, it will 16781 # prevent static linking of such archives. So we do filename-based 16782 # shared library versioning with .so extension only, which is used 16783 # when both runtime linking and shared linking is enabled. 16784 # Unfortunately, runtime linking may impact performance, so we do 16785 # not want this to be the default eventually. Also, we use the 16786 # versioned .so libs for executables only if there is the -brtl 16787 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16788 # To allow for filename-based versioning support, we need to create 16789 # libNAME.so.V as an archive file, containing: 16790 # *) an Import File, referring to the versioned filename of the 16791 # archive as well as the shared archive member, telling the 16792 # bitwidth (32 or 64) of that shared object, and providing the 16793 # list of exported symbols of that shared object, eventually 16794 # decorated with the 'weak' keyword 16795 # *) the shared object with the F_LOADONLY flag set, to really avoid 16796 # it being seen by the linker. 16797 # At run time we better use the real file rather than another symlink, 16798 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16799 16800 case $with_aix_soname,$aix_use_runtimelinking in 16801 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16802 # soname into executable. Probably we can add versioning support to 16803 # collect2, so additional links can be useful in future. 16804 aix,yes) # traditional libtool 16805 dynamic_linker='AIX unversionable lib.so' 16806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16807 # instead of lib<name>.a to let people know that these are not 16808 # typical AIX shared libraries. 16809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16810 ;; 16811 aix,no) # traditional AIX only 16812 dynamic_linker='AIX lib.a(lib.so.V)' 16813 # We preserve .a as extension for shared libraries through AIX4.2 16814 # and later when we are not doing run time linking. 16815 library_names_spec='$libname$release.a $libname.a' 16816 soname_spec='$libname$release$shared_ext$major' 16817 ;; 16818 svr4,*) # full svr4 only 16819 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16820 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16821 # We do not specify a path in Import Files, so LIBPATH fires. 16822 shlibpath_overrides_runpath=yes 16823 ;; 16824 *,yes) # both, prefer svr4 16825 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16826 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16827 # unpreferred sharedlib libNAME.a needs extra handling 16828 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"' 16829 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"' 16830 # We do not specify a path in Import Files, so LIBPATH fires. 16831 shlibpath_overrides_runpath=yes 16832 ;; 16833 *,no) # both, prefer aix 16834 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16835 library_names_spec='$libname$release.a $libname.a' 16836 soname_spec='$libname$release$shared_ext$major' 16837 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16838 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)' 16839 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"' 16840 ;; 16841 esac 16842 shlibpath_var=LIBPATH 16843 fi 16844 ;; 16845 16846amigaos*) 16847 case $host_cpu in 16848 powerpc) 16849 # Since July 2007 AmigaOS4 officially supports .so libraries. 16850 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16852 ;; 16853 m68k) 16854 library_names_spec='$libname.ixlibrary $libname.a' 16855 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16856 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' 16857 ;; 16858 esac 16859 ;; 16860 16861beos*) 16862 library_names_spec='$libname$shared_ext' 16863 dynamic_linker="$host_os ld.so" 16864 shlibpath_var=LIBRARY_PATH 16865 ;; 16866 16867bsdi[45]*) 16868 version_type=linux # correct to gnu/linux during the next big refactor 16869 need_version=no 16870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16871 soname_spec='$libname$release$shared_ext$major' 16872 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16873 shlibpath_var=LD_LIBRARY_PATH 16874 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16875 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16876 # the default ld.so.conf also contains /usr/contrib/lib and 16877 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16878 # libtool to hard-code these into programs 16879 ;; 16880 16881cygwin* | mingw* | pw32* | cegcc*) 16882 version_type=windows 16883 shrext_cmds=.dll 16884 need_version=no 16885 need_lib_prefix=no 16886 16887 case $GCC,$cc_basename in 16888 yes,*) 16889 # gcc 16890 library_names_spec='$libname.dll.a' 16891 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16892 postinstall_cmds='base_file=`basename \$file`~ 16893 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16894 dldir=$destdir/`dirname \$dlpath`~ 16895 test -d \$dldir || mkdir -p \$dldir~ 16896 $install_prog $dir/$dlname \$dldir/$dlname~ 16897 chmod a+x \$dldir/$dlname~ 16898 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16899 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16900 fi' 16901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16902 dlpath=$dir/\$dldll~ 16903 $RM \$dlpath' 16904 shlibpath_overrides_runpath=yes 16905 16906 case $host_os in 16907 cygwin*) 16908 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16909 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16910 16911 ;; 16912 mingw* | cegcc*) 16913 # MinGW DLLs use traditional 'lib' prefix 16914 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16915 ;; 16916 pw32*) 16917 # pw32 DLLs use 'pw' prefix rather than 'lib' 16918 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16919 ;; 16920 esac 16921 dynamic_linker='Win32 ld.exe' 16922 ;; 16923 16924 *,cl*) 16925 # Native MSVC 16926 libname_spec='$name' 16927 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16928 library_names_spec='$libname.dll.lib' 16929 16930 case $build_os in 16931 mingw*) 16932 sys_lib_search_path_spec= 16933 lt_save_ifs=$IFS 16934 IFS=';' 16935 for lt_path in $LIB 16936 do 16937 IFS=$lt_save_ifs 16938 # Let DOS variable expansion print the short 8.3 style file name. 16939 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16940 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16941 done 16942 IFS=$lt_save_ifs 16943 # Convert to MSYS style. 16944 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16945 ;; 16946 cygwin*) 16947 # Convert to unix form, then to dos form, then back to unix form 16948 # but this time dos style (no spaces!) so that the unix form looks 16949 # like /cygdrive/c/PROGRA~1:/cygdr... 16950 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16951 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16952 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16953 ;; 16954 *) 16955 sys_lib_search_path_spec=$LIB 16956 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16957 # It is most probably a Windows format PATH. 16958 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16959 else 16960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16961 fi 16962 # FIXME: find the short name or the path components, as spaces are 16963 # common. (e.g. "Program Files" -> "PROGRA~1") 16964 ;; 16965 esac 16966 16967 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16968 postinstall_cmds='base_file=`basename \$file`~ 16969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16970 dldir=$destdir/`dirname \$dlpath`~ 16971 test -d \$dldir || mkdir -p \$dldir~ 16972 $install_prog $dir/$dlname \$dldir/$dlname' 16973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16974 dlpath=$dir/\$dldll~ 16975 $RM \$dlpath' 16976 shlibpath_overrides_runpath=yes 16977 dynamic_linker='Win32 link.exe' 16978 ;; 16979 16980 *) 16981 # Assume MSVC wrapper 16982 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16983 dynamic_linker='Win32 ld.exe' 16984 ;; 16985 esac 16986 # FIXME: first we should search . and the directory the executable is in 16987 shlibpath_var=PATH 16988 ;; 16989 16990darwin* | rhapsody*) 16991 dynamic_linker="$host_os dyld" 16992 version_type=darwin 16993 need_lib_prefix=no 16994 need_version=no 16995 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16996 soname_spec='$libname$release$major$shared_ext' 16997 shlibpath_overrides_runpath=yes 16998 shlibpath_var=DYLD_LIBRARY_PATH 16999 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17000 17001 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17002 ;; 17003 17004dgux*) 17005 version_type=linux # correct to gnu/linux during the next big refactor 17006 need_lib_prefix=no 17007 need_version=no 17008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17009 soname_spec='$libname$release$shared_ext$major' 17010 shlibpath_var=LD_LIBRARY_PATH 17011 ;; 17012 17013freebsd* | dragonfly*) 17014 # DragonFly does not have aout. When/if they implement a new 17015 # versioning mechanism, adjust this. 17016 if test -x /usr/bin/objformat; then 17017 objformat=`/usr/bin/objformat` 17018 else 17019 case $host_os in 17020 freebsd[23].*) objformat=aout ;; 17021 *) objformat=elf ;; 17022 esac 17023 fi 17024 version_type=freebsd-$objformat 17025 case $version_type in 17026 freebsd-elf*) 17027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17028 soname_spec='$libname$release$shared_ext$major' 17029 need_version=no 17030 need_lib_prefix=no 17031 ;; 17032 freebsd-*) 17033 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17034 need_version=yes 17035 ;; 17036 esac 17037 shlibpath_var=LD_LIBRARY_PATH 17038 case $host_os in 17039 freebsd2.*) 17040 shlibpath_overrides_runpath=yes 17041 ;; 17042 freebsd3.[01]* | freebsdelf3.[01]*) 17043 shlibpath_overrides_runpath=yes 17044 hardcode_into_libs=yes 17045 ;; 17046 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17047 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17048 shlibpath_overrides_runpath=no 17049 hardcode_into_libs=yes 17050 ;; 17051 *) # from 4.6 on, and DragonFly 17052 shlibpath_overrides_runpath=yes 17053 hardcode_into_libs=yes 17054 ;; 17055 esac 17056 ;; 17057 17058haiku*) 17059 version_type=linux # correct to gnu/linux during the next big refactor 17060 need_lib_prefix=no 17061 need_version=no 17062 dynamic_linker="$host_os runtime_loader" 17063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17064 soname_spec='$libname$release$shared_ext$major' 17065 shlibpath_var=LIBRARY_PATH 17066 shlibpath_overrides_runpath=no 17067 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17068 hardcode_into_libs=yes 17069 ;; 17070 17071hpux9* | hpux10* | hpux11*) 17072 # Give a soname corresponding to the major version so that dld.sl refuses to 17073 # link against other versions. 17074 version_type=sunos 17075 need_lib_prefix=no 17076 need_version=no 17077 case $host_cpu in 17078 ia64*) 17079 shrext_cmds='.so' 17080 hardcode_into_libs=yes 17081 dynamic_linker="$host_os dld.so" 17082 shlibpath_var=LD_LIBRARY_PATH 17083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17085 soname_spec='$libname$release$shared_ext$major' 17086 if test 32 = "$HPUX_IA64_MODE"; then 17087 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17088 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17089 else 17090 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17091 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17092 fi 17093 ;; 17094 hppa*64*) 17095 shrext_cmds='.sl' 17096 hardcode_into_libs=yes 17097 dynamic_linker="$host_os dld.sl" 17098 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17101 soname_spec='$libname$release$shared_ext$major' 17102 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17104 ;; 17105 *) 17106 shrext_cmds='.sl' 17107 dynamic_linker="$host_os dld.sl" 17108 shlibpath_var=SHLIB_PATH 17109 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17111 soname_spec='$libname$release$shared_ext$major' 17112 ;; 17113 esac 17114 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17115 postinstall_cmds='chmod 555 $lib' 17116 # or fails outright, so override atomically: 17117 install_override_mode=555 17118 ;; 17119 17120interix[3-9]*) 17121 version_type=linux # correct to gnu/linux during the next big refactor 17122 need_lib_prefix=no 17123 need_version=no 17124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17125 soname_spec='$libname$release$shared_ext$major' 17126 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17127 shlibpath_var=LD_LIBRARY_PATH 17128 shlibpath_overrides_runpath=no 17129 hardcode_into_libs=yes 17130 ;; 17131 17132irix5* | irix6* | nonstopux*) 17133 case $host_os in 17134 nonstopux*) version_type=nonstopux ;; 17135 *) 17136 if test yes = "$lt_cv_prog_gnu_ld"; then 17137 version_type=linux # correct to gnu/linux during the next big refactor 17138 else 17139 version_type=irix 17140 fi ;; 17141 esac 17142 need_lib_prefix=no 17143 need_version=no 17144 soname_spec='$libname$release$shared_ext$major' 17145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17146 case $host_os in 17147 irix5* | nonstopux*) 17148 libsuff= shlibsuff= 17149 ;; 17150 *) 17151 case $LD in # libtool.m4 will add one of these switches to LD 17152 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17153 libsuff= shlibsuff= libmagic=32-bit;; 17154 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17155 libsuff=32 shlibsuff=N32 libmagic=N32;; 17156 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17157 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17158 *) libsuff= shlibsuff= libmagic=never-match;; 17159 esac 17160 ;; 17161 esac 17162 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17163 shlibpath_overrides_runpath=no 17164 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17165 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17166 hardcode_into_libs=yes 17167 ;; 17168 17169# No shared lib support for Linux oldld, aout, or coff. 17170linux*oldld* | linux*aout* | linux*coff*) 17171 dynamic_linker=no 17172 ;; 17173 17174linux*android*) 17175 version_type=none # Android doesn't support versioned libraries. 17176 need_lib_prefix=no 17177 need_version=no 17178 library_names_spec='$libname$release$shared_ext' 17179 soname_spec='$libname$release$shared_ext' 17180 finish_cmds= 17181 shlibpath_var=LD_LIBRARY_PATH 17182 shlibpath_overrides_runpath=yes 17183 17184 # This implies no fast_install, which is unacceptable. 17185 # Some rework will be needed to allow for fast_install 17186 # before this can be enabled. 17187 hardcode_into_libs=yes 17188 17189 dynamic_linker='Android linker' 17190 # Don't embed -rpath directories since the linker doesn't support them. 17191 hardcode_libdir_flag_spec_CXX='-L$libdir' 17192 ;; 17193 17194# This must be glibc/ELF. 17195linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17196 version_type=linux # correct to gnu/linux during the next big refactor 17197 need_lib_prefix=no 17198 need_version=no 17199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17200 soname_spec='$libname$release$shared_ext$major' 17201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17202 shlibpath_var=LD_LIBRARY_PATH 17203 shlibpath_overrides_runpath=no 17204 17205 # Some binutils ld are patched to set DT_RUNPATH 17206 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17207 $as_echo_n "(cached) " >&6 17208else 17209 lt_cv_shlibpath_overrides_runpath=no 17210 save_LDFLAGS=$LDFLAGS 17211 save_libdir=$libdir 17212 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 17213 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17215/* end confdefs.h. */ 17216 17217int 17218main () 17219{ 17220 17221 ; 17222 return 0; 17223} 17224_ACEOF 17225if ac_fn_cxx_try_link "$LINENO"; then : 17226 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17227 lt_cv_shlibpath_overrides_runpath=yes 17228fi 17229fi 17230rm -f core conftest.err conftest.$ac_objext \ 17231 conftest$ac_exeext conftest.$ac_ext 17232 LDFLAGS=$save_LDFLAGS 17233 libdir=$save_libdir 17234 17235fi 17236 17237 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17238 17239 # This implies no fast_install, which is unacceptable. 17240 # Some rework will be needed to allow for fast_install 17241 # before this can be enabled. 17242 hardcode_into_libs=yes 17243 17244 # Ideally, we could use ldconfig to report *all* directores which are 17245 # searched for libraries, however this is still not possible. Aside from not 17246 # being certain /sbin/ldconfig is available, command 17247 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17248 # even though it is searched at run-time. Try to do the best guess by 17249 # appending ld.so.conf contents (and includes) to the search path. 17250 if test -f /etc/ld.so.conf; then 17251 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' ' '` 17252 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17253 fi 17254 17255 # We used to test for /lib/ld.so.1 and disable shared libraries on 17256 # powerpc, because MkLinux only supported shared libraries with the 17257 # GNU dynamic linker. Since this was broken with cross compilers, 17258 # most powerpc-linux boxes support dynamic linking these days and 17259 # people can always --disable-shared, the test was removed, and we 17260 # assume the GNU/Linux dynamic linker is in use. 17261 dynamic_linker='GNU/Linux ld.so' 17262 ;; 17263 17264netbsdelf*-gnu) 17265 version_type=linux 17266 need_lib_prefix=no 17267 need_version=no 17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17269 soname_spec='${libname}${release}${shared_ext}$major' 17270 shlibpath_var=LD_LIBRARY_PATH 17271 shlibpath_overrides_runpath=no 17272 hardcode_into_libs=yes 17273 dynamic_linker='NetBSD ld.elf_so' 17274 ;; 17275 17276netbsd*) 17277 version_type=sunos 17278 need_lib_prefix=no 17279 need_version=no 17280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17281 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17283 dynamic_linker='NetBSD (a.out) ld.so' 17284 else 17285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17286 soname_spec='$libname$release$shared_ext$major' 17287 dynamic_linker='NetBSD ld.elf_so' 17288 fi 17289 shlibpath_var=LD_LIBRARY_PATH 17290 shlibpath_overrides_runpath=yes 17291 hardcode_into_libs=yes 17292 ;; 17293 17294newsos6) 17295 version_type=linux # correct to gnu/linux during the next big refactor 17296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17297 shlibpath_var=LD_LIBRARY_PATH 17298 shlibpath_overrides_runpath=yes 17299 ;; 17300 17301*nto* | *qnx*) 17302 version_type=qnx 17303 need_lib_prefix=no 17304 need_version=no 17305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17306 soname_spec='$libname$release$shared_ext$major' 17307 shlibpath_var=LD_LIBRARY_PATH 17308 shlibpath_overrides_runpath=no 17309 hardcode_into_libs=yes 17310 dynamic_linker='ldqnx.so' 17311 ;; 17312 17313openbsd* | bitrig*) 17314 version_type=sunos 17315 sys_lib_dlsearch_path_spec=/usr/lib 17316 need_lib_prefix=no 17317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17318 need_version=no 17319 else 17320 need_version=yes 17321 fi 17322 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17324 shlibpath_var=LD_LIBRARY_PATH 17325 shlibpath_overrides_runpath=yes 17326 ;; 17327 17328os2*) 17329 libname_spec='$name' 17330 version_type=windows 17331 shrext_cmds=.dll 17332 need_version=no 17333 need_lib_prefix=no 17334 # OS/2 can only load a DLL with a base name of 8 characters or less. 17335 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17336 v=$($ECHO $release$versuffix | tr -d .-); 17337 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17338 $ECHO $n$v`$shared_ext' 17339 library_names_spec='${libname}_dll.$libext' 17340 dynamic_linker='OS/2 ld.exe' 17341 shlibpath_var=BEGINLIBPATH 17342 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17344 postinstall_cmds='base_file=`basename \$file`~ 17345 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17346 dldir=$destdir/`dirname \$dlpath`~ 17347 test -d \$dldir || mkdir -p \$dldir~ 17348 $install_prog $dir/$dlname \$dldir/$dlname~ 17349 chmod a+x \$dldir/$dlname~ 17350 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17351 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17352 fi' 17353 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17354 dlpath=$dir/\$dldll~ 17355 $RM \$dlpath' 17356 ;; 17357 17358osf3* | osf4* | osf5*) 17359 version_type=osf 17360 need_lib_prefix=no 17361 need_version=no 17362 soname_spec='$libname$release$shared_ext$major' 17363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17364 shlibpath_var=LD_LIBRARY_PATH 17365 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17367 ;; 17368 17369rdos*) 17370 dynamic_linker=no 17371 ;; 17372 17373solaris*) 17374 version_type=linux # correct to gnu/linux during the next big refactor 17375 need_lib_prefix=no 17376 need_version=no 17377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17378 soname_spec='$libname$release$shared_ext$major' 17379 shlibpath_var=LD_LIBRARY_PATH 17380 shlibpath_overrides_runpath=yes 17381 hardcode_into_libs=yes 17382 # ldd complains unless libraries are executable 17383 postinstall_cmds='chmod +x $lib' 17384 ;; 17385 17386sunos4*) 17387 version_type=sunos 17388 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17389 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17390 shlibpath_var=LD_LIBRARY_PATH 17391 shlibpath_overrides_runpath=yes 17392 if test yes = "$with_gnu_ld"; then 17393 need_lib_prefix=no 17394 fi 17395 need_version=yes 17396 ;; 17397 17398sysv4 | sysv4.3*) 17399 version_type=linux # correct to gnu/linux during the next big refactor 17400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17401 soname_spec='$libname$release$shared_ext$major' 17402 shlibpath_var=LD_LIBRARY_PATH 17403 case $host_vendor in 17404 sni) 17405 shlibpath_overrides_runpath=no 17406 need_lib_prefix=no 17407 runpath_var=LD_RUN_PATH 17408 ;; 17409 siemens) 17410 need_lib_prefix=no 17411 ;; 17412 motorola) 17413 need_lib_prefix=no 17414 need_version=no 17415 shlibpath_overrides_runpath=no 17416 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17417 ;; 17418 esac 17419 ;; 17420 17421sysv4*MP*) 17422 if test -d /usr/nec; then 17423 version_type=linux # correct to gnu/linux during the next big refactor 17424 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17425 soname_spec='$libname$shared_ext.$major' 17426 shlibpath_var=LD_LIBRARY_PATH 17427 fi 17428 ;; 17429 17430sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17431 version_type=sco 17432 need_lib_prefix=no 17433 need_version=no 17434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17435 soname_spec='$libname$release$shared_ext$major' 17436 shlibpath_var=LD_LIBRARY_PATH 17437 shlibpath_overrides_runpath=yes 17438 hardcode_into_libs=yes 17439 if test yes = "$with_gnu_ld"; then 17440 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17441 else 17442 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17443 case $host_os in 17444 sco3.2v5*) 17445 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17446 ;; 17447 esac 17448 fi 17449 sys_lib_dlsearch_path_spec='/usr/lib' 17450 ;; 17451 17452tpf*) 17453 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17454 version_type=linux # correct to gnu/linux during the next big refactor 17455 need_lib_prefix=no 17456 need_version=no 17457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17458 shlibpath_var=LD_LIBRARY_PATH 17459 shlibpath_overrides_runpath=no 17460 hardcode_into_libs=yes 17461 ;; 17462 17463uts4*) 17464 version_type=linux # correct to gnu/linux during the next big refactor 17465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17466 soname_spec='$libname$release$shared_ext$major' 17467 shlibpath_var=LD_LIBRARY_PATH 17468 ;; 17469 17470*) 17471 dynamic_linker=no 17472 ;; 17473esac 17474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17475$as_echo "$dynamic_linker" >&6; } 17476test no = "$dynamic_linker" && can_build_shared=no 17477 17478variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17479if test yes = "$GCC"; then 17480 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17481fi 17482 17483if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17484 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17485fi 17486 17487if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17488 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17489fi 17490 17491# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17492configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17493 17494# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17495func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17496 17497# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17498configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17540$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17541hardcode_action_CXX= 17542if test -n "$hardcode_libdir_flag_spec_CXX" || 17543 test -n "$runpath_var_CXX" || 17544 test yes = "$hardcode_automatic_CXX"; then 17545 17546 # We can hardcode non-existent directories. 17547 if test no != "$hardcode_direct_CXX" && 17548 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17549 # have to relink, otherwise we might link with an installed library 17550 # when we should be linking with a yet-to-be-installed one 17551 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 17552 test no != "$hardcode_minus_L_CXX"; then 17553 # Linking always hardcodes the temporary library directory. 17554 hardcode_action_CXX=relink 17555 else 17556 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17557 hardcode_action_CXX=immediate 17558 fi 17559else 17560 # We cannot hardcode anything, or else we can only hardcode existing 17561 # directories. 17562 hardcode_action_CXX=unsupported 17563fi 17564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17565$as_echo "$hardcode_action_CXX" >&6; } 17566 17567if test relink = "$hardcode_action_CXX" || 17568 test yes = "$inherit_rpath_CXX"; then 17569 # Fast installation is not supported 17570 enable_fast_install=no 17571elif test yes = "$shlibpath_overrides_runpath" || 17572 test no = "$enable_shared"; then 17573 # Fast installation is not necessary 17574 enable_fast_install=needless 17575fi 17576 17577 17578 17579 17580 17581 17582 17583 fi # test -n "$compiler" 17584 17585 CC=$lt_save_CC 17586 CFLAGS=$lt_save_CFLAGS 17587 LDCXX=$LD 17588 LD=$lt_save_LD 17589 GCC=$lt_save_GCC 17590 with_gnu_ld=$lt_save_with_gnu_ld 17591 lt_cv_path_LDCXX=$lt_cv_path_LD 17592 lt_cv_path_LD=$lt_save_path_LD 17593 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17594 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17595fi # test yes != "$_lt_caught_CXX_error" 17596 17597ac_ext=c 17598ac_cpp='$CPP $CPPFLAGS' 17599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17601ac_compiler_gnu=$ac_cv_c_compiler_gnu 17602 17603 17604CFLAGS="$OLD_CFLAGS" 17605CXXFLAGS="$OLD_CXXFLAGS" 17606CPPFLAGS="$OLD_CPPFLAGS" 17607 17608if test "$with_ccache" != "no" && 17609 test "$ORIG" = "" && 17610 test "$CCACHE" != "" 17611then 17612 RAWCC="`which $CC 2> /dev/null`" 17613 RAWXX="`which $CXX 2> /dev/null`" 17614 case "$CC$CXX `ls -l $RAWCC 2>/dev/null` `ls -l $RAWCXX 2>/dev/null`" in 17615 *ccache*) 17616 ;; 17617 *) 17618 d=`pwd` 17619 printf "#! /bin/sh\nccache $CC \"\$@\"\n" > $d/cachecc.sh 17620 printf "#! /bin/sh\nccache $CXX \"\$@\"\n" > $d/cachecxx.sh 17621 chmod +x $d/cachecc.sh $d/cachecxx.sh 17622 CC="$d/cachecc.sh" 17623 CXX="$d/cachecxx.sh" 17624 ;; 17625 esac 17626fi 17627 17628if test "x$with_csl" != "xno" 17629then 17630# Here I have a bunch of sub-directories that I need to configure 17631 17632 { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure CSL core" >&5 17633$as_echo "$as_me: About to configure CSL core" >&6;} 17634 mkdir -p csl 17635 cd csl 17636 17637 case $host in 17638 *darwin* | *Darwin*) 17639 CPPFLAGS="$CPPFLAGS -mmacosx-version-min=10.12 -I/opt/local/include" 17640 LDFLAGS="$LDFLAGS -L/opt/local/lib" 17641 ;; 17642 esac 17643 17644# If I am compiling for native Cygwin I will not pass down "--host" 17645# if I am building for the natural target. 17646 { $as_echo "$as_me:${as_lineno-$LINENO}: host=$host build=$build" >&5 17647$as_echo "$as_me: host=$host build=$build" >&6;} 17648 pass_host="--host=$host" 17649 if test "x$with_cygwin" != "xno" 17650 then 17651 pass_host="" 17652 if test "x$host" != "xx86_64-unknown-cygwin" && 17653 test "x$host" != "xx86_64-pc-cygwin" 17654 then 17655 pass_host="--host=$host" 17656 fi 17657 fi 17658 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: with_cygwin=$with_cygwin pass_host=$pass_host" >&5 17660$as_echo "$as_me: with_cygwin=$with_cygwin pass_host=$pass_host" >&6;} 17661 17662 if test "x$with_wx" != "xno" 17663 then 17664# A short essay to explain why I pass down "--host=$host" here. There are 17665# two points. The first is that I cope with 64-bit windows by use of 17666# cross-compilation using the x86_64-win32-mingw32 toolchain, and I need 17667# to pass down the information that I am doing that. 17668# The second reason is that different releases of "config.guess" can report 17669# machine identities differently. I have particularly observes this on 17670# openSuSE Linux where some versions brand the host triple with "-suse-" in 17671# the middle. I do not mind much just what triple is used, but I do mind 17672# very much it it is not consistent all the way through my build. So I 17673# let this top-level configure script make the choice and by explicitly 17674# propagating if to sub-packages I end up safer. 17675# However if I am building for raw cygwin I find that I have pain if I 17676# specify --host specifically, so in that case I will not! 17677 pass_build="--with-build=\"$build\"" 17678 doconfig="$SHELL $abssrcdir/csl/cslbase/configure -C \ 17679 $ac_configure_args \ 17680 CC=\"$CC\" CXX=\"$CXX\" \ 17681 CPPFLAGS=\"$CPPFLAGS\" CFLAGS=\"$CFLAGS\" \ 17682 CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBS=\"$LIBS\" \ 17683 $pass_host --with-wx=\"$with_wx\" $pass_build --without-fox" 17684 elif test "x$with_fox" != "xno" 17685 then 17686 pass_build="--with-build=\"$build\"" 17687 doconfig="$SHELL $abssrcdir/csl/cslbase/configure -C \ 17688 $ac_configure_args \ 17689 CC=\"$CC\" CXX=\"$CXX\" \ 17690 CPPFLAGS=\"$CPPFLAGS\" CFLAGS=\"$CFLAGS\" \ 17691 CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBS=\"$LIBS\" \ 17692 $pass_host --with-fox=\"$builddir\" $pass_build --without-wx" 17693 else 17694# This final version will be without any GUI. 17695 pass_build="--with-build=\"$build\"" 17696 doconfig="$SHELL $abssrcdir/csl/cslbase/configure \ 17697 -C \ 17698 $ac_configure_args \ 17699 CC=\"$CC\" CXX=\"$CXX\" \ 17700 CPPFLAGS=\"$CPPFLAGS\" CFLAGS=\"$CFLAGS\" \ 17701 CXXFLAGS=\"$CXXFLAGS\" LDFLAGS=\"$LDFLAGS\" LIBS=\"$LIBS\" \ 17702 $pass_host $pass_build --without-fox --without-wx" 17703 fi 17704 { $as_echo "$as_me:${as_lineno-$LINENO}: $doconfig" >&5 17705$as_echo "$as_me: $doconfig" >&6;} 17706 if test "x$with_sequential" = "xno" 17707 then 17708 eval "$doconfig" & 17709 procids="$procids $!" 17710 else 17711 eval "$doconfig" 17712 fi 17713 cd "$builddir" 17714 17715 extras= 17716 wx= 17717 17718 case $host in 17719 *cygwin*) 17720 if test "x$with_cygwin" != "xyes" 17721 then 17722 { $as_echo "$as_me:${as_lineno-$LINENO}: gcc will be used in mingw mode." >&5 17723$as_echo "$as_me: gcc will be used in mingw mode." >&6;} 17724 else 17725 { $as_echo "$as_me:${as_lineno-$LINENO}: Using raw cygwin" >&5 17726$as_echo "$as_me: Using raw cygwin" >&6;} 17727 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2 -I/usr/include/ncurses " 17728 extras="--with-xft --with-xim" 17729 fi 17730 ;; 17731 *Darwin* | *darwin*) 17732# clang on MacOSX does not provide -mfpmath 17733# CFLAGS="$CFLAGS -msse2 -mfpmath=sse" 17734# CXXFLAGS="$CXXFLAGS -msse2 -mfpmath=sse" 17735 MACARCH="--enable-macosx_arch=x86_64" 17736 extras="--with-xft --with-xim" 17737 wx="--with-cocoa \ 17738 --with-macosx-version-min=10.12 \ 17739 $MACARCH " 17740 ;; 17741 *) 17742# On most non-windowed platforms Xft is a very good idea! And I am now 17743# relying on it. Ditto XIM 17744 CFLAGS="$CFLAGS " 17745 CXXFLAGS="$CXXFLAGS " 17746 extras="--with-xft --with-xim" 17747 ;; 17748 esac 17749 17750 if test "x$with_wx" != "xno" 17751 then 17752 mkdir wxWidgets 17753 cd wxWidgets 17754 { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure wxWidgets" >&5 17755$as_echo "$as_me: About to configure wxWidgets" >&6;} 17756# I need --enable-unicode on Windows at least so that I can use the 17757# BaKoMa fonts which remap at least one TeX glyph to outside the range 17758# of simple 8-bit characters. This will bring some follow-on pain no doubt 17759# but addressing that pain is probably good in the long term. 17760 if test "x$CC$CPP$CXX$CXXCPP" != "x" 17761 then 17762 passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\"" 17763 else 17764 passcc="" 17765 fi 17766 { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc pass_host=$pass_host" >&5 17767$as_echo "$as_me: passcc = $passcc pass_host=$pass_host" >&6;} 17768 doconfig="$SHELL $abssrcdir/csl/wxWidgets/configure -C $wx \ 17769 $pass_host \ 17770 CPPFLAGS=\"$CPPFLAGS -D_GNU_SOURCE=1\" \ 17771 CFLAGS=\"$CFLAGS\" \ 17772 CFLAGS=\"$CFLAGS\" \ 17773 CXXFLAGS=\"$CXXFLAGS\" \ 17774 LDFLAGS=\"$LDFLAGS\" \ 17775 $passcc \ 17776 --disable-shared \ 17777 --enable-unicode \ 17778 --disable-compat28 \ 17779 --enable-monolithic \ 17780 --disable-sys-libs \ 17781 --without-libjpeg \ 17782 --without-libtiff \ 17783 --disable-svg \ 17784 --without-sdl \ 17785 --without-expat \ 17786 --without-libiconv \ 17787 --without-regex \ 17788 --disable-webview \ 17789 --disable-richtext \ 17790 --disable-gif \ 17791 --disable-pcx \ 17792 --enable-graphics_ctx \ 17793 --disable-tga \ 17794 --disable-pnm \ 17795 --enable-dynlib \ 17796 --enable-dynamicloader \ 17797 --prefix=\"$builddir\" \ 17798 --libdir=\"$builddir/lib\" \ 17799 --includedir=\"$builddir/include\"" 17800 if test "x$enable_debug" != "xno" 17801 then 17802 doconfig="$doconfig --enable-debug" 17803 else 17804 doconfig="$doconfig --disable-debug" 17805 fi 17806 if test "x$with_cygwin" != "xno" 17807 then 17808 doconfig="$doconfig --with-gtk" 17809 fi 17810 { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5 17811$as_echo "$as_me: doconfig = $doconfig" >&6;} 17812 if test "x$with_sequential" = "xno" 17813 then 17814 eval "$doconfig" & 17815 jobs 17816 procids="$procids $!" 17817 else 17818 eval "$doconfig" 17819 fi 17820 cd "$builddir" 17821 elif test "x$with_fox" != "xno" 17822 then 17823 { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure FOX" >&5 17824$as_echo "$as_me: About to configure FOX" >&6;} 17825 mkdir -p fox/src 17826 # The Makefile that comes with FOX seems to require these GIF files 17827 # in the build directory. 17828 cp "$abssrcdir/csl/fox/src/"*.gif fox/src 17829 cd fox 17830 if test "x$CC$CPP$CXX$CXXCPP" != "x" 17831 then 17832 passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\"" 17833 else 17834 passcc="" 17835 fi 17836 { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5 17837$as_echo "$as_me: passcc = $passcc" >&6;} 17838 doconfig="$SHELL $abssrcdir/csl/fox/configure -C $ac_configure_args \ 17839 CPPFLAGS=\"$CPPFLAGS\" \ 17840 CFLAGS=\"$CFLAGS\" \ 17841 CXXFLAGS=\"$CXXFLAGS\" \ 17842 LDFLAGS=\"$LDFLAGS\" \ 17843 $passcc \ 17844 $pass_host \ 17845 --enable-release \ 17846 --with-opengl=no \ 17847 --disable-jpeg \ 17848 --disable-zlib \ 17849 --disable-bz2lib \ 17850 --disable-png \ 17851 --disable-tiff \ 17852 --prefix=\"$builddir\" \ 17853 --libdir=\"$builddir/lib\" \ 17854 --includedir=\"$builddir/include\" \ 17855 $extras" 17856 { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5 17857$as_echo "$as_me: doconfig = $doconfig" >&6;} 17858 if test "x$with_sequential" = "xno" 17859 then 17860 eval "$doconfig" & 17861 procids="$procids $!" 17862 else 17863 eval "$doconfig" 17864 fi 17865 cd "$builddir" 17866 fi 17867 17868fi 17869 17870{ $as_echo "$as_me:${as_lineno-$LINENO}: GUI toolkit config spawned" >&5 17871$as_echo "$as_me: GUI toolkit config spawned" >&6;} 17872 17873if test "x$with_crlibm" = "xno" 17874then 17875 { $as_echo "$as_me:${as_lineno-$LINENO}: crlibm will not be used here" >&5 17876$as_echo "$as_me: crlibm will not be used here" >&6;} 17877else 17878 { $as_echo "$as_me:${as_lineno-$LINENO}: About to configure crlibm" >&5 17879$as_echo "$as_me: About to configure crlibm" >&6;} 17880 mkdir -p crlibm 17881 cd crlibm 17882 17883 if test "x$CC$CPP$CXX$CXXCPP" != "x" 17884 then 17885 passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\"" 17886 else 17887 passcc="" 17888 fi 17889 { $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5 17890$as_echo "$as_me: passcc = $passcc" >&6;} 17891 doconfig="$SHELL $abssrcdir/libraries/crlibm/configure -C $filtered \ 17892 $pass_host \ 17893 CPPFLAGS=\"$CPPFLAGS\" \ 17894 CFLAGS=\"$CFLAGS\" \ 17895 CXXFLAGS=\"$CXXFLAGS\" \ 17896 LDFLAGS=\"$LDFLAGS\" \ 17897 $passcc \ 17898 --prefix=\"$builddir\" \ 17899 --libdir=\"$builddir/lib\" \ 17900 --includedir=\"$builddir/include\"" 17901 { $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5 17902$as_echo "$as_me: doconfig = $doconfig" >&6;} 17903 if test "x$with_sequential" = "xno" 17904 then 17905 eval "$doconfig" & 17906 procids="$procids $!" 17907 else 17908 eval "$doconfig" 17909 fi 17910 cd "$builddir" 17911fi 17912 17913{ $as_echo "$as_me:${as_lineno-$LINENO}: About to configure libffi" >&5 17914$as_echo "$as_me: About to configure libffi" >&6;} 17915mkdir -p libffi 17916cd libffi 17917 17918if test "x$CC$CPP$CXX$CXXCPP" != "x" 17919then 17920 passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\"" 17921else 17922 passcc="" 17923fi 17924{ $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5 17925$as_echo "$as_me: passcc = $passcc" >&6;} 17926doconfig="$SHELL $abssrcdir/libraries/libffi/configure -C $filtered \ 17927 $pass_host \ 17928 CPPFLAGS=\"$CPPFLAGS\" \ 17929 CFLAGS=\"$CFLAGS\" \ 17930 CXXFLAGS=\"$CXXFLAGS\" \ 17931 LDFLAGS=\"$LDFLAGS\" \ 17932 $passcc \ 17933 --disable-multi-os-directory \ 17934 --disable-docs \ 17935 --prefix=\"$builddir\" \ 17936 --libdir=\"$builddir/lib\" \ 17937 --includedir=\"$builddir/include\"" 17938{ $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5 17939$as_echo "$as_me: doconfig = $doconfig" >&6;} 17940if test "x$with_sequential" = "xno" 17941then 17942 eval "$doconfig" & 17943 procids="$procids $!" 17944else 17945 eval "$doconfig" 17946fi 17947cd "$builddir" 17948 17949{ $as_echo "$as_me:${as_lineno-$LINENO}: About to configure libsoftfloat" >&5 17950$as_echo "$as_me: About to configure libsoftfloat" >&6;} 17951mkdir -p softfloat 17952cd softfloat 17953 17954if test "x$CC$CPP$CXX$CXXCPP" != "x" 17955then 17956 passcc="CC=\"$CC\" CPP=\"$CPP\" CXX=\"$CXX\" CXXCPP=\"$CXXCPP\"" 17957else 17958 passcc="" 17959fi 17960{ $as_echo "$as_me:${as_lineno-$LINENO}: passcc = $passcc" >&5 17961$as_echo "$as_me: passcc = $passcc" >&6;} 17962 17963# NOTE that there is now a SoftFloat-3e and I should migrate to use of it! 17964 17965doconfig="$SHELL $abssrcdir/libraries/SoftFloat-3a/source/configure -C \ 17966 $filtered \ 17967 $pass_host \ 17968 CPPFLAGS=\"$CPPFLAGS\" \ 17969 CFLAGS=\"$CFLAGS\" \ 17970 CXXFLAGS=\"$CXXFLAGS\" \ 17971 LDFLAGS=\"$LDFLAGS\" \ 17972 $passcc \ 17973 --prefix=\"$builddir\" \ 17974 --libdir=\"$builddir/lib\" \ 17975 --includedir=\"$builddir/include\"" 17976{ $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5 17977$as_echo "$as_me: doconfig = $doconfig" >&6;} 17978if test "x$with_sequential" = "xno" 17979then 17980 eval "$doconfig" & 17981 procids="$procids $!" 17982else 17983 eval "$doconfig" 17984fi 17985 17986cd "$builddir" 17987 17988{ $as_echo "$as_me:${as_lineno-$LINENO}: About to configure libedit" >&5 17989$as_echo "$as_me: About to configure libedit" >&6;} 17990mkdir -p libedit 17991cd libedit 17992 17993doconfig="$SHELL $abssrcdir/libraries/libedit-$LIBEDIT_VERSION/configure -C \ 17994 $nohost \ 17995 CC=\"$CC\" CXX=\"$CXX\" \ 17996 CPPFLAGS=\"$CPPFLAGS\" \ 17997 CFLAGS=\"$CFLAGS\" \ 17998 CXXFLAGS=\"$CXXFLAGS\" \ 17999 LDFLAGS=\"$LDFLAGS\" \ 18000 --enable-widec=yes \ 18001 --prefix=\"$builddir\" \ 18002 --libdir=\"$builddir/lib\" \ 18003 --includedir=\"$builddir/include\"" 18004{ $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5 18005$as_echo "$as_me: doconfig = $doconfig" >&6;} 18006if test "x$with_sequential" = "xno" 18007then 18008 eval "$doconfig" & 18009 procids="$procids $!" 18010else 18011 eval "$doconfig" 18012fi 18013 18014cd "$builddir" 18015 18016ln -f -s $abssrcdir/libraries/wineditline . 18017 18018{ $as_echo "$as_me:${as_lineno-$LINENO}: About to configure redfront" >&5 18019$as_echo "$as_me: About to configure redfront" >&6;} 18020mkdir -p redfront 18021cd redfront 18022 18023doconfig="$SHELL $abssrcdir/generic/newfront/configure -C $nohost \ 18024 CC=\"$CC\" CXX=\"$CXX\" \ 18025 CPPFLAGS=\"$CPPFLAGS\" \ 18026 CFLAGS=\"$CFLAGS\" \ 18027 CXXFLAGS=\"$CXXFLAGS\" \ 18028 LDFLAGS=\"$LDFLAGS\" \ 18029 --prefix=\"$builddir\" \ 18030 --libdir=\"$builddir/lib\" \ 18031 --includedir=\"$builddir/include\"" 18032{ $as_echo "$as_me:${as_lineno-$LINENO}: doconfig = $doconfig" >&5 18033$as_echo "$as_me: doconfig = $doconfig" >&6;} 18034if test "x$with_sequential" = "xno" 18035then 18036 eval "$doconfig" & 18037 procids="$procids $!" 18038else 18039 eval "$doconfig" 18040fi 18041 18042cd "$builddir" 18043 18044{ $as_echo "$as_me:${as_lineno-$LINENO}: All sub-packages have had their configure script launched" >&5 18045$as_echo "$as_me: All sub-packages have had their configure script launched" >&6;} 18046 18047############################################################################### 18048 18049 if test "x$with_csl" != "xno"; then 18050 csl_TRUE= 18051 csl_FALSE='#' 18052else 18053 csl_TRUE='#' 18054 csl_FALSE= 18055fi 18056 18057 if test "x$with_psl" != "xno"; then 18058 psl_TRUE= 18059 psl_FALSE='#' 18060else 18061 psl_TRUE='#' 18062 psl_FALSE= 18063fi 18064 18065 if test "x$with_csl" != "xno" && test "x$with_psl" != "xno"; then 18066 cslpsl_TRUE= 18067 cslpsl_FALSE='#' 18068else 18069 cslpsl_TRUE='#' 18070 cslpsl_FALSE= 18071fi 18072 18073 if test "x$with_fox" != "xno"; then 18074 fox_TRUE= 18075 fox_FALSE='#' 18076else 18077 fox_TRUE='#' 18078 fox_FALSE= 18079fi 18080 18081 if test "x$with_wx" != "xno"; then 18082 wx_TRUE= 18083 wx_FALSE='#' 18084else 18085 wx_TRUE='#' 18086 wx_FALSE= 18087fi 18088 18089 if test "x$with_crlibm" != "xno"; then 18090 crlibm_TRUE= 18091 crlibm_FALSE='#' 18092else 18093 crlibm_TRUE='#' 18094 crlibm_FALSE= 18095fi 18096 18097 18098{ $as_echo "$as_me:${as_lineno-$LINENO}: final output from top level configuration" >&5 18099$as_echo "$as_me: final output from top level configuration" >&6;} 18100 18101cat >confcache <<\_ACEOF 18102# This file is a shell script that caches the results of configure 18103# tests run on this system so they can be shared between configure 18104# scripts and configure runs, see configure's option --config-cache. 18105# It is not useful on other systems. If it contains results you don't 18106# want to keep, you may remove or edit it. 18107# 18108# config.status only pays attention to the cache file if you give it 18109# the --recheck option to rerun configure. 18110# 18111# `ac_cv_env_foo' variables (set or unset) will be overridden when 18112# loading this file, other *unset* `ac_cv_foo' will be assigned the 18113# following values. 18114 18115_ACEOF 18116 18117# The following way of writing the cache mishandles newlines in values, 18118# but we know of no workaround that is simple, portable, and efficient. 18119# So, we kill variables containing newlines. 18120# Ultrix sh set writes to stderr and can't be redirected directly, 18121# and sets the high bit in the cache file unless we assign to the vars. 18122( 18123 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18124 eval ac_val=\$$ac_var 18125 case $ac_val in #( 18126 *${as_nl}*) 18127 case $ac_var in #( 18128 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18129$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18130 esac 18131 case $ac_var in #( 18132 _ | IFS | as_nl) ;; #( 18133 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18134 *) { eval $ac_var=; unset $ac_var;} ;; 18135 esac ;; 18136 esac 18137 done 18138 18139 (set) 2>&1 | 18140 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18141 *${as_nl}ac_space=\ *) 18142 # `set' does not quote correctly, so add quotes: double-quote 18143 # substitution turns \\\\ into \\, and sed turns \\ into \. 18144 sed -n \ 18145 "s/'/'\\\\''/g; 18146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18147 ;; #( 18148 *) 18149 # `set' quotes correctly as required by POSIX, so do not add quotes. 18150 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18151 ;; 18152 esac | 18153 sort 18154) | 18155 sed ' 18156 /^ac_cv_env_/b end 18157 t clear 18158 :clear 18159 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18160 t end 18161 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18162 :end' >>confcache 18163if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18164 if test -w "$cache_file"; then 18165 if test "x$cache_file" != "x/dev/null"; then 18166 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18167$as_echo "$as_me: updating cache $cache_file" >&6;} 18168 if test ! -f "$cache_file" || test -h "$cache_file"; then 18169 cat confcache >"$cache_file" 18170 else 18171 case $cache_file in #( 18172 */* | ?:*) 18173 mv -f confcache "$cache_file"$$ && 18174 mv -f "$cache_file"$$ "$cache_file" ;; #( 18175 *) 18176 mv -f confcache "$cache_file" ;; 18177 esac 18178 fi 18179 fi 18180 else 18181 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18182$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18183 fi 18184fi 18185rm -f confcache 18186 18187test "x$prefix" = xNONE && prefix=$ac_default_prefix 18188# Let make expand exec_prefix. 18189test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18190 18191# Transform confdefs.h into DEFS. 18192# Protect against shell expansion while executing Makefile rules. 18193# Protect against Makefile macro expansion. 18194# 18195# If the first sed substitution is executed (which looks for macros that 18196# take arguments), then branch to the quote section. Otherwise, 18197# look for a macro that doesn't take arguments. 18198ac_script=' 18199:mline 18200/\\$/{ 18201 N 18202 s,\\\n,, 18203 b mline 18204} 18205t clear 18206:clear 18207s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 18208t quote 18209s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 18210t quote 18211b any 18212:quote 18213s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 18214s/\[/\\&/g 18215s/\]/\\&/g 18216s/\$/$$/g 18217H 18218:any 18219${ 18220 g 18221 s/^\n// 18222 s/\n/ /g 18223 p 18224} 18225' 18226DEFS=`sed -n "$ac_script" confdefs.h` 18227 18228 18229ac_libobjs= 18230ac_ltlibobjs= 18231U= 18232for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18233 # 1. Remove the extension, and $U if already installed. 18234 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18235 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18236 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18237 # will be set to the directory where LIBOBJS objects are built. 18238 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18239 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18240done 18241LIBOBJS=$ac_libobjs 18242 18243LTLIBOBJS=$ac_ltlibobjs 18244 18245 18246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18247$as_echo_n "checking that generated files are newer than configure... " >&6; } 18248 if test -n "$am_sleep_pid"; then 18249 # Hide warnings about reused PIDs. 18250 wait $am_sleep_pid 2>/dev/null 18251 fi 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18253$as_echo "done" >&6; } 18254 if test -n "$EXEEXT"; then 18255 am__EXEEXT_TRUE= 18256 am__EXEEXT_FALSE='#' 18257else 18258 am__EXEEXT_TRUE='#' 18259 am__EXEEXT_FALSE= 18260fi 18261 18262if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18263 as_fn_error $? "conditional \"AMDEP\" was never defined. 18264Usually this means the macro was only invoked conditionally." "$LINENO" 5 18265fi 18266if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18267 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18268Usually this means the macro was only invoked conditionally." "$LINENO" 5 18269fi 18270if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18271 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18272Usually this means the macro was only invoked conditionally." "$LINENO" 5 18273fi 18274if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18275 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 18276Usually this means the macro was only invoked conditionally." "$LINENO" 5 18277fi 18278if test -z "${csl_TRUE}" && test -z "${csl_FALSE}"; then 18279 as_fn_error $? "conditional \"csl\" was never defined. 18280Usually this means the macro was only invoked conditionally." "$LINENO" 5 18281fi 18282if test -z "${psl_TRUE}" && test -z "${psl_FALSE}"; then 18283 as_fn_error $? "conditional \"psl\" was never defined. 18284Usually this means the macro was only invoked conditionally." "$LINENO" 5 18285fi 18286if test -z "${cslpsl_TRUE}" && test -z "${cslpsl_FALSE}"; then 18287 as_fn_error $? "conditional \"cslpsl\" was never defined. 18288Usually this means the macro was only invoked conditionally." "$LINENO" 5 18289fi 18290if test -z "${fox_TRUE}" && test -z "${fox_FALSE}"; then 18291 as_fn_error $? "conditional \"fox\" was never defined. 18292Usually this means the macro was only invoked conditionally." "$LINENO" 5 18293fi 18294if test -z "${wx_TRUE}" && test -z "${wx_FALSE}"; then 18295 as_fn_error $? "conditional \"wx\" was never defined. 18296Usually this means the macro was only invoked conditionally." "$LINENO" 5 18297fi 18298if test -z "${crlibm_TRUE}" && test -z "${crlibm_FALSE}"; then 18299 as_fn_error $? "conditional \"crlibm\" was never defined. 18300Usually this means the macro was only invoked conditionally." "$LINENO" 5 18301fi 18302 18303: "${CONFIG_STATUS=./config.status}" 18304ac_write_fail=0 18305ac_clean_files_save=$ac_clean_files 18306ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18307{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18308$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18309as_write_fail=0 18310cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18311#! $SHELL 18312# Generated by $as_me. 18313# Run this file to recreate the current configuration. 18314# Compiler output produced by configure, useful for debugging 18315# configure, is in config.log if it exists. 18316 18317debug=false 18318ac_cs_recheck=false 18319ac_cs_silent=false 18320 18321SHELL=\${CONFIG_SHELL-$SHELL} 18322export SHELL 18323_ASEOF 18324cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18325## -------------------- ## 18326## M4sh Initialization. ## 18327## -------------------- ## 18328 18329# Be more Bourne compatible 18330DUALCASE=1; export DUALCASE # for MKS sh 18331if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18332 emulate sh 18333 NULLCMD=: 18334 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18335 # is contrary to our usage. Disable this feature. 18336 alias -g '${1+"$@"}'='"$@"' 18337 setopt NO_GLOB_SUBST 18338else 18339 case `(set -o) 2>/dev/null` in #( 18340 *posix*) : 18341 set -o posix ;; #( 18342 *) : 18343 ;; 18344esac 18345fi 18346 18347 18348as_nl=' 18349' 18350export as_nl 18351# Printing a long string crashes Solaris 7 /usr/bin/printf. 18352as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18353as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18354as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18355# Prefer a ksh shell builtin over an external printf program on Solaris, 18356# but without wasting forks for bash or zsh. 18357if test -z "$BASH_VERSION$ZSH_VERSION" \ 18358 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18359 as_echo='print -r --' 18360 as_echo_n='print -rn --' 18361elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18362 as_echo='printf %s\n' 18363 as_echo_n='printf %s' 18364else 18365 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18366 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18367 as_echo_n='/usr/ucb/echo -n' 18368 else 18369 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18370 as_echo_n_body='eval 18371 arg=$1; 18372 case $arg in #( 18373 *"$as_nl"*) 18374 expr "X$arg" : "X\\(.*\\)$as_nl"; 18375 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18376 esac; 18377 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18378 ' 18379 export as_echo_n_body 18380 as_echo_n='sh -c $as_echo_n_body as_echo' 18381 fi 18382 export as_echo_body 18383 as_echo='sh -c $as_echo_body as_echo' 18384fi 18385 18386# The user is always right. 18387if test "${PATH_SEPARATOR+set}" != set; then 18388 PATH_SEPARATOR=: 18389 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18390 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18391 PATH_SEPARATOR=';' 18392 } 18393fi 18394 18395 18396# IFS 18397# We need space, tab and new line, in precisely that order. Quoting is 18398# there to prevent editors from complaining about space-tab. 18399# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18400# splitting by setting IFS to empty value.) 18401IFS=" "" $as_nl" 18402 18403# Find who we are. Look in the path if we contain no directory separator. 18404as_myself= 18405case $0 in #(( 18406 *[\\/]* ) as_myself=$0 ;; 18407 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18408for as_dir in $PATH 18409do 18410 IFS=$as_save_IFS 18411 test -z "$as_dir" && as_dir=. 18412 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18413 done 18414IFS=$as_save_IFS 18415 18416 ;; 18417esac 18418# We did not find ourselves, most probably we were run as `sh COMMAND' 18419# in which case we are not to be found in the path. 18420if test "x$as_myself" = x; then 18421 as_myself=$0 18422fi 18423if test ! -f "$as_myself"; then 18424 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18425 exit 1 18426fi 18427 18428# Unset variables that we do not need and which cause bugs (e.g. in 18429# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18430# suppresses any "Segmentation fault" message there. '((' could 18431# trigger a bug in pdksh 5.2.14. 18432for as_var in BASH_ENV ENV MAIL MAILPATH 18433do eval test x\${$as_var+set} = xset \ 18434 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18435done 18436PS1='$ ' 18437PS2='> ' 18438PS4='+ ' 18439 18440# NLS nuisances. 18441LC_ALL=C 18442export LC_ALL 18443LANGUAGE=C 18444export LANGUAGE 18445 18446# CDPATH. 18447(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18448 18449 18450# as_fn_error STATUS ERROR [LINENO LOG_FD] 18451# ---------------------------------------- 18452# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18453# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18454# script with STATUS, using 1 if that was 0. 18455as_fn_error () 18456{ 18457 as_status=$1; test $as_status -eq 0 && as_status=1 18458 if test "$4"; then 18459 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18460 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18461 fi 18462 $as_echo "$as_me: error: $2" >&2 18463 as_fn_exit $as_status 18464} # as_fn_error 18465 18466 18467# as_fn_set_status STATUS 18468# ----------------------- 18469# Set $? to STATUS, without forking. 18470as_fn_set_status () 18471{ 18472 return $1 18473} # as_fn_set_status 18474 18475# as_fn_exit STATUS 18476# ----------------- 18477# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18478as_fn_exit () 18479{ 18480 set +e 18481 as_fn_set_status $1 18482 exit $1 18483} # as_fn_exit 18484 18485# as_fn_unset VAR 18486# --------------- 18487# Portably unset VAR. 18488as_fn_unset () 18489{ 18490 { eval $1=; unset $1;} 18491} 18492as_unset=as_fn_unset 18493# as_fn_append VAR VALUE 18494# ---------------------- 18495# Append the text in VALUE to the end of the definition contained in VAR. Take 18496# advantage of any shell optimizations that allow amortized linear growth over 18497# repeated appends, instead of the typical quadratic growth present in naive 18498# implementations. 18499if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18500 eval 'as_fn_append () 18501 { 18502 eval $1+=\$2 18503 }' 18504else 18505 as_fn_append () 18506 { 18507 eval $1=\$$1\$2 18508 } 18509fi # as_fn_append 18510 18511# as_fn_arith ARG... 18512# ------------------ 18513# Perform arithmetic evaluation on the ARGs, and store the result in the 18514# global $as_val. Take advantage of shells that can avoid forks. The arguments 18515# must be portable across $(()) and expr. 18516if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18517 eval 'as_fn_arith () 18518 { 18519 as_val=$(( $* )) 18520 }' 18521else 18522 as_fn_arith () 18523 { 18524 as_val=`expr "$@" || test $? -eq 1` 18525 } 18526fi # as_fn_arith 18527 18528 18529if expr a : '\(a\)' >/dev/null 2>&1 && 18530 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18531 as_expr=expr 18532else 18533 as_expr=false 18534fi 18535 18536if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18537 as_basename=basename 18538else 18539 as_basename=false 18540fi 18541 18542if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18543 as_dirname=dirname 18544else 18545 as_dirname=false 18546fi 18547 18548as_me=`$as_basename -- "$0" || 18549$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18550 X"$0" : 'X\(//\)$' \| \ 18551 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18552$as_echo X/"$0" | 18553 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18554 s//\1/ 18555 q 18556 } 18557 /^X\/\(\/\/\)$/{ 18558 s//\1/ 18559 q 18560 } 18561 /^X\/\(\/\).*/{ 18562 s//\1/ 18563 q 18564 } 18565 s/.*/./; q'` 18566 18567# Avoid depending upon Character Ranges. 18568as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18569as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18570as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18571as_cr_digits='0123456789' 18572as_cr_alnum=$as_cr_Letters$as_cr_digits 18573 18574ECHO_C= ECHO_N= ECHO_T= 18575case `echo -n x` in #((((( 18576-n*) 18577 case `echo 'xy\c'` in 18578 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18579 xy) ECHO_C='\c';; 18580 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18581 ECHO_T=' ';; 18582 esac;; 18583*) 18584 ECHO_N='-n';; 18585esac 18586 18587rm -f conf$$ conf$$.exe conf$$.file 18588if test -d conf$$.dir; then 18589 rm -f conf$$.dir/conf$$.file 18590else 18591 rm -f conf$$.dir 18592 mkdir conf$$.dir 2>/dev/null 18593fi 18594if (echo >conf$$.file) 2>/dev/null; then 18595 if ln -s conf$$.file conf$$ 2>/dev/null; then 18596 as_ln_s='ln -s' 18597 # ... but there are two gotchas: 18598 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18599 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18600 # In both cases, we have to default to `cp -pR'. 18601 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18602 as_ln_s='cp -pR' 18603 elif ln conf$$.file conf$$ 2>/dev/null; then 18604 as_ln_s=ln 18605 else 18606 as_ln_s='cp -pR' 18607 fi 18608else 18609 as_ln_s='cp -pR' 18610fi 18611rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18612rmdir conf$$.dir 2>/dev/null 18613 18614 18615# as_fn_mkdir_p 18616# ------------- 18617# Create "$as_dir" as a directory, including parents if necessary. 18618as_fn_mkdir_p () 18619{ 18620 18621 case $as_dir in #( 18622 -*) as_dir=./$as_dir;; 18623 esac 18624 test -d "$as_dir" || eval $as_mkdir_p || { 18625 as_dirs= 18626 while :; do 18627 case $as_dir in #( 18628 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18629 *) as_qdir=$as_dir;; 18630 esac 18631 as_dirs="'$as_qdir' $as_dirs" 18632 as_dir=`$as_dirname -- "$as_dir" || 18633$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18634 X"$as_dir" : 'X\(//\)[^/]' \| \ 18635 X"$as_dir" : 'X\(//\)$' \| \ 18636 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18637$as_echo X"$as_dir" | 18638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18639 s//\1/ 18640 q 18641 } 18642 /^X\(\/\/\)[^/].*/{ 18643 s//\1/ 18644 q 18645 } 18646 /^X\(\/\/\)$/{ 18647 s//\1/ 18648 q 18649 } 18650 /^X\(\/\).*/{ 18651 s//\1/ 18652 q 18653 } 18654 s/.*/./; q'` 18655 test -d "$as_dir" && break 18656 done 18657 test -z "$as_dirs" || eval "mkdir $as_dirs" 18658 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18659 18660 18661} # as_fn_mkdir_p 18662if mkdir -p . 2>/dev/null; then 18663 as_mkdir_p='mkdir -p "$as_dir"' 18664else 18665 test -d ./-p && rmdir ./-p 18666 as_mkdir_p=false 18667fi 18668 18669 18670# as_fn_executable_p FILE 18671# ----------------------- 18672# Test if FILE is an executable regular file. 18673as_fn_executable_p () 18674{ 18675 test -f "$1" && test -x "$1" 18676} # as_fn_executable_p 18677as_test_x='test -x' 18678as_executable_p=as_fn_executable_p 18679 18680# Sed expression to map a string onto a valid CPP name. 18681as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18682 18683# Sed expression to map a string onto a valid variable name. 18684as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18685 18686 18687exec 6>&1 18688## ----------------------------------- ## 18689## Main body of $CONFIG_STATUS script. ## 18690## ----------------------------------- ## 18691_ASEOF 18692test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18693 18694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18695# Save the log message, to keep $0 and so on meaningful, and to 18696# report actual input values of CONFIG_FILES etc. instead of their 18697# values after options handling. 18698ac_log=" 18699This file was extended by REDUCE $as_me from SourceForge, which was 18700generated by GNU Autoconf 2.69. Invocation command line was 18701 18702 CONFIG_FILES = $CONFIG_FILES 18703 CONFIG_HEADERS = $CONFIG_HEADERS 18704 CONFIG_LINKS = $CONFIG_LINKS 18705 CONFIG_COMMANDS = $CONFIG_COMMANDS 18706 $ $0 $@ 18707 18708on `(hostname || uname -n) 2>/dev/null | sed 1q` 18709" 18710 18711_ACEOF 18712 18713case $ac_config_files in *" 18714"*) set x $ac_config_files; shift; ac_config_files=$*;; 18715esac 18716 18717 18718 18719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18720# Files that config.status was made for. 18721config_files="$ac_config_files" 18722config_commands="$ac_config_commands" 18723 18724_ACEOF 18725 18726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18727ac_cs_usage="\ 18728\`$as_me' instantiates files and other configuration actions 18729from templates according to the current configuration. Unless the files 18730and actions are specified as TAGs, all are instantiated by default. 18731 18732Usage: $0 [OPTION]... [TAG]... 18733 18734 -h, --help print this help, then exit 18735 -V, --version print version number and configuration settings, then exit 18736 --config print configuration, then exit 18737 -q, --quiet, --silent 18738 do not print progress messages 18739 -d, --debug don't remove temporary files 18740 --recheck update $as_me by reconfiguring in the same conditions 18741 --file=FILE[:TEMPLATE] 18742 instantiate the configuration file FILE 18743 18744Configuration files: 18745$config_files 18746 18747Configuration commands: 18748$config_commands 18749 18750Report bugs to <acn1@cam.ac.uk>." 18751 18752_ACEOF 18753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18754ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18755ac_cs_version="\\ 18756REDUCE config.status from SourceForge 18757configured by $0, generated by GNU Autoconf 2.69, 18758 with options \\"\$ac_cs_config\\" 18759 18760Copyright (C) 2012 Free Software Foundation, Inc. 18761This config.status script is free software; the Free Software Foundation 18762gives unlimited permission to copy, distribute and modify it." 18763 18764ac_pwd='$ac_pwd' 18765srcdir='$srcdir' 18766INSTALL='$INSTALL' 18767MKDIR_P='$MKDIR_P' 18768AWK='$AWK' 18769test -n "\$AWK" || AWK=awk 18770_ACEOF 18771 18772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18773# The default lists apply if the user does not specify any file. 18774ac_need_defaults=: 18775while test $# != 0 18776do 18777 case $1 in 18778 --*=?*) 18779 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18780 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18781 ac_shift=: 18782 ;; 18783 --*=) 18784 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18785 ac_optarg= 18786 ac_shift=: 18787 ;; 18788 *) 18789 ac_option=$1 18790 ac_optarg=$2 18791 ac_shift=shift 18792 ;; 18793 esac 18794 18795 case $ac_option in 18796 # Handling of the options. 18797 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18798 ac_cs_recheck=: ;; 18799 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18800 $as_echo "$ac_cs_version"; exit ;; 18801 --config | --confi | --conf | --con | --co | --c ) 18802 $as_echo "$ac_cs_config"; exit ;; 18803 --debug | --debu | --deb | --de | --d | -d ) 18804 debug=: ;; 18805 --file | --fil | --fi | --f ) 18806 $ac_shift 18807 case $ac_optarg in 18808 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18809 '') as_fn_error $? "missing file argument" ;; 18810 esac 18811 as_fn_append CONFIG_FILES " '$ac_optarg'" 18812 ac_need_defaults=false;; 18813 --he | --h | --help | --hel | -h ) 18814 $as_echo "$ac_cs_usage"; exit ;; 18815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18816 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18817 ac_cs_silent=: ;; 18818 18819 # This is an error. 18820 -*) as_fn_error $? "unrecognized option: \`$1' 18821Try \`$0 --help' for more information." ;; 18822 18823 *) as_fn_append ac_config_targets " $1" 18824 ac_need_defaults=false ;; 18825 18826 esac 18827 shift 18828done 18829 18830ac_configure_extra_args= 18831 18832if $ac_cs_silent; then 18833 exec 6>/dev/null 18834 ac_configure_extra_args="$ac_configure_extra_args --silent" 18835fi 18836 18837_ACEOF 18838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18839if \$ac_cs_recheck; then 18840 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18841 shift 18842 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18843 CONFIG_SHELL='$SHELL' 18844 export CONFIG_SHELL 18845 exec "\$@" 18846fi 18847 18848_ACEOF 18849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18850exec 5>>config.log 18851{ 18852 echo 18853 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18854## Running $as_me. ## 18855_ASBOX 18856 $as_echo "$ac_log" 18857} >&5 18858 18859_ACEOF 18860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18861# 18862# INIT-COMMANDS 18863# 18864AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18865 18866 18867# The HP-UX ksh and POSIX shell print the target directory to stdout 18868# if CDPATH is set. 18869(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18870 18871sed_quote_subst='$sed_quote_subst' 18872double_quote_subst='$double_quote_subst' 18873delay_variable_subst='$delay_variable_subst' 18874macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18875macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18876enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18877enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18878pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18879enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18880shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18881SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18882ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18883PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18884host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18885host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18886host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18887build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18888build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18889build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18890SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18891Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18892GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18893EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18894FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18895LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18896NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18897LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18898max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18899ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18900exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18901lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18902lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18903lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18904lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18905lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18906reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18907reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18908OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18909deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18910file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18911file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18912want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18913DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18914sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18915AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18916AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18917archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18918STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18919RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18920old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18921old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18922old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18923lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18924CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18925CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18926compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18927GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18928lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18929lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18930lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18931lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18932lt_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"`' 18933lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18934nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18935lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18936lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18937objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18938MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18939lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18940lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18941lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18942lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18943lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18944need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18945MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18946DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18947NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18948LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18949OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18950OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18951libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18952shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18953extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18954archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18955enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18956export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18957whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18958compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18959old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18960old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18961archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18962archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18963module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18964module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18965with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18966allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18967no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18968hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18969hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18970hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18971hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18972hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18973hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18974hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18975inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18976link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18977always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18978export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18979exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18980include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18981prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18982postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18983file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18984variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18985need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18986need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18987version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18988runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18989shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18990shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18991libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18992library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18993soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18994install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18995postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18996postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18997finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18998finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18999hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19000sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19001configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19002configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19003hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19004enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19005enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19006enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19007old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19008striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19009compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 19010predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 19011postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 19012predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 19013postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 19014compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 19015LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 19016reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 19017reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19018old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19019compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 19020GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 19021lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 19022lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 19023lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 19024lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 19025lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 19026archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 19027enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 19028export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19029whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19030compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 19031old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19032old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19033archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19034archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19035module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19036module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19037with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 19038allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19039no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19040hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19041hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 19042hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 19043hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 19044hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 19045hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 19046hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 19047inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 19048link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 19049always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 19050export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19051exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19052include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19053prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19054postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19055file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 19056hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 19057compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 19058predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19059postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19060predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 19061postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 19062compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 19063 19064LTCC='$LTCC' 19065LTCFLAGS='$LTCFLAGS' 19066compiler='$compiler_DEFAULT' 19067 19068# A function that is used when there is no print builtin or printf. 19069func_fallback_echo () 19070{ 19071 eval 'cat <<_LTECHO_EOF 19072\$1 19073_LTECHO_EOF' 19074} 19075 19076# Quote evaled strings. 19077for var in SHELL \ 19078ECHO \ 19079PATH_SEPARATOR \ 19080SED \ 19081GREP \ 19082EGREP \ 19083FGREP \ 19084LD \ 19085NM \ 19086LN_S \ 19087lt_SP2NL \ 19088lt_NL2SP \ 19089reload_flag \ 19090OBJDUMP \ 19091deplibs_check_method \ 19092file_magic_cmd \ 19093file_magic_glob \ 19094want_nocaseglob \ 19095DLLTOOL \ 19096sharedlib_from_linklib_cmd \ 19097AR \ 19098AR_FLAGS \ 19099archiver_list_spec \ 19100STRIP \ 19101RANLIB \ 19102CC \ 19103CFLAGS \ 19104compiler \ 19105lt_cv_sys_global_symbol_pipe \ 19106lt_cv_sys_global_symbol_to_cdecl \ 19107lt_cv_sys_global_symbol_to_import \ 19108lt_cv_sys_global_symbol_to_c_name_address \ 19109lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19110lt_cv_nm_interface \ 19111nm_file_list_spec \ 19112lt_cv_truncate_bin \ 19113lt_prog_compiler_no_builtin_flag \ 19114lt_prog_compiler_pic \ 19115lt_prog_compiler_wl \ 19116lt_prog_compiler_static \ 19117lt_cv_prog_compiler_c_o \ 19118need_locks \ 19119MANIFEST_TOOL \ 19120DSYMUTIL \ 19121NMEDIT \ 19122LIPO \ 19123OTOOL \ 19124OTOOL64 \ 19125shrext_cmds \ 19126export_dynamic_flag_spec \ 19127whole_archive_flag_spec \ 19128compiler_needs_object \ 19129with_gnu_ld \ 19130allow_undefined_flag \ 19131no_undefined_flag \ 19132hardcode_libdir_flag_spec \ 19133hardcode_libdir_separator \ 19134exclude_expsyms \ 19135include_expsyms \ 19136file_list_spec \ 19137variables_saved_for_relink \ 19138libname_spec \ 19139library_names_spec \ 19140soname_spec \ 19141install_override_mode \ 19142finish_eval \ 19143old_striplib \ 19144striplib \ 19145compiler_lib_search_dirs \ 19146predep_objects \ 19147postdep_objects \ 19148predeps \ 19149postdeps \ 19150compiler_lib_search_path \ 19151LD_CXX \ 19152reload_flag_CXX \ 19153compiler_CXX \ 19154lt_prog_compiler_no_builtin_flag_CXX \ 19155lt_prog_compiler_pic_CXX \ 19156lt_prog_compiler_wl_CXX \ 19157lt_prog_compiler_static_CXX \ 19158lt_cv_prog_compiler_c_o_CXX \ 19159export_dynamic_flag_spec_CXX \ 19160whole_archive_flag_spec_CXX \ 19161compiler_needs_object_CXX \ 19162with_gnu_ld_CXX \ 19163allow_undefined_flag_CXX \ 19164no_undefined_flag_CXX \ 19165hardcode_libdir_flag_spec_CXX \ 19166hardcode_libdir_separator_CXX \ 19167exclude_expsyms_CXX \ 19168include_expsyms_CXX \ 19169file_list_spec_CXX \ 19170compiler_lib_search_dirs_CXX \ 19171predep_objects_CXX \ 19172postdep_objects_CXX \ 19173predeps_CXX \ 19174postdeps_CXX \ 19175compiler_lib_search_path_CXX; do 19176 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19177 *[\\\\\\\`\\"\\\$]*) 19178 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19179 ;; 19180 *) 19181 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19182 ;; 19183 esac 19184done 19185 19186# Double-quote double-evaled strings. 19187for var in reload_cmds \ 19188old_postinstall_cmds \ 19189old_postuninstall_cmds \ 19190old_archive_cmds \ 19191extract_expsyms_cmds \ 19192old_archive_from_new_cmds \ 19193old_archive_from_expsyms_cmds \ 19194archive_cmds \ 19195archive_expsym_cmds \ 19196module_cmds \ 19197module_expsym_cmds \ 19198export_symbols_cmds \ 19199prelink_cmds \ 19200postlink_cmds \ 19201postinstall_cmds \ 19202postuninstall_cmds \ 19203finish_cmds \ 19204sys_lib_search_path_spec \ 19205configure_time_dlsearch_path \ 19206configure_time_lt_sys_library_path \ 19207reload_cmds_CXX \ 19208old_archive_cmds_CXX \ 19209old_archive_from_new_cmds_CXX \ 19210old_archive_from_expsyms_cmds_CXX \ 19211archive_cmds_CXX \ 19212archive_expsym_cmds_CXX \ 19213module_cmds_CXX \ 19214module_expsym_cmds_CXX \ 19215export_symbols_cmds_CXX \ 19216prelink_cmds_CXX \ 19217postlink_cmds_CXX; do 19218 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19219 *[\\\\\\\`\\"\\\$]*) 19220 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19221 ;; 19222 *) 19223 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19224 ;; 19225 esac 19226done 19227 19228ac_aux_dir='$ac_aux_dir' 19229 19230# See if we are running on zsh, and set the options that allow our 19231# commands through without removal of \ escapes INIT. 19232if test -n "\${ZSH_VERSION+set}"; then 19233 setopt NO_GLOB_SUBST 19234fi 19235 19236 19237 PACKAGE='$PACKAGE' 19238 VERSION='$VERSION' 19239 RM='$RM' 19240 ofile='$ofile' 19241 19242 19243 19244 19245 19246 19247_ACEOF 19248 19249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19250 19251# Handling of arguments. 19252for ac_config_target in $ac_config_targets 19253do 19254 case $ac_config_target in 19255 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19256 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19257 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19258 19259 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19260 esac 19261done 19262 19263 19264# If the user did not use the arguments to specify the items to instantiate, 19265# then the envvar interface is used. Set only those that are not. 19266# We use the long form for the default assignment because of an extremely 19267# bizarre bug on SunOS 4.1.3. 19268if $ac_need_defaults; then 19269 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19270 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19271fi 19272 19273# Have a temporary directory for convenience. Make it in the build tree 19274# simply because there is no reason against having it here, and in addition, 19275# creating and moving files from /tmp can sometimes cause problems. 19276# Hook for its removal unless debugging. 19277# Note that there is a small window in which the directory will not be cleaned: 19278# after its creation but before its name has been assigned to `$tmp'. 19279$debug || 19280{ 19281 tmp= ac_tmp= 19282 trap 'exit_status=$? 19283 : "${ac_tmp:=$tmp}" 19284 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19285' 0 19286 trap 'as_fn_exit 1' 1 2 13 15 19287} 19288# Create a (secure) tmp directory for tmp files. 19289 19290{ 19291 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19292 test -d "$tmp" 19293} || 19294{ 19295 tmp=./conf$$-$RANDOM 19296 (umask 077 && mkdir "$tmp") 19297} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19298ac_tmp=$tmp 19299 19300# Set up the scripts for CONFIG_FILES section. 19301# No need to generate them if there are no CONFIG_FILES. 19302# This happens for instance with `./config.status config.h'. 19303if test -n "$CONFIG_FILES"; then 19304 19305 19306ac_cr=`echo X | tr X '\015'` 19307# On cygwin, bash can eat \r inside `` if the user requested igncr. 19308# But we know of no other shell where ac_cr would be empty at this 19309# point, so we can use a bashism as a fallback. 19310if test "x$ac_cr" = x; then 19311 eval ac_cr=\$\'\\r\' 19312fi 19313ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19314if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19315 ac_cs_awk_cr='\\r' 19316else 19317 ac_cs_awk_cr=$ac_cr 19318fi 19319 19320echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19321_ACEOF 19322 19323 19324{ 19325 echo "cat >conf$$subs.awk <<_ACEOF" && 19326 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19327 echo "_ACEOF" 19328} >conf$$subs.sh || 19329 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19330ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19331ac_delim='%!_!# ' 19332for ac_last_try in false false false false false :; do 19333 . ./conf$$subs.sh || 19334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19335 19336 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19337 if test $ac_delim_n = $ac_delim_num; then 19338 break 19339 elif $ac_last_try; then 19340 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19341 else 19342 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19343 fi 19344done 19345rm -f conf$$subs.sh 19346 19347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19348cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19349_ACEOF 19350sed -n ' 19351h 19352s/^/S["/; s/!.*/"]=/ 19353p 19354g 19355s/^[^!]*!// 19356:repl 19357t repl 19358s/'"$ac_delim"'$// 19359t delim 19360:nl 19361h 19362s/\(.\{148\}\)..*/\1/ 19363t more1 19364s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19365p 19366n 19367b repl 19368:more1 19369s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19370p 19371g 19372s/.\{148\}// 19373t nl 19374:delim 19375h 19376s/\(.\{148\}\)..*/\1/ 19377t more2 19378s/["\\]/\\&/g; s/^/"/; s/$/"/ 19379p 19380b 19381:more2 19382s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19383p 19384g 19385s/.\{148\}// 19386t delim 19387' <conf$$subs.awk | sed ' 19388/^[^""]/{ 19389 N 19390 s/\n// 19391} 19392' >>$CONFIG_STATUS || ac_write_fail=1 19393rm -f conf$$subs.awk 19394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19395_ACAWK 19396cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19397 for (key in S) S_is_set[key] = 1 19398 FS = "" 19399 19400} 19401{ 19402 line = $ 0 19403 nfields = split(line, field, "@") 19404 substed = 0 19405 len = length(field[1]) 19406 for (i = 2; i < nfields; i++) { 19407 key = field[i] 19408 keylen = length(key) 19409 if (S_is_set[key]) { 19410 value = S[key] 19411 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19412 len += length(value) + length(field[++i]) 19413 substed = 1 19414 } else 19415 len += 1 + keylen 19416 } 19417 19418 print line 19419} 19420 19421_ACAWK 19422_ACEOF 19423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19424if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19425 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19426else 19427 cat 19428fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19429 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19430_ACEOF 19431 19432# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19433# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19434# trailing colons and then remove the whole line if VPATH becomes empty 19435# (actually we leave an empty line to preserve line numbers). 19436if test "x$srcdir" = x.; then 19437 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19438h 19439s/// 19440s/^/:/ 19441s/[ ]*$/:/ 19442s/:\$(srcdir):/:/g 19443s/:\${srcdir}:/:/g 19444s/:@srcdir@:/:/g 19445s/^:*// 19446s/:*$// 19447x 19448s/\(=[ ]*\).*/\1/ 19449G 19450s/\n// 19451s/^[^=]*=[ ]*$// 19452}' 19453fi 19454 19455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19456fi # test -n "$CONFIG_FILES" 19457 19458 19459eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 19460shift 19461for ac_tag 19462do 19463 case $ac_tag in 19464 :[FHLC]) ac_mode=$ac_tag; continue;; 19465 esac 19466 case $ac_mode$ac_tag in 19467 :[FHL]*:*);; 19468 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19469 :[FH]-) ac_tag=-:-;; 19470 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19471 esac 19472 ac_save_IFS=$IFS 19473 IFS=: 19474 set x $ac_tag 19475 IFS=$ac_save_IFS 19476 shift 19477 ac_file=$1 19478 shift 19479 19480 case $ac_mode in 19481 :L) ac_source=$1;; 19482 :[FH]) 19483 ac_file_inputs= 19484 for ac_f 19485 do 19486 case $ac_f in 19487 -) ac_f="$ac_tmp/stdin";; 19488 *) # Look for the file first in the build tree, then in the source tree 19489 # (if the path is not absolute). The absolute path cannot be DOS-style, 19490 # because $ac_f cannot contain `:'. 19491 test -f "$ac_f" || 19492 case $ac_f in 19493 [\\/$]*) false;; 19494 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19495 esac || 19496 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19497 esac 19498 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19499 as_fn_append ac_file_inputs " '$ac_f'" 19500 done 19501 19502 # Let's still pretend it is `configure' which instantiates (i.e., don't 19503 # use $as_me), people would be surprised to read: 19504 # /* config.h. Generated by config.status. */ 19505 configure_input='Generated from '` 19506 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19507 `' by configure.' 19508 if test x"$ac_file" != x-; then 19509 configure_input="$ac_file. $configure_input" 19510 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19511$as_echo "$as_me: creating $ac_file" >&6;} 19512 fi 19513 # Neutralize special characters interpreted by sed in replacement strings. 19514 case $configure_input in #( 19515 *\&* | *\|* | *\\* ) 19516 ac_sed_conf_input=`$as_echo "$configure_input" | 19517 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19518 *) ac_sed_conf_input=$configure_input;; 19519 esac 19520 19521 case $ac_tag in 19522 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19524 esac 19525 ;; 19526 esac 19527 19528 ac_dir=`$as_dirname -- "$ac_file" || 19529$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19530 X"$ac_file" : 'X\(//\)[^/]' \| \ 19531 X"$ac_file" : 'X\(//\)$' \| \ 19532 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19533$as_echo X"$ac_file" | 19534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19535 s//\1/ 19536 q 19537 } 19538 /^X\(\/\/\)[^/].*/{ 19539 s//\1/ 19540 q 19541 } 19542 /^X\(\/\/\)$/{ 19543 s//\1/ 19544 q 19545 } 19546 /^X\(\/\).*/{ 19547 s//\1/ 19548 q 19549 } 19550 s/.*/./; q'` 19551 as_dir="$ac_dir"; as_fn_mkdir_p 19552 ac_builddir=. 19553 19554case "$ac_dir" in 19555.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19556*) 19557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19558 # A ".." for each directory in $ac_dir_suffix. 19559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19560 case $ac_top_builddir_sub in 19561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19563 esac ;; 19564esac 19565ac_abs_top_builddir=$ac_pwd 19566ac_abs_builddir=$ac_pwd$ac_dir_suffix 19567# for backward compatibility: 19568ac_top_builddir=$ac_top_build_prefix 19569 19570case $srcdir in 19571 .) # We are building in place. 19572 ac_srcdir=. 19573 ac_top_srcdir=$ac_top_builddir_sub 19574 ac_abs_top_srcdir=$ac_pwd ;; 19575 [\\/]* | ?:[\\/]* ) # Absolute name. 19576 ac_srcdir=$srcdir$ac_dir_suffix; 19577 ac_top_srcdir=$srcdir 19578 ac_abs_top_srcdir=$srcdir ;; 19579 *) # Relative name. 19580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19581 ac_top_srcdir=$ac_top_build_prefix$srcdir 19582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19583esac 19584ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19585 19586 19587 case $ac_mode in 19588 :F) 19589 # 19590 # CONFIG_FILE 19591 # 19592 19593 case $INSTALL in 19594 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19595 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19596 esac 19597 ac_MKDIR_P=$MKDIR_P 19598 case $MKDIR_P in 19599 [\\/$]* | ?:[\\/]* ) ;; 19600 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19601 esac 19602_ACEOF 19603 19604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19605# If the template does not know about datarootdir, expand it. 19606# FIXME: This hack should be removed a few years after 2.60. 19607ac_datarootdir_hack=; ac_datarootdir_seen= 19608ac_sed_dataroot=' 19609/datarootdir/ { 19610 p 19611 q 19612} 19613/@datadir@/p 19614/@docdir@/p 19615/@infodir@/p 19616/@localedir@/p 19617/@mandir@/p' 19618case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19619*datarootdir*) ac_datarootdir_seen=yes;; 19620*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19622$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19623_ACEOF 19624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19625 ac_datarootdir_hack=' 19626 s&@datadir@&$datadir&g 19627 s&@docdir@&$docdir&g 19628 s&@infodir@&$infodir&g 19629 s&@localedir@&$localedir&g 19630 s&@mandir@&$mandir&g 19631 s&\\\${datarootdir}&$datarootdir&g' ;; 19632esac 19633_ACEOF 19634 19635# Neutralize VPATH when `$srcdir' = `.'. 19636# Shell code in configure.ac might set extrasub. 19637# FIXME: do we really want to maintain this feature? 19638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19639ac_sed_extra="$ac_vpsub 19640$extrasub 19641_ACEOF 19642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19643:t 19644/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19645s|@configure_input@|$ac_sed_conf_input|;t t 19646s&@top_builddir@&$ac_top_builddir_sub&;t t 19647s&@top_build_prefix@&$ac_top_build_prefix&;t t 19648s&@srcdir@&$ac_srcdir&;t t 19649s&@abs_srcdir@&$ac_abs_srcdir&;t t 19650s&@top_srcdir@&$ac_top_srcdir&;t t 19651s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19652s&@builddir@&$ac_builddir&;t t 19653s&@abs_builddir@&$ac_abs_builddir&;t t 19654s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19655s&@INSTALL@&$ac_INSTALL&;t t 19656s&@MKDIR_P@&$ac_MKDIR_P&;t t 19657$ac_datarootdir_hack 19658" 19659eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19660 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19661 19662test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19663 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19665 "$ac_tmp/out"`; test -z "$ac_out"; } && 19666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19667which seems to be undefined. Please make sure it is defined" >&5 19668$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19669which seems to be undefined. Please make sure it is defined" >&2;} 19670 19671 rm -f "$ac_tmp/stdin" 19672 case $ac_file in 19673 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19674 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19675 esac \ 19676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19677 ;; 19678 19679 19680 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19681$as_echo "$as_me: executing $ac_file commands" >&6;} 19682 ;; 19683 esac 19684 19685 19686 case $ac_file$ac_mode in 19687 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19688 # Older Autoconf quotes --file arguments for eval, but not when files 19689 # are listed without --file. Let's play safe and only enable the eval 19690 # if we detect the quoting. 19691 case $CONFIG_FILES in 19692 *\'*) eval set x "$CONFIG_FILES" ;; 19693 *) set x $CONFIG_FILES ;; 19694 esac 19695 shift 19696 for mf 19697 do 19698 # Strip MF so we end up with the name of the file. 19699 mf=`echo "$mf" | sed -e 's/:.*$//'` 19700 # Check whether this is an Automake generated Makefile or not. 19701 # We used to match only the files named 'Makefile.in', but 19702 # some people rename them; so instead we look at the file content. 19703 # Grep'ing the first line is not enough: some people post-process 19704 # each Makefile.in and add a new line on top of each file to say so. 19705 # Grep'ing the whole file is not good either: AIX grep has a line 19706 # limit of 2048, but all sed's we know have understand at least 4000. 19707 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19708 dirpart=`$as_dirname -- "$mf" || 19709$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19710 X"$mf" : 'X\(//\)[^/]' \| \ 19711 X"$mf" : 'X\(//\)$' \| \ 19712 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19713$as_echo X"$mf" | 19714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19715 s//\1/ 19716 q 19717 } 19718 /^X\(\/\/\)[^/].*/{ 19719 s//\1/ 19720 q 19721 } 19722 /^X\(\/\/\)$/{ 19723 s//\1/ 19724 q 19725 } 19726 /^X\(\/\).*/{ 19727 s//\1/ 19728 q 19729 } 19730 s/.*/./; q'` 19731 else 19732 continue 19733 fi 19734 # Extract the definition of DEPDIR, am__include, and am__quote 19735 # from the Makefile without running 'make'. 19736 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19737 test -z "$DEPDIR" && continue 19738 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19739 test -z "$am__include" && continue 19740 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19741 # Find all dependency output files, they are included files with 19742 # $(DEPDIR) in their names. We invoke sed twice because it is the 19743 # simplest approach to changing $(DEPDIR) to its actual value in the 19744 # expansion. 19745 for file in `sed -n " 19746 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19747 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19748 # Make sure the directory exists. 19749 test -f "$dirpart/$file" && continue 19750 fdir=`$as_dirname -- "$file" || 19751$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19752 X"$file" : 'X\(//\)[^/]' \| \ 19753 X"$file" : 'X\(//\)$' \| \ 19754 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19755$as_echo X"$file" | 19756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19757 s//\1/ 19758 q 19759 } 19760 /^X\(\/\/\)[^/].*/{ 19761 s//\1/ 19762 q 19763 } 19764 /^X\(\/\/\)$/{ 19765 s//\1/ 19766 q 19767 } 19768 /^X\(\/\).*/{ 19769 s//\1/ 19770 q 19771 } 19772 s/.*/./; q'` 19773 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19774 # echo "creating $dirpart/$file" 19775 echo '# dummy' > "$dirpart/$file" 19776 done 19777 done 19778} 19779 ;; 19780 "libtool":C) 19781 19782 # See if we are running on zsh, and set the options that allow our 19783 # commands through without removal of \ escapes. 19784 if test -n "${ZSH_VERSION+set}"; then 19785 setopt NO_GLOB_SUBST 19786 fi 19787 19788 cfgfile=${ofile}T 19789 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19790 $RM "$cfgfile" 19791 19792 cat <<_LT_EOF >> "$cfgfile" 19793#! $SHELL 19794# Generated automatically by $as_me ($PACKAGE) $VERSION 19795# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19796 19797# Provide generalized library-building support services. 19798# Written by Gordon Matzigkeit, 1996 19799 19800# Copyright (C) 2014 Free Software Foundation, Inc. 19801# This is free software; see the source for copying conditions. There is NO 19802# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19803 19804# GNU Libtool is free software; you can redistribute it and/or modify 19805# it under the terms of the GNU General Public License as published by 19806# the Free Software Foundation; either version 2 of of the License, or 19807# (at your option) any later version. 19808# 19809# As a special exception to the GNU General Public License, if you 19810# distribute this file as part of a program or library that is built 19811# using GNU Libtool, you may include this file under the same 19812# distribution terms that you use for the rest of that program. 19813# 19814# GNU Libtool is distributed in the hope that it will be useful, but 19815# WITHOUT ANY WARRANTY; without even the implied warranty of 19816# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19817# GNU General Public License for more details. 19818# 19819# You should have received a copy of the GNU General Public License 19820# along with this program. If not, see <http://www.gnu.org/licenses/>. 19821 19822 19823# The names of the tagged configurations supported by this script. 19824available_tags='CXX ' 19825 19826# Configured defaults for sys_lib_dlsearch_path munging. 19827: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 19828 19829# ### BEGIN LIBTOOL CONFIG 19830 19831# Which release of libtool.m4 was used? 19832macro_version=$macro_version 19833macro_revision=$macro_revision 19834 19835# Whether or not to build shared libraries. 19836build_libtool_libs=$enable_shared 19837 19838# Whether or not to build static libraries. 19839build_old_libs=$enable_static 19840 19841# What type of objects to build. 19842pic_mode=$pic_mode 19843 19844# Whether or not to optimize for fast installation. 19845fast_install=$enable_fast_install 19846 19847# Shared archive member basename,for filename based shared library versioning on AIX. 19848shared_archive_member_spec=$shared_archive_member_spec 19849 19850# Shell to use when invoking shell scripts. 19851SHELL=$lt_SHELL 19852 19853# An echo program that protects backslashes. 19854ECHO=$lt_ECHO 19855 19856# The PATH separator for the build system. 19857PATH_SEPARATOR=$lt_PATH_SEPARATOR 19858 19859# The host system. 19860host_alias=$host_alias 19861host=$host 19862host_os=$host_os 19863 19864# The build system. 19865build_alias=$build_alias 19866build=$build 19867build_os=$build_os 19868 19869# A sed program that does not truncate output. 19870SED=$lt_SED 19871 19872# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19873Xsed="\$SED -e 1s/^X//" 19874 19875# A grep program that handles long lines. 19876GREP=$lt_GREP 19877 19878# An ERE matcher. 19879EGREP=$lt_EGREP 19880 19881# A literal string matcher. 19882FGREP=$lt_FGREP 19883 19884# A BSD- or MS-compatible name lister. 19885NM=$lt_NM 19886 19887# Whether we need soft or hard links. 19888LN_S=$lt_LN_S 19889 19890# What is the maximum length of a command? 19891max_cmd_len=$max_cmd_len 19892 19893# Object file suffix (normally "o"). 19894objext=$ac_objext 19895 19896# Executable file suffix (normally ""). 19897exeext=$exeext 19898 19899# whether the shell understands "unset". 19900lt_unset=$lt_unset 19901 19902# turn spaces into newlines. 19903SP2NL=$lt_lt_SP2NL 19904 19905# turn newlines into spaces. 19906NL2SP=$lt_lt_NL2SP 19907 19908# convert \$build file names to \$host format. 19909to_host_file_cmd=$lt_cv_to_host_file_cmd 19910 19911# convert \$build files to toolchain format. 19912to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19913 19914# An object symbol dumper. 19915OBJDUMP=$lt_OBJDUMP 19916 19917# Method to check whether dependent libraries are shared objects. 19918deplibs_check_method=$lt_deplibs_check_method 19919 19920# Command to use when deplibs_check_method = "file_magic". 19921file_magic_cmd=$lt_file_magic_cmd 19922 19923# How to find potential files when deplibs_check_method = "file_magic". 19924file_magic_glob=$lt_file_magic_glob 19925 19926# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19927want_nocaseglob=$lt_want_nocaseglob 19928 19929# DLL creation program. 19930DLLTOOL=$lt_DLLTOOL 19931 19932# Command to associate shared and link libraries. 19933sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19934 19935# The archiver. 19936AR=$lt_AR 19937 19938# Flags to create an archive. 19939AR_FLAGS=$lt_AR_FLAGS 19940 19941# How to feed a file listing to the archiver. 19942archiver_list_spec=$lt_archiver_list_spec 19943 19944# A symbol stripping program. 19945STRIP=$lt_STRIP 19946 19947# Commands used to install an old-style archive. 19948RANLIB=$lt_RANLIB 19949old_postinstall_cmds=$lt_old_postinstall_cmds 19950old_postuninstall_cmds=$lt_old_postuninstall_cmds 19951 19952# Whether to use a lock for old archive extraction. 19953lock_old_archive_extraction=$lock_old_archive_extraction 19954 19955# A C compiler. 19956LTCC=$lt_CC 19957 19958# LTCC compiler flags. 19959LTCFLAGS=$lt_CFLAGS 19960 19961# Take the output of nm and produce a listing of raw symbols and C names. 19962global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19963 19964# Transform the output of nm in a proper C declaration. 19965global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19966 19967# Transform the output of nm into a list of symbols to manually relocate. 19968global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19969 19970# Transform the output of nm in a C name address pair. 19971global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19972 19973# Transform the output of nm in a C name address pair when lib prefix is needed. 19974global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19975 19976# The name lister interface. 19977nm_interface=$lt_lt_cv_nm_interface 19978 19979# Specify filename containing input files for \$NM. 19980nm_file_list_spec=$lt_nm_file_list_spec 19981 19982# The root where to search for dependent libraries,and where our libraries should be installed. 19983lt_sysroot=$lt_sysroot 19984 19985# Command to truncate a binary pipe. 19986lt_truncate_bin=$lt_lt_cv_truncate_bin 19987 19988# The name of the directory that contains temporary libtool files. 19989objdir=$objdir 19990 19991# Used to examine libraries when file_magic_cmd begins with "file". 19992MAGIC_CMD=$MAGIC_CMD 19993 19994# Must we lock files when doing compilation? 19995need_locks=$lt_need_locks 19996 19997# Manifest tool. 19998MANIFEST_TOOL=$lt_MANIFEST_TOOL 19999 20000# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20001DSYMUTIL=$lt_DSYMUTIL 20002 20003# Tool to change global to local symbols on Mac OS X. 20004NMEDIT=$lt_NMEDIT 20005 20006# Tool to manipulate fat objects and archives on Mac OS X. 20007LIPO=$lt_LIPO 20008 20009# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20010OTOOL=$lt_OTOOL 20011 20012# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20013OTOOL64=$lt_OTOOL64 20014 20015# Old archive suffix (normally "a"). 20016libext=$libext 20017 20018# Shared library suffix (normally ".so"). 20019shrext_cmds=$lt_shrext_cmds 20020 20021# The commands to extract the exported symbol list from a shared archive. 20022extract_expsyms_cmds=$lt_extract_expsyms_cmds 20023 20024# Variables whose values should be saved in libtool wrapper scripts and 20025# restored at link time. 20026variables_saved_for_relink=$lt_variables_saved_for_relink 20027 20028# Do we need the "lib" prefix for modules? 20029need_lib_prefix=$need_lib_prefix 20030 20031# Do we need a version for libraries? 20032need_version=$need_version 20033 20034# Library versioning type. 20035version_type=$version_type 20036 20037# Shared library runtime path variable. 20038runpath_var=$runpath_var 20039 20040# Shared library path variable. 20041shlibpath_var=$shlibpath_var 20042 20043# Is shlibpath searched before the hard-coded library search path? 20044shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20045 20046# Format of library name prefix. 20047libname_spec=$lt_libname_spec 20048 20049# List of archive names. First name is the real one, the rest are links. 20050# The last name is the one that the linker finds with -lNAME 20051library_names_spec=$lt_library_names_spec 20052 20053# The coded name of the library, if different from the real name. 20054soname_spec=$lt_soname_spec 20055 20056# Permission mode override for installation of shared libraries. 20057install_override_mode=$lt_install_override_mode 20058 20059# Command to use after installation of a shared archive. 20060postinstall_cmds=$lt_postinstall_cmds 20061 20062# Command to use after uninstallation of a shared archive. 20063postuninstall_cmds=$lt_postuninstall_cmds 20064 20065# Commands used to finish a libtool library installation in a directory. 20066finish_cmds=$lt_finish_cmds 20067 20068# As "finish_cmds", except a single script fragment to be evaled but 20069# not shown. 20070finish_eval=$lt_finish_eval 20071 20072# Whether we should hardcode library paths into libraries. 20073hardcode_into_libs=$hardcode_into_libs 20074 20075# Compile-time system search path for libraries. 20076sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20077 20078# Detected run-time system search path for libraries. 20079sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20080 20081# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20082configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20083 20084# Whether dlopen is supported. 20085dlopen_support=$enable_dlopen 20086 20087# Whether dlopen of programs is supported. 20088dlopen_self=$enable_dlopen_self 20089 20090# Whether dlopen of statically linked programs is supported. 20091dlopen_self_static=$enable_dlopen_self_static 20092 20093# Commands to strip libraries. 20094old_striplib=$lt_old_striplib 20095striplib=$lt_striplib 20096 20097 20098# The linker used to build libraries. 20099LD=$lt_LD 20100 20101# How to create reloadable object files. 20102reload_flag=$lt_reload_flag 20103reload_cmds=$lt_reload_cmds 20104 20105# Commands used to build an old-style archive. 20106old_archive_cmds=$lt_old_archive_cmds 20107 20108# A language specific compiler. 20109CC=$lt_compiler 20110 20111# Is the compiler the GNU compiler? 20112with_gcc=$GCC 20113 20114# Compiler flag to turn off builtin functions. 20115no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20116 20117# Additional compiler flags for building library objects. 20118pic_flag=$lt_lt_prog_compiler_pic 20119 20120# How to pass a linker flag through the compiler. 20121wl=$lt_lt_prog_compiler_wl 20122 20123# Compiler flag to prevent dynamic linking. 20124link_static_flag=$lt_lt_prog_compiler_static 20125 20126# Does compiler simultaneously support -c and -o options? 20127compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20128 20129# Whether or not to add -lc for building shared libraries. 20130build_libtool_need_lc=$archive_cmds_need_lc 20131 20132# Whether or not to disallow shared libs when runtime libs are static. 20133allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20134 20135# Compiler flag to allow reflexive dlopens. 20136export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20137 20138# Compiler flag to generate shared objects directly from archives. 20139whole_archive_flag_spec=$lt_whole_archive_flag_spec 20140 20141# Whether the compiler copes with passing no objects directly. 20142compiler_needs_object=$lt_compiler_needs_object 20143 20144# Create an old-style archive from a shared archive. 20145old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20146 20147# Create a temporary old-style archive to link instead of a shared archive. 20148old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20149 20150# Commands used to build a shared archive. 20151archive_cmds=$lt_archive_cmds 20152archive_expsym_cmds=$lt_archive_expsym_cmds 20153 20154# Commands used to build a loadable module if different from building 20155# a shared archive. 20156module_cmds=$lt_module_cmds 20157module_expsym_cmds=$lt_module_expsym_cmds 20158 20159# Whether we are building with GNU ld or not. 20160with_gnu_ld=$lt_with_gnu_ld 20161 20162# Flag that allows shared libraries with undefined symbols to be built. 20163allow_undefined_flag=$lt_allow_undefined_flag 20164 20165# Flag that enforces no undefined symbols. 20166no_undefined_flag=$lt_no_undefined_flag 20167 20168# Flag to hardcode \$libdir into a binary during linking. 20169# This must work even if \$libdir does not exist 20170hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20171 20172# Whether we need a single "-rpath" flag with a separated argument. 20173hardcode_libdir_separator=$lt_hardcode_libdir_separator 20174 20175# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20176# DIR into the resulting binary. 20177hardcode_direct=$hardcode_direct 20178 20179# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20180# DIR into the resulting binary and the resulting library dependency is 20181# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20182# library is relocated. 20183hardcode_direct_absolute=$hardcode_direct_absolute 20184 20185# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20186# into the resulting binary. 20187hardcode_minus_L=$hardcode_minus_L 20188 20189# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20190# into the resulting binary. 20191hardcode_shlibpath_var=$hardcode_shlibpath_var 20192 20193# Set to "yes" if building a shared library automatically hardcodes DIR 20194# into the library and all subsequent libraries and executables linked 20195# against it. 20196hardcode_automatic=$hardcode_automatic 20197 20198# Set to yes if linker adds runtime paths of dependent libraries 20199# to runtime path list. 20200inherit_rpath=$inherit_rpath 20201 20202# Whether libtool must link a program against all its dependency libraries. 20203link_all_deplibs=$link_all_deplibs 20204 20205# Set to "yes" if exported symbols are required. 20206always_export_symbols=$always_export_symbols 20207 20208# The commands to list exported symbols. 20209export_symbols_cmds=$lt_export_symbols_cmds 20210 20211# Symbols that should not be listed in the preloaded symbols. 20212exclude_expsyms=$lt_exclude_expsyms 20213 20214# Symbols that must always be exported. 20215include_expsyms=$lt_include_expsyms 20216 20217# Commands necessary for linking programs (against libraries) with templates. 20218prelink_cmds=$lt_prelink_cmds 20219 20220# Commands necessary for finishing linking programs. 20221postlink_cmds=$lt_postlink_cmds 20222 20223# Specify filename containing input files. 20224file_list_spec=$lt_file_list_spec 20225 20226# How to hardcode a shared library path into an executable. 20227hardcode_action=$hardcode_action 20228 20229# The directories searched by this compiler when creating a shared library. 20230compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 20231 20232# Dependencies to place before and after the objects being linked to 20233# create a shared library. 20234predep_objects=$lt_predep_objects 20235postdep_objects=$lt_postdep_objects 20236predeps=$lt_predeps 20237postdeps=$lt_postdeps 20238 20239# The library search path used internally by the compiler when linking 20240# a shared library. 20241compiler_lib_search_path=$lt_compiler_lib_search_path 20242 20243# ### END LIBTOOL CONFIG 20244 20245_LT_EOF 20246 20247 cat <<'_LT_EOF' >> "$cfgfile" 20248 20249# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20250 20251# func_munge_path_list VARIABLE PATH 20252# ----------------------------------- 20253# VARIABLE is name of variable containing _space_ separated list of 20254# directories to be munged by the contents of PATH, which is string 20255# having a format: 20256# "DIR[:DIR]:" 20257# string "DIR[ DIR]" will be prepended to VARIABLE 20258# ":DIR[:DIR]" 20259# string "DIR[ DIR]" will be appended to VARIABLE 20260# "DIRP[:DIRP]::[DIRA:]DIRA" 20261# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20262# "DIRA[ DIRA]" will be appended to VARIABLE 20263# "DIR[:DIR]" 20264# VARIABLE will be replaced by "DIR[ DIR]" 20265func_munge_path_list () 20266{ 20267 case x$2 in 20268 x) 20269 ;; 20270 *:) 20271 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20272 ;; 20273 x:*) 20274 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20275 ;; 20276 *::*) 20277 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20278 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20279 ;; 20280 *) 20281 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20282 ;; 20283 esac 20284} 20285 20286 20287# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20288func_cc_basename () 20289{ 20290 for cc_temp in $*""; do 20291 case $cc_temp in 20292 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20293 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20294 \-*) ;; 20295 *) break;; 20296 esac 20297 done 20298 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20299} 20300 20301 20302# ### END FUNCTIONS SHARED WITH CONFIGURE 20303 20304_LT_EOF 20305 20306 case $host_os in 20307 aix3*) 20308 cat <<\_LT_EOF >> "$cfgfile" 20309# AIX sometimes has problems with the GCC collect2 program. For some 20310# reason, if we set the COLLECT_NAMES environment variable, the problems 20311# vanish in a puff of smoke. 20312if test set != "${COLLECT_NAMES+set}"; then 20313 COLLECT_NAMES= 20314 export COLLECT_NAMES 20315fi 20316_LT_EOF 20317 ;; 20318 esac 20319 20320 20321ltmain=$ac_aux_dir/ltmain.sh 20322 20323 20324 # We use sed instead of cat because bash on DJGPP gets confused if 20325 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20326 # text mode, it properly converts lines to CR/LF. This bash problem 20327 # is reportedly fixed, but why not run on old versions too? 20328 sed '$q' "$ltmain" >> "$cfgfile" \ 20329 || (rm -f "$cfgfile"; exit 1) 20330 20331 mv -f "$cfgfile" "$ofile" || 20332 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20333 chmod +x "$ofile" 20334 20335 20336 cat <<_LT_EOF >> "$ofile" 20337 20338# ### BEGIN LIBTOOL TAG CONFIG: CXX 20339 20340# The linker used to build libraries. 20341LD=$lt_LD_CXX 20342 20343# How to create reloadable object files. 20344reload_flag=$lt_reload_flag_CXX 20345reload_cmds=$lt_reload_cmds_CXX 20346 20347# Commands used to build an old-style archive. 20348old_archive_cmds=$lt_old_archive_cmds_CXX 20349 20350# A language specific compiler. 20351CC=$lt_compiler_CXX 20352 20353# Is the compiler the GNU compiler? 20354with_gcc=$GCC_CXX 20355 20356# Compiler flag to turn off builtin functions. 20357no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20358 20359# Additional compiler flags for building library objects. 20360pic_flag=$lt_lt_prog_compiler_pic_CXX 20361 20362# How to pass a linker flag through the compiler. 20363wl=$lt_lt_prog_compiler_wl_CXX 20364 20365# Compiler flag to prevent dynamic linking. 20366link_static_flag=$lt_lt_prog_compiler_static_CXX 20367 20368# Does compiler simultaneously support -c and -o options? 20369compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20370 20371# Whether or not to add -lc for building shared libraries. 20372build_libtool_need_lc=$archive_cmds_need_lc_CXX 20373 20374# Whether or not to disallow shared libs when runtime libs are static. 20375allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 20376 20377# Compiler flag to allow reflexive dlopens. 20378export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 20379 20380# Compiler flag to generate shared objects directly from archives. 20381whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 20382 20383# Whether the compiler copes with passing no objects directly. 20384compiler_needs_object=$lt_compiler_needs_object_CXX 20385 20386# Create an old-style archive from a shared archive. 20387old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 20388 20389# Create a temporary old-style archive to link instead of a shared archive. 20390old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 20391 20392# Commands used to build a shared archive. 20393archive_cmds=$lt_archive_cmds_CXX 20394archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 20395 20396# Commands used to build a loadable module if different from building 20397# a shared archive. 20398module_cmds=$lt_module_cmds_CXX 20399module_expsym_cmds=$lt_module_expsym_cmds_CXX 20400 20401# Whether we are building with GNU ld or not. 20402with_gnu_ld=$lt_with_gnu_ld_CXX 20403 20404# Flag that allows shared libraries with undefined symbols to be built. 20405allow_undefined_flag=$lt_allow_undefined_flag_CXX 20406 20407# Flag that enforces no undefined symbols. 20408no_undefined_flag=$lt_no_undefined_flag_CXX 20409 20410# Flag to hardcode \$libdir into a binary during linking. 20411# This must work even if \$libdir does not exist 20412hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20413 20414# Whether we need a single "-rpath" flag with a separated argument. 20415hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20416 20417# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20418# DIR into the resulting binary. 20419hardcode_direct=$hardcode_direct_CXX 20420 20421# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20422# DIR into the resulting binary and the resulting library dependency is 20423# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20424# library is relocated. 20425hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20426 20427# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20428# into the resulting binary. 20429hardcode_minus_L=$hardcode_minus_L_CXX 20430 20431# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20432# into the resulting binary. 20433hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20434 20435# Set to "yes" if building a shared library automatically hardcodes DIR 20436# into the library and all subsequent libraries and executables linked 20437# against it. 20438hardcode_automatic=$hardcode_automatic_CXX 20439 20440# Set to yes if linker adds runtime paths of dependent libraries 20441# to runtime path list. 20442inherit_rpath=$inherit_rpath_CXX 20443 20444# Whether libtool must link a program against all its dependency libraries. 20445link_all_deplibs=$link_all_deplibs_CXX 20446 20447# Set to "yes" if exported symbols are required. 20448always_export_symbols=$always_export_symbols_CXX 20449 20450# The commands to list exported symbols. 20451export_symbols_cmds=$lt_export_symbols_cmds_CXX 20452 20453# Symbols that should not be listed in the preloaded symbols. 20454exclude_expsyms=$lt_exclude_expsyms_CXX 20455 20456# Symbols that must always be exported. 20457include_expsyms=$lt_include_expsyms_CXX 20458 20459# Commands necessary for linking programs (against libraries) with templates. 20460prelink_cmds=$lt_prelink_cmds_CXX 20461 20462# Commands necessary for finishing linking programs. 20463postlink_cmds=$lt_postlink_cmds_CXX 20464 20465# Specify filename containing input files. 20466file_list_spec=$lt_file_list_spec_CXX 20467 20468# How to hardcode a shared library path into an executable. 20469hardcode_action=$hardcode_action_CXX 20470 20471# The directories searched by this compiler when creating a shared library. 20472compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20473 20474# Dependencies to place before and after the objects being linked to 20475# create a shared library. 20476predep_objects=$lt_predep_objects_CXX 20477postdep_objects=$lt_postdep_objects_CXX 20478predeps=$lt_predeps_CXX 20479postdeps=$lt_postdeps_CXX 20480 20481# The library search path used internally by the compiler when linking 20482# a shared library. 20483compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20484 20485# ### END LIBTOOL TAG CONFIG: CXX 20486_LT_EOF 20487 20488 ;; 20489 20490 esac 20491done # for ac_tag 20492 20493 20494as_fn_exit 0 20495_ACEOF 20496ac_clean_files=$ac_clean_files_save 20497 20498test $ac_write_fail = 0 || 20499 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20500 20501 20502# configure is writing to config.log, and then calls config.status. 20503# config.status does its own redirection, appending to config.log. 20504# Unfortunately, on DOS this fails, as config.log is still kept open 20505# by configure, so config.status won't be able to write to it; its 20506# output is simply discarded. So we exec the FD to /dev/null, 20507# effectively closing config.log, so it can be properly (re)opened and 20508# appended to by config.status. When coming back to configure, we 20509# need to make the FD available again. 20510if test "$no_create" != yes; then 20511 ac_cs_success=: 20512 ac_config_status_args= 20513 test "$silent" = yes && 20514 ac_config_status_args="$ac_config_status_args --quiet" 20515 exec 5>/dev/null 20516 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20517 exec 5>>config.log 20518 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20519 # would make configure fail if this is the last instruction. 20520 $ac_cs_success || as_fn_exit 1 20521fi 20522if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20524$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20525fi 20526 20527 20528printf "Wait for %s\n" "$procids" 20529wait $procids 20530printf "All sub-tasks should have completed\n" 20531 20532# end of configure.ac 20533