1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for OpenFst 1.3.3. 4# 5# Report bugs to <help@www.openfst.org>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 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 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: help@www.openfst.org about your system, including any 251$0: error possibly output before this message. Then install 252$0: a modern shell, or manually run the script under such a 253$0: shell if you do have one." 254 fi 255 exit 1 256fi 257fi 258fi 259SHELL=${CONFIG_SHELL-/bin/sh} 260export SHELL 261# Unset more variables known to interfere with behavior of common tools. 262CLICOLOR_FORCE= GREP_OPTIONS= 263unset CLICOLOR_FORCE GREP_OPTIONS 264 265## --------------------- ## 266## M4sh Shell Functions. ## 267## --------------------- ## 268# as_fn_unset VAR 269# --------------- 270# Portably unset VAR. 271as_fn_unset () 272{ 273 { eval $1=; unset $1;} 274} 275as_unset=as_fn_unset 276 277# as_fn_set_status STATUS 278# ----------------------- 279# Set $? to STATUS, without forking. 280as_fn_set_status () 281{ 282 return $1 283} # as_fn_set_status 284 285# as_fn_exit STATUS 286# ----------------- 287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 288as_fn_exit () 289{ 290 set +e 291 as_fn_set_status $1 292 exit $1 293} # as_fn_exit 294 295# as_fn_mkdir_p 296# ------------- 297# Create "$as_dir" as a directory, including parents if necessary. 298as_fn_mkdir_p () 299{ 300 301 case $as_dir in #( 302 -*) as_dir=./$as_dir;; 303 esac 304 test -d "$as_dir" || eval $as_mkdir_p || { 305 as_dirs= 306 while :; do 307 case $as_dir in #( 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 309 *) as_qdir=$as_dir;; 310 esac 311 as_dirs="'$as_qdir' $as_dirs" 312 as_dir=`$as_dirname -- "$as_dir" || 313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 314 X"$as_dir" : 'X\(//\)[^/]' \| \ 315 X"$as_dir" : 'X\(//\)$' \| \ 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 317$as_echo X"$as_dir" | 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\/\)[^/].*/{ 323 s//\1/ 324 q 325 } 326 /^X\(\/\/\)$/{ 327 s//\1/ 328 q 329 } 330 /^X\(\/\).*/{ 331 s//\1/ 332 q 333 } 334 s/.*/./; q'` 335 test -d "$as_dir" && break 336 done 337 test -z "$as_dirs" || eval "mkdir $as_dirs" 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 339 340 341} # as_fn_mkdir_p 342# as_fn_append VAR VALUE 343# ---------------------- 344# Append the text in VALUE to the end of the definition contained in VAR. Take 345# advantage of any shell optimizations that allow amortized linear growth over 346# repeated appends, instead of the typical quadratic growth present in naive 347# implementations. 348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 349 eval 'as_fn_append () 350 { 351 eval $1+=\$2 352 }' 353else 354 as_fn_append () 355 { 356 eval $1=\$$1\$2 357 } 358fi # as_fn_append 359 360# as_fn_arith ARG... 361# ------------------ 362# Perform arithmetic evaluation on the ARGs, and store the result in the 363# global $as_val. Take advantage of shells that can avoid forks. The arguments 364# must be portable across $(()) and expr. 365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 366 eval 'as_fn_arith () 367 { 368 as_val=$(( $* )) 369 }' 370else 371 as_fn_arith () 372 { 373 as_val=`expr "$@" || test $? -eq 1` 374 } 375fi # as_fn_arith 376 377 378# as_fn_error STATUS ERROR [LINENO LOG_FD] 379# ---------------------------------------- 380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 382# script with STATUS, using 1 if that was 0. 383as_fn_error () 384{ 385 as_status=$1; test $as_status -eq 0 && as_status=1 386 if test "$4"; then 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 389 fi 390 $as_echo "$as_me: error: $2" >&2 391 as_fn_exit $as_status 392} # as_fn_error 393 394if expr a : '\(a\)' >/dev/null 2>&1 && 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then 396 as_expr=expr 397else 398 as_expr=false 399fi 400 401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 402 as_basename=basename 403else 404 as_basename=false 405fi 406 407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 408 as_dirname=dirname 409else 410 as_dirname=false 411fi 412 413as_me=`$as_basename -- "$0" || 414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 415 X"$0" : 'X\(//\)$' \| \ 416 X"$0" : 'X\(/\)' \| . 2>/dev/null || 417$as_echo X/"$0" | 418 sed '/^.*\/\([^/][^/]*\)\/*$/{ 419 s//\1/ 420 q 421 } 422 /^X\/\(\/\/\)$/{ 423 s//\1/ 424 q 425 } 426 /^X\/\(\/\).*/{ 427 s//\1/ 428 q 429 } 430 s/.*/./; q'` 431 432# Avoid depending upon Character Ranges. 433as_cr_letters='abcdefghijklmnopqrstuvwxyz' 434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 435as_cr_Letters=$as_cr_letters$as_cr_LETTERS 436as_cr_digits='0123456789' 437as_cr_alnum=$as_cr_Letters$as_cr_digits 438 439 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 445 sed -n ' 446 p 447 /[$]LINENO/= 448 ' <$as_myself | 449 sed ' 450 s/[$]LINENO.*/&-/ 451 t lineno 452 b 453 :lineno 454 N 455 :loop 456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 457 t loop 458 s/-\n.*// 459 ' >$as_me.lineno && 460 chmod +x "$as_me.lineno" || 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 462 463 # Don't try to exec as it changes $[0], causing all sort of problems 464 # (the dirname of $[0] is not the place where we might find the 465 # original and so on. Autoconf is especially sensitive to this). 466 . "./$as_me.lineno" 467 # Exit status is that of the last command. 468 exit 469} 470 471ECHO_C= ECHO_N= ECHO_T= 472case `echo -n x` in #((((( 473-n*) 474 case `echo 'xy\c'` in 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 476 xy) ECHO_C='\c';; 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 478 ECHO_T=' ';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 2>/dev/null 490fi 491if (echo >conf$$.file) 2>/dev/null; then 492 if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500 elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502 else 503 as_ln_s='cp -p' 504 fi 505else 506 as_ln_s='cp -p' 507fi 508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 509rmdir conf$$.dir 2>/dev/null 510 511if mkdir -p . 2>/dev/null; then 512 as_mkdir_p='mkdir -p "$as_dir"' 513else 514 test -d ./-p && rmdir ./-p 515 as_mkdir_p=false 516fi 517 518if test -x / >/dev/null 2>&1; then 519 as_test_x='test -x' 520else 521 if ls -dL / >/dev/null 2>&1; then 522 as_ls_L_option=L 523 else 524 as_ls_L_option= 525 fi 526 as_test_x=' 527 eval sh -c '\'' 528 if test -d "$1"; then 529 test -d "$1/."; 530 else 531 case $1 in #( 532 -*)set "./$1";; 533 esac; 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 535 ???[sx]*):;;*)false;;esac;fi 536 '\'' sh 537 ' 538fi 539as_executable_p=$as_test_x 540 541# Sed expression to map a string onto a valid CPP name. 542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 543 544# Sed expression to map a string onto a valid variable name. 545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 546 547SHELL=${CONFIG_SHELL-/bin/sh} 548 549 550test -n "$DJDIR" || exec 7<&0 </dev/null 551exec 6>&1 552 553# Name of the host. 554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 555# so uname gets run too. 556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 557 558# 559# Initializations. 560# 561ac_default_prefix=/usr/local 562ac_clean_files= 563ac_config_libobj_dir=. 564LIBOBJS= 565cross_compiling=no 566subdirs= 567MFLAGS= 568MAKEFLAGS= 569 570# Identity of this package. 571PACKAGE_NAME='OpenFst' 572PACKAGE_TARNAME='openfst' 573PACKAGE_VERSION='1.3.3' 574PACKAGE_STRING='OpenFst 1.3.3' 575PACKAGE_BUGREPORT='help@www.openfst.org' 576PACKAGE_URL='' 577 578# Factoring default headers for most tests. 579ac_includes_default="\ 580#include <stdio.h> 581#ifdef HAVE_SYS_TYPES_H 582# include <sys/types.h> 583#endif 584#ifdef HAVE_SYS_STAT_H 585# include <sys/stat.h> 586#endif 587#ifdef STDC_HEADERS 588# include <stdlib.h> 589# include <stddef.h> 590#else 591# ifdef HAVE_STDLIB_H 592# include <stdlib.h> 593# endif 594#endif 595#ifdef HAVE_STRING_H 596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 597# include <memory.h> 598# endif 599# include <string.h> 600#endif 601#ifdef HAVE_STRINGS_H 602# include <strings.h> 603#endif 604#ifdef HAVE_INTTYPES_H 605# include <inttypes.h> 606#endif 607#ifdef HAVE_STDINT_H 608# include <stdint.h> 609#endif 610#ifdef HAVE_UNISTD_H 611# include <unistd.h> 612#endif" 613 614ac_unique_file="src/lib/fst.cc" 615ac_subst_vars='am__EXEEXT_FALSE 616am__EXEEXT_TRUE 617LTLIBOBJS 618LIBOBJS 619libfstdir 620HAVE_PDT_FALSE 621HAVE_PDT_TRUE 622HAVE_LOOKAHEAD_FALSE 623HAVE_LOOKAHEAD_TRUE 624HAVE_NGRAM_FALSE 625HAVE_NGRAM_TRUE 626HAVE_FAR_FALSE 627HAVE_FAR_TRUE 628HAVE_CONST_FALSE 629HAVE_CONST_TRUE 630HAVE_COMPACT_FALSE 631HAVE_COMPACT_TRUE 632HAVE_SCRIPT_FALSE 633HAVE_SCRIPT_TRUE 634HAVE_BIN_FALSE 635HAVE_BIN_TRUE 636CXXCPP 637CPP 638OTOOL64 639OTOOL 640LIPO 641NMEDIT 642DSYMUTIL 643MANIFEST_TOOL 644RANLIB 645ac_ct_AR 646AR 647DLLTOOL 648OBJDUMP 649LN_S 650NM 651ac_ct_DUMPBIN 652DUMPBIN 653LD 654FGREP 655EGREP 656GREP 657SED 658am__fastdepCC_FALSE 659am__fastdepCC_TRUE 660CCDEPMODE 661ac_ct_CC 662CFLAGS 663CC 664host_os 665host_vendor 666host_cpu 667host 668build_os 669build_vendor 670build_cpu 671build 672LIBTOOL 673am__fastdepCXX_FALSE 674am__fastdepCXX_TRUE 675CXXDEPMODE 676am__nodep 677AMDEPBACKSLASH 678AMDEP_FALSE 679AMDEP_TRUE 680am__quote 681am__include 682DEPDIR 683OBJEXT 684EXEEXT 685ac_ct_CXX 686CPPFLAGS 687LDFLAGS 688CXXFLAGS 689CXX 690am__untar 691am__tar 692AMTAR 693am__leading_dot 694SET_MAKE 695AWK 696mkdir_p 697MKDIR_P 698INSTALL_STRIP_PROGRAM 699STRIP 700install_sh 701MAKEINFO 702AUTOHEADER 703AUTOMAKE 704AUTOCONF 705ACLOCAL 706VERSION 707PACKAGE 708CYGPATH_W 709am__isrc 710INSTALL_DATA 711INSTALL_SCRIPT 712INSTALL_PROGRAM 713target_alias 714host_alias 715build_alias 716LIBS 717ECHO_T 718ECHO_N 719ECHO_C 720DEFS 721mandir 722localedir 723libdir 724psdir 725pdfdir 726dvidir 727htmldir 728infodir 729docdir 730oldincludedir 731includedir 732localstatedir 733sharedstatedir 734sysconfdir 735datadir 736datarootdir 737libexecdir 738sbindir 739bindir 740program_transform_name 741prefix 742exec_prefix 743PACKAGE_URL 744PACKAGE_BUGREPORT 745PACKAGE_STRING 746PACKAGE_VERSION 747PACKAGE_TARNAME 748PACKAGE_NAME 749PATH_SEPARATOR 750SHELL' 751ac_subst_files='' 752ac_user_opts=' 753enable_option_checking 754enable_dependency_tracking 755enable_static 756enable_shared 757with_pic 758enable_fast_install 759with_gnu_ld 760with_sysroot 761enable_libtool_lock 762enable_bin 763enable_compact_fsts 764enable_const_fsts 765enable_far 766enable_ngram_fsts 767enable_lookahead_fsts 768enable_pdt 769' 770 ac_precious_vars='build_alias 771host_alias 772target_alias 773CXX 774CXXFLAGS 775LDFLAGS 776LIBS 777CPPFLAGS 778CCC 779CC 780CFLAGS 781CPP 782CXXCPP' 783 784 785# Initialize some variables set by options. 786ac_init_help= 787ac_init_version=false 788ac_unrecognized_opts= 789ac_unrecognized_sep= 790# The variables have the same names as the options, with 791# dashes changed to underlines. 792cache_file=/dev/null 793exec_prefix=NONE 794no_create= 795no_recursion= 796prefix=NONE 797program_prefix=NONE 798program_suffix=NONE 799program_transform_name=s,x,x, 800silent= 801site= 802srcdir= 803verbose= 804x_includes=NONE 805x_libraries=NONE 806 807# Installation directory options. 808# These are left unexpanded so users can "make install exec_prefix=/foo" 809# and all the variables that are supposed to be based on exec_prefix 810# by default will actually change. 811# Use braces instead of parens because sh, perl, etc. also accept them. 812# (The list follows the same order as the GNU Coding Standards.) 813bindir='${exec_prefix}/bin' 814sbindir='${exec_prefix}/sbin' 815libexecdir='${exec_prefix}/libexec' 816datarootdir='${prefix}/share' 817datadir='${datarootdir}' 818sysconfdir='${prefix}/etc' 819sharedstatedir='${prefix}/com' 820localstatedir='${prefix}/var' 821includedir='${prefix}/include' 822oldincludedir='/usr/include' 823docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 824infodir='${datarootdir}/info' 825htmldir='${docdir}' 826dvidir='${docdir}' 827pdfdir='${docdir}' 828psdir='${docdir}' 829libdir='${exec_prefix}/lib' 830localedir='${datarootdir}/locale' 831mandir='${datarootdir}/man' 832 833ac_prev= 834ac_dashdash= 835for ac_option 836do 837 # If the previous option needs an argument, assign it. 838 if test -n "$ac_prev"; then 839 eval $ac_prev=\$ac_option 840 ac_prev= 841 continue 842 fi 843 844 case $ac_option in 845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 846 *=) ac_optarg= ;; 847 *) ac_optarg=yes ;; 848 esac 849 850 # Accept the important Cygnus configure options, so we can diagnose typos. 851 852 case $ac_dashdash$ac_option in 853 --) 854 ac_dashdash=yes ;; 855 856 -bindir | --bindir | --bindi | --bind | --bin | --bi) 857 ac_prev=bindir ;; 858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 859 bindir=$ac_optarg ;; 860 861 -build | --build | --buil | --bui | --bu) 862 ac_prev=build_alias ;; 863 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 864 build_alias=$ac_optarg ;; 865 866 -cache-file | --cache-file | --cache-fil | --cache-fi \ 867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 868 ac_prev=cache_file ;; 869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 871 cache_file=$ac_optarg ;; 872 873 --config-cache | -C) 874 cache_file=config.cache ;; 875 876 -datadir | --datadir | --datadi | --datad) 877 ac_prev=datadir ;; 878 -datadir=* | --datadir=* | --datadi=* | --datad=*) 879 datadir=$ac_optarg ;; 880 881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 882 | --dataroo | --dataro | --datar) 883 ac_prev=datarootdir ;; 884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 886 datarootdir=$ac_optarg ;; 887 888 -disable-* | --disable-*) 889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 890 # Reject names that are not valid shell variable names. 891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 892 as_fn_error $? "invalid feature name: $ac_useropt" 893 ac_useropt_orig=$ac_useropt 894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 895 case $ac_user_opts in 896 *" 897"enable_$ac_useropt" 898"*) ;; 899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 900 ac_unrecognized_sep=', ';; 901 esac 902 eval enable_$ac_useropt=no ;; 903 904 -docdir | --docdir | --docdi | --doc | --do) 905 ac_prev=docdir ;; 906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 907 docdir=$ac_optarg ;; 908 909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 910 ac_prev=dvidir ;; 911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 912 dvidir=$ac_optarg ;; 913 914 -enable-* | --enable-*) 915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 916 # Reject names that are not valid shell variable names. 917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 918 as_fn_error $? "invalid feature name: $ac_useropt" 919 ac_useropt_orig=$ac_useropt 920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 921 case $ac_user_opts in 922 *" 923"enable_$ac_useropt" 924"*) ;; 925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 926 ac_unrecognized_sep=', ';; 927 esac 928 eval enable_$ac_useropt=\$ac_optarg ;; 929 930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 932 | --exec | --exe | --ex) 933 ac_prev=exec_prefix ;; 934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 936 | --exec=* | --exe=* | --ex=*) 937 exec_prefix=$ac_optarg ;; 938 939 -gas | --gas | --ga | --g) 940 # Obsolete; use --with-gas. 941 with_gas=yes ;; 942 943 -help | --help | --hel | --he | -h) 944 ac_init_help=long ;; 945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 946 ac_init_help=recursive ;; 947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 948 ac_init_help=short ;; 949 950 -host | --host | --hos | --ho) 951 ac_prev=host_alias ;; 952 -host=* | --host=* | --hos=* | --ho=*) 953 host_alias=$ac_optarg ;; 954 955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 956 ac_prev=htmldir ;; 957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 958 | --ht=*) 959 htmldir=$ac_optarg ;; 960 961 -includedir | --includedir | --includedi | --included | --include \ 962 | --includ | --inclu | --incl | --inc) 963 ac_prev=includedir ;; 964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 965 | --includ=* | --inclu=* | --incl=* | --inc=*) 966 includedir=$ac_optarg ;; 967 968 -infodir | --infodir | --infodi | --infod | --info | --inf) 969 ac_prev=infodir ;; 970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 971 infodir=$ac_optarg ;; 972 973 -libdir | --libdir | --libdi | --libd) 974 ac_prev=libdir ;; 975 -libdir=* | --libdir=* | --libdi=* | --libd=*) 976 libdir=$ac_optarg ;; 977 978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 979 | --libexe | --libex | --libe) 980 ac_prev=libexecdir ;; 981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 982 | --libexe=* | --libex=* | --libe=*) 983 libexecdir=$ac_optarg ;; 984 985 -localedir | --localedir | --localedi | --localed | --locale) 986 ac_prev=localedir ;; 987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 988 localedir=$ac_optarg ;; 989 990 -localstatedir | --localstatedir | --localstatedi | --localstated \ 991 | --localstate | --localstat | --localsta | --localst | --locals) 992 ac_prev=localstatedir ;; 993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 995 localstatedir=$ac_optarg ;; 996 997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 998 ac_prev=mandir ;; 999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1000 mandir=$ac_optarg ;; 1001 1002 -nfp | --nfp | --nf) 1003 # Obsolete; use --without-fp. 1004 with_fp=no ;; 1005 1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1007 | --no-cr | --no-c | -n) 1008 no_create=yes ;; 1009 1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1012 no_recursion=yes ;; 1013 1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1016 | --oldin | --oldi | --old | --ol | --o) 1017 ac_prev=oldincludedir ;; 1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1021 oldincludedir=$ac_optarg ;; 1022 1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1024 ac_prev=prefix ;; 1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1026 prefix=$ac_optarg ;; 1027 1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1029 | --program-pre | --program-pr | --program-p) 1030 ac_prev=program_prefix ;; 1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1033 program_prefix=$ac_optarg ;; 1034 1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1036 | --program-suf | --program-su | --program-s) 1037 ac_prev=program_suffix ;; 1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1040 program_suffix=$ac_optarg ;; 1041 1042 -program-transform-name | --program-transform-name \ 1043 | --program-transform-nam | --program-transform-na \ 1044 | --program-transform-n | --program-transform- \ 1045 | --program-transform | --program-transfor \ 1046 | --program-transfo | --program-transf \ 1047 | --program-trans | --program-tran \ 1048 | --progr-tra | --program-tr | --program-t) 1049 ac_prev=program_transform_name ;; 1050 -program-transform-name=* | --program-transform-name=* \ 1051 | --program-transform-nam=* | --program-transform-na=* \ 1052 | --program-transform-n=* | --program-transform-=* \ 1053 | --program-transform=* | --program-transfor=* \ 1054 | --program-transfo=* | --program-transf=* \ 1055 | --program-trans=* | --program-tran=* \ 1056 | --progr-tra=* | --program-tr=* | --program-t=*) 1057 program_transform_name=$ac_optarg ;; 1058 1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1060 ac_prev=pdfdir ;; 1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1062 pdfdir=$ac_optarg ;; 1063 1064 -psdir | --psdir | --psdi | --psd | --ps) 1065 ac_prev=psdir ;; 1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1067 psdir=$ac_optarg ;; 1068 1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1070 | -silent | --silent | --silen | --sile | --sil) 1071 silent=yes ;; 1072 1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1074 ac_prev=sbindir ;; 1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1076 | --sbi=* | --sb=*) 1077 sbindir=$ac_optarg ;; 1078 1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1081 | --sharedst | --shareds | --shared | --share | --shar \ 1082 | --sha | --sh) 1083 ac_prev=sharedstatedir ;; 1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1087 | --sha=* | --sh=*) 1088 sharedstatedir=$ac_optarg ;; 1089 1090 -site | --site | --sit) 1091 ac_prev=site ;; 1092 -site=* | --site=* | --sit=*) 1093 site=$ac_optarg ;; 1094 1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1096 ac_prev=srcdir ;; 1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1098 srcdir=$ac_optarg ;; 1099 1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1101 | --syscon | --sysco | --sysc | --sys | --sy) 1102 ac_prev=sysconfdir ;; 1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1105 sysconfdir=$ac_optarg ;; 1106 1107 -target | --target | --targe | --targ | --tar | --ta | --t) 1108 ac_prev=target_alias ;; 1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1110 target_alias=$ac_optarg ;; 1111 1112 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1113 verbose=yes ;; 1114 1115 -version | --version | --versio | --versi | --vers | -V) 1116 ac_init_version=: ;; 1117 1118 -with-* | --with-*) 1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1120 # Reject names that are not valid shell variable names. 1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1122 as_fn_error $? "invalid package name: $ac_useropt" 1123 ac_useropt_orig=$ac_useropt 1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1125 case $ac_user_opts in 1126 *" 1127"with_$ac_useropt" 1128"*) ;; 1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1130 ac_unrecognized_sep=', ';; 1131 esac 1132 eval with_$ac_useropt=\$ac_optarg ;; 1133 1134 -without-* | --without-*) 1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1136 # Reject names that are not valid shell variable names. 1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1138 as_fn_error $? "invalid package name: $ac_useropt" 1139 ac_useropt_orig=$ac_useropt 1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1141 case $ac_user_opts in 1142 *" 1143"with_$ac_useropt" 1144"*) ;; 1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1146 ac_unrecognized_sep=', ';; 1147 esac 1148 eval with_$ac_useropt=no ;; 1149 1150 --x) 1151 # Obsolete; use --with-x. 1152 with_x=yes ;; 1153 1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1155 | --x-incl | --x-inc | --x-in | --x-i) 1156 ac_prev=x_includes ;; 1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1159 x_includes=$ac_optarg ;; 1160 1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1163 ac_prev=x_libraries ;; 1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1166 x_libraries=$ac_optarg ;; 1167 1168 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1169Try \`$0 --help' for more information" 1170 ;; 1171 1172 *=*) 1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1174 # Reject names that are not valid shell variable names. 1175 case $ac_envvar in #( 1176 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1178 esac 1179 eval $ac_envvar=\$ac_optarg 1180 export $ac_envvar ;; 1181 1182 *) 1183 # FIXME: should be removed in autoconf 3.0. 1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1188 ;; 1189 1190 esac 1191done 1192 1193if test -n "$ac_prev"; then 1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1195 as_fn_error $? "missing argument to $ac_option" 1196fi 1197 1198if test -n "$ac_unrecognized_opts"; then 1199 case $enable_option_checking in 1200 no) ;; 1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1203 esac 1204fi 1205 1206# Check all directory arguments for consistency. 1207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1208 datadir sysconfdir sharedstatedir localstatedir includedir \ 1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1210 libdir localedir mandir 1211do 1212 eval ac_val=\$$ac_var 1213 # Remove trailing slashes. 1214 case $ac_val in 1215 */ ) 1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1217 eval $ac_var=\$ac_val;; 1218 esac 1219 # Be sure to have absolute directory names. 1220 case $ac_val in 1221 [\\/$]* | ?:[\\/]* ) continue;; 1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1223 esac 1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1225done 1226 1227# There might be people who depend on the old broken behavior: `$host' 1228# used to hold the argument of --host etc. 1229# FIXME: To remove some day. 1230build=$build_alias 1231host=$host_alias 1232target=$target_alias 1233 1234# FIXME: To remove some day. 1235if test "x$host_alias" != x; then 1236 if test "x$build_alias" = x; then 1237 cross_compiling=maybe 1238 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1239 If a cross compiler is detected then cross compile mode will be used" >&2 1240 elif test "x$build_alias" != "x$host_alias"; then 1241 cross_compiling=yes 1242 fi 1243fi 1244 1245ac_tool_prefix= 1246test -n "$host_alias" && ac_tool_prefix=$host_alias- 1247 1248test "$silent" = yes && exec 6>/dev/null 1249 1250 1251ac_pwd=`pwd` && test -n "$ac_pwd" && 1252ac_ls_di=`ls -di .` && 1253ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1254 as_fn_error $? "working directory cannot be determined" 1255test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1256 as_fn_error $? "pwd does not report name of working directory" 1257 1258 1259# Find the source files, if location was not specified. 1260if test -z "$srcdir"; then 1261 ac_srcdir_defaulted=yes 1262 # Try the directory containing this script, then the parent directory. 1263 ac_confdir=`$as_dirname -- "$as_myself" || 1264$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1265 X"$as_myself" : 'X\(//\)[^/]' \| \ 1266 X"$as_myself" : 'X\(//\)$' \| \ 1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1268$as_echo X"$as_myself" | 1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1270 s//\1/ 1271 q 1272 } 1273 /^X\(\/\/\)[^/].*/{ 1274 s//\1/ 1275 q 1276 } 1277 /^X\(\/\/\)$/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\).*/{ 1282 s//\1/ 1283 q 1284 } 1285 s/.*/./; q'` 1286 srcdir=$ac_confdir 1287 if test ! -r "$srcdir/$ac_unique_file"; then 1288 srcdir=.. 1289 fi 1290else 1291 ac_srcdir_defaulted=no 1292fi 1293if test ! -r "$srcdir/$ac_unique_file"; then 1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1296fi 1297ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1298ac_abs_confdir=`( 1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1300 pwd)` 1301# When building in place, set srcdir=. 1302if test "$ac_abs_confdir" = "$ac_pwd"; then 1303 srcdir=. 1304fi 1305# Remove unnecessary trailing slashes from srcdir. 1306# Double slashes in file names in object file debugging info 1307# mess up M-x gdb in Emacs. 1308case $srcdir in 1309*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1310esac 1311for ac_var in $ac_precious_vars; do 1312 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1313 eval ac_env_${ac_var}_value=\$${ac_var} 1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1315 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1316done 1317 1318# 1319# Report the --help message. 1320# 1321if test "$ac_init_help" = "long"; then 1322 # Omit some internal or obsolete options to make the list less imposing. 1323 # This message is too long to be a string in the A/UX 3.1 sh. 1324 cat <<_ACEOF 1325\`configure' configures OpenFst 1.3.3 to adapt to many kinds of systems. 1326 1327Usage: $0 [OPTION]... [VAR=VALUE]... 1328 1329To assign environment variables (e.g., CC, CFLAGS...), specify them as 1330VAR=VALUE. See below for descriptions of some of the useful variables. 1331 1332Defaults for the options are specified in brackets. 1333 1334Configuration: 1335 -h, --help display this help and exit 1336 --help=short display options specific to this package 1337 --help=recursive display the short help of all the included packages 1338 -V, --version display version information and exit 1339 -q, --quiet, --silent do not print \`checking ...' messages 1340 --cache-file=FILE cache test results in FILE [disabled] 1341 -C, --config-cache alias for \`--cache-file=config.cache' 1342 -n, --no-create do not create output files 1343 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1344 1345Installation directories: 1346 --prefix=PREFIX install architecture-independent files in PREFIX 1347 [$ac_default_prefix] 1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1349 [PREFIX] 1350 1351By default, \`make install' will install all the files in 1352\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1353an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1354for instance \`--prefix=\$HOME'. 1355 1356For better control, use the options below. 1357 1358Fine tuning of the installation directories: 1359 --bindir=DIR user executables [EPREFIX/bin] 1360 --sbindir=DIR system admin executables [EPREFIX/sbin] 1361 --libexecdir=DIR program executables [EPREFIX/libexec] 1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1365 --libdir=DIR object code libraries [EPREFIX/lib] 1366 --includedir=DIR C header files [PREFIX/include] 1367 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1370 --infodir=DIR info documentation [DATAROOTDIR/info] 1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1372 --mandir=DIR man documentation [DATAROOTDIR/man] 1373 --docdir=DIR documentation root [DATAROOTDIR/doc/openfst] 1374 --htmldir=DIR html documentation [DOCDIR] 1375 --dvidir=DIR dvi documentation [DOCDIR] 1376 --pdfdir=DIR pdf documentation [DOCDIR] 1377 --psdir=DIR ps documentation [DOCDIR] 1378_ACEOF 1379 1380 cat <<\_ACEOF 1381 1382Program names: 1383 --program-prefix=PREFIX prepend PREFIX to installed program names 1384 --program-suffix=SUFFIX append SUFFIX to installed program names 1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1386 1387System types: 1388 --build=BUILD configure for building on BUILD [guessed] 1389 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1390_ACEOF 1391fi 1392 1393if test -n "$ac_init_help"; then 1394 case $ac_init_help in 1395 short | recursive ) echo "Configuration of OpenFst 1.3.3:";; 1396 esac 1397 cat <<\_ACEOF 1398 1399Optional Features: 1400 --disable-option-checking ignore unrecognized --enable/--with options 1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1403 --disable-dependency-tracking speeds up one-time build 1404 --enable-dependency-tracking do not reject slow dependency extractors 1405 --enable-static[=PKGS] build static libraries [default=no] 1406 --enable-shared[=PKGS] build shared libraries [default=yes] 1407 --enable-fast-install[=PKGS] 1408 optimize for fast installation [default=yes] 1409 --disable-libtool-lock avoid locking (might break parallel builds) 1410 --enable-bin enable fst::script and command-line binaries 1411 --enable-compact-fsts enable all CompactFst extensions 1412 --enable-const-fsts enable all ConstFst extensions 1413 --enable-far enable FAR extensions 1414 --enable-ngram-fsts enable NGramFst extension 1415 --enable-lookahead-fsts enable LookAheadFst extensions 1416 --enable-pdt enable PDT extensions 1417 1418Optional Packages: 1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1421 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1422 both] 1423 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1424 --with-sysroot=DIR Search for dependent libraries within DIR 1425 (or the compiler's sysroot if not specified). 1426 1427Some influential environment variables: 1428 CXX C++ compiler command 1429 CXXFLAGS C++ compiler flags 1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1431 nonstandard directory <lib dir> 1432 LIBS libraries to pass to the linker, e.g. -l<library> 1433 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1434 you have headers in a nonstandard directory <include dir> 1435 CC C compiler command 1436 CFLAGS C compiler flags 1437 CPP C preprocessor 1438 CXXCPP C++ preprocessor 1439 1440Use these variables to override the choices made by `configure' or to help 1441it to find libraries and programs with nonstandard names/locations. 1442 1443Report bugs to <help@www.openfst.org>. 1444_ACEOF 1445ac_status=$? 1446fi 1447 1448if test "$ac_init_help" = "recursive"; then 1449 # If there are subdirs, report their specific --help. 1450 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1451 test -d "$ac_dir" || 1452 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1453 continue 1454 ac_builddir=. 1455 1456case "$ac_dir" in 1457.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1458*) 1459 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1460 # A ".." for each directory in $ac_dir_suffix. 1461 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1462 case $ac_top_builddir_sub in 1463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1465 esac ;; 1466esac 1467ac_abs_top_builddir=$ac_pwd 1468ac_abs_builddir=$ac_pwd$ac_dir_suffix 1469# for backward compatibility: 1470ac_top_builddir=$ac_top_build_prefix 1471 1472case $srcdir in 1473 .) # We are building in place. 1474 ac_srcdir=. 1475 ac_top_srcdir=$ac_top_builddir_sub 1476 ac_abs_top_srcdir=$ac_pwd ;; 1477 [\\/]* | ?:[\\/]* ) # Absolute name. 1478 ac_srcdir=$srcdir$ac_dir_suffix; 1479 ac_top_srcdir=$srcdir 1480 ac_abs_top_srcdir=$srcdir ;; 1481 *) # Relative name. 1482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1483 ac_top_srcdir=$ac_top_build_prefix$srcdir 1484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1485esac 1486ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1487 1488 cd "$ac_dir" || { ac_status=$?; continue; } 1489 # Check for guested configure. 1490 if test -f "$ac_srcdir/configure.gnu"; then 1491 echo && 1492 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1493 elif test -f "$ac_srcdir/configure"; then 1494 echo && 1495 $SHELL "$ac_srcdir/configure" --help=recursive 1496 else 1497 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1498 fi || ac_status=$? 1499 cd "$ac_pwd" || { ac_status=$?; break; } 1500 done 1501fi 1502 1503test -n "$ac_init_help" && exit $ac_status 1504if $ac_init_version; then 1505 cat <<\_ACEOF 1506OpenFst configure 1.3.3 1507generated by GNU Autoconf 2.68 1508 1509Copyright (C) 2010 Free Software Foundation, Inc. 1510This configure script is free software; the Free Software Foundation 1511gives unlimited permission to copy, distribute and modify it. 1512_ACEOF 1513 exit 1514fi 1515 1516## ------------------------ ## 1517## Autoconf initialization. ## 1518## ------------------------ ## 1519 1520# ac_fn_cxx_try_compile LINENO 1521# ---------------------------- 1522# Try to compile conftest.$ac_ext, and return whether this succeeded. 1523ac_fn_cxx_try_compile () 1524{ 1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1526 rm -f conftest.$ac_objext 1527 if { { ac_try="$ac_compile" 1528case "(($ac_try" in 1529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1530 *) ac_try_echo=$ac_try;; 1531esac 1532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1533$as_echo "$ac_try_echo"; } >&5 1534 (eval "$ac_compile") 2>conftest.err 1535 ac_status=$? 1536 if test -s conftest.err; then 1537 grep -v '^ *+' conftest.err >conftest.er1 1538 cat conftest.er1 >&5 1539 mv -f conftest.er1 conftest.err 1540 fi 1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1542 test $ac_status = 0; } && { 1543 test -z "$ac_cxx_werror_flag" || 1544 test ! -s conftest.err 1545 } && test -s conftest.$ac_objext; then : 1546 ac_retval=0 1547else 1548 $as_echo "$as_me: failed program was:" >&5 1549sed 's/^/| /' conftest.$ac_ext >&5 1550 1551 ac_retval=1 1552fi 1553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1554 as_fn_set_status $ac_retval 1555 1556} # ac_fn_cxx_try_compile 1557 1558# ac_fn_c_try_compile LINENO 1559# -------------------------- 1560# Try to compile conftest.$ac_ext, and return whether this succeeded. 1561ac_fn_c_try_compile () 1562{ 1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1564 rm -f conftest.$ac_objext 1565 if { { ac_try="$ac_compile" 1566case "(($ac_try" in 1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1568 *) ac_try_echo=$ac_try;; 1569esac 1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1571$as_echo "$ac_try_echo"; } >&5 1572 (eval "$ac_compile") 2>conftest.err 1573 ac_status=$? 1574 if test -s conftest.err; then 1575 grep -v '^ *+' conftest.err >conftest.er1 1576 cat conftest.er1 >&5 1577 mv -f conftest.er1 conftest.err 1578 fi 1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1580 test $ac_status = 0; } && { 1581 test -z "$ac_c_werror_flag" || 1582 test ! -s conftest.err 1583 } && test -s conftest.$ac_objext; then : 1584 ac_retval=0 1585else 1586 $as_echo "$as_me: failed program was:" >&5 1587sed 's/^/| /' conftest.$ac_ext >&5 1588 1589 ac_retval=1 1590fi 1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1592 as_fn_set_status $ac_retval 1593 1594} # ac_fn_c_try_compile 1595 1596# ac_fn_c_try_link LINENO 1597# ----------------------- 1598# Try to link conftest.$ac_ext, and return whether this succeeded. 1599ac_fn_c_try_link () 1600{ 1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1602 rm -f conftest.$ac_objext conftest$ac_exeext 1603 if { { ac_try="$ac_link" 1604case "(($ac_try" in 1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1606 *) ac_try_echo=$ac_try;; 1607esac 1608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1609$as_echo "$ac_try_echo"; } >&5 1610 (eval "$ac_link") 2>conftest.err 1611 ac_status=$? 1612 if test -s conftest.err; then 1613 grep -v '^ *+' conftest.err >conftest.er1 1614 cat conftest.er1 >&5 1615 mv -f conftest.er1 conftest.err 1616 fi 1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1618 test $ac_status = 0; } && { 1619 test -z "$ac_c_werror_flag" || 1620 test ! -s conftest.err 1621 } && test -s conftest$ac_exeext && { 1622 test "$cross_compiling" = yes || 1623 $as_test_x conftest$ac_exeext 1624 }; then : 1625 ac_retval=0 1626else 1627 $as_echo "$as_me: failed program was:" >&5 1628sed 's/^/| /' conftest.$ac_ext >&5 1629 1630 ac_retval=1 1631fi 1632 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1633 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1634 # interfere with the next link command; also delete a directory that is 1635 # left behind by Apple's compiler. We do this before executing the actions. 1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1638 as_fn_set_status $ac_retval 1639 1640} # ac_fn_c_try_link 1641 1642# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1643# ------------------------------------------------------- 1644# Tests whether HEADER exists and can be compiled using the include files in 1645# INCLUDES, setting the cache variable VAR accordingly. 1646ac_fn_c_check_header_compile () 1647{ 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1650$as_echo_n "checking for $2... " >&6; } 1651if eval \${$3+:} false; then : 1652 $as_echo_n "(cached) " >&6 1653else 1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1655/* end confdefs.h. */ 1656$4 1657#include <$2> 1658_ACEOF 1659if ac_fn_c_try_compile "$LINENO"; then : 1660 eval "$3=yes" 1661else 1662 eval "$3=no" 1663fi 1664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1665fi 1666eval ac_res=\$$3 1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1668$as_echo "$ac_res" >&6; } 1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1670 1671} # ac_fn_c_check_header_compile 1672 1673# ac_fn_c_try_cpp LINENO 1674# ---------------------- 1675# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1676ac_fn_c_try_cpp () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 if { { ac_try="$ac_cpp conftest.$ac_ext" 1680case "(($ac_try" in 1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1682 *) ac_try_echo=$ac_try;; 1683esac 1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1685$as_echo "$ac_try_echo"; } >&5 1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1687 ac_status=$? 1688 if test -s conftest.err; then 1689 grep -v '^ *+' conftest.err >conftest.er1 1690 cat conftest.er1 >&5 1691 mv -f conftest.er1 conftest.err 1692 fi 1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1694 test $ac_status = 0; } > conftest.i && { 1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1696 test ! -s conftest.err 1697 }; then : 1698 ac_retval=0 1699else 1700 $as_echo "$as_me: failed program was:" >&5 1701sed 's/^/| /' conftest.$ac_ext >&5 1702 1703 ac_retval=1 1704fi 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 as_fn_set_status $ac_retval 1707 1708} # ac_fn_c_try_cpp 1709 1710# ac_fn_c_try_run LINENO 1711# ---------------------- 1712# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1713# that executables *can* be run. 1714ac_fn_c_try_run () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 if { { ac_try="$ac_link" 1718case "(($ac_try" in 1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1720 *) ac_try_echo=$ac_try;; 1721esac 1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1723$as_echo "$ac_try_echo"; } >&5 1724 (eval "$ac_link") 2>&5 1725 ac_status=$? 1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1728 { { case "(($ac_try" in 1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1730 *) ac_try_echo=$ac_try;; 1731esac 1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1733$as_echo "$ac_try_echo"; } >&5 1734 (eval "$ac_try") 2>&5 1735 ac_status=$? 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; }; }; then : 1738 ac_retval=0 1739else 1740 $as_echo "$as_me: program exited with status $ac_status" >&5 1741 $as_echo "$as_me: failed program was:" >&5 1742sed 's/^/| /' conftest.$ac_ext >&5 1743 1744 ac_retval=$ac_status 1745fi 1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1748 as_fn_set_status $ac_retval 1749 1750} # ac_fn_c_try_run 1751 1752# ac_fn_c_check_func LINENO FUNC VAR 1753# ---------------------------------- 1754# Tests whether FUNC exists, setting the cache variable VAR accordingly 1755ac_fn_c_check_func () 1756{ 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1759$as_echo_n "checking for $2... " >&6; } 1760if eval \${$3+:} false; then : 1761 $as_echo_n "(cached) " >&6 1762else 1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1764/* end confdefs.h. */ 1765/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1766 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1767#define $2 innocuous_$2 1768 1769/* System header to define __stub macros and hopefully few prototypes, 1770 which can conflict with char $2 (); below. 1771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1772 <limits.h> exists even on freestanding compilers. */ 1773 1774#ifdef __STDC__ 1775# include <limits.h> 1776#else 1777# include <assert.h> 1778#endif 1779 1780#undef $2 1781 1782/* Override any GCC internal prototype to avoid an error. 1783 Use char because int might match the return type of a GCC 1784 builtin and then its argument prototype would still apply. */ 1785#ifdef __cplusplus 1786extern "C" 1787#endif 1788char $2 (); 1789/* The GNU C library defines this for functions which it implements 1790 to always fail with ENOSYS. Some functions are actually named 1791 something starting with __ and the normal name is an alias. */ 1792#if defined __stub_$2 || defined __stub___$2 1793choke me 1794#endif 1795 1796int 1797main () 1798{ 1799return $2 (); 1800 ; 1801 return 0; 1802} 1803_ACEOF 1804if ac_fn_c_try_link "$LINENO"; then : 1805 eval "$3=yes" 1806else 1807 eval "$3=no" 1808fi 1809rm -f core conftest.err conftest.$ac_objext \ 1810 conftest$ac_exeext conftest.$ac_ext 1811fi 1812eval ac_res=\$$3 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1814$as_echo "$ac_res" >&6; } 1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1816 1817} # ac_fn_c_check_func 1818 1819# ac_fn_cxx_try_cpp LINENO 1820# ------------------------ 1821# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1822ac_fn_cxx_try_cpp () 1823{ 1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 if { { ac_try="$ac_cpp conftest.$ac_ext" 1826case "(($ac_try" in 1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1828 *) ac_try_echo=$ac_try;; 1829esac 1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1831$as_echo "$ac_try_echo"; } >&5 1832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1833 ac_status=$? 1834 if test -s conftest.err; then 1835 grep -v '^ *+' conftest.err >conftest.er1 1836 cat conftest.er1 >&5 1837 mv -f conftest.er1 conftest.err 1838 fi 1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1840 test $ac_status = 0; } > conftest.i && { 1841 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1842 test ! -s conftest.err 1843 }; then : 1844 ac_retval=0 1845else 1846 $as_echo "$as_me: failed program was:" >&5 1847sed 's/^/| /' conftest.$ac_ext >&5 1848 1849 ac_retval=1 1850fi 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1852 as_fn_set_status $ac_retval 1853 1854} # ac_fn_cxx_try_cpp 1855 1856# ac_fn_cxx_try_link LINENO 1857# ------------------------- 1858# Try to link conftest.$ac_ext, and return whether this succeeded. 1859ac_fn_cxx_try_link () 1860{ 1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1862 rm -f conftest.$ac_objext conftest$ac_exeext 1863 if { { ac_try="$ac_link" 1864case "(($ac_try" in 1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1866 *) ac_try_echo=$ac_try;; 1867esac 1868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1869$as_echo "$ac_try_echo"; } >&5 1870 (eval "$ac_link") 2>conftest.err 1871 ac_status=$? 1872 if test -s conftest.err; then 1873 grep -v '^ *+' conftest.err >conftest.er1 1874 cat conftest.er1 >&5 1875 mv -f conftest.er1 conftest.err 1876 fi 1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1878 test $ac_status = 0; } && { 1879 test -z "$ac_cxx_werror_flag" || 1880 test ! -s conftest.err 1881 } && test -s conftest$ac_exeext && { 1882 test "$cross_compiling" = yes || 1883 $as_test_x conftest$ac_exeext 1884 }; then : 1885 ac_retval=0 1886else 1887 $as_echo "$as_me: failed program was:" >&5 1888sed 's/^/| /' conftest.$ac_ext >&5 1889 1890 ac_retval=1 1891fi 1892 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1893 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1894 # interfere with the next link command; also delete a directory that is 1895 # left behind by Apple's compiler. We do this before executing the actions. 1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1898 as_fn_set_status $ac_retval 1899 1900} # ac_fn_cxx_try_link 1901 1902# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 1903# --------------------------------------------- 1904# Tests whether TYPE exists after having included INCLUDES, setting cache 1905# variable VAR accordingly. 1906ac_fn_cxx_check_type () 1907{ 1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1910$as_echo_n "checking for $2... " >&6; } 1911if eval \${$3+:} false; then : 1912 $as_echo_n "(cached) " >&6 1913else 1914 eval "$3=no" 1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1916/* end confdefs.h. */ 1917$4 1918int 1919main () 1920{ 1921if (sizeof ($2)) 1922 return 0; 1923 ; 1924 return 0; 1925} 1926_ACEOF 1927if ac_fn_cxx_try_compile "$LINENO"; then : 1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1929/* end confdefs.h. */ 1930$4 1931int 1932main () 1933{ 1934if (sizeof (($2))) 1935 return 0; 1936 ; 1937 return 0; 1938} 1939_ACEOF 1940if ac_fn_cxx_try_compile "$LINENO"; then : 1941 1942else 1943 eval "$3=yes" 1944fi 1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1946fi 1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1948fi 1949eval ac_res=\$$3 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1951$as_echo "$ac_res" >&6; } 1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1953 1954} # ac_fn_cxx_check_type 1955cat >config.log <<_ACEOF 1956This file contains any messages produced by compilers while 1957running configure, to aid debugging if configure makes a mistake. 1958 1959It was created by OpenFst $as_me 1.3.3, which was 1960generated by GNU Autoconf 2.68. Invocation command line was 1961 1962 $ $0 $@ 1963 1964_ACEOF 1965exec 5>>config.log 1966{ 1967cat <<_ASUNAME 1968## --------- ## 1969## Platform. ## 1970## --------- ## 1971 1972hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1973uname -m = `(uname -m) 2>/dev/null || echo unknown` 1974uname -r = `(uname -r) 2>/dev/null || echo unknown` 1975uname -s = `(uname -s) 2>/dev/null || echo unknown` 1976uname -v = `(uname -v) 2>/dev/null || echo unknown` 1977 1978/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1979/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1980 1981/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1982/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1983/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1984/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1985/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1986/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1987/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1988 1989_ASUNAME 1990 1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1992for as_dir in $PATH 1993do 1994 IFS=$as_save_IFS 1995 test -z "$as_dir" && as_dir=. 1996 $as_echo "PATH: $as_dir" 1997 done 1998IFS=$as_save_IFS 1999 2000} >&5 2001 2002cat >&5 <<_ACEOF 2003 2004 2005## ----------- ## 2006## Core tests. ## 2007## ----------- ## 2008 2009_ACEOF 2010 2011 2012# Keep a trace of the command line. 2013# Strip out --no-create and --no-recursion so they do not pile up. 2014# Strip out --silent because we don't want to record it for future runs. 2015# Also quote any args containing shell meta-characters. 2016# Make two passes to allow for proper duplicate-argument suppression. 2017ac_configure_args= 2018ac_configure_args0= 2019ac_configure_args1= 2020ac_must_keep_next=false 2021for ac_pass in 1 2 2022do 2023 for ac_arg 2024 do 2025 case $ac_arg in 2026 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2028 | -silent | --silent | --silen | --sile | --sil) 2029 continue ;; 2030 *\'*) 2031 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2032 esac 2033 case $ac_pass in 2034 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2035 2) 2036 as_fn_append ac_configure_args1 " '$ac_arg'" 2037 if test $ac_must_keep_next = true; then 2038 ac_must_keep_next=false # Got value, back to normal. 2039 else 2040 case $ac_arg in 2041 *=* | --config-cache | -C | -disable-* | --disable-* \ 2042 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2043 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2044 | -with-* | --with-* | -without-* | --without-* | --x) 2045 case "$ac_configure_args0 " in 2046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2047 esac 2048 ;; 2049 -* ) ac_must_keep_next=true ;; 2050 esac 2051 fi 2052 as_fn_append ac_configure_args " '$ac_arg'" 2053 ;; 2054 esac 2055 done 2056done 2057{ ac_configure_args0=; unset ac_configure_args0;} 2058{ ac_configure_args1=; unset ac_configure_args1;} 2059 2060# When interrupted or exit'd, cleanup temporary files, and complete 2061# config.log. We remove comments because anyway the quotes in there 2062# would cause problems or look ugly. 2063# WARNING: Use '\'' to represent an apostrophe within the trap. 2064# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2065trap 'exit_status=$? 2066 # Save into config.log some information that might help in debugging. 2067 { 2068 echo 2069 2070 $as_echo "## ---------------- ## 2071## Cache variables. ## 2072## ---------------- ##" 2073 echo 2074 # The following way of writing the cache mishandles newlines in values, 2075( 2076 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2077 eval ac_val=\$$ac_var 2078 case $ac_val in #( 2079 *${as_nl}*) 2080 case $ac_var in #( 2081 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2082$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2083 esac 2084 case $ac_var in #( 2085 _ | IFS | as_nl) ;; #( 2086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2087 *) { eval $ac_var=; unset $ac_var;} ;; 2088 esac ;; 2089 esac 2090 done 2091 (set) 2>&1 | 2092 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2093 *${as_nl}ac_space=\ *) 2094 sed -n \ 2095 "s/'\''/'\''\\\\'\'''\''/g; 2096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2097 ;; #( 2098 *) 2099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2100 ;; 2101 esac | 2102 sort 2103) 2104 echo 2105 2106 $as_echo "## ----------------- ## 2107## Output variables. ## 2108## ----------------- ##" 2109 echo 2110 for ac_var in $ac_subst_vars 2111 do 2112 eval ac_val=\$$ac_var 2113 case $ac_val in 2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2115 esac 2116 $as_echo "$ac_var='\''$ac_val'\''" 2117 done | sort 2118 echo 2119 2120 if test -n "$ac_subst_files"; then 2121 $as_echo "## ------------------- ## 2122## File substitutions. ## 2123## ------------------- ##" 2124 echo 2125 for ac_var in $ac_subst_files 2126 do 2127 eval ac_val=\$$ac_var 2128 case $ac_val in 2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2130 esac 2131 $as_echo "$ac_var='\''$ac_val'\''" 2132 done | sort 2133 echo 2134 fi 2135 2136 if test -s confdefs.h; then 2137 $as_echo "## ----------- ## 2138## confdefs.h. ## 2139## ----------- ##" 2140 echo 2141 cat confdefs.h 2142 echo 2143 fi 2144 test "$ac_signal" != 0 && 2145 $as_echo "$as_me: caught signal $ac_signal" 2146 $as_echo "$as_me: exit $exit_status" 2147 } >&5 2148 rm -f core *.core core.conftest.* && 2149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2150 exit $exit_status 2151' 0 2152for ac_signal in 1 2 13 15; do 2153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2154done 2155ac_signal=0 2156 2157# confdefs.h avoids OS command line length limits that DEFS can exceed. 2158rm -f -r conftest* confdefs.h 2159 2160$as_echo "/* confdefs.h */" > confdefs.h 2161 2162# Predefined preprocessor variables. 2163 2164cat >>confdefs.h <<_ACEOF 2165#define PACKAGE_NAME "$PACKAGE_NAME" 2166_ACEOF 2167 2168cat >>confdefs.h <<_ACEOF 2169#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2170_ACEOF 2171 2172cat >>confdefs.h <<_ACEOF 2173#define PACKAGE_VERSION "$PACKAGE_VERSION" 2174_ACEOF 2175 2176cat >>confdefs.h <<_ACEOF 2177#define PACKAGE_STRING "$PACKAGE_STRING" 2178_ACEOF 2179 2180cat >>confdefs.h <<_ACEOF 2181#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2182_ACEOF 2183 2184cat >>confdefs.h <<_ACEOF 2185#define PACKAGE_URL "$PACKAGE_URL" 2186_ACEOF 2187 2188 2189# Let the site file select an alternate cache file if it wants to. 2190# Prefer an explicitly selected file to automatically selected ones. 2191ac_site_file1=NONE 2192ac_site_file2=NONE 2193if test -n "$CONFIG_SITE"; then 2194 # We do not want a PATH search for config.site. 2195 case $CONFIG_SITE in #(( 2196 -*) ac_site_file1=./$CONFIG_SITE;; 2197 */*) ac_site_file1=$CONFIG_SITE;; 2198 *) ac_site_file1=./$CONFIG_SITE;; 2199 esac 2200elif test "x$prefix" != xNONE; then 2201 ac_site_file1=$prefix/share/config.site 2202 ac_site_file2=$prefix/etc/config.site 2203else 2204 ac_site_file1=$ac_default_prefix/share/config.site 2205 ac_site_file2=$ac_default_prefix/etc/config.site 2206fi 2207for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2208do 2209 test "x$ac_site_file" = xNONE && continue 2210 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2212$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2213 sed 's/^/| /' "$ac_site_file" >&5 2214 . "$ac_site_file" \ 2215 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2217as_fn_error $? "failed to load site script $ac_site_file 2218See \`config.log' for more details" "$LINENO" 5; } 2219 fi 2220done 2221 2222if test -r "$cache_file"; then 2223 # Some versions of bash will fail to source /dev/null (special files 2224 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2225 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2227$as_echo "$as_me: loading cache $cache_file" >&6;} 2228 case $cache_file in 2229 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2230 *) . "./$cache_file";; 2231 esac 2232 fi 2233else 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2235$as_echo "$as_me: creating cache $cache_file" >&6;} 2236 >$cache_file 2237fi 2238 2239# Check that the precious variables saved in the cache have kept the same 2240# value. 2241ac_cache_corrupted=false 2242for ac_var in $ac_precious_vars; do 2243 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2244 eval ac_new_set=\$ac_env_${ac_var}_set 2245 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2246 eval ac_new_val=\$ac_env_${ac_var}_value 2247 case $ac_old_set,$ac_new_set in 2248 set,) 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2250$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2251 ac_cache_corrupted=: ;; 2252 ,set) 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2254$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2255 ac_cache_corrupted=: ;; 2256 ,);; 2257 *) 2258 if test "x$ac_old_val" != "x$ac_new_val"; then 2259 # differences in whitespace do not lead to failure. 2260 ac_old_val_w=`echo x $ac_old_val` 2261 ac_new_val_w=`echo x $ac_new_val` 2262 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2264$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2265 ac_cache_corrupted=: 2266 else 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2268$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2269 eval $ac_var=\$ac_old_val 2270 fi 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2272$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2274$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2275 fi;; 2276 esac 2277 # Pass precious variables to config.status. 2278 if test "$ac_new_set" = set; then 2279 case $ac_new_val in 2280 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2281 *) ac_arg=$ac_var=$ac_new_val ;; 2282 esac 2283 case " $ac_configure_args " in 2284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2285 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2286 esac 2287 fi 2288done 2289if $ac_cache_corrupted; then 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2293$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2294 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2295fi 2296## -------------------- ## 2297## Main body of script. ## 2298## -------------------- ## 2299 2300ac_ext=c 2301ac_cpp='$CPP $CPPFLAGS' 2302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2304ac_compiler_gnu=$ac_cv_c_compiler_gnu 2305 2306 2307am__api_version='1.11' 2308 2309ac_aux_dir= 2310for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2311 if test -f "$ac_dir/install-sh"; then 2312 ac_aux_dir=$ac_dir 2313 ac_install_sh="$ac_aux_dir/install-sh -c" 2314 break 2315 elif test -f "$ac_dir/install.sh"; then 2316 ac_aux_dir=$ac_dir 2317 ac_install_sh="$ac_aux_dir/install.sh -c" 2318 break 2319 elif test -f "$ac_dir/shtool"; then 2320 ac_aux_dir=$ac_dir 2321 ac_install_sh="$ac_aux_dir/shtool install -c" 2322 break 2323 fi 2324done 2325if test -z "$ac_aux_dir"; then 2326 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2327fi 2328 2329# These three variables are undocumented and unsupported, 2330# and are intended to be withdrawn in a future Autoconf release. 2331# They can cause serious problems if a builder's source tree is in a directory 2332# whose full name contains unusual characters. 2333ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2334ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2335ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2336 2337 2338# Find a good install program. We prefer a C program (faster), 2339# so one script is as good as another. But avoid the broken or 2340# incompatible versions: 2341# SysV /etc/install, /usr/sbin/install 2342# SunOS /usr/etc/install 2343# IRIX /sbin/install 2344# AIX /bin/install 2345# AmigaOS /C/install, which installs bootblocks on floppy discs 2346# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2347# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2348# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2349# OS/2's system install, which has a completely different semantic 2350# ./install, which can be erroneously created by make from ./install.sh. 2351# Reject install programs that cannot install multiple files. 2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2353$as_echo_n "checking for a BSD-compatible install... " >&6; } 2354if test -z "$INSTALL"; then 2355if ${ac_cv_path_install+:} false; then : 2356 $as_echo_n "(cached) " >&6 2357else 2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2359for as_dir in $PATH 2360do 2361 IFS=$as_save_IFS 2362 test -z "$as_dir" && as_dir=. 2363 # Account for people who put trailing slashes in PATH elements. 2364case $as_dir/ in #(( 2365 ./ | .// | /[cC]/* | \ 2366 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2367 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2368 /usr/ucb/* ) ;; 2369 *) 2370 # OSF1 and SCO ODT 3.0 have their own names for install. 2371 # Don't use installbsd from OSF since it installs stuff as root 2372 # by default. 2373 for ac_prog in ginstall scoinst install; do 2374 for ac_exec_ext in '' $ac_executable_extensions; do 2375 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2376 if test $ac_prog = install && 2377 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2378 # AIX install. It has an incompatible calling convention. 2379 : 2380 elif test $ac_prog = install && 2381 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2382 # program-specific install script used by HP pwplus--don't use. 2383 : 2384 else 2385 rm -rf conftest.one conftest.two conftest.dir 2386 echo one > conftest.one 2387 echo two > conftest.two 2388 mkdir conftest.dir 2389 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2390 test -s conftest.one && test -s conftest.two && 2391 test -s conftest.dir/conftest.one && 2392 test -s conftest.dir/conftest.two 2393 then 2394 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2395 break 3 2396 fi 2397 fi 2398 fi 2399 done 2400 done 2401 ;; 2402esac 2403 2404 done 2405IFS=$as_save_IFS 2406 2407rm -rf conftest.one conftest.two conftest.dir 2408 2409fi 2410 if test "${ac_cv_path_install+set}" = set; then 2411 INSTALL=$ac_cv_path_install 2412 else 2413 # As a last resort, use the slow shell script. Don't cache a 2414 # value for INSTALL within a source directory, because that will 2415 # break other packages using the cache if that directory is 2416 # removed, or if the value is a relative name. 2417 INSTALL=$ac_install_sh 2418 fi 2419fi 2420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2421$as_echo "$INSTALL" >&6; } 2422 2423# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2424# It thinks the first close brace ends the variable substitution. 2425test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2426 2427test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2428 2429test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2430 2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2432$as_echo_n "checking whether build environment is sane... " >&6; } 2433# Just in case 2434sleep 1 2435echo timestamp > conftest.file 2436# Reject unsafe characters in $srcdir or the absolute working directory 2437# name. Accept space and tab only in the latter. 2438am_lf=' 2439' 2440case `pwd` in 2441 *[\\\"\#\$\&\'\`$am_lf]*) 2442 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2443esac 2444case $srcdir in 2445 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2446 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2447esac 2448 2449# Do `set' in a subshell so we don't clobber the current shell's 2450# arguments. Must try -L first in case configure is actually a 2451# symlink; some systems play weird games with the mod time of symlinks 2452# (eg FreeBSD returns the mod time of the symlink's containing 2453# directory). 2454if ( 2455 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2456 if test "$*" = "X"; then 2457 # -L didn't work. 2458 set X `ls -t "$srcdir/configure" conftest.file` 2459 fi 2460 rm -f conftest.file 2461 if test "$*" != "X $srcdir/configure conftest.file" \ 2462 && test "$*" != "X conftest.file $srcdir/configure"; then 2463 2464 # If neither matched, then we have a broken ls. This can happen 2465 # if, for instance, CONFIG_SHELL is bash and it inherits a 2466 # broken ls alias from the environment. This has actually 2467 # happened. Such a system could not be considered "sane". 2468 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2469alias in your environment" "$LINENO" 5 2470 fi 2471 2472 test "$2" = conftest.file 2473 ) 2474then 2475 # Ok. 2476 : 2477else 2478 as_fn_error $? "newly created file is older than distributed files! 2479Check your system clock" "$LINENO" 5 2480fi 2481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2482$as_echo "yes" >&6; } 2483test "$program_prefix" != NONE && 2484 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2485# Use a double $ so make ignores it. 2486test "$program_suffix" != NONE && 2487 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2488# Double any \ or $. 2489# By default was `s,x,x', remove it if useless. 2490ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2491program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2492 2493# expand $ac_aux_dir to an absolute path 2494am_aux_dir=`cd $ac_aux_dir && pwd` 2495 2496if test x"${MISSING+set}" != xset; then 2497 case $am_aux_dir in 2498 *\ * | *\ *) 2499 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2500 *) 2501 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2502 esac 2503fi 2504# Use eval to expand $SHELL 2505if eval "$MISSING --run true"; then 2506 am_missing_run="$MISSING --run " 2507else 2508 am_missing_run= 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2510$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2511fi 2512 2513if test x"${install_sh}" != xset; then 2514 case $am_aux_dir in 2515 *\ * | *\ *) 2516 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2517 *) 2518 install_sh="\${SHELL} $am_aux_dir/install-sh" 2519 esac 2520fi 2521 2522# Installed binaries are usually stripped using `strip' when the user 2523# run `make install-strip'. However `strip' might not be the right 2524# tool to use in cross-compilation environments, therefore Automake 2525# will honor the `STRIP' environment variable to overrule this program. 2526if test "$cross_compiling" != no; then 2527 if test -n "$ac_tool_prefix"; then 2528 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2529set dummy ${ac_tool_prefix}strip; ac_word=$2 2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2531$as_echo_n "checking for $ac_word... " >&6; } 2532if ${ac_cv_prog_STRIP+:} false; then : 2533 $as_echo_n "(cached) " >&6 2534else 2535 if test -n "$STRIP"; then 2536 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2537else 2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2539for as_dir in $PATH 2540do 2541 IFS=$as_save_IFS 2542 test -z "$as_dir" && as_dir=. 2543 for ac_exec_ext in '' $ac_executable_extensions; do 2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2545 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2547 break 2 2548 fi 2549done 2550 done 2551IFS=$as_save_IFS 2552 2553fi 2554fi 2555STRIP=$ac_cv_prog_STRIP 2556if test -n "$STRIP"; then 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2558$as_echo "$STRIP" >&6; } 2559else 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2561$as_echo "no" >&6; } 2562fi 2563 2564 2565fi 2566if test -z "$ac_cv_prog_STRIP"; then 2567 ac_ct_STRIP=$STRIP 2568 # Extract the first word of "strip", so it can be a program name with args. 2569set dummy strip; ac_word=$2 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2571$as_echo_n "checking for $ac_word... " >&6; } 2572if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2573 $as_echo_n "(cached) " >&6 2574else 2575 if test -n "$ac_ct_STRIP"; then 2576 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2577else 2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2579for as_dir in $PATH 2580do 2581 IFS=$as_save_IFS 2582 test -z "$as_dir" && as_dir=. 2583 for ac_exec_ext in '' $ac_executable_extensions; do 2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2585 ac_cv_prog_ac_ct_STRIP="strip" 2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2587 break 2 2588 fi 2589done 2590 done 2591IFS=$as_save_IFS 2592 2593fi 2594fi 2595ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2596if test -n "$ac_ct_STRIP"; then 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2598$as_echo "$ac_ct_STRIP" >&6; } 2599else 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2601$as_echo "no" >&6; } 2602fi 2603 2604 if test "x$ac_ct_STRIP" = x; then 2605 STRIP=":" 2606 else 2607 case $cross_compiling:$ac_tool_warned in 2608yes:) 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2611ac_tool_warned=yes ;; 2612esac 2613 STRIP=$ac_ct_STRIP 2614 fi 2615else 2616 STRIP="$ac_cv_prog_STRIP" 2617fi 2618 2619fi 2620INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2621 2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2623$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2624if test -z "$MKDIR_P"; then 2625 if ${ac_cv_path_mkdir+:} false; then : 2626 $as_echo_n "(cached) " >&6 2627else 2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2630do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_prog in mkdir gmkdir; do 2634 for ac_exec_ext in '' $ac_executable_extensions; do 2635 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2636 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2637 'mkdir (GNU coreutils) '* | \ 2638 'mkdir (coreutils) '* | \ 2639 'mkdir (fileutils) '4.1*) 2640 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2641 break 3;; 2642 esac 2643 done 2644 done 2645 done 2646IFS=$as_save_IFS 2647 2648fi 2649 2650 test -d ./--version && rmdir ./--version 2651 if test "${ac_cv_path_mkdir+set}" = set; then 2652 MKDIR_P="$ac_cv_path_mkdir -p" 2653 else 2654 # As a last resort, use the slow shell script. Don't cache a 2655 # value for MKDIR_P within a source directory, because that will 2656 # break other packages using the cache if that directory is 2657 # removed, or if the value is a relative name. 2658 MKDIR_P="$ac_install_sh -d" 2659 fi 2660fi 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2662$as_echo "$MKDIR_P" >&6; } 2663 2664mkdir_p="$MKDIR_P" 2665case $mkdir_p in 2666 [\\/$]* | ?:[\\/]*) ;; 2667 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2668esac 2669 2670for ac_prog in gawk mawk nawk awk 2671do 2672 # Extract the first word of "$ac_prog", so it can be a program name with args. 2673set dummy $ac_prog; ac_word=$2 2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2675$as_echo_n "checking for $ac_word... " >&6; } 2676if ${ac_cv_prog_AWK+:} false; then : 2677 $as_echo_n "(cached) " >&6 2678else 2679 if test -n "$AWK"; then 2680 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2681else 2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2683for as_dir in $PATH 2684do 2685 IFS=$as_save_IFS 2686 test -z "$as_dir" && as_dir=. 2687 for ac_exec_ext in '' $ac_executable_extensions; do 2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2689 ac_cv_prog_AWK="$ac_prog" 2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2691 break 2 2692 fi 2693done 2694 done 2695IFS=$as_save_IFS 2696 2697fi 2698fi 2699AWK=$ac_cv_prog_AWK 2700if test -n "$AWK"; then 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2702$as_echo "$AWK" >&6; } 2703else 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2705$as_echo "no" >&6; } 2706fi 2707 2708 2709 test -n "$AWK" && break 2710done 2711 2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2713$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2714set x ${MAKE-make} 2715ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2716if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2717 $as_echo_n "(cached) " >&6 2718else 2719 cat >conftest.make <<\_ACEOF 2720SHELL = /bin/sh 2721all: 2722 @echo '@@@%%%=$(MAKE)=@@@%%%' 2723_ACEOF 2724# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2725case `${MAKE-make} -f conftest.make 2>/dev/null` in 2726 *@@@%%%=?*=@@@%%%*) 2727 eval ac_cv_prog_make_${ac_make}_set=yes;; 2728 *) 2729 eval ac_cv_prog_make_${ac_make}_set=no;; 2730esac 2731rm -f conftest.make 2732fi 2733if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2735$as_echo "yes" >&6; } 2736 SET_MAKE= 2737else 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2739$as_echo "no" >&6; } 2740 SET_MAKE="MAKE=${MAKE-make}" 2741fi 2742 2743rm -rf .tst 2>/dev/null 2744mkdir .tst 2>/dev/null 2745if test -d .tst; then 2746 am__leading_dot=. 2747else 2748 am__leading_dot=_ 2749fi 2750rmdir .tst 2>/dev/null 2751 2752if test "`cd $srcdir && pwd`" != "`pwd`"; then 2753 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2754 # is not polluted with repeated "-I." 2755 am__isrc=' -I$(srcdir)' 2756 # test to see if srcdir already configured 2757 if test -f $srcdir/config.status; then 2758 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2759 fi 2760fi 2761 2762# test whether we have cygpath 2763if test -z "$CYGPATH_W"; then 2764 if (cygpath --version) >/dev/null 2>/dev/null; then 2765 CYGPATH_W='cygpath -w' 2766 else 2767 CYGPATH_W=echo 2768 fi 2769fi 2770 2771 2772# Define the identity of the package. 2773 PACKAGE='openfst' 2774 VERSION='1.3.3' 2775 2776 2777cat >>confdefs.h <<_ACEOF 2778#define PACKAGE "$PACKAGE" 2779_ACEOF 2780 2781 2782cat >>confdefs.h <<_ACEOF 2783#define VERSION "$VERSION" 2784_ACEOF 2785 2786# Some tools Automake needs. 2787 2788ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2789 2790 2791AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2792 2793 2794AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2795 2796 2797AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2798 2799 2800MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2801 2802# We need awk for the "check" target. The system "awk" is bad on 2803# some platforms. 2804# Always define AMTAR for backward compatibility. Yes, it's still used 2805# in the wild :-( We should find a proper way to deprecate it ... 2806AMTAR='$${TAR-tar}' 2807 2808am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2809 2810 2811 2812 2813 2814 2815ac_ext=cpp 2816ac_cpp='$CXXCPP $CPPFLAGS' 2817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2820if test -z "$CXX"; then 2821 if test -n "$CCC"; then 2822 CXX=$CCC 2823 else 2824 if test -n "$ac_tool_prefix"; then 2825 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2826 do 2827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2828set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2830$as_echo_n "checking for $ac_word... " >&6; } 2831if ${ac_cv_prog_CXX+:} false; then : 2832 $as_echo_n "(cached) " >&6 2833else 2834 if test -n "$CXX"; then 2835 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2836else 2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2838for as_dir in $PATH 2839do 2840 IFS=$as_save_IFS 2841 test -z "$as_dir" && as_dir=. 2842 for ac_exec_ext in '' $ac_executable_extensions; do 2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2844 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2846 break 2 2847 fi 2848done 2849 done 2850IFS=$as_save_IFS 2851 2852fi 2853fi 2854CXX=$ac_cv_prog_CXX 2855if test -n "$CXX"; then 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 2857$as_echo "$CXX" >&6; } 2858else 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2860$as_echo "no" >&6; } 2861fi 2862 2863 2864 test -n "$CXX" && break 2865 done 2866fi 2867if test -z "$CXX"; then 2868 ac_ct_CXX=$CXX 2869 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2870do 2871 # Extract the first word of "$ac_prog", so it can be a program name with args. 2872set dummy $ac_prog; ac_word=$2 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2874$as_echo_n "checking for $ac_word... " >&6; } 2875if ${ac_cv_prog_ac_ct_CXX+:} false; then : 2876 $as_echo_n "(cached) " >&6 2877else 2878 if test -n "$ac_ct_CXX"; then 2879 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2880else 2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882for as_dir in $PATH 2883do 2884 IFS=$as_save_IFS 2885 test -z "$as_dir" && as_dir=. 2886 for ac_exec_ext in '' $ac_executable_extensions; do 2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2888 ac_cv_prog_ac_ct_CXX="$ac_prog" 2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2890 break 2 2891 fi 2892done 2893 done 2894IFS=$as_save_IFS 2895 2896fi 2897fi 2898ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2899if test -n "$ac_ct_CXX"; then 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 2901$as_echo "$ac_ct_CXX" >&6; } 2902else 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2904$as_echo "no" >&6; } 2905fi 2906 2907 2908 test -n "$ac_ct_CXX" && break 2909done 2910 2911 if test "x$ac_ct_CXX" = x; then 2912 CXX="g++" 2913 else 2914 case $cross_compiling:$ac_tool_warned in 2915yes:) 2916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2918ac_tool_warned=yes ;; 2919esac 2920 CXX=$ac_ct_CXX 2921 fi 2922fi 2923 2924 fi 2925fi 2926# Provide some information about the compiler. 2927$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 2928set X $ac_compile 2929ac_compiler=$2 2930for ac_option in --version -v -V -qversion; do 2931 { { ac_try="$ac_compiler $ac_option >&5" 2932case "(($ac_try" in 2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2934 *) ac_try_echo=$ac_try;; 2935esac 2936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2937$as_echo "$ac_try_echo"; } >&5 2938 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2939 ac_status=$? 2940 if test -s conftest.err; then 2941 sed '10a\ 2942... rest of stderr output deleted ... 2943 10q' conftest.err >conftest.er1 2944 cat conftest.er1 >&5 2945 fi 2946 rm -f conftest.er1 conftest.err 2947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2948 test $ac_status = 0; } 2949done 2950 2951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2952/* end confdefs.h. */ 2953 2954int 2955main () 2956{ 2957 2958 ; 2959 return 0; 2960} 2961_ACEOF 2962ac_clean_files_save=$ac_clean_files 2963ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2964# Try to create an executable without -o first, disregard a.out. 2965# It will help us diagnose broken compilers, and finding out an intuition 2966# of exeext. 2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 2968$as_echo_n "checking whether the C++ compiler works... " >&6; } 2969ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2970 2971# The possible output files: 2972ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2973 2974ac_rmfiles= 2975for ac_file in $ac_files 2976do 2977 case $ac_file in 2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2979 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2980 esac 2981done 2982rm -f $ac_rmfiles 2983 2984if { { ac_try="$ac_link_default" 2985case "(($ac_try" in 2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2987 *) ac_try_echo=$ac_try;; 2988esac 2989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2990$as_echo "$ac_try_echo"; } >&5 2991 (eval "$ac_link_default") 2>&5 2992 ac_status=$? 2993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2994 test $ac_status = 0; }; then : 2995 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2996# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2997# in a Makefile. We should not override ac_cv_exeext if it was cached, 2998# so that the user can short-circuit this test for compilers unknown to 2999# Autoconf. 3000for ac_file in $ac_files '' 3001do 3002 test -f "$ac_file" || continue 3003 case $ac_file in 3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3005 ;; 3006 [ab].out ) 3007 # We found the default executable, but exeext='' is most 3008 # certainly right. 3009 break;; 3010 *.* ) 3011 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3012 then :; else 3013 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3014 fi 3015 # We set ac_cv_exeext here because the later test for it is not 3016 # safe: cross compilers may not add the suffix if given an `-o' 3017 # argument, so we may need to know it at that point already. 3018 # Even if this section looks crufty: it has the advantage of 3019 # actually working. 3020 break;; 3021 * ) 3022 break;; 3023 esac 3024done 3025test "$ac_cv_exeext" = no && ac_cv_exeext= 3026 3027else 3028 ac_file='' 3029fi 3030if test -z "$ac_file"; then : 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3032$as_echo "no" >&6; } 3033$as_echo "$as_me: failed program was:" >&5 3034sed 's/^/| /' conftest.$ac_ext >&5 3035 3036{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3038as_fn_error 77 "C++ compiler cannot create executables 3039See \`config.log' for more details" "$LINENO" 5; } 3040else 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3042$as_echo "yes" >&6; } 3043fi 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 3045$as_echo_n "checking for C++ compiler default output file name... " >&6; } 3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3047$as_echo "$ac_file" >&6; } 3048ac_exeext=$ac_cv_exeext 3049 3050rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3051ac_clean_files=$ac_clean_files_save 3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3053$as_echo_n "checking for suffix of executables... " >&6; } 3054if { { ac_try="$ac_link" 3055case "(($ac_try" in 3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3057 *) ac_try_echo=$ac_try;; 3058esac 3059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3060$as_echo "$ac_try_echo"; } >&5 3061 (eval "$ac_link") 2>&5 3062 ac_status=$? 3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3064 test $ac_status = 0; }; then : 3065 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3066# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3067# work properly (i.e., refer to `conftest.exe'), while it won't with 3068# `rm'. 3069for ac_file in conftest.exe conftest conftest.*; do 3070 test -f "$ac_file" || continue 3071 case $ac_file in 3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3074 break;; 3075 * ) break;; 3076 esac 3077done 3078else 3079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3081as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3082See \`config.log' for more details" "$LINENO" 5; } 3083fi 3084rm -f conftest conftest$ac_cv_exeext 3085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3086$as_echo "$ac_cv_exeext" >&6; } 3087 3088rm -f conftest.$ac_ext 3089EXEEXT=$ac_cv_exeext 3090ac_exeext=$EXEEXT 3091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3092/* end confdefs.h. */ 3093#include <stdio.h> 3094int 3095main () 3096{ 3097FILE *f = fopen ("conftest.out", "w"); 3098 return ferror (f) || fclose (f) != 0; 3099 3100 ; 3101 return 0; 3102} 3103_ACEOF 3104ac_clean_files="$ac_clean_files conftest.out" 3105# Check that the compiler produces executables we can run. If not, either 3106# the compiler is broken, or we cross compile. 3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3108$as_echo_n "checking whether we are cross compiling... " >&6; } 3109if test "$cross_compiling" != yes; then 3110 { { ac_try="$ac_link" 3111case "(($ac_try" in 3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3113 *) ac_try_echo=$ac_try;; 3114esac 3115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3116$as_echo "$ac_try_echo"; } >&5 3117 (eval "$ac_link") 2>&5 3118 ac_status=$? 3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3120 test $ac_status = 0; } 3121 if { ac_try='./conftest$ac_cv_exeext' 3122 { { case "(($ac_try" in 3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3124 *) ac_try_echo=$ac_try;; 3125esac 3126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3127$as_echo "$ac_try_echo"; } >&5 3128 (eval "$ac_try") 2>&5 3129 ac_status=$? 3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3131 test $ac_status = 0; }; }; then 3132 cross_compiling=no 3133 else 3134 if test "$cross_compiling" = maybe; then 3135 cross_compiling=yes 3136 else 3137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3139as_fn_error $? "cannot run C++ compiled programs. 3140If you meant to cross compile, use \`--host'. 3141See \`config.log' for more details" "$LINENO" 5; } 3142 fi 3143 fi 3144fi 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3146$as_echo "$cross_compiling" >&6; } 3147 3148rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3149ac_clean_files=$ac_clean_files_save 3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3151$as_echo_n "checking for suffix of object files... " >&6; } 3152if ${ac_cv_objext+:} false; then : 3153 $as_echo_n "(cached) " >&6 3154else 3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3156/* end confdefs.h. */ 3157 3158int 3159main () 3160{ 3161 3162 ; 3163 return 0; 3164} 3165_ACEOF 3166rm -f conftest.o conftest.obj 3167if { { ac_try="$ac_compile" 3168case "(($ac_try" in 3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3170 *) ac_try_echo=$ac_try;; 3171esac 3172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3173$as_echo "$ac_try_echo"; } >&5 3174 (eval "$ac_compile") 2>&5 3175 ac_status=$? 3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3177 test $ac_status = 0; }; then : 3178 for ac_file in conftest.o conftest.obj conftest.*; do 3179 test -f "$ac_file" || continue; 3180 case $ac_file in 3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3183 break;; 3184 esac 3185done 3186else 3187 $as_echo "$as_me: failed program was:" >&5 3188sed 's/^/| /' conftest.$ac_ext >&5 3189 3190{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3192as_fn_error $? "cannot compute suffix of object files: cannot compile 3193See \`config.log' for more details" "$LINENO" 5; } 3194fi 3195rm -f conftest.$ac_cv_objext conftest.$ac_ext 3196fi 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3198$as_echo "$ac_cv_objext" >&6; } 3199OBJEXT=$ac_cv_objext 3200ac_objext=$OBJEXT 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3202$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3203if ${ac_cv_cxx_compiler_gnu+:} false; then : 3204 $as_echo_n "(cached) " >&6 3205else 3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3207/* end confdefs.h. */ 3208 3209int 3210main () 3211{ 3212#ifndef __GNUC__ 3213 choke me 3214#endif 3215 3216 ; 3217 return 0; 3218} 3219_ACEOF 3220if ac_fn_cxx_try_compile "$LINENO"; then : 3221 ac_compiler_gnu=yes 3222else 3223 ac_compiler_gnu=no 3224fi 3225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3226ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3227 3228fi 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3230$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3231if test $ac_compiler_gnu = yes; then 3232 GXX=yes 3233else 3234 GXX= 3235fi 3236ac_test_CXXFLAGS=${CXXFLAGS+set} 3237ac_save_CXXFLAGS=$CXXFLAGS 3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3239$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3240if ${ac_cv_prog_cxx_g+:} false; then : 3241 $as_echo_n "(cached) " >&6 3242else 3243 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3244 ac_cxx_werror_flag=yes 3245 ac_cv_prog_cxx_g=no 3246 CXXFLAGS="-g" 3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3248/* end confdefs.h. */ 3249 3250int 3251main () 3252{ 3253 3254 ; 3255 return 0; 3256} 3257_ACEOF 3258if ac_fn_cxx_try_compile "$LINENO"; then : 3259 ac_cv_prog_cxx_g=yes 3260else 3261 CXXFLAGS="" 3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3263/* end confdefs.h. */ 3264 3265int 3266main () 3267{ 3268 3269 ; 3270 return 0; 3271} 3272_ACEOF 3273if ac_fn_cxx_try_compile "$LINENO"; then : 3274 3275else 3276 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3277 CXXFLAGS="-g" 3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3279/* end confdefs.h. */ 3280 3281int 3282main () 3283{ 3284 3285 ; 3286 return 0; 3287} 3288_ACEOF 3289if ac_fn_cxx_try_compile "$LINENO"; then : 3290 ac_cv_prog_cxx_g=yes 3291fi 3292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3293fi 3294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3295fi 3296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3297 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3298fi 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3300$as_echo "$ac_cv_prog_cxx_g" >&6; } 3301if test "$ac_test_CXXFLAGS" = set; then 3302 CXXFLAGS=$ac_save_CXXFLAGS 3303elif test $ac_cv_prog_cxx_g = yes; then 3304 if test "$GXX" = yes; then 3305 CXXFLAGS="-g -O2" 3306 else 3307 CXXFLAGS="-g" 3308 fi 3309else 3310 if test "$GXX" = yes; then 3311 CXXFLAGS="-O2" 3312 else 3313 CXXFLAGS= 3314 fi 3315fi 3316ac_ext=c 3317ac_cpp='$CPP $CPPFLAGS' 3318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3320ac_compiler_gnu=$ac_cv_c_compiler_gnu 3321DEPDIR="${am__leading_dot}deps" 3322 3323ac_config_commands="$ac_config_commands depfiles" 3324 3325 3326am_make=${MAKE-make} 3327cat > confinc << 'END' 3328am__doit: 3329 @echo this is the am__doit target 3330.PHONY: am__doit 3331END 3332# If we don't find an include directive, just comment out the code. 3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3334$as_echo_n "checking for style of include used by $am_make... " >&6; } 3335am__include="#" 3336am__quote= 3337_am_result=none 3338# First try GNU make style include. 3339echo "include confinc" > confmf 3340# Ignore all kinds of additional output from `make'. 3341case `$am_make -s -f confmf 2> /dev/null` in #( 3342*the\ am__doit\ target*) 3343 am__include=include 3344 am__quote= 3345 _am_result=GNU 3346 ;; 3347esac 3348# Now try BSD make style include. 3349if test "$am__include" = "#"; then 3350 echo '.include "confinc"' > confmf 3351 case `$am_make -s -f confmf 2> /dev/null` in #( 3352 *the\ am__doit\ target*) 3353 am__include=.include 3354 am__quote="\"" 3355 _am_result=BSD 3356 ;; 3357 esac 3358fi 3359 3360 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3362$as_echo "$_am_result" >&6; } 3363rm -f confinc confmf 3364 3365# Check whether --enable-dependency-tracking was given. 3366if test "${enable_dependency_tracking+set}" = set; then : 3367 enableval=$enable_dependency_tracking; 3368fi 3369 3370if test "x$enable_dependency_tracking" != xno; then 3371 am_depcomp="$ac_aux_dir/depcomp" 3372 AMDEPBACKSLASH='\' 3373 am__nodep='_no' 3374fi 3375 if test "x$enable_dependency_tracking" != xno; then 3376 AMDEP_TRUE= 3377 AMDEP_FALSE='#' 3378else 3379 AMDEP_TRUE='#' 3380 AMDEP_FALSE= 3381fi 3382 3383 3384 3385depcc="$CXX" am_compiler_list= 3386 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3388$as_echo_n "checking dependency style of $depcc... " >&6; } 3389if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 3390 $as_echo_n "(cached) " >&6 3391else 3392 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3393 # We make a subdir and do the tests there. Otherwise we can end up 3394 # making bogus files that we don't know about and never remove. For 3395 # instance it was reported that on HP-UX the gcc test will end up 3396 # making a dummy file named `D' -- because `-MD' means `put the output 3397 # in D'. 3398 rm -rf conftest.dir 3399 mkdir conftest.dir 3400 # Copy depcomp to subdir because otherwise we won't find it if we're 3401 # using a relative directory. 3402 cp "$am_depcomp" conftest.dir 3403 cd conftest.dir 3404 # We will build objects and dependencies in a subdirectory because 3405 # it helps to detect inapplicable dependency modes. For instance 3406 # both Tru64's cc and ICC support -MD to output dependencies as a 3407 # side effect of compilation, but ICC will put the dependencies in 3408 # the current directory while Tru64 will put them in the object 3409 # directory. 3410 mkdir sub 3411 3412 am_cv_CXX_dependencies_compiler_type=none 3413 if test "$am_compiler_list" = ""; then 3414 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3415 fi 3416 am__universal=false 3417 case " $depcc " in #( 3418 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3419 esac 3420 3421 for depmode in $am_compiler_list; do 3422 # Setup a source with many dependencies, because some compilers 3423 # like to wrap large dependency lists on column 80 (with \), and 3424 # we should not choose a depcomp mode which is confused by this. 3425 # 3426 # We need to recreate these files for each test, as the compiler may 3427 # overwrite some of them when testing with obscure command lines. 3428 # This happens at least with the AIX C compiler. 3429 : > sub/conftest.c 3430 for i in 1 2 3 4 5 6; do 3431 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3432 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3433 # Solaris 8's {/usr,}/bin/sh. 3434 touch sub/conftst$i.h 3435 done 3436 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3437 3438 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3439 # mode. It turns out that the SunPro C++ compiler does not properly 3440 # handle `-M -o', and we need to detect this. Also, some Intel 3441 # versions had trouble with output in subdirs 3442 am__obj=sub/conftest.${OBJEXT-o} 3443 am__minus_obj="-o $am__obj" 3444 case $depmode in 3445 gcc) 3446 # This depmode causes a compiler race in universal mode. 3447 test "$am__universal" = false || continue 3448 ;; 3449 nosideeffect) 3450 # after this tag, mechanisms are not by side-effect, so they'll 3451 # only be used when explicitly requested 3452 if test "x$enable_dependency_tracking" = xyes; then 3453 continue 3454 else 3455 break 3456 fi 3457 ;; 3458 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3459 # This compiler won't grok `-c -o', but also, the minuso test has 3460 # not run yet. These depmodes are late enough in the game, and 3461 # so weak that their functioning should not be impacted. 3462 am__obj=conftest.${OBJEXT-o} 3463 am__minus_obj= 3464 ;; 3465 none) break ;; 3466 esac 3467 if depmode=$depmode \ 3468 source=sub/conftest.c object=$am__obj \ 3469 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3470 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3471 >/dev/null 2>conftest.err && 3472 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3474 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3476 # icc doesn't choke on unknown options, it will just issue warnings 3477 # or remarks (even with -Werror). So we grep stderr for any message 3478 # that says an option was ignored or not supported. 3479 # When given -MP, icc 7.0 and 7.1 complain thusly: 3480 # icc: Command line warning: ignoring option '-M'; no argument required 3481 # The diagnosis changed in icc 8.0: 3482 # icc: Command line remark: option '-MP' not supported 3483 if (grep 'ignoring option' conftest.err || 3484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3485 am_cv_CXX_dependencies_compiler_type=$depmode 3486 break 3487 fi 3488 fi 3489 done 3490 3491 cd .. 3492 rm -rf conftest.dir 3493else 3494 am_cv_CXX_dependencies_compiler_type=none 3495fi 3496 3497fi 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 3499$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3500CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3501 3502 if 3503 test "x$enable_dependency_tracking" != xno \ 3504 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3505 am__fastdepCXX_TRUE= 3506 am__fastdepCXX_FALSE='#' 3507else 3508 am__fastdepCXX_TRUE='#' 3509 am__fastdepCXX_FALSE= 3510fi 3511 3512 3513# Check whether --enable-static was given. 3514if test "${enable_static+set}" = set; then : 3515 enableval=$enable_static; p=${PACKAGE-default} 3516 case $enableval in 3517 yes) enable_static=yes ;; 3518 no) enable_static=no ;; 3519 *) 3520 enable_static=no 3521 # Look at the argument we got. We use all the common list separators. 3522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3523 for pkg in $enableval; do 3524 IFS="$lt_save_ifs" 3525 if test "X$pkg" = "X$p"; then 3526 enable_static=yes 3527 fi 3528 done 3529 IFS="$lt_save_ifs" 3530 ;; 3531 esac 3532else 3533 enable_static=no 3534fi 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544case `pwd` in 3545 *\ * | *\ *) 3546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3547$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3548esac 3549 3550 3551 3552macro_version='2.4.2' 3553macro_revision='1.3337' 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567ltmain="$ac_aux_dir/ltmain.sh" 3568 3569# Make sure we can run config.sub. 3570$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3571 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3572 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3574$as_echo_n "checking build system type... " >&6; } 3575if ${ac_cv_build+:} false; then : 3576 $as_echo_n "(cached) " >&6 3577else 3578 ac_build_alias=$build_alias 3579test "x$ac_build_alias" = x && 3580 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3581test "x$ac_build_alias" = x && 3582 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3583ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3584 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3585 3586fi 3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3588$as_echo "$ac_cv_build" >&6; } 3589case $ac_cv_build in 3590*-*-*) ;; 3591*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3592esac 3593build=$ac_cv_build 3594ac_save_IFS=$IFS; IFS='-' 3595set x $ac_cv_build 3596shift 3597build_cpu=$1 3598build_vendor=$2 3599shift; shift 3600# Remember, the first character of IFS is used to create $*, 3601# except with old shells: 3602build_os=$* 3603IFS=$ac_save_IFS 3604case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3605 3606 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3608$as_echo_n "checking host system type... " >&6; } 3609if ${ac_cv_host+:} false; then : 3610 $as_echo_n "(cached) " >&6 3611else 3612 if test "x$host_alias" = x; then 3613 ac_cv_host=$ac_cv_build 3614else 3615 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3616 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3617fi 3618 3619fi 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3621$as_echo "$ac_cv_host" >&6; } 3622case $ac_cv_host in 3623*-*-*) ;; 3624*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3625esac 3626host=$ac_cv_host 3627ac_save_IFS=$IFS; IFS='-' 3628set x $ac_cv_host 3629shift 3630host_cpu=$1 3631host_vendor=$2 3632shift; shift 3633# Remember, the first character of IFS is used to create $*, 3634# except with old shells: 3635host_os=$* 3636IFS=$ac_save_IFS 3637case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3638 3639 3640# Backslashify metacharacters that are still active within 3641# double-quoted strings. 3642sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3643 3644# Same as above, but do not quote variable references. 3645double_quote_subst='s/\(["`\\]\)/\\\1/g' 3646 3647# Sed substitution to delay expansion of an escaped shell variable in a 3648# double_quote_subst'ed string. 3649delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3650 3651# Sed substitution to delay expansion of an escaped single quote. 3652delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3653 3654# Sed substitution to avoid accidental globbing in evaled expressions 3655no_glob_subst='s/\*/\\\*/g' 3656 3657ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3658ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3659ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3660 3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3662$as_echo_n "checking how to print strings... " >&6; } 3663# Test print first, because it will be a builtin if present. 3664if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3665 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3666 ECHO='print -r --' 3667elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3668 ECHO='printf %s\n' 3669else 3670 # Use this function as a fallback that always works. 3671 func_fallback_echo () 3672 { 3673 eval 'cat <<_LTECHO_EOF 3674$1 3675_LTECHO_EOF' 3676 } 3677 ECHO='func_fallback_echo' 3678fi 3679 3680# func_echo_all arg... 3681# Invoke $ECHO with all args, space-separated. 3682func_echo_all () 3683{ 3684 $ECHO "" 3685} 3686 3687case "$ECHO" in 3688 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3689$as_echo "printf" >&6; } ;; 3690 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3691$as_echo "print -r" >&6; } ;; 3692 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3693$as_echo "cat" >&6; } ;; 3694esac 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709ac_ext=c 3710ac_cpp='$CPP $CPPFLAGS' 3711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3713ac_compiler_gnu=$ac_cv_c_compiler_gnu 3714if test -n "$ac_tool_prefix"; then 3715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3716set dummy ${ac_tool_prefix}gcc; ac_word=$2 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3718$as_echo_n "checking for $ac_word... " >&6; } 3719if ${ac_cv_prog_CC+:} false; then : 3720 $as_echo_n "(cached) " >&6 3721else 3722 if test -n "$CC"; then 3723 ac_cv_prog_CC="$CC" # Let the user override the test. 3724else 3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3726for as_dir in $PATH 3727do 3728 IFS=$as_save_IFS 3729 test -z "$as_dir" && as_dir=. 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3732 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3734 break 2 3735 fi 3736done 3737 done 3738IFS=$as_save_IFS 3739 3740fi 3741fi 3742CC=$ac_cv_prog_CC 3743if test -n "$CC"; then 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3745$as_echo "$CC" >&6; } 3746else 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748$as_echo "no" >&6; } 3749fi 3750 3751 3752fi 3753if test -z "$ac_cv_prog_CC"; then 3754 ac_ct_CC=$CC 3755 # Extract the first word of "gcc", so it can be a program name with args. 3756set dummy gcc; ac_word=$2 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3758$as_echo_n "checking for $ac_word... " >&6; } 3759if ${ac_cv_prog_ac_ct_CC+:} false; then : 3760 $as_echo_n "(cached) " >&6 3761else 3762 if test -n "$ac_ct_CC"; then 3763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3764else 3765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3766for as_dir in $PATH 3767do 3768 IFS=$as_save_IFS 3769 test -z "$as_dir" && as_dir=. 3770 for ac_exec_ext in '' $ac_executable_extensions; do 3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3772 ac_cv_prog_ac_ct_CC="gcc" 3773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3774 break 2 3775 fi 3776done 3777 done 3778IFS=$as_save_IFS 3779 3780fi 3781fi 3782ac_ct_CC=$ac_cv_prog_ac_ct_CC 3783if test -n "$ac_ct_CC"; then 3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3785$as_echo "$ac_ct_CC" >&6; } 3786else 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3788$as_echo "no" >&6; } 3789fi 3790 3791 if test "x$ac_ct_CC" = x; then 3792 CC="" 3793 else 3794 case $cross_compiling:$ac_tool_warned in 3795yes:) 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3798ac_tool_warned=yes ;; 3799esac 3800 CC=$ac_ct_CC 3801 fi 3802else 3803 CC="$ac_cv_prog_CC" 3804fi 3805 3806if test -z "$CC"; then 3807 if test -n "$ac_tool_prefix"; then 3808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3809set dummy ${ac_tool_prefix}cc; ac_word=$2 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3811$as_echo_n "checking for $ac_word... " >&6; } 3812if ${ac_cv_prog_CC+:} false; then : 3813 $as_echo_n "(cached) " >&6 3814else 3815 if test -n "$CC"; then 3816 ac_cv_prog_CC="$CC" # Let the user override the test. 3817else 3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3819for as_dir in $PATH 3820do 3821 IFS=$as_save_IFS 3822 test -z "$as_dir" && as_dir=. 3823 for ac_exec_ext in '' $ac_executable_extensions; do 3824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3825 ac_cv_prog_CC="${ac_tool_prefix}cc" 3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3827 break 2 3828 fi 3829done 3830 done 3831IFS=$as_save_IFS 3832 3833fi 3834fi 3835CC=$ac_cv_prog_CC 3836if test -n "$CC"; then 3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3838$as_echo "$CC" >&6; } 3839else 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3841$as_echo "no" >&6; } 3842fi 3843 3844 3845 fi 3846fi 3847if test -z "$CC"; then 3848 # Extract the first word of "cc", so it can be a program name with args. 3849set dummy cc; ac_word=$2 3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3851$as_echo_n "checking for $ac_word... " >&6; } 3852if ${ac_cv_prog_CC+:} false; then : 3853 $as_echo_n "(cached) " >&6 3854else 3855 if test -n "$CC"; then 3856 ac_cv_prog_CC="$CC" # Let the user override the test. 3857else 3858 ac_prog_rejected=no 3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3860for as_dir in $PATH 3861do 3862 IFS=$as_save_IFS 3863 test -z "$as_dir" && as_dir=. 3864 for ac_exec_ext in '' $ac_executable_extensions; do 3865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3866 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3867 ac_prog_rejected=yes 3868 continue 3869 fi 3870 ac_cv_prog_CC="cc" 3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3872 break 2 3873 fi 3874done 3875 done 3876IFS=$as_save_IFS 3877 3878if test $ac_prog_rejected = yes; then 3879 # We found a bogon in the path, so make sure we never use it. 3880 set dummy $ac_cv_prog_CC 3881 shift 3882 if test $# != 0; then 3883 # We chose a different compiler from the bogus one. 3884 # However, it has the same basename, so the bogon will be chosen 3885 # first if we set CC to just the basename; use the full file name. 3886 shift 3887 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3888 fi 3889fi 3890fi 3891fi 3892CC=$ac_cv_prog_CC 3893if test -n "$CC"; then 3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3895$as_echo "$CC" >&6; } 3896else 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3898$as_echo "no" >&6; } 3899fi 3900 3901 3902fi 3903if test -z "$CC"; then 3904 if test -n "$ac_tool_prefix"; then 3905 for ac_prog in cl.exe 3906 do 3907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3908set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3910$as_echo_n "checking for $ac_word... " >&6; } 3911if ${ac_cv_prog_CC+:} false; then : 3912 $as_echo_n "(cached) " >&6 3913else 3914 if test -n "$CC"; then 3915 ac_cv_prog_CC="$CC" # Let the user override the test. 3916else 3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3918for as_dir in $PATH 3919do 3920 IFS=$as_save_IFS 3921 test -z "$as_dir" && as_dir=. 3922 for ac_exec_ext in '' $ac_executable_extensions; do 3923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3924 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3926 break 2 3927 fi 3928done 3929 done 3930IFS=$as_save_IFS 3931 3932fi 3933fi 3934CC=$ac_cv_prog_CC 3935if test -n "$CC"; then 3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3937$as_echo "$CC" >&6; } 3938else 3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3940$as_echo "no" >&6; } 3941fi 3942 3943 3944 test -n "$CC" && break 3945 done 3946fi 3947if test -z "$CC"; then 3948 ac_ct_CC=$CC 3949 for ac_prog in cl.exe 3950do 3951 # Extract the first word of "$ac_prog", so it can be a program name with args. 3952set dummy $ac_prog; ac_word=$2 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3954$as_echo_n "checking for $ac_word... " >&6; } 3955if ${ac_cv_prog_ac_ct_CC+:} false; then : 3956 $as_echo_n "(cached) " >&6 3957else 3958 if test -n "$ac_ct_CC"; then 3959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3960else 3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3962for as_dir in $PATH 3963do 3964 IFS=$as_save_IFS 3965 test -z "$as_dir" && as_dir=. 3966 for ac_exec_ext in '' $ac_executable_extensions; do 3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3968 ac_cv_prog_ac_ct_CC="$ac_prog" 3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3970 break 2 3971 fi 3972done 3973 done 3974IFS=$as_save_IFS 3975 3976fi 3977fi 3978ac_ct_CC=$ac_cv_prog_ac_ct_CC 3979if test -n "$ac_ct_CC"; then 3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3981$as_echo "$ac_ct_CC" >&6; } 3982else 3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3984$as_echo "no" >&6; } 3985fi 3986 3987 3988 test -n "$ac_ct_CC" && break 3989done 3990 3991 if test "x$ac_ct_CC" = x; then 3992 CC="" 3993 else 3994 case $cross_compiling:$ac_tool_warned in 3995yes:) 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3998ac_tool_warned=yes ;; 3999esac 4000 CC=$ac_ct_CC 4001 fi 4002fi 4003 4004fi 4005 4006 4007test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4009as_fn_error $? "no acceptable C compiler found in \$PATH 4010See \`config.log' for more details" "$LINENO" 5; } 4011 4012# Provide some information about the compiler. 4013$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4014set X $ac_compile 4015ac_compiler=$2 4016for ac_option in --version -v -V -qversion; do 4017 { { ac_try="$ac_compiler $ac_option >&5" 4018case "(($ac_try" in 4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4020 *) ac_try_echo=$ac_try;; 4021esac 4022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4023$as_echo "$ac_try_echo"; } >&5 4024 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4025 ac_status=$? 4026 if test -s conftest.err; then 4027 sed '10a\ 4028... rest of stderr output deleted ... 4029 10q' conftest.err >conftest.er1 4030 cat conftest.er1 >&5 4031 fi 4032 rm -f conftest.er1 conftest.err 4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4034 test $ac_status = 0; } 4035done 4036 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4038$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4039if ${ac_cv_c_compiler_gnu+:} false; then : 4040 $as_echo_n "(cached) " >&6 4041else 4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4043/* end confdefs.h. */ 4044 4045int 4046main () 4047{ 4048#ifndef __GNUC__ 4049 choke me 4050#endif 4051 4052 ; 4053 return 0; 4054} 4055_ACEOF 4056if ac_fn_c_try_compile "$LINENO"; then : 4057 ac_compiler_gnu=yes 4058else 4059 ac_compiler_gnu=no 4060fi 4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4062ac_cv_c_compiler_gnu=$ac_compiler_gnu 4063 4064fi 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4066$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4067if test $ac_compiler_gnu = yes; then 4068 GCC=yes 4069else 4070 GCC= 4071fi 4072ac_test_CFLAGS=${CFLAGS+set} 4073ac_save_CFLAGS=$CFLAGS 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4075$as_echo_n "checking whether $CC accepts -g... " >&6; } 4076if ${ac_cv_prog_cc_g+:} false; then : 4077 $as_echo_n "(cached) " >&6 4078else 4079 ac_save_c_werror_flag=$ac_c_werror_flag 4080 ac_c_werror_flag=yes 4081 ac_cv_prog_cc_g=no 4082 CFLAGS="-g" 4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4084/* end confdefs.h. */ 4085 4086int 4087main () 4088{ 4089 4090 ; 4091 return 0; 4092} 4093_ACEOF 4094if ac_fn_c_try_compile "$LINENO"; then : 4095 ac_cv_prog_cc_g=yes 4096else 4097 CFLAGS="" 4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4099/* end confdefs.h. */ 4100 4101int 4102main () 4103{ 4104 4105 ; 4106 return 0; 4107} 4108_ACEOF 4109if ac_fn_c_try_compile "$LINENO"; then : 4110 4111else 4112 ac_c_werror_flag=$ac_save_c_werror_flag 4113 CFLAGS="-g" 4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4115/* end confdefs.h. */ 4116 4117int 4118main () 4119{ 4120 4121 ; 4122 return 0; 4123} 4124_ACEOF 4125if ac_fn_c_try_compile "$LINENO"; then : 4126 ac_cv_prog_cc_g=yes 4127fi 4128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4129fi 4130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4131fi 4132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4133 ac_c_werror_flag=$ac_save_c_werror_flag 4134fi 4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4136$as_echo "$ac_cv_prog_cc_g" >&6; } 4137if test "$ac_test_CFLAGS" = set; then 4138 CFLAGS=$ac_save_CFLAGS 4139elif test $ac_cv_prog_cc_g = yes; then 4140 if test "$GCC" = yes; then 4141 CFLAGS="-g -O2" 4142 else 4143 CFLAGS="-g" 4144 fi 4145else 4146 if test "$GCC" = yes; then 4147 CFLAGS="-O2" 4148 else 4149 CFLAGS= 4150 fi 4151fi 4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4153$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4154if ${ac_cv_prog_cc_c89+:} false; then : 4155 $as_echo_n "(cached) " >&6 4156else 4157 ac_cv_prog_cc_c89=no 4158ac_save_CC=$CC 4159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4160/* end confdefs.h. */ 4161#include <stdarg.h> 4162#include <stdio.h> 4163#include <sys/types.h> 4164#include <sys/stat.h> 4165/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4166struct buf { int x; }; 4167FILE * (*rcsopen) (struct buf *, struct stat *, int); 4168static char *e (p, i) 4169 char **p; 4170 int i; 4171{ 4172 return p[i]; 4173} 4174static char *f (char * (*g) (char **, int), char **p, ...) 4175{ 4176 char *s; 4177 va_list v; 4178 va_start (v,p); 4179 s = g (p, va_arg (v,int)); 4180 va_end (v); 4181 return s; 4182} 4183 4184/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4185 function prototypes and stuff, but not '\xHH' hex character constants. 4186 These don't provoke an error unfortunately, instead are silently treated 4187 as 'x'. The following induces an error, until -std is added to get 4188 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4189 array size at least. It's necessary to write '\x00'==0 to get something 4190 that's true only with -std. */ 4191int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4192 4193/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4194 inside strings and character constants. */ 4195#define FOO(x) 'x' 4196int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4197 4198int test (int i, double x); 4199struct s1 {int (*f) (int a);}; 4200struct s2 {int (*f) (double a);}; 4201int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4202int argc; 4203char **argv; 4204int 4205main () 4206{ 4207return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4208 ; 4209 return 0; 4210} 4211_ACEOF 4212for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4213 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4214do 4215 CC="$ac_save_CC $ac_arg" 4216 if ac_fn_c_try_compile "$LINENO"; then : 4217 ac_cv_prog_cc_c89=$ac_arg 4218fi 4219rm -f core conftest.err conftest.$ac_objext 4220 test "x$ac_cv_prog_cc_c89" != "xno" && break 4221done 4222rm -f conftest.$ac_ext 4223CC=$ac_save_CC 4224 4225fi 4226# AC_CACHE_VAL 4227case "x$ac_cv_prog_cc_c89" in 4228 x) 4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4230$as_echo "none needed" >&6; } ;; 4231 xno) 4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4233$as_echo "unsupported" >&6; } ;; 4234 *) 4235 CC="$CC $ac_cv_prog_cc_c89" 4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4237$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4238esac 4239if test "x$ac_cv_prog_cc_c89" != xno; then : 4240 4241fi 4242 4243ac_ext=c 4244ac_cpp='$CPP $CPPFLAGS' 4245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4247ac_compiler_gnu=$ac_cv_c_compiler_gnu 4248 4249depcc="$CC" am_compiler_list= 4250 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4252$as_echo_n "checking dependency style of $depcc... " >&6; } 4253if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4254 $as_echo_n "(cached) " >&6 4255else 4256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4257 # We make a subdir and do the tests there. Otherwise we can end up 4258 # making bogus files that we don't know about and never remove. For 4259 # instance it was reported that on HP-UX the gcc test will end up 4260 # making a dummy file named `D' -- because `-MD' means `put the output 4261 # in D'. 4262 rm -rf conftest.dir 4263 mkdir conftest.dir 4264 # Copy depcomp to subdir because otherwise we won't find it if we're 4265 # using a relative directory. 4266 cp "$am_depcomp" conftest.dir 4267 cd conftest.dir 4268 # We will build objects and dependencies in a subdirectory because 4269 # it helps to detect inapplicable dependency modes. For instance 4270 # both Tru64's cc and ICC support -MD to output dependencies as a 4271 # side effect of compilation, but ICC will put the dependencies in 4272 # the current directory while Tru64 will put them in the object 4273 # directory. 4274 mkdir sub 4275 4276 am_cv_CC_dependencies_compiler_type=none 4277 if test "$am_compiler_list" = ""; then 4278 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4279 fi 4280 am__universal=false 4281 case " $depcc " in #( 4282 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4283 esac 4284 4285 for depmode in $am_compiler_list; do 4286 # Setup a source with many dependencies, because some compilers 4287 # like to wrap large dependency lists on column 80 (with \), and 4288 # we should not choose a depcomp mode which is confused by this. 4289 # 4290 # We need to recreate these files for each test, as the compiler may 4291 # overwrite some of them when testing with obscure command lines. 4292 # This happens at least with the AIX C compiler. 4293 : > sub/conftest.c 4294 for i in 1 2 3 4 5 6; do 4295 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4296 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4297 # Solaris 8's {/usr,}/bin/sh. 4298 touch sub/conftst$i.h 4299 done 4300 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4301 4302 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4303 # mode. It turns out that the SunPro C++ compiler does not properly 4304 # handle `-M -o', and we need to detect this. Also, some Intel 4305 # versions had trouble with output in subdirs 4306 am__obj=sub/conftest.${OBJEXT-o} 4307 am__minus_obj="-o $am__obj" 4308 case $depmode in 4309 gcc) 4310 # This depmode causes a compiler race in universal mode. 4311 test "$am__universal" = false || continue 4312 ;; 4313 nosideeffect) 4314 # after this tag, mechanisms are not by side-effect, so they'll 4315 # only be used when explicitly requested 4316 if test "x$enable_dependency_tracking" = xyes; then 4317 continue 4318 else 4319 break 4320 fi 4321 ;; 4322 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4323 # This compiler won't grok `-c -o', but also, the minuso test has 4324 # not run yet. These depmodes are late enough in the game, and 4325 # so weak that their functioning should not be impacted. 4326 am__obj=conftest.${OBJEXT-o} 4327 am__minus_obj= 4328 ;; 4329 none) break ;; 4330 esac 4331 if depmode=$depmode \ 4332 source=sub/conftest.c object=$am__obj \ 4333 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4334 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4335 >/dev/null 2>conftest.err && 4336 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4337 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4338 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4339 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4340 # icc doesn't choke on unknown options, it will just issue warnings 4341 # or remarks (even with -Werror). So we grep stderr for any message 4342 # that says an option was ignored or not supported. 4343 # When given -MP, icc 7.0 and 7.1 complain thusly: 4344 # icc: Command line warning: ignoring option '-M'; no argument required 4345 # The diagnosis changed in icc 8.0: 4346 # icc: Command line remark: option '-MP' not supported 4347 if (grep 'ignoring option' conftest.err || 4348 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4349 am_cv_CC_dependencies_compiler_type=$depmode 4350 break 4351 fi 4352 fi 4353 done 4354 4355 cd .. 4356 rm -rf conftest.dir 4357else 4358 am_cv_CC_dependencies_compiler_type=none 4359fi 4360 4361fi 4362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4363$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4364CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4365 4366 if 4367 test "x$enable_dependency_tracking" != xno \ 4368 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4369 am__fastdepCC_TRUE= 4370 am__fastdepCC_FALSE='#' 4371else 4372 am__fastdepCC_TRUE='#' 4373 am__fastdepCC_FALSE= 4374fi 4375 4376 4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4378$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4379if ${ac_cv_path_SED+:} false; then : 4380 $as_echo_n "(cached) " >&6 4381else 4382 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4383 for ac_i in 1 2 3 4 5 6 7; do 4384 ac_script="$ac_script$as_nl$ac_script" 4385 done 4386 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4387 { ac_script=; unset ac_script;} 4388 if test -z "$SED"; then 4389 ac_path_SED_found=false 4390 # Loop through the user's path and test for each of PROGNAME-LIST 4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4392for as_dir in $PATH 4393do 4394 IFS=$as_save_IFS 4395 test -z "$as_dir" && as_dir=. 4396 for ac_prog in sed gsed; do 4397 for ac_exec_ext in '' $ac_executable_extensions; do 4398 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4399 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4400# Check for GNU ac_path_SED and select it if it is found. 4401 # Check for GNU $ac_path_SED 4402case `"$ac_path_SED" --version 2>&1` in 4403*GNU*) 4404 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4405*) 4406 ac_count=0 4407 $as_echo_n 0123456789 >"conftest.in" 4408 while : 4409 do 4410 cat "conftest.in" "conftest.in" >"conftest.tmp" 4411 mv "conftest.tmp" "conftest.in" 4412 cp "conftest.in" "conftest.nl" 4413 $as_echo '' >> "conftest.nl" 4414 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4416 as_fn_arith $ac_count + 1 && ac_count=$as_val 4417 if test $ac_count -gt ${ac_path_SED_max-0}; then 4418 # Best one so far, save it but keep looking for a better one 4419 ac_cv_path_SED="$ac_path_SED" 4420 ac_path_SED_max=$ac_count 4421 fi 4422 # 10*(2^10) chars as input seems more than enough 4423 test $ac_count -gt 10 && break 4424 done 4425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4426esac 4427 4428 $ac_path_SED_found && break 3 4429 done 4430 done 4431 done 4432IFS=$as_save_IFS 4433 if test -z "$ac_cv_path_SED"; then 4434 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4435 fi 4436else 4437 ac_cv_path_SED=$SED 4438fi 4439 4440fi 4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4442$as_echo "$ac_cv_path_SED" >&6; } 4443 SED="$ac_cv_path_SED" 4444 rm -f conftest.sed 4445 4446test -z "$SED" && SED=sed 4447Xsed="$SED -e 1s/^X//" 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4460$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4461if ${ac_cv_path_GREP+:} false; then : 4462 $as_echo_n "(cached) " >&6 4463else 4464 if test -z "$GREP"; then 4465 ac_path_GREP_found=false 4466 # Loop through the user's path and test for each of PROGNAME-LIST 4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4468for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4469do 4470 IFS=$as_save_IFS 4471 test -z "$as_dir" && as_dir=. 4472 for ac_prog in grep ggrep; do 4473 for ac_exec_ext in '' $ac_executable_extensions; do 4474 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4475 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4476# Check for GNU ac_path_GREP and select it if it is found. 4477 # Check for GNU $ac_path_GREP 4478case `"$ac_path_GREP" --version 2>&1` in 4479*GNU*) 4480 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4481*) 4482 ac_count=0 4483 $as_echo_n 0123456789 >"conftest.in" 4484 while : 4485 do 4486 cat "conftest.in" "conftest.in" >"conftest.tmp" 4487 mv "conftest.tmp" "conftest.in" 4488 cp "conftest.in" "conftest.nl" 4489 $as_echo 'GREP' >> "conftest.nl" 4490 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4492 as_fn_arith $ac_count + 1 && ac_count=$as_val 4493 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4494 # Best one so far, save it but keep looking for a better one 4495 ac_cv_path_GREP="$ac_path_GREP" 4496 ac_path_GREP_max=$ac_count 4497 fi 4498 # 10*(2^10) chars as input seems more than enough 4499 test $ac_count -gt 10 && break 4500 done 4501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4502esac 4503 4504 $ac_path_GREP_found && break 3 4505 done 4506 done 4507 done 4508IFS=$as_save_IFS 4509 if test -z "$ac_cv_path_GREP"; then 4510 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4511 fi 4512else 4513 ac_cv_path_GREP=$GREP 4514fi 4515 4516fi 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4518$as_echo "$ac_cv_path_GREP" >&6; } 4519 GREP="$ac_cv_path_GREP" 4520 4521 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4523$as_echo_n "checking for egrep... " >&6; } 4524if ${ac_cv_path_EGREP+:} false; then : 4525 $as_echo_n "(cached) " >&6 4526else 4527 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4528 then ac_cv_path_EGREP="$GREP -E" 4529 else 4530 if test -z "$EGREP"; then 4531 ac_path_EGREP_found=false 4532 # Loop through the user's path and test for each of PROGNAME-LIST 4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4534for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4535do 4536 IFS=$as_save_IFS 4537 test -z "$as_dir" && as_dir=. 4538 for ac_prog in egrep; do 4539 for ac_exec_ext in '' $ac_executable_extensions; do 4540 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4541 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4542# Check for GNU ac_path_EGREP and select it if it is found. 4543 # Check for GNU $ac_path_EGREP 4544case `"$ac_path_EGREP" --version 2>&1` in 4545*GNU*) 4546 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4547*) 4548 ac_count=0 4549 $as_echo_n 0123456789 >"conftest.in" 4550 while : 4551 do 4552 cat "conftest.in" "conftest.in" >"conftest.tmp" 4553 mv "conftest.tmp" "conftest.in" 4554 cp "conftest.in" "conftest.nl" 4555 $as_echo 'EGREP' >> "conftest.nl" 4556 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4558 as_fn_arith $ac_count + 1 && ac_count=$as_val 4559 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4560 # Best one so far, save it but keep looking for a better one 4561 ac_cv_path_EGREP="$ac_path_EGREP" 4562 ac_path_EGREP_max=$ac_count 4563 fi 4564 # 10*(2^10) chars as input seems more than enough 4565 test $ac_count -gt 10 && break 4566 done 4567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4568esac 4569 4570 $ac_path_EGREP_found && break 3 4571 done 4572 done 4573 done 4574IFS=$as_save_IFS 4575 if test -z "$ac_cv_path_EGREP"; then 4576 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4577 fi 4578else 4579 ac_cv_path_EGREP=$EGREP 4580fi 4581 4582 fi 4583fi 4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4585$as_echo "$ac_cv_path_EGREP" >&6; } 4586 EGREP="$ac_cv_path_EGREP" 4587 4588 4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4590$as_echo_n "checking for fgrep... " >&6; } 4591if ${ac_cv_path_FGREP+:} false; then : 4592 $as_echo_n "(cached) " >&6 4593else 4594 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4595 then ac_cv_path_FGREP="$GREP -F" 4596 else 4597 if test -z "$FGREP"; then 4598 ac_path_FGREP_found=false 4599 # Loop through the user's path and test for each of PROGNAME-LIST 4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4601for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4602do 4603 IFS=$as_save_IFS 4604 test -z "$as_dir" && as_dir=. 4605 for ac_prog in fgrep; do 4606 for ac_exec_ext in '' $ac_executable_extensions; do 4607 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4608 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4609# Check for GNU ac_path_FGREP and select it if it is found. 4610 # Check for GNU $ac_path_FGREP 4611case `"$ac_path_FGREP" --version 2>&1` in 4612*GNU*) 4613 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4614*) 4615 ac_count=0 4616 $as_echo_n 0123456789 >"conftest.in" 4617 while : 4618 do 4619 cat "conftest.in" "conftest.in" >"conftest.tmp" 4620 mv "conftest.tmp" "conftest.in" 4621 cp "conftest.in" "conftest.nl" 4622 $as_echo 'FGREP' >> "conftest.nl" 4623 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4625 as_fn_arith $ac_count + 1 && ac_count=$as_val 4626 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4627 # Best one so far, save it but keep looking for a better one 4628 ac_cv_path_FGREP="$ac_path_FGREP" 4629 ac_path_FGREP_max=$ac_count 4630 fi 4631 # 10*(2^10) chars as input seems more than enough 4632 test $ac_count -gt 10 && break 4633 done 4634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4635esac 4636 4637 $ac_path_FGREP_found && break 3 4638 done 4639 done 4640 done 4641IFS=$as_save_IFS 4642 if test -z "$ac_cv_path_FGREP"; then 4643 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4644 fi 4645else 4646 ac_cv_path_FGREP=$FGREP 4647fi 4648 4649 fi 4650fi 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4652$as_echo "$ac_cv_path_FGREP" >&6; } 4653 FGREP="$ac_cv_path_FGREP" 4654 4655 4656test -z "$GREP" && GREP=grep 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676# Check whether --with-gnu-ld was given. 4677if test "${with_gnu_ld+set}" = set; then : 4678 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4679else 4680 with_gnu_ld=no 4681fi 4682 4683ac_prog=ld 4684if test "$GCC" = yes; then 4685 # Check if gcc -print-prog-name=ld gives a path. 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4687$as_echo_n "checking for ld used by $CC... " >&6; } 4688 case $host in 4689 *-*-mingw*) 4690 # gcc leaves a trailing carriage return which upsets mingw 4691 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4692 *) 4693 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4694 esac 4695 case $ac_prog in 4696 # Accept absolute paths. 4697 [\\/]* | ?:[\\/]*) 4698 re_direlt='/[^/][^/]*/\.\./' 4699 # Canonicalize the pathname of ld 4700 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4701 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4702 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4703 done 4704 test -z "$LD" && LD="$ac_prog" 4705 ;; 4706 "") 4707 # If it fails, then pretend we aren't using GCC. 4708 ac_prog=ld 4709 ;; 4710 *) 4711 # If it is relative, then search for the first ld in PATH. 4712 with_gnu_ld=unknown 4713 ;; 4714 esac 4715elif test "$with_gnu_ld" = yes; then 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4717$as_echo_n "checking for GNU ld... " >&6; } 4718else 4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4720$as_echo_n "checking for non-GNU ld... " >&6; } 4721fi 4722if ${lt_cv_path_LD+:} false; then : 4723 $as_echo_n "(cached) " >&6 4724else 4725 if test -z "$LD"; then 4726 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4727 for ac_dir in $PATH; do 4728 IFS="$lt_save_ifs" 4729 test -z "$ac_dir" && ac_dir=. 4730 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4731 lt_cv_path_LD="$ac_dir/$ac_prog" 4732 # Check to see if the program is GNU ld. I'd rather use --version, 4733 # but apparently some variants of GNU ld only accept -v. 4734 # Break only if it was the GNU/non-GNU ld that we prefer. 4735 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4736 *GNU* | *'with BFD'*) 4737 test "$with_gnu_ld" != no && break 4738 ;; 4739 *) 4740 test "$with_gnu_ld" != yes && break 4741 ;; 4742 esac 4743 fi 4744 done 4745 IFS="$lt_save_ifs" 4746else 4747 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4748fi 4749fi 4750 4751LD="$lt_cv_path_LD" 4752if test -n "$LD"; then 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4754$as_echo "$LD" >&6; } 4755else 4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4757$as_echo "no" >&6; } 4758fi 4759test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4761$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4762if ${lt_cv_prog_gnu_ld+:} false; then : 4763 $as_echo_n "(cached) " >&6 4764else 4765 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4766case `$LD -v 2>&1 </dev/null` in 4767*GNU* | *'with BFD'*) 4768 lt_cv_prog_gnu_ld=yes 4769 ;; 4770*) 4771 lt_cv_prog_gnu_ld=no 4772 ;; 4773esac 4774fi 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4776$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4777with_gnu_ld=$lt_cv_prog_gnu_ld 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4788$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4789if ${lt_cv_path_NM+:} false; then : 4790 $as_echo_n "(cached) " >&6 4791else 4792 if test -n "$NM"; then 4793 # Let the user override the test. 4794 lt_cv_path_NM="$NM" 4795else 4796 lt_nm_to_check="${ac_tool_prefix}nm" 4797 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4798 lt_nm_to_check="$lt_nm_to_check nm" 4799 fi 4800 for lt_tmp_nm in $lt_nm_to_check; do 4801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4802 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4803 IFS="$lt_save_ifs" 4804 test -z "$ac_dir" && ac_dir=. 4805 tmp_nm="$ac_dir/$lt_tmp_nm" 4806 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4807 # Check to see if the nm accepts a BSD-compat flag. 4808 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4809 # nm: unknown option "B" ignored 4810 # Tru64's nm complains that /dev/null is an invalid object file 4811 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4812 */dev/null* | *'Invalid file or object type'*) 4813 lt_cv_path_NM="$tmp_nm -B" 4814 break 4815 ;; 4816 *) 4817 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4818 */dev/null*) 4819 lt_cv_path_NM="$tmp_nm -p" 4820 break 4821 ;; 4822 *) 4823 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4824 continue # so that we can try to find one that supports BSD flags 4825 ;; 4826 esac 4827 ;; 4828 esac 4829 fi 4830 done 4831 IFS="$lt_save_ifs" 4832 done 4833 : ${lt_cv_path_NM=no} 4834fi 4835fi 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4837$as_echo "$lt_cv_path_NM" >&6; } 4838if test "$lt_cv_path_NM" != "no"; then 4839 NM="$lt_cv_path_NM" 4840else 4841 # Didn't find any BSD compatible name lister, look for dumpbin. 4842 if test -n "$DUMPBIN"; then : 4843 # Let the user override the test. 4844 else 4845 if test -n "$ac_tool_prefix"; then 4846 for ac_prog in dumpbin "link -dump" 4847 do 4848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4849set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4851$as_echo_n "checking for $ac_word... " >&6; } 4852if ${ac_cv_prog_DUMPBIN+:} false; then : 4853 $as_echo_n "(cached) " >&6 4854else 4855 if test -n "$DUMPBIN"; then 4856 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4857else 4858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4859for as_dir in $PATH 4860do 4861 IFS=$as_save_IFS 4862 test -z "$as_dir" && as_dir=. 4863 for ac_exec_ext in '' $ac_executable_extensions; do 4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4865 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4867 break 2 4868 fi 4869done 4870 done 4871IFS=$as_save_IFS 4872 4873fi 4874fi 4875DUMPBIN=$ac_cv_prog_DUMPBIN 4876if test -n "$DUMPBIN"; then 4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4878$as_echo "$DUMPBIN" >&6; } 4879else 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4881$as_echo "no" >&6; } 4882fi 4883 4884 4885 test -n "$DUMPBIN" && break 4886 done 4887fi 4888if test -z "$DUMPBIN"; then 4889 ac_ct_DUMPBIN=$DUMPBIN 4890 for ac_prog in dumpbin "link -dump" 4891do 4892 # Extract the first word of "$ac_prog", so it can be a program name with args. 4893set dummy $ac_prog; ac_word=$2 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4895$as_echo_n "checking for $ac_word... " >&6; } 4896if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4897 $as_echo_n "(cached) " >&6 4898else 4899 if test -n "$ac_ct_DUMPBIN"; then 4900 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4901else 4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4903for as_dir in $PATH 4904do 4905 IFS=$as_save_IFS 4906 test -z "$as_dir" && as_dir=. 4907 for ac_exec_ext in '' $ac_executable_extensions; do 4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4909 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4911 break 2 4912 fi 4913done 4914 done 4915IFS=$as_save_IFS 4916 4917fi 4918fi 4919ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4920if test -n "$ac_ct_DUMPBIN"; then 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4922$as_echo "$ac_ct_DUMPBIN" >&6; } 4923else 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4925$as_echo "no" >&6; } 4926fi 4927 4928 4929 test -n "$ac_ct_DUMPBIN" && break 4930done 4931 4932 if test "x$ac_ct_DUMPBIN" = x; then 4933 DUMPBIN=":" 4934 else 4935 case $cross_compiling:$ac_tool_warned in 4936yes:) 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4939ac_tool_warned=yes ;; 4940esac 4941 DUMPBIN=$ac_ct_DUMPBIN 4942 fi 4943fi 4944 4945 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4946 *COFF*) 4947 DUMPBIN="$DUMPBIN -symbols" 4948 ;; 4949 *) 4950 DUMPBIN=: 4951 ;; 4952 esac 4953 fi 4954 4955 if test "$DUMPBIN" != ":"; then 4956 NM="$DUMPBIN" 4957 fi 4958fi 4959test -z "$NM" && NM=nm 4960 4961 4962 4963 4964 4965 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4967$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4968if ${lt_cv_nm_interface+:} false; then : 4969 $as_echo_n "(cached) " >&6 4970else 4971 lt_cv_nm_interface="BSD nm" 4972 echo "int some_variable = 0;" > conftest.$ac_ext 4973 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4974 (eval "$ac_compile" 2>conftest.err) 4975 cat conftest.err >&5 4976 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4977 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4978 cat conftest.err >&5 4979 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4980 cat conftest.out >&5 4981 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4982 lt_cv_nm_interface="MS dumpbin" 4983 fi 4984 rm -f conftest* 4985fi 4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4987$as_echo "$lt_cv_nm_interface" >&6; } 4988 4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4990$as_echo_n "checking whether ln -s works... " >&6; } 4991LN_S=$as_ln_s 4992if test "$LN_S" = "ln -s"; then 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4994$as_echo "yes" >&6; } 4995else 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4997$as_echo "no, using $LN_S" >&6; } 4998fi 4999 5000# find the maximum length of command line arguments 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5002$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5003if ${lt_cv_sys_max_cmd_len+:} false; then : 5004 $as_echo_n "(cached) " >&6 5005else 5006 i=0 5007 teststring="ABCD" 5008 5009 case $build_os in 5010 msdosdjgpp*) 5011 # On DJGPP, this test can blow up pretty badly due to problems in libc 5012 # (any single argument exceeding 2000 bytes causes a buffer overrun 5013 # during glob expansion). Even if it were fixed, the result of this 5014 # check would be larger than it should be. 5015 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5016 ;; 5017 5018 gnu*) 5019 # Under GNU Hurd, this test is not required because there is 5020 # no limit to the length of command line arguments. 5021 # Libtool will interpret -1 as no limit whatsoever 5022 lt_cv_sys_max_cmd_len=-1; 5023 ;; 5024 5025 cygwin* | mingw* | cegcc*) 5026 # On Win9x/ME, this test blows up -- it succeeds, but takes 5027 # about 5 minutes as the teststring grows exponentially. 5028 # Worse, since 9x/ME are not pre-emptively multitasking, 5029 # you end up with a "frozen" computer, even though with patience 5030 # the test eventually succeeds (with a max line length of 256k). 5031 # Instead, let's just punt: use the minimum linelength reported by 5032 # all of the supported platforms: 8192 (on NT/2K/XP). 5033 lt_cv_sys_max_cmd_len=8192; 5034 ;; 5035 5036 mint*) 5037 # On MiNT this can take a long time and run out of memory. 5038 lt_cv_sys_max_cmd_len=8192; 5039 ;; 5040 5041 amigaos*) 5042 # On AmigaOS with pdksh, this test takes hours, literally. 5043 # So we just punt and use a minimum line length of 8192. 5044 lt_cv_sys_max_cmd_len=8192; 5045 ;; 5046 5047 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5048 # This has been around since 386BSD, at least. Likely further. 5049 if test -x /sbin/sysctl; then 5050 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5051 elif test -x /usr/sbin/sysctl; then 5052 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5053 else 5054 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5055 fi 5056 # And add a safety zone 5057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5058 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5059 ;; 5060 5061 interix*) 5062 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5063 lt_cv_sys_max_cmd_len=196608 5064 ;; 5065 5066 os2*) 5067 # The test takes a long time on OS/2. 5068 lt_cv_sys_max_cmd_len=8192 5069 ;; 5070 5071 osf*) 5072 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5073 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5074 # nice to cause kernel panics so lets avoid the loop below. 5075 # First set a reasonable default. 5076 lt_cv_sys_max_cmd_len=16384 5077 # 5078 if test -x /sbin/sysconfig; then 5079 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5080 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5081 esac 5082 fi 5083 ;; 5084 sco3.2v5*) 5085 lt_cv_sys_max_cmd_len=102400 5086 ;; 5087 sysv5* | sco5v6* | sysv4.2uw2*) 5088 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5089 if test -n "$kargmax"; then 5090 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5091 else 5092 lt_cv_sys_max_cmd_len=32768 5093 fi 5094 ;; 5095 *) 5096 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5097 if test -n "$lt_cv_sys_max_cmd_len"; then 5098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5100 else 5101 # Make teststring a little bigger before we do anything with it. 5102 # a 1K string should be a reasonable start. 5103 for i in 1 2 3 4 5 6 7 8 ; do 5104 teststring=$teststring$teststring 5105 done 5106 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5107 # If test is not a shell built-in, we'll probably end up computing a 5108 # maximum length that is only half of the actual maximum length, but 5109 # we can't tell. 5110 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5111 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5112 test $i != 17 # 1/2 MB should be enough 5113 do 5114 i=`expr $i + 1` 5115 teststring=$teststring$teststring 5116 done 5117 # Only check the string length outside the loop. 5118 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5119 teststring= 5120 # Add a significant safety factor because C++ compilers can tack on 5121 # massive amounts of additional arguments before passing them to the 5122 # linker. It appears as though 1/2 is a usable value. 5123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5124 fi 5125 ;; 5126 esac 5127 5128fi 5129 5130if test -n $lt_cv_sys_max_cmd_len ; then 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5132$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5133else 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5135$as_echo "none" >&6; } 5136fi 5137max_cmd_len=$lt_cv_sys_max_cmd_len 5138 5139 5140 5141 5142 5143 5144: ${CP="cp -f"} 5145: ${MV="mv -f"} 5146: ${RM="rm -f"} 5147 5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5149$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5150# Try some XSI features 5151xsi_shell=no 5152( _lt_dummy="a/b/c" 5153 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5154 = c,a/b,b/c, \ 5155 && eval 'test $(( 1 + 1 )) -eq 2 \ 5156 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5157 && xsi_shell=yes 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5159$as_echo "$xsi_shell" >&6; } 5160 5161 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5163$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5164lt_shell_append=no 5165( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5166 >/dev/null 2>&1 \ 5167 && lt_shell_append=yes 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5169$as_echo "$lt_shell_append" >&6; } 5170 5171 5172if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5173 lt_unset=unset 5174else 5175 lt_unset=false 5176fi 5177 5178 5179 5180 5181 5182# test EBCDIC or ASCII 5183case `echo X|tr X '\101'` in 5184 A) # ASCII based system 5185 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5186 lt_SP2NL='tr \040 \012' 5187 lt_NL2SP='tr \015\012 \040\040' 5188 ;; 5189 *) # EBCDIC based system 5190 lt_SP2NL='tr \100 \n' 5191 lt_NL2SP='tr \r\n \100\100' 5192 ;; 5193esac 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5204$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5205if ${lt_cv_to_host_file_cmd+:} false; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 case $host in 5209 *-*-mingw* ) 5210 case $build in 5211 *-*-mingw* ) # actually msys 5212 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5213 ;; 5214 *-*-cygwin* ) 5215 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5216 ;; 5217 * ) # otherwise, assume *nix 5218 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5219 ;; 5220 esac 5221 ;; 5222 *-*-cygwin* ) 5223 case $build in 5224 *-*-mingw* ) # actually msys 5225 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5226 ;; 5227 *-*-cygwin* ) 5228 lt_cv_to_host_file_cmd=func_convert_file_noop 5229 ;; 5230 * ) # otherwise, assume *nix 5231 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5232 ;; 5233 esac 5234 ;; 5235 * ) # unhandled hosts (and "normal" native builds) 5236 lt_cv_to_host_file_cmd=func_convert_file_noop 5237 ;; 5238esac 5239 5240fi 5241 5242to_host_file_cmd=$lt_cv_to_host_file_cmd 5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5244$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5245 5246 5247 5248 5249 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5251$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5252if ${lt_cv_to_tool_file_cmd+:} false; then : 5253 $as_echo_n "(cached) " >&6 5254else 5255 #assume ordinary cross tools, or native build. 5256lt_cv_to_tool_file_cmd=func_convert_file_noop 5257case $host in 5258 *-*-mingw* ) 5259 case $build in 5260 *-*-mingw* ) # actually msys 5261 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5262 ;; 5263 esac 5264 ;; 5265esac 5266 5267fi 5268 5269to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5271$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5272 5273 5274 5275 5276 5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5278$as_echo_n "checking for $LD option to reload object files... " >&6; } 5279if ${lt_cv_ld_reload_flag+:} false; then : 5280 $as_echo_n "(cached) " >&6 5281else 5282 lt_cv_ld_reload_flag='-r' 5283fi 5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5285$as_echo "$lt_cv_ld_reload_flag" >&6; } 5286reload_flag=$lt_cv_ld_reload_flag 5287case $reload_flag in 5288"" | " "*) ;; 5289*) reload_flag=" $reload_flag" ;; 5290esac 5291reload_cmds='$LD$reload_flag -o $output$reload_objs' 5292case $host_os in 5293 cygwin* | mingw* | pw32* | cegcc*) 5294 if test "$GCC" != yes; then 5295 reload_cmds=false 5296 fi 5297 ;; 5298 darwin*) 5299 if test "$GCC" = yes; then 5300 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5301 else 5302 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5303 fi 5304 ;; 5305esac 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315if test -n "$ac_tool_prefix"; then 5316 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5317set dummy ${ac_tool_prefix}objdump; ac_word=$2 5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5319$as_echo_n "checking for $ac_word... " >&6; } 5320if ${ac_cv_prog_OBJDUMP+:} false; then : 5321 $as_echo_n "(cached) " >&6 5322else 5323 if test -n "$OBJDUMP"; then 5324 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5325else 5326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5327for as_dir in $PATH 5328do 5329 IFS=$as_save_IFS 5330 test -z "$as_dir" && as_dir=. 5331 for ac_exec_ext in '' $ac_executable_extensions; do 5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5333 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5335 break 2 5336 fi 5337done 5338 done 5339IFS=$as_save_IFS 5340 5341fi 5342fi 5343OBJDUMP=$ac_cv_prog_OBJDUMP 5344if test -n "$OBJDUMP"; then 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5346$as_echo "$OBJDUMP" >&6; } 5347else 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5349$as_echo "no" >&6; } 5350fi 5351 5352 5353fi 5354if test -z "$ac_cv_prog_OBJDUMP"; then 5355 ac_ct_OBJDUMP=$OBJDUMP 5356 # Extract the first word of "objdump", so it can be a program name with args. 5357set dummy objdump; ac_word=$2 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5359$as_echo_n "checking for $ac_word... " >&6; } 5360if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5361 $as_echo_n "(cached) " >&6 5362else 5363 if test -n "$ac_ct_OBJDUMP"; then 5364 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5365else 5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5367for as_dir in $PATH 5368do 5369 IFS=$as_save_IFS 5370 test -z "$as_dir" && as_dir=. 5371 for ac_exec_ext in '' $ac_executable_extensions; do 5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5373 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5375 break 2 5376 fi 5377done 5378 done 5379IFS=$as_save_IFS 5380 5381fi 5382fi 5383ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5384if test -n "$ac_ct_OBJDUMP"; then 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5386$as_echo "$ac_ct_OBJDUMP" >&6; } 5387else 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5389$as_echo "no" >&6; } 5390fi 5391 5392 if test "x$ac_ct_OBJDUMP" = x; then 5393 OBJDUMP="false" 5394 else 5395 case $cross_compiling:$ac_tool_warned in 5396yes:) 5397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5399ac_tool_warned=yes ;; 5400esac 5401 OBJDUMP=$ac_ct_OBJDUMP 5402 fi 5403else 5404 OBJDUMP="$ac_cv_prog_OBJDUMP" 5405fi 5406 5407test -z "$OBJDUMP" && OBJDUMP=objdump 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5418$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5419if ${lt_cv_deplibs_check_method+:} false; then : 5420 $as_echo_n "(cached) " >&6 5421else 5422 lt_cv_file_magic_cmd='$MAGIC_CMD' 5423lt_cv_file_magic_test_file= 5424lt_cv_deplibs_check_method='unknown' 5425# Need to set the preceding variable on all platforms that support 5426# interlibrary dependencies. 5427# 'none' -- dependencies not supported. 5428# `unknown' -- same as none, but documents that we really don't know. 5429# 'pass_all' -- all dependencies passed with no checks. 5430# 'test_compile' -- check by making test program. 5431# 'file_magic [[regex]]' -- check by looking for files in library path 5432# which responds to the $file_magic_cmd with a given extended regex. 5433# If you have `file' or equivalent on your system and you're not sure 5434# whether `pass_all' will *always* work, you probably want this one. 5435 5436case $host_os in 5437aix[4-9]*) 5438 lt_cv_deplibs_check_method=pass_all 5439 ;; 5440 5441beos*) 5442 lt_cv_deplibs_check_method=pass_all 5443 ;; 5444 5445bsdi[45]*) 5446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5447 lt_cv_file_magic_cmd='/usr/bin/file -L' 5448 lt_cv_file_magic_test_file=/shlib/libc.so 5449 ;; 5450 5451cygwin*) 5452 # func_win32_libid is a shell function defined in ltmain.sh 5453 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5454 lt_cv_file_magic_cmd='func_win32_libid' 5455 ;; 5456 5457mingw* | pw32*) 5458 # Base MSYS/MinGW do not provide the 'file' command needed by 5459 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5460 # unless we find 'file', for example because we are cross-compiling. 5461 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5462 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5463 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5464 lt_cv_file_magic_cmd='func_win32_libid' 5465 else 5466 # Keep this pattern in sync with the one in func_win32_libid. 5467 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5468 lt_cv_file_magic_cmd='$OBJDUMP -f' 5469 fi 5470 ;; 5471 5472cegcc*) 5473 # use the weaker test based on 'objdump'. See mingw*. 5474 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5475 lt_cv_file_magic_cmd='$OBJDUMP -f' 5476 ;; 5477 5478darwin* | rhapsody*) 5479 lt_cv_deplibs_check_method=pass_all 5480 ;; 5481 5482freebsd* | dragonfly*) 5483 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5484 case $host_cpu in 5485 i*86 ) 5486 # Not sure whether the presence of OpenBSD here was a mistake. 5487 # Let's accept both of them until this is cleared up. 5488 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5489 lt_cv_file_magic_cmd=/usr/bin/file 5490 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5491 ;; 5492 esac 5493 else 5494 lt_cv_deplibs_check_method=pass_all 5495 fi 5496 ;; 5497 5498gnu*) 5499 lt_cv_deplibs_check_method=pass_all 5500 ;; 5501 5502haiku*) 5503 lt_cv_deplibs_check_method=pass_all 5504 ;; 5505 5506hpux10.20* | hpux11*) 5507 lt_cv_file_magic_cmd=/usr/bin/file 5508 case $host_cpu in 5509 ia64*) 5510 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5511 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5512 ;; 5513 hppa*64*) 5514 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]' 5515 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5516 ;; 5517 *) 5518 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5519 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5520 ;; 5521 esac 5522 ;; 5523 5524interix[3-9]*) 5525 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5527 ;; 5528 5529irix5* | irix6* | nonstopux*) 5530 case $LD in 5531 *-32|*"-32 ") libmagic=32-bit;; 5532 *-n32|*"-n32 ") libmagic=N32;; 5533 *-64|*"-64 ") libmagic=64-bit;; 5534 *) libmagic=never-match;; 5535 esac 5536 lt_cv_deplibs_check_method=pass_all 5537 ;; 5538 5539# This must be glibc/ELF. 5540linux* | k*bsd*-gnu | kopensolaris*-gnu) 5541 lt_cv_deplibs_check_method=pass_all 5542 ;; 5543 5544netbsd* | netbsdelf*-gnu) 5545 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5547 else 5548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5549 fi 5550 ;; 5551 5552newos6*) 5553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5554 lt_cv_file_magic_cmd=/usr/bin/file 5555 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5556 ;; 5557 5558*nto* | *qnx*) 5559 lt_cv_deplibs_check_method=pass_all 5560 ;; 5561 5562openbsd*) 5563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5565 else 5566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5567 fi 5568 ;; 5569 5570osf3* | osf4* | osf5*) 5571 lt_cv_deplibs_check_method=pass_all 5572 ;; 5573 5574rdos*) 5575 lt_cv_deplibs_check_method=pass_all 5576 ;; 5577 5578solaris*) 5579 lt_cv_deplibs_check_method=pass_all 5580 ;; 5581 5582sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5583 lt_cv_deplibs_check_method=pass_all 5584 ;; 5585 5586sysv4 | sysv4.3*) 5587 case $host_vendor in 5588 motorola) 5589 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]' 5590 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5591 ;; 5592 ncr) 5593 lt_cv_deplibs_check_method=pass_all 5594 ;; 5595 sequent) 5596 lt_cv_file_magic_cmd='/bin/file' 5597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5598 ;; 5599 sni) 5600 lt_cv_file_magic_cmd='/bin/file' 5601 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5602 lt_cv_file_magic_test_file=/lib/libc.so 5603 ;; 5604 siemens) 5605 lt_cv_deplibs_check_method=pass_all 5606 ;; 5607 pc) 5608 lt_cv_deplibs_check_method=pass_all 5609 ;; 5610 esac 5611 ;; 5612 5613tpf*) 5614 lt_cv_deplibs_check_method=pass_all 5615 ;; 5616esac 5617 5618fi 5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5620$as_echo "$lt_cv_deplibs_check_method" >&6; } 5621 5622file_magic_glob= 5623want_nocaseglob=no 5624if test "$build" = "$host"; then 5625 case $host_os in 5626 mingw* | pw32*) 5627 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5628 want_nocaseglob=yes 5629 else 5630 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5631 fi 5632 ;; 5633 esac 5634fi 5635 5636file_magic_cmd=$lt_cv_file_magic_cmd 5637deplibs_check_method=$lt_cv_deplibs_check_method 5638test -z "$deplibs_check_method" && deplibs_check_method=unknown 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661if test -n "$ac_tool_prefix"; then 5662 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5663set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5665$as_echo_n "checking for $ac_word... " >&6; } 5666if ${ac_cv_prog_DLLTOOL+:} false; then : 5667 $as_echo_n "(cached) " >&6 5668else 5669 if test -n "$DLLTOOL"; then 5670 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5671else 5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5673for as_dir in $PATH 5674do 5675 IFS=$as_save_IFS 5676 test -z "$as_dir" && as_dir=. 5677 for ac_exec_ext in '' $ac_executable_extensions; do 5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5679 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5681 break 2 5682 fi 5683done 5684 done 5685IFS=$as_save_IFS 5686 5687fi 5688fi 5689DLLTOOL=$ac_cv_prog_DLLTOOL 5690if test -n "$DLLTOOL"; then 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5692$as_echo "$DLLTOOL" >&6; } 5693else 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5695$as_echo "no" >&6; } 5696fi 5697 5698 5699fi 5700if test -z "$ac_cv_prog_DLLTOOL"; then 5701 ac_ct_DLLTOOL=$DLLTOOL 5702 # Extract the first word of "dlltool", so it can be a program name with args. 5703set dummy dlltool; ac_word=$2 5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5705$as_echo_n "checking for $ac_word... " >&6; } 5706if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5707 $as_echo_n "(cached) " >&6 5708else 5709 if test -n "$ac_ct_DLLTOOL"; then 5710 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5711else 5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5713for as_dir in $PATH 5714do 5715 IFS=$as_save_IFS 5716 test -z "$as_dir" && as_dir=. 5717 for ac_exec_ext in '' $ac_executable_extensions; do 5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5719 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5721 break 2 5722 fi 5723done 5724 done 5725IFS=$as_save_IFS 5726 5727fi 5728fi 5729ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5730if test -n "$ac_ct_DLLTOOL"; then 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5732$as_echo "$ac_ct_DLLTOOL" >&6; } 5733else 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5735$as_echo "no" >&6; } 5736fi 5737 5738 if test "x$ac_ct_DLLTOOL" = x; then 5739 DLLTOOL="false" 5740 else 5741 case $cross_compiling:$ac_tool_warned in 5742yes:) 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5745ac_tool_warned=yes ;; 5746esac 5747 DLLTOOL=$ac_ct_DLLTOOL 5748 fi 5749else 5750 DLLTOOL="$ac_cv_prog_DLLTOOL" 5751fi 5752 5753test -z "$DLLTOOL" && DLLTOOL=dlltool 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5765$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5766if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5767 $as_echo_n "(cached) " >&6 5768else 5769 lt_cv_sharedlib_from_linklib_cmd='unknown' 5770 5771case $host_os in 5772cygwin* | mingw* | pw32* | cegcc*) 5773 # two different shell functions defined in ltmain.sh 5774 # decide which to use based on capabilities of $DLLTOOL 5775 case `$DLLTOOL --help 2>&1` in 5776 *--identify-strict*) 5777 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5778 ;; 5779 *) 5780 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5781 ;; 5782 esac 5783 ;; 5784*) 5785 # fallback: assume linklib IS sharedlib 5786 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5787 ;; 5788esac 5789 5790fi 5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5792$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5793sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5794test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5795 5796 5797 5798 5799 5800 5801 5802 5803if test -n "$ac_tool_prefix"; then 5804 for ac_prog in ar 5805 do 5806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5807set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5809$as_echo_n "checking for $ac_word... " >&6; } 5810if ${ac_cv_prog_AR+:} false; then : 5811 $as_echo_n "(cached) " >&6 5812else 5813 if test -n "$AR"; then 5814 ac_cv_prog_AR="$AR" # Let the user override the test. 5815else 5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5817for as_dir in $PATH 5818do 5819 IFS=$as_save_IFS 5820 test -z "$as_dir" && as_dir=. 5821 for ac_exec_ext in '' $ac_executable_extensions; do 5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5823 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5825 break 2 5826 fi 5827done 5828 done 5829IFS=$as_save_IFS 5830 5831fi 5832fi 5833AR=$ac_cv_prog_AR 5834if test -n "$AR"; then 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5836$as_echo "$AR" >&6; } 5837else 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5839$as_echo "no" >&6; } 5840fi 5841 5842 5843 test -n "$AR" && break 5844 done 5845fi 5846if test -z "$AR"; then 5847 ac_ct_AR=$AR 5848 for ac_prog in ar 5849do 5850 # Extract the first word of "$ac_prog", so it can be a program name with args. 5851set dummy $ac_prog; ac_word=$2 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5853$as_echo_n "checking for $ac_word... " >&6; } 5854if ${ac_cv_prog_ac_ct_AR+:} false; then : 5855 $as_echo_n "(cached) " >&6 5856else 5857 if test -n "$ac_ct_AR"; then 5858 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5859else 5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5861for as_dir in $PATH 5862do 5863 IFS=$as_save_IFS 5864 test -z "$as_dir" && as_dir=. 5865 for ac_exec_ext in '' $ac_executable_extensions; do 5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5867 ac_cv_prog_ac_ct_AR="$ac_prog" 5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5869 break 2 5870 fi 5871done 5872 done 5873IFS=$as_save_IFS 5874 5875fi 5876fi 5877ac_ct_AR=$ac_cv_prog_ac_ct_AR 5878if test -n "$ac_ct_AR"; then 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5880$as_echo "$ac_ct_AR" >&6; } 5881else 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5883$as_echo "no" >&6; } 5884fi 5885 5886 5887 test -n "$ac_ct_AR" && break 5888done 5889 5890 if test "x$ac_ct_AR" = x; then 5891 AR="false" 5892 else 5893 case $cross_compiling:$ac_tool_warned in 5894yes:) 5895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5897ac_tool_warned=yes ;; 5898esac 5899 AR=$ac_ct_AR 5900 fi 5901fi 5902 5903: ${AR=ar} 5904: ${AR_FLAGS=cru} 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5917$as_echo_n "checking for archiver @FILE support... " >&6; } 5918if ${lt_cv_ar_at_file+:} false; then : 5919 $as_echo_n "(cached) " >&6 5920else 5921 lt_cv_ar_at_file=no 5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5923/* end confdefs.h. */ 5924 5925int 5926main () 5927{ 5928 5929 ; 5930 return 0; 5931} 5932_ACEOF 5933if ac_fn_c_try_compile "$LINENO"; then : 5934 echo conftest.$ac_objext > conftest.lst 5935 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5937 (eval $lt_ar_try) 2>&5 5938 ac_status=$? 5939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5940 test $ac_status = 0; } 5941 if test "$ac_status" -eq 0; then 5942 # Ensure the archiver fails upon bogus file names. 5943 rm -f conftest.$ac_objext libconftest.a 5944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5945 (eval $lt_ar_try) 2>&5 5946 ac_status=$? 5947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5948 test $ac_status = 0; } 5949 if test "$ac_status" -ne 0; then 5950 lt_cv_ar_at_file=@ 5951 fi 5952 fi 5953 rm -f conftest.* libconftest.a 5954 5955fi 5956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5957 5958fi 5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5960$as_echo "$lt_cv_ar_at_file" >&6; } 5961 5962if test "x$lt_cv_ar_at_file" = xno; then 5963 archiver_list_spec= 5964else 5965 archiver_list_spec=$lt_cv_ar_at_file 5966fi 5967 5968 5969 5970 5971 5972 5973 5974if test -n "$ac_tool_prefix"; then 5975 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5976set dummy ${ac_tool_prefix}strip; ac_word=$2 5977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5978$as_echo_n "checking for $ac_word... " >&6; } 5979if ${ac_cv_prog_STRIP+:} false; then : 5980 $as_echo_n "(cached) " >&6 5981else 5982 if test -n "$STRIP"; then 5983 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5984else 5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5986for as_dir in $PATH 5987do 5988 IFS=$as_save_IFS 5989 test -z "$as_dir" && as_dir=. 5990 for ac_exec_ext in '' $ac_executable_extensions; do 5991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5992 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5994 break 2 5995 fi 5996done 5997 done 5998IFS=$as_save_IFS 5999 6000fi 6001fi 6002STRIP=$ac_cv_prog_STRIP 6003if test -n "$STRIP"; then 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6005$as_echo "$STRIP" >&6; } 6006else 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6008$as_echo "no" >&6; } 6009fi 6010 6011 6012fi 6013if test -z "$ac_cv_prog_STRIP"; then 6014 ac_ct_STRIP=$STRIP 6015 # Extract the first word of "strip", so it can be a program name with args. 6016set dummy strip; ac_word=$2 6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6018$as_echo_n "checking for $ac_word... " >&6; } 6019if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6020 $as_echo_n "(cached) " >&6 6021else 6022 if test -n "$ac_ct_STRIP"; then 6023 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6024else 6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6026for as_dir in $PATH 6027do 6028 IFS=$as_save_IFS 6029 test -z "$as_dir" && as_dir=. 6030 for ac_exec_ext in '' $ac_executable_extensions; do 6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6032 ac_cv_prog_ac_ct_STRIP="strip" 6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6034 break 2 6035 fi 6036done 6037 done 6038IFS=$as_save_IFS 6039 6040fi 6041fi 6042ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6043if test -n "$ac_ct_STRIP"; then 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6045$as_echo "$ac_ct_STRIP" >&6; } 6046else 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6048$as_echo "no" >&6; } 6049fi 6050 6051 if test "x$ac_ct_STRIP" = x; then 6052 STRIP=":" 6053 else 6054 case $cross_compiling:$ac_tool_warned in 6055yes:) 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6058ac_tool_warned=yes ;; 6059esac 6060 STRIP=$ac_ct_STRIP 6061 fi 6062else 6063 STRIP="$ac_cv_prog_STRIP" 6064fi 6065 6066test -z "$STRIP" && STRIP=: 6067 6068 6069 6070 6071 6072 6073if test -n "$ac_tool_prefix"; then 6074 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6075set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6077$as_echo_n "checking for $ac_word... " >&6; } 6078if ${ac_cv_prog_RANLIB+:} false; then : 6079 $as_echo_n "(cached) " >&6 6080else 6081 if test -n "$RANLIB"; then 6082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6083else 6084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6085for as_dir in $PATH 6086do 6087 IFS=$as_save_IFS 6088 test -z "$as_dir" && as_dir=. 6089 for ac_exec_ext in '' $ac_executable_extensions; do 6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6091 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6093 break 2 6094 fi 6095done 6096 done 6097IFS=$as_save_IFS 6098 6099fi 6100fi 6101RANLIB=$ac_cv_prog_RANLIB 6102if test -n "$RANLIB"; then 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6104$as_echo "$RANLIB" >&6; } 6105else 6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6107$as_echo "no" >&6; } 6108fi 6109 6110 6111fi 6112if test -z "$ac_cv_prog_RANLIB"; then 6113 ac_ct_RANLIB=$RANLIB 6114 # Extract the first word of "ranlib", so it can be a program name with args. 6115set dummy ranlib; ac_word=$2 6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6117$as_echo_n "checking for $ac_word... " >&6; } 6118if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6119 $as_echo_n "(cached) " >&6 6120else 6121 if test -n "$ac_ct_RANLIB"; then 6122 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6123else 6124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6125for as_dir in $PATH 6126do 6127 IFS=$as_save_IFS 6128 test -z "$as_dir" && as_dir=. 6129 for ac_exec_ext in '' $ac_executable_extensions; do 6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6131 ac_cv_prog_ac_ct_RANLIB="ranlib" 6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6133 break 2 6134 fi 6135done 6136 done 6137IFS=$as_save_IFS 6138 6139fi 6140fi 6141ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6142if test -n "$ac_ct_RANLIB"; then 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6144$as_echo "$ac_ct_RANLIB" >&6; } 6145else 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6147$as_echo "no" >&6; } 6148fi 6149 6150 if test "x$ac_ct_RANLIB" = x; then 6151 RANLIB=":" 6152 else 6153 case $cross_compiling:$ac_tool_warned in 6154yes:) 6155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6157ac_tool_warned=yes ;; 6158esac 6159 RANLIB=$ac_ct_RANLIB 6160 fi 6161else 6162 RANLIB="$ac_cv_prog_RANLIB" 6163fi 6164 6165test -z "$RANLIB" && RANLIB=: 6166 6167 6168 6169 6170 6171 6172# Determine commands to create old-style static archives. 6173old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6174old_postinstall_cmds='chmod 644 $oldlib' 6175old_postuninstall_cmds= 6176 6177if test -n "$RANLIB"; then 6178 case $host_os in 6179 openbsd*) 6180 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6181 ;; 6182 *) 6183 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6184 ;; 6185 esac 6186 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6187fi 6188 6189case $host_os in 6190 darwin*) 6191 lock_old_archive_extraction=yes ;; 6192 *) 6193 lock_old_archive_extraction=no ;; 6194esac 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234# If no C compiler was specified, use CC. 6235LTCC=${LTCC-"$CC"} 6236 6237# If no C compiler flags were specified, use CFLAGS. 6238LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6239 6240# Allow CC to be a program name with arguments. 6241compiler=$CC 6242 6243 6244# Check for command to grab the raw symbol name followed by C symbol from nm. 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6246$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6247if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6248 $as_echo_n "(cached) " >&6 6249else 6250 6251# These are sane defaults that work on at least a few old systems. 6252# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6253 6254# Character class describing NM global symbol codes. 6255symcode='[BCDEGRST]' 6256 6257# Regexp to match symbols that can be accessed directly from C. 6258sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6259 6260# Define system-specific variables. 6261case $host_os in 6262aix*) 6263 symcode='[BCDT]' 6264 ;; 6265cygwin* | mingw* | pw32* | cegcc*) 6266 symcode='[ABCDGISTW]' 6267 ;; 6268hpux*) 6269 if test "$host_cpu" = ia64; then 6270 symcode='[ABCDEGRST]' 6271 fi 6272 ;; 6273irix* | nonstopux*) 6274 symcode='[BCDEGRST]' 6275 ;; 6276osf*) 6277 symcode='[BCDEGQRST]' 6278 ;; 6279solaris*) 6280 symcode='[BDRT]' 6281 ;; 6282sco3.2v5*) 6283 symcode='[DT]' 6284 ;; 6285sysv4.2uw2*) 6286 symcode='[DT]' 6287 ;; 6288sysv5* | sco5v6* | unixware* | OpenUNIX*) 6289 symcode='[ABDT]' 6290 ;; 6291sysv4) 6292 symcode='[DFNSTU]' 6293 ;; 6294esac 6295 6296# If we're using GNU nm, then use its standard symbol codes. 6297case `$NM -V 2>&1` in 6298*GNU* | *'with BFD'*) 6299 symcode='[ABCDGIRSTW]' ;; 6300esac 6301 6302# Transform an extracted symbol line into a proper C declaration. 6303# Some systems (esp. on ia64) link data and code symbols differently, 6304# so use this general approach. 6305lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6306 6307# Transform an extracted symbol line into symbol name and symbol address 6308lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6309lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6310 6311# Handle CRLF in mingw tool chain 6312opt_cr= 6313case $build_os in 6314mingw*) 6315 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6316 ;; 6317esac 6318 6319# Try without a prefix underscore, then with it. 6320for ac_symprfx in "" "_"; do 6321 6322 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6323 symxfrm="\\1 $ac_symprfx\\2 \\2" 6324 6325 # Write the raw and C identifiers. 6326 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6327 # Fake it for dumpbin and say T for any non-static function 6328 # and D for any global variable. 6329 # Also find C++ and __fastcall symbols from MSVC++, 6330 # which start with @ or ?. 6331 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6332" {last_section=section; section=\$ 3};"\ 6333" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6334" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6335" \$ 0!~/External *\|/{next};"\ 6336" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6337" {if(hide[section]) next};"\ 6338" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6339" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6340" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6341" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6342" ' prfx=^$ac_symprfx" 6343 else 6344 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6345 fi 6346 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6347 6348 # Check to see that the pipe works correctly. 6349 pipe_works=no 6350 6351 rm -f conftest* 6352 cat > conftest.$ac_ext <<_LT_EOF 6353#ifdef __cplusplus 6354extern "C" { 6355#endif 6356char nm_test_var; 6357void nm_test_func(void); 6358void nm_test_func(void){} 6359#ifdef __cplusplus 6360} 6361#endif 6362int main(){nm_test_var='a';nm_test_func();return(0);} 6363_LT_EOF 6364 6365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6366 (eval $ac_compile) 2>&5 6367 ac_status=$? 6368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6369 test $ac_status = 0; }; then 6370 # Now try to grab the symbols. 6371 nlist=conftest.nm 6372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6373 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6374 ac_status=$? 6375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6376 test $ac_status = 0; } && test -s "$nlist"; then 6377 # Try sorting and uniquifying the output. 6378 if sort "$nlist" | uniq > "$nlist"T; then 6379 mv -f "$nlist"T "$nlist" 6380 else 6381 rm -f "$nlist"T 6382 fi 6383 6384 # Make sure that we snagged all the symbols we need. 6385 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6386 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6387 cat <<_LT_EOF > conftest.$ac_ext 6388/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6389#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6390/* DATA imports from DLLs on WIN32 con't be const, because runtime 6391 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6392# define LT_DLSYM_CONST 6393#elif defined(__osf__) 6394/* This system does not cope well with relocations in const data. */ 6395# define LT_DLSYM_CONST 6396#else 6397# define LT_DLSYM_CONST const 6398#endif 6399 6400#ifdef __cplusplus 6401extern "C" { 6402#endif 6403 6404_LT_EOF 6405 # Now generate the symbol file. 6406 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6407 6408 cat <<_LT_EOF >> conftest.$ac_ext 6409 6410/* The mapping between symbol names and symbols. */ 6411LT_DLSYM_CONST struct { 6412 const char *name; 6413 void *address; 6414} 6415lt__PROGRAM__LTX_preloaded_symbols[] = 6416{ 6417 { "@PROGRAM@", (void *) 0 }, 6418_LT_EOF 6419 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6420 cat <<\_LT_EOF >> conftest.$ac_ext 6421 {0, (void *) 0} 6422}; 6423 6424/* This works around a problem in FreeBSD linker */ 6425#ifdef FREEBSD_WORKAROUND 6426static const void *lt_preloaded_setup() { 6427 return lt__PROGRAM__LTX_preloaded_symbols; 6428} 6429#endif 6430 6431#ifdef __cplusplus 6432} 6433#endif 6434_LT_EOF 6435 # Now try linking the two files. 6436 mv conftest.$ac_objext conftstm.$ac_objext 6437 lt_globsym_save_LIBS=$LIBS 6438 lt_globsym_save_CFLAGS=$CFLAGS 6439 LIBS="conftstm.$ac_objext" 6440 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6442 (eval $ac_link) 2>&5 6443 ac_status=$? 6444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6445 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6446 pipe_works=yes 6447 fi 6448 LIBS=$lt_globsym_save_LIBS 6449 CFLAGS=$lt_globsym_save_CFLAGS 6450 else 6451 echo "cannot find nm_test_func in $nlist" >&5 6452 fi 6453 else 6454 echo "cannot find nm_test_var in $nlist" >&5 6455 fi 6456 else 6457 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6458 fi 6459 else 6460 echo "$progname: failed program was:" >&5 6461 cat conftest.$ac_ext >&5 6462 fi 6463 rm -rf conftest* conftst* 6464 6465 # Do not use the global_symbol_pipe unless it works. 6466 if test "$pipe_works" = yes; then 6467 break 6468 else 6469 lt_cv_sys_global_symbol_pipe= 6470 fi 6471done 6472 6473fi 6474 6475if test -z "$lt_cv_sys_global_symbol_pipe"; then 6476 lt_cv_sys_global_symbol_to_cdecl= 6477fi 6478if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6480$as_echo "failed" >&6; } 6481else 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6483$as_echo "ok" >&6; } 6484fi 6485 6486# Response file support. 6487if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6488 nm_file_list_spec='@' 6489elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6490 nm_file_list_spec='@' 6491fi 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6520$as_echo_n "checking for sysroot... " >&6; } 6521 6522# Check whether --with-sysroot was given. 6523if test "${with_sysroot+set}" = set; then : 6524 withval=$with_sysroot; 6525else 6526 with_sysroot=no 6527fi 6528 6529 6530lt_sysroot= 6531case ${with_sysroot} in #( 6532 yes) 6533 if test "$GCC" = yes; then 6534 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6535 fi 6536 ;; #( 6537 /*) 6538 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6539 ;; #( 6540 no|'') 6541 ;; #( 6542 *) 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6544$as_echo "${with_sysroot}" >&6; } 6545 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6546 ;; 6547esac 6548 6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6550$as_echo "${lt_sysroot:-no}" >&6; } 6551 6552 6553 6554 6555 6556# Check whether --enable-libtool-lock was given. 6557if test "${enable_libtool_lock+set}" = set; then : 6558 enableval=$enable_libtool_lock; 6559fi 6560 6561test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6562 6563# Some flags need to be propagated to the compiler or linker for good 6564# libtool support. 6565case $host in 6566ia64-*-hpux*) 6567 # Find out which ABI we are using. 6568 echo 'int i;' > conftest.$ac_ext 6569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6570 (eval $ac_compile) 2>&5 6571 ac_status=$? 6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6573 test $ac_status = 0; }; then 6574 case `/usr/bin/file conftest.$ac_objext` in 6575 *ELF-32*) 6576 HPUX_IA64_MODE="32" 6577 ;; 6578 *ELF-64*) 6579 HPUX_IA64_MODE="64" 6580 ;; 6581 esac 6582 fi 6583 rm -rf conftest* 6584 ;; 6585*-*-irix6*) 6586 # Find out which ABI we are using. 6587 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6589 (eval $ac_compile) 2>&5 6590 ac_status=$? 6591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6592 test $ac_status = 0; }; then 6593 if test "$lt_cv_prog_gnu_ld" = yes; then 6594 case `/usr/bin/file conftest.$ac_objext` in 6595 *32-bit*) 6596 LD="${LD-ld} -melf32bsmip" 6597 ;; 6598 *N32*) 6599 LD="${LD-ld} -melf32bmipn32" 6600 ;; 6601 *64-bit*) 6602 LD="${LD-ld} -melf64bmip" 6603 ;; 6604 esac 6605 else 6606 case `/usr/bin/file conftest.$ac_objext` in 6607 *32-bit*) 6608 LD="${LD-ld} -32" 6609 ;; 6610 *N32*) 6611 LD="${LD-ld} -n32" 6612 ;; 6613 *64-bit*) 6614 LD="${LD-ld} -64" 6615 ;; 6616 esac 6617 fi 6618 fi 6619 rm -rf conftest* 6620 ;; 6621 6622x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6623s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6624 # Find out which ABI we are using. 6625 echo 'int i;' > conftest.$ac_ext 6626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6627 (eval $ac_compile) 2>&5 6628 ac_status=$? 6629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6630 test $ac_status = 0; }; then 6631 case `/usr/bin/file conftest.o` in 6632 *32-bit*) 6633 case $host in 6634 x86_64-*kfreebsd*-gnu) 6635 LD="${LD-ld} -m elf_i386_fbsd" 6636 ;; 6637 x86_64-*linux*) 6638 LD="${LD-ld} -m elf_i386" 6639 ;; 6640 ppc64-*linux*|powerpc64-*linux*) 6641 LD="${LD-ld} -m elf32ppclinux" 6642 ;; 6643 s390x-*linux*) 6644 LD="${LD-ld} -m elf_s390" 6645 ;; 6646 sparc64-*linux*) 6647 LD="${LD-ld} -m elf32_sparc" 6648 ;; 6649 esac 6650 ;; 6651 *64-bit*) 6652 case $host in 6653 x86_64-*kfreebsd*-gnu) 6654 LD="${LD-ld} -m elf_x86_64_fbsd" 6655 ;; 6656 x86_64-*linux*) 6657 LD="${LD-ld} -m elf_x86_64" 6658 ;; 6659 ppc*-*linux*|powerpc*-*linux*) 6660 LD="${LD-ld} -m elf64ppc" 6661 ;; 6662 s390*-*linux*|s390*-*tpf*) 6663 LD="${LD-ld} -m elf64_s390" 6664 ;; 6665 sparc*-*linux*) 6666 LD="${LD-ld} -m elf64_sparc" 6667 ;; 6668 esac 6669 ;; 6670 esac 6671 fi 6672 rm -rf conftest* 6673 ;; 6674 6675*-*-sco3.2v5*) 6676 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6677 SAVE_CFLAGS="$CFLAGS" 6678 CFLAGS="$CFLAGS -belf" 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6680$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6681if ${lt_cv_cc_needs_belf+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683else 6684 ac_ext=c 6685ac_cpp='$CPP $CPPFLAGS' 6686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6688ac_compiler_gnu=$ac_cv_c_compiler_gnu 6689 6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6691/* end confdefs.h. */ 6692 6693int 6694main () 6695{ 6696 6697 ; 6698 return 0; 6699} 6700_ACEOF 6701if ac_fn_c_try_link "$LINENO"; then : 6702 lt_cv_cc_needs_belf=yes 6703else 6704 lt_cv_cc_needs_belf=no 6705fi 6706rm -f core conftest.err conftest.$ac_objext \ 6707 conftest$ac_exeext conftest.$ac_ext 6708 ac_ext=c 6709ac_cpp='$CPP $CPPFLAGS' 6710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6712ac_compiler_gnu=$ac_cv_c_compiler_gnu 6713 6714fi 6715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6716$as_echo "$lt_cv_cc_needs_belf" >&6; } 6717 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6718 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6719 CFLAGS="$SAVE_CFLAGS" 6720 fi 6721 ;; 6722*-*solaris*) 6723 # Find out which ABI we are using. 6724 echo 'int i;' > conftest.$ac_ext 6725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6726 (eval $ac_compile) 2>&5 6727 ac_status=$? 6728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6729 test $ac_status = 0; }; then 6730 case `/usr/bin/file conftest.o` in 6731 *64-bit*) 6732 case $lt_cv_prog_gnu_ld in 6733 yes*) 6734 case $host in 6735 i?86-*-solaris*) 6736 LD="${LD-ld} -m elf_x86_64" 6737 ;; 6738 sparc*-*-solaris*) 6739 LD="${LD-ld} -m elf64_sparc" 6740 ;; 6741 esac 6742 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6743 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6744 LD="${LD-ld}_sol2" 6745 fi 6746 ;; 6747 *) 6748 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6749 LD="${LD-ld} -64" 6750 fi 6751 ;; 6752 esac 6753 ;; 6754 esac 6755 fi 6756 rm -rf conftest* 6757 ;; 6758esac 6759 6760need_locks="$enable_libtool_lock" 6761 6762if test -n "$ac_tool_prefix"; then 6763 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6764set dummy ${ac_tool_prefix}mt; ac_word=$2 6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6766$as_echo_n "checking for $ac_word... " >&6; } 6767if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6768 $as_echo_n "(cached) " >&6 6769else 6770 if test -n "$MANIFEST_TOOL"; then 6771 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6772else 6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6774for as_dir in $PATH 6775do 6776 IFS=$as_save_IFS 6777 test -z "$as_dir" && as_dir=. 6778 for ac_exec_ext in '' $ac_executable_extensions; do 6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6780 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6782 break 2 6783 fi 6784done 6785 done 6786IFS=$as_save_IFS 6787 6788fi 6789fi 6790MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6791if test -n "$MANIFEST_TOOL"; then 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6793$as_echo "$MANIFEST_TOOL" >&6; } 6794else 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6796$as_echo "no" >&6; } 6797fi 6798 6799 6800fi 6801if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6802 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6803 # Extract the first word of "mt", so it can be a program name with args. 6804set dummy mt; ac_word=$2 6805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6806$as_echo_n "checking for $ac_word... " >&6; } 6807if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6808 $as_echo_n "(cached) " >&6 6809else 6810 if test -n "$ac_ct_MANIFEST_TOOL"; then 6811 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6812else 6813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6814for as_dir in $PATH 6815do 6816 IFS=$as_save_IFS 6817 test -z "$as_dir" && as_dir=. 6818 for ac_exec_ext in '' $ac_executable_extensions; do 6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6820 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6822 break 2 6823 fi 6824done 6825 done 6826IFS=$as_save_IFS 6827 6828fi 6829fi 6830ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6831if test -n "$ac_ct_MANIFEST_TOOL"; then 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6833$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6834else 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6836$as_echo "no" >&6; } 6837fi 6838 6839 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6840 MANIFEST_TOOL=":" 6841 else 6842 case $cross_compiling:$ac_tool_warned in 6843yes:) 6844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6846ac_tool_warned=yes ;; 6847esac 6848 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6849 fi 6850else 6851 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6852fi 6853 6854test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6856$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6857if ${lt_cv_path_mainfest_tool+:} false; then : 6858 $as_echo_n "(cached) " >&6 6859else 6860 lt_cv_path_mainfest_tool=no 6861 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6862 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6863 cat conftest.err >&5 6864 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6865 lt_cv_path_mainfest_tool=yes 6866 fi 6867 rm -f conftest* 6868fi 6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6870$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6871if test "x$lt_cv_path_mainfest_tool" != xyes; then 6872 MANIFEST_TOOL=: 6873fi 6874 6875 6876 6877 6878 6879 6880 case $host_os in 6881 rhapsody* | darwin*) 6882 if test -n "$ac_tool_prefix"; then 6883 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6884set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6886$as_echo_n "checking for $ac_word... " >&6; } 6887if ${ac_cv_prog_DSYMUTIL+:} false; then : 6888 $as_echo_n "(cached) " >&6 6889else 6890 if test -n "$DSYMUTIL"; then 6891 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6892else 6893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6894for as_dir in $PATH 6895do 6896 IFS=$as_save_IFS 6897 test -z "$as_dir" && as_dir=. 6898 for ac_exec_ext in '' $ac_executable_extensions; do 6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6900 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6902 break 2 6903 fi 6904done 6905 done 6906IFS=$as_save_IFS 6907 6908fi 6909fi 6910DSYMUTIL=$ac_cv_prog_DSYMUTIL 6911if test -n "$DSYMUTIL"; then 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6913$as_echo "$DSYMUTIL" >&6; } 6914else 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6916$as_echo "no" >&6; } 6917fi 6918 6919 6920fi 6921if test -z "$ac_cv_prog_DSYMUTIL"; then 6922 ac_ct_DSYMUTIL=$DSYMUTIL 6923 # Extract the first word of "dsymutil", so it can be a program name with args. 6924set dummy dsymutil; ac_word=$2 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6926$as_echo_n "checking for $ac_word... " >&6; } 6927if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6928 $as_echo_n "(cached) " >&6 6929else 6930 if test -n "$ac_ct_DSYMUTIL"; then 6931 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6932else 6933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6934for as_dir in $PATH 6935do 6936 IFS=$as_save_IFS 6937 test -z "$as_dir" && as_dir=. 6938 for ac_exec_ext in '' $ac_executable_extensions; do 6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6940 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6942 break 2 6943 fi 6944done 6945 done 6946IFS=$as_save_IFS 6947 6948fi 6949fi 6950ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6951if test -n "$ac_ct_DSYMUTIL"; then 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6953$as_echo "$ac_ct_DSYMUTIL" >&6; } 6954else 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6956$as_echo "no" >&6; } 6957fi 6958 6959 if test "x$ac_ct_DSYMUTIL" = x; then 6960 DSYMUTIL=":" 6961 else 6962 case $cross_compiling:$ac_tool_warned in 6963yes:) 6964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6966ac_tool_warned=yes ;; 6967esac 6968 DSYMUTIL=$ac_ct_DSYMUTIL 6969 fi 6970else 6971 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6972fi 6973 6974 if test -n "$ac_tool_prefix"; then 6975 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6976set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6978$as_echo_n "checking for $ac_word... " >&6; } 6979if ${ac_cv_prog_NMEDIT+:} false; then : 6980 $as_echo_n "(cached) " >&6 6981else 6982 if test -n "$NMEDIT"; then 6983 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6984else 6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6986for as_dir in $PATH 6987do 6988 IFS=$as_save_IFS 6989 test -z "$as_dir" && as_dir=. 6990 for ac_exec_ext in '' $ac_executable_extensions; do 6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6992 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6994 break 2 6995 fi 6996done 6997 done 6998IFS=$as_save_IFS 6999 7000fi 7001fi 7002NMEDIT=$ac_cv_prog_NMEDIT 7003if test -n "$NMEDIT"; then 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7005$as_echo "$NMEDIT" >&6; } 7006else 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7008$as_echo "no" >&6; } 7009fi 7010 7011 7012fi 7013if test -z "$ac_cv_prog_NMEDIT"; then 7014 ac_ct_NMEDIT=$NMEDIT 7015 # Extract the first word of "nmedit", so it can be a program name with args. 7016set dummy nmedit; ac_word=$2 7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7018$as_echo_n "checking for $ac_word... " >&6; } 7019if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7020 $as_echo_n "(cached) " >&6 7021else 7022 if test -n "$ac_ct_NMEDIT"; then 7023 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7024else 7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7026for as_dir in $PATH 7027do 7028 IFS=$as_save_IFS 7029 test -z "$as_dir" && as_dir=. 7030 for ac_exec_ext in '' $ac_executable_extensions; do 7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7032 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7034 break 2 7035 fi 7036done 7037 done 7038IFS=$as_save_IFS 7039 7040fi 7041fi 7042ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7043if test -n "$ac_ct_NMEDIT"; then 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7045$as_echo "$ac_ct_NMEDIT" >&6; } 7046else 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7048$as_echo "no" >&6; } 7049fi 7050 7051 if test "x$ac_ct_NMEDIT" = x; then 7052 NMEDIT=":" 7053 else 7054 case $cross_compiling:$ac_tool_warned in 7055yes:) 7056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7058ac_tool_warned=yes ;; 7059esac 7060 NMEDIT=$ac_ct_NMEDIT 7061 fi 7062else 7063 NMEDIT="$ac_cv_prog_NMEDIT" 7064fi 7065 7066 if test -n "$ac_tool_prefix"; then 7067 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7068set dummy ${ac_tool_prefix}lipo; ac_word=$2 7069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7070$as_echo_n "checking for $ac_word... " >&6; } 7071if ${ac_cv_prog_LIPO+:} false; then : 7072 $as_echo_n "(cached) " >&6 7073else 7074 if test -n "$LIPO"; then 7075 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7076else 7077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7078for as_dir in $PATH 7079do 7080 IFS=$as_save_IFS 7081 test -z "$as_dir" && as_dir=. 7082 for ac_exec_ext in '' $ac_executable_extensions; do 7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7084 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7086 break 2 7087 fi 7088done 7089 done 7090IFS=$as_save_IFS 7091 7092fi 7093fi 7094LIPO=$ac_cv_prog_LIPO 7095if test -n "$LIPO"; then 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7097$as_echo "$LIPO" >&6; } 7098else 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7100$as_echo "no" >&6; } 7101fi 7102 7103 7104fi 7105if test -z "$ac_cv_prog_LIPO"; then 7106 ac_ct_LIPO=$LIPO 7107 # Extract the first word of "lipo", so it can be a program name with args. 7108set dummy lipo; ac_word=$2 7109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7110$as_echo_n "checking for $ac_word... " >&6; } 7111if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7112 $as_echo_n "(cached) " >&6 7113else 7114 if test -n "$ac_ct_LIPO"; then 7115 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7116else 7117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7118for as_dir in $PATH 7119do 7120 IFS=$as_save_IFS 7121 test -z "$as_dir" && as_dir=. 7122 for ac_exec_ext in '' $ac_executable_extensions; do 7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7124 ac_cv_prog_ac_ct_LIPO="lipo" 7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7126 break 2 7127 fi 7128done 7129 done 7130IFS=$as_save_IFS 7131 7132fi 7133fi 7134ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7135if test -n "$ac_ct_LIPO"; then 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7137$as_echo "$ac_ct_LIPO" >&6; } 7138else 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7140$as_echo "no" >&6; } 7141fi 7142 7143 if test "x$ac_ct_LIPO" = x; then 7144 LIPO=":" 7145 else 7146 case $cross_compiling:$ac_tool_warned in 7147yes:) 7148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7150ac_tool_warned=yes ;; 7151esac 7152 LIPO=$ac_ct_LIPO 7153 fi 7154else 7155 LIPO="$ac_cv_prog_LIPO" 7156fi 7157 7158 if test -n "$ac_tool_prefix"; then 7159 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7160set dummy ${ac_tool_prefix}otool; ac_word=$2 7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7162$as_echo_n "checking for $ac_word... " >&6; } 7163if ${ac_cv_prog_OTOOL+:} false; then : 7164 $as_echo_n "(cached) " >&6 7165else 7166 if test -n "$OTOOL"; then 7167 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7168else 7169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7170for as_dir in $PATH 7171do 7172 IFS=$as_save_IFS 7173 test -z "$as_dir" && as_dir=. 7174 for ac_exec_ext in '' $ac_executable_extensions; do 7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7176 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7178 break 2 7179 fi 7180done 7181 done 7182IFS=$as_save_IFS 7183 7184fi 7185fi 7186OTOOL=$ac_cv_prog_OTOOL 7187if test -n "$OTOOL"; then 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7189$as_echo "$OTOOL" >&6; } 7190else 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7192$as_echo "no" >&6; } 7193fi 7194 7195 7196fi 7197if test -z "$ac_cv_prog_OTOOL"; then 7198 ac_ct_OTOOL=$OTOOL 7199 # Extract the first word of "otool", so it can be a program name with args. 7200set dummy otool; ac_word=$2 7201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7202$as_echo_n "checking for $ac_word... " >&6; } 7203if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7204 $as_echo_n "(cached) " >&6 7205else 7206 if test -n "$ac_ct_OTOOL"; then 7207 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7208else 7209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7210for as_dir in $PATH 7211do 7212 IFS=$as_save_IFS 7213 test -z "$as_dir" && as_dir=. 7214 for ac_exec_ext in '' $ac_executable_extensions; do 7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7216 ac_cv_prog_ac_ct_OTOOL="otool" 7217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7218 break 2 7219 fi 7220done 7221 done 7222IFS=$as_save_IFS 7223 7224fi 7225fi 7226ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7227if test -n "$ac_ct_OTOOL"; then 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7229$as_echo "$ac_ct_OTOOL" >&6; } 7230else 7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7232$as_echo "no" >&6; } 7233fi 7234 7235 if test "x$ac_ct_OTOOL" = x; then 7236 OTOOL=":" 7237 else 7238 case $cross_compiling:$ac_tool_warned in 7239yes:) 7240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7242ac_tool_warned=yes ;; 7243esac 7244 OTOOL=$ac_ct_OTOOL 7245 fi 7246else 7247 OTOOL="$ac_cv_prog_OTOOL" 7248fi 7249 7250 if test -n "$ac_tool_prefix"; then 7251 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7252set dummy ${ac_tool_prefix}otool64; ac_word=$2 7253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7254$as_echo_n "checking for $ac_word... " >&6; } 7255if ${ac_cv_prog_OTOOL64+:} false; then : 7256 $as_echo_n "(cached) " >&6 7257else 7258 if test -n "$OTOOL64"; then 7259 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7260else 7261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7262for as_dir in $PATH 7263do 7264 IFS=$as_save_IFS 7265 test -z "$as_dir" && as_dir=. 7266 for ac_exec_ext in '' $ac_executable_extensions; do 7267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7268 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7270 break 2 7271 fi 7272done 7273 done 7274IFS=$as_save_IFS 7275 7276fi 7277fi 7278OTOOL64=$ac_cv_prog_OTOOL64 7279if test -n "$OTOOL64"; then 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7281$as_echo "$OTOOL64" >&6; } 7282else 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7284$as_echo "no" >&6; } 7285fi 7286 7287 7288fi 7289if test -z "$ac_cv_prog_OTOOL64"; then 7290 ac_ct_OTOOL64=$OTOOL64 7291 # Extract the first word of "otool64", so it can be a program name with args. 7292set dummy otool64; ac_word=$2 7293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7294$as_echo_n "checking for $ac_word... " >&6; } 7295if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7296 $as_echo_n "(cached) " >&6 7297else 7298 if test -n "$ac_ct_OTOOL64"; then 7299 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7300else 7301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7302for as_dir in $PATH 7303do 7304 IFS=$as_save_IFS 7305 test -z "$as_dir" && as_dir=. 7306 for ac_exec_ext in '' $ac_executable_extensions; do 7307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7308 ac_cv_prog_ac_ct_OTOOL64="otool64" 7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7310 break 2 7311 fi 7312done 7313 done 7314IFS=$as_save_IFS 7315 7316fi 7317fi 7318ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7319if test -n "$ac_ct_OTOOL64"; then 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7321$as_echo "$ac_ct_OTOOL64" >&6; } 7322else 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7324$as_echo "no" >&6; } 7325fi 7326 7327 if test "x$ac_ct_OTOOL64" = x; then 7328 OTOOL64=":" 7329 else 7330 case $cross_compiling:$ac_tool_warned in 7331yes:) 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7334ac_tool_warned=yes ;; 7335esac 7336 OTOOL64=$ac_ct_OTOOL64 7337 fi 7338else 7339 OTOOL64="$ac_cv_prog_OTOOL64" 7340fi 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7369$as_echo_n "checking for -single_module linker flag... " >&6; } 7370if ${lt_cv_apple_cc_single_mod+:} false; then : 7371 $as_echo_n "(cached) " >&6 7372else 7373 lt_cv_apple_cc_single_mod=no 7374 if test -z "${LT_MULTI_MODULE}"; then 7375 # By default we will add the -single_module flag. You can override 7376 # by either setting the environment variable LT_MULTI_MODULE 7377 # non-empty at configure time, or by adding -multi_module to the 7378 # link flags. 7379 rm -rf libconftest.dylib* 7380 echo "int foo(void){return 1;}" > conftest.c 7381 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7382-dynamiclib -Wl,-single_module conftest.c" >&5 7383 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7384 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7385 _lt_result=$? 7386 # If there is a non-empty error log, and "single_module" 7387 # appears in it, assume the flag caused a linker warning 7388 if test -s conftest.err && $GREP single_module conftest.err; then 7389 cat conftest.err >&5 7390 # Otherwise, if the output was created with a 0 exit code from 7391 # the compiler, it worked. 7392 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7393 lt_cv_apple_cc_single_mod=yes 7394 else 7395 cat conftest.err >&5 7396 fi 7397 rm -rf libconftest.dylib* 7398 rm -f conftest.* 7399 fi 7400fi 7401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7402$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7403 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7405$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7406if ${lt_cv_ld_exported_symbols_list+:} false; then : 7407 $as_echo_n "(cached) " >&6 7408else 7409 lt_cv_ld_exported_symbols_list=no 7410 save_LDFLAGS=$LDFLAGS 7411 echo "_main" > conftest.sym 7412 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7414/* end confdefs.h. */ 7415 7416int 7417main () 7418{ 7419 7420 ; 7421 return 0; 7422} 7423_ACEOF 7424if ac_fn_c_try_link "$LINENO"; then : 7425 lt_cv_ld_exported_symbols_list=yes 7426else 7427 lt_cv_ld_exported_symbols_list=no 7428fi 7429rm -f core conftest.err conftest.$ac_objext \ 7430 conftest$ac_exeext conftest.$ac_ext 7431 LDFLAGS="$save_LDFLAGS" 7432 7433fi 7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7435$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7436 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7438$as_echo_n "checking for -force_load linker flag... " >&6; } 7439if ${lt_cv_ld_force_load+:} false; then : 7440 $as_echo_n "(cached) " >&6 7441else 7442 lt_cv_ld_force_load=no 7443 cat > conftest.c << _LT_EOF 7444int forced_loaded() { return 2;} 7445_LT_EOF 7446 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7447 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7448 echo "$AR cru libconftest.a conftest.o" >&5 7449 $AR cru libconftest.a conftest.o 2>&5 7450 echo "$RANLIB libconftest.a" >&5 7451 $RANLIB libconftest.a 2>&5 7452 cat > conftest.c << _LT_EOF 7453int main() { return 0;} 7454_LT_EOF 7455 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7456 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7457 _lt_result=$? 7458 if test -s conftest.err && $GREP force_load conftest.err; then 7459 cat conftest.err >&5 7460 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7461 lt_cv_ld_force_load=yes 7462 else 7463 cat conftest.err >&5 7464 fi 7465 rm -f conftest.err libconftest.a conftest conftest.c 7466 rm -rf conftest.dSYM 7467 7468fi 7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7470$as_echo "$lt_cv_ld_force_load" >&6; } 7471 case $host_os in 7472 rhapsody* | darwin1.[012]) 7473 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7474 darwin1.*) 7475 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7476 darwin*) # darwin 5.x on 7477 # if running on 10.5 or later, the deployment target defaults 7478 # to the OS version, if on x86, and 10.4, the deployment 7479 # target defaults to 10.4. Don't you love it? 7480 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7481 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7482 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7483 10.[012]*) 7484 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7485 10.*) 7486 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7487 esac 7488 ;; 7489 esac 7490 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7491 _lt_dar_single_mod='$single_module' 7492 fi 7493 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7494 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7495 else 7496 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7497 fi 7498 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7499 _lt_dsymutil='~$DSYMUTIL $lib || :' 7500 else 7501 _lt_dsymutil= 7502 fi 7503 ;; 7504 esac 7505 7506ac_ext=c 7507ac_cpp='$CPP $CPPFLAGS' 7508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7510ac_compiler_gnu=$ac_cv_c_compiler_gnu 7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7512$as_echo_n "checking how to run the C preprocessor... " >&6; } 7513# On Suns, sometimes $CPP names a directory. 7514if test -n "$CPP" && test -d "$CPP"; then 7515 CPP= 7516fi 7517if test -z "$CPP"; then 7518 if ${ac_cv_prog_CPP+:} false; then : 7519 $as_echo_n "(cached) " >&6 7520else 7521 # Double quotes because CPP needs to be expanded 7522 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7523 do 7524 ac_preproc_ok=false 7525for ac_c_preproc_warn_flag in '' yes 7526do 7527 # Use a header file that comes with gcc, so configuring glibc 7528 # with a fresh cross-compiler works. 7529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7530 # <limits.h> exists even on freestanding compilers. 7531 # On the NeXT, cc -E runs the code through the compiler's parser, 7532 # not just through cpp. "Syntax error" is here to catch this case. 7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7534/* end confdefs.h. */ 7535#ifdef __STDC__ 7536# include <limits.h> 7537#else 7538# include <assert.h> 7539#endif 7540 Syntax error 7541_ACEOF 7542if ac_fn_c_try_cpp "$LINENO"; then : 7543 7544else 7545 # Broken: fails on valid input. 7546continue 7547fi 7548rm -f conftest.err conftest.i conftest.$ac_ext 7549 7550 # OK, works on sane cases. Now check whether nonexistent headers 7551 # can be detected and how. 7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7553/* end confdefs.h. */ 7554#include <ac_nonexistent.h> 7555_ACEOF 7556if ac_fn_c_try_cpp "$LINENO"; then : 7557 # Broken: success on invalid input. 7558continue 7559else 7560 # Passes both tests. 7561ac_preproc_ok=: 7562break 7563fi 7564rm -f conftest.err conftest.i conftest.$ac_ext 7565 7566done 7567# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7568rm -f conftest.i conftest.err conftest.$ac_ext 7569if $ac_preproc_ok; then : 7570 break 7571fi 7572 7573 done 7574 ac_cv_prog_CPP=$CPP 7575 7576fi 7577 CPP=$ac_cv_prog_CPP 7578else 7579 ac_cv_prog_CPP=$CPP 7580fi 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7582$as_echo "$CPP" >&6; } 7583ac_preproc_ok=false 7584for ac_c_preproc_warn_flag in '' yes 7585do 7586 # Use a header file that comes with gcc, so configuring glibc 7587 # with a fresh cross-compiler works. 7588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7589 # <limits.h> exists even on freestanding compilers. 7590 # On the NeXT, cc -E runs the code through the compiler's parser, 7591 # not just through cpp. "Syntax error" is here to catch this case. 7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7593/* end confdefs.h. */ 7594#ifdef __STDC__ 7595# include <limits.h> 7596#else 7597# include <assert.h> 7598#endif 7599 Syntax error 7600_ACEOF 7601if ac_fn_c_try_cpp "$LINENO"; then : 7602 7603else 7604 # Broken: fails on valid input. 7605continue 7606fi 7607rm -f conftest.err conftest.i conftest.$ac_ext 7608 7609 # OK, works on sane cases. Now check whether nonexistent headers 7610 # can be detected and how. 7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7612/* end confdefs.h. */ 7613#include <ac_nonexistent.h> 7614_ACEOF 7615if ac_fn_c_try_cpp "$LINENO"; then : 7616 # Broken: success on invalid input. 7617continue 7618else 7619 # Passes both tests. 7620ac_preproc_ok=: 7621break 7622fi 7623rm -f conftest.err conftest.i conftest.$ac_ext 7624 7625done 7626# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7627rm -f conftest.i conftest.err conftest.$ac_ext 7628if $ac_preproc_ok; then : 7629 7630else 7631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7633as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7634See \`config.log' for more details" "$LINENO" 5; } 7635fi 7636 7637ac_ext=c 7638ac_cpp='$CPP $CPPFLAGS' 7639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7641ac_compiler_gnu=$ac_cv_c_compiler_gnu 7642 7643 7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7645$as_echo_n "checking for ANSI C header files... " >&6; } 7646if ${ac_cv_header_stdc+:} false; then : 7647 $as_echo_n "(cached) " >&6 7648else 7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7650/* end confdefs.h. */ 7651#include <stdlib.h> 7652#include <stdarg.h> 7653#include <string.h> 7654#include <float.h> 7655 7656int 7657main () 7658{ 7659 7660 ; 7661 return 0; 7662} 7663_ACEOF 7664if ac_fn_c_try_compile "$LINENO"; then : 7665 ac_cv_header_stdc=yes 7666else 7667 ac_cv_header_stdc=no 7668fi 7669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7670 7671if test $ac_cv_header_stdc = yes; then 7672 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7674/* end confdefs.h. */ 7675#include <string.h> 7676 7677_ACEOF 7678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7679 $EGREP "memchr" >/dev/null 2>&1; then : 7680 7681else 7682 ac_cv_header_stdc=no 7683fi 7684rm -f conftest* 7685 7686fi 7687 7688if test $ac_cv_header_stdc = yes; then 7689 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7691/* end confdefs.h. */ 7692#include <stdlib.h> 7693 7694_ACEOF 7695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7696 $EGREP "free" >/dev/null 2>&1; then : 7697 7698else 7699 ac_cv_header_stdc=no 7700fi 7701rm -f conftest* 7702 7703fi 7704 7705if test $ac_cv_header_stdc = yes; then 7706 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7707 if test "$cross_compiling" = yes; then : 7708 : 7709else 7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7711/* end confdefs.h. */ 7712#include <ctype.h> 7713#include <stdlib.h> 7714#if ((' ' & 0x0FF) == 0x020) 7715# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7716# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7717#else 7718# define ISLOWER(c) \ 7719 (('a' <= (c) && (c) <= 'i') \ 7720 || ('j' <= (c) && (c) <= 'r') \ 7721 || ('s' <= (c) && (c) <= 'z')) 7722# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7723#endif 7724 7725#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7726int 7727main () 7728{ 7729 int i; 7730 for (i = 0; i < 256; i++) 7731 if (XOR (islower (i), ISLOWER (i)) 7732 || toupper (i) != TOUPPER (i)) 7733 return 2; 7734 return 0; 7735} 7736_ACEOF 7737if ac_fn_c_try_run "$LINENO"; then : 7738 7739else 7740 ac_cv_header_stdc=no 7741fi 7742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7743 conftest.$ac_objext conftest.beam conftest.$ac_ext 7744fi 7745 7746fi 7747fi 7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7749$as_echo "$ac_cv_header_stdc" >&6; } 7750if test $ac_cv_header_stdc = yes; then 7751 7752$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7753 7754fi 7755 7756# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7757for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7758 inttypes.h stdint.h unistd.h 7759do : 7760 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7761ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7762" 7763if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7764 cat >>confdefs.h <<_ACEOF 7765#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7766_ACEOF 7767 7768fi 7769 7770done 7771 7772 7773for ac_header in dlfcn.h 7774do : 7775 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7776" 7777if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7778 cat >>confdefs.h <<_ACEOF 7779#define HAVE_DLFCN_H 1 7780_ACEOF 7781 7782fi 7783 7784done 7785 7786 7787 7788 7789func_stripname_cnf () 7790{ 7791 case ${2} in 7792 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 7793 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 7794 esac 7795} # func_stripname_cnf 7796 7797 7798 7799 7800 7801# Set options 7802 7803 7804 7805 enable_dlopen=no 7806 7807 7808 enable_win32_dll=no 7809 7810 7811 # Check whether --enable-shared was given. 7812if test "${enable_shared+set}" = set; then : 7813 enableval=$enable_shared; p=${PACKAGE-default} 7814 case $enableval in 7815 yes) enable_shared=yes ;; 7816 no) enable_shared=no ;; 7817 *) 7818 enable_shared=no 7819 # Look at the argument we got. We use all the common list separators. 7820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7821 for pkg in $enableval; do 7822 IFS="$lt_save_ifs" 7823 if test "X$pkg" = "X$p"; then 7824 enable_shared=yes 7825 fi 7826 done 7827 IFS="$lt_save_ifs" 7828 ;; 7829 esac 7830else 7831 enable_shared=yes 7832fi 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844# Check whether --with-pic was given. 7845if test "${with_pic+set}" = set; then : 7846 withval=$with_pic; lt_p=${PACKAGE-default} 7847 case $withval in 7848 yes|no) pic_mode=$withval ;; 7849 *) 7850 pic_mode=default 7851 # Look at the argument we got. We use all the common list separators. 7852 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7853 for lt_pkg in $withval; do 7854 IFS="$lt_save_ifs" 7855 if test "X$lt_pkg" = "X$lt_p"; then 7856 pic_mode=yes 7857 fi 7858 done 7859 IFS="$lt_save_ifs" 7860 ;; 7861 esac 7862else 7863 pic_mode=default 7864fi 7865 7866 7867test -z "$pic_mode" && pic_mode=default 7868 7869 7870 7871 7872 7873 7874 7875 # Check whether --enable-fast-install was given. 7876if test "${enable_fast_install+set}" = set; then : 7877 enableval=$enable_fast_install; p=${PACKAGE-default} 7878 case $enableval in 7879 yes) enable_fast_install=yes ;; 7880 no) enable_fast_install=no ;; 7881 *) 7882 enable_fast_install=no 7883 # Look at the argument we got. We use all the common list separators. 7884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7885 for pkg in $enableval; do 7886 IFS="$lt_save_ifs" 7887 if test "X$pkg" = "X$p"; then 7888 enable_fast_install=yes 7889 fi 7890 done 7891 IFS="$lt_save_ifs" 7892 ;; 7893 esac 7894else 7895 enable_fast_install=yes 7896fi 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908# This can be used to rebuild libtool when needed 7909LIBTOOL_DEPS="$ltmain" 7910 7911# Always use our own libtool. 7912LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943test -z "$LN_S" && LN_S="ln -s" 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958if test -n "${ZSH_VERSION+set}" ; then 7959 setopt NO_GLOB_SUBST 7960fi 7961 7962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7963$as_echo_n "checking for objdir... " >&6; } 7964if ${lt_cv_objdir+:} false; then : 7965 $as_echo_n "(cached) " >&6 7966else 7967 rm -f .libs 2>/dev/null 7968mkdir .libs 2>/dev/null 7969if test -d .libs; then 7970 lt_cv_objdir=.libs 7971else 7972 # MS-DOS does not allow filenames that begin with a dot. 7973 lt_cv_objdir=_libs 7974fi 7975rmdir .libs 2>/dev/null 7976fi 7977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7978$as_echo "$lt_cv_objdir" >&6; } 7979objdir=$lt_cv_objdir 7980 7981 7982 7983 7984 7985cat >>confdefs.h <<_ACEOF 7986#define LT_OBJDIR "$lt_cv_objdir/" 7987_ACEOF 7988 7989 7990 7991 7992case $host_os in 7993aix3*) 7994 # AIX sometimes has problems with the GCC collect2 program. For some 7995 # reason, if we set the COLLECT_NAMES environment variable, the problems 7996 # vanish in a puff of smoke. 7997 if test "X${COLLECT_NAMES+set}" != Xset; then 7998 COLLECT_NAMES= 7999 export COLLECT_NAMES 8000 fi 8001 ;; 8002esac 8003 8004# Global variables: 8005ofile=libtool 8006can_build_shared=yes 8007 8008# All known linkers require a `.a' archive for static linking (except MSVC, 8009# which needs '.lib'). 8010libext=a 8011 8012with_gnu_ld="$lt_cv_prog_gnu_ld" 8013 8014old_CC="$CC" 8015old_CFLAGS="$CFLAGS" 8016 8017# Set sane defaults for various variables 8018test -z "$CC" && CC=cc 8019test -z "$LTCC" && LTCC=$CC 8020test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8021test -z "$LD" && LD=ld 8022test -z "$ac_objext" && ac_objext=o 8023 8024for cc_temp in $compiler""; do 8025 case $cc_temp in 8026 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8027 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8028 \-*) ;; 8029 *) break;; 8030 esac 8031done 8032cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8033 8034 8035# Only perform the check for file, if the check method requires it 8036test -z "$MAGIC_CMD" && MAGIC_CMD=file 8037case $deplibs_check_method in 8038file_magic*) 8039 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8041$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8042if ${lt_cv_path_MAGIC_CMD+:} false; then : 8043 $as_echo_n "(cached) " >&6 8044else 8045 case $MAGIC_CMD in 8046[\\/*] | ?:[\\/]*) 8047 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8048 ;; 8049*) 8050 lt_save_MAGIC_CMD="$MAGIC_CMD" 8051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8053 for ac_dir in $ac_dummy; do 8054 IFS="$lt_save_ifs" 8055 test -z "$ac_dir" && ac_dir=. 8056 if test -f $ac_dir/${ac_tool_prefix}file; then 8057 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8058 if test -n "$file_magic_test_file"; then 8059 case $deplibs_check_method in 8060 "file_magic "*) 8061 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8062 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8063 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8064 $EGREP "$file_magic_regex" > /dev/null; then 8065 : 8066 else 8067 cat <<_LT_EOF 1>&2 8068 8069*** Warning: the command libtool uses to detect shared libraries, 8070*** $file_magic_cmd, produces output that libtool cannot recognize. 8071*** The result is that libtool may fail to recognize shared libraries 8072*** as such. This will affect the creation of libtool libraries that 8073*** depend on shared libraries, but programs linked with such libtool 8074*** libraries will work regardless of this problem. Nevertheless, you 8075*** may want to report the problem to your system manager and/or to 8076*** bug-libtool@gnu.org 8077 8078_LT_EOF 8079 fi ;; 8080 esac 8081 fi 8082 break 8083 fi 8084 done 8085 IFS="$lt_save_ifs" 8086 MAGIC_CMD="$lt_save_MAGIC_CMD" 8087 ;; 8088esac 8089fi 8090 8091MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8092if test -n "$MAGIC_CMD"; then 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8094$as_echo "$MAGIC_CMD" >&6; } 8095else 8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8097$as_echo "no" >&6; } 8098fi 8099 8100 8101 8102 8103 8104if test -z "$lt_cv_path_MAGIC_CMD"; then 8105 if test -n "$ac_tool_prefix"; then 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8107$as_echo_n "checking for file... " >&6; } 8108if ${lt_cv_path_MAGIC_CMD+:} false; then : 8109 $as_echo_n "(cached) " >&6 8110else 8111 case $MAGIC_CMD in 8112[\\/*] | ?:[\\/]*) 8113 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8114 ;; 8115*) 8116 lt_save_MAGIC_CMD="$MAGIC_CMD" 8117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8118 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8119 for ac_dir in $ac_dummy; do 8120 IFS="$lt_save_ifs" 8121 test -z "$ac_dir" && ac_dir=. 8122 if test -f $ac_dir/file; then 8123 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8124 if test -n "$file_magic_test_file"; then 8125 case $deplibs_check_method in 8126 "file_magic "*) 8127 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8129 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8130 $EGREP "$file_magic_regex" > /dev/null; then 8131 : 8132 else 8133 cat <<_LT_EOF 1>&2 8134 8135*** Warning: the command libtool uses to detect shared libraries, 8136*** $file_magic_cmd, produces output that libtool cannot recognize. 8137*** The result is that libtool may fail to recognize shared libraries 8138*** as such. This will affect the creation of libtool libraries that 8139*** depend on shared libraries, but programs linked with such libtool 8140*** libraries will work regardless of this problem. Nevertheless, you 8141*** may want to report the problem to your system manager and/or to 8142*** bug-libtool@gnu.org 8143 8144_LT_EOF 8145 fi ;; 8146 esac 8147 fi 8148 break 8149 fi 8150 done 8151 IFS="$lt_save_ifs" 8152 MAGIC_CMD="$lt_save_MAGIC_CMD" 8153 ;; 8154esac 8155fi 8156 8157MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8158if test -n "$MAGIC_CMD"; then 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8160$as_echo "$MAGIC_CMD" >&6; } 8161else 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8163$as_echo "no" >&6; } 8164fi 8165 8166 8167 else 8168 MAGIC_CMD=: 8169 fi 8170fi 8171 8172 fi 8173 ;; 8174esac 8175 8176# Use C for the default configuration in the libtool script 8177 8178lt_save_CC="$CC" 8179ac_ext=c 8180ac_cpp='$CPP $CPPFLAGS' 8181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8183ac_compiler_gnu=$ac_cv_c_compiler_gnu 8184 8185 8186# Source file extension for C test sources. 8187ac_ext=c 8188 8189# Object file extension for compiled C test sources. 8190objext=o 8191objext=$objext 8192 8193# Code to be used in simple compile tests 8194lt_simple_compile_test_code="int some_variable = 0;" 8195 8196# Code to be used in simple link tests 8197lt_simple_link_test_code='int main(){return(0);}' 8198 8199 8200 8201 8202 8203 8204 8205# If no C compiler was specified, use CC. 8206LTCC=${LTCC-"$CC"} 8207 8208# If no C compiler flags were specified, use CFLAGS. 8209LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8210 8211# Allow CC to be a program name with arguments. 8212compiler=$CC 8213 8214# Save the default compiler, since it gets overwritten when the other 8215# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8216compiler_DEFAULT=$CC 8217 8218# save warnings/boilerplate of simple test code 8219ac_outfile=conftest.$ac_objext 8220echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8221eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8222_lt_compiler_boilerplate=`cat conftest.err` 8223$RM conftest* 8224 8225ac_outfile=conftest.$ac_objext 8226echo "$lt_simple_link_test_code" >conftest.$ac_ext 8227eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8228_lt_linker_boilerplate=`cat conftest.err` 8229$RM -r conftest* 8230 8231 8232## CAVEAT EMPTOR: 8233## There is no encapsulation within the following macros, do not change 8234## the running order or otherwise move them around unless you know exactly 8235## what you are doing... 8236if test -n "$compiler"; then 8237 8238lt_prog_compiler_no_builtin_flag= 8239 8240if test "$GCC" = yes; then 8241 case $cc_basename in 8242 nvcc*) 8243 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8244 *) 8245 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8246 esac 8247 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8249$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8250if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8251 $as_echo_n "(cached) " >&6 8252else 8253 lt_cv_prog_compiler_rtti_exceptions=no 8254 ac_outfile=conftest.$ac_objext 8255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8256 lt_compiler_flag="-fno-rtti -fno-exceptions" 8257 # Insert the option either (1) after the last *FLAGS variable, or 8258 # (2) before a word containing "conftest.", or (3) at the end. 8259 # Note that $ac_compile itself does not contain backslashes and begins 8260 # with a dollar sign (not a hyphen), so the echo should work correctly. 8261 # The option is referenced via a variable to avoid confusing sed. 8262 lt_compile=`echo "$ac_compile" | $SED \ 8263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8265 -e 's:$: $lt_compiler_flag:'` 8266 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8267 (eval "$lt_compile" 2>conftest.err) 8268 ac_status=$? 8269 cat conftest.err >&5 8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8271 if (exit $ac_status) && test -s "$ac_outfile"; then 8272 # The compiler can only warn and ignore the option if not recognized 8273 # So say no if there are warnings other than the usual output. 8274 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8276 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8277 lt_cv_prog_compiler_rtti_exceptions=yes 8278 fi 8279 fi 8280 $RM conftest* 8281 8282fi 8283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8284$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8285 8286if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8287 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8288else 8289 : 8290fi 8291 8292fi 8293 8294 8295 8296 8297 8298 8299 lt_prog_compiler_wl= 8300lt_prog_compiler_pic= 8301lt_prog_compiler_static= 8302 8303 8304 if test "$GCC" = yes; then 8305 lt_prog_compiler_wl='-Wl,' 8306 lt_prog_compiler_static='-static' 8307 8308 case $host_os in 8309 aix*) 8310 # All AIX code is PIC. 8311 if test "$host_cpu" = ia64; then 8312 # AIX 5 now supports IA64 processor 8313 lt_prog_compiler_static='-Bstatic' 8314 fi 8315 ;; 8316 8317 amigaos*) 8318 case $host_cpu in 8319 powerpc) 8320 # see comment about AmigaOS4 .so support 8321 lt_prog_compiler_pic='-fPIC' 8322 ;; 8323 m68k) 8324 # FIXME: we need at least 68020 code to build shared libraries, but 8325 # adding the `-m68020' flag to GCC prevents building anything better, 8326 # like `-m68040'. 8327 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8328 ;; 8329 esac 8330 ;; 8331 8332 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8333 # PIC is the default for these OSes. 8334 ;; 8335 8336 mingw* | cygwin* | pw32* | os2* | cegcc*) 8337 # This hack is so that the source file can tell whether it is being 8338 # built for inclusion in a dll (and should export symbols for example). 8339 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8340 # (--disable-auto-import) libraries 8341 lt_prog_compiler_pic='-DDLL_EXPORT' 8342 ;; 8343 8344 darwin* | rhapsody*) 8345 # PIC is the default on this platform 8346 # Common symbols not allowed in MH_DYLIB files 8347 lt_prog_compiler_pic='-fno-common' 8348 ;; 8349 8350 haiku*) 8351 # PIC is the default for Haiku. 8352 # The "-static" flag exists, but is broken. 8353 lt_prog_compiler_static= 8354 ;; 8355 8356 hpux*) 8357 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8358 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8359 # sets the default TLS model and affects inlining. 8360 case $host_cpu in 8361 hppa*64*) 8362 # +Z the default 8363 ;; 8364 *) 8365 lt_prog_compiler_pic='-fPIC' 8366 ;; 8367 esac 8368 ;; 8369 8370 interix[3-9]*) 8371 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8372 # Instead, we relocate shared libraries at runtime. 8373 ;; 8374 8375 msdosdjgpp*) 8376 # Just because we use GCC doesn't mean we suddenly get shared libraries 8377 # on systems that don't support them. 8378 lt_prog_compiler_can_build_shared=no 8379 enable_shared=no 8380 ;; 8381 8382 *nto* | *qnx*) 8383 # QNX uses GNU C++, but need to define -shared option too, otherwise 8384 # it will coredump. 8385 lt_prog_compiler_pic='-fPIC -shared' 8386 ;; 8387 8388 sysv4*MP*) 8389 if test -d /usr/nec; then 8390 lt_prog_compiler_pic=-Kconform_pic 8391 fi 8392 ;; 8393 8394 *) 8395 lt_prog_compiler_pic='-fPIC' 8396 ;; 8397 esac 8398 8399 case $cc_basename in 8400 nvcc*) # Cuda Compiler Driver 2.2 8401 lt_prog_compiler_wl='-Xlinker ' 8402 if test -n "$lt_prog_compiler_pic"; then 8403 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8404 fi 8405 ;; 8406 esac 8407 else 8408 # PORTME Check for flag to pass linker flags through the system compiler. 8409 case $host_os in 8410 aix*) 8411 lt_prog_compiler_wl='-Wl,' 8412 if test "$host_cpu" = ia64; then 8413 # AIX 5 now supports IA64 processor 8414 lt_prog_compiler_static='-Bstatic' 8415 else 8416 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8417 fi 8418 ;; 8419 8420 mingw* | cygwin* | pw32* | os2* | cegcc*) 8421 # This hack is so that the source file can tell whether it is being 8422 # built for inclusion in a dll (and should export symbols for example). 8423 lt_prog_compiler_pic='-DDLL_EXPORT' 8424 ;; 8425 8426 hpux9* | hpux10* | hpux11*) 8427 lt_prog_compiler_wl='-Wl,' 8428 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8429 # not for PA HP-UX. 8430 case $host_cpu in 8431 hppa*64*|ia64*) 8432 # +Z the default 8433 ;; 8434 *) 8435 lt_prog_compiler_pic='+Z' 8436 ;; 8437 esac 8438 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8439 lt_prog_compiler_static='${wl}-a ${wl}archive' 8440 ;; 8441 8442 irix5* | irix6* | nonstopux*) 8443 lt_prog_compiler_wl='-Wl,' 8444 # PIC (with -KPIC) is the default. 8445 lt_prog_compiler_static='-non_shared' 8446 ;; 8447 8448 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8449 case $cc_basename in 8450 # old Intel for x86_64 which still supported -KPIC. 8451 ecc*) 8452 lt_prog_compiler_wl='-Wl,' 8453 lt_prog_compiler_pic='-KPIC' 8454 lt_prog_compiler_static='-static' 8455 ;; 8456 # icc used to be incompatible with GCC. 8457 # ICC 10 doesn't accept -KPIC any more. 8458 icc* | ifort*) 8459 lt_prog_compiler_wl='-Wl,' 8460 lt_prog_compiler_pic='-fPIC' 8461 lt_prog_compiler_static='-static' 8462 ;; 8463 # Lahey Fortran 8.1. 8464 lf95*) 8465 lt_prog_compiler_wl='-Wl,' 8466 lt_prog_compiler_pic='--shared' 8467 lt_prog_compiler_static='--static' 8468 ;; 8469 nagfor*) 8470 # NAG Fortran compiler 8471 lt_prog_compiler_wl='-Wl,-Wl,,' 8472 lt_prog_compiler_pic='-PIC' 8473 lt_prog_compiler_static='-Bstatic' 8474 ;; 8475 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8476 # Portland Group compilers (*not* the Pentium gcc compiler, 8477 # which looks to be a dead project) 8478 lt_prog_compiler_wl='-Wl,' 8479 lt_prog_compiler_pic='-fpic' 8480 lt_prog_compiler_static='-Bstatic' 8481 ;; 8482 ccc*) 8483 lt_prog_compiler_wl='-Wl,' 8484 # All Alpha code is PIC. 8485 lt_prog_compiler_static='-non_shared' 8486 ;; 8487 xl* | bgxl* | bgf* | mpixl*) 8488 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8489 lt_prog_compiler_wl='-Wl,' 8490 lt_prog_compiler_pic='-qpic' 8491 lt_prog_compiler_static='-qstaticlink' 8492 ;; 8493 *) 8494 case `$CC -V 2>&1 | sed 5q` in 8495 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8496 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8497 lt_prog_compiler_pic='-KPIC' 8498 lt_prog_compiler_static='-Bstatic' 8499 lt_prog_compiler_wl='' 8500 ;; 8501 *Sun\ F* | *Sun*Fortran*) 8502 lt_prog_compiler_pic='-KPIC' 8503 lt_prog_compiler_static='-Bstatic' 8504 lt_prog_compiler_wl='-Qoption ld ' 8505 ;; 8506 *Sun\ C*) 8507 # Sun C 5.9 8508 lt_prog_compiler_pic='-KPIC' 8509 lt_prog_compiler_static='-Bstatic' 8510 lt_prog_compiler_wl='-Wl,' 8511 ;; 8512 *Intel*\ [CF]*Compiler*) 8513 lt_prog_compiler_wl='-Wl,' 8514 lt_prog_compiler_pic='-fPIC' 8515 lt_prog_compiler_static='-static' 8516 ;; 8517 *Portland\ Group*) 8518 lt_prog_compiler_wl='-Wl,' 8519 lt_prog_compiler_pic='-fpic' 8520 lt_prog_compiler_static='-Bstatic' 8521 ;; 8522 esac 8523 ;; 8524 esac 8525 ;; 8526 8527 newsos6) 8528 lt_prog_compiler_pic='-KPIC' 8529 lt_prog_compiler_static='-Bstatic' 8530 ;; 8531 8532 *nto* | *qnx*) 8533 # QNX uses GNU C++, but need to define -shared option too, otherwise 8534 # it will coredump. 8535 lt_prog_compiler_pic='-fPIC -shared' 8536 ;; 8537 8538 osf3* | osf4* | osf5*) 8539 lt_prog_compiler_wl='-Wl,' 8540 # All OSF/1 code is PIC. 8541 lt_prog_compiler_static='-non_shared' 8542 ;; 8543 8544 rdos*) 8545 lt_prog_compiler_static='-non_shared' 8546 ;; 8547 8548 solaris*) 8549 lt_prog_compiler_pic='-KPIC' 8550 lt_prog_compiler_static='-Bstatic' 8551 case $cc_basename in 8552 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8553 lt_prog_compiler_wl='-Qoption ld ';; 8554 *) 8555 lt_prog_compiler_wl='-Wl,';; 8556 esac 8557 ;; 8558 8559 sunos4*) 8560 lt_prog_compiler_wl='-Qoption ld ' 8561 lt_prog_compiler_pic='-PIC' 8562 lt_prog_compiler_static='-Bstatic' 8563 ;; 8564 8565 sysv4 | sysv4.2uw2* | sysv4.3*) 8566 lt_prog_compiler_wl='-Wl,' 8567 lt_prog_compiler_pic='-KPIC' 8568 lt_prog_compiler_static='-Bstatic' 8569 ;; 8570 8571 sysv4*MP*) 8572 if test -d /usr/nec ;then 8573 lt_prog_compiler_pic='-Kconform_pic' 8574 lt_prog_compiler_static='-Bstatic' 8575 fi 8576 ;; 8577 8578 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8579 lt_prog_compiler_wl='-Wl,' 8580 lt_prog_compiler_pic='-KPIC' 8581 lt_prog_compiler_static='-Bstatic' 8582 ;; 8583 8584 unicos*) 8585 lt_prog_compiler_wl='-Wl,' 8586 lt_prog_compiler_can_build_shared=no 8587 ;; 8588 8589 uts4*) 8590 lt_prog_compiler_pic='-pic' 8591 lt_prog_compiler_static='-Bstatic' 8592 ;; 8593 8594 *) 8595 lt_prog_compiler_can_build_shared=no 8596 ;; 8597 esac 8598 fi 8599 8600case $host_os in 8601 # For platforms which do not support PIC, -DPIC is meaningless: 8602 *djgpp*) 8603 lt_prog_compiler_pic= 8604 ;; 8605 *) 8606 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8607 ;; 8608esac 8609 8610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8611$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8612if ${lt_cv_prog_compiler_pic+:} false; then : 8613 $as_echo_n "(cached) " >&6 8614else 8615 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8616fi 8617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8618$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8619lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8620 8621# 8622# Check to make sure the PIC flag actually works. 8623# 8624if test -n "$lt_prog_compiler_pic"; then 8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8626$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8627if ${lt_cv_prog_compiler_pic_works+:} false; then : 8628 $as_echo_n "(cached) " >&6 8629else 8630 lt_cv_prog_compiler_pic_works=no 8631 ac_outfile=conftest.$ac_objext 8632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8633 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8634 # Insert the option either (1) after the last *FLAGS variable, or 8635 # (2) before a word containing "conftest.", or (3) at the end. 8636 # Note that $ac_compile itself does not contain backslashes and begins 8637 # with a dollar sign (not a hyphen), so the echo should work correctly. 8638 # The option is referenced via a variable to avoid confusing sed. 8639 lt_compile=`echo "$ac_compile" | $SED \ 8640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8642 -e 's:$: $lt_compiler_flag:'` 8643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8644 (eval "$lt_compile" 2>conftest.err) 8645 ac_status=$? 8646 cat conftest.err >&5 8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8648 if (exit $ac_status) && test -s "$ac_outfile"; then 8649 # The compiler can only warn and ignore the option if not recognized 8650 # So say no if there are warnings other than the usual output. 8651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8654 lt_cv_prog_compiler_pic_works=yes 8655 fi 8656 fi 8657 $RM conftest* 8658 8659fi 8660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8661$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8662 8663if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8664 case $lt_prog_compiler_pic in 8665 "" | " "*) ;; 8666 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8667 esac 8668else 8669 lt_prog_compiler_pic= 8670 lt_prog_compiler_can_build_shared=no 8671fi 8672 8673fi 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685# 8686# Check to make sure the static flag actually works. 8687# 8688wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8690$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8691if ${lt_cv_prog_compiler_static_works+:} false; then : 8692 $as_echo_n "(cached) " >&6 8693else 8694 lt_cv_prog_compiler_static_works=no 8695 save_LDFLAGS="$LDFLAGS" 8696 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8697 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8698 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8699 # The linker can only warn and ignore the option if not recognized 8700 # So say no if there are warnings 8701 if test -s conftest.err; then 8702 # Append any errors to the config.log. 8703 cat conftest.err 1>&5 8704 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8706 if diff conftest.exp conftest.er2 >/dev/null; then 8707 lt_cv_prog_compiler_static_works=yes 8708 fi 8709 else 8710 lt_cv_prog_compiler_static_works=yes 8711 fi 8712 fi 8713 $RM -r conftest* 8714 LDFLAGS="$save_LDFLAGS" 8715 8716fi 8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8718$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8719 8720if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8721 : 8722else 8723 lt_prog_compiler_static= 8724fi 8725 8726 8727 8728 8729 8730 8731 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8733$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8734if ${lt_cv_prog_compiler_c_o+:} false; then : 8735 $as_echo_n "(cached) " >&6 8736else 8737 lt_cv_prog_compiler_c_o=no 8738 $RM -r conftest 2>/dev/null 8739 mkdir conftest 8740 cd conftest 8741 mkdir out 8742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8743 8744 lt_compiler_flag="-o out/conftest2.$ac_objext" 8745 # Insert the option either (1) after the last *FLAGS variable, or 8746 # (2) before a word containing "conftest.", or (3) at the end. 8747 # Note that $ac_compile itself does not contain backslashes and begins 8748 # with a dollar sign (not a hyphen), so the echo should work correctly. 8749 lt_compile=`echo "$ac_compile" | $SED \ 8750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8752 -e 's:$: $lt_compiler_flag:'` 8753 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8754 (eval "$lt_compile" 2>out/conftest.err) 8755 ac_status=$? 8756 cat out/conftest.err >&5 8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8758 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8759 then 8760 # The compiler can only warn and ignore the option if not recognized 8761 # So say no if there are warnings 8762 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8763 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8764 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8765 lt_cv_prog_compiler_c_o=yes 8766 fi 8767 fi 8768 chmod u+w . 2>&5 8769 $RM conftest* 8770 # SGI C++ compiler will create directory out/ii_files/ for 8771 # template instantiation 8772 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8773 $RM out/* && rmdir out 8774 cd .. 8775 $RM -r conftest 8776 $RM conftest* 8777 8778fi 8779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8780$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8781 8782 8783 8784 8785 8786 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8788$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8789if ${lt_cv_prog_compiler_c_o+:} false; then : 8790 $as_echo_n "(cached) " >&6 8791else 8792 lt_cv_prog_compiler_c_o=no 8793 $RM -r conftest 2>/dev/null 8794 mkdir conftest 8795 cd conftest 8796 mkdir out 8797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8798 8799 lt_compiler_flag="-o out/conftest2.$ac_objext" 8800 # Insert the option either (1) after the last *FLAGS variable, or 8801 # (2) before a word containing "conftest.", or (3) at the end. 8802 # Note that $ac_compile itself does not contain backslashes and begins 8803 # with a dollar sign (not a hyphen), so the echo should work correctly. 8804 lt_compile=`echo "$ac_compile" | $SED \ 8805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8807 -e 's:$: $lt_compiler_flag:'` 8808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8809 (eval "$lt_compile" 2>out/conftest.err) 8810 ac_status=$? 8811 cat out/conftest.err >&5 8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8813 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8814 then 8815 # The compiler can only warn and ignore the option if not recognized 8816 # So say no if there are warnings 8817 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8818 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8819 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8820 lt_cv_prog_compiler_c_o=yes 8821 fi 8822 fi 8823 chmod u+w . 2>&5 8824 $RM conftest* 8825 # SGI C++ compiler will create directory out/ii_files/ for 8826 # template instantiation 8827 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8828 $RM out/* && rmdir out 8829 cd .. 8830 $RM -r conftest 8831 $RM conftest* 8832 8833fi 8834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8835$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8836 8837 8838 8839 8840hard_links="nottested" 8841if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8842 # do not overwrite the value of need_locks provided by the user 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8844$as_echo_n "checking if we can lock with hard links... " >&6; } 8845 hard_links=yes 8846 $RM conftest* 8847 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8848 touch conftest.a 8849 ln conftest.a conftest.b 2>&5 || hard_links=no 8850 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8852$as_echo "$hard_links" >&6; } 8853 if test "$hard_links" = no; then 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8855$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8856 need_locks=warn 8857 fi 8858else 8859 need_locks=no 8860fi 8861 8862 8863 8864 8865 8866 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8868$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8869 8870 runpath_var= 8871 allow_undefined_flag= 8872 always_export_symbols=no 8873 archive_cmds= 8874 archive_expsym_cmds= 8875 compiler_needs_object=no 8876 enable_shared_with_static_runtimes=no 8877 export_dynamic_flag_spec= 8878 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8879 hardcode_automatic=no 8880 hardcode_direct=no 8881 hardcode_direct_absolute=no 8882 hardcode_libdir_flag_spec= 8883 hardcode_libdir_separator= 8884 hardcode_minus_L=no 8885 hardcode_shlibpath_var=unsupported 8886 inherit_rpath=no 8887 link_all_deplibs=unknown 8888 module_cmds= 8889 module_expsym_cmds= 8890 old_archive_from_new_cmds= 8891 old_archive_from_expsyms_cmds= 8892 thread_safe_flag_spec= 8893 whole_archive_flag_spec= 8894 # include_expsyms should be a list of space-separated symbols to be *always* 8895 # included in the symbol list 8896 include_expsyms= 8897 # exclude_expsyms can be an extended regexp of symbols to exclude 8898 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8899 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8900 # as well as any symbol that contains `d'. 8901 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8902 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8903 # platforms (ab)use it in PIC code, but their linkers get confused if 8904 # the symbol is explicitly referenced. Since portable code cannot 8905 # rely on this symbol name, it's probably fine to never include it in 8906 # preloaded symbol tables. 8907 # Exclude shared library initialization/finalization symbols. 8908 extract_expsyms_cmds= 8909 8910 case $host_os in 8911 cygwin* | mingw* | pw32* | cegcc*) 8912 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8913 # When not using gcc, we currently assume that we are using 8914 # Microsoft Visual C++. 8915 if test "$GCC" != yes; then 8916 with_gnu_ld=no 8917 fi 8918 ;; 8919 interix*) 8920 # we just hope/assume this is gcc and not c89 (= MSVC++) 8921 with_gnu_ld=yes 8922 ;; 8923 openbsd*) 8924 with_gnu_ld=no 8925 ;; 8926 linux* | k*bsd*-gnu | gnu*) 8927 link_all_deplibs=no 8928 ;; 8929 esac 8930 8931 ld_shlibs=yes 8932 8933 # On some targets, GNU ld is compatible enough with the native linker 8934 # that we're better off using the native interface for both. 8935 lt_use_gnu_ld_interface=no 8936 if test "$with_gnu_ld" = yes; then 8937 case $host_os in 8938 aix*) 8939 # The AIX port of GNU ld has always aspired to compatibility 8940 # with the native linker. However, as the warning in the GNU ld 8941 # block says, versions before 2.19.5* couldn't really create working 8942 # shared libraries, regardless of the interface used. 8943 case `$LD -v 2>&1` in 8944 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8945 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8946 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8947 *) 8948 lt_use_gnu_ld_interface=yes 8949 ;; 8950 esac 8951 ;; 8952 *) 8953 lt_use_gnu_ld_interface=yes 8954 ;; 8955 esac 8956 fi 8957 8958 if test "$lt_use_gnu_ld_interface" = yes; then 8959 # If archive_cmds runs LD, not CC, wlarc should be empty 8960 wlarc='${wl}' 8961 8962 # Set some defaults for GNU ld with shared library support. These 8963 # are reset later if shared libraries are not supported. Putting them 8964 # here allows them to be overridden if necessary. 8965 runpath_var=LD_RUN_PATH 8966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8967 export_dynamic_flag_spec='${wl}--export-dynamic' 8968 # ancient GNU ld didn't support --whole-archive et. al. 8969 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8970 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8971 else 8972 whole_archive_flag_spec= 8973 fi 8974 supports_anon_versioning=no 8975 case `$LD -v 2>&1` in 8976 *GNU\ gold*) supports_anon_versioning=yes ;; 8977 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8978 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8979 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8980 *\ 2.11.*) ;; # other 2.11 versions 8981 *) supports_anon_versioning=yes ;; 8982 esac 8983 8984 # See if GNU ld supports shared libraries. 8985 case $host_os in 8986 aix[3-9]*) 8987 # On AIX/PPC, the GNU linker is very broken 8988 if test "$host_cpu" != ia64; then 8989 ld_shlibs=no 8990 cat <<_LT_EOF 1>&2 8991 8992*** Warning: the GNU linker, at least up to release 2.19, is reported 8993*** to be unable to reliably create shared libraries on AIX. 8994*** Therefore, libtool is disabling shared libraries support. If you 8995*** really care for shared libraries, you may want to install binutils 8996*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8997*** You will then need to restart the configuration process. 8998 8999_LT_EOF 9000 fi 9001 ;; 9002 9003 amigaos*) 9004 case $host_cpu in 9005 powerpc) 9006 # see comment about AmigaOS4 .so support 9007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9008 archive_expsym_cmds='' 9009 ;; 9010 m68k) 9011 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)' 9012 hardcode_libdir_flag_spec='-L$libdir' 9013 hardcode_minus_L=yes 9014 ;; 9015 esac 9016 ;; 9017 9018 beos*) 9019 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9020 allow_undefined_flag=unsupported 9021 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9022 # support --undefined. This deserves some investigation. FIXME 9023 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9024 else 9025 ld_shlibs=no 9026 fi 9027 ;; 9028 9029 cygwin* | mingw* | pw32* | cegcc*) 9030 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9031 # as there is no search path for DLLs. 9032 hardcode_libdir_flag_spec='-L$libdir' 9033 export_dynamic_flag_spec='${wl}--export-all-symbols' 9034 allow_undefined_flag=unsupported 9035 always_export_symbols=no 9036 enable_shared_with_static_runtimes=yes 9037 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' 9038 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9039 9040 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9042 # If the export-symbols file already is a .def file (1st line 9043 # is EXPORTS), use it as is; otherwise, prepend... 9044 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9045 cp $export_symbols $output_objdir/$soname.def; 9046 else 9047 echo EXPORTS > $output_objdir/$soname.def; 9048 cat $export_symbols >> $output_objdir/$soname.def; 9049 fi~ 9050 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9051 else 9052 ld_shlibs=no 9053 fi 9054 ;; 9055 9056 haiku*) 9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9058 link_all_deplibs=yes 9059 ;; 9060 9061 interix[3-9]*) 9062 hardcode_direct=no 9063 hardcode_shlibpath_var=no 9064 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9065 export_dynamic_flag_spec='${wl}-E' 9066 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9067 # Instead, shared libraries are loaded at an image base (0x10000000 by 9068 # default) and relocated if they conflict, which is a slow very memory 9069 # consuming and fragmenting process. To avoid this, we pick a random, 9070 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9071 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9072 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9073 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' 9074 ;; 9075 9076 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9077 tmp_diet=no 9078 if test "$host_os" = linux-dietlibc; then 9079 case $cc_basename in 9080 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9081 esac 9082 fi 9083 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9084 && test "$tmp_diet" = no 9085 then 9086 tmp_addflag=' $pic_flag' 9087 tmp_sharedflag='-shared' 9088 case $cc_basename,$host_cpu in 9089 pgcc*) # Portland Group C compiler 9090 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' 9091 tmp_addflag=' $pic_flag' 9092 ;; 9093 pgf77* | pgf90* | pgf95* | pgfortran*) 9094 # Portland Group f77 and f90 compilers 9095 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' 9096 tmp_addflag=' $pic_flag -Mnomain' ;; 9097 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9098 tmp_addflag=' -i_dynamic' ;; 9099 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9100 tmp_addflag=' -i_dynamic -nofor_main' ;; 9101 ifc* | ifort*) # Intel Fortran compiler 9102 tmp_addflag=' -nofor_main' ;; 9103 lf95*) # Lahey Fortran 8.1 9104 whole_archive_flag_spec= 9105 tmp_sharedflag='--shared' ;; 9106 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9107 tmp_sharedflag='-qmkshrobj' 9108 tmp_addflag= ;; 9109 nvcc*) # Cuda Compiler Driver 2.2 9110 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' 9111 compiler_needs_object=yes 9112 ;; 9113 esac 9114 case `$CC -V 2>&1 | sed 5q` in 9115 *Sun\ C*) # Sun C 5.9 9116 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' 9117 compiler_needs_object=yes 9118 tmp_sharedflag='-G' ;; 9119 *Sun\ F*) # Sun Fortran 8.3 9120 tmp_sharedflag='-G' ;; 9121 esac 9122 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9123 9124 if test "x$supports_anon_versioning" = xyes; then 9125 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9126 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9127 echo "local: *; };" >> $output_objdir/$libname.ver~ 9128 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9129 fi 9130 9131 case $cc_basename in 9132 xlf* | bgf* | bgxlf* | mpixlf*) 9133 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9134 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9136 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9137 if test "x$supports_anon_versioning" = xyes; then 9138 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9139 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9140 echo "local: *; };" >> $output_objdir/$libname.ver~ 9141 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9142 fi 9143 ;; 9144 esac 9145 else 9146 ld_shlibs=no 9147 fi 9148 ;; 9149 9150 netbsd* | netbsdelf*-gnu) 9151 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9152 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9153 wlarc= 9154 else 9155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9156 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9157 fi 9158 ;; 9159 9160 solaris*) 9161 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9162 ld_shlibs=no 9163 cat <<_LT_EOF 1>&2 9164 9165*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9166*** create shared libraries on Solaris systems. Therefore, libtool 9167*** is disabling shared libraries support. We urge you to upgrade GNU 9168*** binutils to release 2.9.1 or newer. Another option is to modify 9169*** your PATH or compiler configuration so that the native linker is 9170*** used, and then restart. 9171 9172_LT_EOF 9173 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9174 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9175 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9176 else 9177 ld_shlibs=no 9178 fi 9179 ;; 9180 9181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9182 case `$LD -v 2>&1` in 9183 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9184 ld_shlibs=no 9185 cat <<_LT_EOF 1>&2 9186 9187*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9188*** reliably create shared libraries on SCO systems. Therefore, libtool 9189*** is disabling shared libraries support. We urge you to upgrade GNU 9190*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9191*** your PATH or compiler configuration so that the native linker is 9192*** used, and then restart. 9193 9194_LT_EOF 9195 ;; 9196 *) 9197 # For security reasons, it is highly recommended that you always 9198 # use absolute paths for naming shared libraries, and exclude the 9199 # DT_RUNPATH tag from executables and libraries. But doing so 9200 # requires that you compile everything twice, which is a pain. 9201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9205 else 9206 ld_shlibs=no 9207 fi 9208 ;; 9209 esac 9210 ;; 9211 9212 sunos4*) 9213 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9214 wlarc= 9215 hardcode_direct=yes 9216 hardcode_shlibpath_var=no 9217 ;; 9218 9219 *) 9220 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9221 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9222 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9223 else 9224 ld_shlibs=no 9225 fi 9226 ;; 9227 esac 9228 9229 if test "$ld_shlibs" = no; then 9230 runpath_var= 9231 hardcode_libdir_flag_spec= 9232 export_dynamic_flag_spec= 9233 whole_archive_flag_spec= 9234 fi 9235 else 9236 # PORTME fill in a description of your system's linker (not GNU ld) 9237 case $host_os in 9238 aix3*) 9239 allow_undefined_flag=unsupported 9240 always_export_symbols=yes 9241 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' 9242 # Note: this linker hardcodes the directories in LIBPATH if there 9243 # are no directories specified by -L. 9244 hardcode_minus_L=yes 9245 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9246 # Neither direct hardcoding nor static linking is supported with a 9247 # broken collect2. 9248 hardcode_direct=unsupported 9249 fi 9250 ;; 9251 9252 aix[4-9]*) 9253 if test "$host_cpu" = ia64; then 9254 # On IA64, the linker does run time linking by default, so we don't 9255 # have to do anything special. 9256 aix_use_runtimelinking=no 9257 exp_sym_flag='-Bexport' 9258 no_entry_flag="" 9259 else 9260 # If we're using GNU nm, then we don't want the "-C" option. 9261 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9262 # Also, AIX nm treats weak defined symbols like other global 9263 # defined symbols, whereas GNU nm marks them as "W". 9264 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9265 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9266 else 9267 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9268 fi 9269 aix_use_runtimelinking=no 9270 9271 # Test if we are trying to use run time linking or normal 9272 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9273 # need to do runtime linking. 9274 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9275 for ld_flag in $LDFLAGS; do 9276 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9277 aix_use_runtimelinking=yes 9278 break 9279 fi 9280 done 9281 ;; 9282 esac 9283 9284 exp_sym_flag='-bexport' 9285 no_entry_flag='-bnoentry' 9286 fi 9287 9288 # When large executables or shared objects are built, AIX ld can 9289 # have problems creating the table of contents. If linking a library 9290 # or program results in "error TOC overflow" add -mminimal-toc to 9291 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9292 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9293 9294 archive_cmds='' 9295 hardcode_direct=yes 9296 hardcode_direct_absolute=yes 9297 hardcode_libdir_separator=':' 9298 link_all_deplibs=yes 9299 file_list_spec='${wl}-f,' 9300 9301 if test "$GCC" = yes; then 9302 case $host_os in aix4.[012]|aix4.[012].*) 9303 # We only want to do this on AIX 4.2 and lower, the check 9304 # below for broken collect2 doesn't work under 4.3+ 9305 collect2name=`${CC} -print-prog-name=collect2` 9306 if test -f "$collect2name" && 9307 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9308 then 9309 # We have reworked collect2 9310 : 9311 else 9312 # We have old collect2 9313 hardcode_direct=unsupported 9314 # It fails to find uninstalled libraries when the uninstalled 9315 # path is not listed in the libpath. Setting hardcode_minus_L 9316 # to unsupported forces relinking 9317 hardcode_minus_L=yes 9318 hardcode_libdir_flag_spec='-L$libdir' 9319 hardcode_libdir_separator= 9320 fi 9321 ;; 9322 esac 9323 shared_flag='-shared' 9324 if test "$aix_use_runtimelinking" = yes; then 9325 shared_flag="$shared_flag "'${wl}-G' 9326 fi 9327 link_all_deplibs=no 9328 else 9329 # not using gcc 9330 if test "$host_cpu" = ia64; then 9331 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9332 # chokes on -Wl,-G. The following line is correct: 9333 shared_flag='-G' 9334 else 9335 if test "$aix_use_runtimelinking" = yes; then 9336 shared_flag='${wl}-G' 9337 else 9338 shared_flag='${wl}-bM:SRE' 9339 fi 9340 fi 9341 fi 9342 9343 export_dynamic_flag_spec='${wl}-bexpall' 9344 # It seems that -bexpall does not export symbols beginning with 9345 # underscore (_), so it is better to generate a list of symbols to export. 9346 always_export_symbols=yes 9347 if test "$aix_use_runtimelinking" = yes; then 9348 # Warning - without using the other runtime loading flags (-brtl), 9349 # -berok will link without error, but may produce a broken library. 9350 allow_undefined_flag='-berok' 9351 # Determine the default libpath from the value encoded in an 9352 # empty executable. 9353 if test "${lt_cv_aix_libpath+set}" = set; then 9354 aix_libpath=$lt_cv_aix_libpath 9355else 9356 if ${lt_cv_aix_libpath_+:} false; then : 9357 $as_echo_n "(cached) " >&6 9358else 9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9360/* end confdefs.h. */ 9361 9362int 9363main () 9364{ 9365 9366 ; 9367 return 0; 9368} 9369_ACEOF 9370if ac_fn_c_try_link "$LINENO"; then : 9371 9372 lt_aix_libpath_sed=' 9373 /Import File Strings/,/^$/ { 9374 /^0/ { 9375 s/^0 *\([^ ]*\) *$/\1/ 9376 p 9377 } 9378 }' 9379 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9380 # Check for a 64-bit object if we didn't find anything. 9381 if test -z "$lt_cv_aix_libpath_"; then 9382 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9383 fi 9384fi 9385rm -f core conftest.err conftest.$ac_objext \ 9386 conftest$ac_exeext conftest.$ac_ext 9387 if test -z "$lt_cv_aix_libpath_"; then 9388 lt_cv_aix_libpath_="/usr/lib:/lib" 9389 fi 9390 9391fi 9392 9393 aix_libpath=$lt_cv_aix_libpath_ 9394fi 9395 9396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9397 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9398 else 9399 if test "$host_cpu" = ia64; then 9400 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9401 allow_undefined_flag="-z nodefs" 9402 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" 9403 else 9404 # Determine the default libpath from the value encoded in an 9405 # empty executable. 9406 if test "${lt_cv_aix_libpath+set}" = set; then 9407 aix_libpath=$lt_cv_aix_libpath 9408else 9409 if ${lt_cv_aix_libpath_+:} false; then : 9410 $as_echo_n "(cached) " >&6 9411else 9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9413/* end confdefs.h. */ 9414 9415int 9416main () 9417{ 9418 9419 ; 9420 return 0; 9421} 9422_ACEOF 9423if ac_fn_c_try_link "$LINENO"; then : 9424 9425 lt_aix_libpath_sed=' 9426 /Import File Strings/,/^$/ { 9427 /^0/ { 9428 s/^0 *\([^ ]*\) *$/\1/ 9429 p 9430 } 9431 }' 9432 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9433 # Check for a 64-bit object if we didn't find anything. 9434 if test -z "$lt_cv_aix_libpath_"; then 9435 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9436 fi 9437fi 9438rm -f core conftest.err conftest.$ac_objext \ 9439 conftest$ac_exeext conftest.$ac_ext 9440 if test -z "$lt_cv_aix_libpath_"; then 9441 lt_cv_aix_libpath_="/usr/lib:/lib" 9442 fi 9443 9444fi 9445 9446 aix_libpath=$lt_cv_aix_libpath_ 9447fi 9448 9449 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9450 # Warning - without using the other run time loading flags, 9451 # -berok will link without error, but may produce a broken library. 9452 no_undefined_flag=' ${wl}-bernotok' 9453 allow_undefined_flag=' ${wl}-berok' 9454 if test "$with_gnu_ld" = yes; then 9455 # We only use this code for GNU lds that support --whole-archive. 9456 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9457 else 9458 # Exported symbols can be pulled into shared objects from archives 9459 whole_archive_flag_spec='$convenience' 9460 fi 9461 archive_cmds_need_lc=yes 9462 # This is similar to how AIX traditionally builds its shared libraries. 9463 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9464 fi 9465 fi 9466 ;; 9467 9468 amigaos*) 9469 case $host_cpu in 9470 powerpc) 9471 # see comment about AmigaOS4 .so support 9472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9473 archive_expsym_cmds='' 9474 ;; 9475 m68k) 9476 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)' 9477 hardcode_libdir_flag_spec='-L$libdir' 9478 hardcode_minus_L=yes 9479 ;; 9480 esac 9481 ;; 9482 9483 bsdi[45]*) 9484 export_dynamic_flag_spec=-rdynamic 9485 ;; 9486 9487 cygwin* | mingw* | pw32* | cegcc*) 9488 # When not using gcc, we currently assume that we are using 9489 # Microsoft Visual C++. 9490 # hardcode_libdir_flag_spec is actually meaningless, as there is 9491 # no search path for DLLs. 9492 case $cc_basename in 9493 cl*) 9494 # Native MSVC 9495 hardcode_libdir_flag_spec=' ' 9496 allow_undefined_flag=unsupported 9497 always_export_symbols=yes 9498 file_list_spec='@' 9499 # Tell ltmain to make .lib files, not .a files. 9500 libext=lib 9501 # Tell ltmain to make .dll files, not .so files. 9502 shrext_cmds=".dll" 9503 # FIXME: Setting linknames here is a bad hack. 9504 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9505 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9506 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9507 else 9508 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9509 fi~ 9510 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9511 linknames=' 9512 # The linker will not automatically build a static lib if we build a DLL. 9513 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9514 enable_shared_with_static_runtimes=yes 9515 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9516 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9517 # Don't use ranlib 9518 old_postinstall_cmds='chmod 644 $oldlib' 9519 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9520 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9521 case $lt_outputfile in 9522 *.exe|*.EXE) ;; 9523 *) 9524 lt_outputfile="$lt_outputfile.exe" 9525 lt_tool_outputfile="$lt_tool_outputfile.exe" 9526 ;; 9527 esac~ 9528 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9529 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9530 $RM "$lt_outputfile.manifest"; 9531 fi' 9532 ;; 9533 *) 9534 # Assume MSVC wrapper 9535 hardcode_libdir_flag_spec=' ' 9536 allow_undefined_flag=unsupported 9537 # Tell ltmain to make .lib files, not .a files. 9538 libext=lib 9539 # Tell ltmain to make .dll files, not .so files. 9540 shrext_cmds=".dll" 9541 # FIXME: Setting linknames here is a bad hack. 9542 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9543 # The linker will automatically build a .lib file if we build a DLL. 9544 old_archive_from_new_cmds='true' 9545 # FIXME: Should let the user specify the lib program. 9546 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9547 enable_shared_with_static_runtimes=yes 9548 ;; 9549 esac 9550 ;; 9551 9552 darwin* | rhapsody*) 9553 9554 9555 archive_cmds_need_lc=no 9556 hardcode_direct=no 9557 hardcode_automatic=yes 9558 hardcode_shlibpath_var=unsupported 9559 if test "$lt_cv_ld_force_load" = "yes"; then 9560 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\"`' 9561 9562 else 9563 whole_archive_flag_spec='' 9564 fi 9565 link_all_deplibs=yes 9566 allow_undefined_flag="$_lt_dar_allow_undefined" 9567 case $cc_basename in 9568 ifort*) _lt_dar_can_shared=yes ;; 9569 *) _lt_dar_can_shared=$GCC ;; 9570 esac 9571 if test "$_lt_dar_can_shared" = "yes"; then 9572 output_verbose_link_cmd=func_echo_all 9573 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9574 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9575 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}" 9576 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}" 9577 9578 else 9579 ld_shlibs=no 9580 fi 9581 9582 ;; 9583 9584 dgux*) 9585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9586 hardcode_libdir_flag_spec='-L$libdir' 9587 hardcode_shlibpath_var=no 9588 ;; 9589 9590 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9591 # support. Future versions do this automatically, but an explicit c++rt0.o 9592 # does not break anything, and helps significantly (at the cost of a little 9593 # extra space). 9594 freebsd2.2*) 9595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9596 hardcode_libdir_flag_spec='-R$libdir' 9597 hardcode_direct=yes 9598 hardcode_shlibpath_var=no 9599 ;; 9600 9601 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9602 freebsd2.*) 9603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9604 hardcode_direct=yes 9605 hardcode_minus_L=yes 9606 hardcode_shlibpath_var=no 9607 ;; 9608 9609 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9610 freebsd* | dragonfly*) 9611 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9612 hardcode_libdir_flag_spec='-R$libdir' 9613 hardcode_direct=yes 9614 hardcode_shlibpath_var=no 9615 ;; 9616 9617 hpux9*) 9618 if test "$GCC" = yes; then 9619 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9620 else 9621 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9622 fi 9623 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9624 hardcode_libdir_separator=: 9625 hardcode_direct=yes 9626 9627 # hardcode_minus_L: Not really in the search PATH, 9628 # but as the default location of the library. 9629 hardcode_minus_L=yes 9630 export_dynamic_flag_spec='${wl}-E' 9631 ;; 9632 9633 hpux10*) 9634 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9635 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9636 else 9637 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9638 fi 9639 if test "$with_gnu_ld" = no; then 9640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9641 hardcode_libdir_separator=: 9642 hardcode_direct=yes 9643 hardcode_direct_absolute=yes 9644 export_dynamic_flag_spec='${wl}-E' 9645 # hardcode_minus_L: Not really in the search PATH, 9646 # but as the default location of the library. 9647 hardcode_minus_L=yes 9648 fi 9649 ;; 9650 9651 hpux11*) 9652 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9653 case $host_cpu in 9654 hppa*64*) 9655 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9656 ;; 9657 ia64*) 9658 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9659 ;; 9660 *) 9661 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9662 ;; 9663 esac 9664 else 9665 case $host_cpu in 9666 hppa*64*) 9667 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9668 ;; 9669 ia64*) 9670 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9671 ;; 9672 *) 9673 9674 # Older versions of the 11.00 compiler do not understand -b yet 9675 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9677$as_echo_n "checking if $CC understands -b... " >&6; } 9678if ${lt_cv_prog_compiler__b+:} false; then : 9679 $as_echo_n "(cached) " >&6 9680else 9681 lt_cv_prog_compiler__b=no 9682 save_LDFLAGS="$LDFLAGS" 9683 LDFLAGS="$LDFLAGS -b" 9684 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9685 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9686 # The linker can only warn and ignore the option if not recognized 9687 # So say no if there are warnings 9688 if test -s conftest.err; then 9689 # Append any errors to the config.log. 9690 cat conftest.err 1>&5 9691 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9693 if diff conftest.exp conftest.er2 >/dev/null; then 9694 lt_cv_prog_compiler__b=yes 9695 fi 9696 else 9697 lt_cv_prog_compiler__b=yes 9698 fi 9699 fi 9700 $RM -r conftest* 9701 LDFLAGS="$save_LDFLAGS" 9702 9703fi 9704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9705$as_echo "$lt_cv_prog_compiler__b" >&6; } 9706 9707if test x"$lt_cv_prog_compiler__b" = xyes; then 9708 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9709else 9710 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9711fi 9712 9713 ;; 9714 esac 9715 fi 9716 if test "$with_gnu_ld" = no; then 9717 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9718 hardcode_libdir_separator=: 9719 9720 case $host_cpu in 9721 hppa*64*|ia64*) 9722 hardcode_direct=no 9723 hardcode_shlibpath_var=no 9724 ;; 9725 *) 9726 hardcode_direct=yes 9727 hardcode_direct_absolute=yes 9728 export_dynamic_flag_spec='${wl}-E' 9729 9730 # hardcode_minus_L: Not really in the search PATH, 9731 # but as the default location of the library. 9732 hardcode_minus_L=yes 9733 ;; 9734 esac 9735 fi 9736 ;; 9737 9738 irix5* | irix6* | nonstopux*) 9739 if test "$GCC" = yes; then 9740 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' 9741 # Try to use the -exported_symbol ld option, if it does not 9742 # work, assume that -exports_file does not work either and 9743 # implicitly export all symbols. 9744 # This should be the same for all languages, so no per-tag cache variable. 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9746$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9747if ${lt_cv_irix_exported_symbol+:} false; then : 9748 $as_echo_n "(cached) " >&6 9749else 9750 save_LDFLAGS="$LDFLAGS" 9751 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9753/* end confdefs.h. */ 9754int foo (void) { return 0; } 9755_ACEOF 9756if ac_fn_c_try_link "$LINENO"; then : 9757 lt_cv_irix_exported_symbol=yes 9758else 9759 lt_cv_irix_exported_symbol=no 9760fi 9761rm -f core conftest.err conftest.$ac_objext \ 9762 conftest$ac_exeext conftest.$ac_ext 9763 LDFLAGS="$save_LDFLAGS" 9764fi 9765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9766$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9767 if test "$lt_cv_irix_exported_symbol" = yes; then 9768 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' 9769 fi 9770 else 9771 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' 9772 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' 9773 fi 9774 archive_cmds_need_lc='no' 9775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9776 hardcode_libdir_separator=: 9777 inherit_rpath=yes 9778 link_all_deplibs=yes 9779 ;; 9780 9781 netbsd* | netbsdelf*-gnu) 9782 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9784 else 9785 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9786 fi 9787 hardcode_libdir_flag_spec='-R$libdir' 9788 hardcode_direct=yes 9789 hardcode_shlibpath_var=no 9790 ;; 9791 9792 newsos6) 9793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9794 hardcode_direct=yes 9795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9796 hardcode_libdir_separator=: 9797 hardcode_shlibpath_var=no 9798 ;; 9799 9800 *nto* | *qnx*) 9801 ;; 9802 9803 openbsd*) 9804 if test -f /usr/libexec/ld.so; then 9805 hardcode_direct=yes 9806 hardcode_shlibpath_var=no 9807 hardcode_direct_absolute=yes 9808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9810 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9811 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9812 export_dynamic_flag_spec='${wl}-E' 9813 else 9814 case $host_os in 9815 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9817 hardcode_libdir_flag_spec='-R$libdir' 9818 ;; 9819 *) 9820 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9821 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9822 ;; 9823 esac 9824 fi 9825 else 9826 ld_shlibs=no 9827 fi 9828 ;; 9829 9830 os2*) 9831 hardcode_libdir_flag_spec='-L$libdir' 9832 hardcode_minus_L=yes 9833 allow_undefined_flag=unsupported 9834 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9835 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9836 ;; 9837 9838 osf3*) 9839 if test "$GCC" = yes; then 9840 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9841 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' 9842 else 9843 allow_undefined_flag=' -expect_unresolved \*' 9844 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' 9845 fi 9846 archive_cmds_need_lc='no' 9847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9848 hardcode_libdir_separator=: 9849 ;; 9850 9851 osf4* | osf5*) # as osf3* with the addition of -msym flag 9852 if test "$GCC" = yes; then 9853 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9854 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' 9855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9856 else 9857 allow_undefined_flag=' -expect_unresolved \*' 9858 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' 9859 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~ 9860 $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' 9861 9862 # Both c and cxx compiler support -rpath directly 9863 hardcode_libdir_flag_spec='-rpath $libdir' 9864 fi 9865 archive_cmds_need_lc='no' 9866 hardcode_libdir_separator=: 9867 ;; 9868 9869 solaris*) 9870 no_undefined_flag=' -z defs' 9871 if test "$GCC" = yes; then 9872 wlarc='${wl}' 9873 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9874 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9875 $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' 9876 else 9877 case `$CC -V 2>&1` in 9878 *"Compilers 5.0"*) 9879 wlarc='' 9880 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9881 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9883 ;; 9884 *) 9885 wlarc='${wl}' 9886 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9887 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9888 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9889 ;; 9890 esac 9891 fi 9892 hardcode_libdir_flag_spec='-R$libdir' 9893 hardcode_shlibpath_var=no 9894 case $host_os in 9895 solaris2.[0-5] | solaris2.[0-5].*) ;; 9896 *) 9897 # The compiler driver will combine and reorder linker options, 9898 # but understands `-z linker_flag'. GCC discards it without `$wl', 9899 # but is careful enough not to reorder. 9900 # Supported since Solaris 2.6 (maybe 2.5.1?) 9901 if test "$GCC" = yes; then 9902 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9903 else 9904 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9905 fi 9906 ;; 9907 esac 9908 link_all_deplibs=yes 9909 ;; 9910 9911 sunos4*) 9912 if test "x$host_vendor" = xsequent; then 9913 # Use $CC to link under sequent, because it throws in some extra .o 9914 # files that make .init and .fini sections work. 9915 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9916 else 9917 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9918 fi 9919 hardcode_libdir_flag_spec='-L$libdir' 9920 hardcode_direct=yes 9921 hardcode_minus_L=yes 9922 hardcode_shlibpath_var=no 9923 ;; 9924 9925 sysv4) 9926 case $host_vendor in 9927 sni) 9928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9929 hardcode_direct=yes # is this really true??? 9930 ;; 9931 siemens) 9932 ## LD is ld it makes a PLAMLIB 9933 ## CC just makes a GrossModule. 9934 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9935 reload_cmds='$CC -r -o $output$reload_objs' 9936 hardcode_direct=no 9937 ;; 9938 motorola) 9939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9940 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9941 ;; 9942 esac 9943 runpath_var='LD_RUN_PATH' 9944 hardcode_shlibpath_var=no 9945 ;; 9946 9947 sysv4.3*) 9948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9949 hardcode_shlibpath_var=no 9950 export_dynamic_flag_spec='-Bexport' 9951 ;; 9952 9953 sysv4*MP*) 9954 if test -d /usr/nec; then 9955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9956 hardcode_shlibpath_var=no 9957 runpath_var=LD_RUN_PATH 9958 hardcode_runpath_var=yes 9959 ld_shlibs=yes 9960 fi 9961 ;; 9962 9963 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9964 no_undefined_flag='${wl}-z,text' 9965 archive_cmds_need_lc=no 9966 hardcode_shlibpath_var=no 9967 runpath_var='LD_RUN_PATH' 9968 9969 if test "$GCC" = yes; then 9970 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9971 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9972 else 9973 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9974 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9975 fi 9976 ;; 9977 9978 sysv5* | sco3.2v5* | sco5v6*) 9979 # Note: We can NOT use -z defs as we might desire, because we do not 9980 # link with -lc, and that would cause any symbols used from libc to 9981 # always be unresolved, which means just about no library would 9982 # ever link correctly. If we're not using GNU ld we use -z text 9983 # though, which does catch some bad symbols but isn't as heavy-handed 9984 # as -z defs. 9985 no_undefined_flag='${wl}-z,text' 9986 allow_undefined_flag='${wl}-z,nodefs' 9987 archive_cmds_need_lc=no 9988 hardcode_shlibpath_var=no 9989 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9990 hardcode_libdir_separator=':' 9991 link_all_deplibs=yes 9992 export_dynamic_flag_spec='${wl}-Bexport' 9993 runpath_var='LD_RUN_PATH' 9994 9995 if test "$GCC" = yes; then 9996 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9997 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9998 else 9999 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10000 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10001 fi 10002 ;; 10003 10004 uts4*) 10005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10006 hardcode_libdir_flag_spec='-L$libdir' 10007 hardcode_shlibpath_var=no 10008 ;; 10009 10010 *) 10011 ld_shlibs=no 10012 ;; 10013 esac 10014 10015 if test x$host_vendor = xsni; then 10016 case $host in 10017 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10018 export_dynamic_flag_spec='${wl}-Blargedynsym' 10019 ;; 10020 esac 10021 fi 10022 fi 10023 10024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10025$as_echo "$ld_shlibs" >&6; } 10026test "$ld_shlibs" = no && can_build_shared=no 10027 10028with_gnu_ld=$with_gnu_ld 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044# 10045# Do we need to explicitly link libc? 10046# 10047case "x$archive_cmds_need_lc" in 10048x|xyes) 10049 # Assume -lc should be added 10050 archive_cmds_need_lc=yes 10051 10052 if test "$enable_shared" = yes && test "$GCC" = yes; then 10053 case $archive_cmds in 10054 *'~'*) 10055 # FIXME: we may have to deal with multi-command sequences. 10056 ;; 10057 '$CC '*) 10058 # Test whether the compiler implicitly links with -lc since on some 10059 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10060 # to ld, don't add -lc before -lgcc. 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10062$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10063if ${lt_cv_archive_cmds_need_lc+:} false; then : 10064 $as_echo_n "(cached) " >&6 10065else 10066 $RM conftest* 10067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10068 10069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10070 (eval $ac_compile) 2>&5 10071 ac_status=$? 10072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10073 test $ac_status = 0; } 2>conftest.err; then 10074 soname=conftest 10075 lib=conftest 10076 libobjs=conftest.$ac_objext 10077 deplibs= 10078 wl=$lt_prog_compiler_wl 10079 pic_flag=$lt_prog_compiler_pic 10080 compiler_flags=-v 10081 linker_flags=-v 10082 verstring= 10083 output_objdir=. 10084 libname=conftest 10085 lt_save_allow_undefined_flag=$allow_undefined_flag 10086 allow_undefined_flag= 10087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10088 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10089 ac_status=$? 10090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10091 test $ac_status = 0; } 10092 then 10093 lt_cv_archive_cmds_need_lc=no 10094 else 10095 lt_cv_archive_cmds_need_lc=yes 10096 fi 10097 allow_undefined_flag=$lt_save_allow_undefined_flag 10098 else 10099 cat conftest.err 1>&5 10100 fi 10101 $RM conftest* 10102 10103fi 10104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10105$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10106 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10107 ;; 10108 esac 10109 fi 10110 ;; 10111esac 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10265$as_echo_n "checking dynamic linker characteristics... " >&6; } 10266 10267if test "$GCC" = yes; then 10268 case $host_os in 10269 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10270 *) lt_awk_arg="/^libraries:/" ;; 10271 esac 10272 case $host_os in 10273 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10274 *) lt_sed_strip_eq="s,=/,/,g" ;; 10275 esac 10276 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10277 case $lt_search_path_spec in 10278 *\;*) 10279 # if the path contains ";" then we assume it to be the separator 10280 # otherwise default to the standard path separator (i.e. ":") - it is 10281 # assumed that no part of a normal pathname contains ";" but that should 10282 # okay in the real world where ";" in dirpaths is itself problematic. 10283 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10284 ;; 10285 *) 10286 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10287 ;; 10288 esac 10289 # Ok, now we have the path, separated by spaces, we can step through it 10290 # and add multilib dir if necessary. 10291 lt_tmp_lt_search_path_spec= 10292 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10293 for lt_sys_path in $lt_search_path_spec; do 10294 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10296 else 10297 test -d "$lt_sys_path" && \ 10298 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10299 fi 10300 done 10301 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10302BEGIN {RS=" "; FS="/|\n";} { 10303 lt_foo=""; 10304 lt_count=0; 10305 for (lt_i = NF; lt_i > 0; lt_i--) { 10306 if ($lt_i != "" && $lt_i != ".") { 10307 if ($lt_i == "..") { 10308 lt_count++; 10309 } else { 10310 if (lt_count == 0) { 10311 lt_foo="/" $lt_i lt_foo; 10312 } else { 10313 lt_count--; 10314 } 10315 } 10316 } 10317 } 10318 if (lt_foo != "") { lt_freq[lt_foo]++; } 10319 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10320}'` 10321 # AWK program above erroneously prepends '/' to C:/dos/paths 10322 # for these hosts. 10323 case $host_os in 10324 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10325 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10326 esac 10327 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10328else 10329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10330fi 10331library_names_spec= 10332libname_spec='lib$name' 10333soname_spec= 10334shrext_cmds=".so" 10335postinstall_cmds= 10336postuninstall_cmds= 10337finish_cmds= 10338finish_eval= 10339shlibpath_var= 10340shlibpath_overrides_runpath=unknown 10341version_type=none 10342dynamic_linker="$host_os ld.so" 10343sys_lib_dlsearch_path_spec="/lib /usr/lib" 10344need_lib_prefix=unknown 10345hardcode_into_libs=no 10346 10347# when you set need_version to no, make sure it does not cause -set_version 10348# flags to be left without arguments 10349need_version=unknown 10350 10351case $host_os in 10352aix3*) 10353 version_type=linux # correct to gnu/linux during the next big refactor 10354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10355 shlibpath_var=LIBPATH 10356 10357 # AIX 3 has no versioning support, so we append a major version to the name. 10358 soname_spec='${libname}${release}${shared_ext}$major' 10359 ;; 10360 10361aix[4-9]*) 10362 version_type=linux # correct to gnu/linux during the next big refactor 10363 need_lib_prefix=no 10364 need_version=no 10365 hardcode_into_libs=yes 10366 if test "$host_cpu" = ia64; then 10367 # AIX 5 supports IA64 10368 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10369 shlibpath_var=LD_LIBRARY_PATH 10370 else 10371 # With GCC up to 2.95.x, collect2 would create an import file 10372 # for dependence libraries. The import file would start with 10373 # the line `#! .'. This would cause the generated library to 10374 # depend on `.', always an invalid library. This was fixed in 10375 # development snapshots of GCC prior to 3.0. 10376 case $host_os in 10377 aix4 | aix4.[01] | aix4.[01].*) 10378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10379 echo ' yes ' 10380 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10381 : 10382 else 10383 can_build_shared=no 10384 fi 10385 ;; 10386 esac 10387 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10388 # soname into executable. Probably we can add versioning support to 10389 # collect2, so additional links can be useful in future. 10390 if test "$aix_use_runtimelinking" = yes; then 10391 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10392 # instead of lib<name>.a to let people know that these are not 10393 # typical AIX shared libraries. 10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10395 else 10396 # We preserve .a as extension for shared libraries through AIX4.2 10397 # and later when we are not doing run time linking. 10398 library_names_spec='${libname}${release}.a $libname.a' 10399 soname_spec='${libname}${release}${shared_ext}$major' 10400 fi 10401 shlibpath_var=LIBPATH 10402 fi 10403 ;; 10404 10405amigaos*) 10406 case $host_cpu in 10407 powerpc) 10408 # Since July 2007 AmigaOS4 officially supports .so libraries. 10409 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10411 ;; 10412 m68k) 10413 library_names_spec='$libname.ixlibrary $libname.a' 10414 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10415 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10416 ;; 10417 esac 10418 ;; 10419 10420beos*) 10421 library_names_spec='${libname}${shared_ext}' 10422 dynamic_linker="$host_os ld.so" 10423 shlibpath_var=LIBRARY_PATH 10424 ;; 10425 10426bsdi[45]*) 10427 version_type=linux # correct to gnu/linux during the next big refactor 10428 need_version=no 10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10430 soname_spec='${libname}${release}${shared_ext}$major' 10431 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10432 shlibpath_var=LD_LIBRARY_PATH 10433 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10434 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10435 # the default ld.so.conf also contains /usr/contrib/lib and 10436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10437 # libtool to hard-code these into programs 10438 ;; 10439 10440cygwin* | mingw* | pw32* | cegcc*) 10441 version_type=windows 10442 shrext_cmds=".dll" 10443 need_version=no 10444 need_lib_prefix=no 10445 10446 case $GCC,$cc_basename in 10447 yes,*) 10448 # gcc 10449 library_names_spec='$libname.dll.a' 10450 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10451 postinstall_cmds='base_file=`basename \${file}`~ 10452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10453 dldir=$destdir/`dirname \$dlpath`~ 10454 test -d \$dldir || mkdir -p \$dldir~ 10455 $install_prog $dir/$dlname \$dldir/$dlname~ 10456 chmod a+x \$dldir/$dlname~ 10457 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10458 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10459 fi' 10460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10461 dlpath=$dir/\$dldll~ 10462 $RM \$dlpath' 10463 shlibpath_overrides_runpath=yes 10464 10465 case $host_os in 10466 cygwin*) 10467 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10468 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10469 10470 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10471 ;; 10472 mingw* | cegcc*) 10473 # MinGW DLLs use traditional 'lib' prefix 10474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10475 ;; 10476 pw32*) 10477 # pw32 DLLs use 'pw' prefix rather than 'lib' 10478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10479 ;; 10480 esac 10481 dynamic_linker='Win32 ld.exe' 10482 ;; 10483 10484 *,cl*) 10485 # Native MSVC 10486 libname_spec='$name' 10487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10488 library_names_spec='${libname}.dll.lib' 10489 10490 case $build_os in 10491 mingw*) 10492 sys_lib_search_path_spec= 10493 lt_save_ifs=$IFS 10494 IFS=';' 10495 for lt_path in $LIB 10496 do 10497 IFS=$lt_save_ifs 10498 # Let DOS variable expansion print the short 8.3 style file name. 10499 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10500 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10501 done 10502 IFS=$lt_save_ifs 10503 # Convert to MSYS style. 10504 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10505 ;; 10506 cygwin*) 10507 # Convert to unix form, then to dos form, then back to unix form 10508 # but this time dos style (no spaces!) so that the unix form looks 10509 # like /cygdrive/c/PROGRA~1:/cygdr... 10510 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10511 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10512 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10513 ;; 10514 *) 10515 sys_lib_search_path_spec="$LIB" 10516 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10517 # It is most probably a Windows format PATH. 10518 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10519 else 10520 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10521 fi 10522 # FIXME: find the short name or the path components, as spaces are 10523 # common. (e.g. "Program Files" -> "PROGRA~1") 10524 ;; 10525 esac 10526 10527 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10528 postinstall_cmds='base_file=`basename \${file}`~ 10529 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10530 dldir=$destdir/`dirname \$dlpath`~ 10531 test -d \$dldir || mkdir -p \$dldir~ 10532 $install_prog $dir/$dlname \$dldir/$dlname' 10533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10534 dlpath=$dir/\$dldll~ 10535 $RM \$dlpath' 10536 shlibpath_overrides_runpath=yes 10537 dynamic_linker='Win32 link.exe' 10538 ;; 10539 10540 *) 10541 # Assume MSVC wrapper 10542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10543 dynamic_linker='Win32 ld.exe' 10544 ;; 10545 esac 10546 # FIXME: first we should search . and the directory the executable is in 10547 shlibpath_var=PATH 10548 ;; 10549 10550darwin* | rhapsody*) 10551 dynamic_linker="$host_os dyld" 10552 version_type=darwin 10553 need_lib_prefix=no 10554 need_version=no 10555 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10556 soname_spec='${libname}${release}${major}$shared_ext' 10557 shlibpath_overrides_runpath=yes 10558 shlibpath_var=DYLD_LIBRARY_PATH 10559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10560 10561 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10562 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10563 ;; 10564 10565dgux*) 10566 version_type=linux # correct to gnu/linux during the next big refactor 10567 need_lib_prefix=no 10568 need_version=no 10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10570 soname_spec='${libname}${release}${shared_ext}$major' 10571 shlibpath_var=LD_LIBRARY_PATH 10572 ;; 10573 10574freebsd* | dragonfly*) 10575 # DragonFly does not have aout. When/if they implement a new 10576 # versioning mechanism, adjust this. 10577 if test -x /usr/bin/objformat; then 10578 objformat=`/usr/bin/objformat` 10579 else 10580 case $host_os in 10581 freebsd[23].*) objformat=aout ;; 10582 *) objformat=elf ;; 10583 esac 10584 fi 10585 version_type=freebsd-$objformat 10586 case $version_type in 10587 freebsd-elf*) 10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10589 need_version=no 10590 need_lib_prefix=no 10591 ;; 10592 freebsd-*) 10593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10594 need_version=yes 10595 ;; 10596 esac 10597 shlibpath_var=LD_LIBRARY_PATH 10598 case $host_os in 10599 freebsd2.*) 10600 shlibpath_overrides_runpath=yes 10601 ;; 10602 freebsd3.[01]* | freebsdelf3.[01]*) 10603 shlibpath_overrides_runpath=yes 10604 hardcode_into_libs=yes 10605 ;; 10606 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10607 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10608 shlibpath_overrides_runpath=no 10609 hardcode_into_libs=yes 10610 ;; 10611 *) # from 4.6 on, and DragonFly 10612 shlibpath_overrides_runpath=yes 10613 hardcode_into_libs=yes 10614 ;; 10615 esac 10616 ;; 10617 10618gnu*) 10619 version_type=linux # correct to gnu/linux during the next big refactor 10620 need_lib_prefix=no 10621 need_version=no 10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10623 soname_spec='${libname}${release}${shared_ext}$major' 10624 shlibpath_var=LD_LIBRARY_PATH 10625 shlibpath_overrides_runpath=no 10626 hardcode_into_libs=yes 10627 ;; 10628 10629haiku*) 10630 version_type=linux # correct to gnu/linux during the next big refactor 10631 need_lib_prefix=no 10632 need_version=no 10633 dynamic_linker="$host_os runtime_loader" 10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10635 soname_spec='${libname}${release}${shared_ext}$major' 10636 shlibpath_var=LIBRARY_PATH 10637 shlibpath_overrides_runpath=yes 10638 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10639 hardcode_into_libs=yes 10640 ;; 10641 10642hpux9* | hpux10* | hpux11*) 10643 # Give a soname corresponding to the major version so that dld.sl refuses to 10644 # link against other versions. 10645 version_type=sunos 10646 need_lib_prefix=no 10647 need_version=no 10648 case $host_cpu in 10649 ia64*) 10650 shrext_cmds='.so' 10651 hardcode_into_libs=yes 10652 dynamic_linker="$host_os dld.so" 10653 shlibpath_var=LD_LIBRARY_PATH 10654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10656 soname_spec='${libname}${release}${shared_ext}$major' 10657 if test "X$HPUX_IA64_MODE" = X32; then 10658 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10659 else 10660 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10661 fi 10662 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10663 ;; 10664 hppa*64*) 10665 shrext_cmds='.sl' 10666 hardcode_into_libs=yes 10667 dynamic_linker="$host_os dld.sl" 10668 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10671 soname_spec='${libname}${release}${shared_ext}$major' 10672 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10674 ;; 10675 *) 10676 shrext_cmds='.sl' 10677 dynamic_linker="$host_os dld.sl" 10678 shlibpath_var=SHLIB_PATH 10679 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10681 soname_spec='${libname}${release}${shared_ext}$major' 10682 ;; 10683 esac 10684 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10685 postinstall_cmds='chmod 555 $lib' 10686 # or fails outright, so override atomically: 10687 install_override_mode=555 10688 ;; 10689 10690interix[3-9]*) 10691 version_type=linux # correct to gnu/linux during the next big refactor 10692 need_lib_prefix=no 10693 need_version=no 10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10695 soname_spec='${libname}${release}${shared_ext}$major' 10696 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10697 shlibpath_var=LD_LIBRARY_PATH 10698 shlibpath_overrides_runpath=no 10699 hardcode_into_libs=yes 10700 ;; 10701 10702irix5* | irix6* | nonstopux*) 10703 case $host_os in 10704 nonstopux*) version_type=nonstopux ;; 10705 *) 10706 if test "$lt_cv_prog_gnu_ld" = yes; then 10707 version_type=linux # correct to gnu/linux during the next big refactor 10708 else 10709 version_type=irix 10710 fi ;; 10711 esac 10712 need_lib_prefix=no 10713 need_version=no 10714 soname_spec='${libname}${release}${shared_ext}$major' 10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10716 case $host_os in 10717 irix5* | nonstopux*) 10718 libsuff= shlibsuff= 10719 ;; 10720 *) 10721 case $LD in # libtool.m4 will add one of these switches to LD 10722 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10723 libsuff= shlibsuff= libmagic=32-bit;; 10724 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10725 libsuff=32 shlibsuff=N32 libmagic=N32;; 10726 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10727 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10728 *) libsuff= shlibsuff= libmagic=never-match;; 10729 esac 10730 ;; 10731 esac 10732 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10733 shlibpath_overrides_runpath=no 10734 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10735 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10736 hardcode_into_libs=yes 10737 ;; 10738 10739# No shared lib support for Linux oldld, aout, or coff. 10740linux*oldld* | linux*aout* | linux*coff*) 10741 dynamic_linker=no 10742 ;; 10743 10744# This must be glibc/ELF. 10745linux* | k*bsd*-gnu | kopensolaris*-gnu) 10746 version_type=linux # correct to gnu/linux during the next big refactor 10747 need_lib_prefix=no 10748 need_version=no 10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10750 soname_spec='${libname}${release}${shared_ext}$major' 10751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10752 shlibpath_var=LD_LIBRARY_PATH 10753 shlibpath_overrides_runpath=no 10754 10755 # Some binutils ld are patched to set DT_RUNPATH 10756 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10757 $as_echo_n "(cached) " >&6 10758else 10759 lt_cv_shlibpath_overrides_runpath=no 10760 save_LDFLAGS=$LDFLAGS 10761 save_libdir=$libdir 10762 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10763 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10765/* end confdefs.h. */ 10766 10767int 10768main () 10769{ 10770 10771 ; 10772 return 0; 10773} 10774_ACEOF 10775if ac_fn_c_try_link "$LINENO"; then : 10776 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10777 lt_cv_shlibpath_overrides_runpath=yes 10778fi 10779fi 10780rm -f core conftest.err conftest.$ac_objext \ 10781 conftest$ac_exeext conftest.$ac_ext 10782 LDFLAGS=$save_LDFLAGS 10783 libdir=$save_libdir 10784 10785fi 10786 10787 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10788 10789 # This implies no fast_install, which is unacceptable. 10790 # Some rework will be needed to allow for fast_install 10791 # before this can be enabled. 10792 hardcode_into_libs=yes 10793 10794 # Append ld.so.conf contents to the search path 10795 if test -f /etc/ld.so.conf; then 10796 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' ' '` 10797 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10798 fi 10799 10800 # We used to test for /lib/ld.so.1 and disable shared libraries on 10801 # powerpc, because MkLinux only supported shared libraries with the 10802 # GNU dynamic linker. Since this was broken with cross compilers, 10803 # most powerpc-linux boxes support dynamic linking these days and 10804 # people can always --disable-shared, the test was removed, and we 10805 # assume the GNU/Linux dynamic linker is in use. 10806 dynamic_linker='GNU/Linux ld.so' 10807 ;; 10808 10809netbsdelf*-gnu) 10810 version_type=linux 10811 need_lib_prefix=no 10812 need_version=no 10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10814 soname_spec='${libname}${release}${shared_ext}$major' 10815 shlibpath_var=LD_LIBRARY_PATH 10816 shlibpath_overrides_runpath=no 10817 hardcode_into_libs=yes 10818 dynamic_linker='NetBSD ld.elf_so' 10819 ;; 10820 10821netbsd*) 10822 version_type=sunos 10823 need_lib_prefix=no 10824 need_version=no 10825 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10828 dynamic_linker='NetBSD (a.out) ld.so' 10829 else 10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10831 soname_spec='${libname}${release}${shared_ext}$major' 10832 dynamic_linker='NetBSD ld.elf_so' 10833 fi 10834 shlibpath_var=LD_LIBRARY_PATH 10835 shlibpath_overrides_runpath=yes 10836 hardcode_into_libs=yes 10837 ;; 10838 10839newsos6) 10840 version_type=linux # correct to gnu/linux during the next big refactor 10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10842 shlibpath_var=LD_LIBRARY_PATH 10843 shlibpath_overrides_runpath=yes 10844 ;; 10845 10846*nto* | *qnx*) 10847 version_type=qnx 10848 need_lib_prefix=no 10849 need_version=no 10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10851 soname_spec='${libname}${release}${shared_ext}$major' 10852 shlibpath_var=LD_LIBRARY_PATH 10853 shlibpath_overrides_runpath=no 10854 hardcode_into_libs=yes 10855 dynamic_linker='ldqnx.so' 10856 ;; 10857 10858openbsd*) 10859 version_type=sunos 10860 sys_lib_dlsearch_path_spec="/usr/lib" 10861 need_lib_prefix=no 10862 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10863 case $host_os in 10864 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10865 *) need_version=no ;; 10866 esac 10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10869 shlibpath_var=LD_LIBRARY_PATH 10870 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10871 case $host_os in 10872 openbsd2.[89] | openbsd2.[89].*) 10873 shlibpath_overrides_runpath=no 10874 ;; 10875 *) 10876 shlibpath_overrides_runpath=yes 10877 ;; 10878 esac 10879 else 10880 shlibpath_overrides_runpath=yes 10881 fi 10882 ;; 10883 10884os2*) 10885 libname_spec='$name' 10886 shrext_cmds=".dll" 10887 need_lib_prefix=no 10888 library_names_spec='$libname${shared_ext} $libname.a' 10889 dynamic_linker='OS/2 ld.exe' 10890 shlibpath_var=LIBPATH 10891 ;; 10892 10893osf3* | osf4* | osf5*) 10894 version_type=osf 10895 need_lib_prefix=no 10896 need_version=no 10897 soname_spec='${libname}${release}${shared_ext}$major' 10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10899 shlibpath_var=LD_LIBRARY_PATH 10900 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10901 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10902 ;; 10903 10904rdos*) 10905 dynamic_linker=no 10906 ;; 10907 10908solaris*) 10909 version_type=linux # correct to gnu/linux during the next big refactor 10910 need_lib_prefix=no 10911 need_version=no 10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10913 soname_spec='${libname}${release}${shared_ext}$major' 10914 shlibpath_var=LD_LIBRARY_PATH 10915 shlibpath_overrides_runpath=yes 10916 hardcode_into_libs=yes 10917 # ldd complains unless libraries are executable 10918 postinstall_cmds='chmod +x $lib' 10919 ;; 10920 10921sunos4*) 10922 version_type=sunos 10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10924 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10925 shlibpath_var=LD_LIBRARY_PATH 10926 shlibpath_overrides_runpath=yes 10927 if test "$with_gnu_ld" = yes; then 10928 need_lib_prefix=no 10929 fi 10930 need_version=yes 10931 ;; 10932 10933sysv4 | sysv4.3*) 10934 version_type=linux # correct to gnu/linux during the next big refactor 10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10936 soname_spec='${libname}${release}${shared_ext}$major' 10937 shlibpath_var=LD_LIBRARY_PATH 10938 case $host_vendor in 10939 sni) 10940 shlibpath_overrides_runpath=no 10941 need_lib_prefix=no 10942 runpath_var=LD_RUN_PATH 10943 ;; 10944 siemens) 10945 need_lib_prefix=no 10946 ;; 10947 motorola) 10948 need_lib_prefix=no 10949 need_version=no 10950 shlibpath_overrides_runpath=no 10951 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10952 ;; 10953 esac 10954 ;; 10955 10956sysv4*MP*) 10957 if test -d /usr/nec ;then 10958 version_type=linux # correct to gnu/linux during the next big refactor 10959 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10960 soname_spec='$libname${shared_ext}.$major' 10961 shlibpath_var=LD_LIBRARY_PATH 10962 fi 10963 ;; 10964 10965sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10966 version_type=freebsd-elf 10967 need_lib_prefix=no 10968 need_version=no 10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10970 soname_spec='${libname}${release}${shared_ext}$major' 10971 shlibpath_var=LD_LIBRARY_PATH 10972 shlibpath_overrides_runpath=yes 10973 hardcode_into_libs=yes 10974 if test "$with_gnu_ld" = yes; then 10975 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10976 else 10977 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10978 case $host_os in 10979 sco3.2v5*) 10980 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10981 ;; 10982 esac 10983 fi 10984 sys_lib_dlsearch_path_spec='/usr/lib' 10985 ;; 10986 10987tpf*) 10988 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10989 version_type=linux # correct to gnu/linux during the next big refactor 10990 need_lib_prefix=no 10991 need_version=no 10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10993 shlibpath_var=LD_LIBRARY_PATH 10994 shlibpath_overrides_runpath=no 10995 hardcode_into_libs=yes 10996 ;; 10997 10998uts4*) 10999 version_type=linux # correct to gnu/linux during the next big refactor 11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11001 soname_spec='${libname}${release}${shared_ext}$major' 11002 shlibpath_var=LD_LIBRARY_PATH 11003 ;; 11004 11005*) 11006 dynamic_linker=no 11007 ;; 11008esac 11009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11010$as_echo "$dynamic_linker" >&6; } 11011test "$dynamic_linker" = no && can_build_shared=no 11012 11013variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11014if test "$GCC" = yes; then 11015 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11016fi 11017 11018if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11019 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11020fi 11021if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11022 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11023fi 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11117$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11118hardcode_action= 11119if test -n "$hardcode_libdir_flag_spec" || 11120 test -n "$runpath_var" || 11121 test "X$hardcode_automatic" = "Xyes" ; then 11122 11123 # We can hardcode non-existent directories. 11124 if test "$hardcode_direct" != no && 11125 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11126 # have to relink, otherwise we might link with an installed library 11127 # when we should be linking with a yet-to-be-installed one 11128 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11129 test "$hardcode_minus_L" != no; then 11130 # Linking always hardcodes the temporary library directory. 11131 hardcode_action=relink 11132 else 11133 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11134 hardcode_action=immediate 11135 fi 11136else 11137 # We cannot hardcode anything, or else we can only hardcode existing 11138 # directories. 11139 hardcode_action=unsupported 11140fi 11141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11142$as_echo "$hardcode_action" >&6; } 11143 11144if test "$hardcode_action" = relink || 11145 test "$inherit_rpath" = yes; then 11146 # Fast installation is not supported 11147 enable_fast_install=no 11148elif test "$shlibpath_overrides_runpath" = yes || 11149 test "$enable_shared" = no; then 11150 # Fast installation is not necessary 11151 enable_fast_install=needless 11152fi 11153 11154 11155 11156 11157 11158 11159 if test "x$enable_dlopen" != xyes; then 11160 enable_dlopen=unknown 11161 enable_dlopen_self=unknown 11162 enable_dlopen_self_static=unknown 11163else 11164 lt_cv_dlopen=no 11165 lt_cv_dlopen_libs= 11166 11167 case $host_os in 11168 beos*) 11169 lt_cv_dlopen="load_add_on" 11170 lt_cv_dlopen_libs= 11171 lt_cv_dlopen_self=yes 11172 ;; 11173 11174 mingw* | pw32* | cegcc*) 11175 lt_cv_dlopen="LoadLibrary" 11176 lt_cv_dlopen_libs= 11177 ;; 11178 11179 cygwin*) 11180 lt_cv_dlopen="dlopen" 11181 lt_cv_dlopen_libs= 11182 ;; 11183 11184 darwin*) 11185 # if libdl is installed we need to link against it 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11187$as_echo_n "checking for dlopen in -ldl... " >&6; } 11188if ${ac_cv_lib_dl_dlopen+:} false; then : 11189 $as_echo_n "(cached) " >&6 11190else 11191 ac_check_lib_save_LIBS=$LIBS 11192LIBS="-ldl $LIBS" 11193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11194/* end confdefs.h. */ 11195 11196/* Override any GCC internal prototype to avoid an error. 11197 Use char because int might match the return type of a GCC 11198 builtin and then its argument prototype would still apply. */ 11199#ifdef __cplusplus 11200extern "C" 11201#endif 11202char dlopen (); 11203int 11204main () 11205{ 11206return dlopen (); 11207 ; 11208 return 0; 11209} 11210_ACEOF 11211if ac_fn_c_try_link "$LINENO"; then : 11212 ac_cv_lib_dl_dlopen=yes 11213else 11214 ac_cv_lib_dl_dlopen=no 11215fi 11216rm -f core conftest.err conftest.$ac_objext \ 11217 conftest$ac_exeext conftest.$ac_ext 11218LIBS=$ac_check_lib_save_LIBS 11219fi 11220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11221$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11222if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11224else 11225 11226 lt_cv_dlopen="dyld" 11227 lt_cv_dlopen_libs= 11228 lt_cv_dlopen_self=yes 11229 11230fi 11231 11232 ;; 11233 11234 *) 11235 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11236if test "x$ac_cv_func_shl_load" = xyes; then : 11237 lt_cv_dlopen="shl_load" 11238else 11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11240$as_echo_n "checking for shl_load in -ldld... " >&6; } 11241if ${ac_cv_lib_dld_shl_load+:} false; then : 11242 $as_echo_n "(cached) " >&6 11243else 11244 ac_check_lib_save_LIBS=$LIBS 11245LIBS="-ldld $LIBS" 11246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11247/* end confdefs.h. */ 11248 11249/* Override any GCC internal prototype to avoid an error. 11250 Use char because int might match the return type of a GCC 11251 builtin and then its argument prototype would still apply. */ 11252#ifdef __cplusplus 11253extern "C" 11254#endif 11255char shl_load (); 11256int 11257main () 11258{ 11259return shl_load (); 11260 ; 11261 return 0; 11262} 11263_ACEOF 11264if ac_fn_c_try_link "$LINENO"; then : 11265 ac_cv_lib_dld_shl_load=yes 11266else 11267 ac_cv_lib_dld_shl_load=no 11268fi 11269rm -f core conftest.err conftest.$ac_objext \ 11270 conftest$ac_exeext conftest.$ac_ext 11271LIBS=$ac_check_lib_save_LIBS 11272fi 11273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11274$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11275if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11276 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11277else 11278 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11279if test "x$ac_cv_func_dlopen" = xyes; then : 11280 lt_cv_dlopen="dlopen" 11281else 11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11283$as_echo_n "checking for dlopen in -ldl... " >&6; } 11284if ${ac_cv_lib_dl_dlopen+:} false; then : 11285 $as_echo_n "(cached) " >&6 11286else 11287 ac_check_lib_save_LIBS=$LIBS 11288LIBS="-ldl $LIBS" 11289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11290/* end confdefs.h. */ 11291 11292/* Override any GCC internal prototype to avoid an error. 11293 Use char because int might match the return type of a GCC 11294 builtin and then its argument prototype would still apply. */ 11295#ifdef __cplusplus 11296extern "C" 11297#endif 11298char dlopen (); 11299int 11300main () 11301{ 11302return dlopen (); 11303 ; 11304 return 0; 11305} 11306_ACEOF 11307if ac_fn_c_try_link "$LINENO"; then : 11308 ac_cv_lib_dl_dlopen=yes 11309else 11310 ac_cv_lib_dl_dlopen=no 11311fi 11312rm -f core conftest.err conftest.$ac_objext \ 11313 conftest$ac_exeext conftest.$ac_ext 11314LIBS=$ac_check_lib_save_LIBS 11315fi 11316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11317$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11318if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11320else 11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11322$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11323if ${ac_cv_lib_svld_dlopen+:} false; then : 11324 $as_echo_n "(cached) " >&6 11325else 11326 ac_check_lib_save_LIBS=$LIBS 11327LIBS="-lsvld $LIBS" 11328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11329/* end confdefs.h. */ 11330 11331/* Override any GCC internal prototype to avoid an error. 11332 Use char because int might match the return type of a GCC 11333 builtin and then its argument prototype would still apply. */ 11334#ifdef __cplusplus 11335extern "C" 11336#endif 11337char dlopen (); 11338int 11339main () 11340{ 11341return dlopen (); 11342 ; 11343 return 0; 11344} 11345_ACEOF 11346if ac_fn_c_try_link "$LINENO"; then : 11347 ac_cv_lib_svld_dlopen=yes 11348else 11349 ac_cv_lib_svld_dlopen=no 11350fi 11351rm -f core conftest.err conftest.$ac_objext \ 11352 conftest$ac_exeext conftest.$ac_ext 11353LIBS=$ac_check_lib_save_LIBS 11354fi 11355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11356$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11357if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11358 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11359else 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11361$as_echo_n "checking for dld_link in -ldld... " >&6; } 11362if ${ac_cv_lib_dld_dld_link+:} false; then : 11363 $as_echo_n "(cached) " >&6 11364else 11365 ac_check_lib_save_LIBS=$LIBS 11366LIBS="-ldld $LIBS" 11367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11368/* end confdefs.h. */ 11369 11370/* Override any GCC internal prototype to avoid an error. 11371 Use char because int might match the return type of a GCC 11372 builtin and then its argument prototype would still apply. */ 11373#ifdef __cplusplus 11374extern "C" 11375#endif 11376char dld_link (); 11377int 11378main () 11379{ 11380return dld_link (); 11381 ; 11382 return 0; 11383} 11384_ACEOF 11385if ac_fn_c_try_link "$LINENO"; then : 11386 ac_cv_lib_dld_dld_link=yes 11387else 11388 ac_cv_lib_dld_dld_link=no 11389fi 11390rm -f core conftest.err conftest.$ac_objext \ 11391 conftest$ac_exeext conftest.$ac_ext 11392LIBS=$ac_check_lib_save_LIBS 11393fi 11394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11395$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11396if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11397 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11398fi 11399 11400 11401fi 11402 11403 11404fi 11405 11406 11407fi 11408 11409 11410fi 11411 11412 11413fi 11414 11415 ;; 11416 esac 11417 11418 if test "x$lt_cv_dlopen" != xno; then 11419 enable_dlopen=yes 11420 else 11421 enable_dlopen=no 11422 fi 11423 11424 case $lt_cv_dlopen in 11425 dlopen) 11426 save_CPPFLAGS="$CPPFLAGS" 11427 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11428 11429 save_LDFLAGS="$LDFLAGS" 11430 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11431 11432 save_LIBS="$LIBS" 11433 LIBS="$lt_cv_dlopen_libs $LIBS" 11434 11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11436$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11437if ${lt_cv_dlopen_self+:} false; then : 11438 $as_echo_n "(cached) " >&6 11439else 11440 if test "$cross_compiling" = yes; then : 11441 lt_cv_dlopen_self=cross 11442else 11443 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11444 lt_status=$lt_dlunknown 11445 cat > conftest.$ac_ext <<_LT_EOF 11446#line $LINENO "configure" 11447#include "confdefs.h" 11448 11449#if HAVE_DLFCN_H 11450#include <dlfcn.h> 11451#endif 11452 11453#include <stdio.h> 11454 11455#ifdef RTLD_GLOBAL 11456# define LT_DLGLOBAL RTLD_GLOBAL 11457#else 11458# ifdef DL_GLOBAL 11459# define LT_DLGLOBAL DL_GLOBAL 11460# else 11461# define LT_DLGLOBAL 0 11462# endif 11463#endif 11464 11465/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11466 find out it does not work in some platform. */ 11467#ifndef LT_DLLAZY_OR_NOW 11468# ifdef RTLD_LAZY 11469# define LT_DLLAZY_OR_NOW RTLD_LAZY 11470# else 11471# ifdef DL_LAZY 11472# define LT_DLLAZY_OR_NOW DL_LAZY 11473# else 11474# ifdef RTLD_NOW 11475# define LT_DLLAZY_OR_NOW RTLD_NOW 11476# else 11477# ifdef DL_NOW 11478# define LT_DLLAZY_OR_NOW DL_NOW 11479# else 11480# define LT_DLLAZY_OR_NOW 0 11481# endif 11482# endif 11483# endif 11484# endif 11485#endif 11486 11487/* When -fvisbility=hidden is used, assume the code has been annotated 11488 correspondingly for the symbols needed. */ 11489#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11490int fnord () __attribute__((visibility("default"))); 11491#endif 11492 11493int fnord () { return 42; } 11494int main () 11495{ 11496 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11497 int status = $lt_dlunknown; 11498 11499 if (self) 11500 { 11501 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11502 else 11503 { 11504 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11505 else puts (dlerror ()); 11506 } 11507 /* dlclose (self); */ 11508 } 11509 else 11510 puts (dlerror ()); 11511 11512 return status; 11513} 11514_LT_EOF 11515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11516 (eval $ac_link) 2>&5 11517 ac_status=$? 11518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11519 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11520 (./conftest; exit; ) >&5 2>/dev/null 11521 lt_status=$? 11522 case x$lt_status in 11523 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11524 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11525 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11526 esac 11527 else : 11528 # compilation failed 11529 lt_cv_dlopen_self=no 11530 fi 11531fi 11532rm -fr conftest* 11533 11534 11535fi 11536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11537$as_echo "$lt_cv_dlopen_self" >&6; } 11538 11539 if test "x$lt_cv_dlopen_self" = xyes; then 11540 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11542$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11543if ${lt_cv_dlopen_self_static+:} false; then : 11544 $as_echo_n "(cached) " >&6 11545else 11546 if test "$cross_compiling" = yes; then : 11547 lt_cv_dlopen_self_static=cross 11548else 11549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11550 lt_status=$lt_dlunknown 11551 cat > conftest.$ac_ext <<_LT_EOF 11552#line $LINENO "configure" 11553#include "confdefs.h" 11554 11555#if HAVE_DLFCN_H 11556#include <dlfcn.h> 11557#endif 11558 11559#include <stdio.h> 11560 11561#ifdef RTLD_GLOBAL 11562# define LT_DLGLOBAL RTLD_GLOBAL 11563#else 11564# ifdef DL_GLOBAL 11565# define LT_DLGLOBAL DL_GLOBAL 11566# else 11567# define LT_DLGLOBAL 0 11568# endif 11569#endif 11570 11571/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11572 find out it does not work in some platform. */ 11573#ifndef LT_DLLAZY_OR_NOW 11574# ifdef RTLD_LAZY 11575# define LT_DLLAZY_OR_NOW RTLD_LAZY 11576# else 11577# ifdef DL_LAZY 11578# define LT_DLLAZY_OR_NOW DL_LAZY 11579# else 11580# ifdef RTLD_NOW 11581# define LT_DLLAZY_OR_NOW RTLD_NOW 11582# else 11583# ifdef DL_NOW 11584# define LT_DLLAZY_OR_NOW DL_NOW 11585# else 11586# define LT_DLLAZY_OR_NOW 0 11587# endif 11588# endif 11589# endif 11590# endif 11591#endif 11592 11593/* When -fvisbility=hidden is used, assume the code has been annotated 11594 correspondingly for the symbols needed. */ 11595#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11596int fnord () __attribute__((visibility("default"))); 11597#endif 11598 11599int fnord () { return 42; } 11600int main () 11601{ 11602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11603 int status = $lt_dlunknown; 11604 11605 if (self) 11606 { 11607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11608 else 11609 { 11610 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11611 else puts (dlerror ()); 11612 } 11613 /* dlclose (self); */ 11614 } 11615 else 11616 puts (dlerror ()); 11617 11618 return status; 11619} 11620_LT_EOF 11621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11622 (eval $ac_link) 2>&5 11623 ac_status=$? 11624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11625 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11626 (./conftest; exit; ) >&5 2>/dev/null 11627 lt_status=$? 11628 case x$lt_status in 11629 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11630 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11631 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11632 esac 11633 else : 11634 # compilation failed 11635 lt_cv_dlopen_self_static=no 11636 fi 11637fi 11638rm -fr conftest* 11639 11640 11641fi 11642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11643$as_echo "$lt_cv_dlopen_self_static" >&6; } 11644 fi 11645 11646 CPPFLAGS="$save_CPPFLAGS" 11647 LDFLAGS="$save_LDFLAGS" 11648 LIBS="$save_LIBS" 11649 ;; 11650 esac 11651 11652 case $lt_cv_dlopen_self in 11653 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11654 *) enable_dlopen_self=unknown ;; 11655 esac 11656 11657 case $lt_cv_dlopen_self_static in 11658 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11659 *) enable_dlopen_self_static=unknown ;; 11660 esac 11661fi 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679striplib= 11680old_striplib= 11681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11682$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11683if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11684 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11685 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11687$as_echo "yes" >&6; } 11688else 11689# FIXME - insert some real tests, host_os isn't really good enough 11690 case $host_os in 11691 darwin*) 11692 if test -n "$STRIP" ; then 11693 striplib="$STRIP -x" 11694 old_striplib="$STRIP -S" 11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11696$as_echo "yes" >&6; } 11697 else 11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11699$as_echo "no" >&6; } 11700 fi 11701 ;; 11702 *) 11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11704$as_echo "no" >&6; } 11705 ;; 11706 esac 11707fi 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 # Report which library types will actually be built 11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11722$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11724$as_echo "$can_build_shared" >&6; } 11725 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11727$as_echo_n "checking whether to build shared libraries... " >&6; } 11728 test "$can_build_shared" = "no" && enable_shared=no 11729 11730 # On AIX, shared libraries and static libraries use the same namespace, and 11731 # are all built from PIC. 11732 case $host_os in 11733 aix3*) 11734 test "$enable_shared" = yes && enable_static=no 11735 if test -n "$RANLIB"; then 11736 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11737 postinstall_cmds='$RANLIB $lib' 11738 fi 11739 ;; 11740 11741 aix[4-9]*) 11742 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11743 test "$enable_shared" = yes && enable_static=no 11744 fi 11745 ;; 11746 esac 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11748$as_echo "$enable_shared" >&6; } 11749 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11751$as_echo_n "checking whether to build static libraries... " >&6; } 11752 # Make sure either enable_shared or enable_static is yes. 11753 test "$enable_shared" = yes || enable_static=yes 11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11755$as_echo "$enable_static" >&6; } 11756 11757 11758 11759 11760fi 11761ac_ext=c 11762ac_cpp='$CPP $CPPFLAGS' 11763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11765ac_compiler_gnu=$ac_cv_c_compiler_gnu 11766 11767CC="$lt_save_CC" 11768 11769 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11770 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11771 (test "X$CXX" != "Xg++"))) ; then 11772 ac_ext=cpp 11773ac_cpp='$CXXCPP $CPPFLAGS' 11774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11778$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11779if test -z "$CXXCPP"; then 11780 if ${ac_cv_prog_CXXCPP+:} false; then : 11781 $as_echo_n "(cached) " >&6 11782else 11783 # Double quotes because CXXCPP needs to be expanded 11784 for CXXCPP in "$CXX -E" "/lib/cpp" 11785 do 11786 ac_preproc_ok=false 11787for ac_cxx_preproc_warn_flag in '' yes 11788do 11789 # Use a header file that comes with gcc, so configuring glibc 11790 # with a fresh cross-compiler works. 11791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11792 # <limits.h> exists even on freestanding compilers. 11793 # On the NeXT, cc -E runs the code through the compiler's parser, 11794 # not just through cpp. "Syntax error" is here to catch this case. 11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11796/* end confdefs.h. */ 11797#ifdef __STDC__ 11798# include <limits.h> 11799#else 11800# include <assert.h> 11801#endif 11802 Syntax error 11803_ACEOF 11804if ac_fn_cxx_try_cpp "$LINENO"; then : 11805 11806else 11807 # Broken: fails on valid input. 11808continue 11809fi 11810rm -f conftest.err conftest.i conftest.$ac_ext 11811 11812 # OK, works on sane cases. Now check whether nonexistent headers 11813 # can be detected and how. 11814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11815/* end confdefs.h. */ 11816#include <ac_nonexistent.h> 11817_ACEOF 11818if ac_fn_cxx_try_cpp "$LINENO"; then : 11819 # Broken: success on invalid input. 11820continue 11821else 11822 # Passes both tests. 11823ac_preproc_ok=: 11824break 11825fi 11826rm -f conftest.err conftest.i conftest.$ac_ext 11827 11828done 11829# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11830rm -f conftest.i conftest.err conftest.$ac_ext 11831if $ac_preproc_ok; then : 11832 break 11833fi 11834 11835 done 11836 ac_cv_prog_CXXCPP=$CXXCPP 11837 11838fi 11839 CXXCPP=$ac_cv_prog_CXXCPP 11840else 11841 ac_cv_prog_CXXCPP=$CXXCPP 11842fi 11843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11844$as_echo "$CXXCPP" >&6; } 11845ac_preproc_ok=false 11846for ac_cxx_preproc_warn_flag in '' yes 11847do 11848 # Use a header file that comes with gcc, so configuring glibc 11849 # with a fresh cross-compiler works. 11850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11851 # <limits.h> exists even on freestanding compilers. 11852 # On the NeXT, cc -E runs the code through the compiler's parser, 11853 # not just through cpp. "Syntax error" is here to catch this case. 11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11855/* end confdefs.h. */ 11856#ifdef __STDC__ 11857# include <limits.h> 11858#else 11859# include <assert.h> 11860#endif 11861 Syntax error 11862_ACEOF 11863if ac_fn_cxx_try_cpp "$LINENO"; then : 11864 11865else 11866 # Broken: fails on valid input. 11867continue 11868fi 11869rm -f conftest.err conftest.i conftest.$ac_ext 11870 11871 # OK, works on sane cases. Now check whether nonexistent headers 11872 # can be detected and how. 11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11874/* end confdefs.h. */ 11875#include <ac_nonexistent.h> 11876_ACEOF 11877if ac_fn_cxx_try_cpp "$LINENO"; then : 11878 # Broken: success on invalid input. 11879continue 11880else 11881 # Passes both tests. 11882ac_preproc_ok=: 11883break 11884fi 11885rm -f conftest.err conftest.i conftest.$ac_ext 11886 11887done 11888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11889rm -f conftest.i conftest.err conftest.$ac_ext 11890if $ac_preproc_ok; then : 11891 11892else 11893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11895as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 11896See \`config.log' for more details" "$LINENO" 5; } 11897fi 11898 11899ac_ext=c 11900ac_cpp='$CPP $CPPFLAGS' 11901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11903ac_compiler_gnu=$ac_cv_c_compiler_gnu 11904 11905else 11906 _lt_caught_CXX_error=yes 11907fi 11908 11909ac_ext=cpp 11910ac_cpp='$CXXCPP $CPPFLAGS' 11911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11914 11915archive_cmds_need_lc_CXX=no 11916allow_undefined_flag_CXX= 11917always_export_symbols_CXX=no 11918archive_expsym_cmds_CXX= 11919compiler_needs_object_CXX=no 11920export_dynamic_flag_spec_CXX= 11921hardcode_direct_CXX=no 11922hardcode_direct_absolute_CXX=no 11923hardcode_libdir_flag_spec_CXX= 11924hardcode_libdir_separator_CXX= 11925hardcode_minus_L_CXX=no 11926hardcode_shlibpath_var_CXX=unsupported 11927hardcode_automatic_CXX=no 11928inherit_rpath_CXX=no 11929module_cmds_CXX= 11930module_expsym_cmds_CXX= 11931link_all_deplibs_CXX=unknown 11932old_archive_cmds_CXX=$old_archive_cmds 11933reload_flag_CXX=$reload_flag 11934reload_cmds_CXX=$reload_cmds 11935no_undefined_flag_CXX= 11936whole_archive_flag_spec_CXX= 11937enable_shared_with_static_runtimes_CXX=no 11938 11939# Source file extension for C++ test sources. 11940ac_ext=cpp 11941 11942# Object file extension for compiled C++ test sources. 11943objext=o 11944objext_CXX=$objext 11945 11946# No sense in running all these tests if we already determined that 11947# the CXX compiler isn't working. Some variables (like enable_shared) 11948# are currently assumed to apply to all compilers on this platform, 11949# and will be corrupted by setting them based on a non-working compiler. 11950if test "$_lt_caught_CXX_error" != yes; then 11951 # Code to be used in simple compile tests 11952 lt_simple_compile_test_code="int some_variable = 0;" 11953 11954 # Code to be used in simple link tests 11955 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11956 11957 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11958 11959 11960 11961 11962 11963 11964# If no C compiler was specified, use CC. 11965LTCC=${LTCC-"$CC"} 11966 11967# If no C compiler flags were specified, use CFLAGS. 11968LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11969 11970# Allow CC to be a program name with arguments. 11971compiler=$CC 11972 11973 11974 # save warnings/boilerplate of simple test code 11975 ac_outfile=conftest.$ac_objext 11976echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11977eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11978_lt_compiler_boilerplate=`cat conftest.err` 11979$RM conftest* 11980 11981 ac_outfile=conftest.$ac_objext 11982echo "$lt_simple_link_test_code" >conftest.$ac_ext 11983eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11984_lt_linker_boilerplate=`cat conftest.err` 11985$RM -r conftest* 11986 11987 11988 # Allow CC to be a program name with arguments. 11989 lt_save_CC=$CC 11990 lt_save_CFLAGS=$CFLAGS 11991 lt_save_LD=$LD 11992 lt_save_GCC=$GCC 11993 GCC=$GXX 11994 lt_save_with_gnu_ld=$with_gnu_ld 11995 lt_save_path_LD=$lt_cv_path_LD 11996 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11997 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11998 else 11999 $as_unset lt_cv_prog_gnu_ld 12000 fi 12001 if test -n "${lt_cv_path_LDCXX+set}"; then 12002 lt_cv_path_LD=$lt_cv_path_LDCXX 12003 else 12004 $as_unset lt_cv_path_LD 12005 fi 12006 test -z "${LDCXX+set}" || LD=$LDCXX 12007 CC=${CXX-"c++"} 12008 CFLAGS=$CXXFLAGS 12009 compiler=$CC 12010 compiler_CXX=$CC 12011 for cc_temp in $compiler""; do 12012 case $cc_temp in 12013 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12014 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12015 \-*) ;; 12016 *) break;; 12017 esac 12018done 12019cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12020 12021 12022 if test -n "$compiler"; then 12023 # We don't want -fno-exception when compiling C++ code, so set the 12024 # no_builtin_flag separately 12025 if test "$GXX" = yes; then 12026 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12027 else 12028 lt_prog_compiler_no_builtin_flag_CXX= 12029 fi 12030 12031 if test "$GXX" = yes; then 12032 # Set up default GNU C++ configuration 12033 12034 12035 12036# Check whether --with-gnu-ld was given. 12037if test "${with_gnu_ld+set}" = set; then : 12038 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12039else 12040 with_gnu_ld=no 12041fi 12042 12043ac_prog=ld 12044if test "$GCC" = yes; then 12045 # Check if gcc -print-prog-name=ld gives a path. 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12047$as_echo_n "checking for ld used by $CC... " >&6; } 12048 case $host in 12049 *-*-mingw*) 12050 # gcc leaves a trailing carriage return which upsets mingw 12051 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12052 *) 12053 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12054 esac 12055 case $ac_prog in 12056 # Accept absolute paths. 12057 [\\/]* | ?:[\\/]*) 12058 re_direlt='/[^/][^/]*/\.\./' 12059 # Canonicalize the pathname of ld 12060 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12061 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12062 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12063 done 12064 test -z "$LD" && LD="$ac_prog" 12065 ;; 12066 "") 12067 # If it fails, then pretend we aren't using GCC. 12068 ac_prog=ld 12069 ;; 12070 *) 12071 # If it is relative, then search for the first ld in PATH. 12072 with_gnu_ld=unknown 12073 ;; 12074 esac 12075elif test "$with_gnu_ld" = yes; then 12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12077$as_echo_n "checking for GNU ld... " >&6; } 12078else 12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12080$as_echo_n "checking for non-GNU ld... " >&6; } 12081fi 12082if ${lt_cv_path_LD+:} false; then : 12083 $as_echo_n "(cached) " >&6 12084else 12085 if test -z "$LD"; then 12086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12087 for ac_dir in $PATH; do 12088 IFS="$lt_save_ifs" 12089 test -z "$ac_dir" && ac_dir=. 12090 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12091 lt_cv_path_LD="$ac_dir/$ac_prog" 12092 # Check to see if the program is GNU ld. I'd rather use --version, 12093 # but apparently some variants of GNU ld only accept -v. 12094 # Break only if it was the GNU/non-GNU ld that we prefer. 12095 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12096 *GNU* | *'with BFD'*) 12097 test "$with_gnu_ld" != no && break 12098 ;; 12099 *) 12100 test "$with_gnu_ld" != yes && break 12101 ;; 12102 esac 12103 fi 12104 done 12105 IFS="$lt_save_ifs" 12106else 12107 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12108fi 12109fi 12110 12111LD="$lt_cv_path_LD" 12112if test -n "$LD"; then 12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12114$as_echo "$LD" >&6; } 12115else 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12117$as_echo "no" >&6; } 12118fi 12119test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12121$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12122if ${lt_cv_prog_gnu_ld+:} false; then : 12123 $as_echo_n "(cached) " >&6 12124else 12125 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12126case `$LD -v 2>&1 </dev/null` in 12127*GNU* | *'with BFD'*) 12128 lt_cv_prog_gnu_ld=yes 12129 ;; 12130*) 12131 lt_cv_prog_gnu_ld=no 12132 ;; 12133esac 12134fi 12135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12136$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12137with_gnu_ld=$lt_cv_prog_gnu_ld 12138 12139 12140 12141 12142 12143 12144 12145 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12146 # archiving commands below assume that GNU ld is being used. 12147 if test "$with_gnu_ld" = yes; then 12148 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12149 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' 12150 12151 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12152 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12153 12154 # If archive_cmds runs LD, not CC, wlarc should be empty 12155 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12156 # investigate it a little bit more. (MM) 12157 wlarc='${wl}' 12158 12159 # ancient GNU ld didn't support --whole-archive et. al. 12160 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12161 $GREP 'no-whole-archive' > /dev/null; then 12162 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12163 else 12164 whole_archive_flag_spec_CXX= 12165 fi 12166 else 12167 with_gnu_ld=no 12168 wlarc= 12169 12170 # A generic and very simple default shared library creation 12171 # command for GNU C++ for the case where it uses the native 12172 # linker, instead of GNU ld. If possible, this setting should 12173 # overridden to take advantage of the native linker features on 12174 # the platform it is being used on. 12175 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12176 fi 12177 12178 # Commands to make compiler produce verbose output that lists 12179 # what "hidden" libraries, object files and flags are used when 12180 # linking a shared library. 12181 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12182 12183 else 12184 GXX=no 12185 with_gnu_ld=no 12186 wlarc= 12187 fi 12188 12189 # PORTME: fill in a description of your system's C++ link characteristics 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12191$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12192 ld_shlibs_CXX=yes 12193 case $host_os in 12194 aix3*) 12195 # FIXME: insert proper C++ library support 12196 ld_shlibs_CXX=no 12197 ;; 12198 aix[4-9]*) 12199 if test "$host_cpu" = ia64; then 12200 # On IA64, the linker does run time linking by default, so we don't 12201 # have to do anything special. 12202 aix_use_runtimelinking=no 12203 exp_sym_flag='-Bexport' 12204 no_entry_flag="" 12205 else 12206 aix_use_runtimelinking=no 12207 12208 # Test if we are trying to use run time linking or normal 12209 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12210 # need to do runtime linking. 12211 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12212 for ld_flag in $LDFLAGS; do 12213 case $ld_flag in 12214 *-brtl*) 12215 aix_use_runtimelinking=yes 12216 break 12217 ;; 12218 esac 12219 done 12220 ;; 12221 esac 12222 12223 exp_sym_flag='-bexport' 12224 no_entry_flag='-bnoentry' 12225 fi 12226 12227 # When large executables or shared objects are built, AIX ld can 12228 # have problems creating the table of contents. If linking a library 12229 # or program results in "error TOC overflow" add -mminimal-toc to 12230 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12231 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12232 12233 archive_cmds_CXX='' 12234 hardcode_direct_CXX=yes 12235 hardcode_direct_absolute_CXX=yes 12236 hardcode_libdir_separator_CXX=':' 12237 link_all_deplibs_CXX=yes 12238 file_list_spec_CXX='${wl}-f,' 12239 12240 if test "$GXX" = yes; then 12241 case $host_os in aix4.[012]|aix4.[012].*) 12242 # We only want to do this on AIX 4.2 and lower, the check 12243 # below for broken collect2 doesn't work under 4.3+ 12244 collect2name=`${CC} -print-prog-name=collect2` 12245 if test -f "$collect2name" && 12246 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12247 then 12248 # We have reworked collect2 12249 : 12250 else 12251 # We have old collect2 12252 hardcode_direct_CXX=unsupported 12253 # It fails to find uninstalled libraries when the uninstalled 12254 # path is not listed in the libpath. Setting hardcode_minus_L 12255 # to unsupported forces relinking 12256 hardcode_minus_L_CXX=yes 12257 hardcode_libdir_flag_spec_CXX='-L$libdir' 12258 hardcode_libdir_separator_CXX= 12259 fi 12260 esac 12261 shared_flag='-shared' 12262 if test "$aix_use_runtimelinking" = yes; then 12263 shared_flag="$shared_flag "'${wl}-G' 12264 fi 12265 else 12266 # not using gcc 12267 if test "$host_cpu" = ia64; then 12268 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12269 # chokes on -Wl,-G. The following line is correct: 12270 shared_flag='-G' 12271 else 12272 if test "$aix_use_runtimelinking" = yes; then 12273 shared_flag='${wl}-G' 12274 else 12275 shared_flag='${wl}-bM:SRE' 12276 fi 12277 fi 12278 fi 12279 12280 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12281 # It seems that -bexpall does not export symbols beginning with 12282 # underscore (_), so it is better to generate a list of symbols to 12283 # export. 12284 always_export_symbols_CXX=yes 12285 if test "$aix_use_runtimelinking" = yes; then 12286 # Warning - without using the other runtime loading flags (-brtl), 12287 # -berok will link without error, but may produce a broken library. 12288 allow_undefined_flag_CXX='-berok' 12289 # Determine the default libpath from the value encoded in an empty 12290 # executable. 12291 if test "${lt_cv_aix_libpath+set}" = set; then 12292 aix_libpath=$lt_cv_aix_libpath 12293else 12294 if ${lt_cv_aix_libpath__CXX+:} false; then : 12295 $as_echo_n "(cached) " >&6 12296else 12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12298/* end confdefs.h. */ 12299 12300int 12301main () 12302{ 12303 12304 ; 12305 return 0; 12306} 12307_ACEOF 12308if ac_fn_cxx_try_link "$LINENO"; then : 12309 12310 lt_aix_libpath_sed=' 12311 /Import File Strings/,/^$/ { 12312 /^0/ { 12313 s/^0 *\([^ ]*\) *$/\1/ 12314 p 12315 } 12316 }' 12317 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12318 # Check for a 64-bit object if we didn't find anything. 12319 if test -z "$lt_cv_aix_libpath__CXX"; then 12320 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12321 fi 12322fi 12323rm -f core conftest.err conftest.$ac_objext \ 12324 conftest$ac_exeext conftest.$ac_ext 12325 if test -z "$lt_cv_aix_libpath__CXX"; then 12326 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12327 fi 12328 12329fi 12330 12331 aix_libpath=$lt_cv_aix_libpath__CXX 12332fi 12333 12334 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12335 12336 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12337 else 12338 if test "$host_cpu" = ia64; then 12339 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12340 allow_undefined_flag_CXX="-z nodefs" 12341 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" 12342 else 12343 # Determine the default libpath from the value encoded in an 12344 # empty executable. 12345 if test "${lt_cv_aix_libpath+set}" = set; then 12346 aix_libpath=$lt_cv_aix_libpath 12347else 12348 if ${lt_cv_aix_libpath__CXX+:} false; then : 12349 $as_echo_n "(cached) " >&6 12350else 12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12352/* end confdefs.h. */ 12353 12354int 12355main () 12356{ 12357 12358 ; 12359 return 0; 12360} 12361_ACEOF 12362if ac_fn_cxx_try_link "$LINENO"; then : 12363 12364 lt_aix_libpath_sed=' 12365 /Import File Strings/,/^$/ { 12366 /^0/ { 12367 s/^0 *\([^ ]*\) *$/\1/ 12368 p 12369 } 12370 }' 12371 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12372 # Check for a 64-bit object if we didn't find anything. 12373 if test -z "$lt_cv_aix_libpath__CXX"; then 12374 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12375 fi 12376fi 12377rm -f core conftest.err conftest.$ac_objext \ 12378 conftest$ac_exeext conftest.$ac_ext 12379 if test -z "$lt_cv_aix_libpath__CXX"; then 12380 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12381 fi 12382 12383fi 12384 12385 aix_libpath=$lt_cv_aix_libpath__CXX 12386fi 12387 12388 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12389 # Warning - without using the other run time loading flags, 12390 # -berok will link without error, but may produce a broken library. 12391 no_undefined_flag_CXX=' ${wl}-bernotok' 12392 allow_undefined_flag_CXX=' ${wl}-berok' 12393 if test "$with_gnu_ld" = yes; then 12394 # We only use this code for GNU lds that support --whole-archive. 12395 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12396 else 12397 # Exported symbols can be pulled into shared objects from archives 12398 whole_archive_flag_spec_CXX='$convenience' 12399 fi 12400 archive_cmds_need_lc_CXX=yes 12401 # This is similar to how AIX traditionally builds its shared 12402 # libraries. 12403 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12404 fi 12405 fi 12406 ;; 12407 12408 beos*) 12409 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12410 allow_undefined_flag_CXX=unsupported 12411 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12412 # support --undefined. This deserves some investigation. FIXME 12413 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12414 else 12415 ld_shlibs_CXX=no 12416 fi 12417 ;; 12418 12419 chorus*) 12420 case $cc_basename in 12421 *) 12422 # FIXME: insert proper C++ library support 12423 ld_shlibs_CXX=no 12424 ;; 12425 esac 12426 ;; 12427 12428 cygwin* | mingw* | pw32* | cegcc*) 12429 case $GXX,$cc_basename in 12430 ,cl* | no,cl*) 12431 # Native MSVC 12432 # hardcode_libdir_flag_spec is actually meaningless, as there is 12433 # no search path for DLLs. 12434 hardcode_libdir_flag_spec_CXX=' ' 12435 allow_undefined_flag_CXX=unsupported 12436 always_export_symbols_CXX=yes 12437 file_list_spec_CXX='@' 12438 # Tell ltmain to make .lib files, not .a files. 12439 libext=lib 12440 # Tell ltmain to make .dll files, not .so files. 12441 shrext_cmds=".dll" 12442 # FIXME: Setting linknames here is a bad hack. 12443 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12444 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12445 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12446 else 12447 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12448 fi~ 12449 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12450 linknames=' 12451 # The linker will not automatically build a static lib if we build a DLL. 12452 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 12453 enable_shared_with_static_runtimes_CXX=yes 12454 # Don't use ranlib 12455 old_postinstall_cmds_CXX='chmod 644 $oldlib' 12456 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 12457 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12458 case $lt_outputfile in 12459 *.exe|*.EXE) ;; 12460 *) 12461 lt_outputfile="$lt_outputfile.exe" 12462 lt_tool_outputfile="$lt_tool_outputfile.exe" 12463 ;; 12464 esac~ 12465 func_to_tool_file "$lt_outputfile"~ 12466 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12467 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12468 $RM "$lt_outputfile.manifest"; 12469 fi' 12470 ;; 12471 *) 12472 # g++ 12473 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12474 # as there is no search path for DLLs. 12475 hardcode_libdir_flag_spec_CXX='-L$libdir' 12476 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12477 allow_undefined_flag_CXX=unsupported 12478 always_export_symbols_CXX=no 12479 enable_shared_with_static_runtimes_CXX=yes 12480 12481 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12482 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' 12483 # If the export-symbols file already is a .def file (1st line 12484 # is EXPORTS), use it as is; otherwise, prepend... 12485 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12486 cp $export_symbols $output_objdir/$soname.def; 12487 else 12488 echo EXPORTS > $output_objdir/$soname.def; 12489 cat $export_symbols >> $output_objdir/$soname.def; 12490 fi~ 12491 $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' 12492 else 12493 ld_shlibs_CXX=no 12494 fi 12495 ;; 12496 esac 12497 ;; 12498 darwin* | rhapsody*) 12499 12500 12501 archive_cmds_need_lc_CXX=no 12502 hardcode_direct_CXX=no 12503 hardcode_automatic_CXX=yes 12504 hardcode_shlibpath_var_CXX=unsupported 12505 if test "$lt_cv_ld_force_load" = "yes"; then 12506 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\"`' 12507 12508 else 12509 whole_archive_flag_spec_CXX='' 12510 fi 12511 link_all_deplibs_CXX=yes 12512 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12513 case $cc_basename in 12514 ifort*) _lt_dar_can_shared=yes ;; 12515 *) _lt_dar_can_shared=$GCC ;; 12516 esac 12517 if test "$_lt_dar_can_shared" = "yes"; then 12518 output_verbose_link_cmd=func_echo_all 12519 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}" 12520 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12521 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}" 12522 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}" 12523 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12524 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}" 12525 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}" 12526 fi 12527 12528 else 12529 ld_shlibs_CXX=no 12530 fi 12531 12532 ;; 12533 12534 dgux*) 12535 case $cc_basename in 12536 ec++*) 12537 # FIXME: insert proper C++ library support 12538 ld_shlibs_CXX=no 12539 ;; 12540 ghcx*) 12541 # Green Hills C++ Compiler 12542 # FIXME: insert proper C++ library support 12543 ld_shlibs_CXX=no 12544 ;; 12545 *) 12546 # FIXME: insert proper C++ library support 12547 ld_shlibs_CXX=no 12548 ;; 12549 esac 12550 ;; 12551 12552 freebsd2.*) 12553 # C++ shared libraries reported to be fairly broken before 12554 # switch to ELF 12555 ld_shlibs_CXX=no 12556 ;; 12557 12558 freebsd-elf*) 12559 archive_cmds_need_lc_CXX=no 12560 ;; 12561 12562 freebsd* | dragonfly*) 12563 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12564 # conventions 12565 ld_shlibs_CXX=yes 12566 ;; 12567 12568 gnu*) 12569 ;; 12570 12571 haiku*) 12572 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12573 link_all_deplibs_CXX=yes 12574 ;; 12575 12576 hpux9*) 12577 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12578 hardcode_libdir_separator_CXX=: 12579 export_dynamic_flag_spec_CXX='${wl}-E' 12580 hardcode_direct_CXX=yes 12581 hardcode_minus_L_CXX=yes # Not in the search PATH, 12582 # but as the default 12583 # location of the library. 12584 12585 case $cc_basename in 12586 CC*) 12587 # FIXME: insert proper C++ library support 12588 ld_shlibs_CXX=no 12589 ;; 12590 aCC*) 12591 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12592 # Commands to make compiler produce verbose output that lists 12593 # what "hidden" libraries, object files and flags are used when 12594 # linking a shared library. 12595 # 12596 # There doesn't appear to be a way to prevent this compiler from 12597 # explicitly linking system object files so we need to strip them 12598 # from the output so that they don't get included in the library 12599 # dependencies. 12600 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"' 12601 ;; 12602 *) 12603 if test "$GXX" = yes; then 12604 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12605 else 12606 # FIXME: insert proper C++ library support 12607 ld_shlibs_CXX=no 12608 fi 12609 ;; 12610 esac 12611 ;; 12612 12613 hpux10*|hpux11*) 12614 if test $with_gnu_ld = no; then 12615 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12616 hardcode_libdir_separator_CXX=: 12617 12618 case $host_cpu in 12619 hppa*64*|ia64*) 12620 ;; 12621 *) 12622 export_dynamic_flag_spec_CXX='${wl}-E' 12623 ;; 12624 esac 12625 fi 12626 case $host_cpu in 12627 hppa*64*|ia64*) 12628 hardcode_direct_CXX=no 12629 hardcode_shlibpath_var_CXX=no 12630 ;; 12631 *) 12632 hardcode_direct_CXX=yes 12633 hardcode_direct_absolute_CXX=yes 12634 hardcode_minus_L_CXX=yes # Not in the search PATH, 12635 # but as the default 12636 # location of the library. 12637 ;; 12638 esac 12639 12640 case $cc_basename in 12641 CC*) 12642 # FIXME: insert proper C++ library support 12643 ld_shlibs_CXX=no 12644 ;; 12645 aCC*) 12646 case $host_cpu in 12647 hppa*64*) 12648 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12649 ;; 12650 ia64*) 12651 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12652 ;; 12653 *) 12654 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12655 ;; 12656 esac 12657 # Commands to make compiler produce verbose output that lists 12658 # what "hidden" libraries, object files and flags are used when 12659 # linking a shared library. 12660 # 12661 # There doesn't appear to be a way to prevent this compiler from 12662 # explicitly linking system object files so we need to strip them 12663 # from the output so that they don't get included in the library 12664 # dependencies. 12665 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"' 12666 ;; 12667 *) 12668 if test "$GXX" = yes; then 12669 if test $with_gnu_ld = no; then 12670 case $host_cpu in 12671 hppa*64*) 12672 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12673 ;; 12674 ia64*) 12675 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12676 ;; 12677 *) 12678 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' 12679 ;; 12680 esac 12681 fi 12682 else 12683 # FIXME: insert proper C++ library support 12684 ld_shlibs_CXX=no 12685 fi 12686 ;; 12687 esac 12688 ;; 12689 12690 interix[3-9]*) 12691 hardcode_direct_CXX=no 12692 hardcode_shlibpath_var_CXX=no 12693 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12694 export_dynamic_flag_spec_CXX='${wl}-E' 12695 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12696 # Instead, shared libraries are loaded at an image base (0x10000000 by 12697 # default) and relocated if they conflict, which is a slow very memory 12698 # consuming and fragmenting process. To avoid this, we pick a random, 12699 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12700 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12701 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' 12702 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' 12703 ;; 12704 irix5* | irix6*) 12705 case $cc_basename in 12706 CC*) 12707 # SGI C++ 12708 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' 12709 12710 # Archives containing C++ object files must be created using 12711 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12712 # necessary to make sure instantiated templates are included 12713 # in the archive. 12714 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12715 ;; 12716 *) 12717 if test "$GXX" = yes; then 12718 if test "$with_gnu_ld" = no; then 12719 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' 12720 else 12721 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' 12722 fi 12723 fi 12724 link_all_deplibs_CXX=yes 12725 ;; 12726 esac 12727 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12728 hardcode_libdir_separator_CXX=: 12729 inherit_rpath_CXX=yes 12730 ;; 12731 12732 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12733 case $cc_basename in 12734 KCC*) 12735 # Kuck and Associates, Inc. (KAI) C++ Compiler 12736 12737 # KCC will only create a shared library if the output file 12738 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12739 # to its proper name (with version) after linking. 12740 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' 12741 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' 12742 # Commands to make compiler produce verbose output that lists 12743 # what "hidden" libraries, object files and flags are used when 12744 # linking a shared library. 12745 # 12746 # There doesn't appear to be a way to prevent this compiler from 12747 # explicitly linking system object files so we need to strip them 12748 # from the output so that they don't get included in the library 12749 # dependencies. 12750 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"' 12751 12752 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12754 12755 # Archives containing C++ object files must be created using 12756 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12757 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12758 ;; 12759 icpc* | ecpc* ) 12760 # Intel C++ 12761 with_gnu_ld=yes 12762 # version 8.0 and above of icpc choke on multiply defined symbols 12763 # if we add $predep_objects and $postdep_objects, however 7.1 and 12764 # earlier do not add the objects themselves. 12765 case `$CC -V 2>&1` in 12766 *"Version 7."*) 12767 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12768 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' 12769 ;; 12770 *) # Version 8.0 or newer 12771 tmp_idyn= 12772 case $host_cpu in 12773 ia64*) tmp_idyn=' -i_dynamic';; 12774 esac 12775 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12776 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' 12777 ;; 12778 esac 12779 archive_cmds_need_lc_CXX=no 12780 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12781 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12782 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12783 ;; 12784 pgCC* | pgcpp*) 12785 # Portland Group C++ compiler 12786 case `$CC -V` in 12787 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12788 prelink_cmds_CXX='tpldir=Template.dir~ 12789 rm -rf $tpldir~ 12790 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12791 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 12792 old_archive_cmds_CXX='tpldir=Template.dir~ 12793 rm -rf $tpldir~ 12794 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12795 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 12796 $RANLIB $oldlib' 12797 archive_cmds_CXX='tpldir=Template.dir~ 12798 rm -rf $tpldir~ 12799 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12800 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12801 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12802 rm -rf $tpldir~ 12803 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12804 $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' 12805 ;; 12806 *) # Version 6 and above use weak symbols 12807 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12808 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' 12809 ;; 12810 esac 12811 12812 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12813 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12814 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' 12815 ;; 12816 cxx*) 12817 # Compaq C++ 12818 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12819 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' 12820 12821 runpath_var=LD_RUN_PATH 12822 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12823 hardcode_libdir_separator_CXX=: 12824 12825 # Commands to make compiler produce verbose output that lists 12826 # what "hidden" libraries, object files and flags are used when 12827 # linking a shared library. 12828 # 12829 # There doesn't appear to be a way to prevent this compiler from 12830 # explicitly linking system object files so we need to strip them 12831 # from the output so that they don't get included in the library 12832 # dependencies. 12833 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' 12834 ;; 12835 xl* | mpixl* | bgxl*) 12836 # IBM XL 8.0 on PPC, with GNU ld 12837 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12838 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12839 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12840 if test "x$supports_anon_versioning" = xyes; then 12841 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12842 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12843 echo "local: *; };" >> $output_objdir/$libname.ver~ 12844 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12845 fi 12846 ;; 12847 *) 12848 case `$CC -V 2>&1 | sed 5q` in 12849 *Sun\ C*) 12850 # Sun C++ 5.9 12851 no_undefined_flag_CXX=' -zdefs' 12852 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12853 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' 12854 hardcode_libdir_flag_spec_CXX='-R$libdir' 12855 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' 12856 compiler_needs_object_CXX=yes 12857 12858 # Not sure whether something based on 12859 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12860 # would be better. 12861 output_verbose_link_cmd='func_echo_all' 12862 12863 # Archives containing C++ object files must be created using 12864 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12865 # necessary to make sure instantiated templates are included 12866 # in the archive. 12867 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12868 ;; 12869 esac 12870 ;; 12871 esac 12872 ;; 12873 12874 lynxos*) 12875 # FIXME: insert proper C++ library support 12876 ld_shlibs_CXX=no 12877 ;; 12878 12879 m88k*) 12880 # FIXME: insert proper C++ library support 12881 ld_shlibs_CXX=no 12882 ;; 12883 12884 mvs*) 12885 case $cc_basename in 12886 cxx*) 12887 # FIXME: insert proper C++ library support 12888 ld_shlibs_CXX=no 12889 ;; 12890 *) 12891 # FIXME: insert proper C++ library support 12892 ld_shlibs_CXX=no 12893 ;; 12894 esac 12895 ;; 12896 12897 netbsd*) 12898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12899 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12900 wlarc= 12901 hardcode_libdir_flag_spec_CXX='-R$libdir' 12902 hardcode_direct_CXX=yes 12903 hardcode_shlibpath_var_CXX=no 12904 fi 12905 # Workaround some broken pre-1.5 toolchains 12906 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12907 ;; 12908 12909 *nto* | *qnx*) 12910 ld_shlibs_CXX=yes 12911 ;; 12912 12913 openbsd2*) 12914 # C++ shared libraries are fairly broken 12915 ld_shlibs_CXX=no 12916 ;; 12917 12918 openbsd*) 12919 if test -f /usr/libexec/ld.so; then 12920 hardcode_direct_CXX=yes 12921 hardcode_shlibpath_var_CXX=no 12922 hardcode_direct_absolute_CXX=yes 12923 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12924 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12925 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12926 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12927 export_dynamic_flag_spec_CXX='${wl}-E' 12928 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12929 fi 12930 output_verbose_link_cmd=func_echo_all 12931 else 12932 ld_shlibs_CXX=no 12933 fi 12934 ;; 12935 12936 osf3* | osf4* | osf5*) 12937 case $cc_basename in 12938 KCC*) 12939 # Kuck and Associates, Inc. (KAI) C++ Compiler 12940 12941 # KCC will only create a shared library if the output file 12942 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12943 # to its proper name (with version) after linking. 12944 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' 12945 12946 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12947 hardcode_libdir_separator_CXX=: 12948 12949 # Archives containing C++ object files must be created using 12950 # the KAI C++ compiler. 12951 case $host in 12952 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12953 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12954 esac 12955 ;; 12956 RCC*) 12957 # Rational C++ 2.4.1 12958 # FIXME: insert proper C++ library support 12959 ld_shlibs_CXX=no 12960 ;; 12961 cxx*) 12962 case $host in 12963 osf3*) 12964 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12965 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' 12966 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12967 ;; 12968 *) 12969 allow_undefined_flag_CXX=' -expect_unresolved \*' 12970 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' 12971 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12972 echo "-hidden">> $lib.exp~ 12973 $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~ 12974 $RM $lib.exp' 12975 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12976 ;; 12977 esac 12978 12979 hardcode_libdir_separator_CXX=: 12980 12981 # Commands to make compiler produce verbose output that lists 12982 # what "hidden" libraries, object files and flags are used when 12983 # linking a shared library. 12984 # 12985 # There doesn't appear to be a way to prevent this compiler from 12986 # explicitly linking system object files so we need to strip them 12987 # from the output so that they don't get included in the library 12988 # dependencies. 12989 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"' 12990 ;; 12991 *) 12992 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12993 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12994 case $host in 12995 osf3*) 12996 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' 12997 ;; 12998 *) 12999 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' 13000 ;; 13001 esac 13002 13003 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13004 hardcode_libdir_separator_CXX=: 13005 13006 # Commands to make compiler produce verbose output that lists 13007 # what "hidden" libraries, object files and flags are used when 13008 # linking a shared library. 13009 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13010 13011 else 13012 # FIXME: insert proper C++ library support 13013 ld_shlibs_CXX=no 13014 fi 13015 ;; 13016 esac 13017 ;; 13018 13019 psos*) 13020 # FIXME: insert proper C++ library support 13021 ld_shlibs_CXX=no 13022 ;; 13023 13024 sunos4*) 13025 case $cc_basename in 13026 CC*) 13027 # Sun C++ 4.x 13028 # FIXME: insert proper C++ library support 13029 ld_shlibs_CXX=no 13030 ;; 13031 lcc*) 13032 # Lucid 13033 # FIXME: insert proper C++ library support 13034 ld_shlibs_CXX=no 13035 ;; 13036 *) 13037 # FIXME: insert proper C++ library support 13038 ld_shlibs_CXX=no 13039 ;; 13040 esac 13041 ;; 13042 13043 solaris*) 13044 case $cc_basename in 13045 CC* | sunCC*) 13046 # Sun C++ 4.2, 5.x and Centerline C++ 13047 archive_cmds_need_lc_CXX=yes 13048 no_undefined_flag_CXX=' -zdefs' 13049 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13050 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13051 $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' 13052 13053 hardcode_libdir_flag_spec_CXX='-R$libdir' 13054 hardcode_shlibpath_var_CXX=no 13055 case $host_os in 13056 solaris2.[0-5] | solaris2.[0-5].*) ;; 13057 *) 13058 # The compiler driver will combine and reorder linker options, 13059 # but understands `-z linker_flag'. 13060 # Supported since Solaris 2.6 (maybe 2.5.1?) 13061 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13062 ;; 13063 esac 13064 link_all_deplibs_CXX=yes 13065 13066 output_verbose_link_cmd='func_echo_all' 13067 13068 # Archives containing C++ object files must be created using 13069 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13070 # necessary to make sure instantiated templates are included 13071 # in the archive. 13072 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13073 ;; 13074 gcx*) 13075 # Green Hills C++ Compiler 13076 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13077 13078 # The C++ compiler must be used to create the archive. 13079 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13080 ;; 13081 *) 13082 # GNU C++ compiler with Solaris linker 13083 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13084 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13085 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13086 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13087 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13088 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13089 13090 # Commands to make compiler produce verbose output that lists 13091 # what "hidden" libraries, object files and flags are used when 13092 # linking a shared library. 13093 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13094 else 13095 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13096 # platform. 13097 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13098 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13099 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13100 13101 # Commands to make compiler produce verbose output that lists 13102 # what "hidden" libraries, object files and flags are used when 13103 # linking a shared library. 13104 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13105 fi 13106 13107 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13108 case $host_os in 13109 solaris2.[0-5] | solaris2.[0-5].*) ;; 13110 *) 13111 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13112 ;; 13113 esac 13114 fi 13115 ;; 13116 esac 13117 ;; 13118 13119 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13120 no_undefined_flag_CXX='${wl}-z,text' 13121 archive_cmds_need_lc_CXX=no 13122 hardcode_shlibpath_var_CXX=no 13123 runpath_var='LD_RUN_PATH' 13124 13125 case $cc_basename in 13126 CC*) 13127 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13128 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13129 ;; 13130 *) 13131 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13132 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13133 ;; 13134 esac 13135 ;; 13136 13137 sysv5* | sco3.2v5* | sco5v6*) 13138 # Note: We can NOT use -z defs as we might desire, because we do not 13139 # link with -lc, and that would cause any symbols used from libc to 13140 # always be unresolved, which means just about no library would 13141 # ever link correctly. If we're not using GNU ld we use -z text 13142 # though, which does catch some bad symbols but isn't as heavy-handed 13143 # as -z defs. 13144 no_undefined_flag_CXX='${wl}-z,text' 13145 allow_undefined_flag_CXX='${wl}-z,nodefs' 13146 archive_cmds_need_lc_CXX=no 13147 hardcode_shlibpath_var_CXX=no 13148 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13149 hardcode_libdir_separator_CXX=':' 13150 link_all_deplibs_CXX=yes 13151 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13152 runpath_var='LD_RUN_PATH' 13153 13154 case $cc_basename in 13155 CC*) 13156 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13157 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13158 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13159 '"$old_archive_cmds_CXX" 13160 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13161 '"$reload_cmds_CXX" 13162 ;; 13163 *) 13164 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13165 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13166 ;; 13167 esac 13168 ;; 13169 13170 tandem*) 13171 case $cc_basename in 13172 NCC*) 13173 # NonStop-UX NCC 3.20 13174 # FIXME: insert proper C++ library support 13175 ld_shlibs_CXX=no 13176 ;; 13177 *) 13178 # FIXME: insert proper C++ library support 13179 ld_shlibs_CXX=no 13180 ;; 13181 esac 13182 ;; 13183 13184 vxworks*) 13185 # FIXME: insert proper C++ library support 13186 ld_shlibs_CXX=no 13187 ;; 13188 13189 *) 13190 # FIXME: insert proper C++ library support 13191 ld_shlibs_CXX=no 13192 ;; 13193 esac 13194 13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13196$as_echo "$ld_shlibs_CXX" >&6; } 13197 test "$ld_shlibs_CXX" = no && can_build_shared=no 13198 13199 GCC_CXX="$GXX" 13200 LD_CXX="$LD" 13201 13202 ## CAVEAT EMPTOR: 13203 ## There is no encapsulation within the following macros, do not change 13204 ## the running order or otherwise move them around unless you know exactly 13205 ## what you are doing... 13206 # Dependencies to place before and after the object being linked: 13207predep_objects_CXX= 13208postdep_objects_CXX= 13209predeps_CXX= 13210postdeps_CXX= 13211compiler_lib_search_path_CXX= 13212 13213cat > conftest.$ac_ext <<_LT_EOF 13214class Foo 13215{ 13216public: 13217 Foo (void) { a = 0; } 13218private: 13219 int a; 13220}; 13221_LT_EOF 13222 13223 13224_lt_libdeps_save_CFLAGS=$CFLAGS 13225case "$CC $CFLAGS " in #( 13226*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13227*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13228*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13229esac 13230 13231if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13232 (eval $ac_compile) 2>&5 13233 ac_status=$? 13234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13235 test $ac_status = 0; }; then 13236 # Parse the compiler output and extract the necessary 13237 # objects, libraries and library flags. 13238 13239 # Sentinel used to keep track of whether or not we are before 13240 # the conftest object file. 13241 pre_test_object_deps_done=no 13242 13243 for p in `eval "$output_verbose_link_cmd"`; do 13244 case ${prev}${p} in 13245 13246 -L* | -R* | -l*) 13247 # Some compilers place space between "-{L,R}" and the path. 13248 # Remove the space. 13249 if test $p = "-L" || 13250 test $p = "-R"; then 13251 prev=$p 13252 continue 13253 fi 13254 13255 # Expand the sysroot to ease extracting the directories later. 13256 if test -z "$prev"; then 13257 case $p in 13258 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13259 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13260 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13261 esac 13262 fi 13263 case $p in 13264 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13265 esac 13266 if test "$pre_test_object_deps_done" = no; then 13267 case ${prev} in 13268 -L | -R) 13269 # Internal compiler library paths should come after those 13270 # provided the user. The postdeps already come after the 13271 # user supplied libs so there is no need to process them. 13272 if test -z "$compiler_lib_search_path_CXX"; then 13273 compiler_lib_search_path_CXX="${prev}${p}" 13274 else 13275 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13276 fi 13277 ;; 13278 # The "-l" case would never come before the object being 13279 # linked, so don't bother handling this case. 13280 esac 13281 else 13282 if test -z "$postdeps_CXX"; then 13283 postdeps_CXX="${prev}${p}" 13284 else 13285 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13286 fi 13287 fi 13288 prev= 13289 ;; 13290 13291 *.lto.$objext) ;; # Ignore GCC LTO objects 13292 *.$objext) 13293 # This assumes that the test object file only shows up 13294 # once in the compiler output. 13295 if test "$p" = "conftest.$objext"; then 13296 pre_test_object_deps_done=yes 13297 continue 13298 fi 13299 13300 if test "$pre_test_object_deps_done" = no; then 13301 if test -z "$predep_objects_CXX"; then 13302 predep_objects_CXX="$p" 13303 else 13304 predep_objects_CXX="$predep_objects_CXX $p" 13305 fi 13306 else 13307 if test -z "$postdep_objects_CXX"; then 13308 postdep_objects_CXX="$p" 13309 else 13310 postdep_objects_CXX="$postdep_objects_CXX $p" 13311 fi 13312 fi 13313 ;; 13314 13315 *) ;; # Ignore the rest. 13316 13317 esac 13318 done 13319 13320 # Clean up. 13321 rm -f a.out a.exe 13322else 13323 echo "libtool.m4: error: problem compiling CXX test program" 13324fi 13325 13326$RM -f confest.$objext 13327CFLAGS=$_lt_libdeps_save_CFLAGS 13328 13329# PORTME: override above test on systems where it is broken 13330case $host_os in 13331interix[3-9]*) 13332 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13333 # hack all around it, let's just trust "g++" to DTRT. 13334 predep_objects_CXX= 13335 postdep_objects_CXX= 13336 postdeps_CXX= 13337 ;; 13338 13339linux*) 13340 case `$CC -V 2>&1 | sed 5q` in 13341 *Sun\ C*) 13342 # Sun C++ 5.9 13343 13344 # The more standards-conforming stlport4 library is 13345 # incompatible with the Cstd library. Avoid specifying 13346 # it if it's in CXXFLAGS. Ignore libCrun as 13347 # -library=stlport4 depends on it. 13348 case " $CXX $CXXFLAGS " in 13349 *" -library=stlport4 "*) 13350 solaris_use_stlport4=yes 13351 ;; 13352 esac 13353 13354 if test "$solaris_use_stlport4" != yes; then 13355 postdeps_CXX='-library=Cstd -library=Crun' 13356 fi 13357 ;; 13358 esac 13359 ;; 13360 13361solaris*) 13362 case $cc_basename in 13363 CC* | sunCC*) 13364 # The more standards-conforming stlport4 library is 13365 # incompatible with the Cstd library. Avoid specifying 13366 # it if it's in CXXFLAGS. Ignore libCrun as 13367 # -library=stlport4 depends on it. 13368 case " $CXX $CXXFLAGS " in 13369 *" -library=stlport4 "*) 13370 solaris_use_stlport4=yes 13371 ;; 13372 esac 13373 13374 # Adding this requires a known-good setup of shared libraries for 13375 # Sun compiler versions before 5.6, else PIC objects from an old 13376 # archive will be linked into the output, leading to subtle bugs. 13377 if test "$solaris_use_stlport4" != yes; then 13378 postdeps_CXX='-library=Cstd -library=Crun' 13379 fi 13380 ;; 13381 esac 13382 ;; 13383esac 13384 13385 13386case " $postdeps_CXX " in 13387*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13388esac 13389 compiler_lib_search_dirs_CXX= 13390if test -n "${compiler_lib_search_path_CXX}"; then 13391 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13392fi 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 lt_prog_compiler_wl_CXX= 13425lt_prog_compiler_pic_CXX= 13426lt_prog_compiler_static_CXX= 13427 13428 13429 # C++ specific cases for pic, static, wl, etc. 13430 if test "$GXX" = yes; then 13431 lt_prog_compiler_wl_CXX='-Wl,' 13432 lt_prog_compiler_static_CXX='-static' 13433 13434 case $host_os in 13435 aix*) 13436 # All AIX code is PIC. 13437 if test "$host_cpu" = ia64; then 13438 # AIX 5 now supports IA64 processor 13439 lt_prog_compiler_static_CXX='-Bstatic' 13440 fi 13441 ;; 13442 13443 amigaos*) 13444 case $host_cpu in 13445 powerpc) 13446 # see comment about AmigaOS4 .so support 13447 lt_prog_compiler_pic_CXX='-fPIC' 13448 ;; 13449 m68k) 13450 # FIXME: we need at least 68020 code to build shared libraries, but 13451 # adding the `-m68020' flag to GCC prevents building anything better, 13452 # like `-m68040'. 13453 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13454 ;; 13455 esac 13456 ;; 13457 13458 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13459 # PIC is the default for these OSes. 13460 ;; 13461 mingw* | cygwin* | os2* | pw32* | cegcc*) 13462 # This hack is so that the source file can tell whether it is being 13463 # built for inclusion in a dll (and should export symbols for example). 13464 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13465 # (--disable-auto-import) libraries 13466 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13467 ;; 13468 darwin* | rhapsody*) 13469 # PIC is the default on this platform 13470 # Common symbols not allowed in MH_DYLIB files 13471 lt_prog_compiler_pic_CXX='-fno-common' 13472 ;; 13473 *djgpp*) 13474 # DJGPP does not support shared libraries at all 13475 lt_prog_compiler_pic_CXX= 13476 ;; 13477 haiku*) 13478 # PIC is the default for Haiku. 13479 # The "-static" flag exists, but is broken. 13480 lt_prog_compiler_static_CXX= 13481 ;; 13482 interix[3-9]*) 13483 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13484 # Instead, we relocate shared libraries at runtime. 13485 ;; 13486 sysv4*MP*) 13487 if test -d /usr/nec; then 13488 lt_prog_compiler_pic_CXX=-Kconform_pic 13489 fi 13490 ;; 13491 hpux*) 13492 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13493 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13494 # sets the default TLS model and affects inlining. 13495 case $host_cpu in 13496 hppa*64*) 13497 ;; 13498 *) 13499 lt_prog_compiler_pic_CXX='-fPIC' 13500 ;; 13501 esac 13502 ;; 13503 *qnx* | *nto*) 13504 # QNX uses GNU C++, but need to define -shared option too, otherwise 13505 # it will coredump. 13506 lt_prog_compiler_pic_CXX='-fPIC -shared' 13507 ;; 13508 *) 13509 lt_prog_compiler_pic_CXX='-fPIC' 13510 ;; 13511 esac 13512 else 13513 case $host_os in 13514 aix[4-9]*) 13515 # All AIX code is PIC. 13516 if test "$host_cpu" = ia64; then 13517 # AIX 5 now supports IA64 processor 13518 lt_prog_compiler_static_CXX='-Bstatic' 13519 else 13520 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13521 fi 13522 ;; 13523 chorus*) 13524 case $cc_basename in 13525 cxch68*) 13526 # Green Hills C++ Compiler 13527 # _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" 13528 ;; 13529 esac 13530 ;; 13531 mingw* | cygwin* | os2* | pw32* | cegcc*) 13532 # This hack is so that the source file can tell whether it is being 13533 # built for inclusion in a dll (and should export symbols for example). 13534 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13535 ;; 13536 dgux*) 13537 case $cc_basename in 13538 ec++*) 13539 lt_prog_compiler_pic_CXX='-KPIC' 13540 ;; 13541 ghcx*) 13542 # Green Hills C++ Compiler 13543 lt_prog_compiler_pic_CXX='-pic' 13544 ;; 13545 *) 13546 ;; 13547 esac 13548 ;; 13549 freebsd* | dragonfly*) 13550 # FreeBSD uses GNU C++ 13551 ;; 13552 hpux9* | hpux10* | hpux11*) 13553 case $cc_basename in 13554 CC*) 13555 lt_prog_compiler_wl_CXX='-Wl,' 13556 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13557 if test "$host_cpu" != ia64; then 13558 lt_prog_compiler_pic_CXX='+Z' 13559 fi 13560 ;; 13561 aCC*) 13562 lt_prog_compiler_wl_CXX='-Wl,' 13563 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13564 case $host_cpu in 13565 hppa*64*|ia64*) 13566 # +Z the default 13567 ;; 13568 *) 13569 lt_prog_compiler_pic_CXX='+Z' 13570 ;; 13571 esac 13572 ;; 13573 *) 13574 ;; 13575 esac 13576 ;; 13577 interix*) 13578 # This is c89, which is MS Visual C++ (no shared libs) 13579 # Anyone wants to do a port? 13580 ;; 13581 irix5* | irix6* | nonstopux*) 13582 case $cc_basename in 13583 CC*) 13584 lt_prog_compiler_wl_CXX='-Wl,' 13585 lt_prog_compiler_static_CXX='-non_shared' 13586 # CC pic flag -KPIC is the default. 13587 ;; 13588 *) 13589 ;; 13590 esac 13591 ;; 13592 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13593 case $cc_basename in 13594 KCC*) 13595 # KAI C++ Compiler 13596 lt_prog_compiler_wl_CXX='--backend -Wl,' 13597 lt_prog_compiler_pic_CXX='-fPIC' 13598 ;; 13599 ecpc* ) 13600 # old Intel C++ for x86_64 which still supported -KPIC. 13601 lt_prog_compiler_wl_CXX='-Wl,' 13602 lt_prog_compiler_pic_CXX='-KPIC' 13603 lt_prog_compiler_static_CXX='-static' 13604 ;; 13605 icpc* ) 13606 # Intel C++, used to be incompatible with GCC. 13607 # ICC 10 doesn't accept -KPIC any more. 13608 lt_prog_compiler_wl_CXX='-Wl,' 13609 lt_prog_compiler_pic_CXX='-fPIC' 13610 lt_prog_compiler_static_CXX='-static' 13611 ;; 13612 pgCC* | pgcpp*) 13613 # Portland Group C++ compiler 13614 lt_prog_compiler_wl_CXX='-Wl,' 13615 lt_prog_compiler_pic_CXX='-fpic' 13616 lt_prog_compiler_static_CXX='-Bstatic' 13617 ;; 13618 cxx*) 13619 # Compaq C++ 13620 # Make sure the PIC flag is empty. It appears that all Alpha 13621 # Linux and Compaq Tru64 Unix objects are PIC. 13622 lt_prog_compiler_pic_CXX= 13623 lt_prog_compiler_static_CXX='-non_shared' 13624 ;; 13625 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13626 # IBM XL 8.0, 9.0 on PPC and BlueGene 13627 lt_prog_compiler_wl_CXX='-Wl,' 13628 lt_prog_compiler_pic_CXX='-qpic' 13629 lt_prog_compiler_static_CXX='-qstaticlink' 13630 ;; 13631 *) 13632 case `$CC -V 2>&1 | sed 5q` in 13633 *Sun\ C*) 13634 # Sun C++ 5.9 13635 lt_prog_compiler_pic_CXX='-KPIC' 13636 lt_prog_compiler_static_CXX='-Bstatic' 13637 lt_prog_compiler_wl_CXX='-Qoption ld ' 13638 ;; 13639 esac 13640 ;; 13641 esac 13642 ;; 13643 lynxos*) 13644 ;; 13645 m88k*) 13646 ;; 13647 mvs*) 13648 case $cc_basename in 13649 cxx*) 13650 lt_prog_compiler_pic_CXX='-W c,exportall' 13651 ;; 13652 *) 13653 ;; 13654 esac 13655 ;; 13656 netbsd* | netbsdelf*-gnu) 13657 ;; 13658 *qnx* | *nto*) 13659 # QNX uses GNU C++, but need to define -shared option too, otherwise 13660 # it will coredump. 13661 lt_prog_compiler_pic_CXX='-fPIC -shared' 13662 ;; 13663 osf3* | osf4* | osf5*) 13664 case $cc_basename in 13665 KCC*) 13666 lt_prog_compiler_wl_CXX='--backend -Wl,' 13667 ;; 13668 RCC*) 13669 # Rational C++ 2.4.1 13670 lt_prog_compiler_pic_CXX='-pic' 13671 ;; 13672 cxx*) 13673 # Digital/Compaq C++ 13674 lt_prog_compiler_wl_CXX='-Wl,' 13675 # Make sure the PIC flag is empty. It appears that all Alpha 13676 # Linux and Compaq Tru64 Unix objects are PIC. 13677 lt_prog_compiler_pic_CXX= 13678 lt_prog_compiler_static_CXX='-non_shared' 13679 ;; 13680 *) 13681 ;; 13682 esac 13683 ;; 13684 psos*) 13685 ;; 13686 solaris*) 13687 case $cc_basename in 13688 CC* | sunCC*) 13689 # Sun C++ 4.2, 5.x and Centerline C++ 13690 lt_prog_compiler_pic_CXX='-KPIC' 13691 lt_prog_compiler_static_CXX='-Bstatic' 13692 lt_prog_compiler_wl_CXX='-Qoption ld ' 13693 ;; 13694 gcx*) 13695 # Green Hills C++ Compiler 13696 lt_prog_compiler_pic_CXX='-PIC' 13697 ;; 13698 *) 13699 ;; 13700 esac 13701 ;; 13702 sunos4*) 13703 case $cc_basename in 13704 CC*) 13705 # Sun C++ 4.x 13706 lt_prog_compiler_pic_CXX='-pic' 13707 lt_prog_compiler_static_CXX='-Bstatic' 13708 ;; 13709 lcc*) 13710 # Lucid 13711 lt_prog_compiler_pic_CXX='-pic' 13712 ;; 13713 *) 13714 ;; 13715 esac 13716 ;; 13717 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13718 case $cc_basename in 13719 CC*) 13720 lt_prog_compiler_wl_CXX='-Wl,' 13721 lt_prog_compiler_pic_CXX='-KPIC' 13722 lt_prog_compiler_static_CXX='-Bstatic' 13723 ;; 13724 esac 13725 ;; 13726 tandem*) 13727 case $cc_basename in 13728 NCC*) 13729 # NonStop-UX NCC 3.20 13730 lt_prog_compiler_pic_CXX='-KPIC' 13731 ;; 13732 *) 13733 ;; 13734 esac 13735 ;; 13736 vxworks*) 13737 ;; 13738 *) 13739 lt_prog_compiler_can_build_shared_CXX=no 13740 ;; 13741 esac 13742 fi 13743 13744case $host_os in 13745 # For platforms which do not support PIC, -DPIC is meaningless: 13746 *djgpp*) 13747 lt_prog_compiler_pic_CXX= 13748 ;; 13749 *) 13750 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13751 ;; 13752esac 13753 13754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13755$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13756if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 13757 $as_echo_n "(cached) " >&6 13758else 13759 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 13760fi 13761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 13762$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 13763lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 13764 13765# 13766# Check to make sure the PIC flag actually works. 13767# 13768if test -n "$lt_prog_compiler_pic_CXX"; then 13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13770$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13771if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 13772 $as_echo_n "(cached) " >&6 13773else 13774 lt_cv_prog_compiler_pic_works_CXX=no 13775 ac_outfile=conftest.$ac_objext 13776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13777 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13778 # Insert the option either (1) after the last *FLAGS variable, or 13779 # (2) before a word containing "conftest.", or (3) at the end. 13780 # Note that $ac_compile itself does not contain backslashes and begins 13781 # with a dollar sign (not a hyphen), so the echo should work correctly. 13782 # The option is referenced via a variable to avoid confusing sed. 13783 lt_compile=`echo "$ac_compile" | $SED \ 13784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13786 -e 's:$: $lt_compiler_flag:'` 13787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13788 (eval "$lt_compile" 2>conftest.err) 13789 ac_status=$? 13790 cat conftest.err >&5 13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13792 if (exit $ac_status) && test -s "$ac_outfile"; then 13793 # The compiler can only warn and ignore the option if not recognized 13794 # So say no if there are warnings other than the usual output. 13795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13798 lt_cv_prog_compiler_pic_works_CXX=yes 13799 fi 13800 fi 13801 $RM conftest* 13802 13803fi 13804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13805$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13806 13807if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13808 case $lt_prog_compiler_pic_CXX in 13809 "" | " "*) ;; 13810 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13811 esac 13812else 13813 lt_prog_compiler_pic_CXX= 13814 lt_prog_compiler_can_build_shared_CXX=no 13815fi 13816 13817fi 13818 13819 13820 13821 13822 13823# 13824# Check to make sure the static flag actually works. 13825# 13826wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13828$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13829if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 13830 $as_echo_n "(cached) " >&6 13831else 13832 lt_cv_prog_compiler_static_works_CXX=no 13833 save_LDFLAGS="$LDFLAGS" 13834 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13835 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13837 # The linker can only warn and ignore the option if not recognized 13838 # So say no if there are warnings 13839 if test -s conftest.err; then 13840 # Append any errors to the config.log. 13841 cat conftest.err 1>&5 13842 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13844 if diff conftest.exp conftest.er2 >/dev/null; then 13845 lt_cv_prog_compiler_static_works_CXX=yes 13846 fi 13847 else 13848 lt_cv_prog_compiler_static_works_CXX=yes 13849 fi 13850 fi 13851 $RM -r conftest* 13852 LDFLAGS="$save_LDFLAGS" 13853 13854fi 13855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13856$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13857 13858if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13859 : 13860else 13861 lt_prog_compiler_static_CXX= 13862fi 13863 13864 13865 13866 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13868$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13869if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13870 $as_echo_n "(cached) " >&6 13871else 13872 lt_cv_prog_compiler_c_o_CXX=no 13873 $RM -r conftest 2>/dev/null 13874 mkdir conftest 13875 cd conftest 13876 mkdir out 13877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13878 13879 lt_compiler_flag="-o out/conftest2.$ac_objext" 13880 # Insert the option either (1) after the last *FLAGS variable, or 13881 # (2) before a word containing "conftest.", or (3) at the end. 13882 # Note that $ac_compile itself does not contain backslashes and begins 13883 # with a dollar sign (not a hyphen), so the echo should work correctly. 13884 lt_compile=`echo "$ac_compile" | $SED \ 13885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13887 -e 's:$: $lt_compiler_flag:'` 13888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13889 (eval "$lt_compile" 2>out/conftest.err) 13890 ac_status=$? 13891 cat out/conftest.err >&5 13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13893 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13894 then 13895 # The compiler can only warn and ignore the option if not recognized 13896 # So say no if there are warnings 13897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13898 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13899 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13900 lt_cv_prog_compiler_c_o_CXX=yes 13901 fi 13902 fi 13903 chmod u+w . 2>&5 13904 $RM conftest* 13905 # SGI C++ compiler will create directory out/ii_files/ for 13906 # template instantiation 13907 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13908 $RM out/* && rmdir out 13909 cd .. 13910 $RM -r conftest 13911 $RM conftest* 13912 13913fi 13914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13915$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13916 13917 13918 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13920$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13921if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13922 $as_echo_n "(cached) " >&6 13923else 13924 lt_cv_prog_compiler_c_o_CXX=no 13925 $RM -r conftest 2>/dev/null 13926 mkdir conftest 13927 cd conftest 13928 mkdir out 13929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13930 13931 lt_compiler_flag="-o out/conftest2.$ac_objext" 13932 # Insert the option either (1) after the last *FLAGS variable, or 13933 # (2) before a word containing "conftest.", or (3) at the end. 13934 # Note that $ac_compile itself does not contain backslashes and begins 13935 # with a dollar sign (not a hyphen), so the echo should work correctly. 13936 lt_compile=`echo "$ac_compile" | $SED \ 13937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13939 -e 's:$: $lt_compiler_flag:'` 13940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13941 (eval "$lt_compile" 2>out/conftest.err) 13942 ac_status=$? 13943 cat out/conftest.err >&5 13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13945 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13946 then 13947 # The compiler can only warn and ignore the option if not recognized 13948 # So say no if there are warnings 13949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13950 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13951 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13952 lt_cv_prog_compiler_c_o_CXX=yes 13953 fi 13954 fi 13955 chmod u+w . 2>&5 13956 $RM conftest* 13957 # SGI C++ compiler will create directory out/ii_files/ for 13958 # template instantiation 13959 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13960 $RM out/* && rmdir out 13961 cd .. 13962 $RM -r conftest 13963 $RM conftest* 13964 13965fi 13966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13967$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13968 13969 13970 13971 13972hard_links="nottested" 13973if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13974 # do not overwrite the value of need_locks provided by the user 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13976$as_echo_n "checking if we can lock with hard links... " >&6; } 13977 hard_links=yes 13978 $RM conftest* 13979 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13980 touch conftest.a 13981 ln conftest.a conftest.b 2>&5 || hard_links=no 13982 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13984$as_echo "$hard_links" >&6; } 13985 if test "$hard_links" = no; then 13986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13987$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13988 need_locks=warn 13989 fi 13990else 13991 need_locks=no 13992fi 13993 13994 13995 13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13997$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13998 13999 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14000 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14001 case $host_os in 14002 aix[4-9]*) 14003 # If we're using GNU nm, then we don't want the "-C" option. 14004 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14005 # Also, AIX nm treats weak defined symbols like other global defined 14006 # symbols, whereas GNU nm marks them as "W". 14007 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14008 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14009 else 14010 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14011 fi 14012 ;; 14013 pw32*) 14014 export_symbols_cmds_CXX="$ltdll_cmds" 14015 ;; 14016 cygwin* | mingw* | cegcc*) 14017 case $cc_basename in 14018 cl*) 14019 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14020 ;; 14021 *) 14022 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' 14023 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14024 ;; 14025 esac 14026 ;; 14027 linux* | k*bsd*-gnu | gnu*) 14028 link_all_deplibs_CXX=no 14029 ;; 14030 *) 14031 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14032 ;; 14033 esac 14034 14035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14036$as_echo "$ld_shlibs_CXX" >&6; } 14037test "$ld_shlibs_CXX" = no && can_build_shared=no 14038 14039with_gnu_ld_CXX=$with_gnu_ld 14040 14041 14042 14043 14044 14045 14046# 14047# Do we need to explicitly link libc? 14048# 14049case "x$archive_cmds_need_lc_CXX" in 14050x|xyes) 14051 # Assume -lc should be added 14052 archive_cmds_need_lc_CXX=yes 14053 14054 if test "$enable_shared" = yes && test "$GCC" = yes; then 14055 case $archive_cmds_CXX in 14056 *'~'*) 14057 # FIXME: we may have to deal with multi-command sequences. 14058 ;; 14059 '$CC '*) 14060 # Test whether the compiler implicitly links with -lc since on some 14061 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14062 # to ld, don't add -lc before -lgcc. 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14064$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14065if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14066 $as_echo_n "(cached) " >&6 14067else 14068 $RM conftest* 14069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14070 14071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14072 (eval $ac_compile) 2>&5 14073 ac_status=$? 14074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14075 test $ac_status = 0; } 2>conftest.err; then 14076 soname=conftest 14077 lib=conftest 14078 libobjs=conftest.$ac_objext 14079 deplibs= 14080 wl=$lt_prog_compiler_wl_CXX 14081 pic_flag=$lt_prog_compiler_pic_CXX 14082 compiler_flags=-v 14083 linker_flags=-v 14084 verstring= 14085 output_objdir=. 14086 libname=conftest 14087 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14088 allow_undefined_flag_CXX= 14089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14090 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14091 ac_status=$? 14092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14093 test $ac_status = 0; } 14094 then 14095 lt_cv_archive_cmds_need_lc_CXX=no 14096 else 14097 lt_cv_archive_cmds_need_lc_CXX=yes 14098 fi 14099 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14100 else 14101 cat conftest.err 1>&5 14102 fi 14103 $RM conftest* 14104 14105fi 14106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14107$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14108 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14109 ;; 14110 esac 14111 fi 14112 ;; 14113esac 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14177$as_echo_n "checking dynamic linker characteristics... " >&6; } 14178 14179library_names_spec= 14180libname_spec='lib$name' 14181soname_spec= 14182shrext_cmds=".so" 14183postinstall_cmds= 14184postuninstall_cmds= 14185finish_cmds= 14186finish_eval= 14187shlibpath_var= 14188shlibpath_overrides_runpath=unknown 14189version_type=none 14190dynamic_linker="$host_os ld.so" 14191sys_lib_dlsearch_path_spec="/lib /usr/lib" 14192need_lib_prefix=unknown 14193hardcode_into_libs=no 14194 14195# when you set need_version to no, make sure it does not cause -set_version 14196# flags to be left without arguments 14197need_version=unknown 14198 14199case $host_os in 14200aix3*) 14201 version_type=linux # correct to gnu/linux during the next big refactor 14202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14203 shlibpath_var=LIBPATH 14204 14205 # AIX 3 has no versioning support, so we append a major version to the name. 14206 soname_spec='${libname}${release}${shared_ext}$major' 14207 ;; 14208 14209aix[4-9]*) 14210 version_type=linux # correct to gnu/linux during the next big refactor 14211 need_lib_prefix=no 14212 need_version=no 14213 hardcode_into_libs=yes 14214 if test "$host_cpu" = ia64; then 14215 # AIX 5 supports IA64 14216 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14217 shlibpath_var=LD_LIBRARY_PATH 14218 else 14219 # With GCC up to 2.95.x, collect2 would create an import file 14220 # for dependence libraries. The import file would start with 14221 # the line `#! .'. This would cause the generated library to 14222 # depend on `.', always an invalid library. This was fixed in 14223 # development snapshots of GCC prior to 3.0. 14224 case $host_os in 14225 aix4 | aix4.[01] | aix4.[01].*) 14226 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14227 echo ' yes ' 14228 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14229 : 14230 else 14231 can_build_shared=no 14232 fi 14233 ;; 14234 esac 14235 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14236 # soname into executable. Probably we can add versioning support to 14237 # collect2, so additional links can be useful in future. 14238 if test "$aix_use_runtimelinking" = yes; then 14239 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14240 # instead of lib<name>.a to let people know that these are not 14241 # typical AIX shared libraries. 14242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14243 else 14244 # We preserve .a as extension for shared libraries through AIX4.2 14245 # and later when we are not doing run time linking. 14246 library_names_spec='${libname}${release}.a $libname.a' 14247 soname_spec='${libname}${release}${shared_ext}$major' 14248 fi 14249 shlibpath_var=LIBPATH 14250 fi 14251 ;; 14252 14253amigaos*) 14254 case $host_cpu in 14255 powerpc) 14256 # Since July 2007 AmigaOS4 officially supports .so libraries. 14257 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14259 ;; 14260 m68k) 14261 library_names_spec='$libname.ixlibrary $libname.a' 14262 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14263 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14264 ;; 14265 esac 14266 ;; 14267 14268beos*) 14269 library_names_spec='${libname}${shared_ext}' 14270 dynamic_linker="$host_os ld.so" 14271 shlibpath_var=LIBRARY_PATH 14272 ;; 14273 14274bsdi[45]*) 14275 version_type=linux # correct to gnu/linux during the next big refactor 14276 need_version=no 14277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14278 soname_spec='${libname}${release}${shared_ext}$major' 14279 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14280 shlibpath_var=LD_LIBRARY_PATH 14281 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14282 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14283 # the default ld.so.conf also contains /usr/contrib/lib and 14284 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14285 # libtool to hard-code these into programs 14286 ;; 14287 14288cygwin* | mingw* | pw32* | cegcc*) 14289 version_type=windows 14290 shrext_cmds=".dll" 14291 need_version=no 14292 need_lib_prefix=no 14293 14294 case $GCC,$cc_basename in 14295 yes,*) 14296 # gcc 14297 library_names_spec='$libname.dll.a' 14298 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14299 postinstall_cmds='base_file=`basename \${file}`~ 14300 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14301 dldir=$destdir/`dirname \$dlpath`~ 14302 test -d \$dldir || mkdir -p \$dldir~ 14303 $install_prog $dir/$dlname \$dldir/$dlname~ 14304 chmod a+x \$dldir/$dlname~ 14305 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14306 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14307 fi' 14308 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14309 dlpath=$dir/\$dldll~ 14310 $RM \$dlpath' 14311 shlibpath_overrides_runpath=yes 14312 14313 case $host_os in 14314 cygwin*) 14315 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14316 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14317 14318 ;; 14319 mingw* | cegcc*) 14320 # MinGW DLLs use traditional 'lib' prefix 14321 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14322 ;; 14323 pw32*) 14324 # pw32 DLLs use 'pw' prefix rather than 'lib' 14325 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14326 ;; 14327 esac 14328 dynamic_linker='Win32 ld.exe' 14329 ;; 14330 14331 *,cl*) 14332 # Native MSVC 14333 libname_spec='$name' 14334 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14335 library_names_spec='${libname}.dll.lib' 14336 14337 case $build_os in 14338 mingw*) 14339 sys_lib_search_path_spec= 14340 lt_save_ifs=$IFS 14341 IFS=';' 14342 for lt_path in $LIB 14343 do 14344 IFS=$lt_save_ifs 14345 # Let DOS variable expansion print the short 8.3 style file name. 14346 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14347 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14348 done 14349 IFS=$lt_save_ifs 14350 # Convert to MSYS style. 14351 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14352 ;; 14353 cygwin*) 14354 # Convert to unix form, then to dos form, then back to unix form 14355 # but this time dos style (no spaces!) so that the unix form looks 14356 # like /cygdrive/c/PROGRA~1:/cygdr... 14357 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14358 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14359 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14360 ;; 14361 *) 14362 sys_lib_search_path_spec="$LIB" 14363 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14364 # It is most probably a Windows format PATH. 14365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14366 else 14367 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14368 fi 14369 # FIXME: find the short name or the path components, as spaces are 14370 # common. (e.g. "Program Files" -> "PROGRA~1") 14371 ;; 14372 esac 14373 14374 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14375 postinstall_cmds='base_file=`basename \${file}`~ 14376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14377 dldir=$destdir/`dirname \$dlpath`~ 14378 test -d \$dldir || mkdir -p \$dldir~ 14379 $install_prog $dir/$dlname \$dldir/$dlname' 14380 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14381 dlpath=$dir/\$dldll~ 14382 $RM \$dlpath' 14383 shlibpath_overrides_runpath=yes 14384 dynamic_linker='Win32 link.exe' 14385 ;; 14386 14387 *) 14388 # Assume MSVC wrapper 14389 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14390 dynamic_linker='Win32 ld.exe' 14391 ;; 14392 esac 14393 # FIXME: first we should search . and the directory the executable is in 14394 shlibpath_var=PATH 14395 ;; 14396 14397darwin* | rhapsody*) 14398 dynamic_linker="$host_os dyld" 14399 version_type=darwin 14400 need_lib_prefix=no 14401 need_version=no 14402 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14403 soname_spec='${libname}${release}${major}$shared_ext' 14404 shlibpath_overrides_runpath=yes 14405 shlibpath_var=DYLD_LIBRARY_PATH 14406 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14407 14408 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14409 ;; 14410 14411dgux*) 14412 version_type=linux # correct to gnu/linux during the next big refactor 14413 need_lib_prefix=no 14414 need_version=no 14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14416 soname_spec='${libname}${release}${shared_ext}$major' 14417 shlibpath_var=LD_LIBRARY_PATH 14418 ;; 14419 14420freebsd* | dragonfly*) 14421 # DragonFly does not have aout. When/if they implement a new 14422 # versioning mechanism, adjust this. 14423 if test -x /usr/bin/objformat; then 14424 objformat=`/usr/bin/objformat` 14425 else 14426 case $host_os in 14427 freebsd[23].*) objformat=aout ;; 14428 *) objformat=elf ;; 14429 esac 14430 fi 14431 version_type=freebsd-$objformat 14432 case $version_type in 14433 freebsd-elf*) 14434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14435 need_version=no 14436 need_lib_prefix=no 14437 ;; 14438 freebsd-*) 14439 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14440 need_version=yes 14441 ;; 14442 esac 14443 shlibpath_var=LD_LIBRARY_PATH 14444 case $host_os in 14445 freebsd2.*) 14446 shlibpath_overrides_runpath=yes 14447 ;; 14448 freebsd3.[01]* | freebsdelf3.[01]*) 14449 shlibpath_overrides_runpath=yes 14450 hardcode_into_libs=yes 14451 ;; 14452 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14453 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14454 shlibpath_overrides_runpath=no 14455 hardcode_into_libs=yes 14456 ;; 14457 *) # from 4.6 on, and DragonFly 14458 shlibpath_overrides_runpath=yes 14459 hardcode_into_libs=yes 14460 ;; 14461 esac 14462 ;; 14463 14464gnu*) 14465 version_type=linux # correct to gnu/linux during the next big refactor 14466 need_lib_prefix=no 14467 need_version=no 14468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14469 soname_spec='${libname}${release}${shared_ext}$major' 14470 shlibpath_var=LD_LIBRARY_PATH 14471 shlibpath_overrides_runpath=no 14472 hardcode_into_libs=yes 14473 ;; 14474 14475haiku*) 14476 version_type=linux # correct to gnu/linux during the next big refactor 14477 need_lib_prefix=no 14478 need_version=no 14479 dynamic_linker="$host_os runtime_loader" 14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14481 soname_spec='${libname}${release}${shared_ext}$major' 14482 shlibpath_var=LIBRARY_PATH 14483 shlibpath_overrides_runpath=yes 14484 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14485 hardcode_into_libs=yes 14486 ;; 14487 14488hpux9* | hpux10* | hpux11*) 14489 # Give a soname corresponding to the major version so that dld.sl refuses to 14490 # link against other versions. 14491 version_type=sunos 14492 need_lib_prefix=no 14493 need_version=no 14494 case $host_cpu in 14495 ia64*) 14496 shrext_cmds='.so' 14497 hardcode_into_libs=yes 14498 dynamic_linker="$host_os dld.so" 14499 shlibpath_var=LD_LIBRARY_PATH 14500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14502 soname_spec='${libname}${release}${shared_ext}$major' 14503 if test "X$HPUX_IA64_MODE" = X32; then 14504 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14505 else 14506 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14507 fi 14508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14509 ;; 14510 hppa*64*) 14511 shrext_cmds='.sl' 14512 hardcode_into_libs=yes 14513 dynamic_linker="$host_os dld.sl" 14514 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14517 soname_spec='${libname}${release}${shared_ext}$major' 14518 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14520 ;; 14521 *) 14522 shrext_cmds='.sl' 14523 dynamic_linker="$host_os dld.sl" 14524 shlibpath_var=SHLIB_PATH 14525 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14527 soname_spec='${libname}${release}${shared_ext}$major' 14528 ;; 14529 esac 14530 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14531 postinstall_cmds='chmod 555 $lib' 14532 # or fails outright, so override atomically: 14533 install_override_mode=555 14534 ;; 14535 14536interix[3-9]*) 14537 version_type=linux # correct to gnu/linux during the next big refactor 14538 need_lib_prefix=no 14539 need_version=no 14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14541 soname_spec='${libname}${release}${shared_ext}$major' 14542 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14543 shlibpath_var=LD_LIBRARY_PATH 14544 shlibpath_overrides_runpath=no 14545 hardcode_into_libs=yes 14546 ;; 14547 14548irix5* | irix6* | nonstopux*) 14549 case $host_os in 14550 nonstopux*) version_type=nonstopux ;; 14551 *) 14552 if test "$lt_cv_prog_gnu_ld" = yes; then 14553 version_type=linux # correct to gnu/linux during the next big refactor 14554 else 14555 version_type=irix 14556 fi ;; 14557 esac 14558 need_lib_prefix=no 14559 need_version=no 14560 soname_spec='${libname}${release}${shared_ext}$major' 14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14562 case $host_os in 14563 irix5* | nonstopux*) 14564 libsuff= shlibsuff= 14565 ;; 14566 *) 14567 case $LD in # libtool.m4 will add one of these switches to LD 14568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14569 libsuff= shlibsuff= libmagic=32-bit;; 14570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14571 libsuff=32 shlibsuff=N32 libmagic=N32;; 14572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14573 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14574 *) libsuff= shlibsuff= libmagic=never-match;; 14575 esac 14576 ;; 14577 esac 14578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14579 shlibpath_overrides_runpath=no 14580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14582 hardcode_into_libs=yes 14583 ;; 14584 14585# No shared lib support for Linux oldld, aout, or coff. 14586linux*oldld* | linux*aout* | linux*coff*) 14587 dynamic_linker=no 14588 ;; 14589 14590# This must be glibc/ELF. 14591linux* | k*bsd*-gnu | kopensolaris*-gnu) 14592 version_type=linux # correct to gnu/linux during the next big refactor 14593 need_lib_prefix=no 14594 need_version=no 14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14596 soname_spec='${libname}${release}${shared_ext}$major' 14597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14598 shlibpath_var=LD_LIBRARY_PATH 14599 shlibpath_overrides_runpath=no 14600 14601 # Some binutils ld are patched to set DT_RUNPATH 14602 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14603 $as_echo_n "(cached) " >&6 14604else 14605 lt_cv_shlibpath_overrides_runpath=no 14606 save_LDFLAGS=$LDFLAGS 14607 save_libdir=$libdir 14608 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14609 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14611/* end confdefs.h. */ 14612 14613int 14614main () 14615{ 14616 14617 ; 14618 return 0; 14619} 14620_ACEOF 14621if ac_fn_cxx_try_link "$LINENO"; then : 14622 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14623 lt_cv_shlibpath_overrides_runpath=yes 14624fi 14625fi 14626rm -f core conftest.err conftest.$ac_objext \ 14627 conftest$ac_exeext conftest.$ac_ext 14628 LDFLAGS=$save_LDFLAGS 14629 libdir=$save_libdir 14630 14631fi 14632 14633 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14634 14635 # This implies no fast_install, which is unacceptable. 14636 # Some rework will be needed to allow for fast_install 14637 # before this can be enabled. 14638 hardcode_into_libs=yes 14639 14640 # Append ld.so.conf contents to the search path 14641 if test -f /etc/ld.so.conf; then 14642 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' ' '` 14643 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14644 fi 14645 14646 # We used to test for /lib/ld.so.1 and disable shared libraries on 14647 # powerpc, because MkLinux only supported shared libraries with the 14648 # GNU dynamic linker. Since this was broken with cross compilers, 14649 # most powerpc-linux boxes support dynamic linking these days and 14650 # people can always --disable-shared, the test was removed, and we 14651 # assume the GNU/Linux dynamic linker is in use. 14652 dynamic_linker='GNU/Linux ld.so' 14653 ;; 14654 14655netbsdelf*-gnu) 14656 version_type=linux 14657 need_lib_prefix=no 14658 need_version=no 14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14660 soname_spec='${libname}${release}${shared_ext}$major' 14661 shlibpath_var=LD_LIBRARY_PATH 14662 shlibpath_overrides_runpath=no 14663 hardcode_into_libs=yes 14664 dynamic_linker='NetBSD ld.elf_so' 14665 ;; 14666 14667netbsd*) 14668 version_type=sunos 14669 need_lib_prefix=no 14670 need_version=no 14671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14674 dynamic_linker='NetBSD (a.out) ld.so' 14675 else 14676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14677 soname_spec='${libname}${release}${shared_ext}$major' 14678 dynamic_linker='NetBSD ld.elf_so' 14679 fi 14680 shlibpath_var=LD_LIBRARY_PATH 14681 shlibpath_overrides_runpath=yes 14682 hardcode_into_libs=yes 14683 ;; 14684 14685newsos6) 14686 version_type=linux # correct to gnu/linux during the next big refactor 14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14688 shlibpath_var=LD_LIBRARY_PATH 14689 shlibpath_overrides_runpath=yes 14690 ;; 14691 14692*nto* | *qnx*) 14693 version_type=qnx 14694 need_lib_prefix=no 14695 need_version=no 14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14697 soname_spec='${libname}${release}${shared_ext}$major' 14698 shlibpath_var=LD_LIBRARY_PATH 14699 shlibpath_overrides_runpath=no 14700 hardcode_into_libs=yes 14701 dynamic_linker='ldqnx.so' 14702 ;; 14703 14704openbsd*) 14705 version_type=sunos 14706 sys_lib_dlsearch_path_spec="/usr/lib" 14707 need_lib_prefix=no 14708 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14709 case $host_os in 14710 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14711 *) need_version=no ;; 14712 esac 14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14715 shlibpath_var=LD_LIBRARY_PATH 14716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14717 case $host_os in 14718 openbsd2.[89] | openbsd2.[89].*) 14719 shlibpath_overrides_runpath=no 14720 ;; 14721 *) 14722 shlibpath_overrides_runpath=yes 14723 ;; 14724 esac 14725 else 14726 shlibpath_overrides_runpath=yes 14727 fi 14728 ;; 14729 14730os2*) 14731 libname_spec='$name' 14732 shrext_cmds=".dll" 14733 need_lib_prefix=no 14734 library_names_spec='$libname${shared_ext} $libname.a' 14735 dynamic_linker='OS/2 ld.exe' 14736 shlibpath_var=LIBPATH 14737 ;; 14738 14739osf3* | osf4* | osf5*) 14740 version_type=osf 14741 need_lib_prefix=no 14742 need_version=no 14743 soname_spec='${libname}${release}${shared_ext}$major' 14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14745 shlibpath_var=LD_LIBRARY_PATH 14746 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14748 ;; 14749 14750rdos*) 14751 dynamic_linker=no 14752 ;; 14753 14754solaris*) 14755 version_type=linux # correct to gnu/linux during the next big refactor 14756 need_lib_prefix=no 14757 need_version=no 14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14759 soname_spec='${libname}${release}${shared_ext}$major' 14760 shlibpath_var=LD_LIBRARY_PATH 14761 shlibpath_overrides_runpath=yes 14762 hardcode_into_libs=yes 14763 # ldd complains unless libraries are executable 14764 postinstall_cmds='chmod +x $lib' 14765 ;; 14766 14767sunos4*) 14768 version_type=sunos 14769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14770 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14771 shlibpath_var=LD_LIBRARY_PATH 14772 shlibpath_overrides_runpath=yes 14773 if test "$with_gnu_ld" = yes; then 14774 need_lib_prefix=no 14775 fi 14776 need_version=yes 14777 ;; 14778 14779sysv4 | sysv4.3*) 14780 version_type=linux # correct to gnu/linux during the next big refactor 14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14782 soname_spec='${libname}${release}${shared_ext}$major' 14783 shlibpath_var=LD_LIBRARY_PATH 14784 case $host_vendor in 14785 sni) 14786 shlibpath_overrides_runpath=no 14787 need_lib_prefix=no 14788 runpath_var=LD_RUN_PATH 14789 ;; 14790 siemens) 14791 need_lib_prefix=no 14792 ;; 14793 motorola) 14794 need_lib_prefix=no 14795 need_version=no 14796 shlibpath_overrides_runpath=no 14797 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14798 ;; 14799 esac 14800 ;; 14801 14802sysv4*MP*) 14803 if test -d /usr/nec ;then 14804 version_type=linux # correct to gnu/linux during the next big refactor 14805 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14806 soname_spec='$libname${shared_ext}.$major' 14807 shlibpath_var=LD_LIBRARY_PATH 14808 fi 14809 ;; 14810 14811sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14812 version_type=freebsd-elf 14813 need_lib_prefix=no 14814 need_version=no 14815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14816 soname_spec='${libname}${release}${shared_ext}$major' 14817 shlibpath_var=LD_LIBRARY_PATH 14818 shlibpath_overrides_runpath=yes 14819 hardcode_into_libs=yes 14820 if test "$with_gnu_ld" = yes; then 14821 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14822 else 14823 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14824 case $host_os in 14825 sco3.2v5*) 14826 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14827 ;; 14828 esac 14829 fi 14830 sys_lib_dlsearch_path_spec='/usr/lib' 14831 ;; 14832 14833tpf*) 14834 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14835 version_type=linux # correct to gnu/linux during the next big refactor 14836 need_lib_prefix=no 14837 need_version=no 14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14839 shlibpath_var=LD_LIBRARY_PATH 14840 shlibpath_overrides_runpath=no 14841 hardcode_into_libs=yes 14842 ;; 14843 14844uts4*) 14845 version_type=linux # correct to gnu/linux during the next big refactor 14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14847 soname_spec='${libname}${release}${shared_ext}$major' 14848 shlibpath_var=LD_LIBRARY_PATH 14849 ;; 14850 14851*) 14852 dynamic_linker=no 14853 ;; 14854esac 14855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14856$as_echo "$dynamic_linker" >&6; } 14857test "$dynamic_linker" = no && can_build_shared=no 14858 14859variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14860if test "$GCC" = yes; then 14861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14862fi 14863 14864if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14865 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14866fi 14867if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14868 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14869fi 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14909$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14910hardcode_action_CXX= 14911if test -n "$hardcode_libdir_flag_spec_CXX" || 14912 test -n "$runpath_var_CXX" || 14913 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14914 14915 # We can hardcode non-existent directories. 14916 if test "$hardcode_direct_CXX" != no && 14917 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14918 # have to relink, otherwise we might link with an installed library 14919 # when we should be linking with a yet-to-be-installed one 14920 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14921 test "$hardcode_minus_L_CXX" != no; then 14922 # Linking always hardcodes the temporary library directory. 14923 hardcode_action_CXX=relink 14924 else 14925 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14926 hardcode_action_CXX=immediate 14927 fi 14928else 14929 # We cannot hardcode anything, or else we can only hardcode existing 14930 # directories. 14931 hardcode_action_CXX=unsupported 14932fi 14933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14934$as_echo "$hardcode_action_CXX" >&6; } 14935 14936if test "$hardcode_action_CXX" = relink || 14937 test "$inherit_rpath_CXX" = yes; then 14938 # Fast installation is not supported 14939 enable_fast_install=no 14940elif test "$shlibpath_overrides_runpath" = yes || 14941 test "$enable_shared" = no; then 14942 # Fast installation is not necessary 14943 enable_fast_install=needless 14944fi 14945 14946 14947 14948 14949 14950 14951 14952 fi # test -n "$compiler" 14953 14954 CC=$lt_save_CC 14955 CFLAGS=$lt_save_CFLAGS 14956 LDCXX=$LD 14957 LD=$lt_save_LD 14958 GCC=$lt_save_GCC 14959 with_gnu_ld=$lt_save_with_gnu_ld 14960 lt_cv_path_LDCXX=$lt_cv_path_LD 14961 lt_cv_path_LD=$lt_save_path_LD 14962 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14963 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14964fi # test "$_lt_caught_CXX_error" != yes 14965 14966ac_ext=c 14967ac_cpp='$CPP $CPPFLAGS' 14968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14970ac_compiler_gnu=$ac_cv_c_compiler_gnu 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 ac_config_commands="$ac_config_commands libtool" 14987 14988 14989 14990 14991# Only expand once: 14992 14993 14994 14995ac_config_headers="$ac_config_headers config.h src/include/fst/config.h" 14996 14997 14998ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/lib/Makefile src/bin/Makefile src/test/Makefile src/extensions/Makefile src/extensions/compact/Makefile src/extensions/const/Makefile src/extensions/far/Makefile src/extensions/lookahead/Makefile src/extensions/ngram/Makefile src/extensions/pdt/Makefile src/script/Makefile" 14999 15000 15001ac_ext=cpp 15002ac_cpp='$CXXCPP $CPPFLAGS' 15003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15006 15007 15008as_ac_Type=`$as_echo "ac_cv_type_std::tr1::hash<long long unsigned>" | $as_tr_sh` 15009ac_fn_cxx_check_type "$LINENO" "std::tr1::hash<long long unsigned>" "$as_ac_Type" "#include <tr1/unordered_map> 15010" 15011if eval test \"x\$"$as_ac_Type"\" = x"yes"; then : 15012 15013cat >>confdefs.h <<_ACEOF 15014#define `$as_echo "HAVE_std::tr1::hash<long long unsigned>" | $as_tr_cpp` 1 15015_ACEOF 15016 15017 15018fi 15019 15020as_ac_Type=`$as_echo "ac_cv_type___gnu_cxx::slist<int>" | $as_tr_sh` 15021ac_fn_cxx_check_type "$LINENO" "__gnu_cxx::slist<int>" "$as_ac_Type" "#include <ext/slist> 15022" 15023if eval test \"x\$"$as_ac_Type"\" = x"yes"; then : 15024 15025cat >>confdefs.h <<_ACEOF 15026#define `$as_echo "HAVE___gnu_cxx::slist<int>" | $as_tr_cpp` 1 15027_ACEOF 15028 15029 15030fi 15031 15032 15033# Check whether --enable-bin was given. 15034if test "${enable_bin+set}" = set; then : 15035 enableval=$enable_bin; 15036else 15037 enable_bin=yes 15038fi 15039 15040 if test "x$enable_bin" != xno; then 15041 HAVE_BIN_TRUE= 15042 HAVE_BIN_FALSE='#' 15043else 15044 HAVE_BIN_TRUE='#' 15045 HAVE_BIN_FALSE= 15046fi 15047 15048 if test "x$enable_bin" != xno; then 15049 HAVE_SCRIPT_TRUE= 15050 HAVE_SCRIPT_FALSE='#' 15051else 15052 HAVE_SCRIPT_TRUE='#' 15053 HAVE_SCRIPT_FALSE= 15054fi 15055 15056 15057# Check whether --enable-compact-fsts was given. 15058if test "${enable_compact_fsts+set}" = set; then : 15059 enableval=$enable_compact_fsts; 15060else 15061 enable_compact_fsts=no 15062fi 15063 15064 if test "x$enable_compact_fsts" != xno; then 15065 HAVE_COMPACT_TRUE= 15066 HAVE_COMPACT_FALSE='#' 15067else 15068 HAVE_COMPACT_TRUE='#' 15069 HAVE_COMPACT_FALSE= 15070fi 15071 15072 15073# Check whether --enable-const-fsts was given. 15074if test "${enable_const_fsts+set}" = set; then : 15075 enableval=$enable_const_fsts; 15076else 15077 enable_const_fsts=no 15078fi 15079 15080 if test "x$enable_const_fsts" != xno; then 15081 HAVE_CONST_TRUE= 15082 HAVE_CONST_FALSE='#' 15083else 15084 HAVE_CONST_TRUE='#' 15085 HAVE_CONST_FALSE= 15086fi 15087 15088 15089# Check whether --enable-far was given. 15090if test "${enable_far+set}" = set; then : 15091 enableval=$enable_far; 15092else 15093 enable_far=no 15094fi 15095 15096 if test "x$enable_far" != xno; then 15097 HAVE_FAR_TRUE= 15098 HAVE_FAR_FALSE='#' 15099else 15100 HAVE_FAR_TRUE='#' 15101 HAVE_FAR_FALSE= 15102fi 15103 15104 15105# Check whether --enable-ngram-fsts was given. 15106if test "${enable_ngram_fsts+set}" = set; then : 15107 enableval=$enable_ngram_fsts; 15108else 15109 enable_ngram_fsts=no 15110fi 15111 15112 if test "x$enable_ngram_fsts" != xno; then 15113 HAVE_NGRAM_TRUE= 15114 HAVE_NGRAM_FALSE='#' 15115else 15116 HAVE_NGRAM_TRUE='#' 15117 HAVE_NGRAM_FALSE= 15118fi 15119 15120 15121# Check whether --enable-lookahead-fsts was given. 15122if test "${enable_lookahead_fsts+set}" = set; then : 15123 enableval=$enable_lookahead_fsts; 15124else 15125 enable_lookahead_fsts=no 15126fi 15127 15128 if test "x$enable_lookahead_fsts" != xno; then 15129 HAVE_LOOKAHEAD_TRUE= 15130 HAVE_LOOKAHEAD_FALSE='#' 15131else 15132 HAVE_LOOKAHEAD_TRUE='#' 15133 HAVE_LOOKAHEAD_FALSE= 15134fi 15135 15136 15137# Check whether --enable-pdt was given. 15138if test "${enable_pdt+set}" = set; then : 15139 enableval=$enable_pdt; 15140else 15141 enable_pdt=no 15142fi 15143 15144 if test "x$enable_pdt" != xno; then 15145 HAVE_PDT_TRUE= 15146 HAVE_PDT_FALSE='#' 15147else 15148 HAVE_PDT_TRUE='#' 15149 HAVE_PDT_FALSE= 15150fi 15151 15152 15153libfstdir=${libdir}/fst 15154 15155 15156cat >confcache <<\_ACEOF 15157# This file is a shell script that caches the results of configure 15158# tests run on this system so they can be shared between configure 15159# scripts and configure runs, see configure's option --config-cache. 15160# It is not useful on other systems. If it contains results you don't 15161# want to keep, you may remove or edit it. 15162# 15163# config.status only pays attention to the cache file if you give it 15164# the --recheck option to rerun configure. 15165# 15166# `ac_cv_env_foo' variables (set or unset) will be overridden when 15167# loading this file, other *unset* `ac_cv_foo' will be assigned the 15168# following values. 15169 15170_ACEOF 15171 15172# The following way of writing the cache mishandles newlines in values, 15173# but we know of no workaround that is simple, portable, and efficient. 15174# So, we kill variables containing newlines. 15175# Ultrix sh set writes to stderr and can't be redirected directly, 15176# and sets the high bit in the cache file unless we assign to the vars. 15177( 15178 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15179 eval ac_val=\$$ac_var 15180 case $ac_val in #( 15181 *${as_nl}*) 15182 case $ac_var in #( 15183 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15184$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15185 esac 15186 case $ac_var in #( 15187 _ | IFS | as_nl) ;; #( 15188 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15189 *) { eval $ac_var=; unset $ac_var;} ;; 15190 esac ;; 15191 esac 15192 done 15193 15194 (set) 2>&1 | 15195 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15196 *${as_nl}ac_space=\ *) 15197 # `set' does not quote correctly, so add quotes: double-quote 15198 # substitution turns \\\\ into \\, and sed turns \\ into \. 15199 sed -n \ 15200 "s/'/'\\\\''/g; 15201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15202 ;; #( 15203 *) 15204 # `set' quotes correctly as required by POSIX, so do not add quotes. 15205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15206 ;; 15207 esac | 15208 sort 15209) | 15210 sed ' 15211 /^ac_cv_env_/b end 15212 t clear 15213 :clear 15214 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15215 t end 15216 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15217 :end' >>confcache 15218if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15219 if test -w "$cache_file"; then 15220 if test "x$cache_file" != "x/dev/null"; then 15221 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15222$as_echo "$as_me: updating cache $cache_file" >&6;} 15223 if test ! -f "$cache_file" || test -h "$cache_file"; then 15224 cat confcache >"$cache_file" 15225 else 15226 case $cache_file in #( 15227 */* | ?:*) 15228 mv -f confcache "$cache_file"$$ && 15229 mv -f "$cache_file"$$ "$cache_file" ;; #( 15230 *) 15231 mv -f confcache "$cache_file" ;; 15232 esac 15233 fi 15234 fi 15235 else 15236 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15237$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15238 fi 15239fi 15240rm -f confcache 15241 15242test "x$prefix" = xNONE && prefix=$ac_default_prefix 15243# Let make expand exec_prefix. 15244test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15245 15246DEFS=-DHAVE_CONFIG_H 15247 15248ac_libobjs= 15249ac_ltlibobjs= 15250U= 15251for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15252 # 1. Remove the extension, and $U if already installed. 15253 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15254 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15255 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15256 # will be set to the directory where LIBOBJS objects are built. 15257 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15258 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15259done 15260LIBOBJS=$ac_libobjs 15261 15262LTLIBOBJS=$ac_ltlibobjs 15263 15264 15265 if test -n "$EXEEXT"; then 15266 am__EXEEXT_TRUE= 15267 am__EXEEXT_FALSE='#' 15268else 15269 am__EXEEXT_TRUE='#' 15270 am__EXEEXT_FALSE= 15271fi 15272 15273if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15274 as_fn_error $? "conditional \"AMDEP\" was never defined. 15275Usually this means the macro was only invoked conditionally." "$LINENO" 5 15276fi 15277if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15278 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 15279Usually this means the macro was only invoked conditionally." "$LINENO" 5 15280fi 15281if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15282 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15283Usually this means the macro was only invoked conditionally." "$LINENO" 5 15284fi 15285if test -z "${HAVE_BIN_TRUE}" && test -z "${HAVE_BIN_FALSE}"; then 15286 as_fn_error $? "conditional \"HAVE_BIN\" was never defined. 15287Usually this means the macro was only invoked conditionally." "$LINENO" 5 15288fi 15289if test -z "${HAVE_SCRIPT_TRUE}" && test -z "${HAVE_SCRIPT_FALSE}"; then 15290 as_fn_error $? "conditional \"HAVE_SCRIPT\" was never defined. 15291Usually this means the macro was only invoked conditionally." "$LINENO" 5 15292fi 15293if test -z "${HAVE_COMPACT_TRUE}" && test -z "${HAVE_COMPACT_FALSE}"; then 15294 as_fn_error $? "conditional \"HAVE_COMPACT\" was never defined. 15295Usually this means the macro was only invoked conditionally." "$LINENO" 5 15296fi 15297if test -z "${HAVE_CONST_TRUE}" && test -z "${HAVE_CONST_FALSE}"; then 15298 as_fn_error $? "conditional \"HAVE_CONST\" was never defined. 15299Usually this means the macro was only invoked conditionally." "$LINENO" 5 15300fi 15301if test -z "${HAVE_FAR_TRUE}" && test -z "${HAVE_FAR_FALSE}"; then 15302 as_fn_error $? "conditional \"HAVE_FAR\" was never defined. 15303Usually this means the macro was only invoked conditionally." "$LINENO" 5 15304fi 15305if test -z "${HAVE_NGRAM_TRUE}" && test -z "${HAVE_NGRAM_FALSE}"; then 15306 as_fn_error $? "conditional \"HAVE_NGRAM\" was never defined. 15307Usually this means the macro was only invoked conditionally." "$LINENO" 5 15308fi 15309if test -z "${HAVE_LOOKAHEAD_TRUE}" && test -z "${HAVE_LOOKAHEAD_FALSE}"; then 15310 as_fn_error $? "conditional \"HAVE_LOOKAHEAD\" was never defined. 15311Usually this means the macro was only invoked conditionally." "$LINENO" 5 15312fi 15313if test -z "${HAVE_PDT_TRUE}" && test -z "${HAVE_PDT_FALSE}"; then 15314 as_fn_error $? "conditional \"HAVE_PDT\" was never defined. 15315Usually this means the macro was only invoked conditionally." "$LINENO" 5 15316fi 15317 15318: "${CONFIG_STATUS=./config.status}" 15319ac_write_fail=0 15320ac_clean_files_save=$ac_clean_files 15321ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15322{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15323$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15324as_write_fail=0 15325cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15326#! $SHELL 15327# Generated by $as_me. 15328# Run this file to recreate the current configuration. 15329# Compiler output produced by configure, useful for debugging 15330# configure, is in config.log if it exists. 15331 15332debug=false 15333ac_cs_recheck=false 15334ac_cs_silent=false 15335 15336SHELL=\${CONFIG_SHELL-$SHELL} 15337export SHELL 15338_ASEOF 15339cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15340## -------------------- ## 15341## M4sh Initialization. ## 15342## -------------------- ## 15343 15344# Be more Bourne compatible 15345DUALCASE=1; export DUALCASE # for MKS sh 15346if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15347 emulate sh 15348 NULLCMD=: 15349 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15350 # is contrary to our usage. Disable this feature. 15351 alias -g '${1+"$@"}'='"$@"' 15352 setopt NO_GLOB_SUBST 15353else 15354 case `(set -o) 2>/dev/null` in #( 15355 *posix*) : 15356 set -o posix ;; #( 15357 *) : 15358 ;; 15359esac 15360fi 15361 15362 15363as_nl=' 15364' 15365export as_nl 15366# Printing a long string crashes Solaris 7 /usr/bin/printf. 15367as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15368as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15369as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15370# Prefer a ksh shell builtin over an external printf program on Solaris, 15371# but without wasting forks for bash or zsh. 15372if test -z "$BASH_VERSION$ZSH_VERSION" \ 15373 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15374 as_echo='print -r --' 15375 as_echo_n='print -rn --' 15376elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15377 as_echo='printf %s\n' 15378 as_echo_n='printf %s' 15379else 15380 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15381 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15382 as_echo_n='/usr/ucb/echo -n' 15383 else 15384 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15385 as_echo_n_body='eval 15386 arg=$1; 15387 case $arg in #( 15388 *"$as_nl"*) 15389 expr "X$arg" : "X\\(.*\\)$as_nl"; 15390 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15391 esac; 15392 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15393 ' 15394 export as_echo_n_body 15395 as_echo_n='sh -c $as_echo_n_body as_echo' 15396 fi 15397 export as_echo_body 15398 as_echo='sh -c $as_echo_body as_echo' 15399fi 15400 15401# The user is always right. 15402if test "${PATH_SEPARATOR+set}" != set; then 15403 PATH_SEPARATOR=: 15404 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15405 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15406 PATH_SEPARATOR=';' 15407 } 15408fi 15409 15410 15411# IFS 15412# We need space, tab and new line, in precisely that order. Quoting is 15413# there to prevent editors from complaining about space-tab. 15414# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15415# splitting by setting IFS to empty value.) 15416IFS=" "" $as_nl" 15417 15418# Find who we are. Look in the path if we contain no directory separator. 15419as_myself= 15420case $0 in #(( 15421 *[\\/]* ) as_myself=$0 ;; 15422 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15423for as_dir in $PATH 15424do 15425 IFS=$as_save_IFS 15426 test -z "$as_dir" && as_dir=. 15427 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15428 done 15429IFS=$as_save_IFS 15430 15431 ;; 15432esac 15433# We did not find ourselves, most probably we were run as `sh COMMAND' 15434# in which case we are not to be found in the path. 15435if test "x$as_myself" = x; then 15436 as_myself=$0 15437fi 15438if test ! -f "$as_myself"; then 15439 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15440 exit 1 15441fi 15442 15443# Unset variables that we do not need and which cause bugs (e.g. in 15444# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15445# suppresses any "Segmentation fault" message there. '((' could 15446# trigger a bug in pdksh 5.2.14. 15447for as_var in BASH_ENV ENV MAIL MAILPATH 15448do eval test x\${$as_var+set} = xset \ 15449 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15450done 15451PS1='$ ' 15452PS2='> ' 15453PS4='+ ' 15454 15455# NLS nuisances. 15456LC_ALL=C 15457export LC_ALL 15458LANGUAGE=C 15459export LANGUAGE 15460 15461# CDPATH. 15462(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15463 15464 15465# as_fn_error STATUS ERROR [LINENO LOG_FD] 15466# ---------------------------------------- 15467# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15468# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15469# script with STATUS, using 1 if that was 0. 15470as_fn_error () 15471{ 15472 as_status=$1; test $as_status -eq 0 && as_status=1 15473 if test "$4"; then 15474 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15475 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15476 fi 15477 $as_echo "$as_me: error: $2" >&2 15478 as_fn_exit $as_status 15479} # as_fn_error 15480 15481 15482# as_fn_set_status STATUS 15483# ----------------------- 15484# Set $? to STATUS, without forking. 15485as_fn_set_status () 15486{ 15487 return $1 15488} # as_fn_set_status 15489 15490# as_fn_exit STATUS 15491# ----------------- 15492# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15493as_fn_exit () 15494{ 15495 set +e 15496 as_fn_set_status $1 15497 exit $1 15498} # as_fn_exit 15499 15500# as_fn_unset VAR 15501# --------------- 15502# Portably unset VAR. 15503as_fn_unset () 15504{ 15505 { eval $1=; unset $1;} 15506} 15507as_unset=as_fn_unset 15508# as_fn_append VAR VALUE 15509# ---------------------- 15510# Append the text in VALUE to the end of the definition contained in VAR. Take 15511# advantage of any shell optimizations that allow amortized linear growth over 15512# repeated appends, instead of the typical quadratic growth present in naive 15513# implementations. 15514if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15515 eval 'as_fn_append () 15516 { 15517 eval $1+=\$2 15518 }' 15519else 15520 as_fn_append () 15521 { 15522 eval $1=\$$1\$2 15523 } 15524fi # as_fn_append 15525 15526# as_fn_arith ARG... 15527# ------------------ 15528# Perform arithmetic evaluation on the ARGs, and store the result in the 15529# global $as_val. Take advantage of shells that can avoid forks. The arguments 15530# must be portable across $(()) and expr. 15531if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15532 eval 'as_fn_arith () 15533 { 15534 as_val=$(( $* )) 15535 }' 15536else 15537 as_fn_arith () 15538 { 15539 as_val=`expr "$@" || test $? -eq 1` 15540 } 15541fi # as_fn_arith 15542 15543 15544if expr a : '\(a\)' >/dev/null 2>&1 && 15545 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15546 as_expr=expr 15547else 15548 as_expr=false 15549fi 15550 15551if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15552 as_basename=basename 15553else 15554 as_basename=false 15555fi 15556 15557if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15558 as_dirname=dirname 15559else 15560 as_dirname=false 15561fi 15562 15563as_me=`$as_basename -- "$0" || 15564$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15565 X"$0" : 'X\(//\)$' \| \ 15566 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15567$as_echo X/"$0" | 15568 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15569 s//\1/ 15570 q 15571 } 15572 /^X\/\(\/\/\)$/{ 15573 s//\1/ 15574 q 15575 } 15576 /^X\/\(\/\).*/{ 15577 s//\1/ 15578 q 15579 } 15580 s/.*/./; q'` 15581 15582# Avoid depending upon Character Ranges. 15583as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15584as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15585as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15586as_cr_digits='0123456789' 15587as_cr_alnum=$as_cr_Letters$as_cr_digits 15588 15589ECHO_C= ECHO_N= ECHO_T= 15590case `echo -n x` in #((((( 15591-n*) 15592 case `echo 'xy\c'` in 15593 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15594 xy) ECHO_C='\c';; 15595 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15596 ECHO_T=' ';; 15597 esac;; 15598*) 15599 ECHO_N='-n';; 15600esac 15601 15602rm -f conf$$ conf$$.exe conf$$.file 15603if test -d conf$$.dir; then 15604 rm -f conf$$.dir/conf$$.file 15605else 15606 rm -f conf$$.dir 15607 mkdir conf$$.dir 2>/dev/null 15608fi 15609if (echo >conf$$.file) 2>/dev/null; then 15610 if ln -s conf$$.file conf$$ 2>/dev/null; then 15611 as_ln_s='ln -s' 15612 # ... but there are two gotchas: 15613 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15614 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15615 # In both cases, we have to default to `cp -p'. 15616 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15617 as_ln_s='cp -p' 15618 elif ln conf$$.file conf$$ 2>/dev/null; then 15619 as_ln_s=ln 15620 else 15621 as_ln_s='cp -p' 15622 fi 15623else 15624 as_ln_s='cp -p' 15625fi 15626rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15627rmdir conf$$.dir 2>/dev/null 15628 15629 15630# as_fn_mkdir_p 15631# ------------- 15632# Create "$as_dir" as a directory, including parents if necessary. 15633as_fn_mkdir_p () 15634{ 15635 15636 case $as_dir in #( 15637 -*) as_dir=./$as_dir;; 15638 esac 15639 test -d "$as_dir" || eval $as_mkdir_p || { 15640 as_dirs= 15641 while :; do 15642 case $as_dir in #( 15643 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15644 *) as_qdir=$as_dir;; 15645 esac 15646 as_dirs="'$as_qdir' $as_dirs" 15647 as_dir=`$as_dirname -- "$as_dir" || 15648$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15649 X"$as_dir" : 'X\(//\)[^/]' \| \ 15650 X"$as_dir" : 'X\(//\)$' \| \ 15651 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15652$as_echo X"$as_dir" | 15653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15654 s//\1/ 15655 q 15656 } 15657 /^X\(\/\/\)[^/].*/{ 15658 s//\1/ 15659 q 15660 } 15661 /^X\(\/\/\)$/{ 15662 s//\1/ 15663 q 15664 } 15665 /^X\(\/\).*/{ 15666 s//\1/ 15667 q 15668 } 15669 s/.*/./; q'` 15670 test -d "$as_dir" && break 15671 done 15672 test -z "$as_dirs" || eval "mkdir $as_dirs" 15673 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15674 15675 15676} # as_fn_mkdir_p 15677if mkdir -p . 2>/dev/null; then 15678 as_mkdir_p='mkdir -p "$as_dir"' 15679else 15680 test -d ./-p && rmdir ./-p 15681 as_mkdir_p=false 15682fi 15683 15684if test -x / >/dev/null 2>&1; then 15685 as_test_x='test -x' 15686else 15687 if ls -dL / >/dev/null 2>&1; then 15688 as_ls_L_option=L 15689 else 15690 as_ls_L_option= 15691 fi 15692 as_test_x=' 15693 eval sh -c '\'' 15694 if test -d "$1"; then 15695 test -d "$1/."; 15696 else 15697 case $1 in #( 15698 -*)set "./$1";; 15699 esac; 15700 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 15701 ???[sx]*):;;*)false;;esac;fi 15702 '\'' sh 15703 ' 15704fi 15705as_executable_p=$as_test_x 15706 15707# Sed expression to map a string onto a valid CPP name. 15708as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15709 15710# Sed expression to map a string onto a valid variable name. 15711as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15712 15713 15714exec 6>&1 15715## ----------------------------------- ## 15716## Main body of $CONFIG_STATUS script. ## 15717## ----------------------------------- ## 15718_ASEOF 15719test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15720 15721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15722# Save the log message, to keep $0 and so on meaningful, and to 15723# report actual input values of CONFIG_FILES etc. instead of their 15724# values after options handling. 15725ac_log=" 15726This file was extended by OpenFst $as_me 1.3.3, which was 15727generated by GNU Autoconf 2.68. Invocation command line was 15728 15729 CONFIG_FILES = $CONFIG_FILES 15730 CONFIG_HEADERS = $CONFIG_HEADERS 15731 CONFIG_LINKS = $CONFIG_LINKS 15732 CONFIG_COMMANDS = $CONFIG_COMMANDS 15733 $ $0 $@ 15734 15735on `(hostname || uname -n) 2>/dev/null | sed 1q` 15736" 15737 15738_ACEOF 15739 15740case $ac_config_files in *" 15741"*) set x $ac_config_files; shift; ac_config_files=$*;; 15742esac 15743 15744case $ac_config_headers in *" 15745"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15746esac 15747 15748 15749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15750# Files that config.status was made for. 15751config_files="$ac_config_files" 15752config_headers="$ac_config_headers" 15753config_commands="$ac_config_commands" 15754 15755_ACEOF 15756 15757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15758ac_cs_usage="\ 15759\`$as_me' instantiates files and other configuration actions 15760from templates according to the current configuration. Unless the files 15761and actions are specified as TAGs, all are instantiated by default. 15762 15763Usage: $0 [OPTION]... [TAG]... 15764 15765 -h, --help print this help, then exit 15766 -V, --version print version number and configuration settings, then exit 15767 --config print configuration, then exit 15768 -q, --quiet, --silent 15769 do not print progress messages 15770 -d, --debug don't remove temporary files 15771 --recheck update $as_me by reconfiguring in the same conditions 15772 --file=FILE[:TEMPLATE] 15773 instantiate the configuration file FILE 15774 --header=FILE[:TEMPLATE] 15775 instantiate the configuration header FILE 15776 15777Configuration files: 15778$config_files 15779 15780Configuration headers: 15781$config_headers 15782 15783Configuration commands: 15784$config_commands 15785 15786Report bugs to <help@www.openfst.org>." 15787 15788_ACEOF 15789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15790ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15791ac_cs_version="\\ 15792OpenFst config.status 1.3.3 15793configured by $0, generated by GNU Autoconf 2.68, 15794 with options \\"\$ac_cs_config\\" 15795 15796Copyright (C) 2010 Free Software Foundation, Inc. 15797This config.status script is free software; the Free Software Foundation 15798gives unlimited permission to copy, distribute and modify it." 15799 15800ac_pwd='$ac_pwd' 15801srcdir='$srcdir' 15802INSTALL='$INSTALL' 15803MKDIR_P='$MKDIR_P' 15804AWK='$AWK' 15805test -n "\$AWK" || AWK=awk 15806_ACEOF 15807 15808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15809# The default lists apply if the user does not specify any file. 15810ac_need_defaults=: 15811while test $# != 0 15812do 15813 case $1 in 15814 --*=?*) 15815 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15816 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15817 ac_shift=: 15818 ;; 15819 --*=) 15820 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15821 ac_optarg= 15822 ac_shift=: 15823 ;; 15824 *) 15825 ac_option=$1 15826 ac_optarg=$2 15827 ac_shift=shift 15828 ;; 15829 esac 15830 15831 case $ac_option in 15832 # Handling of the options. 15833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15834 ac_cs_recheck=: ;; 15835 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15836 $as_echo "$ac_cs_version"; exit ;; 15837 --config | --confi | --conf | --con | --co | --c ) 15838 $as_echo "$ac_cs_config"; exit ;; 15839 --debug | --debu | --deb | --de | --d | -d ) 15840 debug=: ;; 15841 --file | --fil | --fi | --f ) 15842 $ac_shift 15843 case $ac_optarg in 15844 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15845 '') as_fn_error $? "missing file argument" ;; 15846 esac 15847 as_fn_append CONFIG_FILES " '$ac_optarg'" 15848 ac_need_defaults=false;; 15849 --header | --heade | --head | --hea ) 15850 $ac_shift 15851 case $ac_optarg in 15852 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15853 esac 15854 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15855 ac_need_defaults=false;; 15856 --he | --h) 15857 # Conflict between --help and --header 15858 as_fn_error $? "ambiguous option: \`$1' 15859Try \`$0 --help' for more information.";; 15860 --help | --hel | -h ) 15861 $as_echo "$ac_cs_usage"; exit ;; 15862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15863 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15864 ac_cs_silent=: ;; 15865 15866 # This is an error. 15867 -*) as_fn_error $? "unrecognized option: \`$1' 15868Try \`$0 --help' for more information." ;; 15869 15870 *) as_fn_append ac_config_targets " $1" 15871 ac_need_defaults=false ;; 15872 15873 esac 15874 shift 15875done 15876 15877ac_configure_extra_args= 15878 15879if $ac_cs_silent; then 15880 exec 6>/dev/null 15881 ac_configure_extra_args="$ac_configure_extra_args --silent" 15882fi 15883 15884_ACEOF 15885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15886if \$ac_cs_recheck; then 15887 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15888 shift 15889 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15890 CONFIG_SHELL='$SHELL' 15891 export CONFIG_SHELL 15892 exec "\$@" 15893fi 15894 15895_ACEOF 15896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15897exec 5>>config.log 15898{ 15899 echo 15900 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15901## Running $as_me. ## 15902_ASBOX 15903 $as_echo "$ac_log" 15904} >&5 15905 15906_ACEOF 15907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15908# 15909# INIT-COMMANDS 15910# 15911AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15912 15913 15914# The HP-UX ksh and POSIX shell print the target directory to stdout 15915# if CDPATH is set. 15916(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15917 15918sed_quote_subst='$sed_quote_subst' 15919double_quote_subst='$double_quote_subst' 15920delay_variable_subst='$delay_variable_subst' 15921enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15922macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15923macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15924enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15925pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15926enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15927SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15928ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15929PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15930host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15931host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15932host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15933build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15934build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15935build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15936SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15937Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15938GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15939EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15940FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15941LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15942NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15943LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15944max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15945ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15946exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15947lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15948lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15949lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15950lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15951lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15952reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15953reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15954OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15955deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15956file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15957file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15958want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15959DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15960sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15961AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15962AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15963archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15964STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15965RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15966old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15967old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15968old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15969lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15970CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15971CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15972compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15973GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15974lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15975lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15976lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15977lt_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"`' 15978nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15979lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15980objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15981MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15982lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15983lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15984lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15985lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15986lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15987need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15988MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15989DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15990NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15991LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15992OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15993OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15994libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15995shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15996extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15997archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15998enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15999export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16000whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16001compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16002old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16003old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16004archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16005archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16006module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16007module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16008with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16009allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16010no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16011hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16012hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16013hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16014hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16015hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16016hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16017hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16018inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16019link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16020always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16021export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16022exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16023include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16024prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16025postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16026file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16027variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16028need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16029need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16030version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16031runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16032shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16033shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16034libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16035library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16036soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16037install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16038postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16039postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16040finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16041finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16042hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16043sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16044sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16045hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16046enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16047enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16048enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16049old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16050striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16051compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 16052predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 16053postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 16054predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 16055postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 16056compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 16057LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 16058reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 16059reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16060old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16061compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 16062GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 16063lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 16064lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 16065lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 16066lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 16067lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 16068archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 16069enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 16070export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16071whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16072compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 16073old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16074old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16075archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16076archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16077module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16078module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16079with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 16080allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16081no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16082hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16083hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 16084hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 16085hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 16086hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 16087hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 16088hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 16089inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 16090link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 16091always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 16092export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16093exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16094include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16095prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16096postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16097file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 16098hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 16099compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 16100predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16101postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16102predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 16103postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 16104compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 16105 16106LTCC='$LTCC' 16107LTCFLAGS='$LTCFLAGS' 16108compiler='$compiler_DEFAULT' 16109 16110# A function that is used when there is no print builtin or printf. 16111func_fallback_echo () 16112{ 16113 eval 'cat <<_LTECHO_EOF 16114\$1 16115_LTECHO_EOF' 16116} 16117 16118# Quote evaled strings. 16119for var in SHELL \ 16120ECHO \ 16121PATH_SEPARATOR \ 16122SED \ 16123GREP \ 16124EGREP \ 16125FGREP \ 16126LD \ 16127NM \ 16128LN_S \ 16129lt_SP2NL \ 16130lt_NL2SP \ 16131reload_flag \ 16132OBJDUMP \ 16133deplibs_check_method \ 16134file_magic_cmd \ 16135file_magic_glob \ 16136want_nocaseglob \ 16137DLLTOOL \ 16138sharedlib_from_linklib_cmd \ 16139AR \ 16140AR_FLAGS \ 16141archiver_list_spec \ 16142STRIP \ 16143RANLIB \ 16144CC \ 16145CFLAGS \ 16146compiler \ 16147lt_cv_sys_global_symbol_pipe \ 16148lt_cv_sys_global_symbol_to_cdecl \ 16149lt_cv_sys_global_symbol_to_c_name_address \ 16150lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16151nm_file_list_spec \ 16152lt_prog_compiler_no_builtin_flag \ 16153lt_prog_compiler_pic \ 16154lt_prog_compiler_wl \ 16155lt_prog_compiler_static \ 16156lt_cv_prog_compiler_c_o \ 16157need_locks \ 16158MANIFEST_TOOL \ 16159DSYMUTIL \ 16160NMEDIT \ 16161LIPO \ 16162OTOOL \ 16163OTOOL64 \ 16164shrext_cmds \ 16165export_dynamic_flag_spec \ 16166whole_archive_flag_spec \ 16167compiler_needs_object \ 16168with_gnu_ld \ 16169allow_undefined_flag \ 16170no_undefined_flag \ 16171hardcode_libdir_flag_spec \ 16172hardcode_libdir_separator \ 16173exclude_expsyms \ 16174include_expsyms \ 16175file_list_spec \ 16176variables_saved_for_relink \ 16177libname_spec \ 16178library_names_spec \ 16179soname_spec \ 16180install_override_mode \ 16181finish_eval \ 16182old_striplib \ 16183striplib \ 16184compiler_lib_search_dirs \ 16185predep_objects \ 16186postdep_objects \ 16187predeps \ 16188postdeps \ 16189compiler_lib_search_path \ 16190LD_CXX \ 16191reload_flag_CXX \ 16192compiler_CXX \ 16193lt_prog_compiler_no_builtin_flag_CXX \ 16194lt_prog_compiler_pic_CXX \ 16195lt_prog_compiler_wl_CXX \ 16196lt_prog_compiler_static_CXX \ 16197lt_cv_prog_compiler_c_o_CXX \ 16198export_dynamic_flag_spec_CXX \ 16199whole_archive_flag_spec_CXX \ 16200compiler_needs_object_CXX \ 16201with_gnu_ld_CXX \ 16202allow_undefined_flag_CXX \ 16203no_undefined_flag_CXX \ 16204hardcode_libdir_flag_spec_CXX \ 16205hardcode_libdir_separator_CXX \ 16206exclude_expsyms_CXX \ 16207include_expsyms_CXX \ 16208file_list_spec_CXX \ 16209compiler_lib_search_dirs_CXX \ 16210predep_objects_CXX \ 16211postdep_objects_CXX \ 16212predeps_CXX \ 16213postdeps_CXX \ 16214compiler_lib_search_path_CXX; do 16215 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16216 *[\\\\\\\`\\"\\\$]*) 16217 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16218 ;; 16219 *) 16220 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16221 ;; 16222 esac 16223done 16224 16225# Double-quote double-evaled strings. 16226for var in reload_cmds \ 16227old_postinstall_cmds \ 16228old_postuninstall_cmds \ 16229old_archive_cmds \ 16230extract_expsyms_cmds \ 16231old_archive_from_new_cmds \ 16232old_archive_from_expsyms_cmds \ 16233archive_cmds \ 16234archive_expsym_cmds \ 16235module_cmds \ 16236module_expsym_cmds \ 16237export_symbols_cmds \ 16238prelink_cmds \ 16239postlink_cmds \ 16240postinstall_cmds \ 16241postuninstall_cmds \ 16242finish_cmds \ 16243sys_lib_search_path_spec \ 16244sys_lib_dlsearch_path_spec \ 16245reload_cmds_CXX \ 16246old_archive_cmds_CXX \ 16247old_archive_from_new_cmds_CXX \ 16248old_archive_from_expsyms_cmds_CXX \ 16249archive_cmds_CXX \ 16250archive_expsym_cmds_CXX \ 16251module_cmds_CXX \ 16252module_expsym_cmds_CXX \ 16253export_symbols_cmds_CXX \ 16254prelink_cmds_CXX \ 16255postlink_cmds_CXX; do 16256 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16257 *[\\\\\\\`\\"\\\$]*) 16258 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16259 ;; 16260 *) 16261 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16262 ;; 16263 esac 16264done 16265 16266ac_aux_dir='$ac_aux_dir' 16267xsi_shell='$xsi_shell' 16268lt_shell_append='$lt_shell_append' 16269 16270# See if we are running on zsh, and set the options which allow our 16271# commands through without removal of \ escapes INIT. 16272if test -n "\${ZSH_VERSION+set}" ; then 16273 setopt NO_GLOB_SUBST 16274fi 16275 16276 16277 PACKAGE='$PACKAGE' 16278 VERSION='$VERSION' 16279 TIMESTAMP='$TIMESTAMP' 16280 RM='$RM' 16281 ofile='$ofile' 16282 16283 16284 16285 16286 16287 16288_ACEOF 16289 16290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16291 16292# Handling of arguments. 16293for ac_config_target in $ac_config_targets 16294do 16295 case $ac_config_target in 16296 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16297 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16298 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16299 "src/include/fst/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/fst/config.h" ;; 16300 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16301 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16302 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;; 16303 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; 16304 "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;; 16305 "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;; 16306 "src/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/Makefile" ;; 16307 "src/extensions/compact/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compact/Makefile" ;; 16308 "src/extensions/const/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/const/Makefile" ;; 16309 "src/extensions/far/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/far/Makefile" ;; 16310 "src/extensions/lookahead/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/lookahead/Makefile" ;; 16311 "src/extensions/ngram/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/ngram/Makefile" ;; 16312 "src/extensions/pdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/pdt/Makefile" ;; 16313 "src/script/Makefile") CONFIG_FILES="$CONFIG_FILES src/script/Makefile" ;; 16314 16315 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16316 esac 16317done 16318 16319 16320# If the user did not use the arguments to specify the items to instantiate, 16321# then the envvar interface is used. Set only those that are not. 16322# We use the long form for the default assignment because of an extremely 16323# bizarre bug on SunOS 4.1.3. 16324if $ac_need_defaults; then 16325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16327 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16328fi 16329 16330# Have a temporary directory for convenience. Make it in the build tree 16331# simply because there is no reason against having it here, and in addition, 16332# creating and moving files from /tmp can sometimes cause problems. 16333# Hook for its removal unless debugging. 16334# Note that there is a small window in which the directory will not be cleaned: 16335# after its creation but before its name has been assigned to `$tmp'. 16336$debug || 16337{ 16338 tmp= ac_tmp= 16339 trap 'exit_status=$? 16340 : "${ac_tmp:=$tmp}" 16341 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16342' 0 16343 trap 'as_fn_exit 1' 1 2 13 15 16344} 16345# Create a (secure) tmp directory for tmp files. 16346 16347{ 16348 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16349 test -d "$tmp" 16350} || 16351{ 16352 tmp=./conf$$-$RANDOM 16353 (umask 077 && mkdir "$tmp") 16354} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16355ac_tmp=$tmp 16356 16357# Set up the scripts for CONFIG_FILES section. 16358# No need to generate them if there are no CONFIG_FILES. 16359# This happens for instance with `./config.status config.h'. 16360if test -n "$CONFIG_FILES"; then 16361 16362 16363ac_cr=`echo X | tr X '\015'` 16364# On cygwin, bash can eat \r inside `` if the user requested igncr. 16365# But we know of no other shell where ac_cr would be empty at this 16366# point, so we can use a bashism as a fallback. 16367if test "x$ac_cr" = x; then 16368 eval ac_cr=\$\'\\r\' 16369fi 16370ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16371if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16372 ac_cs_awk_cr='\\r' 16373else 16374 ac_cs_awk_cr=$ac_cr 16375fi 16376 16377echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16378_ACEOF 16379 16380 16381{ 16382 echo "cat >conf$$subs.awk <<_ACEOF" && 16383 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16384 echo "_ACEOF" 16385} >conf$$subs.sh || 16386 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16387ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16388ac_delim='%!_!# ' 16389for ac_last_try in false false false false false :; do 16390 . ./conf$$subs.sh || 16391 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16392 16393 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16394 if test $ac_delim_n = $ac_delim_num; then 16395 break 16396 elif $ac_last_try; then 16397 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16398 else 16399 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16400 fi 16401done 16402rm -f conf$$subs.sh 16403 16404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16405cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16406_ACEOF 16407sed -n ' 16408h 16409s/^/S["/; s/!.*/"]=/ 16410p 16411g 16412s/^[^!]*!// 16413:repl 16414t repl 16415s/'"$ac_delim"'$// 16416t delim 16417:nl 16418h 16419s/\(.\{148\}\)..*/\1/ 16420t more1 16421s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16422p 16423n 16424b repl 16425:more1 16426s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16427p 16428g 16429s/.\{148\}// 16430t nl 16431:delim 16432h 16433s/\(.\{148\}\)..*/\1/ 16434t more2 16435s/["\\]/\\&/g; s/^/"/; s/$/"/ 16436p 16437b 16438:more2 16439s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16440p 16441g 16442s/.\{148\}// 16443t delim 16444' <conf$$subs.awk | sed ' 16445/^[^""]/{ 16446 N 16447 s/\n// 16448} 16449' >>$CONFIG_STATUS || ac_write_fail=1 16450rm -f conf$$subs.awk 16451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16452_ACAWK 16453cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16454 for (key in S) S_is_set[key] = 1 16455 FS = "" 16456 16457} 16458{ 16459 line = $ 0 16460 nfields = split(line, field, "@") 16461 substed = 0 16462 len = length(field[1]) 16463 for (i = 2; i < nfields; i++) { 16464 key = field[i] 16465 keylen = length(key) 16466 if (S_is_set[key]) { 16467 value = S[key] 16468 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16469 len += length(value) + length(field[++i]) 16470 substed = 1 16471 } else 16472 len += 1 + keylen 16473 } 16474 16475 print line 16476} 16477 16478_ACAWK 16479_ACEOF 16480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16481if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16482 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16483else 16484 cat 16485fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16486 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16487_ACEOF 16488 16489# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16490# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16491# trailing colons and then remove the whole line if VPATH becomes empty 16492# (actually we leave an empty line to preserve line numbers). 16493if test "x$srcdir" = x.; then 16494 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16495h 16496s/// 16497s/^/:/ 16498s/[ ]*$/:/ 16499s/:\$(srcdir):/:/g 16500s/:\${srcdir}:/:/g 16501s/:@srcdir@:/:/g 16502s/^:*// 16503s/:*$// 16504x 16505s/\(=[ ]*\).*/\1/ 16506G 16507s/\n// 16508s/^[^=]*=[ ]*$// 16509}' 16510fi 16511 16512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16513fi # test -n "$CONFIG_FILES" 16514 16515# Set up the scripts for CONFIG_HEADERS section. 16516# No need to generate them if there are no CONFIG_HEADERS. 16517# This happens for instance with `./config.status Makefile'. 16518if test -n "$CONFIG_HEADERS"; then 16519cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16520BEGIN { 16521_ACEOF 16522 16523# Transform confdefs.h into an awk script `defines.awk', embedded as 16524# here-document in config.status, that substitutes the proper values into 16525# config.h.in to produce config.h. 16526 16527# Create a delimiter string that does not exist in confdefs.h, to ease 16528# handling of long lines. 16529ac_delim='%!_!# ' 16530for ac_last_try in false false :; do 16531 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16532 if test -z "$ac_tt"; then 16533 break 16534 elif $ac_last_try; then 16535 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16536 else 16537 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16538 fi 16539done 16540 16541# For the awk script, D is an array of macro values keyed by name, 16542# likewise P contains macro parameters if any. Preserve backslash 16543# newline sequences. 16544 16545ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16546sed -n ' 16547s/.\{148\}/&'"$ac_delim"'/g 16548t rset 16549:rset 16550s/^[ ]*#[ ]*define[ ][ ]*/ / 16551t def 16552d 16553:def 16554s/\\$// 16555t bsnl 16556s/["\\]/\\&/g 16557s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16558D["\1"]=" \3"/p 16559s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16560d 16561:bsnl 16562s/["\\]/\\&/g 16563s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16564D["\1"]=" \3\\\\\\n"\\/p 16565t cont 16566s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16567t cont 16568d 16569:cont 16570n 16571s/.\{148\}/&'"$ac_delim"'/g 16572t clear 16573:clear 16574s/\\$// 16575t bsnlc 16576s/["\\]/\\&/g; s/^/"/; s/$/"/p 16577d 16578:bsnlc 16579s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16580b cont 16581' <confdefs.h | sed ' 16582s/'"$ac_delim"'/"\\\ 16583"/g' >>$CONFIG_STATUS || ac_write_fail=1 16584 16585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16586 for (key in D) D_is_set[key] = 1 16587 FS = "" 16588} 16589/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16590 line = \$ 0 16591 split(line, arg, " ") 16592 if (arg[1] == "#") { 16593 defundef = arg[2] 16594 mac1 = arg[3] 16595 } else { 16596 defundef = substr(arg[1], 2) 16597 mac1 = arg[2] 16598 } 16599 split(mac1, mac2, "(") #) 16600 macro = mac2[1] 16601 prefix = substr(line, 1, index(line, defundef) - 1) 16602 if (D_is_set[macro]) { 16603 # Preserve the white space surrounding the "#". 16604 print prefix "define", macro P[macro] D[macro] 16605 next 16606 } else { 16607 # Replace #undef with comments. This is necessary, for example, 16608 # in the case of _POSIX_SOURCE, which is predefined and required 16609 # on some systems where configure will not decide to define it. 16610 if (defundef == "undef") { 16611 print "/*", prefix defundef, macro, "*/" 16612 next 16613 } 16614 } 16615} 16616{ print } 16617_ACAWK 16618_ACEOF 16619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16620 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16621fi # test -n "$CONFIG_HEADERS" 16622 16623 16624eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16625shift 16626for ac_tag 16627do 16628 case $ac_tag in 16629 :[FHLC]) ac_mode=$ac_tag; continue;; 16630 esac 16631 case $ac_mode$ac_tag in 16632 :[FHL]*:*);; 16633 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16634 :[FH]-) ac_tag=-:-;; 16635 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16636 esac 16637 ac_save_IFS=$IFS 16638 IFS=: 16639 set x $ac_tag 16640 IFS=$ac_save_IFS 16641 shift 16642 ac_file=$1 16643 shift 16644 16645 case $ac_mode in 16646 :L) ac_source=$1;; 16647 :[FH]) 16648 ac_file_inputs= 16649 for ac_f 16650 do 16651 case $ac_f in 16652 -) ac_f="$ac_tmp/stdin";; 16653 *) # Look for the file first in the build tree, then in the source tree 16654 # (if the path is not absolute). The absolute path cannot be DOS-style, 16655 # because $ac_f cannot contain `:'. 16656 test -f "$ac_f" || 16657 case $ac_f in 16658 [\\/$]*) false;; 16659 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16660 esac || 16661 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16662 esac 16663 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16664 as_fn_append ac_file_inputs " '$ac_f'" 16665 done 16666 16667 # Let's still pretend it is `configure' which instantiates (i.e., don't 16668 # use $as_me), people would be surprised to read: 16669 # /* config.h. Generated by config.status. */ 16670 configure_input='Generated from '` 16671 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16672 `' by configure.' 16673 if test x"$ac_file" != x-; then 16674 configure_input="$ac_file. $configure_input" 16675 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16676$as_echo "$as_me: creating $ac_file" >&6;} 16677 fi 16678 # Neutralize special characters interpreted by sed in replacement strings. 16679 case $configure_input in #( 16680 *\&* | *\|* | *\\* ) 16681 ac_sed_conf_input=`$as_echo "$configure_input" | 16682 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16683 *) ac_sed_conf_input=$configure_input;; 16684 esac 16685 16686 case $ac_tag in 16687 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16688 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16689 esac 16690 ;; 16691 esac 16692 16693 ac_dir=`$as_dirname -- "$ac_file" || 16694$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16695 X"$ac_file" : 'X\(//\)[^/]' \| \ 16696 X"$ac_file" : 'X\(//\)$' \| \ 16697 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16698$as_echo X"$ac_file" | 16699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16700 s//\1/ 16701 q 16702 } 16703 /^X\(\/\/\)[^/].*/{ 16704 s//\1/ 16705 q 16706 } 16707 /^X\(\/\/\)$/{ 16708 s//\1/ 16709 q 16710 } 16711 /^X\(\/\).*/{ 16712 s//\1/ 16713 q 16714 } 16715 s/.*/./; q'` 16716 as_dir="$ac_dir"; as_fn_mkdir_p 16717 ac_builddir=. 16718 16719case "$ac_dir" in 16720.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16721*) 16722 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16723 # A ".." for each directory in $ac_dir_suffix. 16724 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16725 case $ac_top_builddir_sub in 16726 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16727 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16728 esac ;; 16729esac 16730ac_abs_top_builddir=$ac_pwd 16731ac_abs_builddir=$ac_pwd$ac_dir_suffix 16732# for backward compatibility: 16733ac_top_builddir=$ac_top_build_prefix 16734 16735case $srcdir in 16736 .) # We are building in place. 16737 ac_srcdir=. 16738 ac_top_srcdir=$ac_top_builddir_sub 16739 ac_abs_top_srcdir=$ac_pwd ;; 16740 [\\/]* | ?:[\\/]* ) # Absolute name. 16741 ac_srcdir=$srcdir$ac_dir_suffix; 16742 ac_top_srcdir=$srcdir 16743 ac_abs_top_srcdir=$srcdir ;; 16744 *) # Relative name. 16745 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16746 ac_top_srcdir=$ac_top_build_prefix$srcdir 16747 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16748esac 16749ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16750 16751 16752 case $ac_mode in 16753 :F) 16754 # 16755 # CONFIG_FILE 16756 # 16757 16758 case $INSTALL in 16759 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16760 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16761 esac 16762 ac_MKDIR_P=$MKDIR_P 16763 case $MKDIR_P in 16764 [\\/$]* | ?:[\\/]* ) ;; 16765 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16766 esac 16767_ACEOF 16768 16769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16770# If the template does not know about datarootdir, expand it. 16771# FIXME: This hack should be removed a few years after 2.60. 16772ac_datarootdir_hack=; ac_datarootdir_seen= 16773ac_sed_dataroot=' 16774/datarootdir/ { 16775 p 16776 q 16777} 16778/@datadir@/p 16779/@docdir@/p 16780/@infodir@/p 16781/@localedir@/p 16782/@mandir@/p' 16783case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16784*datarootdir*) ac_datarootdir_seen=yes;; 16785*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16787$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16788_ACEOF 16789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16790 ac_datarootdir_hack=' 16791 s&@datadir@&$datadir&g 16792 s&@docdir@&$docdir&g 16793 s&@infodir@&$infodir&g 16794 s&@localedir@&$localedir&g 16795 s&@mandir@&$mandir&g 16796 s&\\\${datarootdir}&$datarootdir&g' ;; 16797esac 16798_ACEOF 16799 16800# Neutralize VPATH when `$srcdir' = `.'. 16801# Shell code in configure.ac might set extrasub. 16802# FIXME: do we really want to maintain this feature? 16803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16804ac_sed_extra="$ac_vpsub 16805$extrasub 16806_ACEOF 16807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16808:t 16809/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16810s|@configure_input@|$ac_sed_conf_input|;t t 16811s&@top_builddir@&$ac_top_builddir_sub&;t t 16812s&@top_build_prefix@&$ac_top_build_prefix&;t t 16813s&@srcdir@&$ac_srcdir&;t t 16814s&@abs_srcdir@&$ac_abs_srcdir&;t t 16815s&@top_srcdir@&$ac_top_srcdir&;t t 16816s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16817s&@builddir@&$ac_builddir&;t t 16818s&@abs_builddir@&$ac_abs_builddir&;t t 16819s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16820s&@INSTALL@&$ac_INSTALL&;t t 16821s&@MKDIR_P@&$ac_MKDIR_P&;t t 16822$ac_datarootdir_hack 16823" 16824eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16825 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16826 16827test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16828 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16829 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16830 "$ac_tmp/out"`; test -z "$ac_out"; } && 16831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16832which seems to be undefined. Please make sure it is defined" >&5 16833$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16834which seems to be undefined. Please make sure it is defined" >&2;} 16835 16836 rm -f "$ac_tmp/stdin" 16837 case $ac_file in 16838 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16839 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16840 esac \ 16841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16842 ;; 16843 :H) 16844 # 16845 # CONFIG_HEADER 16846 # 16847 if test x"$ac_file" != x-; then 16848 { 16849 $as_echo "/* $configure_input */" \ 16850 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16851 } >"$ac_tmp/config.h" \ 16852 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16853 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16854 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16855$as_echo "$as_me: $ac_file is unchanged" >&6;} 16856 else 16857 rm -f "$ac_file" 16858 mv "$ac_tmp/config.h" "$ac_file" \ 16859 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16860 fi 16861 else 16862 $as_echo "/* $configure_input */" \ 16863 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16864 || as_fn_error $? "could not create -" "$LINENO" 5 16865 fi 16866# Compute "$ac_file"'s index in $config_headers. 16867_am_arg="$ac_file" 16868_am_stamp_count=1 16869for _am_header in $config_headers :; do 16870 case $_am_header in 16871 $_am_arg | $_am_arg:* ) 16872 break ;; 16873 * ) 16874 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16875 esac 16876done 16877echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16878$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16879 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16880 X"$_am_arg" : 'X\(//\)$' \| \ 16881 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16882$as_echo X"$_am_arg" | 16883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16884 s//\1/ 16885 q 16886 } 16887 /^X\(\/\/\)[^/].*/{ 16888 s//\1/ 16889 q 16890 } 16891 /^X\(\/\/\)$/{ 16892 s//\1/ 16893 q 16894 } 16895 /^X\(\/\).*/{ 16896 s//\1/ 16897 q 16898 } 16899 s/.*/./; q'`/stamp-h$_am_stamp_count 16900 ;; 16901 16902 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16903$as_echo "$as_me: executing $ac_file commands" >&6;} 16904 ;; 16905 esac 16906 16907 16908 case $ac_file$ac_mode in 16909 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16910 # Autoconf 2.62 quotes --file arguments for eval, but not when files 16911 # are listed without --file. Let's play safe and only enable the eval 16912 # if we detect the quoting. 16913 case $CONFIG_FILES in 16914 *\'*) eval set x "$CONFIG_FILES" ;; 16915 *) set x $CONFIG_FILES ;; 16916 esac 16917 shift 16918 for mf 16919 do 16920 # Strip MF so we end up with the name of the file. 16921 mf=`echo "$mf" | sed -e 's/:.*$//'` 16922 # Check whether this is an Automake generated Makefile or not. 16923 # We used to match only the files named `Makefile.in', but 16924 # some people rename them; so instead we look at the file content. 16925 # Grep'ing the first line is not enough: some people post-process 16926 # each Makefile.in and add a new line on top of each file to say so. 16927 # Grep'ing the whole file is not good either: AIX grep has a line 16928 # limit of 2048, but all sed's we know have understand at least 4000. 16929 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16930 dirpart=`$as_dirname -- "$mf" || 16931$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16932 X"$mf" : 'X\(//\)[^/]' \| \ 16933 X"$mf" : 'X\(//\)$' \| \ 16934 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16935$as_echo X"$mf" | 16936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16937 s//\1/ 16938 q 16939 } 16940 /^X\(\/\/\)[^/].*/{ 16941 s//\1/ 16942 q 16943 } 16944 /^X\(\/\/\)$/{ 16945 s//\1/ 16946 q 16947 } 16948 /^X\(\/\).*/{ 16949 s//\1/ 16950 q 16951 } 16952 s/.*/./; q'` 16953 else 16954 continue 16955 fi 16956 # Extract the definition of DEPDIR, am__include, and am__quote 16957 # from the Makefile without running `make'. 16958 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16959 test -z "$DEPDIR" && continue 16960 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16961 test -z "am__include" && continue 16962 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16963 # When using ansi2knr, U may be empty or an underscore; expand it 16964 U=`sed -n 's/^U = //p' < "$mf"` 16965 # Find all dependency output files, they are included files with 16966 # $(DEPDIR) in their names. We invoke sed twice because it is the 16967 # simplest approach to changing $(DEPDIR) to its actual value in the 16968 # expansion. 16969 for file in `sed -n " 16970 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16971 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16972 # Make sure the directory exists. 16973 test -f "$dirpart/$file" && continue 16974 fdir=`$as_dirname -- "$file" || 16975$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16976 X"$file" : 'X\(//\)[^/]' \| \ 16977 X"$file" : 'X\(//\)$' \| \ 16978 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16979$as_echo X"$file" | 16980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16981 s//\1/ 16982 q 16983 } 16984 /^X\(\/\/\)[^/].*/{ 16985 s//\1/ 16986 q 16987 } 16988 /^X\(\/\/\)$/{ 16989 s//\1/ 16990 q 16991 } 16992 /^X\(\/\).*/{ 16993 s//\1/ 16994 q 16995 } 16996 s/.*/./; q'` 16997 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16998 # echo "creating $dirpart/$file" 16999 echo '# dummy' > "$dirpart/$file" 17000 done 17001 done 17002} 17003 ;; 17004 "libtool":C) 17005 17006 # See if we are running on zsh, and set the options which allow our 17007 # commands through without removal of \ escapes. 17008 if test -n "${ZSH_VERSION+set}" ; then 17009 setopt NO_GLOB_SUBST 17010 fi 17011 17012 cfgfile="${ofile}T" 17013 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17014 $RM "$cfgfile" 17015 17016 cat <<_LT_EOF >> "$cfgfile" 17017#! $SHELL 17018 17019# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17020# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17021# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17022# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17023# 17024# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17025# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 17026# Foundation, Inc. 17027# Written by Gordon Matzigkeit, 1996 17028# 17029# This file is part of GNU Libtool. 17030# 17031# GNU Libtool is free software; you can redistribute it and/or 17032# modify it under the terms of the GNU General Public License as 17033# published by the Free Software Foundation; either version 2 of 17034# the License, or (at your option) any later version. 17035# 17036# As a special exception to the GNU General Public License, 17037# if you distribute this file as part of a program or library that 17038# is built using GNU Libtool, you may include this file under the 17039# same distribution terms that you use for the rest of that program. 17040# 17041# GNU Libtool is distributed in the hope that it will be useful, 17042# but WITHOUT ANY WARRANTY; without even the implied warranty of 17043# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17044# GNU General Public License for more details. 17045# 17046# You should have received a copy of the GNU General Public License 17047# along with GNU Libtool; see the file COPYING. If not, a copy 17048# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17049# obtained by writing to the Free Software Foundation, Inc., 17050# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17051 17052 17053# The names of the tagged configurations supported by this script. 17054available_tags="CXX " 17055 17056# ### BEGIN LIBTOOL CONFIG 17057 17058# Whether or not to build static libraries. 17059build_old_libs=$enable_static 17060 17061# Which release of libtool.m4 was used? 17062macro_version=$macro_version 17063macro_revision=$macro_revision 17064 17065# Whether or not to build shared libraries. 17066build_libtool_libs=$enable_shared 17067 17068# What type of objects to build. 17069pic_mode=$pic_mode 17070 17071# Whether or not to optimize for fast installation. 17072fast_install=$enable_fast_install 17073 17074# Shell to use when invoking shell scripts. 17075SHELL=$lt_SHELL 17076 17077# An echo program that protects backslashes. 17078ECHO=$lt_ECHO 17079 17080# The PATH separator for the build system. 17081PATH_SEPARATOR=$lt_PATH_SEPARATOR 17082 17083# The host system. 17084host_alias=$host_alias 17085host=$host 17086host_os=$host_os 17087 17088# The build system. 17089build_alias=$build_alias 17090build=$build 17091build_os=$build_os 17092 17093# A sed program that does not truncate output. 17094SED=$lt_SED 17095 17096# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17097Xsed="\$SED -e 1s/^X//" 17098 17099# A grep program that handles long lines. 17100GREP=$lt_GREP 17101 17102# An ERE matcher. 17103EGREP=$lt_EGREP 17104 17105# A literal string matcher. 17106FGREP=$lt_FGREP 17107 17108# A BSD- or MS-compatible name lister. 17109NM=$lt_NM 17110 17111# Whether we need soft or hard links. 17112LN_S=$lt_LN_S 17113 17114# What is the maximum length of a command? 17115max_cmd_len=$max_cmd_len 17116 17117# Object file suffix (normally "o"). 17118objext=$ac_objext 17119 17120# Executable file suffix (normally ""). 17121exeext=$exeext 17122 17123# whether the shell understands "unset". 17124lt_unset=$lt_unset 17125 17126# turn spaces into newlines. 17127SP2NL=$lt_lt_SP2NL 17128 17129# turn newlines into spaces. 17130NL2SP=$lt_lt_NL2SP 17131 17132# convert \$build file names to \$host format. 17133to_host_file_cmd=$lt_cv_to_host_file_cmd 17134 17135# convert \$build files to toolchain format. 17136to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17137 17138# An object symbol dumper. 17139OBJDUMP=$lt_OBJDUMP 17140 17141# Method to check whether dependent libraries are shared objects. 17142deplibs_check_method=$lt_deplibs_check_method 17143 17144# Command to use when deplibs_check_method = "file_magic". 17145file_magic_cmd=$lt_file_magic_cmd 17146 17147# How to find potential files when deplibs_check_method = "file_magic". 17148file_magic_glob=$lt_file_magic_glob 17149 17150# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17151want_nocaseglob=$lt_want_nocaseglob 17152 17153# DLL creation program. 17154DLLTOOL=$lt_DLLTOOL 17155 17156# Command to associate shared and link libraries. 17157sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17158 17159# The archiver. 17160AR=$lt_AR 17161 17162# Flags to create an archive. 17163AR_FLAGS=$lt_AR_FLAGS 17164 17165# How to feed a file listing to the archiver. 17166archiver_list_spec=$lt_archiver_list_spec 17167 17168# A symbol stripping program. 17169STRIP=$lt_STRIP 17170 17171# Commands used to install an old-style archive. 17172RANLIB=$lt_RANLIB 17173old_postinstall_cmds=$lt_old_postinstall_cmds 17174old_postuninstall_cmds=$lt_old_postuninstall_cmds 17175 17176# Whether to use a lock for old archive extraction. 17177lock_old_archive_extraction=$lock_old_archive_extraction 17178 17179# A C compiler. 17180LTCC=$lt_CC 17181 17182# LTCC compiler flags. 17183LTCFLAGS=$lt_CFLAGS 17184 17185# Take the output of nm and produce a listing of raw symbols and C names. 17186global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17187 17188# Transform the output of nm in a proper C declaration. 17189global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17190 17191# Transform the output of nm in a C name address pair. 17192global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17193 17194# Transform the output of nm in a C name address pair when lib prefix is needed. 17195global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17196 17197# Specify filename containing input files for \$NM. 17198nm_file_list_spec=$lt_nm_file_list_spec 17199 17200# The root where to search for dependent libraries,and in which our libraries should be installed. 17201lt_sysroot=$lt_sysroot 17202 17203# The name of the directory that contains temporary libtool files. 17204objdir=$objdir 17205 17206# Used to examine libraries when file_magic_cmd begins with "file". 17207MAGIC_CMD=$MAGIC_CMD 17208 17209# Must we lock files when doing compilation? 17210need_locks=$lt_need_locks 17211 17212# Manifest tool. 17213MANIFEST_TOOL=$lt_MANIFEST_TOOL 17214 17215# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17216DSYMUTIL=$lt_DSYMUTIL 17217 17218# Tool to change global to local symbols on Mac OS X. 17219NMEDIT=$lt_NMEDIT 17220 17221# Tool to manipulate fat objects and archives on Mac OS X. 17222LIPO=$lt_LIPO 17223 17224# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17225OTOOL=$lt_OTOOL 17226 17227# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17228OTOOL64=$lt_OTOOL64 17229 17230# Old archive suffix (normally "a"). 17231libext=$libext 17232 17233# Shared library suffix (normally ".so"). 17234shrext_cmds=$lt_shrext_cmds 17235 17236# The commands to extract the exported symbol list from a shared archive. 17237extract_expsyms_cmds=$lt_extract_expsyms_cmds 17238 17239# Variables whose values should be saved in libtool wrapper scripts and 17240# restored at link time. 17241variables_saved_for_relink=$lt_variables_saved_for_relink 17242 17243# Do we need the "lib" prefix for modules? 17244need_lib_prefix=$need_lib_prefix 17245 17246# Do we need a version for libraries? 17247need_version=$need_version 17248 17249# Library versioning type. 17250version_type=$version_type 17251 17252# Shared library runtime path variable. 17253runpath_var=$runpath_var 17254 17255# Shared library path variable. 17256shlibpath_var=$shlibpath_var 17257 17258# Is shlibpath searched before the hard-coded library search path? 17259shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17260 17261# Format of library name prefix. 17262libname_spec=$lt_libname_spec 17263 17264# List of archive names. First name is the real one, the rest are links. 17265# The last name is the one that the linker finds with -lNAME 17266library_names_spec=$lt_library_names_spec 17267 17268# The coded name of the library, if different from the real name. 17269soname_spec=$lt_soname_spec 17270 17271# Permission mode override for installation of shared libraries. 17272install_override_mode=$lt_install_override_mode 17273 17274# Command to use after installation of a shared archive. 17275postinstall_cmds=$lt_postinstall_cmds 17276 17277# Command to use after uninstallation of a shared archive. 17278postuninstall_cmds=$lt_postuninstall_cmds 17279 17280# Commands used to finish a libtool library installation in a directory. 17281finish_cmds=$lt_finish_cmds 17282 17283# As "finish_cmds", except a single script fragment to be evaled but 17284# not shown. 17285finish_eval=$lt_finish_eval 17286 17287# Whether we should hardcode library paths into libraries. 17288hardcode_into_libs=$hardcode_into_libs 17289 17290# Compile-time system search path for libraries. 17291sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17292 17293# Run-time system search path for libraries. 17294sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17295 17296# Whether dlopen is supported. 17297dlopen_support=$enable_dlopen 17298 17299# Whether dlopen of programs is supported. 17300dlopen_self=$enable_dlopen_self 17301 17302# Whether dlopen of statically linked programs is supported. 17303dlopen_self_static=$enable_dlopen_self_static 17304 17305# Commands to strip libraries. 17306old_striplib=$lt_old_striplib 17307striplib=$lt_striplib 17308 17309 17310# The linker used to build libraries. 17311LD=$lt_LD 17312 17313# How to create reloadable object files. 17314reload_flag=$lt_reload_flag 17315reload_cmds=$lt_reload_cmds 17316 17317# Commands used to build an old-style archive. 17318old_archive_cmds=$lt_old_archive_cmds 17319 17320# A language specific compiler. 17321CC=$lt_compiler 17322 17323# Is the compiler the GNU compiler? 17324with_gcc=$GCC 17325 17326# Compiler flag to turn off builtin functions. 17327no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17328 17329# Additional compiler flags for building library objects. 17330pic_flag=$lt_lt_prog_compiler_pic 17331 17332# How to pass a linker flag through the compiler. 17333wl=$lt_lt_prog_compiler_wl 17334 17335# Compiler flag to prevent dynamic linking. 17336link_static_flag=$lt_lt_prog_compiler_static 17337 17338# Does compiler simultaneously support -c and -o options? 17339compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17340 17341# Whether or not to add -lc for building shared libraries. 17342build_libtool_need_lc=$archive_cmds_need_lc 17343 17344# Whether or not to disallow shared libs when runtime libs are static. 17345allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17346 17347# Compiler flag to allow reflexive dlopens. 17348export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17349 17350# Compiler flag to generate shared objects directly from archives. 17351whole_archive_flag_spec=$lt_whole_archive_flag_spec 17352 17353# Whether the compiler copes with passing no objects directly. 17354compiler_needs_object=$lt_compiler_needs_object 17355 17356# Create an old-style archive from a shared archive. 17357old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17358 17359# Create a temporary old-style archive to link instead of a shared archive. 17360old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17361 17362# Commands used to build a shared archive. 17363archive_cmds=$lt_archive_cmds 17364archive_expsym_cmds=$lt_archive_expsym_cmds 17365 17366# Commands used to build a loadable module if different from building 17367# a shared archive. 17368module_cmds=$lt_module_cmds 17369module_expsym_cmds=$lt_module_expsym_cmds 17370 17371# Whether we are building with GNU ld or not. 17372with_gnu_ld=$lt_with_gnu_ld 17373 17374# Flag that allows shared libraries with undefined symbols to be built. 17375allow_undefined_flag=$lt_allow_undefined_flag 17376 17377# Flag that enforces no undefined symbols. 17378no_undefined_flag=$lt_no_undefined_flag 17379 17380# Flag to hardcode \$libdir into a binary during linking. 17381# This must work even if \$libdir does not exist 17382hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17383 17384# Whether we need a single "-rpath" flag with a separated argument. 17385hardcode_libdir_separator=$lt_hardcode_libdir_separator 17386 17387# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17388# DIR into the resulting binary. 17389hardcode_direct=$hardcode_direct 17390 17391# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17392# DIR into the resulting binary and the resulting library dependency is 17393# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17394# library is relocated. 17395hardcode_direct_absolute=$hardcode_direct_absolute 17396 17397# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17398# into the resulting binary. 17399hardcode_minus_L=$hardcode_minus_L 17400 17401# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17402# into the resulting binary. 17403hardcode_shlibpath_var=$hardcode_shlibpath_var 17404 17405# Set to "yes" if building a shared library automatically hardcodes DIR 17406# into the library and all subsequent libraries and executables linked 17407# against it. 17408hardcode_automatic=$hardcode_automatic 17409 17410# Set to yes if linker adds runtime paths of dependent libraries 17411# to runtime path list. 17412inherit_rpath=$inherit_rpath 17413 17414# Whether libtool must link a program against all its dependency libraries. 17415link_all_deplibs=$link_all_deplibs 17416 17417# Set to "yes" if exported symbols are required. 17418always_export_symbols=$always_export_symbols 17419 17420# The commands to list exported symbols. 17421export_symbols_cmds=$lt_export_symbols_cmds 17422 17423# Symbols that should not be listed in the preloaded symbols. 17424exclude_expsyms=$lt_exclude_expsyms 17425 17426# Symbols that must always be exported. 17427include_expsyms=$lt_include_expsyms 17428 17429# Commands necessary for linking programs (against libraries) with templates. 17430prelink_cmds=$lt_prelink_cmds 17431 17432# Commands necessary for finishing linking programs. 17433postlink_cmds=$lt_postlink_cmds 17434 17435# Specify filename containing input files. 17436file_list_spec=$lt_file_list_spec 17437 17438# How to hardcode a shared library path into an executable. 17439hardcode_action=$hardcode_action 17440 17441# The directories searched by this compiler when creating a shared library. 17442compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 17443 17444# Dependencies to place before and after the objects being linked to 17445# create a shared library. 17446predep_objects=$lt_predep_objects 17447postdep_objects=$lt_postdep_objects 17448predeps=$lt_predeps 17449postdeps=$lt_postdeps 17450 17451# The library search path used internally by the compiler when linking 17452# a shared library. 17453compiler_lib_search_path=$lt_compiler_lib_search_path 17454 17455# ### END LIBTOOL CONFIG 17456 17457_LT_EOF 17458 17459 case $host_os in 17460 aix3*) 17461 cat <<\_LT_EOF >> "$cfgfile" 17462# AIX sometimes has problems with the GCC collect2 program. For some 17463# reason, if we set the COLLECT_NAMES environment variable, the problems 17464# vanish in a puff of smoke. 17465if test "X${COLLECT_NAMES+set}" != Xset; then 17466 COLLECT_NAMES= 17467 export COLLECT_NAMES 17468fi 17469_LT_EOF 17470 ;; 17471 esac 17472 17473 17474ltmain="$ac_aux_dir/ltmain.sh" 17475 17476 17477 # We use sed instead of cat because bash on DJGPP gets confused if 17478 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17479 # text mode, it properly converts lines to CR/LF. This bash problem 17480 # is reportedly fixed, but why not run on old versions too? 17481 sed '$q' "$ltmain" >> "$cfgfile" \ 17482 || (rm -f "$cfgfile"; exit 1) 17483 17484 if test x"$xsi_shell" = xyes; then 17485 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 17486func_dirname ()\ 17487{\ 17488\ case ${1} in\ 17489\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17490\ * ) func_dirname_result="${3}" ;;\ 17491\ esac\ 17492} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 17493 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17494 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17495test 0 -eq $? || _lt_function_replace_fail=: 17496 17497 17498 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 17499func_basename ()\ 17500{\ 17501\ func_basename_result="${1##*/}"\ 17502} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17503 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17504 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17505test 0 -eq $? || _lt_function_replace_fail=: 17506 17507 17508 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 17509func_dirname_and_basename ()\ 17510{\ 17511\ case ${1} in\ 17512\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17513\ * ) func_dirname_result="${3}" ;;\ 17514\ esac\ 17515\ func_basename_result="${1##*/}"\ 17516} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17517 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17518 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17519test 0 -eq $? || _lt_function_replace_fail=: 17520 17521 17522 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 17523func_stripname ()\ 17524{\ 17525\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 17526\ # positional parameters, so assign one to ordinary parameter first.\ 17527\ func_stripname_result=${3}\ 17528\ func_stripname_result=${func_stripname_result#"${1}"}\ 17529\ func_stripname_result=${func_stripname_result%"${2}"}\ 17530} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 17531 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17532 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17533test 0 -eq $? || _lt_function_replace_fail=: 17534 17535 17536 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 17537func_split_long_opt ()\ 17538{\ 17539\ func_split_long_opt_name=${1%%=*}\ 17540\ func_split_long_opt_arg=${1#*=}\ 17541} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17542 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17544test 0 -eq $? || _lt_function_replace_fail=: 17545 17546 17547 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 17548func_split_short_opt ()\ 17549{\ 17550\ func_split_short_opt_arg=${1#??}\ 17551\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 17552} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17553 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17554 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17555test 0 -eq $? || _lt_function_replace_fail=: 17556 17557 17558 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 17559func_lo2o ()\ 17560{\ 17561\ case ${1} in\ 17562\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 17563\ *) func_lo2o_result=${1} ;;\ 17564\ esac\ 17565} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 17566 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17567 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17568test 0 -eq $? || _lt_function_replace_fail=: 17569 17570 17571 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 17572func_xform ()\ 17573{\ 17574 func_xform_result=${1%.*}.lo\ 17575} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 17576 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17577 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17578test 0 -eq $? || _lt_function_replace_fail=: 17579 17580 17581 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 17582func_arith ()\ 17583{\ 17584 func_arith_result=$(( $* ))\ 17585} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 17586 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17587 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17588test 0 -eq $? || _lt_function_replace_fail=: 17589 17590 17591 sed -e '/^func_len ()$/,/^} # func_len /c\ 17592func_len ()\ 17593{\ 17594 func_len_result=${#1}\ 17595} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 17596 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17597 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17598test 0 -eq $? || _lt_function_replace_fail=: 17599 17600fi 17601 17602if test x"$lt_shell_append" = xyes; then 17603 sed -e '/^func_append ()$/,/^} # func_append /c\ 17604func_append ()\ 17605{\ 17606 eval "${1}+=\\${2}"\ 17607} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 17608 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17610test 0 -eq $? || _lt_function_replace_fail=: 17611 17612 17613 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 17614func_append_quoted ()\ 17615{\ 17616\ func_quote_for_eval "${2}"\ 17617\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 17618} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 17619 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17621test 0 -eq $? || _lt_function_replace_fail=: 17622 17623 17624 # Save a `func_append' function call where possible by direct use of '+=' 17625 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 17626 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17627 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17628 test 0 -eq $? || _lt_function_replace_fail=: 17629else 17630 # Save a `func_append' function call even when '+=' is not available 17631 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 17632 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17633 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17634 test 0 -eq $? || _lt_function_replace_fail=: 17635fi 17636 17637if test x"$_lt_function_replace_fail" = x":"; then 17638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 17639$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 17640fi 17641 17642 17643 mv -f "$cfgfile" "$ofile" || 17644 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17645 chmod +x "$ofile" 17646 17647 17648 cat <<_LT_EOF >> "$ofile" 17649 17650# ### BEGIN LIBTOOL TAG CONFIG: CXX 17651 17652# The linker used to build libraries. 17653LD=$lt_LD_CXX 17654 17655# How to create reloadable object files. 17656reload_flag=$lt_reload_flag_CXX 17657reload_cmds=$lt_reload_cmds_CXX 17658 17659# Commands used to build an old-style archive. 17660old_archive_cmds=$lt_old_archive_cmds_CXX 17661 17662# A language specific compiler. 17663CC=$lt_compiler_CXX 17664 17665# Is the compiler the GNU compiler? 17666with_gcc=$GCC_CXX 17667 17668# Compiler flag to turn off builtin functions. 17669no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 17670 17671# Additional compiler flags for building library objects. 17672pic_flag=$lt_lt_prog_compiler_pic_CXX 17673 17674# How to pass a linker flag through the compiler. 17675wl=$lt_lt_prog_compiler_wl_CXX 17676 17677# Compiler flag to prevent dynamic linking. 17678link_static_flag=$lt_lt_prog_compiler_static_CXX 17679 17680# Does compiler simultaneously support -c and -o options? 17681compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 17682 17683# Whether or not to add -lc for building shared libraries. 17684build_libtool_need_lc=$archive_cmds_need_lc_CXX 17685 17686# Whether or not to disallow shared libs when runtime libs are static. 17687allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 17688 17689# Compiler flag to allow reflexive dlopens. 17690export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 17691 17692# Compiler flag to generate shared objects directly from archives. 17693whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 17694 17695# Whether the compiler copes with passing no objects directly. 17696compiler_needs_object=$lt_compiler_needs_object_CXX 17697 17698# Create an old-style archive from a shared archive. 17699old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 17700 17701# Create a temporary old-style archive to link instead of a shared archive. 17702old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 17703 17704# Commands used to build a shared archive. 17705archive_cmds=$lt_archive_cmds_CXX 17706archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 17707 17708# Commands used to build a loadable module if different from building 17709# a shared archive. 17710module_cmds=$lt_module_cmds_CXX 17711module_expsym_cmds=$lt_module_expsym_cmds_CXX 17712 17713# Whether we are building with GNU ld or not. 17714with_gnu_ld=$lt_with_gnu_ld_CXX 17715 17716# Flag that allows shared libraries with undefined symbols to be built. 17717allow_undefined_flag=$lt_allow_undefined_flag_CXX 17718 17719# Flag that enforces no undefined symbols. 17720no_undefined_flag=$lt_no_undefined_flag_CXX 17721 17722# Flag to hardcode \$libdir into a binary during linking. 17723# This must work even if \$libdir does not exist 17724hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 17725 17726# Whether we need a single "-rpath" flag with a separated argument. 17727hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 17728 17729# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17730# DIR into the resulting binary. 17731hardcode_direct=$hardcode_direct_CXX 17732 17733# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17734# DIR into the resulting binary and the resulting library dependency is 17735# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17736# library is relocated. 17737hardcode_direct_absolute=$hardcode_direct_absolute_CXX 17738 17739# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17740# into the resulting binary. 17741hardcode_minus_L=$hardcode_minus_L_CXX 17742 17743# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17744# into the resulting binary. 17745hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 17746 17747# Set to "yes" if building a shared library automatically hardcodes DIR 17748# into the library and all subsequent libraries and executables linked 17749# against it. 17750hardcode_automatic=$hardcode_automatic_CXX 17751 17752# Set to yes if linker adds runtime paths of dependent libraries 17753# to runtime path list. 17754inherit_rpath=$inherit_rpath_CXX 17755 17756# Whether libtool must link a program against all its dependency libraries. 17757link_all_deplibs=$link_all_deplibs_CXX 17758 17759# Set to "yes" if exported symbols are required. 17760always_export_symbols=$always_export_symbols_CXX 17761 17762# The commands to list exported symbols. 17763export_symbols_cmds=$lt_export_symbols_cmds_CXX 17764 17765# Symbols that should not be listed in the preloaded symbols. 17766exclude_expsyms=$lt_exclude_expsyms_CXX 17767 17768# Symbols that must always be exported. 17769include_expsyms=$lt_include_expsyms_CXX 17770 17771# Commands necessary for linking programs (against libraries) with templates. 17772prelink_cmds=$lt_prelink_cmds_CXX 17773 17774# Commands necessary for finishing linking programs. 17775postlink_cmds=$lt_postlink_cmds_CXX 17776 17777# Specify filename containing input files. 17778file_list_spec=$lt_file_list_spec_CXX 17779 17780# How to hardcode a shared library path into an executable. 17781hardcode_action=$hardcode_action_CXX 17782 17783# The directories searched by this compiler when creating a shared library. 17784compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 17785 17786# Dependencies to place before and after the objects being linked to 17787# create a shared library. 17788predep_objects=$lt_predep_objects_CXX 17789postdep_objects=$lt_postdep_objects_CXX 17790predeps=$lt_predeps_CXX 17791postdeps=$lt_postdeps_CXX 17792 17793# The library search path used internally by the compiler when linking 17794# a shared library. 17795compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 17796 17797# ### END LIBTOOL TAG CONFIG: CXX 17798_LT_EOF 17799 17800 ;; 17801 17802 esac 17803done # for ac_tag 17804 17805 17806as_fn_exit 0 17807_ACEOF 17808ac_clean_files=$ac_clean_files_save 17809 17810test $ac_write_fail = 0 || 17811 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17812 17813 17814# configure is writing to config.log, and then calls config.status. 17815# config.status does its own redirection, appending to config.log. 17816# Unfortunately, on DOS this fails, as config.log is still kept open 17817# by configure, so config.status won't be able to write to it; its 17818# output is simply discarded. So we exec the FD to /dev/null, 17819# effectively closing config.log, so it can be properly (re)opened and 17820# appended to by config.status. When coming back to configure, we 17821# need to make the FD available again. 17822if test "$no_create" != yes; then 17823 ac_cs_success=: 17824 ac_config_status_args= 17825 test "$silent" = yes && 17826 ac_config_status_args="$ac_config_status_args --quiet" 17827 exec 5>/dev/null 17828 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17829 exec 5>>config.log 17830 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17831 # would make configure fail if this is the last instruction. 17832 $ac_cs_success || as_fn_exit 1 17833fi 17834if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17836$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17837fi 17838 17839