1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for newlib 2.4.0. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8# Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137if test "x$CONFIG_SHELL" = x; then 138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 139 emulate sh 140 NULLCMD=: 141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 142 # is contrary to our usage. Disable this feature. 143 alias -g '\${1+\"\$@\"}'='\"\$@\"' 144 setopt NO_GLOB_SUBST 145else 146 case \`(set -o) 2>/dev/null\` in #( 147 *posix*) : 148 set -o posix ;; #( 149 *) : 150 ;; 151esac 152fi 153" 154 as_required="as_fn_return () { (exit \$1); } 155as_fn_success () { as_fn_return 0; } 156as_fn_failure () { as_fn_return 1; } 157as_fn_ret_success () { return 0; } 158as_fn_ret_failure () { return 1; } 159 160exitcode=0 161as_fn_success || { exitcode=1; echo as_fn_success failed.; } 162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 166 167else 168 exitcode=1; echo positional parameters were not saved. 169fi 170test x\$exitcode = x0 || exit 1" 171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 175test \$(( 1 + 1 )) = 2 || exit 1 176 177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 PATH=/empty FPATH=/empty; export PATH FPATH 182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 184 if (eval "$as_required") 2>/dev/null; then : 185 as_have_required=yes 186else 187 as_have_required=no 188fi 189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 190 191else 192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 193as_found=false 194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 195do 196 IFS=$as_save_IFS 197 test -z "$as_dir" && as_dir=. 198 as_found=: 199 case $as_dir in #( 200 /*) 201 for as_base in sh bash ksh sh5; do 202 # Try only shells that exist, to save several forks. 203 as_shell=$as_dir/$as_base 204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 206 CONFIG_SHELL=$as_shell as_have_required=yes 207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 break 2 209fi 210fi 211 done;; 212 esac 213 as_found=false 214done 215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 217 CONFIG_SHELL=$SHELL as_have_required=yes 218fi; } 219IFS=$as_save_IFS 220 221 222 if test "x$CONFIG_SHELL" != x; then : 223 # We cannot yet assume a decent shell, so we have to provide a 224 # neutralization value for shells without unset; and this also 225 # works around shells that cannot unset nonexistent variables. 226 # Preserve -v and -x to the replacement shell. 227 BASH_ENV=/dev/null 228 ENV=/dev/null 229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 230 export CONFIG_SHELL 231 case $- in # (((( 232 *v*x* | *x*v* ) as_opts=-vx ;; 233 *v* ) as_opts=-v ;; 234 *x* ) as_opts=-x ;; 235 * ) as_opts= ;; 236 esac 237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 238fi 239 240 if test x$as_have_required = xno; then : 241 $as_echo "$0: This script requires a shell more modern than all" 242 $as_echo "$0: the shells that I found on your system." 243 if test x${ZSH_VERSION+set} = xset ; then 244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 245 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 246 else 247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 248$0: including any error possibly output before this 249$0: message. Then install a modern shell, or manually run 250$0: the script under such a shell if you do have one." 251 fi 252 exit 1 253fi 254fi 255fi 256SHELL=${CONFIG_SHELL-/bin/sh} 257export SHELL 258# Unset more variables known to interfere with behavior of common tools. 259CLICOLOR_FORCE= GREP_OPTIONS= 260unset CLICOLOR_FORCE GREP_OPTIONS 261 262## --------------------- ## 263## M4sh Shell Functions. ## 264## --------------------- ## 265# as_fn_unset VAR 266# --------------- 267# Portably unset VAR. 268as_fn_unset () 269{ 270 { eval $1=; unset $1;} 271} 272as_unset=as_fn_unset 273 274# as_fn_set_status STATUS 275# ----------------------- 276# Set $? to STATUS, without forking. 277as_fn_set_status () 278{ 279 return $1 280} # as_fn_set_status 281 282# as_fn_exit STATUS 283# ----------------- 284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 285as_fn_exit () 286{ 287 set +e 288 as_fn_set_status $1 289 exit $1 290} # as_fn_exit 291 292# as_fn_mkdir_p 293# ------------- 294# Create "$as_dir" as a directory, including parents if necessary. 295as_fn_mkdir_p () 296{ 297 298 case $as_dir in #( 299 -*) as_dir=./$as_dir;; 300 esac 301 test -d "$as_dir" || eval $as_mkdir_p || { 302 as_dirs= 303 while :; do 304 case $as_dir in #( 305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 306 *) as_qdir=$as_dir;; 307 esac 308 as_dirs="'$as_qdir' $as_dirs" 309 as_dir=`$as_dirname -- "$as_dir" || 310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 311 X"$as_dir" : 'X\(//\)[^/]' \| \ 312 X"$as_dir" : 'X\(//\)$' \| \ 313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 314$as_echo X"$as_dir" | 315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)[^/].*/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)$/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\).*/{ 328 s//\1/ 329 q 330 } 331 s/.*/./; q'` 332 test -d "$as_dir" && break 333 done 334 test -z "$as_dirs" || eval "mkdir $as_dirs" 335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 336 337 338} # as_fn_mkdir_p 339# as_fn_append VAR VALUE 340# ---------------------- 341# Append the text in VALUE to the end of the definition contained in VAR. Take 342# advantage of any shell optimizations that allow amortized linear growth over 343# repeated appends, instead of the typical quadratic growth present in naive 344# implementations. 345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 346 eval 'as_fn_append () 347 { 348 eval $1+=\$2 349 }' 350else 351 as_fn_append () 352 { 353 eval $1=\$$1\$2 354 } 355fi # as_fn_append 356 357# as_fn_arith ARG... 358# ------------------ 359# Perform arithmetic evaluation on the ARGs, and store the result in the 360# global $as_val. Take advantage of shells that can avoid forks. The arguments 361# must be portable across $(()) and expr. 362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 363 eval 'as_fn_arith () 364 { 365 as_val=$(( $* )) 366 }' 367else 368 as_fn_arith () 369 { 370 as_val=`expr "$@" || test $? -eq 1` 371 } 372fi # as_fn_arith 373 374 375# as_fn_error STATUS ERROR [LINENO LOG_FD] 376# ---------------------------------------- 377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 379# script with STATUS, using 1 if that was 0. 380as_fn_error () 381{ 382 as_status=$1; test $as_status -eq 0 && as_status=1 383 if test "$4"; then 384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 386 fi 387 $as_echo "$as_me: error: $2" >&2 388 as_fn_exit $as_status 389} # as_fn_error 390 391if expr a : '\(a\)' >/dev/null 2>&1 && 392 test "X`expr 00001 : '.*\(...\)'`" = X001; then 393 as_expr=expr 394else 395 as_expr=false 396fi 397 398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 399 as_basename=basename 400else 401 as_basename=false 402fi 403 404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 405 as_dirname=dirname 406else 407 as_dirname=false 408fi 409 410as_me=`$as_basename -- "$0" || 411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 412 X"$0" : 'X\(//\)$' \| \ 413 X"$0" : 'X\(/\)' \| . 2>/dev/null || 414$as_echo X/"$0" | 415 sed '/^.*\/\([^/][^/]*\)\/*$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\/\)$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\).*/{ 424 s//\1/ 425 q 426 } 427 s/.*/./; q'` 428 429# Avoid depending upon Character Ranges. 430as_cr_letters='abcdefghijklmnopqrstuvwxyz' 431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 432as_cr_Letters=$as_cr_letters$as_cr_LETTERS 433as_cr_digits='0123456789' 434as_cr_alnum=$as_cr_Letters$as_cr_digits 435 436 437 as_lineno_1=$LINENO as_lineno_1a=$LINENO 438 as_lineno_2=$LINENO as_lineno_2a=$LINENO 439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 442 sed -n ' 443 p 444 /[$]LINENO/= 445 ' <$as_myself | 446 sed ' 447 s/[$]LINENO.*/&-/ 448 t lineno 449 b 450 :lineno 451 N 452 :loop 453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 454 t loop 455 s/-\n.*// 456 ' >$as_me.lineno && 457 chmod +x "$as_me.lineno" || 458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 459 460 # Don't try to exec as it changes $[0], causing all sort of problems 461 # (the dirname of $[0] is not the place where we might find the 462 # original and so on. Autoconf is especially sensitive to this). 463 . "./$as_me.lineno" 464 # Exit status is that of the last command. 465 exit 466} 467 468ECHO_C= ECHO_N= ECHO_T= 469case `echo -n x` in #((((( 470-n*) 471 case `echo 'xy\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 xy) ECHO_C='\c';; 474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 475 ECHO_T=' ';; 476 esac;; 477*) 478 ECHO_N='-n';; 479esac 480 481rm -f conf$$ conf$$.exe conf$$.file 482if test -d conf$$.dir; then 483 rm -f conf$$.dir/conf$$.file 484else 485 rm -f conf$$.dir 486 mkdir conf$$.dir 2>/dev/null 487fi 488if (echo >conf$$.file) 2>/dev/null; then 489 if ln -s conf$$.file conf$$ 2>/dev/null; then 490 as_ln_s='ln -s' 491 # ... but there are two gotchas: 492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 494 # In both cases, we have to default to `cp -p'. 495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 496 as_ln_s='cp -p' 497 elif ln conf$$.file conf$$ 2>/dev/null; then 498 as_ln_s=ln 499 else 500 as_ln_s='cp -p' 501 fi 502else 503 as_ln_s='cp -p' 504fi 505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 506rmdir conf$$.dir 2>/dev/null 507 508if mkdir -p . 2>/dev/null; then 509 as_mkdir_p='mkdir -p "$as_dir"' 510else 511 test -d ./-p && rmdir ./-p 512 as_mkdir_p=false 513fi 514 515if test -x / >/dev/null 2>&1; then 516 as_test_x='test -x' 517else 518 if ls -dL / >/dev/null 2>&1; then 519 as_ls_L_option=L 520 else 521 as_ls_L_option= 522 fi 523 as_test_x=' 524 eval sh -c '\'' 525 if test -d "$1"; then 526 test -d "$1/."; 527 else 528 case $1 in #( 529 -*)set "./$1";; 530 esac; 531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 532 ???[sx]*):;;*)false;;esac;fi 533 '\'' sh 534 ' 535fi 536as_executable_p=$as_test_x 537 538# Sed expression to map a string onto a valid CPP name. 539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 540 541# Sed expression to map a string onto a valid variable name. 542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 543 544SHELL=${CONFIG_SHELL-/bin/sh} 545 546 547test -n "$DJDIR" || exec 7<&0 </dev/null 548exec 6>&1 549 550# Name of the host. 551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 552# so uname gets run too. 553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 554 555# 556# Initializations. 557# 558ac_default_prefix=/usr/local 559ac_clean_files= 560ac_config_libobj_dir=. 561LIBOBJS= 562cross_compiling=no 563subdirs= 564MFLAGS= 565MAKEFLAGS= 566 567# Identity of this package. 568PACKAGE_NAME='newlib' 569PACKAGE_TARNAME='newlib' 570PACKAGE_VERSION='2.4.0' 571PACKAGE_STRING='newlib 2.4.0' 572PACKAGE_BUGREPORT='' 573PACKAGE_URL='' 574 575ac_unique_file="jis0201.c" 576# Factoring default headers for most tests. 577ac_includes_default="\ 578#include <stdio.h> 579#ifdef HAVE_SYS_TYPES_H 580# include <sys/types.h> 581#endif 582#ifdef HAVE_SYS_STAT_H 583# include <sys/stat.h> 584#endif 585#ifdef STDC_HEADERS 586# include <stdlib.h> 587# include <stddef.h> 588#else 589# ifdef HAVE_STDLIB_H 590# include <stdlib.h> 591# endif 592#endif 593#ifdef HAVE_STRING_H 594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 595# include <memory.h> 596# endif 597# include <string.h> 598#endif 599#ifdef HAVE_STRINGS_H 600# include <strings.h> 601#endif 602#ifdef HAVE_INTTYPES_H 603# include <inttypes.h> 604#endif 605#ifdef HAVE_STDINT_H 606# include <stdint.h> 607#endif 608#ifdef HAVE_UNISTD_H 609# include <unistd.h> 610#endif" 611 612ac_subst_vars='am__EXEEXT_FALSE 613am__EXEEXT_TRUE 614LTLIBOBJS 615LIBOBJS 616CPP 617OTOOL64 618OTOOL 619LIPO 620NMEDIT 621DSYMUTIL 622LN_S 623NM 624ac_ct_DUMPBIN 625DUMPBIN 626LD 627FGREP 628EGREP 629GREP 630EXEEXT 631ac_ct_CC 632CPPFLAGS 633CFLAGS 634LIBTOOL 635OBJDUMP 636DLLTOOL 637SED 638sys_dir 639machine_dir 640libm_machine_dir 641lpfx 642aext 643oext 644OBJEXT 645USE_LIBTOOL_FALSE 646USE_LIBTOOL_TRUE 647ELIX_LEVEL_4_FALSE 648ELIX_LEVEL_4_TRUE 649ELIX_LEVEL_3_FALSE 650ELIX_LEVEL_3_TRUE 651ELIX_LEVEL_2_FALSE 652ELIX_LEVEL_2_TRUE 653ELIX_LEVEL_1_FALSE 654ELIX_LEVEL_1_TRUE 655ELIX_LEVEL_0_FALSE 656ELIX_LEVEL_0_TRUE 657LDFLAGS 658NO_INCLUDE_LIST 659NEWLIB_CFLAGS 660CCASFLAGS 661CCAS 662MAINT 663MAINTAINER_MODE_FALSE 664MAINTAINER_MODE_TRUE 665READELF 666RANLIB 667AR 668AS 669am__fastdepCC_FALSE 670am__fastdepCC_TRUE 671CCDEPMODE 672am__nodep 673AMDEPBACKSLASH 674AMDEP_FALSE 675AMDEP_TRUE 676am__quote 677am__include 678DEPDIR 679CC 680am__untar 681am__tar 682AMTAR 683am__leading_dot 684SET_MAKE 685AWK 686mkdir_p 687MKDIR_P 688INSTALL_STRIP_PROGRAM 689STRIP 690install_sh 691MAKEINFO 692AUTOHEADER 693AUTOMAKE 694AUTOCONF 695ACLOCAL 696VERSION 697PACKAGE 698CYGPATH_W 699am__isrc 700INSTALL_DATA 701INSTALL_SCRIPT 702INSTALL_PROGRAM 703host_os 704host_vendor 705host_cpu 706host 707build_os 708build_vendor 709build_cpu 710build 711newlib_basedir 712MAY_SUPPLY_SYSCALLS_FALSE 713MAY_SUPPLY_SYSCALLS_TRUE 714target_alias 715host_alias 716build_alias 717LIBS 718ECHO_T 719ECHO_N 720ECHO_C 721DEFS 722mandir 723localedir 724libdir 725psdir 726pdfdir 727dvidir 728htmldir 729infodir 730docdir 731oldincludedir 732includedir 733localstatedir 734sharedstatedir 735sysconfdir 736datadir 737datarootdir 738libexecdir 739sbindir 740bindir 741program_transform_name 742prefix 743exec_prefix 744PACKAGE_URL 745PACKAGE_BUGREPORT 746PACKAGE_STRING 747PACKAGE_VERSION 748PACKAGE_TARNAME 749PACKAGE_NAME 750PATH_SEPARATOR 751SHELL' 752ac_subst_files='' 753ac_user_opts=' 754enable_option_checking 755enable_multilib 756enable_target_optspace 757enable_malloc_debugging 758enable_newlib_multithread 759enable_newlib_iconv 760enable_newlib_elix_level 761enable_newlib_io_float 762enable_newlib_supplied_syscalls 763enable_dependency_tracking 764enable_maintainer_mode 765enable_shared 766enable_static 767with_pic 768enable_fast_install 769with_gnu_ld 770enable_libtool_lock 771' 772 ac_precious_vars='build_alias 773host_alias 774target_alias 775CCAS 776CCASFLAGS 777CC 778CFLAGS 779LDFLAGS 780LIBS 781CPPFLAGS 782CPP' 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 newlib 2.4.0 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/newlib] 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 newlib 2.4.0:";; 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 --enable-multilib build many library versions (default) 1404 --enable-target-optspace optimize for space 1405 --enable-malloc-debugging indicate malloc debugging requested 1406 --enable-newlib-multithread enable support for multiple threads 1407 --enable-newlib-iconv enable iconv library support 1408 --enable-newlib-elix-level supply desired elix library level (1-4) 1409 --disable-newlib-io-float disable printf/scanf family float support 1410 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls 1411 --disable-dependency-tracking speeds up one-time build 1412 --enable-dependency-tracking do not reject slow dependency extractors 1413 --enable-maintainer-mode enable make rules and dependencies not useful 1414 (and sometimes confusing) to the casual installer 1415 --enable-shared[=PKGS] build shared libraries [default=yes] 1416 --enable-static[=PKGS] build static libraries [default=yes] 1417 --enable-fast-install[=PKGS] 1418 optimize for fast installation [default=yes] 1419 --disable-libtool-lock avoid locking (might break parallel builds) 1420 1421Optional Packages: 1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1424 --with-pic try to use only PIC/non-PIC objects [default=use 1425 both] 1426 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1427 1428Some influential environment variables: 1429 CCAS assembler compiler command (defaults to CC) 1430 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1431 CC C compiler command 1432 CFLAGS C compiler flags 1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1434 nonstandard directory <lib dir> 1435 LIBS libraries to pass to the linker, e.g. -l<library> 1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1437 you have headers in a nonstandard directory <include dir> 1438 CPP 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 the package provider. 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 1506newlib configure 2.4.0 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_c_try_compile LINENO 1521# -------------------------- 1522# Try to compile conftest.$ac_ext, and return whether this succeeded. 1523ac_fn_c_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_c_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_c_try_compile 1557 1558# ac_fn_c_try_link LINENO 1559# ----------------------- 1560# Try to link conftest.$ac_ext, and return whether this succeeded. 1561ac_fn_c_try_link () 1562{ 1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1564 rm -f conftest.$ac_objext conftest$ac_exeext 1565 if { { ac_try="$ac_link" 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_link") 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_exeext && { 1584 test "$cross_compiling" = yes || 1585 $as_test_x conftest$ac_exeext 1586 }; then : 1587 ac_retval=0 1588else 1589 $as_echo "$as_me: failed program was:" >&5 1590sed 's/^/| /' conftest.$ac_ext >&5 1591 1592 ac_retval=1 1593fi 1594 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1595 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1596 # interfere with the next link command; also delete a directory that is 1597 # left behind by Apple's compiler. We do this before executing the actions. 1598 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1600 as_fn_set_status $ac_retval 1601 1602} # ac_fn_c_try_link 1603 1604# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1605# ------------------------------------------------------- 1606# Tests whether HEADER exists and can be compiled using the include files in 1607# INCLUDES, setting the cache variable VAR accordingly. 1608ac_fn_c_check_header_compile () 1609{ 1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1612$as_echo_n "checking for $2... " >&6; } 1613if eval \${$3+:} false; then : 1614 $as_echo_n "(cached) " >&6 1615else 1616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1617/* end confdefs.h. */ 1618$4 1619#include <$2> 1620_ACEOF 1621if ac_fn_c_try_compile "$LINENO"; then : 1622 eval "$3=yes" 1623else 1624 eval "$3=no" 1625fi 1626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1627fi 1628eval ac_res=\$$3 1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1630$as_echo "$ac_res" >&6; } 1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1632 1633} # ac_fn_c_check_header_compile 1634 1635# ac_fn_c_try_cpp LINENO 1636# ---------------------- 1637# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1638ac_fn_c_try_cpp () 1639{ 1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1641 if { { ac_try="$ac_cpp conftest.$ac_ext" 1642case "(($ac_try" in 1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1644 *) ac_try_echo=$ac_try;; 1645esac 1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1647$as_echo "$ac_try_echo"; } >&5 1648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1649 ac_status=$? 1650 if test -s conftest.err; then 1651 grep -v '^ *+' conftest.err >conftest.er1 1652 cat conftest.er1 >&5 1653 mv -f conftest.er1 conftest.err 1654 fi 1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1656 test $ac_status = 0; } > conftest.i && { 1657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1658 test ! -s conftest.err 1659 }; then : 1660 ac_retval=0 1661else 1662 $as_echo "$as_me: failed program was:" >&5 1663sed 's/^/| /' conftest.$ac_ext >&5 1664 1665 ac_retval=1 1666fi 1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1668 as_fn_set_status $ac_retval 1669 1670} # ac_fn_c_try_cpp 1671 1672# ac_fn_c_try_run LINENO 1673# ---------------------- 1674# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1675# that executables *can* be run. 1676ac_fn_c_try_run () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 if { { ac_try="$ac_link" 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_link") 2>&5 1687 ac_status=$? 1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1689 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1690 { { case "(($ac_try" in 1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1692 *) ac_try_echo=$ac_try;; 1693esac 1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1695$as_echo "$ac_try_echo"; } >&5 1696 (eval "$ac_try") 2>&5 1697 ac_status=$? 1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1699 test $ac_status = 0; }; }; then : 1700 ac_retval=0 1701else 1702 $as_echo "$as_me: program exited with status $ac_status" >&5 1703 $as_echo "$as_me: failed program was:" >&5 1704sed 's/^/| /' conftest.$ac_ext >&5 1705 1706 ac_retval=$ac_status 1707fi 1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1710 as_fn_set_status $ac_retval 1711 1712} # ac_fn_c_try_run 1713 1714# ac_fn_c_check_func LINENO FUNC VAR 1715# ---------------------------------- 1716# Tests whether FUNC exists, setting the cache variable VAR accordingly 1717ac_fn_c_check_func () 1718{ 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1721$as_echo_n "checking for $2... " >&6; } 1722if eval \${$3+:} false; then : 1723 $as_echo_n "(cached) " >&6 1724else 1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1726/* end confdefs.h. */ 1727/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1728 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1729#define $2 innocuous_$2 1730 1731/* System header to define __stub macros and hopefully few prototypes, 1732 which can conflict with char $2 (); below. 1733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1734 <limits.h> exists even on freestanding compilers. */ 1735 1736#ifdef __STDC__ 1737# include <limits.h> 1738#else 1739# include <assert.h> 1740#endif 1741 1742#undef $2 1743 1744/* Override any GCC internal prototype to avoid an error. 1745 Use char because int might match the return type of a GCC 1746 builtin and then its argument prototype would still apply. */ 1747#ifdef __cplusplus 1748extern "C" 1749#endif 1750char $2 (); 1751/* The GNU C library defines this for functions which it implements 1752 to always fail with ENOSYS. Some functions are actually named 1753 something starting with __ and the normal name is an alias. */ 1754#if defined __stub_$2 || defined __stub___$2 1755choke me 1756#endif 1757 1758int 1759main () 1760{ 1761return $2 (); 1762 ; 1763 return 0; 1764} 1765_ACEOF 1766if ac_fn_c_try_link "$LINENO"; then : 1767 eval "$3=yes" 1768else 1769 eval "$3=no" 1770fi 1771rm -f core conftest.err conftest.$ac_objext \ 1772 conftest$ac_exeext conftest.$ac_ext 1773fi 1774eval ac_res=\$$3 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1776$as_echo "$ac_res" >&6; } 1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1778 1779} # ac_fn_c_check_func 1780cat >config.log <<_ACEOF 1781This file contains any messages produced by compilers while 1782running configure, to aid debugging if configure makes a mistake. 1783 1784It was created by newlib $as_me 2.4.0, which was 1785generated by GNU Autoconf 2.68. Invocation command line was 1786 1787 $ $0 $@ 1788 1789_ACEOF 1790exec 5>>config.log 1791{ 1792cat <<_ASUNAME 1793## --------- ## 1794## Platform. ## 1795## --------- ## 1796 1797hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1798uname -m = `(uname -m) 2>/dev/null || echo unknown` 1799uname -r = `(uname -r) 2>/dev/null || echo unknown` 1800uname -s = `(uname -s) 2>/dev/null || echo unknown` 1801uname -v = `(uname -v) 2>/dev/null || echo unknown` 1802 1803/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1804/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1805 1806/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1807/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1808/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1809/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1810/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1811/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1812/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1813 1814_ASUNAME 1815 1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1817for as_dir in $PATH 1818do 1819 IFS=$as_save_IFS 1820 test -z "$as_dir" && as_dir=. 1821 $as_echo "PATH: $as_dir" 1822 done 1823IFS=$as_save_IFS 1824 1825} >&5 1826 1827cat >&5 <<_ACEOF 1828 1829 1830## ----------- ## 1831## Core tests. ## 1832## ----------- ## 1833 1834_ACEOF 1835 1836 1837# Keep a trace of the command line. 1838# Strip out --no-create and --no-recursion so they do not pile up. 1839# Strip out --silent because we don't want to record it for future runs. 1840# Also quote any args containing shell meta-characters. 1841# Make two passes to allow for proper duplicate-argument suppression. 1842ac_configure_args= 1843ac_configure_args0= 1844ac_configure_args1= 1845ac_must_keep_next=false 1846for ac_pass in 1 2 1847do 1848 for ac_arg 1849 do 1850 case $ac_arg in 1851 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1853 | -silent | --silent | --silen | --sile | --sil) 1854 continue ;; 1855 *\'*) 1856 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1857 esac 1858 case $ac_pass in 1859 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1860 2) 1861 as_fn_append ac_configure_args1 " '$ac_arg'" 1862 if test $ac_must_keep_next = true; then 1863 ac_must_keep_next=false # Got value, back to normal. 1864 else 1865 case $ac_arg in 1866 *=* | --config-cache | -C | -disable-* | --disable-* \ 1867 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1868 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1869 | -with-* | --with-* | -without-* | --without-* | --x) 1870 case "$ac_configure_args0 " in 1871 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1872 esac 1873 ;; 1874 -* ) ac_must_keep_next=true ;; 1875 esac 1876 fi 1877 as_fn_append ac_configure_args " '$ac_arg'" 1878 ;; 1879 esac 1880 done 1881done 1882{ ac_configure_args0=; unset ac_configure_args0;} 1883{ ac_configure_args1=; unset ac_configure_args1;} 1884 1885# When interrupted or exit'd, cleanup temporary files, and complete 1886# config.log. We remove comments because anyway the quotes in there 1887# would cause problems or look ugly. 1888# WARNING: Use '\'' to represent an apostrophe within the trap. 1889# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1890trap 'exit_status=$? 1891 # Save into config.log some information that might help in debugging. 1892 { 1893 echo 1894 1895 $as_echo "## ---------------- ## 1896## Cache variables. ## 1897## ---------------- ##" 1898 echo 1899 # The following way of writing the cache mishandles newlines in values, 1900( 1901 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1902 eval ac_val=\$$ac_var 1903 case $ac_val in #( 1904 *${as_nl}*) 1905 case $ac_var in #( 1906 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1907$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1908 esac 1909 case $ac_var in #( 1910 _ | IFS | as_nl) ;; #( 1911 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1912 *) { eval $ac_var=; unset $ac_var;} ;; 1913 esac ;; 1914 esac 1915 done 1916 (set) 2>&1 | 1917 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1918 *${as_nl}ac_space=\ *) 1919 sed -n \ 1920 "s/'\''/'\''\\\\'\'''\''/g; 1921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1922 ;; #( 1923 *) 1924 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1925 ;; 1926 esac | 1927 sort 1928) 1929 echo 1930 1931 $as_echo "## ----------------- ## 1932## Output variables. ## 1933## ----------------- ##" 1934 echo 1935 for ac_var in $ac_subst_vars 1936 do 1937 eval ac_val=\$$ac_var 1938 case $ac_val in 1939 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1940 esac 1941 $as_echo "$ac_var='\''$ac_val'\''" 1942 done | sort 1943 echo 1944 1945 if test -n "$ac_subst_files"; then 1946 $as_echo "## ------------------- ## 1947## File substitutions. ## 1948## ------------------- ##" 1949 echo 1950 for ac_var in $ac_subst_files 1951 do 1952 eval ac_val=\$$ac_var 1953 case $ac_val in 1954 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1955 esac 1956 $as_echo "$ac_var='\''$ac_val'\''" 1957 done | sort 1958 echo 1959 fi 1960 1961 if test -s confdefs.h; then 1962 $as_echo "## ----------- ## 1963## confdefs.h. ## 1964## ----------- ##" 1965 echo 1966 cat confdefs.h 1967 echo 1968 fi 1969 test "$ac_signal" != 0 && 1970 $as_echo "$as_me: caught signal $ac_signal" 1971 $as_echo "$as_me: exit $exit_status" 1972 } >&5 1973 rm -f core *.core core.conftest.* && 1974 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1975 exit $exit_status 1976' 0 1977for ac_signal in 1 2 13 15; do 1978 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1979done 1980ac_signal=0 1981 1982# confdefs.h avoids OS command line length limits that DEFS can exceed. 1983rm -f -r conftest* confdefs.h 1984 1985$as_echo "/* confdefs.h */" > confdefs.h 1986 1987# Predefined preprocessor variables. 1988 1989cat >>confdefs.h <<_ACEOF 1990#define PACKAGE_NAME "$PACKAGE_NAME" 1991_ACEOF 1992 1993cat >>confdefs.h <<_ACEOF 1994#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1995_ACEOF 1996 1997cat >>confdefs.h <<_ACEOF 1998#define PACKAGE_VERSION "$PACKAGE_VERSION" 1999_ACEOF 2000 2001cat >>confdefs.h <<_ACEOF 2002#define PACKAGE_STRING "$PACKAGE_STRING" 2003_ACEOF 2004 2005cat >>confdefs.h <<_ACEOF 2006#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2007_ACEOF 2008 2009cat >>confdefs.h <<_ACEOF 2010#define PACKAGE_URL "$PACKAGE_URL" 2011_ACEOF 2012 2013 2014# Let the site file select an alternate cache file if it wants to. 2015# Prefer an explicitly selected file to automatically selected ones. 2016ac_site_file1=NONE 2017ac_site_file2=NONE 2018if test -n "$CONFIG_SITE"; then 2019 # We do not want a PATH search for config.site. 2020 case $CONFIG_SITE in #(( 2021 -*) ac_site_file1=./$CONFIG_SITE;; 2022 */*) ac_site_file1=$CONFIG_SITE;; 2023 *) ac_site_file1=./$CONFIG_SITE;; 2024 esac 2025elif test "x$prefix" != xNONE; then 2026 ac_site_file1=$prefix/share/config.site 2027 ac_site_file2=$prefix/etc/config.site 2028else 2029 ac_site_file1=$ac_default_prefix/share/config.site 2030 ac_site_file2=$ac_default_prefix/etc/config.site 2031fi 2032for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2033do 2034 test "x$ac_site_file" = xNONE && continue 2035 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2037$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2038 sed 's/^/| /' "$ac_site_file" >&5 2039 . "$ac_site_file" \ 2040 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2042as_fn_error $? "failed to load site script $ac_site_file 2043See \`config.log' for more details" "$LINENO" 5; } 2044 fi 2045done 2046 2047if test -r "$cache_file"; then 2048 # Some versions of bash will fail to source /dev/null (special files 2049 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2050 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2052$as_echo "$as_me: loading cache $cache_file" >&6;} 2053 case $cache_file in 2054 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2055 *) . "./$cache_file";; 2056 esac 2057 fi 2058else 2059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2060$as_echo "$as_me: creating cache $cache_file" >&6;} 2061 >$cache_file 2062fi 2063 2064# Check that the precious variables saved in the cache have kept the same 2065# value. 2066ac_cache_corrupted=false 2067for ac_var in $ac_precious_vars; do 2068 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2069 eval ac_new_set=\$ac_env_${ac_var}_set 2070 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2071 eval ac_new_val=\$ac_env_${ac_var}_value 2072 case $ac_old_set,$ac_new_set in 2073 set,) 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2075$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2076 ac_cache_corrupted=: ;; 2077 ,set) 2078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2079$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2080 ac_cache_corrupted=: ;; 2081 ,);; 2082 *) 2083 if test "x$ac_old_val" != "x$ac_new_val"; then 2084 # differences in whitespace do not lead to failure. 2085 ac_old_val_w=`echo x $ac_old_val` 2086 ac_new_val_w=`echo x $ac_new_val` 2087 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2089$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2090 ac_cache_corrupted=: 2091 else 2092 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2093$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2094 eval $ac_var=\$ac_old_val 2095 fi 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2097$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2099$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2100 fi;; 2101 esac 2102 # Pass precious variables to config.status. 2103 if test "$ac_new_set" = set; then 2104 case $ac_new_val in 2105 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2106 *) ac_arg=$ac_var=$ac_new_val ;; 2107 esac 2108 case " $ac_configure_args " in 2109 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2110 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2111 esac 2112 fi 2113done 2114if $ac_cache_corrupted; then 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2118$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2119 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2120fi 2121## -------------------- ## 2122## Main body of script. ## 2123## -------------------- ## 2124 2125ac_ext=c 2126ac_cpp='$CPP $CPPFLAGS' 2127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2129ac_compiler_gnu=$ac_cv_c_compiler_gnu 2130 2131 2132 2133 2134ac_aux_dir= 2135for ac_dir in ../.. "$srcdir"/../..; do 2136 if test -f "$ac_dir/install-sh"; then 2137 ac_aux_dir=$ac_dir 2138 ac_install_sh="$ac_aux_dir/install-sh -c" 2139 break 2140 elif test -f "$ac_dir/install.sh"; then 2141 ac_aux_dir=$ac_dir 2142 ac_install_sh="$ac_aux_dir/install.sh -c" 2143 break 2144 elif test -f "$ac_dir/shtool"; then 2145 ac_aux_dir=$ac_dir 2146 ac_install_sh="$ac_aux_dir/shtool install -c" 2147 break 2148 fi 2149done 2150if test -z "$ac_aux_dir"; then 2151 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 2152fi 2153 2154# These three variables are undocumented and unsupported, 2155# and are intended to be withdrawn in a future Autoconf release. 2156# They can cause serious problems if a builder's source tree is in a directory 2157# whose full name contains unusual characters. 2158ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2159ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2160ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2161 2162 2163 2164 2165# Make sure we can run config.sub. 2166$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2167 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2168 2169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2170$as_echo_n "checking build system type... " >&6; } 2171if ${ac_cv_build+:} false; then : 2172 $as_echo_n "(cached) " >&6 2173else 2174 ac_build_alias=$build_alias 2175test "x$ac_build_alias" = x && 2176 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2177test "x$ac_build_alias" = x && 2178 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2179ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2180 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2181 2182fi 2183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2184$as_echo "$ac_cv_build" >&6; } 2185case $ac_cv_build in 2186*-*-*) ;; 2187*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2188esac 2189build=$ac_cv_build 2190ac_save_IFS=$IFS; IFS='-' 2191set x $ac_cv_build 2192shift 2193build_cpu=$1 2194build_vendor=$2 2195shift; shift 2196# Remember, the first character of IFS is used to create $*, 2197# except with old shells: 2198build_os=$* 2199IFS=$ac_save_IFS 2200case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2201 2202 2203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2204$as_echo_n "checking host system type... " >&6; } 2205if ${ac_cv_host+:} false; then : 2206 $as_echo_n "(cached) " >&6 2207else 2208 if test "x$host_alias" = x; then 2209 ac_cv_host=$ac_cv_build 2210else 2211 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2212 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2213fi 2214 2215fi 2216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2217$as_echo "$ac_cv_host" >&6; } 2218case $ac_cv_host in 2219*-*-*) ;; 2220*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2221esac 2222host=$ac_cv_host 2223ac_save_IFS=$IFS; IFS='-' 2224set x $ac_cv_host 2225shift 2226host_cpu=$1 2227host_vendor=$2 2228shift; shift 2229# Remember, the first character of IFS is used to create $*, 2230# except with old shells: 2231host_os=$* 2232IFS=$ac_save_IFS 2233case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2234 2235 2236am__api_version='1.11' 2237 2238# Find a good install program. We prefer a C program (faster), 2239# so one script is as good as another. But avoid the broken or 2240# incompatible versions: 2241# SysV /etc/install, /usr/sbin/install 2242# SunOS /usr/etc/install 2243# IRIX /sbin/install 2244# AIX /bin/install 2245# AmigaOS /C/install, which installs bootblocks on floppy discs 2246# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2247# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2248# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2249# OS/2's system install, which has a completely different semantic 2250# ./install, which can be erroneously created by make from ./install.sh. 2251# Reject install programs that cannot install multiple files. 2252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2253$as_echo_n "checking for a BSD-compatible install... " >&6; } 2254if test -z "$INSTALL"; then 2255if ${ac_cv_path_install+:} false; then : 2256 $as_echo_n "(cached) " >&6 2257else 2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2259for as_dir in $PATH 2260do 2261 IFS=$as_save_IFS 2262 test -z "$as_dir" && as_dir=. 2263 # Account for people who put trailing slashes in PATH elements. 2264case $as_dir/ in #(( 2265 ./ | .// | /[cC]/* | \ 2266 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2267 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2268 /usr/ucb/* ) ;; 2269 *) 2270 # OSF1 and SCO ODT 3.0 have their own names for install. 2271 # Don't use installbsd from OSF since it installs stuff as root 2272 # by default. 2273 for ac_prog in ginstall scoinst install; do 2274 for ac_exec_ext in '' $ac_executable_extensions; do 2275 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2276 if test $ac_prog = install && 2277 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2278 # AIX install. It has an incompatible calling convention. 2279 : 2280 elif test $ac_prog = install && 2281 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2282 # program-specific install script used by HP pwplus--don't use. 2283 : 2284 else 2285 rm -rf conftest.one conftest.two conftest.dir 2286 echo one > conftest.one 2287 echo two > conftest.two 2288 mkdir conftest.dir 2289 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2290 test -s conftest.one && test -s conftest.two && 2291 test -s conftest.dir/conftest.one && 2292 test -s conftest.dir/conftest.two 2293 then 2294 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2295 break 3 2296 fi 2297 fi 2298 fi 2299 done 2300 done 2301 ;; 2302esac 2303 2304 done 2305IFS=$as_save_IFS 2306 2307rm -rf conftest.one conftest.two conftest.dir 2308 2309fi 2310 if test "${ac_cv_path_install+set}" = set; then 2311 INSTALL=$ac_cv_path_install 2312 else 2313 # As a last resort, use the slow shell script. Don't cache a 2314 # value for INSTALL within a source directory, because that will 2315 # break other packages using the cache if that directory is 2316 # removed, or if the value is a relative name. 2317 INSTALL=$ac_install_sh 2318 fi 2319fi 2320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2321$as_echo "$INSTALL" >&6; } 2322 2323# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2324# It thinks the first close brace ends the variable substitution. 2325test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2326 2327test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2328 2329test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2330 2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2332$as_echo_n "checking whether build environment is sane... " >&6; } 2333# Just in case 2334sleep 1 2335echo timestamp > conftest.file 2336# Reject unsafe characters in $srcdir or the absolute working directory 2337# name. Accept space and tab only in the latter. 2338am_lf=' 2339' 2340case `pwd` in 2341 *[\\\"\#\$\&\'\`$am_lf]*) 2342 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2343esac 2344case $srcdir in 2345 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2346 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2347esac 2348 2349# Do `set' in a subshell so we don't clobber the current shell's 2350# arguments. Must try -L first in case configure is actually a 2351# symlink; some systems play weird games with the mod time of symlinks 2352# (eg FreeBSD returns the mod time of the symlink's containing 2353# directory). 2354if ( 2355 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2356 if test "$*" = "X"; then 2357 # -L didn't work. 2358 set X `ls -t "$srcdir/configure" conftest.file` 2359 fi 2360 rm -f conftest.file 2361 if test "$*" != "X $srcdir/configure conftest.file" \ 2362 && test "$*" != "X conftest.file $srcdir/configure"; then 2363 2364 # If neither matched, then we have a broken ls. This can happen 2365 # if, for instance, CONFIG_SHELL is bash and it inherits a 2366 # broken ls alias from the environment. This has actually 2367 # happened. Such a system could not be considered "sane". 2368 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2369alias in your environment" "$LINENO" 5 2370 fi 2371 2372 test "$2" = conftest.file 2373 ) 2374then 2375 # Ok. 2376 : 2377else 2378 as_fn_error $? "newly created file is older than distributed files! 2379Check your system clock" "$LINENO" 5 2380fi 2381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2382$as_echo "yes" >&6; } 2383test "$program_prefix" != NONE && 2384 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2385# Use a double $ so make ignores it. 2386test "$program_suffix" != NONE && 2387 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2388# Double any \ or $. 2389# By default was `s,x,x', remove it if useless. 2390ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2391program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2392 2393# expand $ac_aux_dir to an absolute path 2394am_aux_dir=`cd $ac_aux_dir && pwd` 2395 2396if test x"${MISSING+set}" != xset; then 2397 case $am_aux_dir in 2398 *\ * | *\ *) 2399 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2400 *) 2401 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2402 esac 2403fi 2404# Use eval to expand $SHELL 2405if eval "$MISSING --run true"; then 2406 am_missing_run="$MISSING --run " 2407else 2408 am_missing_run= 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2410$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2411fi 2412 2413if test x"${install_sh}" != xset; then 2414 case $am_aux_dir in 2415 *\ * | *\ *) 2416 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2417 *) 2418 install_sh="\${SHELL} $am_aux_dir/install-sh" 2419 esac 2420fi 2421 2422# Installed binaries are usually stripped using `strip' when the user 2423# run `make install-strip'. However `strip' might not be the right 2424# tool to use in cross-compilation environments, therefore Automake 2425# will honor the `STRIP' environment variable to overrule this program. 2426if test "$cross_compiling" != no; then 2427 if test -n "$ac_tool_prefix"; then 2428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2429set dummy ${ac_tool_prefix}strip; ac_word=$2 2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2431$as_echo_n "checking for $ac_word... " >&6; } 2432if ${ac_cv_prog_STRIP+:} false; then : 2433 $as_echo_n "(cached) " >&6 2434else 2435 if test -n "$STRIP"; then 2436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2437else 2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2439for as_dir in $PATH 2440do 2441 IFS=$as_save_IFS 2442 test -z "$as_dir" && as_dir=. 2443 for ac_exec_ext in '' $ac_executable_extensions; do 2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2445 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2447 break 2 2448 fi 2449done 2450 done 2451IFS=$as_save_IFS 2452 2453fi 2454fi 2455STRIP=$ac_cv_prog_STRIP 2456if test -n "$STRIP"; then 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2458$as_echo "$STRIP" >&6; } 2459else 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2461$as_echo "no" >&6; } 2462fi 2463 2464 2465fi 2466if test -z "$ac_cv_prog_STRIP"; then 2467 ac_ct_STRIP=$STRIP 2468 # Extract the first word of "strip", so it can be a program name with args. 2469set dummy strip; ac_word=$2 2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2471$as_echo_n "checking for $ac_word... " >&6; } 2472if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2473 $as_echo_n "(cached) " >&6 2474else 2475 if test -n "$ac_ct_STRIP"; then 2476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2477else 2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2479for as_dir in $PATH 2480do 2481 IFS=$as_save_IFS 2482 test -z "$as_dir" && as_dir=. 2483 for ac_exec_ext in '' $ac_executable_extensions; do 2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2485 ac_cv_prog_ac_ct_STRIP="strip" 2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2487 break 2 2488 fi 2489done 2490 done 2491IFS=$as_save_IFS 2492 2493fi 2494fi 2495ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2496if test -n "$ac_ct_STRIP"; then 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2498$as_echo "$ac_ct_STRIP" >&6; } 2499else 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2501$as_echo "no" >&6; } 2502fi 2503 2504 if test "x$ac_ct_STRIP" = x; then 2505 STRIP=":" 2506 else 2507 case $cross_compiling:$ac_tool_warned in 2508yes:) 2509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2511ac_tool_warned=yes ;; 2512esac 2513 STRIP=$ac_ct_STRIP 2514 fi 2515else 2516 STRIP="$ac_cv_prog_STRIP" 2517fi 2518 2519fi 2520INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2521 2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2523$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2524if test -z "$MKDIR_P"; then 2525 if ${ac_cv_path_mkdir+:} false; then : 2526 $as_echo_n "(cached) " >&6 2527else 2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2529for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2530do 2531 IFS=$as_save_IFS 2532 test -z "$as_dir" && as_dir=. 2533 for ac_prog in mkdir gmkdir; do 2534 for ac_exec_ext in '' $ac_executable_extensions; do 2535 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2536 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2537 'mkdir (GNU coreutils) '* | \ 2538 'mkdir (coreutils) '* | \ 2539 'mkdir (fileutils) '4.1*) 2540 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2541 break 3;; 2542 esac 2543 done 2544 done 2545 done 2546IFS=$as_save_IFS 2547 2548fi 2549 2550 test -d ./--version && rmdir ./--version 2551 if test "${ac_cv_path_mkdir+set}" = set; then 2552 MKDIR_P="$ac_cv_path_mkdir -p" 2553 else 2554 # As a last resort, use the slow shell script. Don't cache a 2555 # value for MKDIR_P within a source directory, because that will 2556 # break other packages using the cache if that directory is 2557 # removed, or if the value is a relative name. 2558 MKDIR_P="$ac_install_sh -d" 2559 fi 2560fi 2561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2562$as_echo "$MKDIR_P" >&6; } 2563 2564mkdir_p="$MKDIR_P" 2565case $mkdir_p in 2566 [\\/$]* | ?:[\\/]*) ;; 2567 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2568esac 2569 2570for ac_prog in gawk mawk nawk awk 2571do 2572 # Extract the first word of "$ac_prog", so it can be a program name with args. 2573set dummy $ac_prog; ac_word=$2 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2575$as_echo_n "checking for $ac_word... " >&6; } 2576if ${ac_cv_prog_AWK+:} false; then : 2577 $as_echo_n "(cached) " >&6 2578else 2579 if test -n "$AWK"; then 2580 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2581else 2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2583for as_dir in $PATH 2584do 2585 IFS=$as_save_IFS 2586 test -z "$as_dir" && as_dir=. 2587 for ac_exec_ext in '' $ac_executable_extensions; do 2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2589 ac_cv_prog_AWK="$ac_prog" 2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2591 break 2 2592 fi 2593done 2594 done 2595IFS=$as_save_IFS 2596 2597fi 2598fi 2599AWK=$ac_cv_prog_AWK 2600if test -n "$AWK"; then 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2602$as_echo "$AWK" >&6; } 2603else 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2605$as_echo "no" >&6; } 2606fi 2607 2608 2609 test -n "$AWK" && break 2610done 2611 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2613$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2614set x ${MAKE-make} 2615ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2616if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2617 $as_echo_n "(cached) " >&6 2618else 2619 cat >conftest.make <<\_ACEOF 2620SHELL = /bin/sh 2621all: 2622 @echo '@@@%%%=$(MAKE)=@@@%%%' 2623_ACEOF 2624# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2625case `${MAKE-make} -f conftest.make 2>/dev/null` in 2626 *@@@%%%=?*=@@@%%%*) 2627 eval ac_cv_prog_make_${ac_make}_set=yes;; 2628 *) 2629 eval ac_cv_prog_make_${ac_make}_set=no;; 2630esac 2631rm -f conftest.make 2632fi 2633if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2635$as_echo "yes" >&6; } 2636 SET_MAKE= 2637else 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2639$as_echo "no" >&6; } 2640 SET_MAKE="MAKE=${MAKE-make}" 2641fi 2642 2643rm -rf .tst 2>/dev/null 2644mkdir .tst 2>/dev/null 2645if test -d .tst; then 2646 am__leading_dot=. 2647else 2648 am__leading_dot=_ 2649fi 2650rmdir .tst 2>/dev/null 2651 2652DEPDIR="${am__leading_dot}deps" 2653 2654ac_config_commands="$ac_config_commands depfiles" 2655 2656 2657am_make=${MAKE-make} 2658cat > confinc << 'END' 2659am__doit: 2660 @echo this is the am__doit target 2661.PHONY: am__doit 2662END 2663# If we don't find an include directive, just comment out the code. 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2665$as_echo_n "checking for style of include used by $am_make... " >&6; } 2666am__include="#" 2667am__quote= 2668_am_result=none 2669# First try GNU make style include. 2670echo "include confinc" > confmf 2671# Ignore all kinds of additional output from `make'. 2672case `$am_make -s -f confmf 2> /dev/null` in #( 2673*the\ am__doit\ target*) 2674 am__include=include 2675 am__quote= 2676 _am_result=GNU 2677 ;; 2678esac 2679# Now try BSD make style include. 2680if test "$am__include" = "#"; then 2681 echo '.include "confinc"' > confmf 2682 case `$am_make -s -f confmf 2> /dev/null` in #( 2683 *the\ am__doit\ target*) 2684 am__include=.include 2685 am__quote="\"" 2686 _am_result=BSD 2687 ;; 2688 esac 2689fi 2690 2691 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2693$as_echo "$_am_result" >&6; } 2694rm -f confinc confmf 2695 2696# Check whether --enable-dependency-tracking was given. 2697if test "${enable_dependency_tracking+set}" = set; then : 2698 enableval=$enable_dependency_tracking; 2699fi 2700 2701if test "x$enable_dependency_tracking" != xno; then 2702 am_depcomp="$ac_aux_dir/depcomp" 2703 AMDEPBACKSLASH='\' 2704 am__nodep='_no' 2705fi 2706 if test "x$enable_dependency_tracking" != xno; then 2707 AMDEP_TRUE= 2708 AMDEP_FALSE='#' 2709else 2710 AMDEP_TRUE='#' 2711 AMDEP_FALSE= 2712fi 2713 2714 2715 2716# Check whether --enable-multilib was given. 2717if test "${enable_multilib+set}" = set; then : 2718 enableval=$enable_multilib; case "${enableval}" in 2719 yes) multilib=yes ;; 2720 no) multilib=no ;; 2721 *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;; 2722 esac 2723else 2724 multilib=yes 2725fi 2726 2727# Check whether --enable-target-optspace was given. 2728if test "${enable_target_optspace+set}" = set; then : 2729 enableval=$enable_target_optspace; case "${enableval}" in 2730 yes) target_optspace=yes ;; 2731 no) target_optspace=no ;; 2732 *) as_fn_error $? "bad value ${enableval} for target-optspace option" "$LINENO" 5 ;; 2733 esac 2734else 2735 target_optspace= 2736fi 2737 2738# Check whether --enable-malloc-debugging was given. 2739if test "${enable_malloc_debugging+set}" = set; then : 2740 enableval=$enable_malloc_debugging; case "${enableval}" in 2741 yes) malloc_debugging=yes ;; 2742 no) malloc_debugging=no ;; 2743 *) as_fn_error $? "bad value ${enableval} for malloc-debugging option" "$LINENO" 5 ;; 2744 esac 2745else 2746 malloc_debugging= 2747fi 2748 2749# Check whether --enable-newlib-multithread was given. 2750if test "${enable_newlib_multithread+set}" = set; then : 2751 enableval=$enable_newlib_multithread; case "${enableval}" in 2752 yes) newlib_multithread=yes ;; 2753 no) newlib_multithread=no ;; 2754 *) as_fn_error $? "bad value ${enableval} for newlib-multithread option" "$LINENO" 5 ;; 2755 esac 2756else 2757 newlib_multithread=yes 2758fi 2759 2760# Check whether --enable-newlib-iconv was given. 2761if test "${enable_newlib_iconv+set}" = set; then : 2762 enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then 2763 case "${enableval}" in 2764 yes) newlib_iconv=yes ;; 2765 no) newlib_iconv=no ;; 2766 *) as_fn_error $? "bad value ${enableval} for newlib-iconv option" "$LINENO" 5 ;; 2767 esac 2768 fi 2769else 2770 newlib_iconv=${newlib_iconv} 2771fi 2772 2773# Check whether --enable-newlib-elix-level was given. 2774if test "${enable_newlib_elix_level+set}" = set; then : 2775 enableval=$enable_newlib_elix_level; case "${enableval}" in 2776 0) newlib_elix_level=0 ;; 2777 1) newlib_elix_level=1 ;; 2778 2) newlib_elix_level=2 ;; 2779 3) newlib_elix_level=3 ;; 2780 4) newlib_elix_level=4 ;; 2781 *) as_fn_error $? "bad value ${enableval} for newlib-elix-level option" "$LINENO" 5 ;; 2782 esac 2783else 2784 newlib_elix_level=0 2785fi 2786 2787# Check whether --enable-newlib-io-float was given. 2788if test "${enable_newlib_io_float+set}" = set; then : 2789 enableval=$enable_newlib_io_float; case "${enableval}" in 2790 yes) newlib_io_float=yes ;; 2791 no) newlib_io_float=no ;; 2792 *) as_fn_error $? "bad value ${enableval} for newlib-io-float option" "$LINENO" 5 ;; 2793 esac 2794else 2795 newlib_io_float=yes 2796fi 2797 2798# Check whether --enable-newlib-supplied-syscalls was given. 2799if test "${enable_newlib_supplied_syscalls+set}" = set; then : 2800 enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in 2801 yes) newlib_may_supply_syscalls=yes ;; 2802 no) newlib_may_supply_syscalls=no ;; 2803 *) as_fn_error $? "bad value ${enableval} for newlib-supplied-syscalls option" "$LINENO" 5 ;; 2804 esac 2805else 2806 newlib_may_supply_syscalls=yes 2807fi 2808 2809 if test x${newlib_may_supply_syscalls} = xyes; then 2810 MAY_SUPPLY_SYSCALLS_TRUE= 2811 MAY_SUPPLY_SYSCALLS_FALSE='#' 2812else 2813 MAY_SUPPLY_SYSCALLS_TRUE='#' 2814 MAY_SUPPLY_SYSCALLS_FALSE= 2815fi 2816 2817 2818 2819test -z "${with_target_subdir}" && with_target_subdir=. 2820 2821if test "${srcdir}" = "."; then 2822 if test "${with_target_subdir}" != "."; then 2823 newlib_basedir="${srcdir}/${with_multisrctop}../.." 2824 else 2825 newlib_basedir="${srcdir}/${with_multisrctop}.." 2826 fi 2827else 2828 newlib_basedir="${srcdir}/.." 2829fi 2830 2831 2832 2833 2834if test "`cd $srcdir && pwd`" != "`pwd`"; then 2835 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2836 # is not polluted with repeated "-I." 2837 am__isrc=' -I$(srcdir)' 2838 # test to see if srcdir already configured 2839 if test -f $srcdir/config.status; then 2840 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2841 fi 2842fi 2843 2844# test whether we have cygpath 2845if test -z "$CYGPATH_W"; then 2846 if (cygpath --version) >/dev/null 2>/dev/null; then 2847 CYGPATH_W='cygpath -w' 2848 else 2849 CYGPATH_W=echo 2850 fi 2851fi 2852 2853 2854# Define the identity of the package. 2855 PACKAGE='newlib' 2856 VERSION='2.4.0' 2857 2858 2859# Some tools Automake needs. 2860 2861ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2862 2863 2864AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2865 2866 2867AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2868 2869 2870AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2871 2872 2873MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2874 2875# We need awk for the "check" target. The system "awk" is bad on 2876# some platforms. 2877# Always define AMTAR for backward compatibility. Yes, it's still used 2878# in the wild :-( We should find a proper way to deprecate it ... 2879AMTAR='$${TAR-tar}' 2880 2881am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2882 2883 2884 2885 2886 2887 2888# FIXME: We temporarily define our own version of AC_PROG_CC. This is 2889# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We 2890# are probably using a cross compiler, which will not be able to fully 2891# link an executable. This should really be fixed in autoconf 2892# itself. 2893 2894 2895 2896 2897 2898 2899 2900# Extract the first word of "gcc", so it can be a program name with args. 2901set dummy gcc; ac_word=$2 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2903$as_echo_n "checking for $ac_word... " >&6; } 2904if ${ac_cv_prog_CC+:} false; then : 2905 $as_echo_n "(cached) " >&6 2906else 2907 if test -n "$CC"; then 2908 ac_cv_prog_CC="$CC" # Let the user override the test. 2909else 2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2911for as_dir in $PATH 2912do 2913 IFS=$as_save_IFS 2914 test -z "$as_dir" && as_dir=. 2915 for ac_exec_ext in '' $ac_executable_extensions; do 2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2917 ac_cv_prog_CC="gcc" 2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2919 break 2 2920 fi 2921done 2922 done 2923IFS=$as_save_IFS 2924 2925fi 2926fi 2927CC=$ac_cv_prog_CC 2928if test -n "$CC"; then 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2930$as_echo "$CC" >&6; } 2931else 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2933$as_echo "no" >&6; } 2934fi 2935 2936 2937 2938depcc="$CC" am_compiler_list= 2939 2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 2941$as_echo_n "checking dependency style of $depcc... " >&6; } 2942if ${am_cv_CC_dependencies_compiler_type+:} false; then : 2943 $as_echo_n "(cached) " >&6 2944else 2945 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2946 # We make a subdir and do the tests there. Otherwise we can end up 2947 # making bogus files that we don't know about and never remove. For 2948 # instance it was reported that on HP-UX the gcc test will end up 2949 # making a dummy file named `D' -- because `-MD' means `put the output 2950 # in D'. 2951 rm -rf conftest.dir 2952 mkdir conftest.dir 2953 # Copy depcomp to subdir because otherwise we won't find it if we're 2954 # using a relative directory. 2955 cp "$am_depcomp" conftest.dir 2956 cd conftest.dir 2957 # We will build objects and dependencies in a subdirectory because 2958 # it helps to detect inapplicable dependency modes. For instance 2959 # both Tru64's cc and ICC support -MD to output dependencies as a 2960 # side effect of compilation, but ICC will put the dependencies in 2961 # the current directory while Tru64 will put them in the object 2962 # directory. 2963 mkdir sub 2964 2965 am_cv_CC_dependencies_compiler_type=none 2966 if test "$am_compiler_list" = ""; then 2967 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2968 fi 2969 am__universal=false 2970 case " $depcc " in #( 2971 *\ -arch\ *\ -arch\ *) am__universal=true ;; 2972 esac 2973 2974 for depmode in $am_compiler_list; do 2975 # Setup a source with many dependencies, because some compilers 2976 # like to wrap large dependency lists on column 80 (with \), and 2977 # we should not choose a depcomp mode which is confused by this. 2978 # 2979 # We need to recreate these files for each test, as the compiler may 2980 # overwrite some of them when testing with obscure command lines. 2981 # This happens at least with the AIX C compiler. 2982 : > sub/conftest.c 2983 for i in 1 2 3 4 5 6; do 2984 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2985 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2986 # Solaris 8's {/usr,}/bin/sh. 2987 touch sub/conftst$i.h 2988 done 2989 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2990 2991 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2992 # mode. It turns out that the SunPro C++ compiler does not properly 2993 # handle `-M -o', and we need to detect this. Also, some Intel 2994 # versions had trouble with output in subdirs 2995 am__obj=sub/conftest.${OBJEXT-o} 2996 am__minus_obj="-o $am__obj" 2997 case $depmode in 2998 gcc) 2999 # This depmode causes a compiler race in universal mode. 3000 test "$am__universal" = false || continue 3001 ;; 3002 nosideeffect) 3003 # after this tag, mechanisms are not by side-effect, so they'll 3004 # only be used when explicitly requested 3005 if test "x$enable_dependency_tracking" = xyes; then 3006 continue 3007 else 3008 break 3009 fi 3010 ;; 3011 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3012 # This compiler won't grok `-c -o', but also, the minuso test has 3013 # not run yet. These depmodes are late enough in the game, and 3014 # so weak that their functioning should not be impacted. 3015 am__obj=conftest.${OBJEXT-o} 3016 am__minus_obj= 3017 ;; 3018 none) break ;; 3019 esac 3020 if depmode=$depmode \ 3021 source=sub/conftest.c object=$am__obj \ 3022 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3023 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3024 >/dev/null 2>conftest.err && 3025 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3026 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3027 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3028 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3029 # icc doesn't choke on unknown options, it will just issue warnings 3030 # or remarks (even with -Werror). So we grep stderr for any message 3031 # that says an option was ignored or not supported. 3032 # When given -MP, icc 7.0 and 7.1 complain thusly: 3033 # icc: Command line warning: ignoring option '-M'; no argument required 3034 # The diagnosis changed in icc 8.0: 3035 # icc: Command line remark: option '-MP' not supported 3036 if (grep 'ignoring option' conftest.err || 3037 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3038 am_cv_CC_dependencies_compiler_type=$depmode 3039 break 3040 fi 3041 fi 3042 done 3043 3044 cd .. 3045 rm -rf conftest.dir 3046else 3047 am_cv_CC_dependencies_compiler_type=none 3048fi 3049 3050fi 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3052$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3053CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3054 3055 if 3056 test "x$enable_dependency_tracking" != xno \ 3057 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3058 am__fastdepCC_TRUE= 3059 am__fastdepCC_FALSE='#' 3060else 3061 am__fastdepCC_TRUE='#' 3062 am__fastdepCC_FALSE= 3063fi 3064 3065 3066if test -z "$CC"; then 3067 # Extract the first word of "cc", so it can be a program name with args. 3068set dummy cc; ac_word=$2 3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3070$as_echo_n "checking for $ac_word... " >&6; } 3071if ${ac_cv_prog_CC+:} false; then : 3072 $as_echo_n "(cached) " >&6 3073else 3074 if test -n "$CC"; then 3075 ac_cv_prog_CC="$CC" # Let the user override the test. 3076else 3077 ac_prog_rejected=no 3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079for as_dir in $PATH 3080do 3081 IFS=$as_save_IFS 3082 test -z "$as_dir" && as_dir=. 3083 for ac_exec_ext in '' $ac_executable_extensions; do 3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3085 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3086 ac_prog_rejected=yes 3087 continue 3088 fi 3089 ac_cv_prog_CC="cc" 3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3091 break 2 3092 fi 3093done 3094 done 3095IFS=$as_save_IFS 3096 3097if test $ac_prog_rejected = yes; then 3098 # We found a bogon in the path, so make sure we never use it. 3099 set dummy $ac_cv_prog_CC 3100 shift 3101 if test $# != 0; then 3102 # We chose a different compiler from the bogus one. 3103 # However, it has the same basename, so the bogon will be chosen 3104 # first if we set CC to just the basename; use the full file name. 3105 shift 3106 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3107 fi 3108fi 3109fi 3110fi 3111CC=$ac_cv_prog_CC 3112if test -n "$CC"; then 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3114$as_echo "$CC" >&6; } 3115else 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3117$as_echo "no" >&6; } 3118fi 3119 3120 3121 test -z "$CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5 3122fi 3123 3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU C" >&5 3125$as_echo_n "checking whether we are using GNU C... " >&6; } 3126if ${ac_cv_c_compiler_gnu+:} false; then : 3127 $as_echo_n "(cached) " >&6 3128else 3129 cat > conftest.c <<EOF 3130#ifdef __GNUC__ 3131 yes; 3132#endif 3133EOF 3134if { ac_try='${CC-cc} -E conftest.c' 3135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 3136 (eval $ac_try) 2>&5 3137 ac_status=$? 3138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3139 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then 3140 ac_cv_c_compiler_gnu=yes 3141else 3142 ac_cv_c_compiler_gnu=no 3143fi 3144fi 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3146$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3147 3148if test $ac_cv_c_compiler_gnu = yes; then 3149 GCC=yes 3150 ac_test_CFLAGS="${CFLAGS+set}" 3151 ac_save_CFLAGS="$CFLAGS" 3152 ac_test_CFLAGS=${CFLAGS+set} 3153ac_save_CFLAGS=$CFLAGS 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3155$as_echo_n "checking whether $CC accepts -g... " >&6; } 3156if ${ac_cv_prog_cc_g+:} false; then : 3157 $as_echo_n "(cached) " >&6 3158else 3159 ac_save_c_werror_flag=$ac_c_werror_flag 3160 ac_c_werror_flag=yes 3161 ac_cv_prog_cc_g=no 3162 CFLAGS="-g" 3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3164/* end confdefs.h. */ 3165 3166int 3167main () 3168{ 3169 3170 ; 3171 return 0; 3172} 3173_ACEOF 3174if ac_fn_c_try_compile "$LINENO"; then : 3175 ac_cv_prog_cc_g=yes 3176else 3177 CFLAGS="" 3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3179/* end confdefs.h. */ 3180 3181int 3182main () 3183{ 3184 3185 ; 3186 return 0; 3187} 3188_ACEOF 3189if ac_fn_c_try_compile "$LINENO"; then : 3190 3191else 3192 ac_c_werror_flag=$ac_save_c_werror_flag 3193 CFLAGS="-g" 3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3195/* end confdefs.h. */ 3196 3197int 3198main () 3199{ 3200 3201 ; 3202 return 0; 3203} 3204_ACEOF 3205if ac_fn_c_try_compile "$LINENO"; then : 3206 ac_cv_prog_cc_g=yes 3207fi 3208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3209fi 3210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3211fi 3212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3213 ac_c_werror_flag=$ac_save_c_werror_flag 3214fi 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3216$as_echo "$ac_cv_prog_cc_g" >&6; } 3217if test "$ac_test_CFLAGS" = set; then 3218 CFLAGS=$ac_save_CFLAGS 3219elif test $ac_cv_prog_cc_g = yes; then 3220 if test "$GCC" = yes; then 3221 CFLAGS="-g -O2" 3222 else 3223 CFLAGS="-g" 3224 fi 3225else 3226 if test "$GCC" = yes; then 3227 CFLAGS="-O2" 3228 else 3229 CFLAGS= 3230 fi 3231fi 3232 if test "$ac_test_CFLAGS" = set; then 3233 CFLAGS="$ac_save_CFLAGS" 3234 elif test $ac_cv_prog_cc_g = yes; then 3235 CFLAGS="-g -O2" 3236 else 3237 CFLAGS="-O2" 3238 fi 3239else 3240 GCC= 3241 test "${CFLAGS+set}" = set || CFLAGS="-g" 3242fi 3243 3244 3245if test -n "$ac_tool_prefix"; then 3246 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 3247set dummy ${ac_tool_prefix}as; ac_word=$2 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3249$as_echo_n "checking for $ac_word... " >&6; } 3250if ${ac_cv_prog_AS+:} false; then : 3251 $as_echo_n "(cached) " >&6 3252else 3253 if test -n "$AS"; then 3254 ac_cv_prog_AS="$AS" # Let the user override the test. 3255else 3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3257for as_dir in $PATH 3258do 3259 IFS=$as_save_IFS 3260 test -z "$as_dir" && as_dir=. 3261 for ac_exec_ext in '' $ac_executable_extensions; do 3262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3263 ac_cv_prog_AS="${ac_tool_prefix}as" 3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3265 break 2 3266 fi 3267done 3268 done 3269IFS=$as_save_IFS 3270 3271fi 3272fi 3273AS=$ac_cv_prog_AS 3274if test -n "$AS"; then 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 3276$as_echo "$AS" >&6; } 3277else 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3279$as_echo "no" >&6; } 3280fi 3281 3282 3283fi 3284if test -z "$ac_cv_prog_AS"; then 3285 ac_ct_AS=$AS 3286 # Extract the first word of "as", so it can be a program name with args. 3287set dummy as; ac_word=$2 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3289$as_echo_n "checking for $ac_word... " >&6; } 3290if ${ac_cv_prog_ac_ct_AS+:} false; then : 3291 $as_echo_n "(cached) " >&6 3292else 3293 if test -n "$ac_ct_AS"; then 3294 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 3295else 3296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3297for as_dir in $PATH 3298do 3299 IFS=$as_save_IFS 3300 test -z "$as_dir" && as_dir=. 3301 for ac_exec_ext in '' $ac_executable_extensions; do 3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3303 ac_cv_prog_ac_ct_AS="as" 3304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3305 break 2 3306 fi 3307done 3308 done 3309IFS=$as_save_IFS 3310 3311fi 3312fi 3313ac_ct_AS=$ac_cv_prog_ac_ct_AS 3314if test -n "$ac_ct_AS"; then 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 3316$as_echo "$ac_ct_AS" >&6; } 3317else 3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3319$as_echo "no" >&6; } 3320fi 3321 3322 if test "x$ac_ct_AS" = x; then 3323 AS="" 3324 else 3325 case $cross_compiling:$ac_tool_warned in 3326yes:) 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3329ac_tool_warned=yes ;; 3330esac 3331 AS=$ac_ct_AS 3332 fi 3333else 3334 AS="$ac_cv_prog_AS" 3335fi 3336 3337if test -n "$ac_tool_prefix"; then 3338 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3339set dummy ${ac_tool_prefix}ar; ac_word=$2 3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3341$as_echo_n "checking for $ac_word... " >&6; } 3342if ${ac_cv_prog_AR+:} false; then : 3343 $as_echo_n "(cached) " >&6 3344else 3345 if test -n "$AR"; then 3346 ac_cv_prog_AR="$AR" # Let the user override the test. 3347else 3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3349for as_dir in $PATH 3350do 3351 IFS=$as_save_IFS 3352 test -z "$as_dir" && as_dir=. 3353 for ac_exec_ext in '' $ac_executable_extensions; do 3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3355 ac_cv_prog_AR="${ac_tool_prefix}ar" 3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3357 break 2 3358 fi 3359done 3360 done 3361IFS=$as_save_IFS 3362 3363fi 3364fi 3365AR=$ac_cv_prog_AR 3366if test -n "$AR"; then 3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3368$as_echo "$AR" >&6; } 3369else 3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3371$as_echo "no" >&6; } 3372fi 3373 3374 3375fi 3376if test -z "$ac_cv_prog_AR"; then 3377 ac_ct_AR=$AR 3378 # Extract the first word of "ar", so it can be a program name with args. 3379set dummy ar; ac_word=$2 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3381$as_echo_n "checking for $ac_word... " >&6; } 3382if ${ac_cv_prog_ac_ct_AR+:} false; then : 3383 $as_echo_n "(cached) " >&6 3384else 3385 if test -n "$ac_ct_AR"; then 3386 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 3387else 3388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3389for as_dir in $PATH 3390do 3391 IFS=$as_save_IFS 3392 test -z "$as_dir" && as_dir=. 3393 for ac_exec_ext in '' $ac_executable_extensions; do 3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3395 ac_cv_prog_ac_ct_AR="ar" 3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3397 break 2 3398 fi 3399done 3400 done 3401IFS=$as_save_IFS 3402 3403fi 3404fi 3405ac_ct_AR=$ac_cv_prog_ac_ct_AR 3406if test -n "$ac_ct_AR"; then 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 3408$as_echo "$ac_ct_AR" >&6; } 3409else 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3411$as_echo "no" >&6; } 3412fi 3413 3414 if test "x$ac_ct_AR" = x; then 3415 AR="" 3416 else 3417 case $cross_compiling:$ac_tool_warned in 3418yes:) 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3421ac_tool_warned=yes ;; 3422esac 3423 AR=$ac_ct_AR 3424 fi 3425else 3426 AR="$ac_cv_prog_AR" 3427fi 3428 3429if test -n "$ac_tool_prefix"; then 3430 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3431set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3433$as_echo_n "checking for $ac_word... " >&6; } 3434if ${ac_cv_prog_RANLIB+:} false; then : 3435 $as_echo_n "(cached) " >&6 3436else 3437 if test -n "$RANLIB"; then 3438 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3439else 3440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3441for as_dir in $PATH 3442do 3443 IFS=$as_save_IFS 3444 test -z "$as_dir" && as_dir=. 3445 for ac_exec_ext in '' $ac_executable_extensions; do 3446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3447 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3449 break 2 3450 fi 3451done 3452 done 3453IFS=$as_save_IFS 3454 3455fi 3456fi 3457RANLIB=$ac_cv_prog_RANLIB 3458if test -n "$RANLIB"; then 3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3460$as_echo "$RANLIB" >&6; } 3461else 3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3463$as_echo "no" >&6; } 3464fi 3465 3466 3467fi 3468if test -z "$ac_cv_prog_RANLIB"; then 3469 ac_ct_RANLIB=$RANLIB 3470 # Extract the first word of "ranlib", so it can be a program name with args. 3471set dummy ranlib; ac_word=$2 3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3473$as_echo_n "checking for $ac_word... " >&6; } 3474if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3475 $as_echo_n "(cached) " >&6 3476else 3477 if test -n "$ac_ct_RANLIB"; then 3478 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3479else 3480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3481for as_dir in $PATH 3482do 3483 IFS=$as_save_IFS 3484 test -z "$as_dir" && as_dir=. 3485 for ac_exec_ext in '' $ac_executable_extensions; do 3486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3487 ac_cv_prog_ac_ct_RANLIB="ranlib" 3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3489 break 2 3490 fi 3491done 3492 done 3493IFS=$as_save_IFS 3494 3495fi 3496fi 3497ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3498if test -n "$ac_ct_RANLIB"; then 3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3500$as_echo "$ac_ct_RANLIB" >&6; } 3501else 3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3503$as_echo "no" >&6; } 3504fi 3505 3506 if test "x$ac_ct_RANLIB" = x; then 3507 RANLIB=":" 3508 else 3509 case $cross_compiling:$ac_tool_warned in 3510yes:) 3511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3513ac_tool_warned=yes ;; 3514esac 3515 RANLIB=$ac_ct_RANLIB 3516 fi 3517else 3518 RANLIB="$ac_cv_prog_RANLIB" 3519fi 3520 3521if test -n "$ac_tool_prefix"; then 3522 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args. 3523set dummy ${ac_tool_prefix}readelf; ac_word=$2 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3525$as_echo_n "checking for $ac_word... " >&6; } 3526if ${ac_cv_prog_READELF+:} false; then : 3527 $as_echo_n "(cached) " >&6 3528else 3529 if test -n "$READELF"; then 3530 ac_cv_prog_READELF="$READELF" # Let the user override the test. 3531else 3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3533for as_dir in $PATH 3534do 3535 IFS=$as_save_IFS 3536 test -z "$as_dir" && as_dir=. 3537 for ac_exec_ext in '' $ac_executable_extensions; do 3538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3539 ac_cv_prog_READELF="${ac_tool_prefix}readelf" 3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3541 break 2 3542 fi 3543done 3544 done 3545IFS=$as_save_IFS 3546 3547fi 3548fi 3549READELF=$ac_cv_prog_READELF 3550if test -n "$READELF"; then 3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 3552$as_echo "$READELF" >&6; } 3553else 3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3555$as_echo "no" >&6; } 3556fi 3557 3558 3559fi 3560if test -z "$ac_cv_prog_READELF"; then 3561 ac_ct_READELF=$READELF 3562 # Extract the first word of "readelf", so it can be a program name with args. 3563set dummy readelf; ac_word=$2 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3565$as_echo_n "checking for $ac_word... " >&6; } 3566if ${ac_cv_prog_ac_ct_READELF+:} false; then : 3567 $as_echo_n "(cached) " >&6 3568else 3569 if test -n "$ac_ct_READELF"; then 3570 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. 3571else 3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3573for as_dir in $PATH 3574do 3575 IFS=$as_save_IFS 3576 test -z "$as_dir" && as_dir=. 3577 for ac_exec_ext in '' $ac_executable_extensions; do 3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3579 ac_cv_prog_ac_ct_READELF="readelf" 3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3581 break 2 3582 fi 3583done 3584 done 3585IFS=$as_save_IFS 3586 3587fi 3588fi 3589ac_ct_READELF=$ac_cv_prog_ac_ct_READELF 3590if test -n "$ac_ct_READELF"; then 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 3592$as_echo "$ac_ct_READELF" >&6; } 3593else 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3595$as_echo "no" >&6; } 3596fi 3597 3598 if test "x$ac_ct_READELF" = x; then 3599 READELF=":" 3600 else 3601 case $cross_compiling:$ac_tool_warned in 3602yes:) 3603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3605ac_tool_warned=yes ;; 3606esac 3607 READELF=$ac_ct_READELF 3608 fi 3609else 3610 READELF="$ac_cv_prog_READELF" 3611fi 3612 3613 3614 3615 3616# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */ 3617ac_given_INSTALL=$INSTALL 3618 3619 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3621$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3622 # Check whether --enable-maintainer-mode was given. 3623if test "${enable_maintainer_mode+set}" = set; then : 3624 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3625else 3626 USE_MAINTAINER_MODE=no 3627fi 3628 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3630$as_echo "$USE_MAINTAINER_MODE" >&6; } 3631 if test $USE_MAINTAINER_MODE = yes; then 3632 MAINTAINER_MODE_TRUE= 3633 MAINTAINER_MODE_FALSE='#' 3634else 3635 MAINTAINER_MODE_TRUE='#' 3636 MAINTAINER_MODE_FALSE= 3637fi 3638 3639 MAINT=$MAINTAINER_MODE_TRUE 3640 3641 3642# By default we simply use the C compiler to build assembly code. 3643 3644test "${CCAS+set}" = set || CCAS=$CC 3645test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 3646 3647 3648 3649 3650# We need AC_EXEEXT to keep automake happy in cygnus mode. However, 3651# at least currently, we never actually build a program, so we never 3652# need to use $(EXEEXT). Moreover, the test for EXEEXT normally 3653# fails, because we are probably configuring with a cross compiler 3654# which can't create executables. So we include AC_EXEEXT to keep 3655# automake happy, but we don't execute it, since we don't care about 3656# the result. 3657if false; then 3658 3659 dummy_var=1 3660fi 3661 3662. ${newlib_basedir}/configure.host 3663 3664newlib_cflags="${newlib_cflags} -fno-builtin" 3665 3666NEWLIB_CFLAGS=${newlib_cflags} 3667 3668 3669NO_INCLUDE_LIST=${noinclude} 3670 3671 3672LDFLAGS=${ldflags} 3673 3674 3675 if test x${newlib_elix_level} = x0; then 3676 ELIX_LEVEL_0_TRUE= 3677 ELIX_LEVEL_0_FALSE='#' 3678else 3679 ELIX_LEVEL_0_TRUE='#' 3680 ELIX_LEVEL_0_FALSE= 3681fi 3682 3683 if test x${newlib_elix_level} = x1; then 3684 ELIX_LEVEL_1_TRUE= 3685 ELIX_LEVEL_1_FALSE='#' 3686else 3687 ELIX_LEVEL_1_TRUE='#' 3688 ELIX_LEVEL_1_FALSE= 3689fi 3690 3691 if test x${newlib_elix_level} = x2; then 3692 ELIX_LEVEL_2_TRUE= 3693 ELIX_LEVEL_2_FALSE='#' 3694else 3695 ELIX_LEVEL_2_TRUE='#' 3696 ELIX_LEVEL_2_FALSE= 3697fi 3698 3699 if test x${newlib_elix_level} = x3; then 3700 ELIX_LEVEL_3_TRUE= 3701 ELIX_LEVEL_3_FALSE='#' 3702else 3703 ELIX_LEVEL_3_TRUE='#' 3704 ELIX_LEVEL_3_FALSE= 3705fi 3706 3707 if test x${newlib_elix_level} = x4; then 3708 ELIX_LEVEL_4_TRUE= 3709 ELIX_LEVEL_4_FALSE='#' 3710else 3711 ELIX_LEVEL_4_TRUE='#' 3712 ELIX_LEVEL_4_FALSE= 3713fi 3714 3715 3716 if test x${use_libtool} = xyes; then 3717 USE_LIBTOOL_TRUE= 3718 USE_LIBTOOL_FALSE='#' 3719else 3720 USE_LIBTOOL_TRUE='#' 3721 USE_LIBTOOL_FALSE= 3722fi 3723 3724 3725# Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we 3726# use oext, which is set in configure.host based on the target platform. 3727OBJEXT=${oext} 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3740$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3741if ${ac_cv_path_SED+:} false; then : 3742 $as_echo_n "(cached) " >&6 3743else 3744 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3745 for ac_i in 1 2 3 4 5 6 7; do 3746 ac_script="$ac_script$as_nl$ac_script" 3747 done 3748 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3749 { ac_script=; unset ac_script;} 3750 if test -z "$SED"; then 3751 ac_path_SED_found=false 3752 # Loop through the user's path and test for each of PROGNAME-LIST 3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3754for as_dir in $PATH 3755do 3756 IFS=$as_save_IFS 3757 test -z "$as_dir" && as_dir=. 3758 for ac_prog in sed gsed; do 3759 for ac_exec_ext in '' $ac_executable_extensions; do 3760 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3761 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3762# Check for GNU ac_path_SED and select it if it is found. 3763 # Check for GNU $ac_path_SED 3764case `"$ac_path_SED" --version 2>&1` in 3765*GNU*) 3766 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3767*) 3768 ac_count=0 3769 $as_echo_n 0123456789 >"conftest.in" 3770 while : 3771 do 3772 cat "conftest.in" "conftest.in" >"conftest.tmp" 3773 mv "conftest.tmp" "conftest.in" 3774 cp "conftest.in" "conftest.nl" 3775 $as_echo '' >> "conftest.nl" 3776 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3778 as_fn_arith $ac_count + 1 && ac_count=$as_val 3779 if test $ac_count -gt ${ac_path_SED_max-0}; then 3780 # Best one so far, save it but keep looking for a better one 3781 ac_cv_path_SED="$ac_path_SED" 3782 ac_path_SED_max=$ac_count 3783 fi 3784 # 10*(2^10) chars as input seems more than enough 3785 test $ac_count -gt 10 && break 3786 done 3787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3788esac 3789 3790 $ac_path_SED_found && break 3 3791 done 3792 done 3793 done 3794IFS=$as_save_IFS 3795 if test -z "$ac_cv_path_SED"; then 3796 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3797 fi 3798else 3799 ac_cv_path_SED=$SED 3800fi 3801 3802fi 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3804$as_echo "$ac_cv_path_SED" >&6; } 3805 SED="$ac_cv_path_SED" 3806 rm -f conftest.sed 3807 3808test -z "$SED" && SED=sed 3809Xsed="$SED -e 1s/^X//" 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3822ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3823ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3824 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3826$as_echo_n "checking how to print strings... " >&6; } 3827# Test print first, because it will be a builtin if present. 3828if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 3829 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3830 ECHO='print -r --' 3831elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3832 ECHO='printf %s\n' 3833else 3834 # Use this function as a fallback that always works. 3835 func_fallback_echo () 3836 { 3837 eval 'cat <<_LTECHO_EOF 3838$1 3839_LTECHO_EOF' 3840 } 3841 ECHO='func_fallback_echo' 3842fi 3843 3844# func_echo_all arg... 3845# Invoke $ECHO with all args, space-separated. 3846func_echo_all () 3847{ 3848 $ECHO "" 3849} 3850 3851case "$ECHO" in 3852 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3853$as_echo "printf" >&6; } ;; 3854 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3855$as_echo "print -r" >&6; } ;; 3856 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3857$as_echo "cat" >&6; } ;; 3858esac 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873if test "${use_libtool}" = "yes"; then 3874enable_win32_dll=yes 3875 3876case $host in 3877*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 3878 if test -n "$ac_tool_prefix"; then 3879 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 3880set dummy ${ac_tool_prefix}as; ac_word=$2 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3882$as_echo_n "checking for $ac_word... " >&6; } 3883if ${ac_cv_prog_AS+:} false; then : 3884 $as_echo_n "(cached) " >&6 3885else 3886 if test -n "$AS"; then 3887 ac_cv_prog_AS="$AS" # Let the user override the test. 3888else 3889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3890for as_dir in $PATH 3891do 3892 IFS=$as_save_IFS 3893 test -z "$as_dir" && as_dir=. 3894 for ac_exec_ext in '' $ac_executable_extensions; do 3895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3896 ac_cv_prog_AS="${ac_tool_prefix}as" 3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3898 break 2 3899 fi 3900done 3901 done 3902IFS=$as_save_IFS 3903 3904fi 3905fi 3906AS=$ac_cv_prog_AS 3907if test -n "$AS"; then 3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 3909$as_echo "$AS" >&6; } 3910else 3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3912$as_echo "no" >&6; } 3913fi 3914 3915 3916fi 3917if test -z "$ac_cv_prog_AS"; then 3918 ac_ct_AS=$AS 3919 # Extract the first word of "as", so it can be a program name with args. 3920set dummy as; ac_word=$2 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3922$as_echo_n "checking for $ac_word... " >&6; } 3923if ${ac_cv_prog_ac_ct_AS+:} false; then : 3924 $as_echo_n "(cached) " >&6 3925else 3926 if test -n "$ac_ct_AS"; then 3927 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 3928else 3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3930for as_dir in $PATH 3931do 3932 IFS=$as_save_IFS 3933 test -z "$as_dir" && as_dir=. 3934 for ac_exec_ext in '' $ac_executable_extensions; do 3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3936 ac_cv_prog_ac_ct_AS="as" 3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3938 break 2 3939 fi 3940done 3941 done 3942IFS=$as_save_IFS 3943 3944fi 3945fi 3946ac_ct_AS=$ac_cv_prog_ac_ct_AS 3947if test -n "$ac_ct_AS"; then 3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 3949$as_echo "$ac_ct_AS" >&6; } 3950else 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3952$as_echo "no" >&6; } 3953fi 3954 3955 if test "x$ac_ct_AS" = x; then 3956 AS="false" 3957 else 3958 case $cross_compiling:$ac_tool_warned in 3959yes:) 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3962ac_tool_warned=yes ;; 3963esac 3964 AS=$ac_ct_AS 3965 fi 3966else 3967 AS="$ac_cv_prog_AS" 3968fi 3969 3970 if test -n "$ac_tool_prefix"; then 3971 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 3972set dummy ${ac_tool_prefix}dlltool; ac_word=$2 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3974$as_echo_n "checking for $ac_word... " >&6; } 3975if ${ac_cv_prog_DLLTOOL+:} false; then : 3976 $as_echo_n "(cached) " >&6 3977else 3978 if test -n "$DLLTOOL"; then 3979 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 3980else 3981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3982for as_dir in $PATH 3983do 3984 IFS=$as_save_IFS 3985 test -z "$as_dir" && as_dir=. 3986 for ac_exec_ext in '' $ac_executable_extensions; do 3987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3988 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3990 break 2 3991 fi 3992done 3993 done 3994IFS=$as_save_IFS 3995 3996fi 3997fi 3998DLLTOOL=$ac_cv_prog_DLLTOOL 3999if test -n "$DLLTOOL"; then 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4001$as_echo "$DLLTOOL" >&6; } 4002else 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4004$as_echo "no" >&6; } 4005fi 4006 4007 4008fi 4009if test -z "$ac_cv_prog_DLLTOOL"; then 4010 ac_ct_DLLTOOL=$DLLTOOL 4011 # Extract the first word of "dlltool", so it can be a program name with args. 4012set dummy dlltool; ac_word=$2 4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4014$as_echo_n "checking for $ac_word... " >&6; } 4015if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4016 $as_echo_n "(cached) " >&6 4017else 4018 if test -n "$ac_ct_DLLTOOL"; then 4019 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4020else 4021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4022for as_dir in $PATH 4023do 4024 IFS=$as_save_IFS 4025 test -z "$as_dir" && as_dir=. 4026 for ac_exec_ext in '' $ac_executable_extensions; do 4027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4028 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4030 break 2 4031 fi 4032done 4033 done 4034IFS=$as_save_IFS 4035 4036fi 4037fi 4038ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4039if test -n "$ac_ct_DLLTOOL"; then 4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4041$as_echo "$ac_ct_DLLTOOL" >&6; } 4042else 4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4044$as_echo "no" >&6; } 4045fi 4046 4047 if test "x$ac_ct_DLLTOOL" = x; then 4048 DLLTOOL="false" 4049 else 4050 case $cross_compiling:$ac_tool_warned in 4051yes:) 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4054ac_tool_warned=yes ;; 4055esac 4056 DLLTOOL=$ac_ct_DLLTOOL 4057 fi 4058else 4059 DLLTOOL="$ac_cv_prog_DLLTOOL" 4060fi 4061 4062 if test -n "$ac_tool_prefix"; then 4063 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4064set dummy ${ac_tool_prefix}objdump; ac_word=$2 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4066$as_echo_n "checking for $ac_word... " >&6; } 4067if ${ac_cv_prog_OBJDUMP+:} false; then : 4068 $as_echo_n "(cached) " >&6 4069else 4070 if test -n "$OBJDUMP"; then 4071 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4072else 4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4074for as_dir in $PATH 4075do 4076 IFS=$as_save_IFS 4077 test -z "$as_dir" && as_dir=. 4078 for ac_exec_ext in '' $ac_executable_extensions; do 4079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4080 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4082 break 2 4083 fi 4084done 4085 done 4086IFS=$as_save_IFS 4087 4088fi 4089fi 4090OBJDUMP=$ac_cv_prog_OBJDUMP 4091if test -n "$OBJDUMP"; then 4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4093$as_echo "$OBJDUMP" >&6; } 4094else 4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4096$as_echo "no" >&6; } 4097fi 4098 4099 4100fi 4101if test -z "$ac_cv_prog_OBJDUMP"; then 4102 ac_ct_OBJDUMP=$OBJDUMP 4103 # Extract the first word of "objdump", so it can be a program name with args. 4104set dummy objdump; ac_word=$2 4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4106$as_echo_n "checking for $ac_word... " >&6; } 4107if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4108 $as_echo_n "(cached) " >&6 4109else 4110 if test -n "$ac_ct_OBJDUMP"; then 4111 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4112else 4113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4114for as_dir in $PATH 4115do 4116 IFS=$as_save_IFS 4117 test -z "$as_dir" && as_dir=. 4118 for ac_exec_ext in '' $ac_executable_extensions; do 4119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4120 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4122 break 2 4123 fi 4124done 4125 done 4126IFS=$as_save_IFS 4127 4128fi 4129fi 4130ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4131if test -n "$ac_ct_OBJDUMP"; then 4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4133$as_echo "$ac_ct_OBJDUMP" >&6; } 4134else 4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4136$as_echo "no" >&6; } 4137fi 4138 4139 if test "x$ac_ct_OBJDUMP" = x; then 4140 OBJDUMP="false" 4141 else 4142 case $cross_compiling:$ac_tool_warned in 4143yes:) 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4146ac_tool_warned=yes ;; 4147esac 4148 OBJDUMP=$ac_ct_OBJDUMP 4149 fi 4150else 4151 OBJDUMP="$ac_cv_prog_OBJDUMP" 4152fi 4153 4154 ;; 4155esac 4156 4157test -z "$AS" && AS=as 4158 4159 4160 4161 4162 4163test -z "$DLLTOOL" && DLLTOOL=dlltool 4164 4165 4166 4167 4168 4169test -z "$OBJDUMP" && OBJDUMP=objdump 4170 4171 4172 4173 4174 4175 4176 4177case `pwd` in 4178 *\ * | *\ *) 4179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4180$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4181esac 4182 4183 4184 4185macro_version='2.2.7a' 4186macro_revision='1.3134' 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200ltmain="$ac_aux_dir/ltmain.sh" 4201 4202# Backslashify metacharacters that are still active within 4203# double-quoted strings. 4204sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4205 4206# Same as above, but do not quote variable references. 4207double_quote_subst='s/\(["`\\]\)/\\\1/g' 4208 4209# Sed substitution to delay expansion of an escaped shell variable in a 4210# double_quote_subst'ed string. 4211delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4212 4213# Sed substitution to delay expansion of an escaped single quote. 4214delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4215 4216# Sed substitution to avoid accidental globbing in evaled expressions 4217no_glob_subst='s/\*/\\\*/g' 4218 4219ac_ext=c 4220ac_cpp='$CPP $CPPFLAGS' 4221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4223ac_compiler_gnu=$ac_cv_c_compiler_gnu 4224if test -n "$ac_tool_prefix"; then 4225 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4226set dummy ${ac_tool_prefix}gcc; ac_word=$2 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4228$as_echo_n "checking for $ac_word... " >&6; } 4229if ${ac_cv_prog_CC+:} false; then : 4230 $as_echo_n "(cached) " >&6 4231else 4232 if test -n "$CC"; then 4233 ac_cv_prog_CC="$CC" # Let the user override the test. 4234else 4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4236for as_dir in $PATH 4237do 4238 IFS=$as_save_IFS 4239 test -z "$as_dir" && as_dir=. 4240 for ac_exec_ext in '' $ac_executable_extensions; do 4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4242 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4244 break 2 4245 fi 4246done 4247 done 4248IFS=$as_save_IFS 4249 4250fi 4251fi 4252CC=$ac_cv_prog_CC 4253if test -n "$CC"; then 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4255$as_echo "$CC" >&6; } 4256else 4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4258$as_echo "no" >&6; } 4259fi 4260 4261 4262fi 4263if test -z "$ac_cv_prog_CC"; then 4264 ac_ct_CC=$CC 4265 # Extract the first word of "gcc", so it can be a program name with args. 4266set dummy gcc; ac_word=$2 4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4268$as_echo_n "checking for $ac_word... " >&6; } 4269if ${ac_cv_prog_ac_ct_CC+:} false; then : 4270 $as_echo_n "(cached) " >&6 4271else 4272 if test -n "$ac_ct_CC"; then 4273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4274else 4275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4276for as_dir in $PATH 4277do 4278 IFS=$as_save_IFS 4279 test -z "$as_dir" && as_dir=. 4280 for ac_exec_ext in '' $ac_executable_extensions; do 4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4282 ac_cv_prog_ac_ct_CC="gcc" 4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4284 break 2 4285 fi 4286done 4287 done 4288IFS=$as_save_IFS 4289 4290fi 4291fi 4292ac_ct_CC=$ac_cv_prog_ac_ct_CC 4293if test -n "$ac_ct_CC"; then 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4295$as_echo "$ac_ct_CC" >&6; } 4296else 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4298$as_echo "no" >&6; } 4299fi 4300 4301 if test "x$ac_ct_CC" = x; then 4302 CC="" 4303 else 4304 case $cross_compiling:$ac_tool_warned in 4305yes:) 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4308ac_tool_warned=yes ;; 4309esac 4310 CC=$ac_ct_CC 4311 fi 4312else 4313 CC="$ac_cv_prog_CC" 4314fi 4315 4316if test -z "$CC"; then 4317 if test -n "$ac_tool_prefix"; then 4318 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4319set dummy ${ac_tool_prefix}cc; ac_word=$2 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4321$as_echo_n "checking for $ac_word... " >&6; } 4322if ${ac_cv_prog_CC+:} false; then : 4323 $as_echo_n "(cached) " >&6 4324else 4325 if test -n "$CC"; then 4326 ac_cv_prog_CC="$CC" # Let the user override the test. 4327else 4328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4329for as_dir in $PATH 4330do 4331 IFS=$as_save_IFS 4332 test -z "$as_dir" && as_dir=. 4333 for ac_exec_ext in '' $ac_executable_extensions; do 4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4335 ac_cv_prog_CC="${ac_tool_prefix}cc" 4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4337 break 2 4338 fi 4339done 4340 done 4341IFS=$as_save_IFS 4342 4343fi 4344fi 4345CC=$ac_cv_prog_CC 4346if test -n "$CC"; then 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4348$as_echo "$CC" >&6; } 4349else 4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4351$as_echo "no" >&6; } 4352fi 4353 4354 4355 fi 4356fi 4357if test -z "$CC"; then 4358 # Extract the first word of "cc", so it can be a program name with args. 4359set dummy cc; ac_word=$2 4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4361$as_echo_n "checking for $ac_word... " >&6; } 4362if ${ac_cv_prog_CC+:} false; then : 4363 $as_echo_n "(cached) " >&6 4364else 4365 if test -n "$CC"; then 4366 ac_cv_prog_CC="$CC" # Let the user override the test. 4367else 4368 ac_prog_rejected=no 4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4370for as_dir in $PATH 4371do 4372 IFS=$as_save_IFS 4373 test -z "$as_dir" && as_dir=. 4374 for ac_exec_ext in '' $ac_executable_extensions; do 4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4377 ac_prog_rejected=yes 4378 continue 4379 fi 4380 ac_cv_prog_CC="cc" 4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4382 break 2 4383 fi 4384done 4385 done 4386IFS=$as_save_IFS 4387 4388if test $ac_prog_rejected = yes; then 4389 # We found a bogon in the path, so make sure we never use it. 4390 set dummy $ac_cv_prog_CC 4391 shift 4392 if test $# != 0; then 4393 # We chose a different compiler from the bogus one. 4394 # However, it has the same basename, so the bogon will be chosen 4395 # first if we set CC to just the basename; use the full file name. 4396 shift 4397 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4398 fi 4399fi 4400fi 4401fi 4402CC=$ac_cv_prog_CC 4403if test -n "$CC"; then 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4405$as_echo "$CC" >&6; } 4406else 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4408$as_echo "no" >&6; } 4409fi 4410 4411 4412fi 4413if test -z "$CC"; then 4414 if test -n "$ac_tool_prefix"; then 4415 for ac_prog in cl.exe 4416 do 4417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4418set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4420$as_echo_n "checking for $ac_word... " >&6; } 4421if ${ac_cv_prog_CC+:} false; then : 4422 $as_echo_n "(cached) " >&6 4423else 4424 if test -n "$CC"; then 4425 ac_cv_prog_CC="$CC" # Let the user override the test. 4426else 4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4428for as_dir in $PATH 4429do 4430 IFS=$as_save_IFS 4431 test -z "$as_dir" && as_dir=. 4432 for ac_exec_ext in '' $ac_executable_extensions; do 4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4434 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4436 break 2 4437 fi 4438done 4439 done 4440IFS=$as_save_IFS 4441 4442fi 4443fi 4444CC=$ac_cv_prog_CC 4445if test -n "$CC"; then 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4447$as_echo "$CC" >&6; } 4448else 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4450$as_echo "no" >&6; } 4451fi 4452 4453 4454 test -n "$CC" && break 4455 done 4456fi 4457if test -z "$CC"; then 4458 ac_ct_CC=$CC 4459 for ac_prog in cl.exe 4460do 4461 # Extract the first word of "$ac_prog", so it can be a program name with args. 4462set dummy $ac_prog; ac_word=$2 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4464$as_echo_n "checking for $ac_word... " >&6; } 4465if ${ac_cv_prog_ac_ct_CC+:} false; then : 4466 $as_echo_n "(cached) " >&6 4467else 4468 if test -n "$ac_ct_CC"; then 4469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4470else 4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4472for as_dir in $PATH 4473do 4474 IFS=$as_save_IFS 4475 test -z "$as_dir" && as_dir=. 4476 for ac_exec_ext in '' $ac_executable_extensions; do 4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4478 ac_cv_prog_ac_ct_CC="$ac_prog" 4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4480 break 2 4481 fi 4482done 4483 done 4484IFS=$as_save_IFS 4485 4486fi 4487fi 4488ac_ct_CC=$ac_cv_prog_ac_ct_CC 4489if test -n "$ac_ct_CC"; then 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4491$as_echo "$ac_ct_CC" >&6; } 4492else 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4494$as_echo "no" >&6; } 4495fi 4496 4497 4498 test -n "$ac_ct_CC" && break 4499done 4500 4501 if test "x$ac_ct_CC" = x; then 4502 CC="" 4503 else 4504 case $cross_compiling:$ac_tool_warned in 4505yes:) 4506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4508ac_tool_warned=yes ;; 4509esac 4510 CC=$ac_ct_CC 4511 fi 4512fi 4513 4514fi 4515 4516 4517test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4519as_fn_error $? "no acceptable C compiler found in \$PATH 4520See \`config.log' for more details" "$LINENO" 5; } 4521 4522# Provide some information about the compiler. 4523$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4524set X $ac_compile 4525ac_compiler=$2 4526for ac_option in --version -v -V -qversion; do 4527 { { ac_try="$ac_compiler $ac_option >&5" 4528case "(($ac_try" in 4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4530 *) ac_try_echo=$ac_try;; 4531esac 4532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4533$as_echo "$ac_try_echo"; } >&5 4534 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4535 ac_status=$? 4536 if test -s conftest.err; then 4537 sed '10a\ 4538... rest of stderr output deleted ... 4539 10q' conftest.err >conftest.er1 4540 cat conftest.er1 >&5 4541 fi 4542 rm -f conftest.er1 conftest.err 4543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4544 test $ac_status = 0; } 4545done 4546 4547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4548/* end confdefs.h. */ 4549 4550int 4551main () 4552{ 4553 4554 ; 4555 return 0; 4556} 4557_ACEOF 4558ac_clean_files_save=$ac_clean_files 4559ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4560# Try to create an executable without -o first, disregard a.out. 4561# It will help us diagnose broken compilers, and finding out an intuition 4562# of exeext. 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4564$as_echo_n "checking whether the C compiler works... " >&6; } 4565ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4566 4567# The possible output files: 4568ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4569 4570ac_rmfiles= 4571for ac_file in $ac_files 4572do 4573 case $ac_file in 4574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4575 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4576 esac 4577done 4578rm -f $ac_rmfiles 4579 4580if { { ac_try="$ac_link_default" 4581case "(($ac_try" in 4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4583 *) ac_try_echo=$ac_try;; 4584esac 4585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4586$as_echo "$ac_try_echo"; } >&5 4587 (eval "$ac_link_default") 2>&5 4588 ac_status=$? 4589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4590 test $ac_status = 0; }; then : 4591 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4592# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4593# in a Makefile. We should not override ac_cv_exeext if it was cached, 4594# so that the user can short-circuit this test for compilers unknown to 4595# Autoconf. 4596for ac_file in $ac_files '' 4597do 4598 test -f "$ac_file" || continue 4599 case $ac_file in 4600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4601 ;; 4602 [ab].out ) 4603 # We found the default executable, but exeext='' is most 4604 # certainly right. 4605 break;; 4606 *.* ) 4607 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4608 then :; else 4609 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4610 fi 4611 # We set ac_cv_exeext here because the later test for it is not 4612 # safe: cross compilers may not add the suffix if given an `-o' 4613 # argument, so we may need to know it at that point already. 4614 # Even if this section looks crufty: it has the advantage of 4615 # actually working. 4616 break;; 4617 * ) 4618 break;; 4619 esac 4620done 4621test "$ac_cv_exeext" = no && ac_cv_exeext= 4622 4623else 4624 ac_file='' 4625fi 4626if test -z "$ac_file"; then : 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4628$as_echo "no" >&6; } 4629$as_echo "$as_me: failed program was:" >&5 4630sed 's/^/| /' conftest.$ac_ext >&5 4631 4632{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4634as_fn_error 77 "C compiler cannot create executables 4635See \`config.log' for more details" "$LINENO" 5; } 4636else 4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4638$as_echo "yes" >&6; } 4639fi 4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4641$as_echo_n "checking for C compiler default output file name... " >&6; } 4642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4643$as_echo "$ac_file" >&6; } 4644ac_exeext=$ac_cv_exeext 4645 4646rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4647ac_clean_files=$ac_clean_files_save 4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4649$as_echo_n "checking for suffix of executables... " >&6; } 4650if { { ac_try="$ac_link" 4651case "(($ac_try" in 4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4653 *) ac_try_echo=$ac_try;; 4654esac 4655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4656$as_echo "$ac_try_echo"; } >&5 4657 (eval "$ac_link") 2>&5 4658 ac_status=$? 4659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4660 test $ac_status = 0; }; then : 4661 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4662# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4663# work properly (i.e., refer to `conftest.exe'), while it won't with 4664# `rm'. 4665for ac_file in conftest.exe conftest conftest.*; do 4666 test -f "$ac_file" || continue 4667 case $ac_file in 4668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4669 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4670 break;; 4671 * ) break;; 4672 esac 4673done 4674else 4675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4677as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4678See \`config.log' for more details" "$LINENO" 5; } 4679fi 4680rm -f conftest conftest$ac_cv_exeext 4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4682$as_echo "$ac_cv_exeext" >&6; } 4683 4684rm -f conftest.$ac_ext 4685EXEEXT=$ac_cv_exeext 4686ac_exeext=$EXEEXT 4687cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4688/* end confdefs.h. */ 4689#include <stdio.h> 4690int 4691main () 4692{ 4693FILE *f = fopen ("conftest.out", "w"); 4694 return ferror (f) || fclose (f) != 0; 4695 4696 ; 4697 return 0; 4698} 4699_ACEOF 4700ac_clean_files="$ac_clean_files conftest.out" 4701# Check that the compiler produces executables we can run. If not, either 4702# the compiler is broken, or we cross compile. 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4704$as_echo_n "checking whether we are cross compiling... " >&6; } 4705if test "$cross_compiling" != yes; then 4706 { { ac_try="$ac_link" 4707case "(($ac_try" in 4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4709 *) ac_try_echo=$ac_try;; 4710esac 4711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4712$as_echo "$ac_try_echo"; } >&5 4713 (eval "$ac_link") 2>&5 4714 ac_status=$? 4715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4716 test $ac_status = 0; } 4717 if { ac_try='./conftest$ac_cv_exeext' 4718 { { case "(($ac_try" in 4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4720 *) ac_try_echo=$ac_try;; 4721esac 4722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4723$as_echo "$ac_try_echo"; } >&5 4724 (eval "$ac_try") 2>&5 4725 ac_status=$? 4726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4727 test $ac_status = 0; }; }; then 4728 cross_compiling=no 4729 else 4730 if test "$cross_compiling" = maybe; then 4731 cross_compiling=yes 4732 else 4733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4735as_fn_error $? "cannot run C compiled programs. 4736If you meant to cross compile, use \`--host'. 4737See \`config.log' for more details" "$LINENO" 5; } 4738 fi 4739 fi 4740fi 4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4742$as_echo "$cross_compiling" >&6; } 4743 4744rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4745ac_clean_files=$ac_clean_files_save 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4747$as_echo_n "checking for suffix of object files... " >&6; } 4748if ${ac_cv_objext+:} false; then : 4749 $as_echo_n "(cached) " >&6 4750else 4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4752/* end confdefs.h. */ 4753 4754int 4755main () 4756{ 4757 4758 ; 4759 return 0; 4760} 4761_ACEOF 4762rm -f conftest.o conftest.obj 4763if { { ac_try="$ac_compile" 4764case "(($ac_try" in 4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4766 *) ac_try_echo=$ac_try;; 4767esac 4768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4769$as_echo "$ac_try_echo"; } >&5 4770 (eval "$ac_compile") 2>&5 4771 ac_status=$? 4772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4773 test $ac_status = 0; }; then : 4774 for ac_file in conftest.o conftest.obj conftest.*; do 4775 test -f "$ac_file" || continue; 4776 case $ac_file in 4777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4778 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4779 break;; 4780 esac 4781done 4782else 4783 $as_echo "$as_me: failed program was:" >&5 4784sed 's/^/| /' conftest.$ac_ext >&5 4785 4786{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4788as_fn_error $? "cannot compute suffix of object files: cannot compile 4789See \`config.log' for more details" "$LINENO" 5; } 4790fi 4791rm -f conftest.$ac_cv_objext conftest.$ac_ext 4792fi 4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4794$as_echo "$ac_cv_objext" >&6; } 4795OBJEXT=$ac_cv_objext 4796ac_objext=$OBJEXT 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4798$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4799if ${ac_cv_c_compiler_gnu+:} false; then : 4800 $as_echo_n "(cached) " >&6 4801else 4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4803/* end confdefs.h. */ 4804 4805int 4806main () 4807{ 4808#ifndef __GNUC__ 4809 choke me 4810#endif 4811 4812 ; 4813 return 0; 4814} 4815_ACEOF 4816if ac_fn_c_try_compile "$LINENO"; then : 4817 ac_compiler_gnu=yes 4818else 4819 ac_compiler_gnu=no 4820fi 4821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4822ac_cv_c_compiler_gnu=$ac_compiler_gnu 4823 4824fi 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4826$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4827if test $ac_compiler_gnu = yes; then 4828 GCC=yes 4829else 4830 GCC= 4831fi 4832ac_test_CFLAGS=${CFLAGS+set} 4833ac_save_CFLAGS=$CFLAGS 4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4835$as_echo_n "checking whether $CC accepts -g... " >&6; } 4836if ${ac_cv_prog_cc_g+:} false; then : 4837 $as_echo_n "(cached) " >&6 4838else 4839 ac_save_c_werror_flag=$ac_c_werror_flag 4840 ac_c_werror_flag=yes 4841 ac_cv_prog_cc_g=no 4842 CFLAGS="-g" 4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4844/* end confdefs.h. */ 4845 4846int 4847main () 4848{ 4849 4850 ; 4851 return 0; 4852} 4853_ACEOF 4854if ac_fn_c_try_compile "$LINENO"; then : 4855 ac_cv_prog_cc_g=yes 4856else 4857 CFLAGS="" 4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4859/* end confdefs.h. */ 4860 4861int 4862main () 4863{ 4864 4865 ; 4866 return 0; 4867} 4868_ACEOF 4869if ac_fn_c_try_compile "$LINENO"; then : 4870 4871else 4872 ac_c_werror_flag=$ac_save_c_werror_flag 4873 CFLAGS="-g" 4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4875/* end confdefs.h. */ 4876 4877int 4878main () 4879{ 4880 4881 ; 4882 return 0; 4883} 4884_ACEOF 4885if ac_fn_c_try_compile "$LINENO"; then : 4886 ac_cv_prog_cc_g=yes 4887fi 4888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4889fi 4890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4891fi 4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4893 ac_c_werror_flag=$ac_save_c_werror_flag 4894fi 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4896$as_echo "$ac_cv_prog_cc_g" >&6; } 4897if test "$ac_test_CFLAGS" = set; then 4898 CFLAGS=$ac_save_CFLAGS 4899elif test $ac_cv_prog_cc_g = yes; then 4900 if test "$GCC" = yes; then 4901 CFLAGS="-g -O2" 4902 else 4903 CFLAGS="-g" 4904 fi 4905else 4906 if test "$GCC" = yes; then 4907 CFLAGS="-O2" 4908 else 4909 CFLAGS= 4910 fi 4911fi 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4913$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4914if ${ac_cv_prog_cc_c89+:} false; then : 4915 $as_echo_n "(cached) " >&6 4916else 4917 ac_cv_prog_cc_c89=no 4918ac_save_CC=$CC 4919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4920/* end confdefs.h. */ 4921#include <stdarg.h> 4922#include <stdio.h> 4923#include <sys/types.h> 4924#include <sys/stat.h> 4925/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4926struct buf { int x; }; 4927FILE * (*rcsopen) (struct buf *, struct stat *, int); 4928static char *e (p, i) 4929 char **p; 4930 int i; 4931{ 4932 return p[i]; 4933} 4934static char *f (char * (*g) (char **, int), char **p, ...) 4935{ 4936 char *s; 4937 va_list v; 4938 va_start (v,p); 4939 s = g (p, va_arg (v,int)); 4940 va_end (v); 4941 return s; 4942} 4943 4944/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4945 function prototypes and stuff, but not '\xHH' hex character constants. 4946 These don't provoke an error unfortunately, instead are silently treated 4947 as 'x'. The following induces an error, until -std is added to get 4948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4949 array size at least. It's necessary to write '\x00'==0 to get something 4950 that's true only with -std. */ 4951int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4952 4953/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4954 inside strings and character constants. */ 4955#define FOO(x) 'x' 4956int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4957 4958int test (int i, double x); 4959struct s1 {int (*f) (int a);}; 4960struct s2 {int (*f) (double a);}; 4961int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4962int argc; 4963char **argv; 4964int 4965main () 4966{ 4967return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4968 ; 4969 return 0; 4970} 4971_ACEOF 4972for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4974do 4975 CC="$ac_save_CC $ac_arg" 4976 if ac_fn_c_try_compile "$LINENO"; then : 4977 ac_cv_prog_cc_c89=$ac_arg 4978fi 4979rm -f core conftest.err conftest.$ac_objext 4980 test "x$ac_cv_prog_cc_c89" != "xno" && break 4981done 4982rm -f conftest.$ac_ext 4983CC=$ac_save_CC 4984 4985fi 4986# AC_CACHE_VAL 4987case "x$ac_cv_prog_cc_c89" in 4988 x) 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4990$as_echo "none needed" >&6; } ;; 4991 xno) 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4993$as_echo "unsupported" >&6; } ;; 4994 *) 4995 CC="$CC $ac_cv_prog_cc_c89" 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4997$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4998esac 4999if test "x$ac_cv_prog_cc_c89" != xno; then : 5000 5001fi 5002 5003ac_ext=c 5004ac_cpp='$CPP $CPPFLAGS' 5005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5007ac_compiler_gnu=$ac_cv_c_compiler_gnu 5008 5009depcc="$CC" am_compiler_list= 5010 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5012$as_echo_n "checking dependency style of $depcc... " >&6; } 5013if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5014 $as_echo_n "(cached) " >&6 5015else 5016 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5017 # We make a subdir and do the tests there. Otherwise we can end up 5018 # making bogus files that we don't know about and never remove. For 5019 # instance it was reported that on HP-UX the gcc test will end up 5020 # making a dummy file named `D' -- because `-MD' means `put the output 5021 # in D'. 5022 rm -rf conftest.dir 5023 mkdir conftest.dir 5024 # Copy depcomp to subdir because otherwise we won't find it if we're 5025 # using a relative directory. 5026 cp "$am_depcomp" conftest.dir 5027 cd conftest.dir 5028 # We will build objects and dependencies in a subdirectory because 5029 # it helps to detect inapplicable dependency modes. For instance 5030 # both Tru64's cc and ICC support -MD to output dependencies as a 5031 # side effect of compilation, but ICC will put the dependencies in 5032 # the current directory while Tru64 will put them in the object 5033 # directory. 5034 mkdir sub 5035 5036 am_cv_CC_dependencies_compiler_type=none 5037 if test "$am_compiler_list" = ""; then 5038 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5039 fi 5040 am__universal=false 5041 case " $depcc " in #( 5042 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5043 esac 5044 5045 for depmode in $am_compiler_list; do 5046 # Setup a source with many dependencies, because some compilers 5047 # like to wrap large dependency lists on column 80 (with \), and 5048 # we should not choose a depcomp mode which is confused by this. 5049 # 5050 # We need to recreate these files for each test, as the compiler may 5051 # overwrite some of them when testing with obscure command lines. 5052 # This happens at least with the AIX C compiler. 5053 : > sub/conftest.c 5054 for i in 1 2 3 4 5 6; do 5055 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5056 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5057 # Solaris 8's {/usr,}/bin/sh. 5058 touch sub/conftst$i.h 5059 done 5060 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5061 5062 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5063 # mode. It turns out that the SunPro C++ compiler does not properly 5064 # handle `-M -o', and we need to detect this. Also, some Intel 5065 # versions had trouble with output in subdirs 5066 am__obj=sub/conftest.${OBJEXT-o} 5067 am__minus_obj="-o $am__obj" 5068 case $depmode in 5069 gcc) 5070 # This depmode causes a compiler race in universal mode. 5071 test "$am__universal" = false || continue 5072 ;; 5073 nosideeffect) 5074 # after this tag, mechanisms are not by side-effect, so they'll 5075 # only be used when explicitly requested 5076 if test "x$enable_dependency_tracking" = xyes; then 5077 continue 5078 else 5079 break 5080 fi 5081 ;; 5082 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5083 # This compiler won't grok `-c -o', but also, the minuso test has 5084 # not run yet. These depmodes are late enough in the game, and 5085 # so weak that their functioning should not be impacted. 5086 am__obj=conftest.${OBJEXT-o} 5087 am__minus_obj= 5088 ;; 5089 none) break ;; 5090 esac 5091 if depmode=$depmode \ 5092 source=sub/conftest.c object=$am__obj \ 5093 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5094 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5095 >/dev/null 2>conftest.err && 5096 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5097 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5098 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5099 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5100 # icc doesn't choke on unknown options, it will just issue warnings 5101 # or remarks (even with -Werror). So we grep stderr for any message 5102 # that says an option was ignored or not supported. 5103 # When given -MP, icc 7.0 and 7.1 complain thusly: 5104 # icc: Command line warning: ignoring option '-M'; no argument required 5105 # The diagnosis changed in icc 8.0: 5106 # icc: Command line remark: option '-MP' not supported 5107 if (grep 'ignoring option' conftest.err || 5108 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5109 am_cv_CC_dependencies_compiler_type=$depmode 5110 break 5111 fi 5112 fi 5113 done 5114 5115 cd .. 5116 rm -rf conftest.dir 5117else 5118 am_cv_CC_dependencies_compiler_type=none 5119fi 5120 5121fi 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5123$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5124CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5125 5126 if 5127 test "x$enable_dependency_tracking" != xno \ 5128 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5129 am__fastdepCC_TRUE= 5130 am__fastdepCC_FALSE='#' 5131else 5132 am__fastdepCC_TRUE='#' 5133 am__fastdepCC_FALSE= 5134fi 5135 5136 5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5138$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5139if ${ac_cv_path_GREP+:} false; then : 5140 $as_echo_n "(cached) " >&6 5141else 5142 if test -z "$GREP"; then 5143 ac_path_GREP_found=false 5144 # Loop through the user's path and test for each of PROGNAME-LIST 5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5146for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5147do 5148 IFS=$as_save_IFS 5149 test -z "$as_dir" && as_dir=. 5150 for ac_prog in grep ggrep; do 5151 for ac_exec_ext in '' $ac_executable_extensions; do 5152 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5153 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5154# Check for GNU ac_path_GREP and select it if it is found. 5155 # Check for GNU $ac_path_GREP 5156case `"$ac_path_GREP" --version 2>&1` in 5157*GNU*) 5158 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5159*) 5160 ac_count=0 5161 $as_echo_n 0123456789 >"conftest.in" 5162 while : 5163 do 5164 cat "conftest.in" "conftest.in" >"conftest.tmp" 5165 mv "conftest.tmp" "conftest.in" 5166 cp "conftest.in" "conftest.nl" 5167 $as_echo 'GREP' >> "conftest.nl" 5168 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5170 as_fn_arith $ac_count + 1 && ac_count=$as_val 5171 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5172 # Best one so far, save it but keep looking for a better one 5173 ac_cv_path_GREP="$ac_path_GREP" 5174 ac_path_GREP_max=$ac_count 5175 fi 5176 # 10*(2^10) chars as input seems more than enough 5177 test $ac_count -gt 10 && break 5178 done 5179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5180esac 5181 5182 $ac_path_GREP_found && break 3 5183 done 5184 done 5185 done 5186IFS=$as_save_IFS 5187 if test -z "$ac_cv_path_GREP"; then 5188 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5189 fi 5190else 5191 ac_cv_path_GREP=$GREP 5192fi 5193 5194fi 5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5196$as_echo "$ac_cv_path_GREP" >&6; } 5197 GREP="$ac_cv_path_GREP" 5198 5199 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5201$as_echo_n "checking for egrep... " >&6; } 5202if ${ac_cv_path_EGREP+:} false; then : 5203 $as_echo_n "(cached) " >&6 5204else 5205 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5206 then ac_cv_path_EGREP="$GREP -E" 5207 else 5208 if test -z "$EGREP"; then 5209 ac_path_EGREP_found=false 5210 # Loop through the user's path and test for each of PROGNAME-LIST 5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5212for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5213do 5214 IFS=$as_save_IFS 5215 test -z "$as_dir" && as_dir=. 5216 for ac_prog in egrep; do 5217 for ac_exec_ext in '' $ac_executable_extensions; do 5218 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5219 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5220# Check for GNU ac_path_EGREP and select it if it is found. 5221 # Check for GNU $ac_path_EGREP 5222case `"$ac_path_EGREP" --version 2>&1` in 5223*GNU*) 5224 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5225*) 5226 ac_count=0 5227 $as_echo_n 0123456789 >"conftest.in" 5228 while : 5229 do 5230 cat "conftest.in" "conftest.in" >"conftest.tmp" 5231 mv "conftest.tmp" "conftest.in" 5232 cp "conftest.in" "conftest.nl" 5233 $as_echo 'EGREP' >> "conftest.nl" 5234 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5236 as_fn_arith $ac_count + 1 && ac_count=$as_val 5237 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5238 # Best one so far, save it but keep looking for a better one 5239 ac_cv_path_EGREP="$ac_path_EGREP" 5240 ac_path_EGREP_max=$ac_count 5241 fi 5242 # 10*(2^10) chars as input seems more than enough 5243 test $ac_count -gt 10 && break 5244 done 5245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5246esac 5247 5248 $ac_path_EGREP_found && break 3 5249 done 5250 done 5251 done 5252IFS=$as_save_IFS 5253 if test -z "$ac_cv_path_EGREP"; then 5254 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5255 fi 5256else 5257 ac_cv_path_EGREP=$EGREP 5258fi 5259 5260 fi 5261fi 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5263$as_echo "$ac_cv_path_EGREP" >&6; } 5264 EGREP="$ac_cv_path_EGREP" 5265 5266 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5268$as_echo_n "checking for fgrep... " >&6; } 5269if ${ac_cv_path_FGREP+:} false; then : 5270 $as_echo_n "(cached) " >&6 5271else 5272 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5273 then ac_cv_path_FGREP="$GREP -F" 5274 else 5275 if test -z "$FGREP"; then 5276 ac_path_FGREP_found=false 5277 # Loop through the user's path and test for each of PROGNAME-LIST 5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5280do 5281 IFS=$as_save_IFS 5282 test -z "$as_dir" && as_dir=. 5283 for ac_prog in fgrep; do 5284 for ac_exec_ext in '' $ac_executable_extensions; do 5285 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5286 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5287# Check for GNU ac_path_FGREP and select it if it is found. 5288 # Check for GNU $ac_path_FGREP 5289case `"$ac_path_FGREP" --version 2>&1` in 5290*GNU*) 5291 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5292*) 5293 ac_count=0 5294 $as_echo_n 0123456789 >"conftest.in" 5295 while : 5296 do 5297 cat "conftest.in" "conftest.in" >"conftest.tmp" 5298 mv "conftest.tmp" "conftest.in" 5299 cp "conftest.in" "conftest.nl" 5300 $as_echo 'FGREP' >> "conftest.nl" 5301 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5303 as_fn_arith $ac_count + 1 && ac_count=$as_val 5304 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5305 # Best one so far, save it but keep looking for a better one 5306 ac_cv_path_FGREP="$ac_path_FGREP" 5307 ac_path_FGREP_max=$ac_count 5308 fi 5309 # 10*(2^10) chars as input seems more than enough 5310 test $ac_count -gt 10 && break 5311 done 5312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5313esac 5314 5315 $ac_path_FGREP_found && break 3 5316 done 5317 done 5318 done 5319IFS=$as_save_IFS 5320 if test -z "$ac_cv_path_FGREP"; then 5321 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5322 fi 5323else 5324 ac_cv_path_FGREP=$FGREP 5325fi 5326 5327 fi 5328fi 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5330$as_echo "$ac_cv_path_FGREP" >&6; } 5331 FGREP="$ac_cv_path_FGREP" 5332 5333 5334test -z "$GREP" && GREP=grep 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354# Check whether --with-gnu-ld was given. 5355if test "${with_gnu_ld+set}" = set; then : 5356 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5357else 5358 with_gnu_ld=no 5359fi 5360 5361ac_prog=ld 5362if test "$GCC" = yes; then 5363 # Check if gcc -print-prog-name=ld gives a path. 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5365$as_echo_n "checking for ld used by $CC... " >&6; } 5366 case $host in 5367 *-*-mingw*) 5368 # gcc leaves a trailing carriage return which upsets mingw 5369 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5370 *) 5371 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5372 esac 5373 case $ac_prog in 5374 # Accept absolute paths. 5375 [\\/]* | ?:[\\/]*) 5376 re_direlt='/[^/][^/]*/\.\./' 5377 # Canonicalize the pathname of ld 5378 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5379 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5380 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5381 done 5382 test -z "$LD" && LD="$ac_prog" 5383 ;; 5384 "") 5385 # If it fails, then pretend we aren't using GCC. 5386 ac_prog=ld 5387 ;; 5388 *) 5389 # If it is relative, then search for the first ld in PATH. 5390 with_gnu_ld=unknown 5391 ;; 5392 esac 5393elif test "$with_gnu_ld" = yes; then 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5395$as_echo_n "checking for GNU ld... " >&6; } 5396else 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5398$as_echo_n "checking for non-GNU ld... " >&6; } 5399fi 5400if ${lt_cv_path_LD+:} false; then : 5401 $as_echo_n "(cached) " >&6 5402else 5403 if test -z "$LD"; then 5404 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5405 for ac_dir in $PATH; do 5406 IFS="$lt_save_ifs" 5407 test -z "$ac_dir" && ac_dir=. 5408 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5409 lt_cv_path_LD="$ac_dir/$ac_prog" 5410 # Check to see if the program is GNU ld. I'd rather use --version, 5411 # but apparently some variants of GNU ld only accept -v. 5412 # Break only if it was the GNU/non-GNU ld that we prefer. 5413 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5414 *GNU* | *'with BFD'*) 5415 test "$with_gnu_ld" != no && break 5416 ;; 5417 *) 5418 test "$with_gnu_ld" != yes && break 5419 ;; 5420 esac 5421 fi 5422 done 5423 IFS="$lt_save_ifs" 5424else 5425 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5426fi 5427fi 5428 5429LD="$lt_cv_path_LD" 5430if test -n "$LD"; then 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5432$as_echo "$LD" >&6; } 5433else 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5435$as_echo "no" >&6; } 5436fi 5437test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5439$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5440if ${lt_cv_prog_gnu_ld+:} false; then : 5441 $as_echo_n "(cached) " >&6 5442else 5443 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5444case `$LD -v 2>&1 </dev/null` in 5445*GNU* | *'with BFD'*) 5446 lt_cv_prog_gnu_ld=yes 5447 ;; 5448*) 5449 lt_cv_prog_gnu_ld=no 5450 ;; 5451esac 5452fi 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5454$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5455with_gnu_ld=$lt_cv_prog_gnu_ld 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5466$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5467if ${lt_cv_path_NM+:} false; then : 5468 $as_echo_n "(cached) " >&6 5469else 5470 if test -n "$NM"; then 5471 # Let the user override the test. 5472 lt_cv_path_NM="$NM" 5473else 5474 lt_nm_to_check="${ac_tool_prefix}nm" 5475 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5476 lt_nm_to_check="$lt_nm_to_check nm" 5477 fi 5478 for lt_tmp_nm in $lt_nm_to_check; do 5479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5480 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5481 IFS="$lt_save_ifs" 5482 test -z "$ac_dir" && ac_dir=. 5483 tmp_nm="$ac_dir/$lt_tmp_nm" 5484 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5485 # Check to see if the nm accepts a BSD-compat flag. 5486 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5487 # nm: unknown option "B" ignored 5488 # Tru64's nm complains that /dev/null is an invalid object file 5489 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5490 */dev/null* | *'Invalid file or object type'*) 5491 lt_cv_path_NM="$tmp_nm -B" 5492 break 5493 ;; 5494 *) 5495 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5496 */dev/null*) 5497 lt_cv_path_NM="$tmp_nm -p" 5498 break 5499 ;; 5500 *) 5501 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5502 continue # so that we can try to find one that supports BSD flags 5503 ;; 5504 esac 5505 ;; 5506 esac 5507 fi 5508 done 5509 IFS="$lt_save_ifs" 5510 done 5511 : ${lt_cv_path_NM=no} 5512fi 5513fi 5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5515$as_echo "$lt_cv_path_NM" >&6; } 5516if test "$lt_cv_path_NM" != "no"; then 5517 NM="$lt_cv_path_NM" 5518else 5519 # Didn't find any BSD compatible name lister, look for dumpbin. 5520 if test -n "$DUMPBIN"; then : 5521 # Let the user override the test. 5522 else 5523 if test -n "$ac_tool_prefix"; then 5524 for ac_prog in dumpbin "link -dump" 5525 do 5526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5527set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5529$as_echo_n "checking for $ac_word... " >&6; } 5530if ${ac_cv_prog_DUMPBIN+:} false; then : 5531 $as_echo_n "(cached) " >&6 5532else 5533 if test -n "$DUMPBIN"; then 5534 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5535else 5536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5537for as_dir in $PATH 5538do 5539 IFS=$as_save_IFS 5540 test -z "$as_dir" && as_dir=. 5541 for ac_exec_ext in '' $ac_executable_extensions; do 5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5543 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5545 break 2 5546 fi 5547done 5548 done 5549IFS=$as_save_IFS 5550 5551fi 5552fi 5553DUMPBIN=$ac_cv_prog_DUMPBIN 5554if test -n "$DUMPBIN"; then 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5556$as_echo "$DUMPBIN" >&6; } 5557else 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5559$as_echo "no" >&6; } 5560fi 5561 5562 5563 test -n "$DUMPBIN" && break 5564 done 5565fi 5566if test -z "$DUMPBIN"; then 5567 ac_ct_DUMPBIN=$DUMPBIN 5568 for ac_prog in dumpbin "link -dump" 5569do 5570 # Extract the first word of "$ac_prog", so it can be a program name with args. 5571set dummy $ac_prog; ac_word=$2 5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5573$as_echo_n "checking for $ac_word... " >&6; } 5574if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5575 $as_echo_n "(cached) " >&6 5576else 5577 if test -n "$ac_ct_DUMPBIN"; then 5578 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5579else 5580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5581for as_dir in $PATH 5582do 5583 IFS=$as_save_IFS 5584 test -z "$as_dir" && as_dir=. 5585 for ac_exec_ext in '' $ac_executable_extensions; do 5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5587 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5589 break 2 5590 fi 5591done 5592 done 5593IFS=$as_save_IFS 5594 5595fi 5596fi 5597ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5598if test -n "$ac_ct_DUMPBIN"; then 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5600$as_echo "$ac_ct_DUMPBIN" >&6; } 5601else 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5603$as_echo "no" >&6; } 5604fi 5605 5606 5607 test -n "$ac_ct_DUMPBIN" && break 5608done 5609 5610 if test "x$ac_ct_DUMPBIN" = x; then 5611 DUMPBIN=":" 5612 else 5613 case $cross_compiling:$ac_tool_warned in 5614yes:) 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5617ac_tool_warned=yes ;; 5618esac 5619 DUMPBIN=$ac_ct_DUMPBIN 5620 fi 5621fi 5622 5623 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5624 *COFF*) 5625 DUMPBIN="$DUMPBIN -symbols" 5626 ;; 5627 *) 5628 DUMPBIN=: 5629 ;; 5630 esac 5631 fi 5632 5633 if test "$DUMPBIN" != ":"; then 5634 NM="$DUMPBIN" 5635 fi 5636fi 5637test -z "$NM" && NM=nm 5638 5639 5640 5641 5642 5643 5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5645$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5646if ${lt_cv_nm_interface+:} false; then : 5647 $as_echo_n "(cached) " >&6 5648else 5649 lt_cv_nm_interface="BSD nm" 5650 echo "int some_variable = 0;" > conftest.$ac_ext 5651 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5652 (eval "$ac_compile" 2>conftest.err) 5653 cat conftest.err >&5 5654 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5655 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5656 cat conftest.err >&5 5657 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5658 cat conftest.out >&5 5659 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5660 lt_cv_nm_interface="MS dumpbin" 5661 fi 5662 rm -f conftest* 5663fi 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5665$as_echo "$lt_cv_nm_interface" >&6; } 5666 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5668$as_echo_n "checking whether ln -s works... " >&6; } 5669LN_S=$as_ln_s 5670if test "$LN_S" = "ln -s"; then 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5672$as_echo "yes" >&6; } 5673else 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5675$as_echo "no, using $LN_S" >&6; } 5676fi 5677 5678# find the maximum length of command line arguments 5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5680$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5681if ${lt_cv_sys_max_cmd_len+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683else 5684 i=0 5685 teststring="ABCD" 5686 5687 case $build_os in 5688 msdosdjgpp*) 5689 # On DJGPP, this test can blow up pretty badly due to problems in libc 5690 # (any single argument exceeding 2000 bytes causes a buffer overrun 5691 # during glob expansion). Even if it were fixed, the result of this 5692 # check would be larger than it should be. 5693 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5694 ;; 5695 5696 gnu*) 5697 # Under GNU Hurd, this test is not required because there is 5698 # no limit to the length of command line arguments. 5699 # Libtool will interpret -1 as no limit whatsoever 5700 lt_cv_sys_max_cmd_len=-1; 5701 ;; 5702 5703 cygwin* | mingw* | cegcc*) 5704 # On Win9x/ME, this test blows up -- it succeeds, but takes 5705 # about 5 minutes as the teststring grows exponentially. 5706 # Worse, since 9x/ME are not pre-emptively multitasking, 5707 # you end up with a "frozen" computer, even though with patience 5708 # the test eventually succeeds (with a max line length of 256k). 5709 # Instead, let's just punt: use the minimum linelength reported by 5710 # all of the supported platforms: 8192 (on NT/2K/XP). 5711 lt_cv_sys_max_cmd_len=8192; 5712 ;; 5713 5714 mint*) 5715 # On MiNT this can take a long time and run out of memory. 5716 lt_cv_sys_max_cmd_len=8192; 5717 ;; 5718 5719 amigaos*) 5720 # On AmigaOS with pdksh, this test takes hours, literally. 5721 # So we just punt and use a minimum line length of 8192. 5722 lt_cv_sys_max_cmd_len=8192; 5723 ;; 5724 5725 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5726 # This has been around since 386BSD, at least. Likely further. 5727 if test -x /sbin/sysctl; then 5728 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5729 elif test -x /usr/sbin/sysctl; then 5730 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5731 else 5732 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5733 fi 5734 # And add a safety zone 5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5737 ;; 5738 5739 interix*) 5740 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5741 lt_cv_sys_max_cmd_len=196608 5742 ;; 5743 5744 osf*) 5745 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5746 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5747 # nice to cause kernel panics so lets avoid the loop below. 5748 # First set a reasonable default. 5749 lt_cv_sys_max_cmd_len=16384 5750 # 5751 if test -x /sbin/sysconfig; then 5752 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5753 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5754 esac 5755 fi 5756 ;; 5757 sco3.2v5*) 5758 lt_cv_sys_max_cmd_len=102400 5759 ;; 5760 sysv5* | sco5v6* | sysv4.2uw2*) 5761 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5762 if test -n "$kargmax"; then 5763 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5764 else 5765 lt_cv_sys_max_cmd_len=32768 5766 fi 5767 ;; 5768 *) 5769 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5770 if test -n "$lt_cv_sys_max_cmd_len"; then 5771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5773 else 5774 # Make teststring a little bigger before we do anything with it. 5775 # a 1K string should be a reasonable start. 5776 for i in 1 2 3 4 5 6 7 8 ; do 5777 teststring=$teststring$teststring 5778 done 5779 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5780 # If test is not a shell built-in, we'll probably end up computing a 5781 # maximum length that is only half of the actual maximum length, but 5782 # we can't tell. 5783 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5784 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5785 test $i != 17 # 1/2 MB should be enough 5786 do 5787 i=`expr $i + 1` 5788 teststring=$teststring$teststring 5789 done 5790 # Only check the string length outside the loop. 5791 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5792 teststring= 5793 # Add a significant safety factor because C++ compilers can tack on 5794 # massive amounts of additional arguments before passing them to the 5795 # linker. It appears as though 1/2 is a usable value. 5796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5797 fi 5798 ;; 5799 esac 5800 5801fi 5802 5803if test -n $lt_cv_sys_max_cmd_len ; then 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5805$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5806else 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5808$as_echo "none" >&6; } 5809fi 5810max_cmd_len=$lt_cv_sys_max_cmd_len 5811 5812 5813 5814 5815 5816 5817: ${CP="cp -f"} 5818: ${MV="mv -f"} 5819: ${RM="rm -f"} 5820 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5822$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5823# Try some XSI features 5824xsi_shell=no 5825( _lt_dummy="a/b/c" 5826 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5827 = c,a/b,, \ 5828 && eval 'test $(( 1 + 1 )) -eq 2 \ 5829 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5830 && xsi_shell=yes 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5832$as_echo "$xsi_shell" >&6; } 5833 5834 5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5836$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5837lt_shell_append=no 5838( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5839 >/dev/null 2>&1 \ 5840 && lt_shell_append=yes 5841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5842$as_echo "$lt_shell_append" >&6; } 5843 5844 5845if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5846 lt_unset=unset 5847else 5848 lt_unset=false 5849fi 5850 5851 5852 5853 5854 5855# test EBCDIC or ASCII 5856case `echo X|tr X '\101'` in 5857 A) # ASCII based system 5858 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5859 lt_SP2NL='tr \040 \012' 5860 lt_NL2SP='tr \015\012 \040\040' 5861 ;; 5862 *) # EBCDIC based system 5863 lt_SP2NL='tr \100 \n' 5864 lt_NL2SP='tr \r\n \100\100' 5865 ;; 5866esac 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5877$as_echo_n "checking for $LD option to reload object files... " >&6; } 5878if ${lt_cv_ld_reload_flag+:} false; then : 5879 $as_echo_n "(cached) " >&6 5880else 5881 lt_cv_ld_reload_flag='-r' 5882fi 5883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5884$as_echo "$lt_cv_ld_reload_flag" >&6; } 5885reload_flag=$lt_cv_ld_reload_flag 5886case $reload_flag in 5887"" | " "*) ;; 5888*) reload_flag=" $reload_flag" ;; 5889esac 5890reload_cmds='$LD$reload_flag -o $output$reload_objs' 5891case $host_os in 5892 darwin*) 5893 if test "$GCC" = yes; then 5894 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5895 else 5896 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5897 fi 5898 ;; 5899esac 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909if test -n "$ac_tool_prefix"; then 5910 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5911set dummy ${ac_tool_prefix}objdump; ac_word=$2 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5913$as_echo_n "checking for $ac_word... " >&6; } 5914if ${ac_cv_prog_OBJDUMP+:} false; then : 5915 $as_echo_n "(cached) " >&6 5916else 5917 if test -n "$OBJDUMP"; then 5918 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5919else 5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5921for as_dir in $PATH 5922do 5923 IFS=$as_save_IFS 5924 test -z "$as_dir" && as_dir=. 5925 for ac_exec_ext in '' $ac_executable_extensions; do 5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5927 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5929 break 2 5930 fi 5931done 5932 done 5933IFS=$as_save_IFS 5934 5935fi 5936fi 5937OBJDUMP=$ac_cv_prog_OBJDUMP 5938if test -n "$OBJDUMP"; then 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5940$as_echo "$OBJDUMP" >&6; } 5941else 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5943$as_echo "no" >&6; } 5944fi 5945 5946 5947fi 5948if test -z "$ac_cv_prog_OBJDUMP"; then 5949 ac_ct_OBJDUMP=$OBJDUMP 5950 # Extract the first word of "objdump", so it can be a program name with args. 5951set dummy objdump; ac_word=$2 5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5953$as_echo_n "checking for $ac_word... " >&6; } 5954if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5955 $as_echo_n "(cached) " >&6 5956else 5957 if test -n "$ac_ct_OBJDUMP"; then 5958 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5959else 5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5961for as_dir in $PATH 5962do 5963 IFS=$as_save_IFS 5964 test -z "$as_dir" && as_dir=. 5965 for ac_exec_ext in '' $ac_executable_extensions; do 5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5967 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5969 break 2 5970 fi 5971done 5972 done 5973IFS=$as_save_IFS 5974 5975fi 5976fi 5977ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5978if test -n "$ac_ct_OBJDUMP"; then 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5980$as_echo "$ac_ct_OBJDUMP" >&6; } 5981else 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5983$as_echo "no" >&6; } 5984fi 5985 5986 if test "x$ac_ct_OBJDUMP" = x; then 5987 OBJDUMP="false" 5988 else 5989 case $cross_compiling:$ac_tool_warned in 5990yes:) 5991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5993ac_tool_warned=yes ;; 5994esac 5995 OBJDUMP=$ac_ct_OBJDUMP 5996 fi 5997else 5998 OBJDUMP="$ac_cv_prog_OBJDUMP" 5999fi 6000 6001test -z "$OBJDUMP" && OBJDUMP=objdump 6002 6003 6004 6005 6006 6007 6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6009$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6010if ${lt_cv_deplibs_check_method+:} false; then : 6011 $as_echo_n "(cached) " >&6 6012else 6013 lt_cv_file_magic_cmd='$MAGIC_CMD' 6014lt_cv_file_magic_test_file= 6015lt_cv_deplibs_check_method='unknown' 6016# Need to set the preceding variable on all platforms that support 6017# interlibrary dependencies. 6018# 'none' -- dependencies not supported. 6019# `unknown' -- same as none, but documents that we really don't know. 6020# 'pass_all' -- all dependencies passed with no checks. 6021# 'test_compile' -- check by making test program. 6022# 'file_magic [[regex]]' -- check by looking for files in library path 6023# which responds to the $file_magic_cmd with a given extended regex. 6024# If you have `file' or equivalent on your system and you're not sure 6025# whether `pass_all' will *always* work, you probably want this one. 6026 6027case $host_os in 6028aix[4-9]*) 6029 lt_cv_deplibs_check_method=pass_all 6030 ;; 6031 6032beos*) 6033 lt_cv_deplibs_check_method=pass_all 6034 ;; 6035 6036bsdi[45]*) 6037 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6038 lt_cv_file_magic_cmd='/usr/bin/file -L' 6039 lt_cv_file_magic_test_file=/shlib/libc.so 6040 ;; 6041 6042cygwin*) 6043 # func_win32_libid is a shell function defined in ltmain.sh 6044 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6045 lt_cv_file_magic_cmd='func_win32_libid' 6046 ;; 6047 6048mingw* | pw32*) 6049 # Base MSYS/MinGW do not provide the 'file' command needed by 6050 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6051 # unless we find 'file', for example because we are cross-compiling. 6052 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6053 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6054 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6055 lt_cv_file_magic_cmd='func_win32_libid' 6056 else 6057 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6058 lt_cv_file_magic_cmd='$OBJDUMP -f' 6059 fi 6060 ;; 6061 6062cegcc*) 6063 # use the weaker test based on 'objdump'. See mingw*. 6064 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6065 lt_cv_file_magic_cmd='$OBJDUMP -f' 6066 ;; 6067 6068darwin* | rhapsody*) 6069 lt_cv_deplibs_check_method=pass_all 6070 ;; 6071 6072freebsd* | dragonfly*) 6073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6074 case $host_cpu in 6075 i*86 ) 6076 # Not sure whether the presence of OpenBSD here was a mistake. 6077 # Let's accept both of them until this is cleared up. 6078 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6079 lt_cv_file_magic_cmd=/usr/bin/file 6080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6081 ;; 6082 esac 6083 else 6084 lt_cv_deplibs_check_method=pass_all 6085 fi 6086 ;; 6087 6088gnu*) 6089 lt_cv_deplibs_check_method=pass_all 6090 ;; 6091 6092haiku*) 6093 lt_cv_deplibs_check_method=pass_all 6094 ;; 6095 6096hpux10.20* | hpux11*) 6097 lt_cv_file_magic_cmd=/usr/bin/file 6098 case $host_cpu in 6099 ia64*) 6100 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6101 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6102 ;; 6103 hppa*64*) 6104 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]' 6105 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6106 ;; 6107 *) 6108 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6109 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6110 ;; 6111 esac 6112 ;; 6113 6114interix[3-9]*) 6115 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6117 ;; 6118 6119irix5* | irix6* | nonstopux*) 6120 case $LD in 6121 *-32|*"-32 ") libmagic=32-bit;; 6122 *-n32|*"-n32 ") libmagic=N32;; 6123 *-64|*"-64 ") libmagic=64-bit;; 6124 *) libmagic=never-match;; 6125 esac 6126 lt_cv_deplibs_check_method=pass_all 6127 ;; 6128 6129# This must be Linux ELF. 6130linux* | k*bsd*-gnu | kopensolaris*-gnu) 6131 lt_cv_deplibs_check_method=pass_all 6132 ;; 6133 6134netbsd*) 6135 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6137 else 6138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6139 fi 6140 ;; 6141 6142newos6*) 6143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6144 lt_cv_file_magic_cmd=/usr/bin/file 6145 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6146 ;; 6147 6148*nto* | *qnx*) 6149 lt_cv_deplibs_check_method=pass_all 6150 ;; 6151 6152openbsd*) 6153 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6155 else 6156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6157 fi 6158 ;; 6159 6160osf3* | osf4* | osf5*) 6161 lt_cv_deplibs_check_method=pass_all 6162 ;; 6163 6164rdos*) 6165 lt_cv_deplibs_check_method=pass_all 6166 ;; 6167 6168solaris*) 6169 lt_cv_deplibs_check_method=pass_all 6170 ;; 6171 6172sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6173 lt_cv_deplibs_check_method=pass_all 6174 ;; 6175 6176sysv4 | sysv4.3*) 6177 case $host_vendor in 6178 motorola) 6179 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]' 6180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6181 ;; 6182 ncr) 6183 lt_cv_deplibs_check_method=pass_all 6184 ;; 6185 sequent) 6186 lt_cv_file_magic_cmd='/bin/file' 6187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6188 ;; 6189 sni) 6190 lt_cv_file_magic_cmd='/bin/file' 6191 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6192 lt_cv_file_magic_test_file=/lib/libc.so 6193 ;; 6194 siemens) 6195 lt_cv_deplibs_check_method=pass_all 6196 ;; 6197 pc) 6198 lt_cv_deplibs_check_method=pass_all 6199 ;; 6200 esac 6201 ;; 6202 6203tpf*) 6204 lt_cv_deplibs_check_method=pass_all 6205 ;; 6206esac 6207 6208fi 6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6210$as_echo "$lt_cv_deplibs_check_method" >&6; } 6211file_magic_cmd=$lt_cv_file_magic_cmd 6212deplibs_check_method=$lt_cv_deplibs_check_method 6213test -z "$deplibs_check_method" && deplibs_check_method=unknown 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226if test -n "$ac_tool_prefix"; then 6227 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6228set dummy ${ac_tool_prefix}ar; ac_word=$2 6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6230$as_echo_n "checking for $ac_word... " >&6; } 6231if ${ac_cv_prog_AR+:} false; then : 6232 $as_echo_n "(cached) " >&6 6233else 6234 if test -n "$AR"; then 6235 ac_cv_prog_AR="$AR" # Let the user override the test. 6236else 6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6238for as_dir in $PATH 6239do 6240 IFS=$as_save_IFS 6241 test -z "$as_dir" && as_dir=. 6242 for ac_exec_ext in '' $ac_executable_extensions; do 6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6244 ac_cv_prog_AR="${ac_tool_prefix}ar" 6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6246 break 2 6247 fi 6248done 6249 done 6250IFS=$as_save_IFS 6251 6252fi 6253fi 6254AR=$ac_cv_prog_AR 6255if test -n "$AR"; then 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6257$as_echo "$AR" >&6; } 6258else 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6260$as_echo "no" >&6; } 6261fi 6262 6263 6264fi 6265if test -z "$ac_cv_prog_AR"; then 6266 ac_ct_AR=$AR 6267 # Extract the first word of "ar", so it can be a program name with args. 6268set dummy ar; ac_word=$2 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6270$as_echo_n "checking for $ac_word... " >&6; } 6271if ${ac_cv_prog_ac_ct_AR+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273else 6274 if test -n "$ac_ct_AR"; then 6275 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6276else 6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6278for as_dir in $PATH 6279do 6280 IFS=$as_save_IFS 6281 test -z "$as_dir" && as_dir=. 6282 for ac_exec_ext in '' $ac_executable_extensions; do 6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6284 ac_cv_prog_ac_ct_AR="ar" 6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6286 break 2 6287 fi 6288done 6289 done 6290IFS=$as_save_IFS 6291 6292fi 6293fi 6294ac_ct_AR=$ac_cv_prog_ac_ct_AR 6295if test -n "$ac_ct_AR"; then 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6297$as_echo "$ac_ct_AR" >&6; } 6298else 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6300$as_echo "no" >&6; } 6301fi 6302 6303 if test "x$ac_ct_AR" = x; then 6304 AR="false" 6305 else 6306 case $cross_compiling:$ac_tool_warned in 6307yes:) 6308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6310ac_tool_warned=yes ;; 6311esac 6312 AR=$ac_ct_AR 6313 fi 6314else 6315 AR="$ac_cv_prog_AR" 6316fi 6317 6318test -z "$AR" && AR=ar 6319test -z "$AR_FLAGS" && AR_FLAGS=cru 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331if test -n "$ac_tool_prefix"; then 6332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6333set dummy ${ac_tool_prefix}strip; ac_word=$2 6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6335$as_echo_n "checking for $ac_word... " >&6; } 6336if ${ac_cv_prog_STRIP+:} false; then : 6337 $as_echo_n "(cached) " >&6 6338else 6339 if test -n "$STRIP"; then 6340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6341else 6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6343for as_dir in $PATH 6344do 6345 IFS=$as_save_IFS 6346 test -z "$as_dir" && as_dir=. 6347 for ac_exec_ext in '' $ac_executable_extensions; do 6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6349 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6351 break 2 6352 fi 6353done 6354 done 6355IFS=$as_save_IFS 6356 6357fi 6358fi 6359STRIP=$ac_cv_prog_STRIP 6360if test -n "$STRIP"; then 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6362$as_echo "$STRIP" >&6; } 6363else 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6365$as_echo "no" >&6; } 6366fi 6367 6368 6369fi 6370if test -z "$ac_cv_prog_STRIP"; then 6371 ac_ct_STRIP=$STRIP 6372 # Extract the first word of "strip", so it can be a program name with args. 6373set dummy strip; ac_word=$2 6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6375$as_echo_n "checking for $ac_word... " >&6; } 6376if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6377 $as_echo_n "(cached) " >&6 6378else 6379 if test -n "$ac_ct_STRIP"; then 6380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6381else 6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6383for as_dir in $PATH 6384do 6385 IFS=$as_save_IFS 6386 test -z "$as_dir" && as_dir=. 6387 for ac_exec_ext in '' $ac_executable_extensions; do 6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6389 ac_cv_prog_ac_ct_STRIP="strip" 6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6391 break 2 6392 fi 6393done 6394 done 6395IFS=$as_save_IFS 6396 6397fi 6398fi 6399ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6400if test -n "$ac_ct_STRIP"; then 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6402$as_echo "$ac_ct_STRIP" >&6; } 6403else 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6405$as_echo "no" >&6; } 6406fi 6407 6408 if test "x$ac_ct_STRIP" = x; then 6409 STRIP=":" 6410 else 6411 case $cross_compiling:$ac_tool_warned in 6412yes:) 6413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6415ac_tool_warned=yes ;; 6416esac 6417 STRIP=$ac_ct_STRIP 6418 fi 6419else 6420 STRIP="$ac_cv_prog_STRIP" 6421fi 6422 6423test -z "$STRIP" && STRIP=: 6424 6425 6426 6427 6428 6429 6430if test -n "$ac_tool_prefix"; then 6431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6432set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6434$as_echo_n "checking for $ac_word... " >&6; } 6435if ${ac_cv_prog_RANLIB+:} false; then : 6436 $as_echo_n "(cached) " >&6 6437else 6438 if test -n "$RANLIB"; then 6439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6440else 6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6442for as_dir in $PATH 6443do 6444 IFS=$as_save_IFS 6445 test -z "$as_dir" && as_dir=. 6446 for ac_exec_ext in '' $ac_executable_extensions; do 6447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6450 break 2 6451 fi 6452done 6453 done 6454IFS=$as_save_IFS 6455 6456fi 6457fi 6458RANLIB=$ac_cv_prog_RANLIB 6459if test -n "$RANLIB"; then 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6461$as_echo "$RANLIB" >&6; } 6462else 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6464$as_echo "no" >&6; } 6465fi 6466 6467 6468fi 6469if test -z "$ac_cv_prog_RANLIB"; then 6470 ac_ct_RANLIB=$RANLIB 6471 # Extract the first word of "ranlib", so it can be a program name with args. 6472set dummy ranlib; ac_word=$2 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6474$as_echo_n "checking for $ac_word... " >&6; } 6475if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6476 $as_echo_n "(cached) " >&6 6477else 6478 if test -n "$ac_ct_RANLIB"; then 6479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6480else 6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6482for as_dir in $PATH 6483do 6484 IFS=$as_save_IFS 6485 test -z "$as_dir" && as_dir=. 6486 for ac_exec_ext in '' $ac_executable_extensions; do 6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6488 ac_cv_prog_ac_ct_RANLIB="ranlib" 6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6490 break 2 6491 fi 6492done 6493 done 6494IFS=$as_save_IFS 6495 6496fi 6497fi 6498ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6499if test -n "$ac_ct_RANLIB"; then 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6501$as_echo "$ac_ct_RANLIB" >&6; } 6502else 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6504$as_echo "no" >&6; } 6505fi 6506 6507 if test "x$ac_ct_RANLIB" = x; then 6508 RANLIB=":" 6509 else 6510 case $cross_compiling:$ac_tool_warned in 6511yes:) 6512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6514ac_tool_warned=yes ;; 6515esac 6516 RANLIB=$ac_ct_RANLIB 6517 fi 6518else 6519 RANLIB="$ac_cv_prog_RANLIB" 6520fi 6521 6522test -z "$RANLIB" && RANLIB=: 6523 6524 6525 6526 6527 6528 6529# Determine commands to create old-style static archives. 6530old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6531old_postinstall_cmds='chmod 644 $oldlib' 6532old_postuninstall_cmds= 6533 6534if test -n "$RANLIB"; then 6535 case $host_os in 6536 openbsd*) 6537 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6538 ;; 6539 *) 6540 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6541 ;; 6542 esac 6543 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6544fi 6545 6546case $host_os in 6547 darwin*) 6548 lock_old_archive_extraction=yes ;; 6549 *) 6550 lock_old_archive_extraction=no ;; 6551esac 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591# If no C compiler was specified, use CC. 6592LTCC=${LTCC-"$CC"} 6593 6594# If no C compiler flags were specified, use CFLAGS. 6595LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6596 6597# Allow CC to be a program name with arguments. 6598compiler=$CC 6599 6600 6601# Check for command to grab the raw symbol name followed by C symbol from nm. 6602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6603$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6604if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6605 $as_echo_n "(cached) " >&6 6606else 6607 6608# These are sane defaults that work on at least a few old systems. 6609# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6610 6611# Character class describing NM global symbol codes. 6612symcode='[BCDEGRST]' 6613 6614# Regexp to match symbols that can be accessed directly from C. 6615sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6616 6617# Define system-specific variables. 6618case $host_os in 6619aix*) 6620 symcode='[BCDT]' 6621 ;; 6622cygwin* | mingw* | pw32* | cegcc*) 6623 symcode='[ABCDGISTW]' 6624 ;; 6625hpux*) 6626 if test "$host_cpu" = ia64; then 6627 symcode='[ABCDEGRST]' 6628 fi 6629 ;; 6630irix* | nonstopux*) 6631 symcode='[BCDEGRST]' 6632 ;; 6633osf*) 6634 symcode='[BCDEGQRST]' 6635 ;; 6636solaris*) 6637 symcode='[BDRT]' 6638 ;; 6639sco3.2v5*) 6640 symcode='[DT]' 6641 ;; 6642sysv4.2uw2*) 6643 symcode='[DT]' 6644 ;; 6645sysv5* | sco5v6* | unixware* | OpenUNIX*) 6646 symcode='[ABDT]' 6647 ;; 6648sysv4) 6649 symcode='[DFNSTU]' 6650 ;; 6651esac 6652 6653# If we're using GNU nm, then use its standard symbol codes. 6654case `$NM -V 2>&1` in 6655*GNU* | *'with BFD'*) 6656 symcode='[ABCDGIRSTW]' ;; 6657esac 6658 6659# Transform an extracted symbol line into a proper C declaration. 6660# Some systems (esp. on ia64) link data and code symbols differently, 6661# so use this general approach. 6662lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6663 6664# Transform an extracted symbol line into symbol name and symbol address 6665lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6666lt_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'" 6667 6668# Handle CRLF in mingw tool chain 6669opt_cr= 6670case $build_os in 6671mingw*) 6672 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6673 ;; 6674esac 6675 6676# Try without a prefix underscore, then with it. 6677for ac_symprfx in "" "_"; do 6678 6679 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6680 symxfrm="\\1 $ac_symprfx\\2 \\2" 6681 6682 # Write the raw and C identifiers. 6683 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6684 # Fake it for dumpbin and say T for any non-static function 6685 # and D for any global variable. 6686 # Also find C++ and __fastcall symbols from MSVC++, 6687 # which start with @ or ?. 6688 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6689" {last_section=section; section=\$ 3};"\ 6690" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6691" \$ 0!~/External *\|/{next};"\ 6692" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6693" {if(hide[section]) next};"\ 6694" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6695" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6696" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6697" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6698" ' prfx=^$ac_symprfx" 6699 else 6700 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6701 fi 6702 6703 # Check to see that the pipe works correctly. 6704 pipe_works=no 6705 6706 rm -f conftest* 6707 cat > conftest.$ac_ext <<_LT_EOF 6708#ifdef __cplusplus 6709extern "C" { 6710#endif 6711char nm_test_var; 6712void nm_test_func(void); 6713void nm_test_func(void){} 6714#ifdef __cplusplus 6715} 6716#endif 6717int main(){nm_test_var='a';nm_test_func();return(0);} 6718_LT_EOF 6719 6720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6721 (eval $ac_compile) 2>&5 6722 ac_status=$? 6723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6724 test $ac_status = 0; }; then 6725 # Now try to grab the symbols. 6726 nlist=conftest.nm 6727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6728 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6729 ac_status=$? 6730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6731 test $ac_status = 0; } && test -s "$nlist"; then 6732 # Try sorting and uniquifying the output. 6733 if sort "$nlist" | uniq > "$nlist"T; then 6734 mv -f "$nlist"T "$nlist" 6735 else 6736 rm -f "$nlist"T 6737 fi 6738 6739 # Make sure that we snagged all the symbols we need. 6740 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6741 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6742 cat <<_LT_EOF > conftest.$ac_ext 6743#ifdef __cplusplus 6744extern "C" { 6745#endif 6746 6747_LT_EOF 6748 # Now generate the symbol file. 6749 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6750 6751 cat <<_LT_EOF >> conftest.$ac_ext 6752 6753/* The mapping between symbol names and symbols. */ 6754const struct { 6755 const char *name; 6756 void *address; 6757} 6758lt__PROGRAM__LTX_preloaded_symbols[] = 6759{ 6760 { "@PROGRAM@", (void *) 0 }, 6761_LT_EOF 6762 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6763 cat <<\_LT_EOF >> conftest.$ac_ext 6764 {0, (void *) 0} 6765}; 6766 6767/* This works around a problem in FreeBSD linker */ 6768#ifdef FREEBSD_WORKAROUND 6769static const void *lt_preloaded_setup() { 6770 return lt__PROGRAM__LTX_preloaded_symbols; 6771} 6772#endif 6773 6774#ifdef __cplusplus 6775} 6776#endif 6777_LT_EOF 6778 # Now try linking the two files. 6779 mv conftest.$ac_objext conftstm.$ac_objext 6780 lt_save_LIBS="$LIBS" 6781 lt_save_CFLAGS="$CFLAGS" 6782 LIBS="conftstm.$ac_objext" 6783 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6785 (eval $ac_link) 2>&5 6786 ac_status=$? 6787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6788 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6789 pipe_works=yes 6790 fi 6791 LIBS="$lt_save_LIBS" 6792 CFLAGS="$lt_save_CFLAGS" 6793 else 6794 echo "cannot find nm_test_func in $nlist" >&5 6795 fi 6796 else 6797 echo "cannot find nm_test_var in $nlist" >&5 6798 fi 6799 else 6800 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6801 fi 6802 else 6803 echo "$progname: failed program was:" >&5 6804 cat conftest.$ac_ext >&5 6805 fi 6806 rm -rf conftest* conftst* 6807 6808 # Do not use the global_symbol_pipe unless it works. 6809 if test "$pipe_works" = yes; then 6810 break 6811 else 6812 lt_cv_sys_global_symbol_pipe= 6813 fi 6814done 6815 6816fi 6817 6818if test -z "$lt_cv_sys_global_symbol_pipe"; then 6819 lt_cv_sys_global_symbol_to_cdecl= 6820fi 6821if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6823$as_echo "failed" >&6; } 6824else 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6826$as_echo "ok" >&6; } 6827fi 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851# Check whether --enable-libtool-lock was given. 6852if test "${enable_libtool_lock+set}" = set; then : 6853 enableval=$enable_libtool_lock; 6854fi 6855 6856test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6857 6858# Some flags need to be propagated to the compiler or linker for good 6859# libtool support. 6860case $host in 6861ia64-*-hpux*) 6862 # Find out which ABI we are using. 6863 echo 'int i;' > conftest.$ac_ext 6864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6865 (eval $ac_compile) 2>&5 6866 ac_status=$? 6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6868 test $ac_status = 0; }; then 6869 case `/usr/bin/file conftest.$ac_objext` in 6870 *ELF-32*) 6871 HPUX_IA64_MODE="32" 6872 ;; 6873 *ELF-64*) 6874 HPUX_IA64_MODE="64" 6875 ;; 6876 esac 6877 fi 6878 rm -rf conftest* 6879 ;; 6880*-*-irix6*) 6881 # Find out which ABI we are using. 6882 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6884 (eval $ac_compile) 2>&5 6885 ac_status=$? 6886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6887 test $ac_status = 0; }; then 6888 if test "$lt_cv_prog_gnu_ld" = yes; then 6889 case `/usr/bin/file conftest.$ac_objext` in 6890 *32-bit*) 6891 LD="${LD-ld} -melf32bsmip" 6892 ;; 6893 *N32*) 6894 LD="${LD-ld} -melf32bmipn32" 6895 ;; 6896 *64-bit*) 6897 LD="${LD-ld} -melf64bmip" 6898 ;; 6899 esac 6900 else 6901 case `/usr/bin/file conftest.$ac_objext` in 6902 *32-bit*) 6903 LD="${LD-ld} -32" 6904 ;; 6905 *N32*) 6906 LD="${LD-ld} -n32" 6907 ;; 6908 *64-bit*) 6909 LD="${LD-ld} -64" 6910 ;; 6911 esac 6912 fi 6913 fi 6914 rm -rf conftest* 6915 ;; 6916 6917x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6918s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6919 # Find out which ABI we are using. 6920 echo 'int i;' > conftest.$ac_ext 6921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6922 (eval $ac_compile) 2>&5 6923 ac_status=$? 6924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6925 test $ac_status = 0; }; then 6926 case `/usr/bin/file conftest.o` in 6927 *32-bit*) 6928 case $host in 6929 x86_64-*kfreebsd*-gnu) 6930 LD="${LD-ld} -m elf_i386_fbsd" 6931 ;; 6932 x86_64-*linux*) 6933 case `/usr/bin/file conftest.o` in 6934 *x86-64*) 6935 LD="${LD-ld} -m elf32_x86_64" 6936 ;; 6937 *) 6938 LD="${LD-ld} -m elf_i386" 6939 ;; 6940 esac 6941 ;; 6942 powerpc64le-*linux*) 6943 LD="${LD-ld} -m elf32lppclinux" 6944 ;; 6945 powerpc64-*linux*) 6946 LD="${LD-ld} -m elf32ppclinux" 6947 ;; 6948 s390x-*linux*) 6949 LD="${LD-ld} -m elf_s390" 6950 ;; 6951 sparc64-*linux*) 6952 LD="${LD-ld} -m elf32_sparc" 6953 ;; 6954 esac 6955 ;; 6956 *64-bit*) 6957 case $host in 6958 x86_64-*kfreebsd*-gnu) 6959 LD="${LD-ld} -m elf_x86_64_fbsd" 6960 ;; 6961 x86_64-*linux*) 6962 LD="${LD-ld} -m elf_x86_64" 6963 ;; 6964 powerpcle-*linux*) 6965 LD="${LD-ld} -m elf64lppc" 6966 ;; 6967 powerpc-*linux*) 6968 LD="${LD-ld} -m elf64ppc" 6969 ;; 6970 s390*-*linux*|s390*-*tpf*) 6971 LD="${LD-ld} -m elf64_s390" 6972 ;; 6973 sparc*-*linux*) 6974 LD="${LD-ld} -m elf64_sparc" 6975 ;; 6976 esac 6977 ;; 6978 esac 6979 fi 6980 rm -rf conftest* 6981 ;; 6982 6983*-*-sco3.2v5*) 6984 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6985 SAVE_CFLAGS="$CFLAGS" 6986 CFLAGS="$CFLAGS -belf" 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6988$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6989if ${lt_cv_cc_needs_belf+:} false; then : 6990 $as_echo_n "(cached) " >&6 6991else 6992 ac_ext=c 6993ac_cpp='$CPP $CPPFLAGS' 6994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6996ac_compiler_gnu=$ac_cv_c_compiler_gnu 6997 6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6999/* end confdefs.h. */ 7000 7001int 7002main () 7003{ 7004 7005 ; 7006 return 0; 7007} 7008_ACEOF 7009if ac_fn_c_try_link "$LINENO"; then : 7010 lt_cv_cc_needs_belf=yes 7011else 7012 lt_cv_cc_needs_belf=no 7013fi 7014rm -f core conftest.err conftest.$ac_objext \ 7015 conftest$ac_exeext conftest.$ac_ext 7016 ac_ext=c 7017ac_cpp='$CPP $CPPFLAGS' 7018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7020ac_compiler_gnu=$ac_cv_c_compiler_gnu 7021 7022fi 7023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7024$as_echo "$lt_cv_cc_needs_belf" >&6; } 7025 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7026 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7027 CFLAGS="$SAVE_CFLAGS" 7028 fi 7029 ;; 7030sparc*-*solaris*) 7031 # Find out which ABI we are using. 7032 echo 'int i;' > conftest.$ac_ext 7033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7034 (eval $ac_compile) 2>&5 7035 ac_status=$? 7036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7037 test $ac_status = 0; }; then 7038 case `/usr/bin/file conftest.o` in 7039 *64-bit*) 7040 case $lt_cv_prog_gnu_ld in 7041 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7042 *) 7043 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7044 LD="${LD-ld} -64" 7045 fi 7046 ;; 7047 esac 7048 ;; 7049 esac 7050 fi 7051 rm -rf conftest* 7052 ;; 7053esac 7054 7055need_locks="$enable_libtool_lock" 7056 7057 7058 case $host_os in 7059 rhapsody* | darwin*) 7060 if test -n "$ac_tool_prefix"; then 7061 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7062set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7064$as_echo_n "checking for $ac_word... " >&6; } 7065if ${ac_cv_prog_DSYMUTIL+:} false; then : 7066 $as_echo_n "(cached) " >&6 7067else 7068 if test -n "$DSYMUTIL"; then 7069 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7070else 7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7072for as_dir in $PATH 7073do 7074 IFS=$as_save_IFS 7075 test -z "$as_dir" && as_dir=. 7076 for ac_exec_ext in '' $ac_executable_extensions; do 7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7078 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7080 break 2 7081 fi 7082done 7083 done 7084IFS=$as_save_IFS 7085 7086fi 7087fi 7088DSYMUTIL=$ac_cv_prog_DSYMUTIL 7089if test -n "$DSYMUTIL"; then 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7091$as_echo "$DSYMUTIL" >&6; } 7092else 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7094$as_echo "no" >&6; } 7095fi 7096 7097 7098fi 7099if test -z "$ac_cv_prog_DSYMUTIL"; then 7100 ac_ct_DSYMUTIL=$DSYMUTIL 7101 # Extract the first word of "dsymutil", so it can be a program name with args. 7102set dummy dsymutil; ac_word=$2 7103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7104$as_echo_n "checking for $ac_word... " >&6; } 7105if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7106 $as_echo_n "(cached) " >&6 7107else 7108 if test -n "$ac_ct_DSYMUTIL"; then 7109 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7110else 7111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7112for as_dir in $PATH 7113do 7114 IFS=$as_save_IFS 7115 test -z "$as_dir" && as_dir=. 7116 for ac_exec_ext in '' $ac_executable_extensions; do 7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7118 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7120 break 2 7121 fi 7122done 7123 done 7124IFS=$as_save_IFS 7125 7126fi 7127fi 7128ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7129if test -n "$ac_ct_DSYMUTIL"; then 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7131$as_echo "$ac_ct_DSYMUTIL" >&6; } 7132else 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7134$as_echo "no" >&6; } 7135fi 7136 7137 if test "x$ac_ct_DSYMUTIL" = x; then 7138 DSYMUTIL=":" 7139 else 7140 case $cross_compiling:$ac_tool_warned in 7141yes:) 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7144ac_tool_warned=yes ;; 7145esac 7146 DSYMUTIL=$ac_ct_DSYMUTIL 7147 fi 7148else 7149 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7150fi 7151 7152 if test -n "$ac_tool_prefix"; then 7153 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7154set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7156$as_echo_n "checking for $ac_word... " >&6; } 7157if ${ac_cv_prog_NMEDIT+:} false; then : 7158 $as_echo_n "(cached) " >&6 7159else 7160 if test -n "$NMEDIT"; then 7161 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7162else 7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7164for as_dir in $PATH 7165do 7166 IFS=$as_save_IFS 7167 test -z "$as_dir" && as_dir=. 7168 for ac_exec_ext in '' $ac_executable_extensions; do 7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7170 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7172 break 2 7173 fi 7174done 7175 done 7176IFS=$as_save_IFS 7177 7178fi 7179fi 7180NMEDIT=$ac_cv_prog_NMEDIT 7181if test -n "$NMEDIT"; then 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7183$as_echo "$NMEDIT" >&6; } 7184else 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7186$as_echo "no" >&6; } 7187fi 7188 7189 7190fi 7191if test -z "$ac_cv_prog_NMEDIT"; then 7192 ac_ct_NMEDIT=$NMEDIT 7193 # Extract the first word of "nmedit", so it can be a program name with args. 7194set dummy nmedit; ac_word=$2 7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7196$as_echo_n "checking for $ac_word... " >&6; } 7197if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7198 $as_echo_n "(cached) " >&6 7199else 7200 if test -n "$ac_ct_NMEDIT"; then 7201 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7202else 7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7204for as_dir in $PATH 7205do 7206 IFS=$as_save_IFS 7207 test -z "$as_dir" && as_dir=. 7208 for ac_exec_ext in '' $ac_executable_extensions; do 7209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7210 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7212 break 2 7213 fi 7214done 7215 done 7216IFS=$as_save_IFS 7217 7218fi 7219fi 7220ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7221if test -n "$ac_ct_NMEDIT"; then 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7223$as_echo "$ac_ct_NMEDIT" >&6; } 7224else 7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7226$as_echo "no" >&6; } 7227fi 7228 7229 if test "x$ac_ct_NMEDIT" = x; then 7230 NMEDIT=":" 7231 else 7232 case $cross_compiling:$ac_tool_warned in 7233yes:) 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7236ac_tool_warned=yes ;; 7237esac 7238 NMEDIT=$ac_ct_NMEDIT 7239 fi 7240else 7241 NMEDIT="$ac_cv_prog_NMEDIT" 7242fi 7243 7244 if test -n "$ac_tool_prefix"; then 7245 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7246set dummy ${ac_tool_prefix}lipo; ac_word=$2 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7248$as_echo_n "checking for $ac_word... " >&6; } 7249if ${ac_cv_prog_LIPO+:} false; then : 7250 $as_echo_n "(cached) " >&6 7251else 7252 if test -n "$LIPO"; then 7253 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7254else 7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7256for as_dir in $PATH 7257do 7258 IFS=$as_save_IFS 7259 test -z "$as_dir" && as_dir=. 7260 for ac_exec_ext in '' $ac_executable_extensions; do 7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7262 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7264 break 2 7265 fi 7266done 7267 done 7268IFS=$as_save_IFS 7269 7270fi 7271fi 7272LIPO=$ac_cv_prog_LIPO 7273if test -n "$LIPO"; then 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7275$as_echo "$LIPO" >&6; } 7276else 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7278$as_echo "no" >&6; } 7279fi 7280 7281 7282fi 7283if test -z "$ac_cv_prog_LIPO"; then 7284 ac_ct_LIPO=$LIPO 7285 # Extract the first word of "lipo", so it can be a program name with args. 7286set dummy lipo; ac_word=$2 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7288$as_echo_n "checking for $ac_word... " >&6; } 7289if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7290 $as_echo_n "(cached) " >&6 7291else 7292 if test -n "$ac_ct_LIPO"; then 7293 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7294else 7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7296for as_dir in $PATH 7297do 7298 IFS=$as_save_IFS 7299 test -z "$as_dir" && as_dir=. 7300 for ac_exec_ext in '' $ac_executable_extensions; do 7301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7302 ac_cv_prog_ac_ct_LIPO="lipo" 7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7304 break 2 7305 fi 7306done 7307 done 7308IFS=$as_save_IFS 7309 7310fi 7311fi 7312ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7313if test -n "$ac_ct_LIPO"; then 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7315$as_echo "$ac_ct_LIPO" >&6; } 7316else 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7318$as_echo "no" >&6; } 7319fi 7320 7321 if test "x$ac_ct_LIPO" = x; then 7322 LIPO=":" 7323 else 7324 case $cross_compiling:$ac_tool_warned in 7325yes:) 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7328ac_tool_warned=yes ;; 7329esac 7330 LIPO=$ac_ct_LIPO 7331 fi 7332else 7333 LIPO="$ac_cv_prog_LIPO" 7334fi 7335 7336 if test -n "$ac_tool_prefix"; then 7337 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7338set dummy ${ac_tool_prefix}otool; ac_word=$2 7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7340$as_echo_n "checking for $ac_word... " >&6; } 7341if ${ac_cv_prog_OTOOL+:} false; then : 7342 $as_echo_n "(cached) " >&6 7343else 7344 if test -n "$OTOOL"; then 7345 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7346else 7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7348for as_dir in $PATH 7349do 7350 IFS=$as_save_IFS 7351 test -z "$as_dir" && as_dir=. 7352 for ac_exec_ext in '' $ac_executable_extensions; do 7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7354 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7356 break 2 7357 fi 7358done 7359 done 7360IFS=$as_save_IFS 7361 7362fi 7363fi 7364OTOOL=$ac_cv_prog_OTOOL 7365if test -n "$OTOOL"; then 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7367$as_echo "$OTOOL" >&6; } 7368else 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7370$as_echo "no" >&6; } 7371fi 7372 7373 7374fi 7375if test -z "$ac_cv_prog_OTOOL"; then 7376 ac_ct_OTOOL=$OTOOL 7377 # Extract the first word of "otool", so it can be a program name with args. 7378set dummy otool; ac_word=$2 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7380$as_echo_n "checking for $ac_word... " >&6; } 7381if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7382 $as_echo_n "(cached) " >&6 7383else 7384 if test -n "$ac_ct_OTOOL"; then 7385 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7386else 7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7388for as_dir in $PATH 7389do 7390 IFS=$as_save_IFS 7391 test -z "$as_dir" && as_dir=. 7392 for ac_exec_ext in '' $ac_executable_extensions; do 7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7394 ac_cv_prog_ac_ct_OTOOL="otool" 7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7396 break 2 7397 fi 7398done 7399 done 7400IFS=$as_save_IFS 7401 7402fi 7403fi 7404ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7405if test -n "$ac_ct_OTOOL"; then 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7407$as_echo "$ac_ct_OTOOL" >&6; } 7408else 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7410$as_echo "no" >&6; } 7411fi 7412 7413 if test "x$ac_ct_OTOOL" = x; then 7414 OTOOL=":" 7415 else 7416 case $cross_compiling:$ac_tool_warned in 7417yes:) 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7420ac_tool_warned=yes ;; 7421esac 7422 OTOOL=$ac_ct_OTOOL 7423 fi 7424else 7425 OTOOL="$ac_cv_prog_OTOOL" 7426fi 7427 7428 if test -n "$ac_tool_prefix"; then 7429 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7430set dummy ${ac_tool_prefix}otool64; ac_word=$2 7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7432$as_echo_n "checking for $ac_word... " >&6; } 7433if ${ac_cv_prog_OTOOL64+:} false; then : 7434 $as_echo_n "(cached) " >&6 7435else 7436 if test -n "$OTOOL64"; then 7437 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7438else 7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7440for as_dir in $PATH 7441do 7442 IFS=$as_save_IFS 7443 test -z "$as_dir" && as_dir=. 7444 for ac_exec_ext in '' $ac_executable_extensions; do 7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7446 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7448 break 2 7449 fi 7450done 7451 done 7452IFS=$as_save_IFS 7453 7454fi 7455fi 7456OTOOL64=$ac_cv_prog_OTOOL64 7457if test -n "$OTOOL64"; then 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7459$as_echo "$OTOOL64" >&6; } 7460else 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7462$as_echo "no" >&6; } 7463fi 7464 7465 7466fi 7467if test -z "$ac_cv_prog_OTOOL64"; then 7468 ac_ct_OTOOL64=$OTOOL64 7469 # Extract the first word of "otool64", so it can be a program name with args. 7470set dummy otool64; ac_word=$2 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7472$as_echo_n "checking for $ac_word... " >&6; } 7473if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7474 $as_echo_n "(cached) " >&6 7475else 7476 if test -n "$ac_ct_OTOOL64"; then 7477 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7478else 7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7480for as_dir in $PATH 7481do 7482 IFS=$as_save_IFS 7483 test -z "$as_dir" && as_dir=. 7484 for ac_exec_ext in '' $ac_executable_extensions; do 7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7486 ac_cv_prog_ac_ct_OTOOL64="otool64" 7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7488 break 2 7489 fi 7490done 7491 done 7492IFS=$as_save_IFS 7493 7494fi 7495fi 7496ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7497if test -n "$ac_ct_OTOOL64"; then 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7499$as_echo "$ac_ct_OTOOL64" >&6; } 7500else 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7502$as_echo "no" >&6; } 7503fi 7504 7505 if test "x$ac_ct_OTOOL64" = x; then 7506 OTOOL64=":" 7507 else 7508 case $cross_compiling:$ac_tool_warned in 7509yes:) 7510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7512ac_tool_warned=yes ;; 7513esac 7514 OTOOL64=$ac_ct_OTOOL64 7515 fi 7516else 7517 OTOOL64="$ac_cv_prog_OTOOL64" 7518fi 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7547$as_echo_n "checking for -single_module linker flag... " >&6; } 7548if ${lt_cv_apple_cc_single_mod+:} false; then : 7549 $as_echo_n "(cached) " >&6 7550else 7551 lt_cv_apple_cc_single_mod=no 7552 if test -z "${LT_MULTI_MODULE}"; then 7553 # By default we will add the -single_module flag. You can override 7554 # by either setting the environment variable LT_MULTI_MODULE 7555 # non-empty at configure time, or by adding -multi_module to the 7556 # link flags. 7557 rm -rf libconftest.dylib* 7558 echo "int foo(void){return 1;}" > conftest.c 7559 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7560-dynamiclib -Wl,-single_module conftest.c" >&5 7561 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7562 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7563 _lt_result=$? 7564 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7565 lt_cv_apple_cc_single_mod=yes 7566 else 7567 cat conftest.err >&5 7568 fi 7569 rm -rf libconftest.dylib* 7570 rm -f conftest.* 7571 fi 7572fi 7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7574$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7576$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7577if ${lt_cv_ld_exported_symbols_list+:} false; then : 7578 $as_echo_n "(cached) " >&6 7579else 7580 lt_cv_ld_exported_symbols_list=no 7581 save_LDFLAGS=$LDFLAGS 7582 echo "_main" > conftest.sym 7583 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7585/* end confdefs.h. */ 7586 7587int 7588main () 7589{ 7590 7591 ; 7592 return 0; 7593} 7594_ACEOF 7595if ac_fn_c_try_link "$LINENO"; then : 7596 lt_cv_ld_exported_symbols_list=yes 7597else 7598 lt_cv_ld_exported_symbols_list=no 7599fi 7600rm -f core conftest.err conftest.$ac_objext \ 7601 conftest$ac_exeext conftest.$ac_ext 7602 LDFLAGS="$save_LDFLAGS" 7603 7604fi 7605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7606$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7608$as_echo_n "checking for -force_load linker flag... " >&6; } 7609if ${lt_cv_ld_force_load+:} false; then : 7610 $as_echo_n "(cached) " >&6 7611else 7612 lt_cv_ld_force_load=no 7613 cat > conftest.c << _LT_EOF 7614int forced_loaded() { return 2;} 7615_LT_EOF 7616 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7617 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7618 echo "$AR cru libconftest.a conftest.o" >&5 7619 $AR cru libconftest.a conftest.o 2>&5 7620 cat > conftest.c << _LT_EOF 7621int main() { return 0;} 7622_LT_EOF 7623 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7624 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7625 _lt_result=$? 7626 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7627 lt_cv_ld_force_load=yes 7628 else 7629 cat conftest.err >&5 7630 fi 7631 rm -f conftest.err libconftest.a conftest conftest.c 7632 rm -rf conftest.dSYM 7633 7634fi 7635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7636$as_echo "$lt_cv_ld_force_load" >&6; } 7637 case $host_os in 7638 rhapsody* | darwin1.[012]) 7639 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7640 darwin1.*) 7641 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7642 darwin*) # darwin 5.x on 7643 # if running on 10.5 or later, the deployment target defaults 7644 # to the OS version, if on x86, and 10.4, the deployment 7645 # target defaults to 10.4. Don't you love it? 7646 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7647 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7648 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7649 10.[012][,.]*) 7650 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7651 10.*) 7652 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7653 esac 7654 ;; 7655 esac 7656 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7657 _lt_dar_single_mod='$single_module' 7658 fi 7659 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7660 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7661 else 7662 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7663 fi 7664 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7665 _lt_dsymutil='~$DSYMUTIL $lib || :' 7666 else 7667 _lt_dsymutil= 7668 fi 7669 ;; 7670 esac 7671 7672ac_ext=c 7673ac_cpp='$CPP $CPPFLAGS' 7674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7676ac_compiler_gnu=$ac_cv_c_compiler_gnu 7677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7678$as_echo_n "checking how to run the C preprocessor... " >&6; } 7679# On Suns, sometimes $CPP names a directory. 7680if test -n "$CPP" && test -d "$CPP"; then 7681 CPP= 7682fi 7683if test -z "$CPP"; then 7684 if ${ac_cv_prog_CPP+:} false; then : 7685 $as_echo_n "(cached) " >&6 7686else 7687 # Double quotes because CPP needs to be expanded 7688 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7689 do 7690 ac_preproc_ok=false 7691for ac_c_preproc_warn_flag in '' yes 7692do 7693 # Use a header file that comes with gcc, so configuring glibc 7694 # with a fresh cross-compiler works. 7695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7696 # <limits.h> exists even on freestanding compilers. 7697 # On the NeXT, cc -E runs the code through the compiler's parser, 7698 # not just through cpp. "Syntax error" is here to catch this case. 7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7700/* end confdefs.h. */ 7701#ifdef __STDC__ 7702# include <limits.h> 7703#else 7704# include <assert.h> 7705#endif 7706 Syntax error 7707_ACEOF 7708if ac_fn_c_try_cpp "$LINENO"; then : 7709 7710else 7711 # Broken: fails on valid input. 7712continue 7713fi 7714rm -f conftest.err conftest.i conftest.$ac_ext 7715 7716 # OK, works on sane cases. Now check whether nonexistent headers 7717 # can be detected and how. 7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7719/* end confdefs.h. */ 7720#include <ac_nonexistent.h> 7721_ACEOF 7722if ac_fn_c_try_cpp "$LINENO"; then : 7723 # Broken: success on invalid input. 7724continue 7725else 7726 # Passes both tests. 7727ac_preproc_ok=: 7728break 7729fi 7730rm -f conftest.err conftest.i conftest.$ac_ext 7731 7732done 7733# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7734rm -f conftest.i conftest.err conftest.$ac_ext 7735if $ac_preproc_ok; then : 7736 break 7737fi 7738 7739 done 7740 ac_cv_prog_CPP=$CPP 7741 7742fi 7743 CPP=$ac_cv_prog_CPP 7744else 7745 ac_cv_prog_CPP=$CPP 7746fi 7747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7748$as_echo "$CPP" >&6; } 7749ac_preproc_ok=false 7750for ac_c_preproc_warn_flag in '' yes 7751do 7752 # Use a header file that comes with gcc, so configuring glibc 7753 # with a fresh cross-compiler works. 7754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7755 # <limits.h> exists even on freestanding compilers. 7756 # On the NeXT, cc -E runs the code through the compiler's parser, 7757 # not just through cpp. "Syntax error" is here to catch this case. 7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7759/* end confdefs.h. */ 7760#ifdef __STDC__ 7761# include <limits.h> 7762#else 7763# include <assert.h> 7764#endif 7765 Syntax error 7766_ACEOF 7767if ac_fn_c_try_cpp "$LINENO"; then : 7768 7769else 7770 # Broken: fails on valid input. 7771continue 7772fi 7773rm -f conftest.err conftest.i conftest.$ac_ext 7774 7775 # OK, works on sane cases. Now check whether nonexistent headers 7776 # can be detected and how. 7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778/* end confdefs.h. */ 7779#include <ac_nonexistent.h> 7780_ACEOF 7781if ac_fn_c_try_cpp "$LINENO"; then : 7782 # Broken: success on invalid input. 7783continue 7784else 7785 # Passes both tests. 7786ac_preproc_ok=: 7787break 7788fi 7789rm -f conftest.err conftest.i conftest.$ac_ext 7790 7791done 7792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7793rm -f conftest.i conftest.err conftest.$ac_ext 7794if $ac_preproc_ok; then : 7795 7796else 7797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7799as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7800See \`config.log' for more details" "$LINENO" 5; } 7801fi 7802 7803ac_ext=c 7804ac_cpp='$CPP $CPPFLAGS' 7805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7807ac_compiler_gnu=$ac_cv_c_compiler_gnu 7808 7809 7810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7811$as_echo_n "checking for ANSI C header files... " >&6; } 7812if ${ac_cv_header_stdc+:} false; then : 7813 $as_echo_n "(cached) " >&6 7814else 7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7816/* end confdefs.h. */ 7817#include <stdlib.h> 7818#include <stdarg.h> 7819#include <string.h> 7820#include <float.h> 7821 7822int 7823main () 7824{ 7825 7826 ; 7827 return 0; 7828} 7829_ACEOF 7830if ac_fn_c_try_compile "$LINENO"; then : 7831 ac_cv_header_stdc=yes 7832else 7833 ac_cv_header_stdc=no 7834fi 7835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7836 7837if test $ac_cv_header_stdc = yes; then 7838 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7840/* end confdefs.h. */ 7841#include <string.h> 7842 7843_ACEOF 7844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7845 $EGREP "memchr" >/dev/null 2>&1; then : 7846 7847else 7848 ac_cv_header_stdc=no 7849fi 7850rm -f conftest* 7851 7852fi 7853 7854if test $ac_cv_header_stdc = yes; then 7855 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7857/* end confdefs.h. */ 7858#include <stdlib.h> 7859 7860_ACEOF 7861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7862 $EGREP "free" >/dev/null 2>&1; then : 7863 7864else 7865 ac_cv_header_stdc=no 7866fi 7867rm -f conftest* 7868 7869fi 7870 7871if test $ac_cv_header_stdc = yes; then 7872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7873 if test "$cross_compiling" = yes; then : 7874 : 7875else 7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7877/* end confdefs.h. */ 7878#include <ctype.h> 7879#include <stdlib.h> 7880#if ((' ' & 0x0FF) == 0x020) 7881# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7882# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7883#else 7884# define ISLOWER(c) \ 7885 (('a' <= (c) && (c) <= 'i') \ 7886 || ('j' <= (c) && (c) <= 'r') \ 7887 || ('s' <= (c) && (c) <= 'z')) 7888# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7889#endif 7890 7891#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7892int 7893main () 7894{ 7895 int i; 7896 for (i = 0; i < 256; i++) 7897 if (XOR (islower (i), ISLOWER (i)) 7898 || toupper (i) != TOUPPER (i)) 7899 return 2; 7900 return 0; 7901} 7902_ACEOF 7903if ac_fn_c_try_run "$LINENO"; then : 7904 7905else 7906 ac_cv_header_stdc=no 7907fi 7908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7909 conftest.$ac_objext conftest.beam conftest.$ac_ext 7910fi 7911 7912fi 7913fi 7914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7915$as_echo "$ac_cv_header_stdc" >&6; } 7916if test $ac_cv_header_stdc = yes; then 7917 7918$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7919 7920fi 7921 7922# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7923for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7924 inttypes.h stdint.h unistd.h 7925do : 7926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7927ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7928" 7929if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7930 cat >>confdefs.h <<_ACEOF 7931#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7932_ACEOF 7933 7934fi 7935 7936done 7937 7938 7939for ac_header in dlfcn.h 7940do : 7941 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7942" 7943if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7944 cat >>confdefs.h <<_ACEOF 7945#define HAVE_DLFCN_H 1 7946_ACEOF 7947 7948fi 7949 7950done 7951 7952 7953 7954 7955 7956# Set options 7957 7958 7959 7960 enable_dlopen=no 7961 7962 7963 7964 # Check whether --enable-shared was given. 7965if test "${enable_shared+set}" = set; then : 7966 enableval=$enable_shared; p=${PACKAGE-default} 7967 case $enableval in 7968 yes) enable_shared=yes ;; 7969 no) enable_shared=no ;; 7970 *) 7971 enable_shared=no 7972 # Look at the argument we got. We use all the common list separators. 7973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7974 for pkg in $enableval; do 7975 IFS="$lt_save_ifs" 7976 if test "X$pkg" = "X$p"; then 7977 enable_shared=yes 7978 fi 7979 done 7980 IFS="$lt_save_ifs" 7981 ;; 7982 esac 7983else 7984 enable_shared=yes 7985fi 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 # Check whether --enable-static was given. 7996if test "${enable_static+set}" = set; then : 7997 enableval=$enable_static; p=${PACKAGE-default} 7998 case $enableval in 7999 yes) enable_static=yes ;; 8000 no) enable_static=no ;; 8001 *) 8002 enable_static=no 8003 # Look at the argument we got. We use all the common list separators. 8004 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8005 for pkg in $enableval; do 8006 IFS="$lt_save_ifs" 8007 if test "X$pkg" = "X$p"; then 8008 enable_static=yes 8009 fi 8010 done 8011 IFS="$lt_save_ifs" 8012 ;; 8013 esac 8014else 8015 enable_static=yes 8016fi 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027# Check whether --with-pic was given. 8028if test "${with_pic+set}" = set; then : 8029 withval=$with_pic; pic_mode="$withval" 8030else 8031 pic_mode=default 8032fi 8033 8034 8035test -z "$pic_mode" && pic_mode=default 8036 8037 8038 8039 8040 8041 8042 8043 # Check whether --enable-fast-install was given. 8044if test "${enable_fast_install+set}" = set; then : 8045 enableval=$enable_fast_install; p=${PACKAGE-default} 8046 case $enableval in 8047 yes) enable_fast_install=yes ;; 8048 no) enable_fast_install=no ;; 8049 *) 8050 enable_fast_install=no 8051 # Look at the argument we got. We use all the common list separators. 8052 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8053 for pkg in $enableval; do 8054 IFS="$lt_save_ifs" 8055 if test "X$pkg" = "X$p"; then 8056 enable_fast_install=yes 8057 fi 8058 done 8059 IFS="$lt_save_ifs" 8060 ;; 8061 esac 8062else 8063 enable_fast_install=yes 8064fi 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076# This can be used to rebuild libtool when needed 8077LIBTOOL_DEPS="$ltmain" 8078 8079# Always use our own libtool. 8080LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107test -z "$LN_S" && LN_S="ln -s" 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122if test -n "${ZSH_VERSION+set}" ; then 8123 setopt NO_GLOB_SUBST 8124fi 8125 8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8127$as_echo_n "checking for objdir... " >&6; } 8128if ${lt_cv_objdir+:} false; then : 8129 $as_echo_n "(cached) " >&6 8130else 8131 rm -f .libs 2>/dev/null 8132mkdir .libs 2>/dev/null 8133if test -d .libs; then 8134 lt_cv_objdir=.libs 8135else 8136 # MS-DOS does not allow filenames that begin with a dot. 8137 lt_cv_objdir=_libs 8138fi 8139rmdir .libs 2>/dev/null 8140fi 8141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8142$as_echo "$lt_cv_objdir" >&6; } 8143objdir=$lt_cv_objdir 8144 8145 8146 8147 8148 8149cat >>confdefs.h <<_ACEOF 8150#define LT_OBJDIR "$lt_cv_objdir/" 8151_ACEOF 8152 8153 8154 8155 8156case $host_os in 8157aix3*) 8158 # AIX sometimes has problems with the GCC collect2 program. For some 8159 # reason, if we set the COLLECT_NAMES environment variable, the problems 8160 # vanish in a puff of smoke. 8161 if test "X${COLLECT_NAMES+set}" != Xset; then 8162 COLLECT_NAMES= 8163 export COLLECT_NAMES 8164 fi 8165 ;; 8166esac 8167 8168# Global variables: 8169ofile=libtool 8170can_build_shared=yes 8171 8172# All known linkers require a `.a' archive for static linking (except MSVC, 8173# which needs '.lib'). 8174libext=a 8175 8176with_gnu_ld="$lt_cv_prog_gnu_ld" 8177 8178old_CC="$CC" 8179old_CFLAGS="$CFLAGS" 8180 8181# Set sane defaults for various variables 8182test -z "$CC" && CC=cc 8183test -z "$LTCC" && LTCC=$CC 8184test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8185test -z "$LD" && LD=ld 8186test -z "$ac_objext" && ac_objext=o 8187 8188for cc_temp in $compiler""; do 8189 case $cc_temp in 8190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8192 \-*) ;; 8193 *) break;; 8194 esac 8195done 8196cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8197 8198 8199# Only perform the check for file, if the check method requires it 8200test -z "$MAGIC_CMD" && MAGIC_CMD=file 8201case $deplibs_check_method in 8202file_magic*) 8203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8205$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8206if ${lt_cv_path_MAGIC_CMD+:} false; then : 8207 $as_echo_n "(cached) " >&6 8208else 8209 case $MAGIC_CMD in 8210[\\/*] | ?:[\\/]*) 8211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8212 ;; 8213*) 8214 lt_save_MAGIC_CMD="$MAGIC_CMD" 8215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8217 for ac_dir in $ac_dummy; do 8218 IFS="$lt_save_ifs" 8219 test -z "$ac_dir" && ac_dir=. 8220 if test -f $ac_dir/${ac_tool_prefix}file; then 8221 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8222 if test -n "$file_magic_test_file"; then 8223 case $deplibs_check_method in 8224 "file_magic "*) 8225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8228 $EGREP "$file_magic_regex" > /dev/null; then 8229 : 8230 else 8231 cat <<_LT_EOF 1>&2 8232 8233*** Warning: the command libtool uses to detect shared libraries, 8234*** $file_magic_cmd, produces output that libtool cannot recognize. 8235*** The result is that libtool may fail to recognize shared libraries 8236*** as such. This will affect the creation of libtool libraries that 8237*** depend on shared libraries, but programs linked with such libtool 8238*** libraries will work regardless of this problem. Nevertheless, you 8239*** may want to report the problem to your system manager and/or to 8240*** bug-libtool@gnu.org 8241 8242_LT_EOF 8243 fi ;; 8244 esac 8245 fi 8246 break 8247 fi 8248 done 8249 IFS="$lt_save_ifs" 8250 MAGIC_CMD="$lt_save_MAGIC_CMD" 8251 ;; 8252esac 8253fi 8254 8255MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8256if test -n "$MAGIC_CMD"; then 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8258$as_echo "$MAGIC_CMD" >&6; } 8259else 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8261$as_echo "no" >&6; } 8262fi 8263 8264 8265 8266 8267 8268if test -z "$lt_cv_path_MAGIC_CMD"; then 8269 if test -n "$ac_tool_prefix"; then 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8271$as_echo_n "checking for file... " >&6; } 8272if ${lt_cv_path_MAGIC_CMD+:} false; then : 8273 $as_echo_n "(cached) " >&6 8274else 8275 case $MAGIC_CMD in 8276[\\/*] | ?:[\\/]*) 8277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8278 ;; 8279*) 8280 lt_save_MAGIC_CMD="$MAGIC_CMD" 8281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8283 for ac_dir in $ac_dummy; do 8284 IFS="$lt_save_ifs" 8285 test -z "$ac_dir" && ac_dir=. 8286 if test -f $ac_dir/file; then 8287 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8288 if test -n "$file_magic_test_file"; then 8289 case $deplibs_check_method in 8290 "file_magic "*) 8291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8294 $EGREP "$file_magic_regex" > /dev/null; then 8295 : 8296 else 8297 cat <<_LT_EOF 1>&2 8298 8299*** Warning: the command libtool uses to detect shared libraries, 8300*** $file_magic_cmd, produces output that libtool cannot recognize. 8301*** The result is that libtool may fail to recognize shared libraries 8302*** as such. This will affect the creation of libtool libraries that 8303*** depend on shared libraries, but programs linked with such libtool 8304*** libraries will work regardless of this problem. Nevertheless, you 8305*** may want to report the problem to your system manager and/or to 8306*** bug-libtool@gnu.org 8307 8308_LT_EOF 8309 fi ;; 8310 esac 8311 fi 8312 break 8313 fi 8314 done 8315 IFS="$lt_save_ifs" 8316 MAGIC_CMD="$lt_save_MAGIC_CMD" 8317 ;; 8318esac 8319fi 8320 8321MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8322if test -n "$MAGIC_CMD"; then 8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8324$as_echo "$MAGIC_CMD" >&6; } 8325else 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8327$as_echo "no" >&6; } 8328fi 8329 8330 8331 else 8332 MAGIC_CMD=: 8333 fi 8334fi 8335 8336 fi 8337 ;; 8338esac 8339 8340# Use C for the default configuration in the libtool script 8341 8342lt_save_CC="$CC" 8343ac_ext=c 8344ac_cpp='$CPP $CPPFLAGS' 8345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8347ac_compiler_gnu=$ac_cv_c_compiler_gnu 8348 8349 8350# Source file extension for C test sources. 8351ac_ext=c 8352 8353# Object file extension for compiled C test sources. 8354objext=o 8355objext=$objext 8356 8357# Code to be used in simple compile tests 8358lt_simple_compile_test_code="int some_variable = 0;" 8359 8360# Code to be used in simple link tests 8361lt_simple_link_test_code='int main(){return(0);}' 8362 8363 8364 8365 8366 8367 8368 8369# If no C compiler was specified, use CC. 8370LTCC=${LTCC-"$CC"} 8371 8372# If no C compiler flags were specified, use CFLAGS. 8373LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8374 8375# Allow CC to be a program name with arguments. 8376compiler=$CC 8377 8378# Save the default compiler, since it gets overwritten when the other 8379# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8380compiler_DEFAULT=$CC 8381 8382# save warnings/boilerplate of simple test code 8383ac_outfile=conftest.$ac_objext 8384echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8385eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8386_lt_compiler_boilerplate=`cat conftest.err` 8387$RM conftest* 8388 8389ac_outfile=conftest.$ac_objext 8390echo "$lt_simple_link_test_code" >conftest.$ac_ext 8391eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8392_lt_linker_boilerplate=`cat conftest.err` 8393$RM -r conftest* 8394 8395 8396## CAVEAT EMPTOR: 8397## There is no encapsulation within the following macros, do not change 8398## the running order or otherwise move them around unless you know exactly 8399## what you are doing... 8400if test -n "$compiler"; then 8401 8402lt_prog_compiler_no_builtin_flag= 8403 8404if test "$GCC" = yes; then 8405 case $cc_basename in 8406 nvcc*) 8407 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8408 *) 8409 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8410 esac 8411 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8413$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8414if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8415 $as_echo_n "(cached) " >&6 8416else 8417 lt_cv_prog_compiler_rtti_exceptions=no 8418 ac_outfile=conftest.$ac_objext 8419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8420 lt_compiler_flag="-fno-rtti -fno-exceptions" 8421 # Insert the option either (1) after the last *FLAGS variable, or 8422 # (2) before a word containing "conftest.", or (3) at the end. 8423 # Note that $ac_compile itself does not contain backslashes and begins 8424 # with a dollar sign (not a hyphen), so the echo should work correctly. 8425 # The option is referenced via a variable to avoid confusing sed. 8426 lt_compile=`echo "$ac_compile" | $SED \ 8427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8429 -e 's:$: $lt_compiler_flag:'` 8430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8431 (eval "$lt_compile" 2>conftest.err) 8432 ac_status=$? 8433 cat conftest.err >&5 8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8435 if (exit $ac_status) && test -s "$ac_outfile"; then 8436 # The compiler can only warn and ignore the option if not recognized 8437 # So say no if there are warnings other than the usual output. 8438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8441 lt_cv_prog_compiler_rtti_exceptions=yes 8442 fi 8443 fi 8444 $RM conftest* 8445 8446fi 8447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8448$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8449 8450if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8451 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8452else 8453 : 8454fi 8455 8456fi 8457 8458 8459 8460 8461 8462 8463 lt_prog_compiler_wl= 8464lt_prog_compiler_pic= 8465lt_prog_compiler_static= 8466 8467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8468$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8469 8470 if test "$GCC" = yes; then 8471 lt_prog_compiler_wl='-Wl,' 8472 lt_prog_compiler_static='-static' 8473 8474 case $host_os in 8475 aix*) 8476 # All AIX code is PIC. 8477 if test "$host_cpu" = ia64; then 8478 # AIX 5 now supports IA64 processor 8479 lt_prog_compiler_static='-Bstatic' 8480 fi 8481 lt_prog_compiler_pic='-fPIC' 8482 ;; 8483 8484 amigaos*) 8485 case $host_cpu in 8486 powerpc) 8487 # see comment about AmigaOS4 .so support 8488 lt_prog_compiler_pic='-fPIC' 8489 ;; 8490 m68k) 8491 # FIXME: we need at least 68020 code to build shared libraries, but 8492 # adding the `-m68020' flag to GCC prevents building anything better, 8493 # like `-m68040'. 8494 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8495 ;; 8496 esac 8497 ;; 8498 8499 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8500 # PIC is the default for these OSes. 8501 ;; 8502 8503 mingw* | cygwin* | pw32* | os2* | cegcc*) 8504 # This hack is so that the source file can tell whether it is being 8505 # built for inclusion in a dll (and should export symbols for example). 8506 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8507 # (--disable-auto-import) libraries 8508 lt_prog_compiler_pic='-DDLL_EXPORT' 8509 ;; 8510 8511 darwin* | rhapsody*) 8512 # PIC is the default on this platform 8513 # Common symbols not allowed in MH_DYLIB files 8514 lt_prog_compiler_pic='-fno-common' 8515 ;; 8516 8517 haiku*) 8518 # PIC is the default for Haiku. 8519 # The "-static" flag exists, but is broken. 8520 lt_prog_compiler_static= 8521 ;; 8522 8523 hpux*) 8524 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8525 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8526 # sets the default TLS model and affects inlining. 8527 case $host_cpu in 8528 hppa*64*) 8529 # +Z the default 8530 ;; 8531 *) 8532 lt_prog_compiler_pic='-fPIC' 8533 ;; 8534 esac 8535 ;; 8536 8537 interix[3-9]*) 8538 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8539 # Instead, we relocate shared libraries at runtime. 8540 ;; 8541 8542 msdosdjgpp*) 8543 # Just because we use GCC doesn't mean we suddenly get shared libraries 8544 # on systems that don't support them. 8545 lt_prog_compiler_can_build_shared=no 8546 enable_shared=no 8547 ;; 8548 8549 *nto* | *qnx*) 8550 # QNX uses GNU C++, but need to define -shared option too, otherwise 8551 # it will coredump. 8552 lt_prog_compiler_pic='-fPIC -shared' 8553 ;; 8554 8555 sysv4*MP*) 8556 if test -d /usr/nec; then 8557 lt_prog_compiler_pic=-Kconform_pic 8558 fi 8559 ;; 8560 8561 *) 8562 lt_prog_compiler_pic='-fPIC' 8563 ;; 8564 esac 8565 8566 case $cc_basename in 8567 nvcc*) # Cuda Compiler Driver 2.2 8568 lt_prog_compiler_wl='-Xlinker ' 8569 lt_prog_compiler_pic='-Xcompiler -fPIC' 8570 ;; 8571 esac 8572 else 8573 # PORTME Check for flag to pass linker flags through the system compiler. 8574 case $host_os in 8575 aix*) 8576 lt_prog_compiler_wl='-Wl,' 8577 if test "$host_cpu" = ia64; then 8578 # AIX 5 now supports IA64 processor 8579 lt_prog_compiler_static='-Bstatic' 8580 else 8581 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8582 fi 8583 ;; 8584 8585 mingw* | cygwin* | pw32* | os2* | cegcc*) 8586 # This hack is so that the source file can tell whether it is being 8587 # built for inclusion in a dll (and should export symbols for example). 8588 lt_prog_compiler_pic='-DDLL_EXPORT' 8589 ;; 8590 8591 hpux9* | hpux10* | hpux11*) 8592 lt_prog_compiler_wl='-Wl,' 8593 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8594 # not for PA HP-UX. 8595 case $host_cpu in 8596 hppa*64*|ia64*) 8597 # +Z the default 8598 ;; 8599 *) 8600 lt_prog_compiler_pic='+Z' 8601 ;; 8602 esac 8603 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8604 lt_prog_compiler_static='${wl}-a ${wl}archive' 8605 ;; 8606 8607 irix5* | irix6* | nonstopux*) 8608 lt_prog_compiler_wl='-Wl,' 8609 # PIC (with -KPIC) is the default. 8610 lt_prog_compiler_static='-non_shared' 8611 ;; 8612 8613 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8614 case $cc_basename in 8615 # old Intel for x86_64 which still supported -KPIC. 8616 ecc*) 8617 lt_prog_compiler_wl='-Wl,' 8618 lt_prog_compiler_pic='-KPIC' 8619 lt_prog_compiler_static='-static' 8620 ;; 8621 # icc used to be incompatible with GCC. 8622 # ICC 10 doesn't accept -KPIC any more. 8623 icc* | ifort*) 8624 lt_prog_compiler_wl='-Wl,' 8625 lt_prog_compiler_pic='-fPIC' 8626 lt_prog_compiler_static='-static' 8627 ;; 8628 # Lahey Fortran 8.1. 8629 lf95*) 8630 lt_prog_compiler_wl='-Wl,' 8631 lt_prog_compiler_pic='--shared' 8632 lt_prog_compiler_static='--static' 8633 ;; 8634 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8635 # Portland Group compilers (*not* the Pentium gcc compiler, 8636 # which looks to be a dead project) 8637 lt_prog_compiler_wl='-Wl,' 8638 lt_prog_compiler_pic='-fpic' 8639 lt_prog_compiler_static='-Bstatic' 8640 ;; 8641 ccc*) 8642 lt_prog_compiler_wl='-Wl,' 8643 # All Alpha code is PIC. 8644 lt_prog_compiler_static='-non_shared' 8645 ;; 8646 xl* | bgxl* | bgf* | mpixl*) 8647 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8648 lt_prog_compiler_wl='-Wl,' 8649 lt_prog_compiler_pic='-qpic' 8650 lt_prog_compiler_static='-qstaticlink' 8651 ;; 8652 *) 8653 case `$CC -V 2>&1 | sed 5q` in 8654 *Sun\ F* | *Sun*Fortran*) 8655 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8656 lt_prog_compiler_pic='-KPIC' 8657 lt_prog_compiler_static='-Bstatic' 8658 lt_prog_compiler_wl='' 8659 ;; 8660 *Sun\ C*) 8661 # Sun C 5.9 8662 lt_prog_compiler_pic='-KPIC' 8663 lt_prog_compiler_static='-Bstatic' 8664 lt_prog_compiler_wl='-Wl,' 8665 ;; 8666 esac 8667 ;; 8668 esac 8669 ;; 8670 8671 newsos6) 8672 lt_prog_compiler_pic='-KPIC' 8673 lt_prog_compiler_static='-Bstatic' 8674 ;; 8675 8676 *nto* | *qnx*) 8677 # QNX uses GNU C++, but need to define -shared option too, otherwise 8678 # it will coredump. 8679 lt_prog_compiler_pic='-fPIC -shared' 8680 ;; 8681 8682 osf3* | osf4* | osf5*) 8683 lt_prog_compiler_wl='-Wl,' 8684 # All OSF/1 code is PIC. 8685 lt_prog_compiler_static='-non_shared' 8686 ;; 8687 8688 rdos*) 8689 lt_prog_compiler_static='-non_shared' 8690 ;; 8691 8692 solaris*) 8693 lt_prog_compiler_pic='-KPIC' 8694 lt_prog_compiler_static='-Bstatic' 8695 case $cc_basename in 8696 f77* | f90* | f95*) 8697 lt_prog_compiler_wl='-Qoption ld ';; 8698 *) 8699 lt_prog_compiler_wl='-Wl,';; 8700 esac 8701 ;; 8702 8703 sunos4*) 8704 lt_prog_compiler_wl='-Qoption ld ' 8705 lt_prog_compiler_pic='-PIC' 8706 lt_prog_compiler_static='-Bstatic' 8707 ;; 8708 8709 sysv4 | sysv4.2uw2* | sysv4.3*) 8710 lt_prog_compiler_wl='-Wl,' 8711 lt_prog_compiler_pic='-KPIC' 8712 lt_prog_compiler_static='-Bstatic' 8713 ;; 8714 8715 sysv4*MP*) 8716 if test -d /usr/nec ;then 8717 lt_prog_compiler_pic='-Kconform_pic' 8718 lt_prog_compiler_static='-Bstatic' 8719 fi 8720 ;; 8721 8722 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8723 lt_prog_compiler_wl='-Wl,' 8724 lt_prog_compiler_pic='-KPIC' 8725 lt_prog_compiler_static='-Bstatic' 8726 ;; 8727 8728 unicos*) 8729 lt_prog_compiler_wl='-Wl,' 8730 lt_prog_compiler_can_build_shared=no 8731 ;; 8732 8733 uts4*) 8734 lt_prog_compiler_pic='-pic' 8735 lt_prog_compiler_static='-Bstatic' 8736 ;; 8737 8738 *) 8739 lt_prog_compiler_can_build_shared=no 8740 ;; 8741 esac 8742 fi 8743 8744case $host_os in 8745 # For platforms which do not support PIC, -DPIC is meaningless: 8746 *djgpp*) 8747 lt_prog_compiler_pic= 8748 ;; 8749 *) 8750 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8751 ;; 8752esac 8753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8754$as_echo "$lt_prog_compiler_pic" >&6; } 8755 8756 8757 8758 8759 8760 8761# 8762# Check to make sure the PIC flag actually works. 8763# 8764if test -n "$lt_prog_compiler_pic"; then 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8766$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8767if ${lt_cv_prog_compiler_pic_works+:} false; then : 8768 $as_echo_n "(cached) " >&6 8769else 8770 lt_cv_prog_compiler_pic_works=no 8771 ac_outfile=conftest.$ac_objext 8772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8773 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8774 # Insert the option either (1) after the last *FLAGS variable, or 8775 # (2) before a word containing "conftest.", or (3) at the end. 8776 # Note that $ac_compile itself does not contain backslashes and begins 8777 # with a dollar sign (not a hyphen), so the echo should work correctly. 8778 # The option is referenced via a variable to avoid confusing sed. 8779 lt_compile=`echo "$ac_compile" | $SED \ 8780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8782 -e 's:$: $lt_compiler_flag:'` 8783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8784 (eval "$lt_compile" 2>conftest.err) 8785 ac_status=$? 8786 cat conftest.err >&5 8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8788 if (exit $ac_status) && test -s "$ac_outfile"; then 8789 # The compiler can only warn and ignore the option if not recognized 8790 # So say no if there are warnings other than the usual output. 8791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8794 lt_cv_prog_compiler_pic_works=yes 8795 fi 8796 fi 8797 $RM conftest* 8798 8799fi 8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8801$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8802 8803if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8804 case $lt_prog_compiler_pic in 8805 "" | " "*) ;; 8806 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8807 esac 8808else 8809 lt_prog_compiler_pic= 8810 lt_prog_compiler_can_build_shared=no 8811fi 8812 8813fi 8814 8815 8816 8817 8818 8819 8820# 8821# Check to make sure the static flag actually works. 8822# 8823wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8825$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8826if ${lt_cv_prog_compiler_static_works+:} false; then : 8827 $as_echo_n "(cached) " >&6 8828else 8829 lt_cv_prog_compiler_static_works=no 8830 save_LDFLAGS="$LDFLAGS" 8831 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8832 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8833 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8834 # The linker can only warn and ignore the option if not recognized 8835 # So say no if there are warnings 8836 if test -s conftest.err; then 8837 # Append any errors to the config.log. 8838 cat conftest.err 1>&5 8839 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8841 if diff conftest.exp conftest.er2 >/dev/null; then 8842 lt_cv_prog_compiler_static_works=yes 8843 fi 8844 else 8845 lt_cv_prog_compiler_static_works=yes 8846 fi 8847 fi 8848 $RM -r conftest* 8849 LDFLAGS="$save_LDFLAGS" 8850 8851fi 8852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8853$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8854 8855if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8856 : 8857else 8858 lt_prog_compiler_static= 8859fi 8860 8861 8862 8863 8864 8865 8866 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8868$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8869if ${lt_cv_prog_compiler_c_o+:} false; then : 8870 $as_echo_n "(cached) " >&6 8871else 8872 lt_cv_prog_compiler_c_o=no 8873 $RM -r conftest 2>/dev/null 8874 mkdir conftest 8875 cd conftest 8876 mkdir out 8877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8878 8879 lt_compiler_flag="-o out/conftest2.$ac_objext" 8880 # Insert the option either (1) after the last *FLAGS variable, or 8881 # (2) before a word containing "conftest.", or (3) at the end. 8882 # Note that $ac_compile itself does not contain backslashes and begins 8883 # with a dollar sign (not a hyphen), so the echo should work correctly. 8884 lt_compile=`echo "$ac_compile" | $SED \ 8885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8887 -e 's:$: $lt_compiler_flag:'` 8888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8889 (eval "$lt_compile" 2>out/conftest.err) 8890 ac_status=$? 8891 cat out/conftest.err >&5 8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8893 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8894 then 8895 # The compiler can only warn and ignore the option if not recognized 8896 # So say no if there are warnings 8897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8898 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8899 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8900 lt_cv_prog_compiler_c_o=yes 8901 fi 8902 fi 8903 chmod u+w . 2>&5 8904 $RM conftest* 8905 # SGI C++ compiler will create directory out/ii_files/ for 8906 # template instantiation 8907 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8908 $RM out/* && rmdir out 8909 cd .. 8910 $RM -r conftest 8911 $RM conftest* 8912 8913fi 8914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8915$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8916 8917 8918 8919 8920 8921 8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8923$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8924if ${lt_cv_prog_compiler_c_o+:} false; then : 8925 $as_echo_n "(cached) " >&6 8926else 8927 lt_cv_prog_compiler_c_o=no 8928 $RM -r conftest 2>/dev/null 8929 mkdir conftest 8930 cd conftest 8931 mkdir out 8932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8933 8934 lt_compiler_flag="-o out/conftest2.$ac_objext" 8935 # Insert the option either (1) after the last *FLAGS variable, or 8936 # (2) before a word containing "conftest.", or (3) at the end. 8937 # Note that $ac_compile itself does not contain backslashes and begins 8938 # with a dollar sign (not a hyphen), so the echo should work correctly. 8939 lt_compile=`echo "$ac_compile" | $SED \ 8940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8942 -e 's:$: $lt_compiler_flag:'` 8943 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8944 (eval "$lt_compile" 2>out/conftest.err) 8945 ac_status=$? 8946 cat out/conftest.err >&5 8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8948 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8949 then 8950 # The compiler can only warn and ignore the option if not recognized 8951 # So say no if there are warnings 8952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8953 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8954 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8955 lt_cv_prog_compiler_c_o=yes 8956 fi 8957 fi 8958 chmod u+w . 2>&5 8959 $RM conftest* 8960 # SGI C++ compiler will create directory out/ii_files/ for 8961 # template instantiation 8962 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8963 $RM out/* && rmdir out 8964 cd .. 8965 $RM -r conftest 8966 $RM conftest* 8967 8968fi 8969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8970$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8971 8972 8973 8974 8975hard_links="nottested" 8976if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8977 # do not overwrite the value of need_locks provided by the user 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8979$as_echo_n "checking if we can lock with hard links... " >&6; } 8980 hard_links=yes 8981 $RM conftest* 8982 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8983 touch conftest.a 8984 ln conftest.a conftest.b 2>&5 || hard_links=no 8985 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8987$as_echo "$hard_links" >&6; } 8988 if test "$hard_links" = no; then 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8990$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8991 need_locks=warn 8992 fi 8993else 8994 need_locks=no 8995fi 8996 8997 8998 8999 9000 9001 9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9003$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9004 9005 runpath_var= 9006 allow_undefined_flag= 9007 always_export_symbols=no 9008 archive_cmds= 9009 archive_expsym_cmds= 9010 compiler_needs_object=no 9011 enable_shared_with_static_runtimes=no 9012 export_dynamic_flag_spec= 9013 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9014 hardcode_automatic=no 9015 hardcode_direct=no 9016 hardcode_direct_absolute=no 9017 hardcode_libdir_flag_spec= 9018 hardcode_libdir_flag_spec_ld= 9019 hardcode_libdir_separator= 9020 hardcode_minus_L=no 9021 hardcode_shlibpath_var=unsupported 9022 inherit_rpath=no 9023 link_all_deplibs=unknown 9024 module_cmds= 9025 module_expsym_cmds= 9026 old_archive_from_new_cmds= 9027 old_archive_from_expsyms_cmds= 9028 thread_safe_flag_spec= 9029 whole_archive_flag_spec= 9030 # include_expsyms should be a list of space-separated symbols to be *always* 9031 # included in the symbol list 9032 include_expsyms= 9033 # exclude_expsyms can be an extended regexp of symbols to exclude 9034 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9035 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9036 # as well as any symbol that contains `d'. 9037 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9038 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9039 # platforms (ab)use it in PIC code, but their linkers get confused if 9040 # the symbol is explicitly referenced. Since portable code cannot 9041 # rely on this symbol name, it's probably fine to never include it in 9042 # preloaded symbol tables. 9043 # Exclude shared library initialization/finalization symbols. 9044 extract_expsyms_cmds= 9045 9046 case $host_os in 9047 cygwin* | mingw* | pw32* | cegcc*) 9048 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9049 # When not using gcc, we currently assume that we are using 9050 # Microsoft Visual C++. 9051 if test "$GCC" != yes; then 9052 with_gnu_ld=no 9053 fi 9054 ;; 9055 interix*) 9056 # we just hope/assume this is gcc and not c89 (= MSVC++) 9057 with_gnu_ld=yes 9058 ;; 9059 openbsd*) 9060 with_gnu_ld=no 9061 ;; 9062 esac 9063 9064 ld_shlibs=yes 9065 9066 # On some targets, GNU ld is compatible enough with the native linker 9067 # that we're better off using the native interface for both. 9068 lt_use_gnu_ld_interface=no 9069 if test "$with_gnu_ld" = yes; then 9070 case $host_os in 9071 aix*) 9072 # The AIX port of GNU ld has always aspired to compatibility 9073 # with the native linker. However, as the warning in the GNU ld 9074 # block says, versions before 2.19.5* couldn't really create working 9075 # shared libraries, regardless of the interface used. 9076 case `$LD -v 2>&1` in 9077 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9078 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9079 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9080 *) 9081 lt_use_gnu_ld_interface=yes 9082 ;; 9083 esac 9084 ;; 9085 *) 9086 lt_use_gnu_ld_interface=yes 9087 ;; 9088 esac 9089 fi 9090 9091 if test "$lt_use_gnu_ld_interface" = yes; then 9092 # If archive_cmds runs LD, not CC, wlarc should be empty 9093 wlarc='${wl}' 9094 9095 # Set some defaults for GNU ld with shared library support. These 9096 # are reset later if shared libraries are not supported. Putting them 9097 # here allows them to be overridden if necessary. 9098 runpath_var=LD_RUN_PATH 9099 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9100 export_dynamic_flag_spec='${wl}--export-dynamic' 9101 # ancient GNU ld didn't support --whole-archive et. al. 9102 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9103 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9104 else 9105 whole_archive_flag_spec= 9106 fi 9107 supports_anon_versioning=no 9108 case `$LD -v 2>&1` in 9109 *GNU\ gold*) supports_anon_versioning=yes ;; 9110 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9111 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9112 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9113 *\ 2.11.*) ;; # other 2.11 versions 9114 *) supports_anon_versioning=yes ;; 9115 esac 9116 9117 # See if GNU ld supports shared libraries. 9118 case $host_os in 9119 aix[3-9]*) 9120 # On AIX/PPC, the GNU linker is very broken 9121 if test "$host_cpu" != ia64; then 9122 ld_shlibs=no 9123 cat <<_LT_EOF 1>&2 9124 9125*** Warning: the GNU linker, at least up to release 2.19, is reported 9126*** to be unable to reliably create shared libraries on AIX. 9127*** Therefore, libtool is disabling shared libraries support. If you 9128*** really care for shared libraries, you may want to install binutils 9129*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9130*** You will then need to restart the configuration process. 9131 9132_LT_EOF 9133 fi 9134 ;; 9135 9136 amigaos*) 9137 case $host_cpu in 9138 powerpc) 9139 # see comment about AmigaOS4 .so support 9140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9141 archive_expsym_cmds='' 9142 ;; 9143 m68k) 9144 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)' 9145 hardcode_libdir_flag_spec='-L$libdir' 9146 hardcode_minus_L=yes 9147 ;; 9148 esac 9149 ;; 9150 9151 beos*) 9152 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9153 allow_undefined_flag=unsupported 9154 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9155 # support --undefined. This deserves some investigation. FIXME 9156 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9157 else 9158 ld_shlibs=no 9159 fi 9160 ;; 9161 9162 cygwin* | mingw* | pw32* | cegcc*) 9163 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9164 # as there is no search path for DLLs. 9165 hardcode_libdir_flag_spec='-L$libdir' 9166 export_dynamic_flag_spec='${wl}--export-all-symbols' 9167 allow_undefined_flag=unsupported 9168 always_export_symbols=no 9169 enable_shared_with_static_runtimes=yes 9170 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9171 9172 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9174 # If the export-symbols file already is a .def file (1st line 9175 # is EXPORTS), use it as is; otherwise, prepend... 9176 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9177 cp $export_symbols $output_objdir/$soname.def; 9178 else 9179 echo EXPORTS > $output_objdir/$soname.def; 9180 cat $export_symbols >> $output_objdir/$soname.def; 9181 fi~ 9182 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9183 else 9184 ld_shlibs=no 9185 fi 9186 ;; 9187 9188 haiku*) 9189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9190 link_all_deplibs=yes 9191 ;; 9192 9193 interix[3-9]*) 9194 hardcode_direct=no 9195 hardcode_shlibpath_var=no 9196 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9197 export_dynamic_flag_spec='${wl}-E' 9198 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9199 # Instead, shared libraries are loaded at an image base (0x10000000 by 9200 # default) and relocated if they conflict, which is a slow very memory 9201 # consuming and fragmenting process. To avoid this, we pick a random, 9202 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9203 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9204 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9205 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' 9206 ;; 9207 9208 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9209 tmp_diet=no 9210 if test "$host_os" = linux-dietlibc; then 9211 case $cc_basename in 9212 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9213 esac 9214 fi 9215 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9216 && test "$tmp_diet" = no 9217 then 9218 tmp_addflag=' $pic_flag' 9219 tmp_sharedflag='-shared' 9220 case $cc_basename,$host_cpu in 9221 pgcc*) # Portland Group C compiler 9222 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' 9223 tmp_addflag=' $pic_flag' 9224 ;; 9225 pgf77* | pgf90* | pgf95* | pgfortran*) 9226 # Portland Group f77 and f90 compilers 9227 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' 9228 tmp_addflag=' $pic_flag -Mnomain' ;; 9229 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9230 tmp_addflag=' -i_dynamic' ;; 9231 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9232 tmp_addflag=' -i_dynamic -nofor_main' ;; 9233 ifc* | ifort*) # Intel Fortran compiler 9234 tmp_addflag=' -nofor_main' ;; 9235 lf95*) # Lahey Fortran 8.1 9236 whole_archive_flag_spec= 9237 tmp_sharedflag='--shared' ;; 9238 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9239 tmp_sharedflag='-qmkshrobj' 9240 tmp_addflag= ;; 9241 nvcc*) # Cuda Compiler Driver 2.2 9242 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' 9243 compiler_needs_object=yes 9244 ;; 9245 esac 9246 case `$CC -V 2>&1 | sed 5q` in 9247 *Sun\ C*) # Sun C 5.9 9248 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' 9249 compiler_needs_object=yes 9250 tmp_sharedflag='-G' ;; 9251 *Sun\ F*) # Sun Fortran 8.3 9252 tmp_sharedflag='-G' ;; 9253 esac 9254 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9255 9256 if test "x$supports_anon_versioning" = xyes; then 9257 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9258 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9259 echo "local: *; };" >> $output_objdir/$libname.ver~ 9260 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9261 fi 9262 9263 case $cc_basename in 9264 xlf* | bgf* | bgxlf* | mpixlf*) 9265 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9266 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9267 hardcode_libdir_flag_spec= 9268 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9269 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9270 if test "x$supports_anon_versioning" = xyes; then 9271 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9272 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9273 echo "local: *; };" >> $output_objdir/$libname.ver~ 9274 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9275 fi 9276 ;; 9277 esac 9278 else 9279 ld_shlibs=no 9280 fi 9281 ;; 9282 9283 netbsd*) 9284 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9285 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9286 wlarc= 9287 else 9288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9289 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9290 fi 9291 ;; 9292 9293 solaris*) 9294 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9295 ld_shlibs=no 9296 cat <<_LT_EOF 1>&2 9297 9298*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9299*** create shared libraries on Solaris systems. Therefore, libtool 9300*** is disabling shared libraries support. We urge you to upgrade GNU 9301*** binutils to release 2.9.1 or newer. Another option is to modify 9302*** your PATH or compiler configuration so that the native linker is 9303*** used, and then restart. 9304 9305_LT_EOF 9306 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9309 else 9310 ld_shlibs=no 9311 fi 9312 ;; 9313 9314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9315 case `$LD -v 2>&1` in 9316 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9317 ld_shlibs=no 9318 cat <<_LT_EOF 1>&2 9319 9320*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9321*** reliably create shared libraries on SCO systems. Therefore, libtool 9322*** is disabling shared libraries support. We urge you to upgrade GNU 9323*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9324*** your PATH or compiler configuration so that the native linker is 9325*** used, and then restart. 9326 9327_LT_EOF 9328 ;; 9329 *) 9330 # For security reasons, it is highly recommended that you always 9331 # use absolute paths for naming shared libraries, and exclude the 9332 # DT_RUNPATH tag from executables and libraries. But doing so 9333 # requires that you compile everything twice, which is a pain. 9334 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9337 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9338 else 9339 ld_shlibs=no 9340 fi 9341 ;; 9342 esac 9343 ;; 9344 9345 sunos4*) 9346 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9347 wlarc= 9348 hardcode_direct=yes 9349 hardcode_shlibpath_var=no 9350 ;; 9351 9352 *) 9353 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9355 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9356 else 9357 ld_shlibs=no 9358 fi 9359 ;; 9360 esac 9361 9362 if test "$ld_shlibs" = no; then 9363 runpath_var= 9364 hardcode_libdir_flag_spec= 9365 export_dynamic_flag_spec= 9366 whole_archive_flag_spec= 9367 fi 9368 else 9369 # PORTME fill in a description of your system's linker (not GNU ld) 9370 case $host_os in 9371 aix3*) 9372 allow_undefined_flag=unsupported 9373 always_export_symbols=yes 9374 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' 9375 # Note: this linker hardcodes the directories in LIBPATH if there 9376 # are no directories specified by -L. 9377 hardcode_minus_L=yes 9378 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9379 # Neither direct hardcoding nor static linking is supported with a 9380 # broken collect2. 9381 hardcode_direct=unsupported 9382 fi 9383 ;; 9384 9385 aix[4-9]*) 9386 if test "$host_cpu" = ia64; then 9387 # On IA64, the linker does run time linking by default, so we don't 9388 # have to do anything special. 9389 aix_use_runtimelinking=no 9390 exp_sym_flag='-Bexport' 9391 no_entry_flag="" 9392 else 9393 # If we're using GNU nm, then we don't want the "-C" option. 9394 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9395 # Also, AIX nm treats weak defined symbols like other global 9396 # defined symbols, whereas GNU nm marks them as "W". 9397 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9398 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' 9399 else 9400 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9401 fi 9402 aix_use_runtimelinking=no 9403 9404 # Test if we are trying to use run time linking or normal 9405 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9406 # need to do runtime linking. 9407 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9408 for ld_flag in $LDFLAGS; do 9409 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9410 aix_use_runtimelinking=yes 9411 break 9412 fi 9413 done 9414 ;; 9415 esac 9416 9417 exp_sym_flag='-bexport' 9418 no_entry_flag='-bnoentry' 9419 fi 9420 9421 # When large executables or shared objects are built, AIX ld can 9422 # have problems creating the table of contents. If linking a library 9423 # or program results in "error TOC overflow" add -mminimal-toc to 9424 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9425 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9426 9427 archive_cmds='' 9428 hardcode_direct=yes 9429 hardcode_direct_absolute=yes 9430 hardcode_libdir_separator=':' 9431 link_all_deplibs=yes 9432 file_list_spec='${wl}-f,' 9433 9434 if test "$GCC" = yes; then 9435 case $host_os in aix4.[012]|aix4.[012].*) 9436 # We only want to do this on AIX 4.2 and lower, the check 9437 # below for broken collect2 doesn't work under 4.3+ 9438 collect2name=`${CC} -print-prog-name=collect2` 9439 if test -f "$collect2name" && 9440 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9441 then 9442 # We have reworked collect2 9443 : 9444 else 9445 # We have old collect2 9446 hardcode_direct=unsupported 9447 # It fails to find uninstalled libraries when the uninstalled 9448 # path is not listed in the libpath. Setting hardcode_minus_L 9449 # to unsupported forces relinking 9450 hardcode_minus_L=yes 9451 hardcode_libdir_flag_spec='-L$libdir' 9452 hardcode_libdir_separator= 9453 fi 9454 ;; 9455 esac 9456 shared_flag='-shared' 9457 if test "$aix_use_runtimelinking" = yes; then 9458 shared_flag="$shared_flag "'${wl}-G' 9459 fi 9460 else 9461 # not using gcc 9462 if test "$host_cpu" = ia64; then 9463 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9464 # chokes on -Wl,-G. The following line is correct: 9465 shared_flag='-G' 9466 else 9467 if test "$aix_use_runtimelinking" = yes; then 9468 shared_flag='${wl}-G' 9469 else 9470 shared_flag='${wl}-bM:SRE' 9471 fi 9472 fi 9473 fi 9474 9475 export_dynamic_flag_spec='${wl}-bexpall' 9476 # It seems that -bexpall does not export symbols beginning with 9477 # underscore (_), so it is better to generate a list of symbols to export. 9478 always_export_symbols=yes 9479 if test "$aix_use_runtimelinking" = yes; then 9480 # Warning - without using the other runtime loading flags (-brtl), 9481 # -berok will link without error, but may produce a broken library. 9482 allow_undefined_flag='-berok' 9483 # Determine the default libpath from the value encoded in an 9484 # empty executable. 9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9486/* end confdefs.h. */ 9487 9488int 9489main () 9490{ 9491 9492 ; 9493 return 0; 9494} 9495_ACEOF 9496if ac_fn_c_try_link "$LINENO"; then : 9497 9498lt_aix_libpath_sed=' 9499 /Import File Strings/,/^$/ { 9500 /^0/ { 9501 s/^0 *\(.*\)$/\1/ 9502 p 9503 } 9504 }' 9505aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9506# Check for a 64-bit object if we didn't find anything. 9507if test -z "$aix_libpath"; then 9508 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9509fi 9510fi 9511rm -f core conftest.err conftest.$ac_objext \ 9512 conftest$ac_exeext conftest.$ac_ext 9513if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9514 9515 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9516 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" 9517 else 9518 if test "$host_cpu" = ia64; then 9519 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9520 allow_undefined_flag="-z nodefs" 9521 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" 9522 else 9523 # Determine the default libpath from the value encoded in an 9524 # empty executable. 9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9526/* end confdefs.h. */ 9527 9528int 9529main () 9530{ 9531 9532 ; 9533 return 0; 9534} 9535_ACEOF 9536if ac_fn_c_try_link "$LINENO"; then : 9537 9538lt_aix_libpath_sed=' 9539 /Import File Strings/,/^$/ { 9540 /^0/ { 9541 s/^0 *\(.*\)$/\1/ 9542 p 9543 } 9544 }' 9545aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9546# Check for a 64-bit object if we didn't find anything. 9547if test -z "$aix_libpath"; then 9548 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9549fi 9550fi 9551rm -f core conftest.err conftest.$ac_objext \ 9552 conftest$ac_exeext conftest.$ac_ext 9553if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9554 9555 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9556 # Warning - without using the other run time loading flags, 9557 # -berok will link without error, but may produce a broken library. 9558 no_undefined_flag=' ${wl}-bernotok' 9559 allow_undefined_flag=' ${wl}-berok' 9560 if test "$with_gnu_ld" = yes; then 9561 # We only use this code for GNU lds that support --whole-archive. 9562 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9563 else 9564 # Exported symbols can be pulled into shared objects from archives 9565 whole_archive_flag_spec='$convenience' 9566 fi 9567 archive_cmds_need_lc=yes 9568 # This is similar to how AIX traditionally builds its shared libraries. 9569 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' 9570 fi 9571 fi 9572 ;; 9573 9574 amigaos*) 9575 case $host_cpu in 9576 powerpc) 9577 # see comment about AmigaOS4 .so support 9578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9579 archive_expsym_cmds='' 9580 ;; 9581 m68k) 9582 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)' 9583 hardcode_libdir_flag_spec='-L$libdir' 9584 hardcode_minus_L=yes 9585 ;; 9586 esac 9587 ;; 9588 9589 bsdi[45]*) 9590 export_dynamic_flag_spec=-rdynamic 9591 ;; 9592 9593 cygwin* | mingw* | pw32* | cegcc*) 9594 # When not using gcc, we currently assume that we are using 9595 # Microsoft Visual C++. 9596 # hardcode_libdir_flag_spec is actually meaningless, as there is 9597 # no search path for DLLs. 9598 hardcode_libdir_flag_spec=' ' 9599 allow_undefined_flag=unsupported 9600 # Tell ltmain to make .lib files, not .a files. 9601 libext=lib 9602 # Tell ltmain to make .dll files, not .so files. 9603 shrext_cmds=".dll" 9604 # FIXME: Setting linknames here is a bad hack. 9605 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9606 # The linker will automatically build a .lib file if we build a DLL. 9607 old_archive_from_new_cmds='true' 9608 # FIXME: Should let the user specify the lib program. 9609 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9610 fix_srcfile_path='`cygpath -w "$srcfile"`' 9611 enable_shared_with_static_runtimes=yes 9612 ;; 9613 9614 darwin* | rhapsody*) 9615 9616 9617 archive_cmds_need_lc=no 9618 hardcode_direct=no 9619 hardcode_automatic=yes 9620 hardcode_shlibpath_var=unsupported 9621 if test "$lt_cv_ld_force_load" = "yes"; then 9622 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\"`' 9623 else 9624 whole_archive_flag_spec='' 9625 fi 9626 link_all_deplibs=yes 9627 allow_undefined_flag="$_lt_dar_allow_undefined" 9628 case $cc_basename in 9629 ifort*) _lt_dar_can_shared=yes ;; 9630 *) _lt_dar_can_shared=$GCC ;; 9631 esac 9632 if test "$_lt_dar_can_shared" = "yes"; then 9633 output_verbose_link_cmd=func_echo_all 9634 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9635 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9636 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}" 9637 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}" 9638 9639 else 9640 ld_shlibs=no 9641 fi 9642 9643 ;; 9644 9645 dgux*) 9646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9647 hardcode_libdir_flag_spec='-L$libdir' 9648 hardcode_shlibpath_var=no 9649 ;; 9650 9651 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9652 # support. Future versions do this automatically, but an explicit c++rt0.o 9653 # does not break anything, and helps significantly (at the cost of a little 9654 # extra space). 9655 freebsd2.2*) 9656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9657 hardcode_libdir_flag_spec='-R$libdir' 9658 hardcode_direct=yes 9659 hardcode_shlibpath_var=no 9660 ;; 9661 9662 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9663 freebsd2.*) 9664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9665 hardcode_direct=yes 9666 hardcode_minus_L=yes 9667 hardcode_shlibpath_var=no 9668 ;; 9669 9670 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9671 freebsd* | dragonfly*) 9672 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9673 hardcode_libdir_flag_spec='-R$libdir' 9674 hardcode_direct=yes 9675 hardcode_shlibpath_var=no 9676 ;; 9677 9678 hpux9*) 9679 if test "$GCC" = yes; then 9680 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9681 else 9682 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' 9683 fi 9684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9685 hardcode_libdir_separator=: 9686 hardcode_direct=yes 9687 9688 # hardcode_minus_L: Not really in the search PATH, 9689 # but as the default location of the library. 9690 hardcode_minus_L=yes 9691 export_dynamic_flag_spec='${wl}-E' 9692 ;; 9693 9694 hpux10*) 9695 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9696 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9697 else 9698 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9699 fi 9700 if test "$with_gnu_ld" = no; then 9701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9702 hardcode_libdir_flag_spec_ld='+b $libdir' 9703 hardcode_libdir_separator=: 9704 hardcode_direct=yes 9705 hardcode_direct_absolute=yes 9706 export_dynamic_flag_spec='${wl}-E' 9707 # hardcode_minus_L: Not really in the search PATH, 9708 # but as the default location of the library. 9709 hardcode_minus_L=yes 9710 fi 9711 ;; 9712 9713 hpux11*) 9714 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9715 case $host_cpu in 9716 hppa*64*) 9717 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9718 ;; 9719 ia64*) 9720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9721 ;; 9722 *) 9723 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9724 ;; 9725 esac 9726 else 9727 case $host_cpu in 9728 hppa*64*) 9729 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9730 ;; 9731 ia64*) 9732 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9733 ;; 9734 *) 9735 9736 # Older versions of the 11.00 compiler do not understand -b yet 9737 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9739$as_echo_n "checking if $CC understands -b... " >&6; } 9740if ${lt_cv_prog_compiler__b+:} false; then : 9741 $as_echo_n "(cached) " >&6 9742else 9743 lt_cv_prog_compiler__b=no 9744 save_LDFLAGS="$LDFLAGS" 9745 LDFLAGS="$LDFLAGS -b" 9746 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9748 # The linker can only warn and ignore the option if not recognized 9749 # So say no if there are warnings 9750 if test -s conftest.err; then 9751 # Append any errors to the config.log. 9752 cat conftest.err 1>&5 9753 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9755 if diff conftest.exp conftest.er2 >/dev/null; then 9756 lt_cv_prog_compiler__b=yes 9757 fi 9758 else 9759 lt_cv_prog_compiler__b=yes 9760 fi 9761 fi 9762 $RM -r conftest* 9763 LDFLAGS="$save_LDFLAGS" 9764 9765fi 9766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9767$as_echo "$lt_cv_prog_compiler__b" >&6; } 9768 9769if test x"$lt_cv_prog_compiler__b" = xyes; then 9770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9771else 9772 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9773fi 9774 9775 ;; 9776 esac 9777 fi 9778 if test "$with_gnu_ld" = no; then 9779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9780 hardcode_libdir_separator=: 9781 9782 case $host_cpu in 9783 hppa*64*|ia64*) 9784 hardcode_direct=no 9785 hardcode_shlibpath_var=no 9786 ;; 9787 *) 9788 hardcode_direct=yes 9789 hardcode_direct_absolute=yes 9790 export_dynamic_flag_spec='${wl}-E' 9791 9792 # hardcode_minus_L: Not really in the search PATH, 9793 # but as the default location of the library. 9794 hardcode_minus_L=yes 9795 ;; 9796 esac 9797 fi 9798 ;; 9799 9800 irix5* | irix6* | nonstopux*) 9801 if test "$GCC" = yes; then 9802 archive_cmds='$CC -shared $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' 9803 # Try to use the -exported_symbol ld option, if it does not 9804 # work, assume that -exports_file does not work either and 9805 # implicitly export all symbols. 9806 save_LDFLAGS="$LDFLAGS" 9807 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9809/* end confdefs.h. */ 9810int foo(void) {} 9811_ACEOF 9812if ac_fn_c_try_link "$LINENO"; then : 9813 archive_expsym_cmds='$CC -shared $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' 9814 9815fi 9816rm -f core conftest.err conftest.$ac_objext \ 9817 conftest$ac_exeext conftest.$ac_ext 9818 LDFLAGS="$save_LDFLAGS" 9819 else 9820 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' 9821 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' 9822 fi 9823 archive_cmds_need_lc='no' 9824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9825 hardcode_libdir_separator=: 9826 inherit_rpath=yes 9827 link_all_deplibs=yes 9828 ;; 9829 9830 netbsd*) 9831 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9833 else 9834 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9835 fi 9836 hardcode_libdir_flag_spec='-R$libdir' 9837 hardcode_direct=yes 9838 hardcode_shlibpath_var=no 9839 ;; 9840 9841 newsos6) 9842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9843 hardcode_direct=yes 9844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9845 hardcode_libdir_separator=: 9846 hardcode_shlibpath_var=no 9847 ;; 9848 9849 *nto* | *qnx*) 9850 ;; 9851 9852 openbsd*) 9853 if test -f /usr/libexec/ld.so; then 9854 hardcode_direct=yes 9855 hardcode_shlibpath_var=no 9856 hardcode_direct_absolute=yes 9857 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9858 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9859 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9860 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9861 export_dynamic_flag_spec='${wl}-E' 9862 else 9863 case $host_os in 9864 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9866 hardcode_libdir_flag_spec='-R$libdir' 9867 ;; 9868 *) 9869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9871 ;; 9872 esac 9873 fi 9874 else 9875 ld_shlibs=no 9876 fi 9877 ;; 9878 9879 os2*) 9880 hardcode_libdir_flag_spec='-L$libdir' 9881 hardcode_minus_L=yes 9882 allow_undefined_flag=unsupported 9883 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' 9884 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9885 ;; 9886 9887 osf3*) 9888 if test "$GCC" = yes; then 9889 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9890 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' 9891 else 9892 allow_undefined_flag=' -expect_unresolved \*' 9893 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' 9894 fi 9895 archive_cmds_need_lc='no' 9896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9897 hardcode_libdir_separator=: 9898 ;; 9899 9900 osf4* | osf5*) # as osf3* with the addition of -msym flag 9901 if test "$GCC" = yes; then 9902 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9903 archive_cmds='$CC -shared${allow_undefined_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' 9904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9905 else 9906 allow_undefined_flag=' -expect_unresolved \*' 9907 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' 9908 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~ 9909 $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' 9910 9911 # Both c and cxx compiler support -rpath directly 9912 hardcode_libdir_flag_spec='-rpath $libdir' 9913 fi 9914 archive_cmds_need_lc='no' 9915 hardcode_libdir_separator=: 9916 ;; 9917 9918 solaris*) 9919 no_undefined_flag=' -z defs' 9920 if test "$GCC" = yes; then 9921 wlarc='${wl}' 9922 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9923 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9924 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9925 else 9926 case `$CC -V 2>&1` in 9927 *"Compilers 5.0"*) 9928 wlarc='' 9929 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9930 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9931 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9932 ;; 9933 *) 9934 wlarc='${wl}' 9935 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9936 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9937 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9938 ;; 9939 esac 9940 fi 9941 hardcode_libdir_flag_spec='-R$libdir' 9942 hardcode_shlibpath_var=no 9943 case $host_os in 9944 solaris2.[0-5] | solaris2.[0-5].*) ;; 9945 *) 9946 # The compiler driver will combine and reorder linker options, 9947 # but understands `-z linker_flag'. GCC discards it without `$wl', 9948 # but is careful enough not to reorder. 9949 # Supported since Solaris 2.6 (maybe 2.5.1?) 9950 if test "$GCC" = yes; then 9951 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9952 else 9953 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9954 fi 9955 ;; 9956 esac 9957 link_all_deplibs=yes 9958 ;; 9959 9960 sunos4*) 9961 if test "x$host_vendor" = xsequent; then 9962 # Use $CC to link under sequent, because it throws in some extra .o 9963 # files that make .init and .fini sections work. 9964 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9965 else 9966 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9967 fi 9968 hardcode_libdir_flag_spec='-L$libdir' 9969 hardcode_direct=yes 9970 hardcode_minus_L=yes 9971 hardcode_shlibpath_var=no 9972 ;; 9973 9974 sysv4) 9975 case $host_vendor in 9976 sni) 9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9978 hardcode_direct=yes # is this really true??? 9979 ;; 9980 siemens) 9981 ## LD is ld it makes a PLAMLIB 9982 ## CC just makes a GrossModule. 9983 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9984 reload_cmds='$CC -r -o $output$reload_objs' 9985 hardcode_direct=no 9986 ;; 9987 motorola) 9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9989 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9990 ;; 9991 esac 9992 runpath_var='LD_RUN_PATH' 9993 hardcode_shlibpath_var=no 9994 ;; 9995 9996 sysv4.3*) 9997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9998 hardcode_shlibpath_var=no 9999 export_dynamic_flag_spec='-Bexport' 10000 ;; 10001 10002 sysv4*MP*) 10003 if test -d /usr/nec; then 10004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10005 hardcode_shlibpath_var=no 10006 runpath_var=LD_RUN_PATH 10007 hardcode_runpath_var=yes 10008 ld_shlibs=yes 10009 fi 10010 ;; 10011 10012 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10013 no_undefined_flag='${wl}-z,text' 10014 archive_cmds_need_lc=no 10015 hardcode_shlibpath_var=no 10016 runpath_var='LD_RUN_PATH' 10017 10018 if test "$GCC" = yes; then 10019 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10020 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10021 else 10022 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10023 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10024 fi 10025 ;; 10026 10027 sysv5* | sco3.2v5* | sco5v6*) 10028 # Note: We can NOT use -z defs as we might desire, because we do not 10029 # link with -lc, and that would cause any symbols used from libc to 10030 # always be unresolved, which means just about no library would 10031 # ever link correctly. If we're not using GNU ld we use -z text 10032 # though, which does catch some bad symbols but isn't as heavy-handed 10033 # as -z defs. 10034 no_undefined_flag='${wl}-z,text' 10035 allow_undefined_flag='${wl}-z,nodefs' 10036 archive_cmds_need_lc=no 10037 hardcode_shlibpath_var=no 10038 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10039 hardcode_libdir_separator=':' 10040 link_all_deplibs=yes 10041 export_dynamic_flag_spec='${wl}-Bexport' 10042 runpath_var='LD_RUN_PATH' 10043 10044 if test "$GCC" = yes; then 10045 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10046 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10047 else 10048 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10049 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10050 fi 10051 ;; 10052 10053 uts4*) 10054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10055 hardcode_libdir_flag_spec='-L$libdir' 10056 hardcode_shlibpath_var=no 10057 ;; 10058 10059 *) 10060 ld_shlibs=no 10061 ;; 10062 esac 10063 10064 if test x$host_vendor = xsni; then 10065 case $host in 10066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10067 export_dynamic_flag_spec='${wl}-Blargedynsym' 10068 ;; 10069 esac 10070 fi 10071 fi 10072 10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10074$as_echo "$ld_shlibs" >&6; } 10075test "$ld_shlibs" = no && can_build_shared=no 10076 10077with_gnu_ld=$with_gnu_ld 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093# 10094# Do we need to explicitly link libc? 10095# 10096case "x$archive_cmds_need_lc" in 10097x|xyes) 10098 # Assume -lc should be added 10099 archive_cmds_need_lc=yes 10100 10101 if test "$enable_shared" = yes && test "$GCC" = yes; then 10102 case $archive_cmds in 10103 *'~'*) 10104 # FIXME: we may have to deal with multi-command sequences. 10105 ;; 10106 '$CC '*) 10107 # Test whether the compiler implicitly links with -lc since on some 10108 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10109 # to ld, don't add -lc before -lgcc. 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10111$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10112if ${lt_cv_archive_cmds_need_lc+:} false; then : 10113 $as_echo_n "(cached) " >&6 10114else 10115 $RM conftest* 10116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10117 10118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10119 (eval $ac_compile) 2>&5 10120 ac_status=$? 10121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10122 test $ac_status = 0; } 2>conftest.err; then 10123 soname=conftest 10124 lib=conftest 10125 libobjs=conftest.$ac_objext 10126 deplibs= 10127 wl=$lt_prog_compiler_wl 10128 pic_flag=$lt_prog_compiler_pic 10129 compiler_flags=-v 10130 linker_flags=-v 10131 verstring= 10132 output_objdir=. 10133 libname=conftest 10134 lt_save_allow_undefined_flag=$allow_undefined_flag 10135 allow_undefined_flag= 10136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10137 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10138 ac_status=$? 10139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10140 test $ac_status = 0; } 10141 then 10142 lt_cv_archive_cmds_need_lc=no 10143 else 10144 lt_cv_archive_cmds_need_lc=yes 10145 fi 10146 allow_undefined_flag=$lt_save_allow_undefined_flag 10147 else 10148 cat conftest.err 1>&5 10149 fi 10150 $RM conftest* 10151 10152fi 10153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10154$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10155 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10156 ;; 10157 esac 10158 fi 10159 ;; 10160esac 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 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10319$as_echo_n "checking dynamic linker characteristics... " >&6; } 10320 10321if test "$GCC" = yes; then 10322 case $host_os in 10323 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10324 *) lt_awk_arg="/^libraries:/" ;; 10325 esac 10326 case $host_os in 10327 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10328 *) lt_sed_strip_eq="s,=/,/,g" ;; 10329 esac 10330 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10331 case $lt_search_path_spec in 10332 *\;*) 10333 # if the path contains ";" then we assume it to be the separator 10334 # otherwise default to the standard path separator (i.e. ":") - it is 10335 # assumed that no part of a normal pathname contains ";" but that should 10336 # okay in the real world where ";" in dirpaths is itself problematic. 10337 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10338 ;; 10339 *) 10340 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10341 ;; 10342 esac 10343 # Ok, now we have the path, separated by spaces, we can step through it 10344 # and add multilib dir if necessary. 10345 lt_tmp_lt_search_path_spec= 10346 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10347 for lt_sys_path in $lt_search_path_spec; do 10348 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10349 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10350 else 10351 test -d "$lt_sys_path" && \ 10352 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10353 fi 10354 done 10355 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10356BEGIN {RS=" "; FS="/|\n";} { 10357 lt_foo=""; 10358 lt_count=0; 10359 for (lt_i = NF; lt_i > 0; lt_i--) { 10360 if ($lt_i != "" && $lt_i != ".") { 10361 if ($lt_i == "..") { 10362 lt_count++; 10363 } else { 10364 if (lt_count == 0) { 10365 lt_foo="/" $lt_i lt_foo; 10366 } else { 10367 lt_count--; 10368 } 10369 } 10370 } 10371 } 10372 if (lt_foo != "") { lt_freq[lt_foo]++; } 10373 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10374}'` 10375 # AWK program above erroneously prepends '/' to C:/dos/paths 10376 # for these hosts. 10377 case $host_os in 10378 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10379 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10380 esac 10381 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10382else 10383 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10384fi 10385library_names_spec= 10386libname_spec='lib$name' 10387soname_spec= 10388shrext_cmds=".so" 10389postinstall_cmds= 10390postuninstall_cmds= 10391finish_cmds= 10392finish_eval= 10393shlibpath_var= 10394shlibpath_overrides_runpath=unknown 10395version_type=none 10396dynamic_linker="$host_os ld.so" 10397sys_lib_dlsearch_path_spec="/lib /usr/lib" 10398need_lib_prefix=unknown 10399hardcode_into_libs=no 10400 10401# when you set need_version to no, make sure it does not cause -set_version 10402# flags to be left without arguments 10403need_version=unknown 10404 10405case $host_os in 10406aix3*) 10407 version_type=linux 10408 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10409 shlibpath_var=LIBPATH 10410 10411 # AIX 3 has no versioning support, so we append a major version to the name. 10412 soname_spec='${libname}${release}${shared_ext}$major' 10413 ;; 10414 10415aix[4-9]*) 10416 version_type=linux 10417 need_lib_prefix=no 10418 need_version=no 10419 hardcode_into_libs=yes 10420 if test "$host_cpu" = ia64; then 10421 # AIX 5 supports IA64 10422 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10423 shlibpath_var=LD_LIBRARY_PATH 10424 else 10425 # With GCC up to 2.95.x, collect2 would create an import file 10426 # for dependence libraries. The import file would start with 10427 # the line `#! .'. This would cause the generated library to 10428 # depend on `.', always an invalid library. This was fixed in 10429 # development snapshots of GCC prior to 3.0. 10430 case $host_os in 10431 aix4 | aix4.[01] | aix4.[01].*) 10432 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10433 echo ' yes ' 10434 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10435 : 10436 else 10437 can_build_shared=no 10438 fi 10439 ;; 10440 esac 10441 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10442 # soname into executable. Probably we can add versioning support to 10443 # collect2, so additional links can be useful in future. 10444 if test "$aix_use_runtimelinking" = yes; then 10445 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10446 # instead of lib<name>.a to let people know that these are not 10447 # typical AIX shared libraries. 10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10449 else 10450 # We preserve .a as extension for shared libraries through AIX4.2 10451 # and later when we are not doing run time linking. 10452 library_names_spec='${libname}${release}.a $libname.a' 10453 soname_spec='${libname}${release}${shared_ext}$major' 10454 fi 10455 shlibpath_var=LIBPATH 10456 fi 10457 ;; 10458 10459amigaos*) 10460 case $host_cpu in 10461 powerpc) 10462 # Since July 2007 AmigaOS4 officially supports .so libraries. 10463 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10465 ;; 10466 m68k) 10467 library_names_spec='$libname.ixlibrary $libname.a' 10468 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10469 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' 10470 ;; 10471 esac 10472 ;; 10473 10474beos*) 10475 library_names_spec='${libname}${shared_ext}' 10476 dynamic_linker="$host_os ld.so" 10477 shlibpath_var=LIBRARY_PATH 10478 ;; 10479 10480bsdi[45]*) 10481 version_type=linux 10482 need_version=no 10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10484 soname_spec='${libname}${release}${shared_ext}$major' 10485 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10486 shlibpath_var=LD_LIBRARY_PATH 10487 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10488 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10489 # the default ld.so.conf also contains /usr/contrib/lib and 10490 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10491 # libtool to hard-code these into programs 10492 ;; 10493 10494cygwin* | mingw* | pw32* | cegcc*) 10495 version_type=windows 10496 shrext_cmds=".dll" 10497 need_version=no 10498 need_lib_prefix=no 10499 10500 case $GCC,$host_os in 10501 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10502 library_names_spec='$libname.dll.a' 10503 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10504 postinstall_cmds='base_file=`basename \${file}`~ 10505 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10506 dldir=$destdir/`dirname \$dlpath`~ 10507 test -d \$dldir || mkdir -p \$dldir~ 10508 $install_prog $dir/$dlname \$dldir/$dlname~ 10509 chmod a+x \$dldir/$dlname~ 10510 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10511 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10512 fi' 10513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10514 dlpath=$dir/\$dldll~ 10515 $RM \$dlpath' 10516 shlibpath_overrides_runpath=yes 10517 10518 case $host_os in 10519 cygwin*) 10520 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10521 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10522 10523 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10524 ;; 10525 mingw* | cegcc*) 10526 # MinGW DLLs use traditional 'lib' prefix 10527 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10528 ;; 10529 pw32*) 10530 # pw32 DLLs use 'pw' prefix rather than 'lib' 10531 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10532 ;; 10533 esac 10534 ;; 10535 10536 *) 10537 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10538 ;; 10539 esac 10540 dynamic_linker='Win32 ld.exe' 10541 # FIXME: first we should search . and the directory the executable is in 10542 shlibpath_var=PATH 10543 ;; 10544 10545darwin* | rhapsody*) 10546 dynamic_linker="$host_os dyld" 10547 version_type=darwin 10548 need_lib_prefix=no 10549 need_version=no 10550 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10551 soname_spec='${libname}${release}${major}$shared_ext' 10552 shlibpath_overrides_runpath=yes 10553 shlibpath_var=DYLD_LIBRARY_PATH 10554 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10555 10556 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10557 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10558 ;; 10559 10560dgux*) 10561 version_type=linux 10562 need_lib_prefix=no 10563 need_version=no 10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10565 soname_spec='${libname}${release}${shared_ext}$major' 10566 shlibpath_var=LD_LIBRARY_PATH 10567 ;; 10568 10569freebsd* | dragonfly*) 10570 # DragonFly does not have aout. When/if they implement a new 10571 # versioning mechanism, adjust this. 10572 if test -x /usr/bin/objformat; then 10573 objformat=`/usr/bin/objformat` 10574 else 10575 case $host_os in 10576 freebsd[23].*) objformat=aout ;; 10577 *) objformat=elf ;; 10578 esac 10579 fi 10580 version_type=freebsd-$objformat 10581 case $version_type in 10582 freebsd-elf*) 10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10584 need_version=no 10585 need_lib_prefix=no 10586 ;; 10587 freebsd-*) 10588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10589 need_version=yes 10590 ;; 10591 esac 10592 shlibpath_var=LD_LIBRARY_PATH 10593 case $host_os in 10594 freebsd2.*) 10595 shlibpath_overrides_runpath=yes 10596 ;; 10597 freebsd3.[01]* | freebsdelf3.[01]*) 10598 shlibpath_overrides_runpath=yes 10599 hardcode_into_libs=yes 10600 ;; 10601 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10602 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10603 shlibpath_overrides_runpath=no 10604 hardcode_into_libs=yes 10605 ;; 10606 *) # from 4.6 on, and DragonFly 10607 shlibpath_overrides_runpath=yes 10608 hardcode_into_libs=yes 10609 ;; 10610 esac 10611 ;; 10612 10613gnu*) 10614 version_type=linux 10615 need_lib_prefix=no 10616 need_version=no 10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10618 soname_spec='${libname}${release}${shared_ext}$major' 10619 shlibpath_var=LD_LIBRARY_PATH 10620 hardcode_into_libs=yes 10621 ;; 10622 10623haiku*) 10624 version_type=linux 10625 need_lib_prefix=no 10626 need_version=no 10627 dynamic_linker="$host_os runtime_loader" 10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10629 soname_spec='${libname}${release}${shared_ext}$major' 10630 shlibpath_var=LIBRARY_PATH 10631 shlibpath_overrides_runpath=yes 10632 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10633 hardcode_into_libs=yes 10634 ;; 10635 10636hpux9* | hpux10* | hpux11*) 10637 # Give a soname corresponding to the major version so that dld.sl refuses to 10638 # link against other versions. 10639 version_type=sunos 10640 need_lib_prefix=no 10641 need_version=no 10642 case $host_cpu in 10643 ia64*) 10644 shrext_cmds='.so' 10645 hardcode_into_libs=yes 10646 dynamic_linker="$host_os dld.so" 10647 shlibpath_var=LD_LIBRARY_PATH 10648 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10650 soname_spec='${libname}${release}${shared_ext}$major' 10651 if test "X$HPUX_IA64_MODE" = X32; then 10652 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10653 else 10654 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10655 fi 10656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10657 ;; 10658 hppa*64*) 10659 shrext_cmds='.sl' 10660 hardcode_into_libs=yes 10661 dynamic_linker="$host_os dld.sl" 10662 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10665 soname_spec='${libname}${release}${shared_ext}$major' 10666 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10668 ;; 10669 *) 10670 shrext_cmds='.sl' 10671 dynamic_linker="$host_os dld.sl" 10672 shlibpath_var=SHLIB_PATH 10673 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10675 soname_spec='${libname}${release}${shared_ext}$major' 10676 ;; 10677 esac 10678 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10679 postinstall_cmds='chmod 555 $lib' 10680 # or fails outright, so override atomically: 10681 install_override_mode=555 10682 ;; 10683 10684interix[3-9]*) 10685 version_type=linux 10686 need_lib_prefix=no 10687 need_version=no 10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10689 soname_spec='${libname}${release}${shared_ext}$major' 10690 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10691 shlibpath_var=LD_LIBRARY_PATH 10692 shlibpath_overrides_runpath=no 10693 hardcode_into_libs=yes 10694 ;; 10695 10696irix5* | irix6* | nonstopux*) 10697 case $host_os in 10698 nonstopux*) version_type=nonstopux ;; 10699 *) 10700 if test "$lt_cv_prog_gnu_ld" = yes; then 10701 version_type=linux 10702 else 10703 version_type=irix 10704 fi ;; 10705 esac 10706 need_lib_prefix=no 10707 need_version=no 10708 soname_spec='${libname}${release}${shared_ext}$major' 10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10710 case $host_os in 10711 irix5* | nonstopux*) 10712 libsuff= shlibsuff= 10713 ;; 10714 *) 10715 case $LD in # libtool.m4 will add one of these switches to LD 10716 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10717 libsuff= shlibsuff= libmagic=32-bit;; 10718 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10719 libsuff=32 shlibsuff=N32 libmagic=N32;; 10720 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10721 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10722 *) libsuff= shlibsuff= libmagic=never-match;; 10723 esac 10724 ;; 10725 esac 10726 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10727 shlibpath_overrides_runpath=no 10728 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10729 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10730 hardcode_into_libs=yes 10731 ;; 10732 10733# No shared lib support for Linux oldld, aout, or coff. 10734linux*oldld* | linux*aout* | linux*coff*) 10735 dynamic_linker=no 10736 ;; 10737 10738# This must be Linux ELF. 10739linux* | k*bsd*-gnu | kopensolaris*-gnu) 10740 version_type=linux 10741 need_lib_prefix=no 10742 need_version=no 10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10744 soname_spec='${libname}${release}${shared_ext}$major' 10745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10746 shlibpath_var=LD_LIBRARY_PATH 10747 shlibpath_overrides_runpath=no 10748 10749 # Some binutils ld are patched to set DT_RUNPATH 10750 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10751 $as_echo_n "(cached) " >&6 10752else 10753 lt_cv_shlibpath_overrides_runpath=no 10754 save_LDFLAGS=$LDFLAGS 10755 save_libdir=$libdir 10756 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10757 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10759/* end confdefs.h. */ 10760 10761int 10762main () 10763{ 10764 10765 ; 10766 return 0; 10767} 10768_ACEOF 10769if ac_fn_c_try_link "$LINENO"; then : 10770 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10771 lt_cv_shlibpath_overrides_runpath=yes 10772fi 10773fi 10774rm -f core conftest.err conftest.$ac_objext \ 10775 conftest$ac_exeext conftest.$ac_ext 10776 LDFLAGS=$save_LDFLAGS 10777 libdir=$save_libdir 10778 10779fi 10780 10781 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10782 10783 # This implies no fast_install, which is unacceptable. 10784 # Some rework will be needed to allow for fast_install 10785 # before this can be enabled. 10786 hardcode_into_libs=yes 10787 10788 # Append ld.so.conf contents to the search path 10789 if test -f /etc/ld.so.conf; then 10790 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' ' '` 10791 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10792 fi 10793 10794 # We used to test for /lib/ld.so.1 and disable shared libraries on 10795 # powerpc, because MkLinux only supported shared libraries with the 10796 # GNU dynamic linker. Since this was broken with cross compilers, 10797 # most powerpc-linux boxes support dynamic linking these days and 10798 # people can always --disable-shared, the test was removed, and we 10799 # assume the GNU/Linux dynamic linker is in use. 10800 dynamic_linker='GNU/Linux ld.so' 10801 ;; 10802 10803netbsd*) 10804 version_type=sunos 10805 need_lib_prefix=no 10806 need_version=no 10807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10810 dynamic_linker='NetBSD (a.out) ld.so' 10811 else 10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10813 soname_spec='${libname}${release}${shared_ext}$major' 10814 dynamic_linker='NetBSD ld.elf_so' 10815 fi 10816 shlibpath_var=LD_LIBRARY_PATH 10817 shlibpath_overrides_runpath=yes 10818 hardcode_into_libs=yes 10819 ;; 10820 10821newsos6) 10822 version_type=linux 10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10824 shlibpath_var=LD_LIBRARY_PATH 10825 shlibpath_overrides_runpath=yes 10826 ;; 10827 10828*nto* | *qnx*) 10829 version_type=qnx 10830 need_lib_prefix=no 10831 need_version=no 10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10833 soname_spec='${libname}${release}${shared_ext}$major' 10834 shlibpath_var=LD_LIBRARY_PATH 10835 shlibpath_overrides_runpath=no 10836 hardcode_into_libs=yes 10837 dynamic_linker='ldqnx.so' 10838 ;; 10839 10840openbsd*) 10841 version_type=sunos 10842 sys_lib_dlsearch_path_spec="/usr/lib" 10843 need_lib_prefix=no 10844 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10845 case $host_os in 10846 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10847 *) need_version=no ;; 10848 esac 10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10851 shlibpath_var=LD_LIBRARY_PATH 10852 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10853 case $host_os in 10854 openbsd2.[89] | openbsd2.[89].*) 10855 shlibpath_overrides_runpath=no 10856 ;; 10857 *) 10858 shlibpath_overrides_runpath=yes 10859 ;; 10860 esac 10861 else 10862 shlibpath_overrides_runpath=yes 10863 fi 10864 ;; 10865 10866os2*) 10867 libname_spec='$name' 10868 shrext_cmds=".dll" 10869 need_lib_prefix=no 10870 library_names_spec='$libname${shared_ext} $libname.a' 10871 dynamic_linker='OS/2 ld.exe' 10872 shlibpath_var=LIBPATH 10873 ;; 10874 10875osf3* | osf4* | osf5*) 10876 version_type=osf 10877 need_lib_prefix=no 10878 need_version=no 10879 soname_spec='${libname}${release}${shared_ext}$major' 10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10881 shlibpath_var=LD_LIBRARY_PATH 10882 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10883 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10884 ;; 10885 10886rdos*) 10887 dynamic_linker=no 10888 ;; 10889 10890solaris*) 10891 version_type=linux 10892 need_lib_prefix=no 10893 need_version=no 10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10895 soname_spec='${libname}${release}${shared_ext}$major' 10896 shlibpath_var=LD_LIBRARY_PATH 10897 shlibpath_overrides_runpath=yes 10898 hardcode_into_libs=yes 10899 # ldd complains unless libraries are executable 10900 postinstall_cmds='chmod +x $lib' 10901 ;; 10902 10903sunos4*) 10904 version_type=sunos 10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10906 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10907 shlibpath_var=LD_LIBRARY_PATH 10908 shlibpath_overrides_runpath=yes 10909 if test "$with_gnu_ld" = yes; then 10910 need_lib_prefix=no 10911 fi 10912 need_version=yes 10913 ;; 10914 10915sysv4 | sysv4.3*) 10916 version_type=linux 10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10918 soname_spec='${libname}${release}${shared_ext}$major' 10919 shlibpath_var=LD_LIBRARY_PATH 10920 case $host_vendor in 10921 sni) 10922 shlibpath_overrides_runpath=no 10923 need_lib_prefix=no 10924 runpath_var=LD_RUN_PATH 10925 ;; 10926 siemens) 10927 need_lib_prefix=no 10928 ;; 10929 motorola) 10930 need_lib_prefix=no 10931 need_version=no 10932 shlibpath_overrides_runpath=no 10933 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10934 ;; 10935 esac 10936 ;; 10937 10938sysv4*MP*) 10939 if test -d /usr/nec ;then 10940 version_type=linux 10941 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10942 soname_spec='$libname${shared_ext}.$major' 10943 shlibpath_var=LD_LIBRARY_PATH 10944 fi 10945 ;; 10946 10947sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10948 version_type=freebsd-elf 10949 need_lib_prefix=no 10950 need_version=no 10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10952 soname_spec='${libname}${release}${shared_ext}$major' 10953 shlibpath_var=LD_LIBRARY_PATH 10954 shlibpath_overrides_runpath=yes 10955 hardcode_into_libs=yes 10956 if test "$with_gnu_ld" = yes; then 10957 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10958 else 10959 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10960 case $host_os in 10961 sco3.2v5*) 10962 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10963 ;; 10964 esac 10965 fi 10966 sys_lib_dlsearch_path_spec='/usr/lib' 10967 ;; 10968 10969tpf*) 10970 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10971 version_type=linux 10972 need_lib_prefix=no 10973 need_version=no 10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10975 shlibpath_var=LD_LIBRARY_PATH 10976 shlibpath_overrides_runpath=no 10977 hardcode_into_libs=yes 10978 ;; 10979 10980uts4*) 10981 version_type=linux 10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10983 soname_spec='${libname}${release}${shared_ext}$major' 10984 shlibpath_var=LD_LIBRARY_PATH 10985 ;; 10986 10987*) 10988 dynamic_linker=no 10989 ;; 10990esac 10991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10992$as_echo "$dynamic_linker" >&6; } 10993test "$dynamic_linker" = no && can_build_shared=no 10994 10995variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10996if test "$GCC" = yes; then 10997 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10998fi 10999 11000if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11001 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11002fi 11003if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11004 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11005fi 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11099$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11100hardcode_action= 11101if test -n "$hardcode_libdir_flag_spec" || 11102 test -n "$runpath_var" || 11103 test "X$hardcode_automatic" = "Xyes" ; then 11104 11105 # We can hardcode non-existent directories. 11106 if test "$hardcode_direct" != no && 11107 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11108 # have to relink, otherwise we might link with an installed library 11109 # when we should be linking with a yet-to-be-installed one 11110 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11111 test "$hardcode_minus_L" != no; then 11112 # Linking always hardcodes the temporary library directory. 11113 hardcode_action=relink 11114 else 11115 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11116 hardcode_action=immediate 11117 fi 11118else 11119 # We cannot hardcode anything, or else we can only hardcode existing 11120 # directories. 11121 hardcode_action=unsupported 11122fi 11123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11124$as_echo "$hardcode_action" >&6; } 11125 11126if test "$hardcode_action" = relink || 11127 test "$inherit_rpath" = yes; then 11128 # Fast installation is not supported 11129 enable_fast_install=no 11130elif test "$shlibpath_overrides_runpath" = yes || 11131 test "$enable_shared" = no; then 11132 # Fast installation is not necessary 11133 enable_fast_install=needless 11134fi 11135 11136 11137 11138 11139 11140 11141 if test "x$enable_dlopen" != xyes; then 11142 enable_dlopen=unknown 11143 enable_dlopen_self=unknown 11144 enable_dlopen_self_static=unknown 11145else 11146 lt_cv_dlopen=no 11147 lt_cv_dlopen_libs= 11148 11149 case $host_os in 11150 beos*) 11151 lt_cv_dlopen="load_add_on" 11152 lt_cv_dlopen_libs= 11153 lt_cv_dlopen_self=yes 11154 ;; 11155 11156 mingw* | pw32* | cegcc*) 11157 lt_cv_dlopen="LoadLibrary" 11158 lt_cv_dlopen_libs= 11159 ;; 11160 11161 cygwin*) 11162 lt_cv_dlopen="dlopen" 11163 lt_cv_dlopen_libs= 11164 ;; 11165 11166 darwin*) 11167 # if libdl is installed we need to link against it 11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11169$as_echo_n "checking for dlopen in -ldl... " >&6; } 11170if ${ac_cv_lib_dl_dlopen+:} false; then : 11171 $as_echo_n "(cached) " >&6 11172else 11173 ac_check_lib_save_LIBS=$LIBS 11174LIBS="-ldl $LIBS" 11175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11176/* end confdefs.h. */ 11177 11178/* Override any GCC internal prototype to avoid an error. 11179 Use char because int might match the return type of a GCC 11180 builtin and then its argument prototype would still apply. */ 11181#ifdef __cplusplus 11182extern "C" 11183#endif 11184char dlopen (); 11185int 11186main () 11187{ 11188return dlopen (); 11189 ; 11190 return 0; 11191} 11192_ACEOF 11193if ac_fn_c_try_link "$LINENO"; then : 11194 ac_cv_lib_dl_dlopen=yes 11195else 11196 ac_cv_lib_dl_dlopen=no 11197fi 11198rm -f core conftest.err conftest.$ac_objext \ 11199 conftest$ac_exeext conftest.$ac_ext 11200LIBS=$ac_check_lib_save_LIBS 11201fi 11202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11203$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11204if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11206else 11207 11208 lt_cv_dlopen="dyld" 11209 lt_cv_dlopen_libs= 11210 lt_cv_dlopen_self=yes 11211 11212fi 11213 11214 ;; 11215 11216 *) 11217 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11218if test "x$ac_cv_func_shl_load" = xyes; then : 11219 lt_cv_dlopen="shl_load" 11220else 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11222$as_echo_n "checking for shl_load in -ldld... " >&6; } 11223if ${ac_cv_lib_dld_shl_load+:} false; then : 11224 $as_echo_n "(cached) " >&6 11225else 11226 ac_check_lib_save_LIBS=$LIBS 11227LIBS="-ldld $LIBS" 11228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11229/* end confdefs.h. */ 11230 11231/* Override any GCC internal prototype to avoid an error. 11232 Use char because int might match the return type of a GCC 11233 builtin and then its argument prototype would still apply. */ 11234#ifdef __cplusplus 11235extern "C" 11236#endif 11237char shl_load (); 11238int 11239main () 11240{ 11241return shl_load (); 11242 ; 11243 return 0; 11244} 11245_ACEOF 11246if ac_fn_c_try_link "$LINENO"; then : 11247 ac_cv_lib_dld_shl_load=yes 11248else 11249 ac_cv_lib_dld_shl_load=no 11250fi 11251rm -f core conftest.err conftest.$ac_objext \ 11252 conftest$ac_exeext conftest.$ac_ext 11253LIBS=$ac_check_lib_save_LIBS 11254fi 11255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11256$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11257if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11258 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11259else 11260 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11261if test "x$ac_cv_func_dlopen" = xyes; then : 11262 lt_cv_dlopen="dlopen" 11263else 11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11265$as_echo_n "checking for dlopen in -ldl... " >&6; } 11266if ${ac_cv_lib_dl_dlopen+:} false; then : 11267 $as_echo_n "(cached) " >&6 11268else 11269 ac_check_lib_save_LIBS=$LIBS 11270LIBS="-ldl $LIBS" 11271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11272/* end confdefs.h. */ 11273 11274/* Override any GCC internal prototype to avoid an error. 11275 Use char because int might match the return type of a GCC 11276 builtin and then its argument prototype would still apply. */ 11277#ifdef __cplusplus 11278extern "C" 11279#endif 11280char dlopen (); 11281int 11282main () 11283{ 11284return dlopen (); 11285 ; 11286 return 0; 11287} 11288_ACEOF 11289if ac_fn_c_try_link "$LINENO"; then : 11290 ac_cv_lib_dl_dlopen=yes 11291else 11292 ac_cv_lib_dl_dlopen=no 11293fi 11294rm -f core conftest.err conftest.$ac_objext \ 11295 conftest$ac_exeext conftest.$ac_ext 11296LIBS=$ac_check_lib_save_LIBS 11297fi 11298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11299$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11300if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11301 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11302else 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11304$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11305if ${ac_cv_lib_svld_dlopen+:} false; then : 11306 $as_echo_n "(cached) " >&6 11307else 11308 ac_check_lib_save_LIBS=$LIBS 11309LIBS="-lsvld $LIBS" 11310cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11311/* end confdefs.h. */ 11312 11313/* Override any GCC internal prototype to avoid an error. 11314 Use char because int might match the return type of a GCC 11315 builtin and then its argument prototype would still apply. */ 11316#ifdef __cplusplus 11317extern "C" 11318#endif 11319char dlopen (); 11320int 11321main () 11322{ 11323return dlopen (); 11324 ; 11325 return 0; 11326} 11327_ACEOF 11328if ac_fn_c_try_link "$LINENO"; then : 11329 ac_cv_lib_svld_dlopen=yes 11330else 11331 ac_cv_lib_svld_dlopen=no 11332fi 11333rm -f core conftest.err conftest.$ac_objext \ 11334 conftest$ac_exeext conftest.$ac_ext 11335LIBS=$ac_check_lib_save_LIBS 11336fi 11337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11338$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11339if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11340 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11341else 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11343$as_echo_n "checking for dld_link in -ldld... " >&6; } 11344if ${ac_cv_lib_dld_dld_link+:} false; then : 11345 $as_echo_n "(cached) " >&6 11346else 11347 ac_check_lib_save_LIBS=$LIBS 11348LIBS="-ldld $LIBS" 11349cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11350/* end confdefs.h. */ 11351 11352/* Override any GCC internal prototype to avoid an error. 11353 Use char because int might match the return type of a GCC 11354 builtin and then its argument prototype would still apply. */ 11355#ifdef __cplusplus 11356extern "C" 11357#endif 11358char dld_link (); 11359int 11360main () 11361{ 11362return dld_link (); 11363 ; 11364 return 0; 11365} 11366_ACEOF 11367if ac_fn_c_try_link "$LINENO"; then : 11368 ac_cv_lib_dld_dld_link=yes 11369else 11370 ac_cv_lib_dld_dld_link=no 11371fi 11372rm -f core conftest.err conftest.$ac_objext \ 11373 conftest$ac_exeext conftest.$ac_ext 11374LIBS=$ac_check_lib_save_LIBS 11375fi 11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11377$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11378if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11379 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11380fi 11381 11382 11383fi 11384 11385 11386fi 11387 11388 11389fi 11390 11391 11392fi 11393 11394 11395fi 11396 11397 ;; 11398 esac 11399 11400 if test "x$lt_cv_dlopen" != xno; then 11401 enable_dlopen=yes 11402 else 11403 enable_dlopen=no 11404 fi 11405 11406 case $lt_cv_dlopen in 11407 dlopen) 11408 save_CPPFLAGS="$CPPFLAGS" 11409 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11410 11411 save_LDFLAGS="$LDFLAGS" 11412 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11413 11414 save_LIBS="$LIBS" 11415 LIBS="$lt_cv_dlopen_libs $LIBS" 11416 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11418$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11419if ${lt_cv_dlopen_self+:} false; then : 11420 $as_echo_n "(cached) " >&6 11421else 11422 if test "$cross_compiling" = yes; then : 11423 lt_cv_dlopen_self=cross 11424else 11425 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11426 lt_status=$lt_dlunknown 11427 cat > conftest.$ac_ext <<_LT_EOF 11428#line 11428 "configure" 11429#include "confdefs.h" 11430 11431#if HAVE_DLFCN_H 11432#include <dlfcn.h> 11433#endif 11434 11435#include <stdio.h> 11436 11437#ifdef RTLD_GLOBAL 11438# define LT_DLGLOBAL RTLD_GLOBAL 11439#else 11440# ifdef DL_GLOBAL 11441# define LT_DLGLOBAL DL_GLOBAL 11442# else 11443# define LT_DLGLOBAL 0 11444# endif 11445#endif 11446 11447/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11448 find out it does not work in some platform. */ 11449#ifndef LT_DLLAZY_OR_NOW 11450# ifdef RTLD_LAZY 11451# define LT_DLLAZY_OR_NOW RTLD_LAZY 11452# else 11453# ifdef DL_LAZY 11454# define LT_DLLAZY_OR_NOW DL_LAZY 11455# else 11456# ifdef RTLD_NOW 11457# define LT_DLLAZY_OR_NOW RTLD_NOW 11458# else 11459# ifdef DL_NOW 11460# define LT_DLLAZY_OR_NOW DL_NOW 11461# else 11462# define LT_DLLAZY_OR_NOW 0 11463# endif 11464# endif 11465# endif 11466# endif 11467#endif 11468 11469/* When -fvisbility=hidden is used, assume the code has been annotated 11470 correspondingly for the symbols needed. */ 11471#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11472void fnord () __attribute__((visibility("default"))); 11473#endif 11474 11475void fnord () { int i=42; } 11476int main () 11477{ 11478 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11479 int status = $lt_dlunknown; 11480 11481 if (self) 11482 { 11483 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11484 else 11485 { 11486 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11487 else puts (dlerror ()); 11488 } 11489 /* dlclose (self); */ 11490 } 11491 else 11492 puts (dlerror ()); 11493 11494 return status; 11495} 11496_LT_EOF 11497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11498 (eval $ac_link) 2>&5 11499 ac_status=$? 11500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11501 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11502 (./conftest; exit; ) >&5 2>/dev/null 11503 lt_status=$? 11504 case x$lt_status in 11505 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11506 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11507 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11508 esac 11509 else : 11510 # compilation failed 11511 lt_cv_dlopen_self=no 11512 fi 11513fi 11514rm -fr conftest* 11515 11516 11517fi 11518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11519$as_echo "$lt_cv_dlopen_self" >&6; } 11520 11521 if test "x$lt_cv_dlopen_self" = xyes; then 11522 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11524$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11525if ${lt_cv_dlopen_self_static+:} false; then : 11526 $as_echo_n "(cached) " >&6 11527else 11528 if test "$cross_compiling" = yes; then : 11529 lt_cv_dlopen_self_static=cross 11530else 11531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11532 lt_status=$lt_dlunknown 11533 cat > conftest.$ac_ext <<_LT_EOF 11534#line 11534 "configure" 11535#include "confdefs.h" 11536 11537#if HAVE_DLFCN_H 11538#include <dlfcn.h> 11539#endif 11540 11541#include <stdio.h> 11542 11543#ifdef RTLD_GLOBAL 11544# define LT_DLGLOBAL RTLD_GLOBAL 11545#else 11546# ifdef DL_GLOBAL 11547# define LT_DLGLOBAL DL_GLOBAL 11548# else 11549# define LT_DLGLOBAL 0 11550# endif 11551#endif 11552 11553/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11554 find out it does not work in some platform. */ 11555#ifndef LT_DLLAZY_OR_NOW 11556# ifdef RTLD_LAZY 11557# define LT_DLLAZY_OR_NOW RTLD_LAZY 11558# else 11559# ifdef DL_LAZY 11560# define LT_DLLAZY_OR_NOW DL_LAZY 11561# else 11562# ifdef RTLD_NOW 11563# define LT_DLLAZY_OR_NOW RTLD_NOW 11564# else 11565# ifdef DL_NOW 11566# define LT_DLLAZY_OR_NOW DL_NOW 11567# else 11568# define LT_DLLAZY_OR_NOW 0 11569# endif 11570# endif 11571# endif 11572# endif 11573#endif 11574 11575/* When -fvisbility=hidden is used, assume the code has been annotated 11576 correspondingly for the symbols needed. */ 11577#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11578void fnord () __attribute__((visibility("default"))); 11579#endif 11580 11581void fnord () { int i=42; } 11582int main () 11583{ 11584 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11585 int status = $lt_dlunknown; 11586 11587 if (self) 11588 { 11589 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11590 else 11591 { 11592 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11593 else puts (dlerror ()); 11594 } 11595 /* dlclose (self); */ 11596 } 11597 else 11598 puts (dlerror ()); 11599 11600 return status; 11601} 11602_LT_EOF 11603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11604 (eval $ac_link) 2>&5 11605 ac_status=$? 11606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11607 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11608 (./conftest; exit; ) >&5 2>/dev/null 11609 lt_status=$? 11610 case x$lt_status in 11611 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11612 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11613 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11614 esac 11615 else : 11616 # compilation failed 11617 lt_cv_dlopen_self_static=no 11618 fi 11619fi 11620rm -fr conftest* 11621 11622 11623fi 11624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11625$as_echo "$lt_cv_dlopen_self_static" >&6; } 11626 fi 11627 11628 CPPFLAGS="$save_CPPFLAGS" 11629 LDFLAGS="$save_LDFLAGS" 11630 LIBS="$save_LIBS" 11631 ;; 11632 esac 11633 11634 case $lt_cv_dlopen_self in 11635 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11636 *) enable_dlopen_self=unknown ;; 11637 esac 11638 11639 case $lt_cv_dlopen_self_static in 11640 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11641 *) enable_dlopen_self_static=unknown ;; 11642 esac 11643fi 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661striplib= 11662old_striplib= 11663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11664$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11665if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11666 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11667 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11669$as_echo "yes" >&6; } 11670else 11671# FIXME - insert some real tests, host_os isn't really good enough 11672 case $host_os in 11673 darwin*) 11674 if test -n "$STRIP" ; then 11675 striplib="$STRIP -x" 11676 old_striplib="$STRIP -S" 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11678$as_echo "yes" >&6; } 11679 else 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11681$as_echo "no" >&6; } 11682 fi 11683 ;; 11684 *) 11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11686$as_echo "no" >&6; } 11687 ;; 11688 esac 11689fi 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 # Report which library types will actually be built 11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11704$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11706$as_echo "$can_build_shared" >&6; } 11707 11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11709$as_echo_n "checking whether to build shared libraries... " >&6; } 11710 test "$can_build_shared" = "no" && enable_shared=no 11711 11712 # On AIX, shared libraries and static libraries use the same namespace, and 11713 # are all built from PIC. 11714 case $host_os in 11715 aix3*) 11716 test "$enable_shared" = yes && enable_static=no 11717 if test -n "$RANLIB"; then 11718 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11719 postinstall_cmds='$RANLIB $lib' 11720 fi 11721 ;; 11722 11723 aix[4-9]*) 11724 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11725 test "$enable_shared" = yes && enable_static=no 11726 fi 11727 ;; 11728 esac 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11730$as_echo "$enable_shared" >&6; } 11731 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11733$as_echo_n "checking whether to build static libraries... " >&6; } 11734 # Make sure either enable_shared or enable_static is yes. 11735 test "$enable_shared" = yes || enable_static=yes 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11737$as_echo "$enable_static" >&6; } 11738 11739 11740 11741 11742fi 11743ac_ext=c 11744ac_cpp='$CPP $CPPFLAGS' 11745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11747ac_compiler_gnu=$ac_cv_c_compiler_gnu 11748 11749CC="$lt_save_CC" 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 ac_config_commands="$ac_config_commands libtool" 11764 11765 11766 11767 11768# Only expand once: 11769 11770 11771fi 11772 11773ac_config_files="$ac_config_files Makefile" 11774 11775cat >confcache <<\_ACEOF 11776# This file is a shell script that caches the results of configure 11777# tests run on this system so they can be shared between configure 11778# scripts and configure runs, see configure's option --config-cache. 11779# It is not useful on other systems. If it contains results you don't 11780# want to keep, you may remove or edit it. 11781# 11782# config.status only pays attention to the cache file if you give it 11783# the --recheck option to rerun configure. 11784# 11785# `ac_cv_env_foo' variables (set or unset) will be overridden when 11786# loading this file, other *unset* `ac_cv_foo' will be assigned the 11787# following values. 11788 11789_ACEOF 11790 11791# The following way of writing the cache mishandles newlines in values, 11792# but we know of no workaround that is simple, portable, and efficient. 11793# So, we kill variables containing newlines. 11794# Ultrix sh set writes to stderr and can't be redirected directly, 11795# and sets the high bit in the cache file unless we assign to the vars. 11796( 11797 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11798 eval ac_val=\$$ac_var 11799 case $ac_val in #( 11800 *${as_nl}*) 11801 case $ac_var in #( 11802 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11803$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11804 esac 11805 case $ac_var in #( 11806 _ | IFS | as_nl) ;; #( 11807 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11808 *) { eval $ac_var=; unset $ac_var;} ;; 11809 esac ;; 11810 esac 11811 done 11812 11813 (set) 2>&1 | 11814 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11815 *${as_nl}ac_space=\ *) 11816 # `set' does not quote correctly, so add quotes: double-quote 11817 # substitution turns \\\\ into \\, and sed turns \\ into \. 11818 sed -n \ 11819 "s/'/'\\\\''/g; 11820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11821 ;; #( 11822 *) 11823 # `set' quotes correctly as required by POSIX, so do not add quotes. 11824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11825 ;; 11826 esac | 11827 sort 11828) | 11829 sed ' 11830 /^ac_cv_env_/b end 11831 t clear 11832 :clear 11833 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11834 t end 11835 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11836 :end' >>confcache 11837if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11838 if test -w "$cache_file"; then 11839 if test "x$cache_file" != "x/dev/null"; then 11840 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11841$as_echo "$as_me: updating cache $cache_file" >&6;} 11842 if test ! -f "$cache_file" || test -h "$cache_file"; then 11843 cat confcache >"$cache_file" 11844 else 11845 case $cache_file in #( 11846 */* | ?:*) 11847 mv -f confcache "$cache_file"$$ && 11848 mv -f "$cache_file"$$ "$cache_file" ;; #( 11849 *) 11850 mv -f confcache "$cache_file" ;; 11851 esac 11852 fi 11853 fi 11854 else 11855 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11856$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11857 fi 11858fi 11859rm -f confcache 11860 11861test "x$prefix" = xNONE && prefix=$ac_default_prefix 11862# Let make expand exec_prefix. 11863test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11864 11865# Transform confdefs.h into DEFS. 11866# Protect against shell expansion while executing Makefile rules. 11867# Protect against Makefile macro expansion. 11868# 11869# If the first sed substitution is executed (which looks for macros that 11870# take arguments), then branch to the quote section. Otherwise, 11871# look for a macro that doesn't take arguments. 11872ac_script=' 11873:mline 11874/\\$/{ 11875 N 11876 s,\\\n,, 11877 b mline 11878} 11879t clear 11880:clear 11881s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11882t quote 11883s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11884t quote 11885b any 11886:quote 11887s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11888s/\[/\\&/g 11889s/\]/\\&/g 11890s/\$/$$/g 11891H 11892:any 11893${ 11894 g 11895 s/^\n// 11896 s/\n/ /g 11897 p 11898} 11899' 11900DEFS=`sed -n "$ac_script" confdefs.h` 11901 11902 11903ac_libobjs= 11904ac_ltlibobjs= 11905U= 11906for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11907 # 1. Remove the extension, and $U if already installed. 11908 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11909 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11910 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11911 # will be set to the directory where LIBOBJS objects are built. 11912 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11913 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11914done 11915LIBOBJS=$ac_libobjs 11916 11917LTLIBOBJS=$ac_ltlibobjs 11918 11919 11920if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then 11921 as_fn_error $? "conditional \"MAY_SUPPLY_SYSCALLS\" was never defined. 11922Usually this means the macro was only invoked conditionally." "$LINENO" 5 11923fi 11924 if test -n "$EXEEXT"; then 11925 am__EXEEXT_TRUE= 11926 am__EXEEXT_FALSE='#' 11927else 11928 am__EXEEXT_TRUE='#' 11929 am__EXEEXT_FALSE= 11930fi 11931 11932if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11933 as_fn_error $? "conditional \"AMDEP\" was never defined. 11934Usually this means the macro was only invoked conditionally." "$LINENO" 5 11935fi 11936if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11937 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11938Usually this means the macro was only invoked conditionally." "$LINENO" 5 11939fi 11940if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11941 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11942Usually this means the macro was only invoked conditionally." "$LINENO" 5 11943fi 11944if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then 11945 as_fn_error $? "conditional \"ELIX_LEVEL_0\" was never defined. 11946Usually this means the macro was only invoked conditionally." "$LINENO" 5 11947fi 11948if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then 11949 as_fn_error $? "conditional \"ELIX_LEVEL_1\" was never defined. 11950Usually this means the macro was only invoked conditionally." "$LINENO" 5 11951fi 11952if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then 11953 as_fn_error $? "conditional \"ELIX_LEVEL_2\" was never defined. 11954Usually this means the macro was only invoked conditionally." "$LINENO" 5 11955fi 11956if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then 11957 as_fn_error $? "conditional \"ELIX_LEVEL_3\" was never defined. 11958Usually this means the macro was only invoked conditionally." "$LINENO" 5 11959fi 11960if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then 11961 as_fn_error $? "conditional \"ELIX_LEVEL_4\" was never defined. 11962Usually this means the macro was only invoked conditionally." "$LINENO" 5 11963fi 11964if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then 11965 as_fn_error $? "conditional \"USE_LIBTOOL\" was never defined. 11966Usually this means the macro was only invoked conditionally." "$LINENO" 5 11967fi 11968if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11969 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11970Usually this means the macro was only invoked conditionally." "$LINENO" 5 11971fi 11972 11973: "${CONFIG_STATUS=./config.status}" 11974ac_write_fail=0 11975ac_clean_files_save=$ac_clean_files 11976ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11977{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11978$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11979as_write_fail=0 11980cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11981#! $SHELL 11982# Generated by $as_me. 11983# Run this file to recreate the current configuration. 11984# Compiler output produced by configure, useful for debugging 11985# configure, is in config.log if it exists. 11986 11987debug=false 11988ac_cs_recheck=false 11989ac_cs_silent=false 11990 11991SHELL=\${CONFIG_SHELL-$SHELL} 11992export SHELL 11993_ASEOF 11994cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11995## -------------------- ## 11996## M4sh Initialization. ## 11997## -------------------- ## 11998 11999# Be more Bourne compatible 12000DUALCASE=1; export DUALCASE # for MKS sh 12001if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12002 emulate sh 12003 NULLCMD=: 12004 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12005 # is contrary to our usage. Disable this feature. 12006 alias -g '${1+"$@"}'='"$@"' 12007 setopt NO_GLOB_SUBST 12008else 12009 case `(set -o) 2>/dev/null` in #( 12010 *posix*) : 12011 set -o posix ;; #( 12012 *) : 12013 ;; 12014esac 12015fi 12016 12017 12018as_nl=' 12019' 12020export as_nl 12021# Printing a long string crashes Solaris 7 /usr/bin/printf. 12022as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12023as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12024as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12025# Prefer a ksh shell builtin over an external printf program on Solaris, 12026# but without wasting forks for bash or zsh. 12027if test -z "$BASH_VERSION$ZSH_VERSION" \ 12028 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12029 as_echo='print -r --' 12030 as_echo_n='print -rn --' 12031elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12032 as_echo='printf %s\n' 12033 as_echo_n='printf %s' 12034else 12035 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12036 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12037 as_echo_n='/usr/ucb/echo -n' 12038 else 12039 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12040 as_echo_n_body='eval 12041 arg=$1; 12042 case $arg in #( 12043 *"$as_nl"*) 12044 expr "X$arg" : "X\\(.*\\)$as_nl"; 12045 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12046 esac; 12047 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12048 ' 12049 export as_echo_n_body 12050 as_echo_n='sh -c $as_echo_n_body as_echo' 12051 fi 12052 export as_echo_body 12053 as_echo='sh -c $as_echo_body as_echo' 12054fi 12055 12056# The user is always right. 12057if test "${PATH_SEPARATOR+set}" != set; then 12058 PATH_SEPARATOR=: 12059 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12060 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12061 PATH_SEPARATOR=';' 12062 } 12063fi 12064 12065 12066# IFS 12067# We need space, tab and new line, in precisely that order. Quoting is 12068# there to prevent editors from complaining about space-tab. 12069# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12070# splitting by setting IFS to empty value.) 12071IFS=" "" $as_nl" 12072 12073# Find who we are. Look in the path if we contain no directory separator. 12074as_myself= 12075case $0 in #(( 12076 *[\\/]* ) as_myself=$0 ;; 12077 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12078for as_dir in $PATH 12079do 12080 IFS=$as_save_IFS 12081 test -z "$as_dir" && as_dir=. 12082 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12083 done 12084IFS=$as_save_IFS 12085 12086 ;; 12087esac 12088# We did not find ourselves, most probably we were run as `sh COMMAND' 12089# in which case we are not to be found in the path. 12090if test "x$as_myself" = x; then 12091 as_myself=$0 12092fi 12093if test ! -f "$as_myself"; then 12094 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12095 exit 1 12096fi 12097 12098# Unset variables that we do not need and which cause bugs (e.g. in 12099# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12100# suppresses any "Segmentation fault" message there. '((' could 12101# trigger a bug in pdksh 5.2.14. 12102for as_var in BASH_ENV ENV MAIL MAILPATH 12103do eval test x\${$as_var+set} = xset \ 12104 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12105done 12106PS1='$ ' 12107PS2='> ' 12108PS4='+ ' 12109 12110# NLS nuisances. 12111LC_ALL=C 12112export LC_ALL 12113LANGUAGE=C 12114export LANGUAGE 12115 12116# CDPATH. 12117(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12118 12119 12120# as_fn_error STATUS ERROR [LINENO LOG_FD] 12121# ---------------------------------------- 12122# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12123# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12124# script with STATUS, using 1 if that was 0. 12125as_fn_error () 12126{ 12127 as_status=$1; test $as_status -eq 0 && as_status=1 12128 if test "$4"; then 12129 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12130 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12131 fi 12132 $as_echo "$as_me: error: $2" >&2 12133 as_fn_exit $as_status 12134} # as_fn_error 12135 12136 12137# as_fn_set_status STATUS 12138# ----------------------- 12139# Set $? to STATUS, without forking. 12140as_fn_set_status () 12141{ 12142 return $1 12143} # as_fn_set_status 12144 12145# as_fn_exit STATUS 12146# ----------------- 12147# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12148as_fn_exit () 12149{ 12150 set +e 12151 as_fn_set_status $1 12152 exit $1 12153} # as_fn_exit 12154 12155# as_fn_unset VAR 12156# --------------- 12157# Portably unset VAR. 12158as_fn_unset () 12159{ 12160 { eval $1=; unset $1;} 12161} 12162as_unset=as_fn_unset 12163# as_fn_append VAR VALUE 12164# ---------------------- 12165# Append the text in VALUE to the end of the definition contained in VAR. Take 12166# advantage of any shell optimizations that allow amortized linear growth over 12167# repeated appends, instead of the typical quadratic growth present in naive 12168# implementations. 12169if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12170 eval 'as_fn_append () 12171 { 12172 eval $1+=\$2 12173 }' 12174else 12175 as_fn_append () 12176 { 12177 eval $1=\$$1\$2 12178 } 12179fi # as_fn_append 12180 12181# as_fn_arith ARG... 12182# ------------------ 12183# Perform arithmetic evaluation on the ARGs, and store the result in the 12184# global $as_val. Take advantage of shells that can avoid forks. The arguments 12185# must be portable across $(()) and expr. 12186if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12187 eval 'as_fn_arith () 12188 { 12189 as_val=$(( $* )) 12190 }' 12191else 12192 as_fn_arith () 12193 { 12194 as_val=`expr "$@" || test $? -eq 1` 12195 } 12196fi # as_fn_arith 12197 12198 12199if expr a : '\(a\)' >/dev/null 2>&1 && 12200 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12201 as_expr=expr 12202else 12203 as_expr=false 12204fi 12205 12206if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12207 as_basename=basename 12208else 12209 as_basename=false 12210fi 12211 12212if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12213 as_dirname=dirname 12214else 12215 as_dirname=false 12216fi 12217 12218as_me=`$as_basename -- "$0" || 12219$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12220 X"$0" : 'X\(//\)$' \| \ 12221 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12222$as_echo X/"$0" | 12223 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12224 s//\1/ 12225 q 12226 } 12227 /^X\/\(\/\/\)$/{ 12228 s//\1/ 12229 q 12230 } 12231 /^X\/\(\/\).*/{ 12232 s//\1/ 12233 q 12234 } 12235 s/.*/./; q'` 12236 12237# Avoid depending upon Character Ranges. 12238as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12239as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12240as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12241as_cr_digits='0123456789' 12242as_cr_alnum=$as_cr_Letters$as_cr_digits 12243 12244ECHO_C= ECHO_N= ECHO_T= 12245case `echo -n x` in #((((( 12246-n*) 12247 case `echo 'xy\c'` in 12248 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12249 xy) ECHO_C='\c';; 12250 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12251 ECHO_T=' ';; 12252 esac;; 12253*) 12254 ECHO_N='-n';; 12255esac 12256 12257rm -f conf$$ conf$$.exe conf$$.file 12258if test -d conf$$.dir; then 12259 rm -f conf$$.dir/conf$$.file 12260else 12261 rm -f conf$$.dir 12262 mkdir conf$$.dir 2>/dev/null 12263fi 12264if (echo >conf$$.file) 2>/dev/null; then 12265 if ln -s conf$$.file conf$$ 2>/dev/null; then 12266 as_ln_s='ln -s' 12267 # ... but there are two gotchas: 12268 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12269 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12270 # In both cases, we have to default to `cp -p'. 12271 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12272 as_ln_s='cp -p' 12273 elif ln conf$$.file conf$$ 2>/dev/null; then 12274 as_ln_s=ln 12275 else 12276 as_ln_s='cp -p' 12277 fi 12278else 12279 as_ln_s='cp -p' 12280fi 12281rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12282rmdir conf$$.dir 2>/dev/null 12283 12284 12285# as_fn_mkdir_p 12286# ------------- 12287# Create "$as_dir" as a directory, including parents if necessary. 12288as_fn_mkdir_p () 12289{ 12290 12291 case $as_dir in #( 12292 -*) as_dir=./$as_dir;; 12293 esac 12294 test -d "$as_dir" || eval $as_mkdir_p || { 12295 as_dirs= 12296 while :; do 12297 case $as_dir in #( 12298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12299 *) as_qdir=$as_dir;; 12300 esac 12301 as_dirs="'$as_qdir' $as_dirs" 12302 as_dir=`$as_dirname -- "$as_dir" || 12303$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12304 X"$as_dir" : 'X\(//\)[^/]' \| \ 12305 X"$as_dir" : 'X\(//\)$' \| \ 12306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12307$as_echo X"$as_dir" | 12308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12309 s//\1/ 12310 q 12311 } 12312 /^X\(\/\/\)[^/].*/{ 12313 s//\1/ 12314 q 12315 } 12316 /^X\(\/\/\)$/{ 12317 s//\1/ 12318 q 12319 } 12320 /^X\(\/\).*/{ 12321 s//\1/ 12322 q 12323 } 12324 s/.*/./; q'` 12325 test -d "$as_dir" && break 12326 done 12327 test -z "$as_dirs" || eval "mkdir $as_dirs" 12328 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12329 12330 12331} # as_fn_mkdir_p 12332if mkdir -p . 2>/dev/null; then 12333 as_mkdir_p='mkdir -p "$as_dir"' 12334else 12335 test -d ./-p && rmdir ./-p 12336 as_mkdir_p=false 12337fi 12338 12339if test -x / >/dev/null 2>&1; then 12340 as_test_x='test -x' 12341else 12342 if ls -dL / >/dev/null 2>&1; then 12343 as_ls_L_option=L 12344 else 12345 as_ls_L_option= 12346 fi 12347 as_test_x=' 12348 eval sh -c '\'' 12349 if test -d "$1"; then 12350 test -d "$1/."; 12351 else 12352 case $1 in #( 12353 -*)set "./$1";; 12354 esac; 12355 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12356 ???[sx]*):;;*)false;;esac;fi 12357 '\'' sh 12358 ' 12359fi 12360as_executable_p=$as_test_x 12361 12362# Sed expression to map a string onto a valid CPP name. 12363as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12364 12365# Sed expression to map a string onto a valid variable name. 12366as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12367 12368 12369exec 6>&1 12370## ----------------------------------- ## 12371## Main body of $CONFIG_STATUS script. ## 12372## ----------------------------------- ## 12373_ASEOF 12374test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12375 12376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12377# Save the log message, to keep $0 and so on meaningful, and to 12378# report actual input values of CONFIG_FILES etc. instead of their 12379# values after options handling. 12380ac_log=" 12381This file was extended by newlib $as_me 2.4.0, which was 12382generated by GNU Autoconf 2.68. Invocation command line was 12383 12384 CONFIG_FILES = $CONFIG_FILES 12385 CONFIG_HEADERS = $CONFIG_HEADERS 12386 CONFIG_LINKS = $CONFIG_LINKS 12387 CONFIG_COMMANDS = $CONFIG_COMMANDS 12388 $ $0 $@ 12389 12390on `(hostname || uname -n) 2>/dev/null | sed 1q` 12391" 12392 12393_ACEOF 12394 12395case $ac_config_files in *" 12396"*) set x $ac_config_files; shift; ac_config_files=$*;; 12397esac 12398 12399 12400 12401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12402# Files that config.status was made for. 12403config_files="$ac_config_files" 12404config_commands="$ac_config_commands" 12405 12406_ACEOF 12407 12408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12409ac_cs_usage="\ 12410\`$as_me' instantiates files and other configuration actions 12411from templates according to the current configuration. Unless the files 12412and actions are specified as TAGs, all are instantiated by default. 12413 12414Usage: $0 [OPTION]... [TAG]... 12415 12416 -h, --help print this help, then exit 12417 -V, --version print version number and configuration settings, then exit 12418 --config print configuration, then exit 12419 -q, --quiet, --silent 12420 do not print progress messages 12421 -d, --debug don't remove temporary files 12422 --recheck update $as_me by reconfiguring in the same conditions 12423 --file=FILE[:TEMPLATE] 12424 instantiate the configuration file FILE 12425 12426Configuration files: 12427$config_files 12428 12429Configuration commands: 12430$config_commands 12431 12432Report bugs to the package provider." 12433 12434_ACEOF 12435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12436ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12437ac_cs_version="\\ 12438newlib config.status 2.4.0 12439configured by $0, generated by GNU Autoconf 2.68, 12440 with options \\"\$ac_cs_config\\" 12441 12442Copyright (C) 2010 Free Software Foundation, Inc. 12443This config.status script is free software; the Free Software Foundation 12444gives unlimited permission to copy, distribute and modify it." 12445 12446ac_pwd='$ac_pwd' 12447srcdir='$srcdir' 12448INSTALL='$INSTALL' 12449MKDIR_P='$MKDIR_P' 12450AWK='$AWK' 12451test -n "\$AWK" || AWK=awk 12452_ACEOF 12453 12454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12455# The default lists apply if the user does not specify any file. 12456ac_need_defaults=: 12457while test $# != 0 12458do 12459 case $1 in 12460 --*=?*) 12461 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12462 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12463 ac_shift=: 12464 ;; 12465 --*=) 12466 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12467 ac_optarg= 12468 ac_shift=: 12469 ;; 12470 *) 12471 ac_option=$1 12472 ac_optarg=$2 12473 ac_shift=shift 12474 ;; 12475 esac 12476 12477 case $ac_option in 12478 # Handling of the options. 12479 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12480 ac_cs_recheck=: ;; 12481 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12482 $as_echo "$ac_cs_version"; exit ;; 12483 --config | --confi | --conf | --con | --co | --c ) 12484 $as_echo "$ac_cs_config"; exit ;; 12485 --debug | --debu | --deb | --de | --d | -d ) 12486 debug=: ;; 12487 --file | --fil | --fi | --f ) 12488 $ac_shift 12489 case $ac_optarg in 12490 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12491 '') as_fn_error $? "missing file argument" ;; 12492 esac 12493 as_fn_append CONFIG_FILES " '$ac_optarg'" 12494 ac_need_defaults=false;; 12495 --he | --h | --help | --hel | -h ) 12496 $as_echo "$ac_cs_usage"; exit ;; 12497 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12498 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12499 ac_cs_silent=: ;; 12500 12501 # This is an error. 12502 -*) as_fn_error $? "unrecognized option: \`$1' 12503Try \`$0 --help' for more information." ;; 12504 12505 *) as_fn_append ac_config_targets " $1" 12506 ac_need_defaults=false ;; 12507 12508 esac 12509 shift 12510done 12511 12512ac_configure_extra_args= 12513 12514if $ac_cs_silent; then 12515 exec 6>/dev/null 12516 ac_configure_extra_args="$ac_configure_extra_args --silent" 12517fi 12518 12519_ACEOF 12520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12521if \$ac_cs_recheck; then 12522 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12523 shift 12524 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12525 CONFIG_SHELL='$SHELL' 12526 export CONFIG_SHELL 12527 exec "\$@" 12528fi 12529 12530_ACEOF 12531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12532exec 5>>config.log 12533{ 12534 echo 12535 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12536## Running $as_me. ## 12537_ASBOX 12538 $as_echo "$ac_log" 12539} >&5 12540 12541_ACEOF 12542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12543# 12544# INIT-COMMANDS 12545# 12546AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12547 12548 12549# The HP-UX ksh and POSIX shell print the target directory to stdout 12550# if CDPATH is set. 12551(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12552 12553sed_quote_subst='$sed_quote_subst' 12554double_quote_subst='$double_quote_subst' 12555delay_variable_subst='$delay_variable_subst' 12556SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 12557Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 12558SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 12559ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 12560AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 12561DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 12562OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 12563macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 12564macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 12565enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 12566enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 12567pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 12568enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 12569host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 12570host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 12571host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 12572build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 12573build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 12574build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 12575GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 12576EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 12577FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 12578LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 12579NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 12580LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 12581max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 12582ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 12583exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 12584lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 12585lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 12586lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 12587reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 12588reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 12589deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 12590file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 12591AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 12592AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 12593STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 12594RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12595old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12596old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12597old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12598lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12599CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12600CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12601compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12602GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12603lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12604lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12605lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12606lt_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"`' 12607objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12608MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12609lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12610lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12611lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12612lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12613lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12614need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12615DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12616NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12617LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12618OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12619OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12620libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12621shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12622extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12623archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12624enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12625export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12626whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 12627compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 12628old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 12629old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12630archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 12631archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12632module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 12633module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12634with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12635allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12636no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12637hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12638hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 12639hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12640hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12641hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12642hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12643hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12644hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12645inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12646link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12647fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 12648always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12649export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12650exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12651include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12652prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12653file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12654variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12655need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12656need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12657version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12658runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12659shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12660shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12661libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12662library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12663soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12664install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12665postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12666postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12667finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12668finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12669hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12670sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12671sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12672hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12673enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12674enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12675enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12676old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12677striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12678 12679LTCC='$LTCC' 12680LTCFLAGS='$LTCFLAGS' 12681compiler='$compiler_DEFAULT' 12682 12683# A function that is used when there is no print builtin or printf. 12684func_fallback_echo () 12685{ 12686 eval 'cat <<_LTECHO_EOF 12687\$1 12688_LTECHO_EOF' 12689} 12690 12691# Quote evaled strings. 12692for var in SED \ 12693SHELL \ 12694ECHO \ 12695AS \ 12696DLLTOOL \ 12697OBJDUMP \ 12698GREP \ 12699EGREP \ 12700FGREP \ 12701LD \ 12702NM \ 12703LN_S \ 12704lt_SP2NL \ 12705lt_NL2SP \ 12706reload_flag \ 12707deplibs_check_method \ 12708file_magic_cmd \ 12709AR \ 12710AR_FLAGS \ 12711STRIP \ 12712RANLIB \ 12713CC \ 12714CFLAGS \ 12715compiler \ 12716lt_cv_sys_global_symbol_pipe \ 12717lt_cv_sys_global_symbol_to_cdecl \ 12718lt_cv_sys_global_symbol_to_c_name_address \ 12719lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12720lt_prog_compiler_no_builtin_flag \ 12721lt_prog_compiler_wl \ 12722lt_prog_compiler_pic \ 12723lt_prog_compiler_static \ 12724lt_cv_prog_compiler_c_o \ 12725need_locks \ 12726DSYMUTIL \ 12727NMEDIT \ 12728LIPO \ 12729OTOOL \ 12730OTOOL64 \ 12731shrext_cmds \ 12732export_dynamic_flag_spec \ 12733whole_archive_flag_spec \ 12734compiler_needs_object \ 12735with_gnu_ld \ 12736allow_undefined_flag \ 12737no_undefined_flag \ 12738hardcode_libdir_flag_spec \ 12739hardcode_libdir_flag_spec_ld \ 12740hardcode_libdir_separator \ 12741fix_srcfile_path \ 12742exclude_expsyms \ 12743include_expsyms \ 12744file_list_spec \ 12745variables_saved_for_relink \ 12746libname_spec \ 12747library_names_spec \ 12748soname_spec \ 12749install_override_mode \ 12750finish_eval \ 12751old_striplib \ 12752striplib; do 12753 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12754 *[\\\\\\\`\\"\\\$]*) 12755 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12756 ;; 12757 *) 12758 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12759 ;; 12760 esac 12761done 12762 12763# Double-quote double-evaled strings. 12764for var in reload_cmds \ 12765old_postinstall_cmds \ 12766old_postuninstall_cmds \ 12767old_archive_cmds \ 12768extract_expsyms_cmds \ 12769old_archive_from_new_cmds \ 12770old_archive_from_expsyms_cmds \ 12771archive_cmds \ 12772archive_expsym_cmds \ 12773module_cmds \ 12774module_expsym_cmds \ 12775export_symbols_cmds \ 12776prelink_cmds \ 12777postinstall_cmds \ 12778postuninstall_cmds \ 12779finish_cmds \ 12780sys_lib_search_path_spec \ 12781sys_lib_dlsearch_path_spec; do 12782 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12783 *[\\\\\\\`\\"\\\$]*) 12784 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12785 ;; 12786 *) 12787 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12788 ;; 12789 esac 12790done 12791 12792ac_aux_dir='$ac_aux_dir' 12793xsi_shell='$xsi_shell' 12794lt_shell_append='$lt_shell_append' 12795 12796# See if we are running on zsh, and set the options which allow our 12797# commands through without removal of \ escapes INIT. 12798if test -n "\${ZSH_VERSION+set}" ; then 12799 setopt NO_GLOB_SUBST 12800fi 12801 12802 12803 PACKAGE='$PACKAGE' 12804 VERSION='$VERSION' 12805 TIMESTAMP='$TIMESTAMP' 12806 RM='$RM' 12807 ofile='$ofile' 12808 12809 12810 12811 12812_ACEOF 12813 12814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12815 12816# Handling of arguments. 12817for ac_config_target in $ac_config_targets 12818do 12819 case $ac_config_target in 12820 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12821 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12822 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12823 12824 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12825 esac 12826done 12827 12828 12829# If the user did not use the arguments to specify the items to instantiate, 12830# then the envvar interface is used. Set only those that are not. 12831# We use the long form for the default assignment because of an extremely 12832# bizarre bug on SunOS 4.1.3. 12833if $ac_need_defaults; then 12834 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12835 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12836fi 12837 12838# Have a temporary directory for convenience. Make it in the build tree 12839# simply because there is no reason against having it here, and in addition, 12840# creating and moving files from /tmp can sometimes cause problems. 12841# Hook for its removal unless debugging. 12842# Note that there is a small window in which the directory will not be cleaned: 12843# after its creation but before its name has been assigned to `$tmp'. 12844$debug || 12845{ 12846 tmp= ac_tmp= 12847 trap 'exit_status=$? 12848 : "${ac_tmp:=$tmp}" 12849 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12850' 0 12851 trap 'as_fn_exit 1' 1 2 13 15 12852} 12853# Create a (secure) tmp directory for tmp files. 12854 12855{ 12856 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12857 test -d "$tmp" 12858} || 12859{ 12860 tmp=./conf$$-$RANDOM 12861 (umask 077 && mkdir "$tmp") 12862} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12863ac_tmp=$tmp 12864 12865# Set up the scripts for CONFIG_FILES section. 12866# No need to generate them if there are no CONFIG_FILES. 12867# This happens for instance with `./config.status config.h'. 12868if test -n "$CONFIG_FILES"; then 12869 12870 12871ac_cr=`echo X | tr X '\015'` 12872# On cygwin, bash can eat \r inside `` if the user requested igncr. 12873# But we know of no other shell where ac_cr would be empty at this 12874# point, so we can use a bashism as a fallback. 12875if test "x$ac_cr" = x; then 12876 eval ac_cr=\$\'\\r\' 12877fi 12878ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12879if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12880 ac_cs_awk_cr='\\r' 12881else 12882 ac_cs_awk_cr=$ac_cr 12883fi 12884 12885echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12886_ACEOF 12887 12888 12889{ 12890 echo "cat >conf$$subs.awk <<_ACEOF" && 12891 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12892 echo "_ACEOF" 12893} >conf$$subs.sh || 12894 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12895ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12896ac_delim='%!_!# ' 12897for ac_last_try in false false false false false :; do 12898 . ./conf$$subs.sh || 12899 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12900 12901 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12902 if test $ac_delim_n = $ac_delim_num; then 12903 break 12904 elif $ac_last_try; then 12905 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12906 else 12907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12908 fi 12909done 12910rm -f conf$$subs.sh 12911 12912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12913cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12914_ACEOF 12915sed -n ' 12916h 12917s/^/S["/; s/!.*/"]=/ 12918p 12919g 12920s/^[^!]*!// 12921:repl 12922t repl 12923s/'"$ac_delim"'$// 12924t delim 12925:nl 12926h 12927s/\(.\{148\}\)..*/\1/ 12928t more1 12929s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12930p 12931n 12932b repl 12933:more1 12934s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12935p 12936g 12937s/.\{148\}// 12938t nl 12939:delim 12940h 12941s/\(.\{148\}\)..*/\1/ 12942t more2 12943s/["\\]/\\&/g; s/^/"/; s/$/"/ 12944p 12945b 12946:more2 12947s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12948p 12949g 12950s/.\{148\}// 12951t delim 12952' <conf$$subs.awk | sed ' 12953/^[^""]/{ 12954 N 12955 s/\n// 12956} 12957' >>$CONFIG_STATUS || ac_write_fail=1 12958rm -f conf$$subs.awk 12959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12960_ACAWK 12961cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12962 for (key in S) S_is_set[key] = 1 12963 FS = "" 12964 12965} 12966{ 12967 line = $ 0 12968 nfields = split(line, field, "@") 12969 substed = 0 12970 len = length(field[1]) 12971 for (i = 2; i < nfields; i++) { 12972 key = field[i] 12973 keylen = length(key) 12974 if (S_is_set[key]) { 12975 value = S[key] 12976 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12977 len += length(value) + length(field[++i]) 12978 substed = 1 12979 } else 12980 len += 1 + keylen 12981 } 12982 12983 print line 12984} 12985 12986_ACAWK 12987_ACEOF 12988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12989if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12990 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12991else 12992 cat 12993fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12994 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12995_ACEOF 12996 12997# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12998# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12999# trailing colons and then remove the whole line if VPATH becomes empty 13000# (actually we leave an empty line to preserve line numbers). 13001if test "x$srcdir" = x.; then 13002 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13003h 13004s/// 13005s/^/:/ 13006s/[ ]*$/:/ 13007s/:\$(srcdir):/:/g 13008s/:\${srcdir}:/:/g 13009s/:@srcdir@:/:/g 13010s/^:*// 13011s/:*$// 13012x 13013s/\(=[ ]*\).*/\1/ 13014G 13015s/\n// 13016s/^[^=]*=[ ]*$// 13017}' 13018fi 13019 13020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13021fi # test -n "$CONFIG_FILES" 13022 13023 13024eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 13025shift 13026for ac_tag 13027do 13028 case $ac_tag in 13029 :[FHLC]) ac_mode=$ac_tag; continue;; 13030 esac 13031 case $ac_mode$ac_tag in 13032 :[FHL]*:*);; 13033 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13034 :[FH]-) ac_tag=-:-;; 13035 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13036 esac 13037 ac_save_IFS=$IFS 13038 IFS=: 13039 set x $ac_tag 13040 IFS=$ac_save_IFS 13041 shift 13042 ac_file=$1 13043 shift 13044 13045 case $ac_mode in 13046 :L) ac_source=$1;; 13047 :[FH]) 13048 ac_file_inputs= 13049 for ac_f 13050 do 13051 case $ac_f in 13052 -) ac_f="$ac_tmp/stdin";; 13053 *) # Look for the file first in the build tree, then in the source tree 13054 # (if the path is not absolute). The absolute path cannot be DOS-style, 13055 # because $ac_f cannot contain `:'. 13056 test -f "$ac_f" || 13057 case $ac_f in 13058 [\\/$]*) false;; 13059 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13060 esac || 13061 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13062 esac 13063 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13064 as_fn_append ac_file_inputs " '$ac_f'" 13065 done 13066 13067 # Let's still pretend it is `configure' which instantiates (i.e., don't 13068 # use $as_me), people would be surprised to read: 13069 # /* config.h. Generated by config.status. */ 13070 configure_input='Generated from '` 13071 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13072 `' by configure.' 13073 if test x"$ac_file" != x-; then 13074 configure_input="$ac_file. $configure_input" 13075 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13076$as_echo "$as_me: creating $ac_file" >&6;} 13077 fi 13078 # Neutralize special characters interpreted by sed in replacement strings. 13079 case $configure_input in #( 13080 *\&* | *\|* | *\\* ) 13081 ac_sed_conf_input=`$as_echo "$configure_input" | 13082 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13083 *) ac_sed_conf_input=$configure_input;; 13084 esac 13085 13086 case $ac_tag in 13087 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13088 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13089 esac 13090 ;; 13091 esac 13092 13093 ac_dir=`$as_dirname -- "$ac_file" || 13094$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13095 X"$ac_file" : 'X\(//\)[^/]' \| \ 13096 X"$ac_file" : 'X\(//\)$' \| \ 13097 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13098$as_echo X"$ac_file" | 13099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13100 s//\1/ 13101 q 13102 } 13103 /^X\(\/\/\)[^/].*/{ 13104 s//\1/ 13105 q 13106 } 13107 /^X\(\/\/\)$/{ 13108 s//\1/ 13109 q 13110 } 13111 /^X\(\/\).*/{ 13112 s//\1/ 13113 q 13114 } 13115 s/.*/./; q'` 13116 as_dir="$ac_dir"; as_fn_mkdir_p 13117 ac_builddir=. 13118 13119case "$ac_dir" in 13120.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13121*) 13122 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13123 # A ".." for each directory in $ac_dir_suffix. 13124 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13125 case $ac_top_builddir_sub in 13126 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13127 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13128 esac ;; 13129esac 13130ac_abs_top_builddir=$ac_pwd 13131ac_abs_builddir=$ac_pwd$ac_dir_suffix 13132# for backward compatibility: 13133ac_top_builddir=$ac_top_build_prefix 13134 13135case $srcdir in 13136 .) # We are building in place. 13137 ac_srcdir=. 13138 ac_top_srcdir=$ac_top_builddir_sub 13139 ac_abs_top_srcdir=$ac_pwd ;; 13140 [\\/]* | ?:[\\/]* ) # Absolute name. 13141 ac_srcdir=$srcdir$ac_dir_suffix; 13142 ac_top_srcdir=$srcdir 13143 ac_abs_top_srcdir=$srcdir ;; 13144 *) # Relative name. 13145 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13146 ac_top_srcdir=$ac_top_build_prefix$srcdir 13147 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13148esac 13149ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13150 13151 13152 case $ac_mode in 13153 :F) 13154 # 13155 # CONFIG_FILE 13156 # 13157 13158 case $INSTALL in 13159 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13160 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13161 esac 13162 ac_MKDIR_P=$MKDIR_P 13163 case $MKDIR_P in 13164 [\\/$]* | ?:[\\/]* ) ;; 13165 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13166 esac 13167_ACEOF 13168 13169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13170# If the template does not know about datarootdir, expand it. 13171# FIXME: This hack should be removed a few years after 2.60. 13172ac_datarootdir_hack=; ac_datarootdir_seen= 13173ac_sed_dataroot=' 13174/datarootdir/ { 13175 p 13176 q 13177} 13178/@datadir@/p 13179/@docdir@/p 13180/@infodir@/p 13181/@localedir@/p 13182/@mandir@/p' 13183case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13184*datarootdir*) ac_datarootdir_seen=yes;; 13185*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13187$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13188_ACEOF 13189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13190 ac_datarootdir_hack=' 13191 s&@datadir@&$datadir&g 13192 s&@docdir@&$docdir&g 13193 s&@infodir@&$infodir&g 13194 s&@localedir@&$localedir&g 13195 s&@mandir@&$mandir&g 13196 s&\\\${datarootdir}&$datarootdir&g' ;; 13197esac 13198_ACEOF 13199 13200# Neutralize VPATH when `$srcdir' = `.'. 13201# Shell code in configure.ac might set extrasub. 13202# FIXME: do we really want to maintain this feature? 13203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13204ac_sed_extra="$ac_vpsub 13205$extrasub 13206_ACEOF 13207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13208:t 13209/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13210s|@configure_input@|$ac_sed_conf_input|;t t 13211s&@top_builddir@&$ac_top_builddir_sub&;t t 13212s&@top_build_prefix@&$ac_top_build_prefix&;t t 13213s&@srcdir@&$ac_srcdir&;t t 13214s&@abs_srcdir@&$ac_abs_srcdir&;t t 13215s&@top_srcdir@&$ac_top_srcdir&;t t 13216s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13217s&@builddir@&$ac_builddir&;t t 13218s&@abs_builddir@&$ac_abs_builddir&;t t 13219s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13220s&@INSTALL@&$ac_INSTALL&;t t 13221s&@MKDIR_P@&$ac_MKDIR_P&;t t 13222$ac_datarootdir_hack 13223" 13224eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13225 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13226 13227test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13228 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13229 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13230 "$ac_tmp/out"`; test -z "$ac_out"; } && 13231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13232which seems to be undefined. Please make sure it is defined" >&5 13233$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13234which seems to be undefined. Please make sure it is defined" >&2;} 13235 13236 rm -f "$ac_tmp/stdin" 13237 case $ac_file in 13238 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13239 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13240 esac \ 13241 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13242 ;; 13243 13244 13245 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13246$as_echo "$as_me: executing $ac_file commands" >&6;} 13247 ;; 13248 esac 13249 13250 13251 case $ac_file$ac_mode in 13252 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13253 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13254 # are listed without --file. Let's play safe and only enable the eval 13255 # if we detect the quoting. 13256 case $CONFIG_FILES in 13257 *\'*) eval set x "$CONFIG_FILES" ;; 13258 *) set x $CONFIG_FILES ;; 13259 esac 13260 shift 13261 for mf 13262 do 13263 # Strip MF so we end up with the name of the file. 13264 mf=`echo "$mf" | sed -e 's/:.*$//'` 13265 # Check whether this is an Automake generated Makefile or not. 13266 # We used to match only the files named `Makefile.in', but 13267 # some people rename them; so instead we look at the file content. 13268 # Grep'ing the first line is not enough: some people post-process 13269 # each Makefile.in and add a new line on top of each file to say so. 13270 # Grep'ing the whole file is not good either: AIX grep has a line 13271 # limit of 2048, but all sed's we know have understand at least 4000. 13272 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13273 dirpart=`$as_dirname -- "$mf" || 13274$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13275 X"$mf" : 'X\(//\)[^/]' \| \ 13276 X"$mf" : 'X\(//\)$' \| \ 13277 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13278$as_echo X"$mf" | 13279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13280 s//\1/ 13281 q 13282 } 13283 /^X\(\/\/\)[^/].*/{ 13284 s//\1/ 13285 q 13286 } 13287 /^X\(\/\/\)$/{ 13288 s//\1/ 13289 q 13290 } 13291 /^X\(\/\).*/{ 13292 s//\1/ 13293 q 13294 } 13295 s/.*/./; q'` 13296 else 13297 continue 13298 fi 13299 # Extract the definition of DEPDIR, am__include, and am__quote 13300 # from the Makefile without running `make'. 13301 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13302 test -z "$DEPDIR" && continue 13303 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13304 test -z "am__include" && continue 13305 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13306 # When using ansi2knr, U may be empty or an underscore; expand it 13307 U=`sed -n 's/^U = //p' < "$mf"` 13308 # Find all dependency output files, they are included files with 13309 # $(DEPDIR) in their names. We invoke sed twice because it is the 13310 # simplest approach to changing $(DEPDIR) to its actual value in the 13311 # expansion. 13312 for file in `sed -n " 13313 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13314 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13315 # Make sure the directory exists. 13316 test -f "$dirpart/$file" && continue 13317 fdir=`$as_dirname -- "$file" || 13318$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13319 X"$file" : 'X\(//\)[^/]' \| \ 13320 X"$file" : 'X\(//\)$' \| \ 13321 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13322$as_echo X"$file" | 13323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13324 s//\1/ 13325 q 13326 } 13327 /^X\(\/\/\)[^/].*/{ 13328 s//\1/ 13329 q 13330 } 13331 /^X\(\/\/\)$/{ 13332 s//\1/ 13333 q 13334 } 13335 /^X\(\/\).*/{ 13336 s//\1/ 13337 q 13338 } 13339 s/.*/./; q'` 13340 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13341 # echo "creating $dirpart/$file" 13342 echo '# dummy' > "$dirpart/$file" 13343 done 13344 done 13345} 13346 ;; 13347 "libtool":C) 13348 13349 # See if we are running on zsh, and set the options which allow our 13350 # commands through without removal of \ escapes. 13351 if test -n "${ZSH_VERSION+set}" ; then 13352 setopt NO_GLOB_SUBST 13353 fi 13354 13355 cfgfile="${ofile}T" 13356 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13357 $RM "$cfgfile" 13358 13359 cat <<_LT_EOF >> "$cfgfile" 13360#! $SHELL 13361 13362# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13363# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13364# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13365# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13366# 13367# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13368# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 13369# Written by Gordon Matzigkeit, 1996 13370# 13371# This file is part of GNU Libtool. 13372# 13373# GNU Libtool is free software; you can redistribute it and/or 13374# modify it under the terms of the GNU General Public License as 13375# published by the Free Software Foundation; either version 2 of 13376# the License, or (at your option) any later version. 13377# 13378# As a special exception to the GNU General Public License, 13379# if you distribute this file as part of a program or library that 13380# is built using GNU Libtool, you may include this file under the 13381# same distribution terms that you use for the rest of that program. 13382# 13383# GNU Libtool is distributed in the hope that it will be useful, 13384# but WITHOUT ANY WARRANTY; without even the implied warranty of 13385# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13386# GNU General Public License for more details. 13387# 13388# You should have received a copy of the GNU General Public License 13389# along with GNU Libtool; see the file COPYING. If not, a copy 13390# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13391# obtained by writing to the Free Software Foundation, Inc., 13392# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13393 13394 13395# The names of the tagged configurations supported by this script. 13396available_tags="" 13397 13398# ### BEGIN LIBTOOL CONFIG 13399 13400# A sed program that does not truncate output. 13401SED=$lt_SED 13402 13403# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13404Xsed="\$SED -e 1s/^X//" 13405 13406# Shell to use when invoking shell scripts. 13407SHELL=$lt_SHELL 13408 13409# An echo program that protects backslashes. 13410ECHO=$lt_ECHO 13411 13412# Assembler program. 13413AS=$lt_AS 13414 13415# DLL creation program. 13416DLLTOOL=$lt_DLLTOOL 13417 13418# Object dumper program. 13419OBJDUMP=$lt_OBJDUMP 13420 13421# Which release of libtool.m4 was used? 13422macro_version=$macro_version 13423macro_revision=$macro_revision 13424 13425# Whether or not to build shared libraries. 13426build_libtool_libs=$enable_shared 13427 13428# Whether or not to build static libraries. 13429build_old_libs=$enable_static 13430 13431# What type of objects to build. 13432pic_mode=$pic_mode 13433 13434# Whether or not to optimize for fast installation. 13435fast_install=$enable_fast_install 13436 13437# The host system. 13438host_alias=$host_alias 13439host=$host 13440host_os=$host_os 13441 13442# The build system. 13443build_alias=$build_alias 13444build=$build 13445build_os=$build_os 13446 13447# A grep program that handles long lines. 13448GREP=$lt_GREP 13449 13450# An ERE matcher. 13451EGREP=$lt_EGREP 13452 13453# A literal string matcher. 13454FGREP=$lt_FGREP 13455 13456# A BSD- or MS-compatible name lister. 13457NM=$lt_NM 13458 13459# Whether we need soft or hard links. 13460LN_S=$lt_LN_S 13461 13462# What is the maximum length of a command? 13463max_cmd_len=$max_cmd_len 13464 13465# Object file suffix (normally "o"). 13466objext=$ac_objext 13467 13468# Executable file suffix (normally ""). 13469exeext=$exeext 13470 13471# whether the shell understands "unset". 13472lt_unset=$lt_unset 13473 13474# turn spaces into newlines. 13475SP2NL=$lt_lt_SP2NL 13476 13477# turn newlines into spaces. 13478NL2SP=$lt_lt_NL2SP 13479 13480# Method to check whether dependent libraries are shared objects. 13481deplibs_check_method=$lt_deplibs_check_method 13482 13483# Command to use when deplibs_check_method == "file_magic". 13484file_magic_cmd=$lt_file_magic_cmd 13485 13486# The archiver. 13487AR=$lt_AR 13488AR_FLAGS=$lt_AR_FLAGS 13489 13490# A symbol stripping program. 13491STRIP=$lt_STRIP 13492 13493# Commands used to install an old-style archive. 13494RANLIB=$lt_RANLIB 13495old_postinstall_cmds=$lt_old_postinstall_cmds 13496old_postuninstall_cmds=$lt_old_postuninstall_cmds 13497 13498# Whether to use a lock for old archive extraction. 13499lock_old_archive_extraction=$lock_old_archive_extraction 13500 13501# A C compiler. 13502LTCC=$lt_CC 13503 13504# LTCC compiler flags. 13505LTCFLAGS=$lt_CFLAGS 13506 13507# Take the output of nm and produce a listing of raw symbols and C names. 13508global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13509 13510# Transform the output of nm in a proper C declaration. 13511global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13512 13513# Transform the output of nm in a C name address pair. 13514global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13515 13516# Transform the output of nm in a C name address pair when lib prefix is needed. 13517global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13518 13519# The name of the directory that contains temporary libtool files. 13520objdir=$objdir 13521 13522# Used to examine libraries when file_magic_cmd begins with "file". 13523MAGIC_CMD=$MAGIC_CMD 13524 13525# Must we lock files when doing compilation? 13526need_locks=$lt_need_locks 13527 13528# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13529DSYMUTIL=$lt_DSYMUTIL 13530 13531# Tool to change global to local symbols on Mac OS X. 13532NMEDIT=$lt_NMEDIT 13533 13534# Tool to manipulate fat objects and archives on Mac OS X. 13535LIPO=$lt_LIPO 13536 13537# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13538OTOOL=$lt_OTOOL 13539 13540# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13541OTOOL64=$lt_OTOOL64 13542 13543# Old archive suffix (normally "a"). 13544libext=$libext 13545 13546# Shared library suffix (normally ".so"). 13547shrext_cmds=$lt_shrext_cmds 13548 13549# The commands to extract the exported symbol list from a shared archive. 13550extract_expsyms_cmds=$lt_extract_expsyms_cmds 13551 13552# Variables whose values should be saved in libtool wrapper scripts and 13553# restored at link time. 13554variables_saved_for_relink=$lt_variables_saved_for_relink 13555 13556# Do we need the "lib" prefix for modules? 13557need_lib_prefix=$need_lib_prefix 13558 13559# Do we need a version for libraries? 13560need_version=$need_version 13561 13562# Library versioning type. 13563version_type=$version_type 13564 13565# Shared library runtime path variable. 13566runpath_var=$runpath_var 13567 13568# Shared library path variable. 13569shlibpath_var=$shlibpath_var 13570 13571# Is shlibpath searched before the hard-coded library search path? 13572shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13573 13574# Format of library name prefix. 13575libname_spec=$lt_libname_spec 13576 13577# List of archive names. First name is the real one, the rest are links. 13578# The last name is the one that the linker finds with -lNAME 13579library_names_spec=$lt_library_names_spec 13580 13581# The coded name of the library, if different from the real name. 13582soname_spec=$lt_soname_spec 13583 13584# Permission mode override for installation of shared libraries. 13585install_override_mode=$lt_install_override_mode 13586 13587# Command to use after installation of a shared archive. 13588postinstall_cmds=$lt_postinstall_cmds 13589 13590# Command to use after uninstallation of a shared archive. 13591postuninstall_cmds=$lt_postuninstall_cmds 13592 13593# Commands used to finish a libtool library installation in a directory. 13594finish_cmds=$lt_finish_cmds 13595 13596# As "finish_cmds", except a single script fragment to be evaled but 13597# not shown. 13598finish_eval=$lt_finish_eval 13599 13600# Whether we should hardcode library paths into libraries. 13601hardcode_into_libs=$hardcode_into_libs 13602 13603# Compile-time system search path for libraries. 13604sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13605 13606# Run-time system search path for libraries. 13607sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13608 13609# Whether dlopen is supported. 13610dlopen_support=$enable_dlopen 13611 13612# Whether dlopen of programs is supported. 13613dlopen_self=$enable_dlopen_self 13614 13615# Whether dlopen of statically linked programs is supported. 13616dlopen_self_static=$enable_dlopen_self_static 13617 13618# Commands to strip libraries. 13619old_striplib=$lt_old_striplib 13620striplib=$lt_striplib 13621 13622 13623# The linker used to build libraries. 13624LD=$lt_LD 13625 13626# How to create reloadable object files. 13627reload_flag=$lt_reload_flag 13628reload_cmds=$lt_reload_cmds 13629 13630# Commands used to build an old-style archive. 13631old_archive_cmds=$lt_old_archive_cmds 13632 13633# A language specific compiler. 13634CC=$lt_compiler 13635 13636# Is the compiler the GNU compiler? 13637with_gcc=$GCC 13638 13639# Compiler flag to turn off builtin functions. 13640no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13641 13642# How to pass a linker flag through the compiler. 13643wl=$lt_lt_prog_compiler_wl 13644 13645# Additional compiler flags for building library objects. 13646pic_flag=$lt_lt_prog_compiler_pic 13647 13648# Compiler flag to prevent dynamic linking. 13649link_static_flag=$lt_lt_prog_compiler_static 13650 13651# Does compiler simultaneously support -c and -o options? 13652compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13653 13654# Whether or not to add -lc for building shared libraries. 13655build_libtool_need_lc=$archive_cmds_need_lc 13656 13657# Whether or not to disallow shared libs when runtime libs are static. 13658allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13659 13660# Compiler flag to allow reflexive dlopens. 13661export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13662 13663# Compiler flag to generate shared objects directly from archives. 13664whole_archive_flag_spec=$lt_whole_archive_flag_spec 13665 13666# Whether the compiler copes with passing no objects directly. 13667compiler_needs_object=$lt_compiler_needs_object 13668 13669# Create an old-style archive from a shared archive. 13670old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13671 13672# Create a temporary old-style archive to link instead of a shared archive. 13673old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13674 13675# Commands used to build a shared archive. 13676archive_cmds=$lt_archive_cmds 13677archive_expsym_cmds=$lt_archive_expsym_cmds 13678 13679# Commands used to build a loadable module if different from building 13680# a shared archive. 13681module_cmds=$lt_module_cmds 13682module_expsym_cmds=$lt_module_expsym_cmds 13683 13684# Whether we are building with GNU ld or not. 13685with_gnu_ld=$lt_with_gnu_ld 13686 13687# Flag that allows shared libraries with undefined symbols to be built. 13688allow_undefined_flag=$lt_allow_undefined_flag 13689 13690# Flag that enforces no undefined symbols. 13691no_undefined_flag=$lt_no_undefined_flag 13692 13693# Flag to hardcode \$libdir into a binary during linking. 13694# This must work even if \$libdir does not exist 13695hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13696 13697# If ld is used when linking, flag to hardcode \$libdir into a binary 13698# during linking. This must work even if \$libdir does not exist. 13699hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13700 13701# Whether we need a single "-rpath" flag with a separated argument. 13702hardcode_libdir_separator=$lt_hardcode_libdir_separator 13703 13704# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13705# DIR into the resulting binary. 13706hardcode_direct=$hardcode_direct 13707 13708# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13709# DIR into the resulting binary and the resulting library dependency is 13710# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13711# library is relocated. 13712hardcode_direct_absolute=$hardcode_direct_absolute 13713 13714# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13715# into the resulting binary. 13716hardcode_minus_L=$hardcode_minus_L 13717 13718# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13719# into the resulting binary. 13720hardcode_shlibpath_var=$hardcode_shlibpath_var 13721 13722# Set to "yes" if building a shared library automatically hardcodes DIR 13723# into the library and all subsequent libraries and executables linked 13724# against it. 13725hardcode_automatic=$hardcode_automatic 13726 13727# Set to yes if linker adds runtime paths of dependent libraries 13728# to runtime path list. 13729inherit_rpath=$inherit_rpath 13730 13731# Whether libtool must link a program against all its dependency libraries. 13732link_all_deplibs=$link_all_deplibs 13733 13734# Fix the shell variable \$srcfile for the compiler. 13735fix_srcfile_path=$lt_fix_srcfile_path 13736 13737# Set to "yes" if exported symbols are required. 13738always_export_symbols=$always_export_symbols 13739 13740# The commands to list exported symbols. 13741export_symbols_cmds=$lt_export_symbols_cmds 13742 13743# Symbols that should not be listed in the preloaded symbols. 13744exclude_expsyms=$lt_exclude_expsyms 13745 13746# Symbols that must always be exported. 13747include_expsyms=$lt_include_expsyms 13748 13749# Commands necessary for linking programs (against libraries) with templates. 13750prelink_cmds=$lt_prelink_cmds 13751 13752# Specify filename containing input files. 13753file_list_spec=$lt_file_list_spec 13754 13755# How to hardcode a shared library path into an executable. 13756hardcode_action=$hardcode_action 13757 13758# ### END LIBTOOL CONFIG 13759 13760_LT_EOF 13761 13762 case $host_os in 13763 aix3*) 13764 cat <<\_LT_EOF >> "$cfgfile" 13765# AIX sometimes has problems with the GCC collect2 program. For some 13766# reason, if we set the COLLECT_NAMES environment variable, the problems 13767# vanish in a puff of smoke. 13768if test "X${COLLECT_NAMES+set}" != Xset; then 13769 COLLECT_NAMES= 13770 export COLLECT_NAMES 13771fi 13772_LT_EOF 13773 ;; 13774 esac 13775 13776 13777ltmain="$ac_aux_dir/ltmain.sh" 13778 13779 13780 # We use sed instead of cat because bash on DJGPP gets confused if 13781 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13782 # text mode, it properly converts lines to CR/LF. This bash problem 13783 # is reportedly fixed, but why not run on old versions too? 13784 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13785 || (rm -f "$cfgfile"; exit 1) 13786 13787 case $xsi_shell in 13788 yes) 13789 cat << \_LT_EOF >> "$cfgfile" 13790 13791# func_dirname file append nondir_replacement 13792# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13793# otherwise set result to NONDIR_REPLACEMENT. 13794func_dirname () 13795{ 13796 case ${1} in 13797 */*) func_dirname_result="${1%/*}${2}" ;; 13798 * ) func_dirname_result="${3}" ;; 13799 esac 13800} 13801 13802# func_basename file 13803func_basename () 13804{ 13805 func_basename_result="${1##*/}" 13806} 13807 13808# func_dirname_and_basename file append nondir_replacement 13809# perform func_basename and func_dirname in a single function 13810# call: 13811# dirname: Compute the dirname of FILE. If nonempty, 13812# add APPEND to the result, otherwise set result 13813# to NONDIR_REPLACEMENT. 13814# value returned in "$func_dirname_result" 13815# basename: Compute filename of FILE. 13816# value retuned in "$func_basename_result" 13817# Implementation must be kept synchronized with func_dirname 13818# and func_basename. For efficiency, we do not delegate to 13819# those functions but instead duplicate the functionality here. 13820func_dirname_and_basename () 13821{ 13822 case ${1} in 13823 */*) func_dirname_result="${1%/*}${2}" ;; 13824 * ) func_dirname_result="${3}" ;; 13825 esac 13826 func_basename_result="${1##*/}" 13827} 13828 13829# func_stripname prefix suffix name 13830# strip PREFIX and SUFFIX off of NAME. 13831# PREFIX and SUFFIX must not contain globbing or regex special 13832# characters, hashes, percent signs, but SUFFIX may contain a leading 13833# dot (in which case that matches only a dot). 13834func_stripname () 13835{ 13836 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13837 # positional parameters, so assign one to ordinary parameter first. 13838 func_stripname_result=${3} 13839 func_stripname_result=${func_stripname_result#"${1}"} 13840 func_stripname_result=${func_stripname_result%"${2}"} 13841} 13842 13843# func_opt_split 13844func_opt_split () 13845{ 13846 func_opt_split_opt=${1%%=*} 13847 func_opt_split_arg=${1#*=} 13848} 13849 13850# func_lo2o object 13851func_lo2o () 13852{ 13853 case ${1} in 13854 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13855 *) func_lo2o_result=${1} ;; 13856 esac 13857} 13858 13859# func_xform libobj-or-source 13860func_xform () 13861{ 13862 func_xform_result=${1%.*}.lo 13863} 13864 13865# func_arith arithmetic-term... 13866func_arith () 13867{ 13868 func_arith_result=$(( $* )) 13869} 13870 13871# func_len string 13872# STRING may not start with a hyphen. 13873func_len () 13874{ 13875 func_len_result=${#1} 13876} 13877 13878_LT_EOF 13879 ;; 13880 *) # Bourne compatible functions. 13881 cat << \_LT_EOF >> "$cfgfile" 13882 13883# func_dirname file append nondir_replacement 13884# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13885# otherwise set result to NONDIR_REPLACEMENT. 13886func_dirname () 13887{ 13888 # Extract subdirectory from the argument. 13889 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 13890 if test "X$func_dirname_result" = "X${1}"; then 13891 func_dirname_result="${3}" 13892 else 13893 func_dirname_result="$func_dirname_result${2}" 13894 fi 13895} 13896 13897# func_basename file 13898func_basename () 13899{ 13900 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 13901} 13902 13903 13904# func_stripname prefix suffix name 13905# strip PREFIX and SUFFIX off of NAME. 13906# PREFIX and SUFFIX must not contain globbing or regex special 13907# characters, hashes, percent signs, but SUFFIX may contain a leading 13908# dot (in which case that matches only a dot). 13909# func_strip_suffix prefix name 13910func_stripname () 13911{ 13912 case ${2} in 13913 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 13914 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 13915 esac 13916} 13917 13918# sed scripts: 13919my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13920my_sed_long_arg='1s/^-[^=]*=//' 13921 13922# func_opt_split 13923func_opt_split () 13924{ 13925 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 13926 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 13927} 13928 13929# func_lo2o object 13930func_lo2o () 13931{ 13932 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 13933} 13934 13935# func_xform libobj-or-source 13936func_xform () 13937{ 13938 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 13939} 13940 13941# func_arith arithmetic-term... 13942func_arith () 13943{ 13944 func_arith_result=`expr "$@"` 13945} 13946 13947# func_len string 13948# STRING may not start with a hyphen. 13949func_len () 13950{ 13951 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13952} 13953 13954_LT_EOF 13955esac 13956 13957case $lt_shell_append in 13958 yes) 13959 cat << \_LT_EOF >> "$cfgfile" 13960 13961# func_append var value 13962# Append VALUE to the end of shell variable VAR. 13963func_append () 13964{ 13965 eval "$1+=\$2" 13966} 13967_LT_EOF 13968 ;; 13969 *) 13970 cat << \_LT_EOF >> "$cfgfile" 13971 13972# func_append var value 13973# Append VALUE to the end of shell variable VAR. 13974func_append () 13975{ 13976 eval "$1=\$$1\$2" 13977} 13978 13979_LT_EOF 13980 ;; 13981 esac 13982 13983 13984 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13985 || (rm -f "$cfgfile"; exit 1) 13986 13987 mv -f "$cfgfile" "$ofile" || 13988 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13989 chmod +x "$ofile" 13990 13991 ;; 13992 13993 esac 13994done # for ac_tag 13995 13996 13997as_fn_exit 0 13998_ACEOF 13999ac_clean_files=$ac_clean_files_save 14000 14001test $ac_write_fail = 0 || 14002 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14003 14004 14005# configure is writing to config.log, and then calls config.status. 14006# config.status does its own redirection, appending to config.log. 14007# Unfortunately, on DOS this fails, as config.log is still kept open 14008# by configure, so config.status won't be able to write to it; its 14009# output is simply discarded. So we exec the FD to /dev/null, 14010# effectively closing config.log, so it can be properly (re)opened and 14011# appended to by config.status. When coming back to configure, we 14012# need to make the FD available again. 14013if test "$no_create" != yes; then 14014 ac_cs_success=: 14015 ac_config_status_args= 14016 test "$silent" = yes && 14017 ac_config_status_args="$ac_config_status_args --quiet" 14018 exec 5>/dev/null 14019 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14020 exec 5>>config.log 14021 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14022 # would make configure fail if this is the last instruction. 14023 $ac_cs_success || as_fn_exit 1 14024fi 14025if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14027$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14028fi 14029 14030