1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for package-unused version-unused. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='package-unused' 589PACKAGE_TARNAME='libobjc' 590PACKAGE_VERSION='version-unused' 591PACKAGE_STRING='package-unused version-unused' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="objc/objc.h" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='LTLIBOBJS 633LIBOBJS 634get_gcc_base_ver 635OBJC_BOEHM_GC_LIBS 636OBJC_BOEHM_GC_INCLUDES 637OBJC_BOEHM_GC 638OBJC_GCFLAGS 639SET_MAKE 640CPP 641OTOOL64 642OTOOL 643LIPO 644NMEDIT 645DSYMUTIL 646AWK 647STRIP 648LN_S 649NM 650ac_ct_DUMPBIN 651DUMPBIN 652LD 653FGREP 654EGREP 655GREP 656SED 657LIBTOOL 658OBJDUMP 659DLLTOOL 660MAINT 661MAINTAINER_MODE_FALSE 662MAINTAINER_MODE_TRUE 663INSTALL_DATA 664INSTALL_SCRIPT 665INSTALL_PROGRAM 666RANLIB 667AR 668AS 669XCFLAGS 670extra_ldflags_libobjc 671lt_host_flags 672OBJEXT 673EXEEXT 674ac_ct_CC 675CPPFLAGS 676LDFLAGS 677CFLAGS 678CC 679libsuffix 680includedirname 681toolexeclibdir 682toolexecdir 683glibcpp_srcdir 684target_noncanonical 685target_os 686target_vendor 687target_cpu 688target 689host_os 690host_vendor 691host_cpu 692host 693multi_basedir 694VERSION 695target_subdir 696host_subdir 697build_subdir 698build_libsubdir 699build_os 700build_vendor 701build_cpu 702build 703target_alias 704host_alias 705build_alias 706LIBS 707ECHO_T 708ECHO_N 709ECHO_C 710DEFS 711mandir 712localedir 713libdir 714psdir 715pdfdir 716dvidir 717htmldir 718infodir 719docdir 720oldincludedir 721includedir 722localstatedir 723sharedstatedir 724sysconfdir 725datadir 726datarootdir 727libexecdir 728sbindir 729bindir 730program_transform_name 731prefix 732exec_prefix 733PACKAGE_URL 734PACKAGE_BUGREPORT 735PACKAGE_STRING 736PACKAGE_VERSION 737PACKAGE_TARNAME 738PACKAGE_NAME 739PATH_SEPARATOR 740SHELL' 741ac_subst_files='' 742ac_user_opts=' 743enable_option_checking 744with_build_libsubdir 745with_target_subdir 746with_cross_host 747enable_version_specific_runtime_libs 748enable_multilib 749with_toolexeclibdir 750enable_cet 751enable_maintainer_mode 752enable_shared 753enable_static 754with_pic 755enable_fast_install 756with_gnu_ld 757enable_libtool_lock 758enable_tls 759enable_objc_gc 760with_target_bdw_gc 761with_target_bdw_gc_include 762with_target_bdw_gc_lib 763with_gcc_major_version_only 764' 765 ac_precious_vars='build_alias 766host_alias 767target_alias 768CPP 769CPPFLAGS' 770 771 772# Initialize some variables set by options. 773ac_init_help= 774ac_init_version=false 775ac_unrecognized_opts= 776ac_unrecognized_sep= 777# The variables have the same names as the options, with 778# dashes changed to underlines. 779cache_file=/dev/null 780exec_prefix=NONE 781no_create= 782no_recursion= 783prefix=NONE 784program_prefix=NONE 785program_suffix=NONE 786program_transform_name=s,x,x, 787silent= 788site= 789srcdir= 790verbose= 791x_includes=NONE 792x_libraries=NONE 793 794# Installation directory options. 795# These are left unexpanded so users can "make install exec_prefix=/foo" 796# and all the variables that are supposed to be based on exec_prefix 797# by default will actually change. 798# Use braces instead of parens because sh, perl, etc. also accept them. 799# (The list follows the same order as the GNU Coding Standards.) 800bindir='${exec_prefix}/bin' 801sbindir='${exec_prefix}/sbin' 802libexecdir='${exec_prefix}/libexec' 803datarootdir='${prefix}/share' 804datadir='${datarootdir}' 805sysconfdir='${prefix}/etc' 806sharedstatedir='${prefix}/com' 807localstatedir='${prefix}/var' 808includedir='${prefix}/include' 809oldincludedir='/usr/include' 810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 811infodir='${datarootdir}/info' 812htmldir='${docdir}' 813dvidir='${docdir}' 814pdfdir='${docdir}' 815psdir='${docdir}' 816libdir='${exec_prefix}/lib' 817localedir='${datarootdir}/locale' 818mandir='${datarootdir}/man' 819 820ac_prev= 821ac_dashdash= 822for ac_option 823do 824 # If the previous option needs an argument, assign it. 825 if test -n "$ac_prev"; then 826 eval $ac_prev=\$ac_option 827 ac_prev= 828 continue 829 fi 830 831 case $ac_option in 832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 833 *=) ac_optarg= ;; 834 *) ac_optarg=yes ;; 835 esac 836 837 # Accept the important Cygnus configure options, so we can diagnose typos. 838 839 case $ac_dashdash$ac_option in 840 --) 841 ac_dashdash=yes ;; 842 843 -bindir | --bindir | --bindi | --bind | --bin | --bi) 844 ac_prev=bindir ;; 845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 846 bindir=$ac_optarg ;; 847 848 -build | --build | --buil | --bui | --bu) 849 ac_prev=build_alias ;; 850 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 851 build_alias=$ac_optarg ;; 852 853 -cache-file | --cache-file | --cache-fil | --cache-fi \ 854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 855 ac_prev=cache_file ;; 856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 858 cache_file=$ac_optarg ;; 859 860 --config-cache | -C) 861 cache_file=config.cache ;; 862 863 -datadir | --datadir | --datadi | --datad) 864 ac_prev=datadir ;; 865 -datadir=* | --datadir=* | --datadi=* | --datad=*) 866 datadir=$ac_optarg ;; 867 868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 869 | --dataroo | --dataro | --datar) 870 ac_prev=datarootdir ;; 871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 873 datarootdir=$ac_optarg ;; 874 875 -disable-* | --disable-*) 876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 877 # Reject names that are not valid shell variable names. 878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 879 as_fn_error $? "invalid feature name: $ac_useropt" 880 ac_useropt_orig=$ac_useropt 881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 882 case $ac_user_opts in 883 *" 884"enable_$ac_useropt" 885"*) ;; 886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 887 ac_unrecognized_sep=', ';; 888 esac 889 eval enable_$ac_useropt=no ;; 890 891 -docdir | --docdir | --docdi | --doc | --do) 892 ac_prev=docdir ;; 893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 894 docdir=$ac_optarg ;; 895 896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 897 ac_prev=dvidir ;; 898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 899 dvidir=$ac_optarg ;; 900 901 -enable-* | --enable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error $? "invalid feature name: $ac_useropt" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910"enable_$ac_useropt" 911"*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=\$ac_optarg ;; 916 917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 919 | --exec | --exe | --ex) 920 ac_prev=exec_prefix ;; 921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 923 | --exec=* | --exe=* | --ex=*) 924 exec_prefix=$ac_optarg ;; 925 926 -gas | --gas | --ga | --g) 927 # Obsolete; use --with-gas. 928 with_gas=yes ;; 929 930 -help | --help | --hel | --he | -h) 931 ac_init_help=long ;; 932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 933 ac_init_help=recursive ;; 934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 935 ac_init_help=short ;; 936 937 -host | --host | --hos | --ho) 938 ac_prev=host_alias ;; 939 -host=* | --host=* | --hos=* | --ho=*) 940 host_alias=$ac_optarg ;; 941 942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 943 ac_prev=htmldir ;; 944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 945 | --ht=*) 946 htmldir=$ac_optarg ;; 947 948 -includedir | --includedir | --includedi | --included | --include \ 949 | --includ | --inclu | --incl | --inc) 950 ac_prev=includedir ;; 951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 952 | --includ=* | --inclu=* | --incl=* | --inc=*) 953 includedir=$ac_optarg ;; 954 955 -infodir | --infodir | --infodi | --infod | --info | --inf) 956 ac_prev=infodir ;; 957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 958 infodir=$ac_optarg ;; 959 960 -libdir | --libdir | --libdi | --libd) 961 ac_prev=libdir ;; 962 -libdir=* | --libdir=* | --libdi=* | --libd=*) 963 libdir=$ac_optarg ;; 964 965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 966 | --libexe | --libex | --libe) 967 ac_prev=libexecdir ;; 968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 969 | --libexe=* | --libex=* | --libe=*) 970 libexecdir=$ac_optarg ;; 971 972 -localedir | --localedir | --localedi | --localed | --locale) 973 ac_prev=localedir ;; 974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 975 localedir=$ac_optarg ;; 976 977 -localstatedir | --localstatedir | --localstatedi | --localstated \ 978 | --localstate | --localstat | --localsta | --localst | --locals) 979 ac_prev=localstatedir ;; 980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 982 localstatedir=$ac_optarg ;; 983 984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 985 ac_prev=mandir ;; 986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 987 mandir=$ac_optarg ;; 988 989 -nfp | --nfp | --nf) 990 # Obsolete; use --without-fp. 991 with_fp=no ;; 992 993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 994 | --no-cr | --no-c | -n) 995 no_create=yes ;; 996 997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 999 no_recursion=yes ;; 1000 1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1003 | --oldin | --oldi | --old | --ol | --o) 1004 ac_prev=oldincludedir ;; 1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1008 oldincludedir=$ac_optarg ;; 1009 1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1011 ac_prev=prefix ;; 1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1013 prefix=$ac_optarg ;; 1014 1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1016 | --program-pre | --program-pr | --program-p) 1017 ac_prev=program_prefix ;; 1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1020 program_prefix=$ac_optarg ;; 1021 1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1023 | --program-suf | --program-su | --program-s) 1024 ac_prev=program_suffix ;; 1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1027 program_suffix=$ac_optarg ;; 1028 1029 -program-transform-name | --program-transform-name \ 1030 | --program-transform-nam | --program-transform-na \ 1031 | --program-transform-n | --program-transform- \ 1032 | --program-transform | --program-transfor \ 1033 | --program-transfo | --program-transf \ 1034 | --program-trans | --program-tran \ 1035 | --progr-tra | --program-tr | --program-t) 1036 ac_prev=program_transform_name ;; 1037 -program-transform-name=* | --program-transform-name=* \ 1038 | --program-transform-nam=* | --program-transform-na=* \ 1039 | --program-transform-n=* | --program-transform-=* \ 1040 | --program-transform=* | --program-transfor=* \ 1041 | --program-transfo=* | --program-transf=* \ 1042 | --program-trans=* | --program-tran=* \ 1043 | --progr-tra=* | --program-tr=* | --program-t=*) 1044 program_transform_name=$ac_optarg ;; 1045 1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1047 ac_prev=pdfdir ;; 1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1049 pdfdir=$ac_optarg ;; 1050 1051 -psdir | --psdir | --psdi | --psd | --ps) 1052 ac_prev=psdir ;; 1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1054 psdir=$ac_optarg ;; 1055 1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1057 | -silent | --silent | --silen | --sile | --sil) 1058 silent=yes ;; 1059 1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1061 ac_prev=sbindir ;; 1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1063 | --sbi=* | --sb=*) 1064 sbindir=$ac_optarg ;; 1065 1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1068 | --sharedst | --shareds | --shared | --share | --shar \ 1069 | --sha | --sh) 1070 ac_prev=sharedstatedir ;; 1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1074 | --sha=* | --sh=*) 1075 sharedstatedir=$ac_optarg ;; 1076 1077 -site | --site | --sit) 1078 ac_prev=site ;; 1079 -site=* | --site=* | --sit=*) 1080 site=$ac_optarg ;; 1081 1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1083 ac_prev=srcdir ;; 1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1085 srcdir=$ac_optarg ;; 1086 1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1088 | --syscon | --sysco | --sysc | --sys | --sy) 1089 ac_prev=sysconfdir ;; 1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1092 sysconfdir=$ac_optarg ;; 1093 1094 -target | --target | --targe | --targ | --tar | --ta | --t) 1095 ac_prev=target_alias ;; 1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1097 target_alias=$ac_optarg ;; 1098 1099 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1100 verbose=yes ;; 1101 1102 -version | --version | --versio | --versi | --vers | -V) 1103 ac_init_version=: ;; 1104 1105 -with-* | --with-*) 1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109 as_fn_error $? "invalid package name: $ac_useropt" 1110 ac_useropt_orig=$ac_useropt 1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1112 case $ac_user_opts in 1113 *" 1114"with_$ac_useropt" 1115"*) ;; 1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1117 ac_unrecognized_sep=', ';; 1118 esac 1119 eval with_$ac_useropt=\$ac_optarg ;; 1120 1121 -without-* | --without-*) 1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1123 # Reject names that are not valid shell variable names. 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125 as_fn_error $? "invalid package name: $ac_useropt" 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130"with_$ac_useropt" 1131"*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval with_$ac_useropt=no ;; 1136 1137 --x) 1138 # Obsolete; use --with-x. 1139 with_x=yes ;; 1140 1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1142 | --x-incl | --x-inc | --x-in | --x-i) 1143 ac_prev=x_includes ;; 1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1146 x_includes=$ac_optarg ;; 1147 1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1150 ac_prev=x_libraries ;; 1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1153 x_libraries=$ac_optarg ;; 1154 1155 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1156Try \`$0 --help' for more information" 1157 ;; 1158 1159 *=*) 1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1161 # Reject names that are not valid shell variable names. 1162 case $ac_envvar in #( 1163 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1165 esac 1166 eval $ac_envvar=\$ac_optarg 1167 export $ac_envvar ;; 1168 1169 *) 1170 # FIXME: should be removed in autoconf 3.0. 1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1175 ;; 1176 1177 esac 1178done 1179 1180if test -n "$ac_prev"; then 1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1182 as_fn_error $? "missing argument to $ac_option" 1183fi 1184 1185if test -n "$ac_unrecognized_opts"; then 1186 case $enable_option_checking in 1187 no) ;; 1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1190 esac 1191fi 1192 1193# Check all directory arguments for consistency. 1194for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1195 datadir sysconfdir sharedstatedir localstatedir includedir \ 1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1197 libdir localedir mandir 1198do 1199 eval ac_val=\$$ac_var 1200 # Remove trailing slashes. 1201 case $ac_val in 1202 */ ) 1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1204 eval $ac_var=\$ac_val;; 1205 esac 1206 # Be sure to have absolute directory names. 1207 case $ac_val in 1208 [\\/$]* | ?:[\\/]* ) continue;; 1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1210 esac 1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1212done 1213 1214# There might be people who depend on the old broken behavior: `$host' 1215# used to hold the argument of --host etc. 1216# FIXME: To remove some day. 1217build=$build_alias 1218host=$host_alias 1219target=$target_alias 1220 1221# FIXME: To remove some day. 1222if test "x$host_alias" != x; then 1223 if test "x$build_alias" = x; then 1224 cross_compiling=maybe 1225 elif test "x$build_alias" != "x$host_alias"; then 1226 cross_compiling=yes 1227 fi 1228fi 1229 1230ac_tool_prefix= 1231test -n "$host_alias" && ac_tool_prefix=$host_alias- 1232 1233test "$silent" = yes && exec 6>/dev/null 1234 1235 1236ac_pwd=`pwd` && test -n "$ac_pwd" && 1237ac_ls_di=`ls -di .` && 1238ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1239 as_fn_error $? "working directory cannot be determined" 1240test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1241 as_fn_error $? "pwd does not report name of working directory" 1242 1243 1244# Find the source files, if location was not specified. 1245if test -z "$srcdir"; then 1246 ac_srcdir_defaulted=yes 1247 # Try the directory containing this script, then the parent directory. 1248 ac_confdir=`$as_dirname -- "$as_myself" || 1249$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1250 X"$as_myself" : 'X\(//\)[^/]' \| \ 1251 X"$as_myself" : 'X\(//\)$' \| \ 1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1253$as_echo X"$as_myself" | 1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\/\)[^/].*/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\/\)$/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\).*/{ 1267 s//\1/ 1268 q 1269 } 1270 s/.*/./; q'` 1271 srcdir=$ac_confdir 1272 if test ! -r "$srcdir/$ac_unique_file"; then 1273 srcdir=.. 1274 fi 1275else 1276 ac_srcdir_defaulted=no 1277fi 1278if test ! -r "$srcdir/$ac_unique_file"; then 1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1280 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1281fi 1282ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1283ac_abs_confdir=`( 1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1285 pwd)` 1286# When building in place, set srcdir=. 1287if test "$ac_abs_confdir" = "$ac_pwd"; then 1288 srcdir=. 1289fi 1290# Remove unnecessary trailing slashes from srcdir. 1291# Double slashes in file names in object file debugging info 1292# mess up M-x gdb in Emacs. 1293case $srcdir in 1294*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1295esac 1296for ac_var in $ac_precious_vars; do 1297 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1298 eval ac_env_${ac_var}_value=\$${ac_var} 1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1300 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1301done 1302 1303# 1304# Report the --help message. 1305# 1306if test "$ac_init_help" = "long"; then 1307 # Omit some internal or obsolete options to make the list less imposing. 1308 # This message is too long to be a string in the A/UX 3.1 sh. 1309 cat <<_ACEOF 1310\`configure' configures package-unused version-unused to adapt to many kinds of systems. 1311 1312Usage: $0 [OPTION]... [VAR=VALUE]... 1313 1314To assign environment variables (e.g., CC, CFLAGS...), specify them as 1315VAR=VALUE. See below for descriptions of some of the useful variables. 1316 1317Defaults for the options are specified in brackets. 1318 1319Configuration: 1320 -h, --help display this help and exit 1321 --help=short display options specific to this package 1322 --help=recursive display the short help of all the included packages 1323 -V, --version display version information and exit 1324 -q, --quiet, --silent do not print \`checking ...' messages 1325 --cache-file=FILE cache test results in FILE [disabled] 1326 -C, --config-cache alias for \`--cache-file=config.cache' 1327 -n, --no-create do not create output files 1328 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1329 1330Installation directories: 1331 --prefix=PREFIX install architecture-independent files in PREFIX 1332 [$ac_default_prefix] 1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1334 [PREFIX] 1335 1336By default, \`make install' will install all the files in 1337\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1338an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1339for instance \`--prefix=\$HOME'. 1340 1341For better control, use the options below. 1342 1343Fine tuning of the installation directories: 1344 --bindir=DIR user executables [EPREFIX/bin] 1345 --sbindir=DIR system admin executables [EPREFIX/sbin] 1346 --libexecdir=DIR program executables [EPREFIX/libexec] 1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1350 --libdir=DIR object code libraries [EPREFIX/lib] 1351 --includedir=DIR C header files [PREFIX/include] 1352 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1355 --infodir=DIR info documentation [DATAROOTDIR/info] 1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1357 --mandir=DIR man documentation [DATAROOTDIR/man] 1358 --docdir=DIR documentation root [DATAROOTDIR/doc/libobjc] 1359 --htmldir=DIR html documentation [DOCDIR] 1360 --dvidir=DIR dvi documentation [DOCDIR] 1361 --pdfdir=DIR pdf documentation [DOCDIR] 1362 --psdir=DIR ps documentation [DOCDIR] 1363_ACEOF 1364 1365 cat <<\_ACEOF 1366 1367System types: 1368 --build=BUILD configure for building on BUILD [guessed] 1369 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1370 --target=TARGET configure for building compilers for TARGET [HOST] 1371_ACEOF 1372fi 1373 1374if test -n "$ac_init_help"; then 1375 case $ac_init_help in 1376 short | recursive ) echo "Configuration of package-unused version-unused:";; 1377 esac 1378 cat <<\_ACEOF 1379 1380Optional Features: 1381 --disable-option-checking ignore unrecognized --enable/--with options 1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1384 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory 1385 --enable-multilib build many library versions (default) 1386 --enable-cet enable Intel CET in target libraries [default=no] 1387 --enable-maintainer-mode 1388 enable make rules and dependencies not useful (and 1389 sometimes confusing) to the casual installer 1390 --enable-shared[=PKGS] build shared libraries [default=yes] 1391 --enable-static[=PKGS] build static libraries [default=yes] 1392 --enable-fast-install[=PKGS] 1393 optimize for fast installation [default=yes] 1394 --disable-libtool-lock avoid locking (might break parallel builds) 1395 --enable-tls Use thread-local storage [default=yes] 1396 --enable-objc-gc enable use of Boehm's garbage collector with the GNU 1397 Objective-C runtime 1398 1399Optional Packages: 1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1402 --with-build-libsubdir=DIR Directory where to find libraries for build system 1403 --with-target-subdir=SUBDIR 1404 configuring in a subdirectory 1405 --with-cross-host=HOST configuring with a cross compiler 1406 --with-toolexeclibdir=DIR 1407 install libraries built with a cross compiler within 1408 DIR 1409 --with-pic try to use only PIC/non-PIC objects [default=use 1410 both] 1411 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1412 --with-target-bdw-gc=PATHLIST 1413 specify prefix directory for installed bdw-gc 1414 package. Equivalent to 1415 --with-target-bdw-gc-include=PATH/include plus 1416 --with-target-bdw-gc-lib=PATH/lib 1417 --with-target-bdw-gc-include=PATHLIST 1418 specify directories for installed bdw-gc include 1419 files 1420 --with-target-bdw-gc-lib=PATHLIST 1421 specify directories for installed bdw-gc library 1422 --with-gcc-major-version-only 1423 use only GCC major number in filesystem paths 1424 1425Some influential environment variables: 1426 CC C compiler command 1427 CFLAGS C compiler flags 1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1429 nonstandard directory <lib dir> 1430 LIBS libraries to pass to the linker, e.g. -l<library> 1431 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1432 you have headers in a nonstandard directory <include dir> 1433 CPP C preprocessor 1434 1435Use these variables to override the choices made by `configure' or to help 1436it to find libraries and programs with nonstandard names/locations. 1437 1438Report bugs to the package provider. 1439_ACEOF 1440ac_status=$? 1441fi 1442 1443if test "$ac_init_help" = "recursive"; then 1444 # If there are subdirs, report their specific --help. 1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1446 test -d "$ac_dir" || 1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1448 continue 1449 ac_builddir=. 1450 1451case "$ac_dir" in 1452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1453*) 1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1455 # A ".." for each directory in $ac_dir_suffix. 1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1457 case $ac_top_builddir_sub in 1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1460 esac ;; 1461esac 1462ac_abs_top_builddir=$ac_pwd 1463ac_abs_builddir=$ac_pwd$ac_dir_suffix 1464# for backward compatibility: 1465ac_top_builddir=$ac_top_build_prefix 1466 1467case $srcdir in 1468 .) # We are building in place. 1469 ac_srcdir=. 1470 ac_top_srcdir=$ac_top_builddir_sub 1471 ac_abs_top_srcdir=$ac_pwd ;; 1472 [\\/]* | ?:[\\/]* ) # Absolute name. 1473 ac_srcdir=$srcdir$ac_dir_suffix; 1474 ac_top_srcdir=$srcdir 1475 ac_abs_top_srcdir=$srcdir ;; 1476 *) # Relative name. 1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1478 ac_top_srcdir=$ac_top_build_prefix$srcdir 1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1480esac 1481ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1482 1483 cd "$ac_dir" || { ac_status=$?; continue; } 1484 # Check for guested configure. 1485 if test -f "$ac_srcdir/configure.gnu"; then 1486 echo && 1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1488 elif test -f "$ac_srcdir/configure"; then 1489 echo && 1490 $SHELL "$ac_srcdir/configure" --help=recursive 1491 else 1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1493 fi || ac_status=$? 1494 cd "$ac_pwd" || { ac_status=$?; break; } 1495 done 1496fi 1497 1498test -n "$ac_init_help" && exit $ac_status 1499if $ac_init_version; then 1500 cat <<\_ACEOF 1501package-unused configure version-unused 1502generated by GNU Autoconf 2.69 1503 1504Copyright (C) 2012 Free Software Foundation, Inc. 1505This configure script is free software; the Free Software Foundation 1506gives unlimited permission to copy, distribute and modify it. 1507_ACEOF 1508 exit 1509fi 1510 1511## ------------------------ ## 1512## Autoconf initialization. ## 1513## ------------------------ ## 1514 1515# ac_fn_c_try_compile LINENO 1516# -------------------------- 1517# Try to compile conftest.$ac_ext, and return whether this succeeded. 1518ac_fn_c_try_compile () 1519{ 1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1521 rm -f conftest.$ac_objext 1522 if { { ac_try="$ac_compile" 1523case "(($ac_try" in 1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1525 *) ac_try_echo=$ac_try;; 1526esac 1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1528$as_echo "$ac_try_echo"; } >&5 1529 (eval "$ac_compile") 2>conftest.err 1530 ac_status=$? 1531 if test -s conftest.err; then 1532 grep -v '^ *+' conftest.err >conftest.er1 1533 cat conftest.er1 >&5 1534 mv -f conftest.er1 conftest.err 1535 fi 1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1537 test $ac_status = 0; } && { 1538 test -z "$ac_c_werror_flag" || 1539 test ! -s conftest.err 1540 } && test -s conftest.$ac_objext; then : 1541 ac_retval=0 1542else 1543 $as_echo "$as_me: failed program was:" >&5 1544sed 's/^/| /' conftest.$ac_ext >&5 1545 1546 ac_retval=1 1547fi 1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1549 as_fn_set_status $ac_retval 1550 1551} # ac_fn_c_try_compile 1552 1553# ac_fn_c_try_link LINENO 1554# ----------------------- 1555# Try to link conftest.$ac_ext, and return whether this succeeded. 1556ac_fn_c_try_link () 1557{ 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559 rm -f conftest.$ac_objext conftest$ac_exeext 1560 if { { ac_try="$ac_link" 1561case "(($ac_try" in 1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1563 *) ac_try_echo=$ac_try;; 1564esac 1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1566$as_echo "$ac_try_echo"; } >&5 1567 (eval "$ac_link") 2>conftest.err 1568 ac_status=$? 1569 if test -s conftest.err; then 1570 grep -v '^ *+' conftest.err >conftest.er1 1571 cat conftest.er1 >&5 1572 mv -f conftest.er1 conftest.err 1573 fi 1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1575 test $ac_status = 0; } && { 1576 test -z "$ac_c_werror_flag" || 1577 test ! -s conftest.err 1578 } && test -s conftest$ac_exeext && { 1579 test "$cross_compiling" = yes || 1580 test -x conftest$ac_exeext 1581 }; then : 1582 ac_retval=0 1583else 1584 $as_echo "$as_me: failed program was:" >&5 1585sed 's/^/| /' conftest.$ac_ext >&5 1586 1587 ac_retval=1 1588fi 1589 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1590 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1591 # interfere with the next link command; also delete a directory that is 1592 # left behind by Apple's compiler. We do this before executing the actions. 1593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 as_fn_set_status $ac_retval 1596 1597} # ac_fn_c_try_link 1598 1599# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1600# ------------------------------------------------------- 1601# Tests whether HEADER exists and can be compiled using the include files in 1602# INCLUDES, setting the cache variable VAR accordingly. 1603ac_fn_c_check_header_compile () 1604{ 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1607$as_echo_n "checking for $2... " >&6; } 1608if eval \${$3+:} false; then : 1609 $as_echo_n "(cached) " >&6 1610else 1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1612/* end confdefs.h. */ 1613$4 1614#include <$2> 1615_ACEOF 1616if ac_fn_c_try_compile "$LINENO"; then : 1617 eval "$3=yes" 1618else 1619 eval "$3=no" 1620fi 1621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1622fi 1623eval ac_res=\$$3 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1625$as_echo "$ac_res" >&6; } 1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1627 1628} # ac_fn_c_check_header_compile 1629 1630# ac_fn_c_try_cpp LINENO 1631# ---------------------- 1632# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1633ac_fn_c_try_cpp () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 if { { ac_try="$ac_cpp conftest.$ac_ext" 1637case "(($ac_try" in 1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1639 *) ac_try_echo=$ac_try;; 1640esac 1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1642$as_echo "$ac_try_echo"; } >&5 1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1644 ac_status=$? 1645 if test -s conftest.err; then 1646 grep -v '^ *+' conftest.err >conftest.er1 1647 cat conftest.er1 >&5 1648 mv -f conftest.er1 conftest.err 1649 fi 1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1651 test $ac_status = 0; } > conftest.i && { 1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1653 test ! -s conftest.err 1654 }; then : 1655 ac_retval=0 1656else 1657 $as_echo "$as_me: failed program was:" >&5 1658sed 's/^/| /' conftest.$ac_ext >&5 1659 1660 ac_retval=1 1661fi 1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1663 as_fn_set_status $ac_retval 1664 1665} # ac_fn_c_try_cpp 1666 1667# ac_fn_c_try_run LINENO 1668# ---------------------- 1669# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1670# that executables *can* be run. 1671ac_fn_c_try_run () 1672{ 1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1674 if { { ac_try="$ac_link" 1675case "(($ac_try" in 1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1677 *) ac_try_echo=$ac_try;; 1678esac 1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1680$as_echo "$ac_try_echo"; } >&5 1681 (eval "$ac_link") 2>&5 1682 ac_status=$? 1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1684 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1685 { { case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_try") 2>&5 1692 ac_status=$? 1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1694 test $ac_status = 0; }; }; then : 1695 ac_retval=0 1696else 1697 $as_echo "$as_me: program exited with status $ac_status" >&5 1698 $as_echo "$as_me: failed program was:" >&5 1699sed 's/^/| /' conftest.$ac_ext >&5 1700 1701 ac_retval=$ac_status 1702fi 1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_c_try_run 1708 1709# ac_fn_c_check_func LINENO FUNC VAR 1710# ---------------------------------- 1711# Tests whether FUNC exists, setting the cache variable VAR accordingly 1712ac_fn_c_check_func () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1716$as_echo_n "checking for $2... " >&6; } 1717if eval \${$3+:} false; then : 1718 $as_echo_n "(cached) " >&6 1719else 1720 if test x$gcc_no_link = xyes; then 1721 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 1722fi 1723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1724/* end confdefs.h. */ 1725/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1726 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1727#define $2 innocuous_$2 1728 1729/* System header to define __stub macros and hopefully few prototypes, 1730 which can conflict with char $2 (); below. 1731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1732 <limits.h> exists even on freestanding compilers. */ 1733 1734#ifdef __STDC__ 1735# include <limits.h> 1736#else 1737# include <assert.h> 1738#endif 1739 1740#undef $2 1741 1742/* Override any GCC internal prototype to avoid an error. 1743 Use char because int might match the return type of a GCC 1744 builtin and then its argument prototype would still apply. */ 1745#ifdef __cplusplus 1746extern "C" 1747#endif 1748char $2 (); 1749/* The GNU C library defines this for functions which it implements 1750 to always fail with ENOSYS. Some functions are actually named 1751 something starting with __ and the normal name is an alias. */ 1752#if defined __stub_$2 || defined __stub___$2 1753choke me 1754#endif 1755 1756int 1757main () 1758{ 1759return $2 (); 1760 ; 1761 return 0; 1762} 1763_ACEOF 1764if ac_fn_c_try_link "$LINENO"; then : 1765 eval "$3=yes" 1766else 1767 eval "$3=no" 1768fi 1769rm -f core conftest.err conftest.$ac_objext \ 1770 conftest$ac_exeext conftest.$ac_ext 1771fi 1772eval ac_res=\$$3 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774$as_echo "$ac_res" >&6; } 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 1777} # ac_fn_c_check_func 1778 1779# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1780# ------------------------------------------------------- 1781# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1782# the include files in INCLUDES and setting the cache variable VAR 1783# accordingly. 1784ac_fn_c_check_header_mongrel () 1785{ 1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1787 if eval \${$3+:} false; then : 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1789$as_echo_n "checking for $2... " >&6; } 1790if eval \${$3+:} false; then : 1791 $as_echo_n "(cached) " >&6 1792fi 1793eval ac_res=\$$3 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795$as_echo "$ac_res" >&6; } 1796else 1797 # Is the header compilable? 1798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1799$as_echo_n "checking $2 usability... " >&6; } 1800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1801/* end confdefs.h. */ 1802$4 1803#include <$2> 1804_ACEOF 1805if ac_fn_c_try_compile "$LINENO"; then : 1806 ac_header_compiler=yes 1807else 1808 ac_header_compiler=no 1809fi 1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1812$as_echo "$ac_header_compiler" >&6; } 1813 1814# Is the header present? 1815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1816$as_echo_n "checking $2 presence... " >&6; } 1817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1818/* end confdefs.h. */ 1819#include <$2> 1820_ACEOF 1821if ac_fn_c_try_cpp "$LINENO"; then : 1822 ac_header_preproc=yes 1823else 1824 ac_header_preproc=no 1825fi 1826rm -f conftest.err conftest.i conftest.$ac_ext 1827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1828$as_echo "$ac_header_preproc" >&6; } 1829 1830# So? What about this header? 1831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1832 yes:no: ) 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1834$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1836$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1837 ;; 1838 no:yes:* ) 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1840$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1842$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1844$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1846$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1848$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1849 ;; 1850esac 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1852$as_echo_n "checking for $2... " >&6; } 1853if eval \${$3+:} false; then : 1854 $as_echo_n "(cached) " >&6 1855else 1856 eval "$3=\$ac_header_compiler" 1857fi 1858eval ac_res=\$$3 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1860$as_echo "$ac_res" >&6; } 1861fi 1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1863 1864} # ac_fn_c_check_header_mongrel 1865cat >config.log <<_ACEOF 1866This file contains any messages produced by compilers while 1867running configure, to aid debugging if configure makes a mistake. 1868 1869It was created by package-unused $as_me version-unused, which was 1870generated by GNU Autoconf 2.69. Invocation command line was 1871 1872 $ $0 $@ 1873 1874_ACEOF 1875exec 5>>config.log 1876{ 1877cat <<_ASUNAME 1878## --------- ## 1879## Platform. ## 1880## --------- ## 1881 1882hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1883uname -m = `(uname -m) 2>/dev/null || echo unknown` 1884uname -r = `(uname -r) 2>/dev/null || echo unknown` 1885uname -s = `(uname -s) 2>/dev/null || echo unknown` 1886uname -v = `(uname -v) 2>/dev/null || echo unknown` 1887 1888/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1889/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1890 1891/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1892/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1893/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1894/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1895/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1896/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1897/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1898 1899_ASUNAME 1900 1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1902for as_dir in $PATH 1903do 1904 IFS=$as_save_IFS 1905 test -z "$as_dir" && as_dir=. 1906 $as_echo "PATH: $as_dir" 1907 done 1908IFS=$as_save_IFS 1909 1910} >&5 1911 1912cat >&5 <<_ACEOF 1913 1914 1915## ----------- ## 1916## Core tests. ## 1917## ----------- ## 1918 1919_ACEOF 1920 1921 1922# Keep a trace of the command line. 1923# Strip out --no-create and --no-recursion so they do not pile up. 1924# Strip out --silent because we don't want to record it for future runs. 1925# Also quote any args containing shell meta-characters. 1926# Make two passes to allow for proper duplicate-argument suppression. 1927ac_configure_args= 1928ac_configure_args0= 1929ac_configure_args1= 1930ac_must_keep_next=false 1931for ac_pass in 1 2 1932do 1933 for ac_arg 1934 do 1935 case $ac_arg in 1936 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1937 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1938 | -silent | --silent | --silen | --sile | --sil) 1939 continue ;; 1940 *\'*) 1941 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1942 esac 1943 case $ac_pass in 1944 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1945 2) 1946 as_fn_append ac_configure_args1 " '$ac_arg'" 1947 if test $ac_must_keep_next = true; then 1948 ac_must_keep_next=false # Got value, back to normal. 1949 else 1950 case $ac_arg in 1951 *=* | --config-cache | -C | -disable-* | --disable-* \ 1952 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1953 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1954 | -with-* | --with-* | -without-* | --without-* | --x) 1955 case "$ac_configure_args0 " in 1956 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1957 esac 1958 ;; 1959 -* ) ac_must_keep_next=true ;; 1960 esac 1961 fi 1962 as_fn_append ac_configure_args " '$ac_arg'" 1963 ;; 1964 esac 1965 done 1966done 1967{ ac_configure_args0=; unset ac_configure_args0;} 1968{ ac_configure_args1=; unset ac_configure_args1;} 1969 1970# When interrupted or exit'd, cleanup temporary files, and complete 1971# config.log. We remove comments because anyway the quotes in there 1972# would cause problems or look ugly. 1973# WARNING: Use '\'' to represent an apostrophe within the trap. 1974# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1975trap 'exit_status=$? 1976 # Save into config.log some information that might help in debugging. 1977 { 1978 echo 1979 1980 $as_echo "## ---------------- ## 1981## Cache variables. ## 1982## ---------------- ##" 1983 echo 1984 # The following way of writing the cache mishandles newlines in values, 1985( 1986 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1987 eval ac_val=\$$ac_var 1988 case $ac_val in #( 1989 *${as_nl}*) 1990 case $ac_var in #( 1991 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1992$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1993 esac 1994 case $ac_var in #( 1995 _ | IFS | as_nl) ;; #( 1996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1997 *) { eval $ac_var=; unset $ac_var;} ;; 1998 esac ;; 1999 esac 2000 done 2001 (set) 2>&1 | 2002 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2003 *${as_nl}ac_space=\ *) 2004 sed -n \ 2005 "s/'\''/'\''\\\\'\'''\''/g; 2006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2007 ;; #( 2008 *) 2009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2010 ;; 2011 esac | 2012 sort 2013) 2014 echo 2015 2016 $as_echo "## ----------------- ## 2017## Output variables. ## 2018## ----------------- ##" 2019 echo 2020 for ac_var in $ac_subst_vars 2021 do 2022 eval ac_val=\$$ac_var 2023 case $ac_val in 2024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2025 esac 2026 $as_echo "$ac_var='\''$ac_val'\''" 2027 done | sort 2028 echo 2029 2030 if test -n "$ac_subst_files"; then 2031 $as_echo "## ------------------- ## 2032## File substitutions. ## 2033## ------------------- ##" 2034 echo 2035 for ac_var in $ac_subst_files 2036 do 2037 eval ac_val=\$$ac_var 2038 case $ac_val in 2039 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2040 esac 2041 $as_echo "$ac_var='\''$ac_val'\''" 2042 done | sort 2043 echo 2044 fi 2045 2046 if test -s confdefs.h; then 2047 $as_echo "## ----------- ## 2048## confdefs.h. ## 2049## ----------- ##" 2050 echo 2051 cat confdefs.h 2052 echo 2053 fi 2054 test "$ac_signal" != 0 && 2055 $as_echo "$as_me: caught signal $ac_signal" 2056 $as_echo "$as_me: exit $exit_status" 2057 } >&5 2058 rm -f core *.core core.conftest.* && 2059 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2060 exit $exit_status 2061' 0 2062for ac_signal in 1 2 13 15; do 2063 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2064done 2065ac_signal=0 2066 2067# confdefs.h avoids OS command line length limits that DEFS can exceed. 2068rm -f -r conftest* confdefs.h 2069 2070$as_echo "/* confdefs.h */" > confdefs.h 2071 2072# Predefined preprocessor variables. 2073 2074cat >>confdefs.h <<_ACEOF 2075#define PACKAGE_NAME "$PACKAGE_NAME" 2076_ACEOF 2077 2078cat >>confdefs.h <<_ACEOF 2079#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2080_ACEOF 2081 2082cat >>confdefs.h <<_ACEOF 2083#define PACKAGE_VERSION "$PACKAGE_VERSION" 2084_ACEOF 2085 2086cat >>confdefs.h <<_ACEOF 2087#define PACKAGE_STRING "$PACKAGE_STRING" 2088_ACEOF 2089 2090cat >>confdefs.h <<_ACEOF 2091#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2092_ACEOF 2093 2094cat >>confdefs.h <<_ACEOF 2095#define PACKAGE_URL "$PACKAGE_URL" 2096_ACEOF 2097 2098 2099# Let the site file select an alternate cache file if it wants to. 2100# Prefer an explicitly selected file to automatically selected ones. 2101ac_site_file1=NONE 2102ac_site_file2=NONE 2103if test -n "$CONFIG_SITE"; then 2104 # We do not want a PATH search for config.site. 2105 case $CONFIG_SITE in #(( 2106 -*) ac_site_file1=./$CONFIG_SITE;; 2107 */*) ac_site_file1=$CONFIG_SITE;; 2108 *) ac_site_file1=./$CONFIG_SITE;; 2109 esac 2110elif test "x$prefix" != xNONE; then 2111 ac_site_file1=$prefix/share/config.site 2112 ac_site_file2=$prefix/etc/config.site 2113else 2114 ac_site_file1=$ac_default_prefix/share/config.site 2115 ac_site_file2=$ac_default_prefix/etc/config.site 2116fi 2117for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2118do 2119 test "x$ac_site_file" = xNONE && continue 2120 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2122$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2123 sed 's/^/| /' "$ac_site_file" >&5 2124 . "$ac_site_file" \ 2125 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2127as_fn_error $? "failed to load site script $ac_site_file 2128See \`config.log' for more details" "$LINENO" 5; } 2129 fi 2130done 2131 2132if test -r "$cache_file"; then 2133 # Some versions of bash will fail to source /dev/null (special files 2134 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2135 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2137$as_echo "$as_me: loading cache $cache_file" >&6;} 2138 case $cache_file in 2139 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2140 *) . "./$cache_file";; 2141 esac 2142 fi 2143else 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2145$as_echo "$as_me: creating cache $cache_file" >&6;} 2146 >$cache_file 2147fi 2148 2149# Check that the precious variables saved in the cache have kept the same 2150# value. 2151ac_cache_corrupted=false 2152for ac_var in $ac_precious_vars; do 2153 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2154 eval ac_new_set=\$ac_env_${ac_var}_set 2155 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2156 eval ac_new_val=\$ac_env_${ac_var}_value 2157 case $ac_old_set,$ac_new_set in 2158 set,) 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2160$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2161 ac_cache_corrupted=: ;; 2162 ,set) 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2164$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2165 ac_cache_corrupted=: ;; 2166 ,);; 2167 *) 2168 if test "x$ac_old_val" != "x$ac_new_val"; then 2169 # differences in whitespace do not lead to failure. 2170 ac_old_val_w=`echo x $ac_old_val` 2171 ac_new_val_w=`echo x $ac_new_val` 2172 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2174$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2175 ac_cache_corrupted=: 2176 else 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2178$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2179 eval $ac_var=\$ac_old_val 2180 fi 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2182$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2184$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2185 fi;; 2186 esac 2187 # Pass precious variables to config.status. 2188 if test "$ac_new_set" = set; then 2189 case $ac_new_val in 2190 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2191 *) ac_arg=$ac_var=$ac_new_val ;; 2192 esac 2193 case " $ac_configure_args " in 2194 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2195 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2196 esac 2197 fi 2198done 2199if $ac_cache_corrupted; then 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2203$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2204 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2205fi 2206## -------------------- ## 2207## Main body of script. ## 2208## -------------------- ## 2209 2210ac_ext=c 2211ac_cpp='$CPP $CPPFLAGS' 2212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2214ac_compiler_gnu=$ac_cv_c_compiler_gnu 2215 2216 2217 2218 2219 2220 2221ac_aux_dir= 2222for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2223 if test -f "$ac_dir/install-sh"; then 2224 ac_aux_dir=$ac_dir 2225 ac_install_sh="$ac_aux_dir/install-sh -c" 2226 break 2227 elif test -f "$ac_dir/install.sh"; then 2228 ac_aux_dir=$ac_dir 2229 ac_install_sh="$ac_aux_dir/install.sh -c" 2230 break 2231 elif test -f "$ac_dir/shtool"; then 2232 ac_aux_dir=$ac_dir 2233 ac_install_sh="$ac_aux_dir/shtool install -c" 2234 break 2235 fi 2236done 2237if test -z "$ac_aux_dir"; then 2238 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2239fi 2240 2241# These three variables are undocumented and unsupported, 2242# and are intended to be withdrawn in a future Autoconf release. 2243# They can cause serious problems if a builder's source tree is in a directory 2244# whose full name contains unusual characters. 2245ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2246ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2247ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2248 2249 2250# Make sure we can run config.sub. 2251$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2252 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2253 2254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2255$as_echo_n "checking build system type... " >&6; } 2256if ${ac_cv_build+:} false; then : 2257 $as_echo_n "(cached) " >&6 2258else 2259 ac_build_alias=$build_alias 2260test "x$ac_build_alias" = x && 2261 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2262test "x$ac_build_alias" = x && 2263 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2264ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2265 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2266 2267fi 2268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2269$as_echo "$ac_cv_build" >&6; } 2270case $ac_cv_build in 2271*-*-*) ;; 2272*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2273esac 2274build=$ac_cv_build 2275ac_save_IFS=$IFS; IFS='-' 2276set x $ac_cv_build 2277shift 2278build_cpu=$1 2279build_vendor=$2 2280shift; shift 2281# Remember, the first character of IFS is used to create $*, 2282# except with old shells: 2283build_os=$* 2284IFS=$ac_save_IFS 2285case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2286 2287 2288 case ${build_alias} in 2289 "") build_noncanonical=${build} ;; 2290 *) build_noncanonical=${build_alias} ;; 2291esac 2292 2293 case ${host_alias} in 2294 "") host_noncanonical=${build_noncanonical} ;; 2295 *) host_noncanonical=${host_alias} ;; 2296esac 2297 2298 case ${target_alias} in 2299 "") target_noncanonical=${host_noncanonical} ;; 2300 *) target_noncanonical=${target_alias} ;; 2301esac 2302 2303 2304# post-stage1 host modules use a different CC_FOR_BUILD so, in order to 2305# have matching libraries, they should use host libraries: Makefile.tpl 2306# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 2307# However, they still use the build modules, because the corresponding 2308# host modules (e.g. bison) are only built for the host when bootstrap 2309# finishes. So: 2310# - build_subdir is where we find build modules, and never changes. 2311# - build_libsubdir is where we find build libraries, and can be overridden. 2312 2313# Prefix 'build-' so this never conflicts with target_subdir. 2314build_subdir="build-${build_noncanonical}" 2315 2316# Check whether --with-build-libsubdir was given. 2317if test "${with_build_libsubdir+set}" = set; then : 2318 withval=$with_build_libsubdir; build_libsubdir="$withval" 2319else 2320 build_libsubdir="$build_subdir" 2321fi 2322 2323# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 2324if ( test $srcdir = . && test -d gcc ) \ 2325 || test -d $srcdir/../host-${host_noncanonical}; then 2326 host_subdir="host-${host_noncanonical}" 2327else 2328 host_subdir=. 2329fi 2330# No prefix. 2331target_subdir=${target_noncanonical} 2332 2333 2334# We need the following definitions because AC_PROG_LIBTOOL relies on them 2335PACKAGE=libobjc 2336# Version is pulled out to make it a bit easier to change using sed. 2337VERSION=4:0:0 2338 2339 2340# This works around the fact that libtool configuration may change LD 2341# for this particular configuration, but some shells, instead of 2342# keeping the changes in LD private, export them just because LD is 2343# exported. 2344ORIGINAL_LD_FOR_MULTILIBS=$LD 2345 2346# ------- 2347# Options 2348# ------- 2349 2350# We use these options to decide which functions to include. 2351 2352# Check whether --with-target-subdir was given. 2353if test "${with_target_subdir+set}" = set; then : 2354 withval=$with_target_subdir; 2355fi 2356 2357 2358# Check whether --with-cross-host was given. 2359if test "${with_cross_host+set}" = set; then : 2360 withval=$with_cross_host; 2361fi 2362 2363 2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 2365$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 2366# Check whether --enable-version-specific-runtime-libs was given. 2367if test "${enable_version_specific_runtime_libs+set}" = set; then : 2368 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 2369 yes) version_specific_libs=yes ;; 2370 no) version_specific_libs=no ;; 2371 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 2372 esac 2373else 2374 version_specific_libs=no 2375fi 2376 2377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 2378$as_echo "$version_specific_libs" >&6; } 2379 2380# ----------- 2381# Directories 2382# ----------- 2383 2384# Find the rest of the source tree framework. 2385# Default to --enable-multilib 2386# Check whether --enable-multilib was given. 2387if test "${enable_multilib+set}" = set; then : 2388 enableval=$enable_multilib; case "$enableval" in 2389 yes) multilib=yes ;; 2390 no) multilib=no ;; 2391 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; 2392 esac 2393else 2394 multilib=yes 2395fi 2396 2397 2398# We may get other options which we leave undocumented: 2399# --with-target-subdir, --with-multisrctop, --with-multisubdir 2400# See config-ml.in if you want the gory details. 2401 2402if test "$srcdir" = "."; then 2403 if test "$with_target_subdir" != "."; then 2404 multi_basedir="$srcdir/$with_multisrctop../.." 2405 else 2406 multi_basedir="$srcdir/$with_multisrctop.." 2407 fi 2408else 2409 multi_basedir="$srcdir/.." 2410fi 2411 2412 2413# Even if the default multilib is not a cross compilation, 2414# it may be that some of the other multilibs are. 2415if test $cross_compiling = no && test $multilib = yes \ 2416 && test "x${with_multisubdir}" != x ; then 2417 cross_compiling=maybe 2418fi 2419 2420ac_config_commands="$ac_config_commands default-1" 2421 2422 2423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2424$as_echo_n "checking host system type... " >&6; } 2425if ${ac_cv_host+:} false; then : 2426 $as_echo_n "(cached) " >&6 2427else 2428 if test "x$host_alias" = x; then 2429 ac_cv_host=$ac_cv_build 2430else 2431 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2432 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2433fi 2434 2435fi 2436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2437$as_echo "$ac_cv_host" >&6; } 2438case $ac_cv_host in 2439*-*-*) ;; 2440*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2441esac 2442host=$ac_cv_host 2443ac_save_IFS=$IFS; IFS='-' 2444set x $ac_cv_host 2445shift 2446host_cpu=$1 2447host_vendor=$2 2448shift; shift 2449# Remember, the first character of IFS is used to create $*, 2450# except with old shells: 2451host_os=$* 2452IFS=$ac_save_IFS 2453case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2454 2455 2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2457$as_echo_n "checking target system type... " >&6; } 2458if ${ac_cv_target+:} false; then : 2459 $as_echo_n "(cached) " >&6 2460else 2461 if test "x$target_alias" = x; then 2462 ac_cv_target=$ac_cv_host 2463else 2464 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2465 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2466fi 2467 2468fi 2469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2470$as_echo "$ac_cv_target" >&6; } 2471case $ac_cv_target in 2472*-*-*) ;; 2473*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2474esac 2475target=$ac_cv_target 2476ac_save_IFS=$IFS; IFS='-' 2477set x $ac_cv_target 2478shift 2479target_cpu=$1 2480target_vendor=$2 2481shift; shift 2482# Remember, the first character of IFS is used to create $*, 2483# except with old shells: 2484target_os=$* 2485IFS=$ac_save_IFS 2486case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2487 2488 2489# The aliases save the names the user supplied, while $host etc. 2490# will get canonicalized. 2491test -n "$target_alias" && 2492 test "$program_prefix$program_suffix$program_transform_name" = \ 2493 NONENONEs,x,x, && 2494 program_prefix=${target_alias}- 2495 2496 2497 2498 2499# Export source directory. 2500# These need to be absolute paths, yet at the same time need to 2501# canonicalize only relative paths, because then amd will not unmount 2502# drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. 2503case $srcdir in 2504 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;; 2505 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; 2506esac 2507 2508 2509 2510# Check whether --with-toolexeclibdir was given. 2511if test "${with_toolexeclibdir+set}" = set; then : 2512 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in 2513 /) 2514 ;; 2515 */) 2516 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` 2517 ;; 2518esac 2519else 2520 with_toolexeclibdir=no 2521fi 2522 2523 2524 2525# Calculate toolexeclibdir 2526# Also toolexecdir, though it's only used in toolexeclibdir 2527case ${version_specific_libs} in 2528 yes) 2529 # Need the gcc compiler version to know where to install libraries 2530 # and header files if --enable-version-specific-runtime-libs option 2531 # is selected. 2532 toolexecdir='$(libdir)/gcc/$(target_noncanonical)' 2533 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 2534 ;; 2535 no) 2536 if test -n "$with_cross_host" && 2537 test x"$with_cross_host" != x"no"; then 2538 # Install a library built with a cross compiler in tooldir, not libdir. 2539 toolexecdir='$(exec_prefix)/$(target_noncanonical)' 2540 case ${with_toolexeclibdir} in 2541 no) 2542 toolexeclibdir='$(toolexecdir)/lib' 2543 ;; 2544 *) 2545 toolexeclibdir=${with_toolexeclibdir} 2546 ;; 2547 esac 2548 else 2549 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)' 2550 toolexeclibdir='$(libdir)' 2551 fi 2552 multi_os_directory=`$CC -print-multi-os-directory` 2553 case $multi_os_directory in 2554 .) ;; # Avoid trailing /. 2555 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 2556 esac 2557 ;; 2558esac 2559 2560 2561 2562# Figure out if we want to name the include directory and the 2563# library name changes differently. 2564includedirname=include 2565libsuffix= 2566case "${host}" in 2567 *-darwin*) 2568 # Darwin is the only target so far that needs a different include directory. 2569 includedirname=include-gnu-runtime 2570 libsuffix=-gnu 2571 ;; 2572esac 2573 2574 2575 2576ac_config_headers="$ac_config_headers config.h" 2577 2578 2579# -------- 2580# Programs 2581# -------- 2582 2583 2584 2585# We must force CC to /not/ be a precious variable; otherwise 2586# the wrong, non-multilib-adjusted value will be used in multilibs. 2587# As a side effect, we have to subst CFLAGS ourselves. 2588 2589 2590ac_ext=c 2591ac_cpp='$CPP $CPPFLAGS' 2592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2594ac_compiler_gnu=$ac_cv_c_compiler_gnu 2595if test -n "$ac_tool_prefix"; then 2596 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2597set dummy ${ac_tool_prefix}gcc; ac_word=$2 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2599$as_echo_n "checking for $ac_word... " >&6; } 2600if ${ac_cv_prog_CC+:} false; then : 2601 $as_echo_n "(cached) " >&6 2602else 2603 if test -n "$CC"; then 2604 ac_cv_prog_CC="$CC" # Let the user override the test. 2605else 2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2607for as_dir in $PATH 2608do 2609 IFS=$as_save_IFS 2610 test -z "$as_dir" && as_dir=. 2611 for ac_exec_ext in '' $ac_executable_extensions; do 2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2613 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2615 break 2 2616 fi 2617done 2618 done 2619IFS=$as_save_IFS 2620 2621fi 2622fi 2623CC=$ac_cv_prog_CC 2624if test -n "$CC"; then 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2626$as_echo "$CC" >&6; } 2627else 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2629$as_echo "no" >&6; } 2630fi 2631 2632 2633fi 2634if test -z "$ac_cv_prog_CC"; then 2635 ac_ct_CC=$CC 2636 # Extract the first word of "gcc", so it can be a program name with args. 2637set dummy gcc; ac_word=$2 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2639$as_echo_n "checking for $ac_word... " >&6; } 2640if ${ac_cv_prog_ac_ct_CC+:} false; then : 2641 $as_echo_n "(cached) " >&6 2642else 2643 if test -n "$ac_ct_CC"; then 2644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2645else 2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647for as_dir in $PATH 2648do 2649 IFS=$as_save_IFS 2650 test -z "$as_dir" && as_dir=. 2651 for ac_exec_ext in '' $ac_executable_extensions; do 2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2653 ac_cv_prog_ac_ct_CC="gcc" 2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657done 2658 done 2659IFS=$as_save_IFS 2660 2661fi 2662fi 2663ac_ct_CC=$ac_cv_prog_ac_ct_CC 2664if test -n "$ac_ct_CC"; then 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2666$as_echo "$ac_ct_CC" >&6; } 2667else 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2669$as_echo "no" >&6; } 2670fi 2671 2672 if test "x$ac_ct_CC" = x; then 2673 CC="" 2674 else 2675 case $cross_compiling:$ac_tool_warned in 2676yes:) 2677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2679ac_tool_warned=yes ;; 2680esac 2681 CC=$ac_ct_CC 2682 fi 2683else 2684 CC="$ac_cv_prog_CC" 2685fi 2686 2687if test -z "$CC"; then 2688 if test -n "$ac_tool_prefix"; then 2689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2690set dummy ${ac_tool_prefix}cc; ac_word=$2 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2692$as_echo_n "checking for $ac_word... " >&6; } 2693if ${ac_cv_prog_CC+:} false; then : 2694 $as_echo_n "(cached) " >&6 2695else 2696 if test -n "$CC"; then 2697 ac_cv_prog_CC="$CC" # Let the user override the test. 2698else 2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2700for as_dir in $PATH 2701do 2702 IFS=$as_save_IFS 2703 test -z "$as_dir" && as_dir=. 2704 for ac_exec_ext in '' $ac_executable_extensions; do 2705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2706 ac_cv_prog_CC="${ac_tool_prefix}cc" 2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2708 break 2 2709 fi 2710done 2711 done 2712IFS=$as_save_IFS 2713 2714fi 2715fi 2716CC=$ac_cv_prog_CC 2717if test -n "$CC"; then 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2719$as_echo "$CC" >&6; } 2720else 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2722$as_echo "no" >&6; } 2723fi 2724 2725 2726 fi 2727fi 2728if test -z "$CC"; then 2729 # Extract the first word of "cc", so it can be a program name with args. 2730set dummy cc; ac_word=$2 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2732$as_echo_n "checking for $ac_word... " >&6; } 2733if ${ac_cv_prog_CC+:} false; then : 2734 $as_echo_n "(cached) " >&6 2735else 2736 if test -n "$CC"; then 2737 ac_cv_prog_CC="$CC" # Let the user override the test. 2738else 2739 ac_prog_rejected=no 2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2741for as_dir in $PATH 2742do 2743 IFS=$as_save_IFS 2744 test -z "$as_dir" && as_dir=. 2745 for ac_exec_ext in '' $ac_executable_extensions; do 2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2748 ac_prog_rejected=yes 2749 continue 2750 fi 2751 ac_cv_prog_CC="cc" 2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2753 break 2 2754 fi 2755done 2756 done 2757IFS=$as_save_IFS 2758 2759if test $ac_prog_rejected = yes; then 2760 # We found a bogon in the path, so make sure we never use it. 2761 set dummy $ac_cv_prog_CC 2762 shift 2763 if test $# != 0; then 2764 # We chose a different compiler from the bogus one. 2765 # However, it has the same basename, so the bogon will be chosen 2766 # first if we set CC to just the basename; use the full file name. 2767 shift 2768 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2769 fi 2770fi 2771fi 2772fi 2773CC=$ac_cv_prog_CC 2774if test -n "$CC"; then 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2776$as_echo "$CC" >&6; } 2777else 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2779$as_echo "no" >&6; } 2780fi 2781 2782 2783fi 2784if test -z "$CC"; then 2785 if test -n "$ac_tool_prefix"; then 2786 for ac_prog in cl.exe 2787 do 2788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2789set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2791$as_echo_n "checking for $ac_word... " >&6; } 2792if ${ac_cv_prog_CC+:} false; then : 2793 $as_echo_n "(cached) " >&6 2794else 2795 if test -n "$CC"; then 2796 ac_cv_prog_CC="$CC" # Let the user override the test. 2797else 2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2799for as_dir in $PATH 2800do 2801 IFS=$as_save_IFS 2802 test -z "$as_dir" && as_dir=. 2803 for ac_exec_ext in '' $ac_executable_extensions; do 2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2805 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2807 break 2 2808 fi 2809done 2810 done 2811IFS=$as_save_IFS 2812 2813fi 2814fi 2815CC=$ac_cv_prog_CC 2816if test -n "$CC"; then 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2818$as_echo "$CC" >&6; } 2819else 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2821$as_echo "no" >&6; } 2822fi 2823 2824 2825 test -n "$CC" && break 2826 done 2827fi 2828if test -z "$CC"; then 2829 ac_ct_CC=$CC 2830 for ac_prog in cl.exe 2831do 2832 # Extract the first word of "$ac_prog", so it can be a program name with args. 2833set dummy $ac_prog; ac_word=$2 2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2835$as_echo_n "checking for $ac_word... " >&6; } 2836if ${ac_cv_prog_ac_ct_CC+:} false; then : 2837 $as_echo_n "(cached) " >&6 2838else 2839 if test -n "$ac_ct_CC"; then 2840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2841else 2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2843for as_dir in $PATH 2844do 2845 IFS=$as_save_IFS 2846 test -z "$as_dir" && as_dir=. 2847 for ac_exec_ext in '' $ac_executable_extensions; do 2848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2849 ac_cv_prog_ac_ct_CC="$ac_prog" 2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2851 break 2 2852 fi 2853done 2854 done 2855IFS=$as_save_IFS 2856 2857fi 2858fi 2859ac_ct_CC=$ac_cv_prog_ac_ct_CC 2860if test -n "$ac_ct_CC"; then 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2862$as_echo "$ac_ct_CC" >&6; } 2863else 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2865$as_echo "no" >&6; } 2866fi 2867 2868 2869 test -n "$ac_ct_CC" && break 2870done 2871 2872 if test "x$ac_ct_CC" = x; then 2873 CC="" 2874 else 2875 case $cross_compiling:$ac_tool_warned in 2876yes:) 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2879ac_tool_warned=yes ;; 2880esac 2881 CC=$ac_ct_CC 2882 fi 2883fi 2884 2885fi 2886 2887 2888test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2890as_fn_error $? "no acceptable C compiler found in \$PATH 2891See \`config.log' for more details" "$LINENO" 5; } 2892 2893# Provide some information about the compiler. 2894$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2895set X $ac_compile 2896ac_compiler=$2 2897for ac_option in --version -v -V -qversion; do 2898 { { ac_try="$ac_compiler $ac_option >&5" 2899case "(($ac_try" in 2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2901 *) ac_try_echo=$ac_try;; 2902esac 2903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2904$as_echo "$ac_try_echo"; } >&5 2905 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2906 ac_status=$? 2907 if test -s conftest.err; then 2908 sed '10a\ 2909... rest of stderr output deleted ... 2910 10q' conftest.err >conftest.er1 2911 cat conftest.er1 >&5 2912 fi 2913 rm -f conftest.er1 conftest.err 2914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2915 test $ac_status = 0; } 2916done 2917 2918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2919/* end confdefs.h. */ 2920#include <stdio.h> 2921int 2922main () 2923{ 2924printf ("hello world\n"); 2925 ; 2926 return 0; 2927} 2928_ACEOF 2929# FIXME: Cleanup? 2930if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 2931 (eval $ac_link) 2>&5 2932 ac_status=$? 2933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2934 test $ac_status = 0; }; then : 2935 gcc_no_link=no 2936else 2937 gcc_no_link=yes 2938fi 2939if test x$gcc_no_link = xyes; then 2940 # Setting cross_compile will disable run tests; it will 2941 # also disable AC_CHECK_FILE but that's generally 2942 # correct if we can't link. 2943 cross_compiling=yes 2944 EXEEXT= 2945else 2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2947/* end confdefs.h. */ 2948 2949int 2950main () 2951{ 2952 2953 ; 2954 return 0; 2955} 2956_ACEOF 2957ac_clean_files_save=$ac_clean_files 2958ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2959# Try to create an executable without -o first, disregard a.out. 2960# It will help us diagnose broken compilers, and finding out an intuition 2961# of exeext. 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2963$as_echo_n "checking whether the C compiler works... " >&6; } 2964ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2965 2966# The possible output files: 2967ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2968 2969ac_rmfiles= 2970for ac_file in $ac_files 2971do 2972 case $ac_file in 2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2974 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2975 esac 2976done 2977rm -f $ac_rmfiles 2978 2979if { { ac_try="$ac_link_default" 2980case "(($ac_try" in 2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2982 *) ac_try_echo=$ac_try;; 2983esac 2984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2985$as_echo "$ac_try_echo"; } >&5 2986 (eval "$ac_link_default") 2>&5 2987 ac_status=$? 2988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2989 test $ac_status = 0; }; then : 2990 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2991# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2992# in a Makefile. We should not override ac_cv_exeext if it was cached, 2993# so that the user can short-circuit this test for compilers unknown to 2994# Autoconf. 2995for ac_file in $ac_files '' 2996do 2997 test -f "$ac_file" || continue 2998 case $ac_file in 2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3000 ;; 3001 [ab].out ) 3002 # We found the default executable, but exeext='' is most 3003 # certainly right. 3004 break;; 3005 *.* ) 3006 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3007 then :; else 3008 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3009 fi 3010 # We set ac_cv_exeext here because the later test for it is not 3011 # safe: cross compilers may not add the suffix if given an `-o' 3012 # argument, so we may need to know it at that point already. 3013 # Even if this section looks crufty: it has the advantage of 3014 # actually working. 3015 break;; 3016 * ) 3017 break;; 3018 esac 3019done 3020test "$ac_cv_exeext" = no && ac_cv_exeext= 3021 3022else 3023 ac_file='' 3024fi 3025if test -z "$ac_file"; then : 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3027$as_echo "no" >&6; } 3028$as_echo "$as_me: failed program was:" >&5 3029sed 's/^/| /' conftest.$ac_ext >&5 3030 3031{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3033as_fn_error 77 "C compiler cannot create executables 3034See \`config.log' for more details" "$LINENO" 5; } 3035else 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3037$as_echo "yes" >&6; } 3038fi 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3040$as_echo_n "checking for C compiler default output file name... " >&6; } 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3042$as_echo "$ac_file" >&6; } 3043ac_exeext=$ac_cv_exeext 3044 3045rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3046ac_clean_files=$ac_clean_files_save 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3048$as_echo_n "checking for suffix of executables... " >&6; } 3049if { { ac_try="$ac_link" 3050case "(($ac_try" in 3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3052 *) ac_try_echo=$ac_try;; 3053esac 3054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3055$as_echo "$ac_try_echo"; } >&5 3056 (eval "$ac_link") 2>&5 3057 ac_status=$? 3058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3059 test $ac_status = 0; }; then : 3060 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3061# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3062# work properly (i.e., refer to `conftest.exe'), while it won't with 3063# `rm'. 3064for ac_file in conftest.exe conftest conftest.*; do 3065 test -f "$ac_file" || continue 3066 case $ac_file in 3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3069 break;; 3070 * ) break;; 3071 esac 3072done 3073else 3074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3076as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3077See \`config.log' for more details" "$LINENO" 5; } 3078fi 3079rm -f conftest conftest$ac_cv_exeext 3080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3081$as_echo "$ac_cv_exeext" >&6; } 3082 3083rm -f conftest.$ac_ext 3084EXEEXT=$ac_cv_exeext 3085ac_exeext=$EXEEXT 3086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3087/* end confdefs.h. */ 3088#include <stdio.h> 3089int 3090main () 3091{ 3092FILE *f = fopen ("conftest.out", "w"); 3093 return ferror (f) || fclose (f) != 0; 3094 3095 ; 3096 return 0; 3097} 3098_ACEOF 3099ac_clean_files="$ac_clean_files conftest.out" 3100# Check that the compiler produces executables we can run. If not, either 3101# the compiler is broken, or we cross compile. 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3103$as_echo_n "checking whether we are cross compiling... " >&6; } 3104if test "$cross_compiling" != yes; then 3105 { { ac_try="$ac_link" 3106case "(($ac_try" in 3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3108 *) ac_try_echo=$ac_try;; 3109esac 3110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3111$as_echo "$ac_try_echo"; } >&5 3112 (eval "$ac_link") 2>&5 3113 ac_status=$? 3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3115 test $ac_status = 0; } 3116 if { ac_try='./conftest$ac_cv_exeext' 3117 { { case "(($ac_try" in 3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3119 *) ac_try_echo=$ac_try;; 3120esac 3121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3122$as_echo "$ac_try_echo"; } >&5 3123 (eval "$ac_try") 2>&5 3124 ac_status=$? 3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3126 test $ac_status = 0; }; }; then 3127 cross_compiling=no 3128 else 3129 if test "$cross_compiling" = maybe; then 3130 cross_compiling=yes 3131 else 3132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3134as_fn_error $? "cannot run C compiled programs. 3135If you meant to cross compile, use \`--host'. 3136See \`config.log' for more details" "$LINENO" 5; } 3137 fi 3138 fi 3139fi 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3141$as_echo "$cross_compiling" >&6; } 3142 3143rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3144ac_clean_files=$ac_clean_files_save 3145fi 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3147$as_echo_n "checking for suffix of object files... " >&6; } 3148if ${ac_cv_objext+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3152/* end confdefs.h. */ 3153 3154int 3155main () 3156{ 3157 3158 ; 3159 return 0; 3160} 3161_ACEOF 3162rm -f conftest.o conftest.obj 3163if { { ac_try="$ac_compile" 3164case "(($ac_try" in 3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3166 *) ac_try_echo=$ac_try;; 3167esac 3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3169$as_echo "$ac_try_echo"; } >&5 3170 (eval "$ac_compile") 2>&5 3171 ac_status=$? 3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3173 test $ac_status = 0; }; then : 3174 for ac_file in conftest.o conftest.obj conftest.*; do 3175 test -f "$ac_file" || continue; 3176 case $ac_file in 3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3178 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3179 break;; 3180 esac 3181done 3182else 3183 $as_echo "$as_me: failed program was:" >&5 3184sed 's/^/| /' conftest.$ac_ext >&5 3185 3186{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3188as_fn_error $? "cannot compute suffix of object files: cannot compile 3189See \`config.log' for more details" "$LINENO" 5; } 3190fi 3191rm -f conftest.$ac_cv_objext conftest.$ac_ext 3192fi 3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3194$as_echo "$ac_cv_objext" >&6; } 3195OBJEXT=$ac_cv_objext 3196ac_objext=$OBJEXT 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3198$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3199if ${ac_cv_c_compiler_gnu+:} false; then : 3200 $as_echo_n "(cached) " >&6 3201else 3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3203/* end confdefs.h. */ 3204 3205int 3206main () 3207{ 3208#ifndef __GNUC__ 3209 choke me 3210#endif 3211 3212 ; 3213 return 0; 3214} 3215_ACEOF 3216if ac_fn_c_try_compile "$LINENO"; then : 3217 ac_compiler_gnu=yes 3218else 3219 ac_compiler_gnu=no 3220fi 3221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3222ac_cv_c_compiler_gnu=$ac_compiler_gnu 3223 3224fi 3225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3226$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3227if test $ac_compiler_gnu = yes; then 3228 GCC=yes 3229else 3230 GCC= 3231fi 3232ac_test_CFLAGS=${CFLAGS+set} 3233ac_save_CFLAGS=$CFLAGS 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3235$as_echo_n "checking whether $CC accepts -g... " >&6; } 3236if ${ac_cv_prog_cc_g+:} false; then : 3237 $as_echo_n "(cached) " >&6 3238else 3239 ac_save_c_werror_flag=$ac_c_werror_flag 3240 ac_c_werror_flag=yes 3241 ac_cv_prog_cc_g=no 3242 CFLAGS="-g" 3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3244/* end confdefs.h. */ 3245 3246int 3247main () 3248{ 3249 3250 ; 3251 return 0; 3252} 3253_ACEOF 3254if ac_fn_c_try_compile "$LINENO"; then : 3255 ac_cv_prog_cc_g=yes 3256else 3257 CFLAGS="" 3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3259/* end confdefs.h. */ 3260 3261int 3262main () 3263{ 3264 3265 ; 3266 return 0; 3267} 3268_ACEOF 3269if ac_fn_c_try_compile "$LINENO"; then : 3270 3271else 3272 ac_c_werror_flag=$ac_save_c_werror_flag 3273 CFLAGS="-g" 3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3275/* end confdefs.h. */ 3276 3277int 3278main () 3279{ 3280 3281 ; 3282 return 0; 3283} 3284_ACEOF 3285if ac_fn_c_try_compile "$LINENO"; then : 3286 ac_cv_prog_cc_g=yes 3287fi 3288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3289fi 3290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3291fi 3292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3293 ac_c_werror_flag=$ac_save_c_werror_flag 3294fi 3295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3296$as_echo "$ac_cv_prog_cc_g" >&6; } 3297if test "$ac_test_CFLAGS" = set; then 3298 CFLAGS=$ac_save_CFLAGS 3299elif test $ac_cv_prog_cc_g = yes; then 3300 if test "$GCC" = yes; then 3301 CFLAGS="-g -O2" 3302 else 3303 CFLAGS="-g" 3304 fi 3305else 3306 if test "$GCC" = yes; then 3307 CFLAGS="-O2" 3308 else 3309 CFLAGS= 3310 fi 3311fi 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3313$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3314if ${ac_cv_prog_cc_c89+:} false; then : 3315 $as_echo_n "(cached) " >&6 3316else 3317 ac_cv_prog_cc_c89=no 3318ac_save_CC=$CC 3319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3320/* end confdefs.h. */ 3321#include <stdarg.h> 3322#include <stdio.h> 3323struct stat; 3324/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3325struct buf { int x; }; 3326FILE * (*rcsopen) (struct buf *, struct stat *, int); 3327static char *e (p, i) 3328 char **p; 3329 int i; 3330{ 3331 return p[i]; 3332} 3333static char *f (char * (*g) (char **, int), char **p, ...) 3334{ 3335 char *s; 3336 va_list v; 3337 va_start (v,p); 3338 s = g (p, va_arg (v,int)); 3339 va_end (v); 3340 return s; 3341} 3342 3343/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3344 function prototypes and stuff, but not '\xHH' hex character constants. 3345 These don't provoke an error unfortunately, instead are silently treated 3346 as 'x'. The following induces an error, until -std is added to get 3347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3348 array size at least. It's necessary to write '\x00'==0 to get something 3349 that's true only with -std. */ 3350int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3351 3352/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3353 inside strings and character constants. */ 3354#define FOO(x) 'x' 3355int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3356 3357int test (int i, double x); 3358struct s1 {int (*f) (int a);}; 3359struct s2 {int (*f) (double a);}; 3360int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3361int argc; 3362char **argv; 3363int 3364main () 3365{ 3366return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3367 ; 3368 return 0; 3369} 3370_ACEOF 3371for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3373do 3374 CC="$ac_save_CC $ac_arg" 3375 if ac_fn_c_try_compile "$LINENO"; then : 3376 ac_cv_prog_cc_c89=$ac_arg 3377fi 3378rm -f core conftest.err conftest.$ac_objext 3379 test "x$ac_cv_prog_cc_c89" != "xno" && break 3380done 3381rm -f conftest.$ac_ext 3382CC=$ac_save_CC 3383 3384fi 3385# AC_CACHE_VAL 3386case "x$ac_cv_prog_cc_c89" in 3387 x) 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3389$as_echo "none needed" >&6; } ;; 3390 xno) 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3392$as_echo "unsupported" >&6; } ;; 3393 *) 3394 CC="$CC $ac_cv_prog_cc_c89" 3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3396$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3397esac 3398if test "x$ac_cv_prog_cc_c89" != xno; then : 3399 3400fi 3401 3402ac_ext=c 3403ac_cpp='$CPP $CPPFLAGS' 3404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3406ac_compiler_gnu=$ac_cv_c_compiler_gnu 3407 3408 3409 3410# extra LD Flags which are required for targets 3411 3412 3413 3414case $host in 3415 *-cygwin* | *-mingw*) 3416 # 'host' will be top-level target in the case of a target lib, 3417 # we must compare to with_cross_host to decide if this is a native 3418 # or cross-compiler and select where to install dlls appropriately. 3419 if test -n "$with_cross_host" && 3420 test x"$with_cross_host" != x"no"; then 3421 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; 3422 else 3423 lt_host_flags='-no-undefined -bindir "$(bindir)"'; 3424 fi 3425 ;; 3426 *) 3427 lt_host_flags= 3428 ;; 3429esac 3430 3431 3432 3433case "${host}" in 3434 *-darwin*) 3435 # Darwin needs -single_module when linking libobjc 3436 extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module' 3437 ;; 3438 *-cygwin*|*-mingw*) 3439 # Tell libtool to build DLLs on Windows 3440 extra_ldflags_libobjc='$(lt_host_flags)' 3441 ;; 3442esac 3443 3444 3445# Add CET specific flags if CET is enabled 3446 3447 # Check whether --enable-cet was given. 3448if test "${enable_cet+set}" = set; then : 3449 enableval=$enable_cet; 3450 case "$enableval" in 3451 yes|no|auto) ;; 3452 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; 3453 esac 3454 3455else 3456 enable_cet=no 3457fi 3458 3459 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 3461$as_echo_n "checking for CET support... " >&6; } 3462 3463case "$host" in 3464 i[34567]86-*-linux* | x86_64-*-linux*) 3465 case "$enable_cet" in 3466 auto) 3467 # Check if target supports multi-byte NOPs 3468 # and if assembler supports CET insn. 3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3470/* end confdefs.h. */ 3471 3472int 3473main () 3474{ 3475 3476#if !defined(__SSE2__) 3477#error target does not support multi-byte NOPs 3478#else 3479asm ("setssbsy"); 3480#endif 3481 3482 ; 3483 return 0; 3484} 3485_ACEOF 3486if ac_fn_c_try_compile "$LINENO"; then : 3487 enable_cet=yes 3488else 3489 enable_cet=no 3490fi 3491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3492 ;; 3493 yes) 3494 # Check if assembler supports CET. 3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3496/* end confdefs.h. */ 3497 3498int 3499main () 3500{ 3501asm ("setssbsy"); 3502 ; 3503 return 0; 3504} 3505_ACEOF 3506if ac_fn_c_try_compile "$LINENO"; then : 3507 3508else 3509 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 3510fi 3511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3512 ;; 3513 esac 3514 ;; 3515 *) 3516 enable_cet=no 3517 ;; 3518esac 3519if test x$enable_cet = xyes; then 3520 CET_FLAGS="-fcf-protection -mshstk" 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3522$as_echo "yes" >&6; } 3523else 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3525$as_echo "no" >&6; } 3526fi 3527 3528XCFLAGS="$XCFLAGS $CET_FLAGS" 3529 3530 3531 3532 3533if test -n "$ac_tool_prefix"; then 3534 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 3535set dummy ${ac_tool_prefix}as; ac_word=$2 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3537$as_echo_n "checking for $ac_word... " >&6; } 3538if ${ac_cv_prog_AS+:} false; then : 3539 $as_echo_n "(cached) " >&6 3540else 3541 if test -n "$AS"; then 3542 ac_cv_prog_AS="$AS" # Let the user override the test. 3543else 3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3545for as_dir in $PATH 3546do 3547 IFS=$as_save_IFS 3548 test -z "$as_dir" && as_dir=. 3549 for ac_exec_ext in '' $ac_executable_extensions; do 3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3551 ac_cv_prog_AS="${ac_tool_prefix}as" 3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3553 break 2 3554 fi 3555done 3556 done 3557IFS=$as_save_IFS 3558 3559fi 3560fi 3561AS=$ac_cv_prog_AS 3562if test -n "$AS"; then 3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 3564$as_echo "$AS" >&6; } 3565else 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3567$as_echo "no" >&6; } 3568fi 3569 3570 3571fi 3572if test -z "$ac_cv_prog_AS"; then 3573 ac_ct_AS=$AS 3574 # Extract the first word of "as", so it can be a program name with args. 3575set dummy as; ac_word=$2 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3577$as_echo_n "checking for $ac_word... " >&6; } 3578if ${ac_cv_prog_ac_ct_AS+:} false; then : 3579 $as_echo_n "(cached) " >&6 3580else 3581 if test -n "$ac_ct_AS"; then 3582 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 3583else 3584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3585for as_dir in $PATH 3586do 3587 IFS=$as_save_IFS 3588 test -z "$as_dir" && as_dir=. 3589 for ac_exec_ext in '' $ac_executable_extensions; do 3590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3591 ac_cv_prog_ac_ct_AS="as" 3592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3593 break 2 3594 fi 3595done 3596 done 3597IFS=$as_save_IFS 3598 3599fi 3600fi 3601ac_ct_AS=$ac_cv_prog_ac_ct_AS 3602if test -n "$ac_ct_AS"; then 3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 3604$as_echo "$ac_ct_AS" >&6; } 3605else 3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3607$as_echo "no" >&6; } 3608fi 3609 3610 if test "x$ac_ct_AS" = x; then 3611 AS="" 3612 else 3613 case $cross_compiling:$ac_tool_warned in 3614yes:) 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3617ac_tool_warned=yes ;; 3618esac 3619 AS=$ac_ct_AS 3620 fi 3621else 3622 AS="$ac_cv_prog_AS" 3623fi 3624 3625if test -n "$ac_tool_prefix"; then 3626 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3627set dummy ${ac_tool_prefix}ar; ac_word=$2 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3629$as_echo_n "checking for $ac_word... " >&6; } 3630if ${ac_cv_prog_AR+:} false; then : 3631 $as_echo_n "(cached) " >&6 3632else 3633 if test -n "$AR"; then 3634 ac_cv_prog_AR="$AR" # Let the user override the test. 3635else 3636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3637for as_dir in $PATH 3638do 3639 IFS=$as_save_IFS 3640 test -z "$as_dir" && as_dir=. 3641 for ac_exec_ext in '' $ac_executable_extensions; do 3642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3643 ac_cv_prog_AR="${ac_tool_prefix}ar" 3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3645 break 2 3646 fi 3647done 3648 done 3649IFS=$as_save_IFS 3650 3651fi 3652fi 3653AR=$ac_cv_prog_AR 3654if test -n "$AR"; then 3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3656$as_echo "$AR" >&6; } 3657else 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3659$as_echo "no" >&6; } 3660fi 3661 3662 3663fi 3664if test -z "$ac_cv_prog_AR"; then 3665 ac_ct_AR=$AR 3666 # Extract the first word of "ar", so it can be a program name with args. 3667set dummy ar; ac_word=$2 3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3669$as_echo_n "checking for $ac_word... " >&6; } 3670if ${ac_cv_prog_ac_ct_AR+:} false; then : 3671 $as_echo_n "(cached) " >&6 3672else 3673 if test -n "$ac_ct_AR"; then 3674 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 3675else 3676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3677for as_dir in $PATH 3678do 3679 IFS=$as_save_IFS 3680 test -z "$as_dir" && as_dir=. 3681 for ac_exec_ext in '' $ac_executable_extensions; do 3682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3683 ac_cv_prog_ac_ct_AR="ar" 3684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3685 break 2 3686 fi 3687done 3688 done 3689IFS=$as_save_IFS 3690 3691fi 3692fi 3693ac_ct_AR=$ac_cv_prog_ac_ct_AR 3694if test -n "$ac_ct_AR"; then 3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 3696$as_echo "$ac_ct_AR" >&6; } 3697else 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3699$as_echo "no" >&6; } 3700fi 3701 3702 if test "x$ac_ct_AR" = x; then 3703 AR="" 3704 else 3705 case $cross_compiling:$ac_tool_warned in 3706yes:) 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3709ac_tool_warned=yes ;; 3710esac 3711 AR=$ac_ct_AR 3712 fi 3713else 3714 AR="$ac_cv_prog_AR" 3715fi 3716 3717if test -n "$ac_tool_prefix"; then 3718 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3719set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3721$as_echo_n "checking for $ac_word... " >&6; } 3722if ${ac_cv_prog_RANLIB+:} false; then : 3723 $as_echo_n "(cached) " >&6 3724else 3725 if test -n "$RANLIB"; then 3726 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3727else 3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3729for as_dir in $PATH 3730do 3731 IFS=$as_save_IFS 3732 test -z "$as_dir" && as_dir=. 3733 for ac_exec_ext in '' $ac_executable_extensions; do 3734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3737 break 2 3738 fi 3739done 3740 done 3741IFS=$as_save_IFS 3742 3743fi 3744fi 3745RANLIB=$ac_cv_prog_RANLIB 3746if test -n "$RANLIB"; then 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3748$as_echo "$RANLIB" >&6; } 3749else 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3751$as_echo "no" >&6; } 3752fi 3753 3754 3755fi 3756if test -z "$ac_cv_prog_RANLIB"; then 3757 ac_ct_RANLIB=$RANLIB 3758 # Extract the first word of "ranlib", so it can be a program name with args. 3759set dummy ranlib; ac_word=$2 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3761$as_echo_n "checking for $ac_word... " >&6; } 3762if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3763 $as_echo_n "(cached) " >&6 3764else 3765 if test -n "$ac_ct_RANLIB"; then 3766 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3767else 3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3769for as_dir in $PATH 3770do 3771 IFS=$as_save_IFS 3772 test -z "$as_dir" && as_dir=. 3773 for ac_exec_ext in '' $ac_executable_extensions; do 3774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3775 ac_cv_prog_ac_ct_RANLIB="ranlib" 3776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3777 break 2 3778 fi 3779done 3780 done 3781IFS=$as_save_IFS 3782 3783fi 3784fi 3785ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3786if test -n "$ac_ct_RANLIB"; then 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3788$as_echo "$ac_ct_RANLIB" >&6; } 3789else 3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3791$as_echo "no" >&6; } 3792fi 3793 3794 if test "x$ac_ct_RANLIB" = x; then 3795 RANLIB=":" 3796 else 3797 case $cross_compiling:$ac_tool_warned in 3798yes:) 3799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3801ac_tool_warned=yes ;; 3802esac 3803 RANLIB=$ac_ct_RANLIB 3804 fi 3805else 3806 RANLIB="$ac_cv_prog_RANLIB" 3807fi 3808 3809# Find a good install program. We prefer a C program (faster), 3810# so one script is as good as another. But avoid the broken or 3811# incompatible versions: 3812# SysV /etc/install, /usr/sbin/install 3813# SunOS /usr/etc/install 3814# IRIX /sbin/install 3815# AIX /bin/install 3816# AmigaOS /C/install, which installs bootblocks on floppy discs 3817# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3818# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3819# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3820# OS/2's system install, which has a completely different semantic 3821# ./install, which can be erroneously created by make from ./install.sh. 3822# Reject install programs that cannot install multiple files. 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3824$as_echo_n "checking for a BSD-compatible install... " >&6; } 3825if test -z "$INSTALL"; then 3826if ${ac_cv_path_install+:} false; then : 3827 $as_echo_n "(cached) " >&6 3828else 3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3830for as_dir in $PATH 3831do 3832 IFS=$as_save_IFS 3833 test -z "$as_dir" && as_dir=. 3834 # Account for people who put trailing slashes in PATH elements. 3835case $as_dir/ in #(( 3836 ./ | .// | /[cC]/* | \ 3837 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3838 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3839 /usr/ucb/* ) ;; 3840 *) 3841 # OSF1 and SCO ODT 3.0 have their own names for install. 3842 # Don't use installbsd from OSF since it installs stuff as root 3843 # by default. 3844 for ac_prog in ginstall scoinst install; do 3845 for ac_exec_ext in '' $ac_executable_extensions; do 3846 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3847 if test $ac_prog = install && 3848 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3849 # AIX install. It has an incompatible calling convention. 3850 : 3851 elif test $ac_prog = install && 3852 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3853 # program-specific install script used by HP pwplus--don't use. 3854 : 3855 else 3856 rm -rf conftest.one conftest.two conftest.dir 3857 echo one > conftest.one 3858 echo two > conftest.two 3859 mkdir conftest.dir 3860 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3861 test -s conftest.one && test -s conftest.two && 3862 test -s conftest.dir/conftest.one && 3863 test -s conftest.dir/conftest.two 3864 then 3865 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3866 break 3 3867 fi 3868 fi 3869 fi 3870 done 3871 done 3872 ;; 3873esac 3874 3875 done 3876IFS=$as_save_IFS 3877 3878rm -rf conftest.one conftest.two conftest.dir 3879 3880fi 3881 if test "${ac_cv_path_install+set}" = set; then 3882 INSTALL=$ac_cv_path_install 3883 else 3884 # As a last resort, use the slow shell script. Don't cache a 3885 # value for INSTALL within a source directory, because that will 3886 # break other packages using the cache if that directory is 3887 # removed, or if the value is a relative name. 3888 INSTALL=$ac_install_sh 3889 fi 3890fi 3891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3892$as_echo "$INSTALL" >&6; } 3893 3894# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3895# It thinks the first close brace ends the variable substitution. 3896test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3897 3898test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3899 3900test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3901 3902 3903 3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3905$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3906 # Check whether --enable-maintainer-mode was given. 3907if test "${enable_maintainer_mode+set}" = set; then : 3908 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3909else 3910 USE_MAINTAINER_MODE=no 3911fi 3912 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3914$as_echo "$USE_MAINTAINER_MODE" >&6; } 3915 if test $USE_MAINTAINER_MODE = yes; then 3916 MAINTAINER_MODE_TRUE= 3917 MAINTAINER_MODE_FALSE='#' 3918else 3919 MAINTAINER_MODE_TRUE='#' 3920 MAINTAINER_MODE_FALSE= 3921fi 3922 3923 MAINT=$MAINTAINER_MODE_TRUE 3924 3925 3926 3927# Enable Win32 DLL on MS Windows - FIXME 3928enable_win32_dll=yes 3929 3930case $host in 3931*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 3932 if test -n "$ac_tool_prefix"; then 3933 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 3934set dummy ${ac_tool_prefix}as; ac_word=$2 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3936$as_echo_n "checking for $ac_word... " >&6; } 3937if ${ac_cv_prog_AS+:} false; then : 3938 $as_echo_n "(cached) " >&6 3939else 3940 if test -n "$AS"; then 3941 ac_cv_prog_AS="$AS" # Let the user override the test. 3942else 3943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3944for as_dir in $PATH 3945do 3946 IFS=$as_save_IFS 3947 test -z "$as_dir" && as_dir=. 3948 for ac_exec_ext in '' $ac_executable_extensions; do 3949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3950 ac_cv_prog_AS="${ac_tool_prefix}as" 3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3952 break 2 3953 fi 3954done 3955 done 3956IFS=$as_save_IFS 3957 3958fi 3959fi 3960AS=$ac_cv_prog_AS 3961if test -n "$AS"; then 3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 3963$as_echo "$AS" >&6; } 3964else 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3966$as_echo "no" >&6; } 3967fi 3968 3969 3970fi 3971if test -z "$ac_cv_prog_AS"; then 3972 ac_ct_AS=$AS 3973 # Extract the first word of "as", so it can be a program name with args. 3974set dummy as; ac_word=$2 3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3976$as_echo_n "checking for $ac_word... " >&6; } 3977if ${ac_cv_prog_ac_ct_AS+:} false; then : 3978 $as_echo_n "(cached) " >&6 3979else 3980 if test -n "$ac_ct_AS"; then 3981 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 3982else 3983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3984for as_dir in $PATH 3985do 3986 IFS=$as_save_IFS 3987 test -z "$as_dir" && as_dir=. 3988 for ac_exec_ext in '' $ac_executable_extensions; do 3989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3990 ac_cv_prog_ac_ct_AS="as" 3991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3992 break 2 3993 fi 3994done 3995 done 3996IFS=$as_save_IFS 3997 3998fi 3999fi 4000ac_ct_AS=$ac_cv_prog_ac_ct_AS 4001if test -n "$ac_ct_AS"; then 4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4003$as_echo "$ac_ct_AS" >&6; } 4004else 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4006$as_echo "no" >&6; } 4007fi 4008 4009 if test "x$ac_ct_AS" = x; then 4010 AS="false" 4011 else 4012 case $cross_compiling:$ac_tool_warned in 4013yes:) 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4016ac_tool_warned=yes ;; 4017esac 4018 AS=$ac_ct_AS 4019 fi 4020else 4021 AS="$ac_cv_prog_AS" 4022fi 4023 4024 if test -n "$ac_tool_prefix"; then 4025 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4026set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4028$as_echo_n "checking for $ac_word... " >&6; } 4029if ${ac_cv_prog_DLLTOOL+:} false; then : 4030 $as_echo_n "(cached) " >&6 4031else 4032 if test -n "$DLLTOOL"; then 4033 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4034else 4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4036for as_dir in $PATH 4037do 4038 IFS=$as_save_IFS 4039 test -z "$as_dir" && as_dir=. 4040 for ac_exec_ext in '' $ac_executable_extensions; do 4041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4042 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4044 break 2 4045 fi 4046done 4047 done 4048IFS=$as_save_IFS 4049 4050fi 4051fi 4052DLLTOOL=$ac_cv_prog_DLLTOOL 4053if test -n "$DLLTOOL"; then 4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4055$as_echo "$DLLTOOL" >&6; } 4056else 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4058$as_echo "no" >&6; } 4059fi 4060 4061 4062fi 4063if test -z "$ac_cv_prog_DLLTOOL"; then 4064 ac_ct_DLLTOOL=$DLLTOOL 4065 # Extract the first word of "dlltool", so it can be a program name with args. 4066set dummy dlltool; ac_word=$2 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4068$as_echo_n "checking for $ac_word... " >&6; } 4069if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4070 $as_echo_n "(cached) " >&6 4071else 4072 if test -n "$ac_ct_DLLTOOL"; then 4073 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4074else 4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4076for as_dir in $PATH 4077do 4078 IFS=$as_save_IFS 4079 test -z "$as_dir" && as_dir=. 4080 for ac_exec_ext in '' $ac_executable_extensions; do 4081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4082 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4084 break 2 4085 fi 4086done 4087 done 4088IFS=$as_save_IFS 4089 4090fi 4091fi 4092ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4093if test -n "$ac_ct_DLLTOOL"; then 4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4095$as_echo "$ac_ct_DLLTOOL" >&6; } 4096else 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4098$as_echo "no" >&6; } 4099fi 4100 4101 if test "x$ac_ct_DLLTOOL" = x; then 4102 DLLTOOL="false" 4103 else 4104 case $cross_compiling:$ac_tool_warned in 4105yes:) 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4108ac_tool_warned=yes ;; 4109esac 4110 DLLTOOL=$ac_ct_DLLTOOL 4111 fi 4112else 4113 DLLTOOL="$ac_cv_prog_DLLTOOL" 4114fi 4115 4116 if test -n "$ac_tool_prefix"; then 4117 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4118set dummy ${ac_tool_prefix}objdump; ac_word=$2 4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4120$as_echo_n "checking for $ac_word... " >&6; } 4121if ${ac_cv_prog_OBJDUMP+:} false; then : 4122 $as_echo_n "(cached) " >&6 4123else 4124 if test -n "$OBJDUMP"; then 4125 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4126else 4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4128for as_dir in $PATH 4129do 4130 IFS=$as_save_IFS 4131 test -z "$as_dir" && as_dir=. 4132 for ac_exec_ext in '' $ac_executable_extensions; do 4133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4134 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4136 break 2 4137 fi 4138done 4139 done 4140IFS=$as_save_IFS 4141 4142fi 4143fi 4144OBJDUMP=$ac_cv_prog_OBJDUMP 4145if test -n "$OBJDUMP"; then 4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4147$as_echo "$OBJDUMP" >&6; } 4148else 4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4150$as_echo "no" >&6; } 4151fi 4152 4153 4154fi 4155if test -z "$ac_cv_prog_OBJDUMP"; then 4156 ac_ct_OBJDUMP=$OBJDUMP 4157 # Extract the first word of "objdump", so it can be a program name with args. 4158set dummy objdump; ac_word=$2 4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4160$as_echo_n "checking for $ac_word... " >&6; } 4161if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4162 $as_echo_n "(cached) " >&6 4163else 4164 if test -n "$ac_ct_OBJDUMP"; then 4165 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4166else 4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4168for as_dir in $PATH 4169do 4170 IFS=$as_save_IFS 4171 test -z "$as_dir" && as_dir=. 4172 for ac_exec_ext in '' $ac_executable_extensions; do 4173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4174 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4176 break 2 4177 fi 4178done 4179 done 4180IFS=$as_save_IFS 4181 4182fi 4183fi 4184ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4185if test -n "$ac_ct_OBJDUMP"; then 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4187$as_echo "$ac_ct_OBJDUMP" >&6; } 4188else 4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4190$as_echo "no" >&6; } 4191fi 4192 4193 if test "x$ac_ct_OBJDUMP" = x; then 4194 OBJDUMP="false" 4195 else 4196 case $cross_compiling:$ac_tool_warned in 4197yes:) 4198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4200ac_tool_warned=yes ;; 4201esac 4202 OBJDUMP=$ac_ct_OBJDUMP 4203 fi 4204else 4205 OBJDUMP="$ac_cv_prog_OBJDUMP" 4206fi 4207 4208 ;; 4209esac 4210 4211test -z "$AS" && AS=as 4212 4213 4214 4215 4216 4217test -z "$DLLTOOL" && DLLTOOL=dlltool 4218 4219 4220 4221 4222 4223test -z "$OBJDUMP" && OBJDUMP=objdump 4224 4225 4226 4227 4228 4229 4230 4231 4232case `pwd` in 4233 *\ * | *\ *) 4234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4235$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4236esac 4237 4238 4239 4240macro_version='2.2.7a' 4241macro_revision='1.3134' 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255ltmain="$ac_aux_dir/ltmain.sh" 4256 4257# Backslashify metacharacters that are still active within 4258# double-quoted strings. 4259sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4260 4261# Same as above, but do not quote variable references. 4262double_quote_subst='s/\(["`\\]\)/\\\1/g' 4263 4264# Sed substitution to delay expansion of an escaped shell variable in a 4265# double_quote_subst'ed string. 4266delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4267 4268# Sed substitution to delay expansion of an escaped single quote. 4269delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4270 4271# Sed substitution to avoid accidental globbing in evaled expressions 4272no_glob_subst='s/\*/\\\*/g' 4273 4274ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4275ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4276ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4277 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4279$as_echo_n "checking how to print strings... " >&6; } 4280# Test print first, because it will be a builtin if present. 4281if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4282 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4283 ECHO='print -r --' 4284elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4285 ECHO='printf %s\n' 4286else 4287 # Use this function as a fallback that always works. 4288 func_fallback_echo () 4289 { 4290 eval 'cat <<_LTECHO_EOF 4291$1 4292_LTECHO_EOF' 4293 } 4294 ECHO='func_fallback_echo' 4295fi 4296 4297# func_echo_all arg... 4298# Invoke $ECHO with all args, space-separated. 4299func_echo_all () 4300{ 4301 $ECHO "" 4302} 4303 4304case "$ECHO" in 4305 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4306$as_echo "printf" >&6; } ;; 4307 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4308$as_echo "print -r" >&6; } ;; 4309 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4310$as_echo "cat" >&6; } ;; 4311esac 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4327$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4328if ${ac_cv_path_SED+:} false; then : 4329 $as_echo_n "(cached) " >&6 4330else 4331 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4332 for ac_i in 1 2 3 4 5 6 7; do 4333 ac_script="$ac_script$as_nl$ac_script" 4334 done 4335 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4336 { ac_script=; unset ac_script;} 4337 if test -z "$SED"; then 4338 ac_path_SED_found=false 4339 # Loop through the user's path and test for each of PROGNAME-LIST 4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4341for as_dir in $PATH 4342do 4343 IFS=$as_save_IFS 4344 test -z "$as_dir" && as_dir=. 4345 for ac_prog in sed gsed; do 4346 for ac_exec_ext in '' $ac_executable_extensions; do 4347 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4348 as_fn_executable_p "$ac_path_SED" || continue 4349# Check for GNU ac_path_SED and select it if it is found. 4350 # Check for GNU $ac_path_SED 4351case `"$ac_path_SED" --version 2>&1` in 4352*GNU*) 4353 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4354*) 4355 ac_count=0 4356 $as_echo_n 0123456789 >"conftest.in" 4357 while : 4358 do 4359 cat "conftest.in" "conftest.in" >"conftest.tmp" 4360 mv "conftest.tmp" "conftest.in" 4361 cp "conftest.in" "conftest.nl" 4362 $as_echo '' >> "conftest.nl" 4363 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4365 as_fn_arith $ac_count + 1 && ac_count=$as_val 4366 if test $ac_count -gt ${ac_path_SED_max-0}; then 4367 # Best one so far, save it but keep looking for a better one 4368 ac_cv_path_SED="$ac_path_SED" 4369 ac_path_SED_max=$ac_count 4370 fi 4371 # 10*(2^10) chars as input seems more than enough 4372 test $ac_count -gt 10 && break 4373 done 4374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4375esac 4376 4377 $ac_path_SED_found && break 3 4378 done 4379 done 4380 done 4381IFS=$as_save_IFS 4382 if test -z "$ac_cv_path_SED"; then 4383 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4384 fi 4385else 4386 ac_cv_path_SED=$SED 4387fi 4388 4389fi 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4391$as_echo "$ac_cv_path_SED" >&6; } 4392 SED="$ac_cv_path_SED" 4393 rm -f conftest.sed 4394 4395test -z "$SED" && SED=sed 4396Xsed="$SED -e 1s/^X//" 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4409$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4410if ${ac_cv_path_GREP+:} false; then : 4411 $as_echo_n "(cached) " >&6 4412else 4413 if test -z "$GREP"; then 4414 ac_path_GREP_found=false 4415 # Loop through the user's path and test for each of PROGNAME-LIST 4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4417for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4418do 4419 IFS=$as_save_IFS 4420 test -z "$as_dir" && as_dir=. 4421 for ac_prog in grep ggrep; do 4422 for ac_exec_ext in '' $ac_executable_extensions; do 4423 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4424 as_fn_executable_p "$ac_path_GREP" || continue 4425# Check for GNU ac_path_GREP and select it if it is found. 4426 # Check for GNU $ac_path_GREP 4427case `"$ac_path_GREP" --version 2>&1` in 4428*GNU*) 4429 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4430*) 4431 ac_count=0 4432 $as_echo_n 0123456789 >"conftest.in" 4433 while : 4434 do 4435 cat "conftest.in" "conftest.in" >"conftest.tmp" 4436 mv "conftest.tmp" "conftest.in" 4437 cp "conftest.in" "conftest.nl" 4438 $as_echo 'GREP' >> "conftest.nl" 4439 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4441 as_fn_arith $ac_count + 1 && ac_count=$as_val 4442 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4443 # Best one so far, save it but keep looking for a better one 4444 ac_cv_path_GREP="$ac_path_GREP" 4445 ac_path_GREP_max=$ac_count 4446 fi 4447 # 10*(2^10) chars as input seems more than enough 4448 test $ac_count -gt 10 && break 4449 done 4450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4451esac 4452 4453 $ac_path_GREP_found && break 3 4454 done 4455 done 4456 done 4457IFS=$as_save_IFS 4458 if test -z "$ac_cv_path_GREP"; then 4459 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4460 fi 4461else 4462 ac_cv_path_GREP=$GREP 4463fi 4464 4465fi 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4467$as_echo "$ac_cv_path_GREP" >&6; } 4468 GREP="$ac_cv_path_GREP" 4469 4470 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4472$as_echo_n "checking for egrep... " >&6; } 4473if ${ac_cv_path_EGREP+:} false; then : 4474 $as_echo_n "(cached) " >&6 4475else 4476 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4477 then ac_cv_path_EGREP="$GREP -E" 4478 else 4479 if test -z "$EGREP"; then 4480 ac_path_EGREP_found=false 4481 # Loop through the user's path and test for each of PROGNAME-LIST 4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4483for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4484do 4485 IFS=$as_save_IFS 4486 test -z "$as_dir" && as_dir=. 4487 for ac_prog in egrep; do 4488 for ac_exec_ext in '' $ac_executable_extensions; do 4489 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4490 as_fn_executable_p "$ac_path_EGREP" || continue 4491# Check for GNU ac_path_EGREP and select it if it is found. 4492 # Check for GNU $ac_path_EGREP 4493case `"$ac_path_EGREP" --version 2>&1` in 4494*GNU*) 4495 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4496*) 4497 ac_count=0 4498 $as_echo_n 0123456789 >"conftest.in" 4499 while : 4500 do 4501 cat "conftest.in" "conftest.in" >"conftest.tmp" 4502 mv "conftest.tmp" "conftest.in" 4503 cp "conftest.in" "conftest.nl" 4504 $as_echo 'EGREP' >> "conftest.nl" 4505 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4507 as_fn_arith $ac_count + 1 && ac_count=$as_val 4508 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4509 # Best one so far, save it but keep looking for a better one 4510 ac_cv_path_EGREP="$ac_path_EGREP" 4511 ac_path_EGREP_max=$ac_count 4512 fi 4513 # 10*(2^10) chars as input seems more than enough 4514 test $ac_count -gt 10 && break 4515 done 4516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4517esac 4518 4519 $ac_path_EGREP_found && break 3 4520 done 4521 done 4522 done 4523IFS=$as_save_IFS 4524 if test -z "$ac_cv_path_EGREP"; then 4525 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4526 fi 4527else 4528 ac_cv_path_EGREP=$EGREP 4529fi 4530 4531 fi 4532fi 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4534$as_echo "$ac_cv_path_EGREP" >&6; } 4535 EGREP="$ac_cv_path_EGREP" 4536 4537 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4539$as_echo_n "checking for fgrep... " >&6; } 4540if ${ac_cv_path_FGREP+:} false; then : 4541 $as_echo_n "(cached) " >&6 4542else 4543 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4544 then ac_cv_path_FGREP="$GREP -F" 4545 else 4546 if test -z "$FGREP"; then 4547 ac_path_FGREP_found=false 4548 # Loop through the user's path and test for each of PROGNAME-LIST 4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4550for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4551do 4552 IFS=$as_save_IFS 4553 test -z "$as_dir" && as_dir=. 4554 for ac_prog in fgrep; do 4555 for ac_exec_ext in '' $ac_executable_extensions; do 4556 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4557 as_fn_executable_p "$ac_path_FGREP" || continue 4558# Check for GNU ac_path_FGREP and select it if it is found. 4559 # Check for GNU $ac_path_FGREP 4560case `"$ac_path_FGREP" --version 2>&1` in 4561*GNU*) 4562 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4563*) 4564 ac_count=0 4565 $as_echo_n 0123456789 >"conftest.in" 4566 while : 4567 do 4568 cat "conftest.in" "conftest.in" >"conftest.tmp" 4569 mv "conftest.tmp" "conftest.in" 4570 cp "conftest.in" "conftest.nl" 4571 $as_echo 'FGREP' >> "conftest.nl" 4572 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4573 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4574 as_fn_arith $ac_count + 1 && ac_count=$as_val 4575 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4576 # Best one so far, save it but keep looking for a better one 4577 ac_cv_path_FGREP="$ac_path_FGREP" 4578 ac_path_FGREP_max=$ac_count 4579 fi 4580 # 10*(2^10) chars as input seems more than enough 4581 test $ac_count -gt 10 && break 4582 done 4583 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4584esac 4585 4586 $ac_path_FGREP_found && break 3 4587 done 4588 done 4589 done 4590IFS=$as_save_IFS 4591 if test -z "$ac_cv_path_FGREP"; then 4592 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4593 fi 4594else 4595 ac_cv_path_FGREP=$FGREP 4596fi 4597 4598 fi 4599fi 4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4601$as_echo "$ac_cv_path_FGREP" >&6; } 4602 FGREP="$ac_cv_path_FGREP" 4603 4604 4605test -z "$GREP" && GREP=grep 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625# Check whether --with-gnu-ld was given. 4626if test "${with_gnu_ld+set}" = set; then : 4627 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4628else 4629 with_gnu_ld=no 4630fi 4631 4632ac_prog=ld 4633if test "$GCC" = yes; then 4634 # Check if gcc -print-prog-name=ld gives a path. 4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4636$as_echo_n "checking for ld used by $CC... " >&6; } 4637 case $host in 4638 *-*-mingw*) 4639 # gcc leaves a trailing carriage return which upsets mingw 4640 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4641 *) 4642 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4643 esac 4644 case $ac_prog in 4645 # Accept absolute paths. 4646 [\\/]* | ?:[\\/]*) 4647 re_direlt='/[^/][^/]*/\.\./' 4648 # Canonicalize the pathname of ld 4649 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4650 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4651 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4652 done 4653 test -z "$LD" && LD="$ac_prog" 4654 ;; 4655 "") 4656 # If it fails, then pretend we aren't using GCC. 4657 ac_prog=ld 4658 ;; 4659 *) 4660 # If it is relative, then search for the first ld in PATH. 4661 with_gnu_ld=unknown 4662 ;; 4663 esac 4664elif test "$with_gnu_ld" = yes; then 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4666$as_echo_n "checking for GNU ld... " >&6; } 4667else 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4669$as_echo_n "checking for non-GNU ld... " >&6; } 4670fi 4671if ${lt_cv_path_LD+:} false; then : 4672 $as_echo_n "(cached) " >&6 4673else 4674 if test -z "$LD"; then 4675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4676 for ac_dir in $PATH; do 4677 IFS="$lt_save_ifs" 4678 test -z "$ac_dir" && ac_dir=. 4679 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4680 lt_cv_path_LD="$ac_dir/$ac_prog" 4681 # Check to see if the program is GNU ld. I'd rather use --version, 4682 # but apparently some variants of GNU ld only accept -v. 4683 # Break only if it was the GNU/non-GNU ld that we prefer. 4684 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4685 *GNU* | *'with BFD'*) 4686 test "$with_gnu_ld" != no && break 4687 ;; 4688 *) 4689 test "$with_gnu_ld" != yes && break 4690 ;; 4691 esac 4692 fi 4693 done 4694 IFS="$lt_save_ifs" 4695else 4696 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4697fi 4698fi 4699 4700LD="$lt_cv_path_LD" 4701if test -n "$LD"; then 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4703$as_echo "$LD" >&6; } 4704else 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4706$as_echo "no" >&6; } 4707fi 4708test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4710$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4711if ${lt_cv_prog_gnu_ld+:} false; then : 4712 $as_echo_n "(cached) " >&6 4713else 4714 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4715case `$LD -v 2>&1 </dev/null` in 4716*GNU* | *'with BFD'*) 4717 lt_cv_prog_gnu_ld=yes 4718 ;; 4719*) 4720 lt_cv_prog_gnu_ld=no 4721 ;; 4722esac 4723fi 4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4725$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4726with_gnu_ld=$lt_cv_prog_gnu_ld 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4737$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4738if ${lt_cv_path_NM+:} false; then : 4739 $as_echo_n "(cached) " >&6 4740else 4741 if test -n "$NM"; then 4742 # Let the user override the test. 4743 lt_cv_path_NM="$NM" 4744else 4745 lt_nm_to_check="${ac_tool_prefix}nm" 4746 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4747 lt_nm_to_check="$lt_nm_to_check nm" 4748 fi 4749 for lt_tmp_nm in $lt_nm_to_check; do 4750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4751 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4752 IFS="$lt_save_ifs" 4753 test -z "$ac_dir" && ac_dir=. 4754 tmp_nm="$ac_dir/$lt_tmp_nm" 4755 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4756 # Check to see if the nm accepts a BSD-compat flag. 4757 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4758 # nm: unknown option "B" ignored 4759 # Tru64's nm complains that /dev/null is an invalid object file 4760 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4761 */dev/null* | *'Invalid file or object type'*) 4762 lt_cv_path_NM="$tmp_nm -B" 4763 break 4764 ;; 4765 *) 4766 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4767 */dev/null*) 4768 lt_cv_path_NM="$tmp_nm -p" 4769 break 4770 ;; 4771 *) 4772 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4773 continue # so that we can try to find one that supports BSD flags 4774 ;; 4775 esac 4776 ;; 4777 esac 4778 fi 4779 done 4780 IFS="$lt_save_ifs" 4781 done 4782 : ${lt_cv_path_NM=no} 4783fi 4784fi 4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4786$as_echo "$lt_cv_path_NM" >&6; } 4787if test "$lt_cv_path_NM" != "no"; then 4788 NM="$lt_cv_path_NM" 4789else 4790 # Didn't find any BSD compatible name lister, look for dumpbin. 4791 if test -n "$DUMPBIN"; then : 4792 # Let the user override the test. 4793 else 4794 if test -n "$ac_tool_prefix"; then 4795 for ac_prog in dumpbin "link -dump" 4796 do 4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4798set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4800$as_echo_n "checking for $ac_word... " >&6; } 4801if ${ac_cv_prog_DUMPBIN+:} false; then : 4802 $as_echo_n "(cached) " >&6 4803else 4804 if test -n "$DUMPBIN"; then 4805 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4806else 4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4808for as_dir in $PATH 4809do 4810 IFS=$as_save_IFS 4811 test -z "$as_dir" && as_dir=. 4812 for ac_exec_ext in '' $ac_executable_extensions; do 4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4814 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4816 break 2 4817 fi 4818done 4819 done 4820IFS=$as_save_IFS 4821 4822fi 4823fi 4824DUMPBIN=$ac_cv_prog_DUMPBIN 4825if test -n "$DUMPBIN"; then 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4827$as_echo "$DUMPBIN" >&6; } 4828else 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4830$as_echo "no" >&6; } 4831fi 4832 4833 4834 test -n "$DUMPBIN" && break 4835 done 4836fi 4837if test -z "$DUMPBIN"; then 4838 ac_ct_DUMPBIN=$DUMPBIN 4839 for ac_prog in dumpbin "link -dump" 4840do 4841 # Extract the first word of "$ac_prog", so it can be a program name with args. 4842set dummy $ac_prog; ac_word=$2 4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4844$as_echo_n "checking for $ac_word... " >&6; } 4845if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4846 $as_echo_n "(cached) " >&6 4847else 4848 if test -n "$ac_ct_DUMPBIN"; then 4849 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4850else 4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4852for as_dir in $PATH 4853do 4854 IFS=$as_save_IFS 4855 test -z "$as_dir" && as_dir=. 4856 for ac_exec_ext in '' $ac_executable_extensions; do 4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4858 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4860 break 2 4861 fi 4862done 4863 done 4864IFS=$as_save_IFS 4865 4866fi 4867fi 4868ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4869if test -n "$ac_ct_DUMPBIN"; then 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4871$as_echo "$ac_ct_DUMPBIN" >&6; } 4872else 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4874$as_echo "no" >&6; } 4875fi 4876 4877 4878 test -n "$ac_ct_DUMPBIN" && break 4879done 4880 4881 if test "x$ac_ct_DUMPBIN" = x; then 4882 DUMPBIN=":" 4883 else 4884 case $cross_compiling:$ac_tool_warned in 4885yes:) 4886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4888ac_tool_warned=yes ;; 4889esac 4890 DUMPBIN=$ac_ct_DUMPBIN 4891 fi 4892fi 4893 4894 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4895 *COFF*) 4896 DUMPBIN="$DUMPBIN -symbols" 4897 ;; 4898 *) 4899 DUMPBIN=: 4900 ;; 4901 esac 4902 fi 4903 4904 if test "$DUMPBIN" != ":"; then 4905 NM="$DUMPBIN" 4906 fi 4907fi 4908test -z "$NM" && NM=nm 4909 4910 4911 4912 4913 4914 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4916$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4917if ${lt_cv_nm_interface+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 lt_cv_nm_interface="BSD nm" 4921 echo "int some_variable = 0;" > conftest.$ac_ext 4922 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4923 (eval "$ac_compile" 2>conftest.err) 4924 cat conftest.err >&5 4925 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4926 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4927 cat conftest.err >&5 4928 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4929 cat conftest.out >&5 4930 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4931 lt_cv_nm_interface="MS dumpbin" 4932 fi 4933 rm -f conftest* 4934fi 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4936$as_echo "$lt_cv_nm_interface" >&6; } 4937 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4939$as_echo_n "checking whether ln -s works... " >&6; } 4940LN_S=$as_ln_s 4941if test "$LN_S" = "ln -s"; then 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4943$as_echo "yes" >&6; } 4944else 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4946$as_echo "no, using $LN_S" >&6; } 4947fi 4948 4949# find the maximum length of command line arguments 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4951$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4952if ${lt_cv_sys_max_cmd_len+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 i=0 4956 teststring="ABCD" 4957 4958 case $build_os in 4959 msdosdjgpp*) 4960 # On DJGPP, this test can blow up pretty badly due to problems in libc 4961 # (any single argument exceeding 2000 bytes causes a buffer overrun 4962 # during glob expansion). Even if it were fixed, the result of this 4963 # check would be larger than it should be. 4964 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4965 ;; 4966 4967 gnu*) 4968 # Under GNU Hurd, this test is not required because there is 4969 # no limit to the length of command line arguments. 4970 # Libtool will interpret -1 as no limit whatsoever 4971 lt_cv_sys_max_cmd_len=-1; 4972 ;; 4973 4974 cygwin* | mingw* | cegcc*) 4975 # On Win9x/ME, this test blows up -- it succeeds, but takes 4976 # about 5 minutes as the teststring grows exponentially. 4977 # Worse, since 9x/ME are not pre-emptively multitasking, 4978 # you end up with a "frozen" computer, even though with patience 4979 # the test eventually succeeds (with a max line length of 256k). 4980 # Instead, let's just punt: use the minimum linelength reported by 4981 # all of the supported platforms: 8192 (on NT/2K/XP). 4982 lt_cv_sys_max_cmd_len=8192; 4983 ;; 4984 4985 mint*) 4986 # On MiNT this can take a long time and run out of memory. 4987 lt_cv_sys_max_cmd_len=8192; 4988 ;; 4989 4990 amigaos*) 4991 # On AmigaOS with pdksh, this test takes hours, literally. 4992 # So we just punt and use a minimum line length of 8192. 4993 lt_cv_sys_max_cmd_len=8192; 4994 ;; 4995 4996 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4997 # This has been around since 386BSD, at least. Likely further. 4998 if test -x /sbin/sysctl; then 4999 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5000 elif test -x /usr/sbin/sysctl; then 5001 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5002 else 5003 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5004 fi 5005 # And add a safety zone 5006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5008 ;; 5009 5010 interix*) 5011 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5012 lt_cv_sys_max_cmd_len=196608 5013 ;; 5014 5015 osf*) 5016 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5017 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5018 # nice to cause kernel panics so lets avoid the loop below. 5019 # First set a reasonable default. 5020 lt_cv_sys_max_cmd_len=16384 5021 # 5022 if test -x /sbin/sysconfig; then 5023 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5024 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5025 esac 5026 fi 5027 ;; 5028 sco3.2v5*) 5029 lt_cv_sys_max_cmd_len=102400 5030 ;; 5031 sysv5* | sco5v6* | sysv4.2uw2*) 5032 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5033 if test -n "$kargmax"; then 5034 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5035 else 5036 lt_cv_sys_max_cmd_len=32768 5037 fi 5038 ;; 5039 *) 5040 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5041 if test -n "$lt_cv_sys_max_cmd_len"; then 5042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5044 else 5045 # Make teststring a little bigger before we do anything with it. 5046 # a 1K string should be a reasonable start. 5047 for i in 1 2 3 4 5 6 7 8 ; do 5048 teststring=$teststring$teststring 5049 done 5050 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5051 # If test is not a shell built-in, we'll probably end up computing a 5052 # maximum length that is only half of the actual maximum length, but 5053 # we can't tell. 5054 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5055 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5056 test $i != 17 # 1/2 MB should be enough 5057 do 5058 i=`expr $i + 1` 5059 teststring=$teststring$teststring 5060 done 5061 # Only check the string length outside the loop. 5062 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5063 teststring= 5064 # Add a significant safety factor because C++ compilers can tack on 5065 # massive amounts of additional arguments before passing them to the 5066 # linker. It appears as though 1/2 is a usable value. 5067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5068 fi 5069 ;; 5070 esac 5071 5072fi 5073 5074if test -n $lt_cv_sys_max_cmd_len ; then 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5076$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5077else 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5079$as_echo "none" >&6; } 5080fi 5081max_cmd_len=$lt_cv_sys_max_cmd_len 5082 5083 5084 5085 5086 5087 5088: ${CP="cp -f"} 5089: ${MV="mv -f"} 5090: ${RM="rm -f"} 5091 5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5093$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5094# Try some XSI features 5095xsi_shell=no 5096( _lt_dummy="a/b/c" 5097 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5098 = c,a/b,, \ 5099 && eval 'test $(( 1 + 1 )) -eq 2 \ 5100 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5101 && xsi_shell=yes 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5103$as_echo "$xsi_shell" >&6; } 5104 5105 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5107$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5108lt_shell_append=no 5109( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5110 >/dev/null 2>&1 \ 5111 && lt_shell_append=yes 5112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5113$as_echo "$lt_shell_append" >&6; } 5114 5115 5116if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5117 lt_unset=unset 5118else 5119 lt_unset=false 5120fi 5121 5122 5123 5124 5125 5126# test EBCDIC or ASCII 5127case `echo X|tr X '\101'` in 5128 A) # ASCII based system 5129 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5130 lt_SP2NL='tr \040 \012' 5131 lt_NL2SP='tr \015\012 \040\040' 5132 ;; 5133 *) # EBCDIC based system 5134 lt_SP2NL='tr \100 \n' 5135 lt_NL2SP='tr \r\n \100\100' 5136 ;; 5137esac 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5148$as_echo_n "checking for $LD option to reload object files... " >&6; } 5149if ${lt_cv_ld_reload_flag+:} false; then : 5150 $as_echo_n "(cached) " >&6 5151else 5152 lt_cv_ld_reload_flag='-r' 5153fi 5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5155$as_echo "$lt_cv_ld_reload_flag" >&6; } 5156reload_flag=$lt_cv_ld_reload_flag 5157case $reload_flag in 5158"" | " "*) ;; 5159*) reload_flag=" $reload_flag" ;; 5160esac 5161reload_cmds='$LD$reload_flag -o $output$reload_objs' 5162case $host_os in 5163 darwin*) 5164 if test "$GCC" = yes; then 5165 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5166 else 5167 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5168 fi 5169 ;; 5170esac 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180if test -n "$ac_tool_prefix"; then 5181 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5182set dummy ${ac_tool_prefix}objdump; ac_word=$2 5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5184$as_echo_n "checking for $ac_word... " >&6; } 5185if ${ac_cv_prog_OBJDUMP+:} false; then : 5186 $as_echo_n "(cached) " >&6 5187else 5188 if test -n "$OBJDUMP"; then 5189 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5190else 5191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5192for as_dir in $PATH 5193do 5194 IFS=$as_save_IFS 5195 test -z "$as_dir" && as_dir=. 5196 for ac_exec_ext in '' $ac_executable_extensions; do 5197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5198 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5200 break 2 5201 fi 5202done 5203 done 5204IFS=$as_save_IFS 5205 5206fi 5207fi 5208OBJDUMP=$ac_cv_prog_OBJDUMP 5209if test -n "$OBJDUMP"; then 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5211$as_echo "$OBJDUMP" >&6; } 5212else 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5214$as_echo "no" >&6; } 5215fi 5216 5217 5218fi 5219if test -z "$ac_cv_prog_OBJDUMP"; then 5220 ac_ct_OBJDUMP=$OBJDUMP 5221 # Extract the first word of "objdump", so it can be a program name with args. 5222set dummy objdump; ac_word=$2 5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5224$as_echo_n "checking for $ac_word... " >&6; } 5225if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5226 $as_echo_n "(cached) " >&6 5227else 5228 if test -n "$ac_ct_OBJDUMP"; then 5229 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5230else 5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5232for as_dir in $PATH 5233do 5234 IFS=$as_save_IFS 5235 test -z "$as_dir" && as_dir=. 5236 for ac_exec_ext in '' $ac_executable_extensions; do 5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5238 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5240 break 2 5241 fi 5242done 5243 done 5244IFS=$as_save_IFS 5245 5246fi 5247fi 5248ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5249if test -n "$ac_ct_OBJDUMP"; then 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5251$as_echo "$ac_ct_OBJDUMP" >&6; } 5252else 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5254$as_echo "no" >&6; } 5255fi 5256 5257 if test "x$ac_ct_OBJDUMP" = x; then 5258 OBJDUMP="false" 5259 else 5260 case $cross_compiling:$ac_tool_warned in 5261yes:) 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5264ac_tool_warned=yes ;; 5265esac 5266 OBJDUMP=$ac_ct_OBJDUMP 5267 fi 5268else 5269 OBJDUMP="$ac_cv_prog_OBJDUMP" 5270fi 5271 5272test -z "$OBJDUMP" && OBJDUMP=objdump 5273 5274 5275 5276 5277 5278 5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5280$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5281if ${lt_cv_deplibs_check_method+:} false; then : 5282 $as_echo_n "(cached) " >&6 5283else 5284 lt_cv_file_magic_cmd='$MAGIC_CMD' 5285lt_cv_file_magic_test_file= 5286lt_cv_deplibs_check_method='unknown' 5287# Need to set the preceding variable on all platforms that support 5288# interlibrary dependencies. 5289# 'none' -- dependencies not supported. 5290# `unknown' -- same as none, but documents that we really don't know. 5291# 'pass_all' -- all dependencies passed with no checks. 5292# 'test_compile' -- check by making test program. 5293# 'file_magic [[regex]]' -- check by looking for files in library path 5294# which responds to the $file_magic_cmd with a given extended regex. 5295# If you have `file' or equivalent on your system and you're not sure 5296# whether `pass_all' will *always* work, you probably want this one. 5297 5298case $host_os in 5299aix[4-9]*) 5300 lt_cv_deplibs_check_method=pass_all 5301 ;; 5302 5303beos*) 5304 lt_cv_deplibs_check_method=pass_all 5305 ;; 5306 5307bsdi[45]*) 5308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5309 lt_cv_file_magic_cmd='/usr/bin/file -L' 5310 lt_cv_file_magic_test_file=/shlib/libc.so 5311 ;; 5312 5313cygwin*) 5314 # func_win32_libid is a shell function defined in ltmain.sh 5315 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5316 lt_cv_file_magic_cmd='func_win32_libid' 5317 ;; 5318 5319mingw* | pw32*) 5320 # Base MSYS/MinGW do not provide the 'file' command needed by 5321 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5322 # unless we find 'file', for example because we are cross-compiling. 5323 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5324 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5325 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5326 lt_cv_file_magic_cmd='func_win32_libid' 5327 else 5328 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5329 lt_cv_file_magic_cmd='$OBJDUMP -f' 5330 fi 5331 ;; 5332 5333cegcc*) 5334 # use the weaker test based on 'objdump'. See mingw*. 5335 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5336 lt_cv_file_magic_cmd='$OBJDUMP -f' 5337 ;; 5338 5339darwin* | rhapsody*) 5340 lt_cv_deplibs_check_method=pass_all 5341 ;; 5342 5343freebsd* | dragonfly*) 5344 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5345 case $host_cpu in 5346 i*86 ) 5347 # Not sure whether the presence of OpenBSD here was a mistake. 5348 # Let's accept both of them until this is cleared up. 5349 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5350 lt_cv_file_magic_cmd=/usr/bin/file 5351 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5352 ;; 5353 esac 5354 else 5355 lt_cv_deplibs_check_method=pass_all 5356 fi 5357 ;; 5358 5359gnu*) 5360 lt_cv_deplibs_check_method=pass_all 5361 ;; 5362 5363haiku*) 5364 lt_cv_deplibs_check_method=pass_all 5365 ;; 5366 5367hpux10.20* | hpux11*) 5368 lt_cv_file_magic_cmd=/usr/bin/file 5369 case $host_cpu in 5370 ia64*) 5371 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5372 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5373 ;; 5374 hppa*64*) 5375 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]' 5376 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5377 ;; 5378 *) 5379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5380 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5381 ;; 5382 esac 5383 ;; 5384 5385interix[3-9]*) 5386 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5388 ;; 5389 5390irix5* | irix6* | nonstopux*) 5391 case $LD in 5392 *-32|*"-32 ") libmagic=32-bit;; 5393 *-n32|*"-n32 ") libmagic=N32;; 5394 *-64|*"-64 ") libmagic=64-bit;; 5395 *) libmagic=never-match;; 5396 esac 5397 lt_cv_deplibs_check_method=pass_all 5398 ;; 5399 5400# This must be Linux ELF. 5401linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 5402 lt_cv_deplibs_check_method=pass_all 5403 ;; 5404 5405netbsd*) 5406 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5408 else 5409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5410 fi 5411 ;; 5412 5413newos6*) 5414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5415 lt_cv_file_magic_cmd=/usr/bin/file 5416 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5417 ;; 5418 5419*nto* | *qnx*) 5420 lt_cv_deplibs_check_method=pass_all 5421 ;; 5422 5423openbsd*) 5424 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5426 else 5427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5428 fi 5429 ;; 5430 5431osf3* | osf4* | osf5*) 5432 lt_cv_deplibs_check_method=pass_all 5433 ;; 5434 5435rdos*) 5436 lt_cv_deplibs_check_method=pass_all 5437 ;; 5438 5439solaris*) 5440 lt_cv_deplibs_check_method=pass_all 5441 ;; 5442 5443sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5444 lt_cv_deplibs_check_method=pass_all 5445 ;; 5446 5447sysv4 | sysv4.3*) 5448 case $host_vendor in 5449 motorola) 5450 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]' 5451 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5452 ;; 5453 ncr) 5454 lt_cv_deplibs_check_method=pass_all 5455 ;; 5456 sequent) 5457 lt_cv_file_magic_cmd='/bin/file' 5458 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5459 ;; 5460 sni) 5461 lt_cv_file_magic_cmd='/bin/file' 5462 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5463 lt_cv_file_magic_test_file=/lib/libc.so 5464 ;; 5465 siemens) 5466 lt_cv_deplibs_check_method=pass_all 5467 ;; 5468 pc) 5469 lt_cv_deplibs_check_method=pass_all 5470 ;; 5471 esac 5472 ;; 5473 5474tpf*) 5475 lt_cv_deplibs_check_method=pass_all 5476 ;; 5477esac 5478 5479fi 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5481$as_echo "$lt_cv_deplibs_check_method" >&6; } 5482file_magic_cmd=$lt_cv_file_magic_cmd 5483deplibs_check_method=$lt_cv_deplibs_check_method 5484test -z "$deplibs_check_method" && deplibs_check_method=unknown 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497if test -n "$ac_tool_prefix"; then 5498 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5499set dummy ${ac_tool_prefix}ar; ac_word=$2 5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5501$as_echo_n "checking for $ac_word... " >&6; } 5502if ${ac_cv_prog_AR+:} false; then : 5503 $as_echo_n "(cached) " >&6 5504else 5505 if test -n "$AR"; then 5506 ac_cv_prog_AR="$AR" # Let the user override the test. 5507else 5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5509for as_dir in $PATH 5510do 5511 IFS=$as_save_IFS 5512 test -z "$as_dir" && as_dir=. 5513 for ac_exec_ext in '' $ac_executable_extensions; do 5514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5515 ac_cv_prog_AR="${ac_tool_prefix}ar" 5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5517 break 2 5518 fi 5519done 5520 done 5521IFS=$as_save_IFS 5522 5523fi 5524fi 5525AR=$ac_cv_prog_AR 5526if test -n "$AR"; then 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5528$as_echo "$AR" >&6; } 5529else 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5531$as_echo "no" >&6; } 5532fi 5533 5534 5535fi 5536if test -z "$ac_cv_prog_AR"; then 5537 ac_ct_AR=$AR 5538 # Extract the first word of "ar", so it can be a program name with args. 5539set dummy ar; ac_word=$2 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5541$as_echo_n "checking for $ac_word... " >&6; } 5542if ${ac_cv_prog_ac_ct_AR+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 if test -n "$ac_ct_AR"; then 5546 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5547else 5548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5549for as_dir in $PATH 5550do 5551 IFS=$as_save_IFS 5552 test -z "$as_dir" && as_dir=. 5553 for ac_exec_ext in '' $ac_executable_extensions; do 5554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5555 ac_cv_prog_ac_ct_AR="ar" 5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5557 break 2 5558 fi 5559done 5560 done 5561IFS=$as_save_IFS 5562 5563fi 5564fi 5565ac_ct_AR=$ac_cv_prog_ac_ct_AR 5566if test -n "$ac_ct_AR"; then 5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5568$as_echo "$ac_ct_AR" >&6; } 5569else 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5571$as_echo "no" >&6; } 5572fi 5573 5574 if test "x$ac_ct_AR" = x; then 5575 AR="false" 5576 else 5577 case $cross_compiling:$ac_tool_warned in 5578yes:) 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5581ac_tool_warned=yes ;; 5582esac 5583 AR=$ac_ct_AR 5584 fi 5585else 5586 AR="$ac_cv_prog_AR" 5587fi 5588 5589test -z "$AR" && AR=ar 5590test -z "$AR_FLAGS" && AR_FLAGS=cru 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602if test -n "$ac_tool_prefix"; then 5603 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5604set dummy ${ac_tool_prefix}strip; ac_word=$2 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5606$as_echo_n "checking for $ac_word... " >&6; } 5607if ${ac_cv_prog_STRIP+:} false; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 if test -n "$STRIP"; then 5611 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5612else 5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5614for as_dir in $PATH 5615do 5616 IFS=$as_save_IFS 5617 test -z "$as_dir" && as_dir=. 5618 for ac_exec_ext in '' $ac_executable_extensions; do 5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5620 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5622 break 2 5623 fi 5624done 5625 done 5626IFS=$as_save_IFS 5627 5628fi 5629fi 5630STRIP=$ac_cv_prog_STRIP 5631if test -n "$STRIP"; then 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5633$as_echo "$STRIP" >&6; } 5634else 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5636$as_echo "no" >&6; } 5637fi 5638 5639 5640fi 5641if test -z "$ac_cv_prog_STRIP"; then 5642 ac_ct_STRIP=$STRIP 5643 # Extract the first word of "strip", so it can be a program name with args. 5644set dummy strip; ac_word=$2 5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5646$as_echo_n "checking for $ac_word... " >&6; } 5647if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5648 $as_echo_n "(cached) " >&6 5649else 5650 if test -n "$ac_ct_STRIP"; then 5651 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5652else 5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5654for as_dir in $PATH 5655do 5656 IFS=$as_save_IFS 5657 test -z "$as_dir" && as_dir=. 5658 for ac_exec_ext in '' $ac_executable_extensions; do 5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5660 ac_cv_prog_ac_ct_STRIP="strip" 5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5662 break 2 5663 fi 5664done 5665 done 5666IFS=$as_save_IFS 5667 5668fi 5669fi 5670ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5671if test -n "$ac_ct_STRIP"; then 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5673$as_echo "$ac_ct_STRIP" >&6; } 5674else 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5676$as_echo "no" >&6; } 5677fi 5678 5679 if test "x$ac_ct_STRIP" = x; then 5680 STRIP=":" 5681 else 5682 case $cross_compiling:$ac_tool_warned in 5683yes:) 5684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5686ac_tool_warned=yes ;; 5687esac 5688 STRIP=$ac_ct_STRIP 5689 fi 5690else 5691 STRIP="$ac_cv_prog_STRIP" 5692fi 5693 5694test -z "$STRIP" && STRIP=: 5695 5696 5697 5698 5699 5700 5701if test -n "$ac_tool_prefix"; then 5702 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5703set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5705$as_echo_n "checking for $ac_word... " >&6; } 5706if ${ac_cv_prog_RANLIB+:} false; then : 5707 $as_echo_n "(cached) " >&6 5708else 5709 if test -n "$RANLIB"; then 5710 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5711else 5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5713for as_dir in $PATH 5714do 5715 IFS=$as_save_IFS 5716 test -z "$as_dir" && as_dir=. 5717 for ac_exec_ext in '' $ac_executable_extensions; do 5718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5719 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5721 break 2 5722 fi 5723done 5724 done 5725IFS=$as_save_IFS 5726 5727fi 5728fi 5729RANLIB=$ac_cv_prog_RANLIB 5730if test -n "$RANLIB"; then 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5732$as_echo "$RANLIB" >&6; } 5733else 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5735$as_echo "no" >&6; } 5736fi 5737 5738 5739fi 5740if test -z "$ac_cv_prog_RANLIB"; then 5741 ac_ct_RANLIB=$RANLIB 5742 # Extract the first word of "ranlib", so it can be a program name with args. 5743set dummy ranlib; ac_word=$2 5744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5745$as_echo_n "checking for $ac_word... " >&6; } 5746if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5747 $as_echo_n "(cached) " >&6 5748else 5749 if test -n "$ac_ct_RANLIB"; then 5750 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5751else 5752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5753for as_dir in $PATH 5754do 5755 IFS=$as_save_IFS 5756 test -z "$as_dir" && as_dir=. 5757 for ac_exec_ext in '' $ac_executable_extensions; do 5758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5759 ac_cv_prog_ac_ct_RANLIB="ranlib" 5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5761 break 2 5762 fi 5763done 5764 done 5765IFS=$as_save_IFS 5766 5767fi 5768fi 5769ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5770if test -n "$ac_ct_RANLIB"; then 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5772$as_echo "$ac_ct_RANLIB" >&6; } 5773else 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5775$as_echo "no" >&6; } 5776fi 5777 5778 if test "x$ac_ct_RANLIB" = x; then 5779 RANLIB=":" 5780 else 5781 case $cross_compiling:$ac_tool_warned in 5782yes:) 5783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5785ac_tool_warned=yes ;; 5786esac 5787 RANLIB=$ac_ct_RANLIB 5788 fi 5789else 5790 RANLIB="$ac_cv_prog_RANLIB" 5791fi 5792 5793test -z "$RANLIB" && RANLIB=: 5794 5795 5796 5797 5798 5799 5800# Determine commands to create old-style static archives. 5801old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5802old_postinstall_cmds='chmod 644 $oldlib' 5803old_postuninstall_cmds= 5804 5805if test -n "$RANLIB"; then 5806 case $host_os in 5807 openbsd*) 5808 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5809 ;; 5810 *) 5811 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5812 ;; 5813 esac 5814 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5815fi 5816 5817case $host_os in 5818 darwin*) 5819 lock_old_archive_extraction=yes ;; 5820 *) 5821 lock_old_archive_extraction=no ;; 5822esac 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844for ac_prog in gawk mawk nawk awk 5845do 5846 # Extract the first word of "$ac_prog", so it can be a program name with args. 5847set dummy $ac_prog; ac_word=$2 5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5849$as_echo_n "checking for $ac_word... " >&6; } 5850if ${ac_cv_prog_AWK+:} false; then : 5851 $as_echo_n "(cached) " >&6 5852else 5853 if test -n "$AWK"; then 5854 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5855else 5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5857for as_dir in $PATH 5858do 5859 IFS=$as_save_IFS 5860 test -z "$as_dir" && as_dir=. 5861 for ac_exec_ext in '' $ac_executable_extensions; do 5862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5863 ac_cv_prog_AWK="$ac_prog" 5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5865 break 2 5866 fi 5867done 5868 done 5869IFS=$as_save_IFS 5870 5871fi 5872fi 5873AWK=$ac_cv_prog_AWK 5874if test -n "$AWK"; then 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5876$as_echo "$AWK" >&6; } 5877else 5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5879$as_echo "no" >&6; } 5880fi 5881 5882 5883 test -n "$AWK" && break 5884done 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904# If no C compiler was specified, use CC. 5905LTCC=${LTCC-"$CC"} 5906 5907# If no C compiler flags were specified, use CFLAGS. 5908LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5909 5910# Allow CC to be a program name with arguments. 5911compiler=$CC 5912 5913 5914# Check for command to grab the raw symbol name followed by C symbol from nm. 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5916$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5917if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919else 5920 5921# These are sane defaults that work on at least a few old systems. 5922# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5923 5924# Character class describing NM global symbol codes. 5925symcode='[BCDEGRST]' 5926 5927# Regexp to match symbols that can be accessed directly from C. 5928sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5929 5930# Define system-specific variables. 5931case $host_os in 5932aix*) 5933 symcode='[BCDT]' 5934 ;; 5935cygwin* | mingw* | pw32* | cegcc*) 5936 symcode='[ABCDGISTW]' 5937 ;; 5938hpux*) 5939 if test "$host_cpu" = ia64; then 5940 symcode='[ABCDEGRST]' 5941 fi 5942 ;; 5943irix* | nonstopux*) 5944 symcode='[BCDEGRST]' 5945 ;; 5946osf*) 5947 symcode='[BCDEGQRST]' 5948 ;; 5949solaris*) 5950 symcode='[BDRT]' 5951 ;; 5952sco3.2v5*) 5953 symcode='[DT]' 5954 ;; 5955sysv4.2uw2*) 5956 symcode='[DT]' 5957 ;; 5958sysv5* | sco5v6* | unixware* | OpenUNIX*) 5959 symcode='[ABDT]' 5960 ;; 5961sysv4) 5962 symcode='[DFNSTU]' 5963 ;; 5964esac 5965 5966# If we're using GNU nm, then use its standard symbol codes. 5967case `$NM -V 2>&1` in 5968*GNU* | *'with BFD'*) 5969 symcode='[ABCDGIRSTW]' ;; 5970esac 5971 5972# Transform an extracted symbol line into a proper C declaration. 5973# Some systems (esp. on ia64) link data and code symbols differently, 5974# so use this general approach. 5975lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5976 5977# Transform an extracted symbol line into symbol name and symbol address 5978lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5979lt_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'" 5980 5981# Handle CRLF in mingw tool chain 5982opt_cr= 5983case $build_os in 5984mingw*) 5985 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5986 ;; 5987esac 5988 5989# Try without a prefix underscore, then with it. 5990for ac_symprfx in "" "_"; do 5991 5992 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5993 symxfrm="\\1 $ac_symprfx\\2 \\2" 5994 5995 # Write the raw and C identifiers. 5996 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5997 # Fake it for dumpbin and say T for any non-static function 5998 # and D for any global variable. 5999 # Also find C++ and __fastcall symbols from MSVC++, 6000 # which start with @ or ?. 6001 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6002" {last_section=section; section=\$ 3};"\ 6003" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6004" \$ 0!~/External *\|/{next};"\ 6005" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6006" {if(hide[section]) next};"\ 6007" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6008" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6009" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6010" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6011" ' prfx=^$ac_symprfx" 6012 else 6013 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6014 fi 6015 6016 # Check to see that the pipe works correctly. 6017 pipe_works=no 6018 6019 rm -f conftest* 6020 cat > conftest.$ac_ext <<_LT_EOF 6021#ifdef __cplusplus 6022extern "C" { 6023#endif 6024char nm_test_var; 6025void nm_test_func(void); 6026void nm_test_func(void){} 6027#ifdef __cplusplus 6028} 6029#endif 6030int main(){nm_test_var='a';nm_test_func();return(0);} 6031_LT_EOF 6032 6033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6034 (eval $ac_compile) 2>&5 6035 ac_status=$? 6036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6037 test $ac_status = 0; }; then 6038 # Now try to grab the symbols. 6039 nlist=conftest.nm 6040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6041 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6042 ac_status=$? 6043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6044 test $ac_status = 0; } && test -s "$nlist"; then 6045 # Try sorting and uniquifying the output. 6046 if sort "$nlist" | uniq > "$nlist"T; then 6047 mv -f "$nlist"T "$nlist" 6048 else 6049 rm -f "$nlist"T 6050 fi 6051 6052 # Make sure that we snagged all the symbols we need. 6053 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6054 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6055 cat <<_LT_EOF > conftest.$ac_ext 6056#ifdef __cplusplus 6057extern "C" { 6058#endif 6059 6060_LT_EOF 6061 # Now generate the symbol file. 6062 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6063 6064 cat <<_LT_EOF >> conftest.$ac_ext 6065 6066/* The mapping between symbol names and symbols. */ 6067const struct { 6068 const char *name; 6069 void *address; 6070} 6071lt__PROGRAM__LTX_preloaded_symbols[] = 6072{ 6073 { "@PROGRAM@", (void *) 0 }, 6074_LT_EOF 6075 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6076 cat <<\_LT_EOF >> conftest.$ac_ext 6077 {0, (void *) 0} 6078}; 6079 6080/* This works around a problem in FreeBSD linker */ 6081#ifdef FREEBSD_WORKAROUND 6082static const void *lt_preloaded_setup() { 6083 return lt__PROGRAM__LTX_preloaded_symbols; 6084} 6085#endif 6086 6087#ifdef __cplusplus 6088} 6089#endif 6090_LT_EOF 6091 # Now try linking the two files. 6092 mv conftest.$ac_objext conftstm.$ac_objext 6093 lt_save_LIBS="$LIBS" 6094 lt_save_CFLAGS="$CFLAGS" 6095 LIBS="conftstm.$ac_objext" 6096 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6098 (eval $ac_link) 2>&5 6099 ac_status=$? 6100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6101 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6102 pipe_works=yes 6103 fi 6104 LIBS="$lt_save_LIBS" 6105 CFLAGS="$lt_save_CFLAGS" 6106 else 6107 echo "cannot find nm_test_func in $nlist" >&5 6108 fi 6109 else 6110 echo "cannot find nm_test_var in $nlist" >&5 6111 fi 6112 else 6113 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6114 fi 6115 else 6116 echo "$progname: failed program was:" >&5 6117 cat conftest.$ac_ext >&5 6118 fi 6119 rm -rf conftest* conftst* 6120 6121 # Do not use the global_symbol_pipe unless it works. 6122 if test "$pipe_works" = yes; then 6123 break 6124 else 6125 lt_cv_sys_global_symbol_pipe= 6126 fi 6127done 6128 6129fi 6130 6131if test -z "$lt_cv_sys_global_symbol_pipe"; then 6132 lt_cv_sys_global_symbol_to_cdecl= 6133fi 6134if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6136$as_echo "failed" >&6; } 6137else 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6139$as_echo "ok" >&6; } 6140fi 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163# Check whether --enable-libtool-lock was given. 6164if test "${enable_libtool_lock+set}" = set; then : 6165 enableval=$enable_libtool_lock; 6166fi 6167 6168test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6169 6170# Some flags need to be propagated to the compiler or linker for good 6171# libtool support. 6172case $host in 6173ia64-*-hpux*) 6174 # Find out which ABI we are using. 6175 echo 'int i;' > conftest.$ac_ext 6176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6177 (eval $ac_compile) 2>&5 6178 ac_status=$? 6179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6180 test $ac_status = 0; }; then 6181 case `/usr/bin/file conftest.$ac_objext` in 6182 *ELF-32*) 6183 HPUX_IA64_MODE="32" 6184 ;; 6185 *ELF-64*) 6186 HPUX_IA64_MODE="64" 6187 ;; 6188 esac 6189 fi 6190 rm -rf conftest* 6191 ;; 6192*-*-irix6*) 6193 # Find out which ABI we are using. 6194 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6196 (eval $ac_compile) 2>&5 6197 ac_status=$? 6198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6199 test $ac_status = 0; }; then 6200 if test "$lt_cv_prog_gnu_ld" = yes; then 6201 case `/usr/bin/file conftest.$ac_objext` in 6202 *32-bit*) 6203 LD="${LD-ld} -melf32bsmip" 6204 ;; 6205 *N32*) 6206 LD="${LD-ld} -melf32bmipn32" 6207 ;; 6208 *64-bit*) 6209 LD="${LD-ld} -melf64bmip" 6210 ;; 6211 esac 6212 else 6213 case `/usr/bin/file conftest.$ac_objext` in 6214 *32-bit*) 6215 LD="${LD-ld} -32" 6216 ;; 6217 *N32*) 6218 LD="${LD-ld} -n32" 6219 ;; 6220 *64-bit*) 6221 LD="${LD-ld} -64" 6222 ;; 6223 esac 6224 fi 6225 fi 6226 rm -rf conftest* 6227 ;; 6228 6229x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6230s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6231 # Find out which ABI we are using. 6232 echo 'int i;' > conftest.$ac_ext 6233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6234 (eval $ac_compile) 2>&5 6235 ac_status=$? 6236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6237 test $ac_status = 0; }; then 6238 case `/usr/bin/file conftest.o` in 6239 *32-bit*) 6240 case $host in 6241 x86_64-*kfreebsd*-gnu) 6242 LD="${LD-ld} -m elf_i386_fbsd" 6243 ;; 6244 x86_64-*linux*) 6245 case `/usr/bin/file conftest.o` in 6246 *x86-64*) 6247 LD="${LD-ld} -m elf32_x86_64" 6248 ;; 6249 *) 6250 LD="${LD-ld} -m elf_i386" 6251 ;; 6252 esac 6253 ;; 6254 powerpc64le-*linux*) 6255 LD="${LD-ld} -m elf32lppclinux" 6256 ;; 6257 powerpc64-*linux*) 6258 LD="${LD-ld} -m elf32ppclinux" 6259 ;; 6260 s390x-*linux*) 6261 LD="${LD-ld} -m elf_s390" 6262 ;; 6263 sparc64-*linux*) 6264 LD="${LD-ld} -m elf32_sparc" 6265 ;; 6266 esac 6267 ;; 6268 *64-bit*) 6269 case $host in 6270 x86_64-*kfreebsd*-gnu) 6271 LD="${LD-ld} -m elf_x86_64_fbsd" 6272 ;; 6273 x86_64-*linux*) 6274 LD="${LD-ld} -m elf_x86_64" 6275 ;; 6276 powerpcle-*linux*) 6277 LD="${LD-ld} -m elf64lppc" 6278 ;; 6279 powerpc-*linux*) 6280 LD="${LD-ld} -m elf64ppc" 6281 ;; 6282 s390*-*linux*|s390*-*tpf*) 6283 LD="${LD-ld} -m elf64_s390" 6284 ;; 6285 sparc*-*linux*) 6286 LD="${LD-ld} -m elf64_sparc" 6287 ;; 6288 esac 6289 ;; 6290 esac 6291 fi 6292 rm -rf conftest* 6293 ;; 6294 6295*-*-sco3.2v5*) 6296 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6297 SAVE_CFLAGS="$CFLAGS" 6298 CFLAGS="$CFLAGS -belf" 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6300$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6301if ${lt_cv_cc_needs_belf+:} false; then : 6302 $as_echo_n "(cached) " >&6 6303else 6304 ac_ext=c 6305ac_cpp='$CPP $CPPFLAGS' 6306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6308ac_compiler_gnu=$ac_cv_c_compiler_gnu 6309 6310 if test x$gcc_no_link = xyes; then 6311 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6312fi 6313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6314/* end confdefs.h. */ 6315 6316int 6317main () 6318{ 6319 6320 ; 6321 return 0; 6322} 6323_ACEOF 6324if ac_fn_c_try_link "$LINENO"; then : 6325 lt_cv_cc_needs_belf=yes 6326else 6327 lt_cv_cc_needs_belf=no 6328fi 6329rm -f core conftest.err conftest.$ac_objext \ 6330 conftest$ac_exeext conftest.$ac_ext 6331 ac_ext=c 6332ac_cpp='$CPP $CPPFLAGS' 6333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6335ac_compiler_gnu=$ac_cv_c_compiler_gnu 6336 6337fi 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6339$as_echo "$lt_cv_cc_needs_belf" >&6; } 6340 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6341 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6342 CFLAGS="$SAVE_CFLAGS" 6343 fi 6344 ;; 6345sparc*-*solaris*) 6346 # Find out which ABI we are using. 6347 echo 'int i;' > conftest.$ac_ext 6348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6349 (eval $ac_compile) 2>&5 6350 ac_status=$? 6351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6352 test $ac_status = 0; }; then 6353 case `/usr/bin/file conftest.o` in 6354 *64-bit*) 6355 case $lt_cv_prog_gnu_ld in 6356 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6357 *) 6358 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6359 LD="${LD-ld} -64" 6360 fi 6361 ;; 6362 esac 6363 ;; 6364 esac 6365 fi 6366 rm -rf conftest* 6367 ;; 6368esac 6369 6370need_locks="$enable_libtool_lock" 6371 6372 6373 case $host_os in 6374 rhapsody* | darwin*) 6375 if test -n "$ac_tool_prefix"; then 6376 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6377set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6379$as_echo_n "checking for $ac_word... " >&6; } 6380if ${ac_cv_prog_DSYMUTIL+:} false; then : 6381 $as_echo_n "(cached) " >&6 6382else 6383 if test -n "$DSYMUTIL"; then 6384 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6385else 6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6387for as_dir in $PATH 6388do 6389 IFS=$as_save_IFS 6390 test -z "$as_dir" && as_dir=. 6391 for ac_exec_ext in '' $ac_executable_extensions; do 6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6393 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6395 break 2 6396 fi 6397done 6398 done 6399IFS=$as_save_IFS 6400 6401fi 6402fi 6403DSYMUTIL=$ac_cv_prog_DSYMUTIL 6404if test -n "$DSYMUTIL"; then 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6406$as_echo "$DSYMUTIL" >&6; } 6407else 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6409$as_echo "no" >&6; } 6410fi 6411 6412 6413fi 6414if test -z "$ac_cv_prog_DSYMUTIL"; then 6415 ac_ct_DSYMUTIL=$DSYMUTIL 6416 # Extract the first word of "dsymutil", so it can be a program name with args. 6417set dummy dsymutil; ac_word=$2 6418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6419$as_echo_n "checking for $ac_word... " >&6; } 6420if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6421 $as_echo_n "(cached) " >&6 6422else 6423 if test -n "$ac_ct_DSYMUTIL"; then 6424 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6425else 6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6427for as_dir in $PATH 6428do 6429 IFS=$as_save_IFS 6430 test -z "$as_dir" && as_dir=. 6431 for ac_exec_ext in '' $ac_executable_extensions; do 6432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6433 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6435 break 2 6436 fi 6437done 6438 done 6439IFS=$as_save_IFS 6440 6441fi 6442fi 6443ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6444if test -n "$ac_ct_DSYMUTIL"; then 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6446$as_echo "$ac_ct_DSYMUTIL" >&6; } 6447else 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6449$as_echo "no" >&6; } 6450fi 6451 6452 if test "x$ac_ct_DSYMUTIL" = x; then 6453 DSYMUTIL=":" 6454 else 6455 case $cross_compiling:$ac_tool_warned in 6456yes:) 6457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6459ac_tool_warned=yes ;; 6460esac 6461 DSYMUTIL=$ac_ct_DSYMUTIL 6462 fi 6463else 6464 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6465fi 6466 6467 if test -n "$ac_tool_prefix"; then 6468 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6469set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6471$as_echo_n "checking for $ac_word... " >&6; } 6472if ${ac_cv_prog_NMEDIT+:} false; then : 6473 $as_echo_n "(cached) " >&6 6474else 6475 if test -n "$NMEDIT"; then 6476 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6477else 6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6479for as_dir in $PATH 6480do 6481 IFS=$as_save_IFS 6482 test -z "$as_dir" && as_dir=. 6483 for ac_exec_ext in '' $ac_executable_extensions; do 6484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6485 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6487 break 2 6488 fi 6489done 6490 done 6491IFS=$as_save_IFS 6492 6493fi 6494fi 6495NMEDIT=$ac_cv_prog_NMEDIT 6496if test -n "$NMEDIT"; then 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6498$as_echo "$NMEDIT" >&6; } 6499else 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6501$as_echo "no" >&6; } 6502fi 6503 6504 6505fi 6506if test -z "$ac_cv_prog_NMEDIT"; then 6507 ac_ct_NMEDIT=$NMEDIT 6508 # Extract the first word of "nmedit", so it can be a program name with args. 6509set dummy nmedit; ac_word=$2 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6511$as_echo_n "checking for $ac_word... " >&6; } 6512if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6513 $as_echo_n "(cached) " >&6 6514else 6515 if test -n "$ac_ct_NMEDIT"; then 6516 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6517else 6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6519for as_dir in $PATH 6520do 6521 IFS=$as_save_IFS 6522 test -z "$as_dir" && as_dir=. 6523 for ac_exec_ext in '' $ac_executable_extensions; do 6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6525 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6527 break 2 6528 fi 6529done 6530 done 6531IFS=$as_save_IFS 6532 6533fi 6534fi 6535ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6536if test -n "$ac_ct_NMEDIT"; then 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6538$as_echo "$ac_ct_NMEDIT" >&6; } 6539else 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6541$as_echo "no" >&6; } 6542fi 6543 6544 if test "x$ac_ct_NMEDIT" = x; then 6545 NMEDIT=":" 6546 else 6547 case $cross_compiling:$ac_tool_warned in 6548yes:) 6549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6551ac_tool_warned=yes ;; 6552esac 6553 NMEDIT=$ac_ct_NMEDIT 6554 fi 6555else 6556 NMEDIT="$ac_cv_prog_NMEDIT" 6557fi 6558 6559 if test -n "$ac_tool_prefix"; then 6560 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6561set dummy ${ac_tool_prefix}lipo; ac_word=$2 6562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6563$as_echo_n "checking for $ac_word... " >&6; } 6564if ${ac_cv_prog_LIPO+:} false; then : 6565 $as_echo_n "(cached) " >&6 6566else 6567 if test -n "$LIPO"; then 6568 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6569else 6570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6571for as_dir in $PATH 6572do 6573 IFS=$as_save_IFS 6574 test -z "$as_dir" && as_dir=. 6575 for ac_exec_ext in '' $ac_executable_extensions; do 6576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6577 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6579 break 2 6580 fi 6581done 6582 done 6583IFS=$as_save_IFS 6584 6585fi 6586fi 6587LIPO=$ac_cv_prog_LIPO 6588if test -n "$LIPO"; then 6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6590$as_echo "$LIPO" >&6; } 6591else 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6593$as_echo "no" >&6; } 6594fi 6595 6596 6597fi 6598if test -z "$ac_cv_prog_LIPO"; then 6599 ac_ct_LIPO=$LIPO 6600 # Extract the first word of "lipo", so it can be a program name with args. 6601set dummy lipo; ac_word=$2 6602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6603$as_echo_n "checking for $ac_word... " >&6; } 6604if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6605 $as_echo_n "(cached) " >&6 6606else 6607 if test -n "$ac_ct_LIPO"; then 6608 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6609else 6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6611for as_dir in $PATH 6612do 6613 IFS=$as_save_IFS 6614 test -z "$as_dir" && as_dir=. 6615 for ac_exec_ext in '' $ac_executable_extensions; do 6616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6617 ac_cv_prog_ac_ct_LIPO="lipo" 6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6619 break 2 6620 fi 6621done 6622 done 6623IFS=$as_save_IFS 6624 6625fi 6626fi 6627ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6628if test -n "$ac_ct_LIPO"; then 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6630$as_echo "$ac_ct_LIPO" >&6; } 6631else 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6633$as_echo "no" >&6; } 6634fi 6635 6636 if test "x$ac_ct_LIPO" = x; then 6637 LIPO=":" 6638 else 6639 case $cross_compiling:$ac_tool_warned in 6640yes:) 6641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6643ac_tool_warned=yes ;; 6644esac 6645 LIPO=$ac_ct_LIPO 6646 fi 6647else 6648 LIPO="$ac_cv_prog_LIPO" 6649fi 6650 6651 if test -n "$ac_tool_prefix"; then 6652 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6653set dummy ${ac_tool_prefix}otool; ac_word=$2 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6655$as_echo_n "checking for $ac_word... " >&6; } 6656if ${ac_cv_prog_OTOOL+:} false; then : 6657 $as_echo_n "(cached) " >&6 6658else 6659 if test -n "$OTOOL"; then 6660 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6661else 6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6663for as_dir in $PATH 6664do 6665 IFS=$as_save_IFS 6666 test -z "$as_dir" && as_dir=. 6667 for ac_exec_ext in '' $ac_executable_extensions; do 6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6669 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6671 break 2 6672 fi 6673done 6674 done 6675IFS=$as_save_IFS 6676 6677fi 6678fi 6679OTOOL=$ac_cv_prog_OTOOL 6680if test -n "$OTOOL"; then 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6682$as_echo "$OTOOL" >&6; } 6683else 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6685$as_echo "no" >&6; } 6686fi 6687 6688 6689fi 6690if test -z "$ac_cv_prog_OTOOL"; then 6691 ac_ct_OTOOL=$OTOOL 6692 # Extract the first word of "otool", so it can be a program name with args. 6693set dummy otool; ac_word=$2 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6695$as_echo_n "checking for $ac_word... " >&6; } 6696if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6697 $as_echo_n "(cached) " >&6 6698else 6699 if test -n "$ac_ct_OTOOL"; then 6700 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6701else 6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6703for as_dir in $PATH 6704do 6705 IFS=$as_save_IFS 6706 test -z "$as_dir" && as_dir=. 6707 for ac_exec_ext in '' $ac_executable_extensions; do 6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6709 ac_cv_prog_ac_ct_OTOOL="otool" 6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6711 break 2 6712 fi 6713done 6714 done 6715IFS=$as_save_IFS 6716 6717fi 6718fi 6719ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6720if test -n "$ac_ct_OTOOL"; then 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6722$as_echo "$ac_ct_OTOOL" >&6; } 6723else 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6725$as_echo "no" >&6; } 6726fi 6727 6728 if test "x$ac_ct_OTOOL" = x; then 6729 OTOOL=":" 6730 else 6731 case $cross_compiling:$ac_tool_warned in 6732yes:) 6733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6735ac_tool_warned=yes ;; 6736esac 6737 OTOOL=$ac_ct_OTOOL 6738 fi 6739else 6740 OTOOL="$ac_cv_prog_OTOOL" 6741fi 6742 6743 if test -n "$ac_tool_prefix"; then 6744 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6745set dummy ${ac_tool_prefix}otool64; ac_word=$2 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6747$as_echo_n "checking for $ac_word... " >&6; } 6748if ${ac_cv_prog_OTOOL64+:} false; then : 6749 $as_echo_n "(cached) " >&6 6750else 6751 if test -n "$OTOOL64"; then 6752 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6753else 6754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6755for as_dir in $PATH 6756do 6757 IFS=$as_save_IFS 6758 test -z "$as_dir" && as_dir=. 6759 for ac_exec_ext in '' $ac_executable_extensions; do 6760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6761 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6763 break 2 6764 fi 6765done 6766 done 6767IFS=$as_save_IFS 6768 6769fi 6770fi 6771OTOOL64=$ac_cv_prog_OTOOL64 6772if test -n "$OTOOL64"; then 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6774$as_echo "$OTOOL64" >&6; } 6775else 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6777$as_echo "no" >&6; } 6778fi 6779 6780 6781fi 6782if test -z "$ac_cv_prog_OTOOL64"; then 6783 ac_ct_OTOOL64=$OTOOL64 6784 # Extract the first word of "otool64", so it can be a program name with args. 6785set dummy otool64; ac_word=$2 6786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6787$as_echo_n "checking for $ac_word... " >&6; } 6788if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6789 $as_echo_n "(cached) " >&6 6790else 6791 if test -n "$ac_ct_OTOOL64"; then 6792 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6793else 6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6795for as_dir in $PATH 6796do 6797 IFS=$as_save_IFS 6798 test -z "$as_dir" && as_dir=. 6799 for ac_exec_ext in '' $ac_executable_extensions; do 6800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6801 ac_cv_prog_ac_ct_OTOOL64="otool64" 6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6803 break 2 6804 fi 6805done 6806 done 6807IFS=$as_save_IFS 6808 6809fi 6810fi 6811ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6812if test -n "$ac_ct_OTOOL64"; then 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6814$as_echo "$ac_ct_OTOOL64" >&6; } 6815else 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6817$as_echo "no" >&6; } 6818fi 6819 6820 if test "x$ac_ct_OTOOL64" = x; then 6821 OTOOL64=":" 6822 else 6823 case $cross_compiling:$ac_tool_warned in 6824yes:) 6825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6827ac_tool_warned=yes ;; 6828esac 6829 OTOOL64=$ac_ct_OTOOL64 6830 fi 6831else 6832 OTOOL64="$ac_cv_prog_OTOOL64" 6833fi 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6862$as_echo_n "checking for -single_module linker flag... " >&6; } 6863if ${lt_cv_apple_cc_single_mod+:} false; then : 6864 $as_echo_n "(cached) " >&6 6865else 6866 lt_cv_apple_cc_single_mod=no 6867 if test -z "${LT_MULTI_MODULE}"; then 6868 # By default we will add the -single_module flag. You can override 6869 # by either setting the environment variable LT_MULTI_MODULE 6870 # non-empty at configure time, or by adding -multi_module to the 6871 # link flags. 6872 rm -rf libconftest.dylib* 6873 echo "int foo(void){return 1;}" > conftest.c 6874 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6875-dynamiclib -Wl,-single_module conftest.c" >&5 6876 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6877 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6878 _lt_result=$? 6879 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6880 lt_cv_apple_cc_single_mod=yes 6881 else 6882 cat conftest.err >&5 6883 fi 6884 rm -rf libconftest.dylib* 6885 rm -f conftest.* 6886 fi 6887fi 6888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6889$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6891$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6892if ${lt_cv_ld_exported_symbols_list+:} false; then : 6893 $as_echo_n "(cached) " >&6 6894else 6895 lt_cv_ld_exported_symbols_list=no 6896 save_LDFLAGS=$LDFLAGS 6897 echo "_main" > conftest.sym 6898 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6899 if test x$gcc_no_link = xyes; then 6900 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6901fi 6902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6903/* end confdefs.h. */ 6904 6905int 6906main () 6907{ 6908 6909 ; 6910 return 0; 6911} 6912_ACEOF 6913if ac_fn_c_try_link "$LINENO"; then : 6914 lt_cv_ld_exported_symbols_list=yes 6915else 6916 lt_cv_ld_exported_symbols_list=no 6917fi 6918rm -f core conftest.err conftest.$ac_objext \ 6919 conftest$ac_exeext conftest.$ac_ext 6920 LDFLAGS="$save_LDFLAGS" 6921 6922fi 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6924$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6926$as_echo_n "checking for -force_load linker flag... " >&6; } 6927if ${lt_cv_ld_force_load+:} false; then : 6928 $as_echo_n "(cached) " >&6 6929else 6930 lt_cv_ld_force_load=no 6931 cat > conftest.c << _LT_EOF 6932int forced_loaded() { return 2;} 6933_LT_EOF 6934 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6935 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6936 echo "$AR cru libconftest.a conftest.o" >&5 6937 $AR cru libconftest.a conftest.o 2>&5 6938 cat > conftest.c << _LT_EOF 6939int main() { return 0;} 6940_LT_EOF 6941 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6942 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6943 _lt_result=$? 6944 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 6945 lt_cv_ld_force_load=yes 6946 else 6947 cat conftest.err >&5 6948 fi 6949 rm -f conftest.err libconftest.a conftest conftest.c 6950 rm -rf conftest.dSYM 6951 6952fi 6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6954$as_echo "$lt_cv_ld_force_load" >&6; } 6955 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 6956 # build without first building modern cctools / linker. 6957 case $host_cpu-$host_os in 6958 *-rhapsody* | *-darwin1.[012]) 6959 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6960 *-darwin1.*) 6961 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6962 *-darwin*) 6963 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 6964 # deployment target is forced to an earlier version. 6965 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 6966 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 6967 ;; 6968 10.[012][,.]*) 6969 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6970 ;; 6971 *) 6972 ;; 6973 esac 6974 ;; 6975 esac 6976 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6977 _lt_dar_single_mod='$single_module' 6978 fi 6979 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6980 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6981 else 6982 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6983 fi 6984 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6985 _lt_dsymutil='~$DSYMUTIL $lib || :' 6986 else 6987 _lt_dsymutil= 6988 fi 6989 ;; 6990 esac 6991 6992ac_ext=c 6993ac_cpp='$CPP $CPPFLAGS' 6994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6996ac_compiler_gnu=$ac_cv_c_compiler_gnu 6997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6998$as_echo_n "checking how to run the C preprocessor... " >&6; } 6999# On Suns, sometimes $CPP names a directory. 7000if test -n "$CPP" && test -d "$CPP"; then 7001 CPP= 7002fi 7003if test -z "$CPP"; then 7004 if ${ac_cv_prog_CPP+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 # Double quotes because CPP needs to be expanded 7008 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7009 do 7010 ac_preproc_ok=false 7011for ac_c_preproc_warn_flag in '' yes 7012do 7013 # Use a header file that comes with gcc, so configuring glibc 7014 # with a fresh cross-compiler works. 7015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7016 # <limits.h> exists even on freestanding compilers. 7017 # On the NeXT, cc -E runs the code through the compiler's parser, 7018 # not just through cpp. "Syntax error" is here to catch this case. 7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7020/* end confdefs.h. */ 7021#ifdef __STDC__ 7022# include <limits.h> 7023#else 7024# include <assert.h> 7025#endif 7026 Syntax error 7027_ACEOF 7028if ac_fn_c_try_cpp "$LINENO"; then : 7029 7030else 7031 # Broken: fails on valid input. 7032continue 7033fi 7034rm -f conftest.err conftest.i conftest.$ac_ext 7035 7036 # OK, works on sane cases. Now check whether nonexistent headers 7037 # can be detected and how. 7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7039/* end confdefs.h. */ 7040#include <ac_nonexistent.h> 7041_ACEOF 7042if ac_fn_c_try_cpp "$LINENO"; then : 7043 # Broken: success on invalid input. 7044continue 7045else 7046 # Passes both tests. 7047ac_preproc_ok=: 7048break 7049fi 7050rm -f conftest.err conftest.i conftest.$ac_ext 7051 7052done 7053# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7054rm -f conftest.i conftest.err conftest.$ac_ext 7055if $ac_preproc_ok; then : 7056 break 7057fi 7058 7059 done 7060 ac_cv_prog_CPP=$CPP 7061 7062fi 7063 CPP=$ac_cv_prog_CPP 7064else 7065 ac_cv_prog_CPP=$CPP 7066fi 7067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7068$as_echo "$CPP" >&6; } 7069ac_preproc_ok=false 7070for ac_c_preproc_warn_flag in '' yes 7071do 7072 # Use a header file that comes with gcc, so configuring glibc 7073 # with a fresh cross-compiler works. 7074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7075 # <limits.h> exists even on freestanding compilers. 7076 # On the NeXT, cc -E runs the code through the compiler's parser, 7077 # not just through cpp. "Syntax error" is here to catch this case. 7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7079/* end confdefs.h. */ 7080#ifdef __STDC__ 7081# include <limits.h> 7082#else 7083# include <assert.h> 7084#endif 7085 Syntax error 7086_ACEOF 7087if ac_fn_c_try_cpp "$LINENO"; then : 7088 7089else 7090 # Broken: fails on valid input. 7091continue 7092fi 7093rm -f conftest.err conftest.i conftest.$ac_ext 7094 7095 # OK, works on sane cases. Now check whether nonexistent headers 7096 # can be detected and how. 7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7098/* end confdefs.h. */ 7099#include <ac_nonexistent.h> 7100_ACEOF 7101if ac_fn_c_try_cpp "$LINENO"; then : 7102 # Broken: success on invalid input. 7103continue 7104else 7105 # Passes both tests. 7106ac_preproc_ok=: 7107break 7108fi 7109rm -f conftest.err conftest.i conftest.$ac_ext 7110 7111done 7112# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7113rm -f conftest.i conftest.err conftest.$ac_ext 7114if $ac_preproc_ok; then : 7115 7116else 7117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7119as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7120See \`config.log' for more details" "$LINENO" 5; } 7121fi 7122 7123ac_ext=c 7124ac_cpp='$CPP $CPPFLAGS' 7125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7127ac_compiler_gnu=$ac_cv_c_compiler_gnu 7128 7129 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7131$as_echo_n "checking for ANSI C header files... " >&6; } 7132if ${ac_cv_header_stdc+:} false; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7136/* end confdefs.h. */ 7137#include <stdlib.h> 7138#include <stdarg.h> 7139#include <string.h> 7140#include <float.h> 7141 7142int 7143main () 7144{ 7145 7146 ; 7147 return 0; 7148} 7149_ACEOF 7150if ac_fn_c_try_compile "$LINENO"; then : 7151 ac_cv_header_stdc=yes 7152else 7153 ac_cv_header_stdc=no 7154fi 7155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7156 7157if test $ac_cv_header_stdc = yes; then 7158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7160/* end confdefs.h. */ 7161#include <string.h> 7162 7163_ACEOF 7164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7165 $EGREP "memchr" >/dev/null 2>&1; then : 7166 7167else 7168 ac_cv_header_stdc=no 7169fi 7170rm -f conftest* 7171 7172fi 7173 7174if test $ac_cv_header_stdc = yes; then 7175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7177/* end confdefs.h. */ 7178#include <stdlib.h> 7179 7180_ACEOF 7181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7182 $EGREP "free" >/dev/null 2>&1; then : 7183 7184else 7185 ac_cv_header_stdc=no 7186fi 7187rm -f conftest* 7188 7189fi 7190 7191if test $ac_cv_header_stdc = yes; then 7192 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7193 if test "$cross_compiling" = yes; then : 7194 : 7195else 7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7197/* end confdefs.h. */ 7198#include <ctype.h> 7199#include <stdlib.h> 7200#if ((' ' & 0x0FF) == 0x020) 7201# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7202# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7203#else 7204# define ISLOWER(c) \ 7205 (('a' <= (c) && (c) <= 'i') \ 7206 || ('j' <= (c) && (c) <= 'r') \ 7207 || ('s' <= (c) && (c) <= 'z')) 7208# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7209#endif 7210 7211#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7212int 7213main () 7214{ 7215 int i; 7216 for (i = 0; i < 256; i++) 7217 if (XOR (islower (i), ISLOWER (i)) 7218 || toupper (i) != TOUPPER (i)) 7219 return 2; 7220 return 0; 7221} 7222_ACEOF 7223if ac_fn_c_try_run "$LINENO"; then : 7224 7225else 7226 ac_cv_header_stdc=no 7227fi 7228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7229 conftest.$ac_objext conftest.beam conftest.$ac_ext 7230fi 7231 7232fi 7233fi 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7235$as_echo "$ac_cv_header_stdc" >&6; } 7236if test $ac_cv_header_stdc = yes; then 7237 7238$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7239 7240fi 7241 7242# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7243for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7244 inttypes.h stdint.h unistd.h 7245do : 7246 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7247ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7248" 7249if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7250 cat >>confdefs.h <<_ACEOF 7251#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7252_ACEOF 7253 7254fi 7255 7256done 7257 7258 7259for ac_header in dlfcn.h 7260do : 7261 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7262" 7263if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7264 cat >>confdefs.h <<_ACEOF 7265#define HAVE_DLFCN_H 1 7266_ACEOF 7267 7268fi 7269 7270done 7271 7272 7273 7274 7275 7276# Set options 7277 7278 7279 7280 enable_dlopen=no 7281 7282 7283 7284 # Check whether --enable-shared was given. 7285if test "${enable_shared+set}" = set; then : 7286 enableval=$enable_shared; p=${PACKAGE-default} 7287 case $enableval in 7288 yes) enable_shared=yes ;; 7289 no) enable_shared=no ;; 7290 *) 7291 enable_shared=no 7292 # Look at the argument we got. We use all the common list separators. 7293 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7294 for pkg in $enableval; do 7295 IFS="$lt_save_ifs" 7296 if test "X$pkg" = "X$p"; then 7297 enable_shared=yes 7298 fi 7299 done 7300 IFS="$lt_save_ifs" 7301 ;; 7302 esac 7303else 7304 enable_shared=yes 7305fi 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 # Check whether --enable-static was given. 7316if test "${enable_static+set}" = set; then : 7317 enableval=$enable_static; p=${PACKAGE-default} 7318 case $enableval in 7319 yes) enable_static=yes ;; 7320 no) enable_static=no ;; 7321 *) 7322 enable_static=no 7323 # Look at the argument we got. We use all the common list separators. 7324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7325 for pkg in $enableval; do 7326 IFS="$lt_save_ifs" 7327 if test "X$pkg" = "X$p"; then 7328 enable_static=yes 7329 fi 7330 done 7331 IFS="$lt_save_ifs" 7332 ;; 7333 esac 7334else 7335 enable_static=yes 7336fi 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347# Check whether --with-pic was given. 7348if test "${with_pic+set}" = set; then : 7349 withval=$with_pic; pic_mode="$withval" 7350else 7351 pic_mode=default 7352fi 7353 7354 7355test -z "$pic_mode" && pic_mode=default 7356 7357 7358 7359 7360 7361 7362 7363 # Check whether --enable-fast-install was given. 7364if test "${enable_fast_install+set}" = set; then : 7365 enableval=$enable_fast_install; p=${PACKAGE-default} 7366 case $enableval in 7367 yes) enable_fast_install=yes ;; 7368 no) enable_fast_install=no ;; 7369 *) 7370 enable_fast_install=no 7371 # Look at the argument we got. We use all the common list separators. 7372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7373 for pkg in $enableval; do 7374 IFS="$lt_save_ifs" 7375 if test "X$pkg" = "X$p"; then 7376 enable_fast_install=yes 7377 fi 7378 done 7379 IFS="$lt_save_ifs" 7380 ;; 7381 esac 7382else 7383 enable_fast_install=yes 7384fi 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396# This can be used to rebuild libtool when needed 7397LIBTOOL_DEPS="$ltmain" 7398 7399# Always use our own libtool. 7400LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427test -z "$LN_S" && LN_S="ln -s" 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442if test -n "${ZSH_VERSION+set}" ; then 7443 setopt NO_GLOB_SUBST 7444fi 7445 7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7447$as_echo_n "checking for objdir... " >&6; } 7448if ${lt_cv_objdir+:} false; then : 7449 $as_echo_n "(cached) " >&6 7450else 7451 rm -f .libs 2>/dev/null 7452mkdir .libs 2>/dev/null 7453if test -d .libs; then 7454 lt_cv_objdir=.libs 7455else 7456 # MS-DOS does not allow filenames that begin with a dot. 7457 lt_cv_objdir=_libs 7458fi 7459rmdir .libs 2>/dev/null 7460fi 7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7462$as_echo "$lt_cv_objdir" >&6; } 7463objdir=$lt_cv_objdir 7464 7465 7466 7467 7468 7469cat >>confdefs.h <<_ACEOF 7470#define LT_OBJDIR "$lt_cv_objdir/" 7471_ACEOF 7472 7473 7474 7475 7476case $host_os in 7477aix3*) 7478 # AIX sometimes has problems with the GCC collect2 program. For some 7479 # reason, if we set the COLLECT_NAMES environment variable, the problems 7480 # vanish in a puff of smoke. 7481 if test "X${COLLECT_NAMES+set}" != Xset; then 7482 COLLECT_NAMES= 7483 export COLLECT_NAMES 7484 fi 7485 ;; 7486esac 7487 7488# Global variables: 7489ofile=libtool 7490can_build_shared=yes 7491 7492# All known linkers require a `.a' archive for static linking (except MSVC, 7493# which needs '.lib'). 7494libext=a 7495 7496with_gnu_ld="$lt_cv_prog_gnu_ld" 7497 7498old_CC="$CC" 7499old_CFLAGS="$CFLAGS" 7500 7501# Set sane defaults for various variables 7502test -z "$CC" && CC=cc 7503test -z "$LTCC" && LTCC=$CC 7504test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7505test -z "$LD" && LD=ld 7506test -z "$ac_objext" && ac_objext=o 7507 7508for cc_temp in $compiler""; do 7509 case $cc_temp in 7510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7512 \-*) ;; 7513 *) break;; 7514 esac 7515done 7516cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7517 7518 7519# Only perform the check for file, if the check method requires it 7520test -z "$MAGIC_CMD" && MAGIC_CMD=file 7521case $deplibs_check_method in 7522file_magic*) 7523 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7525$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7526if ${lt_cv_path_MAGIC_CMD+:} false; then : 7527 $as_echo_n "(cached) " >&6 7528else 7529 case $MAGIC_CMD in 7530[\\/*] | ?:[\\/]*) 7531 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7532 ;; 7533*) 7534 lt_save_MAGIC_CMD="$MAGIC_CMD" 7535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7537 for ac_dir in $ac_dummy; do 7538 IFS="$lt_save_ifs" 7539 test -z "$ac_dir" && ac_dir=. 7540 if test -f $ac_dir/${ac_tool_prefix}file; then 7541 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7542 if test -n "$file_magic_test_file"; then 7543 case $deplibs_check_method in 7544 "file_magic "*) 7545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7548 $EGREP "$file_magic_regex" > /dev/null; then 7549 : 7550 else 7551 cat <<_LT_EOF 1>&2 7552 7553*** Warning: the command libtool uses to detect shared libraries, 7554*** $file_magic_cmd, produces output that libtool cannot recognize. 7555*** The result is that libtool may fail to recognize shared libraries 7556*** as such. This will affect the creation of libtool libraries that 7557*** depend on shared libraries, but programs linked with such libtool 7558*** libraries will work regardless of this problem. Nevertheless, you 7559*** may want to report the problem to your system manager and/or to 7560*** bug-libtool@gnu.org 7561 7562_LT_EOF 7563 fi ;; 7564 esac 7565 fi 7566 break 7567 fi 7568 done 7569 IFS="$lt_save_ifs" 7570 MAGIC_CMD="$lt_save_MAGIC_CMD" 7571 ;; 7572esac 7573fi 7574 7575MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7576if test -n "$MAGIC_CMD"; then 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7578$as_echo "$MAGIC_CMD" >&6; } 7579else 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7581$as_echo "no" >&6; } 7582fi 7583 7584 7585 7586 7587 7588if test -z "$lt_cv_path_MAGIC_CMD"; then 7589 if test -n "$ac_tool_prefix"; then 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7591$as_echo_n "checking for file... " >&6; } 7592if ${lt_cv_path_MAGIC_CMD+:} false; then : 7593 $as_echo_n "(cached) " >&6 7594else 7595 case $MAGIC_CMD in 7596[\\/*] | ?:[\\/]*) 7597 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7598 ;; 7599*) 7600 lt_save_MAGIC_CMD="$MAGIC_CMD" 7601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7602 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7603 for ac_dir in $ac_dummy; do 7604 IFS="$lt_save_ifs" 7605 test -z "$ac_dir" && ac_dir=. 7606 if test -f $ac_dir/file; then 7607 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7608 if test -n "$file_magic_test_file"; then 7609 case $deplibs_check_method in 7610 "file_magic "*) 7611 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7612 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7613 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7614 $EGREP "$file_magic_regex" > /dev/null; then 7615 : 7616 else 7617 cat <<_LT_EOF 1>&2 7618 7619*** Warning: the command libtool uses to detect shared libraries, 7620*** $file_magic_cmd, produces output that libtool cannot recognize. 7621*** The result is that libtool may fail to recognize shared libraries 7622*** as such. This will affect the creation of libtool libraries that 7623*** depend on shared libraries, but programs linked with such libtool 7624*** libraries will work regardless of this problem. Nevertheless, you 7625*** may want to report the problem to your system manager and/or to 7626*** bug-libtool@gnu.org 7627 7628_LT_EOF 7629 fi ;; 7630 esac 7631 fi 7632 break 7633 fi 7634 done 7635 IFS="$lt_save_ifs" 7636 MAGIC_CMD="$lt_save_MAGIC_CMD" 7637 ;; 7638esac 7639fi 7640 7641MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7642if test -n "$MAGIC_CMD"; then 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7644$as_echo "$MAGIC_CMD" >&6; } 7645else 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7647$as_echo "no" >&6; } 7648fi 7649 7650 7651 else 7652 MAGIC_CMD=: 7653 fi 7654fi 7655 7656 fi 7657 ;; 7658esac 7659 7660# Use C for the default configuration in the libtool script 7661 7662lt_save_CC="$CC" 7663ac_ext=c 7664ac_cpp='$CPP $CPPFLAGS' 7665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7667ac_compiler_gnu=$ac_cv_c_compiler_gnu 7668 7669 7670# Source file extension for C test sources. 7671ac_ext=c 7672 7673# Object file extension for compiled C test sources. 7674objext=o 7675objext=$objext 7676 7677# Code to be used in simple compile tests 7678lt_simple_compile_test_code="int some_variable = 0;" 7679 7680# Code to be used in simple link tests 7681lt_simple_link_test_code='int main(){return(0);}' 7682 7683 7684 7685 7686 7687 7688 7689# If no C compiler was specified, use CC. 7690LTCC=${LTCC-"$CC"} 7691 7692# If no C compiler flags were specified, use CFLAGS. 7693LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7694 7695# Allow CC to be a program name with arguments. 7696compiler=$CC 7697 7698# Save the default compiler, since it gets overwritten when the other 7699# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7700compiler_DEFAULT=$CC 7701 7702# save warnings/boilerplate of simple test code 7703ac_outfile=conftest.$ac_objext 7704echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7705eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7706_lt_compiler_boilerplate=`cat conftest.err` 7707$RM conftest* 7708 7709ac_outfile=conftest.$ac_objext 7710echo "$lt_simple_link_test_code" >conftest.$ac_ext 7711eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7712_lt_linker_boilerplate=`cat conftest.err` 7713$RM -r conftest* 7714 7715 7716## CAVEAT EMPTOR: 7717## There is no encapsulation within the following macros, do not change 7718## the running order or otherwise move them around unless you know exactly 7719## what you are doing... 7720if test -n "$compiler"; then 7721 7722lt_prog_compiler_no_builtin_flag= 7723 7724if test "$GCC" = yes; then 7725 case $cc_basename in 7726 nvcc*) 7727 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7728 *) 7729 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7730 esac 7731 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7733$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7734if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7735 $as_echo_n "(cached) " >&6 7736else 7737 lt_cv_prog_compiler_rtti_exceptions=no 7738 ac_outfile=conftest.$ac_objext 7739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7740 lt_compiler_flag="-fno-rtti -fno-exceptions" 7741 # Insert the option either (1) after the last *FLAGS variable, or 7742 # (2) before a word containing "conftest.", or (3) at the end. 7743 # Note that $ac_compile itself does not contain backslashes and begins 7744 # with a dollar sign (not a hyphen), so the echo should work correctly. 7745 # The option is referenced via a variable to avoid confusing sed. 7746 lt_compile=`echo "$ac_compile" | $SED \ 7747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7749 -e 's:$: $lt_compiler_flag:'` 7750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7751 (eval "$lt_compile" 2>conftest.err) 7752 ac_status=$? 7753 cat conftest.err >&5 7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7755 if (exit $ac_status) && test -s "$ac_outfile"; then 7756 # The compiler can only warn and ignore the option if not recognized 7757 # So say no if there are warnings other than the usual output. 7758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7761 lt_cv_prog_compiler_rtti_exceptions=yes 7762 fi 7763 fi 7764 $RM conftest* 7765 7766fi 7767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7768$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7769 7770if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7771 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7772else 7773 : 7774fi 7775 7776fi 7777 7778 7779 7780 7781 7782 7783 lt_prog_compiler_wl= 7784lt_prog_compiler_pic= 7785lt_prog_compiler_static= 7786 7787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7788$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7789 7790 if test "$GCC" = yes; then 7791 lt_prog_compiler_wl='-Wl,' 7792 lt_prog_compiler_static='-static' 7793 7794 case $host_os in 7795 aix*) 7796 # All AIX code is PIC. 7797 if test "$host_cpu" = ia64; then 7798 # AIX 5 now supports IA64 processor 7799 lt_prog_compiler_static='-Bstatic' 7800 fi 7801 lt_prog_compiler_pic='-fPIC' 7802 ;; 7803 7804 amigaos*) 7805 case $host_cpu in 7806 powerpc) 7807 # see comment about AmigaOS4 .so support 7808 lt_prog_compiler_pic='-fPIC' 7809 ;; 7810 m68k) 7811 # FIXME: we need at least 68020 code to build shared libraries, but 7812 # adding the `-m68020' flag to GCC prevents building anything better, 7813 # like `-m68040'. 7814 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7815 ;; 7816 esac 7817 ;; 7818 7819 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7820 # PIC is the default for these OSes. 7821 ;; 7822 7823 mingw* | cygwin* | pw32* | os2* | cegcc*) 7824 # This hack is so that the source file can tell whether it is being 7825 # built for inclusion in a dll (and should export symbols for example). 7826 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7827 # (--disable-auto-import) libraries 7828 lt_prog_compiler_pic='-DDLL_EXPORT' 7829 ;; 7830 7831 darwin* | rhapsody*) 7832 # PIC is the default on this platform 7833 # Common symbols not allowed in MH_DYLIB files 7834 lt_prog_compiler_pic='-fno-common' 7835 ;; 7836 7837 haiku*) 7838 # PIC is the default for Haiku. 7839 # The "-static" flag exists, but is broken. 7840 lt_prog_compiler_static= 7841 ;; 7842 7843 hpux*) 7844 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7845 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7846 # sets the default TLS model and affects inlining. 7847 case $host_cpu in 7848 hppa*64*) 7849 # +Z the default 7850 ;; 7851 *) 7852 lt_prog_compiler_pic='-fPIC' 7853 ;; 7854 esac 7855 ;; 7856 7857 interix[3-9]*) 7858 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7859 # Instead, we relocate shared libraries at runtime. 7860 ;; 7861 7862 msdosdjgpp*) 7863 # Just because we use GCC doesn't mean we suddenly get shared libraries 7864 # on systems that don't support them. 7865 lt_prog_compiler_can_build_shared=no 7866 enable_shared=no 7867 ;; 7868 7869 *nto* | *qnx*) 7870 # QNX uses GNU C++, but need to define -shared option too, otherwise 7871 # it will coredump. 7872 lt_prog_compiler_pic='-fPIC -shared' 7873 ;; 7874 7875 sysv4*MP*) 7876 if test -d /usr/nec; then 7877 lt_prog_compiler_pic=-Kconform_pic 7878 fi 7879 ;; 7880 7881 *) 7882 lt_prog_compiler_pic='-fPIC' 7883 ;; 7884 esac 7885 7886 case $cc_basename in 7887 nvcc*) # Cuda Compiler Driver 2.2 7888 lt_prog_compiler_wl='-Xlinker ' 7889 lt_prog_compiler_pic='-Xcompiler -fPIC' 7890 ;; 7891 esac 7892 else 7893 # PORTME Check for flag to pass linker flags through the system compiler. 7894 case $host_os in 7895 aix*) 7896 lt_prog_compiler_wl='-Wl,' 7897 if test "$host_cpu" = ia64; then 7898 # AIX 5 now supports IA64 processor 7899 lt_prog_compiler_static='-Bstatic' 7900 else 7901 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7902 fi 7903 ;; 7904 7905 mingw* | cygwin* | pw32* | os2* | cegcc*) 7906 # This hack is so that the source file can tell whether it is being 7907 # built for inclusion in a dll (and should export symbols for example). 7908 lt_prog_compiler_pic='-DDLL_EXPORT' 7909 ;; 7910 7911 hpux9* | hpux10* | hpux11*) 7912 lt_prog_compiler_wl='-Wl,' 7913 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7914 # not for PA HP-UX. 7915 case $host_cpu in 7916 hppa*64*|ia64*) 7917 # +Z the default 7918 ;; 7919 *) 7920 lt_prog_compiler_pic='+Z' 7921 ;; 7922 esac 7923 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7924 lt_prog_compiler_static='${wl}-a ${wl}archive' 7925 ;; 7926 7927 irix5* | irix6* | nonstopux*) 7928 lt_prog_compiler_wl='-Wl,' 7929 # PIC (with -KPIC) is the default. 7930 lt_prog_compiler_static='-non_shared' 7931 ;; 7932 7933 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7934 case $cc_basename in 7935 # old Intel for x86_64 which still supported -KPIC. 7936 ecc*) 7937 lt_prog_compiler_wl='-Wl,' 7938 lt_prog_compiler_pic='-KPIC' 7939 lt_prog_compiler_static='-static' 7940 ;; 7941 # icc used to be incompatible with GCC. 7942 # ICC 10 doesn't accept -KPIC any more. 7943 icc* | ifort*) 7944 lt_prog_compiler_wl='-Wl,' 7945 lt_prog_compiler_pic='-fPIC' 7946 lt_prog_compiler_static='-static' 7947 ;; 7948 # Lahey Fortran 8.1. 7949 lf95*) 7950 lt_prog_compiler_wl='-Wl,' 7951 lt_prog_compiler_pic='--shared' 7952 lt_prog_compiler_static='--static' 7953 ;; 7954 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7955 # Portland Group compilers (*not* the Pentium gcc compiler, 7956 # which looks to be a dead project) 7957 lt_prog_compiler_wl='-Wl,' 7958 lt_prog_compiler_pic='-fpic' 7959 lt_prog_compiler_static='-Bstatic' 7960 ;; 7961 ccc*) 7962 lt_prog_compiler_wl='-Wl,' 7963 # All Alpha code is PIC. 7964 lt_prog_compiler_static='-non_shared' 7965 ;; 7966 xl* | bgxl* | bgf* | mpixl*) 7967 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7968 lt_prog_compiler_wl='-Wl,' 7969 lt_prog_compiler_pic='-qpic' 7970 lt_prog_compiler_static='-qstaticlink' 7971 ;; 7972 *) 7973 case `$CC -V 2>&1 | sed 5q` in 7974 *Sun\ F* | *Sun*Fortran*) 7975 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7976 lt_prog_compiler_pic='-KPIC' 7977 lt_prog_compiler_static='-Bstatic' 7978 lt_prog_compiler_wl='' 7979 ;; 7980 *Sun\ C*) 7981 # Sun C 5.9 7982 lt_prog_compiler_pic='-KPIC' 7983 lt_prog_compiler_static='-Bstatic' 7984 lt_prog_compiler_wl='-Wl,' 7985 ;; 7986 esac 7987 ;; 7988 esac 7989 ;; 7990 7991 newsos6) 7992 lt_prog_compiler_pic='-KPIC' 7993 lt_prog_compiler_static='-Bstatic' 7994 ;; 7995 7996 *nto* | *qnx*) 7997 # QNX uses GNU C++, but need to define -shared option too, otherwise 7998 # it will coredump. 7999 lt_prog_compiler_pic='-fPIC -shared' 8000 ;; 8001 8002 osf3* | osf4* | osf5*) 8003 lt_prog_compiler_wl='-Wl,' 8004 # All OSF/1 code is PIC. 8005 lt_prog_compiler_static='-non_shared' 8006 ;; 8007 8008 rdos*) 8009 lt_prog_compiler_static='-non_shared' 8010 ;; 8011 8012 solaris*) 8013 lt_prog_compiler_pic='-KPIC' 8014 lt_prog_compiler_static='-Bstatic' 8015 case $cc_basename in 8016 f77* | f90* | f95*) 8017 lt_prog_compiler_wl='-Qoption ld ';; 8018 *) 8019 lt_prog_compiler_wl='-Wl,';; 8020 esac 8021 ;; 8022 8023 sunos4*) 8024 lt_prog_compiler_wl='-Qoption ld ' 8025 lt_prog_compiler_pic='-PIC' 8026 lt_prog_compiler_static='-Bstatic' 8027 ;; 8028 8029 sysv4 | sysv4.2uw2* | sysv4.3*) 8030 lt_prog_compiler_wl='-Wl,' 8031 lt_prog_compiler_pic='-KPIC' 8032 lt_prog_compiler_static='-Bstatic' 8033 ;; 8034 8035 sysv4*MP*) 8036 if test -d /usr/nec ;then 8037 lt_prog_compiler_pic='-Kconform_pic' 8038 lt_prog_compiler_static='-Bstatic' 8039 fi 8040 ;; 8041 8042 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8043 lt_prog_compiler_wl='-Wl,' 8044 lt_prog_compiler_pic='-KPIC' 8045 lt_prog_compiler_static='-Bstatic' 8046 ;; 8047 8048 unicos*) 8049 lt_prog_compiler_wl='-Wl,' 8050 lt_prog_compiler_can_build_shared=no 8051 ;; 8052 8053 uts4*) 8054 lt_prog_compiler_pic='-pic' 8055 lt_prog_compiler_static='-Bstatic' 8056 ;; 8057 8058 *) 8059 lt_prog_compiler_can_build_shared=no 8060 ;; 8061 esac 8062 fi 8063 8064case $host_os in 8065 # For platforms which do not support PIC, -DPIC is meaningless: 8066 *djgpp*) 8067 lt_prog_compiler_pic= 8068 ;; 8069 *) 8070 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8071 ;; 8072esac 8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8074$as_echo "$lt_prog_compiler_pic" >&6; } 8075 8076 8077 8078 8079 8080 8081# 8082# Check to make sure the PIC flag actually works. 8083# 8084if test -n "$lt_prog_compiler_pic"; then 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8086$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8087if ${lt_cv_prog_compiler_pic_works+:} false; then : 8088 $as_echo_n "(cached) " >&6 8089else 8090 lt_cv_prog_compiler_pic_works=no 8091 ac_outfile=conftest.$ac_objext 8092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8093 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8094 # Insert the option either (1) after the last *FLAGS variable, or 8095 # (2) before a word containing "conftest.", or (3) at the end. 8096 # Note that $ac_compile itself does not contain backslashes and begins 8097 # with a dollar sign (not a hyphen), so the echo should work correctly. 8098 # The option is referenced via a variable to avoid confusing sed. 8099 lt_compile=`echo "$ac_compile" | $SED \ 8100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8102 -e 's:$: $lt_compiler_flag:'` 8103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8104 (eval "$lt_compile" 2>conftest.err) 8105 ac_status=$? 8106 cat conftest.err >&5 8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8108 if (exit $ac_status) && test -s "$ac_outfile"; then 8109 # The compiler can only warn and ignore the option if not recognized 8110 # So say no if there are warnings other than the usual output. 8111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8114 lt_cv_prog_compiler_pic_works=yes 8115 fi 8116 fi 8117 $RM conftest* 8118 8119fi 8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8121$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8122 8123if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8124 case $lt_prog_compiler_pic in 8125 "" | " "*) ;; 8126 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8127 esac 8128else 8129 lt_prog_compiler_pic= 8130 lt_prog_compiler_can_build_shared=no 8131fi 8132 8133fi 8134 8135 8136 8137 8138 8139 8140# 8141# Check to make sure the static flag actually works. 8142# 8143wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8145$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8146if ${lt_cv_prog_compiler_static_works+:} false; then : 8147 $as_echo_n "(cached) " >&6 8148else 8149 lt_cv_prog_compiler_static_works=no 8150 save_LDFLAGS="$LDFLAGS" 8151 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8152 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8153 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8154 # The linker can only warn and ignore the option if not recognized 8155 # So say no if there are warnings 8156 if test -s conftest.err; then 8157 # Append any errors to the config.log. 8158 cat conftest.err 1>&5 8159 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8161 if diff conftest.exp conftest.er2 >/dev/null; then 8162 lt_cv_prog_compiler_static_works=yes 8163 fi 8164 else 8165 lt_cv_prog_compiler_static_works=yes 8166 fi 8167 fi 8168 $RM -r conftest* 8169 LDFLAGS="$save_LDFLAGS" 8170 8171fi 8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8173$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8174 8175if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8176 : 8177else 8178 lt_prog_compiler_static= 8179fi 8180 8181 8182 8183 8184 8185 8186 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8188$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8189if ${lt_cv_prog_compiler_c_o+:} false; then : 8190 $as_echo_n "(cached) " >&6 8191else 8192 lt_cv_prog_compiler_c_o=no 8193 $RM -r conftest 2>/dev/null 8194 mkdir conftest 8195 cd conftest 8196 mkdir out 8197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8198 8199 lt_compiler_flag="-o out/conftest2.$ac_objext" 8200 # Insert the option either (1) after the last *FLAGS variable, or 8201 # (2) before a word containing "conftest.", or (3) at the end. 8202 # Note that $ac_compile itself does not contain backslashes and begins 8203 # with a dollar sign (not a hyphen), so the echo should work correctly. 8204 lt_compile=`echo "$ac_compile" | $SED \ 8205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8207 -e 's:$: $lt_compiler_flag:'` 8208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8209 (eval "$lt_compile" 2>out/conftest.err) 8210 ac_status=$? 8211 cat out/conftest.err >&5 8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8213 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8214 then 8215 # The compiler can only warn and ignore the option if not recognized 8216 # So say no if there are warnings 8217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8218 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8219 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8220 lt_cv_prog_compiler_c_o=yes 8221 fi 8222 fi 8223 chmod u+w . 2>&5 8224 $RM conftest* 8225 # SGI C++ compiler will create directory out/ii_files/ for 8226 # template instantiation 8227 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8228 $RM out/* && rmdir out 8229 cd .. 8230 $RM -r conftest 8231 $RM conftest* 8232 8233fi 8234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8235$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8236 8237 8238 8239 8240 8241 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8243$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8244if ${lt_cv_prog_compiler_c_o+:} false; then : 8245 $as_echo_n "(cached) " >&6 8246else 8247 lt_cv_prog_compiler_c_o=no 8248 $RM -r conftest 2>/dev/null 8249 mkdir conftest 8250 cd conftest 8251 mkdir out 8252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8253 8254 lt_compiler_flag="-o out/conftest2.$ac_objext" 8255 # Insert the option either (1) after the last *FLAGS variable, or 8256 # (2) before a word containing "conftest.", or (3) at the end. 8257 # Note that $ac_compile itself does not contain backslashes and begins 8258 # with a dollar sign (not a hyphen), so the echo should work correctly. 8259 lt_compile=`echo "$ac_compile" | $SED \ 8260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8262 -e 's:$: $lt_compiler_flag:'` 8263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8264 (eval "$lt_compile" 2>out/conftest.err) 8265 ac_status=$? 8266 cat out/conftest.err >&5 8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8268 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8269 then 8270 # The compiler can only warn and ignore the option if not recognized 8271 # So say no if there are warnings 8272 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8273 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8274 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8275 lt_cv_prog_compiler_c_o=yes 8276 fi 8277 fi 8278 chmod u+w . 2>&5 8279 $RM conftest* 8280 # SGI C++ compiler will create directory out/ii_files/ for 8281 # template instantiation 8282 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8283 $RM out/* && rmdir out 8284 cd .. 8285 $RM -r conftest 8286 $RM conftest* 8287 8288fi 8289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8290$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8291 8292 8293 8294 8295hard_links="nottested" 8296if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8297 # do not overwrite the value of need_locks provided by the user 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8299$as_echo_n "checking if we can lock with hard links... " >&6; } 8300 hard_links=yes 8301 $RM conftest* 8302 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8303 touch conftest.a 8304 ln conftest.a conftest.b 2>&5 || hard_links=no 8305 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8307$as_echo "$hard_links" >&6; } 8308 if test "$hard_links" = no; then 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8310$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8311 need_locks=warn 8312 fi 8313else 8314 need_locks=no 8315fi 8316 8317 8318 8319 8320 8321 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8323$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8324 8325 runpath_var= 8326 allow_undefined_flag= 8327 always_export_symbols=no 8328 archive_cmds= 8329 archive_expsym_cmds= 8330 compiler_needs_object=no 8331 enable_shared_with_static_runtimes=no 8332 export_dynamic_flag_spec= 8333 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8334 hardcode_automatic=no 8335 hardcode_direct=no 8336 hardcode_direct_absolute=no 8337 hardcode_libdir_flag_spec= 8338 hardcode_libdir_flag_spec_ld= 8339 hardcode_libdir_separator= 8340 hardcode_minus_L=no 8341 hardcode_shlibpath_var=unsupported 8342 inherit_rpath=no 8343 link_all_deplibs=unknown 8344 module_cmds= 8345 module_expsym_cmds= 8346 old_archive_from_new_cmds= 8347 old_archive_from_expsyms_cmds= 8348 thread_safe_flag_spec= 8349 whole_archive_flag_spec= 8350 # include_expsyms should be a list of space-separated symbols to be *always* 8351 # included in the symbol list 8352 include_expsyms= 8353 # exclude_expsyms can be an extended regexp of symbols to exclude 8354 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8355 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8356 # as well as any symbol that contains `d'. 8357 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8358 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8359 # platforms (ab)use it in PIC code, but their linkers get confused if 8360 # the symbol is explicitly referenced. Since portable code cannot 8361 # rely on this symbol name, it's probably fine to never include it in 8362 # preloaded symbol tables. 8363 # Exclude shared library initialization/finalization symbols. 8364 extract_expsyms_cmds= 8365 8366 case $host_os in 8367 cygwin* | mingw* | pw32* | cegcc*) 8368 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8369 # When not using gcc, we currently assume that we are using 8370 # Microsoft Visual C++. 8371 if test "$GCC" != yes; then 8372 with_gnu_ld=no 8373 fi 8374 ;; 8375 interix*) 8376 # we just hope/assume this is gcc and not c89 (= MSVC++) 8377 with_gnu_ld=yes 8378 ;; 8379 openbsd*) 8380 with_gnu_ld=no 8381 ;; 8382 esac 8383 8384 ld_shlibs=yes 8385 8386 # On some targets, GNU ld is compatible enough with the native linker 8387 # that we're better off using the native interface for both. 8388 lt_use_gnu_ld_interface=no 8389 if test "$with_gnu_ld" = yes; then 8390 case $host_os in 8391 aix*) 8392 # The AIX port of GNU ld has always aspired to compatibility 8393 # with the native linker. However, as the warning in the GNU ld 8394 # block says, versions before 2.19.5* couldn't really create working 8395 # shared libraries, regardless of the interface used. 8396 case `$LD -v 2>&1` in 8397 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8398 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8399 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8400 *) 8401 lt_use_gnu_ld_interface=yes 8402 ;; 8403 esac 8404 ;; 8405 *) 8406 lt_use_gnu_ld_interface=yes 8407 ;; 8408 esac 8409 fi 8410 8411 if test "$lt_use_gnu_ld_interface" = yes; then 8412 # If archive_cmds runs LD, not CC, wlarc should be empty 8413 wlarc='${wl}' 8414 8415 # Set some defaults for GNU ld with shared library support. These 8416 # are reset later if shared libraries are not supported. Putting them 8417 # here allows them to be overridden if necessary. 8418 runpath_var=LD_RUN_PATH 8419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8420 export_dynamic_flag_spec='${wl}--export-dynamic' 8421 # ancient GNU ld didn't support --whole-archive et. al. 8422 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8423 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8424 else 8425 whole_archive_flag_spec= 8426 fi 8427 supports_anon_versioning=no 8428 case `$LD -v 2>&1` in 8429 *GNU\ gold*) supports_anon_versioning=yes ;; 8430 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8431 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8432 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8433 *\ 2.11.*) ;; # other 2.11 versions 8434 *) supports_anon_versioning=yes ;; 8435 esac 8436 8437 # See if GNU ld supports shared libraries. 8438 case $host_os in 8439 aix[3-9]*) 8440 # On AIX/PPC, the GNU linker is very broken 8441 if test "$host_cpu" != ia64; then 8442 ld_shlibs=no 8443 cat <<_LT_EOF 1>&2 8444 8445*** Warning: the GNU linker, at least up to release 2.19, is reported 8446*** to be unable to reliably create shared libraries on AIX. 8447*** Therefore, libtool is disabling shared libraries support. If you 8448*** really care for shared libraries, you may want to install binutils 8449*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8450*** You will then need to restart the configuration process. 8451 8452_LT_EOF 8453 fi 8454 ;; 8455 8456 amigaos*) 8457 case $host_cpu in 8458 powerpc) 8459 # see comment about AmigaOS4 .so support 8460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8461 archive_expsym_cmds='' 8462 ;; 8463 m68k) 8464 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)' 8465 hardcode_libdir_flag_spec='-L$libdir' 8466 hardcode_minus_L=yes 8467 ;; 8468 esac 8469 ;; 8470 8471 beos*) 8472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8473 allow_undefined_flag=unsupported 8474 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8475 # support --undefined. This deserves some investigation. FIXME 8476 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8477 else 8478 ld_shlibs=no 8479 fi 8480 ;; 8481 8482 cygwin* | mingw* | pw32* | cegcc*) 8483 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8484 # as there is no search path for DLLs. 8485 hardcode_libdir_flag_spec='-L$libdir' 8486 export_dynamic_flag_spec='${wl}--export-all-symbols' 8487 allow_undefined_flag=unsupported 8488 always_export_symbols=no 8489 enable_shared_with_static_runtimes=yes 8490 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8491 8492 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8494 # If the export-symbols file already is a .def file (1st line 8495 # is EXPORTS), use it as is; otherwise, prepend... 8496 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8497 cp $export_symbols $output_objdir/$soname.def; 8498 else 8499 echo EXPORTS > $output_objdir/$soname.def; 8500 cat $export_symbols >> $output_objdir/$soname.def; 8501 fi~ 8502 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8503 else 8504 ld_shlibs=no 8505 fi 8506 ;; 8507 8508 haiku*) 8509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8510 link_all_deplibs=yes 8511 ;; 8512 8513 interix[3-9]*) 8514 hardcode_direct=no 8515 hardcode_shlibpath_var=no 8516 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8517 export_dynamic_flag_spec='${wl}-E' 8518 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8519 # Instead, shared libraries are loaded at an image base (0x10000000 by 8520 # default) and relocated if they conflict, which is a slow very memory 8521 # consuming and fragmenting process. To avoid this, we pick a random, 8522 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8523 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8524 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8525 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' 8526 ;; 8527 8528 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 8529 tmp_diet=no 8530 if test "$host_os" = linux-dietlibc; then 8531 case $cc_basename in 8532 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8533 esac 8534 fi 8535 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8536 && test "$tmp_diet" = no 8537 then 8538 tmp_addflag=' $pic_flag' 8539 tmp_sharedflag='-shared' 8540 case $cc_basename,$host_cpu in 8541 pgcc*) # Portland Group C compiler 8542 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' 8543 tmp_addflag=' $pic_flag' 8544 ;; 8545 pgf77* | pgf90* | pgf95* | pgfortran*) 8546 # Portland Group f77 and f90 compilers 8547 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' 8548 tmp_addflag=' $pic_flag -Mnomain' ;; 8549 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8550 tmp_addflag=' -i_dynamic' ;; 8551 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8552 tmp_addflag=' -i_dynamic -nofor_main' ;; 8553 ifc* | ifort*) # Intel Fortran compiler 8554 tmp_addflag=' -nofor_main' ;; 8555 lf95*) # Lahey Fortran 8.1 8556 whole_archive_flag_spec= 8557 tmp_sharedflag='--shared' ;; 8558 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8559 tmp_sharedflag='-qmkshrobj' 8560 tmp_addflag= ;; 8561 nvcc*) # Cuda Compiler Driver 2.2 8562 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' 8563 compiler_needs_object=yes 8564 ;; 8565 esac 8566 case `$CC -V 2>&1 | sed 5q` in 8567 *Sun\ C*) # Sun C 5.9 8568 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' 8569 compiler_needs_object=yes 8570 tmp_sharedflag='-G' ;; 8571 *Sun\ F*) # Sun Fortran 8.3 8572 tmp_sharedflag='-G' ;; 8573 esac 8574 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8575 8576 if test "x$supports_anon_versioning" = xyes; then 8577 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8578 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8579 echo "local: *; };" >> $output_objdir/$libname.ver~ 8580 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8581 fi 8582 8583 case $cc_basename in 8584 xlf* | bgf* | bgxlf* | mpixlf*) 8585 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8586 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8587 hardcode_libdir_flag_spec= 8588 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8589 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8590 if test "x$supports_anon_versioning" = xyes; then 8591 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8592 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8593 echo "local: *; };" >> $output_objdir/$libname.ver~ 8594 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8595 fi 8596 ;; 8597 esac 8598 else 8599 ld_shlibs=no 8600 fi 8601 ;; 8602 8603 netbsd*) 8604 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8605 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8606 wlarc= 8607 else 8608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8610 fi 8611 ;; 8612 8613 solaris*) 8614 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8615 ld_shlibs=no 8616 cat <<_LT_EOF 1>&2 8617 8618*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8619*** create shared libraries on Solaris systems. Therefore, libtool 8620*** is disabling shared libraries support. We urge you to upgrade GNU 8621*** binutils to release 2.9.1 or newer. Another option is to modify 8622*** your PATH or compiler configuration so that the native linker is 8623*** used, and then restart. 8624 8625_LT_EOF 8626 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8628 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8629 else 8630 ld_shlibs=no 8631 fi 8632 ;; 8633 8634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8635 case `$LD -v 2>&1` in 8636 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8637 ld_shlibs=no 8638 cat <<_LT_EOF 1>&2 8639 8640*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8641*** reliably create shared libraries on SCO systems. Therefore, libtool 8642*** is disabling shared libraries support. We urge you to upgrade GNU 8643*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8644*** your PATH or compiler configuration so that the native linker is 8645*** used, and then restart. 8646 8647_LT_EOF 8648 ;; 8649 *) 8650 # For security reasons, it is highly recommended that you always 8651 # use absolute paths for naming shared libraries, and exclude the 8652 # DT_RUNPATH tag from executables and libraries. But doing so 8653 # requires that you compile everything twice, which is a pain. 8654 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8658 else 8659 ld_shlibs=no 8660 fi 8661 ;; 8662 esac 8663 ;; 8664 8665 sunos4*) 8666 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8667 wlarc= 8668 hardcode_direct=yes 8669 hardcode_shlibpath_var=no 8670 ;; 8671 8672 *) 8673 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8675 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8676 else 8677 ld_shlibs=no 8678 fi 8679 ;; 8680 esac 8681 8682 if test "$ld_shlibs" = no; then 8683 runpath_var= 8684 hardcode_libdir_flag_spec= 8685 export_dynamic_flag_spec= 8686 whole_archive_flag_spec= 8687 fi 8688 else 8689 # PORTME fill in a description of your system's linker (not GNU ld) 8690 case $host_os in 8691 aix3*) 8692 allow_undefined_flag=unsupported 8693 always_export_symbols=yes 8694 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' 8695 # Note: this linker hardcodes the directories in LIBPATH if there 8696 # are no directories specified by -L. 8697 hardcode_minus_L=yes 8698 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8699 # Neither direct hardcoding nor static linking is supported with a 8700 # broken collect2. 8701 hardcode_direct=unsupported 8702 fi 8703 ;; 8704 8705 aix[4-9]*) 8706 if test "$host_cpu" = ia64; then 8707 # On IA64, the linker does run time linking by default, so we don't 8708 # have to do anything special. 8709 aix_use_runtimelinking=no 8710 exp_sym_flag='-Bexport' 8711 no_entry_flag="" 8712 else 8713 # If we're using GNU nm, then we don't want the "-C" option. 8714 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8715 # Also, AIX nm treats weak defined symbols like other global 8716 # defined symbols, whereas GNU nm marks them as "W". 8717 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8718 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' 8719 else 8720 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8721 fi 8722 aix_use_runtimelinking=no 8723 8724 # Test if we are trying to use run time linking or normal 8725 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8726 # need to do runtime linking. 8727 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8728 for ld_flag in $LDFLAGS; do 8729 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8730 aix_use_runtimelinking=yes 8731 break 8732 fi 8733 done 8734 ;; 8735 esac 8736 8737 exp_sym_flag='-bexport' 8738 no_entry_flag='-bnoentry' 8739 fi 8740 8741 # When large executables or shared objects are built, AIX ld can 8742 # have problems creating the table of contents. If linking a library 8743 # or program results in "error TOC overflow" add -mminimal-toc to 8744 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8745 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8746 8747 archive_cmds='' 8748 hardcode_direct=yes 8749 hardcode_direct_absolute=yes 8750 hardcode_libdir_separator=':' 8751 link_all_deplibs=yes 8752 file_list_spec='${wl}-f,' 8753 8754 if test "$GCC" = yes; then 8755 case $host_os in aix4.[012]|aix4.[012].*) 8756 # We only want to do this on AIX 4.2 and lower, the check 8757 # below for broken collect2 doesn't work under 4.3+ 8758 collect2name=`${CC} -print-prog-name=collect2` 8759 if test -f "$collect2name" && 8760 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8761 then 8762 # We have reworked collect2 8763 : 8764 else 8765 # We have old collect2 8766 hardcode_direct=unsupported 8767 # It fails to find uninstalled libraries when the uninstalled 8768 # path is not listed in the libpath. Setting hardcode_minus_L 8769 # to unsupported forces relinking 8770 hardcode_minus_L=yes 8771 hardcode_libdir_flag_spec='-L$libdir' 8772 hardcode_libdir_separator= 8773 fi 8774 ;; 8775 esac 8776 shared_flag='-shared' 8777 if test "$aix_use_runtimelinking" = yes; then 8778 shared_flag="$shared_flag "'${wl}-G' 8779 fi 8780 else 8781 # not using gcc 8782 if test "$host_cpu" = ia64; then 8783 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8784 # chokes on -Wl,-G. The following line is correct: 8785 shared_flag='-G' 8786 else 8787 if test "$aix_use_runtimelinking" = yes; then 8788 shared_flag='${wl}-G' 8789 else 8790 shared_flag='${wl}-bM:SRE' 8791 fi 8792 fi 8793 fi 8794 8795 export_dynamic_flag_spec='${wl}-bexpall' 8796 # It seems that -bexpall does not export symbols beginning with 8797 # underscore (_), so it is better to generate a list of symbols to export. 8798 always_export_symbols=yes 8799 if test "$aix_use_runtimelinking" = yes; then 8800 # Warning - without using the other runtime loading flags (-brtl), 8801 # -berok will link without error, but may produce a broken library. 8802 allow_undefined_flag='-berok' 8803 # Determine the default libpath from the value encoded in an 8804 # empty executable. 8805 if test x$gcc_no_link = xyes; then 8806 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8807fi 8808cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8809/* end confdefs.h. */ 8810 8811int 8812main () 8813{ 8814 8815 ; 8816 return 0; 8817} 8818_ACEOF 8819if ac_fn_c_try_link "$LINENO"; then : 8820 8821lt_aix_libpath_sed=' 8822 /Import File Strings/,/^$/ { 8823 /^0/ { 8824 s/^0 *\(.*\)$/\1/ 8825 p 8826 } 8827 }' 8828aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8829# Check for a 64-bit object if we didn't find anything. 8830if test -z "$aix_libpath"; then 8831 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8832fi 8833fi 8834rm -f core conftest.err conftest.$ac_objext \ 8835 conftest$ac_exeext conftest.$ac_ext 8836if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8837 8838 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8839 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" 8840 else 8841 if test "$host_cpu" = ia64; then 8842 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8843 allow_undefined_flag="-z nodefs" 8844 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" 8845 else 8846 # Determine the default libpath from the value encoded in an 8847 # empty executable. 8848 if test x$gcc_no_link = xyes; then 8849 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8850fi 8851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8852/* end confdefs.h. */ 8853 8854int 8855main () 8856{ 8857 8858 ; 8859 return 0; 8860} 8861_ACEOF 8862if ac_fn_c_try_link "$LINENO"; then : 8863 8864lt_aix_libpath_sed=' 8865 /Import File Strings/,/^$/ { 8866 /^0/ { 8867 s/^0 *\(.*\)$/\1/ 8868 p 8869 } 8870 }' 8871aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8872# Check for a 64-bit object if we didn't find anything. 8873if test -z "$aix_libpath"; then 8874 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8875fi 8876fi 8877rm -f core conftest.err conftest.$ac_objext \ 8878 conftest$ac_exeext conftest.$ac_ext 8879if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8880 8881 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8882 # Warning - without using the other run time loading flags, 8883 # -berok will link without error, but may produce a broken library. 8884 no_undefined_flag=' ${wl}-bernotok' 8885 allow_undefined_flag=' ${wl}-berok' 8886 if test "$with_gnu_ld" = yes; then 8887 # We only use this code for GNU lds that support --whole-archive. 8888 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8889 else 8890 # Exported symbols can be pulled into shared objects from archives 8891 whole_archive_flag_spec='$convenience' 8892 fi 8893 archive_cmds_need_lc=yes 8894 # This is similar to how AIX traditionally builds its shared libraries. 8895 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' 8896 fi 8897 fi 8898 ;; 8899 8900 amigaos*) 8901 case $host_cpu in 8902 powerpc) 8903 # see comment about AmigaOS4 .so support 8904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8905 archive_expsym_cmds='' 8906 ;; 8907 m68k) 8908 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)' 8909 hardcode_libdir_flag_spec='-L$libdir' 8910 hardcode_minus_L=yes 8911 ;; 8912 esac 8913 ;; 8914 8915 bsdi[45]*) 8916 export_dynamic_flag_spec=-rdynamic 8917 ;; 8918 8919 cygwin* | mingw* | pw32* | cegcc*) 8920 # When not using gcc, we currently assume that we are using 8921 # Microsoft Visual C++. 8922 # hardcode_libdir_flag_spec is actually meaningless, as there is 8923 # no search path for DLLs. 8924 hardcode_libdir_flag_spec=' ' 8925 allow_undefined_flag=unsupported 8926 # Tell ltmain to make .lib files, not .a files. 8927 libext=lib 8928 # Tell ltmain to make .dll files, not .so files. 8929 shrext_cmds=".dll" 8930 # FIXME: Setting linknames here is a bad hack. 8931 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8932 # The linker will automatically build a .lib file if we build a DLL. 8933 old_archive_from_new_cmds='true' 8934 # FIXME: Should let the user specify the lib program. 8935 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8936 fix_srcfile_path='`cygpath -w "$srcfile"`' 8937 enable_shared_with_static_runtimes=yes 8938 ;; 8939 8940 darwin* | rhapsody*) 8941 8942 8943 archive_cmds_need_lc=no 8944 hardcode_direct=no 8945 hardcode_automatic=yes 8946 hardcode_shlibpath_var=unsupported 8947 if test "$lt_cv_ld_force_load" = "yes"; then 8948 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\"`' 8949 else 8950 whole_archive_flag_spec='' 8951 fi 8952 link_all_deplibs=yes 8953 allow_undefined_flag="$_lt_dar_allow_undefined" 8954 case $cc_basename in 8955 ifort*) _lt_dar_can_shared=yes ;; 8956 *) _lt_dar_can_shared=$GCC ;; 8957 esac 8958 if test "$_lt_dar_can_shared" = "yes"; then 8959 output_verbose_link_cmd=func_echo_all 8960 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8961 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8962 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}" 8963 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}" 8964 8965 else 8966 ld_shlibs=no 8967 fi 8968 8969 ;; 8970 8971 dgux*) 8972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8973 hardcode_libdir_flag_spec='-L$libdir' 8974 hardcode_shlibpath_var=no 8975 ;; 8976 8977 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8978 # support. Future versions do this automatically, but an explicit c++rt0.o 8979 # does not break anything, and helps significantly (at the cost of a little 8980 # extra space). 8981 freebsd2.2*) 8982 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8983 hardcode_libdir_flag_spec='-R$libdir' 8984 hardcode_direct=yes 8985 hardcode_shlibpath_var=no 8986 ;; 8987 8988 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8989 freebsd2.*) 8990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8991 hardcode_direct=yes 8992 hardcode_minus_L=yes 8993 hardcode_shlibpath_var=no 8994 ;; 8995 8996 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8997 freebsd* | dragonfly*) 8998 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8999 hardcode_libdir_flag_spec='-R$libdir' 9000 hardcode_direct=yes 9001 hardcode_shlibpath_var=no 9002 ;; 9003 9004 hpux9*) 9005 if test "$GCC" = yes; then 9006 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9007 else 9008 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' 9009 fi 9010 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9011 hardcode_libdir_separator=: 9012 hardcode_direct=yes 9013 9014 # hardcode_minus_L: Not really in the search PATH, 9015 # but as the default location of the library. 9016 hardcode_minus_L=yes 9017 export_dynamic_flag_spec='${wl}-E' 9018 ;; 9019 9020 hpux10*) 9021 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9022 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9023 else 9024 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9025 fi 9026 if test "$with_gnu_ld" = no; then 9027 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9028 hardcode_libdir_flag_spec_ld='+b $libdir' 9029 hardcode_libdir_separator=: 9030 hardcode_direct=yes 9031 hardcode_direct_absolute=yes 9032 export_dynamic_flag_spec='${wl}-E' 9033 # hardcode_minus_L: Not really in the search PATH, 9034 # but as the default location of the library. 9035 hardcode_minus_L=yes 9036 fi 9037 ;; 9038 9039 hpux11*) 9040 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9041 case $host_cpu in 9042 hppa*64*) 9043 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9044 ;; 9045 ia64*) 9046 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9047 ;; 9048 *) 9049 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9050 ;; 9051 esac 9052 else 9053 case $host_cpu in 9054 hppa*64*) 9055 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9056 ;; 9057 ia64*) 9058 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9059 ;; 9060 *) 9061 9062 # Older versions of the 11.00 compiler do not understand -b yet 9063 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9065$as_echo_n "checking if $CC understands -b... " >&6; } 9066if ${lt_cv_prog_compiler__b+:} false; then : 9067 $as_echo_n "(cached) " >&6 9068else 9069 lt_cv_prog_compiler__b=no 9070 save_LDFLAGS="$LDFLAGS" 9071 LDFLAGS="$LDFLAGS -b" 9072 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9074 # The linker can only warn and ignore the option if not recognized 9075 # So say no if there are warnings 9076 if test -s conftest.err; then 9077 # Append any errors to the config.log. 9078 cat conftest.err 1>&5 9079 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9081 if diff conftest.exp conftest.er2 >/dev/null; then 9082 lt_cv_prog_compiler__b=yes 9083 fi 9084 else 9085 lt_cv_prog_compiler__b=yes 9086 fi 9087 fi 9088 $RM -r conftest* 9089 LDFLAGS="$save_LDFLAGS" 9090 9091fi 9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9093$as_echo "$lt_cv_prog_compiler__b" >&6; } 9094 9095if test x"$lt_cv_prog_compiler__b" = xyes; then 9096 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9097else 9098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9099fi 9100 9101 ;; 9102 esac 9103 fi 9104 if test "$with_gnu_ld" = no; then 9105 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9106 hardcode_libdir_separator=: 9107 9108 case $host_cpu in 9109 hppa*64*|ia64*) 9110 hardcode_direct=no 9111 hardcode_shlibpath_var=no 9112 ;; 9113 *) 9114 hardcode_direct=yes 9115 hardcode_direct_absolute=yes 9116 export_dynamic_flag_spec='${wl}-E' 9117 9118 # hardcode_minus_L: Not really in the search PATH, 9119 # but as the default location of the library. 9120 hardcode_minus_L=yes 9121 ;; 9122 esac 9123 fi 9124 ;; 9125 9126 irix5* | irix6* | nonstopux*) 9127 if test "$GCC" = yes; then 9128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9129 # Try to use the -exported_symbol ld option, if it does not 9130 # work, assume that -exports_file does not work either and 9131 # implicitly export all symbols. 9132 save_LDFLAGS="$LDFLAGS" 9133 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9134 if test x$gcc_no_link = xyes; then 9135 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 9136fi 9137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9138/* end confdefs.h. */ 9139int foo(void) {} 9140_ACEOF 9141if ac_fn_c_try_link "$LINENO"; then : 9142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9143 9144fi 9145rm -f core conftest.err conftest.$ac_objext \ 9146 conftest$ac_exeext conftest.$ac_ext 9147 LDFLAGS="$save_LDFLAGS" 9148 else 9149 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' 9150 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' 9151 fi 9152 archive_cmds_need_lc='no' 9153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9154 hardcode_libdir_separator=: 9155 inherit_rpath=yes 9156 link_all_deplibs=yes 9157 ;; 9158 9159 netbsd*) 9160 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9161 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9162 else 9163 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9164 fi 9165 hardcode_libdir_flag_spec='-R$libdir' 9166 hardcode_direct=yes 9167 hardcode_shlibpath_var=no 9168 ;; 9169 9170 newsos6) 9171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9172 hardcode_direct=yes 9173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9174 hardcode_libdir_separator=: 9175 hardcode_shlibpath_var=no 9176 ;; 9177 9178 *nto* | *qnx*) 9179 ;; 9180 9181 openbsd*) 9182 if test -f /usr/libexec/ld.so; then 9183 hardcode_direct=yes 9184 hardcode_shlibpath_var=no 9185 hardcode_direct_absolute=yes 9186 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9187 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9188 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9189 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9190 export_dynamic_flag_spec='${wl}-E' 9191 else 9192 case $host_os in 9193 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9195 hardcode_libdir_flag_spec='-R$libdir' 9196 ;; 9197 *) 9198 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9199 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9200 ;; 9201 esac 9202 fi 9203 else 9204 ld_shlibs=no 9205 fi 9206 ;; 9207 9208 os2*) 9209 hardcode_libdir_flag_spec='-L$libdir' 9210 hardcode_minus_L=yes 9211 allow_undefined_flag=unsupported 9212 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' 9213 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9214 ;; 9215 9216 osf3*) 9217 if test "$GCC" = yes; then 9218 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9219 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' 9220 else 9221 allow_undefined_flag=' -expect_unresolved \*' 9222 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' 9223 fi 9224 archive_cmds_need_lc='no' 9225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9226 hardcode_libdir_separator=: 9227 ;; 9228 9229 osf4* | osf5*) # as osf3* with the addition of -msym flag 9230 if test "$GCC" = yes; then 9231 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9232 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9234 else 9235 allow_undefined_flag=' -expect_unresolved \*' 9236 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' 9237 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~ 9238 $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' 9239 9240 # Both c and cxx compiler support -rpath directly 9241 hardcode_libdir_flag_spec='-rpath $libdir' 9242 fi 9243 archive_cmds_need_lc='no' 9244 hardcode_libdir_separator=: 9245 ;; 9246 9247 solaris*) 9248 no_undefined_flag=' -z defs' 9249 if test "$GCC" = yes; then 9250 wlarc='${wl}' 9251 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9252 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9253 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9254 else 9255 case `$CC -V 2>&1` in 9256 *"Compilers 5.0"*) 9257 wlarc='' 9258 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9259 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9260 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9261 ;; 9262 *) 9263 wlarc='${wl}' 9264 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9265 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9266 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9267 ;; 9268 esac 9269 fi 9270 hardcode_libdir_flag_spec='-R$libdir' 9271 hardcode_shlibpath_var=no 9272 case $host_os in 9273 solaris2.[0-5] | solaris2.[0-5].*) ;; 9274 *) 9275 # The compiler driver will combine and reorder linker options, 9276 # but understands `-z linker_flag'. GCC discards it without `$wl', 9277 # but is careful enough not to reorder. 9278 # Supported since Solaris 2.6 (maybe 2.5.1?) 9279 if test "$GCC" = yes; then 9280 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9281 else 9282 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9283 fi 9284 ;; 9285 esac 9286 link_all_deplibs=yes 9287 ;; 9288 9289 sunos4*) 9290 if test "x$host_vendor" = xsequent; then 9291 # Use $CC to link under sequent, because it throws in some extra .o 9292 # files that make .init and .fini sections work. 9293 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9294 else 9295 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9296 fi 9297 hardcode_libdir_flag_spec='-L$libdir' 9298 hardcode_direct=yes 9299 hardcode_minus_L=yes 9300 hardcode_shlibpath_var=no 9301 ;; 9302 9303 sysv4) 9304 case $host_vendor in 9305 sni) 9306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9307 hardcode_direct=yes # is this really true??? 9308 ;; 9309 siemens) 9310 ## LD is ld it makes a PLAMLIB 9311 ## CC just makes a GrossModule. 9312 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9313 reload_cmds='$CC -r -o $output$reload_objs' 9314 hardcode_direct=no 9315 ;; 9316 motorola) 9317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9318 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9319 ;; 9320 esac 9321 runpath_var='LD_RUN_PATH' 9322 hardcode_shlibpath_var=no 9323 ;; 9324 9325 sysv4.3*) 9326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9327 hardcode_shlibpath_var=no 9328 export_dynamic_flag_spec='-Bexport' 9329 ;; 9330 9331 sysv4*MP*) 9332 if test -d /usr/nec; then 9333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9334 hardcode_shlibpath_var=no 9335 runpath_var=LD_RUN_PATH 9336 hardcode_runpath_var=yes 9337 ld_shlibs=yes 9338 fi 9339 ;; 9340 9341 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9342 no_undefined_flag='${wl}-z,text' 9343 archive_cmds_need_lc=no 9344 hardcode_shlibpath_var=no 9345 runpath_var='LD_RUN_PATH' 9346 9347 if test "$GCC" = yes; then 9348 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9349 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9350 else 9351 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9352 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9353 fi 9354 ;; 9355 9356 sysv5* | sco3.2v5* | sco5v6*) 9357 # Note: We can NOT use -z defs as we might desire, because we do not 9358 # link with -lc, and that would cause any symbols used from libc to 9359 # always be unresolved, which means just about no library would 9360 # ever link correctly. If we're not using GNU ld we use -z text 9361 # though, which does catch some bad symbols but isn't as heavy-handed 9362 # as -z defs. 9363 no_undefined_flag='${wl}-z,text' 9364 allow_undefined_flag='${wl}-z,nodefs' 9365 archive_cmds_need_lc=no 9366 hardcode_shlibpath_var=no 9367 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9368 hardcode_libdir_separator=':' 9369 link_all_deplibs=yes 9370 export_dynamic_flag_spec='${wl}-Bexport' 9371 runpath_var='LD_RUN_PATH' 9372 9373 if test "$GCC" = yes; then 9374 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9375 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9376 else 9377 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9378 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9379 fi 9380 ;; 9381 9382 uts4*) 9383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9384 hardcode_libdir_flag_spec='-L$libdir' 9385 hardcode_shlibpath_var=no 9386 ;; 9387 9388 *) 9389 ld_shlibs=no 9390 ;; 9391 esac 9392 9393 if test x$host_vendor = xsni; then 9394 case $host in 9395 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9396 export_dynamic_flag_spec='${wl}-Blargedynsym' 9397 ;; 9398 esac 9399 fi 9400 fi 9401 9402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9403$as_echo "$ld_shlibs" >&6; } 9404test "$ld_shlibs" = no && can_build_shared=no 9405 9406with_gnu_ld=$with_gnu_ld 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422# 9423# Do we need to explicitly link libc? 9424# 9425case "x$archive_cmds_need_lc" in 9426x|xyes) 9427 # Assume -lc should be added 9428 archive_cmds_need_lc=yes 9429 9430 if test "$enable_shared" = yes && test "$GCC" = yes; then 9431 case $archive_cmds in 9432 *'~'*) 9433 # FIXME: we may have to deal with multi-command sequences. 9434 ;; 9435 '$CC '*) 9436 # Test whether the compiler implicitly links with -lc since on some 9437 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9438 # to ld, don't add -lc before -lgcc. 9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9440$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9441if ${lt_cv_archive_cmds_need_lc+:} false; then : 9442 $as_echo_n "(cached) " >&6 9443else 9444 $RM conftest* 9445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9446 9447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9448 (eval $ac_compile) 2>&5 9449 ac_status=$? 9450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9451 test $ac_status = 0; } 2>conftest.err; then 9452 soname=conftest 9453 lib=conftest 9454 libobjs=conftest.$ac_objext 9455 deplibs= 9456 wl=$lt_prog_compiler_wl 9457 pic_flag=$lt_prog_compiler_pic 9458 compiler_flags=-v 9459 linker_flags=-v 9460 verstring= 9461 output_objdir=. 9462 libname=conftest 9463 lt_save_allow_undefined_flag=$allow_undefined_flag 9464 allow_undefined_flag= 9465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9466 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9467 ac_status=$? 9468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9469 test $ac_status = 0; } 9470 then 9471 lt_cv_archive_cmds_need_lc=no 9472 else 9473 lt_cv_archive_cmds_need_lc=yes 9474 fi 9475 allow_undefined_flag=$lt_save_allow_undefined_flag 9476 else 9477 cat conftest.err 1>&5 9478 fi 9479 $RM conftest* 9480 9481fi 9482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9483$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9484 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9485 ;; 9486 esac 9487 fi 9488 ;; 9489esac 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9648$as_echo_n "checking dynamic linker characteristics... " >&6; } 9649 9650if test "$GCC" = yes; then 9651 case $host_os in 9652 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9653 *) lt_awk_arg="/^libraries:/" ;; 9654 esac 9655 case $host_os in 9656 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9657 *) lt_sed_strip_eq="s,=/,/,g" ;; 9658 esac 9659 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9660 case $lt_search_path_spec in 9661 *\;*) 9662 # if the path contains ";" then we assume it to be the separator 9663 # otherwise default to the standard path separator (i.e. ":") - it is 9664 # assumed that no part of a normal pathname contains ";" but that should 9665 # okay in the real world where ";" in dirpaths is itself problematic. 9666 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9667 ;; 9668 *) 9669 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9670 ;; 9671 esac 9672 # Ok, now we have the path, separated by spaces, we can step through it 9673 # and add multilib dir if necessary. 9674 lt_tmp_lt_search_path_spec= 9675 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9676 for lt_sys_path in $lt_search_path_spec; do 9677 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9678 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9679 else 9680 test -d "$lt_sys_path" && \ 9681 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9682 fi 9683 done 9684 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9685BEGIN {RS=" "; FS="/|\n";} { 9686 lt_foo=""; 9687 lt_count=0; 9688 for (lt_i = NF; lt_i > 0; lt_i--) { 9689 if ($lt_i != "" && $lt_i != ".") { 9690 if ($lt_i == "..") { 9691 lt_count++; 9692 } else { 9693 if (lt_count == 0) { 9694 lt_foo="/" $lt_i lt_foo; 9695 } else { 9696 lt_count--; 9697 } 9698 } 9699 } 9700 } 9701 if (lt_foo != "") { lt_freq[lt_foo]++; } 9702 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9703}'` 9704 # AWK program above erroneously prepends '/' to C:/dos/paths 9705 # for these hosts. 9706 case $host_os in 9707 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9708 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9709 esac 9710 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9711else 9712 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9713fi 9714library_names_spec= 9715libname_spec='lib$name' 9716soname_spec= 9717shrext_cmds=".so" 9718postinstall_cmds= 9719postuninstall_cmds= 9720finish_cmds= 9721finish_eval= 9722shlibpath_var= 9723shlibpath_overrides_runpath=unknown 9724version_type=none 9725dynamic_linker="$host_os ld.so" 9726sys_lib_dlsearch_path_spec="/lib /usr/lib" 9727need_lib_prefix=unknown 9728hardcode_into_libs=no 9729 9730# when you set need_version to no, make sure it does not cause -set_version 9731# flags to be left without arguments 9732need_version=unknown 9733 9734case $host_os in 9735aix3*) 9736 version_type=linux 9737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9738 shlibpath_var=LIBPATH 9739 9740 # AIX 3 has no versioning support, so we append a major version to the name. 9741 soname_spec='${libname}${release}${shared_ext}$major' 9742 ;; 9743 9744aix[4-9]*) 9745 version_type=linux 9746 need_lib_prefix=no 9747 need_version=no 9748 hardcode_into_libs=yes 9749 if test "$host_cpu" = ia64; then 9750 # AIX 5 supports IA64 9751 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9752 shlibpath_var=LD_LIBRARY_PATH 9753 else 9754 # With GCC up to 2.95.x, collect2 would create an import file 9755 # for dependence libraries. The import file would start with 9756 # the line `#! .'. This would cause the generated library to 9757 # depend on `.', always an invalid library. This was fixed in 9758 # development snapshots of GCC prior to 3.0. 9759 case $host_os in 9760 aix4 | aix4.[01] | aix4.[01].*) 9761 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9762 echo ' yes ' 9763 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9764 : 9765 else 9766 can_build_shared=no 9767 fi 9768 ;; 9769 esac 9770 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9771 # soname into executable. Probably we can add versioning support to 9772 # collect2, so additional links can be useful in future. 9773 if test "$aix_use_runtimelinking" = yes; then 9774 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9775 # instead of lib<name>.a to let people know that these are not 9776 # typical AIX shared libraries. 9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9778 else 9779 # We preserve .a as extension for shared libraries through AIX4.2 9780 # and later when we are not doing run time linking. 9781 library_names_spec='${libname}${release}.a $libname.a' 9782 soname_spec='${libname}${release}${shared_ext}$major' 9783 fi 9784 shlibpath_var=LIBPATH 9785 fi 9786 ;; 9787 9788amigaos*) 9789 case $host_cpu in 9790 powerpc) 9791 # Since July 2007 AmigaOS4 officially supports .so libraries. 9792 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9794 ;; 9795 m68k) 9796 library_names_spec='$libname.ixlibrary $libname.a' 9797 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9798 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' 9799 ;; 9800 esac 9801 ;; 9802 9803beos*) 9804 library_names_spec='${libname}${shared_ext}' 9805 dynamic_linker="$host_os ld.so" 9806 shlibpath_var=LIBRARY_PATH 9807 ;; 9808 9809bsdi[45]*) 9810 version_type=linux 9811 need_version=no 9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9813 soname_spec='${libname}${release}${shared_ext}$major' 9814 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9815 shlibpath_var=LD_LIBRARY_PATH 9816 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9817 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9818 # the default ld.so.conf also contains /usr/contrib/lib and 9819 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9820 # libtool to hard-code these into programs 9821 ;; 9822 9823cygwin* | mingw* | pw32* | cegcc*) 9824 version_type=windows 9825 shrext_cmds=".dll" 9826 need_version=no 9827 need_lib_prefix=no 9828 9829 case $GCC,$host_os in 9830 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9831 library_names_spec='$libname.dll.a' 9832 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9833 postinstall_cmds='base_file=`basename \${file}`~ 9834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9835 dldir=$destdir/`dirname \$dlpath`~ 9836 test -d \$dldir || mkdir -p \$dldir~ 9837 $install_prog $dir/$dlname \$dldir/$dlname~ 9838 chmod a+x \$dldir/$dlname~ 9839 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9840 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9841 fi' 9842 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9843 dlpath=$dir/\$dldll~ 9844 $RM \$dlpath' 9845 shlibpath_overrides_runpath=yes 9846 9847 case $host_os in 9848 cygwin*) 9849 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9850 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9851 9852 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9853 ;; 9854 mingw* | cegcc*) 9855 # MinGW DLLs use traditional 'lib' prefix 9856 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9857 ;; 9858 pw32*) 9859 # pw32 DLLs use 'pw' prefix rather than 'lib' 9860 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9861 ;; 9862 esac 9863 ;; 9864 9865 *) 9866 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9867 ;; 9868 esac 9869 dynamic_linker='Win32 ld.exe' 9870 # FIXME: first we should search . and the directory the executable is in 9871 shlibpath_var=PATH 9872 ;; 9873 9874darwin* | rhapsody*) 9875 dynamic_linker="$host_os dyld" 9876 version_type=darwin 9877 need_lib_prefix=no 9878 need_version=no 9879 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9880 soname_spec='${libname}${release}${major}$shared_ext' 9881 shlibpath_overrides_runpath=yes 9882 shlibpath_var=DYLD_LIBRARY_PATH 9883 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9884 9885 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9887 ;; 9888 9889dgux*) 9890 version_type=linux 9891 need_lib_prefix=no 9892 need_version=no 9893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9894 soname_spec='${libname}${release}${shared_ext}$major' 9895 shlibpath_var=LD_LIBRARY_PATH 9896 ;; 9897 9898freebsd* | dragonfly*) 9899 # DragonFly does not have aout. When/if they implement a new 9900 # versioning mechanism, adjust this. 9901 if test -x /usr/bin/objformat; then 9902 objformat=`/usr/bin/objformat` 9903 else 9904 case $host_os in 9905 freebsd[23].*) objformat=aout ;; 9906 *) objformat=elf ;; 9907 esac 9908 fi 9909 version_type=freebsd-$objformat 9910 case $version_type in 9911 freebsd-elf*) 9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9913 need_version=no 9914 need_lib_prefix=no 9915 ;; 9916 freebsd-*) 9917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9918 need_version=yes 9919 ;; 9920 esac 9921 shlibpath_var=LD_LIBRARY_PATH 9922 case $host_os in 9923 freebsd2.*) 9924 shlibpath_overrides_runpath=yes 9925 ;; 9926 freebsd3.[01]* | freebsdelf3.[01]*) 9927 shlibpath_overrides_runpath=yes 9928 hardcode_into_libs=yes 9929 ;; 9930 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9931 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9932 shlibpath_overrides_runpath=no 9933 hardcode_into_libs=yes 9934 ;; 9935 *) # from 4.6 on, and DragonFly 9936 shlibpath_overrides_runpath=yes 9937 hardcode_into_libs=yes 9938 ;; 9939 esac 9940 ;; 9941 9942gnu*) 9943 version_type=linux 9944 need_lib_prefix=no 9945 need_version=no 9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9947 soname_spec='${libname}${release}${shared_ext}$major' 9948 shlibpath_var=LD_LIBRARY_PATH 9949 hardcode_into_libs=yes 9950 ;; 9951 9952haiku*) 9953 version_type=linux 9954 need_lib_prefix=no 9955 need_version=no 9956 dynamic_linker="$host_os runtime_loader" 9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9958 soname_spec='${libname}${release}${shared_ext}$major' 9959 shlibpath_var=LIBRARY_PATH 9960 shlibpath_overrides_runpath=yes 9961 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 9962 hardcode_into_libs=yes 9963 ;; 9964 9965hpux9* | hpux10* | hpux11*) 9966 # Give a soname corresponding to the major version so that dld.sl refuses to 9967 # link against other versions. 9968 version_type=sunos 9969 need_lib_prefix=no 9970 need_version=no 9971 case $host_cpu in 9972 ia64*) 9973 shrext_cmds='.so' 9974 hardcode_into_libs=yes 9975 dynamic_linker="$host_os dld.so" 9976 shlibpath_var=LD_LIBRARY_PATH 9977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9979 soname_spec='${libname}${release}${shared_ext}$major' 9980 if test "X$HPUX_IA64_MODE" = X32; then 9981 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9982 else 9983 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9984 fi 9985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9986 ;; 9987 hppa*64*) 9988 shrext_cmds='.sl' 9989 hardcode_into_libs=yes 9990 dynamic_linker="$host_os dld.sl" 9991 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9994 soname_spec='${libname}${release}${shared_ext}$major' 9995 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9997 ;; 9998 *) 9999 shrext_cmds='.sl' 10000 dynamic_linker="$host_os dld.sl" 10001 shlibpath_var=SHLIB_PATH 10002 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10004 soname_spec='${libname}${release}${shared_ext}$major' 10005 ;; 10006 esac 10007 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10008 postinstall_cmds='chmod 555 $lib' 10009 # or fails outright, so override atomically: 10010 install_override_mode=555 10011 ;; 10012 10013interix[3-9]*) 10014 version_type=linux 10015 need_lib_prefix=no 10016 need_version=no 10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10018 soname_spec='${libname}${release}${shared_ext}$major' 10019 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10020 shlibpath_var=LD_LIBRARY_PATH 10021 shlibpath_overrides_runpath=no 10022 hardcode_into_libs=yes 10023 ;; 10024 10025irix5* | irix6* | nonstopux*) 10026 case $host_os in 10027 nonstopux*) version_type=nonstopux ;; 10028 *) 10029 if test "$lt_cv_prog_gnu_ld" = yes; then 10030 version_type=linux 10031 else 10032 version_type=irix 10033 fi ;; 10034 esac 10035 need_lib_prefix=no 10036 need_version=no 10037 soname_spec='${libname}${release}${shared_ext}$major' 10038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10039 case $host_os in 10040 irix5* | nonstopux*) 10041 libsuff= shlibsuff= 10042 ;; 10043 *) 10044 case $LD in # libtool.m4 will add one of these switches to LD 10045 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10046 libsuff= shlibsuff= libmagic=32-bit;; 10047 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10048 libsuff=32 shlibsuff=N32 libmagic=N32;; 10049 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10050 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10051 *) libsuff= shlibsuff= libmagic=never-match;; 10052 esac 10053 ;; 10054 esac 10055 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10056 shlibpath_overrides_runpath=no 10057 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10058 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10059 hardcode_into_libs=yes 10060 ;; 10061 10062# No shared lib support for Linux oldld, aout, or coff. 10063linux*oldld* | linux*aout* | linux*coff*) 10064 dynamic_linker=no 10065 ;; 10066 10067# This must be Linux ELF. 10068 10069# uclinux* changes (here and below) have been submitted to the libtool 10070# project, but have not yet been accepted: they are GCC-local changes 10071# for the time being. (See 10072# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 10073linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 10074 version_type=linux 10075 need_lib_prefix=no 10076 need_version=no 10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10078 soname_spec='${libname}${release}${shared_ext}$major' 10079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10080 shlibpath_var=LD_LIBRARY_PATH 10081 shlibpath_overrides_runpath=no 10082 10083 # Some binutils ld are patched to set DT_RUNPATH 10084 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10085 $as_echo_n "(cached) " >&6 10086else 10087 lt_cv_shlibpath_overrides_runpath=no 10088 save_LDFLAGS=$LDFLAGS 10089 save_libdir=$libdir 10090 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10091 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10092 if test x$gcc_no_link = xyes; then 10093 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10094fi 10095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10096/* end confdefs.h. */ 10097 10098int 10099main () 10100{ 10101 10102 ; 10103 return 0; 10104} 10105_ACEOF 10106if ac_fn_c_try_link "$LINENO"; then : 10107 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10108 lt_cv_shlibpath_overrides_runpath=yes 10109fi 10110fi 10111rm -f core conftest.err conftest.$ac_objext \ 10112 conftest$ac_exeext conftest.$ac_ext 10113 LDFLAGS=$save_LDFLAGS 10114 libdir=$save_libdir 10115 10116fi 10117 10118 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10119 10120 # This implies no fast_install, which is unacceptable. 10121 # Some rework will be needed to allow for fast_install 10122 # before this can be enabled. 10123 hardcode_into_libs=yes 10124 10125 # Append ld.so.conf contents to the search path 10126 if test -f /etc/ld.so.conf; then 10127 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' ' '` 10128 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10129 fi 10130 10131 # We used to test for /lib/ld.so.1 and disable shared libraries on 10132 # powerpc, because MkLinux only supported shared libraries with the 10133 # GNU dynamic linker. Since this was broken with cross compilers, 10134 # most powerpc-linux boxes support dynamic linking these days and 10135 # people can always --disable-shared, the test was removed, and we 10136 # assume the GNU/Linux dynamic linker is in use. 10137 dynamic_linker='GNU/Linux ld.so' 10138 ;; 10139 10140netbsd*) 10141 version_type=sunos 10142 need_lib_prefix=no 10143 need_version=no 10144 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10146 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10147 dynamic_linker='NetBSD (a.out) ld.so' 10148 else 10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10150 soname_spec='${libname}${release}${shared_ext}$major' 10151 dynamic_linker='NetBSD ld.elf_so' 10152 fi 10153 shlibpath_var=LD_LIBRARY_PATH 10154 shlibpath_overrides_runpath=yes 10155 hardcode_into_libs=yes 10156 ;; 10157 10158newsos6) 10159 version_type=linux 10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10161 shlibpath_var=LD_LIBRARY_PATH 10162 shlibpath_overrides_runpath=yes 10163 ;; 10164 10165*nto* | *qnx*) 10166 version_type=qnx 10167 need_lib_prefix=no 10168 need_version=no 10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10170 soname_spec='${libname}${release}${shared_ext}$major' 10171 shlibpath_var=LD_LIBRARY_PATH 10172 shlibpath_overrides_runpath=no 10173 hardcode_into_libs=yes 10174 dynamic_linker='ldqnx.so' 10175 ;; 10176 10177openbsd*) 10178 version_type=sunos 10179 sys_lib_dlsearch_path_spec="/usr/lib" 10180 need_lib_prefix=no 10181 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10182 case $host_os in 10183 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10184 *) need_version=no ;; 10185 esac 10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10188 shlibpath_var=LD_LIBRARY_PATH 10189 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10190 case $host_os in 10191 openbsd2.[89] | openbsd2.[89].*) 10192 shlibpath_overrides_runpath=no 10193 ;; 10194 *) 10195 shlibpath_overrides_runpath=yes 10196 ;; 10197 esac 10198 else 10199 shlibpath_overrides_runpath=yes 10200 fi 10201 ;; 10202 10203os2*) 10204 libname_spec='$name' 10205 shrext_cmds=".dll" 10206 need_lib_prefix=no 10207 library_names_spec='$libname${shared_ext} $libname.a' 10208 dynamic_linker='OS/2 ld.exe' 10209 shlibpath_var=LIBPATH 10210 ;; 10211 10212osf3* | osf4* | osf5*) 10213 version_type=osf 10214 need_lib_prefix=no 10215 need_version=no 10216 soname_spec='${libname}${release}${shared_ext}$major' 10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10218 shlibpath_var=LD_LIBRARY_PATH 10219 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10220 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10221 ;; 10222 10223rdos*) 10224 dynamic_linker=no 10225 ;; 10226 10227solaris*) 10228 version_type=linux 10229 need_lib_prefix=no 10230 need_version=no 10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10232 soname_spec='${libname}${release}${shared_ext}$major' 10233 shlibpath_var=LD_LIBRARY_PATH 10234 shlibpath_overrides_runpath=yes 10235 hardcode_into_libs=yes 10236 # ldd complains unless libraries are executable 10237 postinstall_cmds='chmod +x $lib' 10238 ;; 10239 10240sunos4*) 10241 version_type=sunos 10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10243 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10244 shlibpath_var=LD_LIBRARY_PATH 10245 shlibpath_overrides_runpath=yes 10246 if test "$with_gnu_ld" = yes; then 10247 need_lib_prefix=no 10248 fi 10249 need_version=yes 10250 ;; 10251 10252sysv4 | sysv4.3*) 10253 version_type=linux 10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10255 soname_spec='${libname}${release}${shared_ext}$major' 10256 shlibpath_var=LD_LIBRARY_PATH 10257 case $host_vendor in 10258 sni) 10259 shlibpath_overrides_runpath=no 10260 need_lib_prefix=no 10261 runpath_var=LD_RUN_PATH 10262 ;; 10263 siemens) 10264 need_lib_prefix=no 10265 ;; 10266 motorola) 10267 need_lib_prefix=no 10268 need_version=no 10269 shlibpath_overrides_runpath=no 10270 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10271 ;; 10272 esac 10273 ;; 10274 10275sysv4*MP*) 10276 if test -d /usr/nec ;then 10277 version_type=linux 10278 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10279 soname_spec='$libname${shared_ext}.$major' 10280 shlibpath_var=LD_LIBRARY_PATH 10281 fi 10282 ;; 10283 10284sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10285 version_type=freebsd-elf 10286 need_lib_prefix=no 10287 need_version=no 10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10289 soname_spec='${libname}${release}${shared_ext}$major' 10290 shlibpath_var=LD_LIBRARY_PATH 10291 shlibpath_overrides_runpath=yes 10292 hardcode_into_libs=yes 10293 if test "$with_gnu_ld" = yes; then 10294 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10295 else 10296 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10297 case $host_os in 10298 sco3.2v5*) 10299 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10300 ;; 10301 esac 10302 fi 10303 sys_lib_dlsearch_path_spec='/usr/lib' 10304 ;; 10305 10306tpf*) 10307 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10308 version_type=linux 10309 need_lib_prefix=no 10310 need_version=no 10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10312 shlibpath_var=LD_LIBRARY_PATH 10313 shlibpath_overrides_runpath=no 10314 hardcode_into_libs=yes 10315 ;; 10316 10317uts4*) 10318 version_type=linux 10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10320 soname_spec='${libname}${release}${shared_ext}$major' 10321 shlibpath_var=LD_LIBRARY_PATH 10322 ;; 10323 10324*) 10325 dynamic_linker=no 10326 ;; 10327esac 10328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10329$as_echo "$dynamic_linker" >&6; } 10330test "$dynamic_linker" = no && can_build_shared=no 10331 10332variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10333if test "$GCC" = yes; then 10334 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10335fi 10336 10337if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10338 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10339fi 10340if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10341 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10342fi 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10436$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10437hardcode_action= 10438if test -n "$hardcode_libdir_flag_spec" || 10439 test -n "$runpath_var" || 10440 test "X$hardcode_automatic" = "Xyes" ; then 10441 10442 # We can hardcode non-existent directories. 10443 if test "$hardcode_direct" != no && 10444 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10445 # have to relink, otherwise we might link with an installed library 10446 # when we should be linking with a yet-to-be-installed one 10447 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10448 test "$hardcode_minus_L" != no; then 10449 # Linking always hardcodes the temporary library directory. 10450 hardcode_action=relink 10451 else 10452 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10453 hardcode_action=immediate 10454 fi 10455else 10456 # We cannot hardcode anything, or else we can only hardcode existing 10457 # directories. 10458 hardcode_action=unsupported 10459fi 10460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10461$as_echo "$hardcode_action" >&6; } 10462 10463if test "$hardcode_action" = relink || 10464 test "$inherit_rpath" = yes; then 10465 # Fast installation is not supported 10466 enable_fast_install=no 10467elif test "$shlibpath_overrides_runpath" = yes || 10468 test "$enable_shared" = no; then 10469 # Fast installation is not necessary 10470 enable_fast_install=needless 10471fi 10472 10473 10474 10475 10476 10477 10478 if test "x$enable_dlopen" != xyes; then 10479 enable_dlopen=unknown 10480 enable_dlopen_self=unknown 10481 enable_dlopen_self_static=unknown 10482else 10483 lt_cv_dlopen=no 10484 lt_cv_dlopen_libs= 10485 10486 case $host_os in 10487 beos*) 10488 lt_cv_dlopen="load_add_on" 10489 lt_cv_dlopen_libs= 10490 lt_cv_dlopen_self=yes 10491 ;; 10492 10493 mingw* | pw32* | cegcc*) 10494 lt_cv_dlopen="LoadLibrary" 10495 lt_cv_dlopen_libs= 10496 ;; 10497 10498 cygwin*) 10499 lt_cv_dlopen="dlopen" 10500 lt_cv_dlopen_libs= 10501 ;; 10502 10503 darwin*) 10504 # if libdl is installed we need to link against it 10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10506$as_echo_n "checking for dlopen in -ldl... " >&6; } 10507if ${ac_cv_lib_dl_dlopen+:} false; then : 10508 $as_echo_n "(cached) " >&6 10509else 10510 ac_check_lib_save_LIBS=$LIBS 10511LIBS="-ldl $LIBS" 10512if test x$gcc_no_link = xyes; then 10513 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10514fi 10515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10516/* end confdefs.h. */ 10517 10518/* Override any GCC internal prototype to avoid an error. 10519 Use char because int might match the return type of a GCC 10520 builtin and then its argument prototype would still apply. */ 10521#ifdef __cplusplus 10522extern "C" 10523#endif 10524char dlopen (); 10525int 10526main () 10527{ 10528return dlopen (); 10529 ; 10530 return 0; 10531} 10532_ACEOF 10533if ac_fn_c_try_link "$LINENO"; then : 10534 ac_cv_lib_dl_dlopen=yes 10535else 10536 ac_cv_lib_dl_dlopen=no 10537fi 10538rm -f core conftest.err conftest.$ac_objext \ 10539 conftest$ac_exeext conftest.$ac_ext 10540LIBS=$ac_check_lib_save_LIBS 10541fi 10542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10543$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10544if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10545 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10546else 10547 10548 lt_cv_dlopen="dyld" 10549 lt_cv_dlopen_libs= 10550 lt_cv_dlopen_self=yes 10551 10552fi 10553 10554 ;; 10555 10556 *) 10557 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10558if test "x$ac_cv_func_shl_load" = xyes; then : 10559 lt_cv_dlopen="shl_load" 10560else 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10562$as_echo_n "checking for shl_load in -ldld... " >&6; } 10563if ${ac_cv_lib_dld_shl_load+:} false; then : 10564 $as_echo_n "(cached) " >&6 10565else 10566 ac_check_lib_save_LIBS=$LIBS 10567LIBS="-ldld $LIBS" 10568if test x$gcc_no_link = xyes; then 10569 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10570fi 10571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10572/* end confdefs.h. */ 10573 10574/* Override any GCC internal prototype to avoid an error. 10575 Use char because int might match the return type of a GCC 10576 builtin and then its argument prototype would still apply. */ 10577#ifdef __cplusplus 10578extern "C" 10579#endif 10580char shl_load (); 10581int 10582main () 10583{ 10584return shl_load (); 10585 ; 10586 return 0; 10587} 10588_ACEOF 10589if ac_fn_c_try_link "$LINENO"; then : 10590 ac_cv_lib_dld_shl_load=yes 10591else 10592 ac_cv_lib_dld_shl_load=no 10593fi 10594rm -f core conftest.err conftest.$ac_objext \ 10595 conftest$ac_exeext conftest.$ac_ext 10596LIBS=$ac_check_lib_save_LIBS 10597fi 10598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10599$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10600if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10601 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10602else 10603 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10604if test "x$ac_cv_func_dlopen" = xyes; then : 10605 lt_cv_dlopen="dlopen" 10606else 10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10608$as_echo_n "checking for dlopen in -ldl... " >&6; } 10609if ${ac_cv_lib_dl_dlopen+:} false; then : 10610 $as_echo_n "(cached) " >&6 10611else 10612 ac_check_lib_save_LIBS=$LIBS 10613LIBS="-ldl $LIBS" 10614if test x$gcc_no_link = xyes; then 10615 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10616fi 10617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10618/* end confdefs.h. */ 10619 10620/* Override any GCC internal prototype to avoid an error. 10621 Use char because int might match the return type of a GCC 10622 builtin and then its argument prototype would still apply. */ 10623#ifdef __cplusplus 10624extern "C" 10625#endif 10626char dlopen (); 10627int 10628main () 10629{ 10630return dlopen (); 10631 ; 10632 return 0; 10633} 10634_ACEOF 10635if ac_fn_c_try_link "$LINENO"; then : 10636 ac_cv_lib_dl_dlopen=yes 10637else 10638 ac_cv_lib_dl_dlopen=no 10639fi 10640rm -f core conftest.err conftest.$ac_objext \ 10641 conftest$ac_exeext conftest.$ac_ext 10642LIBS=$ac_check_lib_save_LIBS 10643fi 10644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10645$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10646if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10648else 10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10650$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10651if ${ac_cv_lib_svld_dlopen+:} false; then : 10652 $as_echo_n "(cached) " >&6 10653else 10654 ac_check_lib_save_LIBS=$LIBS 10655LIBS="-lsvld $LIBS" 10656if test x$gcc_no_link = xyes; then 10657 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10658fi 10659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10660/* end confdefs.h. */ 10661 10662/* Override any GCC internal prototype to avoid an error. 10663 Use char because int might match the return type of a GCC 10664 builtin and then its argument prototype would still apply. */ 10665#ifdef __cplusplus 10666extern "C" 10667#endif 10668char dlopen (); 10669int 10670main () 10671{ 10672return dlopen (); 10673 ; 10674 return 0; 10675} 10676_ACEOF 10677if ac_fn_c_try_link "$LINENO"; then : 10678 ac_cv_lib_svld_dlopen=yes 10679else 10680 ac_cv_lib_svld_dlopen=no 10681fi 10682rm -f core conftest.err conftest.$ac_objext \ 10683 conftest$ac_exeext conftest.$ac_ext 10684LIBS=$ac_check_lib_save_LIBS 10685fi 10686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10687$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10688if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10689 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10690else 10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10692$as_echo_n "checking for dld_link in -ldld... " >&6; } 10693if ${ac_cv_lib_dld_dld_link+:} false; then : 10694 $as_echo_n "(cached) " >&6 10695else 10696 ac_check_lib_save_LIBS=$LIBS 10697LIBS="-ldld $LIBS" 10698if test x$gcc_no_link = xyes; then 10699 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10700fi 10701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10702/* end confdefs.h. */ 10703 10704/* Override any GCC internal prototype to avoid an error. 10705 Use char because int might match the return type of a GCC 10706 builtin and then its argument prototype would still apply. */ 10707#ifdef __cplusplus 10708extern "C" 10709#endif 10710char dld_link (); 10711int 10712main () 10713{ 10714return dld_link (); 10715 ; 10716 return 0; 10717} 10718_ACEOF 10719if ac_fn_c_try_link "$LINENO"; then : 10720 ac_cv_lib_dld_dld_link=yes 10721else 10722 ac_cv_lib_dld_dld_link=no 10723fi 10724rm -f core conftest.err conftest.$ac_objext \ 10725 conftest$ac_exeext conftest.$ac_ext 10726LIBS=$ac_check_lib_save_LIBS 10727fi 10728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10729$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10730if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10731 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10732fi 10733 10734 10735fi 10736 10737 10738fi 10739 10740 10741fi 10742 10743 10744fi 10745 10746 10747fi 10748 10749 ;; 10750 esac 10751 10752 if test "x$lt_cv_dlopen" != xno; then 10753 enable_dlopen=yes 10754 else 10755 enable_dlopen=no 10756 fi 10757 10758 case $lt_cv_dlopen in 10759 dlopen) 10760 save_CPPFLAGS="$CPPFLAGS" 10761 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10762 10763 save_LDFLAGS="$LDFLAGS" 10764 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10765 10766 save_LIBS="$LIBS" 10767 LIBS="$lt_cv_dlopen_libs $LIBS" 10768 10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10770$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10771if ${lt_cv_dlopen_self+:} false; then : 10772 $as_echo_n "(cached) " >&6 10773else 10774 if test "$cross_compiling" = yes; then : 10775 lt_cv_dlopen_self=cross 10776else 10777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10778 lt_status=$lt_dlunknown 10779 cat > conftest.$ac_ext <<_LT_EOF 10780#line 10780 "configure" 10781#include "confdefs.h" 10782 10783#if HAVE_DLFCN_H 10784#include <dlfcn.h> 10785#endif 10786 10787#include <stdio.h> 10788 10789#ifdef RTLD_GLOBAL 10790# define LT_DLGLOBAL RTLD_GLOBAL 10791#else 10792# ifdef DL_GLOBAL 10793# define LT_DLGLOBAL DL_GLOBAL 10794# else 10795# define LT_DLGLOBAL 0 10796# endif 10797#endif 10798 10799/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10800 find out it does not work in some platform. */ 10801#ifndef LT_DLLAZY_OR_NOW 10802# ifdef RTLD_LAZY 10803# define LT_DLLAZY_OR_NOW RTLD_LAZY 10804# else 10805# ifdef DL_LAZY 10806# define LT_DLLAZY_OR_NOW DL_LAZY 10807# else 10808# ifdef RTLD_NOW 10809# define LT_DLLAZY_OR_NOW RTLD_NOW 10810# else 10811# ifdef DL_NOW 10812# define LT_DLLAZY_OR_NOW DL_NOW 10813# else 10814# define LT_DLLAZY_OR_NOW 0 10815# endif 10816# endif 10817# endif 10818# endif 10819#endif 10820 10821/* When -fvisbility=hidden is used, assume the code has been annotated 10822 correspondingly for the symbols needed. */ 10823#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10824void fnord () __attribute__((visibility("default"))); 10825#endif 10826 10827void fnord () { int i=42; } 10828int main () 10829{ 10830 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10831 int status = $lt_dlunknown; 10832 10833 if (self) 10834 { 10835 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10836 else 10837 { 10838 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10839 else puts (dlerror ()); 10840 } 10841 /* dlclose (self); */ 10842 } 10843 else 10844 puts (dlerror ()); 10845 10846 return status; 10847} 10848_LT_EOF 10849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10850 (eval $ac_link) 2>&5 10851 ac_status=$? 10852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10853 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10854 (./conftest; exit; ) >&5 2>/dev/null 10855 lt_status=$? 10856 case x$lt_status in 10857 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10858 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10859 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10860 esac 10861 else : 10862 # compilation failed 10863 lt_cv_dlopen_self=no 10864 fi 10865fi 10866rm -fr conftest* 10867 10868 10869fi 10870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10871$as_echo "$lt_cv_dlopen_self" >&6; } 10872 10873 if test "x$lt_cv_dlopen_self" = xyes; then 10874 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10876$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10877if ${lt_cv_dlopen_self_static+:} false; then : 10878 $as_echo_n "(cached) " >&6 10879else 10880 if test "$cross_compiling" = yes; then : 10881 lt_cv_dlopen_self_static=cross 10882else 10883 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10884 lt_status=$lt_dlunknown 10885 cat > conftest.$ac_ext <<_LT_EOF 10886#line 10886 "configure" 10887#include "confdefs.h" 10888 10889#if HAVE_DLFCN_H 10890#include <dlfcn.h> 10891#endif 10892 10893#include <stdio.h> 10894 10895#ifdef RTLD_GLOBAL 10896# define LT_DLGLOBAL RTLD_GLOBAL 10897#else 10898# ifdef DL_GLOBAL 10899# define LT_DLGLOBAL DL_GLOBAL 10900# else 10901# define LT_DLGLOBAL 0 10902# endif 10903#endif 10904 10905/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10906 find out it does not work in some platform. */ 10907#ifndef LT_DLLAZY_OR_NOW 10908# ifdef RTLD_LAZY 10909# define LT_DLLAZY_OR_NOW RTLD_LAZY 10910# else 10911# ifdef DL_LAZY 10912# define LT_DLLAZY_OR_NOW DL_LAZY 10913# else 10914# ifdef RTLD_NOW 10915# define LT_DLLAZY_OR_NOW RTLD_NOW 10916# else 10917# ifdef DL_NOW 10918# define LT_DLLAZY_OR_NOW DL_NOW 10919# else 10920# define LT_DLLAZY_OR_NOW 0 10921# endif 10922# endif 10923# endif 10924# endif 10925#endif 10926 10927/* When -fvisbility=hidden is used, assume the code has been annotated 10928 correspondingly for the symbols needed. */ 10929#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10930void fnord () __attribute__((visibility("default"))); 10931#endif 10932 10933void fnord () { int i=42; } 10934int main () 10935{ 10936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10937 int status = $lt_dlunknown; 10938 10939 if (self) 10940 { 10941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10942 else 10943 { 10944 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10945 else puts (dlerror ()); 10946 } 10947 /* dlclose (self); */ 10948 } 10949 else 10950 puts (dlerror ()); 10951 10952 return status; 10953} 10954_LT_EOF 10955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10956 (eval $ac_link) 2>&5 10957 ac_status=$? 10958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10959 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10960 (./conftest; exit; ) >&5 2>/dev/null 10961 lt_status=$? 10962 case x$lt_status in 10963 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10964 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10965 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10966 esac 10967 else : 10968 # compilation failed 10969 lt_cv_dlopen_self_static=no 10970 fi 10971fi 10972rm -fr conftest* 10973 10974 10975fi 10976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10977$as_echo "$lt_cv_dlopen_self_static" >&6; } 10978 fi 10979 10980 CPPFLAGS="$save_CPPFLAGS" 10981 LDFLAGS="$save_LDFLAGS" 10982 LIBS="$save_LIBS" 10983 ;; 10984 esac 10985 10986 case $lt_cv_dlopen_self in 10987 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10988 *) enable_dlopen_self=unknown ;; 10989 esac 10990 10991 case $lt_cv_dlopen_self_static in 10992 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10993 *) enable_dlopen_self_static=unknown ;; 10994 esac 10995fi 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013striplib= 11014old_striplib= 11015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11016$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11017if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11018 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11019 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11021$as_echo "yes" >&6; } 11022else 11023# FIXME - insert some real tests, host_os isn't really good enough 11024 case $host_os in 11025 darwin*) 11026 if test -n "$STRIP" ; then 11027 striplib="$STRIP -x" 11028 old_striplib="$STRIP -S" 11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11030$as_echo "yes" >&6; } 11031 else 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11033$as_echo "no" >&6; } 11034 fi 11035 ;; 11036 *) 11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11038$as_echo "no" >&6; } 11039 ;; 11040 esac 11041fi 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 # Report which library types will actually be built 11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11056$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11058$as_echo "$can_build_shared" >&6; } 11059 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11061$as_echo_n "checking whether to build shared libraries... " >&6; } 11062 test "$can_build_shared" = "no" && enable_shared=no 11063 11064 # On AIX, shared libraries and static libraries use the same namespace, and 11065 # are all built from PIC. 11066 case $host_os in 11067 aix3*) 11068 test "$enable_shared" = yes && enable_static=no 11069 if test -n "$RANLIB"; then 11070 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11071 postinstall_cmds='$RANLIB $lib' 11072 fi 11073 ;; 11074 11075 aix[4-9]*) 11076 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11077 test "$enable_shared" = yes && enable_static=no 11078 fi 11079 ;; 11080 esac 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11082$as_echo "$enable_shared" >&6; } 11083 11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11085$as_echo_n "checking whether to build static libraries... " >&6; } 11086 # Make sure either enable_shared or enable_static is yes. 11087 test "$enable_shared" = yes || enable_static=yes 11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11089$as_echo "$enable_static" >&6; } 11090 11091 11092 11093 11094fi 11095ac_ext=c 11096ac_cpp='$CPP $CPPFLAGS' 11097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11099ac_compiler_gnu=$ac_cv_c_compiler_gnu 11100 11101CC="$lt_save_CC" 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 ac_config_commands="$ac_config_commands libtool" 11116 11117 11118 11119 11120# Only expand once: 11121 11122 11123 11124 11125 11126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 11127$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 11128set x ${MAKE-make} 11129ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 11130if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 11131 $as_echo_n "(cached) " >&6 11132else 11133 cat >conftest.make <<\_ACEOF 11134SHELL = /bin/sh 11135all: 11136 @echo '@@@%%%=$(MAKE)=@@@%%%' 11137_ACEOF 11138# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 11139case `${MAKE-make} -f conftest.make 2>/dev/null` in 11140 *@@@%%%=?*=@@@%%%*) 11141 eval ac_cv_prog_make_${ac_make}_set=yes;; 11142 *) 11143 eval ac_cv_prog_make_${ac_make}_set=no;; 11144esac 11145rm -f conftest.make 11146fi 11147if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11149$as_echo "yes" >&6; } 11150 SET_MAKE= 11151else 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11153$as_echo "no" >&6; } 11154 SET_MAKE="MAKE=${MAKE-make}" 11155fi 11156 11157 11158# ------- 11159# Headers 11160# ------- 11161 11162# Sanity check for the cross-compilation case: 11163ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 11164if test "x$ac_cv_header_stdio_h" = xyes; then : 11165 : 11166else 11167 as_fn_error $? "Can't find stdio.h. 11168You must have a usable C system for the target already installed, at least 11169including headers and, preferably, the library, before you can configure 11170the Objective C runtime system. If necessary, install gcc now with 11171\`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." "$LINENO" 5 11172fi 11173 11174 11175 11176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11177$as_echo_n "checking for ANSI C header files... " >&6; } 11178if ${ac_cv_header_stdc+:} false; then : 11179 $as_echo_n "(cached) " >&6 11180else 11181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11182/* end confdefs.h. */ 11183#include <stdlib.h> 11184#include <stdarg.h> 11185#include <string.h> 11186#include <float.h> 11187 11188int 11189main () 11190{ 11191 11192 ; 11193 return 0; 11194} 11195_ACEOF 11196if ac_fn_c_try_compile "$LINENO"; then : 11197 ac_cv_header_stdc=yes 11198else 11199 ac_cv_header_stdc=no 11200fi 11201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11202 11203if test $ac_cv_header_stdc = yes; then 11204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11206/* end confdefs.h. */ 11207#include <string.h> 11208 11209_ACEOF 11210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11211 $EGREP "memchr" >/dev/null 2>&1; then : 11212 11213else 11214 ac_cv_header_stdc=no 11215fi 11216rm -f conftest* 11217 11218fi 11219 11220if test $ac_cv_header_stdc = yes; then 11221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11223/* end confdefs.h. */ 11224#include <stdlib.h> 11225 11226_ACEOF 11227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11228 $EGREP "free" >/dev/null 2>&1; then : 11229 11230else 11231 ac_cv_header_stdc=no 11232fi 11233rm -f conftest* 11234 11235fi 11236 11237if test $ac_cv_header_stdc = yes; then 11238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11239 if test "$cross_compiling" = yes; then : 11240 : 11241else 11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11243/* end confdefs.h. */ 11244#include <ctype.h> 11245#include <stdlib.h> 11246#if ((' ' & 0x0FF) == 0x020) 11247# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11248# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11249#else 11250# define ISLOWER(c) \ 11251 (('a' <= (c) && (c) <= 'i') \ 11252 || ('j' <= (c) && (c) <= 'r') \ 11253 || ('s' <= (c) && (c) <= 'z')) 11254# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11255#endif 11256 11257#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11258int 11259main () 11260{ 11261 int i; 11262 for (i = 0; i < 256; i++) 11263 if (XOR (islower (i), ISLOWER (i)) 11264 || toupper (i) != TOUPPER (i)) 11265 return 2; 11266 return 0; 11267} 11268_ACEOF 11269if ac_fn_c_try_run "$LINENO"; then : 11270 11271else 11272 ac_cv_header_stdc=no 11273fi 11274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11275 conftest.$ac_objext conftest.beam conftest.$ac_ext 11276fi 11277 11278fi 11279fi 11280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11281$as_echo "$ac_cv_header_stdc" >&6; } 11282if test $ac_cv_header_stdc = yes; then 11283 11284$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11285 11286fi 11287 11288 11289for ac_header in sched.h 11290do : 11291 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 11292if test "x$ac_cv_header_sched_h" = xyes; then : 11293 cat >>confdefs.h <<_ACEOF 11294#define HAVE_SCHED_H 1 11295_ACEOF 11296 11297fi 11298 11299done 11300 11301 11302# ----------- 11303# Miscellanea 11304# ----------- 11305 11306# Check if we have thread-local storage 11307 11308 11309 # Check whether --enable-tls was given. 11310if test "${enable_tls+set}" = set; then : 11311 enableval=$enable_tls; 11312 case "$enableval" in 11313 yes|no) ;; 11314 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; 11315 esac 11316 11317else 11318 enable_tls=yes 11319fi 11320 11321 11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5 11323$as_echo_n "checking whether the target supports thread-local storage... " >&6; } 11324if ${gcc_cv_have_tls+:} false; then : 11325 $as_echo_n "(cached) " >&6 11326else 11327 11328 if test "$cross_compiling" = yes; then : 11329 if test x$gcc_no_link = xyes; then 11330 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11331fi 11332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11333/* end confdefs.h. */ 11334__thread int a; int b; int main() { return a = b; } 11335_ACEOF 11336if ac_fn_c_try_link "$LINENO"; then : 11337 chktls_save_LDFLAGS="$LDFLAGS" 11338 case $host in 11339 *-*-linux* | -*-uclinuxfdpic*) 11340 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" 11341 ;; 11342 esac 11343 chktls_save_CFLAGS="$CFLAGS" 11344 CFLAGS="-fPIC $CFLAGS" 11345 if test x$gcc_no_link = xyes; then 11346 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11347fi 11348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11349/* end confdefs.h. */ 11350int f() { return 0; } 11351_ACEOF 11352if ac_fn_c_try_link "$LINENO"; then : 11353 if test x$gcc_no_link = xyes; then 11354 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11355fi 11356cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11357/* end confdefs.h. */ 11358__thread int a; int b; int f() { return a = b; } 11359_ACEOF 11360if ac_fn_c_try_link "$LINENO"; then : 11361 gcc_cv_have_tls=yes 11362else 11363 gcc_cv_have_tls=no 11364fi 11365rm -f core conftest.err conftest.$ac_objext \ 11366 conftest$ac_exeext conftest.$ac_ext 11367else 11368 gcc_cv_have_tls=yes 11369fi 11370rm -f core conftest.err conftest.$ac_objext \ 11371 conftest$ac_exeext conftest.$ac_ext 11372 CFLAGS="$chktls_save_CFLAGS" 11373 LDFLAGS="$chktls_save_LDFLAGS" 11374else 11375 gcc_cv_have_tls=no 11376fi 11377rm -f core conftest.err conftest.$ac_objext \ 11378 conftest$ac_exeext conftest.$ac_ext 11379 11380 11381else 11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11383/* end confdefs.h. */ 11384__thread int a; int b; int main() { return a = b; } 11385_ACEOF 11386if ac_fn_c_try_run "$LINENO"; then : 11387 chktls_save_LDFLAGS="$LDFLAGS" 11388 LDFLAGS="-static $LDFLAGS" 11389 if test x$gcc_no_link = xyes; then 11390 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11391fi 11392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11393/* end confdefs.h. */ 11394int main() { return 0; } 11395_ACEOF 11396if ac_fn_c_try_link "$LINENO"; then : 11397 if test "$cross_compiling" = yes; then : 11398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11400as_fn_error $? "cannot run test program while cross compiling 11401See \`config.log' for more details" "$LINENO" 5; } 11402else 11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11404/* end confdefs.h. */ 11405__thread int a; int b; int main() { return a = b; } 11406_ACEOF 11407if ac_fn_c_try_run "$LINENO"; then : 11408 gcc_cv_have_tls=yes 11409else 11410 gcc_cv_have_tls=no 11411fi 11412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11413 conftest.$ac_objext conftest.beam conftest.$ac_ext 11414fi 11415 11416else 11417 gcc_cv_have_tls=yes 11418fi 11419rm -f core conftest.err conftest.$ac_objext \ 11420 conftest$ac_exeext conftest.$ac_ext 11421 LDFLAGS="$chktls_save_LDFLAGS" 11422 if test $gcc_cv_have_tls = yes; then 11423 chktls_save_CFLAGS="$CFLAGS" 11424 thread_CFLAGS=failed 11425 for flag in '' '-pthread' '-lpthread'; do 11426 CFLAGS="$flag $chktls_save_CFLAGS" 11427 if test x$gcc_no_link = xyes; then 11428 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11429fi 11430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11431/* end confdefs.h. */ 11432#include <pthread.h> 11433 void *g(void *d) { return NULL; } 11434int 11435main () 11436{ 11437pthread_t t; pthread_create(&t,NULL,g,NULL); 11438 ; 11439 return 0; 11440} 11441_ACEOF 11442if ac_fn_c_try_link "$LINENO"; then : 11443 thread_CFLAGS="$flag" 11444fi 11445rm -f core conftest.err conftest.$ac_objext \ 11446 conftest$ac_exeext conftest.$ac_ext 11447 if test "X$thread_CFLAGS" != Xfailed; then 11448 break 11449 fi 11450 done 11451 CFLAGS="$chktls_save_CFLAGS" 11452 if test "X$thread_CFLAGS" != Xfailed; then 11453 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" 11454 if test "$cross_compiling" = yes; then : 11455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11457as_fn_error $? "cannot run test program while cross compiling 11458See \`config.log' for more details" "$LINENO" 5; } 11459else 11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11461/* end confdefs.h. */ 11462#include <pthread.h> 11463 __thread int a; 11464 static int *volatile a_in_other_thread; 11465 static void * 11466 thread_func (void *arg) 11467 { 11468 a_in_other_thread = &a; 11469 return (void *)0; 11470 } 11471int 11472main () 11473{ 11474pthread_t thread; 11475 void *thread_retval; 11476 int *volatile a_in_main_thread; 11477 a_in_main_thread = &a; 11478 if (pthread_create (&thread, (pthread_attr_t *)0, 11479 thread_func, (void *)0)) 11480 return 0; 11481 if (pthread_join (thread, &thread_retval)) 11482 return 0; 11483 return (a_in_other_thread == a_in_main_thread); 11484 ; 11485 return 0; 11486} 11487_ACEOF 11488if ac_fn_c_try_run "$LINENO"; then : 11489 gcc_cv_have_tls=yes 11490else 11491 gcc_cv_have_tls=no 11492fi 11493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11494 conftest.$ac_objext conftest.beam conftest.$ac_ext 11495fi 11496 11497 CFLAGS="$chktls_save_CFLAGS" 11498 fi 11499 fi 11500else 11501 gcc_cv_have_tls=no 11502fi 11503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11504 conftest.$ac_objext conftest.beam conftest.$ac_ext 11505fi 11506 11507fi 11508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5 11509$as_echo "$gcc_cv_have_tls" >&6; } 11510 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then 11511 11512$as_echo "#define HAVE_TLS 1" >>confdefs.h 11513 11514 fi 11515 11516 11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the type of bitfields matters" >&5 11518$as_echo_n "checking if the type of bitfields matters... " >&6; } 11519if ${gt_cv_bitfield_type_matters+:} false; then : 11520 $as_echo_n "(cached) " >&6 11521else 11522 11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11524/* end confdefs.h. */ 11525struct foo1 { char x; char y:1; char z; }; 11526struct foo2 { char x; long long int y:1; char z; }; 11527int foo1test[ sizeof (struct foo1) < sizeof (struct foo2) ? 1 : -1 ]; 11528int 11529main () 11530{ 11531 11532 ; 11533 return 0; 11534} 11535_ACEOF 11536if ac_fn_c_try_compile "$LINENO"; then : 11537 gt_cv_bitfield_type_matters=yes 11538else 11539 gt_cv_bitfield_type_matters=no 11540fi 11541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11542 11543fi 11544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_bitfield_type_matters" >&5 11545$as_echo "$gt_cv_bitfield_type_matters" >&6; } 11546 if test $gt_cv_bitfield_type_matters = yes; then 11547 11548$as_echo "#define HAVE_BITFIELD_TYPE_MATTERS 1" >>confdefs.h 11549 11550 fi 11551 11552 11553# ----------- 11554# boehm-gc 11555# ----------- 11556 11557# Check whether --enable-objc-gc was given. 11558if test "${enable_objc_gc+set}" = set; then : 11559 enableval=$enable_objc_gc; 11560else 11561 enable_objc_gc=no 11562fi 11563 11564 11565# Check whether --with-target-bdw-gc was given. 11566if test "${with_target_bdw_gc+set}" = set; then : 11567 withval=$with_target_bdw_gc; 11568fi 11569 11570 11571# Check whether --with-target-bdw-gc-include was given. 11572if test "${with_target_bdw_gc_include+set}" = set; then : 11573 withval=$with_target_bdw_gc_include; 11574fi 11575 11576 11577# Check whether --with-target-bdw-gc-lib was given. 11578if test "${with_target_bdw_gc_lib+set}" = set; then : 11579 withval=$with_target_bdw_gc_lib; 11580fi 11581 11582 11583case "$enable_objc_gc" in 11584no) 11585 use_bdw_gc=no 11586 ;; 11587*) 11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 11589$as_echo_n "checking for bdw garbage collector... " >&6; } 11590 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then 11591 BDW_GC_CFLAGS= 11592 BDW_GC_LIBS="-lgc" 11593 else 11594 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then 11595 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 11596 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then 11597 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 11598 else 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 11600$as_echo "using paths configured with --with-target-bdw-gc options" >&6; } 11601 fi 11602 mldir=`${CC-gcc} --print-multi-directory 2>/dev/null` 11603 bdw_val= 11604 if test "x$with_target_bdw_gc" != x; then 11605 for i in `echo $with_target_bdw_gc | tr ',' ' '`; do 11606 case "$i" in 11607 *=*) sd=${i%%=*}; d=${i#*=} ;; 11608 *) sd=.; d=$i ;; 11609 esac 11610 if test "$mldir" = "$sd"; then 11611 bdw_val=$d 11612 fi 11613 done 11614 if test "x$bdw_val" = x; then 11615 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc" "$LINENO" 5 11616 fi 11617 bdw_inc_dir="$bdw_val/include" 11618 bdw_lib_dir="$bdw_val/lib" 11619 fi 11620 bdw_val= 11621 if test "x$with_target_bdw_gc_include" != x; then 11622 for i in `echo $with_target_bdw_gc_include | tr ',' ' '`; do 11623 case "$i" in 11624 *=*) sd=${i%%=*}; d=${i#*=} ;; 11625 *) sd=.; d=$i; fallback=$i ;; 11626 esac 11627 if test "$mldir" = "$sd"; then 11628 bdw_val=$d 11629 fi 11630 done 11631 if test "x$bdw_val" = x && test "x$bdw_inc_dir" = x && test "x$fallback" != x; then 11632 bdw_inc_dir="$fallback" 11633 elif test "x$bdw_val" = x; then 11634 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5 11635 else 11636 bdw_inc_dir="$bdw_val" 11637 fi 11638 fi 11639 bdw_val= 11640 if test "x$with_target_bdw_gc_lib" != x; then 11641 for i in `echo $with_target_bdw_gc_lib | tr ',' ' '`; do 11642 case "$i" in 11643 *=*) sd=${i%%=*}; d=${i#*=} ;; 11644 *) sd=.; d=$i ;; 11645 esac 11646 if test "$mldir" = "$sd"; then 11647 bdw_val=$d 11648 fi 11649 done 11650 if test "x$bdw_val" = x; then 11651 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5 11652 fi 11653 bdw_lib_dir="$bdw_val" 11654 fi 11655 if test "x$bdw_inc_dir" = x; then 11656 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5 11657 fi 11658 if test "x$bdw_lib_dir" = x; then 11659 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5 11660 fi 11661 BDW_GC_CFLAGS="-I$bdw_inc_dir" 11662 if test -f $bdw_lib_dir/libgc.la; then 11663 BDW_GC_LIBS="$bdw_lib_dir/libgc.la" 11664 else 11665 BDW_GC_LIBS="-L$bdw_lib_dir -lgc" 11666 fi 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 11668$as_echo "found" >&6; } 11669 fi 11670 11671 case "$BDW_GC_LIBS" in 11672 *libgc.la) 11673 use_bdw_gc=yes 11674 ;; 11675 *) 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system boehm-gc" >&5 11677$as_echo_n "checking for system boehm-gc... " >&6; } 11678 save_CFLAGS=$CFLAGS 11679 save_LIBS=$LIBS 11680 CFLAGS="$CFLAGS $BDW_GC_CFLAGS" 11681 LIBS="$LIBS $BDW_GC_LIBS" 11682 if test x$gcc_no_link = xyes; then 11683 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11684fi 11685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11686/* end confdefs.h. */ 11687#include <gc/gc.h> 11688int 11689main () 11690{ 11691GC_init() 11692 ; 11693 return 0; 11694} 11695_ACEOF 11696if ac_fn_c_try_link "$LINENO"; then : 11697 11698 if test "$cross_compiling" = yes; then : 11699 system_bdw_gc_found=no 11700 11701else 11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11703/* end confdefs.h. */ 11704 11705 #include <gc/gc.h> 11706 int main() { 11707 GC_init(); 11708 return 0; 11709 } 11710 11711_ACEOF 11712if ac_fn_c_try_run "$LINENO"; then : 11713 system_bdw_gc_found=yes 11714else 11715 system_bdw_gc_found=no 11716fi 11717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11718 conftest.$ac_objext conftest.beam conftest.$ac_ext 11719fi 11720 11721 11722else 11723 system_bdw_gc_found=no 11724fi 11725rm -f core conftest.err conftest.$ac_objext \ 11726 conftest$ac_exeext conftest.$ac_ext 11727 CFLAGS=$save_CFLAGS 11728 LIBS=$save_LIBS 11729 if test x$enable_objc_gc = xauto && test x$system_bdw_gc_found = xno; then 11730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system bdw-gc not found, not building libobjc_gc" >&5 11731$as_echo "$as_me: WARNING: system bdw-gc not found, not building libobjc_gc" >&2;} 11732 use_bdw_gc=no 11733 elif test x$enable_objc_gc = xyes && test x$system_bdw_gc_found = xno; then 11734 as_fn_error $? "system bdw-gc required but not found" "$LINENO" 5 11735 else 11736 use_bdw_gc=yes 11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 11738$as_echo "found" >&6; } 11739 fi 11740 esac 11741esac 11742 11743if test "$use_bdw_gc" = no; then 11744 OBJC_GCFLAGS='' 11745 OBJC_BOEHM_GC='' 11746 OBJC_BOEHM_GC_INCLUDES='' 11747 OBJC_BOEHM_GC_LIBS='' 11748else 11749 OBJC_GCFLAGS='-DOBJC_WITH_GC=1' 11750 OBJC_BOEHM_GC='libobjc_gc$(libsuffix).la' 11751 OBJC_BOEHM_GC_INCLUDES=$BDW_GC_CFLAGS 11752 OBJC_BOEHM_GC_LIBS=$BDW_GC_LIBS 11753fi 11754 11755 11756 11757 11758 11759# Determine what GCC version number to use in filesystem paths. 11760 11761 get_gcc_base_ver="cat" 11762 11763# Check whether --with-gcc-major-version-only was given. 11764if test "${with_gcc_major_version_only+set}" = set; then : 11765 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 11766 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 11767 fi 11768 11769fi 11770 11771 11772 11773 11774# ------ 11775# Output 11776# ------ 11777 11778if test ${multilib} = yes; then 11779 multilib_arg="--enable-multilib" 11780else 11781 multilib_arg= 11782fi 11783 11784ac_config_files="$ac_config_files Makefile" 11785 11786cat >confcache <<\_ACEOF 11787# This file is a shell script that caches the results of configure 11788# tests run on this system so they can be shared between configure 11789# scripts and configure runs, see configure's option --config-cache. 11790# It is not useful on other systems. If it contains results you don't 11791# want to keep, you may remove or edit it. 11792# 11793# config.status only pays attention to the cache file if you give it 11794# the --recheck option to rerun configure. 11795# 11796# `ac_cv_env_foo' variables (set or unset) will be overridden when 11797# loading this file, other *unset* `ac_cv_foo' will be assigned the 11798# following values. 11799 11800_ACEOF 11801 11802# The following way of writing the cache mishandles newlines in values, 11803# but we know of no workaround that is simple, portable, and efficient. 11804# So, we kill variables containing newlines. 11805# Ultrix sh set writes to stderr and can't be redirected directly, 11806# and sets the high bit in the cache file unless we assign to the vars. 11807( 11808 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11809 eval ac_val=\$$ac_var 11810 case $ac_val in #( 11811 *${as_nl}*) 11812 case $ac_var in #( 11813 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11814$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11815 esac 11816 case $ac_var in #( 11817 _ | IFS | as_nl) ;; #( 11818 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11819 *) { eval $ac_var=; unset $ac_var;} ;; 11820 esac ;; 11821 esac 11822 done 11823 11824 (set) 2>&1 | 11825 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11826 *${as_nl}ac_space=\ *) 11827 # `set' does not quote correctly, so add quotes: double-quote 11828 # substitution turns \\\\ into \\, and sed turns \\ into \. 11829 sed -n \ 11830 "s/'/'\\\\''/g; 11831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11832 ;; #( 11833 *) 11834 # `set' quotes correctly as required by POSIX, so do not add quotes. 11835 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11836 ;; 11837 esac | 11838 sort 11839) | 11840 sed ' 11841 /^ac_cv_env_/b end 11842 t clear 11843 :clear 11844 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11845 t end 11846 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11847 :end' >>confcache 11848if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11849 if test -w "$cache_file"; then 11850 if test "x$cache_file" != "x/dev/null"; then 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11852$as_echo "$as_me: updating cache $cache_file" >&6;} 11853 if test ! -f "$cache_file" || test -h "$cache_file"; then 11854 cat confcache >"$cache_file" 11855 else 11856 case $cache_file in #( 11857 */* | ?:*) 11858 mv -f confcache "$cache_file"$$ && 11859 mv -f "$cache_file"$$ "$cache_file" ;; #( 11860 *) 11861 mv -f confcache "$cache_file" ;; 11862 esac 11863 fi 11864 fi 11865 else 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11867$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11868 fi 11869fi 11870rm -f confcache 11871 11872test "x$prefix" = xNONE && prefix=$ac_default_prefix 11873# Let make expand exec_prefix. 11874test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11875 11876DEFS=-DHAVE_CONFIG_H 11877 11878ac_libobjs= 11879ac_ltlibobjs= 11880U= 11881for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11882 # 1. Remove the extension, and $U if already installed. 11883 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11884 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11885 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11886 # will be set to the directory where LIBOBJS objects are built. 11887 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11888 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11889done 11890LIBOBJS=$ac_libobjs 11891 11892LTLIBOBJS=$ac_ltlibobjs 11893 11894 11895if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11896 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11897Usually this means the macro was only invoked conditionally." "$LINENO" 5 11898fi 11899 11900: "${CONFIG_STATUS=./config.status}" 11901ac_write_fail=0 11902ac_clean_files_save=$ac_clean_files 11903ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11904{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11905$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11906as_write_fail=0 11907cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11908#! $SHELL 11909# Generated by $as_me. 11910# Run this file to recreate the current configuration. 11911# Compiler output produced by configure, useful for debugging 11912# configure, is in config.log if it exists. 11913 11914debug=false 11915ac_cs_recheck=false 11916ac_cs_silent=false 11917 11918SHELL=\${CONFIG_SHELL-$SHELL} 11919export SHELL 11920_ASEOF 11921cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11922## -------------------- ## 11923## M4sh Initialization. ## 11924## -------------------- ## 11925 11926# Be more Bourne compatible 11927DUALCASE=1; export DUALCASE # for MKS sh 11928if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11929 emulate sh 11930 NULLCMD=: 11931 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11932 # is contrary to our usage. Disable this feature. 11933 alias -g '${1+"$@"}'='"$@"' 11934 setopt NO_GLOB_SUBST 11935else 11936 case `(set -o) 2>/dev/null` in #( 11937 *posix*) : 11938 set -o posix ;; #( 11939 *) : 11940 ;; 11941esac 11942fi 11943 11944 11945as_nl=' 11946' 11947export as_nl 11948# Printing a long string crashes Solaris 7 /usr/bin/printf. 11949as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11950as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11951as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11952# Prefer a ksh shell builtin over an external printf program on Solaris, 11953# but without wasting forks for bash or zsh. 11954if test -z "$BASH_VERSION$ZSH_VERSION" \ 11955 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11956 as_echo='print -r --' 11957 as_echo_n='print -rn --' 11958elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11959 as_echo='printf %s\n' 11960 as_echo_n='printf %s' 11961else 11962 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11963 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11964 as_echo_n='/usr/ucb/echo -n' 11965 else 11966 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11967 as_echo_n_body='eval 11968 arg=$1; 11969 case $arg in #( 11970 *"$as_nl"*) 11971 expr "X$arg" : "X\\(.*\\)$as_nl"; 11972 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11973 esac; 11974 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11975 ' 11976 export as_echo_n_body 11977 as_echo_n='sh -c $as_echo_n_body as_echo' 11978 fi 11979 export as_echo_body 11980 as_echo='sh -c $as_echo_body as_echo' 11981fi 11982 11983# The user is always right. 11984if test "${PATH_SEPARATOR+set}" != set; then 11985 PATH_SEPARATOR=: 11986 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11987 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11988 PATH_SEPARATOR=';' 11989 } 11990fi 11991 11992 11993# IFS 11994# We need space, tab and new line, in precisely that order. Quoting is 11995# there to prevent editors from complaining about space-tab. 11996# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11997# splitting by setting IFS to empty value.) 11998IFS=" "" $as_nl" 11999 12000# Find who we are. Look in the path if we contain no directory separator. 12001as_myself= 12002case $0 in #(( 12003 *[\\/]* ) as_myself=$0 ;; 12004 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12005for as_dir in $PATH 12006do 12007 IFS=$as_save_IFS 12008 test -z "$as_dir" && as_dir=. 12009 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12010 done 12011IFS=$as_save_IFS 12012 12013 ;; 12014esac 12015# We did not find ourselves, most probably we were run as `sh COMMAND' 12016# in which case we are not to be found in the path. 12017if test "x$as_myself" = x; then 12018 as_myself=$0 12019fi 12020if test ! -f "$as_myself"; then 12021 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12022 exit 1 12023fi 12024 12025# Unset variables that we do not need and which cause bugs (e.g. in 12026# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12027# suppresses any "Segmentation fault" message there. '((' could 12028# trigger a bug in pdksh 5.2.14. 12029for as_var in BASH_ENV ENV MAIL MAILPATH 12030do eval test x\${$as_var+set} = xset \ 12031 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12032done 12033PS1='$ ' 12034PS2='> ' 12035PS4='+ ' 12036 12037# NLS nuisances. 12038LC_ALL=C 12039export LC_ALL 12040LANGUAGE=C 12041export LANGUAGE 12042 12043# CDPATH. 12044(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12045 12046 12047# as_fn_error STATUS ERROR [LINENO LOG_FD] 12048# ---------------------------------------- 12049# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12050# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12051# script with STATUS, using 1 if that was 0. 12052as_fn_error () 12053{ 12054 as_status=$1; test $as_status -eq 0 && as_status=1 12055 if test "$4"; then 12056 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12057 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12058 fi 12059 $as_echo "$as_me: error: $2" >&2 12060 as_fn_exit $as_status 12061} # as_fn_error 12062 12063 12064# as_fn_set_status STATUS 12065# ----------------------- 12066# Set $? to STATUS, without forking. 12067as_fn_set_status () 12068{ 12069 return $1 12070} # as_fn_set_status 12071 12072# as_fn_exit STATUS 12073# ----------------- 12074# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12075as_fn_exit () 12076{ 12077 set +e 12078 as_fn_set_status $1 12079 exit $1 12080} # as_fn_exit 12081 12082# as_fn_unset VAR 12083# --------------- 12084# Portably unset VAR. 12085as_fn_unset () 12086{ 12087 { eval $1=; unset $1;} 12088} 12089as_unset=as_fn_unset 12090# as_fn_append VAR VALUE 12091# ---------------------- 12092# Append the text in VALUE to the end of the definition contained in VAR. Take 12093# advantage of any shell optimizations that allow amortized linear growth over 12094# repeated appends, instead of the typical quadratic growth present in naive 12095# implementations. 12096if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12097 eval 'as_fn_append () 12098 { 12099 eval $1+=\$2 12100 }' 12101else 12102 as_fn_append () 12103 { 12104 eval $1=\$$1\$2 12105 } 12106fi # as_fn_append 12107 12108# as_fn_arith ARG... 12109# ------------------ 12110# Perform arithmetic evaluation on the ARGs, and store the result in the 12111# global $as_val. Take advantage of shells that can avoid forks. The arguments 12112# must be portable across $(()) and expr. 12113if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12114 eval 'as_fn_arith () 12115 { 12116 as_val=$(( $* )) 12117 }' 12118else 12119 as_fn_arith () 12120 { 12121 as_val=`expr "$@" || test $? -eq 1` 12122 } 12123fi # as_fn_arith 12124 12125 12126if expr a : '\(a\)' >/dev/null 2>&1 && 12127 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12128 as_expr=expr 12129else 12130 as_expr=false 12131fi 12132 12133if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12134 as_basename=basename 12135else 12136 as_basename=false 12137fi 12138 12139if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12140 as_dirname=dirname 12141else 12142 as_dirname=false 12143fi 12144 12145as_me=`$as_basename -- "$0" || 12146$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12147 X"$0" : 'X\(//\)$' \| \ 12148 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12149$as_echo X/"$0" | 12150 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12151 s//\1/ 12152 q 12153 } 12154 /^X\/\(\/\/\)$/{ 12155 s//\1/ 12156 q 12157 } 12158 /^X\/\(\/\).*/{ 12159 s//\1/ 12160 q 12161 } 12162 s/.*/./; q'` 12163 12164# Avoid depending upon Character Ranges. 12165as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12166as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12167as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12168as_cr_digits='0123456789' 12169as_cr_alnum=$as_cr_Letters$as_cr_digits 12170 12171ECHO_C= ECHO_N= ECHO_T= 12172case `echo -n x` in #((((( 12173-n*) 12174 case `echo 'xy\c'` in 12175 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12176 xy) ECHO_C='\c';; 12177 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12178 ECHO_T=' ';; 12179 esac;; 12180*) 12181 ECHO_N='-n';; 12182esac 12183 12184rm -f conf$$ conf$$.exe conf$$.file 12185if test -d conf$$.dir; then 12186 rm -f conf$$.dir/conf$$.file 12187else 12188 rm -f conf$$.dir 12189 mkdir conf$$.dir 2>/dev/null 12190fi 12191if (echo >conf$$.file) 2>/dev/null; then 12192 if ln -s conf$$.file conf$$ 2>/dev/null; then 12193 as_ln_s='ln -s' 12194 # ... but there are two gotchas: 12195 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12196 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12197 # In both cases, we have to default to `cp -pR'. 12198 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12199 as_ln_s='cp -pR' 12200 elif ln conf$$.file conf$$ 2>/dev/null; then 12201 as_ln_s=ln 12202 else 12203 as_ln_s='cp -pR' 12204 fi 12205else 12206 as_ln_s='cp -pR' 12207fi 12208rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12209rmdir conf$$.dir 2>/dev/null 12210 12211 12212# as_fn_mkdir_p 12213# ------------- 12214# Create "$as_dir" as a directory, including parents if necessary. 12215as_fn_mkdir_p () 12216{ 12217 12218 case $as_dir in #( 12219 -*) as_dir=./$as_dir;; 12220 esac 12221 test -d "$as_dir" || eval $as_mkdir_p || { 12222 as_dirs= 12223 while :; do 12224 case $as_dir in #( 12225 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12226 *) as_qdir=$as_dir;; 12227 esac 12228 as_dirs="'$as_qdir' $as_dirs" 12229 as_dir=`$as_dirname -- "$as_dir" || 12230$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12231 X"$as_dir" : 'X\(//\)[^/]' \| \ 12232 X"$as_dir" : 'X\(//\)$' \| \ 12233 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12234$as_echo X"$as_dir" | 12235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12236 s//\1/ 12237 q 12238 } 12239 /^X\(\/\/\)[^/].*/{ 12240 s//\1/ 12241 q 12242 } 12243 /^X\(\/\/\)$/{ 12244 s//\1/ 12245 q 12246 } 12247 /^X\(\/\).*/{ 12248 s//\1/ 12249 q 12250 } 12251 s/.*/./; q'` 12252 test -d "$as_dir" && break 12253 done 12254 test -z "$as_dirs" || eval "mkdir $as_dirs" 12255 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12256 12257 12258} # as_fn_mkdir_p 12259if mkdir -p . 2>/dev/null; then 12260 as_mkdir_p='mkdir -p "$as_dir"' 12261else 12262 test -d ./-p && rmdir ./-p 12263 as_mkdir_p=false 12264fi 12265 12266 12267# as_fn_executable_p FILE 12268# ----------------------- 12269# Test if FILE is an executable regular file. 12270as_fn_executable_p () 12271{ 12272 test -f "$1" && test -x "$1" 12273} # as_fn_executable_p 12274as_test_x='test -x' 12275as_executable_p=as_fn_executable_p 12276 12277# Sed expression to map a string onto a valid CPP name. 12278as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12279 12280# Sed expression to map a string onto a valid variable name. 12281as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12282 12283 12284exec 6>&1 12285## ----------------------------------- ## 12286## Main body of $CONFIG_STATUS script. ## 12287## ----------------------------------- ## 12288_ASEOF 12289test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12290 12291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12292# Save the log message, to keep $0 and so on meaningful, and to 12293# report actual input values of CONFIG_FILES etc. instead of their 12294# values after options handling. 12295ac_log=" 12296This file was extended by package-unused $as_me version-unused, which was 12297generated by GNU Autoconf 2.69. Invocation command line was 12298 12299 CONFIG_FILES = $CONFIG_FILES 12300 CONFIG_HEADERS = $CONFIG_HEADERS 12301 CONFIG_LINKS = $CONFIG_LINKS 12302 CONFIG_COMMANDS = $CONFIG_COMMANDS 12303 $ $0 $@ 12304 12305on `(hostname || uname -n) 2>/dev/null | sed 1q` 12306" 12307 12308_ACEOF 12309 12310case $ac_config_files in *" 12311"*) set x $ac_config_files; shift; ac_config_files=$*;; 12312esac 12313 12314case $ac_config_headers in *" 12315"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12316esac 12317 12318 12319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12320# Files that config.status was made for. 12321config_files="$ac_config_files" 12322config_headers="$ac_config_headers" 12323config_commands="$ac_config_commands" 12324 12325_ACEOF 12326 12327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12328ac_cs_usage="\ 12329\`$as_me' instantiates files and other configuration actions 12330from templates according to the current configuration. Unless the files 12331and actions are specified as TAGs, all are instantiated by default. 12332 12333Usage: $0 [OPTION]... [TAG]... 12334 12335 -h, --help print this help, then exit 12336 -V, --version print version number and configuration settings, then exit 12337 --config print configuration, then exit 12338 -q, --quiet, --silent 12339 do not print progress messages 12340 -d, --debug don't remove temporary files 12341 --recheck update $as_me by reconfiguring in the same conditions 12342 --file=FILE[:TEMPLATE] 12343 instantiate the configuration file FILE 12344 --header=FILE[:TEMPLATE] 12345 instantiate the configuration header FILE 12346 12347Configuration files: 12348$config_files 12349 12350Configuration headers: 12351$config_headers 12352 12353Configuration commands: 12354$config_commands 12355 12356Report bugs to the package provider." 12357 12358_ACEOF 12359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12360ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12361ac_cs_version="\\ 12362package-unused config.status version-unused 12363configured by $0, generated by GNU Autoconf 2.69, 12364 with options \\"\$ac_cs_config\\" 12365 12366Copyright (C) 2012 Free Software Foundation, Inc. 12367This config.status script is free software; the Free Software Foundation 12368gives unlimited permission to copy, distribute and modify it." 12369 12370ac_pwd='$ac_pwd' 12371srcdir='$srcdir' 12372INSTALL='$INSTALL' 12373AWK='$AWK' 12374test -n "\$AWK" || AWK=awk 12375_ACEOF 12376 12377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12378# The default lists apply if the user does not specify any file. 12379ac_need_defaults=: 12380while test $# != 0 12381do 12382 case $1 in 12383 --*=?*) 12384 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12385 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12386 ac_shift=: 12387 ;; 12388 --*=) 12389 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12390 ac_optarg= 12391 ac_shift=: 12392 ;; 12393 *) 12394 ac_option=$1 12395 ac_optarg=$2 12396 ac_shift=shift 12397 ;; 12398 esac 12399 12400 case $ac_option in 12401 # Handling of the options. 12402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12403 ac_cs_recheck=: ;; 12404 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12405 $as_echo "$ac_cs_version"; exit ;; 12406 --config | --confi | --conf | --con | --co | --c ) 12407 $as_echo "$ac_cs_config"; exit ;; 12408 --debug | --debu | --deb | --de | --d | -d ) 12409 debug=: ;; 12410 --file | --fil | --fi | --f ) 12411 $ac_shift 12412 case $ac_optarg in 12413 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12414 '') as_fn_error $? "missing file argument" ;; 12415 esac 12416 as_fn_append CONFIG_FILES " '$ac_optarg'" 12417 ac_need_defaults=false;; 12418 --header | --heade | --head | --hea ) 12419 $ac_shift 12420 case $ac_optarg in 12421 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12422 esac 12423 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12424 ac_need_defaults=false;; 12425 --he | --h) 12426 # Conflict between --help and --header 12427 as_fn_error $? "ambiguous option: \`$1' 12428Try \`$0 --help' for more information.";; 12429 --help | --hel | -h ) 12430 $as_echo "$ac_cs_usage"; exit ;; 12431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12432 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12433 ac_cs_silent=: ;; 12434 12435 # This is an error. 12436 -*) as_fn_error $? "unrecognized option: \`$1' 12437Try \`$0 --help' for more information." ;; 12438 12439 *) as_fn_append ac_config_targets " $1" 12440 ac_need_defaults=false ;; 12441 12442 esac 12443 shift 12444done 12445 12446ac_configure_extra_args= 12447 12448if $ac_cs_silent; then 12449 exec 6>/dev/null 12450 ac_configure_extra_args="$ac_configure_extra_args --silent" 12451fi 12452 12453_ACEOF 12454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12455if \$ac_cs_recheck; then 12456 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12457 shift 12458 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12459 CONFIG_SHELL='$SHELL' 12460 export CONFIG_SHELL 12461 exec "\$@" 12462fi 12463 12464_ACEOF 12465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12466exec 5>>config.log 12467{ 12468 echo 12469 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12470## Running $as_me. ## 12471_ASBOX 12472 $as_echo "$ac_log" 12473} >&5 12474 12475_ACEOF 12476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12477# 12478# INIT-COMMANDS 12479# 12480 12481srcdir="$srcdir" 12482host="$host" 12483target="$target" 12484with_multisubdir="$with_multisubdir" 12485with_multisrctop="$with_multisrctop" 12486with_target_subdir="$with_target_subdir" 12487ac_configure_args="${multilib_arg} ${ac_configure_args}" 12488multi_basedir="$multi_basedir" 12489CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 12490CC="$CC" 12491CXX="$CXX" 12492GFORTRAN="$GFORTRAN" 12493GDC="$GDC" 12494 12495 12496# The HP-UX ksh and POSIX shell print the target directory to stdout 12497# if CDPATH is set. 12498(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12499 12500sed_quote_subst='$sed_quote_subst' 12501double_quote_subst='$double_quote_subst' 12502delay_variable_subst='$delay_variable_subst' 12503AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 12504DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 12505OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 12506macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 12507macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 12508enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 12509enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 12510pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 12511enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 12512SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 12513ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 12514host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 12515host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 12516host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 12517build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 12518build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 12519build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 12520SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 12521Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 12522GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 12523EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 12524FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 12525LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 12526NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 12527LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 12528max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 12529ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 12530exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 12531lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 12532lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 12533lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 12534reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 12535reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 12536deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 12537file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 12538AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 12539AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 12540STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 12541RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12542old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12543old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12544old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12545lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12546CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12547CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12548compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12549GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12550lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12551lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12552lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12553lt_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"`' 12554objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12555MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12556lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12557lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12558lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12559lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12560lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12561need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12562DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12563NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12564LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12565OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12566OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12567libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12568shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12569extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12570archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12571enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12572export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12573whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 12574compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 12575old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 12576old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12577archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 12578archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12579module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 12580module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12581with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12582allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12583no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12584hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12585hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 12586hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12587hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12588hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12589hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12590hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12591hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12592inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12593link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12594fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 12595always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12596export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12597exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12598include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12599prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12600file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12601variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12602need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12603need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12604version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12605runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12606shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12607shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12608libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12609library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12610soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12611install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12612postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12613postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12614finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12615finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12616hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12617sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12618sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12619hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12620enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12621enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12622enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12623old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12624striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12625 12626LTCC='$LTCC' 12627LTCFLAGS='$LTCFLAGS' 12628compiler='$compiler_DEFAULT' 12629 12630# A function that is used when there is no print builtin or printf. 12631func_fallback_echo () 12632{ 12633 eval 'cat <<_LTECHO_EOF 12634\$1 12635_LTECHO_EOF' 12636} 12637 12638# Quote evaled strings. 12639for var in AS \ 12640DLLTOOL \ 12641OBJDUMP \ 12642SHELL \ 12643ECHO \ 12644SED \ 12645GREP \ 12646EGREP \ 12647FGREP \ 12648LD \ 12649NM \ 12650LN_S \ 12651lt_SP2NL \ 12652lt_NL2SP \ 12653reload_flag \ 12654deplibs_check_method \ 12655file_magic_cmd \ 12656AR \ 12657AR_FLAGS \ 12658STRIP \ 12659RANLIB \ 12660CC \ 12661CFLAGS \ 12662compiler \ 12663lt_cv_sys_global_symbol_pipe \ 12664lt_cv_sys_global_symbol_to_cdecl \ 12665lt_cv_sys_global_symbol_to_c_name_address \ 12666lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12667lt_prog_compiler_no_builtin_flag \ 12668lt_prog_compiler_wl \ 12669lt_prog_compiler_pic \ 12670lt_prog_compiler_static \ 12671lt_cv_prog_compiler_c_o \ 12672need_locks \ 12673DSYMUTIL \ 12674NMEDIT \ 12675LIPO \ 12676OTOOL \ 12677OTOOL64 \ 12678shrext_cmds \ 12679export_dynamic_flag_spec \ 12680whole_archive_flag_spec \ 12681compiler_needs_object \ 12682with_gnu_ld \ 12683allow_undefined_flag \ 12684no_undefined_flag \ 12685hardcode_libdir_flag_spec \ 12686hardcode_libdir_flag_spec_ld \ 12687hardcode_libdir_separator \ 12688fix_srcfile_path \ 12689exclude_expsyms \ 12690include_expsyms \ 12691file_list_spec \ 12692variables_saved_for_relink \ 12693libname_spec \ 12694library_names_spec \ 12695soname_spec \ 12696install_override_mode \ 12697finish_eval \ 12698old_striplib \ 12699striplib; do 12700 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12701 *[\\\\\\\`\\"\\\$]*) 12702 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12703 ;; 12704 *) 12705 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12706 ;; 12707 esac 12708done 12709 12710# Double-quote double-evaled strings. 12711for var in reload_cmds \ 12712old_postinstall_cmds \ 12713old_postuninstall_cmds \ 12714old_archive_cmds \ 12715extract_expsyms_cmds \ 12716old_archive_from_new_cmds \ 12717old_archive_from_expsyms_cmds \ 12718archive_cmds \ 12719archive_expsym_cmds \ 12720module_cmds \ 12721module_expsym_cmds \ 12722export_symbols_cmds \ 12723prelink_cmds \ 12724postinstall_cmds \ 12725postuninstall_cmds \ 12726finish_cmds \ 12727sys_lib_search_path_spec \ 12728sys_lib_dlsearch_path_spec; do 12729 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12730 *[\\\\\\\`\\"\\\$]*) 12731 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12732 ;; 12733 *) 12734 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12735 ;; 12736 esac 12737done 12738 12739ac_aux_dir='$ac_aux_dir' 12740xsi_shell='$xsi_shell' 12741lt_shell_append='$lt_shell_append' 12742 12743# See if we are running on zsh, and set the options which allow our 12744# commands through without removal of \ escapes INIT. 12745if test -n "\${ZSH_VERSION+set}" ; then 12746 setopt NO_GLOB_SUBST 12747fi 12748 12749 12750 PACKAGE='$PACKAGE' 12751 VERSION='$VERSION' 12752 TIMESTAMP='$TIMESTAMP' 12753 RM='$RM' 12754 ofile='$ofile' 12755 12756 12757 12758 12759_ACEOF 12760 12761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12762 12763# Handling of arguments. 12764for ac_config_target in $ac_config_targets 12765do 12766 case $ac_config_target in 12767 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 12768 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12769 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12770 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12771 12772 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12773 esac 12774done 12775 12776 12777# If the user did not use the arguments to specify the items to instantiate, 12778# then the envvar interface is used. Set only those that are not. 12779# We use the long form for the default assignment because of an extremely 12780# bizarre bug on SunOS 4.1.3. 12781if $ac_need_defaults; then 12782 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12783 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12784 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12785fi 12786 12787# Have a temporary directory for convenience. Make it in the build tree 12788# simply because there is no reason against having it here, and in addition, 12789# creating and moving files from /tmp can sometimes cause problems. 12790# Hook for its removal unless debugging. 12791# Note that there is a small window in which the directory will not be cleaned: 12792# after its creation but before its name has been assigned to `$tmp'. 12793$debug || 12794{ 12795 tmp= ac_tmp= 12796 trap 'exit_status=$? 12797 : "${ac_tmp:=$tmp}" 12798 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12799' 0 12800 trap 'as_fn_exit 1' 1 2 13 15 12801} 12802# Create a (secure) tmp directory for tmp files. 12803 12804{ 12805 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12806 test -d "$tmp" 12807} || 12808{ 12809 tmp=./conf$$-$RANDOM 12810 (umask 077 && mkdir "$tmp") 12811} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12812ac_tmp=$tmp 12813 12814# Set up the scripts for CONFIG_FILES section. 12815# No need to generate them if there are no CONFIG_FILES. 12816# This happens for instance with `./config.status config.h'. 12817if test -n "$CONFIG_FILES"; then 12818 12819 12820ac_cr=`echo X | tr X '\015'` 12821# On cygwin, bash can eat \r inside `` if the user requested igncr. 12822# But we know of no other shell where ac_cr would be empty at this 12823# point, so we can use a bashism as a fallback. 12824if test "x$ac_cr" = x; then 12825 eval ac_cr=\$\'\\r\' 12826fi 12827ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12828if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12829 ac_cs_awk_cr='\\r' 12830else 12831 ac_cs_awk_cr=$ac_cr 12832fi 12833 12834echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12835_ACEOF 12836 12837 12838{ 12839 echo "cat >conf$$subs.awk <<_ACEOF" && 12840 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12841 echo "_ACEOF" 12842} >conf$$subs.sh || 12843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12844ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12845ac_delim='%!_!# ' 12846for ac_last_try in false false false false false :; do 12847 . ./conf$$subs.sh || 12848 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12849 12850 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12851 if test $ac_delim_n = $ac_delim_num; then 12852 break 12853 elif $ac_last_try; then 12854 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12855 else 12856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12857 fi 12858done 12859rm -f conf$$subs.sh 12860 12861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12862cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12863_ACEOF 12864sed -n ' 12865h 12866s/^/S["/; s/!.*/"]=/ 12867p 12868g 12869s/^[^!]*!// 12870:repl 12871t repl 12872s/'"$ac_delim"'$// 12873t delim 12874:nl 12875h 12876s/\(.\{148\}\)..*/\1/ 12877t more1 12878s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12879p 12880n 12881b repl 12882:more1 12883s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12884p 12885g 12886s/.\{148\}// 12887t nl 12888:delim 12889h 12890s/\(.\{148\}\)..*/\1/ 12891t more2 12892s/["\\]/\\&/g; s/^/"/; s/$/"/ 12893p 12894b 12895:more2 12896s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12897p 12898g 12899s/.\{148\}// 12900t delim 12901' <conf$$subs.awk | sed ' 12902/^[^""]/{ 12903 N 12904 s/\n// 12905} 12906' >>$CONFIG_STATUS || ac_write_fail=1 12907rm -f conf$$subs.awk 12908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12909_ACAWK 12910cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12911 for (key in S) S_is_set[key] = 1 12912 FS = "" 12913 12914} 12915{ 12916 line = $ 0 12917 nfields = split(line, field, "@") 12918 substed = 0 12919 len = length(field[1]) 12920 for (i = 2; i < nfields; i++) { 12921 key = field[i] 12922 keylen = length(key) 12923 if (S_is_set[key]) { 12924 value = S[key] 12925 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12926 len += length(value) + length(field[++i]) 12927 substed = 1 12928 } else 12929 len += 1 + keylen 12930 } 12931 12932 print line 12933} 12934 12935_ACAWK 12936_ACEOF 12937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12938if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12939 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12940else 12941 cat 12942fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12943 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12944_ACEOF 12945 12946# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12947# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12948# trailing colons and then remove the whole line if VPATH becomes empty 12949# (actually we leave an empty line to preserve line numbers). 12950if test "x$srcdir" = x.; then 12951 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12952h 12953s/// 12954s/^/:/ 12955s/[ ]*$/:/ 12956s/:\$(srcdir):/:/g 12957s/:\${srcdir}:/:/g 12958s/:@srcdir@:/:/g 12959s/^:*// 12960s/:*$// 12961x 12962s/\(=[ ]*\).*/\1/ 12963G 12964s/\n// 12965s/^[^=]*=[ ]*$// 12966}' 12967fi 12968 12969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12970fi # test -n "$CONFIG_FILES" 12971 12972# Set up the scripts for CONFIG_HEADERS section. 12973# No need to generate them if there are no CONFIG_HEADERS. 12974# This happens for instance with `./config.status Makefile'. 12975if test -n "$CONFIG_HEADERS"; then 12976cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12977BEGIN { 12978_ACEOF 12979 12980# Transform confdefs.h into an awk script `defines.awk', embedded as 12981# here-document in config.status, that substitutes the proper values into 12982# config.h.in to produce config.h. 12983 12984# Create a delimiter string that does not exist in confdefs.h, to ease 12985# handling of long lines. 12986ac_delim='%!_!# ' 12987for ac_last_try in false false :; do 12988 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12989 if test -z "$ac_tt"; then 12990 break 12991 elif $ac_last_try; then 12992 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12993 else 12994 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12995 fi 12996done 12997 12998# For the awk script, D is an array of macro values keyed by name, 12999# likewise P contains macro parameters if any. Preserve backslash 13000# newline sequences. 13001 13002ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13003sed -n ' 13004s/.\{148\}/&'"$ac_delim"'/g 13005t rset 13006:rset 13007s/^[ ]*#[ ]*define[ ][ ]*/ / 13008t def 13009d 13010:def 13011s/\\$// 13012t bsnl 13013s/["\\]/\\&/g 13014s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13015D["\1"]=" \3"/p 13016s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13017d 13018:bsnl 13019s/["\\]/\\&/g 13020s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13021D["\1"]=" \3\\\\\\n"\\/p 13022t cont 13023s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13024t cont 13025d 13026:cont 13027n 13028s/.\{148\}/&'"$ac_delim"'/g 13029t clear 13030:clear 13031s/\\$// 13032t bsnlc 13033s/["\\]/\\&/g; s/^/"/; s/$/"/p 13034d 13035:bsnlc 13036s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13037b cont 13038' <confdefs.h | sed ' 13039s/'"$ac_delim"'/"\\\ 13040"/g' >>$CONFIG_STATUS || ac_write_fail=1 13041 13042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13043 for (key in D) D_is_set[key] = 1 13044 FS = "" 13045} 13046/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13047 line = \$ 0 13048 split(line, arg, " ") 13049 if (arg[1] == "#") { 13050 defundef = arg[2] 13051 mac1 = arg[3] 13052 } else { 13053 defundef = substr(arg[1], 2) 13054 mac1 = arg[2] 13055 } 13056 split(mac1, mac2, "(") #) 13057 macro = mac2[1] 13058 prefix = substr(line, 1, index(line, defundef) - 1) 13059 if (D_is_set[macro]) { 13060 # Preserve the white space surrounding the "#". 13061 print prefix "define", macro P[macro] D[macro] 13062 next 13063 } else { 13064 # Replace #undef with comments. This is necessary, for example, 13065 # in the case of _POSIX_SOURCE, which is predefined and required 13066 # on some systems where configure will not decide to define it. 13067 if (defundef == "undef") { 13068 print "/*", prefix defundef, macro, "*/" 13069 next 13070 } 13071 } 13072} 13073{ print } 13074_ACAWK 13075_ACEOF 13076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13077 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13078fi # test -n "$CONFIG_HEADERS" 13079 13080 13081eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13082shift 13083for ac_tag 13084do 13085 case $ac_tag in 13086 :[FHLC]) ac_mode=$ac_tag; continue;; 13087 esac 13088 case $ac_mode$ac_tag in 13089 :[FHL]*:*);; 13090 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13091 :[FH]-) ac_tag=-:-;; 13092 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13093 esac 13094 ac_save_IFS=$IFS 13095 IFS=: 13096 set x $ac_tag 13097 IFS=$ac_save_IFS 13098 shift 13099 ac_file=$1 13100 shift 13101 13102 case $ac_mode in 13103 :L) ac_source=$1;; 13104 :[FH]) 13105 ac_file_inputs= 13106 for ac_f 13107 do 13108 case $ac_f in 13109 -) ac_f="$ac_tmp/stdin";; 13110 *) # Look for the file first in the build tree, then in the source tree 13111 # (if the path is not absolute). The absolute path cannot be DOS-style, 13112 # because $ac_f cannot contain `:'. 13113 test -f "$ac_f" || 13114 case $ac_f in 13115 [\\/$]*) false;; 13116 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13117 esac || 13118 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13119 esac 13120 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13121 as_fn_append ac_file_inputs " '$ac_f'" 13122 done 13123 13124 # Let's still pretend it is `configure' which instantiates (i.e., don't 13125 # use $as_me), people would be surprised to read: 13126 # /* config.h. Generated by config.status. */ 13127 configure_input='Generated from '` 13128 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13129 `' by configure.' 13130 if test x"$ac_file" != x-; then 13131 configure_input="$ac_file. $configure_input" 13132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13133$as_echo "$as_me: creating $ac_file" >&6;} 13134 fi 13135 # Neutralize special characters interpreted by sed in replacement strings. 13136 case $configure_input in #( 13137 *\&* | *\|* | *\\* ) 13138 ac_sed_conf_input=`$as_echo "$configure_input" | 13139 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13140 *) ac_sed_conf_input=$configure_input;; 13141 esac 13142 13143 case $ac_tag in 13144 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13146 esac 13147 ;; 13148 esac 13149 13150 ac_dir=`$as_dirname -- "$ac_file" || 13151$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13152 X"$ac_file" : 'X\(//\)[^/]' \| \ 13153 X"$ac_file" : 'X\(//\)$' \| \ 13154 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13155$as_echo X"$ac_file" | 13156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13157 s//\1/ 13158 q 13159 } 13160 /^X\(\/\/\)[^/].*/{ 13161 s//\1/ 13162 q 13163 } 13164 /^X\(\/\/\)$/{ 13165 s//\1/ 13166 q 13167 } 13168 /^X\(\/\).*/{ 13169 s//\1/ 13170 q 13171 } 13172 s/.*/./; q'` 13173 as_dir="$ac_dir"; as_fn_mkdir_p 13174 ac_builddir=. 13175 13176case "$ac_dir" in 13177.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13178*) 13179 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13180 # A ".." for each directory in $ac_dir_suffix. 13181 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13182 case $ac_top_builddir_sub in 13183 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13184 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13185 esac ;; 13186esac 13187ac_abs_top_builddir=$ac_pwd 13188ac_abs_builddir=$ac_pwd$ac_dir_suffix 13189# for backward compatibility: 13190ac_top_builddir=$ac_top_build_prefix 13191 13192case $srcdir in 13193 .) # We are building in place. 13194 ac_srcdir=. 13195 ac_top_srcdir=$ac_top_builddir_sub 13196 ac_abs_top_srcdir=$ac_pwd ;; 13197 [\\/]* | ?:[\\/]* ) # Absolute name. 13198 ac_srcdir=$srcdir$ac_dir_suffix; 13199 ac_top_srcdir=$srcdir 13200 ac_abs_top_srcdir=$srcdir ;; 13201 *) # Relative name. 13202 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13203 ac_top_srcdir=$ac_top_build_prefix$srcdir 13204 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13205esac 13206ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13207 13208 13209 case $ac_mode in 13210 :F) 13211 # 13212 # CONFIG_FILE 13213 # 13214 13215 case $INSTALL in 13216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13217 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13218 esac 13219_ACEOF 13220 13221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13222# If the template does not know about datarootdir, expand it. 13223# FIXME: This hack should be removed a few years after 2.60. 13224ac_datarootdir_hack=; ac_datarootdir_seen= 13225ac_sed_dataroot=' 13226/datarootdir/ { 13227 p 13228 q 13229} 13230/@datadir@/p 13231/@docdir@/p 13232/@infodir@/p 13233/@localedir@/p 13234/@mandir@/p' 13235case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13236*datarootdir*) ac_datarootdir_seen=yes;; 13237*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13239$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13240_ACEOF 13241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13242 ac_datarootdir_hack=' 13243 s&@datadir@&$datadir&g 13244 s&@docdir@&$docdir&g 13245 s&@infodir@&$infodir&g 13246 s&@localedir@&$localedir&g 13247 s&@mandir@&$mandir&g 13248 s&\\\${datarootdir}&$datarootdir&g' ;; 13249esac 13250_ACEOF 13251 13252# Neutralize VPATH when `$srcdir' = `.'. 13253# Shell code in configure.ac might set extrasub. 13254# FIXME: do we really want to maintain this feature? 13255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13256ac_sed_extra="$ac_vpsub 13257$extrasub 13258_ACEOF 13259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13260:t 13261/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13262s|@configure_input@|$ac_sed_conf_input|;t t 13263s&@top_builddir@&$ac_top_builddir_sub&;t t 13264s&@top_build_prefix@&$ac_top_build_prefix&;t t 13265s&@srcdir@&$ac_srcdir&;t t 13266s&@abs_srcdir@&$ac_abs_srcdir&;t t 13267s&@top_srcdir@&$ac_top_srcdir&;t t 13268s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13269s&@builddir@&$ac_builddir&;t t 13270s&@abs_builddir@&$ac_abs_builddir&;t t 13271s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13272s&@INSTALL@&$ac_INSTALL&;t t 13273$ac_datarootdir_hack 13274" 13275eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13276 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13277 13278test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13279 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13280 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13281 "$ac_tmp/out"`; test -z "$ac_out"; } && 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13283which seems to be undefined. Please make sure it is defined" >&5 13284$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13285which seems to be undefined. Please make sure it is defined" >&2;} 13286 13287 rm -f "$ac_tmp/stdin" 13288 case $ac_file in 13289 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13290 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13291 esac \ 13292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13293 ;; 13294 :H) 13295 # 13296 # CONFIG_HEADER 13297 # 13298 if test x"$ac_file" != x-; then 13299 { 13300 $as_echo "/* $configure_input */" \ 13301 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13302 } >"$ac_tmp/config.h" \ 13303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13304 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13306$as_echo "$as_me: $ac_file is unchanged" >&6;} 13307 else 13308 rm -f "$ac_file" 13309 mv "$ac_tmp/config.h" "$ac_file" \ 13310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13311 fi 13312 else 13313 $as_echo "/* $configure_input */" \ 13314 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13315 || as_fn_error $? "could not create -" "$LINENO" 5 13316 fi 13317 ;; 13318 13319 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13320$as_echo "$as_me: executing $ac_file commands" >&6;} 13321 ;; 13322 esac 13323 13324 13325 case $ac_file$ac_mode in 13326 "default-1":C) 13327# Only add multilib support code if we just rebuilt the top-level 13328# Makefile. 13329case " $CONFIG_FILES " in 13330 *" Makefile "*) 13331 ac_file=Makefile . ${multi_basedir}/config-ml.in 13332 ;; 13333esac ;; 13334 "libtool":C) 13335 13336 # See if we are running on zsh, and set the options which allow our 13337 # commands through without removal of \ escapes. 13338 if test -n "${ZSH_VERSION+set}" ; then 13339 setopt NO_GLOB_SUBST 13340 fi 13341 13342 cfgfile="${ofile}T" 13343 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13344 $RM "$cfgfile" 13345 13346 cat <<_LT_EOF >> "$cfgfile" 13347#! $SHELL 13348 13349# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13350# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13351# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13352# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13353# 13354# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13355# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 13356# Written by Gordon Matzigkeit, 1996 13357# 13358# This file is part of GNU Libtool. 13359# 13360# GNU Libtool is free software; you can redistribute it and/or 13361# modify it under the terms of the GNU General Public License as 13362# published by the Free Software Foundation; either version 2 of 13363# the License, or (at your option) any later version. 13364# 13365# As a special exception to the GNU General Public License, 13366# if you distribute this file as part of a program or library that 13367# is built using GNU Libtool, you may include this file under the 13368# same distribution terms that you use for the rest of that program. 13369# 13370# GNU Libtool is distributed in the hope that it will be useful, 13371# but WITHOUT ANY WARRANTY; without even the implied warranty of 13372# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13373# GNU General Public License for more details. 13374# 13375# You should have received a copy of the GNU General Public License 13376# along with GNU Libtool; see the file COPYING. If not, a copy 13377# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13378# obtained by writing to the Free Software Foundation, Inc., 13379# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13380 13381 13382# The names of the tagged configurations supported by this script. 13383available_tags="" 13384 13385# ### BEGIN LIBTOOL CONFIG 13386 13387# Assembler program. 13388AS=$lt_AS 13389 13390# DLL creation program. 13391DLLTOOL=$lt_DLLTOOL 13392 13393# Object dumper program. 13394OBJDUMP=$lt_OBJDUMP 13395 13396# Which release of libtool.m4 was used? 13397macro_version=$macro_version 13398macro_revision=$macro_revision 13399 13400# Whether or not to build shared libraries. 13401build_libtool_libs=$enable_shared 13402 13403# Whether or not to build static libraries. 13404build_old_libs=$enable_static 13405 13406# What type of objects to build. 13407pic_mode=$pic_mode 13408 13409# Whether or not to optimize for fast installation. 13410fast_install=$enable_fast_install 13411 13412# Shell to use when invoking shell scripts. 13413SHELL=$lt_SHELL 13414 13415# An echo program that protects backslashes. 13416ECHO=$lt_ECHO 13417 13418# The host system. 13419host_alias=$host_alias 13420host=$host 13421host_os=$host_os 13422 13423# The build system. 13424build_alias=$build_alias 13425build=$build 13426build_os=$build_os 13427 13428# A sed program that does not truncate output. 13429SED=$lt_SED 13430 13431# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13432Xsed="\$SED -e 1s/^X//" 13433 13434# A grep program that handles long lines. 13435GREP=$lt_GREP 13436 13437# An ERE matcher. 13438EGREP=$lt_EGREP 13439 13440# A literal string matcher. 13441FGREP=$lt_FGREP 13442 13443# A BSD- or MS-compatible name lister. 13444NM=$lt_NM 13445 13446# Whether we need soft or hard links. 13447LN_S=$lt_LN_S 13448 13449# What is the maximum length of a command? 13450max_cmd_len=$max_cmd_len 13451 13452# Object file suffix (normally "o"). 13453objext=$ac_objext 13454 13455# Executable file suffix (normally ""). 13456exeext=$exeext 13457 13458# whether the shell understands "unset". 13459lt_unset=$lt_unset 13460 13461# turn spaces into newlines. 13462SP2NL=$lt_lt_SP2NL 13463 13464# turn newlines into spaces. 13465NL2SP=$lt_lt_NL2SP 13466 13467# Method to check whether dependent libraries are shared objects. 13468deplibs_check_method=$lt_deplibs_check_method 13469 13470# Command to use when deplibs_check_method == "file_magic". 13471file_magic_cmd=$lt_file_magic_cmd 13472 13473# The archiver. 13474AR=$lt_AR 13475AR_FLAGS=$lt_AR_FLAGS 13476 13477# A symbol stripping program. 13478STRIP=$lt_STRIP 13479 13480# Commands used to install an old-style archive. 13481RANLIB=$lt_RANLIB 13482old_postinstall_cmds=$lt_old_postinstall_cmds 13483old_postuninstall_cmds=$lt_old_postuninstall_cmds 13484 13485# Whether to use a lock for old archive extraction. 13486lock_old_archive_extraction=$lock_old_archive_extraction 13487 13488# A C compiler. 13489LTCC=$lt_CC 13490 13491# LTCC compiler flags. 13492LTCFLAGS=$lt_CFLAGS 13493 13494# Take the output of nm and produce a listing of raw symbols and C names. 13495global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13496 13497# Transform the output of nm in a proper C declaration. 13498global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13499 13500# Transform the output of nm in a C name address pair. 13501global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13502 13503# Transform the output of nm in a C name address pair when lib prefix is needed. 13504global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13505 13506# The name of the directory that contains temporary libtool files. 13507objdir=$objdir 13508 13509# Used to examine libraries when file_magic_cmd begins with "file". 13510MAGIC_CMD=$MAGIC_CMD 13511 13512# Must we lock files when doing compilation? 13513need_locks=$lt_need_locks 13514 13515# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13516DSYMUTIL=$lt_DSYMUTIL 13517 13518# Tool to change global to local symbols on Mac OS X. 13519NMEDIT=$lt_NMEDIT 13520 13521# Tool to manipulate fat objects and archives on Mac OS X. 13522LIPO=$lt_LIPO 13523 13524# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13525OTOOL=$lt_OTOOL 13526 13527# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13528OTOOL64=$lt_OTOOL64 13529 13530# Old archive suffix (normally "a"). 13531libext=$libext 13532 13533# Shared library suffix (normally ".so"). 13534shrext_cmds=$lt_shrext_cmds 13535 13536# The commands to extract the exported symbol list from a shared archive. 13537extract_expsyms_cmds=$lt_extract_expsyms_cmds 13538 13539# Variables whose values should be saved in libtool wrapper scripts and 13540# restored at link time. 13541variables_saved_for_relink=$lt_variables_saved_for_relink 13542 13543# Do we need the "lib" prefix for modules? 13544need_lib_prefix=$need_lib_prefix 13545 13546# Do we need a version for libraries? 13547need_version=$need_version 13548 13549# Library versioning type. 13550version_type=$version_type 13551 13552# Shared library runtime path variable. 13553runpath_var=$runpath_var 13554 13555# Shared library path variable. 13556shlibpath_var=$shlibpath_var 13557 13558# Is shlibpath searched before the hard-coded library search path? 13559shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13560 13561# Format of library name prefix. 13562libname_spec=$lt_libname_spec 13563 13564# List of archive names. First name is the real one, the rest are links. 13565# The last name is the one that the linker finds with -lNAME 13566library_names_spec=$lt_library_names_spec 13567 13568# The coded name of the library, if different from the real name. 13569soname_spec=$lt_soname_spec 13570 13571# Permission mode override for installation of shared libraries. 13572install_override_mode=$lt_install_override_mode 13573 13574# Command to use after installation of a shared archive. 13575postinstall_cmds=$lt_postinstall_cmds 13576 13577# Command to use after uninstallation of a shared archive. 13578postuninstall_cmds=$lt_postuninstall_cmds 13579 13580# Commands used to finish a libtool library installation in a directory. 13581finish_cmds=$lt_finish_cmds 13582 13583# As "finish_cmds", except a single script fragment to be evaled but 13584# not shown. 13585finish_eval=$lt_finish_eval 13586 13587# Whether we should hardcode library paths into libraries. 13588hardcode_into_libs=$hardcode_into_libs 13589 13590# Compile-time system search path for libraries. 13591sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13592 13593# Run-time system search path for libraries. 13594sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13595 13596# Whether dlopen is supported. 13597dlopen_support=$enable_dlopen 13598 13599# Whether dlopen of programs is supported. 13600dlopen_self=$enable_dlopen_self 13601 13602# Whether dlopen of statically linked programs is supported. 13603dlopen_self_static=$enable_dlopen_self_static 13604 13605# Commands to strip libraries. 13606old_striplib=$lt_old_striplib 13607striplib=$lt_striplib 13608 13609 13610# The linker used to build libraries. 13611LD=$lt_LD 13612 13613# How to create reloadable object files. 13614reload_flag=$lt_reload_flag 13615reload_cmds=$lt_reload_cmds 13616 13617# Commands used to build an old-style archive. 13618old_archive_cmds=$lt_old_archive_cmds 13619 13620# A language specific compiler. 13621CC=$lt_compiler 13622 13623# Is the compiler the GNU compiler? 13624with_gcc=$GCC 13625 13626# Compiler flag to turn off builtin functions. 13627no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13628 13629# How to pass a linker flag through the compiler. 13630wl=$lt_lt_prog_compiler_wl 13631 13632# Additional compiler flags for building library objects. 13633pic_flag=$lt_lt_prog_compiler_pic 13634 13635# Compiler flag to prevent dynamic linking. 13636link_static_flag=$lt_lt_prog_compiler_static 13637 13638# Does compiler simultaneously support -c and -o options? 13639compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13640 13641# Whether or not to add -lc for building shared libraries. 13642build_libtool_need_lc=$archive_cmds_need_lc 13643 13644# Whether or not to disallow shared libs when runtime libs are static. 13645allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13646 13647# Compiler flag to allow reflexive dlopens. 13648export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13649 13650# Compiler flag to generate shared objects directly from archives. 13651whole_archive_flag_spec=$lt_whole_archive_flag_spec 13652 13653# Whether the compiler copes with passing no objects directly. 13654compiler_needs_object=$lt_compiler_needs_object 13655 13656# Create an old-style archive from a shared archive. 13657old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13658 13659# Create a temporary old-style archive to link instead of a shared archive. 13660old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13661 13662# Commands used to build a shared archive. 13663archive_cmds=$lt_archive_cmds 13664archive_expsym_cmds=$lt_archive_expsym_cmds 13665 13666# Commands used to build a loadable module if different from building 13667# a shared archive. 13668module_cmds=$lt_module_cmds 13669module_expsym_cmds=$lt_module_expsym_cmds 13670 13671# Whether we are building with GNU ld or not. 13672with_gnu_ld=$lt_with_gnu_ld 13673 13674# Flag that allows shared libraries with undefined symbols to be built. 13675allow_undefined_flag=$lt_allow_undefined_flag 13676 13677# Flag that enforces no undefined symbols. 13678no_undefined_flag=$lt_no_undefined_flag 13679 13680# Flag to hardcode \$libdir into a binary during linking. 13681# This must work even if \$libdir does not exist 13682hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13683 13684# If ld is used when linking, flag to hardcode \$libdir into a binary 13685# during linking. This must work even if \$libdir does not exist. 13686hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13687 13688# Whether we need a single "-rpath" flag with a separated argument. 13689hardcode_libdir_separator=$lt_hardcode_libdir_separator 13690 13691# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13692# DIR into the resulting binary. 13693hardcode_direct=$hardcode_direct 13694 13695# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13696# DIR into the resulting binary and the resulting library dependency is 13697# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13698# library is relocated. 13699hardcode_direct_absolute=$hardcode_direct_absolute 13700 13701# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13702# into the resulting binary. 13703hardcode_minus_L=$hardcode_minus_L 13704 13705# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13706# into the resulting binary. 13707hardcode_shlibpath_var=$hardcode_shlibpath_var 13708 13709# Set to "yes" if building a shared library automatically hardcodes DIR 13710# into the library and all subsequent libraries and executables linked 13711# against it. 13712hardcode_automatic=$hardcode_automatic 13713 13714# Set to yes if linker adds runtime paths of dependent libraries 13715# to runtime path list. 13716inherit_rpath=$inherit_rpath 13717 13718# Whether libtool must link a program against all its dependency libraries. 13719link_all_deplibs=$link_all_deplibs 13720 13721# Fix the shell variable \$srcfile for the compiler. 13722fix_srcfile_path=$lt_fix_srcfile_path 13723 13724# Set to "yes" if exported symbols are required. 13725always_export_symbols=$always_export_symbols 13726 13727# The commands to list exported symbols. 13728export_symbols_cmds=$lt_export_symbols_cmds 13729 13730# Symbols that should not be listed in the preloaded symbols. 13731exclude_expsyms=$lt_exclude_expsyms 13732 13733# Symbols that must always be exported. 13734include_expsyms=$lt_include_expsyms 13735 13736# Commands necessary for linking programs (against libraries) with templates. 13737prelink_cmds=$lt_prelink_cmds 13738 13739# Specify filename containing input files. 13740file_list_spec=$lt_file_list_spec 13741 13742# How to hardcode a shared library path into an executable. 13743hardcode_action=$hardcode_action 13744 13745# ### END LIBTOOL CONFIG 13746 13747_LT_EOF 13748 13749 case $host_os in 13750 aix3*) 13751 cat <<\_LT_EOF >> "$cfgfile" 13752# AIX sometimes has problems with the GCC collect2 program. For some 13753# reason, if we set the COLLECT_NAMES environment variable, the problems 13754# vanish in a puff of smoke. 13755if test "X${COLLECT_NAMES+set}" != Xset; then 13756 COLLECT_NAMES= 13757 export COLLECT_NAMES 13758fi 13759_LT_EOF 13760 ;; 13761 esac 13762 13763 13764ltmain="$ac_aux_dir/ltmain.sh" 13765 13766 13767 # We use sed instead of cat because bash on DJGPP gets confused if 13768 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13769 # text mode, it properly converts lines to CR/LF. This bash problem 13770 # is reportedly fixed, but why not run on old versions too? 13771 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13772 || (rm -f "$cfgfile"; exit 1) 13773 13774 case $xsi_shell in 13775 yes) 13776 cat << \_LT_EOF >> "$cfgfile" 13777 13778# func_dirname file append nondir_replacement 13779# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13780# otherwise set result to NONDIR_REPLACEMENT. 13781func_dirname () 13782{ 13783 case ${1} in 13784 */*) func_dirname_result="${1%/*}${2}" ;; 13785 * ) func_dirname_result="${3}" ;; 13786 esac 13787} 13788 13789# func_basename file 13790func_basename () 13791{ 13792 func_basename_result="${1##*/}" 13793} 13794 13795# func_dirname_and_basename file append nondir_replacement 13796# perform func_basename and func_dirname in a single function 13797# call: 13798# dirname: Compute the dirname of FILE. If nonempty, 13799# add APPEND to the result, otherwise set result 13800# to NONDIR_REPLACEMENT. 13801# value returned in "$func_dirname_result" 13802# basename: Compute filename of FILE. 13803# value retuned in "$func_basename_result" 13804# Implementation must be kept synchronized with func_dirname 13805# and func_basename. For efficiency, we do not delegate to 13806# those functions but instead duplicate the functionality here. 13807func_dirname_and_basename () 13808{ 13809 case ${1} in 13810 */*) func_dirname_result="${1%/*}${2}" ;; 13811 * ) func_dirname_result="${3}" ;; 13812 esac 13813 func_basename_result="${1##*/}" 13814} 13815 13816# func_stripname prefix suffix name 13817# strip PREFIX and SUFFIX off of NAME. 13818# PREFIX and SUFFIX must not contain globbing or regex special 13819# characters, hashes, percent signs, but SUFFIX may contain a leading 13820# dot (in which case that matches only a dot). 13821func_stripname () 13822{ 13823 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13824 # positional parameters, so assign one to ordinary parameter first. 13825 func_stripname_result=${3} 13826 func_stripname_result=${func_stripname_result#"${1}"} 13827 func_stripname_result=${func_stripname_result%"${2}"} 13828} 13829 13830# func_opt_split 13831func_opt_split () 13832{ 13833 func_opt_split_opt=${1%%=*} 13834 func_opt_split_arg=${1#*=} 13835} 13836 13837# func_lo2o object 13838func_lo2o () 13839{ 13840 case ${1} in 13841 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13842 *) func_lo2o_result=${1} ;; 13843 esac 13844} 13845 13846# func_xform libobj-or-source 13847func_xform () 13848{ 13849 func_xform_result=${1%.*}.lo 13850} 13851 13852# func_arith arithmetic-term... 13853func_arith () 13854{ 13855 func_arith_result=$(( $* )) 13856} 13857 13858# func_len string 13859# STRING may not start with a hyphen. 13860func_len () 13861{ 13862 func_len_result=${#1} 13863} 13864 13865_LT_EOF 13866 ;; 13867 *) # Bourne compatible functions. 13868 cat << \_LT_EOF >> "$cfgfile" 13869 13870# func_dirname file append nondir_replacement 13871# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13872# otherwise set result to NONDIR_REPLACEMENT. 13873func_dirname () 13874{ 13875 # Extract subdirectory from the argument. 13876 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 13877 if test "X$func_dirname_result" = "X${1}"; then 13878 func_dirname_result="${3}" 13879 else 13880 func_dirname_result="$func_dirname_result${2}" 13881 fi 13882} 13883 13884# func_basename file 13885func_basename () 13886{ 13887 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 13888} 13889 13890 13891# func_stripname prefix suffix name 13892# strip PREFIX and SUFFIX off of NAME. 13893# PREFIX and SUFFIX must not contain globbing or regex special 13894# characters, hashes, percent signs, but SUFFIX may contain a leading 13895# dot (in which case that matches only a dot). 13896# func_strip_suffix prefix name 13897func_stripname () 13898{ 13899 case ${2} in 13900 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 13901 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 13902 esac 13903} 13904 13905# sed scripts: 13906my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13907my_sed_long_arg='1s/^-[^=]*=//' 13908 13909# func_opt_split 13910func_opt_split () 13911{ 13912 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 13913 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 13914} 13915 13916# func_lo2o object 13917func_lo2o () 13918{ 13919 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 13920} 13921 13922# func_xform libobj-or-source 13923func_xform () 13924{ 13925 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 13926} 13927 13928# func_arith arithmetic-term... 13929func_arith () 13930{ 13931 func_arith_result=`expr "$@"` 13932} 13933 13934# func_len string 13935# STRING may not start with a hyphen. 13936func_len () 13937{ 13938 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13939} 13940 13941_LT_EOF 13942esac 13943 13944case $lt_shell_append in 13945 yes) 13946 cat << \_LT_EOF >> "$cfgfile" 13947 13948# func_append var value 13949# Append VALUE to the end of shell variable VAR. 13950func_append () 13951{ 13952 eval "$1+=\$2" 13953} 13954_LT_EOF 13955 ;; 13956 *) 13957 cat << \_LT_EOF >> "$cfgfile" 13958 13959# func_append var value 13960# Append VALUE to the end of shell variable VAR. 13961func_append () 13962{ 13963 eval "$1=\$$1\$2" 13964} 13965 13966_LT_EOF 13967 ;; 13968 esac 13969 13970 13971 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13972 || (rm -f "$cfgfile"; exit 1) 13973 13974 mv -f "$cfgfile" "$ofile" || 13975 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13976 chmod +x "$ofile" 13977 13978 ;; 13979 13980 esac 13981done # for ac_tag 13982 13983 13984as_fn_exit 0 13985_ACEOF 13986ac_clean_files=$ac_clean_files_save 13987 13988test $ac_write_fail = 0 || 13989 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13990 13991 13992# configure is writing to config.log, and then calls config.status. 13993# config.status does its own redirection, appending to config.log. 13994# Unfortunately, on DOS this fails, as config.log is still kept open 13995# by configure, so config.status won't be able to write to it; its 13996# output is simply discarded. So we exec the FD to /dev/null, 13997# effectively closing config.log, so it can be properly (re)opened and 13998# appended to by config.status. When coming back to configure, we 13999# need to make the FD available again. 14000if test "$no_create" != yes; then 14001 ac_cs_success=: 14002 ac_config_status_args= 14003 test "$silent" = yes && 14004 ac_config_status_args="$ac_config_status_args --quiet" 14005 exec 5>/dev/null 14006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14007 exec 5>>config.log 14008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14009 # would make configure fail if this is the last instruction. 14010 $ac_cs_success || as_fn_exit 1 14011fi 14012if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14014$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14015fi 14016 14017