1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for amrnb 11.0.0.0. 4# 5# Report bugs to <Stanislav Brabec <utx@penguin.cz>>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and Stanislav Brabec 278$0: <utx@penguin.cz> about your system, including any error 279$0: possibly output before this message. Then install a 280$0: modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='amrnb' 592PACKAGE_TARNAME='amrnb' 593PACKAGE_VERSION='11.0.0.0' 594PACKAGE_STRING='amrnb 11.0.0.0' 595PACKAGE_BUGREPORT='Stanislav Brabec <utx@penguin.cz>' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638DOWNLOADER_PROG 639DOWNLOADER_PROG_CMD 640PARAMETER_EXPANSION_STRING_REPLACE_CAPABLE_SHELL 641ASH 642BASH 643PATCH 644UNZIP 645OTOOL64 646OTOOL 647LIPO 648NMEDIT 649DSYMUTIL 650MANIFEST_TOOL 651RANLIB 652ac_ct_AR 653AR 654NM 655ac_ct_DUMPBIN 656DUMPBIN 657LD 658FGREP 659EGREP 660GREP 661SED 662LIBTOOL 663OBJDUMP 664DLLTOOL 665AS 666host_os 667host_vendor 668host_cpu 669host 670build_os 671build_vendor 672build_cpu 673build 674LN_S 675CPP 676am__fastdepCC_FALSE 677am__fastdepCC_TRUE 678CCDEPMODE 679am__nodep 680AMDEPBACKSLASH 681AMDEP_FALSE 682AMDEP_TRUE 683am__quote 684am__include 685DEPDIR 686OBJEXT 687EXEEXT 688ac_ct_CC 689CPPFLAGS 690LDFLAGS 691CFLAGS 692CC 693am__untar 694am__tar 695AMTAR 696am__leading_dot 697SET_MAKE 698AWK 699mkdir_p 700MKDIR_P 701INSTALL_STRIP_PROGRAM 702STRIP 703install_sh 704MAKEINFO 705AUTOHEADER 706AUTOMAKE 707AUTOCONF 708ACLOCAL 709VERSION 710PACKAGE 711CYGPATH_W 712am__isrc 713INSTALL_DATA 714INSTALL_SCRIPT 715INSTALL_PROGRAM 716target_alias 717host_alias 718build_alias 719LIBS 720ECHO_T 721ECHO_N 722ECHO_C 723DEFS 724mandir 725localedir 726libdir 727psdir 728pdfdir 729dvidir 730htmldir 731infodir 732docdir 733oldincludedir 734includedir 735localstatedir 736sharedstatedir 737sysconfdir 738datadir 739datarootdir 740libexecdir 741sbindir 742bindir 743program_transform_name 744prefix 745exec_prefix 746PACKAGE_URL 747PACKAGE_BUGREPORT 748PACKAGE_STRING 749PACKAGE_VERSION 750PACKAGE_TARNAME 751PACKAGE_NAME 752PATH_SEPARATOR 753SHELL' 754ac_subst_files='' 755ac_user_opts=' 756enable_option_checking 757enable_dependency_tracking 758enable_shared 759enable_static 760with_pic 761enable_fast_install 762with_gnu_ld 763with_sysroot 764enable_libtool_lock 765with_parameter_expansion_string_replace_capable_shell 766with_downloader 767' 768 ac_precious_vars='build_alias 769host_alias 770target_alias 771CC 772CFLAGS 773LDFLAGS 774LIBS 775CPPFLAGS 776CPP' 777 778 779# Initialize some variables set by options. 780ac_init_help= 781ac_init_version=false 782ac_unrecognized_opts= 783ac_unrecognized_sep= 784# The variables have the same names as the options, with 785# dashes changed to underlines. 786cache_file=/dev/null 787exec_prefix=NONE 788no_create= 789no_recursion= 790prefix=NONE 791program_prefix=NONE 792program_suffix=NONE 793program_transform_name=s,x,x, 794silent= 795site= 796srcdir= 797verbose= 798x_includes=NONE 799x_libraries=NONE 800 801# Installation directory options. 802# These are left unexpanded so users can "make install exec_prefix=/foo" 803# and all the variables that are supposed to be based on exec_prefix 804# by default will actually change. 805# Use braces instead of parens because sh, perl, etc. also accept them. 806# (The list follows the same order as the GNU Coding Standards.) 807bindir='${exec_prefix}/bin' 808sbindir='${exec_prefix}/sbin' 809libexecdir='${exec_prefix}/libexec' 810datarootdir='${prefix}/share' 811datadir='${datarootdir}' 812sysconfdir='${prefix}/etc' 813sharedstatedir='${prefix}/com' 814localstatedir='${prefix}/var' 815includedir='${prefix}/include' 816oldincludedir='/usr/include' 817docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 818infodir='${datarootdir}/info' 819htmldir='${docdir}' 820dvidir='${docdir}' 821pdfdir='${docdir}' 822psdir='${docdir}' 823libdir='${exec_prefix}/lib' 824localedir='${datarootdir}/locale' 825mandir='${datarootdir}/man' 826 827ac_prev= 828ac_dashdash= 829for ac_option 830do 831 # If the previous option needs an argument, assign it. 832 if test -n "$ac_prev"; then 833 eval $ac_prev=\$ac_option 834 ac_prev= 835 continue 836 fi 837 838 case $ac_option in 839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 840 *=) ac_optarg= ;; 841 *) ac_optarg=yes ;; 842 esac 843 844 # Accept the important Cygnus configure options, so we can diagnose typos. 845 846 case $ac_dashdash$ac_option in 847 --) 848 ac_dashdash=yes ;; 849 850 -bindir | --bindir | --bindi | --bind | --bin | --bi) 851 ac_prev=bindir ;; 852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 853 bindir=$ac_optarg ;; 854 855 -build | --build | --buil | --bui | --bu) 856 ac_prev=build_alias ;; 857 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 858 build_alias=$ac_optarg ;; 859 860 -cache-file | --cache-file | --cache-fil | --cache-fi \ 861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 862 ac_prev=cache_file ;; 863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 865 cache_file=$ac_optarg ;; 866 867 --config-cache | -C) 868 cache_file=config.cache ;; 869 870 -datadir | --datadir | --datadi | --datad) 871 ac_prev=datadir ;; 872 -datadir=* | --datadir=* | --datadi=* | --datad=*) 873 datadir=$ac_optarg ;; 874 875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 876 | --dataroo | --dataro | --datar) 877 ac_prev=datarootdir ;; 878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 880 datarootdir=$ac_optarg ;; 881 882 -disable-* | --disable-*) 883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 884 # Reject names that are not valid shell variable names. 885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 886 as_fn_error $? "invalid feature name: $ac_useropt" 887 ac_useropt_orig=$ac_useropt 888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 889 case $ac_user_opts in 890 *" 891"enable_$ac_useropt" 892"*) ;; 893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 894 ac_unrecognized_sep=', ';; 895 esac 896 eval enable_$ac_useropt=no ;; 897 898 -docdir | --docdir | --docdi | --doc | --do) 899 ac_prev=docdir ;; 900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 901 docdir=$ac_optarg ;; 902 903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 904 ac_prev=dvidir ;; 905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 906 dvidir=$ac_optarg ;; 907 908 -enable-* | --enable-*) 909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 910 # Reject names that are not valid shell variable names. 911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 912 as_fn_error $? "invalid feature name: $ac_useropt" 913 ac_useropt_orig=$ac_useropt 914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 915 case $ac_user_opts in 916 *" 917"enable_$ac_useropt" 918"*) ;; 919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 920 ac_unrecognized_sep=', ';; 921 esac 922 eval enable_$ac_useropt=\$ac_optarg ;; 923 924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 926 | --exec | --exe | --ex) 927 ac_prev=exec_prefix ;; 928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 930 | --exec=* | --exe=* | --ex=*) 931 exec_prefix=$ac_optarg ;; 932 933 -gas | --gas | --ga | --g) 934 # Obsolete; use --with-gas. 935 with_gas=yes ;; 936 937 -help | --help | --hel | --he | -h) 938 ac_init_help=long ;; 939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 940 ac_init_help=recursive ;; 941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 942 ac_init_help=short ;; 943 944 -host | --host | --hos | --ho) 945 ac_prev=host_alias ;; 946 -host=* | --host=* | --hos=* | --ho=*) 947 host_alias=$ac_optarg ;; 948 949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 950 ac_prev=htmldir ;; 951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 952 | --ht=*) 953 htmldir=$ac_optarg ;; 954 955 -includedir | --includedir | --includedi | --included | --include \ 956 | --includ | --inclu | --incl | --inc) 957 ac_prev=includedir ;; 958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 959 | --includ=* | --inclu=* | --incl=* | --inc=*) 960 includedir=$ac_optarg ;; 961 962 -infodir | --infodir | --infodi | --infod | --info | --inf) 963 ac_prev=infodir ;; 964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 965 infodir=$ac_optarg ;; 966 967 -libdir | --libdir | --libdi | --libd) 968 ac_prev=libdir ;; 969 -libdir=* | --libdir=* | --libdi=* | --libd=*) 970 libdir=$ac_optarg ;; 971 972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 973 | --libexe | --libex | --libe) 974 ac_prev=libexecdir ;; 975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 976 | --libexe=* | --libex=* | --libe=*) 977 libexecdir=$ac_optarg ;; 978 979 -localedir | --localedir | --localedi | --localed | --locale) 980 ac_prev=localedir ;; 981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 982 localedir=$ac_optarg ;; 983 984 -localstatedir | --localstatedir | --localstatedi | --localstated \ 985 | --localstate | --localstat | --localsta | --localst | --locals) 986 ac_prev=localstatedir ;; 987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 989 localstatedir=$ac_optarg ;; 990 991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 992 ac_prev=mandir ;; 993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 994 mandir=$ac_optarg ;; 995 996 -nfp | --nfp | --nf) 997 # Obsolete; use --without-fp. 998 with_fp=no ;; 999 1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1001 | --no-cr | --no-c | -n) 1002 no_create=yes ;; 1003 1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1006 no_recursion=yes ;; 1007 1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1010 | --oldin | --oldi | --old | --ol | --o) 1011 ac_prev=oldincludedir ;; 1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1015 oldincludedir=$ac_optarg ;; 1016 1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1018 ac_prev=prefix ;; 1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1020 prefix=$ac_optarg ;; 1021 1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1023 | --program-pre | --program-pr | --program-p) 1024 ac_prev=program_prefix ;; 1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1027 program_prefix=$ac_optarg ;; 1028 1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1030 | --program-suf | --program-su | --program-s) 1031 ac_prev=program_suffix ;; 1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1034 program_suffix=$ac_optarg ;; 1035 1036 -program-transform-name | --program-transform-name \ 1037 | --program-transform-nam | --program-transform-na \ 1038 | --program-transform-n | --program-transform- \ 1039 | --program-transform | --program-transfor \ 1040 | --program-transfo | --program-transf \ 1041 | --program-trans | --program-tran \ 1042 | --progr-tra | --program-tr | --program-t) 1043 ac_prev=program_transform_name ;; 1044 -program-transform-name=* | --program-transform-name=* \ 1045 | --program-transform-nam=* | --program-transform-na=* \ 1046 | --program-transform-n=* | --program-transform-=* \ 1047 | --program-transform=* | --program-transfor=* \ 1048 | --program-transfo=* | --program-transf=* \ 1049 | --program-trans=* | --program-tran=* \ 1050 | --progr-tra=* | --program-tr=* | --program-t=*) 1051 program_transform_name=$ac_optarg ;; 1052 1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1054 ac_prev=pdfdir ;; 1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1056 pdfdir=$ac_optarg ;; 1057 1058 -psdir | --psdir | --psdi | --psd | --ps) 1059 ac_prev=psdir ;; 1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1061 psdir=$ac_optarg ;; 1062 1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1064 | -silent | --silent | --silen | --sile | --sil) 1065 silent=yes ;; 1066 1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1068 ac_prev=sbindir ;; 1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1070 | --sbi=* | --sb=*) 1071 sbindir=$ac_optarg ;; 1072 1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1075 | --sharedst | --shareds | --shared | --share | --shar \ 1076 | --sha | --sh) 1077 ac_prev=sharedstatedir ;; 1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1081 | --sha=* | --sh=*) 1082 sharedstatedir=$ac_optarg ;; 1083 1084 -site | --site | --sit) 1085 ac_prev=site ;; 1086 -site=* | --site=* | --sit=*) 1087 site=$ac_optarg ;; 1088 1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1090 ac_prev=srcdir ;; 1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1092 srcdir=$ac_optarg ;; 1093 1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1095 | --syscon | --sysco | --sysc | --sys | --sy) 1096 ac_prev=sysconfdir ;; 1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1099 sysconfdir=$ac_optarg ;; 1100 1101 -target | --target | --targe | --targ | --tar | --ta | --t) 1102 ac_prev=target_alias ;; 1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1104 target_alias=$ac_optarg ;; 1105 1106 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1107 verbose=yes ;; 1108 1109 -version | --version | --versio | --versi | --vers | -V) 1110 ac_init_version=: ;; 1111 1112 -with-* | --with-*) 1113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1114 # Reject names that are not valid shell variable names. 1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1116 as_fn_error $? "invalid package name: $ac_useropt" 1117 ac_useropt_orig=$ac_useropt 1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1119 case $ac_user_opts in 1120 *" 1121"with_$ac_useropt" 1122"*) ;; 1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1124 ac_unrecognized_sep=', ';; 1125 esac 1126 eval with_$ac_useropt=\$ac_optarg ;; 1127 1128 -without-* | --without-*) 1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1130 # Reject names that are not valid shell variable names. 1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1132 as_fn_error $? "invalid package name: $ac_useropt" 1133 ac_useropt_orig=$ac_useropt 1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1135 case $ac_user_opts in 1136 *" 1137"with_$ac_useropt" 1138"*) ;; 1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1140 ac_unrecognized_sep=', ';; 1141 esac 1142 eval with_$ac_useropt=no ;; 1143 1144 --x) 1145 # Obsolete; use --with-x. 1146 with_x=yes ;; 1147 1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1149 | --x-incl | --x-inc | --x-in | --x-i) 1150 ac_prev=x_includes ;; 1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1153 x_includes=$ac_optarg ;; 1154 1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1157 ac_prev=x_libraries ;; 1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1160 x_libraries=$ac_optarg ;; 1161 1162 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1163Try \`$0 --help' for more information" 1164 ;; 1165 1166 *=*) 1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1168 # Reject names that are not valid shell variable names. 1169 case $ac_envvar in #( 1170 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1171 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1172 esac 1173 eval $ac_envvar=\$ac_optarg 1174 export $ac_envvar ;; 1175 1176 *) 1177 # FIXME: should be removed in autoconf 3.0. 1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1182 ;; 1183 1184 esac 1185done 1186 1187if test -n "$ac_prev"; then 1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1189 as_fn_error $? "missing argument to $ac_option" 1190fi 1191 1192if test -n "$ac_unrecognized_opts"; then 1193 case $enable_option_checking in 1194 no) ;; 1195 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1197 esac 1198fi 1199 1200# Check all directory arguments for consistency. 1201for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1202 datadir sysconfdir sharedstatedir localstatedir includedir \ 1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1204 libdir localedir mandir 1205do 1206 eval ac_val=\$$ac_var 1207 # Remove trailing slashes. 1208 case $ac_val in 1209 */ ) 1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1211 eval $ac_var=\$ac_val;; 1212 esac 1213 # Be sure to have absolute directory names. 1214 case $ac_val in 1215 [\\/$]* | ?:[\\/]* ) continue;; 1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1217 esac 1218 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1219done 1220 1221# There might be people who depend on the old broken behavior: `$host' 1222# used to hold the argument of --host etc. 1223# FIXME: To remove some day. 1224build=$build_alias 1225host=$host_alias 1226target=$target_alias 1227 1228# FIXME: To remove some day. 1229if test "x$host_alias" != x; then 1230 if test "x$build_alias" = x; then 1231 cross_compiling=maybe 1232 elif test "x$build_alias" != "x$host_alias"; then 1233 cross_compiling=yes 1234 fi 1235fi 1236 1237ac_tool_prefix= 1238test -n "$host_alias" && ac_tool_prefix=$host_alias- 1239 1240test "$silent" = yes && exec 6>/dev/null 1241 1242 1243ac_pwd=`pwd` && test -n "$ac_pwd" && 1244ac_ls_di=`ls -di .` && 1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1246 as_fn_error $? "working directory cannot be determined" 1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1248 as_fn_error $? "pwd does not report name of working directory" 1249 1250 1251# Find the source files, if location was not specified. 1252if test -z "$srcdir"; then 1253 ac_srcdir_defaulted=yes 1254 # Try the directory containing this script, then the parent directory. 1255 ac_confdir=`$as_dirname -- "$as_myself" || 1256$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1257 X"$as_myself" : 'X\(//\)[^/]' \| \ 1258 X"$as_myself" : 'X\(//\)$' \| \ 1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1260$as_echo X"$as_myself" | 1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1262 s//\1/ 1263 q 1264 } 1265 /^X\(\/\/\)[^/].*/{ 1266 s//\1/ 1267 q 1268 } 1269 /^X\(\/\/\)$/{ 1270 s//\1/ 1271 q 1272 } 1273 /^X\(\/\).*/{ 1274 s//\1/ 1275 q 1276 } 1277 s/.*/./; q'` 1278 srcdir=$ac_confdir 1279 if test ! -r "$srcdir/$ac_unique_file"; then 1280 srcdir=.. 1281 fi 1282else 1283 ac_srcdir_defaulted=no 1284fi 1285if test ! -r "$srcdir/$ac_unique_file"; then 1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1288fi 1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1290ac_abs_confdir=`( 1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1292 pwd)` 1293# When building in place, set srcdir=. 1294if test "$ac_abs_confdir" = "$ac_pwd"; then 1295 srcdir=. 1296fi 1297# Remove unnecessary trailing slashes from srcdir. 1298# Double slashes in file names in object file debugging info 1299# mess up M-x gdb in Emacs. 1300case $srcdir in 1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1302esac 1303for ac_var in $ac_precious_vars; do 1304 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1305 eval ac_env_${ac_var}_value=\$${ac_var} 1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1307 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1308done 1309 1310# 1311# Report the --help message. 1312# 1313if test "$ac_init_help" = "long"; then 1314 # Omit some internal or obsolete options to make the list less imposing. 1315 # This message is too long to be a string in the A/UX 3.1 sh. 1316 cat <<_ACEOF 1317\`configure' configures amrnb 11.0.0.0 to adapt to many kinds of systems. 1318 1319Usage: $0 [OPTION]... [VAR=VALUE]... 1320 1321To assign environment variables (e.g., CC, CFLAGS...), specify them as 1322VAR=VALUE. See below for descriptions of some of the useful variables. 1323 1324Defaults for the options are specified in brackets. 1325 1326Configuration: 1327 -h, --help display this help and exit 1328 --help=short display options specific to this package 1329 --help=recursive display the short help of all the included packages 1330 -V, --version display version information and exit 1331 -q, --quiet, --silent do not print \`checking ...' messages 1332 --cache-file=FILE cache test results in FILE [disabled] 1333 -C, --config-cache alias for \`--cache-file=config.cache' 1334 -n, --no-create do not create output files 1335 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1336 1337Installation directories: 1338 --prefix=PREFIX install architecture-independent files in PREFIX 1339 [$ac_default_prefix] 1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1341 [PREFIX] 1342 1343By default, \`make install' will install all the files in 1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1345an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1346for instance \`--prefix=\$HOME'. 1347 1348For better control, use the options below. 1349 1350Fine tuning of the installation directories: 1351 --bindir=DIR user executables [EPREFIX/bin] 1352 --sbindir=DIR system admin executables [EPREFIX/sbin] 1353 --libexecdir=DIR program executables [EPREFIX/libexec] 1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1357 --libdir=DIR object code libraries [EPREFIX/lib] 1358 --includedir=DIR C header files [PREFIX/include] 1359 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1362 --infodir=DIR info documentation [DATAROOTDIR/info] 1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1364 --mandir=DIR man documentation [DATAROOTDIR/man] 1365 --docdir=DIR documentation root [DATAROOTDIR/doc/amrnb] 1366 --htmldir=DIR html documentation [DOCDIR] 1367 --dvidir=DIR dvi documentation [DOCDIR] 1368 --pdfdir=DIR pdf documentation [DOCDIR] 1369 --psdir=DIR ps documentation [DOCDIR] 1370_ACEOF 1371 1372 cat <<\_ACEOF 1373 1374Program names: 1375 --program-prefix=PREFIX prepend PREFIX to installed program names 1376 --program-suffix=SUFFIX append SUFFIX to installed program names 1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1378 1379System types: 1380 --build=BUILD configure for building on BUILD [guessed] 1381 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1382_ACEOF 1383fi 1384 1385if test -n "$ac_init_help"; then 1386 case $ac_init_help in 1387 short | recursive ) echo "Configuration of amrnb 11.0.0.0:";; 1388 esac 1389 cat <<\_ACEOF 1390 1391Optional Features: 1392 --disable-option-checking ignore unrecognized --enable/--with options 1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1395 --enable-dependency-tracking 1396 do not reject slow dependency extractors 1397 --disable-dependency-tracking 1398 speeds up one-time build 1399 --enable-shared[=PKGS] build shared libraries [default=yes] 1400 --enable-static[=PKGS] build static libraries [default=yes] 1401 --enable-fast-install[=PKGS] 1402 optimize for fast installation [default=yes] 1403 --disable-libtool-lock avoid locking (might break parallel builds) 1404 1405Optional Packages: 1406 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1407 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1408 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1409 both] 1410 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1411 --with-sysroot=DIR Search for dependent libraries within DIR 1412 (or the compiler's sysroot if not specified). 1413 --with-parameter-expansion-string-replace-capable-shell 1414 full path to shell that supports parameter expansion 1415 string replace (i. e. ${var%string} and 1416 ${var#string}) [default=check] 1417 --with-downloader http downloading command [default=check] 1418 1419Some influential environment variables: 1420 CC C compiler command 1421 CFLAGS C compiler flags 1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1423 nonstandard directory <lib dir> 1424 LIBS libraries to pass to the linker, e.g. -l<library> 1425 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1426 you have headers in a nonstandard directory <include dir> 1427 CPP C preprocessor 1428 1429Use these variables to override the choices made by `configure' or to help 1430it to find libraries and programs with nonstandard names/locations. 1431 1432Report bugs to <Stanislav Brabec <utx@penguin.cz>>. 1433_ACEOF 1434ac_status=$? 1435fi 1436 1437if test "$ac_init_help" = "recursive"; then 1438 # If there are subdirs, report their specific --help. 1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1440 test -d "$ac_dir" || 1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1442 continue 1443 ac_builddir=. 1444 1445case "$ac_dir" in 1446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1447*) 1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1449 # A ".." for each directory in $ac_dir_suffix. 1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1451 case $ac_top_builddir_sub in 1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1454 esac ;; 1455esac 1456ac_abs_top_builddir=$ac_pwd 1457ac_abs_builddir=$ac_pwd$ac_dir_suffix 1458# for backward compatibility: 1459ac_top_builddir=$ac_top_build_prefix 1460 1461case $srcdir in 1462 .) # We are building in place. 1463 ac_srcdir=. 1464 ac_top_srcdir=$ac_top_builddir_sub 1465 ac_abs_top_srcdir=$ac_pwd ;; 1466 [\\/]* | ?:[\\/]* ) # Absolute name. 1467 ac_srcdir=$srcdir$ac_dir_suffix; 1468 ac_top_srcdir=$srcdir 1469 ac_abs_top_srcdir=$srcdir ;; 1470 *) # Relative name. 1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1472 ac_top_srcdir=$ac_top_build_prefix$srcdir 1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1474esac 1475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1476 1477 cd "$ac_dir" || { ac_status=$?; continue; } 1478 # Check for guested configure. 1479 if test -f "$ac_srcdir/configure.gnu"; then 1480 echo && 1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1482 elif test -f "$ac_srcdir/configure"; then 1483 echo && 1484 $SHELL "$ac_srcdir/configure" --help=recursive 1485 else 1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1487 fi || ac_status=$? 1488 cd "$ac_pwd" || { ac_status=$?; break; } 1489 done 1490fi 1491 1492test -n "$ac_init_help" && exit $ac_status 1493if $ac_init_version; then 1494 cat <<\_ACEOF 1495amrnb configure 11.0.0.0 1496generated by GNU Autoconf 2.69 1497 1498Copyright (C) 2012 Free Software Foundation, Inc. 1499This configure script is free software; the Free Software Foundation 1500gives unlimited permission to copy, distribute and modify it. 1501_ACEOF 1502 exit 1503fi 1504 1505## ------------------------ ## 1506## Autoconf initialization. ## 1507## ------------------------ ## 1508 1509# ac_fn_c_try_compile LINENO 1510# -------------------------- 1511# Try to compile conftest.$ac_ext, and return whether this succeeded. 1512ac_fn_c_try_compile () 1513{ 1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1515 rm -f conftest.$ac_objext 1516 if { { ac_try="$ac_compile" 1517case "(($ac_try" in 1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1519 *) ac_try_echo=$ac_try;; 1520esac 1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1522$as_echo "$ac_try_echo"; } >&5 1523 (eval "$ac_compile") 2>conftest.err 1524 ac_status=$? 1525 if test -s conftest.err; then 1526 grep -v '^ *+' conftest.err >conftest.er1 1527 cat conftest.er1 >&5 1528 mv -f conftest.er1 conftest.err 1529 fi 1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1531 test $ac_status = 0; } && { 1532 test -z "$ac_c_werror_flag" || 1533 test ! -s conftest.err 1534 } && test -s conftest.$ac_objext; then : 1535 ac_retval=0 1536else 1537 $as_echo "$as_me: failed program was:" >&5 1538sed 's/^/| /' conftest.$ac_ext >&5 1539 1540 ac_retval=1 1541fi 1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1543 as_fn_set_status $ac_retval 1544 1545} # ac_fn_c_try_compile 1546 1547# ac_fn_c_try_cpp LINENO 1548# ---------------------- 1549# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1550ac_fn_c_try_cpp () 1551{ 1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1553 if { { ac_try="$ac_cpp conftest.$ac_ext" 1554case "(($ac_try" in 1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1556 *) ac_try_echo=$ac_try;; 1557esac 1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1559$as_echo "$ac_try_echo"; } >&5 1560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1561 ac_status=$? 1562 if test -s conftest.err; then 1563 grep -v '^ *+' conftest.err >conftest.er1 1564 cat conftest.er1 >&5 1565 mv -f conftest.er1 conftest.err 1566 fi 1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1568 test $ac_status = 0; } > conftest.i && { 1569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1570 test ! -s conftest.err 1571 }; then : 1572 ac_retval=0 1573else 1574 $as_echo "$as_me: failed program was:" >&5 1575sed 's/^/| /' conftest.$ac_ext >&5 1576 1577 ac_retval=1 1578fi 1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1580 as_fn_set_status $ac_retval 1581 1582} # ac_fn_c_try_cpp 1583 1584# ac_fn_c_try_link LINENO 1585# ----------------------- 1586# Try to link conftest.$ac_ext, and return whether this succeeded. 1587ac_fn_c_try_link () 1588{ 1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1590 rm -f conftest.$ac_objext conftest$ac_exeext 1591 if { { ac_try="$ac_link" 1592case "(($ac_try" in 1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1594 *) ac_try_echo=$ac_try;; 1595esac 1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1597$as_echo "$ac_try_echo"; } >&5 1598 (eval "$ac_link") 2>conftest.err 1599 ac_status=$? 1600 if test -s conftest.err; then 1601 grep -v '^ *+' conftest.err >conftest.er1 1602 cat conftest.er1 >&5 1603 mv -f conftest.er1 conftest.err 1604 fi 1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1606 test $ac_status = 0; } && { 1607 test -z "$ac_c_werror_flag" || 1608 test ! -s conftest.err 1609 } && test -s conftest$ac_exeext && { 1610 test "$cross_compiling" = yes || 1611 test -x conftest$ac_exeext 1612 }; then : 1613 ac_retval=0 1614else 1615 $as_echo "$as_me: failed program was:" >&5 1616sed 's/^/| /' conftest.$ac_ext >&5 1617 1618 ac_retval=1 1619fi 1620 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1621 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1622 # interfere with the next link command; also delete a directory that is 1623 # left behind by Apple's compiler. We do this before executing the actions. 1624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1626 as_fn_set_status $ac_retval 1627 1628} # ac_fn_c_try_link 1629 1630# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1631# ------------------------------------------------------- 1632# Tests whether HEADER exists and can be compiled using the include files in 1633# INCLUDES, setting the cache variable VAR accordingly. 1634ac_fn_c_check_header_compile () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1638$as_echo_n "checking for $2... " >&6; } 1639if eval \${$3+:} false; then : 1640 $as_echo_n "(cached) " >&6 1641else 1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1643/* end confdefs.h. */ 1644$4 1645#include <$2> 1646_ACEOF 1647if ac_fn_c_try_compile "$LINENO"; then : 1648 eval "$3=yes" 1649else 1650 eval "$3=no" 1651fi 1652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1653fi 1654eval ac_res=\$$3 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1656$as_echo "$ac_res" >&6; } 1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1658 1659} # ac_fn_c_check_header_compile 1660 1661# ac_fn_c_try_run LINENO 1662# ---------------------- 1663# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1664# that executables *can* be run. 1665ac_fn_c_try_run () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 if { { ac_try="$ac_link" 1669case "(($ac_try" in 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1671 *) ac_try_echo=$ac_try;; 1672esac 1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1674$as_echo "$ac_try_echo"; } >&5 1675 (eval "$ac_link") 2>&5 1676 ac_status=$? 1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1678 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1679 { { case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_try") 2>&5 1686 ac_status=$? 1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1688 test $ac_status = 0; }; }; then : 1689 ac_retval=0 1690else 1691 $as_echo "$as_me: program exited with status $ac_status" >&5 1692 $as_echo "$as_me: failed program was:" >&5 1693sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=$ac_status 1696fi 1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1699 as_fn_set_status $ac_retval 1700 1701} # ac_fn_c_try_run 1702 1703# ac_fn_c_check_func LINENO FUNC VAR 1704# ---------------------------------- 1705# Tests whether FUNC exists, setting the cache variable VAR accordingly 1706ac_fn_c_check_func () 1707{ 1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1710$as_echo_n "checking for $2... " >&6; } 1711if eval \${$3+:} false; then : 1712 $as_echo_n "(cached) " >&6 1713else 1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1715/* end confdefs.h. */ 1716/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1717 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1718#define $2 innocuous_$2 1719 1720/* System header to define __stub macros and hopefully few prototypes, 1721 which can conflict with char $2 (); below. 1722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1723 <limits.h> exists even on freestanding compilers. */ 1724 1725#ifdef __STDC__ 1726# include <limits.h> 1727#else 1728# include <assert.h> 1729#endif 1730 1731#undef $2 1732 1733/* Override any GCC internal prototype to avoid an error. 1734 Use char because int might match the return type of a GCC 1735 builtin and then its argument prototype would still apply. */ 1736#ifdef __cplusplus 1737extern "C" 1738#endif 1739char $2 (); 1740/* The GNU C library defines this for functions which it implements 1741 to always fail with ENOSYS. Some functions are actually named 1742 something starting with __ and the normal name is an alias. */ 1743#if defined __stub_$2 || defined __stub___$2 1744choke me 1745#endif 1746 1747int 1748main () 1749{ 1750return $2 (); 1751 ; 1752 return 0; 1753} 1754_ACEOF 1755if ac_fn_c_try_link "$LINENO"; then : 1756 eval "$3=yes" 1757else 1758 eval "$3=no" 1759fi 1760rm -f core conftest.err conftest.$ac_objext \ 1761 conftest$ac_exeext conftest.$ac_ext 1762fi 1763eval ac_res=\$$3 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1765$as_echo "$ac_res" >&6; } 1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1767 1768} # ac_fn_c_check_func 1769 1770# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1771# ------------------------------------------------------- 1772# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1773# the include files in INCLUDES and setting the cache variable VAR 1774# accordingly. 1775ac_fn_c_check_header_mongrel () 1776{ 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 if eval \${$3+:} false; then : 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1780$as_echo_n "checking for $2... " >&6; } 1781if eval \${$3+:} false; then : 1782 $as_echo_n "(cached) " >&6 1783fi 1784eval ac_res=\$$3 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1786$as_echo "$ac_res" >&6; } 1787else 1788 # Is the header compilable? 1789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1790$as_echo_n "checking $2 usability... " >&6; } 1791cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1792/* end confdefs.h. */ 1793$4 1794#include <$2> 1795_ACEOF 1796if ac_fn_c_try_compile "$LINENO"; then : 1797 ac_header_compiler=yes 1798else 1799 ac_header_compiler=no 1800fi 1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1803$as_echo "$ac_header_compiler" >&6; } 1804 1805# Is the header present? 1806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1807$as_echo_n "checking $2 presence... " >&6; } 1808cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1809/* end confdefs.h. */ 1810#include <$2> 1811_ACEOF 1812if ac_fn_c_try_cpp "$LINENO"; then : 1813 ac_header_preproc=yes 1814else 1815 ac_header_preproc=no 1816fi 1817rm -f conftest.err conftest.i conftest.$ac_ext 1818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1819$as_echo "$ac_header_preproc" >&6; } 1820 1821# So? What about this header? 1822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1823 yes:no: ) 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1825$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1827$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1828 ;; 1829 no:yes:* ) 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1831$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1833$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1835$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1837$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1839$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1840( $as_echo "## ------------------------------------------------ ## 1841## Report this to Stanislav Brabec <utx@penguin.cz> ## 1842## ------------------------------------------------ ##" 1843 ) | sed "s/^/$as_me: WARNING: /" >&2 1844 ;; 1845esac 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1847$as_echo_n "checking for $2... " >&6; } 1848if eval \${$3+:} false; then : 1849 $as_echo_n "(cached) " >&6 1850else 1851 eval "$3=\$ac_header_compiler" 1852fi 1853eval ac_res=\$$3 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1855$as_echo "$ac_res" >&6; } 1856fi 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1858 1859} # ac_fn_c_check_header_mongrel 1860 1861# ac_fn_c_find_intX_t LINENO BITS VAR 1862# ----------------------------------- 1863# Finds a signed integer type with width BITS, setting cache variable VAR 1864# accordingly. 1865ac_fn_c_find_intX_t () 1866{ 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 1869$as_echo_n "checking for int$2_t... " >&6; } 1870if eval \${$3+:} false; then : 1871 $as_echo_n "(cached) " >&6 1872else 1873 eval "$3=no" 1874 # Order is important - never check a type that is potentially smaller 1875 # than half of the expected target width. 1876 for ac_type in int$2_t 'int' 'long int' \ 1877 'long long int' 'short int' 'signed char'; do 1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1879/* end confdefs.h. */ 1880$ac_includes_default 1881 enum { N = $2 / 2 - 1 }; 1882int 1883main () 1884{ 1885static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 1886test_array [0] = 0; 1887return test_array [0]; 1888 1889 ; 1890 return 0; 1891} 1892_ACEOF 1893if ac_fn_c_try_compile "$LINENO"; then : 1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1895/* end confdefs.h. */ 1896$ac_includes_default 1897 enum { N = $2 / 2 - 1 }; 1898int 1899main () 1900{ 1901static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 1902 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 1903test_array [0] = 0; 1904return test_array [0]; 1905 1906 ; 1907 return 0; 1908} 1909_ACEOF 1910if ac_fn_c_try_compile "$LINENO"; then : 1911 1912else 1913 case $ac_type in #( 1914 int$2_t) : 1915 eval "$3=yes" ;; #( 1916 *) : 1917 eval "$3=\$ac_type" ;; 1918esac 1919fi 1920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1921fi 1922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1923 if eval test \"x\$"$3"\" = x"no"; then : 1924 1925else 1926 break 1927fi 1928 done 1929fi 1930eval ac_res=\$$3 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1932$as_echo "$ac_res" >&6; } 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1934 1935} # ac_fn_c_find_intX_t 1936 1937# ac_fn_c_find_uintX_t LINENO BITS VAR 1938# ------------------------------------ 1939# Finds an unsigned integer type with width BITS, setting cache variable VAR 1940# accordingly. 1941ac_fn_c_find_uintX_t () 1942{ 1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1945$as_echo_n "checking for uint$2_t... " >&6; } 1946if eval \${$3+:} false; then : 1947 $as_echo_n "(cached) " >&6 1948else 1949 eval "$3=no" 1950 # Order is important - never check a type that is potentially smaller 1951 # than half of the expected target width. 1952 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1953 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1955/* end confdefs.h. */ 1956$ac_includes_default 1957int 1958main () 1959{ 1960static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1961test_array [0] = 0; 1962return test_array [0]; 1963 1964 ; 1965 return 0; 1966} 1967_ACEOF 1968if ac_fn_c_try_compile "$LINENO"; then : 1969 case $ac_type in #( 1970 uint$2_t) : 1971 eval "$3=yes" ;; #( 1972 *) : 1973 eval "$3=\$ac_type" ;; 1974esac 1975fi 1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1977 if eval test \"x\$"$3"\" = x"no"; then : 1978 1979else 1980 break 1981fi 1982 done 1983fi 1984eval ac_res=\$$3 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1986$as_echo "$ac_res" >&6; } 1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1988 1989} # ac_fn_c_find_uintX_t 1990cat >config.log <<_ACEOF 1991This file contains any messages produced by compilers while 1992running configure, to aid debugging if configure makes a mistake. 1993 1994It was created by amrnb $as_me 11.0.0.0, which was 1995generated by GNU Autoconf 2.69. Invocation command line was 1996 1997 $ $0 $@ 1998 1999_ACEOF 2000exec 5>>config.log 2001{ 2002cat <<_ASUNAME 2003## --------- ## 2004## Platform. ## 2005## --------- ## 2006 2007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2008uname -m = `(uname -m) 2>/dev/null || echo unknown` 2009uname -r = `(uname -r) 2>/dev/null || echo unknown` 2010uname -s = `(uname -s) 2>/dev/null || echo unknown` 2011uname -v = `(uname -v) 2>/dev/null || echo unknown` 2012 2013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2014/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2015 2016/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2017/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2019/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2020/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2021/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2022/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2023 2024_ASUNAME 2025 2026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2027for as_dir in $PATH 2028do 2029 IFS=$as_save_IFS 2030 test -z "$as_dir" && as_dir=. 2031 $as_echo "PATH: $as_dir" 2032 done 2033IFS=$as_save_IFS 2034 2035} >&5 2036 2037cat >&5 <<_ACEOF 2038 2039 2040## ----------- ## 2041## Core tests. ## 2042## ----------- ## 2043 2044_ACEOF 2045 2046 2047# Keep a trace of the command line. 2048# Strip out --no-create and --no-recursion so they do not pile up. 2049# Strip out --silent because we don't want to record it for future runs. 2050# Also quote any args containing shell meta-characters. 2051# Make two passes to allow for proper duplicate-argument suppression. 2052ac_configure_args= 2053ac_configure_args0= 2054ac_configure_args1= 2055ac_must_keep_next=false 2056for ac_pass in 1 2 2057do 2058 for ac_arg 2059 do 2060 case $ac_arg in 2061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2063 | -silent | --silent | --silen | --sile | --sil) 2064 continue ;; 2065 *\'*) 2066 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2067 esac 2068 case $ac_pass in 2069 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2070 2) 2071 as_fn_append ac_configure_args1 " '$ac_arg'" 2072 if test $ac_must_keep_next = true; then 2073 ac_must_keep_next=false # Got value, back to normal. 2074 else 2075 case $ac_arg in 2076 *=* | --config-cache | -C | -disable-* | --disable-* \ 2077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2079 | -with-* | --with-* | -without-* | --without-* | --x) 2080 case "$ac_configure_args0 " in 2081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2082 esac 2083 ;; 2084 -* ) ac_must_keep_next=true ;; 2085 esac 2086 fi 2087 as_fn_append ac_configure_args " '$ac_arg'" 2088 ;; 2089 esac 2090 done 2091done 2092{ ac_configure_args0=; unset ac_configure_args0;} 2093{ ac_configure_args1=; unset ac_configure_args1;} 2094 2095# When interrupted or exit'd, cleanup temporary files, and complete 2096# config.log. We remove comments because anyway the quotes in there 2097# would cause problems or look ugly. 2098# WARNING: Use '\'' to represent an apostrophe within the trap. 2099# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2100trap 'exit_status=$? 2101 # Save into config.log some information that might help in debugging. 2102 { 2103 echo 2104 2105 $as_echo "## ---------------- ## 2106## Cache variables. ## 2107## ---------------- ##" 2108 echo 2109 # The following way of writing the cache mishandles newlines in values, 2110( 2111 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2112 eval ac_val=\$$ac_var 2113 case $ac_val in #( 2114 *${as_nl}*) 2115 case $ac_var in #( 2116 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2117$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2118 esac 2119 case $ac_var in #( 2120 _ | IFS | as_nl) ;; #( 2121 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2122 *) { eval $ac_var=; unset $ac_var;} ;; 2123 esac ;; 2124 esac 2125 done 2126 (set) 2>&1 | 2127 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2128 *${as_nl}ac_space=\ *) 2129 sed -n \ 2130 "s/'\''/'\''\\\\'\'''\''/g; 2131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2132 ;; #( 2133 *) 2134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2135 ;; 2136 esac | 2137 sort 2138) 2139 echo 2140 2141 $as_echo "## ----------------- ## 2142## Output variables. ## 2143## ----------------- ##" 2144 echo 2145 for ac_var in $ac_subst_vars 2146 do 2147 eval ac_val=\$$ac_var 2148 case $ac_val in 2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2150 esac 2151 $as_echo "$ac_var='\''$ac_val'\''" 2152 done | sort 2153 echo 2154 2155 if test -n "$ac_subst_files"; then 2156 $as_echo "## ------------------- ## 2157## File substitutions. ## 2158## ------------------- ##" 2159 echo 2160 for ac_var in $ac_subst_files 2161 do 2162 eval ac_val=\$$ac_var 2163 case $ac_val in 2164 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2165 esac 2166 $as_echo "$ac_var='\''$ac_val'\''" 2167 done | sort 2168 echo 2169 fi 2170 2171 if test -s confdefs.h; then 2172 $as_echo "## ----------- ## 2173## confdefs.h. ## 2174## ----------- ##" 2175 echo 2176 cat confdefs.h 2177 echo 2178 fi 2179 test "$ac_signal" != 0 && 2180 $as_echo "$as_me: caught signal $ac_signal" 2181 $as_echo "$as_me: exit $exit_status" 2182 } >&5 2183 rm -f core *.core core.conftest.* && 2184 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2185 exit $exit_status 2186' 0 2187for ac_signal in 1 2 13 15; do 2188 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2189done 2190ac_signal=0 2191 2192# confdefs.h avoids OS command line length limits that DEFS can exceed. 2193rm -f -r conftest* confdefs.h 2194 2195$as_echo "/* confdefs.h */" > confdefs.h 2196 2197# Predefined preprocessor variables. 2198 2199cat >>confdefs.h <<_ACEOF 2200#define PACKAGE_NAME "$PACKAGE_NAME" 2201_ACEOF 2202 2203cat >>confdefs.h <<_ACEOF 2204#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2205_ACEOF 2206 2207cat >>confdefs.h <<_ACEOF 2208#define PACKAGE_VERSION "$PACKAGE_VERSION" 2209_ACEOF 2210 2211cat >>confdefs.h <<_ACEOF 2212#define PACKAGE_STRING "$PACKAGE_STRING" 2213_ACEOF 2214 2215cat >>confdefs.h <<_ACEOF 2216#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2217_ACEOF 2218 2219cat >>confdefs.h <<_ACEOF 2220#define PACKAGE_URL "$PACKAGE_URL" 2221_ACEOF 2222 2223 2224# Let the site file select an alternate cache file if it wants to. 2225# Prefer an explicitly selected file to automatically selected ones. 2226ac_site_file1=NONE 2227ac_site_file2=NONE 2228if test -n "$CONFIG_SITE"; then 2229 # We do not want a PATH search for config.site. 2230 case $CONFIG_SITE in #(( 2231 -*) ac_site_file1=./$CONFIG_SITE;; 2232 */*) ac_site_file1=$CONFIG_SITE;; 2233 *) ac_site_file1=./$CONFIG_SITE;; 2234 esac 2235elif test "x$prefix" != xNONE; then 2236 ac_site_file1=$prefix/share/config.site 2237 ac_site_file2=$prefix/etc/config.site 2238else 2239 ac_site_file1=$ac_default_prefix/share/config.site 2240 ac_site_file2=$ac_default_prefix/etc/config.site 2241fi 2242for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2243do 2244 test "x$ac_site_file" = xNONE && continue 2245 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2247$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2248 sed 's/^/| /' "$ac_site_file" >&5 2249 . "$ac_site_file" \ 2250 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2252as_fn_error $? "failed to load site script $ac_site_file 2253See \`config.log' for more details" "$LINENO" 5; } 2254 fi 2255done 2256 2257if test -r "$cache_file"; then 2258 # Some versions of bash will fail to source /dev/null (special files 2259 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2260 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2262$as_echo "$as_me: loading cache $cache_file" >&6;} 2263 case $cache_file in 2264 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2265 *) . "./$cache_file";; 2266 esac 2267 fi 2268else 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2270$as_echo "$as_me: creating cache $cache_file" >&6;} 2271 >$cache_file 2272fi 2273 2274# Check that the precious variables saved in the cache have kept the same 2275# value. 2276ac_cache_corrupted=false 2277for ac_var in $ac_precious_vars; do 2278 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2279 eval ac_new_set=\$ac_env_${ac_var}_set 2280 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2281 eval ac_new_val=\$ac_env_${ac_var}_value 2282 case $ac_old_set,$ac_new_set in 2283 set,) 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2285$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2286 ac_cache_corrupted=: ;; 2287 ,set) 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2289$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2290 ac_cache_corrupted=: ;; 2291 ,);; 2292 *) 2293 if test "x$ac_old_val" != "x$ac_new_val"; then 2294 # differences in whitespace do not lead to failure. 2295 ac_old_val_w=`echo x $ac_old_val` 2296 ac_new_val_w=`echo x $ac_new_val` 2297 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2299$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2300 ac_cache_corrupted=: 2301 else 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2303$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2304 eval $ac_var=\$ac_old_val 2305 fi 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2307$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2309$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2310 fi;; 2311 esac 2312 # Pass precious variables to config.status. 2313 if test "$ac_new_set" = set; then 2314 case $ac_new_val in 2315 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2316 *) ac_arg=$ac_var=$ac_new_val ;; 2317 esac 2318 case " $ac_configure_args " in 2319 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2320 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2321 esac 2322 fi 2323done 2324if $ac_cache_corrupted; then 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2328$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2329 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2330fi 2331## -------------------- ## 2332## Main body of script. ## 2333## -------------------- ## 2334 2335ac_ext=c 2336ac_cpp='$CPP $CPPFLAGS' 2337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2339ac_compiler_gnu=$ac_cv_c_compiler_gnu 2340 2341 2342am__api_version='1.12' 2343 2344ac_aux_dir= 2345for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2346 if test -f "$ac_dir/install-sh"; then 2347 ac_aux_dir=$ac_dir 2348 ac_install_sh="$ac_aux_dir/install-sh -c" 2349 break 2350 elif test -f "$ac_dir/install.sh"; then 2351 ac_aux_dir=$ac_dir 2352 ac_install_sh="$ac_aux_dir/install.sh -c" 2353 break 2354 elif test -f "$ac_dir/shtool"; then 2355 ac_aux_dir=$ac_dir 2356 ac_install_sh="$ac_aux_dir/shtool install -c" 2357 break 2358 fi 2359done 2360if test -z "$ac_aux_dir"; then 2361 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2362fi 2363 2364# These three variables are undocumented and unsupported, 2365# and are intended to be withdrawn in a future Autoconf release. 2366# They can cause serious problems if a builder's source tree is in a directory 2367# whose full name contains unusual characters. 2368ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2369ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2370ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2371 2372 2373# Find a good install program. We prefer a C program (faster), 2374# so one script is as good as another. But avoid the broken or 2375# incompatible versions: 2376# SysV /etc/install, /usr/sbin/install 2377# SunOS /usr/etc/install 2378# IRIX /sbin/install 2379# AIX /bin/install 2380# AmigaOS /C/install, which installs bootblocks on floppy discs 2381# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2382# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2383# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2384# OS/2's system install, which has a completely different semantic 2385# ./install, which can be erroneously created by make from ./install.sh. 2386# Reject install programs that cannot install multiple files. 2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2388$as_echo_n "checking for a BSD-compatible install... " >&6; } 2389if test -z "$INSTALL"; then 2390if ${ac_cv_path_install+:} false; then : 2391 $as_echo_n "(cached) " >&6 2392else 2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2394for as_dir in $PATH 2395do 2396 IFS=$as_save_IFS 2397 test -z "$as_dir" && as_dir=. 2398 # Account for people who put trailing slashes in PATH elements. 2399case $as_dir/ in #(( 2400 ./ | .// | /[cC]/* | \ 2401 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2402 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2403 /usr/ucb/* ) ;; 2404 *) 2405 # OSF1 and SCO ODT 3.0 have their own names for install. 2406 # Don't use installbsd from OSF since it installs stuff as root 2407 # by default. 2408 for ac_prog in ginstall scoinst install; do 2409 for ac_exec_ext in '' $ac_executable_extensions; do 2410 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2411 if test $ac_prog = install && 2412 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2413 # AIX install. It has an incompatible calling convention. 2414 : 2415 elif test $ac_prog = install && 2416 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2417 # program-specific install script used by HP pwplus--don't use. 2418 : 2419 else 2420 rm -rf conftest.one conftest.two conftest.dir 2421 echo one > conftest.one 2422 echo two > conftest.two 2423 mkdir conftest.dir 2424 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2425 test -s conftest.one && test -s conftest.two && 2426 test -s conftest.dir/conftest.one && 2427 test -s conftest.dir/conftest.two 2428 then 2429 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2430 break 3 2431 fi 2432 fi 2433 fi 2434 done 2435 done 2436 ;; 2437esac 2438 2439 done 2440IFS=$as_save_IFS 2441 2442rm -rf conftest.one conftest.two conftest.dir 2443 2444fi 2445 if test "${ac_cv_path_install+set}" = set; then 2446 INSTALL=$ac_cv_path_install 2447 else 2448 # As a last resort, use the slow shell script. Don't cache a 2449 # value for INSTALL within a source directory, because that will 2450 # break other packages using the cache if that directory is 2451 # removed, or if the value is a relative name. 2452 INSTALL=$ac_install_sh 2453 fi 2454fi 2455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2456$as_echo "$INSTALL" >&6; } 2457 2458# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2459# It thinks the first close brace ends the variable substitution. 2460test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2461 2462test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2463 2464test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2465 2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2467$as_echo_n "checking whether build environment is sane... " >&6; } 2468# Reject unsafe characters in $srcdir or the absolute working directory 2469# name. Accept space and tab only in the latter. 2470am_lf=' 2471' 2472case `pwd` in 2473 *[\\\"\#\$\&\'\`$am_lf]*) 2474 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2475esac 2476case $srcdir in 2477 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2478 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2479esac 2480 2481# Do 'set' in a subshell so we don't clobber the current shell's 2482# arguments. Must try -L first in case configure is actually a 2483# symlink; some systems play weird games with the mod time of symlinks 2484# (eg FreeBSD returns the mod time of the symlink's containing 2485# directory). 2486if ( 2487 am_has_slept=no 2488 for am_try in 1 2; do 2489 echo "timestamp, slept: $am_has_slept" > conftest.file 2490 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2491 if test "$*" = "X"; then 2492 # -L didn't work. 2493 set X `ls -t "$srcdir/configure" conftest.file` 2494 fi 2495 if test "$*" != "X $srcdir/configure conftest.file" \ 2496 && test "$*" != "X conftest.file $srcdir/configure"; then 2497 2498 # If neither matched, then we have a broken ls. This can happen 2499 # if, for instance, CONFIG_SHELL is bash and it inherits a 2500 # broken ls alias from the environment. This has actually 2501 # happened. Such a system could not be considered "sane". 2502 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2503 alias in your environment" "$LINENO" 5 2504 fi 2505 if test "$2" = conftest.file || test $am_try -eq 2; then 2506 break 2507 fi 2508 # Just in case. 2509 sleep 1 2510 am_has_slept=yes 2511 done 2512 test "$2" = conftest.file 2513 ) 2514then 2515 # Ok. 2516 : 2517else 2518 as_fn_error $? "newly created file is older than distributed files! 2519Check your system clock" "$LINENO" 5 2520fi 2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2522$as_echo "yes" >&6; } 2523# If we didn't sleep, we still need to ensure time stamps of config.status and 2524# generated files are strictly newer. 2525am_sleep_pid= 2526if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2527 ( sleep 1 ) & 2528 am_sleep_pid=$! 2529fi 2530 2531rm -f conftest.file 2532 2533test "$program_prefix" != NONE && 2534 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2535# Use a double $ so make ignores it. 2536test "$program_suffix" != NONE && 2537 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2538# Double any \ or $. 2539# By default was `s,x,x', remove it if useless. 2540ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2541program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2542 2543# expand $ac_aux_dir to an absolute path 2544am_aux_dir=`cd $ac_aux_dir && pwd` 2545 2546if test x"${MISSING+set}" != xset; then 2547 case $am_aux_dir in 2548 *\ * | *\ *) 2549 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2550 *) 2551 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2552 esac 2553fi 2554# Use eval to expand $SHELL 2555if eval "$MISSING --run true"; then 2556 am_missing_run="$MISSING --run " 2557else 2558 am_missing_run= 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2560$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2561fi 2562 2563if test x"${install_sh}" != xset; then 2564 case $am_aux_dir in 2565 *\ * | *\ *) 2566 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2567 *) 2568 install_sh="\${SHELL} $am_aux_dir/install-sh" 2569 esac 2570fi 2571 2572# Installed binaries are usually stripped using 'strip' when the user 2573# run "make install-strip". However 'strip' might not be the right 2574# tool to use in cross-compilation environments, therefore Automake 2575# will honor the 'STRIP' environment variable to overrule this program. 2576if test "$cross_compiling" != no; then 2577 if test -n "$ac_tool_prefix"; then 2578 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2579set dummy ${ac_tool_prefix}strip; ac_word=$2 2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2581$as_echo_n "checking for $ac_word... " >&6; } 2582if ${ac_cv_prog_STRIP+:} false; then : 2583 $as_echo_n "(cached) " >&6 2584else 2585 if test -n "$STRIP"; then 2586 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2587else 2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2595 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599done 2600 done 2601IFS=$as_save_IFS 2602 2603fi 2604fi 2605STRIP=$ac_cv_prog_STRIP 2606if test -n "$STRIP"; then 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2608$as_echo "$STRIP" >&6; } 2609else 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2611$as_echo "no" >&6; } 2612fi 2613 2614 2615fi 2616if test -z "$ac_cv_prog_STRIP"; then 2617 ac_ct_STRIP=$STRIP 2618 # Extract the first word of "strip", so it can be a program name with args. 2619set dummy strip; ac_word=$2 2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2621$as_echo_n "checking for $ac_word... " >&6; } 2622if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624else 2625 if test -n "$ac_ct_STRIP"; then 2626 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2627else 2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629for as_dir in $PATH 2630do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_exec_ext in '' $ac_executable_extensions; do 2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2635 ac_cv_prog_ac_ct_STRIP="strip" 2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2637 break 2 2638 fi 2639done 2640 done 2641IFS=$as_save_IFS 2642 2643fi 2644fi 2645ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2646if test -n "$ac_ct_STRIP"; then 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2648$as_echo "$ac_ct_STRIP" >&6; } 2649else 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2651$as_echo "no" >&6; } 2652fi 2653 2654 if test "x$ac_ct_STRIP" = x; then 2655 STRIP=":" 2656 else 2657 case $cross_compiling:$ac_tool_warned in 2658yes:) 2659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2661ac_tool_warned=yes ;; 2662esac 2663 STRIP=$ac_ct_STRIP 2664 fi 2665else 2666 STRIP="$ac_cv_prog_STRIP" 2667fi 2668 2669fi 2670INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2671 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2673$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2674if test -z "$MKDIR_P"; then 2675 if ${ac_cv_path_mkdir+:} false; then : 2676 $as_echo_n "(cached) " >&6 2677else 2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2679for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2680do 2681 IFS=$as_save_IFS 2682 test -z "$as_dir" && as_dir=. 2683 for ac_prog in mkdir gmkdir; do 2684 for ac_exec_ext in '' $ac_executable_extensions; do 2685 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2686 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2687 'mkdir (GNU coreutils) '* | \ 2688 'mkdir (coreutils) '* | \ 2689 'mkdir (fileutils) '4.1*) 2690 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2691 break 3;; 2692 esac 2693 done 2694 done 2695 done 2696IFS=$as_save_IFS 2697 2698fi 2699 2700 test -d ./--version && rmdir ./--version 2701 if test "${ac_cv_path_mkdir+set}" = set; then 2702 MKDIR_P="$ac_cv_path_mkdir -p" 2703 else 2704 # As a last resort, use the slow shell script. Don't cache a 2705 # value for MKDIR_P within a source directory, because that will 2706 # break other packages using the cache if that directory is 2707 # removed, or if the value is a relative name. 2708 MKDIR_P="$ac_install_sh -d" 2709 fi 2710fi 2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2712$as_echo "$MKDIR_P" >&6; } 2713 2714for ac_prog in gawk mawk nawk awk 2715do 2716 # Extract the first word of "$ac_prog", so it can be a program name with args. 2717set dummy $ac_prog; ac_word=$2 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2719$as_echo_n "checking for $ac_word... " >&6; } 2720if ${ac_cv_prog_AWK+:} false; then : 2721 $as_echo_n "(cached) " >&6 2722else 2723 if test -n "$AWK"; then 2724 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2725else 2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2727for as_dir in $PATH 2728do 2729 IFS=$as_save_IFS 2730 test -z "$as_dir" && as_dir=. 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2733 ac_cv_prog_AWK="$ac_prog" 2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737done 2738 done 2739IFS=$as_save_IFS 2740 2741fi 2742fi 2743AWK=$ac_cv_prog_AWK 2744if test -n "$AWK"; then 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2746$as_echo "$AWK" >&6; } 2747else 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2749$as_echo "no" >&6; } 2750fi 2751 2752 2753 test -n "$AWK" && break 2754done 2755 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2757$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2758set x ${MAKE-make} 2759ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2760if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2761 $as_echo_n "(cached) " >&6 2762else 2763 cat >conftest.make <<\_ACEOF 2764SHELL = /bin/sh 2765all: 2766 @echo '@@@%%%=$(MAKE)=@@@%%%' 2767_ACEOF 2768# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2769case `${MAKE-make} -f conftest.make 2>/dev/null` in 2770 *@@@%%%=?*=@@@%%%*) 2771 eval ac_cv_prog_make_${ac_make}_set=yes;; 2772 *) 2773 eval ac_cv_prog_make_${ac_make}_set=no;; 2774esac 2775rm -f conftest.make 2776fi 2777if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2779$as_echo "yes" >&6; } 2780 SET_MAKE= 2781else 2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2783$as_echo "no" >&6; } 2784 SET_MAKE="MAKE=${MAKE-make}" 2785fi 2786 2787rm -rf .tst 2>/dev/null 2788mkdir .tst 2>/dev/null 2789if test -d .tst; then 2790 am__leading_dot=. 2791else 2792 am__leading_dot=_ 2793fi 2794rmdir .tst 2>/dev/null 2795 2796if test "`cd $srcdir && pwd`" != "`pwd`"; then 2797 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2798 # is not polluted with repeated "-I." 2799 am__isrc=' -I$(srcdir)' 2800 # test to see if srcdir already configured 2801 if test -f $srcdir/config.status; then 2802 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2803 fi 2804fi 2805 2806# test whether we have cygpath 2807if test -z "$CYGPATH_W"; then 2808 if (cygpath --version) >/dev/null 2>/dev/null; then 2809 CYGPATH_W='cygpath -w' 2810 else 2811 CYGPATH_W=echo 2812 fi 2813fi 2814 2815 2816# Define the identity of the package. 2817 PACKAGE='amrnb' 2818 VERSION='11.0.0.0' 2819 2820 2821cat >>confdefs.h <<_ACEOF 2822#define PACKAGE "$PACKAGE" 2823_ACEOF 2824 2825 2826cat >>confdefs.h <<_ACEOF 2827#define VERSION "$VERSION" 2828_ACEOF 2829 2830# Some tools Automake needs. 2831 2832ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2833 2834 2835AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2836 2837 2838AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2839 2840 2841AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2842 2843 2844MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2845 2846mkdir_p="$MKDIR_P" 2847# We need awk for the "check" target. The system "awk" is bad on 2848# some platforms. 2849# Always define AMTAR for backward compatibility. Yes, it's still used 2850# in the wild :-( We should find a proper way to deprecate it ... 2851AMTAR='$${TAR-tar}' 2852 2853am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2854 2855 2856 2857 2858 2859 2860 2861# Checks for programs. 2862ac_ext=c 2863ac_cpp='$CPP $CPPFLAGS' 2864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2866ac_compiler_gnu=$ac_cv_c_compiler_gnu 2867if test -n "$ac_tool_prefix"; then 2868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2869set dummy ${ac_tool_prefix}gcc; ac_word=$2 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2871$as_echo_n "checking for $ac_word... " >&6; } 2872if ${ac_cv_prog_CC+:} false; then : 2873 $as_echo_n "(cached) " >&6 2874else 2875 if test -n "$CC"; then 2876 ac_cv_prog_CC="$CC" # Let the user override the test. 2877else 2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2879for as_dir in $PATH 2880do 2881 IFS=$as_save_IFS 2882 test -z "$as_dir" && as_dir=. 2883 for ac_exec_ext in '' $ac_executable_extensions; do 2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2885 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2887 break 2 2888 fi 2889done 2890 done 2891IFS=$as_save_IFS 2892 2893fi 2894fi 2895CC=$ac_cv_prog_CC 2896if test -n "$CC"; then 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2898$as_echo "$CC" >&6; } 2899else 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2901$as_echo "no" >&6; } 2902fi 2903 2904 2905fi 2906if test -z "$ac_cv_prog_CC"; then 2907 ac_ct_CC=$CC 2908 # Extract the first word of "gcc", so it can be a program name with args. 2909set dummy gcc; ac_word=$2 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2911$as_echo_n "checking for $ac_word... " >&6; } 2912if ${ac_cv_prog_ac_ct_CC+:} false; then : 2913 $as_echo_n "(cached) " >&6 2914else 2915 if test -n "$ac_ct_CC"; then 2916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2917else 2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2919for as_dir in $PATH 2920do 2921 IFS=$as_save_IFS 2922 test -z "$as_dir" && as_dir=. 2923 for ac_exec_ext in '' $ac_executable_extensions; do 2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2925 ac_cv_prog_ac_ct_CC="gcc" 2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2927 break 2 2928 fi 2929done 2930 done 2931IFS=$as_save_IFS 2932 2933fi 2934fi 2935ac_ct_CC=$ac_cv_prog_ac_ct_CC 2936if test -n "$ac_ct_CC"; then 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2938$as_echo "$ac_ct_CC" >&6; } 2939else 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2941$as_echo "no" >&6; } 2942fi 2943 2944 if test "x$ac_ct_CC" = x; then 2945 CC="" 2946 else 2947 case $cross_compiling:$ac_tool_warned in 2948yes:) 2949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2951ac_tool_warned=yes ;; 2952esac 2953 CC=$ac_ct_CC 2954 fi 2955else 2956 CC="$ac_cv_prog_CC" 2957fi 2958 2959if test -z "$CC"; then 2960 if test -n "$ac_tool_prefix"; then 2961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2962set dummy ${ac_tool_prefix}cc; ac_word=$2 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2964$as_echo_n "checking for $ac_word... " >&6; } 2965if ${ac_cv_prog_CC+:} false; then : 2966 $as_echo_n "(cached) " >&6 2967else 2968 if test -n "$CC"; then 2969 ac_cv_prog_CC="$CC" # Let the user override the test. 2970else 2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2972for as_dir in $PATH 2973do 2974 IFS=$as_save_IFS 2975 test -z "$as_dir" && as_dir=. 2976 for ac_exec_ext in '' $ac_executable_extensions; do 2977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2978 ac_cv_prog_CC="${ac_tool_prefix}cc" 2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2980 break 2 2981 fi 2982done 2983 done 2984IFS=$as_save_IFS 2985 2986fi 2987fi 2988CC=$ac_cv_prog_CC 2989if test -n "$CC"; then 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2991$as_echo "$CC" >&6; } 2992else 2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2994$as_echo "no" >&6; } 2995fi 2996 2997 2998 fi 2999fi 3000if test -z "$CC"; then 3001 # Extract the first word of "cc", so it can be a program name with args. 3002set dummy cc; ac_word=$2 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3004$as_echo_n "checking for $ac_word... " >&6; } 3005if ${ac_cv_prog_CC+:} false; then : 3006 $as_echo_n "(cached) " >&6 3007else 3008 if test -n "$CC"; then 3009 ac_cv_prog_CC="$CC" # Let the user override the test. 3010else 3011 ac_prog_rejected=no 3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3013for as_dir in $PATH 3014do 3015 IFS=$as_save_IFS 3016 test -z "$as_dir" && as_dir=. 3017 for ac_exec_ext in '' $ac_executable_extensions; do 3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3020 ac_prog_rejected=yes 3021 continue 3022 fi 3023 ac_cv_prog_CC="cc" 3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3025 break 2 3026 fi 3027done 3028 done 3029IFS=$as_save_IFS 3030 3031if test $ac_prog_rejected = yes; then 3032 # We found a bogon in the path, so make sure we never use it. 3033 set dummy $ac_cv_prog_CC 3034 shift 3035 if test $# != 0; then 3036 # We chose a different compiler from the bogus one. 3037 # However, it has the same basename, so the bogon will be chosen 3038 # first if we set CC to just the basename; use the full file name. 3039 shift 3040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3041 fi 3042fi 3043fi 3044fi 3045CC=$ac_cv_prog_CC 3046if test -n "$CC"; then 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3048$as_echo "$CC" >&6; } 3049else 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3051$as_echo "no" >&6; } 3052fi 3053 3054 3055fi 3056if test -z "$CC"; then 3057 if test -n "$ac_tool_prefix"; then 3058 for ac_prog in cl.exe 3059 do 3060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3061set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3063$as_echo_n "checking for $ac_word... " >&6; } 3064if ${ac_cv_prog_CC+:} false; then : 3065 $as_echo_n "(cached) " >&6 3066else 3067 if test -n "$CC"; then 3068 ac_cv_prog_CC="$CC" # Let the user override the test. 3069else 3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3071for as_dir in $PATH 3072do 3073 IFS=$as_save_IFS 3074 test -z "$as_dir" && as_dir=. 3075 for ac_exec_ext in '' $ac_executable_extensions; do 3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3079 break 2 3080 fi 3081done 3082 done 3083IFS=$as_save_IFS 3084 3085fi 3086fi 3087CC=$ac_cv_prog_CC 3088if test -n "$CC"; then 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3090$as_echo "$CC" >&6; } 3091else 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3093$as_echo "no" >&6; } 3094fi 3095 3096 3097 test -n "$CC" && break 3098 done 3099fi 3100if test -z "$CC"; then 3101 ac_ct_CC=$CC 3102 for ac_prog in cl.exe 3103do 3104 # Extract the first word of "$ac_prog", so it can be a program name with args. 3105set dummy $ac_prog; ac_word=$2 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3107$as_echo_n "checking for $ac_word... " >&6; } 3108if ${ac_cv_prog_ac_ct_CC+:} false; then : 3109 $as_echo_n "(cached) " >&6 3110else 3111 if test -n "$ac_ct_CC"; then 3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3113else 3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3115for as_dir in $PATH 3116do 3117 IFS=$as_save_IFS 3118 test -z "$as_dir" && as_dir=. 3119 for ac_exec_ext in '' $ac_executable_extensions; do 3120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3121 ac_cv_prog_ac_ct_CC="$ac_prog" 3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3123 break 2 3124 fi 3125done 3126 done 3127IFS=$as_save_IFS 3128 3129fi 3130fi 3131ac_ct_CC=$ac_cv_prog_ac_ct_CC 3132if test -n "$ac_ct_CC"; then 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3134$as_echo "$ac_ct_CC" >&6; } 3135else 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3137$as_echo "no" >&6; } 3138fi 3139 3140 3141 test -n "$ac_ct_CC" && break 3142done 3143 3144 if test "x$ac_ct_CC" = x; then 3145 CC="" 3146 else 3147 case $cross_compiling:$ac_tool_warned in 3148yes:) 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3151ac_tool_warned=yes ;; 3152esac 3153 CC=$ac_ct_CC 3154 fi 3155fi 3156 3157fi 3158 3159 3160test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3162as_fn_error $? "no acceptable C compiler found in \$PATH 3163See \`config.log' for more details" "$LINENO" 5; } 3164 3165# Provide some information about the compiler. 3166$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3167set X $ac_compile 3168ac_compiler=$2 3169for ac_option in --version -v -V -qversion; do 3170 { { ac_try="$ac_compiler $ac_option >&5" 3171case "(($ac_try" in 3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3173 *) ac_try_echo=$ac_try;; 3174esac 3175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3176$as_echo "$ac_try_echo"; } >&5 3177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3178 ac_status=$? 3179 if test -s conftest.err; then 3180 sed '10a\ 3181... rest of stderr output deleted ... 3182 10q' conftest.err >conftest.er1 3183 cat conftest.er1 >&5 3184 fi 3185 rm -f conftest.er1 conftest.err 3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3187 test $ac_status = 0; } 3188done 3189 3190cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3191/* end confdefs.h. */ 3192 3193int 3194main () 3195{ 3196 3197 ; 3198 return 0; 3199} 3200_ACEOF 3201ac_clean_files_save=$ac_clean_files 3202ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3203# Try to create an executable without -o first, disregard a.out. 3204# It will help us diagnose broken compilers, and finding out an intuition 3205# of exeext. 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3207$as_echo_n "checking whether the C compiler works... " >&6; } 3208ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3209 3210# The possible output files: 3211ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3212 3213ac_rmfiles= 3214for ac_file in $ac_files 3215do 3216 case $ac_file in 3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3218 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3219 esac 3220done 3221rm -f $ac_rmfiles 3222 3223if { { ac_try="$ac_link_default" 3224case "(($ac_try" in 3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3226 *) ac_try_echo=$ac_try;; 3227esac 3228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3229$as_echo "$ac_try_echo"; } >&5 3230 (eval "$ac_link_default") 2>&5 3231 ac_status=$? 3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3233 test $ac_status = 0; }; then : 3234 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3235# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3236# in a Makefile. We should not override ac_cv_exeext if it was cached, 3237# so that the user can short-circuit this test for compilers unknown to 3238# Autoconf. 3239for ac_file in $ac_files '' 3240do 3241 test -f "$ac_file" || continue 3242 case $ac_file in 3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3244 ;; 3245 [ab].out ) 3246 # We found the default executable, but exeext='' is most 3247 # certainly right. 3248 break;; 3249 *.* ) 3250 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3251 then :; else 3252 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3253 fi 3254 # We set ac_cv_exeext here because the later test for it is not 3255 # safe: cross compilers may not add the suffix if given an `-o' 3256 # argument, so we may need to know it at that point already. 3257 # Even if this section looks crufty: it has the advantage of 3258 # actually working. 3259 break;; 3260 * ) 3261 break;; 3262 esac 3263done 3264test "$ac_cv_exeext" = no && ac_cv_exeext= 3265 3266else 3267 ac_file='' 3268fi 3269if test -z "$ac_file"; then : 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3271$as_echo "no" >&6; } 3272$as_echo "$as_me: failed program was:" >&5 3273sed 's/^/| /' conftest.$ac_ext >&5 3274 3275{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3277as_fn_error 77 "C compiler cannot create executables 3278See \`config.log' for more details" "$LINENO" 5; } 3279else 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3281$as_echo "yes" >&6; } 3282fi 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3284$as_echo_n "checking for C compiler default output file name... " >&6; } 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3286$as_echo "$ac_file" >&6; } 3287ac_exeext=$ac_cv_exeext 3288 3289rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3290ac_clean_files=$ac_clean_files_save 3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3292$as_echo_n "checking for suffix of executables... " >&6; } 3293if { { ac_try="$ac_link" 3294case "(($ac_try" in 3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3296 *) ac_try_echo=$ac_try;; 3297esac 3298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3299$as_echo "$ac_try_echo"; } >&5 3300 (eval "$ac_link") 2>&5 3301 ac_status=$? 3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3303 test $ac_status = 0; }; then : 3304 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3305# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3306# work properly (i.e., refer to `conftest.exe'), while it won't with 3307# `rm'. 3308for ac_file in conftest.exe conftest conftest.*; do 3309 test -f "$ac_file" || continue 3310 case $ac_file in 3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3312 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3313 break;; 3314 * ) break;; 3315 esac 3316done 3317else 3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3320as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3321See \`config.log' for more details" "$LINENO" 5; } 3322fi 3323rm -f conftest conftest$ac_cv_exeext 3324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3325$as_echo "$ac_cv_exeext" >&6; } 3326 3327rm -f conftest.$ac_ext 3328EXEEXT=$ac_cv_exeext 3329ac_exeext=$EXEEXT 3330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3331/* end confdefs.h. */ 3332#include <stdio.h> 3333int 3334main () 3335{ 3336FILE *f = fopen ("conftest.out", "w"); 3337 return ferror (f) || fclose (f) != 0; 3338 3339 ; 3340 return 0; 3341} 3342_ACEOF 3343ac_clean_files="$ac_clean_files conftest.out" 3344# Check that the compiler produces executables we can run. If not, either 3345# the compiler is broken, or we cross compile. 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3347$as_echo_n "checking whether we are cross compiling... " >&6; } 3348if test "$cross_compiling" != yes; then 3349 { { ac_try="$ac_link" 3350case "(($ac_try" in 3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3352 *) ac_try_echo=$ac_try;; 3353esac 3354eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3355$as_echo "$ac_try_echo"; } >&5 3356 (eval "$ac_link") 2>&5 3357 ac_status=$? 3358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3359 test $ac_status = 0; } 3360 if { ac_try='./conftest$ac_cv_exeext' 3361 { { case "(($ac_try" in 3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3363 *) ac_try_echo=$ac_try;; 3364esac 3365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3366$as_echo "$ac_try_echo"; } >&5 3367 (eval "$ac_try") 2>&5 3368 ac_status=$? 3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3370 test $ac_status = 0; }; }; then 3371 cross_compiling=no 3372 else 3373 if test "$cross_compiling" = maybe; then 3374 cross_compiling=yes 3375 else 3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3378as_fn_error $? "cannot run C compiled programs. 3379If you meant to cross compile, use \`--host'. 3380See \`config.log' for more details" "$LINENO" 5; } 3381 fi 3382 fi 3383fi 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3385$as_echo "$cross_compiling" >&6; } 3386 3387rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3388ac_clean_files=$ac_clean_files_save 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3390$as_echo_n "checking for suffix of object files... " >&6; } 3391if ${ac_cv_objext+:} false; then : 3392 $as_echo_n "(cached) " >&6 3393else 3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3395/* end confdefs.h. */ 3396 3397int 3398main () 3399{ 3400 3401 ; 3402 return 0; 3403} 3404_ACEOF 3405rm -f conftest.o conftest.obj 3406if { { ac_try="$ac_compile" 3407case "(($ac_try" in 3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3409 *) ac_try_echo=$ac_try;; 3410esac 3411eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3412$as_echo "$ac_try_echo"; } >&5 3413 (eval "$ac_compile") 2>&5 3414 ac_status=$? 3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3416 test $ac_status = 0; }; then : 3417 for ac_file in conftest.o conftest.obj conftest.*; do 3418 test -f "$ac_file" || continue; 3419 case $ac_file in 3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3421 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3422 break;; 3423 esac 3424done 3425else 3426 $as_echo "$as_me: failed program was:" >&5 3427sed 's/^/| /' conftest.$ac_ext >&5 3428 3429{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3431as_fn_error $? "cannot compute suffix of object files: cannot compile 3432See \`config.log' for more details" "$LINENO" 5; } 3433fi 3434rm -f conftest.$ac_cv_objext conftest.$ac_ext 3435fi 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3437$as_echo "$ac_cv_objext" >&6; } 3438OBJEXT=$ac_cv_objext 3439ac_objext=$OBJEXT 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3441$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3442if ${ac_cv_c_compiler_gnu+:} false; then : 3443 $as_echo_n "(cached) " >&6 3444else 3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3446/* end confdefs.h. */ 3447 3448int 3449main () 3450{ 3451#ifndef __GNUC__ 3452 choke me 3453#endif 3454 3455 ; 3456 return 0; 3457} 3458_ACEOF 3459if ac_fn_c_try_compile "$LINENO"; then : 3460 ac_compiler_gnu=yes 3461else 3462 ac_compiler_gnu=no 3463fi 3464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3465ac_cv_c_compiler_gnu=$ac_compiler_gnu 3466 3467fi 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3469$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3470if test $ac_compiler_gnu = yes; then 3471 GCC=yes 3472else 3473 GCC= 3474fi 3475ac_test_CFLAGS=${CFLAGS+set} 3476ac_save_CFLAGS=$CFLAGS 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3478$as_echo_n "checking whether $CC accepts -g... " >&6; } 3479if ${ac_cv_prog_cc_g+:} false; then : 3480 $as_echo_n "(cached) " >&6 3481else 3482 ac_save_c_werror_flag=$ac_c_werror_flag 3483 ac_c_werror_flag=yes 3484 ac_cv_prog_cc_g=no 3485 CFLAGS="-g" 3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3487/* end confdefs.h. */ 3488 3489int 3490main () 3491{ 3492 3493 ; 3494 return 0; 3495} 3496_ACEOF 3497if ac_fn_c_try_compile "$LINENO"; then : 3498 ac_cv_prog_cc_g=yes 3499else 3500 CFLAGS="" 3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3502/* end confdefs.h. */ 3503 3504int 3505main () 3506{ 3507 3508 ; 3509 return 0; 3510} 3511_ACEOF 3512if ac_fn_c_try_compile "$LINENO"; then : 3513 3514else 3515 ac_c_werror_flag=$ac_save_c_werror_flag 3516 CFLAGS="-g" 3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3518/* end confdefs.h. */ 3519 3520int 3521main () 3522{ 3523 3524 ; 3525 return 0; 3526} 3527_ACEOF 3528if ac_fn_c_try_compile "$LINENO"; then : 3529 ac_cv_prog_cc_g=yes 3530fi 3531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3532fi 3533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3534fi 3535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3536 ac_c_werror_flag=$ac_save_c_werror_flag 3537fi 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3539$as_echo "$ac_cv_prog_cc_g" >&6; } 3540if test "$ac_test_CFLAGS" = set; then 3541 CFLAGS=$ac_save_CFLAGS 3542elif test $ac_cv_prog_cc_g = yes; then 3543 if test "$GCC" = yes; then 3544 CFLAGS="-g -O2" 3545 else 3546 CFLAGS="-g" 3547 fi 3548else 3549 if test "$GCC" = yes; then 3550 CFLAGS="-O2" 3551 else 3552 CFLAGS= 3553 fi 3554fi 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3556$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3557if ${ac_cv_prog_cc_c89+:} false; then : 3558 $as_echo_n "(cached) " >&6 3559else 3560 ac_cv_prog_cc_c89=no 3561ac_save_CC=$CC 3562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3563/* end confdefs.h. */ 3564#include <stdarg.h> 3565#include <stdio.h> 3566struct stat; 3567/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3568struct buf { int x; }; 3569FILE * (*rcsopen) (struct buf *, struct stat *, int); 3570static char *e (p, i) 3571 char **p; 3572 int i; 3573{ 3574 return p[i]; 3575} 3576static char *f (char * (*g) (char **, int), char **p, ...) 3577{ 3578 char *s; 3579 va_list v; 3580 va_start (v,p); 3581 s = g (p, va_arg (v,int)); 3582 va_end (v); 3583 return s; 3584} 3585 3586/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3587 function prototypes and stuff, but not '\xHH' hex character constants. 3588 These don't provoke an error unfortunately, instead are silently treated 3589 as 'x'. The following induces an error, until -std is added to get 3590 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3591 array size at least. It's necessary to write '\x00'==0 to get something 3592 that's true only with -std. */ 3593int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3594 3595/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3596 inside strings and character constants. */ 3597#define FOO(x) 'x' 3598int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3599 3600int test (int i, double x); 3601struct s1 {int (*f) (int a);}; 3602struct s2 {int (*f) (double a);}; 3603int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3604int argc; 3605char **argv; 3606int 3607main () 3608{ 3609return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3610 ; 3611 return 0; 3612} 3613_ACEOF 3614for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3615 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3616do 3617 CC="$ac_save_CC $ac_arg" 3618 if ac_fn_c_try_compile "$LINENO"; then : 3619 ac_cv_prog_cc_c89=$ac_arg 3620fi 3621rm -f core conftest.err conftest.$ac_objext 3622 test "x$ac_cv_prog_cc_c89" != "xno" && break 3623done 3624rm -f conftest.$ac_ext 3625CC=$ac_save_CC 3626 3627fi 3628# AC_CACHE_VAL 3629case "x$ac_cv_prog_cc_c89" in 3630 x) 3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3632$as_echo "none needed" >&6; } ;; 3633 xno) 3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3635$as_echo "unsupported" >&6; } ;; 3636 *) 3637 CC="$CC $ac_cv_prog_cc_c89" 3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3639$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3640esac 3641if test "x$ac_cv_prog_cc_c89" != xno; then : 3642 3643fi 3644 3645ac_ext=c 3646ac_cpp='$CPP $CPPFLAGS' 3647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3649ac_compiler_gnu=$ac_cv_c_compiler_gnu 3650DEPDIR="${am__leading_dot}deps" 3651 3652ac_config_commands="$ac_config_commands depfiles" 3653 3654 3655am_make=${MAKE-make} 3656cat > confinc << 'END' 3657am__doit: 3658 @echo this is the am__doit target 3659.PHONY: am__doit 3660END 3661# If we don't find an include directive, just comment out the code. 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3663$as_echo_n "checking for style of include used by $am_make... " >&6; } 3664am__include="#" 3665am__quote= 3666_am_result=none 3667# First try GNU make style include. 3668echo "include confinc" > confmf 3669# Ignore all kinds of additional output from 'make'. 3670case `$am_make -s -f confmf 2> /dev/null` in #( 3671*the\ am__doit\ target*) 3672 am__include=include 3673 am__quote= 3674 _am_result=GNU 3675 ;; 3676esac 3677# Now try BSD make style include. 3678if test "$am__include" = "#"; then 3679 echo '.include "confinc"' > confmf 3680 case `$am_make -s -f confmf 2> /dev/null` in #( 3681 *the\ am__doit\ target*) 3682 am__include=.include 3683 am__quote="\"" 3684 _am_result=BSD 3685 ;; 3686 esac 3687fi 3688 3689 3690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3691$as_echo "$_am_result" >&6; } 3692rm -f confinc confmf 3693 3694# Check whether --enable-dependency-tracking was given. 3695if test "${enable_dependency_tracking+set}" = set; then : 3696 enableval=$enable_dependency_tracking; 3697fi 3698 3699if test "x$enable_dependency_tracking" != xno; then 3700 am_depcomp="$ac_aux_dir/depcomp" 3701 AMDEPBACKSLASH='\' 3702 am__nodep='_no' 3703fi 3704 if test "x$enable_dependency_tracking" != xno; then 3705 AMDEP_TRUE= 3706 AMDEP_FALSE='#' 3707else 3708 AMDEP_TRUE='#' 3709 AMDEP_FALSE= 3710fi 3711 3712 3713 3714depcc="$CC" am_compiler_list= 3715 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3717$as_echo_n "checking dependency style of $depcc... " >&6; } 3718if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3719 $as_echo_n "(cached) " >&6 3720else 3721 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3722 # We make a subdir and do the tests there. Otherwise we can end up 3723 # making bogus files that we don't know about and never remove. For 3724 # instance it was reported that on HP-UX the gcc test will end up 3725 # making a dummy file named 'D' -- because '-MD' means "put the output 3726 # in D". 3727 rm -rf conftest.dir 3728 mkdir conftest.dir 3729 # Copy depcomp to subdir because otherwise we won't find it if we're 3730 # using a relative directory. 3731 cp "$am_depcomp" conftest.dir 3732 cd conftest.dir 3733 # We will build objects and dependencies in a subdirectory because 3734 # it helps to detect inapplicable dependency modes. For instance 3735 # both Tru64's cc and ICC support -MD to output dependencies as a 3736 # side effect of compilation, but ICC will put the dependencies in 3737 # the current directory while Tru64 will put them in the object 3738 # directory. 3739 mkdir sub 3740 3741 am_cv_CC_dependencies_compiler_type=none 3742 if test "$am_compiler_list" = ""; then 3743 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3744 fi 3745 am__universal=false 3746 case " $depcc " in #( 3747 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3748 esac 3749 3750 for depmode in $am_compiler_list; do 3751 # Setup a source with many dependencies, because some compilers 3752 # like to wrap large dependency lists on column 80 (with \), and 3753 # we should not choose a depcomp mode which is confused by this. 3754 # 3755 # We need to recreate these files for each test, as the compiler may 3756 # overwrite some of them when testing with obscure command lines. 3757 # This happens at least with the AIX C compiler. 3758 : > sub/conftest.c 3759 for i in 1 2 3 4 5 6; do 3760 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3761 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3762 # Solaris 10 /bin/sh. 3763 echo '/* dummy */' > sub/conftst$i.h 3764 done 3765 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3766 3767 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3768 # mode. It turns out that the SunPro C++ compiler does not properly 3769 # handle '-M -o', and we need to detect this. Also, some Intel 3770 # versions had trouble with output in subdirs. 3771 am__obj=sub/conftest.${OBJEXT-o} 3772 am__minus_obj="-o $am__obj" 3773 case $depmode in 3774 gcc) 3775 # This depmode causes a compiler race in universal mode. 3776 test "$am__universal" = false || continue 3777 ;; 3778 nosideeffect) 3779 # After this tag, mechanisms are not by side-effect, so they'll 3780 # only be used when explicitly requested. 3781 if test "x$enable_dependency_tracking" = xyes; then 3782 continue 3783 else 3784 break 3785 fi 3786 ;; 3787 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3788 # This compiler won't grok '-c -o', but also, the minuso test has 3789 # not run yet. These depmodes are late enough in the game, and 3790 # so weak that their functioning should not be impacted. 3791 am__obj=conftest.${OBJEXT-o} 3792 am__minus_obj= 3793 ;; 3794 none) break ;; 3795 esac 3796 if depmode=$depmode \ 3797 source=sub/conftest.c object=$am__obj \ 3798 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3799 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3800 >/dev/null 2>conftest.err && 3801 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3802 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3803 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3804 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3805 # icc doesn't choke on unknown options, it will just issue warnings 3806 # or remarks (even with -Werror). So we grep stderr for any message 3807 # that says an option was ignored or not supported. 3808 # When given -MP, icc 7.0 and 7.1 complain thusly: 3809 # icc: Command line warning: ignoring option '-M'; no argument required 3810 # The diagnosis changed in icc 8.0: 3811 # icc: Command line remark: option '-MP' not supported 3812 if (grep 'ignoring option' conftest.err || 3813 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3814 am_cv_CC_dependencies_compiler_type=$depmode 3815 break 3816 fi 3817 fi 3818 done 3819 3820 cd .. 3821 rm -rf conftest.dir 3822else 3823 am_cv_CC_dependencies_compiler_type=none 3824fi 3825 3826fi 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3828$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3829CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3830 3831 if 3832 test "x$enable_dependency_tracking" != xno \ 3833 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3834 am__fastdepCC_TRUE= 3835 am__fastdepCC_FALSE='#' 3836else 3837 am__fastdepCC_TRUE='#' 3838 am__fastdepCC_FALSE= 3839fi 3840 3841 3842if test "x$CC" != xcc; then 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 3844$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 3845else 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 3847$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 3848fi 3849set dummy $CC; ac_cc=`$as_echo "$2" | 3850 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3851if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 3852 $as_echo_n "(cached) " >&6 3853else 3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3855/* end confdefs.h. */ 3856 3857int 3858main () 3859{ 3860 3861 ; 3862 return 0; 3863} 3864_ACEOF 3865# Make sure it works both with $CC and with simple cc. 3866# We do the test twice because some compilers refuse to overwrite an 3867# existing .o file with -o, though they will create one. 3868ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3869rm -f conftest2.* 3870if { { case "(($ac_try" in 3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3872 *) ac_try_echo=$ac_try;; 3873esac 3874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3875$as_echo "$ac_try_echo"; } >&5 3876 (eval "$ac_try") 2>&5 3877 ac_status=$? 3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3879 test $ac_status = 0; } && 3880 test -f conftest2.$ac_objext && { { case "(($ac_try" in 3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3882 *) ac_try_echo=$ac_try;; 3883esac 3884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3885$as_echo "$ac_try_echo"; } >&5 3886 (eval "$ac_try") 2>&5 3887 ac_status=$? 3888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3889 test $ac_status = 0; }; 3890then 3891 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 3892 if test "x$CC" != xcc; then 3893 # Test first that cc exists at all. 3894 if { ac_try='cc -c conftest.$ac_ext >&5' 3895 { { case "(($ac_try" in 3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3897 *) ac_try_echo=$ac_try;; 3898esac 3899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3900$as_echo "$ac_try_echo"; } >&5 3901 (eval "$ac_try") 2>&5 3902 ac_status=$? 3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3904 test $ac_status = 0; }; }; then 3905 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3906 rm -f conftest2.* 3907 if { { case "(($ac_try" in 3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3909 *) ac_try_echo=$ac_try;; 3910esac 3911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3912$as_echo "$ac_try_echo"; } >&5 3913 (eval "$ac_try") 2>&5 3914 ac_status=$? 3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3916 test $ac_status = 0; } && 3917 test -f conftest2.$ac_objext && { { case "(($ac_try" in 3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3919 *) ac_try_echo=$ac_try;; 3920esac 3921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3922$as_echo "$ac_try_echo"; } >&5 3923 (eval "$ac_try") 2>&5 3924 ac_status=$? 3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3926 test $ac_status = 0; }; 3927 then 3928 # cc works too. 3929 : 3930 else 3931 # cc exists but doesn't like -o. 3932 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3933 fi 3934 fi 3935 fi 3936else 3937 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3938fi 3939rm -f core conftest* 3940 3941fi 3942if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3944$as_echo "yes" >&6; } 3945else 3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3947$as_echo "no" >&6; } 3948 3949$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 3950 3951fi 3952 3953# FIXME: we rely on the cache variable name because 3954# there is no other way. 3955set dummy $CC 3956am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3957eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 3958if test "$am_t" != yes; then 3959 # Losing compiler, so override with the script. 3960 # FIXME: It is wrong to rewrite CC. 3961 # But if we don't then we get into trouble of one sort or another. 3962 # A longer-term fix would be to have automake use am__CC in this case, 3963 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3964 CC="$am_aux_dir/compile $CC" 3965fi 3966 3967 3968ac_ext=c 3969ac_cpp='$CPP $CPPFLAGS' 3970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3972ac_compiler_gnu=$ac_cv_c_compiler_gnu 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3974$as_echo_n "checking how to run the C preprocessor... " >&6; } 3975# On Suns, sometimes $CPP names a directory. 3976if test -n "$CPP" && test -d "$CPP"; then 3977 CPP= 3978fi 3979if test -z "$CPP"; then 3980 if ${ac_cv_prog_CPP+:} false; then : 3981 $as_echo_n "(cached) " >&6 3982else 3983 # Double quotes because CPP needs to be expanded 3984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3985 do 3986 ac_preproc_ok=false 3987for ac_c_preproc_warn_flag in '' yes 3988do 3989 # Use a header file that comes with gcc, so configuring glibc 3990 # with a fresh cross-compiler works. 3991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3992 # <limits.h> exists even on freestanding compilers. 3993 # On the NeXT, cc -E runs the code through the compiler's parser, 3994 # not just through cpp. "Syntax error" is here to catch this case. 3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3996/* end confdefs.h. */ 3997#ifdef __STDC__ 3998# include <limits.h> 3999#else 4000# include <assert.h> 4001#endif 4002 Syntax error 4003_ACEOF 4004if ac_fn_c_try_cpp "$LINENO"; then : 4005 4006else 4007 # Broken: fails on valid input. 4008continue 4009fi 4010rm -f conftest.err conftest.i conftest.$ac_ext 4011 4012 # OK, works on sane cases. Now check whether nonexistent headers 4013 # can be detected and how. 4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4015/* end confdefs.h. */ 4016#include <ac_nonexistent.h> 4017_ACEOF 4018if ac_fn_c_try_cpp "$LINENO"; then : 4019 # Broken: success on invalid input. 4020continue 4021else 4022 # Passes both tests. 4023ac_preproc_ok=: 4024break 4025fi 4026rm -f conftest.err conftest.i conftest.$ac_ext 4027 4028done 4029# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4030rm -f conftest.i conftest.err conftest.$ac_ext 4031if $ac_preproc_ok; then : 4032 break 4033fi 4034 4035 done 4036 ac_cv_prog_CPP=$CPP 4037 4038fi 4039 CPP=$ac_cv_prog_CPP 4040else 4041 ac_cv_prog_CPP=$CPP 4042fi 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4044$as_echo "$CPP" >&6; } 4045ac_preproc_ok=false 4046for ac_c_preproc_warn_flag in '' yes 4047do 4048 # Use a header file that comes with gcc, so configuring glibc 4049 # with a fresh cross-compiler works. 4050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4051 # <limits.h> exists even on freestanding compilers. 4052 # On the NeXT, cc -E runs the code through the compiler's parser, 4053 # not just through cpp. "Syntax error" is here to catch this case. 4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055/* end confdefs.h. */ 4056#ifdef __STDC__ 4057# include <limits.h> 4058#else 4059# include <assert.h> 4060#endif 4061 Syntax error 4062_ACEOF 4063if ac_fn_c_try_cpp "$LINENO"; then : 4064 4065else 4066 # Broken: fails on valid input. 4067continue 4068fi 4069rm -f conftest.err conftest.i conftest.$ac_ext 4070 4071 # OK, works on sane cases. Now check whether nonexistent headers 4072 # can be detected and how. 4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4074/* end confdefs.h. */ 4075#include <ac_nonexistent.h> 4076_ACEOF 4077if ac_fn_c_try_cpp "$LINENO"; then : 4078 # Broken: success on invalid input. 4079continue 4080else 4081 # Passes both tests. 4082ac_preproc_ok=: 4083break 4084fi 4085rm -f conftest.err conftest.i conftest.$ac_ext 4086 4087done 4088# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4089rm -f conftest.i conftest.err conftest.$ac_ext 4090if $ac_preproc_ok; then : 4091 4092else 4093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4095as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4096See \`config.log' for more details" "$LINENO" 5; } 4097fi 4098 4099ac_ext=c 4100ac_cpp='$CPP $CPPFLAGS' 4101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4103ac_compiler_gnu=$ac_cv_c_compiler_gnu 4104 4105 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4107$as_echo_n "checking whether ln -s works... " >&6; } 4108LN_S=$as_ln_s 4109if test "$LN_S" = "ln -s"; then 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4111$as_echo "yes" >&6; } 4112else 4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4114$as_echo "no, using $LN_S" >&6; } 4115fi 4116 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4118$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4119set x ${MAKE-make} 4120ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4121if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4122 $as_echo_n "(cached) " >&6 4123else 4124 cat >conftest.make <<\_ACEOF 4125SHELL = /bin/sh 4126all: 4127 @echo '@@@%%%=$(MAKE)=@@@%%%' 4128_ACEOF 4129# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4130case `${MAKE-make} -f conftest.make 2>/dev/null` in 4131 *@@@%%%=?*=@@@%%%*) 4132 eval ac_cv_prog_make_${ac_make}_set=yes;; 4133 *) 4134 eval ac_cv_prog_make_${ac_make}_set=no;; 4135esac 4136rm -f conftest.make 4137fi 4138if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4140$as_echo "yes" >&6; } 4141 SET_MAKE= 4142else 4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4144$as_echo "no" >&6; } 4145 SET_MAKE="MAKE=${MAKE-make}" 4146fi 4147 4148# Make sure we can run config.sub. 4149$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4150 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4151 4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4153$as_echo_n "checking build system type... " >&6; } 4154if ${ac_cv_build+:} false; then : 4155 $as_echo_n "(cached) " >&6 4156else 4157 ac_build_alias=$build_alias 4158test "x$ac_build_alias" = x && 4159 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4160test "x$ac_build_alias" = x && 4161 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4162ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4163 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4164 4165fi 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4167$as_echo "$ac_cv_build" >&6; } 4168case $ac_cv_build in 4169*-*-*) ;; 4170*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4171esac 4172build=$ac_cv_build 4173ac_save_IFS=$IFS; IFS='-' 4174set x $ac_cv_build 4175shift 4176build_cpu=$1 4177build_vendor=$2 4178shift; shift 4179# Remember, the first character of IFS is used to create $*, 4180# except with old shells: 4181build_os=$* 4182IFS=$ac_save_IFS 4183case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4184 4185 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4187$as_echo_n "checking host system type... " >&6; } 4188if ${ac_cv_host+:} false; then : 4189 $as_echo_n "(cached) " >&6 4190else 4191 if test "x$host_alias" = x; then 4192 ac_cv_host=$ac_cv_build 4193else 4194 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4195 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4196fi 4197 4198fi 4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4200$as_echo "$ac_cv_host" >&6; } 4201case $ac_cv_host in 4202*-*-*) ;; 4203*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4204esac 4205host=$ac_cv_host 4206ac_save_IFS=$IFS; IFS='-' 4207set x $ac_cv_host 4208shift 4209host_cpu=$1 4210host_vendor=$2 4211shift; shift 4212# Remember, the first character of IFS is used to create $*, 4213# except with old shells: 4214host_os=$* 4215IFS=$ac_save_IFS 4216case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4217 4218 4219enable_win32_dll=yes 4220 4221case $host in 4222*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4223 if test -n "$ac_tool_prefix"; then 4224 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4225set dummy ${ac_tool_prefix}as; ac_word=$2 4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4227$as_echo_n "checking for $ac_word... " >&6; } 4228if ${ac_cv_prog_AS+:} false; then : 4229 $as_echo_n "(cached) " >&6 4230else 4231 if test -n "$AS"; then 4232 ac_cv_prog_AS="$AS" # Let the user override the test. 4233else 4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4235for as_dir in $PATH 4236do 4237 IFS=$as_save_IFS 4238 test -z "$as_dir" && as_dir=. 4239 for ac_exec_ext in '' $ac_executable_extensions; do 4240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4241 ac_cv_prog_AS="${ac_tool_prefix}as" 4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4243 break 2 4244 fi 4245done 4246 done 4247IFS=$as_save_IFS 4248 4249fi 4250fi 4251AS=$ac_cv_prog_AS 4252if test -n "$AS"; then 4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4254$as_echo "$AS" >&6; } 4255else 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4257$as_echo "no" >&6; } 4258fi 4259 4260 4261fi 4262if test -z "$ac_cv_prog_AS"; then 4263 ac_ct_AS=$AS 4264 # Extract the first word of "as", so it can be a program name with args. 4265set dummy as; ac_word=$2 4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4267$as_echo_n "checking for $ac_word... " >&6; } 4268if ${ac_cv_prog_ac_ct_AS+:} false; then : 4269 $as_echo_n "(cached) " >&6 4270else 4271 if test -n "$ac_ct_AS"; then 4272 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4273else 4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4275for as_dir in $PATH 4276do 4277 IFS=$as_save_IFS 4278 test -z "$as_dir" && as_dir=. 4279 for ac_exec_ext in '' $ac_executable_extensions; do 4280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4281 ac_cv_prog_ac_ct_AS="as" 4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4283 break 2 4284 fi 4285done 4286 done 4287IFS=$as_save_IFS 4288 4289fi 4290fi 4291ac_ct_AS=$ac_cv_prog_ac_ct_AS 4292if test -n "$ac_ct_AS"; then 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4294$as_echo "$ac_ct_AS" >&6; } 4295else 4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4297$as_echo "no" >&6; } 4298fi 4299 4300 if test "x$ac_ct_AS" = x; then 4301 AS="false" 4302 else 4303 case $cross_compiling:$ac_tool_warned in 4304yes:) 4305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4307ac_tool_warned=yes ;; 4308esac 4309 AS=$ac_ct_AS 4310 fi 4311else 4312 AS="$ac_cv_prog_AS" 4313fi 4314 4315 if test -n "$ac_tool_prefix"; then 4316 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4317set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4319$as_echo_n "checking for $ac_word... " >&6; } 4320if ${ac_cv_prog_DLLTOOL+:} false; then : 4321 $as_echo_n "(cached) " >&6 4322else 4323 if test -n "$DLLTOOL"; then 4324 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4325else 4326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4327for as_dir in $PATH 4328do 4329 IFS=$as_save_IFS 4330 test -z "$as_dir" && as_dir=. 4331 for ac_exec_ext in '' $ac_executable_extensions; do 4332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4333 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4335 break 2 4336 fi 4337done 4338 done 4339IFS=$as_save_IFS 4340 4341fi 4342fi 4343DLLTOOL=$ac_cv_prog_DLLTOOL 4344if test -n "$DLLTOOL"; then 4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4346$as_echo "$DLLTOOL" >&6; } 4347else 4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4349$as_echo "no" >&6; } 4350fi 4351 4352 4353fi 4354if test -z "$ac_cv_prog_DLLTOOL"; then 4355 ac_ct_DLLTOOL=$DLLTOOL 4356 # Extract the first word of "dlltool", so it can be a program name with args. 4357set dummy dlltool; ac_word=$2 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4359$as_echo_n "checking for $ac_word... " >&6; } 4360if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4361 $as_echo_n "(cached) " >&6 4362else 4363 if test -n "$ac_ct_DLLTOOL"; then 4364 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4365else 4366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4367for as_dir in $PATH 4368do 4369 IFS=$as_save_IFS 4370 test -z "$as_dir" && as_dir=. 4371 for ac_exec_ext in '' $ac_executable_extensions; do 4372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4373 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4375 break 2 4376 fi 4377done 4378 done 4379IFS=$as_save_IFS 4380 4381fi 4382fi 4383ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4384if test -n "$ac_ct_DLLTOOL"; then 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4386$as_echo "$ac_ct_DLLTOOL" >&6; } 4387else 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4389$as_echo "no" >&6; } 4390fi 4391 4392 if test "x$ac_ct_DLLTOOL" = x; then 4393 DLLTOOL="false" 4394 else 4395 case $cross_compiling:$ac_tool_warned in 4396yes:) 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4399ac_tool_warned=yes ;; 4400esac 4401 DLLTOOL=$ac_ct_DLLTOOL 4402 fi 4403else 4404 DLLTOOL="$ac_cv_prog_DLLTOOL" 4405fi 4406 4407 if test -n "$ac_tool_prefix"; then 4408 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4409set dummy ${ac_tool_prefix}objdump; ac_word=$2 4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4411$as_echo_n "checking for $ac_word... " >&6; } 4412if ${ac_cv_prog_OBJDUMP+:} false; then : 4413 $as_echo_n "(cached) " >&6 4414else 4415 if test -n "$OBJDUMP"; then 4416 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4417else 4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4419for as_dir in $PATH 4420do 4421 IFS=$as_save_IFS 4422 test -z "$as_dir" && as_dir=. 4423 for ac_exec_ext in '' $ac_executable_extensions; do 4424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4425 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4427 break 2 4428 fi 4429done 4430 done 4431IFS=$as_save_IFS 4432 4433fi 4434fi 4435OBJDUMP=$ac_cv_prog_OBJDUMP 4436if test -n "$OBJDUMP"; then 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4438$as_echo "$OBJDUMP" >&6; } 4439else 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4441$as_echo "no" >&6; } 4442fi 4443 4444 4445fi 4446if test -z "$ac_cv_prog_OBJDUMP"; then 4447 ac_ct_OBJDUMP=$OBJDUMP 4448 # Extract the first word of "objdump", so it can be a program name with args. 4449set dummy objdump; ac_word=$2 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4451$as_echo_n "checking for $ac_word... " >&6; } 4452if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4453 $as_echo_n "(cached) " >&6 4454else 4455 if test -n "$ac_ct_OBJDUMP"; then 4456 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4457else 4458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4459for as_dir in $PATH 4460do 4461 IFS=$as_save_IFS 4462 test -z "$as_dir" && as_dir=. 4463 for ac_exec_ext in '' $ac_executable_extensions; do 4464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4465 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4467 break 2 4468 fi 4469done 4470 done 4471IFS=$as_save_IFS 4472 4473fi 4474fi 4475ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4476if test -n "$ac_ct_OBJDUMP"; then 4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4478$as_echo "$ac_ct_OBJDUMP" >&6; } 4479else 4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4481$as_echo "no" >&6; } 4482fi 4483 4484 if test "x$ac_ct_OBJDUMP" = x; then 4485 OBJDUMP="false" 4486 else 4487 case $cross_compiling:$ac_tool_warned in 4488yes:) 4489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4491ac_tool_warned=yes ;; 4492esac 4493 OBJDUMP=$ac_ct_OBJDUMP 4494 fi 4495else 4496 OBJDUMP="$ac_cv_prog_OBJDUMP" 4497fi 4498 4499 ;; 4500esac 4501 4502test -z "$AS" && AS=as 4503 4504 4505 4506 4507 4508test -z "$DLLTOOL" && DLLTOOL=dlltool 4509 4510 4511 4512 4513 4514test -z "$OBJDUMP" && OBJDUMP=objdump 4515 4516 4517 4518 4519 4520 4521 4522case `pwd` in 4523 *\ * | *\ *) 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4525$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4526esac 4527 4528 4529 4530macro_version='2.4.2' 4531macro_revision='1.3337' 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545ltmain="$ac_aux_dir/ltmain.sh" 4546 4547# Backslashify metacharacters that are still active within 4548# double-quoted strings. 4549sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4550 4551# Same as above, but do not quote variable references. 4552double_quote_subst='s/\(["`\\]\)/\\\1/g' 4553 4554# Sed substitution to delay expansion of an escaped shell variable in a 4555# double_quote_subst'ed string. 4556delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4557 4558# Sed substitution to delay expansion of an escaped single quote. 4559delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4560 4561# Sed substitution to avoid accidental globbing in evaled expressions 4562no_glob_subst='s/\*/\\\*/g' 4563 4564ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4565ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4566ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4567 4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4569$as_echo_n "checking how to print strings... " >&6; } 4570# Test print first, because it will be a builtin if present. 4571if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4572 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4573 ECHO='print -r --' 4574elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4575 ECHO='printf %s\n' 4576else 4577 # Use this function as a fallback that always works. 4578 func_fallback_echo () 4579 { 4580 eval 'cat <<_LTECHO_EOF 4581$1 4582_LTECHO_EOF' 4583 } 4584 ECHO='func_fallback_echo' 4585fi 4586 4587# func_echo_all arg... 4588# Invoke $ECHO with all args, space-separated. 4589func_echo_all () 4590{ 4591 $ECHO "" 4592} 4593 4594case "$ECHO" in 4595 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4596$as_echo "printf" >&6; } ;; 4597 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4598$as_echo "print -r" >&6; } ;; 4599 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4600$as_echo "cat" >&6; } ;; 4601esac 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4617$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4618if ${ac_cv_path_SED+:} false; then : 4619 $as_echo_n "(cached) " >&6 4620else 4621 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4622 for ac_i in 1 2 3 4 5 6 7; do 4623 ac_script="$ac_script$as_nl$ac_script" 4624 done 4625 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4626 { ac_script=; unset ac_script;} 4627 if test -z "$SED"; then 4628 ac_path_SED_found=false 4629 # Loop through the user's path and test for each of PROGNAME-LIST 4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4631for as_dir in $PATH 4632do 4633 IFS=$as_save_IFS 4634 test -z "$as_dir" && as_dir=. 4635 for ac_prog in sed gsed; do 4636 for ac_exec_ext in '' $ac_executable_extensions; do 4637 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4638 as_fn_executable_p "$ac_path_SED" || continue 4639# Check for GNU ac_path_SED and select it if it is found. 4640 # Check for GNU $ac_path_SED 4641case `"$ac_path_SED" --version 2>&1` in 4642*GNU*) 4643 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4644*) 4645 ac_count=0 4646 $as_echo_n 0123456789 >"conftest.in" 4647 while : 4648 do 4649 cat "conftest.in" "conftest.in" >"conftest.tmp" 4650 mv "conftest.tmp" "conftest.in" 4651 cp "conftest.in" "conftest.nl" 4652 $as_echo '' >> "conftest.nl" 4653 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4655 as_fn_arith $ac_count + 1 && ac_count=$as_val 4656 if test $ac_count -gt ${ac_path_SED_max-0}; then 4657 # Best one so far, save it but keep looking for a better one 4658 ac_cv_path_SED="$ac_path_SED" 4659 ac_path_SED_max=$ac_count 4660 fi 4661 # 10*(2^10) chars as input seems more than enough 4662 test $ac_count -gt 10 && break 4663 done 4664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4665esac 4666 4667 $ac_path_SED_found && break 3 4668 done 4669 done 4670 done 4671IFS=$as_save_IFS 4672 if test -z "$ac_cv_path_SED"; then 4673 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4674 fi 4675else 4676 ac_cv_path_SED=$SED 4677fi 4678 4679fi 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4681$as_echo "$ac_cv_path_SED" >&6; } 4682 SED="$ac_cv_path_SED" 4683 rm -f conftest.sed 4684 4685test -z "$SED" && SED=sed 4686Xsed="$SED -e 1s/^X//" 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4699$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4700if ${ac_cv_path_GREP+:} false; then : 4701 $as_echo_n "(cached) " >&6 4702else 4703 if test -z "$GREP"; then 4704 ac_path_GREP_found=false 4705 # Loop through the user's path and test for each of PROGNAME-LIST 4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4707for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4708do 4709 IFS=$as_save_IFS 4710 test -z "$as_dir" && as_dir=. 4711 for ac_prog in grep ggrep; do 4712 for ac_exec_ext in '' $ac_executable_extensions; do 4713 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4714 as_fn_executable_p "$ac_path_GREP" || continue 4715# Check for GNU ac_path_GREP and select it if it is found. 4716 # Check for GNU $ac_path_GREP 4717case `"$ac_path_GREP" --version 2>&1` in 4718*GNU*) 4719 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4720*) 4721 ac_count=0 4722 $as_echo_n 0123456789 >"conftest.in" 4723 while : 4724 do 4725 cat "conftest.in" "conftest.in" >"conftest.tmp" 4726 mv "conftest.tmp" "conftest.in" 4727 cp "conftest.in" "conftest.nl" 4728 $as_echo 'GREP' >> "conftest.nl" 4729 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4731 as_fn_arith $ac_count + 1 && ac_count=$as_val 4732 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4733 # Best one so far, save it but keep looking for a better one 4734 ac_cv_path_GREP="$ac_path_GREP" 4735 ac_path_GREP_max=$ac_count 4736 fi 4737 # 10*(2^10) chars as input seems more than enough 4738 test $ac_count -gt 10 && break 4739 done 4740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4741esac 4742 4743 $ac_path_GREP_found && break 3 4744 done 4745 done 4746 done 4747IFS=$as_save_IFS 4748 if test -z "$ac_cv_path_GREP"; then 4749 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4750 fi 4751else 4752 ac_cv_path_GREP=$GREP 4753fi 4754 4755fi 4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4757$as_echo "$ac_cv_path_GREP" >&6; } 4758 GREP="$ac_cv_path_GREP" 4759 4760 4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4762$as_echo_n "checking for egrep... " >&6; } 4763if ${ac_cv_path_EGREP+:} false; then : 4764 $as_echo_n "(cached) " >&6 4765else 4766 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4767 then ac_cv_path_EGREP="$GREP -E" 4768 else 4769 if test -z "$EGREP"; then 4770 ac_path_EGREP_found=false 4771 # Loop through the user's path and test for each of PROGNAME-LIST 4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4773for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4774do 4775 IFS=$as_save_IFS 4776 test -z "$as_dir" && as_dir=. 4777 for ac_prog in egrep; do 4778 for ac_exec_ext in '' $ac_executable_extensions; do 4779 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4780 as_fn_executable_p "$ac_path_EGREP" || continue 4781# Check for GNU ac_path_EGREP and select it if it is found. 4782 # Check for GNU $ac_path_EGREP 4783case `"$ac_path_EGREP" --version 2>&1` in 4784*GNU*) 4785 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4786*) 4787 ac_count=0 4788 $as_echo_n 0123456789 >"conftest.in" 4789 while : 4790 do 4791 cat "conftest.in" "conftest.in" >"conftest.tmp" 4792 mv "conftest.tmp" "conftest.in" 4793 cp "conftest.in" "conftest.nl" 4794 $as_echo 'EGREP' >> "conftest.nl" 4795 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4796 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4797 as_fn_arith $ac_count + 1 && ac_count=$as_val 4798 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4799 # Best one so far, save it but keep looking for a better one 4800 ac_cv_path_EGREP="$ac_path_EGREP" 4801 ac_path_EGREP_max=$ac_count 4802 fi 4803 # 10*(2^10) chars as input seems more than enough 4804 test $ac_count -gt 10 && break 4805 done 4806 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4807esac 4808 4809 $ac_path_EGREP_found && break 3 4810 done 4811 done 4812 done 4813IFS=$as_save_IFS 4814 if test -z "$ac_cv_path_EGREP"; then 4815 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4816 fi 4817else 4818 ac_cv_path_EGREP=$EGREP 4819fi 4820 4821 fi 4822fi 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4824$as_echo "$ac_cv_path_EGREP" >&6; } 4825 EGREP="$ac_cv_path_EGREP" 4826 4827 4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4829$as_echo_n "checking for fgrep... " >&6; } 4830if ${ac_cv_path_FGREP+:} false; then : 4831 $as_echo_n "(cached) " >&6 4832else 4833 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4834 then ac_cv_path_FGREP="$GREP -F" 4835 else 4836 if test -z "$FGREP"; then 4837 ac_path_FGREP_found=false 4838 # Loop through the user's path and test for each of PROGNAME-LIST 4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4840for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4841do 4842 IFS=$as_save_IFS 4843 test -z "$as_dir" && as_dir=. 4844 for ac_prog in fgrep; do 4845 for ac_exec_ext in '' $ac_executable_extensions; do 4846 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4847 as_fn_executable_p "$ac_path_FGREP" || continue 4848# Check for GNU ac_path_FGREP and select it if it is found. 4849 # Check for GNU $ac_path_FGREP 4850case `"$ac_path_FGREP" --version 2>&1` in 4851*GNU*) 4852 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4853*) 4854 ac_count=0 4855 $as_echo_n 0123456789 >"conftest.in" 4856 while : 4857 do 4858 cat "conftest.in" "conftest.in" >"conftest.tmp" 4859 mv "conftest.tmp" "conftest.in" 4860 cp "conftest.in" "conftest.nl" 4861 $as_echo 'FGREP' >> "conftest.nl" 4862 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4864 as_fn_arith $ac_count + 1 && ac_count=$as_val 4865 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4866 # Best one so far, save it but keep looking for a better one 4867 ac_cv_path_FGREP="$ac_path_FGREP" 4868 ac_path_FGREP_max=$ac_count 4869 fi 4870 # 10*(2^10) chars as input seems more than enough 4871 test $ac_count -gt 10 && break 4872 done 4873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4874esac 4875 4876 $ac_path_FGREP_found && break 3 4877 done 4878 done 4879 done 4880IFS=$as_save_IFS 4881 if test -z "$ac_cv_path_FGREP"; then 4882 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4883 fi 4884else 4885 ac_cv_path_FGREP=$FGREP 4886fi 4887 4888 fi 4889fi 4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4891$as_echo "$ac_cv_path_FGREP" >&6; } 4892 FGREP="$ac_cv_path_FGREP" 4893 4894 4895test -z "$GREP" && GREP=grep 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915# Check whether --with-gnu-ld was given. 4916if test "${with_gnu_ld+set}" = set; then : 4917 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4918else 4919 with_gnu_ld=no 4920fi 4921 4922ac_prog=ld 4923if test "$GCC" = yes; then 4924 # Check if gcc -print-prog-name=ld gives a path. 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4926$as_echo_n "checking for ld used by $CC... " >&6; } 4927 case $host in 4928 *-*-mingw*) 4929 # gcc leaves a trailing carriage return which upsets mingw 4930 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4931 *) 4932 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4933 esac 4934 case $ac_prog in 4935 # Accept absolute paths. 4936 [\\/]* | ?:[\\/]*) 4937 re_direlt='/[^/][^/]*/\.\./' 4938 # Canonicalize the pathname of ld 4939 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4940 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4941 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4942 done 4943 test -z "$LD" && LD="$ac_prog" 4944 ;; 4945 "") 4946 # If it fails, then pretend we aren't using GCC. 4947 ac_prog=ld 4948 ;; 4949 *) 4950 # If it is relative, then search for the first ld in PATH. 4951 with_gnu_ld=unknown 4952 ;; 4953 esac 4954elif test "$with_gnu_ld" = yes; then 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4956$as_echo_n "checking for GNU ld... " >&6; } 4957else 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4959$as_echo_n "checking for non-GNU ld... " >&6; } 4960fi 4961if ${lt_cv_path_LD+:} false; then : 4962 $as_echo_n "(cached) " >&6 4963else 4964 if test -z "$LD"; then 4965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4966 for ac_dir in $PATH; do 4967 IFS="$lt_save_ifs" 4968 test -z "$ac_dir" && ac_dir=. 4969 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4970 lt_cv_path_LD="$ac_dir/$ac_prog" 4971 # Check to see if the program is GNU ld. I'd rather use --version, 4972 # but apparently some variants of GNU ld only accept -v. 4973 # Break only if it was the GNU/non-GNU ld that we prefer. 4974 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4975 *GNU* | *'with BFD'*) 4976 test "$with_gnu_ld" != no && break 4977 ;; 4978 *) 4979 test "$with_gnu_ld" != yes && break 4980 ;; 4981 esac 4982 fi 4983 done 4984 IFS="$lt_save_ifs" 4985else 4986 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4987fi 4988fi 4989 4990LD="$lt_cv_path_LD" 4991if test -n "$LD"; then 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4993$as_echo "$LD" >&6; } 4994else 4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4996$as_echo "no" >&6; } 4997fi 4998test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5000$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5001if ${lt_cv_prog_gnu_ld+:} false; then : 5002 $as_echo_n "(cached) " >&6 5003else 5004 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5005case `$LD -v 2>&1 </dev/null` in 5006*GNU* | *'with BFD'*) 5007 lt_cv_prog_gnu_ld=yes 5008 ;; 5009*) 5010 lt_cv_prog_gnu_ld=no 5011 ;; 5012esac 5013fi 5014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5015$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5016with_gnu_ld=$lt_cv_prog_gnu_ld 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5027$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5028if ${lt_cv_path_NM+:} false; then : 5029 $as_echo_n "(cached) " >&6 5030else 5031 if test -n "$NM"; then 5032 # Let the user override the test. 5033 lt_cv_path_NM="$NM" 5034else 5035 lt_nm_to_check="${ac_tool_prefix}nm" 5036 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5037 lt_nm_to_check="$lt_nm_to_check nm" 5038 fi 5039 for lt_tmp_nm in $lt_nm_to_check; do 5040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5041 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5042 IFS="$lt_save_ifs" 5043 test -z "$ac_dir" && ac_dir=. 5044 tmp_nm="$ac_dir/$lt_tmp_nm" 5045 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5046 # Check to see if the nm accepts a BSD-compat flag. 5047 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5048 # nm: unknown option "B" ignored 5049 # Tru64's nm complains that /dev/null is an invalid object file 5050 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5051 */dev/null* | *'Invalid file or object type'*) 5052 lt_cv_path_NM="$tmp_nm -B" 5053 break 5054 ;; 5055 *) 5056 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5057 */dev/null*) 5058 lt_cv_path_NM="$tmp_nm -p" 5059 break 5060 ;; 5061 *) 5062 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5063 continue # so that we can try to find one that supports BSD flags 5064 ;; 5065 esac 5066 ;; 5067 esac 5068 fi 5069 done 5070 IFS="$lt_save_ifs" 5071 done 5072 : ${lt_cv_path_NM=no} 5073fi 5074fi 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5076$as_echo "$lt_cv_path_NM" >&6; } 5077if test "$lt_cv_path_NM" != "no"; then 5078 NM="$lt_cv_path_NM" 5079else 5080 # Didn't find any BSD compatible name lister, look for dumpbin. 5081 if test -n "$DUMPBIN"; then : 5082 # Let the user override the test. 5083 else 5084 if test -n "$ac_tool_prefix"; then 5085 for ac_prog in dumpbin "link -dump" 5086 do 5087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5088set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5090$as_echo_n "checking for $ac_word... " >&6; } 5091if ${ac_cv_prog_DUMPBIN+:} false; then : 5092 $as_echo_n "(cached) " >&6 5093else 5094 if test -n "$DUMPBIN"; then 5095 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5096else 5097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5098for as_dir in $PATH 5099do 5100 IFS=$as_save_IFS 5101 test -z "$as_dir" && as_dir=. 5102 for ac_exec_ext in '' $ac_executable_extensions; do 5103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5104 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5106 break 2 5107 fi 5108done 5109 done 5110IFS=$as_save_IFS 5111 5112fi 5113fi 5114DUMPBIN=$ac_cv_prog_DUMPBIN 5115if test -n "$DUMPBIN"; then 5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5117$as_echo "$DUMPBIN" >&6; } 5118else 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5120$as_echo "no" >&6; } 5121fi 5122 5123 5124 test -n "$DUMPBIN" && break 5125 done 5126fi 5127if test -z "$DUMPBIN"; then 5128 ac_ct_DUMPBIN=$DUMPBIN 5129 for ac_prog in dumpbin "link -dump" 5130do 5131 # Extract the first word of "$ac_prog", so it can be a program name with args. 5132set dummy $ac_prog; ac_word=$2 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5134$as_echo_n "checking for $ac_word... " >&6; } 5135if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 if test -n "$ac_ct_DUMPBIN"; then 5139 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5140else 5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5142for as_dir in $PATH 5143do 5144 IFS=$as_save_IFS 5145 test -z "$as_dir" && as_dir=. 5146 for ac_exec_ext in '' $ac_executable_extensions; do 5147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5148 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5150 break 2 5151 fi 5152done 5153 done 5154IFS=$as_save_IFS 5155 5156fi 5157fi 5158ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5159if test -n "$ac_ct_DUMPBIN"; then 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5161$as_echo "$ac_ct_DUMPBIN" >&6; } 5162else 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5164$as_echo "no" >&6; } 5165fi 5166 5167 5168 test -n "$ac_ct_DUMPBIN" && break 5169done 5170 5171 if test "x$ac_ct_DUMPBIN" = x; then 5172 DUMPBIN=":" 5173 else 5174 case $cross_compiling:$ac_tool_warned in 5175yes:) 5176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5178ac_tool_warned=yes ;; 5179esac 5180 DUMPBIN=$ac_ct_DUMPBIN 5181 fi 5182fi 5183 5184 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5185 *COFF*) 5186 DUMPBIN="$DUMPBIN -symbols" 5187 ;; 5188 *) 5189 DUMPBIN=: 5190 ;; 5191 esac 5192 fi 5193 5194 if test "$DUMPBIN" != ":"; then 5195 NM="$DUMPBIN" 5196 fi 5197fi 5198test -z "$NM" && NM=nm 5199 5200 5201 5202 5203 5204 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5206$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5207if ${lt_cv_nm_interface+:} false; then : 5208 $as_echo_n "(cached) " >&6 5209else 5210 lt_cv_nm_interface="BSD nm" 5211 echo "int some_variable = 0;" > conftest.$ac_ext 5212 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5213 (eval "$ac_compile" 2>conftest.err) 5214 cat conftest.err >&5 5215 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5216 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5217 cat conftest.err >&5 5218 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5219 cat conftest.out >&5 5220 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5221 lt_cv_nm_interface="MS dumpbin" 5222 fi 5223 rm -f conftest* 5224fi 5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5226$as_echo "$lt_cv_nm_interface" >&6; } 5227 5228# find the maximum length of command line arguments 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5230$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5231if ${lt_cv_sys_max_cmd_len+:} false; then : 5232 $as_echo_n "(cached) " >&6 5233else 5234 i=0 5235 teststring="ABCD" 5236 5237 case $build_os in 5238 msdosdjgpp*) 5239 # On DJGPP, this test can blow up pretty badly due to problems in libc 5240 # (any single argument exceeding 2000 bytes causes a buffer overrun 5241 # during glob expansion). Even if it were fixed, the result of this 5242 # check would be larger than it should be. 5243 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5244 ;; 5245 5246 gnu*) 5247 # Under GNU Hurd, this test is not required because there is 5248 # no limit to the length of command line arguments. 5249 # Libtool will interpret -1 as no limit whatsoever 5250 lt_cv_sys_max_cmd_len=-1; 5251 ;; 5252 5253 cygwin* | mingw* | cegcc*) 5254 # On Win9x/ME, this test blows up -- it succeeds, but takes 5255 # about 5 minutes as the teststring grows exponentially. 5256 # Worse, since 9x/ME are not pre-emptively multitasking, 5257 # you end up with a "frozen" computer, even though with patience 5258 # the test eventually succeeds (with a max line length of 256k). 5259 # Instead, let's just punt: use the minimum linelength reported by 5260 # all of the supported platforms: 8192 (on NT/2K/XP). 5261 lt_cv_sys_max_cmd_len=8192; 5262 ;; 5263 5264 mint*) 5265 # On MiNT this can take a long time and run out of memory. 5266 lt_cv_sys_max_cmd_len=8192; 5267 ;; 5268 5269 amigaos*) 5270 # On AmigaOS with pdksh, this test takes hours, literally. 5271 # So we just punt and use a minimum line length of 8192. 5272 lt_cv_sys_max_cmd_len=8192; 5273 ;; 5274 5275 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5276 # This has been around since 386BSD, at least. Likely further. 5277 if test -x /sbin/sysctl; then 5278 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5279 elif test -x /usr/sbin/sysctl; then 5280 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5281 else 5282 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5283 fi 5284 # And add a safety zone 5285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5287 ;; 5288 5289 interix*) 5290 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5291 lt_cv_sys_max_cmd_len=196608 5292 ;; 5293 5294 os2*) 5295 # The test takes a long time on OS/2. 5296 lt_cv_sys_max_cmd_len=8192 5297 ;; 5298 5299 osf*) 5300 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5301 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5302 # nice to cause kernel panics so lets avoid the loop below. 5303 # First set a reasonable default. 5304 lt_cv_sys_max_cmd_len=16384 5305 # 5306 if test -x /sbin/sysconfig; then 5307 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5308 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5309 esac 5310 fi 5311 ;; 5312 sco3.2v5*) 5313 lt_cv_sys_max_cmd_len=102400 5314 ;; 5315 sysv5* | sco5v6* | sysv4.2uw2*) 5316 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5317 if test -n "$kargmax"; then 5318 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5319 else 5320 lt_cv_sys_max_cmd_len=32768 5321 fi 5322 ;; 5323 *) 5324 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5325 if test -n "$lt_cv_sys_max_cmd_len"; then 5326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5328 else 5329 # Make teststring a little bigger before we do anything with it. 5330 # a 1K string should be a reasonable start. 5331 for i in 1 2 3 4 5 6 7 8 ; do 5332 teststring=$teststring$teststring 5333 done 5334 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5335 # If test is not a shell built-in, we'll probably end up computing a 5336 # maximum length that is only half of the actual maximum length, but 5337 # we can't tell. 5338 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5339 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5340 test $i != 17 # 1/2 MB should be enough 5341 do 5342 i=`expr $i + 1` 5343 teststring=$teststring$teststring 5344 done 5345 # Only check the string length outside the loop. 5346 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5347 teststring= 5348 # Add a significant safety factor because C++ compilers can tack on 5349 # massive amounts of additional arguments before passing them to the 5350 # linker. It appears as though 1/2 is a usable value. 5351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5352 fi 5353 ;; 5354 esac 5355 5356fi 5357 5358if test -n $lt_cv_sys_max_cmd_len ; then 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5360$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5361else 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5363$as_echo "none" >&6; } 5364fi 5365max_cmd_len=$lt_cv_sys_max_cmd_len 5366 5367 5368 5369 5370 5371 5372: ${CP="cp -f"} 5373: ${MV="mv -f"} 5374: ${RM="rm -f"} 5375 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5377$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5378# Try some XSI features 5379xsi_shell=no 5380( _lt_dummy="a/b/c" 5381 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5382 = c,a/b,b/c, \ 5383 && eval 'test $(( 1 + 1 )) -eq 2 \ 5384 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5385 && xsi_shell=yes 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5387$as_echo "$xsi_shell" >&6; } 5388 5389 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5391$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5392lt_shell_append=no 5393( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5394 >/dev/null 2>&1 \ 5395 && lt_shell_append=yes 5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5397$as_echo "$lt_shell_append" >&6; } 5398 5399 5400if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5401 lt_unset=unset 5402else 5403 lt_unset=false 5404fi 5405 5406 5407 5408 5409 5410# test EBCDIC or ASCII 5411case `echo X|tr X '\101'` in 5412 A) # ASCII based system 5413 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5414 lt_SP2NL='tr \040 \012' 5415 lt_NL2SP='tr \015\012 \040\040' 5416 ;; 5417 *) # EBCDIC based system 5418 lt_SP2NL='tr \100 \n' 5419 lt_NL2SP='tr \r\n \100\100' 5420 ;; 5421esac 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5432$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5433if ${lt_cv_to_host_file_cmd+:} false; then : 5434 $as_echo_n "(cached) " >&6 5435else 5436 case $host in 5437 *-*-mingw* ) 5438 case $build in 5439 *-*-mingw* ) # actually msys 5440 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5441 ;; 5442 *-*-cygwin* ) 5443 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5444 ;; 5445 * ) # otherwise, assume *nix 5446 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5447 ;; 5448 esac 5449 ;; 5450 *-*-cygwin* ) 5451 case $build in 5452 *-*-mingw* ) # actually msys 5453 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5454 ;; 5455 *-*-cygwin* ) 5456 lt_cv_to_host_file_cmd=func_convert_file_noop 5457 ;; 5458 * ) # otherwise, assume *nix 5459 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5460 ;; 5461 esac 5462 ;; 5463 * ) # unhandled hosts (and "normal" native builds) 5464 lt_cv_to_host_file_cmd=func_convert_file_noop 5465 ;; 5466esac 5467 5468fi 5469 5470to_host_file_cmd=$lt_cv_to_host_file_cmd 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5472$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5473 5474 5475 5476 5477 5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5479$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5480if ${lt_cv_to_tool_file_cmd+:} false; then : 5481 $as_echo_n "(cached) " >&6 5482else 5483 #assume ordinary cross tools, or native build. 5484lt_cv_to_tool_file_cmd=func_convert_file_noop 5485case $host in 5486 *-*-mingw* ) 5487 case $build in 5488 *-*-mingw* ) # actually msys 5489 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5490 ;; 5491 esac 5492 ;; 5493esac 5494 5495fi 5496 5497to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5499$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5500 5501 5502 5503 5504 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5506$as_echo_n "checking for $LD option to reload object files... " >&6; } 5507if ${lt_cv_ld_reload_flag+:} false; then : 5508 $as_echo_n "(cached) " >&6 5509else 5510 lt_cv_ld_reload_flag='-r' 5511fi 5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5513$as_echo "$lt_cv_ld_reload_flag" >&6; } 5514reload_flag=$lt_cv_ld_reload_flag 5515case $reload_flag in 5516"" | " "*) ;; 5517*) reload_flag=" $reload_flag" ;; 5518esac 5519reload_cmds='$LD$reload_flag -o $output$reload_objs' 5520case $host_os in 5521 cygwin* | mingw* | pw32* | cegcc*) 5522 if test "$GCC" != yes; then 5523 reload_cmds=false 5524 fi 5525 ;; 5526 darwin*) 5527 if test "$GCC" = yes; then 5528 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5529 else 5530 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5531 fi 5532 ;; 5533esac 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543if test -n "$ac_tool_prefix"; then 5544 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5545set dummy ${ac_tool_prefix}objdump; ac_word=$2 5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5547$as_echo_n "checking for $ac_word... " >&6; } 5548if ${ac_cv_prog_OBJDUMP+:} false; then : 5549 $as_echo_n "(cached) " >&6 5550else 5551 if test -n "$OBJDUMP"; then 5552 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5553else 5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5555for as_dir in $PATH 5556do 5557 IFS=$as_save_IFS 5558 test -z "$as_dir" && as_dir=. 5559 for ac_exec_ext in '' $ac_executable_extensions; do 5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5561 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5563 break 2 5564 fi 5565done 5566 done 5567IFS=$as_save_IFS 5568 5569fi 5570fi 5571OBJDUMP=$ac_cv_prog_OBJDUMP 5572if test -n "$OBJDUMP"; then 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5574$as_echo "$OBJDUMP" >&6; } 5575else 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5577$as_echo "no" >&6; } 5578fi 5579 5580 5581fi 5582if test -z "$ac_cv_prog_OBJDUMP"; then 5583 ac_ct_OBJDUMP=$OBJDUMP 5584 # Extract the first word of "objdump", so it can be a program name with args. 5585set dummy objdump; ac_word=$2 5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5587$as_echo_n "checking for $ac_word... " >&6; } 5588if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5589 $as_echo_n "(cached) " >&6 5590else 5591 if test -n "$ac_ct_OBJDUMP"; then 5592 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5593else 5594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5595for as_dir in $PATH 5596do 5597 IFS=$as_save_IFS 5598 test -z "$as_dir" && as_dir=. 5599 for ac_exec_ext in '' $ac_executable_extensions; do 5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5601 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5603 break 2 5604 fi 5605done 5606 done 5607IFS=$as_save_IFS 5608 5609fi 5610fi 5611ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5612if test -n "$ac_ct_OBJDUMP"; then 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5614$as_echo "$ac_ct_OBJDUMP" >&6; } 5615else 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5617$as_echo "no" >&6; } 5618fi 5619 5620 if test "x$ac_ct_OBJDUMP" = x; then 5621 OBJDUMP="false" 5622 else 5623 case $cross_compiling:$ac_tool_warned in 5624yes:) 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5627ac_tool_warned=yes ;; 5628esac 5629 OBJDUMP=$ac_ct_OBJDUMP 5630 fi 5631else 5632 OBJDUMP="$ac_cv_prog_OBJDUMP" 5633fi 5634 5635test -z "$OBJDUMP" && OBJDUMP=objdump 5636 5637 5638 5639 5640 5641 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5643$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5644if ${lt_cv_deplibs_check_method+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646else 5647 lt_cv_file_magic_cmd='$MAGIC_CMD' 5648lt_cv_file_magic_test_file= 5649lt_cv_deplibs_check_method='unknown' 5650# Need to set the preceding variable on all platforms that support 5651# interlibrary dependencies. 5652# 'none' -- dependencies not supported. 5653# `unknown' -- same as none, but documents that we really don't know. 5654# 'pass_all' -- all dependencies passed with no checks. 5655# 'test_compile' -- check by making test program. 5656# 'file_magic [[regex]]' -- check by looking for files in library path 5657# which responds to the $file_magic_cmd with a given extended regex. 5658# If you have `file' or equivalent on your system and you're not sure 5659# whether `pass_all' will *always* work, you probably want this one. 5660 5661case $host_os in 5662aix[4-9]*) 5663 lt_cv_deplibs_check_method=pass_all 5664 ;; 5665 5666beos*) 5667 lt_cv_deplibs_check_method=pass_all 5668 ;; 5669 5670bsdi[45]*) 5671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5672 lt_cv_file_magic_cmd='/usr/bin/file -L' 5673 lt_cv_file_magic_test_file=/shlib/libc.so 5674 ;; 5675 5676cygwin*) 5677 # func_win32_libid is a shell function defined in ltmain.sh 5678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5679 lt_cv_file_magic_cmd='func_win32_libid' 5680 ;; 5681 5682mingw* | pw32*) 5683 # Base MSYS/MinGW do not provide the 'file' command needed by 5684 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5685 # unless we find 'file', for example because we are cross-compiling. 5686 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5687 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5688 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5689 lt_cv_file_magic_cmd='func_win32_libid' 5690 else 5691 # Keep this pattern in sync with the one in func_win32_libid. 5692 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5693 lt_cv_file_magic_cmd='$OBJDUMP -f' 5694 fi 5695 ;; 5696 5697cegcc*) 5698 # use the weaker test based on 'objdump'. See mingw*. 5699 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5700 lt_cv_file_magic_cmd='$OBJDUMP -f' 5701 ;; 5702 5703darwin* | rhapsody*) 5704 lt_cv_deplibs_check_method=pass_all 5705 ;; 5706 5707freebsd* | dragonfly*) 5708 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5709 case $host_cpu in 5710 i*86 ) 5711 # Not sure whether the presence of OpenBSD here was a mistake. 5712 # Let's accept both of them until this is cleared up. 5713 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5714 lt_cv_file_magic_cmd=/usr/bin/file 5715 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5716 ;; 5717 esac 5718 else 5719 lt_cv_deplibs_check_method=pass_all 5720 fi 5721 ;; 5722 5723gnu*) 5724 lt_cv_deplibs_check_method=pass_all 5725 ;; 5726 5727haiku*) 5728 lt_cv_deplibs_check_method=pass_all 5729 ;; 5730 5731hpux10.20* | hpux11*) 5732 lt_cv_file_magic_cmd=/usr/bin/file 5733 case $host_cpu in 5734 ia64*) 5735 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5736 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5737 ;; 5738 hppa*64*) 5739 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]' 5740 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5741 ;; 5742 *) 5743 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5744 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5745 ;; 5746 esac 5747 ;; 5748 5749interix[3-9]*) 5750 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5752 ;; 5753 5754irix5* | irix6* | nonstopux*) 5755 case $LD in 5756 *-32|*"-32 ") libmagic=32-bit;; 5757 *-n32|*"-n32 ") libmagic=N32;; 5758 *-64|*"-64 ") libmagic=64-bit;; 5759 *) libmagic=never-match;; 5760 esac 5761 lt_cv_deplibs_check_method=pass_all 5762 ;; 5763 5764# This must be glibc/ELF. 5765linux* | k*bsd*-gnu | kopensolaris*-gnu) 5766 lt_cv_deplibs_check_method=pass_all 5767 ;; 5768 5769netbsd*) 5770 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5772 else 5773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5774 fi 5775 ;; 5776 5777newos6*) 5778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5779 lt_cv_file_magic_cmd=/usr/bin/file 5780 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5781 ;; 5782 5783*nto* | *qnx*) 5784 lt_cv_deplibs_check_method=pass_all 5785 ;; 5786 5787openbsd*) 5788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5790 else 5791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5792 fi 5793 ;; 5794 5795osf3* | osf4* | osf5*) 5796 lt_cv_deplibs_check_method=pass_all 5797 ;; 5798 5799rdos*) 5800 lt_cv_deplibs_check_method=pass_all 5801 ;; 5802 5803solaris*) 5804 lt_cv_deplibs_check_method=pass_all 5805 ;; 5806 5807sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5808 lt_cv_deplibs_check_method=pass_all 5809 ;; 5810 5811sysv4 | sysv4.3*) 5812 case $host_vendor in 5813 motorola) 5814 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]' 5815 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5816 ;; 5817 ncr) 5818 lt_cv_deplibs_check_method=pass_all 5819 ;; 5820 sequent) 5821 lt_cv_file_magic_cmd='/bin/file' 5822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5823 ;; 5824 sni) 5825 lt_cv_file_magic_cmd='/bin/file' 5826 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5827 lt_cv_file_magic_test_file=/lib/libc.so 5828 ;; 5829 siemens) 5830 lt_cv_deplibs_check_method=pass_all 5831 ;; 5832 pc) 5833 lt_cv_deplibs_check_method=pass_all 5834 ;; 5835 esac 5836 ;; 5837 5838tpf*) 5839 lt_cv_deplibs_check_method=pass_all 5840 ;; 5841esac 5842 5843fi 5844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5845$as_echo "$lt_cv_deplibs_check_method" >&6; } 5846 5847file_magic_glob= 5848want_nocaseglob=no 5849if test "$build" = "$host"; then 5850 case $host_os in 5851 mingw* | pw32*) 5852 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5853 want_nocaseglob=yes 5854 else 5855 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5856 fi 5857 ;; 5858 esac 5859fi 5860 5861file_magic_cmd=$lt_cv_file_magic_cmd 5862deplibs_check_method=$lt_cv_deplibs_check_method 5863test -z "$deplibs_check_method" && deplibs_check_method=unknown 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886if test -n "$ac_tool_prefix"; then 5887 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5888set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5890$as_echo_n "checking for $ac_word... " >&6; } 5891if ${ac_cv_prog_DLLTOOL+:} false; then : 5892 $as_echo_n "(cached) " >&6 5893else 5894 if test -n "$DLLTOOL"; then 5895 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5896else 5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5898for as_dir in $PATH 5899do 5900 IFS=$as_save_IFS 5901 test -z "$as_dir" && as_dir=. 5902 for ac_exec_ext in '' $ac_executable_extensions; do 5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5904 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5906 break 2 5907 fi 5908done 5909 done 5910IFS=$as_save_IFS 5911 5912fi 5913fi 5914DLLTOOL=$ac_cv_prog_DLLTOOL 5915if test -n "$DLLTOOL"; then 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5917$as_echo "$DLLTOOL" >&6; } 5918else 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5920$as_echo "no" >&6; } 5921fi 5922 5923 5924fi 5925if test -z "$ac_cv_prog_DLLTOOL"; then 5926 ac_ct_DLLTOOL=$DLLTOOL 5927 # Extract the first word of "dlltool", so it can be a program name with args. 5928set dummy dlltool; ac_word=$2 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5930$as_echo_n "checking for $ac_word... " >&6; } 5931if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933else 5934 if test -n "$ac_ct_DLLTOOL"; then 5935 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5936else 5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5938for as_dir in $PATH 5939do 5940 IFS=$as_save_IFS 5941 test -z "$as_dir" && as_dir=. 5942 for ac_exec_ext in '' $ac_executable_extensions; do 5943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5944 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5946 break 2 5947 fi 5948done 5949 done 5950IFS=$as_save_IFS 5951 5952fi 5953fi 5954ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5955if test -n "$ac_ct_DLLTOOL"; then 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5957$as_echo "$ac_ct_DLLTOOL" >&6; } 5958else 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5960$as_echo "no" >&6; } 5961fi 5962 5963 if test "x$ac_ct_DLLTOOL" = x; then 5964 DLLTOOL="false" 5965 else 5966 case $cross_compiling:$ac_tool_warned in 5967yes:) 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5970ac_tool_warned=yes ;; 5971esac 5972 DLLTOOL=$ac_ct_DLLTOOL 5973 fi 5974else 5975 DLLTOOL="$ac_cv_prog_DLLTOOL" 5976fi 5977 5978test -z "$DLLTOOL" && DLLTOOL=dlltool 5979 5980 5981 5982 5983 5984 5985 5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5987$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5988if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5989 $as_echo_n "(cached) " >&6 5990else 5991 lt_cv_sharedlib_from_linklib_cmd='unknown' 5992 5993case $host_os in 5994cygwin* | mingw* | pw32* | cegcc*) 5995 # two different shell functions defined in ltmain.sh 5996 # decide which to use based on capabilities of $DLLTOOL 5997 case `$DLLTOOL --help 2>&1` in 5998 *--identify-strict*) 5999 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6000 ;; 6001 *) 6002 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6003 ;; 6004 esac 6005 ;; 6006*) 6007 # fallback: assume linklib IS sharedlib 6008 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6009 ;; 6010esac 6011 6012fi 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6014$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6015sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6016test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6017 6018 6019 6020 6021 6022 6023 6024 6025if test -n "$ac_tool_prefix"; then 6026 for ac_prog in ar 6027 do 6028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6029set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6031$as_echo_n "checking for $ac_word... " >&6; } 6032if ${ac_cv_prog_AR+:} false; then : 6033 $as_echo_n "(cached) " >&6 6034else 6035 if test -n "$AR"; then 6036 ac_cv_prog_AR="$AR" # Let the user override the test. 6037else 6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6039for as_dir in $PATH 6040do 6041 IFS=$as_save_IFS 6042 test -z "$as_dir" && as_dir=. 6043 for ac_exec_ext in '' $ac_executable_extensions; do 6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6045 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6047 break 2 6048 fi 6049done 6050 done 6051IFS=$as_save_IFS 6052 6053fi 6054fi 6055AR=$ac_cv_prog_AR 6056if test -n "$AR"; then 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6058$as_echo "$AR" >&6; } 6059else 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6061$as_echo "no" >&6; } 6062fi 6063 6064 6065 test -n "$AR" && break 6066 done 6067fi 6068if test -z "$AR"; then 6069 ac_ct_AR=$AR 6070 for ac_prog in ar 6071do 6072 # Extract the first word of "$ac_prog", so it can be a program name with args. 6073set dummy $ac_prog; ac_word=$2 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6075$as_echo_n "checking for $ac_word... " >&6; } 6076if ${ac_cv_prog_ac_ct_AR+:} false; then : 6077 $as_echo_n "(cached) " >&6 6078else 6079 if test -n "$ac_ct_AR"; then 6080 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6081else 6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6083for as_dir in $PATH 6084do 6085 IFS=$as_save_IFS 6086 test -z "$as_dir" && as_dir=. 6087 for ac_exec_ext in '' $ac_executable_extensions; do 6088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6089 ac_cv_prog_ac_ct_AR="$ac_prog" 6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6091 break 2 6092 fi 6093done 6094 done 6095IFS=$as_save_IFS 6096 6097fi 6098fi 6099ac_ct_AR=$ac_cv_prog_ac_ct_AR 6100if test -n "$ac_ct_AR"; then 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6102$as_echo "$ac_ct_AR" >&6; } 6103else 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6105$as_echo "no" >&6; } 6106fi 6107 6108 6109 test -n "$ac_ct_AR" && break 6110done 6111 6112 if test "x$ac_ct_AR" = x; then 6113 AR="false" 6114 else 6115 case $cross_compiling:$ac_tool_warned in 6116yes:) 6117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6119ac_tool_warned=yes ;; 6120esac 6121 AR=$ac_ct_AR 6122 fi 6123fi 6124 6125: ${AR=ar} 6126: ${AR_FLAGS=cru} 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6139$as_echo_n "checking for archiver @FILE support... " >&6; } 6140if ${lt_cv_ar_at_file+:} false; then : 6141 $as_echo_n "(cached) " >&6 6142else 6143 lt_cv_ar_at_file=no 6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6145/* end confdefs.h. */ 6146 6147int 6148main () 6149{ 6150 6151 ; 6152 return 0; 6153} 6154_ACEOF 6155if ac_fn_c_try_compile "$LINENO"; then : 6156 echo conftest.$ac_objext > conftest.lst 6157 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6159 (eval $lt_ar_try) 2>&5 6160 ac_status=$? 6161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6162 test $ac_status = 0; } 6163 if test "$ac_status" -eq 0; then 6164 # Ensure the archiver fails upon bogus file names. 6165 rm -f conftest.$ac_objext libconftest.a 6166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6167 (eval $lt_ar_try) 2>&5 6168 ac_status=$? 6169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6170 test $ac_status = 0; } 6171 if test "$ac_status" -ne 0; then 6172 lt_cv_ar_at_file=@ 6173 fi 6174 fi 6175 rm -f conftest.* libconftest.a 6176 6177fi 6178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6179 6180fi 6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6182$as_echo "$lt_cv_ar_at_file" >&6; } 6183 6184if test "x$lt_cv_ar_at_file" = xno; then 6185 archiver_list_spec= 6186else 6187 archiver_list_spec=$lt_cv_ar_at_file 6188fi 6189 6190 6191 6192 6193 6194 6195 6196if test -n "$ac_tool_prefix"; then 6197 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6198set dummy ${ac_tool_prefix}strip; ac_word=$2 6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6200$as_echo_n "checking for $ac_word... " >&6; } 6201if ${ac_cv_prog_STRIP+:} false; then : 6202 $as_echo_n "(cached) " >&6 6203else 6204 if test -n "$STRIP"; then 6205 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6206else 6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6208for as_dir in $PATH 6209do 6210 IFS=$as_save_IFS 6211 test -z "$as_dir" && as_dir=. 6212 for ac_exec_ext in '' $ac_executable_extensions; do 6213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6214 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6216 break 2 6217 fi 6218done 6219 done 6220IFS=$as_save_IFS 6221 6222fi 6223fi 6224STRIP=$ac_cv_prog_STRIP 6225if test -n "$STRIP"; then 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6227$as_echo "$STRIP" >&6; } 6228else 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6230$as_echo "no" >&6; } 6231fi 6232 6233 6234fi 6235if test -z "$ac_cv_prog_STRIP"; then 6236 ac_ct_STRIP=$STRIP 6237 # Extract the first word of "strip", so it can be a program name with args. 6238set dummy strip; ac_word=$2 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6240$as_echo_n "checking for $ac_word... " >&6; } 6241if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 if test -n "$ac_ct_STRIP"; then 6245 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6246else 6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6248for as_dir in $PATH 6249do 6250 IFS=$as_save_IFS 6251 test -z "$as_dir" && as_dir=. 6252 for ac_exec_ext in '' $ac_executable_extensions; do 6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6254 ac_cv_prog_ac_ct_STRIP="strip" 6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6256 break 2 6257 fi 6258done 6259 done 6260IFS=$as_save_IFS 6261 6262fi 6263fi 6264ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6265if test -n "$ac_ct_STRIP"; then 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6267$as_echo "$ac_ct_STRIP" >&6; } 6268else 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6270$as_echo "no" >&6; } 6271fi 6272 6273 if test "x$ac_ct_STRIP" = x; then 6274 STRIP=":" 6275 else 6276 case $cross_compiling:$ac_tool_warned in 6277yes:) 6278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6280ac_tool_warned=yes ;; 6281esac 6282 STRIP=$ac_ct_STRIP 6283 fi 6284else 6285 STRIP="$ac_cv_prog_STRIP" 6286fi 6287 6288test -z "$STRIP" && STRIP=: 6289 6290 6291 6292 6293 6294 6295if test -n "$ac_tool_prefix"; then 6296 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6297set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6299$as_echo_n "checking for $ac_word... " >&6; } 6300if ${ac_cv_prog_RANLIB+:} false; then : 6301 $as_echo_n "(cached) " >&6 6302else 6303 if test -n "$RANLIB"; then 6304 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6305else 6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6307for as_dir in $PATH 6308do 6309 IFS=$as_save_IFS 6310 test -z "$as_dir" && as_dir=. 6311 for ac_exec_ext in '' $ac_executable_extensions; do 6312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6313 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6315 break 2 6316 fi 6317done 6318 done 6319IFS=$as_save_IFS 6320 6321fi 6322fi 6323RANLIB=$ac_cv_prog_RANLIB 6324if test -n "$RANLIB"; then 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6326$as_echo "$RANLIB" >&6; } 6327else 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6329$as_echo "no" >&6; } 6330fi 6331 6332 6333fi 6334if test -z "$ac_cv_prog_RANLIB"; then 6335 ac_ct_RANLIB=$RANLIB 6336 # Extract the first word of "ranlib", so it can be a program name with args. 6337set dummy ranlib; ac_word=$2 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6339$as_echo_n "checking for $ac_word... " >&6; } 6340if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6341 $as_echo_n "(cached) " >&6 6342else 6343 if test -n "$ac_ct_RANLIB"; then 6344 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6345else 6346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6347for as_dir in $PATH 6348do 6349 IFS=$as_save_IFS 6350 test -z "$as_dir" && as_dir=. 6351 for ac_exec_ext in '' $ac_executable_extensions; do 6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6353 ac_cv_prog_ac_ct_RANLIB="ranlib" 6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6355 break 2 6356 fi 6357done 6358 done 6359IFS=$as_save_IFS 6360 6361fi 6362fi 6363ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6364if test -n "$ac_ct_RANLIB"; then 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6366$as_echo "$ac_ct_RANLIB" >&6; } 6367else 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6369$as_echo "no" >&6; } 6370fi 6371 6372 if test "x$ac_ct_RANLIB" = x; then 6373 RANLIB=":" 6374 else 6375 case $cross_compiling:$ac_tool_warned in 6376yes:) 6377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6379ac_tool_warned=yes ;; 6380esac 6381 RANLIB=$ac_ct_RANLIB 6382 fi 6383else 6384 RANLIB="$ac_cv_prog_RANLIB" 6385fi 6386 6387test -z "$RANLIB" && RANLIB=: 6388 6389 6390 6391 6392 6393 6394# Determine commands to create old-style static archives. 6395old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6396old_postinstall_cmds='chmod 644 $oldlib' 6397old_postuninstall_cmds= 6398 6399if test -n "$RANLIB"; then 6400 case $host_os in 6401 openbsd*) 6402 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6403 ;; 6404 *) 6405 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6406 ;; 6407 esac 6408 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6409fi 6410 6411case $host_os in 6412 darwin*) 6413 lock_old_archive_extraction=yes ;; 6414 *) 6415 lock_old_archive_extraction=no ;; 6416esac 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456# If no C compiler was specified, use CC. 6457LTCC=${LTCC-"$CC"} 6458 6459# If no C compiler flags were specified, use CFLAGS. 6460LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6461 6462# Allow CC to be a program name with arguments. 6463compiler=$CC 6464 6465 6466# Check for command to grab the raw symbol name followed by C symbol from nm. 6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6468$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6469if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6470 $as_echo_n "(cached) " >&6 6471else 6472 6473# These are sane defaults that work on at least a few old systems. 6474# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6475 6476# Character class describing NM global symbol codes. 6477symcode='[BCDEGRST]' 6478 6479# Regexp to match symbols that can be accessed directly from C. 6480sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6481 6482# Define system-specific variables. 6483case $host_os in 6484aix*) 6485 symcode='[BCDT]' 6486 ;; 6487cygwin* | mingw* | pw32* | cegcc*) 6488 symcode='[ABCDGISTW]' 6489 ;; 6490hpux*) 6491 if test "$host_cpu" = ia64; then 6492 symcode='[ABCDEGRST]' 6493 fi 6494 ;; 6495irix* | nonstopux*) 6496 symcode='[BCDEGRST]' 6497 ;; 6498osf*) 6499 symcode='[BCDEGQRST]' 6500 ;; 6501solaris*) 6502 symcode='[BDRT]' 6503 ;; 6504sco3.2v5*) 6505 symcode='[DT]' 6506 ;; 6507sysv4.2uw2*) 6508 symcode='[DT]' 6509 ;; 6510sysv5* | sco5v6* | unixware* | OpenUNIX*) 6511 symcode='[ABDT]' 6512 ;; 6513sysv4) 6514 symcode='[DFNSTU]' 6515 ;; 6516esac 6517 6518# If we're using GNU nm, then use its standard symbol codes. 6519case `$NM -V 2>&1` in 6520*GNU* | *'with BFD'*) 6521 symcode='[ABCDGIRSTW]' ;; 6522esac 6523 6524# Transform an extracted symbol line into a proper C declaration. 6525# Some systems (esp. on ia64) link data and code symbols differently, 6526# so use this general approach. 6527lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6528 6529# Transform an extracted symbol line into symbol name and symbol address 6530lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6531lt_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'" 6532 6533# Handle CRLF in mingw tool chain 6534opt_cr= 6535case $build_os in 6536mingw*) 6537 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6538 ;; 6539esac 6540 6541# Try without a prefix underscore, then with it. 6542for ac_symprfx in "" "_"; do 6543 6544 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6545 symxfrm="\\1 $ac_symprfx\\2 \\2" 6546 6547 # Write the raw and C identifiers. 6548 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6549 # Fake it for dumpbin and say T for any non-static function 6550 # and D for any global variable. 6551 # Also find C++ and __fastcall symbols from MSVC++, 6552 # which start with @ or ?. 6553 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6554" {last_section=section; section=\$ 3};"\ 6555" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6556" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6557" \$ 0!~/External *\|/{next};"\ 6558" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6559" {if(hide[section]) next};"\ 6560" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6561" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6562" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6563" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6564" ' prfx=^$ac_symprfx" 6565 else 6566 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6567 fi 6568 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6569 6570 # Check to see that the pipe works correctly. 6571 pipe_works=no 6572 6573 rm -f conftest* 6574 cat > conftest.$ac_ext <<_LT_EOF 6575#ifdef __cplusplus 6576extern "C" { 6577#endif 6578char nm_test_var; 6579void nm_test_func(void); 6580void nm_test_func(void){} 6581#ifdef __cplusplus 6582} 6583#endif 6584int main(){nm_test_var='a';nm_test_func();return(0);} 6585_LT_EOF 6586 6587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6588 (eval $ac_compile) 2>&5 6589 ac_status=$? 6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6591 test $ac_status = 0; }; then 6592 # Now try to grab the symbols. 6593 nlist=conftest.nm 6594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6595 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6596 ac_status=$? 6597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6598 test $ac_status = 0; } && test -s "$nlist"; then 6599 # Try sorting and uniquifying the output. 6600 if sort "$nlist" | uniq > "$nlist"T; then 6601 mv -f "$nlist"T "$nlist" 6602 else 6603 rm -f "$nlist"T 6604 fi 6605 6606 # Make sure that we snagged all the symbols we need. 6607 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6608 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6609 cat <<_LT_EOF > conftest.$ac_ext 6610/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6611#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6612/* DATA imports from DLLs on WIN32 con't be const, because runtime 6613 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6614# define LT_DLSYM_CONST 6615#elif defined(__osf__) 6616/* This system does not cope well with relocations in const data. */ 6617# define LT_DLSYM_CONST 6618#else 6619# define LT_DLSYM_CONST const 6620#endif 6621 6622#ifdef __cplusplus 6623extern "C" { 6624#endif 6625 6626_LT_EOF 6627 # Now generate the symbol file. 6628 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6629 6630 cat <<_LT_EOF >> conftest.$ac_ext 6631 6632/* The mapping between symbol names and symbols. */ 6633LT_DLSYM_CONST struct { 6634 const char *name; 6635 void *address; 6636} 6637lt__PROGRAM__LTX_preloaded_symbols[] = 6638{ 6639 { "@PROGRAM@", (void *) 0 }, 6640_LT_EOF 6641 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6642 cat <<\_LT_EOF >> conftest.$ac_ext 6643 {0, (void *) 0} 6644}; 6645 6646/* This works around a problem in FreeBSD linker */ 6647#ifdef FREEBSD_WORKAROUND 6648static const void *lt_preloaded_setup() { 6649 return lt__PROGRAM__LTX_preloaded_symbols; 6650} 6651#endif 6652 6653#ifdef __cplusplus 6654} 6655#endif 6656_LT_EOF 6657 # Now try linking the two files. 6658 mv conftest.$ac_objext conftstm.$ac_objext 6659 lt_globsym_save_LIBS=$LIBS 6660 lt_globsym_save_CFLAGS=$CFLAGS 6661 LIBS="conftstm.$ac_objext" 6662 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6664 (eval $ac_link) 2>&5 6665 ac_status=$? 6666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6667 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6668 pipe_works=yes 6669 fi 6670 LIBS=$lt_globsym_save_LIBS 6671 CFLAGS=$lt_globsym_save_CFLAGS 6672 else 6673 echo "cannot find nm_test_func in $nlist" >&5 6674 fi 6675 else 6676 echo "cannot find nm_test_var in $nlist" >&5 6677 fi 6678 else 6679 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6680 fi 6681 else 6682 echo "$progname: failed program was:" >&5 6683 cat conftest.$ac_ext >&5 6684 fi 6685 rm -rf conftest* conftst* 6686 6687 # Do not use the global_symbol_pipe unless it works. 6688 if test "$pipe_works" = yes; then 6689 break 6690 else 6691 lt_cv_sys_global_symbol_pipe= 6692 fi 6693done 6694 6695fi 6696 6697if test -z "$lt_cv_sys_global_symbol_pipe"; then 6698 lt_cv_sys_global_symbol_to_cdecl= 6699fi 6700if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6702$as_echo "failed" >&6; } 6703else 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6705$as_echo "ok" >&6; } 6706fi 6707 6708# Response file support. 6709if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6710 nm_file_list_spec='@' 6711elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6712 nm_file_list_spec='@' 6713fi 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6742$as_echo_n "checking for sysroot... " >&6; } 6743 6744# Check whether --with-sysroot was given. 6745if test "${with_sysroot+set}" = set; then : 6746 withval=$with_sysroot; 6747else 6748 with_sysroot=no 6749fi 6750 6751 6752lt_sysroot= 6753case ${with_sysroot} in #( 6754 yes) 6755 if test "$GCC" = yes; then 6756 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6757 fi 6758 ;; #( 6759 /*) 6760 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6761 ;; #( 6762 no|'') 6763 ;; #( 6764 *) 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6766$as_echo "${with_sysroot}" >&6; } 6767 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6768 ;; 6769esac 6770 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6772$as_echo "${lt_sysroot:-no}" >&6; } 6773 6774 6775 6776 6777 6778# Check whether --enable-libtool-lock was given. 6779if test "${enable_libtool_lock+set}" = set; then : 6780 enableval=$enable_libtool_lock; 6781fi 6782 6783test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6784 6785# Some flags need to be propagated to the compiler or linker for good 6786# libtool support. 6787case $host in 6788ia64-*-hpux*) 6789 # Find out which ABI we are using. 6790 echo 'int i;' > conftest.$ac_ext 6791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6792 (eval $ac_compile) 2>&5 6793 ac_status=$? 6794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6795 test $ac_status = 0; }; then 6796 case `/usr/bin/file conftest.$ac_objext` in 6797 *ELF-32*) 6798 HPUX_IA64_MODE="32" 6799 ;; 6800 *ELF-64*) 6801 HPUX_IA64_MODE="64" 6802 ;; 6803 esac 6804 fi 6805 rm -rf conftest* 6806 ;; 6807*-*-irix6*) 6808 # Find out which ABI we are using. 6809 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6811 (eval $ac_compile) 2>&5 6812 ac_status=$? 6813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6814 test $ac_status = 0; }; then 6815 if test "$lt_cv_prog_gnu_ld" = yes; then 6816 case `/usr/bin/file conftest.$ac_objext` in 6817 *32-bit*) 6818 LD="${LD-ld} -melf32bsmip" 6819 ;; 6820 *N32*) 6821 LD="${LD-ld} -melf32bmipn32" 6822 ;; 6823 *64-bit*) 6824 LD="${LD-ld} -melf64bmip" 6825 ;; 6826 esac 6827 else 6828 case `/usr/bin/file conftest.$ac_objext` in 6829 *32-bit*) 6830 LD="${LD-ld} -32" 6831 ;; 6832 *N32*) 6833 LD="${LD-ld} -n32" 6834 ;; 6835 *64-bit*) 6836 LD="${LD-ld} -64" 6837 ;; 6838 esac 6839 fi 6840 fi 6841 rm -rf conftest* 6842 ;; 6843 6844x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6845s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6846 # Find out which ABI we are using. 6847 echo 'int i;' > conftest.$ac_ext 6848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6849 (eval $ac_compile) 2>&5 6850 ac_status=$? 6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6852 test $ac_status = 0; }; then 6853 case `/usr/bin/file conftest.o` in 6854 *32-bit*) 6855 case $host in 6856 x86_64-*kfreebsd*-gnu) 6857 LD="${LD-ld} -m elf_i386_fbsd" 6858 ;; 6859 x86_64-*linux*) 6860 LD="${LD-ld} -m elf_i386" 6861 ;; 6862 ppc64-*linux*|powerpc64-*linux*) 6863 LD="${LD-ld} -m elf32ppclinux" 6864 ;; 6865 s390x-*linux*) 6866 LD="${LD-ld} -m elf_s390" 6867 ;; 6868 sparc64-*linux*) 6869 LD="${LD-ld} -m elf32_sparc" 6870 ;; 6871 esac 6872 ;; 6873 *64-bit*) 6874 case $host in 6875 x86_64-*kfreebsd*-gnu) 6876 LD="${LD-ld} -m elf_x86_64_fbsd" 6877 ;; 6878 x86_64-*linux*) 6879 LD="${LD-ld} -m elf_x86_64" 6880 ;; 6881 ppc*-*linux*|powerpc*-*linux*) 6882 LD="${LD-ld} -m elf64ppc" 6883 ;; 6884 s390*-*linux*|s390*-*tpf*) 6885 LD="${LD-ld} -m elf64_s390" 6886 ;; 6887 sparc*-*linux*) 6888 LD="${LD-ld} -m elf64_sparc" 6889 ;; 6890 esac 6891 ;; 6892 esac 6893 fi 6894 rm -rf conftest* 6895 ;; 6896 6897*-*-sco3.2v5*) 6898 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6899 SAVE_CFLAGS="$CFLAGS" 6900 CFLAGS="$CFLAGS -belf" 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6902$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6903if ${lt_cv_cc_needs_belf+:} false; then : 6904 $as_echo_n "(cached) " >&6 6905else 6906 ac_ext=c 6907ac_cpp='$CPP $CPPFLAGS' 6908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6910ac_compiler_gnu=$ac_cv_c_compiler_gnu 6911 6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6913/* end confdefs.h. */ 6914 6915int 6916main () 6917{ 6918 6919 ; 6920 return 0; 6921} 6922_ACEOF 6923if ac_fn_c_try_link "$LINENO"; then : 6924 lt_cv_cc_needs_belf=yes 6925else 6926 lt_cv_cc_needs_belf=no 6927fi 6928rm -f core conftest.err conftest.$ac_objext \ 6929 conftest$ac_exeext conftest.$ac_ext 6930 ac_ext=c 6931ac_cpp='$CPP $CPPFLAGS' 6932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6934ac_compiler_gnu=$ac_cv_c_compiler_gnu 6935 6936fi 6937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6938$as_echo "$lt_cv_cc_needs_belf" >&6; } 6939 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6940 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6941 CFLAGS="$SAVE_CFLAGS" 6942 fi 6943 ;; 6944*-*solaris*) 6945 # Find out which ABI we are using. 6946 echo 'int i;' > conftest.$ac_ext 6947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6948 (eval $ac_compile) 2>&5 6949 ac_status=$? 6950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6951 test $ac_status = 0; }; then 6952 case `/usr/bin/file conftest.o` in 6953 *64-bit*) 6954 case $lt_cv_prog_gnu_ld in 6955 yes*) 6956 case $host in 6957 i?86-*-solaris*) 6958 LD="${LD-ld} -m elf_x86_64" 6959 ;; 6960 sparc*-*-solaris*) 6961 LD="${LD-ld} -m elf64_sparc" 6962 ;; 6963 esac 6964 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6965 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6966 LD="${LD-ld}_sol2" 6967 fi 6968 ;; 6969 *) 6970 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6971 LD="${LD-ld} -64" 6972 fi 6973 ;; 6974 esac 6975 ;; 6976 esac 6977 fi 6978 rm -rf conftest* 6979 ;; 6980esac 6981 6982need_locks="$enable_libtool_lock" 6983 6984if test -n "$ac_tool_prefix"; then 6985 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6986set dummy ${ac_tool_prefix}mt; ac_word=$2 6987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6988$as_echo_n "checking for $ac_word... " >&6; } 6989if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6990 $as_echo_n "(cached) " >&6 6991else 6992 if test -n "$MANIFEST_TOOL"; then 6993 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6994else 6995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6996for as_dir in $PATH 6997do 6998 IFS=$as_save_IFS 6999 test -z "$as_dir" && as_dir=. 7000 for ac_exec_ext in '' $ac_executable_extensions; do 7001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7002 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7004 break 2 7005 fi 7006done 7007 done 7008IFS=$as_save_IFS 7009 7010fi 7011fi 7012MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7013if test -n "$MANIFEST_TOOL"; then 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7015$as_echo "$MANIFEST_TOOL" >&6; } 7016else 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7018$as_echo "no" >&6; } 7019fi 7020 7021 7022fi 7023if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7024 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7025 # Extract the first word of "mt", so it can be a program name with args. 7026set dummy mt; ac_word=$2 7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7028$as_echo_n "checking for $ac_word... " >&6; } 7029if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7030 $as_echo_n "(cached) " >&6 7031else 7032 if test -n "$ac_ct_MANIFEST_TOOL"; then 7033 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7034else 7035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7036for as_dir in $PATH 7037do 7038 IFS=$as_save_IFS 7039 test -z "$as_dir" && as_dir=. 7040 for ac_exec_ext in '' $ac_executable_extensions; do 7041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7042 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7044 break 2 7045 fi 7046done 7047 done 7048IFS=$as_save_IFS 7049 7050fi 7051fi 7052ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7053if test -n "$ac_ct_MANIFEST_TOOL"; then 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7055$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7056else 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7058$as_echo "no" >&6; } 7059fi 7060 7061 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7062 MANIFEST_TOOL=":" 7063 else 7064 case $cross_compiling:$ac_tool_warned in 7065yes:) 7066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7068ac_tool_warned=yes ;; 7069esac 7070 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7071 fi 7072else 7073 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7074fi 7075 7076test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7078$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7079if ${lt_cv_path_mainfest_tool+:} false; then : 7080 $as_echo_n "(cached) " >&6 7081else 7082 lt_cv_path_mainfest_tool=no 7083 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7084 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7085 cat conftest.err >&5 7086 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7087 lt_cv_path_mainfest_tool=yes 7088 fi 7089 rm -f conftest* 7090fi 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7092$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7093if test "x$lt_cv_path_mainfest_tool" != xyes; then 7094 MANIFEST_TOOL=: 7095fi 7096 7097 7098 7099 7100 7101 7102 case $host_os in 7103 rhapsody* | darwin*) 7104 if test -n "$ac_tool_prefix"; then 7105 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7106set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7108$as_echo_n "checking for $ac_word... " >&6; } 7109if ${ac_cv_prog_DSYMUTIL+:} false; then : 7110 $as_echo_n "(cached) " >&6 7111else 7112 if test -n "$DSYMUTIL"; then 7113 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7114else 7115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7116for as_dir in $PATH 7117do 7118 IFS=$as_save_IFS 7119 test -z "$as_dir" && as_dir=. 7120 for ac_exec_ext in '' $ac_executable_extensions; do 7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7122 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7124 break 2 7125 fi 7126done 7127 done 7128IFS=$as_save_IFS 7129 7130fi 7131fi 7132DSYMUTIL=$ac_cv_prog_DSYMUTIL 7133if test -n "$DSYMUTIL"; then 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7135$as_echo "$DSYMUTIL" >&6; } 7136else 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7138$as_echo "no" >&6; } 7139fi 7140 7141 7142fi 7143if test -z "$ac_cv_prog_DSYMUTIL"; then 7144 ac_ct_DSYMUTIL=$DSYMUTIL 7145 # Extract the first word of "dsymutil", so it can be a program name with args. 7146set dummy dsymutil; ac_word=$2 7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7148$as_echo_n "checking for $ac_word... " >&6; } 7149if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7150 $as_echo_n "(cached) " >&6 7151else 7152 if test -n "$ac_ct_DSYMUTIL"; then 7153 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7154else 7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7156for as_dir in $PATH 7157do 7158 IFS=$as_save_IFS 7159 test -z "$as_dir" && as_dir=. 7160 for ac_exec_ext in '' $ac_executable_extensions; do 7161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7162 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7164 break 2 7165 fi 7166done 7167 done 7168IFS=$as_save_IFS 7169 7170fi 7171fi 7172ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7173if test -n "$ac_ct_DSYMUTIL"; then 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7175$as_echo "$ac_ct_DSYMUTIL" >&6; } 7176else 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7178$as_echo "no" >&6; } 7179fi 7180 7181 if test "x$ac_ct_DSYMUTIL" = x; then 7182 DSYMUTIL=":" 7183 else 7184 case $cross_compiling:$ac_tool_warned in 7185yes:) 7186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7188ac_tool_warned=yes ;; 7189esac 7190 DSYMUTIL=$ac_ct_DSYMUTIL 7191 fi 7192else 7193 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7194fi 7195 7196 if test -n "$ac_tool_prefix"; then 7197 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7198set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7200$as_echo_n "checking for $ac_word... " >&6; } 7201if ${ac_cv_prog_NMEDIT+:} false; then : 7202 $as_echo_n "(cached) " >&6 7203else 7204 if test -n "$NMEDIT"; then 7205 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7206else 7207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7208for as_dir in $PATH 7209do 7210 IFS=$as_save_IFS 7211 test -z "$as_dir" && as_dir=. 7212 for ac_exec_ext in '' $ac_executable_extensions; do 7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7214 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7216 break 2 7217 fi 7218done 7219 done 7220IFS=$as_save_IFS 7221 7222fi 7223fi 7224NMEDIT=$ac_cv_prog_NMEDIT 7225if test -n "$NMEDIT"; then 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7227$as_echo "$NMEDIT" >&6; } 7228else 7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7230$as_echo "no" >&6; } 7231fi 7232 7233 7234fi 7235if test -z "$ac_cv_prog_NMEDIT"; then 7236 ac_ct_NMEDIT=$NMEDIT 7237 # Extract the first word of "nmedit", so it can be a program name with args. 7238set dummy nmedit; ac_word=$2 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7240$as_echo_n "checking for $ac_word... " >&6; } 7241if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7242 $as_echo_n "(cached) " >&6 7243else 7244 if test -n "$ac_ct_NMEDIT"; then 7245 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7246else 7247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7248for as_dir in $PATH 7249do 7250 IFS=$as_save_IFS 7251 test -z "$as_dir" && as_dir=. 7252 for ac_exec_ext in '' $ac_executable_extensions; do 7253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7254 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7256 break 2 7257 fi 7258done 7259 done 7260IFS=$as_save_IFS 7261 7262fi 7263fi 7264ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7265if test -n "$ac_ct_NMEDIT"; then 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7267$as_echo "$ac_ct_NMEDIT" >&6; } 7268else 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7270$as_echo "no" >&6; } 7271fi 7272 7273 if test "x$ac_ct_NMEDIT" = x; then 7274 NMEDIT=":" 7275 else 7276 case $cross_compiling:$ac_tool_warned in 7277yes:) 7278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7280ac_tool_warned=yes ;; 7281esac 7282 NMEDIT=$ac_ct_NMEDIT 7283 fi 7284else 7285 NMEDIT="$ac_cv_prog_NMEDIT" 7286fi 7287 7288 if test -n "$ac_tool_prefix"; then 7289 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7290set dummy ${ac_tool_prefix}lipo; ac_word=$2 7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7292$as_echo_n "checking for $ac_word... " >&6; } 7293if ${ac_cv_prog_LIPO+:} false; then : 7294 $as_echo_n "(cached) " >&6 7295else 7296 if test -n "$LIPO"; then 7297 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7298else 7299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7300for as_dir in $PATH 7301do 7302 IFS=$as_save_IFS 7303 test -z "$as_dir" && as_dir=. 7304 for ac_exec_ext in '' $ac_executable_extensions; do 7305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7306 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7308 break 2 7309 fi 7310done 7311 done 7312IFS=$as_save_IFS 7313 7314fi 7315fi 7316LIPO=$ac_cv_prog_LIPO 7317if test -n "$LIPO"; then 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7319$as_echo "$LIPO" >&6; } 7320else 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7322$as_echo "no" >&6; } 7323fi 7324 7325 7326fi 7327if test -z "$ac_cv_prog_LIPO"; then 7328 ac_ct_LIPO=$LIPO 7329 # Extract the first word of "lipo", so it can be a program name with args. 7330set dummy lipo; ac_word=$2 7331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7332$as_echo_n "checking for $ac_word... " >&6; } 7333if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7334 $as_echo_n "(cached) " >&6 7335else 7336 if test -n "$ac_ct_LIPO"; then 7337 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7338else 7339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7340for as_dir in $PATH 7341do 7342 IFS=$as_save_IFS 7343 test -z "$as_dir" && as_dir=. 7344 for ac_exec_ext in '' $ac_executable_extensions; do 7345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7346 ac_cv_prog_ac_ct_LIPO="lipo" 7347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7348 break 2 7349 fi 7350done 7351 done 7352IFS=$as_save_IFS 7353 7354fi 7355fi 7356ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7357if test -n "$ac_ct_LIPO"; then 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7359$as_echo "$ac_ct_LIPO" >&6; } 7360else 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7362$as_echo "no" >&6; } 7363fi 7364 7365 if test "x$ac_ct_LIPO" = x; then 7366 LIPO=":" 7367 else 7368 case $cross_compiling:$ac_tool_warned in 7369yes:) 7370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7372ac_tool_warned=yes ;; 7373esac 7374 LIPO=$ac_ct_LIPO 7375 fi 7376else 7377 LIPO="$ac_cv_prog_LIPO" 7378fi 7379 7380 if test -n "$ac_tool_prefix"; then 7381 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7382set dummy ${ac_tool_prefix}otool; ac_word=$2 7383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7384$as_echo_n "checking for $ac_word... " >&6; } 7385if ${ac_cv_prog_OTOOL+:} false; then : 7386 $as_echo_n "(cached) " >&6 7387else 7388 if test -n "$OTOOL"; then 7389 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7390else 7391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7392for as_dir in $PATH 7393do 7394 IFS=$as_save_IFS 7395 test -z "$as_dir" && as_dir=. 7396 for ac_exec_ext in '' $ac_executable_extensions; do 7397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7398 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7400 break 2 7401 fi 7402done 7403 done 7404IFS=$as_save_IFS 7405 7406fi 7407fi 7408OTOOL=$ac_cv_prog_OTOOL 7409if test -n "$OTOOL"; then 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7411$as_echo "$OTOOL" >&6; } 7412else 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7414$as_echo "no" >&6; } 7415fi 7416 7417 7418fi 7419if test -z "$ac_cv_prog_OTOOL"; then 7420 ac_ct_OTOOL=$OTOOL 7421 # Extract the first word of "otool", so it can be a program name with args. 7422set dummy otool; ac_word=$2 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7424$as_echo_n "checking for $ac_word... " >&6; } 7425if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7426 $as_echo_n "(cached) " >&6 7427else 7428 if test -n "$ac_ct_OTOOL"; then 7429 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7430else 7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7432for as_dir in $PATH 7433do 7434 IFS=$as_save_IFS 7435 test -z "$as_dir" && as_dir=. 7436 for ac_exec_ext in '' $ac_executable_extensions; do 7437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7438 ac_cv_prog_ac_ct_OTOOL="otool" 7439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7440 break 2 7441 fi 7442done 7443 done 7444IFS=$as_save_IFS 7445 7446fi 7447fi 7448ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7449if test -n "$ac_ct_OTOOL"; then 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7451$as_echo "$ac_ct_OTOOL" >&6; } 7452else 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7454$as_echo "no" >&6; } 7455fi 7456 7457 if test "x$ac_ct_OTOOL" = x; then 7458 OTOOL=":" 7459 else 7460 case $cross_compiling:$ac_tool_warned in 7461yes:) 7462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7464ac_tool_warned=yes ;; 7465esac 7466 OTOOL=$ac_ct_OTOOL 7467 fi 7468else 7469 OTOOL="$ac_cv_prog_OTOOL" 7470fi 7471 7472 if test -n "$ac_tool_prefix"; then 7473 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7474set dummy ${ac_tool_prefix}otool64; ac_word=$2 7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7476$as_echo_n "checking for $ac_word... " >&6; } 7477if ${ac_cv_prog_OTOOL64+:} false; then : 7478 $as_echo_n "(cached) " >&6 7479else 7480 if test -n "$OTOOL64"; then 7481 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7482else 7483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7484for as_dir in $PATH 7485do 7486 IFS=$as_save_IFS 7487 test -z "$as_dir" && as_dir=. 7488 for ac_exec_ext in '' $ac_executable_extensions; do 7489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7490 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7492 break 2 7493 fi 7494done 7495 done 7496IFS=$as_save_IFS 7497 7498fi 7499fi 7500OTOOL64=$ac_cv_prog_OTOOL64 7501if test -n "$OTOOL64"; then 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7503$as_echo "$OTOOL64" >&6; } 7504else 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7506$as_echo "no" >&6; } 7507fi 7508 7509 7510fi 7511if test -z "$ac_cv_prog_OTOOL64"; then 7512 ac_ct_OTOOL64=$OTOOL64 7513 # Extract the first word of "otool64", so it can be a program name with args. 7514set dummy otool64; ac_word=$2 7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7516$as_echo_n "checking for $ac_word... " >&6; } 7517if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7518 $as_echo_n "(cached) " >&6 7519else 7520 if test -n "$ac_ct_OTOOL64"; then 7521 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7522else 7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7524for as_dir in $PATH 7525do 7526 IFS=$as_save_IFS 7527 test -z "$as_dir" && as_dir=. 7528 for ac_exec_ext in '' $ac_executable_extensions; do 7529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7530 ac_cv_prog_ac_ct_OTOOL64="otool64" 7531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7532 break 2 7533 fi 7534done 7535 done 7536IFS=$as_save_IFS 7537 7538fi 7539fi 7540ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7541if test -n "$ac_ct_OTOOL64"; then 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7543$as_echo "$ac_ct_OTOOL64" >&6; } 7544else 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7546$as_echo "no" >&6; } 7547fi 7548 7549 if test "x$ac_ct_OTOOL64" = x; then 7550 OTOOL64=":" 7551 else 7552 case $cross_compiling:$ac_tool_warned in 7553yes:) 7554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7556ac_tool_warned=yes ;; 7557esac 7558 OTOOL64=$ac_ct_OTOOL64 7559 fi 7560else 7561 OTOOL64="$ac_cv_prog_OTOOL64" 7562fi 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7591$as_echo_n "checking for -single_module linker flag... " >&6; } 7592if ${lt_cv_apple_cc_single_mod+:} false; then : 7593 $as_echo_n "(cached) " >&6 7594else 7595 lt_cv_apple_cc_single_mod=no 7596 if test -z "${LT_MULTI_MODULE}"; then 7597 # By default we will add the -single_module flag. You can override 7598 # by either setting the environment variable LT_MULTI_MODULE 7599 # non-empty at configure time, or by adding -multi_module to the 7600 # link flags. 7601 rm -rf libconftest.dylib* 7602 echo "int foo(void){return 1;}" > conftest.c 7603 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7604-dynamiclib -Wl,-single_module conftest.c" >&5 7605 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7606 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7607 _lt_result=$? 7608 # If there is a non-empty error log, and "single_module" 7609 # appears in it, assume the flag caused a linker warning 7610 if test -s conftest.err && $GREP single_module conftest.err; then 7611 cat conftest.err >&5 7612 # Otherwise, if the output was created with a 0 exit code from 7613 # the compiler, it worked. 7614 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7615 lt_cv_apple_cc_single_mod=yes 7616 else 7617 cat conftest.err >&5 7618 fi 7619 rm -rf libconftest.dylib* 7620 rm -f conftest.* 7621 fi 7622fi 7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7624$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7625 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7627$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7628if ${lt_cv_ld_exported_symbols_list+:} false; then : 7629 $as_echo_n "(cached) " >&6 7630else 7631 lt_cv_ld_exported_symbols_list=no 7632 save_LDFLAGS=$LDFLAGS 7633 echo "_main" > conftest.sym 7634 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7636/* end confdefs.h. */ 7637 7638int 7639main () 7640{ 7641 7642 ; 7643 return 0; 7644} 7645_ACEOF 7646if ac_fn_c_try_link "$LINENO"; then : 7647 lt_cv_ld_exported_symbols_list=yes 7648else 7649 lt_cv_ld_exported_symbols_list=no 7650fi 7651rm -f core conftest.err conftest.$ac_objext \ 7652 conftest$ac_exeext conftest.$ac_ext 7653 LDFLAGS="$save_LDFLAGS" 7654 7655fi 7656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7657$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7658 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7660$as_echo_n "checking for -force_load linker flag... " >&6; } 7661if ${lt_cv_ld_force_load+:} false; then : 7662 $as_echo_n "(cached) " >&6 7663else 7664 lt_cv_ld_force_load=no 7665 cat > conftest.c << _LT_EOF 7666int forced_loaded() { return 2;} 7667_LT_EOF 7668 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7669 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7670 echo "$AR cru libconftest.a conftest.o" >&5 7671 $AR cru libconftest.a conftest.o 2>&5 7672 echo "$RANLIB libconftest.a" >&5 7673 $RANLIB libconftest.a 2>&5 7674 cat > conftest.c << _LT_EOF 7675int main() { return 0;} 7676_LT_EOF 7677 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7678 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7679 _lt_result=$? 7680 if test -s conftest.err && $GREP force_load conftest.err; then 7681 cat conftest.err >&5 7682 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7683 lt_cv_ld_force_load=yes 7684 else 7685 cat conftest.err >&5 7686 fi 7687 rm -f conftest.err libconftest.a conftest conftest.c 7688 rm -rf conftest.dSYM 7689 7690fi 7691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7692$as_echo "$lt_cv_ld_force_load" >&6; } 7693 case $host_os in 7694 rhapsody* | darwin1.[012]) 7695 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7696 darwin1.*) 7697 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7698 darwin*) # darwin 5.x on 7699 # if running on 10.5 or later, the deployment target defaults 7700 # to the OS version, if on x86, and 10.4, the deployment 7701 # target defaults to 10.4. Don't you love it? 7702 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7703 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7704 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7705 10.[012]*) 7706 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7707 10.*) 7708 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7709 esac 7710 ;; 7711 esac 7712 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7713 _lt_dar_single_mod='$single_module' 7714 fi 7715 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7716 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7717 else 7718 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7719 fi 7720 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7721 _lt_dsymutil='~$DSYMUTIL $lib || :' 7722 else 7723 _lt_dsymutil= 7724 fi 7725 ;; 7726 esac 7727 7728 7729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7730$as_echo_n "checking for ANSI C header files... " >&6; } 7731if ${ac_cv_header_stdc+:} false; then : 7732 $as_echo_n "(cached) " >&6 7733else 7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7735/* end confdefs.h. */ 7736#include <stdlib.h> 7737#include <stdarg.h> 7738#include <string.h> 7739#include <float.h> 7740 7741int 7742main () 7743{ 7744 7745 ; 7746 return 0; 7747} 7748_ACEOF 7749if ac_fn_c_try_compile "$LINENO"; then : 7750 ac_cv_header_stdc=yes 7751else 7752 ac_cv_header_stdc=no 7753fi 7754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7755 7756if test $ac_cv_header_stdc = yes; then 7757 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7759/* end confdefs.h. */ 7760#include <string.h> 7761 7762_ACEOF 7763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7764 $EGREP "memchr" >/dev/null 2>&1; then : 7765 7766else 7767 ac_cv_header_stdc=no 7768fi 7769rm -f conftest* 7770 7771fi 7772 7773if test $ac_cv_header_stdc = yes; then 7774 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7776/* end confdefs.h. */ 7777#include <stdlib.h> 7778 7779_ACEOF 7780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7781 $EGREP "free" >/dev/null 2>&1; then : 7782 7783else 7784 ac_cv_header_stdc=no 7785fi 7786rm -f conftest* 7787 7788fi 7789 7790if test $ac_cv_header_stdc = yes; then 7791 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7792 if test "$cross_compiling" = yes; then : 7793 : 7794else 7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7796/* end confdefs.h. */ 7797#include <ctype.h> 7798#include <stdlib.h> 7799#if ((' ' & 0x0FF) == 0x020) 7800# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7801# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7802#else 7803# define ISLOWER(c) \ 7804 (('a' <= (c) && (c) <= 'i') \ 7805 || ('j' <= (c) && (c) <= 'r') \ 7806 || ('s' <= (c) && (c) <= 'z')) 7807# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7808#endif 7809 7810#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7811int 7812main () 7813{ 7814 int i; 7815 for (i = 0; i < 256; i++) 7816 if (XOR (islower (i), ISLOWER (i)) 7817 || toupper (i) != TOUPPER (i)) 7818 return 2; 7819 return 0; 7820} 7821_ACEOF 7822if ac_fn_c_try_run "$LINENO"; then : 7823 7824else 7825 ac_cv_header_stdc=no 7826fi 7827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7828 conftest.$ac_objext conftest.beam conftest.$ac_ext 7829fi 7830 7831fi 7832fi 7833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7834$as_echo "$ac_cv_header_stdc" >&6; } 7835if test $ac_cv_header_stdc = yes; then 7836 7837$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7838 7839fi 7840 7841# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7842for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7843 inttypes.h stdint.h unistd.h 7844do : 7845 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7846ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7847" 7848if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7849 cat >>confdefs.h <<_ACEOF 7850#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7851_ACEOF 7852 7853fi 7854 7855done 7856 7857 7858for ac_header in dlfcn.h 7859do : 7860 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7861" 7862if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7863 cat >>confdefs.h <<_ACEOF 7864#define HAVE_DLFCN_H 1 7865_ACEOF 7866 7867fi 7868 7869done 7870 7871 7872 7873 7874 7875# Set options 7876 7877 7878 7879 enable_dlopen=no 7880 7881 7882 7883 # Check whether --enable-shared was given. 7884if test "${enable_shared+set}" = set; then : 7885 enableval=$enable_shared; p=${PACKAGE-default} 7886 case $enableval in 7887 yes) enable_shared=yes ;; 7888 no) enable_shared=no ;; 7889 *) 7890 enable_shared=no 7891 # Look at the argument we got. We use all the common list separators. 7892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7893 for pkg in $enableval; do 7894 IFS="$lt_save_ifs" 7895 if test "X$pkg" = "X$p"; then 7896 enable_shared=yes 7897 fi 7898 done 7899 IFS="$lt_save_ifs" 7900 ;; 7901 esac 7902else 7903 enable_shared=yes 7904fi 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 # Check whether --enable-static was given. 7915if test "${enable_static+set}" = set; then : 7916 enableval=$enable_static; p=${PACKAGE-default} 7917 case $enableval in 7918 yes) enable_static=yes ;; 7919 no) enable_static=no ;; 7920 *) 7921 enable_static=no 7922 # Look at the argument we got. We use all the common list separators. 7923 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7924 for pkg in $enableval; do 7925 IFS="$lt_save_ifs" 7926 if test "X$pkg" = "X$p"; then 7927 enable_static=yes 7928 fi 7929 done 7930 IFS="$lt_save_ifs" 7931 ;; 7932 esac 7933else 7934 enable_static=yes 7935fi 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946# Check whether --with-pic was given. 7947if test "${with_pic+set}" = set; then : 7948 withval=$with_pic; lt_p=${PACKAGE-default} 7949 case $withval in 7950 yes|no) pic_mode=$withval ;; 7951 *) 7952 pic_mode=default 7953 # Look at the argument we got. We use all the common list separators. 7954 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7955 for lt_pkg in $withval; do 7956 IFS="$lt_save_ifs" 7957 if test "X$lt_pkg" = "X$lt_p"; then 7958 pic_mode=yes 7959 fi 7960 done 7961 IFS="$lt_save_ifs" 7962 ;; 7963 esac 7964else 7965 pic_mode=default 7966fi 7967 7968 7969test -z "$pic_mode" && pic_mode=default 7970 7971 7972 7973 7974 7975 7976 7977 # Check whether --enable-fast-install was given. 7978if test "${enable_fast_install+set}" = set; then : 7979 enableval=$enable_fast_install; p=${PACKAGE-default} 7980 case $enableval in 7981 yes) enable_fast_install=yes ;; 7982 no) enable_fast_install=no ;; 7983 *) 7984 enable_fast_install=no 7985 # Look at the argument we got. We use all the common list separators. 7986 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7987 for pkg in $enableval; do 7988 IFS="$lt_save_ifs" 7989 if test "X$pkg" = "X$p"; then 7990 enable_fast_install=yes 7991 fi 7992 done 7993 IFS="$lt_save_ifs" 7994 ;; 7995 esac 7996else 7997 enable_fast_install=yes 7998fi 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010# This can be used to rebuild libtool when needed 8011LIBTOOL_DEPS="$ltmain" 8012 8013# Always use our own libtool. 8014LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045test -z "$LN_S" && LN_S="ln -s" 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060if test -n "${ZSH_VERSION+set}" ; then 8061 setopt NO_GLOB_SUBST 8062fi 8063 8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8065$as_echo_n "checking for objdir... " >&6; } 8066if ${lt_cv_objdir+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068else 8069 rm -f .libs 2>/dev/null 8070mkdir .libs 2>/dev/null 8071if test -d .libs; then 8072 lt_cv_objdir=.libs 8073else 8074 # MS-DOS does not allow filenames that begin with a dot. 8075 lt_cv_objdir=_libs 8076fi 8077rmdir .libs 2>/dev/null 8078fi 8079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8080$as_echo "$lt_cv_objdir" >&6; } 8081objdir=$lt_cv_objdir 8082 8083 8084 8085 8086 8087cat >>confdefs.h <<_ACEOF 8088#define LT_OBJDIR "$lt_cv_objdir/" 8089_ACEOF 8090 8091 8092 8093 8094case $host_os in 8095aix3*) 8096 # AIX sometimes has problems with the GCC collect2 program. For some 8097 # reason, if we set the COLLECT_NAMES environment variable, the problems 8098 # vanish in a puff of smoke. 8099 if test "X${COLLECT_NAMES+set}" != Xset; then 8100 COLLECT_NAMES= 8101 export COLLECT_NAMES 8102 fi 8103 ;; 8104esac 8105 8106# Global variables: 8107ofile=libtool 8108can_build_shared=yes 8109 8110# All known linkers require a `.a' archive for static linking (except MSVC, 8111# which needs '.lib'). 8112libext=a 8113 8114with_gnu_ld="$lt_cv_prog_gnu_ld" 8115 8116old_CC="$CC" 8117old_CFLAGS="$CFLAGS" 8118 8119# Set sane defaults for various variables 8120test -z "$CC" && CC=cc 8121test -z "$LTCC" && LTCC=$CC 8122test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8123test -z "$LD" && LD=ld 8124test -z "$ac_objext" && ac_objext=o 8125 8126for cc_temp in $compiler""; do 8127 case $cc_temp in 8128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8130 \-*) ;; 8131 *) break;; 8132 esac 8133done 8134cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8135 8136 8137# Only perform the check for file, if the check method requires it 8138test -z "$MAGIC_CMD" && MAGIC_CMD=file 8139case $deplibs_check_method in 8140file_magic*) 8141 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8143$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8144if ${lt_cv_path_MAGIC_CMD+:} false; then : 8145 $as_echo_n "(cached) " >&6 8146else 8147 case $MAGIC_CMD in 8148[\\/*] | ?:[\\/]*) 8149 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8150 ;; 8151*) 8152 lt_save_MAGIC_CMD="$MAGIC_CMD" 8153 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8154 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8155 for ac_dir in $ac_dummy; do 8156 IFS="$lt_save_ifs" 8157 test -z "$ac_dir" && ac_dir=. 8158 if test -f $ac_dir/${ac_tool_prefix}file; then 8159 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8160 if test -n "$file_magic_test_file"; then 8161 case $deplibs_check_method in 8162 "file_magic "*) 8163 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8164 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8165 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8166 $EGREP "$file_magic_regex" > /dev/null; then 8167 : 8168 else 8169 cat <<_LT_EOF 1>&2 8170 8171*** Warning: the command libtool uses to detect shared libraries, 8172*** $file_magic_cmd, produces output that libtool cannot recognize. 8173*** The result is that libtool may fail to recognize shared libraries 8174*** as such. This will affect the creation of libtool libraries that 8175*** depend on shared libraries, but programs linked with such libtool 8176*** libraries will work regardless of this problem. Nevertheless, you 8177*** may want to report the problem to your system manager and/or to 8178*** bug-libtool@gnu.org 8179 8180_LT_EOF 8181 fi ;; 8182 esac 8183 fi 8184 break 8185 fi 8186 done 8187 IFS="$lt_save_ifs" 8188 MAGIC_CMD="$lt_save_MAGIC_CMD" 8189 ;; 8190esac 8191fi 8192 8193MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8194if test -n "$MAGIC_CMD"; then 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8196$as_echo "$MAGIC_CMD" >&6; } 8197else 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8199$as_echo "no" >&6; } 8200fi 8201 8202 8203 8204 8205 8206if test -z "$lt_cv_path_MAGIC_CMD"; then 8207 if test -n "$ac_tool_prefix"; then 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8209$as_echo_n "checking for file... " >&6; } 8210if ${lt_cv_path_MAGIC_CMD+:} false; then : 8211 $as_echo_n "(cached) " >&6 8212else 8213 case $MAGIC_CMD in 8214[\\/*] | ?:[\\/]*) 8215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8216 ;; 8217*) 8218 lt_save_MAGIC_CMD="$MAGIC_CMD" 8219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8221 for ac_dir in $ac_dummy; do 8222 IFS="$lt_save_ifs" 8223 test -z "$ac_dir" && ac_dir=. 8224 if test -f $ac_dir/file; then 8225 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8226 if test -n "$file_magic_test_file"; then 8227 case $deplibs_check_method in 8228 "file_magic "*) 8229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8232 $EGREP "$file_magic_regex" > /dev/null; then 8233 : 8234 else 8235 cat <<_LT_EOF 1>&2 8236 8237*** Warning: the command libtool uses to detect shared libraries, 8238*** $file_magic_cmd, produces output that libtool cannot recognize. 8239*** The result is that libtool may fail to recognize shared libraries 8240*** as such. This will affect the creation of libtool libraries that 8241*** depend on shared libraries, but programs linked with such libtool 8242*** libraries will work regardless of this problem. Nevertheless, you 8243*** may want to report the problem to your system manager and/or to 8244*** bug-libtool@gnu.org 8245 8246_LT_EOF 8247 fi ;; 8248 esac 8249 fi 8250 break 8251 fi 8252 done 8253 IFS="$lt_save_ifs" 8254 MAGIC_CMD="$lt_save_MAGIC_CMD" 8255 ;; 8256esac 8257fi 8258 8259MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8260if test -n "$MAGIC_CMD"; then 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8262$as_echo "$MAGIC_CMD" >&6; } 8263else 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8265$as_echo "no" >&6; } 8266fi 8267 8268 8269 else 8270 MAGIC_CMD=: 8271 fi 8272fi 8273 8274 fi 8275 ;; 8276esac 8277 8278# Use C for the default configuration in the libtool script 8279 8280lt_save_CC="$CC" 8281ac_ext=c 8282ac_cpp='$CPP $CPPFLAGS' 8283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8285ac_compiler_gnu=$ac_cv_c_compiler_gnu 8286 8287 8288# Source file extension for C test sources. 8289ac_ext=c 8290 8291# Object file extension for compiled C test sources. 8292objext=o 8293objext=$objext 8294 8295# Code to be used in simple compile tests 8296lt_simple_compile_test_code="int some_variable = 0;" 8297 8298# Code to be used in simple link tests 8299lt_simple_link_test_code='int main(){return(0);}' 8300 8301 8302 8303 8304 8305 8306 8307# If no C compiler was specified, use CC. 8308LTCC=${LTCC-"$CC"} 8309 8310# If no C compiler flags were specified, use CFLAGS. 8311LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8312 8313# Allow CC to be a program name with arguments. 8314compiler=$CC 8315 8316# Save the default compiler, since it gets overwritten when the other 8317# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8318compiler_DEFAULT=$CC 8319 8320# save warnings/boilerplate of simple test code 8321ac_outfile=conftest.$ac_objext 8322echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8323eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8324_lt_compiler_boilerplate=`cat conftest.err` 8325$RM conftest* 8326 8327ac_outfile=conftest.$ac_objext 8328echo "$lt_simple_link_test_code" >conftest.$ac_ext 8329eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8330_lt_linker_boilerplate=`cat conftest.err` 8331$RM -r conftest* 8332 8333 8334## CAVEAT EMPTOR: 8335## There is no encapsulation within the following macros, do not change 8336## the running order or otherwise move them around unless you know exactly 8337## what you are doing... 8338if test -n "$compiler"; then 8339 8340lt_prog_compiler_no_builtin_flag= 8341 8342if test "$GCC" = yes; then 8343 case $cc_basename in 8344 nvcc*) 8345 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8346 *) 8347 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8348 esac 8349 8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8351$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8352if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8353 $as_echo_n "(cached) " >&6 8354else 8355 lt_cv_prog_compiler_rtti_exceptions=no 8356 ac_outfile=conftest.$ac_objext 8357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8358 lt_compiler_flag="-fno-rtti -fno-exceptions" 8359 # Insert the option either (1) after the last *FLAGS variable, or 8360 # (2) before a word containing "conftest.", or (3) at the end. 8361 # Note that $ac_compile itself does not contain backslashes and begins 8362 # with a dollar sign (not a hyphen), so the echo should work correctly. 8363 # The option is referenced via a variable to avoid confusing sed. 8364 lt_compile=`echo "$ac_compile" | $SED \ 8365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8367 -e 's:$: $lt_compiler_flag:'` 8368 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8369 (eval "$lt_compile" 2>conftest.err) 8370 ac_status=$? 8371 cat conftest.err >&5 8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8373 if (exit $ac_status) && test -s "$ac_outfile"; then 8374 # The compiler can only warn and ignore the option if not recognized 8375 # So say no if there are warnings other than the usual output. 8376 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8379 lt_cv_prog_compiler_rtti_exceptions=yes 8380 fi 8381 fi 8382 $RM conftest* 8383 8384fi 8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8386$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8387 8388if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8389 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8390else 8391 : 8392fi 8393 8394fi 8395 8396 8397 8398 8399 8400 8401 lt_prog_compiler_wl= 8402lt_prog_compiler_pic= 8403lt_prog_compiler_static= 8404 8405 8406 if test "$GCC" = yes; then 8407 lt_prog_compiler_wl='-Wl,' 8408 lt_prog_compiler_static='-static' 8409 8410 case $host_os in 8411 aix*) 8412 # All AIX code is PIC. 8413 if test "$host_cpu" = ia64; then 8414 # AIX 5 now supports IA64 processor 8415 lt_prog_compiler_static='-Bstatic' 8416 fi 8417 ;; 8418 8419 amigaos*) 8420 case $host_cpu in 8421 powerpc) 8422 # see comment about AmigaOS4 .so support 8423 lt_prog_compiler_pic='-fPIC' 8424 ;; 8425 m68k) 8426 # FIXME: we need at least 68020 code to build shared libraries, but 8427 # adding the `-m68020' flag to GCC prevents building anything better, 8428 # like `-m68040'. 8429 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8430 ;; 8431 esac 8432 ;; 8433 8434 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8435 # PIC is the default for these OSes. 8436 ;; 8437 8438 mingw* | cygwin* | pw32* | os2* | cegcc*) 8439 # This hack is so that the source file can tell whether it is being 8440 # built for inclusion in a dll (and should export symbols for example). 8441 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8442 # (--disable-auto-import) libraries 8443 lt_prog_compiler_pic='-DDLL_EXPORT' 8444 ;; 8445 8446 darwin* | rhapsody*) 8447 # PIC is the default on this platform 8448 # Common symbols not allowed in MH_DYLIB files 8449 lt_prog_compiler_pic='-fno-common' 8450 ;; 8451 8452 haiku*) 8453 # PIC is the default for Haiku. 8454 # The "-static" flag exists, but is broken. 8455 lt_prog_compiler_static= 8456 ;; 8457 8458 hpux*) 8459 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8460 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8461 # sets the default TLS model and affects inlining. 8462 case $host_cpu in 8463 hppa*64*) 8464 # +Z the default 8465 ;; 8466 *) 8467 lt_prog_compiler_pic='-fPIC' 8468 ;; 8469 esac 8470 ;; 8471 8472 interix[3-9]*) 8473 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8474 # Instead, we relocate shared libraries at runtime. 8475 ;; 8476 8477 msdosdjgpp*) 8478 # Just because we use GCC doesn't mean we suddenly get shared libraries 8479 # on systems that don't support them. 8480 lt_prog_compiler_can_build_shared=no 8481 enable_shared=no 8482 ;; 8483 8484 *nto* | *qnx*) 8485 # QNX uses GNU C++, but need to define -shared option too, otherwise 8486 # it will coredump. 8487 lt_prog_compiler_pic='-fPIC -shared' 8488 ;; 8489 8490 sysv4*MP*) 8491 if test -d /usr/nec; then 8492 lt_prog_compiler_pic=-Kconform_pic 8493 fi 8494 ;; 8495 8496 *) 8497 lt_prog_compiler_pic='-fPIC' 8498 ;; 8499 esac 8500 8501 case $cc_basename in 8502 nvcc*) # Cuda Compiler Driver 2.2 8503 lt_prog_compiler_wl='-Xlinker ' 8504 if test -n "$lt_prog_compiler_pic"; then 8505 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8506 fi 8507 ;; 8508 esac 8509 else 8510 # PORTME Check for flag to pass linker flags through the system compiler. 8511 case $host_os in 8512 aix*) 8513 lt_prog_compiler_wl='-Wl,' 8514 if test "$host_cpu" = ia64; then 8515 # AIX 5 now supports IA64 processor 8516 lt_prog_compiler_static='-Bstatic' 8517 else 8518 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8519 fi 8520 ;; 8521 8522 mingw* | cygwin* | pw32* | os2* | cegcc*) 8523 # This hack is so that the source file can tell whether it is being 8524 # built for inclusion in a dll (and should export symbols for example). 8525 lt_prog_compiler_pic='-DDLL_EXPORT' 8526 ;; 8527 8528 hpux9* | hpux10* | hpux11*) 8529 lt_prog_compiler_wl='-Wl,' 8530 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8531 # not for PA HP-UX. 8532 case $host_cpu in 8533 hppa*64*|ia64*) 8534 # +Z the default 8535 ;; 8536 *) 8537 lt_prog_compiler_pic='+Z' 8538 ;; 8539 esac 8540 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8541 lt_prog_compiler_static='${wl}-a ${wl}archive' 8542 ;; 8543 8544 irix5* | irix6* | nonstopux*) 8545 lt_prog_compiler_wl='-Wl,' 8546 # PIC (with -KPIC) is the default. 8547 lt_prog_compiler_static='-non_shared' 8548 ;; 8549 8550 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8551 case $cc_basename in 8552 # old Intel for x86_64 which still supported -KPIC. 8553 ecc*) 8554 lt_prog_compiler_wl='-Wl,' 8555 lt_prog_compiler_pic='-KPIC' 8556 lt_prog_compiler_static='-static' 8557 ;; 8558 # icc used to be incompatible with GCC. 8559 # ICC 10 doesn't accept -KPIC any more. 8560 icc* | ifort*) 8561 lt_prog_compiler_wl='-Wl,' 8562 lt_prog_compiler_pic='-fPIC' 8563 lt_prog_compiler_static='-static' 8564 ;; 8565 # Lahey Fortran 8.1. 8566 lf95*) 8567 lt_prog_compiler_wl='-Wl,' 8568 lt_prog_compiler_pic='--shared' 8569 lt_prog_compiler_static='--static' 8570 ;; 8571 nagfor*) 8572 # NAG Fortran compiler 8573 lt_prog_compiler_wl='-Wl,-Wl,,' 8574 lt_prog_compiler_pic='-PIC' 8575 lt_prog_compiler_static='-Bstatic' 8576 ;; 8577 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8578 # Portland Group compilers (*not* the Pentium gcc compiler, 8579 # which looks to be a dead project) 8580 lt_prog_compiler_wl='-Wl,' 8581 lt_prog_compiler_pic='-fpic' 8582 lt_prog_compiler_static='-Bstatic' 8583 ;; 8584 ccc*) 8585 lt_prog_compiler_wl='-Wl,' 8586 # All Alpha code is PIC. 8587 lt_prog_compiler_static='-non_shared' 8588 ;; 8589 xl* | bgxl* | bgf* | mpixl*) 8590 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8591 lt_prog_compiler_wl='-Wl,' 8592 lt_prog_compiler_pic='-qpic' 8593 lt_prog_compiler_static='-qstaticlink' 8594 ;; 8595 *) 8596 case `$CC -V 2>&1 | sed 5q` in 8597 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8598 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8599 lt_prog_compiler_pic='-KPIC' 8600 lt_prog_compiler_static='-Bstatic' 8601 lt_prog_compiler_wl='' 8602 ;; 8603 *Sun\ F* | *Sun*Fortran*) 8604 lt_prog_compiler_pic='-KPIC' 8605 lt_prog_compiler_static='-Bstatic' 8606 lt_prog_compiler_wl='-Qoption ld ' 8607 ;; 8608 *Sun\ C*) 8609 # Sun C 5.9 8610 lt_prog_compiler_pic='-KPIC' 8611 lt_prog_compiler_static='-Bstatic' 8612 lt_prog_compiler_wl='-Wl,' 8613 ;; 8614 *Intel*\ [CF]*Compiler*) 8615 lt_prog_compiler_wl='-Wl,' 8616 lt_prog_compiler_pic='-fPIC' 8617 lt_prog_compiler_static='-static' 8618 ;; 8619 *Portland\ Group*) 8620 lt_prog_compiler_wl='-Wl,' 8621 lt_prog_compiler_pic='-fpic' 8622 lt_prog_compiler_static='-Bstatic' 8623 ;; 8624 esac 8625 ;; 8626 esac 8627 ;; 8628 8629 newsos6) 8630 lt_prog_compiler_pic='-KPIC' 8631 lt_prog_compiler_static='-Bstatic' 8632 ;; 8633 8634 *nto* | *qnx*) 8635 # QNX uses GNU C++, but need to define -shared option too, otherwise 8636 # it will coredump. 8637 lt_prog_compiler_pic='-fPIC -shared' 8638 ;; 8639 8640 osf3* | osf4* | osf5*) 8641 lt_prog_compiler_wl='-Wl,' 8642 # All OSF/1 code is PIC. 8643 lt_prog_compiler_static='-non_shared' 8644 ;; 8645 8646 rdos*) 8647 lt_prog_compiler_static='-non_shared' 8648 ;; 8649 8650 solaris*) 8651 lt_prog_compiler_pic='-KPIC' 8652 lt_prog_compiler_static='-Bstatic' 8653 case $cc_basename in 8654 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8655 lt_prog_compiler_wl='-Qoption ld ';; 8656 *) 8657 lt_prog_compiler_wl='-Wl,';; 8658 esac 8659 ;; 8660 8661 sunos4*) 8662 lt_prog_compiler_wl='-Qoption ld ' 8663 lt_prog_compiler_pic='-PIC' 8664 lt_prog_compiler_static='-Bstatic' 8665 ;; 8666 8667 sysv4 | sysv4.2uw2* | sysv4.3*) 8668 lt_prog_compiler_wl='-Wl,' 8669 lt_prog_compiler_pic='-KPIC' 8670 lt_prog_compiler_static='-Bstatic' 8671 ;; 8672 8673 sysv4*MP*) 8674 if test -d /usr/nec ;then 8675 lt_prog_compiler_pic='-Kconform_pic' 8676 lt_prog_compiler_static='-Bstatic' 8677 fi 8678 ;; 8679 8680 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8681 lt_prog_compiler_wl='-Wl,' 8682 lt_prog_compiler_pic='-KPIC' 8683 lt_prog_compiler_static='-Bstatic' 8684 ;; 8685 8686 unicos*) 8687 lt_prog_compiler_wl='-Wl,' 8688 lt_prog_compiler_can_build_shared=no 8689 ;; 8690 8691 uts4*) 8692 lt_prog_compiler_pic='-pic' 8693 lt_prog_compiler_static='-Bstatic' 8694 ;; 8695 8696 *) 8697 lt_prog_compiler_can_build_shared=no 8698 ;; 8699 esac 8700 fi 8701 8702case $host_os in 8703 # For platforms which do not support PIC, -DPIC is meaningless: 8704 *djgpp*) 8705 lt_prog_compiler_pic= 8706 ;; 8707 *) 8708 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8709 ;; 8710esac 8711 8712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8713$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8714if ${lt_cv_prog_compiler_pic+:} false; then : 8715 $as_echo_n "(cached) " >&6 8716else 8717 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8718fi 8719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8720$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8721lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8722 8723# 8724# Check to make sure the PIC flag actually works. 8725# 8726if test -n "$lt_prog_compiler_pic"; then 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8728$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8729if ${lt_cv_prog_compiler_pic_works+:} false; then : 8730 $as_echo_n "(cached) " >&6 8731else 8732 lt_cv_prog_compiler_pic_works=no 8733 ac_outfile=conftest.$ac_objext 8734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8735 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8736 # Insert the option either (1) after the last *FLAGS variable, or 8737 # (2) before a word containing "conftest.", or (3) at the end. 8738 # Note that $ac_compile itself does not contain backslashes and begins 8739 # with a dollar sign (not a hyphen), so the echo should work correctly. 8740 # The option is referenced via a variable to avoid confusing sed. 8741 lt_compile=`echo "$ac_compile" | $SED \ 8742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8744 -e 's:$: $lt_compiler_flag:'` 8745 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8746 (eval "$lt_compile" 2>conftest.err) 8747 ac_status=$? 8748 cat conftest.err >&5 8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8750 if (exit $ac_status) && test -s "$ac_outfile"; then 8751 # The compiler can only warn and ignore the option if not recognized 8752 # So say no if there are warnings other than the usual output. 8753 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8755 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8756 lt_cv_prog_compiler_pic_works=yes 8757 fi 8758 fi 8759 $RM conftest* 8760 8761fi 8762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8763$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8764 8765if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8766 case $lt_prog_compiler_pic in 8767 "" | " "*) ;; 8768 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8769 esac 8770else 8771 lt_prog_compiler_pic= 8772 lt_prog_compiler_can_build_shared=no 8773fi 8774 8775fi 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787# 8788# Check to make sure the static flag actually works. 8789# 8790wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8792$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8793if ${lt_cv_prog_compiler_static_works+:} false; then : 8794 $as_echo_n "(cached) " >&6 8795else 8796 lt_cv_prog_compiler_static_works=no 8797 save_LDFLAGS="$LDFLAGS" 8798 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8799 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8800 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8801 # The linker can only warn and ignore the option if not recognized 8802 # So say no if there are warnings 8803 if test -s conftest.err; then 8804 # Append any errors to the config.log. 8805 cat conftest.err 1>&5 8806 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8808 if diff conftest.exp conftest.er2 >/dev/null; then 8809 lt_cv_prog_compiler_static_works=yes 8810 fi 8811 else 8812 lt_cv_prog_compiler_static_works=yes 8813 fi 8814 fi 8815 $RM -r conftest* 8816 LDFLAGS="$save_LDFLAGS" 8817 8818fi 8819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8820$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8821 8822if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8823 : 8824else 8825 lt_prog_compiler_static= 8826fi 8827 8828 8829 8830 8831 8832 8833 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8835$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8836if ${lt_cv_prog_compiler_c_o+:} false; then : 8837 $as_echo_n "(cached) " >&6 8838else 8839 lt_cv_prog_compiler_c_o=no 8840 $RM -r conftest 2>/dev/null 8841 mkdir conftest 8842 cd conftest 8843 mkdir out 8844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8845 8846 lt_compiler_flag="-o out/conftest2.$ac_objext" 8847 # Insert the option either (1) after the last *FLAGS variable, or 8848 # (2) before a word containing "conftest.", or (3) at the end. 8849 # Note that $ac_compile itself does not contain backslashes and begins 8850 # with a dollar sign (not a hyphen), so the echo should work correctly. 8851 lt_compile=`echo "$ac_compile" | $SED \ 8852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8854 -e 's:$: $lt_compiler_flag:'` 8855 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8856 (eval "$lt_compile" 2>out/conftest.err) 8857 ac_status=$? 8858 cat out/conftest.err >&5 8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8860 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8861 then 8862 # The compiler can only warn and ignore the option if not recognized 8863 # So say no if there are warnings 8864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8865 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8866 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8867 lt_cv_prog_compiler_c_o=yes 8868 fi 8869 fi 8870 chmod u+w . 2>&5 8871 $RM conftest* 8872 # SGI C++ compiler will create directory out/ii_files/ for 8873 # template instantiation 8874 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8875 $RM out/* && rmdir out 8876 cd .. 8877 $RM -r conftest 8878 $RM conftest* 8879 8880fi 8881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8882$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8883 8884 8885 8886 8887 8888 8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8890$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8891if ${lt_cv_prog_compiler_c_o+:} false; then : 8892 $as_echo_n "(cached) " >&6 8893else 8894 lt_cv_prog_compiler_c_o=no 8895 $RM -r conftest 2>/dev/null 8896 mkdir conftest 8897 cd conftest 8898 mkdir out 8899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8900 8901 lt_compiler_flag="-o out/conftest2.$ac_objext" 8902 # Insert the option either (1) after the last *FLAGS variable, or 8903 # (2) before a word containing "conftest.", or (3) at the end. 8904 # Note that $ac_compile itself does not contain backslashes and begins 8905 # with a dollar sign (not a hyphen), so the echo should work correctly. 8906 lt_compile=`echo "$ac_compile" | $SED \ 8907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8909 -e 's:$: $lt_compiler_flag:'` 8910 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8911 (eval "$lt_compile" 2>out/conftest.err) 8912 ac_status=$? 8913 cat out/conftest.err >&5 8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8915 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8916 then 8917 # The compiler can only warn and ignore the option if not recognized 8918 # So say no if there are warnings 8919 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8920 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8921 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8922 lt_cv_prog_compiler_c_o=yes 8923 fi 8924 fi 8925 chmod u+w . 2>&5 8926 $RM conftest* 8927 # SGI C++ compiler will create directory out/ii_files/ for 8928 # template instantiation 8929 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8930 $RM out/* && rmdir out 8931 cd .. 8932 $RM -r conftest 8933 $RM conftest* 8934 8935fi 8936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8937$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8938 8939 8940 8941 8942hard_links="nottested" 8943if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8944 # do not overwrite the value of need_locks provided by the user 8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8946$as_echo_n "checking if we can lock with hard links... " >&6; } 8947 hard_links=yes 8948 $RM conftest* 8949 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8950 touch conftest.a 8951 ln conftest.a conftest.b 2>&5 || hard_links=no 8952 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8954$as_echo "$hard_links" >&6; } 8955 if test "$hard_links" = no; then 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8957$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8958 need_locks=warn 8959 fi 8960else 8961 need_locks=no 8962fi 8963 8964 8965 8966 8967 8968 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8970$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8971 8972 runpath_var= 8973 allow_undefined_flag= 8974 always_export_symbols=no 8975 archive_cmds= 8976 archive_expsym_cmds= 8977 compiler_needs_object=no 8978 enable_shared_with_static_runtimes=no 8979 export_dynamic_flag_spec= 8980 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8981 hardcode_automatic=no 8982 hardcode_direct=no 8983 hardcode_direct_absolute=no 8984 hardcode_libdir_flag_spec= 8985 hardcode_libdir_separator= 8986 hardcode_minus_L=no 8987 hardcode_shlibpath_var=unsupported 8988 inherit_rpath=no 8989 link_all_deplibs=unknown 8990 module_cmds= 8991 module_expsym_cmds= 8992 old_archive_from_new_cmds= 8993 old_archive_from_expsyms_cmds= 8994 thread_safe_flag_spec= 8995 whole_archive_flag_spec= 8996 # include_expsyms should be a list of space-separated symbols to be *always* 8997 # included in the symbol list 8998 include_expsyms= 8999 # exclude_expsyms can be an extended regexp of symbols to exclude 9000 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9001 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9002 # as well as any symbol that contains `d'. 9003 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9004 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9005 # platforms (ab)use it in PIC code, but their linkers get confused if 9006 # the symbol is explicitly referenced. Since portable code cannot 9007 # rely on this symbol name, it's probably fine to never include it in 9008 # preloaded symbol tables. 9009 # Exclude shared library initialization/finalization symbols. 9010 extract_expsyms_cmds= 9011 9012 case $host_os in 9013 cygwin* | mingw* | pw32* | cegcc*) 9014 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9015 # When not using gcc, we currently assume that we are using 9016 # Microsoft Visual C++. 9017 if test "$GCC" != yes; then 9018 with_gnu_ld=no 9019 fi 9020 ;; 9021 interix*) 9022 # we just hope/assume this is gcc and not c89 (= MSVC++) 9023 with_gnu_ld=yes 9024 ;; 9025 openbsd*) 9026 with_gnu_ld=no 9027 ;; 9028 esac 9029 9030 ld_shlibs=yes 9031 9032 # On some targets, GNU ld is compatible enough with the native linker 9033 # that we're better off using the native interface for both. 9034 lt_use_gnu_ld_interface=no 9035 if test "$with_gnu_ld" = yes; then 9036 case $host_os in 9037 aix*) 9038 # The AIX port of GNU ld has always aspired to compatibility 9039 # with the native linker. However, as the warning in the GNU ld 9040 # block says, versions before 2.19.5* couldn't really create working 9041 # shared libraries, regardless of the interface used. 9042 case `$LD -v 2>&1` in 9043 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9044 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9045 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9046 *) 9047 lt_use_gnu_ld_interface=yes 9048 ;; 9049 esac 9050 ;; 9051 *) 9052 lt_use_gnu_ld_interface=yes 9053 ;; 9054 esac 9055 fi 9056 9057 if test "$lt_use_gnu_ld_interface" = yes; then 9058 # If archive_cmds runs LD, not CC, wlarc should be empty 9059 wlarc='${wl}' 9060 9061 # Set some defaults for GNU ld with shared library support. These 9062 # are reset later if shared libraries are not supported. Putting them 9063 # here allows them to be overridden if necessary. 9064 runpath_var=LD_RUN_PATH 9065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9066 export_dynamic_flag_spec='${wl}--export-dynamic' 9067 # ancient GNU ld didn't support --whole-archive et. al. 9068 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9069 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9070 else 9071 whole_archive_flag_spec= 9072 fi 9073 supports_anon_versioning=no 9074 case `$LD -v 2>&1` in 9075 *GNU\ gold*) supports_anon_versioning=yes ;; 9076 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9077 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9078 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9079 *\ 2.11.*) ;; # other 2.11 versions 9080 *) supports_anon_versioning=yes ;; 9081 esac 9082 9083 # See if GNU ld supports shared libraries. 9084 case $host_os in 9085 aix[3-9]*) 9086 # On AIX/PPC, the GNU linker is very broken 9087 if test "$host_cpu" != ia64; then 9088 ld_shlibs=no 9089 cat <<_LT_EOF 1>&2 9090 9091*** Warning: the GNU linker, at least up to release 2.19, is reported 9092*** to be unable to reliably create shared libraries on AIX. 9093*** Therefore, libtool is disabling shared libraries support. If you 9094*** really care for shared libraries, you may want to install binutils 9095*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9096*** You will then need to restart the configuration process. 9097 9098_LT_EOF 9099 fi 9100 ;; 9101 9102 amigaos*) 9103 case $host_cpu in 9104 powerpc) 9105 # see comment about AmigaOS4 .so support 9106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9107 archive_expsym_cmds='' 9108 ;; 9109 m68k) 9110 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)' 9111 hardcode_libdir_flag_spec='-L$libdir' 9112 hardcode_minus_L=yes 9113 ;; 9114 esac 9115 ;; 9116 9117 beos*) 9118 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9119 allow_undefined_flag=unsupported 9120 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9121 # support --undefined. This deserves some investigation. FIXME 9122 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9123 else 9124 ld_shlibs=no 9125 fi 9126 ;; 9127 9128 cygwin* | mingw* | pw32* | cegcc*) 9129 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9130 # as there is no search path for DLLs. 9131 hardcode_libdir_flag_spec='-L$libdir' 9132 export_dynamic_flag_spec='${wl}--export-all-symbols' 9133 allow_undefined_flag=unsupported 9134 always_export_symbols=no 9135 enable_shared_with_static_runtimes=yes 9136 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9137 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9138 9139 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9141 # If the export-symbols file already is a .def file (1st line 9142 # is EXPORTS), use it as is; otherwise, prepend... 9143 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9144 cp $export_symbols $output_objdir/$soname.def; 9145 else 9146 echo EXPORTS > $output_objdir/$soname.def; 9147 cat $export_symbols >> $output_objdir/$soname.def; 9148 fi~ 9149 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9150 else 9151 ld_shlibs=no 9152 fi 9153 ;; 9154 9155 haiku*) 9156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9157 link_all_deplibs=yes 9158 ;; 9159 9160 interix[3-9]*) 9161 hardcode_direct=no 9162 hardcode_shlibpath_var=no 9163 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9164 export_dynamic_flag_spec='${wl}-E' 9165 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9166 # Instead, shared libraries are loaded at an image base (0x10000000 by 9167 # default) and relocated if they conflict, which is a slow very memory 9168 # consuming and fragmenting process. To avoid this, we pick a random, 9169 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9170 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9171 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9172 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' 9173 ;; 9174 9175 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9176 tmp_diet=no 9177 if test "$host_os" = linux-dietlibc; then 9178 case $cc_basename in 9179 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9180 esac 9181 fi 9182 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9183 && test "$tmp_diet" = no 9184 then 9185 tmp_addflag=' $pic_flag' 9186 tmp_sharedflag='-shared' 9187 case $cc_basename,$host_cpu in 9188 pgcc*) # Portland Group C compiler 9189 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' 9190 tmp_addflag=' $pic_flag' 9191 ;; 9192 pgf77* | pgf90* | pgf95* | pgfortran*) 9193 # Portland Group f77 and f90 compilers 9194 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' 9195 tmp_addflag=' $pic_flag -Mnomain' ;; 9196 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9197 tmp_addflag=' -i_dynamic' ;; 9198 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9199 tmp_addflag=' -i_dynamic -nofor_main' ;; 9200 ifc* | ifort*) # Intel Fortran compiler 9201 tmp_addflag=' -nofor_main' ;; 9202 lf95*) # Lahey Fortran 8.1 9203 whole_archive_flag_spec= 9204 tmp_sharedflag='--shared' ;; 9205 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9206 tmp_sharedflag='-qmkshrobj' 9207 tmp_addflag= ;; 9208 nvcc*) # Cuda Compiler Driver 2.2 9209 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' 9210 compiler_needs_object=yes 9211 ;; 9212 esac 9213 case `$CC -V 2>&1 | sed 5q` in 9214 *Sun\ C*) # Sun C 5.9 9215 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' 9216 compiler_needs_object=yes 9217 tmp_sharedflag='-G' ;; 9218 *Sun\ F*) # Sun Fortran 8.3 9219 tmp_sharedflag='-G' ;; 9220 esac 9221 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9222 9223 if test "x$supports_anon_versioning" = xyes; then 9224 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9226 echo "local: *; };" >> $output_objdir/$libname.ver~ 9227 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9228 fi 9229 9230 case $cc_basename in 9231 xlf* | bgf* | bgxlf* | mpixlf*) 9232 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9233 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9235 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9236 if test "x$supports_anon_versioning" = xyes; then 9237 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9238 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9239 echo "local: *; };" >> $output_objdir/$libname.ver~ 9240 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9241 fi 9242 ;; 9243 esac 9244 else 9245 ld_shlibs=no 9246 fi 9247 ;; 9248 9249 netbsd*) 9250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9251 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9252 wlarc= 9253 else 9254 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9255 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9256 fi 9257 ;; 9258 9259 solaris*) 9260 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9261 ld_shlibs=no 9262 cat <<_LT_EOF 1>&2 9263 9264*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9265*** create shared libraries on Solaris systems. Therefore, libtool 9266*** is disabling shared libraries support. We urge you to upgrade GNU 9267*** binutils to release 2.9.1 or newer. Another option is to modify 9268*** your PATH or compiler configuration so that the native linker is 9269*** used, and then restart. 9270 9271_LT_EOF 9272 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9273 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9274 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9275 else 9276 ld_shlibs=no 9277 fi 9278 ;; 9279 9280 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9281 case `$LD -v 2>&1` in 9282 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9283 ld_shlibs=no 9284 cat <<_LT_EOF 1>&2 9285 9286*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9287*** reliably create shared libraries on SCO systems. Therefore, libtool 9288*** is disabling shared libraries support. We urge you to upgrade GNU 9289*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9290*** your PATH or compiler configuration so that the native linker is 9291*** used, and then restart. 9292 9293_LT_EOF 9294 ;; 9295 *) 9296 # For security reasons, it is highly recommended that you always 9297 # use absolute paths for naming shared libraries, and exclude the 9298 # DT_RUNPATH tag from executables and libraries. But doing so 9299 # requires that you compile everything twice, which is a pain. 9300 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9304 else 9305 ld_shlibs=no 9306 fi 9307 ;; 9308 esac 9309 ;; 9310 9311 sunos4*) 9312 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9313 wlarc= 9314 hardcode_direct=yes 9315 hardcode_shlibpath_var=no 9316 ;; 9317 9318 *) 9319 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9320 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9321 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9322 else 9323 ld_shlibs=no 9324 fi 9325 ;; 9326 esac 9327 9328 if test "$ld_shlibs" = no; then 9329 runpath_var= 9330 hardcode_libdir_flag_spec= 9331 export_dynamic_flag_spec= 9332 whole_archive_flag_spec= 9333 fi 9334 else 9335 # PORTME fill in a description of your system's linker (not GNU ld) 9336 case $host_os in 9337 aix3*) 9338 allow_undefined_flag=unsupported 9339 always_export_symbols=yes 9340 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' 9341 # Note: this linker hardcodes the directories in LIBPATH if there 9342 # are no directories specified by -L. 9343 hardcode_minus_L=yes 9344 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9345 # Neither direct hardcoding nor static linking is supported with a 9346 # broken collect2. 9347 hardcode_direct=unsupported 9348 fi 9349 ;; 9350 9351 aix[4-9]*) 9352 if test "$host_cpu" = ia64; then 9353 # On IA64, the linker does run time linking by default, so we don't 9354 # have to do anything special. 9355 aix_use_runtimelinking=no 9356 exp_sym_flag='-Bexport' 9357 no_entry_flag="" 9358 else 9359 # If we're using GNU nm, then we don't want the "-C" option. 9360 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9361 # Also, AIX nm treats weak defined symbols like other global 9362 # defined symbols, whereas GNU nm marks them as "W". 9363 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9364 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' 9365 else 9366 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9367 fi 9368 aix_use_runtimelinking=no 9369 9370 # Test if we are trying to use run time linking or normal 9371 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9372 # need to do runtime linking. 9373 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9374 for ld_flag in $LDFLAGS; do 9375 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9376 aix_use_runtimelinking=yes 9377 break 9378 fi 9379 done 9380 ;; 9381 esac 9382 9383 exp_sym_flag='-bexport' 9384 no_entry_flag='-bnoentry' 9385 fi 9386 9387 # When large executables or shared objects are built, AIX ld can 9388 # have problems creating the table of contents. If linking a library 9389 # or program results in "error TOC overflow" add -mminimal-toc to 9390 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9391 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9392 9393 archive_cmds='' 9394 hardcode_direct=yes 9395 hardcode_direct_absolute=yes 9396 hardcode_libdir_separator=':' 9397 link_all_deplibs=yes 9398 file_list_spec='${wl}-f,' 9399 9400 if test "$GCC" = yes; then 9401 case $host_os in aix4.[012]|aix4.[012].*) 9402 # We only want to do this on AIX 4.2 and lower, the check 9403 # below for broken collect2 doesn't work under 4.3+ 9404 collect2name=`${CC} -print-prog-name=collect2` 9405 if test -f "$collect2name" && 9406 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9407 then 9408 # We have reworked collect2 9409 : 9410 else 9411 # We have old collect2 9412 hardcode_direct=unsupported 9413 # It fails to find uninstalled libraries when the uninstalled 9414 # path is not listed in the libpath. Setting hardcode_minus_L 9415 # to unsupported forces relinking 9416 hardcode_minus_L=yes 9417 hardcode_libdir_flag_spec='-L$libdir' 9418 hardcode_libdir_separator= 9419 fi 9420 ;; 9421 esac 9422 shared_flag='-shared' 9423 if test "$aix_use_runtimelinking" = yes; then 9424 shared_flag="$shared_flag "'${wl}-G' 9425 fi 9426 else 9427 # not using gcc 9428 if test "$host_cpu" = ia64; then 9429 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9430 # chokes on -Wl,-G. The following line is correct: 9431 shared_flag='-G' 9432 else 9433 if test "$aix_use_runtimelinking" = yes; then 9434 shared_flag='${wl}-G' 9435 else 9436 shared_flag='${wl}-bM:SRE' 9437 fi 9438 fi 9439 fi 9440 9441 export_dynamic_flag_spec='${wl}-bexpall' 9442 # It seems that -bexpall does not export symbols beginning with 9443 # underscore (_), so it is better to generate a list of symbols to export. 9444 always_export_symbols=yes 9445 if test "$aix_use_runtimelinking" = yes; then 9446 # Warning - without using the other runtime loading flags (-brtl), 9447 # -berok will link without error, but may produce a broken library. 9448 allow_undefined_flag='-berok' 9449 # Determine the default libpath from the value encoded in an 9450 # empty executable. 9451 if test "${lt_cv_aix_libpath+set}" = set; then 9452 aix_libpath=$lt_cv_aix_libpath 9453else 9454 if ${lt_cv_aix_libpath_+:} false; then : 9455 $as_echo_n "(cached) " >&6 9456else 9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9458/* end confdefs.h. */ 9459 9460int 9461main () 9462{ 9463 9464 ; 9465 return 0; 9466} 9467_ACEOF 9468if ac_fn_c_try_link "$LINENO"; then : 9469 9470 lt_aix_libpath_sed=' 9471 /Import File Strings/,/^$/ { 9472 /^0/ { 9473 s/^0 *\([^ ]*\) *$/\1/ 9474 p 9475 } 9476 }' 9477 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9478 # Check for a 64-bit object if we didn't find anything. 9479 if test -z "$lt_cv_aix_libpath_"; then 9480 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9481 fi 9482fi 9483rm -f core conftest.err conftest.$ac_objext \ 9484 conftest$ac_exeext conftest.$ac_ext 9485 if test -z "$lt_cv_aix_libpath_"; then 9486 lt_cv_aix_libpath_="/usr/lib:/lib" 9487 fi 9488 9489fi 9490 9491 aix_libpath=$lt_cv_aix_libpath_ 9492fi 9493 9494 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9495 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" 9496 else 9497 if test "$host_cpu" = ia64; then 9498 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9499 allow_undefined_flag="-z nodefs" 9500 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" 9501 else 9502 # Determine the default libpath from the value encoded in an 9503 # empty executable. 9504 if test "${lt_cv_aix_libpath+set}" = set; then 9505 aix_libpath=$lt_cv_aix_libpath 9506else 9507 if ${lt_cv_aix_libpath_+:} false; then : 9508 $as_echo_n "(cached) " >&6 9509else 9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9511/* end confdefs.h. */ 9512 9513int 9514main () 9515{ 9516 9517 ; 9518 return 0; 9519} 9520_ACEOF 9521if ac_fn_c_try_link "$LINENO"; then : 9522 9523 lt_aix_libpath_sed=' 9524 /Import File Strings/,/^$/ { 9525 /^0/ { 9526 s/^0 *\([^ ]*\) *$/\1/ 9527 p 9528 } 9529 }' 9530 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9531 # Check for a 64-bit object if we didn't find anything. 9532 if test -z "$lt_cv_aix_libpath_"; then 9533 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9534 fi 9535fi 9536rm -f core conftest.err conftest.$ac_objext \ 9537 conftest$ac_exeext conftest.$ac_ext 9538 if test -z "$lt_cv_aix_libpath_"; then 9539 lt_cv_aix_libpath_="/usr/lib:/lib" 9540 fi 9541 9542fi 9543 9544 aix_libpath=$lt_cv_aix_libpath_ 9545fi 9546 9547 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9548 # Warning - without using the other run time loading flags, 9549 # -berok will link without error, but may produce a broken library. 9550 no_undefined_flag=' ${wl}-bernotok' 9551 allow_undefined_flag=' ${wl}-berok' 9552 if test "$with_gnu_ld" = yes; then 9553 # We only use this code for GNU lds that support --whole-archive. 9554 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9555 else 9556 # Exported symbols can be pulled into shared objects from archives 9557 whole_archive_flag_spec='$convenience' 9558 fi 9559 archive_cmds_need_lc=yes 9560 # This is similar to how AIX traditionally builds its shared libraries. 9561 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' 9562 fi 9563 fi 9564 ;; 9565 9566 amigaos*) 9567 case $host_cpu in 9568 powerpc) 9569 # see comment about AmigaOS4 .so support 9570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9571 archive_expsym_cmds='' 9572 ;; 9573 m68k) 9574 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)' 9575 hardcode_libdir_flag_spec='-L$libdir' 9576 hardcode_minus_L=yes 9577 ;; 9578 esac 9579 ;; 9580 9581 bsdi[45]*) 9582 export_dynamic_flag_spec=-rdynamic 9583 ;; 9584 9585 cygwin* | mingw* | pw32* | cegcc*) 9586 # When not using gcc, we currently assume that we are using 9587 # Microsoft Visual C++. 9588 # hardcode_libdir_flag_spec is actually meaningless, as there is 9589 # no search path for DLLs. 9590 case $cc_basename in 9591 cl*) 9592 # Native MSVC 9593 hardcode_libdir_flag_spec=' ' 9594 allow_undefined_flag=unsupported 9595 always_export_symbols=yes 9596 file_list_spec='@' 9597 # Tell ltmain to make .lib files, not .a files. 9598 libext=lib 9599 # Tell ltmain to make .dll files, not .so files. 9600 shrext_cmds=".dll" 9601 # FIXME: Setting linknames here is a bad hack. 9602 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9603 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9604 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9605 else 9606 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9607 fi~ 9608 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9609 linknames=' 9610 # The linker will not automatically build a static lib if we build a DLL. 9611 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9612 enable_shared_with_static_runtimes=yes 9613 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9615 # Don't use ranlib 9616 old_postinstall_cmds='chmod 644 $oldlib' 9617 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9618 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9619 case $lt_outputfile in 9620 *.exe|*.EXE) ;; 9621 *) 9622 lt_outputfile="$lt_outputfile.exe" 9623 lt_tool_outputfile="$lt_tool_outputfile.exe" 9624 ;; 9625 esac~ 9626 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9627 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9628 $RM "$lt_outputfile.manifest"; 9629 fi' 9630 ;; 9631 *) 9632 # Assume MSVC wrapper 9633 hardcode_libdir_flag_spec=' ' 9634 allow_undefined_flag=unsupported 9635 # Tell ltmain to make .lib files, not .a files. 9636 libext=lib 9637 # Tell ltmain to make .dll files, not .so files. 9638 shrext_cmds=".dll" 9639 # FIXME: Setting linknames here is a bad hack. 9640 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9641 # The linker will automatically build a .lib file if we build a DLL. 9642 old_archive_from_new_cmds='true' 9643 # FIXME: Should let the user specify the lib program. 9644 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9645 enable_shared_with_static_runtimes=yes 9646 ;; 9647 esac 9648 ;; 9649 9650 darwin* | rhapsody*) 9651 9652 9653 archive_cmds_need_lc=no 9654 hardcode_direct=no 9655 hardcode_automatic=yes 9656 hardcode_shlibpath_var=unsupported 9657 if test "$lt_cv_ld_force_load" = "yes"; then 9658 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\"`' 9659 9660 else 9661 whole_archive_flag_spec='' 9662 fi 9663 link_all_deplibs=yes 9664 allow_undefined_flag="$_lt_dar_allow_undefined" 9665 case $cc_basename in 9666 ifort*) _lt_dar_can_shared=yes ;; 9667 *) _lt_dar_can_shared=$GCC ;; 9668 esac 9669 if test "$_lt_dar_can_shared" = "yes"; then 9670 output_verbose_link_cmd=func_echo_all 9671 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9672 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9673 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}" 9674 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}" 9675 9676 else 9677 ld_shlibs=no 9678 fi 9679 9680 ;; 9681 9682 dgux*) 9683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9684 hardcode_libdir_flag_spec='-L$libdir' 9685 hardcode_shlibpath_var=no 9686 ;; 9687 9688 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9689 # support. Future versions do this automatically, but an explicit c++rt0.o 9690 # does not break anything, and helps significantly (at the cost of a little 9691 # extra space). 9692 freebsd2.2*) 9693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9694 hardcode_libdir_flag_spec='-R$libdir' 9695 hardcode_direct=yes 9696 hardcode_shlibpath_var=no 9697 ;; 9698 9699 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9700 freebsd2.*) 9701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9702 hardcode_direct=yes 9703 hardcode_minus_L=yes 9704 hardcode_shlibpath_var=no 9705 ;; 9706 9707 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9708 freebsd* | dragonfly*) 9709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9710 hardcode_libdir_flag_spec='-R$libdir' 9711 hardcode_direct=yes 9712 hardcode_shlibpath_var=no 9713 ;; 9714 9715 hpux9*) 9716 if test "$GCC" = yes; then 9717 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9718 else 9719 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' 9720 fi 9721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9722 hardcode_libdir_separator=: 9723 hardcode_direct=yes 9724 9725 # hardcode_minus_L: Not really in the search PATH, 9726 # but as the default location of the library. 9727 hardcode_minus_L=yes 9728 export_dynamic_flag_spec='${wl}-E' 9729 ;; 9730 9731 hpux10*) 9732 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9733 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9734 else 9735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9736 fi 9737 if test "$with_gnu_ld" = no; then 9738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9739 hardcode_libdir_separator=: 9740 hardcode_direct=yes 9741 hardcode_direct_absolute=yes 9742 export_dynamic_flag_spec='${wl}-E' 9743 # hardcode_minus_L: Not really in the search PATH, 9744 # but as the default location of the library. 9745 hardcode_minus_L=yes 9746 fi 9747 ;; 9748 9749 hpux11*) 9750 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9751 case $host_cpu in 9752 hppa*64*) 9753 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9754 ;; 9755 ia64*) 9756 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9757 ;; 9758 *) 9759 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9760 ;; 9761 esac 9762 else 9763 case $host_cpu in 9764 hppa*64*) 9765 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9766 ;; 9767 ia64*) 9768 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9769 ;; 9770 *) 9771 9772 # Older versions of the 11.00 compiler do not understand -b yet 9773 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9775$as_echo_n "checking if $CC understands -b... " >&6; } 9776if ${lt_cv_prog_compiler__b+:} false; then : 9777 $as_echo_n "(cached) " >&6 9778else 9779 lt_cv_prog_compiler__b=no 9780 save_LDFLAGS="$LDFLAGS" 9781 LDFLAGS="$LDFLAGS -b" 9782 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9784 # The linker can only warn and ignore the option if not recognized 9785 # So say no if there are warnings 9786 if test -s conftest.err; then 9787 # Append any errors to the config.log. 9788 cat conftest.err 1>&5 9789 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9791 if diff conftest.exp conftest.er2 >/dev/null; then 9792 lt_cv_prog_compiler__b=yes 9793 fi 9794 else 9795 lt_cv_prog_compiler__b=yes 9796 fi 9797 fi 9798 $RM -r conftest* 9799 LDFLAGS="$save_LDFLAGS" 9800 9801fi 9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9803$as_echo "$lt_cv_prog_compiler__b" >&6; } 9804 9805if test x"$lt_cv_prog_compiler__b" = xyes; then 9806 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9807else 9808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9809fi 9810 9811 ;; 9812 esac 9813 fi 9814 if test "$with_gnu_ld" = no; then 9815 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9816 hardcode_libdir_separator=: 9817 9818 case $host_cpu in 9819 hppa*64*|ia64*) 9820 hardcode_direct=no 9821 hardcode_shlibpath_var=no 9822 ;; 9823 *) 9824 hardcode_direct=yes 9825 hardcode_direct_absolute=yes 9826 export_dynamic_flag_spec='${wl}-E' 9827 9828 # hardcode_minus_L: Not really in the search PATH, 9829 # but as the default location of the library. 9830 hardcode_minus_L=yes 9831 ;; 9832 esac 9833 fi 9834 ;; 9835 9836 irix5* | irix6* | nonstopux*) 9837 if test "$GCC" = yes; then 9838 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9839 # Try to use the -exported_symbol ld option, if it does not 9840 # work, assume that -exports_file does not work either and 9841 # implicitly export all symbols. 9842 # This should be the same for all languages, so no per-tag cache variable. 9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9844$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9845if ${lt_cv_irix_exported_symbol+:} false; then : 9846 $as_echo_n "(cached) " >&6 9847else 9848 save_LDFLAGS="$LDFLAGS" 9849 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9851/* end confdefs.h. */ 9852int foo (void) { return 0; } 9853_ACEOF 9854if ac_fn_c_try_link "$LINENO"; then : 9855 lt_cv_irix_exported_symbol=yes 9856else 9857 lt_cv_irix_exported_symbol=no 9858fi 9859rm -f core conftest.err conftest.$ac_objext \ 9860 conftest$ac_exeext conftest.$ac_ext 9861 LDFLAGS="$save_LDFLAGS" 9862fi 9863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9864$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9865 if test "$lt_cv_irix_exported_symbol" = yes; then 9866 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9867 fi 9868 else 9869 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' 9870 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' 9871 fi 9872 archive_cmds_need_lc='no' 9873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9874 hardcode_libdir_separator=: 9875 inherit_rpath=yes 9876 link_all_deplibs=yes 9877 ;; 9878 9879 netbsd*) 9880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9882 else 9883 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9884 fi 9885 hardcode_libdir_flag_spec='-R$libdir' 9886 hardcode_direct=yes 9887 hardcode_shlibpath_var=no 9888 ;; 9889 9890 newsos6) 9891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9892 hardcode_direct=yes 9893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9894 hardcode_libdir_separator=: 9895 hardcode_shlibpath_var=no 9896 ;; 9897 9898 *nto* | *qnx*) 9899 ;; 9900 9901 openbsd*) 9902 if test -f /usr/libexec/ld.so; then 9903 hardcode_direct=yes 9904 hardcode_shlibpath_var=no 9905 hardcode_direct_absolute=yes 9906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9907 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9908 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9909 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9910 export_dynamic_flag_spec='${wl}-E' 9911 else 9912 case $host_os in 9913 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9914 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9915 hardcode_libdir_flag_spec='-R$libdir' 9916 ;; 9917 *) 9918 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9919 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9920 ;; 9921 esac 9922 fi 9923 else 9924 ld_shlibs=no 9925 fi 9926 ;; 9927 9928 os2*) 9929 hardcode_libdir_flag_spec='-L$libdir' 9930 hardcode_minus_L=yes 9931 allow_undefined_flag=unsupported 9932 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' 9933 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9934 ;; 9935 9936 osf3*) 9937 if test "$GCC" = yes; then 9938 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9939 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' 9940 else 9941 allow_undefined_flag=' -expect_unresolved \*' 9942 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' 9943 fi 9944 archive_cmds_need_lc='no' 9945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9946 hardcode_libdir_separator=: 9947 ;; 9948 9949 osf4* | osf5*) # as osf3* with the addition of -msym flag 9950 if test "$GCC" = yes; then 9951 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9952 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9954 else 9955 allow_undefined_flag=' -expect_unresolved \*' 9956 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' 9957 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~ 9958 $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' 9959 9960 # Both c and cxx compiler support -rpath directly 9961 hardcode_libdir_flag_spec='-rpath $libdir' 9962 fi 9963 archive_cmds_need_lc='no' 9964 hardcode_libdir_separator=: 9965 ;; 9966 9967 solaris*) 9968 no_undefined_flag=' -z defs' 9969 if test "$GCC" = yes; then 9970 wlarc='${wl}' 9971 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9972 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9973 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9974 else 9975 case `$CC -V 2>&1` in 9976 *"Compilers 5.0"*) 9977 wlarc='' 9978 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9979 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9980 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9981 ;; 9982 *) 9983 wlarc='${wl}' 9984 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9985 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9986 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9987 ;; 9988 esac 9989 fi 9990 hardcode_libdir_flag_spec='-R$libdir' 9991 hardcode_shlibpath_var=no 9992 case $host_os in 9993 solaris2.[0-5] | solaris2.[0-5].*) ;; 9994 *) 9995 # The compiler driver will combine and reorder linker options, 9996 # but understands `-z linker_flag'. GCC discards it without `$wl', 9997 # but is careful enough not to reorder. 9998 # Supported since Solaris 2.6 (maybe 2.5.1?) 9999 if test "$GCC" = yes; then 10000 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10001 else 10002 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10003 fi 10004 ;; 10005 esac 10006 link_all_deplibs=yes 10007 ;; 10008 10009 sunos4*) 10010 if test "x$host_vendor" = xsequent; then 10011 # Use $CC to link under sequent, because it throws in some extra .o 10012 # files that make .init and .fini sections work. 10013 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10014 else 10015 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10016 fi 10017 hardcode_libdir_flag_spec='-L$libdir' 10018 hardcode_direct=yes 10019 hardcode_minus_L=yes 10020 hardcode_shlibpath_var=no 10021 ;; 10022 10023 sysv4) 10024 case $host_vendor in 10025 sni) 10026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10027 hardcode_direct=yes # is this really true??? 10028 ;; 10029 siemens) 10030 ## LD is ld it makes a PLAMLIB 10031 ## CC just makes a GrossModule. 10032 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10033 reload_cmds='$CC -r -o $output$reload_objs' 10034 hardcode_direct=no 10035 ;; 10036 motorola) 10037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10038 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10039 ;; 10040 esac 10041 runpath_var='LD_RUN_PATH' 10042 hardcode_shlibpath_var=no 10043 ;; 10044 10045 sysv4.3*) 10046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10047 hardcode_shlibpath_var=no 10048 export_dynamic_flag_spec='-Bexport' 10049 ;; 10050 10051 sysv4*MP*) 10052 if test -d /usr/nec; then 10053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10054 hardcode_shlibpath_var=no 10055 runpath_var=LD_RUN_PATH 10056 hardcode_runpath_var=yes 10057 ld_shlibs=yes 10058 fi 10059 ;; 10060 10061 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10062 no_undefined_flag='${wl}-z,text' 10063 archive_cmds_need_lc=no 10064 hardcode_shlibpath_var=no 10065 runpath_var='LD_RUN_PATH' 10066 10067 if test "$GCC" = yes; then 10068 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10069 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10070 else 10071 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10072 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10073 fi 10074 ;; 10075 10076 sysv5* | sco3.2v5* | sco5v6*) 10077 # Note: We can NOT use -z defs as we might desire, because we do not 10078 # link with -lc, and that would cause any symbols used from libc to 10079 # always be unresolved, which means just about no library would 10080 # ever link correctly. If we're not using GNU ld we use -z text 10081 # though, which does catch some bad symbols but isn't as heavy-handed 10082 # as -z defs. 10083 no_undefined_flag='${wl}-z,text' 10084 allow_undefined_flag='${wl}-z,nodefs' 10085 archive_cmds_need_lc=no 10086 hardcode_shlibpath_var=no 10087 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10088 hardcode_libdir_separator=':' 10089 link_all_deplibs=yes 10090 export_dynamic_flag_spec='${wl}-Bexport' 10091 runpath_var='LD_RUN_PATH' 10092 10093 if test "$GCC" = yes; then 10094 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10095 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10096 else 10097 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10098 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10099 fi 10100 ;; 10101 10102 uts4*) 10103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10104 hardcode_libdir_flag_spec='-L$libdir' 10105 hardcode_shlibpath_var=no 10106 ;; 10107 10108 *) 10109 ld_shlibs=no 10110 ;; 10111 esac 10112 10113 if test x$host_vendor = xsni; then 10114 case $host in 10115 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10116 export_dynamic_flag_spec='${wl}-Blargedynsym' 10117 ;; 10118 esac 10119 fi 10120 fi 10121 10122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10123$as_echo "$ld_shlibs" >&6; } 10124test "$ld_shlibs" = no && can_build_shared=no 10125 10126with_gnu_ld=$with_gnu_ld 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142# 10143# Do we need to explicitly link libc? 10144# 10145case "x$archive_cmds_need_lc" in 10146x|xyes) 10147 # Assume -lc should be added 10148 archive_cmds_need_lc=yes 10149 10150 if test "$enable_shared" = yes && test "$GCC" = yes; then 10151 case $archive_cmds in 10152 *'~'*) 10153 # FIXME: we may have to deal with multi-command sequences. 10154 ;; 10155 '$CC '*) 10156 # Test whether the compiler implicitly links with -lc since on some 10157 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10158 # to ld, don't add -lc before -lgcc. 10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10160$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10161if ${lt_cv_archive_cmds_need_lc+:} false; then : 10162 $as_echo_n "(cached) " >&6 10163else 10164 $RM conftest* 10165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10166 10167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10168 (eval $ac_compile) 2>&5 10169 ac_status=$? 10170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10171 test $ac_status = 0; } 2>conftest.err; then 10172 soname=conftest 10173 lib=conftest 10174 libobjs=conftest.$ac_objext 10175 deplibs= 10176 wl=$lt_prog_compiler_wl 10177 pic_flag=$lt_prog_compiler_pic 10178 compiler_flags=-v 10179 linker_flags=-v 10180 verstring= 10181 output_objdir=. 10182 libname=conftest 10183 lt_save_allow_undefined_flag=$allow_undefined_flag 10184 allow_undefined_flag= 10185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10186 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10187 ac_status=$? 10188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10189 test $ac_status = 0; } 10190 then 10191 lt_cv_archive_cmds_need_lc=no 10192 else 10193 lt_cv_archive_cmds_need_lc=yes 10194 fi 10195 allow_undefined_flag=$lt_save_allow_undefined_flag 10196 else 10197 cat conftest.err 1>&5 10198 fi 10199 $RM conftest* 10200 10201fi 10202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10203$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10204 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10205 ;; 10206 esac 10207 fi 10208 ;; 10209esac 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 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10363$as_echo_n "checking dynamic linker characteristics... " >&6; } 10364 10365if test "$GCC" = yes; then 10366 case $host_os in 10367 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10368 *) lt_awk_arg="/^libraries:/" ;; 10369 esac 10370 case $host_os in 10371 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10372 *) lt_sed_strip_eq="s,=/,/,g" ;; 10373 esac 10374 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10375 case $lt_search_path_spec in 10376 *\;*) 10377 # if the path contains ";" then we assume it to be the separator 10378 # otherwise default to the standard path separator (i.e. ":") - it is 10379 # assumed that no part of a normal pathname contains ";" but that should 10380 # okay in the real world where ";" in dirpaths is itself problematic. 10381 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10382 ;; 10383 *) 10384 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10385 ;; 10386 esac 10387 # Ok, now we have the path, separated by spaces, we can step through it 10388 # and add multilib dir if necessary. 10389 lt_tmp_lt_search_path_spec= 10390 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10391 for lt_sys_path in $lt_search_path_spec; do 10392 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10393 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10394 else 10395 test -d "$lt_sys_path" && \ 10396 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10397 fi 10398 done 10399 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10400BEGIN {RS=" "; FS="/|\n";} { 10401 lt_foo=""; 10402 lt_count=0; 10403 for (lt_i = NF; lt_i > 0; lt_i--) { 10404 if ($lt_i != "" && $lt_i != ".") { 10405 if ($lt_i == "..") { 10406 lt_count++; 10407 } else { 10408 if (lt_count == 0) { 10409 lt_foo="/" $lt_i lt_foo; 10410 } else { 10411 lt_count--; 10412 } 10413 } 10414 } 10415 } 10416 if (lt_foo != "") { lt_freq[lt_foo]++; } 10417 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10418}'` 10419 # AWK program above erroneously prepends '/' to C:/dos/paths 10420 # for these hosts. 10421 case $host_os in 10422 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10423 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10424 esac 10425 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10426else 10427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10428fi 10429library_names_spec= 10430libname_spec='lib$name' 10431soname_spec= 10432shrext_cmds=".so" 10433postinstall_cmds= 10434postuninstall_cmds= 10435finish_cmds= 10436finish_eval= 10437shlibpath_var= 10438shlibpath_overrides_runpath=unknown 10439version_type=none 10440dynamic_linker="$host_os ld.so" 10441sys_lib_dlsearch_path_spec="/lib /usr/lib" 10442need_lib_prefix=unknown 10443hardcode_into_libs=no 10444 10445# when you set need_version to no, make sure it does not cause -set_version 10446# flags to be left without arguments 10447need_version=unknown 10448 10449case $host_os in 10450aix3*) 10451 version_type=linux # correct to gnu/linux during the next big refactor 10452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10453 shlibpath_var=LIBPATH 10454 10455 # AIX 3 has no versioning support, so we append a major version to the name. 10456 soname_spec='${libname}${release}${shared_ext}$major' 10457 ;; 10458 10459aix[4-9]*) 10460 version_type=linux # correct to gnu/linux during the next big refactor 10461 need_lib_prefix=no 10462 need_version=no 10463 hardcode_into_libs=yes 10464 if test "$host_cpu" = ia64; then 10465 # AIX 5 supports IA64 10466 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10467 shlibpath_var=LD_LIBRARY_PATH 10468 else 10469 # With GCC up to 2.95.x, collect2 would create an import file 10470 # for dependence libraries. The import file would start with 10471 # the line `#! .'. This would cause the generated library to 10472 # depend on `.', always an invalid library. This was fixed in 10473 # development snapshots of GCC prior to 3.0. 10474 case $host_os in 10475 aix4 | aix4.[01] | aix4.[01].*) 10476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10477 echo ' yes ' 10478 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10479 : 10480 else 10481 can_build_shared=no 10482 fi 10483 ;; 10484 esac 10485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10486 # soname into executable. Probably we can add versioning support to 10487 # collect2, so additional links can be useful in future. 10488 if test "$aix_use_runtimelinking" = yes; then 10489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10490 # instead of lib<name>.a to let people know that these are not 10491 # typical AIX shared libraries. 10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10493 else 10494 # We preserve .a as extension for shared libraries through AIX4.2 10495 # and later when we are not doing run time linking. 10496 library_names_spec='${libname}${release}.a $libname.a' 10497 soname_spec='${libname}${release}${shared_ext}$major' 10498 fi 10499 shlibpath_var=LIBPATH 10500 fi 10501 ;; 10502 10503amigaos*) 10504 case $host_cpu in 10505 powerpc) 10506 # Since July 2007 AmigaOS4 officially supports .so libraries. 10507 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10509 ;; 10510 m68k) 10511 library_names_spec='$libname.ixlibrary $libname.a' 10512 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10513 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' 10514 ;; 10515 esac 10516 ;; 10517 10518beos*) 10519 library_names_spec='${libname}${shared_ext}' 10520 dynamic_linker="$host_os ld.so" 10521 shlibpath_var=LIBRARY_PATH 10522 ;; 10523 10524bsdi[45]*) 10525 version_type=linux # correct to gnu/linux during the next big refactor 10526 need_version=no 10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10528 soname_spec='${libname}${release}${shared_ext}$major' 10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10530 shlibpath_var=LD_LIBRARY_PATH 10531 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10532 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10533 # the default ld.so.conf also contains /usr/contrib/lib and 10534 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10535 # libtool to hard-code these into programs 10536 ;; 10537 10538cygwin* | mingw* | pw32* | cegcc*) 10539 version_type=windows 10540 shrext_cmds=".dll" 10541 need_version=no 10542 need_lib_prefix=no 10543 10544 case $GCC,$cc_basename in 10545 yes,*) 10546 # gcc 10547 library_names_spec='$libname.dll.a' 10548 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10549 postinstall_cmds='base_file=`basename \${file}`~ 10550 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10551 dldir=$destdir/`dirname \$dlpath`~ 10552 test -d \$dldir || mkdir -p \$dldir~ 10553 $install_prog $dir/$dlname \$dldir/$dlname~ 10554 chmod a+x \$dldir/$dlname~ 10555 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10556 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10557 fi' 10558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10559 dlpath=$dir/\$dldll~ 10560 $RM \$dlpath' 10561 shlibpath_overrides_runpath=yes 10562 10563 case $host_os in 10564 cygwin*) 10565 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10566 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10567 10568 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10569 ;; 10570 mingw* | cegcc*) 10571 # MinGW DLLs use traditional 'lib' prefix 10572 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10573 ;; 10574 pw32*) 10575 # pw32 DLLs use 'pw' prefix rather than 'lib' 10576 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10577 ;; 10578 esac 10579 dynamic_linker='Win32 ld.exe' 10580 ;; 10581 10582 *,cl*) 10583 # Native MSVC 10584 libname_spec='$name' 10585 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10586 library_names_spec='${libname}.dll.lib' 10587 10588 case $build_os in 10589 mingw*) 10590 sys_lib_search_path_spec= 10591 lt_save_ifs=$IFS 10592 IFS=';' 10593 for lt_path in $LIB 10594 do 10595 IFS=$lt_save_ifs 10596 # Let DOS variable expansion print the short 8.3 style file name. 10597 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10598 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10599 done 10600 IFS=$lt_save_ifs 10601 # Convert to MSYS style. 10602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10603 ;; 10604 cygwin*) 10605 # Convert to unix form, then to dos form, then back to unix form 10606 # but this time dos style (no spaces!) so that the unix form looks 10607 # like /cygdrive/c/PROGRA~1:/cygdr... 10608 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10609 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10610 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10611 ;; 10612 *) 10613 sys_lib_search_path_spec="$LIB" 10614 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10615 # It is most probably a Windows format PATH. 10616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10617 else 10618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10619 fi 10620 # FIXME: find the short name or the path components, as spaces are 10621 # common. (e.g. "Program Files" -> "PROGRA~1") 10622 ;; 10623 esac 10624 10625 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10626 postinstall_cmds='base_file=`basename \${file}`~ 10627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10628 dldir=$destdir/`dirname \$dlpath`~ 10629 test -d \$dldir || mkdir -p \$dldir~ 10630 $install_prog $dir/$dlname \$dldir/$dlname' 10631 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10632 dlpath=$dir/\$dldll~ 10633 $RM \$dlpath' 10634 shlibpath_overrides_runpath=yes 10635 dynamic_linker='Win32 link.exe' 10636 ;; 10637 10638 *) 10639 # Assume MSVC wrapper 10640 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10641 dynamic_linker='Win32 ld.exe' 10642 ;; 10643 esac 10644 # FIXME: first we should search . and the directory the executable is in 10645 shlibpath_var=PATH 10646 ;; 10647 10648darwin* | rhapsody*) 10649 dynamic_linker="$host_os dyld" 10650 version_type=darwin 10651 need_lib_prefix=no 10652 need_version=no 10653 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10654 soname_spec='${libname}${release}${major}$shared_ext' 10655 shlibpath_overrides_runpath=yes 10656 shlibpath_var=DYLD_LIBRARY_PATH 10657 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10658 10659 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10660 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10661 ;; 10662 10663dgux*) 10664 version_type=linux # correct to gnu/linux during the next big refactor 10665 need_lib_prefix=no 10666 need_version=no 10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10668 soname_spec='${libname}${release}${shared_ext}$major' 10669 shlibpath_var=LD_LIBRARY_PATH 10670 ;; 10671 10672freebsd* | dragonfly*) 10673 # DragonFly does not have aout. When/if they implement a new 10674 # versioning mechanism, adjust this. 10675 if test -x /usr/bin/objformat; then 10676 objformat=`/usr/bin/objformat` 10677 else 10678 case $host_os in 10679 freebsd[23].*) objformat=aout ;; 10680 *) objformat=elf ;; 10681 esac 10682 fi 10683 version_type=freebsd-$objformat 10684 case $version_type in 10685 freebsd-elf*) 10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10687 need_version=no 10688 need_lib_prefix=no 10689 ;; 10690 freebsd-*) 10691 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10692 need_version=yes 10693 ;; 10694 esac 10695 shlibpath_var=LD_LIBRARY_PATH 10696 case $host_os in 10697 freebsd2.*) 10698 shlibpath_overrides_runpath=yes 10699 ;; 10700 freebsd3.[01]* | freebsdelf3.[01]*) 10701 shlibpath_overrides_runpath=yes 10702 hardcode_into_libs=yes 10703 ;; 10704 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10705 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10706 shlibpath_overrides_runpath=no 10707 hardcode_into_libs=yes 10708 ;; 10709 *) # from 4.6 on, and DragonFly 10710 shlibpath_overrides_runpath=yes 10711 hardcode_into_libs=yes 10712 ;; 10713 esac 10714 ;; 10715 10716gnu*) 10717 version_type=linux # correct to gnu/linux during the next big refactor 10718 need_lib_prefix=no 10719 need_version=no 10720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10721 soname_spec='${libname}${release}${shared_ext}$major' 10722 shlibpath_var=LD_LIBRARY_PATH 10723 shlibpath_overrides_runpath=no 10724 hardcode_into_libs=yes 10725 ;; 10726 10727haiku*) 10728 version_type=linux # correct to gnu/linux during the next big refactor 10729 need_lib_prefix=no 10730 need_version=no 10731 dynamic_linker="$host_os runtime_loader" 10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10733 soname_spec='${libname}${release}${shared_ext}$major' 10734 shlibpath_var=LIBRARY_PATH 10735 shlibpath_overrides_runpath=yes 10736 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10737 hardcode_into_libs=yes 10738 ;; 10739 10740hpux9* | hpux10* | hpux11*) 10741 # Give a soname corresponding to the major version so that dld.sl refuses to 10742 # link against other versions. 10743 version_type=sunos 10744 need_lib_prefix=no 10745 need_version=no 10746 case $host_cpu in 10747 ia64*) 10748 shrext_cmds='.so' 10749 hardcode_into_libs=yes 10750 dynamic_linker="$host_os dld.so" 10751 shlibpath_var=LD_LIBRARY_PATH 10752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10754 soname_spec='${libname}${release}${shared_ext}$major' 10755 if test "X$HPUX_IA64_MODE" = X32; then 10756 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10757 else 10758 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10759 fi 10760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10761 ;; 10762 hppa*64*) 10763 shrext_cmds='.sl' 10764 hardcode_into_libs=yes 10765 dynamic_linker="$host_os dld.sl" 10766 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10769 soname_spec='${libname}${release}${shared_ext}$major' 10770 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10772 ;; 10773 *) 10774 shrext_cmds='.sl' 10775 dynamic_linker="$host_os dld.sl" 10776 shlibpath_var=SHLIB_PATH 10777 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10779 soname_spec='${libname}${release}${shared_ext}$major' 10780 ;; 10781 esac 10782 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10783 postinstall_cmds='chmod 555 $lib' 10784 # or fails outright, so override atomically: 10785 install_override_mode=555 10786 ;; 10787 10788interix[3-9]*) 10789 version_type=linux # correct to gnu/linux during the next big refactor 10790 need_lib_prefix=no 10791 need_version=no 10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10793 soname_spec='${libname}${release}${shared_ext}$major' 10794 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10795 shlibpath_var=LD_LIBRARY_PATH 10796 shlibpath_overrides_runpath=no 10797 hardcode_into_libs=yes 10798 ;; 10799 10800irix5* | irix6* | nonstopux*) 10801 case $host_os in 10802 nonstopux*) version_type=nonstopux ;; 10803 *) 10804 if test "$lt_cv_prog_gnu_ld" = yes; then 10805 version_type=linux # correct to gnu/linux during the next big refactor 10806 else 10807 version_type=irix 10808 fi ;; 10809 esac 10810 need_lib_prefix=no 10811 need_version=no 10812 soname_spec='${libname}${release}${shared_ext}$major' 10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10814 case $host_os in 10815 irix5* | nonstopux*) 10816 libsuff= shlibsuff= 10817 ;; 10818 *) 10819 case $LD in # libtool.m4 will add one of these switches to LD 10820 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10821 libsuff= shlibsuff= libmagic=32-bit;; 10822 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10823 libsuff=32 shlibsuff=N32 libmagic=N32;; 10824 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10825 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10826 *) libsuff= shlibsuff= libmagic=never-match;; 10827 esac 10828 ;; 10829 esac 10830 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10831 shlibpath_overrides_runpath=no 10832 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10833 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10834 hardcode_into_libs=yes 10835 ;; 10836 10837# No shared lib support for Linux oldld, aout, or coff. 10838linux*oldld* | linux*aout* | linux*coff*) 10839 dynamic_linker=no 10840 ;; 10841 10842# This must be glibc/ELF. 10843linux* | k*bsd*-gnu | kopensolaris*-gnu) 10844 version_type=linux # correct to gnu/linux during the next big refactor 10845 need_lib_prefix=no 10846 need_version=no 10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10848 soname_spec='${libname}${release}${shared_ext}$major' 10849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10850 shlibpath_var=LD_LIBRARY_PATH 10851 shlibpath_overrides_runpath=no 10852 10853 # Some binutils ld are patched to set DT_RUNPATH 10854 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10855 $as_echo_n "(cached) " >&6 10856else 10857 lt_cv_shlibpath_overrides_runpath=no 10858 save_LDFLAGS=$LDFLAGS 10859 save_libdir=$libdir 10860 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10861 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10863/* end confdefs.h. */ 10864 10865int 10866main () 10867{ 10868 10869 ; 10870 return 0; 10871} 10872_ACEOF 10873if ac_fn_c_try_link "$LINENO"; then : 10874 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10875 lt_cv_shlibpath_overrides_runpath=yes 10876fi 10877fi 10878rm -f core conftest.err conftest.$ac_objext \ 10879 conftest$ac_exeext conftest.$ac_ext 10880 LDFLAGS=$save_LDFLAGS 10881 libdir=$save_libdir 10882 10883fi 10884 10885 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10886 10887 # This implies no fast_install, which is unacceptable. 10888 # Some rework will be needed to allow for fast_install 10889 # before this can be enabled. 10890 hardcode_into_libs=yes 10891 10892 # Append ld.so.conf contents to the search path 10893 if test -f /etc/ld.so.conf; then 10894 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' ' '` 10895 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10896 fi 10897 10898 # We used to test for /lib/ld.so.1 and disable shared libraries on 10899 # powerpc, because MkLinux only supported shared libraries with the 10900 # GNU dynamic linker. Since this was broken with cross compilers, 10901 # most powerpc-linux boxes support dynamic linking these days and 10902 # people can always --disable-shared, the test was removed, and we 10903 # assume the GNU/Linux dynamic linker is in use. 10904 dynamic_linker='GNU/Linux ld.so' 10905 ;; 10906 10907netbsd*) 10908 version_type=sunos 10909 need_lib_prefix=no 10910 need_version=no 10911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10914 dynamic_linker='NetBSD (a.out) ld.so' 10915 else 10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10917 soname_spec='${libname}${release}${shared_ext}$major' 10918 dynamic_linker='NetBSD ld.elf_so' 10919 fi 10920 shlibpath_var=LD_LIBRARY_PATH 10921 shlibpath_overrides_runpath=yes 10922 hardcode_into_libs=yes 10923 ;; 10924 10925newsos6) 10926 version_type=linux # correct to gnu/linux during the next big refactor 10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10928 shlibpath_var=LD_LIBRARY_PATH 10929 shlibpath_overrides_runpath=yes 10930 ;; 10931 10932*nto* | *qnx*) 10933 version_type=qnx 10934 need_lib_prefix=no 10935 need_version=no 10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10937 soname_spec='${libname}${release}${shared_ext}$major' 10938 shlibpath_var=LD_LIBRARY_PATH 10939 shlibpath_overrides_runpath=no 10940 hardcode_into_libs=yes 10941 dynamic_linker='ldqnx.so' 10942 ;; 10943 10944openbsd*) 10945 version_type=sunos 10946 sys_lib_dlsearch_path_spec="/usr/lib" 10947 need_lib_prefix=no 10948 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10949 case $host_os in 10950 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10951 *) need_version=no ;; 10952 esac 10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10955 shlibpath_var=LD_LIBRARY_PATH 10956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10957 case $host_os in 10958 openbsd2.[89] | openbsd2.[89].*) 10959 shlibpath_overrides_runpath=no 10960 ;; 10961 *) 10962 shlibpath_overrides_runpath=yes 10963 ;; 10964 esac 10965 else 10966 shlibpath_overrides_runpath=yes 10967 fi 10968 ;; 10969 10970os2*) 10971 libname_spec='$name' 10972 shrext_cmds=".dll" 10973 need_lib_prefix=no 10974 library_names_spec='$libname${shared_ext} $libname.a' 10975 dynamic_linker='OS/2 ld.exe' 10976 shlibpath_var=LIBPATH 10977 ;; 10978 10979osf3* | osf4* | osf5*) 10980 version_type=osf 10981 need_lib_prefix=no 10982 need_version=no 10983 soname_spec='${libname}${release}${shared_ext}$major' 10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10985 shlibpath_var=LD_LIBRARY_PATH 10986 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10987 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10988 ;; 10989 10990rdos*) 10991 dynamic_linker=no 10992 ;; 10993 10994solaris*) 10995 version_type=linux # correct to gnu/linux during the next big refactor 10996 need_lib_prefix=no 10997 need_version=no 10998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10999 soname_spec='${libname}${release}${shared_ext}$major' 11000 shlibpath_var=LD_LIBRARY_PATH 11001 shlibpath_overrides_runpath=yes 11002 hardcode_into_libs=yes 11003 # ldd complains unless libraries are executable 11004 postinstall_cmds='chmod +x $lib' 11005 ;; 11006 11007sunos4*) 11008 version_type=sunos 11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11010 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11011 shlibpath_var=LD_LIBRARY_PATH 11012 shlibpath_overrides_runpath=yes 11013 if test "$with_gnu_ld" = yes; then 11014 need_lib_prefix=no 11015 fi 11016 need_version=yes 11017 ;; 11018 11019sysv4 | sysv4.3*) 11020 version_type=linux # correct to gnu/linux during the next big refactor 11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11022 soname_spec='${libname}${release}${shared_ext}$major' 11023 shlibpath_var=LD_LIBRARY_PATH 11024 case $host_vendor in 11025 sni) 11026 shlibpath_overrides_runpath=no 11027 need_lib_prefix=no 11028 runpath_var=LD_RUN_PATH 11029 ;; 11030 siemens) 11031 need_lib_prefix=no 11032 ;; 11033 motorola) 11034 need_lib_prefix=no 11035 need_version=no 11036 shlibpath_overrides_runpath=no 11037 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11038 ;; 11039 esac 11040 ;; 11041 11042sysv4*MP*) 11043 if test -d /usr/nec ;then 11044 version_type=linux # correct to gnu/linux during the next big refactor 11045 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11046 soname_spec='$libname${shared_ext}.$major' 11047 shlibpath_var=LD_LIBRARY_PATH 11048 fi 11049 ;; 11050 11051sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11052 version_type=freebsd-elf 11053 need_lib_prefix=no 11054 need_version=no 11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11056 soname_spec='${libname}${release}${shared_ext}$major' 11057 shlibpath_var=LD_LIBRARY_PATH 11058 shlibpath_overrides_runpath=yes 11059 hardcode_into_libs=yes 11060 if test "$with_gnu_ld" = yes; then 11061 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11062 else 11063 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11064 case $host_os in 11065 sco3.2v5*) 11066 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11067 ;; 11068 esac 11069 fi 11070 sys_lib_dlsearch_path_spec='/usr/lib' 11071 ;; 11072 11073tpf*) 11074 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11075 version_type=linux # correct to gnu/linux during the next big refactor 11076 need_lib_prefix=no 11077 need_version=no 11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11079 shlibpath_var=LD_LIBRARY_PATH 11080 shlibpath_overrides_runpath=no 11081 hardcode_into_libs=yes 11082 ;; 11083 11084uts4*) 11085 version_type=linux # correct to gnu/linux during the next big refactor 11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11087 soname_spec='${libname}${release}${shared_ext}$major' 11088 shlibpath_var=LD_LIBRARY_PATH 11089 ;; 11090 11091*) 11092 dynamic_linker=no 11093 ;; 11094esac 11095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11096$as_echo "$dynamic_linker" >&6; } 11097test "$dynamic_linker" = no && can_build_shared=no 11098 11099variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11100if test "$GCC" = yes; then 11101 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11102fi 11103 11104if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11105 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11106fi 11107if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11108 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11109fi 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11203$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11204hardcode_action= 11205if test -n "$hardcode_libdir_flag_spec" || 11206 test -n "$runpath_var" || 11207 test "X$hardcode_automatic" = "Xyes" ; then 11208 11209 # We can hardcode non-existent directories. 11210 if test "$hardcode_direct" != no && 11211 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11212 # have to relink, otherwise we might link with an installed library 11213 # when we should be linking with a yet-to-be-installed one 11214 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11215 test "$hardcode_minus_L" != no; then 11216 # Linking always hardcodes the temporary library directory. 11217 hardcode_action=relink 11218 else 11219 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11220 hardcode_action=immediate 11221 fi 11222else 11223 # We cannot hardcode anything, or else we can only hardcode existing 11224 # directories. 11225 hardcode_action=unsupported 11226fi 11227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11228$as_echo "$hardcode_action" >&6; } 11229 11230if test "$hardcode_action" = relink || 11231 test "$inherit_rpath" = yes; then 11232 # Fast installation is not supported 11233 enable_fast_install=no 11234elif test "$shlibpath_overrides_runpath" = yes || 11235 test "$enable_shared" = no; then 11236 # Fast installation is not necessary 11237 enable_fast_install=needless 11238fi 11239 11240 11241 11242 11243 11244 11245 if test "x$enable_dlopen" != xyes; then 11246 enable_dlopen=unknown 11247 enable_dlopen_self=unknown 11248 enable_dlopen_self_static=unknown 11249else 11250 lt_cv_dlopen=no 11251 lt_cv_dlopen_libs= 11252 11253 case $host_os in 11254 beos*) 11255 lt_cv_dlopen="load_add_on" 11256 lt_cv_dlopen_libs= 11257 lt_cv_dlopen_self=yes 11258 ;; 11259 11260 mingw* | pw32* | cegcc*) 11261 lt_cv_dlopen="LoadLibrary" 11262 lt_cv_dlopen_libs= 11263 ;; 11264 11265 cygwin*) 11266 lt_cv_dlopen="dlopen" 11267 lt_cv_dlopen_libs= 11268 ;; 11269 11270 darwin*) 11271 # if libdl is installed we need to link against it 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11273$as_echo_n "checking for dlopen in -ldl... " >&6; } 11274if ${ac_cv_lib_dl_dlopen+:} false; then : 11275 $as_echo_n "(cached) " >&6 11276else 11277 ac_check_lib_save_LIBS=$LIBS 11278LIBS="-ldl $LIBS" 11279cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11280/* end confdefs.h. */ 11281 11282/* Override any GCC internal prototype to avoid an error. 11283 Use char because int might match the return type of a GCC 11284 builtin and then its argument prototype would still apply. */ 11285#ifdef __cplusplus 11286extern "C" 11287#endif 11288char dlopen (); 11289int 11290main () 11291{ 11292return dlopen (); 11293 ; 11294 return 0; 11295} 11296_ACEOF 11297if ac_fn_c_try_link "$LINENO"; then : 11298 ac_cv_lib_dl_dlopen=yes 11299else 11300 ac_cv_lib_dl_dlopen=no 11301fi 11302rm -f core conftest.err conftest.$ac_objext \ 11303 conftest$ac_exeext conftest.$ac_ext 11304LIBS=$ac_check_lib_save_LIBS 11305fi 11306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11307$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11308if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11309 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11310else 11311 11312 lt_cv_dlopen="dyld" 11313 lt_cv_dlopen_libs= 11314 lt_cv_dlopen_self=yes 11315 11316fi 11317 11318 ;; 11319 11320 *) 11321 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11322if test "x$ac_cv_func_shl_load" = xyes; then : 11323 lt_cv_dlopen="shl_load" 11324else 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11326$as_echo_n "checking for shl_load in -ldld... " >&6; } 11327if ${ac_cv_lib_dld_shl_load+:} false; then : 11328 $as_echo_n "(cached) " >&6 11329else 11330 ac_check_lib_save_LIBS=$LIBS 11331LIBS="-ldld $LIBS" 11332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11333/* end confdefs.h. */ 11334 11335/* Override any GCC internal prototype to avoid an error. 11336 Use char because int might match the return type of a GCC 11337 builtin and then its argument prototype would still apply. */ 11338#ifdef __cplusplus 11339extern "C" 11340#endif 11341char shl_load (); 11342int 11343main () 11344{ 11345return shl_load (); 11346 ; 11347 return 0; 11348} 11349_ACEOF 11350if ac_fn_c_try_link "$LINENO"; then : 11351 ac_cv_lib_dld_shl_load=yes 11352else 11353 ac_cv_lib_dld_shl_load=no 11354fi 11355rm -f core conftest.err conftest.$ac_objext \ 11356 conftest$ac_exeext conftest.$ac_ext 11357LIBS=$ac_check_lib_save_LIBS 11358fi 11359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11360$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11361if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11362 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11363else 11364 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11365if test "x$ac_cv_func_dlopen" = xyes; then : 11366 lt_cv_dlopen="dlopen" 11367else 11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11369$as_echo_n "checking for dlopen in -ldl... " >&6; } 11370if ${ac_cv_lib_dl_dlopen+:} false; then : 11371 $as_echo_n "(cached) " >&6 11372else 11373 ac_check_lib_save_LIBS=$LIBS 11374LIBS="-ldl $LIBS" 11375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11376/* end confdefs.h. */ 11377 11378/* Override any GCC internal prototype to avoid an error. 11379 Use char because int might match the return type of a GCC 11380 builtin and then its argument prototype would still apply. */ 11381#ifdef __cplusplus 11382extern "C" 11383#endif 11384char dlopen (); 11385int 11386main () 11387{ 11388return dlopen (); 11389 ; 11390 return 0; 11391} 11392_ACEOF 11393if ac_fn_c_try_link "$LINENO"; then : 11394 ac_cv_lib_dl_dlopen=yes 11395else 11396 ac_cv_lib_dl_dlopen=no 11397fi 11398rm -f core conftest.err conftest.$ac_objext \ 11399 conftest$ac_exeext conftest.$ac_ext 11400LIBS=$ac_check_lib_save_LIBS 11401fi 11402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11403$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11404if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11406else 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11408$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11409if ${ac_cv_lib_svld_dlopen+:} false; then : 11410 $as_echo_n "(cached) " >&6 11411else 11412 ac_check_lib_save_LIBS=$LIBS 11413LIBS="-lsvld $LIBS" 11414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11415/* end confdefs.h. */ 11416 11417/* Override any GCC internal prototype to avoid an error. 11418 Use char because int might match the return type of a GCC 11419 builtin and then its argument prototype would still apply. */ 11420#ifdef __cplusplus 11421extern "C" 11422#endif 11423char dlopen (); 11424int 11425main () 11426{ 11427return dlopen (); 11428 ; 11429 return 0; 11430} 11431_ACEOF 11432if ac_fn_c_try_link "$LINENO"; then : 11433 ac_cv_lib_svld_dlopen=yes 11434else 11435 ac_cv_lib_svld_dlopen=no 11436fi 11437rm -f core conftest.err conftest.$ac_objext \ 11438 conftest$ac_exeext conftest.$ac_ext 11439LIBS=$ac_check_lib_save_LIBS 11440fi 11441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11442$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11443if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11445else 11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11447$as_echo_n "checking for dld_link in -ldld... " >&6; } 11448if ${ac_cv_lib_dld_dld_link+:} false; then : 11449 $as_echo_n "(cached) " >&6 11450else 11451 ac_check_lib_save_LIBS=$LIBS 11452LIBS="-ldld $LIBS" 11453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11454/* end confdefs.h. */ 11455 11456/* Override any GCC internal prototype to avoid an error. 11457 Use char because int might match the return type of a GCC 11458 builtin and then its argument prototype would still apply. */ 11459#ifdef __cplusplus 11460extern "C" 11461#endif 11462char dld_link (); 11463int 11464main () 11465{ 11466return dld_link (); 11467 ; 11468 return 0; 11469} 11470_ACEOF 11471if ac_fn_c_try_link "$LINENO"; then : 11472 ac_cv_lib_dld_dld_link=yes 11473else 11474 ac_cv_lib_dld_dld_link=no 11475fi 11476rm -f core conftest.err conftest.$ac_objext \ 11477 conftest$ac_exeext conftest.$ac_ext 11478LIBS=$ac_check_lib_save_LIBS 11479fi 11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11481$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11482if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11483 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11484fi 11485 11486 11487fi 11488 11489 11490fi 11491 11492 11493fi 11494 11495 11496fi 11497 11498 11499fi 11500 11501 ;; 11502 esac 11503 11504 if test "x$lt_cv_dlopen" != xno; then 11505 enable_dlopen=yes 11506 else 11507 enable_dlopen=no 11508 fi 11509 11510 case $lt_cv_dlopen in 11511 dlopen) 11512 save_CPPFLAGS="$CPPFLAGS" 11513 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11514 11515 save_LDFLAGS="$LDFLAGS" 11516 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11517 11518 save_LIBS="$LIBS" 11519 LIBS="$lt_cv_dlopen_libs $LIBS" 11520 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11522$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11523if ${lt_cv_dlopen_self+:} false; then : 11524 $as_echo_n "(cached) " >&6 11525else 11526 if test "$cross_compiling" = yes; then : 11527 lt_cv_dlopen_self=cross 11528else 11529 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11530 lt_status=$lt_dlunknown 11531 cat > conftest.$ac_ext <<_LT_EOF 11532#line $LINENO "configure" 11533#include "confdefs.h" 11534 11535#if HAVE_DLFCN_H 11536#include <dlfcn.h> 11537#endif 11538 11539#include <stdio.h> 11540 11541#ifdef RTLD_GLOBAL 11542# define LT_DLGLOBAL RTLD_GLOBAL 11543#else 11544# ifdef DL_GLOBAL 11545# define LT_DLGLOBAL DL_GLOBAL 11546# else 11547# define LT_DLGLOBAL 0 11548# endif 11549#endif 11550 11551/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11552 find out it does not work in some platform. */ 11553#ifndef LT_DLLAZY_OR_NOW 11554# ifdef RTLD_LAZY 11555# define LT_DLLAZY_OR_NOW RTLD_LAZY 11556# else 11557# ifdef DL_LAZY 11558# define LT_DLLAZY_OR_NOW DL_LAZY 11559# else 11560# ifdef RTLD_NOW 11561# define LT_DLLAZY_OR_NOW RTLD_NOW 11562# else 11563# ifdef DL_NOW 11564# define LT_DLLAZY_OR_NOW DL_NOW 11565# else 11566# define LT_DLLAZY_OR_NOW 0 11567# endif 11568# endif 11569# endif 11570# endif 11571#endif 11572 11573/* When -fvisbility=hidden is used, assume the code has been annotated 11574 correspondingly for the symbols needed. */ 11575#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11576int fnord () __attribute__((visibility("default"))); 11577#endif 11578 11579int fnord () { return 42; } 11580int main () 11581{ 11582 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11583 int status = $lt_dlunknown; 11584 11585 if (self) 11586 { 11587 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11588 else 11589 { 11590 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11591 else puts (dlerror ()); 11592 } 11593 /* dlclose (self); */ 11594 } 11595 else 11596 puts (dlerror ()); 11597 11598 return status; 11599} 11600_LT_EOF 11601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11602 (eval $ac_link) 2>&5 11603 ac_status=$? 11604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11605 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11606 (./conftest; exit; ) >&5 2>/dev/null 11607 lt_status=$? 11608 case x$lt_status in 11609 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11610 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11611 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11612 esac 11613 else : 11614 # compilation failed 11615 lt_cv_dlopen_self=no 11616 fi 11617fi 11618rm -fr conftest* 11619 11620 11621fi 11622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11623$as_echo "$lt_cv_dlopen_self" >&6; } 11624 11625 if test "x$lt_cv_dlopen_self" = xyes; then 11626 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11628$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11629if ${lt_cv_dlopen_self_static+:} false; then : 11630 $as_echo_n "(cached) " >&6 11631else 11632 if test "$cross_compiling" = yes; then : 11633 lt_cv_dlopen_self_static=cross 11634else 11635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11636 lt_status=$lt_dlunknown 11637 cat > conftest.$ac_ext <<_LT_EOF 11638#line $LINENO "configure" 11639#include "confdefs.h" 11640 11641#if HAVE_DLFCN_H 11642#include <dlfcn.h> 11643#endif 11644 11645#include <stdio.h> 11646 11647#ifdef RTLD_GLOBAL 11648# define LT_DLGLOBAL RTLD_GLOBAL 11649#else 11650# ifdef DL_GLOBAL 11651# define LT_DLGLOBAL DL_GLOBAL 11652# else 11653# define LT_DLGLOBAL 0 11654# endif 11655#endif 11656 11657/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11658 find out it does not work in some platform. */ 11659#ifndef LT_DLLAZY_OR_NOW 11660# ifdef RTLD_LAZY 11661# define LT_DLLAZY_OR_NOW RTLD_LAZY 11662# else 11663# ifdef DL_LAZY 11664# define LT_DLLAZY_OR_NOW DL_LAZY 11665# else 11666# ifdef RTLD_NOW 11667# define LT_DLLAZY_OR_NOW RTLD_NOW 11668# else 11669# ifdef DL_NOW 11670# define LT_DLLAZY_OR_NOW DL_NOW 11671# else 11672# define LT_DLLAZY_OR_NOW 0 11673# endif 11674# endif 11675# endif 11676# endif 11677#endif 11678 11679/* When -fvisbility=hidden is used, assume the code has been annotated 11680 correspondingly for the symbols needed. */ 11681#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11682int fnord () __attribute__((visibility("default"))); 11683#endif 11684 11685int fnord () { return 42; } 11686int main () 11687{ 11688 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11689 int status = $lt_dlunknown; 11690 11691 if (self) 11692 { 11693 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11694 else 11695 { 11696 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11697 else puts (dlerror ()); 11698 } 11699 /* dlclose (self); */ 11700 } 11701 else 11702 puts (dlerror ()); 11703 11704 return status; 11705} 11706_LT_EOF 11707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11708 (eval $ac_link) 2>&5 11709 ac_status=$? 11710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11711 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11712 (./conftest; exit; ) >&5 2>/dev/null 11713 lt_status=$? 11714 case x$lt_status in 11715 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11716 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11717 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11718 esac 11719 else : 11720 # compilation failed 11721 lt_cv_dlopen_self_static=no 11722 fi 11723fi 11724rm -fr conftest* 11725 11726 11727fi 11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11729$as_echo "$lt_cv_dlopen_self_static" >&6; } 11730 fi 11731 11732 CPPFLAGS="$save_CPPFLAGS" 11733 LDFLAGS="$save_LDFLAGS" 11734 LIBS="$save_LIBS" 11735 ;; 11736 esac 11737 11738 case $lt_cv_dlopen_self in 11739 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11740 *) enable_dlopen_self=unknown ;; 11741 esac 11742 11743 case $lt_cv_dlopen_self_static in 11744 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11745 *) enable_dlopen_self_static=unknown ;; 11746 esac 11747fi 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765striplib= 11766old_striplib= 11767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11768$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11769if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11770 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11771 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11773$as_echo "yes" >&6; } 11774else 11775# FIXME - insert some real tests, host_os isn't really good enough 11776 case $host_os in 11777 darwin*) 11778 if test -n "$STRIP" ; then 11779 striplib="$STRIP -x" 11780 old_striplib="$STRIP -S" 11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11782$as_echo "yes" >&6; } 11783 else 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11785$as_echo "no" >&6; } 11786 fi 11787 ;; 11788 *) 11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11790$as_echo "no" >&6; } 11791 ;; 11792 esac 11793fi 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 # Report which library types will actually be built 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11808$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11810$as_echo "$can_build_shared" >&6; } 11811 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11813$as_echo_n "checking whether to build shared libraries... " >&6; } 11814 test "$can_build_shared" = "no" && enable_shared=no 11815 11816 # On AIX, shared libraries and static libraries use the same namespace, and 11817 # are all built from PIC. 11818 case $host_os in 11819 aix3*) 11820 test "$enable_shared" = yes && enable_static=no 11821 if test -n "$RANLIB"; then 11822 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11823 postinstall_cmds='$RANLIB $lib' 11824 fi 11825 ;; 11826 11827 aix[4-9]*) 11828 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11829 test "$enable_shared" = yes && enable_static=no 11830 fi 11831 ;; 11832 esac 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11834$as_echo "$enable_shared" >&6; } 11835 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11837$as_echo_n "checking whether to build static libraries... " >&6; } 11838 # Make sure either enable_shared or enable_static is yes. 11839 test "$enable_shared" = yes || enable_static=yes 11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11841$as_echo "$enable_static" >&6; } 11842 11843 11844 11845 11846fi 11847ac_ext=c 11848ac_cpp='$CPP $CPPFLAGS' 11849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11851ac_compiler_gnu=$ac_cv_c_compiler_gnu 11852 11853CC="$lt_save_CC" 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 ac_config_commands="$ac_config_commands libtool" 11870 11871 11872 11873 11874# Only expand once: 11875 11876 11877# Extract the first word of "unzip", so it can be a program name with args. 11878set dummy unzip; ac_word=$2 11879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11880$as_echo_n "checking for $ac_word... " >&6; } 11881if ${ac_cv_path_UNZIP+:} false; then : 11882 $as_echo_n "(cached) " >&6 11883else 11884 case $UNZIP in 11885 [\\/]* | ?:[\\/]*) 11886 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 11887 ;; 11888 *) 11889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11890for as_dir in $PATH 11891do 11892 IFS=$as_save_IFS 11893 test -z "$as_dir" && as_dir=. 11894 for ac_exec_ext in '' $ac_executable_extensions; do 11895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11896 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 11897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11898 break 2 11899 fi 11900done 11901 done 11902IFS=$as_save_IFS 11903 11904 ;; 11905esac 11906fi 11907UNZIP=$ac_cv_path_UNZIP 11908if test -n "$UNZIP"; then 11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 11910$as_echo "$UNZIP" >&6; } 11911else 11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11913$as_echo "no" >&6; } 11914fi 11915 11916 11917if test x"$UNZIP" = x -a ! -f "sp_enc.c" ; then 11918 as_fn_error $? "You need unzip utility to prepare sources." "$LINENO" 5 11919fi 11920# Extract the first word of "patch", so it can be a program name with args. 11921set dummy patch; ac_word=$2 11922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11923$as_echo_n "checking for $ac_word... " >&6; } 11924if ${ac_cv_path_PATCH+:} false; then : 11925 $as_echo_n "(cached) " >&6 11926else 11927 case $PATCH in 11928 [\\/]* | ?:[\\/]*) 11929 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 11930 ;; 11931 *) 11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11933for as_dir in $PATH 11934do 11935 IFS=$as_save_IFS 11936 test -z "$as_dir" && as_dir=. 11937 for ac_exec_ext in '' $ac_executable_extensions; do 11938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11939 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 11940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11941 break 2 11942 fi 11943done 11944 done 11945IFS=$as_save_IFS 11946 11947 ;; 11948esac 11949fi 11950PATCH=$ac_cv_path_PATCH 11951if test -n "$PATCH"; then 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 11953$as_echo "$PATCH" >&6; } 11954else 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11956$as_echo "no" >&6; } 11957fi 11958 11959 11960if test x"$PATCH" = x -a ! -f "sp_enc.c" ; then 11961 as_fn_error $? "You need patch utility to prepare sources." "$LINENO" 5 11962fi 11963 11964 11965# Check whether --with-parameter_expansion_string_replace_capable_shell was given. 11966if test "${with_parameter_expansion_string_replace_capable_shell+set}" = set; then : 11967 withval=$with_parameter_expansion_string_replace_capable_shell; 11968 ac_parameter_expansion_string_replace_capable_shell="$withval" 11969 11970else 11971 11972 ac_parameter_expansion_string_replace_capable_shell="none" 11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /bin/bash" >&5 11974$as_echo_n "checking for /bin/bash... " >&6; } 11975if ${ac_cv_file__bin_bash+:} false; then : 11976 $as_echo_n "(cached) " >&6 11977else 11978 test "$cross_compiling" = yes && 11979 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11980if test -r "/bin/bash"; then 11981 ac_cv_file__bin_bash=yes 11982else 11983 ac_cv_file__bin_bash=no 11984fi 11985fi 11986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__bin_bash" >&5 11987$as_echo "$ac_cv_file__bin_bash" >&6; } 11988if test "x$ac_cv_file__bin_bash" = xyes; then : 11989 11990 BASH="/bin/bash" 11991 11992else 11993 11994 # Extract the first word of "bash", so it can be a program name with args. 11995set dummy bash; ac_word=$2 11996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11997$as_echo_n "checking for $ac_word... " >&6; } 11998if ${ac_cv_path_BASH+:} false; then : 11999 $as_echo_n "(cached) " >&6 12000else 12001 case $BASH in 12002 [\\/]* | ?:[\\/]*) 12003 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 12004 ;; 12005 *) 12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12007for as_dir in $PATH 12008do 12009 IFS=$as_save_IFS 12010 test -z "$as_dir" && as_dir=. 12011 for ac_exec_ext in '' $ac_executable_extensions; do 12012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12013 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12015 break 2 12016 fi 12017done 12018 done 12019IFS=$as_save_IFS 12020 12021 ;; 12022esac 12023fi 12024BASH=$ac_cv_path_BASH 12025if test -n "$BASH"; then 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 12027$as_echo "$BASH" >&6; } 12028else 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12030$as_echo "no" >&6; } 12031fi 12032 12033 12034 12035fi 12036 12037 if test "x$BASH" != "x" ; then 12038 ac_parameter_expansion_string_replace_capable_shell="$BASH" 12039 else 12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /bin/ash" >&5 12041$as_echo_n "checking for /bin/ash... " >&6; } 12042if ${ac_cv_file__bin_ash+:} false; then : 12043 $as_echo_n "(cached) " >&6 12044else 12045 test "$cross_compiling" = yes && 12046 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 12047if test -r "/bin/ash"; then 12048 ac_cv_file__bin_ash=yes 12049else 12050 ac_cv_file__bin_ash=no 12051fi 12052fi 12053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__bin_ash" >&5 12054$as_echo "$ac_cv_file__bin_ash" >&6; } 12055if test "x$ac_cv_file__bin_ash" = xyes; then : 12056 12057 ASH="/bin/ash" 12058 12059else 12060 12061 # Extract the first word of "ash", so it can be a program name with args. 12062set dummy ash; ac_word=$2 12063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12064$as_echo_n "checking for $ac_word... " >&6; } 12065if ${ac_cv_path_ASH+:} false; then : 12066 $as_echo_n "(cached) " >&6 12067else 12068 case $ASH in 12069 [\\/]* | ?:[\\/]*) 12070 ac_cv_path_ASH="$ASH" # Let the user override the test with a path. 12071 ;; 12072 *) 12073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12074for as_dir in $PATH 12075do 12076 IFS=$as_save_IFS 12077 test -z "$as_dir" && as_dir=. 12078 for ac_exec_ext in '' $ac_executable_extensions; do 12079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12080 ac_cv_path_ASH="$as_dir/$ac_word$ac_exec_ext" 12081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12082 break 2 12083 fi 12084done 12085 done 12086IFS=$as_save_IFS 12087 12088 ;; 12089esac 12090fi 12091ASH=$ac_cv_path_ASH 12092if test -n "$ASH"; then 12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASH" >&5 12094$as_echo "$ASH" >&6; } 12095else 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12097$as_echo "no" >&6; } 12098fi 12099 12100 12101 12102fi 12103 12104 if test "x$ASH" != "x" ; then 12105 ac_parameter_expansion_string_replace_capable_shell="$ASH" 12106 fi 12107 fi 12108 12109fi 12110 12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parameter expansion string replace capable shell" >&5 12112$as_echo_n "checking for parameter expansion string replace capable shell... " >&6; } 12113if ${ac_cv_parameter_expansion_string_replace_capable_shell+:} false; then : 12114 $as_echo_n "(cached) " >&6 12115else 12116 12117 ac_cv_parameter_expansion_string_replace_capable_shell="none" 12118 if test x"$ac_parameter_expansion_string_replace_capable_shell" = xnone ; then 12119 if test x`/bin/sh -c "exec 2>/dev/null ; VAR=abc ; echo \\${VAR%bc}\\${VAR#ab}"` = xac ; then 12120 ac_cv_parameter_expansion_string_replace_capable_shell="/bin/sh" 12121 fi 12122 else 12123 ac_cv_parameter_expansion_string_replace_capable_shell="$ac_parameter_expansion_string_replace_capable_shell" 12124 fi 12125 12126fi 12127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_parameter_expansion_string_replace_capable_shell" >&5 12128$as_echo "$ac_cv_parameter_expansion_string_replace_capable_shell" >&6; } 12129 if test x"$ac_cv_parameter_expansion_string_replace_capable_shell" != "xnone" ; then 12130 PARAMETER_EXPANSION_STRING_REPLACE_CAPABLE_SHELL="$ac_cv_parameter_expansion_string_replace_capable_shell" 12131 else 12132 PARAMETER_EXPANSION_STRING_REPLACE_CAPABLE_SHELL="" 12133 fi 12134 12135 12136if test x"$PARAMETER_EXPANSION_STRING_REPLACE_CAPABLE_SHELL" = x -a ! "(" -f "26104-b00.zip" -o -f "sp_enc.c" ")" ; then 12137 NUMBER_SIGN="#" 12138 as_fn_error $? "You need parameter expansion string replace (i. e. \${var%string} and \${var${NUMBER_SIGN}string}) capable shell (bash, ash, better sh)." "$LINENO" 5 12139fi 12140 12141 12142# Check whether --with-downloader was given. 12143if test "${with_downloader+set}" = set; then : 12144 withval=$with_downloader; 12145 ac_downloader_prog="$withval" 12146 12147else 12148 12149 for ac_prog in wget fetch curl 12150do 12151 # Extract the first word of "$ac_prog", so it can be a program name with args. 12152set dummy $ac_prog; ac_word=$2 12153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12154$as_echo_n "checking for $ac_word... " >&6; } 12155if ${ac_cv_path_DOWNLOADER_PROG_CMD+:} false; then : 12156 $as_echo_n "(cached) " >&6 12157else 12158 case $DOWNLOADER_PROG_CMD in 12159 [\\/]* | ?:[\\/]*) 12160 ac_cv_path_DOWNLOADER_PROG_CMD="$DOWNLOADER_PROG_CMD" # Let the user override the test with a path. 12161 ;; 12162 *) 12163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12164for as_dir in $PATH 12165do 12166 IFS=$as_save_IFS 12167 test -z "$as_dir" && as_dir=. 12168 for ac_exec_ext in '' $ac_executable_extensions; do 12169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12170 ac_cv_path_DOWNLOADER_PROG_CMD="$as_dir/$ac_word$ac_exec_ext" 12171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12172 break 2 12173 fi 12174done 12175 done 12176IFS=$as_save_IFS 12177 12178 ;; 12179esac 12180fi 12181DOWNLOADER_PROG_CMD=$ac_cv_path_DOWNLOADER_PROG_CMD 12182if test -n "$DOWNLOADER_PROG_CMD"; then 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOWNLOADER_PROG_CMD" >&5 12184$as_echo "$DOWNLOADER_PROG_CMD" >&6; } 12185else 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12187$as_echo "no" >&6; } 12188fi 12189 12190 12191 test -n "$DOWNLOADER_PROG_CMD" && break 12192done 12193 12194 ac_downloader_prog="none" 12195 12196fi 12197 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for web downloading command" >&5 12199$as_echo_n "checking for web downloading command... " >&6; } 12200if ${ac_cv_downloader_prog+:} false; then : 12201 $as_echo_n "(cached) " >&6 12202else 12203 12204 ac_cv_downloader_prog="$ac_downloader_prog" 12205 ac_downloader_prog_args="" 12206 if test x"$ac_cv_downloader_prog" = "xnone" ; then 12207 case "$DOWNLOADER_PROG_CMD" in 12208 *wget*) 12209 # Does wget does not support -N? 12210 if wget --help 2>/dev/null | grep " -N" >/dev/null ; then 12211 ac_downloader_prog_args=" -N" 12212 else 12213 ac_downloader_prog_args="" 12214 fi 12215 ;; 12216 *fetch*) 12217 ac_downloader_prog_args=" -m" 12218 ;; 12219 *curl*) 12220 ac_downloader_prog_args=" -OR" 12221 ;; 12222 esac 12223 ac_cv_downloader_prog="$DOWNLOADER_PROG_CMD$ac_downloader_prog_args" 12224 fi 12225 12226fi 12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_downloader_prog" >&5 12228$as_echo "$ac_cv_downloader_prog" >&6; } 12229 if test x"$ac_cv_downloader_prog" != xnone ; then 12230 DOWNLOADER_PROG="$ac_cv_downloader_prog" 12231 else 12232 DOWNLOADER_PROG="" 12233 fi 12234 12235 12236if test x"$DOWNLOADER_PROG" = x -a ! "(" -f "26104-b00.zip" -o -f "sp_enc.c" ")" ; then 12237 as_fn_error $? "You need downloader utility to download sources (wget, fetch or curl)." "$LINENO" 5 12238fi 12239 12240# Checks for libraries. 12241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5 12242$as_echo_n "checking for library containing sqrt... " >&6; } 12243if ${ac_cv_search_sqrt+:} false; then : 12244 $as_echo_n "(cached) " >&6 12245else 12246 ac_func_search_save_LIBS=$LIBS 12247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12248/* end confdefs.h. */ 12249 12250/* Override any GCC internal prototype to avoid an error. 12251 Use char because int might match the return type of a GCC 12252 builtin and then its argument prototype would still apply. */ 12253#ifdef __cplusplus 12254extern "C" 12255#endif 12256char sqrt (); 12257int 12258main () 12259{ 12260return sqrt (); 12261 ; 12262 return 0; 12263} 12264_ACEOF 12265for ac_lib in '' m; do 12266 if test -z "$ac_lib"; then 12267 ac_res="none required" 12268 else 12269 ac_res=-l$ac_lib 12270 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12271 fi 12272 if ac_fn_c_try_link "$LINENO"; then : 12273 ac_cv_search_sqrt=$ac_res 12274fi 12275rm -f core conftest.err conftest.$ac_objext \ 12276 conftest$ac_exeext 12277 if ${ac_cv_search_sqrt+:} false; then : 12278 break 12279fi 12280done 12281if ${ac_cv_search_sqrt+:} false; then : 12282 12283else 12284 ac_cv_search_sqrt=no 12285fi 12286rm conftest.$ac_ext 12287LIBS=$ac_func_search_save_LIBS 12288fi 12289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5 12290$as_echo "$ac_cv_search_sqrt" >&6; } 12291ac_res=$ac_cv_search_sqrt 12292if test "$ac_res" != no; then : 12293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12294 12295fi 12296 12297 12298# Checks for header files. 12299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12300$as_echo_n "checking for ANSI C header files... " >&6; } 12301if ${ac_cv_header_stdc+:} false; then : 12302 $as_echo_n "(cached) " >&6 12303else 12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12305/* end confdefs.h. */ 12306#include <stdlib.h> 12307#include <stdarg.h> 12308#include <string.h> 12309#include <float.h> 12310 12311int 12312main () 12313{ 12314 12315 ; 12316 return 0; 12317} 12318_ACEOF 12319if ac_fn_c_try_compile "$LINENO"; then : 12320 ac_cv_header_stdc=yes 12321else 12322 ac_cv_header_stdc=no 12323fi 12324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12325 12326if test $ac_cv_header_stdc = yes; then 12327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12329/* end confdefs.h. */ 12330#include <string.h> 12331 12332_ACEOF 12333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12334 $EGREP "memchr" >/dev/null 2>&1; then : 12335 12336else 12337 ac_cv_header_stdc=no 12338fi 12339rm -f conftest* 12340 12341fi 12342 12343if test $ac_cv_header_stdc = yes; then 12344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12346/* end confdefs.h. */ 12347#include <stdlib.h> 12348 12349_ACEOF 12350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12351 $EGREP "free" >/dev/null 2>&1; then : 12352 12353else 12354 ac_cv_header_stdc=no 12355fi 12356rm -f conftest* 12357 12358fi 12359 12360if test $ac_cv_header_stdc = yes; then 12361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12362 if test "$cross_compiling" = yes; then : 12363 : 12364else 12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12366/* end confdefs.h. */ 12367#include <ctype.h> 12368#include <stdlib.h> 12369#if ((' ' & 0x0FF) == 0x020) 12370# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12371# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12372#else 12373# define ISLOWER(c) \ 12374 (('a' <= (c) && (c) <= 'i') \ 12375 || ('j' <= (c) && (c) <= 'r') \ 12376 || ('s' <= (c) && (c) <= 'z')) 12377# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12378#endif 12379 12380#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12381int 12382main () 12383{ 12384 int i; 12385 for (i = 0; i < 256; i++) 12386 if (XOR (islower (i), ISLOWER (i)) 12387 || toupper (i) != TOUPPER (i)) 12388 return 2; 12389 return 0; 12390} 12391_ACEOF 12392if ac_fn_c_try_run "$LINENO"; then : 12393 12394else 12395 ac_cv_header_stdc=no 12396fi 12397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12398 conftest.$ac_objext conftest.beam conftest.$ac_ext 12399fi 12400 12401fi 12402fi 12403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12404$as_echo "$ac_cv_header_stdc" >&6; } 12405if test $ac_cv_header_stdc = yes; then 12406 12407$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12408 12409fi 12410 12411for ac_header in float.h memory.h stdint.h stdlib.h string.h 12412do : 12413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12414ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12415if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12416 cat >>confdefs.h <<_ACEOF 12417#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12418_ACEOF 12419 12420else 12421 12422 as_fn_error $? "You need standard header files." "$LINENO" 5 12423 12424fi 12425 12426done 12427 12428 12429# Checks for typedefs, structures, and compiler characteristics. 12430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12431$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12432if ${ac_cv_c_const+:} false; then : 12433 $as_echo_n "(cached) " >&6 12434else 12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12436/* end confdefs.h. */ 12437 12438int 12439main () 12440{ 12441 12442#ifndef __cplusplus 12443 /* Ultrix mips cc rejects this sort of thing. */ 12444 typedef int charset[2]; 12445 const charset cs = { 0, 0 }; 12446 /* SunOS 4.1.1 cc rejects this. */ 12447 char const *const *pcpcc; 12448 char **ppc; 12449 /* NEC SVR4.0.2 mips cc rejects this. */ 12450 struct point {int x, y;}; 12451 static struct point const zero = {0,0}; 12452 /* AIX XL C 1.02.0.0 rejects this. 12453 It does not let you subtract one const X* pointer from another in 12454 an arm of an if-expression whose if-part is not a constant 12455 expression */ 12456 const char *g = "string"; 12457 pcpcc = &g + (g ? g-g : 0); 12458 /* HPUX 7.0 cc rejects these. */ 12459 ++pcpcc; 12460 ppc = (char**) pcpcc; 12461 pcpcc = (char const *const *) ppc; 12462 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12463 char tx; 12464 char *t = &tx; 12465 char const *s = 0 ? (char *) 0 : (char const *) 0; 12466 12467 *t++ = 0; 12468 if (s) return 0; 12469 } 12470 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12471 int x[] = {25, 17}; 12472 const int *foo = &x[0]; 12473 ++foo; 12474 } 12475 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12476 typedef const int *iptr; 12477 iptr p = 0; 12478 ++p; 12479 } 12480 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12481 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12482 struct s { int j; const int *ap[3]; } bx; 12483 struct s *b = &bx; b->j = 5; 12484 } 12485 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12486 const int foo = 10; 12487 if (!foo) return 0; 12488 } 12489 return !cs[0] && !zero.x; 12490#endif 12491 12492 ; 12493 return 0; 12494} 12495_ACEOF 12496if ac_fn_c_try_compile "$LINENO"; then : 12497 ac_cv_c_const=yes 12498else 12499 ac_cv_c_const=no 12500fi 12501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12502fi 12503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12504$as_echo "$ac_cv_c_const" >&6; } 12505if test $ac_cv_c_const = no; then 12506 12507$as_echo "#define const /**/" >>confdefs.h 12508 12509fi 12510 12511ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 12512case $ac_cv_c_int16_t in #( 12513 no|yes) ;; #( 12514 *) 12515 12516cat >>confdefs.h <<_ACEOF 12517#define int16_t $ac_cv_c_int16_t 12518_ACEOF 12519;; 12520esac 12521 12522ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 12523case $ac_cv_c_int32_t in #( 12524 no|yes) ;; #( 12525 *) 12526 12527cat >>confdefs.h <<_ACEOF 12528#define int32_t $ac_cv_c_int32_t 12529_ACEOF 12530;; 12531esac 12532 12533ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 12534case $ac_cv_c_int8_t in #( 12535 no|yes) ;; #( 12536 *) 12537 12538cat >>confdefs.h <<_ACEOF 12539#define int8_t $ac_cv_c_int8_t 12540_ACEOF 12541;; 12542esac 12543 12544ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 12545case $ac_cv_c_uint8_t in #( 12546 no|yes) ;; #( 12547 *) 12548 12549$as_echo "#define _UINT8_T 1" >>confdefs.h 12550 12551 12552cat >>confdefs.h <<_ACEOF 12553#define uint8_t $ac_cv_c_uint8_t 12554_ACEOF 12555;; 12556 esac 12557 12558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 12559$as_echo_n "checking for working volatile... " >&6; } 12560if ${ac_cv_c_volatile+:} false; then : 12561 $as_echo_n "(cached) " >&6 12562else 12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12564/* end confdefs.h. */ 12565 12566int 12567main () 12568{ 12569 12570volatile int x; 12571int * volatile y = (int *) 0; 12572return !x && !y; 12573 ; 12574 return 0; 12575} 12576_ACEOF 12577if ac_fn_c_try_compile "$LINENO"; then : 12578 ac_cv_c_volatile=yes 12579else 12580 ac_cv_c_volatile=no 12581fi 12582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12583fi 12584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 12585$as_echo "$ac_cv_c_volatile" >&6; } 12586if test $ac_cv_c_volatile = no; then 12587 12588$as_echo "#define volatile /**/" >>confdefs.h 12589 12590fi 12591 12592 12593# Checks for library functions. 12594for ac_header in stdlib.h 12595do : 12596 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12597if test "x$ac_cv_header_stdlib_h" = xyes; then : 12598 cat >>confdefs.h <<_ACEOF 12599#define HAVE_STDLIB_H 1 12600_ACEOF 12601 12602fi 12603 12604done 12605 12606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 12607$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 12608if ${ac_cv_func_malloc_0_nonnull+:} false; then : 12609 $as_echo_n "(cached) " >&6 12610else 12611 if test "$cross_compiling" = yes; then : 12612 ac_cv_func_malloc_0_nonnull=no 12613else 12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12615/* end confdefs.h. */ 12616#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12617# include <stdlib.h> 12618#else 12619char *malloc (); 12620#endif 12621 12622int 12623main () 12624{ 12625return ! malloc (0); 12626 ; 12627 return 0; 12628} 12629_ACEOF 12630if ac_fn_c_try_run "$LINENO"; then : 12631 ac_cv_func_malloc_0_nonnull=yes 12632else 12633 ac_cv_func_malloc_0_nonnull=no 12634fi 12635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12636 conftest.$ac_objext conftest.beam conftest.$ac_ext 12637fi 12638 12639fi 12640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 12641$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 12642if test $ac_cv_func_malloc_0_nonnull = yes; then : 12643 12644$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 12645 12646else 12647 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 12648 12649 case " $LIBOBJS " in 12650 *" malloc.$ac_objext "* ) ;; 12651 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 12652 ;; 12653esac 12654 12655 12656$as_echo "#define malloc rpl_malloc" >>confdefs.h 12657 12658fi 12659 12660 12661for ac_func in floor memset sqrt strtol 12662do : 12663 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12664ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12665if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12666 cat >>confdefs.h <<_ACEOF 12667#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12668_ACEOF 12669 12670else 12671 12672 as_fn_error $? "You basic math functions." "$LINENO" 5 12673 12674fi 12675done 12676 12677 12678ac_config_files="$ac_config_files Makefile amrnb.spec prepare_sources.sh" 12679 12680cat >confcache <<\_ACEOF 12681# This file is a shell script that caches the results of configure 12682# tests run on this system so they can be shared between configure 12683# scripts and configure runs, see configure's option --config-cache. 12684# It is not useful on other systems. If it contains results you don't 12685# want to keep, you may remove or edit it. 12686# 12687# config.status only pays attention to the cache file if you give it 12688# the --recheck option to rerun configure. 12689# 12690# `ac_cv_env_foo' variables (set or unset) will be overridden when 12691# loading this file, other *unset* `ac_cv_foo' will be assigned the 12692# following values. 12693 12694_ACEOF 12695 12696# The following way of writing the cache mishandles newlines in values, 12697# but we know of no workaround that is simple, portable, and efficient. 12698# So, we kill variables containing newlines. 12699# Ultrix sh set writes to stderr and can't be redirected directly, 12700# and sets the high bit in the cache file unless we assign to the vars. 12701( 12702 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12703 eval ac_val=\$$ac_var 12704 case $ac_val in #( 12705 *${as_nl}*) 12706 case $ac_var in #( 12707 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12708$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12709 esac 12710 case $ac_var in #( 12711 _ | IFS | as_nl) ;; #( 12712 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12713 *) { eval $ac_var=; unset $ac_var;} ;; 12714 esac ;; 12715 esac 12716 done 12717 12718 (set) 2>&1 | 12719 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12720 *${as_nl}ac_space=\ *) 12721 # `set' does not quote correctly, so add quotes: double-quote 12722 # substitution turns \\\\ into \\, and sed turns \\ into \. 12723 sed -n \ 12724 "s/'/'\\\\''/g; 12725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12726 ;; #( 12727 *) 12728 # `set' quotes correctly as required by POSIX, so do not add quotes. 12729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12730 ;; 12731 esac | 12732 sort 12733) | 12734 sed ' 12735 /^ac_cv_env_/b end 12736 t clear 12737 :clear 12738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12739 t end 12740 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12741 :end' >>confcache 12742if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12743 if test -w "$cache_file"; then 12744 if test "x$cache_file" != "x/dev/null"; then 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12746$as_echo "$as_me: updating cache $cache_file" >&6;} 12747 if test ! -f "$cache_file" || test -h "$cache_file"; then 12748 cat confcache >"$cache_file" 12749 else 12750 case $cache_file in #( 12751 */* | ?:*) 12752 mv -f confcache "$cache_file"$$ && 12753 mv -f "$cache_file"$$ "$cache_file" ;; #( 12754 *) 12755 mv -f confcache "$cache_file" ;; 12756 esac 12757 fi 12758 fi 12759 else 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12761$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12762 fi 12763fi 12764rm -f confcache 12765 12766test "x$prefix" = xNONE && prefix=$ac_default_prefix 12767# Let make expand exec_prefix. 12768test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12769 12770# Transform confdefs.h into DEFS. 12771# Protect against shell expansion while executing Makefile rules. 12772# Protect against Makefile macro expansion. 12773# 12774# If the first sed substitution is executed (which looks for macros that 12775# take arguments), then branch to the quote section. Otherwise, 12776# look for a macro that doesn't take arguments. 12777ac_script=' 12778:mline 12779/\\$/{ 12780 N 12781 s,\\\n,, 12782 b mline 12783} 12784t clear 12785:clear 12786s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 12787t quote 12788s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 12789t quote 12790b any 12791:quote 12792s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 12793s/\[/\\&/g 12794s/\]/\\&/g 12795s/\$/$$/g 12796H 12797:any 12798${ 12799 g 12800 s/^\n// 12801 s/\n/ /g 12802 p 12803} 12804' 12805DEFS=`sed -n "$ac_script" confdefs.h` 12806 12807 12808ac_libobjs= 12809ac_ltlibobjs= 12810U= 12811for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12812 # 1. Remove the extension, and $U if already installed. 12813 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12814 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12815 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12816 # will be set to the directory where LIBOBJS objects are built. 12817 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12818 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12819done 12820LIBOBJS=$ac_libobjs 12821 12822LTLIBOBJS=$ac_ltlibobjs 12823 12824 12825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12826$as_echo_n "checking that generated files are newer than configure... " >&6; } 12827 if test -n "$am_sleep_pid"; then 12828 # Hide warnings about reused PIDs. 12829 wait $am_sleep_pid 2>/dev/null 12830 fi 12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12832$as_echo "done" >&6; } 12833 if test -n "$EXEEXT"; then 12834 am__EXEEXT_TRUE= 12835 am__EXEEXT_FALSE='#' 12836else 12837 am__EXEEXT_TRUE='#' 12838 am__EXEEXT_FALSE= 12839fi 12840 12841if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12842 as_fn_error $? "conditional \"AMDEP\" was never defined. 12843Usually this means the macro was only invoked conditionally." "$LINENO" 5 12844fi 12845if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12846 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12847Usually this means the macro was only invoked conditionally." "$LINENO" 5 12848fi 12849 12850: "${CONFIG_STATUS=./config.status}" 12851ac_write_fail=0 12852ac_clean_files_save=$ac_clean_files 12853ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12854{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12855$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12856as_write_fail=0 12857cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12858#! $SHELL 12859# Generated by $as_me. 12860# Run this file to recreate the current configuration. 12861# Compiler output produced by configure, useful for debugging 12862# configure, is in config.log if it exists. 12863 12864debug=false 12865ac_cs_recheck=false 12866ac_cs_silent=false 12867 12868SHELL=\${CONFIG_SHELL-$SHELL} 12869export SHELL 12870_ASEOF 12871cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12872## -------------------- ## 12873## M4sh Initialization. ## 12874## -------------------- ## 12875 12876# Be more Bourne compatible 12877DUALCASE=1; export DUALCASE # for MKS sh 12878if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12879 emulate sh 12880 NULLCMD=: 12881 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12882 # is contrary to our usage. Disable this feature. 12883 alias -g '${1+"$@"}'='"$@"' 12884 setopt NO_GLOB_SUBST 12885else 12886 case `(set -o) 2>/dev/null` in #( 12887 *posix*) : 12888 set -o posix ;; #( 12889 *) : 12890 ;; 12891esac 12892fi 12893 12894 12895as_nl=' 12896' 12897export as_nl 12898# Printing a long string crashes Solaris 7 /usr/bin/printf. 12899as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12900as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12901as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12902# Prefer a ksh shell builtin over an external printf program on Solaris, 12903# but without wasting forks for bash or zsh. 12904if test -z "$BASH_VERSION$ZSH_VERSION" \ 12905 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12906 as_echo='print -r --' 12907 as_echo_n='print -rn --' 12908elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12909 as_echo='printf %s\n' 12910 as_echo_n='printf %s' 12911else 12912 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12913 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12914 as_echo_n='/usr/ucb/echo -n' 12915 else 12916 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12917 as_echo_n_body='eval 12918 arg=$1; 12919 case $arg in #( 12920 *"$as_nl"*) 12921 expr "X$arg" : "X\\(.*\\)$as_nl"; 12922 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12923 esac; 12924 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12925 ' 12926 export as_echo_n_body 12927 as_echo_n='sh -c $as_echo_n_body as_echo' 12928 fi 12929 export as_echo_body 12930 as_echo='sh -c $as_echo_body as_echo' 12931fi 12932 12933# The user is always right. 12934if test "${PATH_SEPARATOR+set}" != set; then 12935 PATH_SEPARATOR=: 12936 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12937 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12938 PATH_SEPARATOR=';' 12939 } 12940fi 12941 12942 12943# IFS 12944# We need space, tab and new line, in precisely that order. Quoting is 12945# there to prevent editors from complaining about space-tab. 12946# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12947# splitting by setting IFS to empty value.) 12948IFS=" "" $as_nl" 12949 12950# Find who we are. Look in the path if we contain no directory separator. 12951as_myself= 12952case $0 in #(( 12953 *[\\/]* ) as_myself=$0 ;; 12954 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12955for as_dir in $PATH 12956do 12957 IFS=$as_save_IFS 12958 test -z "$as_dir" && as_dir=. 12959 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12960 done 12961IFS=$as_save_IFS 12962 12963 ;; 12964esac 12965# We did not find ourselves, most probably we were run as `sh COMMAND' 12966# in which case we are not to be found in the path. 12967if test "x$as_myself" = x; then 12968 as_myself=$0 12969fi 12970if test ! -f "$as_myself"; then 12971 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12972 exit 1 12973fi 12974 12975# Unset variables that we do not need and which cause bugs (e.g. in 12976# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12977# suppresses any "Segmentation fault" message there. '((' could 12978# trigger a bug in pdksh 5.2.14. 12979for as_var in BASH_ENV ENV MAIL MAILPATH 12980do eval test x\${$as_var+set} = xset \ 12981 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12982done 12983PS1='$ ' 12984PS2='> ' 12985PS4='+ ' 12986 12987# NLS nuisances. 12988LC_ALL=C 12989export LC_ALL 12990LANGUAGE=C 12991export LANGUAGE 12992 12993# CDPATH. 12994(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12995 12996 12997# as_fn_error STATUS ERROR [LINENO LOG_FD] 12998# ---------------------------------------- 12999# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13000# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13001# script with STATUS, using 1 if that was 0. 13002as_fn_error () 13003{ 13004 as_status=$1; test $as_status -eq 0 && as_status=1 13005 if test "$4"; then 13006 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13007 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13008 fi 13009 $as_echo "$as_me: error: $2" >&2 13010 as_fn_exit $as_status 13011} # as_fn_error 13012 13013 13014# as_fn_set_status STATUS 13015# ----------------------- 13016# Set $? to STATUS, without forking. 13017as_fn_set_status () 13018{ 13019 return $1 13020} # as_fn_set_status 13021 13022# as_fn_exit STATUS 13023# ----------------- 13024# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13025as_fn_exit () 13026{ 13027 set +e 13028 as_fn_set_status $1 13029 exit $1 13030} # as_fn_exit 13031 13032# as_fn_unset VAR 13033# --------------- 13034# Portably unset VAR. 13035as_fn_unset () 13036{ 13037 { eval $1=; unset $1;} 13038} 13039as_unset=as_fn_unset 13040# as_fn_append VAR VALUE 13041# ---------------------- 13042# Append the text in VALUE to the end of the definition contained in VAR. Take 13043# advantage of any shell optimizations that allow amortized linear growth over 13044# repeated appends, instead of the typical quadratic growth present in naive 13045# implementations. 13046if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13047 eval 'as_fn_append () 13048 { 13049 eval $1+=\$2 13050 }' 13051else 13052 as_fn_append () 13053 { 13054 eval $1=\$$1\$2 13055 } 13056fi # as_fn_append 13057 13058# as_fn_arith ARG... 13059# ------------------ 13060# Perform arithmetic evaluation on the ARGs, and store the result in the 13061# global $as_val. Take advantage of shells that can avoid forks. The arguments 13062# must be portable across $(()) and expr. 13063if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13064 eval 'as_fn_arith () 13065 { 13066 as_val=$(( $* )) 13067 }' 13068else 13069 as_fn_arith () 13070 { 13071 as_val=`expr "$@" || test $? -eq 1` 13072 } 13073fi # as_fn_arith 13074 13075 13076if expr a : '\(a\)' >/dev/null 2>&1 && 13077 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13078 as_expr=expr 13079else 13080 as_expr=false 13081fi 13082 13083if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13084 as_basename=basename 13085else 13086 as_basename=false 13087fi 13088 13089if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13090 as_dirname=dirname 13091else 13092 as_dirname=false 13093fi 13094 13095as_me=`$as_basename -- "$0" || 13096$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13097 X"$0" : 'X\(//\)$' \| \ 13098 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13099$as_echo X/"$0" | 13100 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13101 s//\1/ 13102 q 13103 } 13104 /^X\/\(\/\/\)$/{ 13105 s//\1/ 13106 q 13107 } 13108 /^X\/\(\/\).*/{ 13109 s//\1/ 13110 q 13111 } 13112 s/.*/./; q'` 13113 13114# Avoid depending upon Character Ranges. 13115as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13116as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13117as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13118as_cr_digits='0123456789' 13119as_cr_alnum=$as_cr_Letters$as_cr_digits 13120 13121ECHO_C= ECHO_N= ECHO_T= 13122case `echo -n x` in #((((( 13123-n*) 13124 case `echo 'xy\c'` in 13125 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13126 xy) ECHO_C='\c';; 13127 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13128 ECHO_T=' ';; 13129 esac;; 13130*) 13131 ECHO_N='-n';; 13132esac 13133 13134rm -f conf$$ conf$$.exe conf$$.file 13135if test -d conf$$.dir; then 13136 rm -f conf$$.dir/conf$$.file 13137else 13138 rm -f conf$$.dir 13139 mkdir conf$$.dir 2>/dev/null 13140fi 13141if (echo >conf$$.file) 2>/dev/null; then 13142 if ln -s conf$$.file conf$$ 2>/dev/null; then 13143 as_ln_s='ln -s' 13144 # ... but there are two gotchas: 13145 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13146 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13147 # In both cases, we have to default to `cp -pR'. 13148 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13149 as_ln_s='cp -pR' 13150 elif ln conf$$.file conf$$ 2>/dev/null; then 13151 as_ln_s=ln 13152 else 13153 as_ln_s='cp -pR' 13154 fi 13155else 13156 as_ln_s='cp -pR' 13157fi 13158rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13159rmdir conf$$.dir 2>/dev/null 13160 13161 13162# as_fn_mkdir_p 13163# ------------- 13164# Create "$as_dir" as a directory, including parents if necessary. 13165as_fn_mkdir_p () 13166{ 13167 13168 case $as_dir in #( 13169 -*) as_dir=./$as_dir;; 13170 esac 13171 test -d "$as_dir" || eval $as_mkdir_p || { 13172 as_dirs= 13173 while :; do 13174 case $as_dir in #( 13175 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13176 *) as_qdir=$as_dir;; 13177 esac 13178 as_dirs="'$as_qdir' $as_dirs" 13179 as_dir=`$as_dirname -- "$as_dir" || 13180$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13181 X"$as_dir" : 'X\(//\)[^/]' \| \ 13182 X"$as_dir" : 'X\(//\)$' \| \ 13183 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13184$as_echo X"$as_dir" | 13185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13186 s//\1/ 13187 q 13188 } 13189 /^X\(\/\/\)[^/].*/{ 13190 s//\1/ 13191 q 13192 } 13193 /^X\(\/\/\)$/{ 13194 s//\1/ 13195 q 13196 } 13197 /^X\(\/\).*/{ 13198 s//\1/ 13199 q 13200 } 13201 s/.*/./; q'` 13202 test -d "$as_dir" && break 13203 done 13204 test -z "$as_dirs" || eval "mkdir $as_dirs" 13205 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13206 13207 13208} # as_fn_mkdir_p 13209if mkdir -p . 2>/dev/null; then 13210 as_mkdir_p='mkdir -p "$as_dir"' 13211else 13212 test -d ./-p && rmdir ./-p 13213 as_mkdir_p=false 13214fi 13215 13216 13217# as_fn_executable_p FILE 13218# ----------------------- 13219# Test if FILE is an executable regular file. 13220as_fn_executable_p () 13221{ 13222 test -f "$1" && test -x "$1" 13223} # as_fn_executable_p 13224as_test_x='test -x' 13225as_executable_p=as_fn_executable_p 13226 13227# Sed expression to map a string onto a valid CPP name. 13228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13229 13230# Sed expression to map a string onto a valid variable name. 13231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13232 13233 13234exec 6>&1 13235## ----------------------------------- ## 13236## Main body of $CONFIG_STATUS script. ## 13237## ----------------------------------- ## 13238_ASEOF 13239test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13240 13241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13242# Save the log message, to keep $0 and so on meaningful, and to 13243# report actual input values of CONFIG_FILES etc. instead of their 13244# values after options handling. 13245ac_log=" 13246This file was extended by amrnb $as_me 11.0.0.0, which was 13247generated by GNU Autoconf 2.69. Invocation command line was 13248 13249 CONFIG_FILES = $CONFIG_FILES 13250 CONFIG_HEADERS = $CONFIG_HEADERS 13251 CONFIG_LINKS = $CONFIG_LINKS 13252 CONFIG_COMMANDS = $CONFIG_COMMANDS 13253 $ $0 $@ 13254 13255on `(hostname || uname -n) 2>/dev/null | sed 1q` 13256" 13257 13258_ACEOF 13259 13260case $ac_config_files in *" 13261"*) set x $ac_config_files; shift; ac_config_files=$*;; 13262esac 13263 13264 13265 13266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13267# Files that config.status was made for. 13268config_files="$ac_config_files" 13269config_commands="$ac_config_commands" 13270 13271_ACEOF 13272 13273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13274ac_cs_usage="\ 13275\`$as_me' instantiates files and other configuration actions 13276from templates according to the current configuration. Unless the files 13277and actions are specified as TAGs, all are instantiated by default. 13278 13279Usage: $0 [OPTION]... [TAG]... 13280 13281 -h, --help print this help, then exit 13282 -V, --version print version number and configuration settings, then exit 13283 --config print configuration, then exit 13284 -q, --quiet, --silent 13285 do not print progress messages 13286 -d, --debug don't remove temporary files 13287 --recheck update $as_me by reconfiguring in the same conditions 13288 --file=FILE[:TEMPLATE] 13289 instantiate the configuration file FILE 13290 13291Configuration files: 13292$config_files 13293 13294Configuration commands: 13295$config_commands 13296 13297Report bugs to <Stanislav Brabec <utx@penguin.cz>>." 13298 13299_ACEOF 13300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13301ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13302ac_cs_version="\\ 13303amrnb config.status 11.0.0.0 13304configured by $0, generated by GNU Autoconf 2.69, 13305 with options \\"\$ac_cs_config\\" 13306 13307Copyright (C) 2012 Free Software Foundation, Inc. 13308This config.status script is free software; the Free Software Foundation 13309gives unlimited permission to copy, distribute and modify it." 13310 13311ac_pwd='$ac_pwd' 13312srcdir='$srcdir' 13313INSTALL='$INSTALL' 13314MKDIR_P='$MKDIR_P' 13315AWK='$AWK' 13316test -n "\$AWK" || AWK=awk 13317_ACEOF 13318 13319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13320# The default lists apply if the user does not specify any file. 13321ac_need_defaults=: 13322while test $# != 0 13323do 13324 case $1 in 13325 --*=?*) 13326 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13327 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13328 ac_shift=: 13329 ;; 13330 --*=) 13331 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13332 ac_optarg= 13333 ac_shift=: 13334 ;; 13335 *) 13336 ac_option=$1 13337 ac_optarg=$2 13338 ac_shift=shift 13339 ;; 13340 esac 13341 13342 case $ac_option in 13343 # Handling of the options. 13344 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13345 ac_cs_recheck=: ;; 13346 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13347 $as_echo "$ac_cs_version"; exit ;; 13348 --config | --confi | --conf | --con | --co | --c ) 13349 $as_echo "$ac_cs_config"; exit ;; 13350 --debug | --debu | --deb | --de | --d | -d ) 13351 debug=: ;; 13352 --file | --fil | --fi | --f ) 13353 $ac_shift 13354 case $ac_optarg in 13355 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13356 '') as_fn_error $? "missing file argument" ;; 13357 esac 13358 as_fn_append CONFIG_FILES " '$ac_optarg'" 13359 ac_need_defaults=false;; 13360 --he | --h | --help | --hel | -h ) 13361 $as_echo "$ac_cs_usage"; exit ;; 13362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13363 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13364 ac_cs_silent=: ;; 13365 13366 # This is an error. 13367 -*) as_fn_error $? "unrecognized option: \`$1' 13368Try \`$0 --help' for more information." ;; 13369 13370 *) as_fn_append ac_config_targets " $1" 13371 ac_need_defaults=false ;; 13372 13373 esac 13374 shift 13375done 13376 13377ac_configure_extra_args= 13378 13379if $ac_cs_silent; then 13380 exec 6>/dev/null 13381 ac_configure_extra_args="$ac_configure_extra_args --silent" 13382fi 13383 13384_ACEOF 13385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13386if \$ac_cs_recheck; then 13387 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13388 shift 13389 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13390 CONFIG_SHELL='$SHELL' 13391 export CONFIG_SHELL 13392 exec "\$@" 13393fi 13394 13395_ACEOF 13396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13397exec 5>>config.log 13398{ 13399 echo 13400 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13401## Running $as_me. ## 13402_ASBOX 13403 $as_echo "$ac_log" 13404} >&5 13405 13406_ACEOF 13407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13408# 13409# INIT-COMMANDS 13410# 13411AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13412 13413 13414# The HP-UX ksh and POSIX shell print the target directory to stdout 13415# if CDPATH is set. 13416(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13417 13418sed_quote_subst='$sed_quote_subst' 13419double_quote_subst='$double_quote_subst' 13420delay_variable_subst='$delay_variable_subst' 13421AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 13422DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13423OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13424macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13425macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13426enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13427enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13428pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13429enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13430SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13431ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13432PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13433host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13434host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13435host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13436build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13437build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13438build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13439SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13440Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13441GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13442EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13443FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13444LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13445NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13446LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13447max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13448ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13449exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13450lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13451lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13452lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13453lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13454lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13455reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13456reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13457deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13458file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13459file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13460want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13461sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13462AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13463AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13464archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13465STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13466RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13467old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13468old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13469old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13470lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13471CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13472CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13473compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13474GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13475lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13476lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13477lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13478lt_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"`' 13479nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13480lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13481objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13482MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13483lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13484lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13485lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13486lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13487lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13488need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13489MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13490DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13491NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13492LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13493OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13494OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13495libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13496shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13497extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13498archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13499enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13500export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13501whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13502compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13503old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13504old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13505archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13506archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13507module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13508module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13509with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13510allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13511no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13512hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13513hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13514hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13515hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13516hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13517hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13518hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13519inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13520link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13521always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13522export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13523exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13524include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13525prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13526postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13527file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13528variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13529need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13530need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13531version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13532runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13533shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13534shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13535libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13536library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13537soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13538install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13539postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13540postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13541finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13542finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13543hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13544sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13545sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13546hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13547enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13548enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13549enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13550old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13551striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13552 13553LTCC='$LTCC' 13554LTCFLAGS='$LTCFLAGS' 13555compiler='$compiler_DEFAULT' 13556 13557# A function that is used when there is no print builtin or printf. 13558func_fallback_echo () 13559{ 13560 eval 'cat <<_LTECHO_EOF 13561\$1 13562_LTECHO_EOF' 13563} 13564 13565# Quote evaled strings. 13566for var in AS \ 13567DLLTOOL \ 13568OBJDUMP \ 13569SHELL \ 13570ECHO \ 13571PATH_SEPARATOR \ 13572SED \ 13573GREP \ 13574EGREP \ 13575FGREP \ 13576LD \ 13577NM \ 13578LN_S \ 13579lt_SP2NL \ 13580lt_NL2SP \ 13581reload_flag \ 13582deplibs_check_method \ 13583file_magic_cmd \ 13584file_magic_glob \ 13585want_nocaseglob \ 13586sharedlib_from_linklib_cmd \ 13587AR \ 13588AR_FLAGS \ 13589archiver_list_spec \ 13590STRIP \ 13591RANLIB \ 13592CC \ 13593CFLAGS \ 13594compiler \ 13595lt_cv_sys_global_symbol_pipe \ 13596lt_cv_sys_global_symbol_to_cdecl \ 13597lt_cv_sys_global_symbol_to_c_name_address \ 13598lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13599nm_file_list_spec \ 13600lt_prog_compiler_no_builtin_flag \ 13601lt_prog_compiler_pic \ 13602lt_prog_compiler_wl \ 13603lt_prog_compiler_static \ 13604lt_cv_prog_compiler_c_o \ 13605need_locks \ 13606MANIFEST_TOOL \ 13607DSYMUTIL \ 13608NMEDIT \ 13609LIPO \ 13610OTOOL \ 13611OTOOL64 \ 13612shrext_cmds \ 13613export_dynamic_flag_spec \ 13614whole_archive_flag_spec \ 13615compiler_needs_object \ 13616with_gnu_ld \ 13617allow_undefined_flag \ 13618no_undefined_flag \ 13619hardcode_libdir_flag_spec \ 13620hardcode_libdir_separator \ 13621exclude_expsyms \ 13622include_expsyms \ 13623file_list_spec \ 13624variables_saved_for_relink \ 13625libname_spec \ 13626library_names_spec \ 13627soname_spec \ 13628install_override_mode \ 13629finish_eval \ 13630old_striplib \ 13631striplib; do 13632 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13633 *[\\\\\\\`\\"\\\$]*) 13634 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13635 ;; 13636 *) 13637 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13638 ;; 13639 esac 13640done 13641 13642# Double-quote double-evaled strings. 13643for var in reload_cmds \ 13644old_postinstall_cmds \ 13645old_postuninstall_cmds \ 13646old_archive_cmds \ 13647extract_expsyms_cmds \ 13648old_archive_from_new_cmds \ 13649old_archive_from_expsyms_cmds \ 13650archive_cmds \ 13651archive_expsym_cmds \ 13652module_cmds \ 13653module_expsym_cmds \ 13654export_symbols_cmds \ 13655prelink_cmds \ 13656postlink_cmds \ 13657postinstall_cmds \ 13658postuninstall_cmds \ 13659finish_cmds \ 13660sys_lib_search_path_spec \ 13661sys_lib_dlsearch_path_spec; do 13662 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13663 *[\\\\\\\`\\"\\\$]*) 13664 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13665 ;; 13666 *) 13667 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13668 ;; 13669 esac 13670done 13671 13672ac_aux_dir='$ac_aux_dir' 13673xsi_shell='$xsi_shell' 13674lt_shell_append='$lt_shell_append' 13675 13676# See if we are running on zsh, and set the options which allow our 13677# commands through without removal of \ escapes INIT. 13678if test -n "\${ZSH_VERSION+set}" ; then 13679 setopt NO_GLOB_SUBST 13680fi 13681 13682 13683 PACKAGE='$PACKAGE' 13684 VERSION='$VERSION' 13685 TIMESTAMP='$TIMESTAMP' 13686 RM='$RM' 13687 ofile='$ofile' 13688 13689 13690 13691 13692_ACEOF 13693 13694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13695 13696# Handling of arguments. 13697for ac_config_target in $ac_config_targets 13698do 13699 case $ac_config_target in 13700 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13701 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13702 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13703 "amrnb.spec") CONFIG_FILES="$CONFIG_FILES amrnb.spec" ;; 13704 "prepare_sources.sh") CONFIG_FILES="$CONFIG_FILES prepare_sources.sh" ;; 13705 13706 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13707 esac 13708done 13709 13710 13711# If the user did not use the arguments to specify the items to instantiate, 13712# then the envvar interface is used. Set only those that are not. 13713# We use the long form for the default assignment because of an extremely 13714# bizarre bug on SunOS 4.1.3. 13715if $ac_need_defaults; then 13716 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13717 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13718fi 13719 13720# Have a temporary directory for convenience. Make it in the build tree 13721# simply because there is no reason against having it here, and in addition, 13722# creating and moving files from /tmp can sometimes cause problems. 13723# Hook for its removal unless debugging. 13724# Note that there is a small window in which the directory will not be cleaned: 13725# after its creation but before its name has been assigned to `$tmp'. 13726$debug || 13727{ 13728 tmp= ac_tmp= 13729 trap 'exit_status=$? 13730 : "${ac_tmp:=$tmp}" 13731 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13732' 0 13733 trap 'as_fn_exit 1' 1 2 13 15 13734} 13735# Create a (secure) tmp directory for tmp files. 13736 13737{ 13738 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13739 test -d "$tmp" 13740} || 13741{ 13742 tmp=./conf$$-$RANDOM 13743 (umask 077 && mkdir "$tmp") 13744} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13745ac_tmp=$tmp 13746 13747# Set up the scripts for CONFIG_FILES section. 13748# No need to generate them if there are no CONFIG_FILES. 13749# This happens for instance with `./config.status config.h'. 13750if test -n "$CONFIG_FILES"; then 13751 13752 13753ac_cr=`echo X | tr X '\015'` 13754# On cygwin, bash can eat \r inside `` if the user requested igncr. 13755# But we know of no other shell where ac_cr would be empty at this 13756# point, so we can use a bashism as a fallback. 13757if test "x$ac_cr" = x; then 13758 eval ac_cr=\$\'\\r\' 13759fi 13760ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13761if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13762 ac_cs_awk_cr='\\r' 13763else 13764 ac_cs_awk_cr=$ac_cr 13765fi 13766 13767echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13768_ACEOF 13769 13770 13771{ 13772 echo "cat >conf$$subs.awk <<_ACEOF" && 13773 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13774 echo "_ACEOF" 13775} >conf$$subs.sh || 13776 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13777ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13778ac_delim='%!_!# ' 13779for ac_last_try in false false false false false :; do 13780 . ./conf$$subs.sh || 13781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13782 13783 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13784 if test $ac_delim_n = $ac_delim_num; then 13785 break 13786 elif $ac_last_try; then 13787 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13788 else 13789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13790 fi 13791done 13792rm -f conf$$subs.sh 13793 13794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13795cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13796_ACEOF 13797sed -n ' 13798h 13799s/^/S["/; s/!.*/"]=/ 13800p 13801g 13802s/^[^!]*!// 13803:repl 13804t repl 13805s/'"$ac_delim"'$// 13806t delim 13807:nl 13808h 13809s/\(.\{148\}\)..*/\1/ 13810t more1 13811s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13812p 13813n 13814b repl 13815:more1 13816s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13817p 13818g 13819s/.\{148\}// 13820t nl 13821:delim 13822h 13823s/\(.\{148\}\)..*/\1/ 13824t more2 13825s/["\\]/\\&/g; s/^/"/; s/$/"/ 13826p 13827b 13828:more2 13829s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13830p 13831g 13832s/.\{148\}// 13833t delim 13834' <conf$$subs.awk | sed ' 13835/^[^""]/{ 13836 N 13837 s/\n// 13838} 13839' >>$CONFIG_STATUS || ac_write_fail=1 13840rm -f conf$$subs.awk 13841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13842_ACAWK 13843cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13844 for (key in S) S_is_set[key] = 1 13845 FS = "" 13846 13847} 13848{ 13849 line = $ 0 13850 nfields = split(line, field, "@") 13851 substed = 0 13852 len = length(field[1]) 13853 for (i = 2; i < nfields; i++) { 13854 key = field[i] 13855 keylen = length(key) 13856 if (S_is_set[key]) { 13857 value = S[key] 13858 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13859 len += length(value) + length(field[++i]) 13860 substed = 1 13861 } else 13862 len += 1 + keylen 13863 } 13864 13865 print line 13866} 13867 13868_ACAWK 13869_ACEOF 13870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13871if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13872 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13873else 13874 cat 13875fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13876 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13877_ACEOF 13878 13879# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13880# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13881# trailing colons and then remove the whole line if VPATH becomes empty 13882# (actually we leave an empty line to preserve line numbers). 13883if test "x$srcdir" = x.; then 13884 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13885h 13886s/// 13887s/^/:/ 13888s/[ ]*$/:/ 13889s/:\$(srcdir):/:/g 13890s/:\${srcdir}:/:/g 13891s/:@srcdir@:/:/g 13892s/^:*// 13893s/:*$// 13894x 13895s/\(=[ ]*\).*/\1/ 13896G 13897s/\n// 13898s/^[^=]*=[ ]*$// 13899}' 13900fi 13901 13902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13903fi # test -n "$CONFIG_FILES" 13904 13905 13906eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 13907shift 13908for ac_tag 13909do 13910 case $ac_tag in 13911 :[FHLC]) ac_mode=$ac_tag; continue;; 13912 esac 13913 case $ac_mode$ac_tag in 13914 :[FHL]*:*);; 13915 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13916 :[FH]-) ac_tag=-:-;; 13917 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13918 esac 13919 ac_save_IFS=$IFS 13920 IFS=: 13921 set x $ac_tag 13922 IFS=$ac_save_IFS 13923 shift 13924 ac_file=$1 13925 shift 13926 13927 case $ac_mode in 13928 :L) ac_source=$1;; 13929 :[FH]) 13930 ac_file_inputs= 13931 for ac_f 13932 do 13933 case $ac_f in 13934 -) ac_f="$ac_tmp/stdin";; 13935 *) # Look for the file first in the build tree, then in the source tree 13936 # (if the path is not absolute). The absolute path cannot be DOS-style, 13937 # because $ac_f cannot contain `:'. 13938 test -f "$ac_f" || 13939 case $ac_f in 13940 [\\/$]*) false;; 13941 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13942 esac || 13943 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13944 esac 13945 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13946 as_fn_append ac_file_inputs " '$ac_f'" 13947 done 13948 13949 # Let's still pretend it is `configure' which instantiates (i.e., don't 13950 # use $as_me), people would be surprised to read: 13951 # /* config.h. Generated by config.status. */ 13952 configure_input='Generated from '` 13953 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13954 `' by configure.' 13955 if test x"$ac_file" != x-; then 13956 configure_input="$ac_file. $configure_input" 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13958$as_echo "$as_me: creating $ac_file" >&6;} 13959 fi 13960 # Neutralize special characters interpreted by sed in replacement strings. 13961 case $configure_input in #( 13962 *\&* | *\|* | *\\* ) 13963 ac_sed_conf_input=`$as_echo "$configure_input" | 13964 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13965 *) ac_sed_conf_input=$configure_input;; 13966 esac 13967 13968 case $ac_tag in 13969 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13970 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13971 esac 13972 ;; 13973 esac 13974 13975 ac_dir=`$as_dirname -- "$ac_file" || 13976$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13977 X"$ac_file" : 'X\(//\)[^/]' \| \ 13978 X"$ac_file" : 'X\(//\)$' \| \ 13979 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13980$as_echo X"$ac_file" | 13981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13982 s//\1/ 13983 q 13984 } 13985 /^X\(\/\/\)[^/].*/{ 13986 s//\1/ 13987 q 13988 } 13989 /^X\(\/\/\)$/{ 13990 s//\1/ 13991 q 13992 } 13993 /^X\(\/\).*/{ 13994 s//\1/ 13995 q 13996 } 13997 s/.*/./; q'` 13998 as_dir="$ac_dir"; as_fn_mkdir_p 13999 ac_builddir=. 14000 14001case "$ac_dir" in 14002.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14003*) 14004 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14005 # A ".." for each directory in $ac_dir_suffix. 14006 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14007 case $ac_top_builddir_sub in 14008 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14009 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14010 esac ;; 14011esac 14012ac_abs_top_builddir=$ac_pwd 14013ac_abs_builddir=$ac_pwd$ac_dir_suffix 14014# for backward compatibility: 14015ac_top_builddir=$ac_top_build_prefix 14016 14017case $srcdir in 14018 .) # We are building in place. 14019 ac_srcdir=. 14020 ac_top_srcdir=$ac_top_builddir_sub 14021 ac_abs_top_srcdir=$ac_pwd ;; 14022 [\\/]* | ?:[\\/]* ) # Absolute name. 14023 ac_srcdir=$srcdir$ac_dir_suffix; 14024 ac_top_srcdir=$srcdir 14025 ac_abs_top_srcdir=$srcdir ;; 14026 *) # Relative name. 14027 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14028 ac_top_srcdir=$ac_top_build_prefix$srcdir 14029 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14030esac 14031ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14032 14033 14034 case $ac_mode in 14035 :F) 14036 # 14037 # CONFIG_FILE 14038 # 14039 14040 case $INSTALL in 14041 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14042 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14043 esac 14044 ac_MKDIR_P=$MKDIR_P 14045 case $MKDIR_P in 14046 [\\/$]* | ?:[\\/]* ) ;; 14047 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14048 esac 14049_ACEOF 14050 14051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14052# If the template does not know about datarootdir, expand it. 14053# FIXME: This hack should be removed a few years after 2.60. 14054ac_datarootdir_hack=; ac_datarootdir_seen= 14055ac_sed_dataroot=' 14056/datarootdir/ { 14057 p 14058 q 14059} 14060/@datadir@/p 14061/@docdir@/p 14062/@infodir@/p 14063/@localedir@/p 14064/@mandir@/p' 14065case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14066*datarootdir*) ac_datarootdir_seen=yes;; 14067*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14069$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14070_ACEOF 14071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14072 ac_datarootdir_hack=' 14073 s&@datadir@&$datadir&g 14074 s&@docdir@&$docdir&g 14075 s&@infodir@&$infodir&g 14076 s&@localedir@&$localedir&g 14077 s&@mandir@&$mandir&g 14078 s&\\\${datarootdir}&$datarootdir&g' ;; 14079esac 14080_ACEOF 14081 14082# Neutralize VPATH when `$srcdir' = `.'. 14083# Shell code in configure.ac might set extrasub. 14084# FIXME: do we really want to maintain this feature? 14085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14086ac_sed_extra="$ac_vpsub 14087$extrasub 14088_ACEOF 14089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14090:t 14091/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14092s|@configure_input@|$ac_sed_conf_input|;t t 14093s&@top_builddir@&$ac_top_builddir_sub&;t t 14094s&@top_build_prefix@&$ac_top_build_prefix&;t t 14095s&@srcdir@&$ac_srcdir&;t t 14096s&@abs_srcdir@&$ac_abs_srcdir&;t t 14097s&@top_srcdir@&$ac_top_srcdir&;t t 14098s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14099s&@builddir@&$ac_builddir&;t t 14100s&@abs_builddir@&$ac_abs_builddir&;t t 14101s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14102s&@INSTALL@&$ac_INSTALL&;t t 14103s&@MKDIR_P@&$ac_MKDIR_P&;t t 14104$ac_datarootdir_hack 14105" 14106eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14107 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14108 14109test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14110 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14111 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14112 "$ac_tmp/out"`; test -z "$ac_out"; } && 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14114which seems to be undefined. Please make sure it is defined" >&5 14115$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14116which seems to be undefined. Please make sure it is defined" >&2;} 14117 14118 rm -f "$ac_tmp/stdin" 14119 case $ac_file in 14120 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14121 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14122 esac \ 14123 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14124 ;; 14125 14126 14127 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14128$as_echo "$as_me: executing $ac_file commands" >&6;} 14129 ;; 14130 esac 14131 14132 14133 case $ac_file$ac_mode in 14134 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14135 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14136 # are listed without --file. Let's play safe and only enable the eval 14137 # if we detect the quoting. 14138 case $CONFIG_FILES in 14139 *\'*) eval set x "$CONFIG_FILES" ;; 14140 *) set x $CONFIG_FILES ;; 14141 esac 14142 shift 14143 for mf 14144 do 14145 # Strip MF so we end up with the name of the file. 14146 mf=`echo "$mf" | sed -e 's/:.*$//'` 14147 # Check whether this is an Automake generated Makefile or not. 14148 # We used to match only the files named 'Makefile.in', but 14149 # some people rename them; so instead we look at the file content. 14150 # Grep'ing the first line is not enough: some people post-process 14151 # each Makefile.in and add a new line on top of each file to say so. 14152 # Grep'ing the whole file is not good either: AIX grep has a line 14153 # limit of 2048, but all sed's we know have understand at least 4000. 14154 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14155 dirpart=`$as_dirname -- "$mf" || 14156$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14157 X"$mf" : 'X\(//\)[^/]' \| \ 14158 X"$mf" : 'X\(//\)$' \| \ 14159 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14160$as_echo X"$mf" | 14161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14162 s//\1/ 14163 q 14164 } 14165 /^X\(\/\/\)[^/].*/{ 14166 s//\1/ 14167 q 14168 } 14169 /^X\(\/\/\)$/{ 14170 s//\1/ 14171 q 14172 } 14173 /^X\(\/\).*/{ 14174 s//\1/ 14175 q 14176 } 14177 s/.*/./; q'` 14178 else 14179 continue 14180 fi 14181 # Extract the definition of DEPDIR, am__include, and am__quote 14182 # from the Makefile without running 'make'. 14183 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14184 test -z "$DEPDIR" && continue 14185 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14186 test -z "am__include" && continue 14187 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14188 # Find all dependency output files, they are included files with 14189 # $(DEPDIR) in their names. We invoke sed twice because it is the 14190 # simplest approach to changing $(DEPDIR) to its actual value in the 14191 # expansion. 14192 for file in `sed -n " 14193 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14194 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 14195 # Make sure the directory exists. 14196 test -f "$dirpart/$file" && continue 14197 fdir=`$as_dirname -- "$file" || 14198$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14199 X"$file" : 'X\(//\)[^/]' \| \ 14200 X"$file" : 'X\(//\)$' \| \ 14201 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14202$as_echo X"$file" | 14203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14204 s//\1/ 14205 q 14206 } 14207 /^X\(\/\/\)[^/].*/{ 14208 s//\1/ 14209 q 14210 } 14211 /^X\(\/\/\)$/{ 14212 s//\1/ 14213 q 14214 } 14215 /^X\(\/\).*/{ 14216 s//\1/ 14217 q 14218 } 14219 s/.*/./; q'` 14220 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14221 # echo "creating $dirpart/$file" 14222 echo '# dummy' > "$dirpart/$file" 14223 done 14224 done 14225} 14226 ;; 14227 "libtool":C) 14228 14229 # See if we are running on zsh, and set the options which allow our 14230 # commands through without removal of \ escapes. 14231 if test -n "${ZSH_VERSION+set}" ; then 14232 setopt NO_GLOB_SUBST 14233 fi 14234 14235 cfgfile="${ofile}T" 14236 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14237 $RM "$cfgfile" 14238 14239 cat <<_LT_EOF >> "$cfgfile" 14240#! $SHELL 14241 14242# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14243# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14244# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14245# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14246# 14247# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14248# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 14249# Foundation, Inc. 14250# Written by Gordon Matzigkeit, 1996 14251# 14252# This file is part of GNU Libtool. 14253# 14254# GNU Libtool is free software; you can redistribute it and/or 14255# modify it under the terms of the GNU General Public License as 14256# published by the Free Software Foundation; either version 2 of 14257# the License, or (at your option) any later version. 14258# 14259# As a special exception to the GNU General Public License, 14260# if you distribute this file as part of a program or library that 14261# is built using GNU Libtool, you may include this file under the 14262# same distribution terms that you use for the rest of that program. 14263# 14264# GNU Libtool is distributed in the hope that it will be useful, 14265# but WITHOUT ANY WARRANTY; without even the implied warranty of 14266# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14267# GNU General Public License for more details. 14268# 14269# You should have received a copy of the GNU General Public License 14270# along with GNU Libtool; see the file COPYING. If not, a copy 14271# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14272# obtained by writing to the Free Software Foundation, Inc., 14273# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14274 14275 14276# The names of the tagged configurations supported by this script. 14277available_tags="" 14278 14279# ### BEGIN LIBTOOL CONFIG 14280 14281# Assembler program. 14282AS=$lt_AS 14283 14284# DLL creation program. 14285DLLTOOL=$lt_DLLTOOL 14286 14287# Object dumper program. 14288OBJDUMP=$lt_OBJDUMP 14289 14290# Which release of libtool.m4 was used? 14291macro_version=$macro_version 14292macro_revision=$macro_revision 14293 14294# Whether or not to build shared libraries. 14295build_libtool_libs=$enable_shared 14296 14297# Whether or not to build static libraries. 14298build_old_libs=$enable_static 14299 14300# What type of objects to build. 14301pic_mode=$pic_mode 14302 14303# Whether or not to optimize for fast installation. 14304fast_install=$enable_fast_install 14305 14306# Shell to use when invoking shell scripts. 14307SHELL=$lt_SHELL 14308 14309# An echo program that protects backslashes. 14310ECHO=$lt_ECHO 14311 14312# The PATH separator for the build system. 14313PATH_SEPARATOR=$lt_PATH_SEPARATOR 14314 14315# The host system. 14316host_alias=$host_alias 14317host=$host 14318host_os=$host_os 14319 14320# The build system. 14321build_alias=$build_alias 14322build=$build 14323build_os=$build_os 14324 14325# A sed program that does not truncate output. 14326SED=$lt_SED 14327 14328# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14329Xsed="\$SED -e 1s/^X//" 14330 14331# A grep program that handles long lines. 14332GREP=$lt_GREP 14333 14334# An ERE matcher. 14335EGREP=$lt_EGREP 14336 14337# A literal string matcher. 14338FGREP=$lt_FGREP 14339 14340# A BSD- or MS-compatible name lister. 14341NM=$lt_NM 14342 14343# Whether we need soft or hard links. 14344LN_S=$lt_LN_S 14345 14346# What is the maximum length of a command? 14347max_cmd_len=$max_cmd_len 14348 14349# Object file suffix (normally "o"). 14350objext=$ac_objext 14351 14352# Executable file suffix (normally ""). 14353exeext=$exeext 14354 14355# whether the shell understands "unset". 14356lt_unset=$lt_unset 14357 14358# turn spaces into newlines. 14359SP2NL=$lt_lt_SP2NL 14360 14361# turn newlines into spaces. 14362NL2SP=$lt_lt_NL2SP 14363 14364# convert \$build file names to \$host format. 14365to_host_file_cmd=$lt_cv_to_host_file_cmd 14366 14367# convert \$build files to toolchain format. 14368to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14369 14370# Method to check whether dependent libraries are shared objects. 14371deplibs_check_method=$lt_deplibs_check_method 14372 14373# Command to use when deplibs_check_method = "file_magic". 14374file_magic_cmd=$lt_file_magic_cmd 14375 14376# How to find potential files when deplibs_check_method = "file_magic". 14377file_magic_glob=$lt_file_magic_glob 14378 14379# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14380want_nocaseglob=$lt_want_nocaseglob 14381 14382# Command to associate shared and link libraries. 14383sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14384 14385# The archiver. 14386AR=$lt_AR 14387 14388# Flags to create an archive. 14389AR_FLAGS=$lt_AR_FLAGS 14390 14391# How to feed a file listing to the archiver. 14392archiver_list_spec=$lt_archiver_list_spec 14393 14394# A symbol stripping program. 14395STRIP=$lt_STRIP 14396 14397# Commands used to install an old-style archive. 14398RANLIB=$lt_RANLIB 14399old_postinstall_cmds=$lt_old_postinstall_cmds 14400old_postuninstall_cmds=$lt_old_postuninstall_cmds 14401 14402# Whether to use a lock for old archive extraction. 14403lock_old_archive_extraction=$lock_old_archive_extraction 14404 14405# A C compiler. 14406LTCC=$lt_CC 14407 14408# LTCC compiler flags. 14409LTCFLAGS=$lt_CFLAGS 14410 14411# Take the output of nm and produce a listing of raw symbols and C names. 14412global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14413 14414# Transform the output of nm in a proper C declaration. 14415global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14416 14417# Transform the output of nm in a C name address pair. 14418global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14419 14420# Transform the output of nm in a C name address pair when lib prefix is needed. 14421global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14422 14423# Specify filename containing input files for \$NM. 14424nm_file_list_spec=$lt_nm_file_list_spec 14425 14426# The root where to search for dependent libraries,and in which our libraries should be installed. 14427lt_sysroot=$lt_sysroot 14428 14429# The name of the directory that contains temporary libtool files. 14430objdir=$objdir 14431 14432# Used to examine libraries when file_magic_cmd begins with "file". 14433MAGIC_CMD=$MAGIC_CMD 14434 14435# Must we lock files when doing compilation? 14436need_locks=$lt_need_locks 14437 14438# Manifest tool. 14439MANIFEST_TOOL=$lt_MANIFEST_TOOL 14440 14441# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14442DSYMUTIL=$lt_DSYMUTIL 14443 14444# Tool to change global to local symbols on Mac OS X. 14445NMEDIT=$lt_NMEDIT 14446 14447# Tool to manipulate fat objects and archives on Mac OS X. 14448LIPO=$lt_LIPO 14449 14450# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14451OTOOL=$lt_OTOOL 14452 14453# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14454OTOOL64=$lt_OTOOL64 14455 14456# Old archive suffix (normally "a"). 14457libext=$libext 14458 14459# Shared library suffix (normally ".so"). 14460shrext_cmds=$lt_shrext_cmds 14461 14462# The commands to extract the exported symbol list from a shared archive. 14463extract_expsyms_cmds=$lt_extract_expsyms_cmds 14464 14465# Variables whose values should be saved in libtool wrapper scripts and 14466# restored at link time. 14467variables_saved_for_relink=$lt_variables_saved_for_relink 14468 14469# Do we need the "lib" prefix for modules? 14470need_lib_prefix=$need_lib_prefix 14471 14472# Do we need a version for libraries? 14473need_version=$need_version 14474 14475# Library versioning type. 14476version_type=$version_type 14477 14478# Shared library runtime path variable. 14479runpath_var=$runpath_var 14480 14481# Shared library path variable. 14482shlibpath_var=$shlibpath_var 14483 14484# Is shlibpath searched before the hard-coded library search path? 14485shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14486 14487# Format of library name prefix. 14488libname_spec=$lt_libname_spec 14489 14490# List of archive names. First name is the real one, the rest are links. 14491# The last name is the one that the linker finds with -lNAME 14492library_names_spec=$lt_library_names_spec 14493 14494# The coded name of the library, if different from the real name. 14495soname_spec=$lt_soname_spec 14496 14497# Permission mode override for installation of shared libraries. 14498install_override_mode=$lt_install_override_mode 14499 14500# Command to use after installation of a shared archive. 14501postinstall_cmds=$lt_postinstall_cmds 14502 14503# Command to use after uninstallation of a shared archive. 14504postuninstall_cmds=$lt_postuninstall_cmds 14505 14506# Commands used to finish a libtool library installation in a directory. 14507finish_cmds=$lt_finish_cmds 14508 14509# As "finish_cmds", except a single script fragment to be evaled but 14510# not shown. 14511finish_eval=$lt_finish_eval 14512 14513# Whether we should hardcode library paths into libraries. 14514hardcode_into_libs=$hardcode_into_libs 14515 14516# Compile-time system search path for libraries. 14517sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14518 14519# Run-time system search path for libraries. 14520sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14521 14522# Whether dlopen is supported. 14523dlopen_support=$enable_dlopen 14524 14525# Whether dlopen of programs is supported. 14526dlopen_self=$enable_dlopen_self 14527 14528# Whether dlopen of statically linked programs is supported. 14529dlopen_self_static=$enable_dlopen_self_static 14530 14531# Commands to strip libraries. 14532old_striplib=$lt_old_striplib 14533striplib=$lt_striplib 14534 14535 14536# The linker used to build libraries. 14537LD=$lt_LD 14538 14539# How to create reloadable object files. 14540reload_flag=$lt_reload_flag 14541reload_cmds=$lt_reload_cmds 14542 14543# Commands used to build an old-style archive. 14544old_archive_cmds=$lt_old_archive_cmds 14545 14546# A language specific compiler. 14547CC=$lt_compiler 14548 14549# Is the compiler the GNU compiler? 14550with_gcc=$GCC 14551 14552# Compiler flag to turn off builtin functions. 14553no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14554 14555# Additional compiler flags for building library objects. 14556pic_flag=$lt_lt_prog_compiler_pic 14557 14558# How to pass a linker flag through the compiler. 14559wl=$lt_lt_prog_compiler_wl 14560 14561# Compiler flag to prevent dynamic linking. 14562link_static_flag=$lt_lt_prog_compiler_static 14563 14564# Does compiler simultaneously support -c and -o options? 14565compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14566 14567# Whether or not to add -lc for building shared libraries. 14568build_libtool_need_lc=$archive_cmds_need_lc 14569 14570# Whether or not to disallow shared libs when runtime libs are static. 14571allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14572 14573# Compiler flag to allow reflexive dlopens. 14574export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14575 14576# Compiler flag to generate shared objects directly from archives. 14577whole_archive_flag_spec=$lt_whole_archive_flag_spec 14578 14579# Whether the compiler copes with passing no objects directly. 14580compiler_needs_object=$lt_compiler_needs_object 14581 14582# Create an old-style archive from a shared archive. 14583old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14584 14585# Create a temporary old-style archive to link instead of a shared archive. 14586old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14587 14588# Commands used to build a shared archive. 14589archive_cmds=$lt_archive_cmds 14590archive_expsym_cmds=$lt_archive_expsym_cmds 14591 14592# Commands used to build a loadable module if different from building 14593# a shared archive. 14594module_cmds=$lt_module_cmds 14595module_expsym_cmds=$lt_module_expsym_cmds 14596 14597# Whether we are building with GNU ld or not. 14598with_gnu_ld=$lt_with_gnu_ld 14599 14600# Flag that allows shared libraries with undefined symbols to be built. 14601allow_undefined_flag=$lt_allow_undefined_flag 14602 14603# Flag that enforces no undefined symbols. 14604no_undefined_flag=$lt_no_undefined_flag 14605 14606# Flag to hardcode \$libdir into a binary during linking. 14607# This must work even if \$libdir does not exist 14608hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14609 14610# Whether we need a single "-rpath" flag with a separated argument. 14611hardcode_libdir_separator=$lt_hardcode_libdir_separator 14612 14613# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14614# DIR into the resulting binary. 14615hardcode_direct=$hardcode_direct 14616 14617# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14618# DIR into the resulting binary and the resulting library dependency is 14619# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14620# library is relocated. 14621hardcode_direct_absolute=$hardcode_direct_absolute 14622 14623# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14624# into the resulting binary. 14625hardcode_minus_L=$hardcode_minus_L 14626 14627# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14628# into the resulting binary. 14629hardcode_shlibpath_var=$hardcode_shlibpath_var 14630 14631# Set to "yes" if building a shared library automatically hardcodes DIR 14632# into the library and all subsequent libraries and executables linked 14633# against it. 14634hardcode_automatic=$hardcode_automatic 14635 14636# Set to yes if linker adds runtime paths of dependent libraries 14637# to runtime path list. 14638inherit_rpath=$inherit_rpath 14639 14640# Whether libtool must link a program against all its dependency libraries. 14641link_all_deplibs=$link_all_deplibs 14642 14643# Set to "yes" if exported symbols are required. 14644always_export_symbols=$always_export_symbols 14645 14646# The commands to list exported symbols. 14647export_symbols_cmds=$lt_export_symbols_cmds 14648 14649# Symbols that should not be listed in the preloaded symbols. 14650exclude_expsyms=$lt_exclude_expsyms 14651 14652# Symbols that must always be exported. 14653include_expsyms=$lt_include_expsyms 14654 14655# Commands necessary for linking programs (against libraries) with templates. 14656prelink_cmds=$lt_prelink_cmds 14657 14658# Commands necessary for finishing linking programs. 14659postlink_cmds=$lt_postlink_cmds 14660 14661# Specify filename containing input files. 14662file_list_spec=$lt_file_list_spec 14663 14664# How to hardcode a shared library path into an executable. 14665hardcode_action=$hardcode_action 14666 14667# ### END LIBTOOL CONFIG 14668 14669_LT_EOF 14670 14671 case $host_os in 14672 aix3*) 14673 cat <<\_LT_EOF >> "$cfgfile" 14674# AIX sometimes has problems with the GCC collect2 program. For some 14675# reason, if we set the COLLECT_NAMES environment variable, the problems 14676# vanish in a puff of smoke. 14677if test "X${COLLECT_NAMES+set}" != Xset; then 14678 COLLECT_NAMES= 14679 export COLLECT_NAMES 14680fi 14681_LT_EOF 14682 ;; 14683 esac 14684 14685 14686ltmain="$ac_aux_dir/ltmain.sh" 14687 14688 14689 # We use sed instead of cat because bash on DJGPP gets confused if 14690 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14691 # text mode, it properly converts lines to CR/LF. This bash problem 14692 # is reportedly fixed, but why not run on old versions too? 14693 sed '$q' "$ltmain" >> "$cfgfile" \ 14694 || (rm -f "$cfgfile"; exit 1) 14695 14696 if test x"$xsi_shell" = xyes; then 14697 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 14698func_dirname ()\ 14699{\ 14700\ case ${1} in\ 14701\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14702\ * ) func_dirname_result="${3}" ;;\ 14703\ esac\ 14704} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 14705 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14706 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14707test 0 -eq $? || _lt_function_replace_fail=: 14708 14709 14710 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 14711func_basename ()\ 14712{\ 14713\ func_basename_result="${1##*/}"\ 14714} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14715 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14716 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14717test 0 -eq $? || _lt_function_replace_fail=: 14718 14719 14720 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 14721func_dirname_and_basename ()\ 14722{\ 14723\ case ${1} in\ 14724\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14725\ * ) func_dirname_result="${3}" ;;\ 14726\ esac\ 14727\ func_basename_result="${1##*/}"\ 14728} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14729 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14730 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14731test 0 -eq $? || _lt_function_replace_fail=: 14732 14733 14734 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 14735func_stripname ()\ 14736{\ 14737\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 14738\ # positional parameters, so assign one to ordinary parameter first.\ 14739\ func_stripname_result=${3}\ 14740\ func_stripname_result=${func_stripname_result#"${1}"}\ 14741\ func_stripname_result=${func_stripname_result%"${2}"}\ 14742} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 14743 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14745test 0 -eq $? || _lt_function_replace_fail=: 14746 14747 14748 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 14749func_split_long_opt ()\ 14750{\ 14751\ func_split_long_opt_name=${1%%=*}\ 14752\ func_split_long_opt_arg=${1#*=}\ 14753} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14754 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14756test 0 -eq $? || _lt_function_replace_fail=: 14757 14758 14759 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 14760func_split_short_opt ()\ 14761{\ 14762\ func_split_short_opt_arg=${1#??}\ 14763\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 14764} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14765 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14767test 0 -eq $? || _lt_function_replace_fail=: 14768 14769 14770 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 14771func_lo2o ()\ 14772{\ 14773\ case ${1} in\ 14774\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 14775\ *) func_lo2o_result=${1} ;;\ 14776\ esac\ 14777} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 14778 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14779 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14780test 0 -eq $? || _lt_function_replace_fail=: 14781 14782 14783 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 14784func_xform ()\ 14785{\ 14786 func_xform_result=${1%.*}.lo\ 14787} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 14788 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14789 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14790test 0 -eq $? || _lt_function_replace_fail=: 14791 14792 14793 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 14794func_arith ()\ 14795{\ 14796 func_arith_result=$(( $* ))\ 14797} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 14798 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14799 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14800test 0 -eq $? || _lt_function_replace_fail=: 14801 14802 14803 sed -e '/^func_len ()$/,/^} # func_len /c\ 14804func_len ()\ 14805{\ 14806 func_len_result=${#1}\ 14807} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 14808 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14809 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14810test 0 -eq $? || _lt_function_replace_fail=: 14811 14812fi 14813 14814if test x"$lt_shell_append" = xyes; then 14815 sed -e '/^func_append ()$/,/^} # func_append /c\ 14816func_append ()\ 14817{\ 14818 eval "${1}+=\\${2}"\ 14819} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 14820 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14822test 0 -eq $? || _lt_function_replace_fail=: 14823 14824 14825 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 14826func_append_quoted ()\ 14827{\ 14828\ func_quote_for_eval "${2}"\ 14829\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 14830} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 14831 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14833test 0 -eq $? || _lt_function_replace_fail=: 14834 14835 14836 # Save a `func_append' function call where possible by direct use of '+=' 14837 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 14838 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14840 test 0 -eq $? || _lt_function_replace_fail=: 14841else 14842 # Save a `func_append' function call even when '+=' is not available 14843 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 14844 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14846 test 0 -eq $? || _lt_function_replace_fail=: 14847fi 14848 14849if test x"$_lt_function_replace_fail" = x":"; then 14850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 14851$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 14852fi 14853 14854 14855 mv -f "$cfgfile" "$ofile" || 14856 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14857 chmod +x "$ofile" 14858 14859 ;; 14860 14861 esac 14862done # for ac_tag 14863 14864 14865as_fn_exit 0 14866_ACEOF 14867ac_clean_files=$ac_clean_files_save 14868 14869test $ac_write_fail = 0 || 14870 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14871 14872 14873# configure is writing to config.log, and then calls config.status. 14874# config.status does its own redirection, appending to config.log. 14875# Unfortunately, on DOS this fails, as config.log is still kept open 14876# by configure, so config.status won't be able to write to it; its 14877# output is simply discarded. So we exec the FD to /dev/null, 14878# effectively closing config.log, so it can be properly (re)opened and 14879# appended to by config.status. When coming back to configure, we 14880# need to make the FD available again. 14881if test "$no_create" != yes; then 14882 ac_cs_success=: 14883 ac_config_status_args= 14884 test "$silent" = yes && 14885 ac_config_status_args="$ac_config_status_args --quiet" 14886 exec 5>/dev/null 14887 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14888 exec 5>>config.log 14889 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14890 # would make configure fail if this is the last instruction. 14891 $ac_cs_success || as_fn_exit 1 14892fi 14893if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14895$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14896fi 14897 14898