1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for zlib 1.1.4. 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='zlib' 589PACKAGE_TARNAME='zlib' 590PACKAGE_VERSION='1.1.4' 591PACKAGE_STRING='zlib 1.1.4' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="zlib.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_header_list= 633ac_subst_vars='am__EXEEXT_FALSE 634am__EXEEXT_TRUE 635LTLIBOBJS 636LIBOBJS 637PICFLAG 638TARGET_LIBRARY_FALSE 639TARGET_LIBRARY_TRUE 640toolexeclibdir 641toolexecdir 642target_all 643CPP 644OTOOL64 645OTOOL 646LIPO 647NMEDIT 648DSYMUTIL 649RANLIB 650AR 651OBJDUMP 652LN_S 653NM 654ac_ct_DUMPBIN 655DUMPBIN 656LD 657FGREP 658EGREP 659GREP 660SED 661LIBTOOL 662am__fastdepCC_FALSE 663am__fastdepCC_TRUE 664CCDEPMODE 665am__nodep 666AMDEPBACKSLASH 667AMDEP_FALSE 668AMDEP_TRUE 669am__include 670DEPDIR 671OBJEXT 672EXEEXT 673ac_ct_CC 674CPPFLAGS 675LDFLAGS 676CFLAGS 677CC 678COMPPATH 679MAINT 680MAINTAINER_MODE_FALSE 681MAINTAINER_MODE_TRUE 682AM_BACKSLASH 683AM_DEFAULT_VERBOSITY 684AM_DEFAULT_V 685AM_V 686CSCOPE 687ETAGS 688CTAGS 689am__untar 690am__tar 691AMTAR 692am__leading_dot 693SET_MAKE 694AWK 695mkdir_p 696MKDIR_P 697INSTALL_STRIP_PROGRAM 698STRIP 699install_sh 700MAKEINFO 701AUTOHEADER 702AUTOMAKE 703AUTOCONF 704ACLOCAL 705VERSION 706PACKAGE 707CYGPATH_W 708am__isrc 709INSTALL_DATA 710INSTALL_SCRIPT 711INSTALL_PROGRAM 712mkinstalldirs 713target_os 714target_vendor 715target_cpu 716target 717host_os 718host_vendor 719host_cpu 720host 721build_os 722build_vendor 723build_cpu 724build 725multi_basedir 726target_alias 727host_alias 728build_alias 729LIBS 730ECHO_T 731ECHO_N 732ECHO_C 733DEFS 734mandir 735localedir 736libdir 737psdir 738pdfdir 739dvidir 740htmldir 741infodir 742docdir 743oldincludedir 744includedir 745localstatedir 746sharedstatedir 747sysconfdir 748datadir 749datarootdir 750libexecdir 751sbindir 752bindir 753program_transform_name 754prefix 755exec_prefix 756PACKAGE_URL 757PACKAGE_BUGREPORT 758PACKAGE_STRING 759PACKAGE_VERSION 760PACKAGE_TARNAME 761PACKAGE_NAME 762PATH_SEPARATOR 763SHELL 764am__quote' 765ac_subst_files='' 766ac_user_opts=' 767enable_option_checking 768enable_multilib 769enable_silent_rules 770enable_maintainer_mode 771with_target_subdir 772with_cross_host 773with_system_zlib 774enable_dependency_tracking 775enable_shared 776enable_static 777with_pic 778enable_fast_install 779with_gnu_ld 780enable_libtool_lock 781enable_host_shared 782' 783 ac_precious_vars='build_alias 784host_alias 785target_alias 786CPP 787CPPFLAGS' 788 789 790# Initialize some variables set by options. 791ac_init_help= 792ac_init_version=false 793ac_unrecognized_opts= 794ac_unrecognized_sep= 795# The variables have the same names as the options, with 796# dashes changed to underlines. 797cache_file=/dev/null 798exec_prefix=NONE 799no_create= 800no_recursion= 801prefix=NONE 802program_prefix=NONE 803program_suffix=NONE 804program_transform_name=s,x,x, 805silent= 806site= 807srcdir= 808verbose= 809x_includes=NONE 810x_libraries=NONE 811 812# Installation directory options. 813# These are left unexpanded so users can "make install exec_prefix=/foo" 814# and all the variables that are supposed to be based on exec_prefix 815# by default will actually change. 816# Use braces instead of parens because sh, perl, etc. also accept them. 817# (The list follows the same order as the GNU Coding Standards.) 818bindir='${exec_prefix}/bin' 819sbindir='${exec_prefix}/sbin' 820libexecdir='${exec_prefix}/libexec' 821datarootdir='${prefix}/share' 822datadir='${datarootdir}' 823sysconfdir='${prefix}/etc' 824sharedstatedir='${prefix}/com' 825localstatedir='${prefix}/var' 826includedir='${prefix}/include' 827oldincludedir='/usr/include' 828docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 829infodir='${datarootdir}/info' 830htmldir='${docdir}' 831dvidir='${docdir}' 832pdfdir='${docdir}' 833psdir='${docdir}' 834libdir='${exec_prefix}/lib' 835localedir='${datarootdir}/locale' 836mandir='${datarootdir}/man' 837 838ac_prev= 839ac_dashdash= 840for ac_option 841do 842 # If the previous option needs an argument, assign it. 843 if test -n "$ac_prev"; then 844 eval $ac_prev=\$ac_option 845 ac_prev= 846 continue 847 fi 848 849 case $ac_option in 850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 851 *=) ac_optarg= ;; 852 *) ac_optarg=yes ;; 853 esac 854 855 # Accept the important Cygnus configure options, so we can diagnose typos. 856 857 case $ac_dashdash$ac_option in 858 --) 859 ac_dashdash=yes ;; 860 861 -bindir | --bindir | --bindi | --bind | --bin | --bi) 862 ac_prev=bindir ;; 863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 864 bindir=$ac_optarg ;; 865 866 -build | --build | --buil | --bui | --bu) 867 ac_prev=build_alias ;; 868 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 869 build_alias=$ac_optarg ;; 870 871 -cache-file | --cache-file | --cache-fil | --cache-fi \ 872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 873 ac_prev=cache_file ;; 874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 876 cache_file=$ac_optarg ;; 877 878 --config-cache | -C) 879 cache_file=config.cache ;; 880 881 -datadir | --datadir | --datadi | --datad) 882 ac_prev=datadir ;; 883 -datadir=* | --datadir=* | --datadi=* | --datad=*) 884 datadir=$ac_optarg ;; 885 886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 887 | --dataroo | --dataro | --datar) 888 ac_prev=datarootdir ;; 889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 891 datarootdir=$ac_optarg ;; 892 893 -disable-* | --disable-*) 894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 895 # Reject names that are not valid shell variable names. 896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 897 as_fn_error $? "invalid feature name: $ac_useropt" 898 ac_useropt_orig=$ac_useropt 899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 900 case $ac_user_opts in 901 *" 902"enable_$ac_useropt" 903"*) ;; 904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 905 ac_unrecognized_sep=', ';; 906 esac 907 eval enable_$ac_useropt=no ;; 908 909 -docdir | --docdir | --docdi | --doc | --do) 910 ac_prev=docdir ;; 911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 912 docdir=$ac_optarg ;; 913 914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 915 ac_prev=dvidir ;; 916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 917 dvidir=$ac_optarg ;; 918 919 -enable-* | --enable-*) 920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 921 # Reject names that are not valid shell variable names. 922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 923 as_fn_error $? "invalid feature name: $ac_useropt" 924 ac_useropt_orig=$ac_useropt 925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 926 case $ac_user_opts in 927 *" 928"enable_$ac_useropt" 929"*) ;; 930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 931 ac_unrecognized_sep=', ';; 932 esac 933 eval enable_$ac_useropt=\$ac_optarg ;; 934 935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 937 | --exec | --exe | --ex) 938 ac_prev=exec_prefix ;; 939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 941 | --exec=* | --exe=* | --ex=*) 942 exec_prefix=$ac_optarg ;; 943 944 -gas | --gas | --ga | --g) 945 # Obsolete; use --with-gas. 946 with_gas=yes ;; 947 948 -help | --help | --hel | --he | -h) 949 ac_init_help=long ;; 950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 951 ac_init_help=recursive ;; 952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 953 ac_init_help=short ;; 954 955 -host | --host | --hos | --ho) 956 ac_prev=host_alias ;; 957 -host=* | --host=* | --hos=* | --ho=*) 958 host_alias=$ac_optarg ;; 959 960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 961 ac_prev=htmldir ;; 962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 963 | --ht=*) 964 htmldir=$ac_optarg ;; 965 966 -includedir | --includedir | --includedi | --included | --include \ 967 | --includ | --inclu | --incl | --inc) 968 ac_prev=includedir ;; 969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 970 | --includ=* | --inclu=* | --incl=* | --inc=*) 971 includedir=$ac_optarg ;; 972 973 -infodir | --infodir | --infodi | --infod | --info | --inf) 974 ac_prev=infodir ;; 975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 976 infodir=$ac_optarg ;; 977 978 -libdir | --libdir | --libdi | --libd) 979 ac_prev=libdir ;; 980 -libdir=* | --libdir=* | --libdi=* | --libd=*) 981 libdir=$ac_optarg ;; 982 983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 984 | --libexe | --libex | --libe) 985 ac_prev=libexecdir ;; 986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 987 | --libexe=* | --libex=* | --libe=*) 988 libexecdir=$ac_optarg ;; 989 990 -localedir | --localedir | --localedi | --localed | --locale) 991 ac_prev=localedir ;; 992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 993 localedir=$ac_optarg ;; 994 995 -localstatedir | --localstatedir | --localstatedi | --localstated \ 996 | --localstate | --localstat | --localsta | --localst | --locals) 997 ac_prev=localstatedir ;; 998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1000 localstatedir=$ac_optarg ;; 1001 1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1003 ac_prev=mandir ;; 1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1005 mandir=$ac_optarg ;; 1006 1007 -nfp | --nfp | --nf) 1008 # Obsolete; use --without-fp. 1009 with_fp=no ;; 1010 1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1012 | --no-cr | --no-c | -n) 1013 no_create=yes ;; 1014 1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1017 no_recursion=yes ;; 1018 1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1021 | --oldin | --oldi | --old | --ol | --o) 1022 ac_prev=oldincludedir ;; 1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1026 oldincludedir=$ac_optarg ;; 1027 1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1029 ac_prev=prefix ;; 1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1031 prefix=$ac_optarg ;; 1032 1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1034 | --program-pre | --program-pr | --program-p) 1035 ac_prev=program_prefix ;; 1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1038 program_prefix=$ac_optarg ;; 1039 1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1041 | --program-suf | --program-su | --program-s) 1042 ac_prev=program_suffix ;; 1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1045 program_suffix=$ac_optarg ;; 1046 1047 -program-transform-name | --program-transform-name \ 1048 | --program-transform-nam | --program-transform-na \ 1049 | --program-transform-n | --program-transform- \ 1050 | --program-transform | --program-transfor \ 1051 | --program-transfo | --program-transf \ 1052 | --program-trans | --program-tran \ 1053 | --progr-tra | --program-tr | --program-t) 1054 ac_prev=program_transform_name ;; 1055 -program-transform-name=* | --program-transform-name=* \ 1056 | --program-transform-nam=* | --program-transform-na=* \ 1057 | --program-transform-n=* | --program-transform-=* \ 1058 | --program-transform=* | --program-transfor=* \ 1059 | --program-transfo=* | --program-transf=* \ 1060 | --program-trans=* | --program-tran=* \ 1061 | --progr-tra=* | --program-tr=* | --program-t=*) 1062 program_transform_name=$ac_optarg ;; 1063 1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1065 ac_prev=pdfdir ;; 1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1067 pdfdir=$ac_optarg ;; 1068 1069 -psdir | --psdir | --psdi | --psd | --ps) 1070 ac_prev=psdir ;; 1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1072 psdir=$ac_optarg ;; 1073 1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1075 | -silent | --silent | --silen | --sile | --sil) 1076 silent=yes ;; 1077 1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1079 ac_prev=sbindir ;; 1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1081 | --sbi=* | --sb=*) 1082 sbindir=$ac_optarg ;; 1083 1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1086 | --sharedst | --shareds | --shared | --share | --shar \ 1087 | --sha | --sh) 1088 ac_prev=sharedstatedir ;; 1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1092 | --sha=* | --sh=*) 1093 sharedstatedir=$ac_optarg ;; 1094 1095 -site | --site | --sit) 1096 ac_prev=site ;; 1097 -site=* | --site=* | --sit=*) 1098 site=$ac_optarg ;; 1099 1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1101 ac_prev=srcdir ;; 1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1103 srcdir=$ac_optarg ;; 1104 1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1106 | --syscon | --sysco | --sysc | --sys | --sy) 1107 ac_prev=sysconfdir ;; 1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1110 sysconfdir=$ac_optarg ;; 1111 1112 -target | --target | --targe | --targ | --tar | --ta | --t) 1113 ac_prev=target_alias ;; 1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1115 target_alias=$ac_optarg ;; 1116 1117 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1118 verbose=yes ;; 1119 1120 -version | --version | --versio | --versi | --vers | -V) 1121 ac_init_version=: ;; 1122 1123 -with-* | --with-*) 1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1125 # Reject names that are not valid shell variable names. 1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1127 as_fn_error $? "invalid package name: $ac_useropt" 1128 ac_useropt_orig=$ac_useropt 1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1130 case $ac_user_opts in 1131 *" 1132"with_$ac_useropt" 1133"*) ;; 1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1135 ac_unrecognized_sep=', ';; 1136 esac 1137 eval with_$ac_useropt=\$ac_optarg ;; 1138 1139 -without-* | --without-*) 1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1141 # Reject names that are not valid shell variable names. 1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1143 as_fn_error $? "invalid package name: $ac_useropt" 1144 ac_useropt_orig=$ac_useropt 1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1146 case $ac_user_opts in 1147 *" 1148"with_$ac_useropt" 1149"*) ;; 1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1151 ac_unrecognized_sep=', ';; 1152 esac 1153 eval with_$ac_useropt=no ;; 1154 1155 --x) 1156 # Obsolete; use --with-x. 1157 with_x=yes ;; 1158 1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1160 | --x-incl | --x-inc | --x-in | --x-i) 1161 ac_prev=x_includes ;; 1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1164 x_includes=$ac_optarg ;; 1165 1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1168 ac_prev=x_libraries ;; 1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1171 x_libraries=$ac_optarg ;; 1172 1173 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1174Try \`$0 --help' for more information" 1175 ;; 1176 1177 *=*) 1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1179 # Reject names that are not valid shell variable names. 1180 case $ac_envvar in #( 1181 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1183 esac 1184 eval $ac_envvar=\$ac_optarg 1185 export $ac_envvar ;; 1186 1187 *) 1188 # FIXME: should be removed in autoconf 3.0. 1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1193 ;; 1194 1195 esac 1196done 1197 1198if test -n "$ac_prev"; then 1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1200 as_fn_error $? "missing argument to $ac_option" 1201fi 1202 1203if test -n "$ac_unrecognized_opts"; then 1204 case $enable_option_checking in 1205 no) ;; 1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1208 esac 1209fi 1210 1211# Check all directory arguments for consistency. 1212for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1213 datadir sysconfdir sharedstatedir localstatedir includedir \ 1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1215 libdir localedir mandir 1216do 1217 eval ac_val=\$$ac_var 1218 # Remove trailing slashes. 1219 case $ac_val in 1220 */ ) 1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1222 eval $ac_var=\$ac_val;; 1223 esac 1224 # Be sure to have absolute directory names. 1225 case $ac_val in 1226 [\\/$]* | ?:[\\/]* ) continue;; 1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1228 esac 1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1230done 1231 1232# There might be people who depend on the old broken behavior: `$host' 1233# used to hold the argument of --host etc. 1234# FIXME: To remove some day. 1235build=$build_alias 1236host=$host_alias 1237target=$target_alias 1238 1239# FIXME: To remove some day. 1240if test "x$host_alias" != x; then 1241 if test "x$build_alias" = x; then 1242 cross_compiling=maybe 1243 elif test "x$build_alias" != "x$host_alias"; then 1244 cross_compiling=yes 1245 fi 1246fi 1247 1248ac_tool_prefix= 1249test -n "$host_alias" && ac_tool_prefix=$host_alias- 1250 1251test "$silent" = yes && exec 6>/dev/null 1252 1253 1254ac_pwd=`pwd` && test -n "$ac_pwd" && 1255ac_ls_di=`ls -di .` && 1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1257 as_fn_error $? "working directory cannot be determined" 1258test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1259 as_fn_error $? "pwd does not report name of working directory" 1260 1261 1262# Find the source files, if location was not specified. 1263if test -z "$srcdir"; then 1264 ac_srcdir_defaulted=yes 1265 # Try the directory containing this script, then the parent directory. 1266 ac_confdir=`$as_dirname -- "$as_myself" || 1267$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1268 X"$as_myself" : 'X\(//\)[^/]' \| \ 1269 X"$as_myself" : 'X\(//\)$' \| \ 1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1271$as_echo X"$as_myself" | 1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\/\)[^/].*/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)$/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\).*/{ 1285 s//\1/ 1286 q 1287 } 1288 s/.*/./; q'` 1289 srcdir=$ac_confdir 1290 if test ! -r "$srcdir/$ac_unique_file"; then 1291 srcdir=.. 1292 fi 1293else 1294 ac_srcdir_defaulted=no 1295fi 1296if test ! -r "$srcdir/$ac_unique_file"; then 1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1299fi 1300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1301ac_abs_confdir=`( 1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1303 pwd)` 1304# When building in place, set srcdir=. 1305if test "$ac_abs_confdir" = "$ac_pwd"; then 1306 srcdir=. 1307fi 1308# Remove unnecessary trailing slashes from srcdir. 1309# Double slashes in file names in object file debugging info 1310# mess up M-x gdb in Emacs. 1311case $srcdir in 1312*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1313esac 1314for ac_var in $ac_precious_vars; do 1315 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1316 eval ac_env_${ac_var}_value=\$${ac_var} 1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1318 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1319done 1320 1321# 1322# Report the --help message. 1323# 1324if test "$ac_init_help" = "long"; then 1325 # Omit some internal or obsolete options to make the list less imposing. 1326 # This message is too long to be a string in the A/UX 3.1 sh. 1327 cat <<_ACEOF 1328\`configure' configures zlib 1.1.4 to adapt to many kinds of systems. 1329 1330Usage: $0 [OPTION]... [VAR=VALUE]... 1331 1332To assign environment variables (e.g., CC, CFLAGS...), specify them as 1333VAR=VALUE. See below for descriptions of some of the useful variables. 1334 1335Defaults for the options are specified in brackets. 1336 1337Configuration: 1338 -h, --help display this help and exit 1339 --help=short display options specific to this package 1340 --help=recursive display the short help of all the included packages 1341 -V, --version display version information and exit 1342 -q, --quiet, --silent do not print \`checking ...' messages 1343 --cache-file=FILE cache test results in FILE [disabled] 1344 -C, --config-cache alias for \`--cache-file=config.cache' 1345 -n, --no-create do not create output files 1346 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1347 1348Installation directories: 1349 --prefix=PREFIX install architecture-independent files in PREFIX 1350 [$ac_default_prefix] 1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1352 [PREFIX] 1353 1354By default, \`make install' will install all the files in 1355\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1356an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1357for instance \`--prefix=\$HOME'. 1358 1359For better control, use the options below. 1360 1361Fine tuning of the installation directories: 1362 --bindir=DIR user executables [EPREFIX/bin] 1363 --sbindir=DIR system admin executables [EPREFIX/sbin] 1364 --libexecdir=DIR program executables [EPREFIX/libexec] 1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1368 --libdir=DIR object code libraries [EPREFIX/lib] 1369 --includedir=DIR C header files [PREFIX/include] 1370 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1373 --infodir=DIR info documentation [DATAROOTDIR/info] 1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1375 --mandir=DIR man documentation [DATAROOTDIR/man] 1376 --docdir=DIR documentation root [DATAROOTDIR/doc/zlib] 1377 --htmldir=DIR html documentation [DOCDIR] 1378 --dvidir=DIR dvi documentation [DOCDIR] 1379 --pdfdir=DIR pdf documentation [DOCDIR] 1380 --psdir=DIR ps documentation [DOCDIR] 1381_ACEOF 1382 1383 cat <<\_ACEOF 1384 1385Program names: 1386 --program-prefix=PREFIX prepend PREFIX to installed program names 1387 --program-suffix=SUFFIX append SUFFIX to installed program names 1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1389 1390System types: 1391 --build=BUILD configure for building on BUILD [guessed] 1392 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1393 --target=TARGET configure for building compilers for TARGET [HOST] 1394_ACEOF 1395fi 1396 1397if test -n "$ac_init_help"; then 1398 case $ac_init_help in 1399 short | recursive ) echo "Configuration of zlib 1.1.4:";; 1400 esac 1401 cat <<\_ACEOF 1402 1403Optional Features: 1404 --disable-option-checking ignore unrecognized --enable/--with options 1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1407 --enable-multilib build many library versions (default) 1408 --enable-silent-rules less verbose build output (undo: "make V=1") 1409 --disable-silent-rules verbose build output (undo: "make V=0") 1410 --enable-maintainer-mode 1411 enable make rules and dependencies not useful (and 1412 sometimes confusing) to the casual installer 1413 --enable-dependency-tracking 1414 do not reject slow dependency extractors 1415 --disable-dependency-tracking 1416 speeds up one-time build 1417 --enable-shared[=PKGS] build shared libraries [default=yes] 1418 --enable-static[=PKGS] build static libraries [default=yes] 1419 --enable-fast-install[=PKGS] 1420 optimize for fast installation [default=yes] 1421 --disable-libtool-lock avoid locking (might break parallel builds) 1422 --enable-host-shared build host code as shared libraries 1423 1424Optional Packages: 1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1427 --with-target-subdir=SUBDIR 1428 configuring in a subdirectory 1429 --with-cross-host=HOST configuring with a cross compiler 1430 --with-system-zlib use installed libz 1431 --with-pic try to use only PIC/non-PIC objects [default=use 1432 both] 1433 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1434 1435Some influential environment variables: 1436 CC C compiler command 1437 CFLAGS C compiler flags 1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1439 nonstandard directory <lib dir> 1440 LIBS libraries to pass to the linker, e.g. -l<library> 1441 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1442 you have headers in a nonstandard directory <include dir> 1443 CPP C preprocessor 1444 1445Use these variables to override the choices made by `configure' or to help 1446it to find libraries and programs with nonstandard names/locations. 1447 1448Report bugs to the package provider. 1449_ACEOF 1450ac_status=$? 1451fi 1452 1453if test "$ac_init_help" = "recursive"; then 1454 # If there are subdirs, report their specific --help. 1455 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1456 test -d "$ac_dir" || 1457 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1458 continue 1459 ac_builddir=. 1460 1461case "$ac_dir" in 1462.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1463*) 1464 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1465 # A ".." for each directory in $ac_dir_suffix. 1466 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1467 case $ac_top_builddir_sub in 1468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1470 esac ;; 1471esac 1472ac_abs_top_builddir=$ac_pwd 1473ac_abs_builddir=$ac_pwd$ac_dir_suffix 1474# for backward compatibility: 1475ac_top_builddir=$ac_top_build_prefix 1476 1477case $srcdir in 1478 .) # We are building in place. 1479 ac_srcdir=. 1480 ac_top_srcdir=$ac_top_builddir_sub 1481 ac_abs_top_srcdir=$ac_pwd ;; 1482 [\\/]* | ?:[\\/]* ) # Absolute name. 1483 ac_srcdir=$srcdir$ac_dir_suffix; 1484 ac_top_srcdir=$srcdir 1485 ac_abs_top_srcdir=$srcdir ;; 1486 *) # Relative name. 1487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1488 ac_top_srcdir=$ac_top_build_prefix$srcdir 1489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1490esac 1491ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1492 1493 cd "$ac_dir" || { ac_status=$?; continue; } 1494 # Check for guested configure. 1495 if test -f "$ac_srcdir/configure.gnu"; then 1496 echo && 1497 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1498 elif test -f "$ac_srcdir/configure"; then 1499 echo && 1500 $SHELL "$ac_srcdir/configure" --help=recursive 1501 else 1502 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1503 fi || ac_status=$? 1504 cd "$ac_pwd" || { ac_status=$?; break; } 1505 done 1506fi 1507 1508test -n "$ac_init_help" && exit $ac_status 1509if $ac_init_version; then 1510 cat <<\_ACEOF 1511zlib configure 1.1.4 1512generated by GNU Autoconf 2.69 1513 1514Copyright (C) 2012 Free Software Foundation, Inc. 1515This configure script is free software; the Free Software Foundation 1516gives unlimited permission to copy, distribute and modify it. 1517_ACEOF 1518 exit 1519fi 1520 1521## ------------------------ ## 1522## Autoconf initialization. ## 1523## ------------------------ ## 1524 1525# ac_fn_c_try_compile LINENO 1526# -------------------------- 1527# Try to compile conftest.$ac_ext, and return whether this succeeded. 1528ac_fn_c_try_compile () 1529{ 1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1531 rm -f conftest.$ac_objext 1532 if { { ac_try="$ac_compile" 1533case "(($ac_try" in 1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1535 *) ac_try_echo=$ac_try;; 1536esac 1537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1538$as_echo "$ac_try_echo"; } >&5 1539 (eval "$ac_compile") 2>conftest.err 1540 ac_status=$? 1541 if test -s conftest.err; then 1542 grep -v '^ *+' conftest.err >conftest.er1 1543 cat conftest.er1 >&5 1544 mv -f conftest.er1 conftest.err 1545 fi 1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1547 test $ac_status = 0; } && { 1548 test -z "$ac_c_werror_flag" || 1549 test ! -s conftest.err 1550 } && test -s conftest.$ac_objext; then : 1551 ac_retval=0 1552else 1553 $as_echo "$as_me: failed program was:" >&5 1554sed 's/^/| /' conftest.$ac_ext >&5 1555 1556 ac_retval=1 1557fi 1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1559 as_fn_set_status $ac_retval 1560 1561} # ac_fn_c_try_compile 1562 1563# ac_fn_c_try_link LINENO 1564# ----------------------- 1565# Try to link conftest.$ac_ext, and return whether this succeeded. 1566ac_fn_c_try_link () 1567{ 1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1569 rm -f conftest.$ac_objext conftest$ac_exeext 1570 if { { ac_try="$ac_link" 1571case "(($ac_try" in 1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1573 *) ac_try_echo=$ac_try;; 1574esac 1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1576$as_echo "$ac_try_echo"; } >&5 1577 (eval "$ac_link") 2>conftest.err 1578 ac_status=$? 1579 if test -s conftest.err; then 1580 grep -v '^ *+' conftest.err >conftest.er1 1581 cat conftest.er1 >&5 1582 mv -f conftest.er1 conftest.err 1583 fi 1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1585 test $ac_status = 0; } && { 1586 test -z "$ac_c_werror_flag" || 1587 test ! -s conftest.err 1588 } && test -s conftest$ac_exeext && { 1589 test "$cross_compiling" = yes || 1590 test -x conftest$ac_exeext 1591 }; then : 1592 ac_retval=0 1593else 1594 $as_echo "$as_me: failed program was:" >&5 1595sed 's/^/| /' conftest.$ac_ext >&5 1596 1597 ac_retval=1 1598fi 1599 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1600 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1601 # interfere with the next link command; also delete a directory that is 1602 # left behind by Apple's compiler. We do this before executing the actions. 1603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1605 as_fn_set_status $ac_retval 1606 1607} # ac_fn_c_try_link 1608 1609# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1610# ------------------------------------------------------- 1611# Tests whether HEADER exists and can be compiled using the include files in 1612# INCLUDES, setting the cache variable VAR accordingly. 1613ac_fn_c_check_header_compile () 1614{ 1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1617$as_echo_n "checking for $2... " >&6; } 1618if eval \${$3+:} false; then : 1619 $as_echo_n "(cached) " >&6 1620else 1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1622/* end confdefs.h. */ 1623$4 1624#include <$2> 1625_ACEOF 1626if ac_fn_c_try_compile "$LINENO"; then : 1627 eval "$3=yes" 1628else 1629 eval "$3=no" 1630fi 1631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1632fi 1633eval ac_res=\$$3 1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1635$as_echo "$ac_res" >&6; } 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 1638} # ac_fn_c_check_header_compile 1639 1640# ac_fn_c_try_cpp LINENO 1641# ---------------------- 1642# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1643ac_fn_c_try_cpp () 1644{ 1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1646 if { { ac_try="$ac_cpp conftest.$ac_ext" 1647case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650esac 1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652$as_echo "$ac_try_echo"; } >&5 1653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1654 ac_status=$? 1655 if test -s conftest.err; then 1656 grep -v '^ *+' conftest.err >conftest.er1 1657 cat conftest.er1 >&5 1658 mv -f conftest.er1 conftest.err 1659 fi 1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1661 test $ac_status = 0; } > conftest.i && { 1662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1663 test ! -s conftest.err 1664 }; then : 1665 ac_retval=0 1666else 1667 $as_echo "$as_me: failed program was:" >&5 1668sed 's/^/| /' conftest.$ac_ext >&5 1669 1670 ac_retval=1 1671fi 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 as_fn_set_status $ac_retval 1674 1675} # ac_fn_c_try_cpp 1676 1677# ac_fn_c_try_run LINENO 1678# ---------------------- 1679# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1680# that executables *can* be run. 1681ac_fn_c_try_run () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 if { { ac_try="$ac_link" 1685case "(($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_link") 2>&5 1692 ac_status=$? 1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1694 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1695 { { case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698esac 1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700$as_echo "$ac_try_echo"; } >&5 1701 (eval "$ac_try") 2>&5 1702 ac_status=$? 1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1704 test $ac_status = 0; }; }; then : 1705 ac_retval=0 1706else 1707 $as_echo "$as_me: program exited with status $ac_status" >&5 1708 $as_echo "$as_me: failed program was:" >&5 1709sed 's/^/| /' conftest.$ac_ext >&5 1710 1711 ac_retval=$ac_status 1712fi 1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 as_fn_set_status $ac_retval 1716 1717} # ac_fn_c_try_run 1718 1719# ac_fn_c_check_func LINENO FUNC VAR 1720# ---------------------------------- 1721# Tests whether FUNC exists, setting the cache variable VAR accordingly 1722ac_fn_c_check_func () 1723{ 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1726$as_echo_n "checking for $2... " >&6; } 1727if eval \${$3+:} false; then : 1728 $as_echo_n "(cached) " >&6 1729else 1730 if test x$gcc_no_link = xyes; then 1731 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 1732fi 1733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1734/* end confdefs.h. */ 1735/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1737#define $2 innocuous_$2 1738 1739/* System header to define __stub macros and hopefully few prototypes, 1740 which can conflict with char $2 (); below. 1741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1742 <limits.h> exists even on freestanding compilers. */ 1743 1744#ifdef __STDC__ 1745# include <limits.h> 1746#else 1747# include <assert.h> 1748#endif 1749 1750#undef $2 1751 1752/* Override any GCC internal prototype to avoid an error. 1753 Use char because int might match the return type of a GCC 1754 builtin and then its argument prototype would still apply. */ 1755#ifdef __cplusplus 1756extern "C" 1757#endif 1758char $2 (); 1759/* The GNU C library defines this for functions which it implements 1760 to always fail with ENOSYS. Some functions are actually named 1761 something starting with __ and the normal name is an alias. */ 1762#if defined __stub_$2 || defined __stub___$2 1763choke me 1764#endif 1765 1766int 1767main () 1768{ 1769return $2 (); 1770 ; 1771 return 0; 1772} 1773_ACEOF 1774if ac_fn_c_try_link "$LINENO"; then : 1775 eval "$3=yes" 1776else 1777 eval "$3=no" 1778fi 1779rm -f core conftest.err conftest.$ac_objext \ 1780 conftest$ac_exeext conftest.$ac_ext 1781fi 1782eval ac_res=\$$3 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1784$as_echo "$ac_res" >&6; } 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 1787} # ac_fn_c_check_func 1788 1789# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1790# ------------------------------------------------------- 1791# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1792# the include files in INCLUDES and setting the cache variable VAR 1793# accordingly. 1794ac_fn_c_check_header_mongrel () 1795{ 1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1797 if eval \${$3+:} false; then : 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1799$as_echo_n "checking for $2... " >&6; } 1800if eval \${$3+:} false; then : 1801 $as_echo_n "(cached) " >&6 1802fi 1803eval ac_res=\$$3 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1805$as_echo "$ac_res" >&6; } 1806else 1807 # Is the header compilable? 1808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1809$as_echo_n "checking $2 usability... " >&6; } 1810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1811/* end confdefs.h. */ 1812$4 1813#include <$2> 1814_ACEOF 1815if ac_fn_c_try_compile "$LINENO"; then : 1816 ac_header_compiler=yes 1817else 1818 ac_header_compiler=no 1819fi 1820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1822$as_echo "$ac_header_compiler" >&6; } 1823 1824# Is the header present? 1825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1826$as_echo_n "checking $2 presence... " >&6; } 1827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1828/* end confdefs.h. */ 1829#include <$2> 1830_ACEOF 1831if ac_fn_c_try_cpp "$LINENO"; then : 1832 ac_header_preproc=yes 1833else 1834 ac_header_preproc=no 1835fi 1836rm -f conftest.err conftest.i conftest.$ac_ext 1837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1838$as_echo "$ac_header_preproc" >&6; } 1839 1840# So? What about this header? 1841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1842 yes:no: ) 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1844$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1847 ;; 1848 no:yes:* ) 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1850$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1852$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1854$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1856$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1858$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1859 ;; 1860esac 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1862$as_echo_n "checking for $2... " >&6; } 1863if eval \${$3+:} false; then : 1864 $as_echo_n "(cached) " >&6 1865else 1866 eval "$3=\$ac_header_compiler" 1867fi 1868eval ac_res=\$$3 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1870$as_echo "$ac_res" >&6; } 1871fi 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1873 1874} # ac_fn_c_check_header_mongrel 1875cat >config.log <<_ACEOF 1876This file contains any messages produced by compilers while 1877running configure, to aid debugging if configure makes a mistake. 1878 1879It was created by zlib $as_me 1.1.4, which was 1880generated by GNU Autoconf 2.69. Invocation command line was 1881 1882 $ $0 $@ 1883 1884_ACEOF 1885exec 5>>config.log 1886{ 1887cat <<_ASUNAME 1888## --------- ## 1889## Platform. ## 1890## --------- ## 1891 1892hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1893uname -m = `(uname -m) 2>/dev/null || echo unknown` 1894uname -r = `(uname -r) 2>/dev/null || echo unknown` 1895uname -s = `(uname -s) 2>/dev/null || echo unknown` 1896uname -v = `(uname -v) 2>/dev/null || echo unknown` 1897 1898/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1899/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1900 1901/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1902/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1903/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1904/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1905/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1906/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1907/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1908 1909_ASUNAME 1910 1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1912for as_dir in $PATH 1913do 1914 IFS=$as_save_IFS 1915 test -z "$as_dir" && as_dir=. 1916 $as_echo "PATH: $as_dir" 1917 done 1918IFS=$as_save_IFS 1919 1920} >&5 1921 1922cat >&5 <<_ACEOF 1923 1924 1925## ----------- ## 1926## Core tests. ## 1927## ----------- ## 1928 1929_ACEOF 1930 1931 1932# Keep a trace of the command line. 1933# Strip out --no-create and --no-recursion so they do not pile up. 1934# Strip out --silent because we don't want to record it for future runs. 1935# Also quote any args containing shell meta-characters. 1936# Make two passes to allow for proper duplicate-argument suppression. 1937ac_configure_args= 1938ac_configure_args0= 1939ac_configure_args1= 1940ac_must_keep_next=false 1941for ac_pass in 1 2 1942do 1943 for ac_arg 1944 do 1945 case $ac_arg in 1946 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1948 | -silent | --silent | --silen | --sile | --sil) 1949 continue ;; 1950 *\'*) 1951 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1952 esac 1953 case $ac_pass in 1954 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1955 2) 1956 as_fn_append ac_configure_args1 " '$ac_arg'" 1957 if test $ac_must_keep_next = true; then 1958 ac_must_keep_next=false # Got value, back to normal. 1959 else 1960 case $ac_arg in 1961 *=* | --config-cache | -C | -disable-* | --disable-* \ 1962 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1963 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1964 | -with-* | --with-* | -without-* | --without-* | --x) 1965 case "$ac_configure_args0 " in 1966 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1967 esac 1968 ;; 1969 -* ) ac_must_keep_next=true ;; 1970 esac 1971 fi 1972 as_fn_append ac_configure_args " '$ac_arg'" 1973 ;; 1974 esac 1975 done 1976done 1977{ ac_configure_args0=; unset ac_configure_args0;} 1978{ ac_configure_args1=; unset ac_configure_args1;} 1979 1980# When interrupted or exit'd, cleanup temporary files, and complete 1981# config.log. We remove comments because anyway the quotes in there 1982# would cause problems or look ugly. 1983# WARNING: Use '\'' to represent an apostrophe within the trap. 1984# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1985trap 'exit_status=$? 1986 # Save into config.log some information that might help in debugging. 1987 { 1988 echo 1989 1990 $as_echo "## ---------------- ## 1991## Cache variables. ## 1992## ---------------- ##" 1993 echo 1994 # The following way of writing the cache mishandles newlines in values, 1995( 1996 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1997 eval ac_val=\$$ac_var 1998 case $ac_val in #( 1999 *${as_nl}*) 2000 case $ac_var in #( 2001 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2002$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2003 esac 2004 case $ac_var in #( 2005 _ | IFS | as_nl) ;; #( 2006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2007 *) { eval $ac_var=; unset $ac_var;} ;; 2008 esac ;; 2009 esac 2010 done 2011 (set) 2>&1 | 2012 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2013 *${as_nl}ac_space=\ *) 2014 sed -n \ 2015 "s/'\''/'\''\\\\'\'''\''/g; 2016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2017 ;; #( 2018 *) 2019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2020 ;; 2021 esac | 2022 sort 2023) 2024 echo 2025 2026 $as_echo "## ----------------- ## 2027## Output variables. ## 2028## ----------------- ##" 2029 echo 2030 for ac_var in $ac_subst_vars 2031 do 2032 eval ac_val=\$$ac_var 2033 case $ac_val in 2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2035 esac 2036 $as_echo "$ac_var='\''$ac_val'\''" 2037 done | sort 2038 echo 2039 2040 if test -n "$ac_subst_files"; then 2041 $as_echo "## ------------------- ## 2042## File substitutions. ## 2043## ------------------- ##" 2044 echo 2045 for ac_var in $ac_subst_files 2046 do 2047 eval ac_val=\$$ac_var 2048 case $ac_val in 2049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2050 esac 2051 $as_echo "$ac_var='\''$ac_val'\''" 2052 done | sort 2053 echo 2054 fi 2055 2056 if test -s confdefs.h; then 2057 $as_echo "## ----------- ## 2058## confdefs.h. ## 2059## ----------- ##" 2060 echo 2061 cat confdefs.h 2062 echo 2063 fi 2064 test "$ac_signal" != 0 && 2065 $as_echo "$as_me: caught signal $ac_signal" 2066 $as_echo "$as_me: exit $exit_status" 2067 } >&5 2068 rm -f core *.core core.conftest.* && 2069 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2070 exit $exit_status 2071' 0 2072for ac_signal in 1 2 13 15; do 2073 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2074done 2075ac_signal=0 2076 2077# confdefs.h avoids OS command line length limits that DEFS can exceed. 2078rm -f -r conftest* confdefs.h 2079 2080$as_echo "/* confdefs.h */" > confdefs.h 2081 2082# Predefined preprocessor variables. 2083 2084cat >>confdefs.h <<_ACEOF 2085#define PACKAGE_NAME "$PACKAGE_NAME" 2086_ACEOF 2087 2088cat >>confdefs.h <<_ACEOF 2089#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2090_ACEOF 2091 2092cat >>confdefs.h <<_ACEOF 2093#define PACKAGE_VERSION "$PACKAGE_VERSION" 2094_ACEOF 2095 2096cat >>confdefs.h <<_ACEOF 2097#define PACKAGE_STRING "$PACKAGE_STRING" 2098_ACEOF 2099 2100cat >>confdefs.h <<_ACEOF 2101#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2102_ACEOF 2103 2104cat >>confdefs.h <<_ACEOF 2105#define PACKAGE_URL "$PACKAGE_URL" 2106_ACEOF 2107 2108 2109# Let the site file select an alternate cache file if it wants to. 2110# Prefer an explicitly selected file to automatically selected ones. 2111ac_site_file1=NONE 2112ac_site_file2=NONE 2113if test -n "$CONFIG_SITE"; then 2114 # We do not want a PATH search for config.site. 2115 case $CONFIG_SITE in #(( 2116 -*) ac_site_file1=./$CONFIG_SITE;; 2117 */*) ac_site_file1=$CONFIG_SITE;; 2118 *) ac_site_file1=./$CONFIG_SITE;; 2119 esac 2120elif test "x$prefix" != xNONE; then 2121 ac_site_file1=$prefix/share/config.site 2122 ac_site_file2=$prefix/etc/config.site 2123else 2124 ac_site_file1=$ac_default_prefix/share/config.site 2125 ac_site_file2=$ac_default_prefix/etc/config.site 2126fi 2127for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2128do 2129 test "x$ac_site_file" = xNONE && continue 2130 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2132$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2133 sed 's/^/| /' "$ac_site_file" >&5 2134 . "$ac_site_file" \ 2135 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2137as_fn_error $? "failed to load site script $ac_site_file 2138See \`config.log' for more details" "$LINENO" 5; } 2139 fi 2140done 2141 2142if test -r "$cache_file"; then 2143 # Some versions of bash will fail to source /dev/null (special files 2144 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2145 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2147$as_echo "$as_me: loading cache $cache_file" >&6;} 2148 case $cache_file in 2149 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2150 *) . "./$cache_file";; 2151 esac 2152 fi 2153else 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2155$as_echo "$as_me: creating cache $cache_file" >&6;} 2156 >$cache_file 2157fi 2158 2159as_fn_append ac_header_list " stdlib.h" 2160as_fn_append ac_header_list " unistd.h" 2161as_fn_append ac_header_list " sys/param.h" 2162# Check that the precious variables saved in the cache have kept the same 2163# value. 2164ac_cache_corrupted=false 2165for ac_var in $ac_precious_vars; do 2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2167 eval ac_new_set=\$ac_env_${ac_var}_set 2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2169 eval ac_new_val=\$ac_env_${ac_var}_value 2170 case $ac_old_set,$ac_new_set in 2171 set,) 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2173$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2174 ac_cache_corrupted=: ;; 2175 ,set) 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2177$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2178 ac_cache_corrupted=: ;; 2179 ,);; 2180 *) 2181 if test "x$ac_old_val" != "x$ac_new_val"; then 2182 # differences in whitespace do not lead to failure. 2183 ac_old_val_w=`echo x $ac_old_val` 2184 ac_new_val_w=`echo x $ac_new_val` 2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2187$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2188 ac_cache_corrupted=: 2189 else 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2191$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2192 eval $ac_var=\$ac_old_val 2193 fi 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2195$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2197$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2198 fi;; 2199 esac 2200 # Pass precious variables to config.status. 2201 if test "$ac_new_set" = set; then 2202 case $ac_new_val in 2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2204 *) ac_arg=$ac_var=$ac_new_val ;; 2205 esac 2206 case " $ac_configure_args " in 2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2209 esac 2210 fi 2211done 2212if $ac_cache_corrupted; then 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2216$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2217 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2218fi 2219## -------------------- ## 2220## Main body of script. ## 2221## -------------------- ## 2222 2223ac_ext=c 2224ac_cpp='$CPP $CPPFLAGS' 2225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2227ac_compiler_gnu=$ac_cv_c_compiler_gnu 2228 2229 2230 2231 2232 2233 2234 2235if test -n "${with_target_subdir}"; then 2236 # Default to --enable-multilib 2237# Check whether --enable-multilib was given. 2238if test "${enable_multilib+set}" = set; then : 2239 enableval=$enable_multilib; case "$enableval" in 2240 yes) multilib=yes ;; 2241 no) multilib=no ;; 2242 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; 2243 esac 2244else 2245 multilib=yes 2246fi 2247 2248 2249# We may get other options which we leave undocumented: 2250# --with-target-subdir, --with-multisrctop, --with-multisubdir 2251# See config-ml.in if you want the gory details. 2252 2253if test "$srcdir" = "."; then 2254 if test "$with_target_subdir" != "."; then 2255 multi_basedir="$srcdir/$with_multisrctop../.." 2256 else 2257 multi_basedir="$srcdir/$with_multisrctop.." 2258 fi 2259else 2260 multi_basedir="$srcdir/.." 2261fi 2262 2263 2264# Even if the default multilib is not a cross compilation, 2265# it may be that some of the other multilibs are. 2266if test $cross_compiling = no && test $multilib = yes \ 2267 && test "x${with_multisubdir}" != x ; then 2268 cross_compiling=maybe 2269fi 2270 2271ac_config_commands="$ac_config_commands default-1" 2272 2273fi 2274 2275ac_aux_dir= 2276for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2277 if test -f "$ac_dir/install-sh"; then 2278 ac_aux_dir=$ac_dir 2279 ac_install_sh="$ac_aux_dir/install-sh -c" 2280 break 2281 elif test -f "$ac_dir/install.sh"; then 2282 ac_aux_dir=$ac_dir 2283 ac_install_sh="$ac_aux_dir/install.sh -c" 2284 break 2285 elif test -f "$ac_dir/shtool"; then 2286 ac_aux_dir=$ac_dir 2287 ac_install_sh="$ac_aux_dir/shtool install -c" 2288 break 2289 fi 2290done 2291if test -z "$ac_aux_dir"; then 2292 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2293fi 2294 2295# These three variables are undocumented and unsupported, 2296# and are intended to be withdrawn in a future Autoconf release. 2297# They can cause serious problems if a builder's source tree is in a directory 2298# whose full name contains unusual characters. 2299ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2300ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2301ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2302 2303 2304# Make sure we can run config.sub. 2305$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2306 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2307 2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2309$as_echo_n "checking build system type... " >&6; } 2310if ${ac_cv_build+:} false; then : 2311 $as_echo_n "(cached) " >&6 2312else 2313 ac_build_alias=$build_alias 2314test "x$ac_build_alias" = x && 2315 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2316test "x$ac_build_alias" = x && 2317 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2318ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2319 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2320 2321fi 2322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2323$as_echo "$ac_cv_build" >&6; } 2324case $ac_cv_build in 2325*-*-*) ;; 2326*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2327esac 2328build=$ac_cv_build 2329ac_save_IFS=$IFS; IFS='-' 2330set x $ac_cv_build 2331shift 2332build_cpu=$1 2333build_vendor=$2 2334shift; shift 2335# Remember, the first character of IFS is used to create $*, 2336# except with old shells: 2337build_os=$* 2338IFS=$ac_save_IFS 2339case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2340 2341 2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2343$as_echo_n "checking host system type... " >&6; } 2344if ${ac_cv_host+:} false; then : 2345 $as_echo_n "(cached) " >&6 2346else 2347 if test "x$host_alias" = x; then 2348 ac_cv_host=$ac_cv_build 2349else 2350 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2351 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2352fi 2353 2354fi 2355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2356$as_echo "$ac_cv_host" >&6; } 2357case $ac_cv_host in 2358*-*-*) ;; 2359*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2360esac 2361host=$ac_cv_host 2362ac_save_IFS=$IFS; IFS='-' 2363set x $ac_cv_host 2364shift 2365host_cpu=$1 2366host_vendor=$2 2367shift; shift 2368# Remember, the first character of IFS is used to create $*, 2369# except with old shells: 2370host_os=$* 2371IFS=$ac_save_IFS 2372case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2373 2374 2375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2376$as_echo_n "checking target system type... " >&6; } 2377if ${ac_cv_target+:} false; then : 2378 $as_echo_n "(cached) " >&6 2379else 2380 if test "x$target_alias" = x; then 2381 ac_cv_target=$ac_cv_host 2382else 2383 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2384 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2385fi 2386 2387fi 2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2389$as_echo "$ac_cv_target" >&6; } 2390case $ac_cv_target in 2391*-*-*) ;; 2392*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2393esac 2394target=$ac_cv_target 2395ac_save_IFS=$IFS; IFS='-' 2396set x $ac_cv_target 2397shift 2398target_cpu=$1 2399target_vendor=$2 2400shift; shift 2401# Remember, the first character of IFS is used to create $*, 2402# except with old shells: 2403target_os=$* 2404IFS=$ac_save_IFS 2405case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2406 2407 2408# The aliases save the names the user supplied, while $host etc. 2409# will get canonicalized. 2410test -n "$target_alias" && 2411 test "$program_prefix$program_suffix$program_transform_name" = \ 2412 NONENONEs,x,x, && 2413 program_prefix=${target_alias}- 2414 2415 2416# This works around an automake problem. 2417mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs" 2418 2419 2420am__api_version='1.16' 2421 2422# Find a good install program. We prefer a C program (faster), 2423# so one script is as good as another. But avoid the broken or 2424# incompatible versions: 2425# SysV /etc/install, /usr/sbin/install 2426# SunOS /usr/etc/install 2427# IRIX /sbin/install 2428# AIX /bin/install 2429# AmigaOS /C/install, which installs bootblocks on floppy discs 2430# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2431# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2432# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2433# OS/2's system install, which has a completely different semantic 2434# ./install, which can be erroneously created by make from ./install.sh. 2435# Reject install programs that cannot install multiple files. 2436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2437$as_echo_n "checking for a BSD-compatible install... " >&6; } 2438if test -z "$INSTALL"; then 2439if ${ac_cv_path_install+:} false; then : 2440 $as_echo_n "(cached) " >&6 2441else 2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2443for as_dir in $PATH 2444do 2445 IFS=$as_save_IFS 2446 test -z "$as_dir" && as_dir=. 2447 # Account for people who put trailing slashes in PATH elements. 2448case $as_dir/ in #(( 2449 ./ | .// | /[cC]/* | \ 2450 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2451 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2452 /usr/ucb/* ) ;; 2453 *) 2454 # OSF1 and SCO ODT 3.0 have their own names for install. 2455 # Don't use installbsd from OSF since it installs stuff as root 2456 # by default. 2457 for ac_prog in ginstall scoinst install; do 2458 for ac_exec_ext in '' $ac_executable_extensions; do 2459 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2460 if test $ac_prog = install && 2461 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2462 # AIX install. It has an incompatible calling convention. 2463 : 2464 elif test $ac_prog = install && 2465 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2466 # program-specific install script used by HP pwplus--don't use. 2467 : 2468 else 2469 rm -rf conftest.one conftest.two conftest.dir 2470 echo one > conftest.one 2471 echo two > conftest.two 2472 mkdir conftest.dir 2473 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2474 test -s conftest.one && test -s conftest.two && 2475 test -s conftest.dir/conftest.one && 2476 test -s conftest.dir/conftest.two 2477 then 2478 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2479 break 3 2480 fi 2481 fi 2482 fi 2483 done 2484 done 2485 ;; 2486esac 2487 2488 done 2489IFS=$as_save_IFS 2490 2491rm -rf conftest.one conftest.two conftest.dir 2492 2493fi 2494 if test "${ac_cv_path_install+set}" = set; then 2495 INSTALL=$ac_cv_path_install 2496 else 2497 # As a last resort, use the slow shell script. Don't cache a 2498 # value for INSTALL within a source directory, because that will 2499 # break other packages using the cache if that directory is 2500 # removed, or if the value is a relative name. 2501 INSTALL=$ac_install_sh 2502 fi 2503fi 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2505$as_echo "$INSTALL" >&6; } 2506 2507# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2508# It thinks the first close brace ends the variable substitution. 2509test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2510 2511test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2512 2513test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2514 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2516$as_echo_n "checking whether build environment is sane... " >&6; } 2517# Reject unsafe characters in $srcdir or the absolute working directory 2518# name. Accept space and tab only in the latter. 2519am_lf=' 2520' 2521case `pwd` in 2522 *[\\\"\#\$\&\'\`$am_lf]*) 2523 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2524esac 2525case $srcdir in 2526 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2527 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2528esac 2529 2530# Do 'set' in a subshell so we don't clobber the current shell's 2531# arguments. Must try -L first in case configure is actually a 2532# symlink; some systems play weird games with the mod time of symlinks 2533# (eg FreeBSD returns the mod time of the symlink's containing 2534# directory). 2535if ( 2536 am_has_slept=no 2537 for am_try in 1 2; do 2538 echo "timestamp, slept: $am_has_slept" > conftest.file 2539 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2540 if test "$*" = "X"; then 2541 # -L didn't work. 2542 set X `ls -t "$srcdir/configure" conftest.file` 2543 fi 2544 if test "$*" != "X $srcdir/configure conftest.file" \ 2545 && test "$*" != "X conftest.file $srcdir/configure"; then 2546 2547 # If neither matched, then we have a broken ls. This can happen 2548 # if, for instance, CONFIG_SHELL is bash and it inherits a 2549 # broken ls alias from the environment. This has actually 2550 # happened. Such a system could not be considered "sane". 2551 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2552 alias in your environment" "$LINENO" 5 2553 fi 2554 if test "$2" = conftest.file || test $am_try -eq 2; then 2555 break 2556 fi 2557 # Just in case. 2558 sleep 1 2559 am_has_slept=yes 2560 done 2561 test "$2" = conftest.file 2562 ) 2563then 2564 # Ok. 2565 : 2566else 2567 as_fn_error $? "newly created file is older than distributed files! 2568Check your system clock" "$LINENO" 5 2569fi 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2571$as_echo "yes" >&6; } 2572# If we didn't sleep, we still need to ensure time stamps of config.status and 2573# generated files are strictly newer. 2574am_sleep_pid= 2575if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2576 ( sleep 1 ) & 2577 am_sleep_pid=$! 2578fi 2579 2580rm -f conftest.file 2581 2582test "$program_prefix" != NONE && 2583 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2584# Use a double $ so make ignores it. 2585test "$program_suffix" != NONE && 2586 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2587# Double any \ or $. 2588# By default was `s,x,x', remove it if useless. 2589ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2590program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2591 2592# Expand $ac_aux_dir to an absolute path. 2593am_aux_dir=`cd "$ac_aux_dir" && pwd` 2594 2595if test x"${MISSING+set}" != xset; then 2596 MISSING="\${SHELL} '$am_aux_dir/missing'" 2597fi 2598# Use eval to expand $SHELL 2599if eval "$MISSING --is-lightweight"; then 2600 am_missing_run="$MISSING " 2601else 2602 am_missing_run= 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2604$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2605fi 2606 2607if test x"${install_sh+set}" != xset; then 2608 case $am_aux_dir in 2609 *\ * | *\ *) 2610 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2611 *) 2612 install_sh="\${SHELL} $am_aux_dir/install-sh" 2613 esac 2614fi 2615 2616# Installed binaries are usually stripped using 'strip' when the user 2617# run "make install-strip". However 'strip' might not be the right 2618# tool to use in cross-compilation environments, therefore Automake 2619# will honor the 'STRIP' environment variable to overrule this program. 2620if test "$cross_compiling" != no; then 2621 if test -n "$ac_tool_prefix"; then 2622 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2623set dummy ${ac_tool_prefix}strip; ac_word=$2 2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2625$as_echo_n "checking for $ac_word... " >&6; } 2626if ${ac_cv_prog_STRIP+:} false; then : 2627 $as_echo_n "(cached) " >&6 2628else 2629 if test -n "$STRIP"; then 2630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2631else 2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2633for as_dir in $PATH 2634do 2635 IFS=$as_save_IFS 2636 test -z "$as_dir" && as_dir=. 2637 for ac_exec_ext in '' $ac_executable_extensions; do 2638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2639 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2641 break 2 2642 fi 2643done 2644 done 2645IFS=$as_save_IFS 2646 2647fi 2648fi 2649STRIP=$ac_cv_prog_STRIP 2650if test -n "$STRIP"; then 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2652$as_echo "$STRIP" >&6; } 2653else 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2655$as_echo "no" >&6; } 2656fi 2657 2658 2659fi 2660if test -z "$ac_cv_prog_STRIP"; then 2661 ac_ct_STRIP=$STRIP 2662 # Extract the first word of "strip", so it can be a program name with args. 2663set dummy strip; ac_word=$2 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2665$as_echo_n "checking for $ac_word... " >&6; } 2666if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2667 $as_echo_n "(cached) " >&6 2668else 2669 if test -n "$ac_ct_STRIP"; then 2670 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2671else 2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2673for as_dir in $PATH 2674do 2675 IFS=$as_save_IFS 2676 test -z "$as_dir" && as_dir=. 2677 for ac_exec_ext in '' $ac_executable_extensions; do 2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2679 ac_cv_prog_ac_ct_STRIP="strip" 2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2681 break 2 2682 fi 2683done 2684 done 2685IFS=$as_save_IFS 2686 2687fi 2688fi 2689ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2690if test -n "$ac_ct_STRIP"; then 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2692$as_echo "$ac_ct_STRIP" >&6; } 2693else 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2695$as_echo "no" >&6; } 2696fi 2697 2698 if test "x$ac_ct_STRIP" = x; then 2699 STRIP=":" 2700 else 2701 case $cross_compiling:$ac_tool_warned in 2702yes:) 2703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2705ac_tool_warned=yes ;; 2706esac 2707 STRIP=$ac_ct_STRIP 2708 fi 2709else 2710 STRIP="$ac_cv_prog_STRIP" 2711fi 2712 2713fi 2714INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2715 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2717$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2718if test -z "$MKDIR_P"; then 2719 if ${ac_cv_path_mkdir+:} false; then : 2720 $as_echo_n "(cached) " >&6 2721else 2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2724do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 for ac_prog in mkdir gmkdir; do 2728 for ac_exec_ext in '' $ac_executable_extensions; do 2729 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2730 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2731 'mkdir (GNU coreutils) '* | \ 2732 'mkdir (coreutils) '* | \ 2733 'mkdir (fileutils) '4.1*) 2734 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2735 break 3;; 2736 esac 2737 done 2738 done 2739 done 2740IFS=$as_save_IFS 2741 2742fi 2743 2744 test -d ./--version && rmdir ./--version 2745 if test "${ac_cv_path_mkdir+set}" = set; then 2746 MKDIR_P="$ac_cv_path_mkdir -p" 2747 else 2748 # As a last resort, use the slow shell script. Don't cache a 2749 # value for MKDIR_P within a source directory, because that will 2750 # break other packages using the cache if that directory is 2751 # removed, or if the value is a relative name. 2752 MKDIR_P="$ac_install_sh -d" 2753 fi 2754fi 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2756$as_echo "$MKDIR_P" >&6; } 2757 2758for ac_prog in gawk mawk nawk awk 2759do 2760 # Extract the first word of "$ac_prog", so it can be a program name with args. 2761set dummy $ac_prog; ac_word=$2 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2763$as_echo_n "checking for $ac_word... " >&6; } 2764if ${ac_cv_prog_AWK+:} false; then : 2765 $as_echo_n "(cached) " >&6 2766else 2767 if test -n "$AWK"; then 2768 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2769else 2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2771for as_dir in $PATH 2772do 2773 IFS=$as_save_IFS 2774 test -z "$as_dir" && as_dir=. 2775 for ac_exec_ext in '' $ac_executable_extensions; do 2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2777 ac_cv_prog_AWK="$ac_prog" 2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2779 break 2 2780 fi 2781done 2782 done 2783IFS=$as_save_IFS 2784 2785fi 2786fi 2787AWK=$ac_cv_prog_AWK 2788if test -n "$AWK"; then 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2790$as_echo "$AWK" >&6; } 2791else 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2793$as_echo "no" >&6; } 2794fi 2795 2796 2797 test -n "$AWK" && break 2798done 2799 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2801$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2802set x ${MAKE-make} 2803ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2804if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2805 $as_echo_n "(cached) " >&6 2806else 2807 cat >conftest.make <<\_ACEOF 2808SHELL = /bin/sh 2809all: 2810 @echo '@@@%%%=$(MAKE)=@@@%%%' 2811_ACEOF 2812# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2813case `${MAKE-make} -f conftest.make 2>/dev/null` in 2814 *@@@%%%=?*=@@@%%%*) 2815 eval ac_cv_prog_make_${ac_make}_set=yes;; 2816 *) 2817 eval ac_cv_prog_make_${ac_make}_set=no;; 2818esac 2819rm -f conftest.make 2820fi 2821if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2823$as_echo "yes" >&6; } 2824 SET_MAKE= 2825else 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2827$as_echo "no" >&6; } 2828 SET_MAKE="MAKE=${MAKE-make}" 2829fi 2830 2831rm -rf .tst 2>/dev/null 2832mkdir .tst 2>/dev/null 2833if test -d .tst; then 2834 am__leading_dot=. 2835else 2836 am__leading_dot=_ 2837fi 2838rmdir .tst 2>/dev/null 2839 2840# Check whether --enable-silent-rules was given. 2841if test "${enable_silent_rules+set}" = set; then : 2842 enableval=$enable_silent_rules; 2843fi 2844 2845case $enable_silent_rules in # ((( 2846 yes) AM_DEFAULT_VERBOSITY=0;; 2847 no) AM_DEFAULT_VERBOSITY=1;; 2848 *) AM_DEFAULT_VERBOSITY=1;; 2849esac 2850am_make=${MAKE-make} 2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2852$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2853if ${am_cv_make_support_nested_variables+:} false; then : 2854 $as_echo_n "(cached) " >&6 2855else 2856 if $as_echo 'TRUE=$(BAR$(V)) 2857BAR0=false 2858BAR1=true 2859V=1 2860am__doit: 2861 @$(TRUE) 2862.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2863 am_cv_make_support_nested_variables=yes 2864else 2865 am_cv_make_support_nested_variables=no 2866fi 2867fi 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2869$as_echo "$am_cv_make_support_nested_variables" >&6; } 2870if test $am_cv_make_support_nested_variables = yes; then 2871 AM_V='$(V)' 2872 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2873else 2874 AM_V=$AM_DEFAULT_VERBOSITY 2875 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2876fi 2877AM_BACKSLASH='\' 2878 2879if test "`cd $srcdir && pwd`" != "`pwd`"; then 2880 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2881 # is not polluted with repeated "-I." 2882 am__isrc=' -I$(srcdir)' 2883 # test to see if srcdir already configured 2884 if test -f $srcdir/config.status; then 2885 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2886 fi 2887fi 2888 2889# test whether we have cygpath 2890if test -z "$CYGPATH_W"; then 2891 if (cygpath --version) >/dev/null 2>/dev/null; then 2892 CYGPATH_W='cygpath -w' 2893 else 2894 CYGPATH_W=echo 2895 fi 2896fi 2897 2898 2899# Define the identity of the package. 2900 PACKAGE='zlib' 2901 VERSION='1.1.4' 2902 2903 2904cat >>confdefs.h <<_ACEOF 2905#define PACKAGE "$PACKAGE" 2906_ACEOF 2907 2908 2909cat >>confdefs.h <<_ACEOF 2910#define VERSION "$VERSION" 2911_ACEOF 2912 2913# Some tools Automake needs. 2914 2915ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2916 2917 2918AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2919 2920 2921AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2922 2923 2924AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2925 2926 2927MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2928 2929# For better backward compatibility. To be removed once Automake 1.9.x 2930# dies out for good. For more background, see: 2931# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2932# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2933mkdir_p='$(MKDIR_P)' 2934 2935# We need awk for the "check" target (and possibly the TAP driver). The 2936# system "awk" is bad on some platforms. 2937# Always define AMTAR for backward compatibility. Yes, it's still used 2938# in the wild :-( We should find a proper way to deprecate it ... 2939AMTAR='$${TAR-tar}' 2940 2941 2942# We'll loop over all known methods to create a tar archive until one works. 2943_am_tools='gnutar pax cpio none' 2944 2945am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2946 2947 2948 2949 2950 2951# Variables for tags utilities; see am/tags.am 2952if test -z "$CTAGS"; then 2953 CTAGS=ctags 2954fi 2955 2956if test -z "$ETAGS"; then 2957 ETAGS=etags 2958fi 2959 2960if test -z "$CSCOPE"; then 2961 CSCOPE=cscope 2962fi 2963 2964 2965 2966# POSIX will say in a future version that running "rm -f" with no argument 2967# is OK; and we want to be able to make that assumption in our Makefile 2968# recipes. So use an aggressive probe to check that the usage we want is 2969# actually supported "in the wild" to an acceptable degree. 2970# See automake bug#10828. 2971# To make any issue more visible, cause the running configure to be aborted 2972# by default if the 'rm' program in use doesn't match our expectations; the 2973# user can still override this though. 2974if rm -f && rm -fr && rm -rf; then : OK; else 2975 cat >&2 <<'END' 2976Oops! 2977 2978Your 'rm' program seems unable to run without file operands specified 2979on the command line, even when the '-f' option is present. This is contrary 2980to the behaviour of most rm programs out there, and not conforming with 2981the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2982 2983Please tell bug-automake@gnu.org about your system, including the value 2984of your $PATH and any error possibly output before this message. This 2985can help us improve future automake versions. 2986 2987END 2988 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2989 echo 'Configuration will proceed anyway, since you have set the' >&2 2990 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2991 echo >&2 2992 else 2993 cat >&2 <<'END' 2994Aborting the configuration process, to ensure you take notice of the issue. 2995 2996You can download and install GNU coreutils to get an 'rm' implementation 2997that behaves properly: <https://www.gnu.org/software/coreutils/>. 2998 2999If you want to complete the configuration process using your problematic 3000'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3001to "yes", and re-run configure. 3002 3003END 3004 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3005 fi 3006fi 3007 3008# Check whether --enable-silent-rules was given. 3009if test "${enable_silent_rules+set}" = set; then : 3010 enableval=$enable_silent_rules; 3011fi 3012 3013case $enable_silent_rules in # ((( 3014 yes) AM_DEFAULT_VERBOSITY=0;; 3015 no) AM_DEFAULT_VERBOSITY=1;; 3016 *) AM_DEFAULT_VERBOSITY=0;; 3017esac 3018am_make=${MAKE-make} 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3020$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3021if ${am_cv_make_support_nested_variables+:} false; then : 3022 $as_echo_n "(cached) " >&6 3023else 3024 if $as_echo 'TRUE=$(BAR$(V)) 3025BAR0=false 3026BAR1=true 3027V=1 3028am__doit: 3029 @$(TRUE) 3030.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3031 am_cv_make_support_nested_variables=yes 3032else 3033 am_cv_make_support_nested_variables=no 3034fi 3035fi 3036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3037$as_echo "$am_cv_make_support_nested_variables" >&6; } 3038if test $am_cv_make_support_nested_variables = yes; then 3039 AM_V='$(V)' 3040 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3041else 3042 AM_V=$AM_DEFAULT_VERBOSITY 3043 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3044fi 3045AM_BACKSLASH='\' 3046 3047 3048 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3050$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3051 # Check whether --enable-maintainer-mode was given. 3052if test "${enable_maintainer_mode+set}" = set; then : 3053 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3054else 3055 USE_MAINTAINER_MODE=no 3056fi 3057 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3059$as_echo "$USE_MAINTAINER_MODE" >&6; } 3060 if test $USE_MAINTAINER_MODE = yes; then 3061 MAINTAINER_MODE_TRUE= 3062 MAINTAINER_MODE_FALSE='#' 3063else 3064 MAINTAINER_MODE_TRUE='#' 3065 MAINTAINER_MODE_FALSE= 3066fi 3067 3068 MAINT=$MAINTAINER_MODE_TRUE 3069 3070 3071 3072 3073# Check whether --with-target-subdir was given. 3074if test "${with_target_subdir+set}" = set; then : 3075 withval=$with_target_subdir; 3076fi 3077 3078 3079if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then 3080 COMPPATH=. 3081else 3082 COMPPATH=.. 3083fi 3084 3085 3086 3087# Check whether --with-cross-host was given. 3088if test "${with_cross_host+set}" = set; then : 3089 withval=$with_cross_host; 3090fi 3091 3092 3093# Check whether --enable-multilib was given. 3094if test "${enable_multilib+set}" = set; then : 3095 enableval=$enable_multilib; case "${enableval}" in 3096 yes) multilib=yes ;; 3097 no) multilib=no ;; 3098 *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;; 3099 esac 3100else 3101 test -z "$with_target_subdir" && multilib=no || multilib=yes 3102fi 3103 3104 3105# Check whether --with-system-zlib was given. 3106if test "${with_system_zlib+set}" = set; then : 3107 withval=$with_system_zlib; 3108fi 3109 3110 3111# Make sure we don't test executables when making cross-tools. 3112 3113 3114# The same as in boehm-gc and libstdc++. Have to borrow it from there. 3115# We must force CC to /not/ be precious variables; otherwise 3116# the wrong, non-multilib-adjusted value will be used in multilibs. 3117# As a side effect, we have to subst CFLAGS ourselves. 3118 3119 3120 3121ac_ext=c 3122ac_cpp='$CPP $CPPFLAGS' 3123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3125ac_compiler_gnu=$ac_cv_c_compiler_gnu 3126if test -n "$ac_tool_prefix"; then 3127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3128set dummy ${ac_tool_prefix}gcc; ac_word=$2 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3130$as_echo_n "checking for $ac_word... " >&6; } 3131if ${ac_cv_prog_CC+:} false; then : 3132 $as_echo_n "(cached) " >&6 3133else 3134 if test -n "$CC"; then 3135 ac_cv_prog_CC="$CC" # Let the user override the test. 3136else 3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3138for as_dir in $PATH 3139do 3140 IFS=$as_save_IFS 3141 test -z "$as_dir" && as_dir=. 3142 for ac_exec_ext in '' $ac_executable_extensions; do 3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3144 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3146 break 2 3147 fi 3148done 3149 done 3150IFS=$as_save_IFS 3151 3152fi 3153fi 3154CC=$ac_cv_prog_CC 3155if test -n "$CC"; then 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3157$as_echo "$CC" >&6; } 3158else 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160$as_echo "no" >&6; } 3161fi 3162 3163 3164fi 3165if test -z "$ac_cv_prog_CC"; then 3166 ac_ct_CC=$CC 3167 # Extract the first word of "gcc", so it can be a program name with args. 3168set dummy gcc; ac_word=$2 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3170$as_echo_n "checking for $ac_word... " >&6; } 3171if ${ac_cv_prog_ac_ct_CC+:} false; then : 3172 $as_echo_n "(cached) " >&6 3173else 3174 if test -n "$ac_ct_CC"; then 3175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3176else 3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3178for as_dir in $PATH 3179do 3180 IFS=$as_save_IFS 3181 test -z "$as_dir" && as_dir=. 3182 for ac_exec_ext in '' $ac_executable_extensions; do 3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3184 ac_cv_prog_ac_ct_CC="gcc" 3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3186 break 2 3187 fi 3188done 3189 done 3190IFS=$as_save_IFS 3191 3192fi 3193fi 3194ac_ct_CC=$ac_cv_prog_ac_ct_CC 3195if test -n "$ac_ct_CC"; then 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3197$as_echo "$ac_ct_CC" >&6; } 3198else 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3200$as_echo "no" >&6; } 3201fi 3202 3203 if test "x$ac_ct_CC" = x; then 3204 CC="" 3205 else 3206 case $cross_compiling:$ac_tool_warned in 3207yes:) 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3210ac_tool_warned=yes ;; 3211esac 3212 CC=$ac_ct_CC 3213 fi 3214else 3215 CC="$ac_cv_prog_CC" 3216fi 3217 3218if test -z "$CC"; then 3219 if test -n "$ac_tool_prefix"; then 3220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3221set dummy ${ac_tool_prefix}cc; ac_word=$2 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3223$as_echo_n "checking for $ac_word... " >&6; } 3224if ${ac_cv_prog_CC+:} false; then : 3225 $as_echo_n "(cached) " >&6 3226else 3227 if test -n "$CC"; then 3228 ac_cv_prog_CC="$CC" # Let the user override the test. 3229else 3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3231for as_dir in $PATH 3232do 3233 IFS=$as_save_IFS 3234 test -z "$as_dir" && as_dir=. 3235 for ac_exec_ext in '' $ac_executable_extensions; do 3236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3237 ac_cv_prog_CC="${ac_tool_prefix}cc" 3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3239 break 2 3240 fi 3241done 3242 done 3243IFS=$as_save_IFS 3244 3245fi 3246fi 3247CC=$ac_cv_prog_CC 3248if test -n "$CC"; then 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3250$as_echo "$CC" >&6; } 3251else 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3253$as_echo "no" >&6; } 3254fi 3255 3256 3257 fi 3258fi 3259if test -z "$CC"; then 3260 # Extract the first word of "cc", so it can be a program name with args. 3261set dummy cc; ac_word=$2 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3263$as_echo_n "checking for $ac_word... " >&6; } 3264if ${ac_cv_prog_CC+:} false; then : 3265 $as_echo_n "(cached) " >&6 3266else 3267 if test -n "$CC"; then 3268 ac_cv_prog_CC="$CC" # Let the user override the test. 3269else 3270 ac_prog_rejected=no 3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3272for as_dir in $PATH 3273do 3274 IFS=$as_save_IFS 3275 test -z "$as_dir" && as_dir=. 3276 for ac_exec_ext in '' $ac_executable_extensions; do 3277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3279 ac_prog_rejected=yes 3280 continue 3281 fi 3282 ac_cv_prog_CC="cc" 3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3284 break 2 3285 fi 3286done 3287 done 3288IFS=$as_save_IFS 3289 3290if test $ac_prog_rejected = yes; then 3291 # We found a bogon in the path, so make sure we never use it. 3292 set dummy $ac_cv_prog_CC 3293 shift 3294 if test $# != 0; then 3295 # We chose a different compiler from the bogus one. 3296 # However, it has the same basename, so the bogon will be chosen 3297 # first if we set CC to just the basename; use the full file name. 3298 shift 3299 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3300 fi 3301fi 3302fi 3303fi 3304CC=$ac_cv_prog_CC 3305if test -n "$CC"; then 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3307$as_echo "$CC" >&6; } 3308else 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3310$as_echo "no" >&6; } 3311fi 3312 3313 3314fi 3315if test -z "$CC"; then 3316 if test -n "$ac_tool_prefix"; then 3317 for ac_prog in cl.exe 3318 do 3319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3320set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3322$as_echo_n "checking for $ac_word... " >&6; } 3323if ${ac_cv_prog_CC+:} false; then : 3324 $as_echo_n "(cached) " >&6 3325else 3326 if test -n "$CC"; then 3327 ac_cv_prog_CC="$CC" # Let the user override the test. 3328else 3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3330for as_dir in $PATH 3331do 3332 IFS=$as_save_IFS 3333 test -z "$as_dir" && as_dir=. 3334 for ac_exec_ext in '' $ac_executable_extensions; do 3335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3338 break 2 3339 fi 3340done 3341 done 3342IFS=$as_save_IFS 3343 3344fi 3345fi 3346CC=$ac_cv_prog_CC 3347if test -n "$CC"; then 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3349$as_echo "$CC" >&6; } 3350else 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3352$as_echo "no" >&6; } 3353fi 3354 3355 3356 test -n "$CC" && break 3357 done 3358fi 3359if test -z "$CC"; then 3360 ac_ct_CC=$CC 3361 for ac_prog in cl.exe 3362do 3363 # Extract the first word of "$ac_prog", so it can be a program name with args. 3364set dummy $ac_prog; ac_word=$2 3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3366$as_echo_n "checking for $ac_word... " >&6; } 3367if ${ac_cv_prog_ac_ct_CC+:} false; then : 3368 $as_echo_n "(cached) " >&6 3369else 3370 if test -n "$ac_ct_CC"; then 3371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3372else 3373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3374for as_dir in $PATH 3375do 3376 IFS=$as_save_IFS 3377 test -z "$as_dir" && as_dir=. 3378 for ac_exec_ext in '' $ac_executable_extensions; do 3379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3380 ac_cv_prog_ac_ct_CC="$ac_prog" 3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3382 break 2 3383 fi 3384done 3385 done 3386IFS=$as_save_IFS 3387 3388fi 3389fi 3390ac_ct_CC=$ac_cv_prog_ac_ct_CC 3391if test -n "$ac_ct_CC"; then 3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3393$as_echo "$ac_ct_CC" >&6; } 3394else 3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3396$as_echo "no" >&6; } 3397fi 3398 3399 3400 test -n "$ac_ct_CC" && break 3401done 3402 3403 if test "x$ac_ct_CC" = x; then 3404 CC="" 3405 else 3406 case $cross_compiling:$ac_tool_warned in 3407yes:) 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3410ac_tool_warned=yes ;; 3411esac 3412 CC=$ac_ct_CC 3413 fi 3414fi 3415 3416fi 3417 3418 3419test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3421as_fn_error $? "no acceptable C compiler found in \$PATH 3422See \`config.log' for more details" "$LINENO" 5; } 3423 3424# Provide some information about the compiler. 3425$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3426set X $ac_compile 3427ac_compiler=$2 3428for ac_option in --version -v -V -qversion; do 3429 { { ac_try="$ac_compiler $ac_option >&5" 3430case "(($ac_try" in 3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3432 *) ac_try_echo=$ac_try;; 3433esac 3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3435$as_echo "$ac_try_echo"; } >&5 3436 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3437 ac_status=$? 3438 if test -s conftest.err; then 3439 sed '10a\ 3440... rest of stderr output deleted ... 3441 10q' conftest.err >conftest.er1 3442 cat conftest.er1 >&5 3443 fi 3444 rm -f conftest.er1 conftest.err 3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3446 test $ac_status = 0; } 3447done 3448 3449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3450/* end confdefs.h. */ 3451#include <stdio.h> 3452int 3453main () 3454{ 3455printf ("hello world\n"); 3456 ; 3457 return 0; 3458} 3459_ACEOF 3460# FIXME: Cleanup? 3461if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 3462 (eval $ac_link) 2>&5 3463 ac_status=$? 3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3465 test $ac_status = 0; }; then : 3466 gcc_no_link=no 3467else 3468 gcc_no_link=yes 3469fi 3470if test x$gcc_no_link = xyes; then 3471 # Setting cross_compile will disable run tests; it will 3472 # also disable AC_CHECK_FILE but that's generally 3473 # correct if we can't link. 3474 cross_compiling=yes 3475 EXEEXT= 3476else 3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3478/* end confdefs.h. */ 3479 3480int 3481main () 3482{ 3483 3484 ; 3485 return 0; 3486} 3487_ACEOF 3488ac_clean_files_save=$ac_clean_files 3489ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3490# Try to create an executable without -o first, disregard a.out. 3491# It will help us diagnose broken compilers, and finding out an intuition 3492# of exeext. 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3494$as_echo_n "checking whether the C compiler works... " >&6; } 3495ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3496 3497# The possible output files: 3498ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3499 3500ac_rmfiles= 3501for ac_file in $ac_files 3502do 3503 case $ac_file in 3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3505 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3506 esac 3507done 3508rm -f $ac_rmfiles 3509 3510if { { ac_try="$ac_link_default" 3511case "(($ac_try" in 3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3513 *) ac_try_echo=$ac_try;; 3514esac 3515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3516$as_echo "$ac_try_echo"; } >&5 3517 (eval "$ac_link_default") 2>&5 3518 ac_status=$? 3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3520 test $ac_status = 0; }; then : 3521 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3522# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3523# in a Makefile. We should not override ac_cv_exeext if it was cached, 3524# so that the user can short-circuit this test for compilers unknown to 3525# Autoconf. 3526for ac_file in $ac_files '' 3527do 3528 test -f "$ac_file" || continue 3529 case $ac_file in 3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3531 ;; 3532 [ab].out ) 3533 # We found the default executable, but exeext='' is most 3534 # certainly right. 3535 break;; 3536 *.* ) 3537 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3538 then :; else 3539 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3540 fi 3541 # We set ac_cv_exeext here because the later test for it is not 3542 # safe: cross compilers may not add the suffix if given an `-o' 3543 # argument, so we may need to know it at that point already. 3544 # Even if this section looks crufty: it has the advantage of 3545 # actually working. 3546 break;; 3547 * ) 3548 break;; 3549 esac 3550done 3551test "$ac_cv_exeext" = no && ac_cv_exeext= 3552 3553else 3554 ac_file='' 3555fi 3556if test -z "$ac_file"; then : 3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3558$as_echo "no" >&6; } 3559$as_echo "$as_me: failed program was:" >&5 3560sed 's/^/| /' conftest.$ac_ext >&5 3561 3562{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3564as_fn_error 77 "C compiler cannot create executables 3565See \`config.log' for more details" "$LINENO" 5; } 3566else 3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3568$as_echo "yes" >&6; } 3569fi 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3571$as_echo_n "checking for C compiler default output file name... " >&6; } 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3573$as_echo "$ac_file" >&6; } 3574ac_exeext=$ac_cv_exeext 3575 3576rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3577ac_clean_files=$ac_clean_files_save 3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3579$as_echo_n "checking for suffix of executables... " >&6; } 3580if { { ac_try="$ac_link" 3581case "(($ac_try" in 3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3583 *) ac_try_echo=$ac_try;; 3584esac 3585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3586$as_echo "$ac_try_echo"; } >&5 3587 (eval "$ac_link") 2>&5 3588 ac_status=$? 3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3590 test $ac_status = 0; }; then : 3591 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3592# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3593# work properly (i.e., refer to `conftest.exe'), while it won't with 3594# `rm'. 3595for ac_file in conftest.exe conftest conftest.*; do 3596 test -f "$ac_file" || continue 3597 case $ac_file in 3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3599 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3600 break;; 3601 * ) break;; 3602 esac 3603done 3604else 3605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3607as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3608See \`config.log' for more details" "$LINENO" 5; } 3609fi 3610rm -f conftest conftest$ac_cv_exeext 3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3612$as_echo "$ac_cv_exeext" >&6; } 3613 3614rm -f conftest.$ac_ext 3615EXEEXT=$ac_cv_exeext 3616ac_exeext=$EXEEXT 3617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3618/* end confdefs.h. */ 3619#include <stdio.h> 3620int 3621main () 3622{ 3623FILE *f = fopen ("conftest.out", "w"); 3624 return ferror (f) || fclose (f) != 0; 3625 3626 ; 3627 return 0; 3628} 3629_ACEOF 3630ac_clean_files="$ac_clean_files conftest.out" 3631# Check that the compiler produces executables we can run. If not, either 3632# the compiler is broken, or we cross compile. 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3634$as_echo_n "checking whether we are cross compiling... " >&6; } 3635if test "$cross_compiling" != yes; then 3636 { { ac_try="$ac_link" 3637case "(($ac_try" in 3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3639 *) ac_try_echo=$ac_try;; 3640esac 3641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3642$as_echo "$ac_try_echo"; } >&5 3643 (eval "$ac_link") 2>&5 3644 ac_status=$? 3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3646 test $ac_status = 0; } 3647 if { ac_try='./conftest$ac_cv_exeext' 3648 { { case "(($ac_try" in 3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3650 *) ac_try_echo=$ac_try;; 3651esac 3652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3653$as_echo "$ac_try_echo"; } >&5 3654 (eval "$ac_try") 2>&5 3655 ac_status=$? 3656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3657 test $ac_status = 0; }; }; then 3658 cross_compiling=no 3659 else 3660 if test "$cross_compiling" = maybe; then 3661 cross_compiling=yes 3662 else 3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3665as_fn_error $? "cannot run C compiled programs. 3666If you meant to cross compile, use \`--host'. 3667See \`config.log' for more details" "$LINENO" 5; } 3668 fi 3669 fi 3670fi 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3672$as_echo "$cross_compiling" >&6; } 3673 3674rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3675ac_clean_files=$ac_clean_files_save 3676fi 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3678$as_echo_n "checking for suffix of object files... " >&6; } 3679if ${ac_cv_objext+:} false; then : 3680 $as_echo_n "(cached) " >&6 3681else 3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3683/* end confdefs.h. */ 3684 3685int 3686main () 3687{ 3688 3689 ; 3690 return 0; 3691} 3692_ACEOF 3693rm -f conftest.o conftest.obj 3694if { { ac_try="$ac_compile" 3695case "(($ac_try" in 3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3697 *) ac_try_echo=$ac_try;; 3698esac 3699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3700$as_echo "$ac_try_echo"; } >&5 3701 (eval "$ac_compile") 2>&5 3702 ac_status=$? 3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3704 test $ac_status = 0; }; then : 3705 for ac_file in conftest.o conftest.obj conftest.*; do 3706 test -f "$ac_file" || continue; 3707 case $ac_file in 3708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3709 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3710 break;; 3711 esac 3712done 3713else 3714 $as_echo "$as_me: failed program was:" >&5 3715sed 's/^/| /' conftest.$ac_ext >&5 3716 3717{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3719as_fn_error $? "cannot compute suffix of object files: cannot compile 3720See \`config.log' for more details" "$LINENO" 5; } 3721fi 3722rm -f conftest.$ac_cv_objext conftest.$ac_ext 3723fi 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3725$as_echo "$ac_cv_objext" >&6; } 3726OBJEXT=$ac_cv_objext 3727ac_objext=$OBJEXT 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3729$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3730if ${ac_cv_c_compiler_gnu+:} false; then : 3731 $as_echo_n "(cached) " >&6 3732else 3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3734/* end confdefs.h. */ 3735 3736int 3737main () 3738{ 3739#ifndef __GNUC__ 3740 choke me 3741#endif 3742 3743 ; 3744 return 0; 3745} 3746_ACEOF 3747if ac_fn_c_try_compile "$LINENO"; then : 3748 ac_compiler_gnu=yes 3749else 3750 ac_compiler_gnu=no 3751fi 3752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3753ac_cv_c_compiler_gnu=$ac_compiler_gnu 3754 3755fi 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3757$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3758if test $ac_compiler_gnu = yes; then 3759 GCC=yes 3760else 3761 GCC= 3762fi 3763ac_test_CFLAGS=${CFLAGS+set} 3764ac_save_CFLAGS=$CFLAGS 3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3766$as_echo_n "checking whether $CC accepts -g... " >&6; } 3767if ${ac_cv_prog_cc_g+:} false; then : 3768 $as_echo_n "(cached) " >&6 3769else 3770 ac_save_c_werror_flag=$ac_c_werror_flag 3771 ac_c_werror_flag=yes 3772 ac_cv_prog_cc_g=no 3773 CFLAGS="-g" 3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3775/* end confdefs.h. */ 3776 3777int 3778main () 3779{ 3780 3781 ; 3782 return 0; 3783} 3784_ACEOF 3785if ac_fn_c_try_compile "$LINENO"; then : 3786 ac_cv_prog_cc_g=yes 3787else 3788 CFLAGS="" 3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3790/* end confdefs.h. */ 3791 3792int 3793main () 3794{ 3795 3796 ; 3797 return 0; 3798} 3799_ACEOF 3800if ac_fn_c_try_compile "$LINENO"; then : 3801 3802else 3803 ac_c_werror_flag=$ac_save_c_werror_flag 3804 CFLAGS="-g" 3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3806/* end confdefs.h. */ 3807 3808int 3809main () 3810{ 3811 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816if ac_fn_c_try_compile "$LINENO"; then : 3817 ac_cv_prog_cc_g=yes 3818fi 3819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3820fi 3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3822fi 3823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3824 ac_c_werror_flag=$ac_save_c_werror_flag 3825fi 3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3827$as_echo "$ac_cv_prog_cc_g" >&6; } 3828if test "$ac_test_CFLAGS" = set; then 3829 CFLAGS=$ac_save_CFLAGS 3830elif test $ac_cv_prog_cc_g = yes; then 3831 if test "$GCC" = yes; then 3832 CFLAGS="-g -O2" 3833 else 3834 CFLAGS="-g" 3835 fi 3836else 3837 if test "$GCC" = yes; then 3838 CFLAGS="-O2" 3839 else 3840 CFLAGS= 3841 fi 3842fi 3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3844$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3845if ${ac_cv_prog_cc_c89+:} false; then : 3846 $as_echo_n "(cached) " >&6 3847else 3848 ac_cv_prog_cc_c89=no 3849ac_save_CC=$CC 3850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3851/* end confdefs.h. */ 3852#include <stdarg.h> 3853#include <stdio.h> 3854struct stat; 3855/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3856struct buf { int x; }; 3857FILE * (*rcsopen) (struct buf *, struct stat *, int); 3858static char *e (p, i) 3859 char **p; 3860 int i; 3861{ 3862 return p[i]; 3863} 3864static char *f (char * (*g) (char **, int), char **p, ...) 3865{ 3866 char *s; 3867 va_list v; 3868 va_start (v,p); 3869 s = g (p, va_arg (v,int)); 3870 va_end (v); 3871 return s; 3872} 3873 3874/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3875 function prototypes and stuff, but not '\xHH' hex character constants. 3876 These don't provoke an error unfortunately, instead are silently treated 3877 as 'x'. The following induces an error, until -std is added to get 3878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3879 array size at least. It's necessary to write '\x00'==0 to get something 3880 that's true only with -std. */ 3881int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3882 3883/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3884 inside strings and character constants. */ 3885#define FOO(x) 'x' 3886int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3887 3888int test (int i, double x); 3889struct s1 {int (*f) (int a);}; 3890struct s2 {int (*f) (double a);}; 3891int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3892int argc; 3893char **argv; 3894int 3895main () 3896{ 3897return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3898 ; 3899 return 0; 3900} 3901_ACEOF 3902for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3903 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3904do 3905 CC="$ac_save_CC $ac_arg" 3906 if ac_fn_c_try_compile "$LINENO"; then : 3907 ac_cv_prog_cc_c89=$ac_arg 3908fi 3909rm -f core conftest.err conftest.$ac_objext 3910 test "x$ac_cv_prog_cc_c89" != "xno" && break 3911done 3912rm -f conftest.$ac_ext 3913CC=$ac_save_CC 3914 3915fi 3916# AC_CACHE_VAL 3917case "x$ac_cv_prog_cc_c89" in 3918 x) 3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3920$as_echo "none needed" >&6; } ;; 3921 xno) 3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3923$as_echo "unsupported" >&6; } ;; 3924 *) 3925 CC="$CC $ac_cv_prog_cc_c89" 3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3927$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3928esac 3929if test "x$ac_cv_prog_cc_c89" != xno; then : 3930 3931fi 3932 3933ac_ext=c 3934ac_cpp='$CPP $CPPFLAGS' 3935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3937ac_compiler_gnu=$ac_cv_c_compiler_gnu 3938 3939ac_ext=c 3940ac_cpp='$CPP $CPPFLAGS' 3941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3943ac_compiler_gnu=$ac_cv_c_compiler_gnu 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3945$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3946if ${am_cv_prog_cc_c_o+:} false; then : 3947 $as_echo_n "(cached) " >&6 3948else 3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3950/* end confdefs.h. */ 3951 3952int 3953main () 3954{ 3955 3956 ; 3957 return 0; 3958} 3959_ACEOF 3960 # Make sure it works both with $CC and with simple cc. 3961 # Following AC_PROG_CC_C_O, we do the test twice because some 3962 # compilers refuse to overwrite an existing .o file with -o, 3963 # though they will create one. 3964 am_cv_prog_cc_c_o=yes 3965 for am_i in 1 2; do 3966 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3967 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3968 ac_status=$? 3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3970 (exit $ac_status); } \ 3971 && test -f conftest2.$ac_objext; then 3972 : OK 3973 else 3974 am_cv_prog_cc_c_o=no 3975 break 3976 fi 3977 done 3978 rm -f core conftest* 3979 unset am_i 3980fi 3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3982$as_echo "$am_cv_prog_cc_c_o" >&6; } 3983if test "$am_cv_prog_cc_c_o" != yes; then 3984 # Losing compiler, so override with the script. 3985 # FIXME: It is wrong to rewrite CC. 3986 # But if we don't then we get into trouble of one sort or another. 3987 # A longer-term fix would be to have automake use am__CC in this case, 3988 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3989 CC="$am_aux_dir/compile $CC" 3990fi 3991ac_ext=c 3992ac_cpp='$CPP $CPPFLAGS' 3993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3995ac_compiler_gnu=$ac_cv_c_compiler_gnu 3996 3997DEPDIR="${am__leading_dot}deps" 3998 3999ac_config_commands="$ac_config_commands depfiles" 4000 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4002$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4003cat > confinc.mk << 'END' 4004am__doit: 4005 @echo this is the am__doit target >confinc.out 4006.PHONY: am__doit 4007END 4008am__include="#" 4009am__quote= 4010# BSD make does it like this. 4011echo '.include "confinc.mk" # ignored' > confmf.BSD 4012# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4013echo 'include confinc.mk # ignored' > confmf.GNU 4014_am_result=no 4015for s in GNU BSD; do 4016 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4017 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4018 ac_status=$? 4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4020 (exit $ac_status); } 4021 case $?:`cat confinc.out 2>/dev/null` in #( 4022 '0:this is the am__doit target') : 4023 case $s in #( 4024 BSD) : 4025 am__include='.include' am__quote='"' ;; #( 4026 *) : 4027 am__include='include' am__quote='' ;; 4028esac ;; #( 4029 *) : 4030 ;; 4031esac 4032 if test "$am__include" != "#"; then 4033 _am_result="yes ($s style)" 4034 break 4035 fi 4036done 4037rm -f confinc.* confmf.* 4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4039$as_echo "${_am_result}" >&6; } 4040 4041# Check whether --enable-dependency-tracking was given. 4042if test "${enable_dependency_tracking+set}" = set; then : 4043 enableval=$enable_dependency_tracking; 4044fi 4045 4046if test "x$enable_dependency_tracking" != xno; then 4047 am_depcomp="$ac_aux_dir/depcomp" 4048 AMDEPBACKSLASH='\' 4049 am__nodep='_no' 4050fi 4051 if test "x$enable_dependency_tracking" != xno; then 4052 AMDEP_TRUE= 4053 AMDEP_FALSE='#' 4054else 4055 AMDEP_TRUE='#' 4056 AMDEP_FALSE= 4057fi 4058 4059 4060 4061depcc="$CC" am_compiler_list= 4062 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4064$as_echo_n "checking dependency style of $depcc... " >&6; } 4065if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4066 $as_echo_n "(cached) " >&6 4067else 4068 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4069 # We make a subdir and do the tests there. Otherwise we can end up 4070 # making bogus files that we don't know about and never remove. For 4071 # instance it was reported that on HP-UX the gcc test will end up 4072 # making a dummy file named 'D' -- because '-MD' means "put the output 4073 # in D". 4074 rm -rf conftest.dir 4075 mkdir conftest.dir 4076 # Copy depcomp to subdir because otherwise we won't find it if we're 4077 # using a relative directory. 4078 cp "$am_depcomp" conftest.dir 4079 cd conftest.dir 4080 # We will build objects and dependencies in a subdirectory because 4081 # it helps to detect inapplicable dependency modes. For instance 4082 # both Tru64's cc and ICC support -MD to output dependencies as a 4083 # side effect of compilation, but ICC will put the dependencies in 4084 # the current directory while Tru64 will put them in the object 4085 # directory. 4086 mkdir sub 4087 4088 am_cv_CC_dependencies_compiler_type=none 4089 if test "$am_compiler_list" = ""; then 4090 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4091 fi 4092 am__universal=false 4093 case " $depcc " in #( 4094 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4095 esac 4096 4097 for depmode in $am_compiler_list; do 4098 # Setup a source with many dependencies, because some compilers 4099 # like to wrap large dependency lists on column 80 (with \), and 4100 # we should not choose a depcomp mode which is confused by this. 4101 # 4102 # We need to recreate these files for each test, as the compiler may 4103 # overwrite some of them when testing with obscure command lines. 4104 # This happens at least with the AIX C compiler. 4105 : > sub/conftest.c 4106 for i in 1 2 3 4 5 6; do 4107 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4108 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4109 # Solaris 10 /bin/sh. 4110 echo '/* dummy */' > sub/conftst$i.h 4111 done 4112 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4113 4114 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4115 # mode. It turns out that the SunPro C++ compiler does not properly 4116 # handle '-M -o', and we need to detect this. Also, some Intel 4117 # versions had trouble with output in subdirs. 4118 am__obj=sub/conftest.${OBJEXT-o} 4119 am__minus_obj="-o $am__obj" 4120 case $depmode in 4121 gcc) 4122 # This depmode causes a compiler race in universal mode. 4123 test "$am__universal" = false || continue 4124 ;; 4125 nosideeffect) 4126 # After this tag, mechanisms are not by side-effect, so they'll 4127 # only be used when explicitly requested. 4128 if test "x$enable_dependency_tracking" = xyes; then 4129 continue 4130 else 4131 break 4132 fi 4133 ;; 4134 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4135 # This compiler won't grok '-c -o', but also, the minuso test has 4136 # not run yet. These depmodes are late enough in the game, and 4137 # so weak that their functioning should not be impacted. 4138 am__obj=conftest.${OBJEXT-o} 4139 am__minus_obj= 4140 ;; 4141 none) break ;; 4142 esac 4143 if depmode=$depmode \ 4144 source=sub/conftest.c object=$am__obj \ 4145 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4146 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4147 >/dev/null 2>conftest.err && 4148 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4149 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4150 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4151 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4152 # icc doesn't choke on unknown options, it will just issue warnings 4153 # or remarks (even with -Werror). So we grep stderr for any message 4154 # that says an option was ignored or not supported. 4155 # When given -MP, icc 7.0 and 7.1 complain thusly: 4156 # icc: Command line warning: ignoring option '-M'; no argument required 4157 # The diagnosis changed in icc 8.0: 4158 # icc: Command line remark: option '-MP' not supported 4159 if (grep 'ignoring option' conftest.err || 4160 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4161 am_cv_CC_dependencies_compiler_type=$depmode 4162 break 4163 fi 4164 fi 4165 done 4166 4167 cd .. 4168 rm -rf conftest.dir 4169else 4170 am_cv_CC_dependencies_compiler_type=none 4171fi 4172 4173fi 4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4175$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4176CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4177 4178 if 4179 test "x$enable_dependency_tracking" != xno \ 4180 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4181 am__fastdepCC_TRUE= 4182 am__fastdepCC_FALSE='#' 4183else 4184 am__fastdepCC_TRUE='#' 4185 am__fastdepCC_FALSE= 4186fi 4187 4188 4189 4190 4191 4192 4193case `pwd` in 4194 *\ * | *\ *) 4195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4196$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4197esac 4198 4199 4200 4201macro_version='2.2.7a' 4202macro_revision='1.3134' 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216ltmain="$ac_aux_dir/ltmain.sh" 4217 4218# Backslashify metacharacters that are still active within 4219# double-quoted strings. 4220sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4221 4222# Same as above, but do not quote variable references. 4223double_quote_subst='s/\(["`\\]\)/\\\1/g' 4224 4225# Sed substitution to delay expansion of an escaped shell variable in a 4226# double_quote_subst'ed string. 4227delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4228 4229# Sed substitution to delay expansion of an escaped single quote. 4230delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4231 4232# Sed substitution to avoid accidental globbing in evaled expressions 4233no_glob_subst='s/\*/\\\*/g' 4234 4235ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4236ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4237ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4238 4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4240$as_echo_n "checking how to print strings... " >&6; } 4241# Test print first, because it will be a builtin if present. 4242if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4243 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4244 ECHO='print -r --' 4245elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4246 ECHO='printf %s\n' 4247else 4248 # Use this function as a fallback that always works. 4249 func_fallback_echo () 4250 { 4251 eval 'cat <<_LTECHO_EOF 4252$1 4253_LTECHO_EOF' 4254 } 4255 ECHO='func_fallback_echo' 4256fi 4257 4258# func_echo_all arg... 4259# Invoke $ECHO with all args, space-separated. 4260func_echo_all () 4261{ 4262 $ECHO "" 4263} 4264 4265case "$ECHO" in 4266 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4267$as_echo "printf" >&6; } ;; 4268 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4269$as_echo "print -r" >&6; } ;; 4270 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4271$as_echo "cat" >&6; } ;; 4272esac 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4288$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4289if ${ac_cv_path_SED+:} false; then : 4290 $as_echo_n "(cached) " >&6 4291else 4292 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4293 for ac_i in 1 2 3 4 5 6 7; do 4294 ac_script="$ac_script$as_nl$ac_script" 4295 done 4296 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4297 { ac_script=; unset ac_script;} 4298 if test -z "$SED"; then 4299 ac_path_SED_found=false 4300 # Loop through the user's path and test for each of PROGNAME-LIST 4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4302for as_dir in $PATH 4303do 4304 IFS=$as_save_IFS 4305 test -z "$as_dir" && as_dir=. 4306 for ac_prog in sed gsed; do 4307 for ac_exec_ext in '' $ac_executable_extensions; do 4308 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4309 as_fn_executable_p "$ac_path_SED" || continue 4310# Check for GNU ac_path_SED and select it if it is found. 4311 # Check for GNU $ac_path_SED 4312case `"$ac_path_SED" --version 2>&1` in 4313*GNU*) 4314 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4315*) 4316 ac_count=0 4317 $as_echo_n 0123456789 >"conftest.in" 4318 while : 4319 do 4320 cat "conftest.in" "conftest.in" >"conftest.tmp" 4321 mv "conftest.tmp" "conftest.in" 4322 cp "conftest.in" "conftest.nl" 4323 $as_echo '' >> "conftest.nl" 4324 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4326 as_fn_arith $ac_count + 1 && ac_count=$as_val 4327 if test $ac_count -gt ${ac_path_SED_max-0}; then 4328 # Best one so far, save it but keep looking for a better one 4329 ac_cv_path_SED="$ac_path_SED" 4330 ac_path_SED_max=$ac_count 4331 fi 4332 # 10*(2^10) chars as input seems more than enough 4333 test $ac_count -gt 10 && break 4334 done 4335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4336esac 4337 4338 $ac_path_SED_found && break 3 4339 done 4340 done 4341 done 4342IFS=$as_save_IFS 4343 if test -z "$ac_cv_path_SED"; then 4344 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4345 fi 4346else 4347 ac_cv_path_SED=$SED 4348fi 4349 4350fi 4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4352$as_echo "$ac_cv_path_SED" >&6; } 4353 SED="$ac_cv_path_SED" 4354 rm -f conftest.sed 4355 4356test -z "$SED" && SED=sed 4357Xsed="$SED -e 1s/^X//" 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4370$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4371if ${ac_cv_path_GREP+:} false; then : 4372 $as_echo_n "(cached) " >&6 4373else 4374 if test -z "$GREP"; then 4375 ac_path_GREP_found=false 4376 # Loop through the user's path and test for each of PROGNAME-LIST 4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4378for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4379do 4380 IFS=$as_save_IFS 4381 test -z "$as_dir" && as_dir=. 4382 for ac_prog in grep ggrep; do 4383 for ac_exec_ext in '' $ac_executable_extensions; do 4384 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4385 as_fn_executable_p "$ac_path_GREP" || continue 4386# Check for GNU ac_path_GREP and select it if it is found. 4387 # Check for GNU $ac_path_GREP 4388case `"$ac_path_GREP" --version 2>&1` in 4389*GNU*) 4390 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4391*) 4392 ac_count=0 4393 $as_echo_n 0123456789 >"conftest.in" 4394 while : 4395 do 4396 cat "conftest.in" "conftest.in" >"conftest.tmp" 4397 mv "conftest.tmp" "conftest.in" 4398 cp "conftest.in" "conftest.nl" 4399 $as_echo 'GREP' >> "conftest.nl" 4400 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4402 as_fn_arith $ac_count + 1 && ac_count=$as_val 4403 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4404 # Best one so far, save it but keep looking for a better one 4405 ac_cv_path_GREP="$ac_path_GREP" 4406 ac_path_GREP_max=$ac_count 4407 fi 4408 # 10*(2^10) chars as input seems more than enough 4409 test $ac_count -gt 10 && break 4410 done 4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4412esac 4413 4414 $ac_path_GREP_found && break 3 4415 done 4416 done 4417 done 4418IFS=$as_save_IFS 4419 if test -z "$ac_cv_path_GREP"; then 4420 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4421 fi 4422else 4423 ac_cv_path_GREP=$GREP 4424fi 4425 4426fi 4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4428$as_echo "$ac_cv_path_GREP" >&6; } 4429 GREP="$ac_cv_path_GREP" 4430 4431 4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4433$as_echo_n "checking for egrep... " >&6; } 4434if ${ac_cv_path_EGREP+:} false; then : 4435 $as_echo_n "(cached) " >&6 4436else 4437 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4438 then ac_cv_path_EGREP="$GREP -E" 4439 else 4440 if test -z "$EGREP"; then 4441 ac_path_EGREP_found=false 4442 # Loop through the user's path and test for each of PROGNAME-LIST 4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4444for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4445do 4446 IFS=$as_save_IFS 4447 test -z "$as_dir" && as_dir=. 4448 for ac_prog in egrep; do 4449 for ac_exec_ext in '' $ac_executable_extensions; do 4450 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4451 as_fn_executable_p "$ac_path_EGREP" || continue 4452# Check for GNU ac_path_EGREP and select it if it is found. 4453 # Check for GNU $ac_path_EGREP 4454case `"$ac_path_EGREP" --version 2>&1` in 4455*GNU*) 4456 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4457*) 4458 ac_count=0 4459 $as_echo_n 0123456789 >"conftest.in" 4460 while : 4461 do 4462 cat "conftest.in" "conftest.in" >"conftest.tmp" 4463 mv "conftest.tmp" "conftest.in" 4464 cp "conftest.in" "conftest.nl" 4465 $as_echo 'EGREP' >> "conftest.nl" 4466 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4468 as_fn_arith $ac_count + 1 && ac_count=$as_val 4469 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4470 # Best one so far, save it but keep looking for a better one 4471 ac_cv_path_EGREP="$ac_path_EGREP" 4472 ac_path_EGREP_max=$ac_count 4473 fi 4474 # 10*(2^10) chars as input seems more than enough 4475 test $ac_count -gt 10 && break 4476 done 4477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4478esac 4479 4480 $ac_path_EGREP_found && break 3 4481 done 4482 done 4483 done 4484IFS=$as_save_IFS 4485 if test -z "$ac_cv_path_EGREP"; then 4486 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4487 fi 4488else 4489 ac_cv_path_EGREP=$EGREP 4490fi 4491 4492 fi 4493fi 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4495$as_echo "$ac_cv_path_EGREP" >&6; } 4496 EGREP="$ac_cv_path_EGREP" 4497 4498 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4500$as_echo_n "checking for fgrep... " >&6; } 4501if ${ac_cv_path_FGREP+:} false; then : 4502 $as_echo_n "(cached) " >&6 4503else 4504 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4505 then ac_cv_path_FGREP="$GREP -F" 4506 else 4507 if test -z "$FGREP"; then 4508 ac_path_FGREP_found=false 4509 # Loop through the user's path and test for each of PROGNAME-LIST 4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4512do 4513 IFS=$as_save_IFS 4514 test -z "$as_dir" && as_dir=. 4515 for ac_prog in fgrep; do 4516 for ac_exec_ext in '' $ac_executable_extensions; do 4517 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4518 as_fn_executable_p "$ac_path_FGREP" || continue 4519# Check for GNU ac_path_FGREP and select it if it is found. 4520 # Check for GNU $ac_path_FGREP 4521case `"$ac_path_FGREP" --version 2>&1` in 4522*GNU*) 4523 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4524*) 4525 ac_count=0 4526 $as_echo_n 0123456789 >"conftest.in" 4527 while : 4528 do 4529 cat "conftest.in" "conftest.in" >"conftest.tmp" 4530 mv "conftest.tmp" "conftest.in" 4531 cp "conftest.in" "conftest.nl" 4532 $as_echo 'FGREP' >> "conftest.nl" 4533 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4535 as_fn_arith $ac_count + 1 && ac_count=$as_val 4536 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4537 # Best one so far, save it but keep looking for a better one 4538 ac_cv_path_FGREP="$ac_path_FGREP" 4539 ac_path_FGREP_max=$ac_count 4540 fi 4541 # 10*(2^10) chars as input seems more than enough 4542 test $ac_count -gt 10 && break 4543 done 4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4545esac 4546 4547 $ac_path_FGREP_found && break 3 4548 done 4549 done 4550 done 4551IFS=$as_save_IFS 4552 if test -z "$ac_cv_path_FGREP"; then 4553 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4554 fi 4555else 4556 ac_cv_path_FGREP=$FGREP 4557fi 4558 4559 fi 4560fi 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4562$as_echo "$ac_cv_path_FGREP" >&6; } 4563 FGREP="$ac_cv_path_FGREP" 4564 4565 4566test -z "$GREP" && GREP=grep 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586# Check whether --with-gnu-ld was given. 4587if test "${with_gnu_ld+set}" = set; then : 4588 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4589else 4590 with_gnu_ld=no 4591fi 4592 4593ac_prog=ld 4594if test "$GCC" = yes; then 4595 # Check if gcc -print-prog-name=ld gives a path. 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4597$as_echo_n "checking for ld used by $CC... " >&6; } 4598 case $host in 4599 *-*-mingw*) 4600 # gcc leaves a trailing carriage return which upsets mingw 4601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4602 *) 4603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4604 esac 4605 case $ac_prog in 4606 # Accept absolute paths. 4607 [\\/]* | ?:[\\/]*) 4608 re_direlt='/[^/][^/]*/\.\./' 4609 # Canonicalize the pathname of ld 4610 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4611 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4612 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4613 done 4614 test -z "$LD" && LD="$ac_prog" 4615 ;; 4616 "") 4617 # If it fails, then pretend we aren't using GCC. 4618 ac_prog=ld 4619 ;; 4620 *) 4621 # If it is relative, then search for the first ld in PATH. 4622 with_gnu_ld=unknown 4623 ;; 4624 esac 4625elif test "$with_gnu_ld" = yes; then 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4627$as_echo_n "checking for GNU ld... " >&6; } 4628else 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4630$as_echo_n "checking for non-GNU ld... " >&6; } 4631fi 4632if ${lt_cv_path_LD+:} false; then : 4633 $as_echo_n "(cached) " >&6 4634else 4635 if test -z "$LD"; then 4636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4637 for ac_dir in $PATH; do 4638 IFS="$lt_save_ifs" 4639 test -z "$ac_dir" && ac_dir=. 4640 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4641 lt_cv_path_LD="$ac_dir/$ac_prog" 4642 # Check to see if the program is GNU ld. I'd rather use --version, 4643 # but apparently some variants of GNU ld only accept -v. 4644 # Break only if it was the GNU/non-GNU ld that we prefer. 4645 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4646 *GNU* | *'with BFD'*) 4647 test "$with_gnu_ld" != no && break 4648 ;; 4649 *) 4650 test "$with_gnu_ld" != yes && break 4651 ;; 4652 esac 4653 fi 4654 done 4655 IFS="$lt_save_ifs" 4656else 4657 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4658fi 4659fi 4660 4661LD="$lt_cv_path_LD" 4662if test -n "$LD"; then 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4664$as_echo "$LD" >&6; } 4665else 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4667$as_echo "no" >&6; } 4668fi 4669test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4671$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4672if ${lt_cv_prog_gnu_ld+:} false; then : 4673 $as_echo_n "(cached) " >&6 4674else 4675 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4676case `$LD -v 2>&1 </dev/null` in 4677*GNU* | *'with BFD'*) 4678 lt_cv_prog_gnu_ld=yes 4679 ;; 4680*) 4681 lt_cv_prog_gnu_ld=no 4682 ;; 4683esac 4684fi 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4686$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4687with_gnu_ld=$lt_cv_prog_gnu_ld 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4698$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4699if ${lt_cv_path_NM+:} false; then : 4700 $as_echo_n "(cached) " >&6 4701else 4702 if test -n "$NM"; then 4703 # Let the user override the nm to test. 4704 lt_nm_to_check="$NM" 4705 else 4706 lt_nm_to_check="${ac_tool_prefix}nm" 4707 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4708 lt_nm_to_check="$lt_nm_to_check nm" 4709 fi 4710 fi 4711 for lt_tmp_nm in "$lt_nm_to_check"; do 4712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4713 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4714 IFS="$lt_save_ifs" 4715 test -z "$ac_dir" && ac_dir=. 4716 # Strip out any user-provided options from the nm to test twice, 4717 # the first time to test to see if nm (rather than its options) has 4718 # an explicit path, the second time to yield a file which can be 4719 # nm'ed itself. 4720 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" 4721 case "$tmp_nm_path" in 4722 */*|*\\*) tmp_nm="$lt_tmp_nm";; 4723 *) tmp_nm="$ac_dir/$lt_tmp_nm";; 4724 esac 4725 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" 4726 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then 4727 # Check to see if the nm accepts a BSD-compat flag. 4728 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4729 # nm: unknown option "B" ignored 4730 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 4731 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" 4732 break 4733 ;; 4734 *) 4735 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 4736 *$tmp_nm*) 4737 lt_cv_path_NM="$tmp_nm -p" 4738 break 4739 ;; 4740 *) 4741 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4742 continue # so that we can try to find one that supports BSD flags 4743 ;; 4744 esac 4745 ;; 4746 esac 4747 fi 4748 done 4749 IFS="$lt_save_ifs" 4750 done 4751 : ${lt_cv_path_NM=no} 4752fi 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4754$as_echo "$lt_cv_path_NM" >&6; } 4755if test "$lt_cv_path_NM" != "no"; then 4756 NM="$lt_cv_path_NM" 4757else 4758 # Didn't find any BSD compatible name lister, look for dumpbin. 4759 if test -n "$DUMPBIN"; then : 4760 # Let the user override the test. 4761 else 4762 if test -n "$ac_tool_prefix"; then 4763 for ac_prog in dumpbin "link -dump" 4764 do 4765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4766set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4768$as_echo_n "checking for $ac_word... " >&6; } 4769if ${ac_cv_prog_DUMPBIN+:} false; then : 4770 $as_echo_n "(cached) " >&6 4771else 4772 if test -n "$DUMPBIN"; then 4773 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4774else 4775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4776for as_dir in $PATH 4777do 4778 IFS=$as_save_IFS 4779 test -z "$as_dir" && as_dir=. 4780 for ac_exec_ext in '' $ac_executable_extensions; do 4781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4782 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4784 break 2 4785 fi 4786done 4787 done 4788IFS=$as_save_IFS 4789 4790fi 4791fi 4792DUMPBIN=$ac_cv_prog_DUMPBIN 4793if test -n "$DUMPBIN"; then 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4795$as_echo "$DUMPBIN" >&6; } 4796else 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4798$as_echo "no" >&6; } 4799fi 4800 4801 4802 test -n "$DUMPBIN" && break 4803 done 4804fi 4805if test -z "$DUMPBIN"; then 4806 ac_ct_DUMPBIN=$DUMPBIN 4807 for ac_prog in dumpbin "link -dump" 4808do 4809 # Extract the first word of "$ac_prog", so it can be a program name with args. 4810set dummy $ac_prog; ac_word=$2 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4812$as_echo_n "checking for $ac_word... " >&6; } 4813if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4814 $as_echo_n "(cached) " >&6 4815else 4816 if test -n "$ac_ct_DUMPBIN"; then 4817 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4818else 4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4820for as_dir in $PATH 4821do 4822 IFS=$as_save_IFS 4823 test -z "$as_dir" && as_dir=. 4824 for ac_exec_ext in '' $ac_executable_extensions; do 4825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4826 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4828 break 2 4829 fi 4830done 4831 done 4832IFS=$as_save_IFS 4833 4834fi 4835fi 4836ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4837if test -n "$ac_ct_DUMPBIN"; then 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4839$as_echo "$ac_ct_DUMPBIN" >&6; } 4840else 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4842$as_echo "no" >&6; } 4843fi 4844 4845 4846 test -n "$ac_ct_DUMPBIN" && break 4847done 4848 4849 if test "x$ac_ct_DUMPBIN" = x; then 4850 DUMPBIN=":" 4851 else 4852 case $cross_compiling:$ac_tool_warned in 4853yes:) 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4856ac_tool_warned=yes ;; 4857esac 4858 DUMPBIN=$ac_ct_DUMPBIN 4859 fi 4860fi 4861 4862 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4863 *COFF*) 4864 DUMPBIN="$DUMPBIN -symbols" 4865 ;; 4866 *) 4867 DUMPBIN=: 4868 ;; 4869 esac 4870 fi 4871 4872 if test "$DUMPBIN" != ":"; then 4873 NM="$DUMPBIN" 4874 fi 4875fi 4876test -z "$NM" && NM=nm 4877 4878 4879 4880 4881 4882 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4884$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4885if ${lt_cv_nm_interface+:} false; then : 4886 $as_echo_n "(cached) " >&6 4887else 4888 lt_cv_nm_interface="BSD nm" 4889 echo "int some_variable = 0;" > conftest.$ac_ext 4890 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4891 (eval "$ac_compile" 2>conftest.err) 4892 cat conftest.err >&5 4893 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4894 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4895 cat conftest.err >&5 4896 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4897 cat conftest.out >&5 4898 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4899 lt_cv_nm_interface="MS dumpbin" 4900 fi 4901 rm -f conftest* 4902fi 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4904$as_echo "$lt_cv_nm_interface" >&6; } 4905 4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4907$as_echo_n "checking whether ln -s works... " >&6; } 4908LN_S=$as_ln_s 4909if test "$LN_S" = "ln -s"; then 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4911$as_echo "yes" >&6; } 4912else 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4914$as_echo "no, using $LN_S" >&6; } 4915fi 4916 4917# find the maximum length of command line arguments 4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4919$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4920if ${lt_cv_sys_max_cmd_len+:} false; then : 4921 $as_echo_n "(cached) " >&6 4922else 4923 i=0 4924 teststring="ABCD" 4925 4926 case $build_os in 4927 msdosdjgpp*) 4928 # On DJGPP, this test can blow up pretty badly due to problems in libc 4929 # (any single argument exceeding 2000 bytes causes a buffer overrun 4930 # during glob expansion). Even if it were fixed, the result of this 4931 # check would be larger than it should be. 4932 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4933 ;; 4934 4935 gnu*) 4936 # Under GNU Hurd, this test is not required because there is 4937 # no limit to the length of command line arguments. 4938 # Libtool will interpret -1 as no limit whatsoever 4939 lt_cv_sys_max_cmd_len=-1; 4940 ;; 4941 4942 cygwin* | mingw* | cegcc*) 4943 # On Win9x/ME, this test blows up -- it succeeds, but takes 4944 # about 5 minutes as the teststring grows exponentially. 4945 # Worse, since 9x/ME are not pre-emptively multitasking, 4946 # you end up with a "frozen" computer, even though with patience 4947 # the test eventually succeeds (with a max line length of 256k). 4948 # Instead, let's just punt: use the minimum linelength reported by 4949 # all of the supported platforms: 8192 (on NT/2K/XP). 4950 lt_cv_sys_max_cmd_len=8192; 4951 ;; 4952 4953 mint*) 4954 # On MiNT this can take a long time and run out of memory. 4955 lt_cv_sys_max_cmd_len=8192; 4956 ;; 4957 4958 amigaos*) 4959 # On AmigaOS with pdksh, this test takes hours, literally. 4960 # So we just punt and use a minimum line length of 8192. 4961 lt_cv_sys_max_cmd_len=8192; 4962 ;; 4963 4964 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4965 # This has been around since 386BSD, at least. Likely further. 4966 if test -x /sbin/sysctl; then 4967 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4968 elif test -x /usr/sbin/sysctl; then 4969 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4970 else 4971 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4972 fi 4973 # And add a safety zone 4974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4976 ;; 4977 4978 interix*) 4979 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4980 lt_cv_sys_max_cmd_len=196608 4981 ;; 4982 4983 osf*) 4984 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4985 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4986 # nice to cause kernel panics so lets avoid the loop below. 4987 # First set a reasonable default. 4988 lt_cv_sys_max_cmd_len=16384 4989 # 4990 if test -x /sbin/sysconfig; then 4991 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4992 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4993 esac 4994 fi 4995 ;; 4996 sco3.2v5*) 4997 lt_cv_sys_max_cmd_len=102400 4998 ;; 4999 sysv5* | sco5v6* | sysv4.2uw2*) 5000 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5001 if test -n "$kargmax"; then 5002 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5003 else 5004 lt_cv_sys_max_cmd_len=32768 5005 fi 5006 ;; 5007 *) 5008 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5009 if test -n "$lt_cv_sys_max_cmd_len"; then 5010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5012 else 5013 # Make teststring a little bigger before we do anything with it. 5014 # a 1K string should be a reasonable start. 5015 for i in 1 2 3 4 5 6 7 8 ; do 5016 teststring=$teststring$teststring 5017 done 5018 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5019 # If test is not a shell built-in, we'll probably end up computing a 5020 # maximum length that is only half of the actual maximum length, but 5021 # we can't tell. 5022 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5023 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5024 test $i != 17 # 1/2 MB should be enough 5025 do 5026 i=`expr $i + 1` 5027 teststring=$teststring$teststring 5028 done 5029 # Only check the string length outside the loop. 5030 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5031 teststring= 5032 # Add a significant safety factor because C++ compilers can tack on 5033 # massive amounts of additional arguments before passing them to the 5034 # linker. It appears as though 1/2 is a usable value. 5035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5036 fi 5037 ;; 5038 esac 5039 5040fi 5041 5042if test -n $lt_cv_sys_max_cmd_len ; then 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5044$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5045else 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5047$as_echo "none" >&6; } 5048fi 5049max_cmd_len=$lt_cv_sys_max_cmd_len 5050 5051 5052 5053 5054 5055 5056: ${CP="cp -f"} 5057: ${MV="mv -f"} 5058: ${RM="rm -f"} 5059 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5061$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5062# Try some XSI features 5063xsi_shell=no 5064( _lt_dummy="a/b/c" 5065 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5066 = c,a/b,, \ 5067 && eval 'test $(( 1 + 1 )) -eq 2 \ 5068 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5069 && xsi_shell=yes 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5071$as_echo "$xsi_shell" >&6; } 5072 5073 5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5075$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5076lt_shell_append=no 5077( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5078 >/dev/null 2>&1 \ 5079 && lt_shell_append=yes 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5081$as_echo "$lt_shell_append" >&6; } 5082 5083 5084if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5085 lt_unset=unset 5086else 5087 lt_unset=false 5088fi 5089 5090 5091 5092 5093 5094# test EBCDIC or ASCII 5095case `echo X|tr X '\101'` in 5096 A) # ASCII based system 5097 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5098 lt_SP2NL='tr \040 \012' 5099 lt_NL2SP='tr \015\012 \040\040' 5100 ;; 5101 *) # EBCDIC based system 5102 lt_SP2NL='tr \100 \n' 5103 lt_NL2SP='tr \r\n \100\100' 5104 ;; 5105esac 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5116$as_echo_n "checking for $LD option to reload object files... " >&6; } 5117if ${lt_cv_ld_reload_flag+:} false; then : 5118 $as_echo_n "(cached) " >&6 5119else 5120 lt_cv_ld_reload_flag='-r' 5121fi 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5123$as_echo "$lt_cv_ld_reload_flag" >&6; } 5124reload_flag=$lt_cv_ld_reload_flag 5125case $reload_flag in 5126"" | " "*) ;; 5127*) reload_flag=" $reload_flag" ;; 5128esac 5129reload_cmds='$LD$reload_flag -o $output$reload_objs' 5130case $host_os in 5131 darwin*) 5132 if test "$GCC" = yes; then 5133 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5134 else 5135 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5136 fi 5137 ;; 5138esac 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148if test -n "$ac_tool_prefix"; then 5149 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5150set dummy ${ac_tool_prefix}objdump; ac_word=$2 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5152$as_echo_n "checking for $ac_word... " >&6; } 5153if ${ac_cv_prog_OBJDUMP+:} false; then : 5154 $as_echo_n "(cached) " >&6 5155else 5156 if test -n "$OBJDUMP"; then 5157 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5158else 5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5160for as_dir in $PATH 5161do 5162 IFS=$as_save_IFS 5163 test -z "$as_dir" && as_dir=. 5164 for ac_exec_ext in '' $ac_executable_extensions; do 5165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5166 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5168 break 2 5169 fi 5170done 5171 done 5172IFS=$as_save_IFS 5173 5174fi 5175fi 5176OBJDUMP=$ac_cv_prog_OBJDUMP 5177if test -n "$OBJDUMP"; then 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5179$as_echo "$OBJDUMP" >&6; } 5180else 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5182$as_echo "no" >&6; } 5183fi 5184 5185 5186fi 5187if test -z "$ac_cv_prog_OBJDUMP"; then 5188 ac_ct_OBJDUMP=$OBJDUMP 5189 # Extract the first word of "objdump", so it can be a program name with args. 5190set dummy objdump; ac_word=$2 5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5192$as_echo_n "checking for $ac_word... " >&6; } 5193if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5194 $as_echo_n "(cached) " >&6 5195else 5196 if test -n "$ac_ct_OBJDUMP"; then 5197 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5198else 5199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5200for as_dir in $PATH 5201do 5202 IFS=$as_save_IFS 5203 test -z "$as_dir" && as_dir=. 5204 for ac_exec_ext in '' $ac_executable_extensions; do 5205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5206 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5208 break 2 5209 fi 5210done 5211 done 5212IFS=$as_save_IFS 5213 5214fi 5215fi 5216ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5217if test -n "$ac_ct_OBJDUMP"; then 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5219$as_echo "$ac_ct_OBJDUMP" >&6; } 5220else 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5222$as_echo "no" >&6; } 5223fi 5224 5225 if test "x$ac_ct_OBJDUMP" = x; then 5226 OBJDUMP="false" 5227 else 5228 case $cross_compiling:$ac_tool_warned in 5229yes:) 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5232ac_tool_warned=yes ;; 5233esac 5234 OBJDUMP=$ac_ct_OBJDUMP 5235 fi 5236else 5237 OBJDUMP="$ac_cv_prog_OBJDUMP" 5238fi 5239 5240test -z "$OBJDUMP" && OBJDUMP=objdump 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5251$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5252if ${lt_cv_deplibs_check_method+:} false; then : 5253 $as_echo_n "(cached) " >&6 5254else 5255 lt_cv_file_magic_cmd='$MAGIC_CMD' 5256lt_cv_file_magic_test_file= 5257lt_cv_deplibs_check_method='unknown' 5258# Need to set the preceding variable on all platforms that support 5259# interlibrary dependencies. 5260# 'none' -- dependencies not supported. 5261# `unknown' -- same as none, but documents that we really don't know. 5262# 'pass_all' -- all dependencies passed with no checks. 5263# 'test_compile' -- check by making test program. 5264# 'file_magic [[regex]]' -- check by looking for files in library path 5265# which responds to the $file_magic_cmd with a given extended regex. 5266# If you have `file' or equivalent on your system and you're not sure 5267# whether `pass_all' will *always* work, you probably want this one. 5268 5269case $host_os in 5270aix[4-9]*) 5271 lt_cv_deplibs_check_method=pass_all 5272 ;; 5273 5274beos*) 5275 lt_cv_deplibs_check_method=pass_all 5276 ;; 5277 5278bsdi[45]*) 5279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5280 lt_cv_file_magic_cmd='/usr/bin/file -L' 5281 lt_cv_file_magic_test_file=/shlib/libc.so 5282 ;; 5283 5284cygwin*) 5285 # func_win32_libid is a shell function defined in ltmain.sh 5286 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5287 lt_cv_file_magic_cmd='func_win32_libid' 5288 ;; 5289 5290mingw* | pw32*) 5291 # Base MSYS/MinGW do not provide the 'file' command needed by 5292 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5293 # unless we find 'file', for example because we are cross-compiling. 5294 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5295 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5296 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5297 lt_cv_file_magic_cmd='func_win32_libid' 5298 else 5299 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5300 lt_cv_file_magic_cmd='$OBJDUMP -f' 5301 fi 5302 ;; 5303 5304cegcc*) 5305 # use the weaker test based on 'objdump'. See mingw*. 5306 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5307 lt_cv_file_magic_cmd='$OBJDUMP -f' 5308 ;; 5309 5310darwin* | rhapsody*) 5311 lt_cv_deplibs_check_method=pass_all 5312 ;; 5313 5314freebsd* | dragonfly*) 5315 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5316 case $host_cpu in 5317 i*86 ) 5318 # Not sure whether the presence of OpenBSD here was a mistake. 5319 # Let's accept both of them until this is cleared up. 5320 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5321 lt_cv_file_magic_cmd=/usr/bin/file 5322 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5323 ;; 5324 esac 5325 else 5326 lt_cv_deplibs_check_method=pass_all 5327 fi 5328 ;; 5329 5330gnu*) 5331 lt_cv_deplibs_check_method=pass_all 5332 ;; 5333 5334haiku*) 5335 lt_cv_deplibs_check_method=pass_all 5336 ;; 5337 5338hpux10.20* | hpux11*) 5339 lt_cv_file_magic_cmd=/usr/bin/file 5340 case $host_cpu in 5341 ia64*) 5342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5343 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5344 ;; 5345 hppa*64*) 5346 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]' 5347 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5348 ;; 5349 *) 5350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5351 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5352 ;; 5353 esac 5354 ;; 5355 5356interix[3-9]*) 5357 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5359 ;; 5360 5361irix5* | irix6* | nonstopux*) 5362 case $LD in 5363 *-32|*"-32 ") libmagic=32-bit;; 5364 *-n32|*"-n32 ") libmagic=N32;; 5365 *-64|*"-64 ") libmagic=64-bit;; 5366 *) libmagic=never-match;; 5367 esac 5368 lt_cv_deplibs_check_method=pass_all 5369 ;; 5370 5371# This must be Linux ELF. 5372linux* | k*bsd*-gnu | kopensolaris*-gnu) 5373 lt_cv_deplibs_check_method=pass_all 5374 ;; 5375 5376netbsd*) 5377 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5379 else 5380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5381 fi 5382 ;; 5383 5384newos6*) 5385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5386 lt_cv_file_magic_cmd=/usr/bin/file 5387 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5388 ;; 5389 5390*nto* | *qnx*) 5391 lt_cv_deplibs_check_method=pass_all 5392 ;; 5393 5394openbsd*) 5395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5397 else 5398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5399 fi 5400 ;; 5401 5402osf3* | osf4* | osf5*) 5403 lt_cv_deplibs_check_method=pass_all 5404 ;; 5405 5406rdos*) 5407 lt_cv_deplibs_check_method=pass_all 5408 ;; 5409 5410solaris*) 5411 lt_cv_deplibs_check_method=pass_all 5412 ;; 5413 5414sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5415 lt_cv_deplibs_check_method=pass_all 5416 ;; 5417 5418sysv4 | sysv4.3*) 5419 case $host_vendor in 5420 motorola) 5421 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]' 5422 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5423 ;; 5424 ncr) 5425 lt_cv_deplibs_check_method=pass_all 5426 ;; 5427 sequent) 5428 lt_cv_file_magic_cmd='/bin/file' 5429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5430 ;; 5431 sni) 5432 lt_cv_file_magic_cmd='/bin/file' 5433 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5434 lt_cv_file_magic_test_file=/lib/libc.so 5435 ;; 5436 siemens) 5437 lt_cv_deplibs_check_method=pass_all 5438 ;; 5439 pc) 5440 lt_cv_deplibs_check_method=pass_all 5441 ;; 5442 esac 5443 ;; 5444 5445tpf*) 5446 lt_cv_deplibs_check_method=pass_all 5447 ;; 5448esac 5449 5450fi 5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5452$as_echo "$lt_cv_deplibs_check_method" >&6; } 5453file_magic_cmd=$lt_cv_file_magic_cmd 5454deplibs_check_method=$lt_cv_deplibs_check_method 5455test -z "$deplibs_check_method" && deplibs_check_method=unknown 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468plugin_option= 5469plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" 5470for plugin in $plugin_names; do 5471 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` 5472 if test x$plugin_so = x$plugin; then 5473 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` 5474 fi 5475 if test x$plugin_so != x$plugin; then 5476 plugin_option="--plugin $plugin_so" 5477 break 5478 fi 5479done 5480 5481if test -n "$ac_tool_prefix"; then 5482 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5483set dummy ${ac_tool_prefix}ar; ac_word=$2 5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5485$as_echo_n "checking for $ac_word... " >&6; } 5486if ${ac_cv_prog_AR+:} false; then : 5487 $as_echo_n "(cached) " >&6 5488else 5489 if test -n "$AR"; then 5490 ac_cv_prog_AR="$AR" # Let the user override the test. 5491else 5492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5493for as_dir in $PATH 5494do 5495 IFS=$as_save_IFS 5496 test -z "$as_dir" && as_dir=. 5497 for ac_exec_ext in '' $ac_executable_extensions; do 5498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5499 ac_cv_prog_AR="${ac_tool_prefix}ar" 5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5501 break 2 5502 fi 5503done 5504 done 5505IFS=$as_save_IFS 5506 5507fi 5508fi 5509AR=$ac_cv_prog_AR 5510if test -n "$AR"; then 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5512$as_echo "$AR" >&6; } 5513else 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5515$as_echo "no" >&6; } 5516fi 5517 5518 5519fi 5520if test -z "$ac_cv_prog_AR"; then 5521 ac_ct_AR=$AR 5522 # Extract the first word of "ar", so it can be a program name with args. 5523set dummy ar; ac_word=$2 5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5525$as_echo_n "checking for $ac_word... " >&6; } 5526if ${ac_cv_prog_ac_ct_AR+:} false; then : 5527 $as_echo_n "(cached) " >&6 5528else 5529 if test -n "$ac_ct_AR"; then 5530 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5531else 5532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5533for as_dir in $PATH 5534do 5535 IFS=$as_save_IFS 5536 test -z "$as_dir" && as_dir=. 5537 for ac_exec_ext in '' $ac_executable_extensions; do 5538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5539 ac_cv_prog_ac_ct_AR="ar" 5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5541 break 2 5542 fi 5543done 5544 done 5545IFS=$as_save_IFS 5546 5547fi 5548fi 5549ac_ct_AR=$ac_cv_prog_ac_ct_AR 5550if test -n "$ac_ct_AR"; then 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5552$as_echo "$ac_ct_AR" >&6; } 5553else 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5555$as_echo "no" >&6; } 5556fi 5557 5558 if test "x$ac_ct_AR" = x; then 5559 AR="false" 5560 else 5561 case $cross_compiling:$ac_tool_warned in 5562yes:) 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5565ac_tool_warned=yes ;; 5566esac 5567 AR=$ac_ct_AR 5568 fi 5569else 5570 AR="$ac_cv_prog_AR" 5571fi 5572 5573test -z "$AR" && AR=ar 5574if test -n "$plugin_option"; then 5575 if $AR --help 2>&1 | grep -q "\--plugin"; then 5576 touch conftest.c 5577 $AR $plugin_option rc conftest.a conftest.c 5578 if test "$?" != 0; then 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 5580$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 5581 else 5582 AR="$AR $plugin_option" 5583 fi 5584 rm -f conftest.* 5585 fi 5586fi 5587test -z "$AR_FLAGS" && AR_FLAGS=cru 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599if test -n "$ac_tool_prefix"; then 5600 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5601set dummy ${ac_tool_prefix}strip; ac_word=$2 5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5603$as_echo_n "checking for $ac_word... " >&6; } 5604if ${ac_cv_prog_STRIP+:} false; then : 5605 $as_echo_n "(cached) " >&6 5606else 5607 if test -n "$STRIP"; then 5608 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5609else 5610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5611for as_dir in $PATH 5612do 5613 IFS=$as_save_IFS 5614 test -z "$as_dir" && as_dir=. 5615 for ac_exec_ext in '' $ac_executable_extensions; do 5616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5617 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5619 break 2 5620 fi 5621done 5622 done 5623IFS=$as_save_IFS 5624 5625fi 5626fi 5627STRIP=$ac_cv_prog_STRIP 5628if test -n "$STRIP"; then 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5630$as_echo "$STRIP" >&6; } 5631else 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5633$as_echo "no" >&6; } 5634fi 5635 5636 5637fi 5638if test -z "$ac_cv_prog_STRIP"; then 5639 ac_ct_STRIP=$STRIP 5640 # Extract the first word of "strip", so it can be a program name with args. 5641set dummy strip; ac_word=$2 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5643$as_echo_n "checking for $ac_word... " >&6; } 5644if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646else 5647 if test -n "$ac_ct_STRIP"; then 5648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5649else 5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5651for as_dir in $PATH 5652do 5653 IFS=$as_save_IFS 5654 test -z "$as_dir" && as_dir=. 5655 for ac_exec_ext in '' $ac_executable_extensions; do 5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5657 ac_cv_prog_ac_ct_STRIP="strip" 5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5659 break 2 5660 fi 5661done 5662 done 5663IFS=$as_save_IFS 5664 5665fi 5666fi 5667ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5668if test -n "$ac_ct_STRIP"; then 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5670$as_echo "$ac_ct_STRIP" >&6; } 5671else 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5673$as_echo "no" >&6; } 5674fi 5675 5676 if test "x$ac_ct_STRIP" = x; then 5677 STRIP=":" 5678 else 5679 case $cross_compiling:$ac_tool_warned in 5680yes:) 5681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5683ac_tool_warned=yes ;; 5684esac 5685 STRIP=$ac_ct_STRIP 5686 fi 5687else 5688 STRIP="$ac_cv_prog_STRIP" 5689fi 5690 5691test -z "$STRIP" && STRIP=: 5692 5693 5694 5695 5696 5697 5698if test -n "$ac_tool_prefix"; then 5699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5700set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5702$as_echo_n "checking for $ac_word... " >&6; } 5703if ${ac_cv_prog_RANLIB+:} false; then : 5704 $as_echo_n "(cached) " >&6 5705else 5706 if test -n "$RANLIB"; then 5707 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5708else 5709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5710for as_dir in $PATH 5711do 5712 IFS=$as_save_IFS 5713 test -z "$as_dir" && as_dir=. 5714 for ac_exec_ext in '' $ac_executable_extensions; do 5715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5716 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5718 break 2 5719 fi 5720done 5721 done 5722IFS=$as_save_IFS 5723 5724fi 5725fi 5726RANLIB=$ac_cv_prog_RANLIB 5727if test -n "$RANLIB"; then 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5729$as_echo "$RANLIB" >&6; } 5730else 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5732$as_echo "no" >&6; } 5733fi 5734 5735 5736fi 5737if test -z "$ac_cv_prog_RANLIB"; then 5738 ac_ct_RANLIB=$RANLIB 5739 # Extract the first word of "ranlib", so it can be a program name with args. 5740set dummy ranlib; ac_word=$2 5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5742$as_echo_n "checking for $ac_word... " >&6; } 5743if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5744 $as_echo_n "(cached) " >&6 5745else 5746 if test -n "$ac_ct_RANLIB"; then 5747 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5748else 5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5750for as_dir in $PATH 5751do 5752 IFS=$as_save_IFS 5753 test -z "$as_dir" && as_dir=. 5754 for ac_exec_ext in '' $ac_executable_extensions; do 5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5756 ac_cv_prog_ac_ct_RANLIB="ranlib" 5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5758 break 2 5759 fi 5760done 5761 done 5762IFS=$as_save_IFS 5763 5764fi 5765fi 5766ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5767if test -n "$ac_ct_RANLIB"; then 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5769$as_echo "$ac_ct_RANLIB" >&6; } 5770else 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5772$as_echo "no" >&6; } 5773fi 5774 5775 if test "x$ac_ct_RANLIB" = x; then 5776 RANLIB=":" 5777 else 5778 case $cross_compiling:$ac_tool_warned in 5779yes:) 5780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5782ac_tool_warned=yes ;; 5783esac 5784 RANLIB=$ac_ct_RANLIB 5785 fi 5786else 5787 RANLIB="$ac_cv_prog_RANLIB" 5788fi 5789 5790test -z "$RANLIB" && RANLIB=: 5791if test -n "$plugin_option" && test "$RANLIB" != ":"; then 5792 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then 5793 RANLIB="$RANLIB $plugin_option" 5794 fi 5795fi 5796 5797 5798 5799 5800 5801 5802# Determine commands to create old-style static archives. 5803old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5804old_postinstall_cmds='chmod 644 $oldlib' 5805old_postuninstall_cmds= 5806 5807if test -n "$RANLIB"; then 5808 case $host_os in 5809 openbsd*) 5810 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5811 ;; 5812 *) 5813 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5814 ;; 5815 esac 5816 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5817fi 5818 5819case $host_os in 5820 darwin*) 5821 lock_old_archive_extraction=yes ;; 5822 *) 5823 lock_old_archive_extraction=no ;; 5824esac 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864# If no C compiler was specified, use CC. 5865LTCC=${LTCC-"$CC"} 5866 5867# If no C compiler flags were specified, use CFLAGS. 5868LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5869 5870# Allow CC to be a program name with arguments. 5871compiler=$CC 5872 5873 5874# Check for command to grab the raw symbol name followed by C symbol from nm. 5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5876$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5877if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5878 $as_echo_n "(cached) " >&6 5879else 5880 5881# These are sane defaults that work on at least a few old systems. 5882# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5883 5884# Character class describing NM global symbol codes. 5885symcode='[BCDEGRST]' 5886 5887# Regexp to match symbols that can be accessed directly from C. 5888sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5889 5890# Define system-specific variables. 5891case $host_os in 5892aix*) 5893 symcode='[BCDT]' 5894 ;; 5895cygwin* | mingw* | pw32* | cegcc*) 5896 symcode='[ABCDGISTW]' 5897 ;; 5898hpux*) 5899 if test "$host_cpu" = ia64; then 5900 symcode='[ABCDEGRST]' 5901 fi 5902 ;; 5903irix* | nonstopux*) 5904 symcode='[BCDEGRST]' 5905 ;; 5906osf*) 5907 symcode='[BCDEGQRST]' 5908 ;; 5909solaris*) 5910 symcode='[BCDRT]' 5911 ;; 5912sco3.2v5*) 5913 symcode='[DT]' 5914 ;; 5915sysv4.2uw2*) 5916 symcode='[DT]' 5917 ;; 5918sysv5* | sco5v6* | unixware* | OpenUNIX*) 5919 symcode='[ABDT]' 5920 ;; 5921sysv4) 5922 symcode='[DFNSTU]' 5923 ;; 5924esac 5925 5926# If we're using GNU nm, then use its standard symbol codes. 5927case `$NM -V 2>&1` in 5928*GNU* | *'with BFD'*) 5929 symcode='[ABCDGIRSTW]' ;; 5930esac 5931 5932# Transform an extracted symbol line into a proper C declaration. 5933# Some systems (esp. on ia64) link data and code symbols differently, 5934# so use this general approach. 5935lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5936 5937# Transform an extracted symbol line into symbol name and symbol address 5938lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5939lt_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'" 5940 5941# Handle CRLF in mingw tool chain 5942opt_cr= 5943case $build_os in 5944mingw*) 5945 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5946 ;; 5947esac 5948 5949# Try without a prefix underscore, then with it. 5950for ac_symprfx in "" "_"; do 5951 5952 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5953 symxfrm="\\1 $ac_symprfx\\2 \\2" 5954 5955 # Write the raw and C identifiers. 5956 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5957 # Fake it for dumpbin and say T for any non-static function 5958 # and D for any global variable. 5959 # Also find C++ and __fastcall symbols from MSVC++, 5960 # which start with @ or ?. 5961 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5962" {last_section=section; section=\$ 3};"\ 5963" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5964" \$ 0!~/External *\|/{next};"\ 5965" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5966" {if(hide[section]) next};"\ 5967" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5968" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5969" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5970" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5971" ' prfx=^$ac_symprfx" 5972 else 5973 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5974 fi 5975 5976 # Check to see that the pipe works correctly. 5977 pipe_works=no 5978 5979 rm -f conftest* 5980 cat > conftest.$ac_ext <<_LT_EOF 5981#ifdef __cplusplus 5982extern "C" { 5983#endif 5984char nm_test_var; 5985void nm_test_func(void); 5986void nm_test_func(void){} 5987#ifdef __cplusplus 5988} 5989#endif 5990int main(){nm_test_var='a';nm_test_func();return(0);} 5991_LT_EOF 5992 5993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5994 (eval $ac_compile) 2>&5 5995 ac_status=$? 5996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5997 test $ac_status = 0; }; then 5998 # Now try to grab the symbols. 5999 nlist=conftest.nm 6000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6001 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6002 ac_status=$? 6003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6004 test $ac_status = 0; } && test -s "$nlist"; then 6005 # Try sorting and uniquifying the output. 6006 if sort "$nlist" | uniq > "$nlist"T; then 6007 mv -f "$nlist"T "$nlist" 6008 else 6009 rm -f "$nlist"T 6010 fi 6011 6012 # Make sure that we snagged all the symbols we need. 6013 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6014 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6015 cat <<_LT_EOF > conftest.$ac_ext 6016#ifdef __cplusplus 6017extern "C" { 6018#endif 6019 6020_LT_EOF 6021 # Now generate the symbol file. 6022 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6023 6024 cat <<_LT_EOF >> conftest.$ac_ext 6025 6026/* The mapping between symbol names and symbols. */ 6027const struct { 6028 const char *name; 6029 void *address; 6030} 6031lt__PROGRAM__LTX_preloaded_symbols[] = 6032{ 6033 { "@PROGRAM@", (void *) 0 }, 6034_LT_EOF 6035 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6036 cat <<\_LT_EOF >> conftest.$ac_ext 6037 {0, (void *) 0} 6038}; 6039 6040/* This works around a problem in FreeBSD linker */ 6041#ifdef FREEBSD_WORKAROUND 6042static const void *lt_preloaded_setup() { 6043 return lt__PROGRAM__LTX_preloaded_symbols; 6044} 6045#endif 6046 6047#ifdef __cplusplus 6048} 6049#endif 6050_LT_EOF 6051 # Now try linking the two files. 6052 mv conftest.$ac_objext conftstm.$ac_objext 6053 lt_save_LIBS="$LIBS" 6054 lt_save_CFLAGS="$CFLAGS" 6055 LIBS="conftstm.$ac_objext" 6056 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6058 (eval $ac_link) 2>&5 6059 ac_status=$? 6060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6061 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6062 pipe_works=yes 6063 fi 6064 LIBS="$lt_save_LIBS" 6065 CFLAGS="$lt_save_CFLAGS" 6066 else 6067 echo "cannot find nm_test_func in $nlist" >&5 6068 fi 6069 else 6070 echo "cannot find nm_test_var in $nlist" >&5 6071 fi 6072 else 6073 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6074 fi 6075 else 6076 echo "$progname: failed program was:" >&5 6077 cat conftest.$ac_ext >&5 6078 fi 6079 rm -rf conftest* conftst* 6080 6081 # Do not use the global_symbol_pipe unless it works. 6082 if test "$pipe_works" = yes; then 6083 break 6084 else 6085 lt_cv_sys_global_symbol_pipe= 6086 fi 6087done 6088 6089fi 6090 6091if test -z "$lt_cv_sys_global_symbol_pipe"; then 6092 lt_cv_sys_global_symbol_to_cdecl= 6093fi 6094if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6096$as_echo "failed" >&6; } 6097else 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6099$as_echo "ok" >&6; } 6100fi 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124# Check whether --enable-libtool-lock was given. 6125if test "${enable_libtool_lock+set}" = set; then : 6126 enableval=$enable_libtool_lock; 6127fi 6128 6129test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6130 6131# Some flags need to be propagated to the compiler or linker for good 6132# libtool support. 6133case $host in 6134ia64-*-hpux*) 6135 # Find out which ABI we are using. 6136 echo 'int i;' > conftest.$ac_ext 6137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6138 (eval $ac_compile) 2>&5 6139 ac_status=$? 6140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6141 test $ac_status = 0; }; then 6142 case `/usr/bin/file conftest.$ac_objext` in 6143 *ELF-32*) 6144 HPUX_IA64_MODE="32" 6145 ;; 6146 *ELF-64*) 6147 HPUX_IA64_MODE="64" 6148 ;; 6149 esac 6150 fi 6151 rm -rf conftest* 6152 ;; 6153*-*-irix6*) 6154 # Find out which ABI we are using. 6155 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6157 (eval $ac_compile) 2>&5 6158 ac_status=$? 6159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6160 test $ac_status = 0; }; then 6161 if test "$lt_cv_prog_gnu_ld" = yes; then 6162 case `/usr/bin/file conftest.$ac_objext` in 6163 *32-bit*) 6164 LD="${LD-ld} -melf32bsmip" 6165 ;; 6166 *N32*) 6167 LD="${LD-ld} -melf32bmipn32" 6168 ;; 6169 *64-bit*) 6170 LD="${LD-ld} -melf64bmip" 6171 ;; 6172 esac 6173 else 6174 case `/usr/bin/file conftest.$ac_objext` in 6175 *32-bit*) 6176 LD="${LD-ld} -32" 6177 ;; 6178 *N32*) 6179 LD="${LD-ld} -n32" 6180 ;; 6181 *64-bit*) 6182 LD="${LD-ld} -64" 6183 ;; 6184 esac 6185 fi 6186 fi 6187 rm -rf conftest* 6188 ;; 6189 6190x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6191s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6192 # Find out which ABI we are using. 6193 echo 'int i;' > conftest.$ac_ext 6194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6195 (eval $ac_compile) 2>&5 6196 ac_status=$? 6197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6198 test $ac_status = 0; }; then 6199 case `/usr/bin/file conftest.o` in 6200 *32-bit*) 6201 case $host in 6202 x86_64-*kfreebsd*-gnu) 6203 LD="${LD-ld} -m elf_i386_fbsd" 6204 ;; 6205 x86_64-*linux*) 6206 case `/usr/bin/file conftest.o` in 6207 *x86-64*) 6208 LD="${LD-ld} -m elf32_x86_64" 6209 ;; 6210 *) 6211 LD="${LD-ld} -m elf_i386" 6212 ;; 6213 esac 6214 ;; 6215 powerpc64le-*linux*) 6216 LD="${LD-ld} -m elf32lppclinux" 6217 ;; 6218 powerpc64-*linux*) 6219 LD="${LD-ld} -m elf32ppclinux" 6220 ;; 6221 s390x-*linux*) 6222 LD="${LD-ld} -m elf_s390" 6223 ;; 6224 sparc64-*linux*) 6225 LD="${LD-ld} -m elf32_sparc" 6226 ;; 6227 esac 6228 ;; 6229 *64-bit*) 6230 case $host in 6231 x86_64-*kfreebsd*-gnu) 6232 LD="${LD-ld} -m elf_x86_64_fbsd" 6233 ;; 6234 x86_64-*linux*) 6235 LD="${LD-ld} -m elf_x86_64" 6236 ;; 6237 powerpcle-*linux*) 6238 LD="${LD-ld} -m elf64lppc" 6239 ;; 6240 powerpc-*linux*) 6241 LD="${LD-ld} -m elf64ppc" 6242 ;; 6243 s390*-*linux*|s390*-*tpf*) 6244 LD="${LD-ld} -m elf64_s390" 6245 ;; 6246 sparc*-*linux*) 6247 LD="${LD-ld} -m elf64_sparc" 6248 ;; 6249 esac 6250 ;; 6251 esac 6252 fi 6253 rm -rf conftest* 6254 ;; 6255 6256*-*-sco3.2v5*) 6257 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6258 SAVE_CFLAGS="$CFLAGS" 6259 CFLAGS="$CFLAGS -belf" 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6261$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6262if ${lt_cv_cc_needs_belf+:} false; then : 6263 $as_echo_n "(cached) " >&6 6264else 6265 ac_ext=c 6266ac_cpp='$CPP $CPPFLAGS' 6267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6269ac_compiler_gnu=$ac_cv_c_compiler_gnu 6270 6271 if test x$gcc_no_link = xyes; then 6272 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6273fi 6274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6275/* end confdefs.h. */ 6276 6277int 6278main () 6279{ 6280 6281 ; 6282 return 0; 6283} 6284_ACEOF 6285if ac_fn_c_try_link "$LINENO"; then : 6286 lt_cv_cc_needs_belf=yes 6287else 6288 lt_cv_cc_needs_belf=no 6289fi 6290rm -f core conftest.err conftest.$ac_objext \ 6291 conftest$ac_exeext conftest.$ac_ext 6292 ac_ext=c 6293ac_cpp='$CPP $CPPFLAGS' 6294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6296ac_compiler_gnu=$ac_cv_c_compiler_gnu 6297 6298fi 6299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6300$as_echo "$lt_cv_cc_needs_belf" >&6; } 6301 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6302 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6303 CFLAGS="$SAVE_CFLAGS" 6304 fi 6305 ;; 6306sparc*-*solaris*) 6307 # Find out which ABI we are using. 6308 echo 'int i;' > conftest.$ac_ext 6309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6310 (eval $ac_compile) 2>&5 6311 ac_status=$? 6312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6313 test $ac_status = 0; }; then 6314 case `/usr/bin/file conftest.o` in 6315 *64-bit*) 6316 case $lt_cv_prog_gnu_ld in 6317 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6318 *) 6319 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6320 LD="${LD-ld} -64" 6321 fi 6322 ;; 6323 esac 6324 ;; 6325 esac 6326 fi 6327 rm -rf conftest* 6328 ;; 6329esac 6330 6331need_locks="$enable_libtool_lock" 6332 6333 6334 case $host_os in 6335 rhapsody* | darwin*) 6336 if test -n "$ac_tool_prefix"; then 6337 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6338set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340$as_echo_n "checking for $ac_word... " >&6; } 6341if ${ac_cv_prog_DSYMUTIL+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343else 6344 if test -n "$DSYMUTIL"; then 6345 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6346else 6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348for as_dir in $PATH 6349do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6354 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358done 6359 done 6360IFS=$as_save_IFS 6361 6362fi 6363fi 6364DSYMUTIL=$ac_cv_prog_DSYMUTIL 6365if test -n "$DSYMUTIL"; then 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6367$as_echo "$DSYMUTIL" >&6; } 6368else 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6370$as_echo "no" >&6; } 6371fi 6372 6373 6374fi 6375if test -z "$ac_cv_prog_DSYMUTIL"; then 6376 ac_ct_DSYMUTIL=$DSYMUTIL 6377 # Extract the first word of "dsymutil", so it can be a program name with args. 6378set dummy dsymutil; ac_word=$2 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6380$as_echo_n "checking for $ac_word... " >&6; } 6381if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 if test -n "$ac_ct_DSYMUTIL"; then 6385 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6386else 6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6388for as_dir in $PATH 6389do 6390 IFS=$as_save_IFS 6391 test -z "$as_dir" && as_dir=. 6392 for ac_exec_ext in '' $ac_executable_extensions; do 6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6394 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6396 break 2 6397 fi 6398done 6399 done 6400IFS=$as_save_IFS 6401 6402fi 6403fi 6404ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6405if test -n "$ac_ct_DSYMUTIL"; then 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6407$as_echo "$ac_ct_DSYMUTIL" >&6; } 6408else 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6410$as_echo "no" >&6; } 6411fi 6412 6413 if test "x$ac_ct_DSYMUTIL" = x; then 6414 DSYMUTIL=":" 6415 else 6416 case $cross_compiling:$ac_tool_warned in 6417yes:) 6418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6420ac_tool_warned=yes ;; 6421esac 6422 DSYMUTIL=$ac_ct_DSYMUTIL 6423 fi 6424else 6425 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6426fi 6427 6428 if test -n "$ac_tool_prefix"; then 6429 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6430set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6432$as_echo_n "checking for $ac_word... " >&6; } 6433if ${ac_cv_prog_NMEDIT+:} false; then : 6434 $as_echo_n "(cached) " >&6 6435else 6436 if test -n "$NMEDIT"; then 6437 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6438else 6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6440for as_dir in $PATH 6441do 6442 IFS=$as_save_IFS 6443 test -z "$as_dir" && as_dir=. 6444 for ac_exec_ext in '' $ac_executable_extensions; do 6445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6446 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6448 break 2 6449 fi 6450done 6451 done 6452IFS=$as_save_IFS 6453 6454fi 6455fi 6456NMEDIT=$ac_cv_prog_NMEDIT 6457if test -n "$NMEDIT"; then 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6459$as_echo "$NMEDIT" >&6; } 6460else 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6462$as_echo "no" >&6; } 6463fi 6464 6465 6466fi 6467if test -z "$ac_cv_prog_NMEDIT"; then 6468 ac_ct_NMEDIT=$NMEDIT 6469 # Extract the first word of "nmedit", so it can be a program name with args. 6470set dummy nmedit; ac_word=$2 6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6472$as_echo_n "checking for $ac_word... " >&6; } 6473if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6474 $as_echo_n "(cached) " >&6 6475else 6476 if test -n "$ac_ct_NMEDIT"; then 6477 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6478else 6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480for as_dir in $PATH 6481do 6482 IFS=$as_save_IFS 6483 test -z "$as_dir" && as_dir=. 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6486 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490done 6491 done 6492IFS=$as_save_IFS 6493 6494fi 6495fi 6496ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6497if test -n "$ac_ct_NMEDIT"; then 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6499$as_echo "$ac_ct_NMEDIT" >&6; } 6500else 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6502$as_echo "no" >&6; } 6503fi 6504 6505 if test "x$ac_ct_NMEDIT" = x; then 6506 NMEDIT=":" 6507 else 6508 case $cross_compiling:$ac_tool_warned in 6509yes:) 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6512ac_tool_warned=yes ;; 6513esac 6514 NMEDIT=$ac_ct_NMEDIT 6515 fi 6516else 6517 NMEDIT="$ac_cv_prog_NMEDIT" 6518fi 6519 6520 if test -n "$ac_tool_prefix"; then 6521 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6522set dummy ${ac_tool_prefix}lipo; ac_word=$2 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6524$as_echo_n "checking for $ac_word... " >&6; } 6525if ${ac_cv_prog_LIPO+:} false; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 if test -n "$LIPO"; then 6529 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6530else 6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6532for as_dir in $PATH 6533do 6534 IFS=$as_save_IFS 6535 test -z "$as_dir" && as_dir=. 6536 for ac_exec_ext in '' $ac_executable_extensions; do 6537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6538 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6540 break 2 6541 fi 6542done 6543 done 6544IFS=$as_save_IFS 6545 6546fi 6547fi 6548LIPO=$ac_cv_prog_LIPO 6549if test -n "$LIPO"; then 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6551$as_echo "$LIPO" >&6; } 6552else 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6554$as_echo "no" >&6; } 6555fi 6556 6557 6558fi 6559if test -z "$ac_cv_prog_LIPO"; then 6560 ac_ct_LIPO=$LIPO 6561 # Extract the first word of "lipo", so it can be a program name with args. 6562set dummy lipo; ac_word=$2 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6564$as_echo_n "checking for $ac_word... " >&6; } 6565if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 if test -n "$ac_ct_LIPO"; then 6569 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6570else 6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572for as_dir in $PATH 6573do 6574 IFS=$as_save_IFS 6575 test -z "$as_dir" && as_dir=. 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6578 ac_cv_prog_ac_ct_LIPO="lipo" 6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582done 6583 done 6584IFS=$as_save_IFS 6585 6586fi 6587fi 6588ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6589if test -n "$ac_ct_LIPO"; then 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6591$as_echo "$ac_ct_LIPO" >&6; } 6592else 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594$as_echo "no" >&6; } 6595fi 6596 6597 if test "x$ac_ct_LIPO" = x; then 6598 LIPO=":" 6599 else 6600 case $cross_compiling:$ac_tool_warned in 6601yes:) 6602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6604ac_tool_warned=yes ;; 6605esac 6606 LIPO=$ac_ct_LIPO 6607 fi 6608else 6609 LIPO="$ac_cv_prog_LIPO" 6610fi 6611 6612 if test -n "$ac_tool_prefix"; then 6613 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6614set dummy ${ac_tool_prefix}otool; ac_word=$2 6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6616$as_echo_n "checking for $ac_word... " >&6; } 6617if ${ac_cv_prog_OTOOL+:} false; then : 6618 $as_echo_n "(cached) " >&6 6619else 6620 if test -n "$OTOOL"; then 6621 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6622else 6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6624for as_dir in $PATH 6625do 6626 IFS=$as_save_IFS 6627 test -z "$as_dir" && as_dir=. 6628 for ac_exec_ext in '' $ac_executable_extensions; do 6629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6630 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6632 break 2 6633 fi 6634done 6635 done 6636IFS=$as_save_IFS 6637 6638fi 6639fi 6640OTOOL=$ac_cv_prog_OTOOL 6641if test -n "$OTOOL"; then 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6643$as_echo "$OTOOL" >&6; } 6644else 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6646$as_echo "no" >&6; } 6647fi 6648 6649 6650fi 6651if test -z "$ac_cv_prog_OTOOL"; then 6652 ac_ct_OTOOL=$OTOOL 6653 # Extract the first word of "otool", so it can be a program name with args. 6654set dummy otool; ac_word=$2 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6656$as_echo_n "checking for $ac_word... " >&6; } 6657if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6658 $as_echo_n "(cached) " >&6 6659else 6660 if test -n "$ac_ct_OTOOL"; then 6661 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6662else 6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6664for as_dir in $PATH 6665do 6666 IFS=$as_save_IFS 6667 test -z "$as_dir" && as_dir=. 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6670 ac_cv_prog_ac_ct_OTOOL="otool" 6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674done 6675 done 6676IFS=$as_save_IFS 6677 6678fi 6679fi 6680ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6681if test -n "$ac_ct_OTOOL"; then 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6683$as_echo "$ac_ct_OTOOL" >&6; } 6684else 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686$as_echo "no" >&6; } 6687fi 6688 6689 if test "x$ac_ct_OTOOL" = x; then 6690 OTOOL=":" 6691 else 6692 case $cross_compiling:$ac_tool_warned in 6693yes:) 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6696ac_tool_warned=yes ;; 6697esac 6698 OTOOL=$ac_ct_OTOOL 6699 fi 6700else 6701 OTOOL="$ac_cv_prog_OTOOL" 6702fi 6703 6704 if test -n "$ac_tool_prefix"; then 6705 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6706set dummy ${ac_tool_prefix}otool64; ac_word=$2 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6708$as_echo_n "checking for $ac_word... " >&6; } 6709if ${ac_cv_prog_OTOOL64+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711else 6712 if test -n "$OTOOL64"; then 6713 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6714else 6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6716for as_dir in $PATH 6717do 6718 IFS=$as_save_IFS 6719 test -z "$as_dir" && as_dir=. 6720 for ac_exec_ext in '' $ac_executable_extensions; do 6721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6722 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6724 break 2 6725 fi 6726done 6727 done 6728IFS=$as_save_IFS 6729 6730fi 6731fi 6732OTOOL64=$ac_cv_prog_OTOOL64 6733if test -n "$OTOOL64"; then 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6735$as_echo "$OTOOL64" >&6; } 6736else 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6738$as_echo "no" >&6; } 6739fi 6740 6741 6742fi 6743if test -z "$ac_cv_prog_OTOOL64"; then 6744 ac_ct_OTOOL64=$OTOOL64 6745 # Extract the first word of "otool64", so it can be a program name with args. 6746set dummy otool64; ac_word=$2 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6748$as_echo_n "checking for $ac_word... " >&6; } 6749if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 if test -n "$ac_ct_OTOOL64"; then 6753 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6754else 6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6756for as_dir in $PATH 6757do 6758 IFS=$as_save_IFS 6759 test -z "$as_dir" && as_dir=. 6760 for ac_exec_ext in '' $ac_executable_extensions; do 6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6762 ac_cv_prog_ac_ct_OTOOL64="otool64" 6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6764 break 2 6765 fi 6766done 6767 done 6768IFS=$as_save_IFS 6769 6770fi 6771fi 6772ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6773if test -n "$ac_ct_OTOOL64"; then 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6775$as_echo "$ac_ct_OTOOL64" >&6; } 6776else 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6778$as_echo "no" >&6; } 6779fi 6780 6781 if test "x$ac_ct_OTOOL64" = x; then 6782 OTOOL64=":" 6783 else 6784 case $cross_compiling:$ac_tool_warned in 6785yes:) 6786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6788ac_tool_warned=yes ;; 6789esac 6790 OTOOL64=$ac_ct_OTOOL64 6791 fi 6792else 6793 OTOOL64="$ac_cv_prog_OTOOL64" 6794fi 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6823$as_echo_n "checking for -single_module linker flag... " >&6; } 6824if ${lt_cv_apple_cc_single_mod+:} false; then : 6825 $as_echo_n "(cached) " >&6 6826else 6827 lt_cv_apple_cc_single_mod=no 6828 if test -z "${LT_MULTI_MODULE}"; then 6829 # By default we will add the -single_module flag. You can override 6830 # by either setting the environment variable LT_MULTI_MODULE 6831 # non-empty at configure time, or by adding -multi_module to the 6832 # link flags. 6833 rm -rf libconftest.dylib* 6834 echo "int foo(void){return 1;}" > conftest.c 6835 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6836-dynamiclib -Wl,-single_module conftest.c" >&5 6837 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6838 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6839 _lt_result=$? 6840 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6841 lt_cv_apple_cc_single_mod=yes 6842 else 6843 cat conftest.err >&5 6844 fi 6845 rm -rf libconftest.dylib* 6846 rm -f conftest.* 6847 fi 6848fi 6849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6850$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6852$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6853if ${lt_cv_ld_exported_symbols_list+:} false; then : 6854 $as_echo_n "(cached) " >&6 6855else 6856 lt_cv_ld_exported_symbols_list=no 6857 save_LDFLAGS=$LDFLAGS 6858 echo "_main" > conftest.sym 6859 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6860 if test x$gcc_no_link = xyes; then 6861 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6862fi 6863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6864/* end confdefs.h. */ 6865 6866int 6867main () 6868{ 6869 6870 ; 6871 return 0; 6872} 6873_ACEOF 6874if ac_fn_c_try_link "$LINENO"; then : 6875 lt_cv_ld_exported_symbols_list=yes 6876else 6877 lt_cv_ld_exported_symbols_list=no 6878fi 6879rm -f core conftest.err conftest.$ac_objext \ 6880 conftest$ac_exeext conftest.$ac_ext 6881 LDFLAGS="$save_LDFLAGS" 6882 6883fi 6884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6885$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6887$as_echo_n "checking for -force_load linker flag... " >&6; } 6888if ${lt_cv_ld_force_load+:} false; then : 6889 $as_echo_n "(cached) " >&6 6890else 6891 lt_cv_ld_force_load=no 6892 cat > conftest.c << _LT_EOF 6893int forced_loaded() { return 2;} 6894_LT_EOF 6895 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6896 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6897 echo "$AR cru libconftest.a conftest.o" >&5 6898 $AR cru libconftest.a conftest.o 2>&5 6899 cat > conftest.c << _LT_EOF 6900int main() { return 0;} 6901_LT_EOF 6902 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6903 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6904 _lt_result=$? 6905 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 6906 lt_cv_ld_force_load=yes 6907 else 6908 cat conftest.err >&5 6909 fi 6910 rm -f conftest.err libconftest.a conftest conftest.c 6911 rm -rf conftest.dSYM 6912 6913fi 6914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6915$as_echo "$lt_cv_ld_force_load" >&6; } 6916 case $host_os in 6917 rhapsody* | darwin1.[012]) 6918 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6919 darwin1.*) 6920 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6921 darwin*) # darwin 5.x on 6922 # if running on 10.5 or later, the deployment target defaults 6923 # to the OS version, if on x86, and 10.4, the deployment 6924 # target defaults to 10.4. Don't you love it? 6925 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6926 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6927 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6928 10.[012][,.]*) 6929 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6930 10.*) 6931 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6932 esac 6933 ;; 6934 esac 6935 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6936 _lt_dar_single_mod='$single_module' 6937 fi 6938 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6939 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6940 else 6941 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6942 fi 6943 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6944 _lt_dsymutil='~$DSYMUTIL $lib || :' 6945 else 6946 _lt_dsymutil= 6947 fi 6948 ;; 6949 esac 6950 6951ac_ext=c 6952ac_cpp='$CPP $CPPFLAGS' 6953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6955ac_compiler_gnu=$ac_cv_c_compiler_gnu 6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6957$as_echo_n "checking how to run the C preprocessor... " >&6; } 6958# On Suns, sometimes $CPP names a directory. 6959if test -n "$CPP" && test -d "$CPP"; then 6960 CPP= 6961fi 6962if test -z "$CPP"; then 6963 if ${ac_cv_prog_CPP+:} false; then : 6964 $as_echo_n "(cached) " >&6 6965else 6966 # Double quotes because CPP needs to be expanded 6967 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6968 do 6969 ac_preproc_ok=false 6970for ac_c_preproc_warn_flag in '' yes 6971do 6972 # Use a header file that comes with gcc, so configuring glibc 6973 # with a fresh cross-compiler works. 6974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6975 # <limits.h> exists even on freestanding compilers. 6976 # On the NeXT, cc -E runs the code through the compiler's parser, 6977 # not just through cpp. "Syntax error" is here to catch this case. 6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6979/* end confdefs.h. */ 6980#ifdef __STDC__ 6981# include <limits.h> 6982#else 6983# include <assert.h> 6984#endif 6985 Syntax error 6986_ACEOF 6987if ac_fn_c_try_cpp "$LINENO"; then : 6988 6989else 6990 # Broken: fails on valid input. 6991continue 6992fi 6993rm -f conftest.err conftest.i conftest.$ac_ext 6994 6995 # OK, works on sane cases. Now check whether nonexistent headers 6996 # can be detected and how. 6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6998/* end confdefs.h. */ 6999#include <ac_nonexistent.h> 7000_ACEOF 7001if ac_fn_c_try_cpp "$LINENO"; then : 7002 # Broken: success on invalid input. 7003continue 7004else 7005 # Passes both tests. 7006ac_preproc_ok=: 7007break 7008fi 7009rm -f conftest.err conftest.i conftest.$ac_ext 7010 7011done 7012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7013rm -f conftest.i conftest.err conftest.$ac_ext 7014if $ac_preproc_ok; then : 7015 break 7016fi 7017 7018 done 7019 ac_cv_prog_CPP=$CPP 7020 7021fi 7022 CPP=$ac_cv_prog_CPP 7023else 7024 ac_cv_prog_CPP=$CPP 7025fi 7026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7027$as_echo "$CPP" >&6; } 7028ac_preproc_ok=false 7029for ac_c_preproc_warn_flag in '' yes 7030do 7031 # Use a header file that comes with gcc, so configuring glibc 7032 # with a fresh cross-compiler works. 7033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7034 # <limits.h> exists even on freestanding compilers. 7035 # On the NeXT, cc -E runs the code through the compiler's parser, 7036 # not just through cpp. "Syntax error" is here to catch this case. 7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7038/* end confdefs.h. */ 7039#ifdef __STDC__ 7040# include <limits.h> 7041#else 7042# include <assert.h> 7043#endif 7044 Syntax error 7045_ACEOF 7046if ac_fn_c_try_cpp "$LINENO"; then : 7047 7048else 7049 # Broken: fails on valid input. 7050continue 7051fi 7052rm -f conftest.err conftest.i conftest.$ac_ext 7053 7054 # OK, works on sane cases. Now check whether nonexistent headers 7055 # can be detected and how. 7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7057/* end confdefs.h. */ 7058#include <ac_nonexistent.h> 7059_ACEOF 7060if ac_fn_c_try_cpp "$LINENO"; then : 7061 # Broken: success on invalid input. 7062continue 7063else 7064 # Passes both tests. 7065ac_preproc_ok=: 7066break 7067fi 7068rm -f conftest.err conftest.i conftest.$ac_ext 7069 7070done 7071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7072rm -f conftest.i conftest.err conftest.$ac_ext 7073if $ac_preproc_ok; then : 7074 7075else 7076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7078as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7079See \`config.log' for more details" "$LINENO" 5; } 7080fi 7081 7082ac_ext=c 7083ac_cpp='$CPP $CPPFLAGS' 7084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7086ac_compiler_gnu=$ac_cv_c_compiler_gnu 7087 7088 7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7090$as_echo_n "checking for ANSI C header files... " >&6; } 7091if ${ac_cv_header_stdc+:} false; then : 7092 $as_echo_n "(cached) " >&6 7093else 7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7095/* end confdefs.h. */ 7096#include <stdlib.h> 7097#include <stdarg.h> 7098#include <string.h> 7099#include <float.h> 7100 7101int 7102main () 7103{ 7104 7105 ; 7106 return 0; 7107} 7108_ACEOF 7109if ac_fn_c_try_compile "$LINENO"; then : 7110 ac_cv_header_stdc=yes 7111else 7112 ac_cv_header_stdc=no 7113fi 7114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7115 7116if test $ac_cv_header_stdc = yes; then 7117 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7119/* end confdefs.h. */ 7120#include <string.h> 7121 7122_ACEOF 7123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7124 $EGREP "memchr" >/dev/null 2>&1; then : 7125 7126else 7127 ac_cv_header_stdc=no 7128fi 7129rm -f conftest* 7130 7131fi 7132 7133if test $ac_cv_header_stdc = yes; then 7134 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7136/* end confdefs.h. */ 7137#include <stdlib.h> 7138 7139_ACEOF 7140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7141 $EGREP "free" >/dev/null 2>&1; then : 7142 7143else 7144 ac_cv_header_stdc=no 7145fi 7146rm -f conftest* 7147 7148fi 7149 7150if test $ac_cv_header_stdc = yes; then 7151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7152 if test "$cross_compiling" = yes; then : 7153 : 7154else 7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7156/* end confdefs.h. */ 7157#include <ctype.h> 7158#include <stdlib.h> 7159#if ((' ' & 0x0FF) == 0x020) 7160# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7161# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7162#else 7163# define ISLOWER(c) \ 7164 (('a' <= (c) && (c) <= 'i') \ 7165 || ('j' <= (c) && (c) <= 'r') \ 7166 || ('s' <= (c) && (c) <= 'z')) 7167# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7168#endif 7169 7170#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7171int 7172main () 7173{ 7174 int i; 7175 for (i = 0; i < 256; i++) 7176 if (XOR (islower (i), ISLOWER (i)) 7177 || toupper (i) != TOUPPER (i)) 7178 return 2; 7179 return 0; 7180} 7181_ACEOF 7182if ac_fn_c_try_run "$LINENO"; then : 7183 7184else 7185 ac_cv_header_stdc=no 7186fi 7187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7188 conftest.$ac_objext conftest.beam conftest.$ac_ext 7189fi 7190 7191fi 7192fi 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7194$as_echo "$ac_cv_header_stdc" >&6; } 7195if test $ac_cv_header_stdc = yes; then 7196 7197$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7198 7199fi 7200 7201# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7202for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7203 inttypes.h stdint.h unistd.h 7204do : 7205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7206ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7207" 7208if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7209 cat >>confdefs.h <<_ACEOF 7210#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7211_ACEOF 7212 7213fi 7214 7215done 7216 7217 7218for ac_header in dlfcn.h 7219do : 7220 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7221" 7222if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7223 cat >>confdefs.h <<_ACEOF 7224#define HAVE_DLFCN_H 1 7225_ACEOF 7226 7227fi 7228 7229done 7230 7231 7232 7233 7234 7235# Set options 7236 7237 7238 7239 enable_dlopen=no 7240 7241 7242 enable_win32_dll=no 7243 7244 7245 # Check whether --enable-shared was given. 7246if test "${enable_shared+set}" = set; then : 7247 enableval=$enable_shared; p=${PACKAGE-default} 7248 case $enableval in 7249 yes) enable_shared=yes ;; 7250 no) enable_shared=no ;; 7251 *) 7252 enable_shared=no 7253 # Look at the argument we got. We use all the common list separators. 7254 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7255 for pkg in $enableval; do 7256 IFS="$lt_save_ifs" 7257 if test "X$pkg" = "X$p"; then 7258 enable_shared=yes 7259 fi 7260 done 7261 IFS="$lt_save_ifs" 7262 ;; 7263 esac 7264else 7265 enable_shared=yes 7266fi 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 # Check whether --enable-static was given. 7277if test "${enable_static+set}" = set; then : 7278 enableval=$enable_static; p=${PACKAGE-default} 7279 case $enableval in 7280 yes) enable_static=yes ;; 7281 no) enable_static=no ;; 7282 *) 7283 enable_static=no 7284 # Look at the argument we got. We use all the common list separators. 7285 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7286 for pkg in $enableval; do 7287 IFS="$lt_save_ifs" 7288 if test "X$pkg" = "X$p"; then 7289 enable_static=yes 7290 fi 7291 done 7292 IFS="$lt_save_ifs" 7293 ;; 7294 esac 7295else 7296 enable_static=yes 7297fi 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308# Check whether --with-pic was given. 7309if test "${with_pic+set}" = set; then : 7310 withval=$with_pic; pic_mode="$withval" 7311else 7312 pic_mode=default 7313fi 7314 7315 7316test -z "$pic_mode" && pic_mode=default 7317 7318 7319 7320 7321 7322 7323 7324 # Check whether --enable-fast-install was given. 7325if test "${enable_fast_install+set}" = set; then : 7326 enableval=$enable_fast_install; p=${PACKAGE-default} 7327 case $enableval in 7328 yes) enable_fast_install=yes ;; 7329 no) enable_fast_install=no ;; 7330 *) 7331 enable_fast_install=no 7332 # Look at the argument we got. We use all the common list separators. 7333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7334 for pkg in $enableval; do 7335 IFS="$lt_save_ifs" 7336 if test "X$pkg" = "X$p"; then 7337 enable_fast_install=yes 7338 fi 7339 done 7340 IFS="$lt_save_ifs" 7341 ;; 7342 esac 7343else 7344 enable_fast_install=yes 7345fi 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357# This can be used to rebuild libtool when needed 7358LIBTOOL_DEPS="$ltmain" 7359 7360# Always use our own libtool. 7361LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388test -z "$LN_S" && LN_S="ln -s" 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403if test -n "${ZSH_VERSION+set}" ; then 7404 setopt NO_GLOB_SUBST 7405fi 7406 7407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7408$as_echo_n "checking for objdir... " >&6; } 7409if ${lt_cv_objdir+:} false; then : 7410 $as_echo_n "(cached) " >&6 7411else 7412 rm -f .libs 2>/dev/null 7413mkdir .libs 2>/dev/null 7414if test -d .libs; then 7415 lt_cv_objdir=.libs 7416else 7417 # MS-DOS does not allow filenames that begin with a dot. 7418 lt_cv_objdir=_libs 7419fi 7420rmdir .libs 2>/dev/null 7421fi 7422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7423$as_echo "$lt_cv_objdir" >&6; } 7424objdir=$lt_cv_objdir 7425 7426 7427 7428 7429 7430cat >>confdefs.h <<_ACEOF 7431#define LT_OBJDIR "$lt_cv_objdir/" 7432_ACEOF 7433 7434 7435 7436 7437case $host_os in 7438aix3*) 7439 # AIX sometimes has problems with the GCC collect2 program. For some 7440 # reason, if we set the COLLECT_NAMES environment variable, the problems 7441 # vanish in a puff of smoke. 7442 if test "X${COLLECT_NAMES+set}" != Xset; then 7443 COLLECT_NAMES= 7444 export COLLECT_NAMES 7445 fi 7446 ;; 7447esac 7448 7449# Global variables: 7450ofile=libtool 7451can_build_shared=yes 7452 7453# All known linkers require a `.a' archive for static linking (except MSVC, 7454# which needs '.lib'). 7455libext=a 7456 7457with_gnu_ld="$lt_cv_prog_gnu_ld" 7458 7459old_CC="$CC" 7460old_CFLAGS="$CFLAGS" 7461 7462# Set sane defaults for various variables 7463test -z "$CC" && CC=cc 7464test -z "$LTCC" && LTCC=$CC 7465test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7466test -z "$LD" && LD=ld 7467test -z "$ac_objext" && ac_objext=o 7468 7469for cc_temp in $compiler""; do 7470 case $cc_temp in 7471 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7472 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7473 \-*) ;; 7474 *) break;; 7475 esac 7476done 7477cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7478 7479 7480# Only perform the check for file, if the check method requires it 7481test -z "$MAGIC_CMD" && MAGIC_CMD=file 7482case $deplibs_check_method in 7483file_magic*) 7484 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7486$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7487if ${lt_cv_path_MAGIC_CMD+:} false; then : 7488 $as_echo_n "(cached) " >&6 7489else 7490 case $MAGIC_CMD in 7491[\\/*] | ?:[\\/]*) 7492 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7493 ;; 7494*) 7495 lt_save_MAGIC_CMD="$MAGIC_CMD" 7496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7497 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7498 for ac_dir in $ac_dummy; do 7499 IFS="$lt_save_ifs" 7500 test -z "$ac_dir" && ac_dir=. 7501 if test -f $ac_dir/${ac_tool_prefix}file; then 7502 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7503 if test -n "$file_magic_test_file"; then 7504 case $deplibs_check_method in 7505 "file_magic "*) 7506 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7507 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7508 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7509 $EGREP "$file_magic_regex" > /dev/null; then 7510 : 7511 else 7512 cat <<_LT_EOF 1>&2 7513 7514*** Warning: the command libtool uses to detect shared libraries, 7515*** $file_magic_cmd, produces output that libtool cannot recognize. 7516*** The result is that libtool may fail to recognize shared libraries 7517*** as such. This will affect the creation of libtool libraries that 7518*** depend on shared libraries, but programs linked with such libtool 7519*** libraries will work regardless of this problem. Nevertheless, you 7520*** may want to report the problem to your system manager and/or to 7521*** bug-libtool@gnu.org 7522 7523_LT_EOF 7524 fi ;; 7525 esac 7526 fi 7527 break 7528 fi 7529 done 7530 IFS="$lt_save_ifs" 7531 MAGIC_CMD="$lt_save_MAGIC_CMD" 7532 ;; 7533esac 7534fi 7535 7536MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7537if test -n "$MAGIC_CMD"; then 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7539$as_echo "$MAGIC_CMD" >&6; } 7540else 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7542$as_echo "no" >&6; } 7543fi 7544 7545 7546 7547 7548 7549if test -z "$lt_cv_path_MAGIC_CMD"; then 7550 if test -n "$ac_tool_prefix"; then 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7552$as_echo_n "checking for file... " >&6; } 7553if ${lt_cv_path_MAGIC_CMD+:} false; then : 7554 $as_echo_n "(cached) " >&6 7555else 7556 case $MAGIC_CMD in 7557[\\/*] | ?:[\\/]*) 7558 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7559 ;; 7560*) 7561 lt_save_MAGIC_CMD="$MAGIC_CMD" 7562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7563 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7564 for ac_dir in $ac_dummy; do 7565 IFS="$lt_save_ifs" 7566 test -z "$ac_dir" && ac_dir=. 7567 if test -f $ac_dir/file; then 7568 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7569 if test -n "$file_magic_test_file"; then 7570 case $deplibs_check_method in 7571 "file_magic "*) 7572 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7574 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7575 $EGREP "$file_magic_regex" > /dev/null; then 7576 : 7577 else 7578 cat <<_LT_EOF 1>&2 7579 7580*** Warning: the command libtool uses to detect shared libraries, 7581*** $file_magic_cmd, produces output that libtool cannot recognize. 7582*** The result is that libtool may fail to recognize shared libraries 7583*** as such. This will affect the creation of libtool libraries that 7584*** depend on shared libraries, but programs linked with such libtool 7585*** libraries will work regardless of this problem. Nevertheless, you 7586*** may want to report the problem to your system manager and/or to 7587*** bug-libtool@gnu.org 7588 7589_LT_EOF 7590 fi ;; 7591 esac 7592 fi 7593 break 7594 fi 7595 done 7596 IFS="$lt_save_ifs" 7597 MAGIC_CMD="$lt_save_MAGIC_CMD" 7598 ;; 7599esac 7600fi 7601 7602MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7603if test -n "$MAGIC_CMD"; then 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7605$as_echo "$MAGIC_CMD" >&6; } 7606else 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7608$as_echo "no" >&6; } 7609fi 7610 7611 7612 else 7613 MAGIC_CMD=: 7614 fi 7615fi 7616 7617 fi 7618 ;; 7619esac 7620 7621# Use C for the default configuration in the libtool script 7622 7623lt_save_CC="$CC" 7624ac_ext=c 7625ac_cpp='$CPP $CPPFLAGS' 7626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7628ac_compiler_gnu=$ac_cv_c_compiler_gnu 7629 7630 7631# Source file extension for C test sources. 7632ac_ext=c 7633 7634# Object file extension for compiled C test sources. 7635objext=o 7636objext=$objext 7637 7638# Code to be used in simple compile tests 7639lt_simple_compile_test_code="int some_variable = 0;" 7640 7641# Code to be used in simple link tests 7642lt_simple_link_test_code='int main(){return(0);}' 7643 7644 7645 7646 7647 7648 7649 7650# If no C compiler was specified, use CC. 7651LTCC=${LTCC-"$CC"} 7652 7653# If no C compiler flags were specified, use CFLAGS. 7654LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7655 7656# Allow CC to be a program name with arguments. 7657compiler=$CC 7658 7659# Save the default compiler, since it gets overwritten when the other 7660# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7661compiler_DEFAULT=$CC 7662 7663# save warnings/boilerplate of simple test code 7664ac_outfile=conftest.$ac_objext 7665echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7666eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7667_lt_compiler_boilerplate=`cat conftest.err` 7668$RM conftest* 7669 7670ac_outfile=conftest.$ac_objext 7671echo "$lt_simple_link_test_code" >conftest.$ac_ext 7672eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7673_lt_linker_boilerplate=`cat conftest.err` 7674$RM -r conftest* 7675 7676 7677## CAVEAT EMPTOR: 7678## There is no encapsulation within the following macros, do not change 7679## the running order or otherwise move them around unless you know exactly 7680## what you are doing... 7681if test -n "$compiler"; then 7682 7683lt_prog_compiler_no_builtin_flag= 7684 7685if test "$GCC" = yes; then 7686 case $cc_basename in 7687 nvcc*) 7688 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7689 *) 7690 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7691 esac 7692 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7694$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7695if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7696 $as_echo_n "(cached) " >&6 7697else 7698 lt_cv_prog_compiler_rtti_exceptions=no 7699 ac_outfile=conftest.$ac_objext 7700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7701 lt_compiler_flag="-fno-rtti -fno-exceptions" 7702 # Insert the option either (1) after the last *FLAGS variable, or 7703 # (2) before a word containing "conftest.", or (3) at the end. 7704 # Note that $ac_compile itself does not contain backslashes and begins 7705 # with a dollar sign (not a hyphen), so the echo should work correctly. 7706 # The option is referenced via a variable to avoid confusing sed. 7707 lt_compile=`echo "$ac_compile" | $SED \ 7708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7710 -e 's:$: $lt_compiler_flag:'` 7711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7712 (eval "$lt_compile" 2>conftest.err) 7713 ac_status=$? 7714 cat conftest.err >&5 7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7716 if (exit $ac_status) && test -s "$ac_outfile"; then 7717 # The compiler can only warn and ignore the option if not recognized 7718 # So say no if there are warnings other than the usual output. 7719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7721 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7722 lt_cv_prog_compiler_rtti_exceptions=yes 7723 fi 7724 fi 7725 $RM conftest* 7726 7727fi 7728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7729$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7730 7731if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7732 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7733else 7734 : 7735fi 7736 7737fi 7738 7739 7740 7741 7742 7743 7744 lt_prog_compiler_wl= 7745lt_prog_compiler_pic= 7746lt_prog_compiler_static= 7747 7748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7749$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7750 7751 if test "$GCC" = yes; then 7752 lt_prog_compiler_wl='-Wl,' 7753 lt_prog_compiler_static='-static' 7754 7755 case $host_os in 7756 aix*) 7757 # All AIX code is PIC. 7758 if test "$host_cpu" = ia64; then 7759 # AIX 5 now supports IA64 processor 7760 lt_prog_compiler_static='-Bstatic' 7761 fi 7762 lt_prog_compiler_pic='-fPIC' 7763 ;; 7764 7765 amigaos*) 7766 case $host_cpu in 7767 powerpc) 7768 # see comment about AmigaOS4 .so support 7769 lt_prog_compiler_pic='-fPIC' 7770 ;; 7771 m68k) 7772 # FIXME: we need at least 68020 code to build shared libraries, but 7773 # adding the `-m68020' flag to GCC prevents building anything better, 7774 # like `-m68040'. 7775 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7776 ;; 7777 esac 7778 ;; 7779 7780 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7781 # PIC is the default for these OSes. 7782 ;; 7783 7784 mingw* | cygwin* | pw32* | os2* | cegcc*) 7785 # This hack is so that the source file can tell whether it is being 7786 # built for inclusion in a dll (and should export symbols for example). 7787 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7788 # (--disable-auto-import) libraries 7789 lt_prog_compiler_pic='-DDLL_EXPORT' 7790 ;; 7791 7792 darwin* | rhapsody*) 7793 # PIC is the default on this platform 7794 # Common symbols not allowed in MH_DYLIB files 7795 lt_prog_compiler_pic='-fno-common' 7796 ;; 7797 7798 haiku*) 7799 # PIC is the default for Haiku. 7800 # The "-static" flag exists, but is broken. 7801 lt_prog_compiler_static= 7802 ;; 7803 7804 hpux*) 7805 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7806 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7807 # sets the default TLS model and affects inlining. 7808 case $host_cpu in 7809 hppa*64*) 7810 # +Z the default 7811 ;; 7812 *) 7813 lt_prog_compiler_pic='-fPIC' 7814 ;; 7815 esac 7816 ;; 7817 7818 interix[3-9]*) 7819 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7820 # Instead, we relocate shared libraries at runtime. 7821 ;; 7822 7823 msdosdjgpp*) 7824 # Just because we use GCC doesn't mean we suddenly get shared libraries 7825 # on systems that don't support them. 7826 lt_prog_compiler_can_build_shared=no 7827 enable_shared=no 7828 ;; 7829 7830 *nto* | *qnx*) 7831 # QNX uses GNU C++, but need to define -shared option too, otherwise 7832 # it will coredump. 7833 lt_prog_compiler_pic='-fPIC -shared' 7834 ;; 7835 7836 sysv4*MP*) 7837 if test -d /usr/nec; then 7838 lt_prog_compiler_pic=-Kconform_pic 7839 fi 7840 ;; 7841 7842 *) 7843 lt_prog_compiler_pic='-fPIC' 7844 ;; 7845 esac 7846 7847 case $cc_basename in 7848 nvcc*) # Cuda Compiler Driver 2.2 7849 lt_prog_compiler_wl='-Xlinker ' 7850 lt_prog_compiler_pic='-Xcompiler -fPIC' 7851 ;; 7852 esac 7853 else 7854 # PORTME Check for flag to pass linker flags through the system compiler. 7855 case $host_os in 7856 aix*) 7857 lt_prog_compiler_wl='-Wl,' 7858 if test "$host_cpu" = ia64; then 7859 # AIX 5 now supports IA64 processor 7860 lt_prog_compiler_static='-Bstatic' 7861 else 7862 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7863 fi 7864 ;; 7865 7866 mingw* | cygwin* | pw32* | os2* | cegcc*) 7867 # This hack is so that the source file can tell whether it is being 7868 # built for inclusion in a dll (and should export symbols for example). 7869 lt_prog_compiler_pic='-DDLL_EXPORT' 7870 ;; 7871 7872 hpux9* | hpux10* | hpux11*) 7873 lt_prog_compiler_wl='-Wl,' 7874 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7875 # not for PA HP-UX. 7876 case $host_cpu in 7877 hppa*64*|ia64*) 7878 # +Z the default 7879 ;; 7880 *) 7881 lt_prog_compiler_pic='+Z' 7882 ;; 7883 esac 7884 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7885 lt_prog_compiler_static='${wl}-a ${wl}archive' 7886 ;; 7887 7888 irix5* | irix6* | nonstopux*) 7889 lt_prog_compiler_wl='-Wl,' 7890 # PIC (with -KPIC) is the default. 7891 lt_prog_compiler_static='-non_shared' 7892 ;; 7893 7894 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7895 case $cc_basename in 7896 # old Intel for x86_64 which still supported -KPIC. 7897 ecc*) 7898 lt_prog_compiler_wl='-Wl,' 7899 lt_prog_compiler_pic='-KPIC' 7900 lt_prog_compiler_static='-static' 7901 ;; 7902 # icc used to be incompatible with GCC. 7903 # ICC 10 doesn't accept -KPIC any more. 7904 icc* | ifort*) 7905 lt_prog_compiler_wl='-Wl,' 7906 lt_prog_compiler_pic='-fPIC' 7907 lt_prog_compiler_static='-static' 7908 ;; 7909 # Lahey Fortran 8.1. 7910 lf95*) 7911 lt_prog_compiler_wl='-Wl,' 7912 lt_prog_compiler_pic='--shared' 7913 lt_prog_compiler_static='--static' 7914 ;; 7915 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7916 # Portland Group compilers (*not* the Pentium gcc compiler, 7917 # which looks to be a dead project) 7918 lt_prog_compiler_wl='-Wl,' 7919 lt_prog_compiler_pic='-fpic' 7920 lt_prog_compiler_static='-Bstatic' 7921 ;; 7922 ccc*) 7923 lt_prog_compiler_wl='-Wl,' 7924 # All Alpha code is PIC. 7925 lt_prog_compiler_static='-non_shared' 7926 ;; 7927 xl* | bgxl* | bgf* | mpixl*) 7928 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7929 lt_prog_compiler_wl='-Wl,' 7930 lt_prog_compiler_pic='-qpic' 7931 lt_prog_compiler_static='-qstaticlink' 7932 ;; 7933 *) 7934 case `$CC -V 2>&1 | sed 5q` in 7935 *Sun\ F* | *Sun*Fortran*) 7936 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7937 lt_prog_compiler_pic='-KPIC' 7938 lt_prog_compiler_static='-Bstatic' 7939 lt_prog_compiler_wl='' 7940 ;; 7941 *Sun\ C*) 7942 # Sun C 5.9 7943 lt_prog_compiler_pic='-KPIC' 7944 lt_prog_compiler_static='-Bstatic' 7945 lt_prog_compiler_wl='-Wl,' 7946 ;; 7947 esac 7948 ;; 7949 esac 7950 ;; 7951 7952 newsos6) 7953 lt_prog_compiler_pic='-KPIC' 7954 lt_prog_compiler_static='-Bstatic' 7955 ;; 7956 7957 *nto* | *qnx*) 7958 # QNX uses GNU C++, but need to define -shared option too, otherwise 7959 # it will coredump. 7960 lt_prog_compiler_pic='-fPIC -shared' 7961 ;; 7962 7963 osf3* | osf4* | osf5*) 7964 lt_prog_compiler_wl='-Wl,' 7965 # All OSF/1 code is PIC. 7966 lt_prog_compiler_static='-non_shared' 7967 ;; 7968 7969 rdos*) 7970 lt_prog_compiler_static='-non_shared' 7971 ;; 7972 7973 solaris*) 7974 lt_prog_compiler_pic='-KPIC' 7975 lt_prog_compiler_static='-Bstatic' 7976 case $cc_basename in 7977 f77* | f90* | f95*) 7978 lt_prog_compiler_wl='-Qoption ld ';; 7979 *) 7980 lt_prog_compiler_wl='-Wl,';; 7981 esac 7982 ;; 7983 7984 sunos4*) 7985 lt_prog_compiler_wl='-Qoption ld ' 7986 lt_prog_compiler_pic='-PIC' 7987 lt_prog_compiler_static='-Bstatic' 7988 ;; 7989 7990 sysv4 | sysv4.2uw2* | sysv4.3*) 7991 lt_prog_compiler_wl='-Wl,' 7992 lt_prog_compiler_pic='-KPIC' 7993 lt_prog_compiler_static='-Bstatic' 7994 ;; 7995 7996 sysv4*MP*) 7997 if test -d /usr/nec ;then 7998 lt_prog_compiler_pic='-Kconform_pic' 7999 lt_prog_compiler_static='-Bstatic' 8000 fi 8001 ;; 8002 8003 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8004 lt_prog_compiler_wl='-Wl,' 8005 lt_prog_compiler_pic='-KPIC' 8006 lt_prog_compiler_static='-Bstatic' 8007 ;; 8008 8009 unicos*) 8010 lt_prog_compiler_wl='-Wl,' 8011 lt_prog_compiler_can_build_shared=no 8012 ;; 8013 8014 uts4*) 8015 lt_prog_compiler_pic='-pic' 8016 lt_prog_compiler_static='-Bstatic' 8017 ;; 8018 8019 *) 8020 lt_prog_compiler_can_build_shared=no 8021 ;; 8022 esac 8023 fi 8024 8025case $host_os in 8026 # For platforms which do not support PIC, -DPIC is meaningless: 8027 *djgpp*) 8028 lt_prog_compiler_pic= 8029 ;; 8030 *) 8031 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8032 ;; 8033esac 8034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8035$as_echo "$lt_prog_compiler_pic" >&6; } 8036 8037 8038 8039 8040 8041 8042# 8043# Check to make sure the PIC flag actually works. 8044# 8045if test -n "$lt_prog_compiler_pic"; then 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8047$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8048if ${lt_cv_prog_compiler_pic_works+:} false; then : 8049 $as_echo_n "(cached) " >&6 8050else 8051 lt_cv_prog_compiler_pic_works=no 8052 ac_outfile=conftest.$ac_objext 8053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8054 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8055 # Insert the option either (1) after the last *FLAGS variable, or 8056 # (2) before a word containing "conftest.", or (3) at the end. 8057 # Note that $ac_compile itself does not contain backslashes and begins 8058 # with a dollar sign (not a hyphen), so the echo should work correctly. 8059 # The option is referenced via a variable to avoid confusing sed. 8060 lt_compile=`echo "$ac_compile" | $SED \ 8061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8063 -e 's:$: $lt_compiler_flag:'` 8064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8065 (eval "$lt_compile" 2>conftest.err) 8066 ac_status=$? 8067 cat conftest.err >&5 8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8069 if (exit $ac_status) && test -s "$ac_outfile"; then 8070 # The compiler can only warn and ignore the option if not recognized 8071 # So say no if there are warnings other than the usual output. 8072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8074 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8075 lt_cv_prog_compiler_pic_works=yes 8076 fi 8077 fi 8078 $RM conftest* 8079 8080fi 8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8082$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8083 8084if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8085 case $lt_prog_compiler_pic in 8086 "" | " "*) ;; 8087 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8088 esac 8089else 8090 lt_prog_compiler_pic= 8091 lt_prog_compiler_can_build_shared=no 8092fi 8093 8094fi 8095 8096 8097 8098 8099 8100 8101# 8102# Check to make sure the static flag actually works. 8103# 8104wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8106$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8107if ${lt_cv_prog_compiler_static_works+:} false; then : 8108 $as_echo_n "(cached) " >&6 8109else 8110 lt_cv_prog_compiler_static_works=no 8111 save_LDFLAGS="$LDFLAGS" 8112 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8113 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8114 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8115 # The linker can only warn and ignore the option if not recognized 8116 # So say no if there are warnings 8117 if test -s conftest.err; then 8118 # Append any errors to the config.log. 8119 cat conftest.err 1>&5 8120 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8122 if diff conftest.exp conftest.er2 >/dev/null; then 8123 lt_cv_prog_compiler_static_works=yes 8124 fi 8125 else 8126 lt_cv_prog_compiler_static_works=yes 8127 fi 8128 fi 8129 $RM -r conftest* 8130 LDFLAGS="$save_LDFLAGS" 8131 8132fi 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8134$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8135 8136if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8137 : 8138else 8139 lt_prog_compiler_static= 8140fi 8141 8142 8143 8144 8145 8146 8147 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8149$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8150if ${lt_cv_prog_compiler_c_o+:} false; then : 8151 $as_echo_n "(cached) " >&6 8152else 8153 lt_cv_prog_compiler_c_o=no 8154 $RM -r conftest 2>/dev/null 8155 mkdir conftest 8156 cd conftest 8157 mkdir out 8158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8159 8160 lt_compiler_flag="-o out/conftest2.$ac_objext" 8161 # Insert the option either (1) after the last *FLAGS variable, or 8162 # (2) before a word containing "conftest.", or (3) at the end. 8163 # Note that $ac_compile itself does not contain backslashes and begins 8164 # with a dollar sign (not a hyphen), so the echo should work correctly. 8165 lt_compile=`echo "$ac_compile" | $SED \ 8166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8168 -e 's:$: $lt_compiler_flag:'` 8169 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8170 (eval "$lt_compile" 2>out/conftest.err) 8171 ac_status=$? 8172 cat out/conftest.err >&5 8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8174 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8175 then 8176 # The compiler can only warn and ignore the option if not recognized 8177 # So say no if there are warnings 8178 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8181 lt_cv_prog_compiler_c_o=yes 8182 fi 8183 fi 8184 chmod u+w . 2>&5 8185 $RM conftest* 8186 # SGI C++ compiler will create directory out/ii_files/ for 8187 # template instantiation 8188 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8189 $RM out/* && rmdir out 8190 cd .. 8191 $RM -r conftest 8192 $RM conftest* 8193 8194fi 8195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8196$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8197 8198 8199 8200 8201 8202 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8204$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8205if ${lt_cv_prog_compiler_c_o+:} false; then : 8206 $as_echo_n "(cached) " >&6 8207else 8208 lt_cv_prog_compiler_c_o=no 8209 $RM -r conftest 2>/dev/null 8210 mkdir conftest 8211 cd conftest 8212 mkdir out 8213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8214 8215 lt_compiler_flag="-o out/conftest2.$ac_objext" 8216 # Insert the option either (1) after the last *FLAGS variable, or 8217 # (2) before a word containing "conftest.", or (3) at the end. 8218 # Note that $ac_compile itself does not contain backslashes and begins 8219 # with a dollar sign (not a hyphen), so the echo should work correctly. 8220 lt_compile=`echo "$ac_compile" | $SED \ 8221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8223 -e 's:$: $lt_compiler_flag:'` 8224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8225 (eval "$lt_compile" 2>out/conftest.err) 8226 ac_status=$? 8227 cat out/conftest.err >&5 8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8229 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8230 then 8231 # The compiler can only warn and ignore the option if not recognized 8232 # So say no if there are warnings 8233 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8234 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8235 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8236 lt_cv_prog_compiler_c_o=yes 8237 fi 8238 fi 8239 chmod u+w . 2>&5 8240 $RM conftest* 8241 # SGI C++ compiler will create directory out/ii_files/ for 8242 # template instantiation 8243 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8244 $RM out/* && rmdir out 8245 cd .. 8246 $RM -r conftest 8247 $RM conftest* 8248 8249fi 8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8251$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8252 8253 8254 8255 8256hard_links="nottested" 8257if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8258 # do not overwrite the value of need_locks provided by the user 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8260$as_echo_n "checking if we can lock with hard links... " >&6; } 8261 hard_links=yes 8262 $RM conftest* 8263 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8264 touch conftest.a 8265 ln conftest.a conftest.b 2>&5 || hard_links=no 8266 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8268$as_echo "$hard_links" >&6; } 8269 if test "$hard_links" = no; then 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8271$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8272 need_locks=warn 8273 fi 8274else 8275 need_locks=no 8276fi 8277 8278 8279 8280 8281 8282 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8284$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8285 8286 runpath_var= 8287 allow_undefined_flag= 8288 always_export_symbols=no 8289 archive_cmds= 8290 archive_expsym_cmds= 8291 compiler_needs_object=no 8292 enable_shared_with_static_runtimes=no 8293 export_dynamic_flag_spec= 8294 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8295 hardcode_automatic=no 8296 hardcode_direct=no 8297 hardcode_direct_absolute=no 8298 hardcode_libdir_flag_spec= 8299 hardcode_libdir_flag_spec_ld= 8300 hardcode_libdir_separator= 8301 hardcode_minus_L=no 8302 hardcode_shlibpath_var=unsupported 8303 inherit_rpath=no 8304 link_all_deplibs=unknown 8305 module_cmds= 8306 module_expsym_cmds= 8307 old_archive_from_new_cmds= 8308 old_archive_from_expsyms_cmds= 8309 thread_safe_flag_spec= 8310 whole_archive_flag_spec= 8311 # include_expsyms should be a list of space-separated symbols to be *always* 8312 # included in the symbol list 8313 include_expsyms= 8314 # exclude_expsyms can be an extended regexp of symbols to exclude 8315 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8316 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8317 # as well as any symbol that contains `d'. 8318 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8319 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8320 # platforms (ab)use it in PIC code, but their linkers get confused if 8321 # the symbol is explicitly referenced. Since portable code cannot 8322 # rely on this symbol name, it's probably fine to never include it in 8323 # preloaded symbol tables. 8324 # Exclude shared library initialization/finalization symbols. 8325 extract_expsyms_cmds= 8326 8327 case $host_os in 8328 cygwin* | mingw* | pw32* | cegcc*) 8329 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8330 # When not using gcc, we currently assume that we are using 8331 # Microsoft Visual C++. 8332 if test "$GCC" != yes; then 8333 with_gnu_ld=no 8334 fi 8335 ;; 8336 interix*) 8337 # we just hope/assume this is gcc and not c89 (= MSVC++) 8338 with_gnu_ld=yes 8339 ;; 8340 openbsd*) 8341 with_gnu_ld=no 8342 ;; 8343 esac 8344 8345 ld_shlibs=yes 8346 8347 # On some targets, GNU ld is compatible enough with the native linker 8348 # that we're better off using the native interface for both. 8349 lt_use_gnu_ld_interface=no 8350 if test "$with_gnu_ld" = yes; then 8351 case $host_os in 8352 aix*) 8353 # The AIX port of GNU ld has always aspired to compatibility 8354 # with the native linker. However, as the warning in the GNU ld 8355 # block says, versions before 2.19.5* couldn't really create working 8356 # shared libraries, regardless of the interface used. 8357 case `$LD -v 2>&1` in 8358 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8359 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8360 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8361 *) 8362 lt_use_gnu_ld_interface=yes 8363 ;; 8364 esac 8365 ;; 8366 *) 8367 lt_use_gnu_ld_interface=yes 8368 ;; 8369 esac 8370 fi 8371 8372 if test "$lt_use_gnu_ld_interface" = yes; then 8373 # If archive_cmds runs LD, not CC, wlarc should be empty 8374 wlarc='${wl}' 8375 8376 # Set some defaults for GNU ld with shared library support. These 8377 # are reset later if shared libraries are not supported. Putting them 8378 # here allows them to be overridden if necessary. 8379 runpath_var=LD_RUN_PATH 8380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8381 export_dynamic_flag_spec='${wl}--export-dynamic' 8382 # ancient GNU ld didn't support --whole-archive et. al. 8383 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8384 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8385 else 8386 whole_archive_flag_spec= 8387 fi 8388 supports_anon_versioning=no 8389 case `$LD -v 2>&1` in 8390 *GNU\ gold*) supports_anon_versioning=yes ;; 8391 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8392 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8393 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8394 *\ 2.11.*) ;; # other 2.11 versions 8395 *) supports_anon_versioning=yes ;; 8396 esac 8397 8398 # See if GNU ld supports shared libraries. 8399 case $host_os in 8400 aix[3-9]*) 8401 # On AIX/PPC, the GNU linker is very broken 8402 if test "$host_cpu" != ia64; then 8403 ld_shlibs=no 8404 cat <<_LT_EOF 1>&2 8405 8406*** Warning: the GNU linker, at least up to release 2.19, is reported 8407*** to be unable to reliably create shared libraries on AIX. 8408*** Therefore, libtool is disabling shared libraries support. If you 8409*** really care for shared libraries, you may want to install binutils 8410*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8411*** You will then need to restart the configuration process. 8412 8413_LT_EOF 8414 fi 8415 ;; 8416 8417 amigaos*) 8418 case $host_cpu in 8419 powerpc) 8420 # see comment about AmigaOS4 .so support 8421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8422 archive_expsym_cmds='' 8423 ;; 8424 m68k) 8425 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)' 8426 hardcode_libdir_flag_spec='-L$libdir' 8427 hardcode_minus_L=yes 8428 ;; 8429 esac 8430 ;; 8431 8432 beos*) 8433 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8434 allow_undefined_flag=unsupported 8435 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8436 # support --undefined. This deserves some investigation. FIXME 8437 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8438 else 8439 ld_shlibs=no 8440 fi 8441 ;; 8442 8443 cygwin* | mingw* | pw32* | cegcc*) 8444 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8445 # as there is no search path for DLLs. 8446 hardcode_libdir_flag_spec='-L$libdir' 8447 export_dynamic_flag_spec='${wl}--export-all-symbols' 8448 allow_undefined_flag=unsupported 8449 always_export_symbols=no 8450 enable_shared_with_static_runtimes=yes 8451 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8452 8453 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8455 # If the export-symbols file already is a .def file (1st line 8456 # is EXPORTS), use it as is; otherwise, prepend... 8457 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8458 cp $export_symbols $output_objdir/$soname.def; 8459 else 8460 echo EXPORTS > $output_objdir/$soname.def; 8461 cat $export_symbols >> $output_objdir/$soname.def; 8462 fi~ 8463 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8464 else 8465 ld_shlibs=no 8466 fi 8467 ;; 8468 8469 haiku*) 8470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8471 link_all_deplibs=yes 8472 ;; 8473 8474 interix[3-9]*) 8475 hardcode_direct=no 8476 hardcode_shlibpath_var=no 8477 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8478 export_dynamic_flag_spec='${wl}-E' 8479 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8480 # Instead, shared libraries are loaded at an image base (0x10000000 by 8481 # default) and relocated if they conflict, which is a slow very memory 8482 # consuming and fragmenting process. To avoid this, we pick a random, 8483 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8484 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8485 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8486 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' 8487 ;; 8488 8489 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8490 tmp_diet=no 8491 if test "$host_os" = linux-dietlibc; then 8492 case $cc_basename in 8493 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8494 esac 8495 fi 8496 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8497 && test "$tmp_diet" = no 8498 then 8499 tmp_addflag=' $pic_flag' 8500 tmp_sharedflag='-shared' 8501 case $cc_basename,$host_cpu in 8502 pgcc*) # Portland Group C compiler 8503 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' 8504 tmp_addflag=' $pic_flag' 8505 ;; 8506 pgf77* | pgf90* | pgf95* | pgfortran*) 8507 # Portland Group f77 and f90 compilers 8508 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' 8509 tmp_addflag=' $pic_flag -Mnomain' ;; 8510 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8511 tmp_addflag=' -i_dynamic' ;; 8512 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8513 tmp_addflag=' -i_dynamic -nofor_main' ;; 8514 ifc* | ifort*) # Intel Fortran compiler 8515 tmp_addflag=' -nofor_main' ;; 8516 lf95*) # Lahey Fortran 8.1 8517 whole_archive_flag_spec= 8518 tmp_sharedflag='--shared' ;; 8519 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8520 tmp_sharedflag='-qmkshrobj' 8521 tmp_addflag= ;; 8522 nvcc*) # Cuda Compiler Driver 2.2 8523 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' 8524 compiler_needs_object=yes 8525 ;; 8526 esac 8527 case `$CC -V 2>&1 | sed 5q` in 8528 *Sun\ C*) # Sun C 5.9 8529 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' 8530 compiler_needs_object=yes 8531 tmp_sharedflag='-G' ;; 8532 *Sun\ F*) # Sun Fortran 8.3 8533 tmp_sharedflag='-G' ;; 8534 esac 8535 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8536 8537 if test "x$supports_anon_versioning" = xyes; then 8538 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8539 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8540 echo "local: *; };" >> $output_objdir/$libname.ver~ 8541 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8542 fi 8543 8544 case $cc_basename in 8545 xlf* | bgf* | bgxlf* | mpixlf*) 8546 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8547 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8548 hardcode_libdir_flag_spec= 8549 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8550 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8551 if test "x$supports_anon_versioning" = xyes; then 8552 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8553 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8554 echo "local: *; };" >> $output_objdir/$libname.ver~ 8555 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8556 fi 8557 ;; 8558 esac 8559 else 8560 ld_shlibs=no 8561 fi 8562 ;; 8563 8564 netbsd*) 8565 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8566 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8567 wlarc= 8568 else 8569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8570 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8571 fi 8572 ;; 8573 8574 solaris*) 8575 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8576 ld_shlibs=no 8577 cat <<_LT_EOF 1>&2 8578 8579*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8580*** create shared libraries on Solaris systems. Therefore, libtool 8581*** is disabling shared libraries support. We urge you to upgrade GNU 8582*** binutils to release 2.9.1 or newer. Another option is to modify 8583*** your PATH or compiler configuration so that the native linker is 8584*** used, and then restart. 8585 8586_LT_EOF 8587 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8589 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8590 else 8591 ld_shlibs=no 8592 fi 8593 ;; 8594 8595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8596 case `$LD -v 2>&1` in 8597 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8598 ld_shlibs=no 8599 cat <<_LT_EOF 1>&2 8600 8601*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8602*** reliably create shared libraries on SCO systems. Therefore, libtool 8603*** is disabling shared libraries support. We urge you to upgrade GNU 8604*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8605*** your PATH or compiler configuration so that the native linker is 8606*** used, and then restart. 8607 8608_LT_EOF 8609 ;; 8610 *) 8611 # For security reasons, it is highly recommended that you always 8612 # use absolute paths for naming shared libraries, and exclude the 8613 # DT_RUNPATH tag from executables and libraries. But doing so 8614 # requires that you compile everything twice, which is a pain. 8615 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8618 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8619 else 8620 ld_shlibs=no 8621 fi 8622 ;; 8623 esac 8624 ;; 8625 8626 sunos4*) 8627 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8628 wlarc= 8629 hardcode_direct=yes 8630 hardcode_shlibpath_var=no 8631 ;; 8632 8633 *) 8634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8637 else 8638 ld_shlibs=no 8639 fi 8640 ;; 8641 esac 8642 8643 if test "$ld_shlibs" = no; then 8644 runpath_var= 8645 hardcode_libdir_flag_spec= 8646 export_dynamic_flag_spec= 8647 whole_archive_flag_spec= 8648 fi 8649 else 8650 # PORTME fill in a description of your system's linker (not GNU ld) 8651 case $host_os in 8652 aix3*) 8653 allow_undefined_flag=unsupported 8654 always_export_symbols=yes 8655 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' 8656 # Note: this linker hardcodes the directories in LIBPATH if there 8657 # are no directories specified by -L. 8658 hardcode_minus_L=yes 8659 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8660 # Neither direct hardcoding nor static linking is supported with a 8661 # broken collect2. 8662 hardcode_direct=unsupported 8663 fi 8664 ;; 8665 8666 aix[4-9]*) 8667 if test "$host_cpu" = ia64; then 8668 # On IA64, the linker does run time linking by default, so we don't 8669 # have to do anything special. 8670 aix_use_runtimelinking=no 8671 exp_sym_flag='-Bexport' 8672 no_entry_flag="" 8673 else 8674 # If we're using GNU nm, then we don't want the "-C" option. 8675 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8676 # Also, AIX nm treats weak defined symbols like other global 8677 # defined symbols, whereas GNU nm marks them as "W". 8678 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8679 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' 8680 else 8681 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' 8682 fi 8683 aix_use_runtimelinking=no 8684 8685 # Test if we are trying to use run time linking or normal 8686 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8687 # need to do runtime linking. 8688 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8689 for ld_flag in $LDFLAGS; do 8690 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8691 aix_use_runtimelinking=yes 8692 break 8693 fi 8694 done 8695 ;; 8696 esac 8697 8698 exp_sym_flag='-bexport' 8699 no_entry_flag='-bnoentry' 8700 fi 8701 8702 # When large executables or shared objects are built, AIX ld can 8703 # have problems creating the table of contents. If linking a library 8704 # or program results in "error TOC overflow" add -mminimal-toc to 8705 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8706 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8707 8708 archive_cmds='' 8709 hardcode_direct=yes 8710 hardcode_direct_absolute=yes 8711 hardcode_libdir_separator=':' 8712 link_all_deplibs=yes 8713 file_list_spec='${wl}-f,' 8714 8715 if test "$GCC" = yes; then 8716 case $host_os in aix4.[012]|aix4.[012].*) 8717 # We only want to do this on AIX 4.2 and lower, the check 8718 # below for broken collect2 doesn't work under 4.3+ 8719 collect2name=`${CC} -print-prog-name=collect2` 8720 if test -f "$collect2name" && 8721 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8722 then 8723 # We have reworked collect2 8724 : 8725 else 8726 # We have old collect2 8727 hardcode_direct=unsupported 8728 # It fails to find uninstalled libraries when the uninstalled 8729 # path is not listed in the libpath. Setting hardcode_minus_L 8730 # to unsupported forces relinking 8731 hardcode_minus_L=yes 8732 hardcode_libdir_flag_spec='-L$libdir' 8733 hardcode_libdir_separator= 8734 fi 8735 ;; 8736 esac 8737 shared_flag='-shared' 8738 if test "$aix_use_runtimelinking" = yes; then 8739 shared_flag="$shared_flag "'${wl}-G' 8740 fi 8741 else 8742 # not using gcc 8743 if test "$host_cpu" = ia64; then 8744 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8745 # chokes on -Wl,-G. The following line is correct: 8746 shared_flag='-G' 8747 else 8748 if test "$aix_use_runtimelinking" = yes; then 8749 shared_flag='${wl}-G' 8750 else 8751 shared_flag='${wl}-bM:SRE' 8752 fi 8753 fi 8754 fi 8755 8756 export_dynamic_flag_spec='${wl}-bexpall' 8757 # It seems that -bexpall does not export symbols beginning with 8758 # underscore (_), so it is better to generate a list of symbols to export. 8759 always_export_symbols=yes 8760 if test "$aix_use_runtimelinking" = yes; then 8761 # Warning - without using the other runtime loading flags (-brtl), 8762 # -berok will link without error, but may produce a broken library. 8763 allow_undefined_flag='-berok' 8764 # Determine the default libpath from the value encoded in an 8765 # empty executable. 8766 if test x$gcc_no_link = xyes; then 8767 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8768fi 8769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8770/* end confdefs.h. */ 8771 8772int 8773main () 8774{ 8775 8776 ; 8777 return 0; 8778} 8779_ACEOF 8780if ac_fn_c_try_link "$LINENO"; then : 8781 8782lt_aix_libpath_sed=' 8783 /Import File Strings/,/^$/ { 8784 /^0/ { 8785 s/^0 *\(.*\)$/\1/ 8786 p 8787 } 8788 }' 8789aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8790# Check for a 64-bit object if we didn't find anything. 8791if test -z "$aix_libpath"; then 8792 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8793fi 8794fi 8795rm -f core conftest.err conftest.$ac_objext \ 8796 conftest$ac_exeext conftest.$ac_ext 8797if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8798 8799 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8800 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" 8801 else 8802 if test "$host_cpu" = ia64; then 8803 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8804 allow_undefined_flag="-z nodefs" 8805 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" 8806 else 8807 # Determine the default libpath from the value encoded in an 8808 # empty executable. 8809 if test x$gcc_no_link = xyes; then 8810 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8811fi 8812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8813/* end confdefs.h. */ 8814 8815int 8816main () 8817{ 8818 8819 ; 8820 return 0; 8821} 8822_ACEOF 8823if ac_fn_c_try_link "$LINENO"; then : 8824 8825lt_aix_libpath_sed=' 8826 /Import File Strings/,/^$/ { 8827 /^0/ { 8828 s/^0 *\(.*\)$/\1/ 8829 p 8830 } 8831 }' 8832aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8833# Check for a 64-bit object if we didn't find anything. 8834if test -z "$aix_libpath"; then 8835 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8836fi 8837fi 8838rm -f core conftest.err conftest.$ac_objext \ 8839 conftest$ac_exeext conftest.$ac_ext 8840if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8841 8842 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8843 # Warning - without using the other run time loading flags, 8844 # -berok will link without error, but may produce a broken library. 8845 no_undefined_flag=' ${wl}-bernotok' 8846 allow_undefined_flag=' ${wl}-berok' 8847 if test "$with_gnu_ld" = yes; then 8848 # We only use this code for GNU lds that support --whole-archive. 8849 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8850 else 8851 # Exported symbols can be pulled into shared objects from archives 8852 whole_archive_flag_spec='$convenience' 8853 fi 8854 archive_cmds_need_lc=yes 8855 # This is similar to how AIX traditionally builds its shared libraries. 8856 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' 8857 fi 8858 fi 8859 ;; 8860 8861 amigaos*) 8862 case $host_cpu in 8863 powerpc) 8864 # see comment about AmigaOS4 .so support 8865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8866 archive_expsym_cmds='' 8867 ;; 8868 m68k) 8869 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)' 8870 hardcode_libdir_flag_spec='-L$libdir' 8871 hardcode_minus_L=yes 8872 ;; 8873 esac 8874 ;; 8875 8876 bsdi[45]*) 8877 export_dynamic_flag_spec=-rdynamic 8878 ;; 8879 8880 cygwin* | mingw* | pw32* | cegcc*) 8881 # When not using gcc, we currently assume that we are using 8882 # Microsoft Visual C++. 8883 # hardcode_libdir_flag_spec is actually meaningless, as there is 8884 # no search path for DLLs. 8885 hardcode_libdir_flag_spec=' ' 8886 allow_undefined_flag=unsupported 8887 # Tell ltmain to make .lib files, not .a files. 8888 libext=lib 8889 # Tell ltmain to make .dll files, not .so files. 8890 shrext_cmds=".dll" 8891 # FIXME: Setting linknames here is a bad hack. 8892 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8893 # The linker will automatically build a .lib file if we build a DLL. 8894 old_archive_from_new_cmds='true' 8895 # FIXME: Should let the user specify the lib program. 8896 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8897 fix_srcfile_path='`cygpath -w "$srcfile"`' 8898 enable_shared_with_static_runtimes=yes 8899 ;; 8900 8901 darwin* | rhapsody*) 8902 8903 8904 archive_cmds_need_lc=no 8905 hardcode_direct=no 8906 hardcode_automatic=yes 8907 hardcode_shlibpath_var=unsupported 8908 if test "$lt_cv_ld_force_load" = "yes"; then 8909 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\"`' 8910 else 8911 whole_archive_flag_spec='' 8912 fi 8913 link_all_deplibs=yes 8914 allow_undefined_flag="$_lt_dar_allow_undefined" 8915 case $cc_basename in 8916 ifort*) _lt_dar_can_shared=yes ;; 8917 *) _lt_dar_can_shared=$GCC ;; 8918 esac 8919 if test "$_lt_dar_can_shared" = "yes"; then 8920 output_verbose_link_cmd=func_echo_all 8921 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8922 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8923 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}" 8924 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}" 8925 8926 else 8927 ld_shlibs=no 8928 fi 8929 8930 ;; 8931 8932 dgux*) 8933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8934 hardcode_libdir_flag_spec='-L$libdir' 8935 hardcode_shlibpath_var=no 8936 ;; 8937 8938 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8939 # support. Future versions do this automatically, but an explicit c++rt0.o 8940 # does not break anything, and helps significantly (at the cost of a little 8941 # extra space). 8942 freebsd2.2*) 8943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8944 hardcode_libdir_flag_spec='-R$libdir' 8945 hardcode_direct=yes 8946 hardcode_shlibpath_var=no 8947 ;; 8948 8949 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8950 freebsd2.*) 8951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8952 hardcode_direct=yes 8953 hardcode_minus_L=yes 8954 hardcode_shlibpath_var=no 8955 ;; 8956 8957 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8958 freebsd* | dragonfly*) 8959 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8960 hardcode_libdir_flag_spec='-R$libdir' 8961 hardcode_direct=yes 8962 hardcode_shlibpath_var=no 8963 ;; 8964 8965 hpux9*) 8966 if test "$GCC" = yes; then 8967 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' 8968 else 8969 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' 8970 fi 8971 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8972 hardcode_libdir_separator=: 8973 hardcode_direct=yes 8974 8975 # hardcode_minus_L: Not really in the search PATH, 8976 # but as the default location of the library. 8977 hardcode_minus_L=yes 8978 export_dynamic_flag_spec='${wl}-E' 8979 ;; 8980 8981 hpux10*) 8982 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8983 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8984 else 8985 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8986 fi 8987 if test "$with_gnu_ld" = no; then 8988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8989 hardcode_libdir_flag_spec_ld='+b $libdir' 8990 hardcode_libdir_separator=: 8991 hardcode_direct=yes 8992 hardcode_direct_absolute=yes 8993 export_dynamic_flag_spec='${wl}-E' 8994 # hardcode_minus_L: Not really in the search PATH, 8995 # but as the default location of the library. 8996 hardcode_minus_L=yes 8997 fi 8998 ;; 8999 9000 hpux11*) 9001 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9002 case $host_cpu in 9003 hppa*64*) 9004 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9005 ;; 9006 ia64*) 9007 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9008 ;; 9009 *) 9010 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9011 ;; 9012 esac 9013 else 9014 case $host_cpu in 9015 hppa*64*) 9016 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9017 ;; 9018 ia64*) 9019 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9020 ;; 9021 *) 9022 9023 # Older versions of the 11.00 compiler do not understand -b yet 9024 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9026$as_echo_n "checking if $CC understands -b... " >&6; } 9027if ${lt_cv_prog_compiler__b+:} false; then : 9028 $as_echo_n "(cached) " >&6 9029else 9030 lt_cv_prog_compiler__b=no 9031 save_LDFLAGS="$LDFLAGS" 9032 LDFLAGS="$LDFLAGS -b" 9033 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9034 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9035 # The linker can only warn and ignore the option if not recognized 9036 # So say no if there are warnings 9037 if test -s conftest.err; then 9038 # Append any errors to the config.log. 9039 cat conftest.err 1>&5 9040 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9042 if diff conftest.exp conftest.er2 >/dev/null; then 9043 lt_cv_prog_compiler__b=yes 9044 fi 9045 else 9046 lt_cv_prog_compiler__b=yes 9047 fi 9048 fi 9049 $RM -r conftest* 9050 LDFLAGS="$save_LDFLAGS" 9051 9052fi 9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9054$as_echo "$lt_cv_prog_compiler__b" >&6; } 9055 9056if test x"$lt_cv_prog_compiler__b" = xyes; then 9057 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9058else 9059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9060fi 9061 9062 ;; 9063 esac 9064 fi 9065 if test "$with_gnu_ld" = no; then 9066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9067 hardcode_libdir_separator=: 9068 9069 case $host_cpu in 9070 hppa*64*|ia64*) 9071 hardcode_direct=no 9072 hardcode_shlibpath_var=no 9073 ;; 9074 *) 9075 hardcode_direct=yes 9076 hardcode_direct_absolute=yes 9077 export_dynamic_flag_spec='${wl}-E' 9078 9079 # hardcode_minus_L: Not really in the search PATH, 9080 # but as the default location of the library. 9081 hardcode_minus_L=yes 9082 ;; 9083 esac 9084 fi 9085 ;; 9086 9087 irix5* | irix6* | nonstopux*) 9088 if test "$GCC" = yes; then 9089 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' 9090 # Try to use the -exported_symbol ld option, if it does not 9091 # work, assume that -exports_file does not work either and 9092 # implicitly export all symbols. 9093 save_LDFLAGS="$LDFLAGS" 9094 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9095 if test x$gcc_no_link = xyes; then 9096 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 9097fi 9098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9099/* end confdefs.h. */ 9100int foo(void) {} 9101_ACEOF 9102if ac_fn_c_try_link "$LINENO"; then : 9103 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' 9104 9105fi 9106rm -f core conftest.err conftest.$ac_objext \ 9107 conftest$ac_exeext conftest.$ac_ext 9108 LDFLAGS="$save_LDFLAGS" 9109 else 9110 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' 9111 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' 9112 fi 9113 archive_cmds_need_lc='no' 9114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9115 hardcode_libdir_separator=: 9116 inherit_rpath=yes 9117 link_all_deplibs=yes 9118 ;; 9119 9120 netbsd*) 9121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9122 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9123 else 9124 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9125 fi 9126 hardcode_libdir_flag_spec='-R$libdir' 9127 hardcode_direct=yes 9128 hardcode_shlibpath_var=no 9129 ;; 9130 9131 newsos6) 9132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9133 hardcode_direct=yes 9134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9135 hardcode_libdir_separator=: 9136 hardcode_shlibpath_var=no 9137 ;; 9138 9139 *nto* | *qnx*) 9140 ;; 9141 9142 openbsd*) 9143 if test -f /usr/libexec/ld.so; then 9144 hardcode_direct=yes 9145 hardcode_shlibpath_var=no 9146 hardcode_direct_absolute=yes 9147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9148 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9149 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9150 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9151 export_dynamic_flag_spec='${wl}-E' 9152 else 9153 case $host_os in 9154 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9156 hardcode_libdir_flag_spec='-R$libdir' 9157 ;; 9158 *) 9159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9160 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9161 ;; 9162 esac 9163 fi 9164 else 9165 ld_shlibs=no 9166 fi 9167 ;; 9168 9169 os2*) 9170 hardcode_libdir_flag_spec='-L$libdir' 9171 hardcode_minus_L=yes 9172 allow_undefined_flag=unsupported 9173 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' 9174 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9175 ;; 9176 9177 osf3*) 9178 if test "$GCC" = yes; then 9179 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9180 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' 9181 else 9182 allow_undefined_flag=' -expect_unresolved \*' 9183 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' 9184 fi 9185 archive_cmds_need_lc='no' 9186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9187 hardcode_libdir_separator=: 9188 ;; 9189 9190 osf4* | osf5*) # as osf3* with the addition of -msym flag 9191 if test "$GCC" = yes; then 9192 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9193 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' 9194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9195 else 9196 allow_undefined_flag=' -expect_unresolved \*' 9197 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' 9198 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~ 9199 $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' 9200 9201 # Both c and cxx compiler support -rpath directly 9202 hardcode_libdir_flag_spec='-rpath $libdir' 9203 fi 9204 archive_cmds_need_lc='no' 9205 hardcode_libdir_separator=: 9206 ;; 9207 9208 solaris*) 9209 no_undefined_flag=' -z defs' 9210 if test "$GCC" = yes; then 9211 wlarc='${wl}' 9212 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9213 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9214 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9215 else 9216 case `$CC -V 2>&1` in 9217 *"Compilers 5.0"*) 9218 wlarc='' 9219 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9220 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9221 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9222 ;; 9223 *) 9224 wlarc='${wl}' 9225 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9226 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9227 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9228 ;; 9229 esac 9230 fi 9231 hardcode_libdir_flag_spec='-R$libdir' 9232 hardcode_shlibpath_var=no 9233 case $host_os in 9234 solaris2.[0-5] | solaris2.[0-5].*) ;; 9235 *) 9236 # The compiler driver will combine and reorder linker options, 9237 # but understands `-z linker_flag'. GCC discards it without `$wl', 9238 # but is careful enough not to reorder. 9239 # Supported since Solaris 2.6 (maybe 2.5.1?) 9240 if test "$GCC" = yes; then 9241 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9242 else 9243 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9244 fi 9245 ;; 9246 esac 9247 link_all_deplibs=yes 9248 ;; 9249 9250 sunos4*) 9251 if test "x$host_vendor" = xsequent; then 9252 # Use $CC to link under sequent, because it throws in some extra .o 9253 # files that make .init and .fini sections work. 9254 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9255 else 9256 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9257 fi 9258 hardcode_libdir_flag_spec='-L$libdir' 9259 hardcode_direct=yes 9260 hardcode_minus_L=yes 9261 hardcode_shlibpath_var=no 9262 ;; 9263 9264 sysv4) 9265 case $host_vendor in 9266 sni) 9267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9268 hardcode_direct=yes # is this really true??? 9269 ;; 9270 siemens) 9271 ## LD is ld it makes a PLAMLIB 9272 ## CC just makes a GrossModule. 9273 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9274 reload_cmds='$CC -r -o $output$reload_objs' 9275 hardcode_direct=no 9276 ;; 9277 motorola) 9278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9279 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9280 ;; 9281 esac 9282 runpath_var='LD_RUN_PATH' 9283 hardcode_shlibpath_var=no 9284 ;; 9285 9286 sysv4.3*) 9287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9288 hardcode_shlibpath_var=no 9289 export_dynamic_flag_spec='-Bexport' 9290 ;; 9291 9292 sysv4*MP*) 9293 if test -d /usr/nec; then 9294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9295 hardcode_shlibpath_var=no 9296 runpath_var=LD_RUN_PATH 9297 hardcode_runpath_var=yes 9298 ld_shlibs=yes 9299 fi 9300 ;; 9301 9302 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9303 no_undefined_flag='${wl}-z,text' 9304 archive_cmds_need_lc=no 9305 hardcode_shlibpath_var=no 9306 runpath_var='LD_RUN_PATH' 9307 9308 if test "$GCC" = yes; then 9309 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9310 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9311 else 9312 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9313 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9314 fi 9315 ;; 9316 9317 sysv5* | sco3.2v5* | sco5v6*) 9318 # Note: We can NOT use -z defs as we might desire, because we do not 9319 # link with -lc, and that would cause any symbols used from libc to 9320 # always be unresolved, which means just about no library would 9321 # ever link correctly. If we're not using GNU ld we use -z text 9322 # though, which does catch some bad symbols but isn't as heavy-handed 9323 # as -z defs. 9324 no_undefined_flag='${wl}-z,text' 9325 allow_undefined_flag='${wl}-z,nodefs' 9326 archive_cmds_need_lc=no 9327 hardcode_shlibpath_var=no 9328 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9329 hardcode_libdir_separator=':' 9330 link_all_deplibs=yes 9331 export_dynamic_flag_spec='${wl}-Bexport' 9332 runpath_var='LD_RUN_PATH' 9333 9334 if test "$GCC" = yes; then 9335 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9336 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9337 else 9338 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9339 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9340 fi 9341 ;; 9342 9343 uts4*) 9344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9345 hardcode_libdir_flag_spec='-L$libdir' 9346 hardcode_shlibpath_var=no 9347 ;; 9348 9349 *) 9350 ld_shlibs=no 9351 ;; 9352 esac 9353 9354 if test x$host_vendor = xsni; then 9355 case $host in 9356 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9357 export_dynamic_flag_spec='${wl}-Blargedynsym' 9358 ;; 9359 esac 9360 fi 9361 fi 9362 9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9364$as_echo "$ld_shlibs" >&6; } 9365test "$ld_shlibs" = no && can_build_shared=no 9366 9367with_gnu_ld=$with_gnu_ld 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383# 9384# Do we need to explicitly link libc? 9385# 9386case "x$archive_cmds_need_lc" in 9387x|xyes) 9388 # Assume -lc should be added 9389 archive_cmds_need_lc=yes 9390 9391 if test "$enable_shared" = yes && test "$GCC" = yes; then 9392 case $archive_cmds in 9393 *'~'*) 9394 # FIXME: we may have to deal with multi-command sequences. 9395 ;; 9396 '$CC '*) 9397 # Test whether the compiler implicitly links with -lc since on some 9398 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9399 # to ld, don't add -lc before -lgcc. 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9401$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9402if ${lt_cv_archive_cmds_need_lc+:} false; then : 9403 $as_echo_n "(cached) " >&6 9404else 9405 $RM conftest* 9406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9407 9408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9409 (eval $ac_compile) 2>&5 9410 ac_status=$? 9411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9412 test $ac_status = 0; } 2>conftest.err; then 9413 soname=conftest 9414 lib=conftest 9415 libobjs=conftest.$ac_objext 9416 deplibs= 9417 wl=$lt_prog_compiler_wl 9418 pic_flag=$lt_prog_compiler_pic 9419 compiler_flags=-v 9420 linker_flags=-v 9421 verstring= 9422 output_objdir=. 9423 libname=conftest 9424 lt_save_allow_undefined_flag=$allow_undefined_flag 9425 allow_undefined_flag= 9426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9427 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9428 ac_status=$? 9429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9430 test $ac_status = 0; } 9431 then 9432 lt_cv_archive_cmds_need_lc=no 9433 else 9434 lt_cv_archive_cmds_need_lc=yes 9435 fi 9436 allow_undefined_flag=$lt_save_allow_undefined_flag 9437 else 9438 cat conftest.err 1>&5 9439 fi 9440 $RM conftest* 9441 9442fi 9443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9444$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9445 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9446 ;; 9447 esac 9448 fi 9449 ;; 9450esac 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9609$as_echo_n "checking dynamic linker characteristics... " >&6; } 9610 9611if test "$GCC" = yes; then 9612 case $host_os in 9613 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9614 *) lt_awk_arg="/^libraries:/" ;; 9615 esac 9616 case $host_os in 9617 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9618 *) lt_sed_strip_eq="s,=/,/,g" ;; 9619 esac 9620 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9621 case $lt_search_path_spec in 9622 *\;*) 9623 # if the path contains ";" then we assume it to be the separator 9624 # otherwise default to the standard path separator (i.e. ":") - it is 9625 # assumed that no part of a normal pathname contains ";" but that should 9626 # okay in the real world where ";" in dirpaths is itself problematic. 9627 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9628 ;; 9629 *) 9630 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9631 ;; 9632 esac 9633 # Ok, now we have the path, separated by spaces, we can step through it 9634 # and add multilib dir if necessary. 9635 lt_tmp_lt_search_path_spec= 9636 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9637 for lt_sys_path in $lt_search_path_spec; do 9638 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9639 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9640 else 9641 test -d "$lt_sys_path" && \ 9642 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9643 fi 9644 done 9645 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9646BEGIN {RS=" "; FS="/|\n";} { 9647 lt_foo=""; 9648 lt_count=0; 9649 for (lt_i = NF; lt_i > 0; lt_i--) { 9650 if ($lt_i != "" && $lt_i != ".") { 9651 if ($lt_i == "..") { 9652 lt_count++; 9653 } else { 9654 if (lt_count == 0) { 9655 lt_foo="/" $lt_i lt_foo; 9656 } else { 9657 lt_count--; 9658 } 9659 } 9660 } 9661 } 9662 if (lt_foo != "") { lt_freq[lt_foo]++; } 9663 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9664}'` 9665 # AWK program above erroneously prepends '/' to C:/dos/paths 9666 # for these hosts. 9667 case $host_os in 9668 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9669 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9670 esac 9671 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9672else 9673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9674fi 9675library_names_spec= 9676libname_spec='lib$name' 9677soname_spec= 9678shrext_cmds=".so" 9679postinstall_cmds= 9680postuninstall_cmds= 9681finish_cmds= 9682finish_eval= 9683shlibpath_var= 9684shlibpath_overrides_runpath=unknown 9685version_type=none 9686dynamic_linker="$host_os ld.so" 9687sys_lib_dlsearch_path_spec="/lib /usr/lib" 9688need_lib_prefix=unknown 9689hardcode_into_libs=no 9690 9691# when you set need_version to no, make sure it does not cause -set_version 9692# flags to be left without arguments 9693need_version=unknown 9694 9695case $host_os in 9696aix3*) 9697 version_type=linux 9698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9699 shlibpath_var=LIBPATH 9700 9701 # AIX 3 has no versioning support, so we append a major version to the name. 9702 soname_spec='${libname}${release}${shared_ext}$major' 9703 ;; 9704 9705aix[4-9]*) 9706 version_type=linux 9707 need_lib_prefix=no 9708 need_version=no 9709 hardcode_into_libs=yes 9710 if test "$host_cpu" = ia64; then 9711 # AIX 5 supports IA64 9712 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9713 shlibpath_var=LD_LIBRARY_PATH 9714 else 9715 # With GCC up to 2.95.x, collect2 would create an import file 9716 # for dependence libraries. The import file would start with 9717 # the line `#! .'. This would cause the generated library to 9718 # depend on `.', always an invalid library. This was fixed in 9719 # development snapshots of GCC prior to 3.0. 9720 case $host_os in 9721 aix4 | aix4.[01] | aix4.[01].*) 9722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9723 echo ' yes ' 9724 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9725 : 9726 else 9727 can_build_shared=no 9728 fi 9729 ;; 9730 esac 9731 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9732 # soname into executable. Probably we can add versioning support to 9733 # collect2, so additional links can be useful in future. 9734 if test "$aix_use_runtimelinking" = yes; then 9735 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9736 # instead of lib<name>.a to let people know that these are not 9737 # typical AIX shared libraries. 9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9739 else 9740 # We preserve .a as extension for shared libraries through AIX4.2 9741 # and later when we are not doing run time linking. 9742 library_names_spec='${libname}${release}.a $libname.a' 9743 soname_spec='${libname}${release}${shared_ext}$major' 9744 fi 9745 shlibpath_var=LIBPATH 9746 fi 9747 ;; 9748 9749amigaos*) 9750 case $host_cpu in 9751 powerpc) 9752 # Since July 2007 AmigaOS4 officially supports .so libraries. 9753 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9755 ;; 9756 m68k) 9757 library_names_spec='$libname.ixlibrary $libname.a' 9758 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9759 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' 9760 ;; 9761 esac 9762 ;; 9763 9764beos*) 9765 library_names_spec='${libname}${shared_ext}' 9766 dynamic_linker="$host_os ld.so" 9767 shlibpath_var=LIBRARY_PATH 9768 ;; 9769 9770bsdi[45]*) 9771 version_type=linux 9772 need_version=no 9773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9774 soname_spec='${libname}${release}${shared_ext}$major' 9775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9776 shlibpath_var=LD_LIBRARY_PATH 9777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9779 # the default ld.so.conf also contains /usr/contrib/lib and 9780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9781 # libtool to hard-code these into programs 9782 ;; 9783 9784cygwin* | mingw* | pw32* | cegcc*) 9785 version_type=windows 9786 shrext_cmds=".dll" 9787 need_version=no 9788 need_lib_prefix=no 9789 9790 case $GCC,$host_os in 9791 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9792 library_names_spec='$libname.dll.a' 9793 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9794 postinstall_cmds='base_file=`basename \${file}`~ 9795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9796 dldir=$destdir/`dirname \$dlpath`~ 9797 test -d \$dldir || mkdir -p \$dldir~ 9798 $install_prog $dir/$dlname \$dldir/$dlname~ 9799 chmod a+x \$dldir/$dlname~ 9800 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9801 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9802 fi' 9803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9804 dlpath=$dir/\$dldll~ 9805 $RM \$dlpath' 9806 shlibpath_overrides_runpath=yes 9807 9808 case $host_os in 9809 cygwin*) 9810 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9811 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9812 9813 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9814 ;; 9815 mingw* | cegcc*) 9816 # MinGW DLLs use traditional 'lib' prefix 9817 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9818 ;; 9819 pw32*) 9820 # pw32 DLLs use 'pw' prefix rather than 'lib' 9821 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9822 ;; 9823 esac 9824 ;; 9825 9826 *) 9827 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9828 ;; 9829 esac 9830 dynamic_linker='Win32 ld.exe' 9831 # FIXME: first we should search . and the directory the executable is in 9832 shlibpath_var=PATH 9833 ;; 9834 9835darwin* | rhapsody*) 9836 dynamic_linker="$host_os dyld" 9837 version_type=darwin 9838 need_lib_prefix=no 9839 need_version=no 9840 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9841 soname_spec='${libname}${release}${major}$shared_ext' 9842 shlibpath_overrides_runpath=yes 9843 shlibpath_var=DYLD_LIBRARY_PATH 9844 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9845 9846 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9847 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9848 ;; 9849 9850dgux*) 9851 version_type=linux 9852 need_lib_prefix=no 9853 need_version=no 9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9855 soname_spec='${libname}${release}${shared_ext}$major' 9856 shlibpath_var=LD_LIBRARY_PATH 9857 ;; 9858 9859freebsd* | dragonfly*) 9860 # DragonFly does not have aout. When/if they implement a new 9861 # versioning mechanism, adjust this. 9862 if test -x /usr/bin/objformat; then 9863 objformat=`/usr/bin/objformat` 9864 else 9865 case $host_os in 9866 freebsd[23].*) objformat=aout ;; 9867 *) objformat=elf ;; 9868 esac 9869 fi 9870 version_type=freebsd-$objformat 9871 case $version_type in 9872 freebsd-elf*) 9873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9874 need_version=no 9875 need_lib_prefix=no 9876 ;; 9877 freebsd-*) 9878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9879 need_version=yes 9880 ;; 9881 esac 9882 shlibpath_var=LD_LIBRARY_PATH 9883 case $host_os in 9884 freebsd2.*) 9885 shlibpath_overrides_runpath=yes 9886 ;; 9887 freebsd3.[01]* | freebsdelf3.[01]*) 9888 shlibpath_overrides_runpath=yes 9889 hardcode_into_libs=yes 9890 ;; 9891 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9892 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9893 shlibpath_overrides_runpath=no 9894 hardcode_into_libs=yes 9895 ;; 9896 *) # from 4.6 on, and DragonFly 9897 shlibpath_overrides_runpath=yes 9898 hardcode_into_libs=yes 9899 ;; 9900 esac 9901 ;; 9902 9903haiku*) 9904 version_type=linux 9905 need_lib_prefix=no 9906 need_version=no 9907 dynamic_linker="$host_os runtime_loader" 9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9909 soname_spec='${libname}${release}${shared_ext}$major' 9910 shlibpath_var=LIBRARY_PATH 9911 shlibpath_overrides_runpath=yes 9912 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 9913 hardcode_into_libs=yes 9914 ;; 9915 9916hpux9* | hpux10* | hpux11*) 9917 # Give a soname corresponding to the major version so that dld.sl refuses to 9918 # link against other versions. 9919 version_type=sunos 9920 need_lib_prefix=no 9921 need_version=no 9922 case $host_cpu in 9923 ia64*) 9924 shrext_cmds='.so' 9925 hardcode_into_libs=yes 9926 dynamic_linker="$host_os dld.so" 9927 shlibpath_var=LD_LIBRARY_PATH 9928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9930 soname_spec='${libname}${release}${shared_ext}$major' 9931 if test "X$HPUX_IA64_MODE" = X32; then 9932 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9933 else 9934 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9935 fi 9936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9937 ;; 9938 hppa*64*) 9939 shrext_cmds='.sl' 9940 hardcode_into_libs=yes 9941 dynamic_linker="$host_os dld.sl" 9942 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9945 soname_spec='${libname}${release}${shared_ext}$major' 9946 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9948 ;; 9949 *) 9950 shrext_cmds='.sl' 9951 dynamic_linker="$host_os dld.sl" 9952 shlibpath_var=SHLIB_PATH 9953 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9955 soname_spec='${libname}${release}${shared_ext}$major' 9956 ;; 9957 esac 9958 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 9959 postinstall_cmds='chmod 555 $lib' 9960 # or fails outright, so override atomically: 9961 install_override_mode=555 9962 ;; 9963 9964interix[3-9]*) 9965 version_type=linux 9966 need_lib_prefix=no 9967 need_version=no 9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9969 soname_spec='${libname}${release}${shared_ext}$major' 9970 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9971 shlibpath_var=LD_LIBRARY_PATH 9972 shlibpath_overrides_runpath=no 9973 hardcode_into_libs=yes 9974 ;; 9975 9976irix5* | irix6* | nonstopux*) 9977 case $host_os in 9978 nonstopux*) version_type=nonstopux ;; 9979 *) 9980 if test "$lt_cv_prog_gnu_ld" = yes; then 9981 version_type=linux 9982 else 9983 version_type=irix 9984 fi ;; 9985 esac 9986 need_lib_prefix=no 9987 need_version=no 9988 soname_spec='${libname}${release}${shared_ext}$major' 9989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9990 case $host_os in 9991 irix5* | nonstopux*) 9992 libsuff= shlibsuff= 9993 ;; 9994 *) 9995 case $LD in # libtool.m4 will add one of these switches to LD 9996 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9997 libsuff= shlibsuff= libmagic=32-bit;; 9998 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9999 libsuff=32 shlibsuff=N32 libmagic=N32;; 10000 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10001 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10002 *) libsuff= shlibsuff= libmagic=never-match;; 10003 esac 10004 ;; 10005 esac 10006 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10007 shlibpath_overrides_runpath=no 10008 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10009 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10010 hardcode_into_libs=yes 10011 ;; 10012 10013# No shared lib support for Linux oldld, aout, or coff. 10014linux*oldld* | linux*aout* | linux*coff*) 10015 dynamic_linker=no 10016 ;; 10017 10018# This must be Linux ELF. 10019linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10020 version_type=linux 10021 need_lib_prefix=no 10022 need_version=no 10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10024 soname_spec='${libname}${release}${shared_ext}$major' 10025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10026 shlibpath_var=LD_LIBRARY_PATH 10027 shlibpath_overrides_runpath=no 10028 10029 # Some binutils ld are patched to set DT_RUNPATH 10030 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10031 $as_echo_n "(cached) " >&6 10032else 10033 lt_cv_shlibpath_overrides_runpath=no 10034 save_LDFLAGS=$LDFLAGS 10035 save_libdir=$libdir 10036 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10037 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10038 if test x$gcc_no_link = xyes; then 10039 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10040fi 10041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10042/* end confdefs.h. */ 10043 10044int 10045main () 10046{ 10047 10048 ; 10049 return 0; 10050} 10051_ACEOF 10052if ac_fn_c_try_link "$LINENO"; then : 10053 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10054 lt_cv_shlibpath_overrides_runpath=yes 10055fi 10056fi 10057rm -f core conftest.err conftest.$ac_objext \ 10058 conftest$ac_exeext conftest.$ac_ext 10059 LDFLAGS=$save_LDFLAGS 10060 libdir=$save_libdir 10061 10062fi 10063 10064 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10065 10066 # This implies no fast_install, which is unacceptable. 10067 # Some rework will be needed to allow for fast_install 10068 # before this can be enabled. 10069 hardcode_into_libs=yes 10070 10071 # Append ld.so.conf contents to the search path 10072 if test -f /etc/ld.so.conf; then 10073 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' ' '` 10074 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10075 fi 10076 10077 # We used to test for /lib/ld.so.1 and disable shared libraries on 10078 # powerpc, because MkLinux only supported shared libraries with the 10079 # GNU dynamic linker. Since this was broken with cross compilers, 10080 # most powerpc-linux boxes support dynamic linking these days and 10081 # people can always --disable-shared, the test was removed, and we 10082 # assume the GNU/Linux dynamic linker is in use. 10083 dynamic_linker='GNU/Linux ld.so' 10084 ;; 10085 10086netbsd*) 10087 version_type=sunos 10088 need_lib_prefix=no 10089 need_version=no 10090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10093 dynamic_linker='NetBSD (a.out) ld.so' 10094 else 10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10096 soname_spec='${libname}${release}${shared_ext}$major' 10097 dynamic_linker='NetBSD ld.elf_so' 10098 fi 10099 shlibpath_var=LD_LIBRARY_PATH 10100 shlibpath_overrides_runpath=yes 10101 hardcode_into_libs=yes 10102 ;; 10103 10104newsos6) 10105 version_type=linux 10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10107 shlibpath_var=LD_LIBRARY_PATH 10108 shlibpath_overrides_runpath=yes 10109 ;; 10110 10111*nto* | *qnx*) 10112 version_type=qnx 10113 need_lib_prefix=no 10114 need_version=no 10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10116 soname_spec='${libname}${release}${shared_ext}$major' 10117 shlibpath_var=LD_LIBRARY_PATH 10118 shlibpath_overrides_runpath=no 10119 hardcode_into_libs=yes 10120 dynamic_linker='ldqnx.so' 10121 ;; 10122 10123openbsd*) 10124 version_type=sunos 10125 sys_lib_dlsearch_path_spec="/usr/lib" 10126 need_lib_prefix=no 10127 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10128 case $host_os in 10129 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10130 *) need_version=no ;; 10131 esac 10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10134 shlibpath_var=LD_LIBRARY_PATH 10135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10136 case $host_os in 10137 openbsd2.[89] | openbsd2.[89].*) 10138 shlibpath_overrides_runpath=no 10139 ;; 10140 *) 10141 shlibpath_overrides_runpath=yes 10142 ;; 10143 esac 10144 else 10145 shlibpath_overrides_runpath=yes 10146 fi 10147 ;; 10148 10149os2*) 10150 libname_spec='$name' 10151 shrext_cmds=".dll" 10152 need_lib_prefix=no 10153 library_names_spec='$libname${shared_ext} $libname.a' 10154 dynamic_linker='OS/2 ld.exe' 10155 shlibpath_var=LIBPATH 10156 ;; 10157 10158osf3* | osf4* | osf5*) 10159 version_type=osf 10160 need_lib_prefix=no 10161 need_version=no 10162 soname_spec='${libname}${release}${shared_ext}$major' 10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10164 shlibpath_var=LD_LIBRARY_PATH 10165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10166 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10167 ;; 10168 10169rdos*) 10170 dynamic_linker=no 10171 ;; 10172 10173solaris*) 10174 version_type=linux 10175 need_lib_prefix=no 10176 need_version=no 10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10178 soname_spec='${libname}${release}${shared_ext}$major' 10179 shlibpath_var=LD_LIBRARY_PATH 10180 shlibpath_overrides_runpath=yes 10181 hardcode_into_libs=yes 10182 # ldd complains unless libraries are executable 10183 postinstall_cmds='chmod +x $lib' 10184 ;; 10185 10186sunos4*) 10187 version_type=sunos 10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10189 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10190 shlibpath_var=LD_LIBRARY_PATH 10191 shlibpath_overrides_runpath=yes 10192 if test "$with_gnu_ld" = yes; then 10193 need_lib_prefix=no 10194 fi 10195 need_version=yes 10196 ;; 10197 10198sysv4 | sysv4.3*) 10199 version_type=linux 10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10201 soname_spec='${libname}${release}${shared_ext}$major' 10202 shlibpath_var=LD_LIBRARY_PATH 10203 case $host_vendor in 10204 sni) 10205 shlibpath_overrides_runpath=no 10206 need_lib_prefix=no 10207 runpath_var=LD_RUN_PATH 10208 ;; 10209 siemens) 10210 need_lib_prefix=no 10211 ;; 10212 motorola) 10213 need_lib_prefix=no 10214 need_version=no 10215 shlibpath_overrides_runpath=no 10216 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10217 ;; 10218 esac 10219 ;; 10220 10221sysv4*MP*) 10222 if test -d /usr/nec ;then 10223 version_type=linux 10224 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10225 soname_spec='$libname${shared_ext}.$major' 10226 shlibpath_var=LD_LIBRARY_PATH 10227 fi 10228 ;; 10229 10230sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10231 version_type=freebsd-elf 10232 need_lib_prefix=no 10233 need_version=no 10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10235 soname_spec='${libname}${release}${shared_ext}$major' 10236 shlibpath_var=LD_LIBRARY_PATH 10237 shlibpath_overrides_runpath=yes 10238 hardcode_into_libs=yes 10239 if test "$with_gnu_ld" = yes; then 10240 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10241 else 10242 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10243 case $host_os in 10244 sco3.2v5*) 10245 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10246 ;; 10247 esac 10248 fi 10249 sys_lib_dlsearch_path_spec='/usr/lib' 10250 ;; 10251 10252tpf*) 10253 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10254 version_type=linux 10255 need_lib_prefix=no 10256 need_version=no 10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10258 shlibpath_var=LD_LIBRARY_PATH 10259 shlibpath_overrides_runpath=no 10260 hardcode_into_libs=yes 10261 ;; 10262 10263uts4*) 10264 version_type=linux 10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10266 soname_spec='${libname}${release}${shared_ext}$major' 10267 shlibpath_var=LD_LIBRARY_PATH 10268 ;; 10269 10270*) 10271 dynamic_linker=no 10272 ;; 10273esac 10274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10275$as_echo "$dynamic_linker" >&6; } 10276test "$dynamic_linker" = no && can_build_shared=no 10277 10278variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10279if test "$GCC" = yes; then 10280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10281fi 10282 10283if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10284 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10285fi 10286if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10287 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10288fi 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10382$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10383hardcode_action= 10384if test -n "$hardcode_libdir_flag_spec" || 10385 test -n "$runpath_var" || 10386 test "X$hardcode_automatic" = "Xyes" ; then 10387 10388 # We can hardcode non-existent directories. 10389 if test "$hardcode_direct" != no && 10390 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10391 # have to relink, otherwise we might link with an installed library 10392 # when we should be linking with a yet-to-be-installed one 10393 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10394 test "$hardcode_minus_L" != no; then 10395 # Linking always hardcodes the temporary library directory. 10396 hardcode_action=relink 10397 else 10398 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10399 hardcode_action=immediate 10400 fi 10401else 10402 # We cannot hardcode anything, or else we can only hardcode existing 10403 # directories. 10404 hardcode_action=unsupported 10405fi 10406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10407$as_echo "$hardcode_action" >&6; } 10408 10409if test "$hardcode_action" = relink || 10410 test "$inherit_rpath" = yes; then 10411 # Fast installation is not supported 10412 enable_fast_install=no 10413elif test "$shlibpath_overrides_runpath" = yes || 10414 test "$enable_shared" = no; then 10415 # Fast installation is not necessary 10416 enable_fast_install=needless 10417fi 10418 10419 10420 10421 10422 10423 10424 if test "x$enable_dlopen" != xyes; then 10425 enable_dlopen=unknown 10426 enable_dlopen_self=unknown 10427 enable_dlopen_self_static=unknown 10428else 10429 lt_cv_dlopen=no 10430 lt_cv_dlopen_libs= 10431 10432 case $host_os in 10433 beos*) 10434 lt_cv_dlopen="load_add_on" 10435 lt_cv_dlopen_libs= 10436 lt_cv_dlopen_self=yes 10437 ;; 10438 10439 mingw* | pw32* | cegcc*) 10440 lt_cv_dlopen="LoadLibrary" 10441 lt_cv_dlopen_libs= 10442 ;; 10443 10444 cygwin*) 10445 lt_cv_dlopen="dlopen" 10446 lt_cv_dlopen_libs= 10447 ;; 10448 10449 darwin*) 10450 # if libdl is installed we need to link against it 10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10452$as_echo_n "checking for dlopen in -ldl... " >&6; } 10453if ${ac_cv_lib_dl_dlopen+:} false; then : 10454 $as_echo_n "(cached) " >&6 10455else 10456 ac_check_lib_save_LIBS=$LIBS 10457LIBS="-ldl $LIBS" 10458if test x$gcc_no_link = xyes; then 10459 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10460fi 10461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10462/* end confdefs.h. */ 10463 10464/* Override any GCC internal prototype to avoid an error. 10465 Use char because int might match the return type of a GCC 10466 builtin and then its argument prototype would still apply. */ 10467#ifdef __cplusplus 10468extern "C" 10469#endif 10470char dlopen (); 10471int 10472main () 10473{ 10474return dlopen (); 10475 ; 10476 return 0; 10477} 10478_ACEOF 10479if ac_fn_c_try_link "$LINENO"; then : 10480 ac_cv_lib_dl_dlopen=yes 10481else 10482 ac_cv_lib_dl_dlopen=no 10483fi 10484rm -f core conftest.err conftest.$ac_objext \ 10485 conftest$ac_exeext conftest.$ac_ext 10486LIBS=$ac_check_lib_save_LIBS 10487fi 10488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10489$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10490if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10491 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10492else 10493 10494 lt_cv_dlopen="dyld" 10495 lt_cv_dlopen_libs= 10496 lt_cv_dlopen_self=yes 10497 10498fi 10499 10500 ;; 10501 10502 *) 10503 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10504if test "x$ac_cv_func_shl_load" = xyes; then : 10505 lt_cv_dlopen="shl_load" 10506else 10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10508$as_echo_n "checking for shl_load in -ldld... " >&6; } 10509if ${ac_cv_lib_dld_shl_load+:} false; then : 10510 $as_echo_n "(cached) " >&6 10511else 10512 ac_check_lib_save_LIBS=$LIBS 10513LIBS="-ldld $LIBS" 10514if test x$gcc_no_link = xyes; then 10515 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10516fi 10517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10518/* end confdefs.h. */ 10519 10520/* Override any GCC internal prototype to avoid an error. 10521 Use char because int might match the return type of a GCC 10522 builtin and then its argument prototype would still apply. */ 10523#ifdef __cplusplus 10524extern "C" 10525#endif 10526char shl_load (); 10527int 10528main () 10529{ 10530return shl_load (); 10531 ; 10532 return 0; 10533} 10534_ACEOF 10535if ac_fn_c_try_link "$LINENO"; then : 10536 ac_cv_lib_dld_shl_load=yes 10537else 10538 ac_cv_lib_dld_shl_load=no 10539fi 10540rm -f core conftest.err conftest.$ac_objext \ 10541 conftest$ac_exeext conftest.$ac_ext 10542LIBS=$ac_check_lib_save_LIBS 10543fi 10544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10545$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10546if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10547 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10548else 10549 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10550if test "x$ac_cv_func_dlopen" = xyes; then : 10551 lt_cv_dlopen="dlopen" 10552else 10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10554$as_echo_n "checking for dlopen in -ldl... " >&6; } 10555if ${ac_cv_lib_dl_dlopen+:} false; then : 10556 $as_echo_n "(cached) " >&6 10557else 10558 ac_check_lib_save_LIBS=$LIBS 10559LIBS="-ldl $LIBS" 10560if test x$gcc_no_link = xyes; then 10561 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10562fi 10563cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10564/* end confdefs.h. */ 10565 10566/* Override any GCC internal prototype to avoid an error. 10567 Use char because int might match the return type of a GCC 10568 builtin and then its argument prototype would still apply. */ 10569#ifdef __cplusplus 10570extern "C" 10571#endif 10572char dlopen (); 10573int 10574main () 10575{ 10576return dlopen (); 10577 ; 10578 return 0; 10579} 10580_ACEOF 10581if ac_fn_c_try_link "$LINENO"; then : 10582 ac_cv_lib_dl_dlopen=yes 10583else 10584 ac_cv_lib_dl_dlopen=no 10585fi 10586rm -f core conftest.err conftest.$ac_objext \ 10587 conftest$ac_exeext conftest.$ac_ext 10588LIBS=$ac_check_lib_save_LIBS 10589fi 10590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10591$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10592if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10593 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10594else 10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10596$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10597if ${ac_cv_lib_svld_dlopen+:} false; then : 10598 $as_echo_n "(cached) " >&6 10599else 10600 ac_check_lib_save_LIBS=$LIBS 10601LIBS="-lsvld $LIBS" 10602if test x$gcc_no_link = xyes; then 10603 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10604fi 10605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10606/* end confdefs.h. */ 10607 10608/* Override any GCC internal prototype to avoid an error. 10609 Use char because int might match the return type of a GCC 10610 builtin and then its argument prototype would still apply. */ 10611#ifdef __cplusplus 10612extern "C" 10613#endif 10614char dlopen (); 10615int 10616main () 10617{ 10618return dlopen (); 10619 ; 10620 return 0; 10621} 10622_ACEOF 10623if ac_fn_c_try_link "$LINENO"; then : 10624 ac_cv_lib_svld_dlopen=yes 10625else 10626 ac_cv_lib_svld_dlopen=no 10627fi 10628rm -f core conftest.err conftest.$ac_objext \ 10629 conftest$ac_exeext conftest.$ac_ext 10630LIBS=$ac_check_lib_save_LIBS 10631fi 10632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10633$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10634if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10636else 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10638$as_echo_n "checking for dld_link in -ldld... " >&6; } 10639if ${ac_cv_lib_dld_dld_link+:} false; then : 10640 $as_echo_n "(cached) " >&6 10641else 10642 ac_check_lib_save_LIBS=$LIBS 10643LIBS="-ldld $LIBS" 10644if test x$gcc_no_link = xyes; then 10645 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10646fi 10647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10648/* end confdefs.h. */ 10649 10650/* Override any GCC internal prototype to avoid an error. 10651 Use char because int might match the return type of a GCC 10652 builtin and then its argument prototype would still apply. */ 10653#ifdef __cplusplus 10654extern "C" 10655#endif 10656char dld_link (); 10657int 10658main () 10659{ 10660return dld_link (); 10661 ; 10662 return 0; 10663} 10664_ACEOF 10665if ac_fn_c_try_link "$LINENO"; then : 10666 ac_cv_lib_dld_dld_link=yes 10667else 10668 ac_cv_lib_dld_dld_link=no 10669fi 10670rm -f core conftest.err conftest.$ac_objext \ 10671 conftest$ac_exeext conftest.$ac_ext 10672LIBS=$ac_check_lib_save_LIBS 10673fi 10674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10675$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10676if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10677 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10678fi 10679 10680 10681fi 10682 10683 10684fi 10685 10686 10687fi 10688 10689 10690fi 10691 10692 10693fi 10694 10695 ;; 10696 esac 10697 10698 if test "x$lt_cv_dlopen" != xno; then 10699 enable_dlopen=yes 10700 else 10701 enable_dlopen=no 10702 fi 10703 10704 case $lt_cv_dlopen in 10705 dlopen) 10706 save_CPPFLAGS="$CPPFLAGS" 10707 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10708 10709 save_LDFLAGS="$LDFLAGS" 10710 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10711 10712 save_LIBS="$LIBS" 10713 LIBS="$lt_cv_dlopen_libs $LIBS" 10714 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10716$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10717if ${lt_cv_dlopen_self+:} false; then : 10718 $as_echo_n "(cached) " >&6 10719else 10720 if test "$cross_compiling" = yes; then : 10721 lt_cv_dlopen_self=cross 10722else 10723 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10724 lt_status=$lt_dlunknown 10725 cat > conftest.$ac_ext <<_LT_EOF 10726#line 10726 "configure" 10727#include "confdefs.h" 10728 10729#if HAVE_DLFCN_H 10730#include <dlfcn.h> 10731#endif 10732 10733#include <stdio.h> 10734 10735#ifdef RTLD_GLOBAL 10736# define LT_DLGLOBAL RTLD_GLOBAL 10737#else 10738# ifdef DL_GLOBAL 10739# define LT_DLGLOBAL DL_GLOBAL 10740# else 10741# define LT_DLGLOBAL 0 10742# endif 10743#endif 10744 10745/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10746 find out it does not work in some platform. */ 10747#ifndef LT_DLLAZY_OR_NOW 10748# ifdef RTLD_LAZY 10749# define LT_DLLAZY_OR_NOW RTLD_LAZY 10750# else 10751# ifdef DL_LAZY 10752# define LT_DLLAZY_OR_NOW DL_LAZY 10753# else 10754# ifdef RTLD_NOW 10755# define LT_DLLAZY_OR_NOW RTLD_NOW 10756# else 10757# ifdef DL_NOW 10758# define LT_DLLAZY_OR_NOW DL_NOW 10759# else 10760# define LT_DLLAZY_OR_NOW 0 10761# endif 10762# endif 10763# endif 10764# endif 10765#endif 10766 10767/* When -fvisbility=hidden is used, assume the code has been annotated 10768 correspondingly for the symbols needed. */ 10769#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10770void fnord () __attribute__((visibility("default"))); 10771#endif 10772 10773void fnord () { int i=42; } 10774int main () 10775{ 10776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10777 int status = $lt_dlunknown; 10778 10779 if (self) 10780 { 10781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10782 else 10783 { 10784 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10785 else puts (dlerror ()); 10786 } 10787 /* dlclose (self); */ 10788 } 10789 else 10790 puts (dlerror ()); 10791 10792 return status; 10793} 10794_LT_EOF 10795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10796 (eval $ac_link) 2>&5 10797 ac_status=$? 10798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10799 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10800 (./conftest; exit; ) >&5 2>/dev/null 10801 lt_status=$? 10802 case x$lt_status in 10803 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10804 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10805 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10806 esac 10807 else : 10808 # compilation failed 10809 lt_cv_dlopen_self=no 10810 fi 10811fi 10812rm -fr conftest* 10813 10814 10815fi 10816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10817$as_echo "$lt_cv_dlopen_self" >&6; } 10818 10819 if test "x$lt_cv_dlopen_self" = xyes; then 10820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10822$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10823if ${lt_cv_dlopen_self_static+:} false; then : 10824 $as_echo_n "(cached) " >&6 10825else 10826 if test "$cross_compiling" = yes; then : 10827 lt_cv_dlopen_self_static=cross 10828else 10829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10830 lt_status=$lt_dlunknown 10831 cat > conftest.$ac_ext <<_LT_EOF 10832#line 10832 "configure" 10833#include "confdefs.h" 10834 10835#if HAVE_DLFCN_H 10836#include <dlfcn.h> 10837#endif 10838 10839#include <stdio.h> 10840 10841#ifdef RTLD_GLOBAL 10842# define LT_DLGLOBAL RTLD_GLOBAL 10843#else 10844# ifdef DL_GLOBAL 10845# define LT_DLGLOBAL DL_GLOBAL 10846# else 10847# define LT_DLGLOBAL 0 10848# endif 10849#endif 10850 10851/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10852 find out it does not work in some platform. */ 10853#ifndef LT_DLLAZY_OR_NOW 10854# ifdef RTLD_LAZY 10855# define LT_DLLAZY_OR_NOW RTLD_LAZY 10856# else 10857# ifdef DL_LAZY 10858# define LT_DLLAZY_OR_NOW DL_LAZY 10859# else 10860# ifdef RTLD_NOW 10861# define LT_DLLAZY_OR_NOW RTLD_NOW 10862# else 10863# ifdef DL_NOW 10864# define LT_DLLAZY_OR_NOW DL_NOW 10865# else 10866# define LT_DLLAZY_OR_NOW 0 10867# endif 10868# endif 10869# endif 10870# endif 10871#endif 10872 10873/* When -fvisbility=hidden is used, assume the code has been annotated 10874 correspondingly for the symbols needed. */ 10875#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10876void fnord () __attribute__((visibility("default"))); 10877#endif 10878 10879void fnord () { int i=42; } 10880int main () 10881{ 10882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10883 int status = $lt_dlunknown; 10884 10885 if (self) 10886 { 10887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10888 else 10889 { 10890 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10891 else puts (dlerror ()); 10892 } 10893 /* dlclose (self); */ 10894 } 10895 else 10896 puts (dlerror ()); 10897 10898 return status; 10899} 10900_LT_EOF 10901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10902 (eval $ac_link) 2>&5 10903 ac_status=$? 10904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10905 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10906 (./conftest; exit; ) >&5 2>/dev/null 10907 lt_status=$? 10908 case x$lt_status in 10909 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10910 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10911 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10912 esac 10913 else : 10914 # compilation failed 10915 lt_cv_dlopen_self_static=no 10916 fi 10917fi 10918rm -fr conftest* 10919 10920 10921fi 10922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10923$as_echo "$lt_cv_dlopen_self_static" >&6; } 10924 fi 10925 10926 CPPFLAGS="$save_CPPFLAGS" 10927 LDFLAGS="$save_LDFLAGS" 10928 LIBS="$save_LIBS" 10929 ;; 10930 esac 10931 10932 case $lt_cv_dlopen_self in 10933 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10934 *) enable_dlopen_self=unknown ;; 10935 esac 10936 10937 case $lt_cv_dlopen_self_static in 10938 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10939 *) enable_dlopen_self_static=unknown ;; 10940 esac 10941fi 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959striplib= 10960old_striplib= 10961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10962$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10963if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10964 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10965 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10967$as_echo "yes" >&6; } 10968else 10969# FIXME - insert some real tests, host_os isn't really good enough 10970 case $host_os in 10971 darwin*) 10972 if test -n "$STRIP" ; then 10973 striplib="$STRIP -x" 10974 old_striplib="$STRIP -S" 10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10976$as_echo "yes" >&6; } 10977 else 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10979$as_echo "no" >&6; } 10980 fi 10981 ;; 10982 *) 10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10984$as_echo "no" >&6; } 10985 ;; 10986 esac 10987fi 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 # Report which library types will actually be built 11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11002$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11004$as_echo "$can_build_shared" >&6; } 11005 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11007$as_echo_n "checking whether to build shared libraries... " >&6; } 11008 test "$can_build_shared" = "no" && enable_shared=no 11009 11010 # On AIX, shared libraries and static libraries use the same namespace, and 11011 # are all built from PIC. 11012 case $host_os in 11013 aix3*) 11014 test "$enable_shared" = yes && enable_static=no 11015 if test -n "$RANLIB"; then 11016 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11017 postinstall_cmds='$RANLIB $lib' 11018 fi 11019 ;; 11020 11021 aix[4-9]*) 11022 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11023 test "$enable_shared" = yes && enable_static=no 11024 fi 11025 ;; 11026 esac 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11028$as_echo "$enable_shared" >&6; } 11029 11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11031$as_echo_n "checking whether to build static libraries... " >&6; } 11032 # Make sure either enable_shared or enable_static is yes. 11033 test "$enable_shared" = yes || enable_static=yes 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11035$as_echo "$enable_static" >&6; } 11036 11037 11038 11039 11040fi 11041ac_ext=c 11042ac_cpp='$CPP $CPPFLAGS' 11043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11045ac_compiler_gnu=$ac_cv_c_compiler_gnu 11046 11047CC="$lt_save_CC" 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 ac_config_commands="$ac_config_commands libtool" 11062 11063 11064 11065 11066# Only expand once: 11067 11068 11069 11070# Find CPP now so that any conditional tests below won't do it and 11071# thereby make the resulting definitions conditional. 11072ac_ext=c 11073ac_cpp='$CPP $CPPFLAGS' 11074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11076ac_compiler_gnu=$ac_cv_c_compiler_gnu 11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 11078$as_echo_n "checking how to run the C preprocessor... " >&6; } 11079# On Suns, sometimes $CPP names a directory. 11080if test -n "$CPP" && test -d "$CPP"; then 11081 CPP= 11082fi 11083if test -z "$CPP"; then 11084 if ${ac_cv_prog_CPP+:} false; then : 11085 $as_echo_n "(cached) " >&6 11086else 11087 # Double quotes because CPP needs to be expanded 11088 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 11089 do 11090 ac_preproc_ok=false 11091for ac_c_preproc_warn_flag in '' yes 11092do 11093 # Use a header file that comes with gcc, so configuring glibc 11094 # with a fresh cross-compiler works. 11095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11096 # <limits.h> exists even on freestanding compilers. 11097 # On the NeXT, cc -E runs the code through the compiler's parser, 11098 # not just through cpp. "Syntax error" is here to catch this case. 11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11100/* end confdefs.h. */ 11101#ifdef __STDC__ 11102# include <limits.h> 11103#else 11104# include <assert.h> 11105#endif 11106 Syntax error 11107_ACEOF 11108if ac_fn_c_try_cpp "$LINENO"; then : 11109 11110else 11111 # Broken: fails on valid input. 11112continue 11113fi 11114rm -f conftest.err conftest.i conftest.$ac_ext 11115 11116 # OK, works on sane cases. Now check whether nonexistent headers 11117 # can be detected and how. 11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11119/* end confdefs.h. */ 11120#include <ac_nonexistent.h> 11121_ACEOF 11122if ac_fn_c_try_cpp "$LINENO"; then : 11123 # Broken: success on invalid input. 11124continue 11125else 11126 # Passes both tests. 11127ac_preproc_ok=: 11128break 11129fi 11130rm -f conftest.err conftest.i conftest.$ac_ext 11131 11132done 11133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11134rm -f conftest.i conftest.err conftest.$ac_ext 11135if $ac_preproc_ok; then : 11136 break 11137fi 11138 11139 done 11140 ac_cv_prog_CPP=$CPP 11141 11142fi 11143 CPP=$ac_cv_prog_CPP 11144else 11145 ac_cv_prog_CPP=$CPP 11146fi 11147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 11148$as_echo "$CPP" >&6; } 11149ac_preproc_ok=false 11150for ac_c_preproc_warn_flag in '' yes 11151do 11152 # Use a header file that comes with gcc, so configuring glibc 11153 # with a fresh cross-compiler works. 11154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11155 # <limits.h> exists even on freestanding compilers. 11156 # On the NeXT, cc -E runs the code through the compiler's parser, 11157 # not just through cpp. "Syntax error" is here to catch this case. 11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11159/* end confdefs.h. */ 11160#ifdef __STDC__ 11161# include <limits.h> 11162#else 11163# include <assert.h> 11164#endif 11165 Syntax error 11166_ACEOF 11167if ac_fn_c_try_cpp "$LINENO"; then : 11168 11169else 11170 # Broken: fails on valid input. 11171continue 11172fi 11173rm -f conftest.err conftest.i conftest.$ac_ext 11174 11175 # OK, works on sane cases. Now check whether nonexistent headers 11176 # can be detected and how. 11177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11178/* end confdefs.h. */ 11179#include <ac_nonexistent.h> 11180_ACEOF 11181if ac_fn_c_try_cpp "$LINENO"; then : 11182 # Broken: success on invalid input. 11183continue 11184else 11185 # Passes both tests. 11186ac_preproc_ok=: 11187break 11188fi 11189rm -f conftest.err conftest.i conftest.$ac_ext 11190 11191done 11192# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11193rm -f conftest.i conftest.err conftest.$ac_ext 11194if $ac_preproc_ok; then : 11195 11196else 11197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11199as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 11200See \`config.log' for more details" "$LINENO" 5; } 11201fi 11202 11203ac_ext=c 11204ac_cpp='$CPP $CPPFLAGS' 11205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11207ac_compiler_gnu=$ac_cv_c_compiler_gnu 11208 11209 11210if test -n "$with_cross_host"; then 11211 # We are being configured with a cross compiler. AC_REPLACE_FUNCS 11212 # may not work correctly, because the compiler may not be able to 11213 # link executables. 11214 11215 # We assume newlib. This lets us hard-code the functions we know 11216 # we'll have. 11217 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h 11218 11219 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 11220 11221 11222 # We ignore --with-system-zlib in this case. 11223 target_all=libzgcj.la 11224else 11225 if test x$gcc_no_link = xyes; then 11226 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then 11227 ac_cv_func_mmap_fixed_mapped=no 11228 fi 11229fi 11230if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then 11231 11232 11233 11234 for ac_header in $ac_header_list 11235do : 11236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11237ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 11238" 11239if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11240 cat >>confdefs.h <<_ACEOF 11241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11242_ACEOF 11243 11244fi 11245 11246done 11247 11248 11249 11250 11251 11252 11253 11254 11255for ac_func in getpagesize 11256do : 11257 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 11258if test "x$ac_cv_func_getpagesize" = xyes; then : 11259 cat >>confdefs.h <<_ACEOF 11260#define HAVE_GETPAGESIZE 1 11261_ACEOF 11262 11263fi 11264done 11265 11266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 11267$as_echo_n "checking for working mmap... " >&6; } 11268if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 11269 $as_echo_n "(cached) " >&6 11270else 11271 if test "$cross_compiling" = yes; then : 11272 ac_cv_func_mmap_fixed_mapped=no 11273else 11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11275/* end confdefs.h. */ 11276$ac_includes_default 11277/* malloc might have been renamed as rpl_malloc. */ 11278#undef malloc 11279 11280/* Thanks to Mike Haertel and Jim Avera for this test. 11281 Here is a matrix of mmap possibilities: 11282 mmap private not fixed 11283 mmap private fixed at somewhere currently unmapped 11284 mmap private fixed at somewhere already mapped 11285 mmap shared not fixed 11286 mmap shared fixed at somewhere currently unmapped 11287 mmap shared fixed at somewhere already mapped 11288 For private mappings, we should verify that changes cannot be read() 11289 back from the file, nor mmap's back from the file at a different 11290 address. (There have been systems where private was not correctly 11291 implemented like the infamous i386 svr4.0, and systems where the 11292 VM page cache was not coherent with the file system buffer cache 11293 like early versions of FreeBSD and possibly contemporary NetBSD.) 11294 For shared mappings, we should conversely verify that changes get 11295 propagated back to all the places they're supposed to be. 11296 11297 Grep wants private fixed already mapped. 11298 The main things grep needs to know about mmap are: 11299 * does it exist and is it safe to write into the mmap'd area 11300 * how to use it (BSD variants) */ 11301 11302#include <fcntl.h> 11303#include <sys/mman.h> 11304 11305#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 11306char *malloc (); 11307#endif 11308 11309/* This mess was copied from the GNU getpagesize.h. */ 11310#ifndef HAVE_GETPAGESIZE 11311# ifdef _SC_PAGESIZE 11312# define getpagesize() sysconf(_SC_PAGESIZE) 11313# else /* no _SC_PAGESIZE */ 11314# ifdef HAVE_SYS_PARAM_H 11315# include <sys/param.h> 11316# ifdef EXEC_PAGESIZE 11317# define getpagesize() EXEC_PAGESIZE 11318# else /* no EXEC_PAGESIZE */ 11319# ifdef NBPG 11320# define getpagesize() NBPG * CLSIZE 11321# ifndef CLSIZE 11322# define CLSIZE 1 11323# endif /* no CLSIZE */ 11324# else /* no NBPG */ 11325# ifdef NBPC 11326# define getpagesize() NBPC 11327# else /* no NBPC */ 11328# ifdef PAGESIZE 11329# define getpagesize() PAGESIZE 11330# endif /* PAGESIZE */ 11331# endif /* no NBPC */ 11332# endif /* no NBPG */ 11333# endif /* no EXEC_PAGESIZE */ 11334# else /* no HAVE_SYS_PARAM_H */ 11335# define getpagesize() 8192 /* punt totally */ 11336# endif /* no HAVE_SYS_PARAM_H */ 11337# endif /* no _SC_PAGESIZE */ 11338 11339#endif /* no HAVE_GETPAGESIZE */ 11340 11341int 11342main () 11343{ 11344 char *data, *data2, *data3; 11345 const char *cdata2; 11346 int i, pagesize; 11347 int fd, fd2; 11348 11349 pagesize = getpagesize (); 11350 11351 /* First, make a file with some known garbage in it. */ 11352 data = (char *) malloc (pagesize); 11353 if (!data) 11354 return 1; 11355 for (i = 0; i < pagesize; ++i) 11356 *(data + i) = rand (); 11357 umask (0); 11358 fd = creat ("conftest.mmap", 0600); 11359 if (fd < 0) 11360 return 2; 11361 if (write (fd, data, pagesize) != pagesize) 11362 return 3; 11363 close (fd); 11364 11365 /* Next, check that the tail of a page is zero-filled. File must have 11366 non-zero length, otherwise we risk SIGBUS for entire page. */ 11367 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 11368 if (fd2 < 0) 11369 return 4; 11370 cdata2 = ""; 11371 if (write (fd2, cdata2, 1) != 1) 11372 return 5; 11373 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 11374 if (data2 == MAP_FAILED) 11375 return 6; 11376 for (i = 0; i < pagesize; ++i) 11377 if (*(data2 + i)) 11378 return 7; 11379 close (fd2); 11380 if (munmap (data2, pagesize)) 11381 return 8; 11382 11383 /* Next, try to mmap the file at a fixed address which already has 11384 something else allocated at it. If we can, also make sure that 11385 we see the same garbage. */ 11386 fd = open ("conftest.mmap", O_RDWR); 11387 if (fd < 0) 11388 return 9; 11389 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 11390 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 11391 return 10; 11392 for (i = 0; i < pagesize; ++i) 11393 if (*(data + i) != *(data2 + i)) 11394 return 11; 11395 11396 /* Finally, make sure that changes to the mapped area do not 11397 percolate back to the file as seen by read(). (This is a bug on 11398 some variants of i386 svr4.0.) */ 11399 for (i = 0; i < pagesize; ++i) 11400 *(data2 + i) = *(data2 + i) + 1; 11401 data3 = (char *) malloc (pagesize); 11402 if (!data3) 11403 return 12; 11404 if (read (fd, data3, pagesize) != pagesize) 11405 return 13; 11406 for (i = 0; i < pagesize; ++i) 11407 if (*(data + i) != *(data3 + i)) 11408 return 14; 11409 close (fd); 11410 return 0; 11411} 11412_ACEOF 11413if ac_fn_c_try_run "$LINENO"; then : 11414 ac_cv_func_mmap_fixed_mapped=yes 11415else 11416 ac_cv_func_mmap_fixed_mapped=no 11417fi 11418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11419 conftest.$ac_objext conftest.beam conftest.$ac_ext 11420fi 11421 11422fi 11423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 11424$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 11425if test $ac_cv_func_mmap_fixed_mapped = yes; then 11426 11427$as_echo "#define HAVE_MMAP 1" >>confdefs.h 11428 11429fi 11430rm -f conftest.mmap conftest.txt 11431 11432fi 11433 for ac_func in memcpy strerror 11434do : 11435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11436ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11437if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11438 cat >>confdefs.h <<_ACEOF 11439#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11440_ACEOF 11441 11442fi 11443done 11444 11445 11446 if test "$with_system_zlib" = yes; then 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 11448$as_echo_n "checking for deflate in -lz... " >&6; } 11449if ${ac_cv_lib_z_deflate+:} false; then : 11450 $as_echo_n "(cached) " >&6 11451else 11452 ac_check_lib_save_LIBS=$LIBS 11453LIBS="-lz $LIBS" 11454if test x$gcc_no_link = xyes; then 11455 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11456fi 11457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11458/* end confdefs.h. */ 11459 11460/* Override any GCC internal prototype to avoid an error. 11461 Use char because int might match the return type of a GCC 11462 builtin and then its argument prototype would still apply. */ 11463#ifdef __cplusplus 11464extern "C" 11465#endif 11466char deflate (); 11467int 11468main () 11469{ 11470return deflate (); 11471 ; 11472 return 0; 11473} 11474_ACEOF 11475if ac_fn_c_try_link "$LINENO"; then : 11476 ac_cv_lib_z_deflate=yes 11477else 11478 ac_cv_lib_z_deflate=no 11479fi 11480rm -f core conftest.err conftest.$ac_objext \ 11481 conftest$ac_exeext conftest.$ac_ext 11482LIBS=$ac_check_lib_save_LIBS 11483fi 11484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 11485$as_echo "$ac_cv_lib_z_deflate" >&6; } 11486if test "x$ac_cv_lib_z_deflate" = xyes; then : 11487 target_all= 11488else 11489 target_all=libzgcj.la 11490fi 11491 11492 else 11493 target_all=libzgcj.la 11494 fi 11495fi 11496 11497 11498 11499for ac_header in unistd.h 11500do : 11501 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 11502if test "x$ac_cv_header_unistd_h" = xyes; then : 11503 cat >>confdefs.h <<_ACEOF 11504#define HAVE_UNISTD_H 1 11505_ACEOF 11506 11507fi 11508 11509done 11510 11511 11512if test -n "$with_cross_host" && 11513 test x"$with_cross_host" != x"no"; then 11514 toolexecdir='$(exec_prefix)/$(target_alias)' 11515 toolexeclibdir='$(toolexecdir)/lib' 11516else 11517 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 11518 toolexeclibdir='$(libdir)' 11519fi 11520if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then 11521 multiosdir=/`$CC -print-multi-os-directory` 11522 case $multiosdir in 11523 /.) multiosdir= ;; # Avoid trailing /. 11524 esac 11525else 11526 multiosdir= 11527fi 11528toolexeclibdir=${toolexeclibdir}${multiosdir} 11529 11530 11531 11532 if test -n "$with_target_subdir"; then 11533 TARGET_LIBRARY_TRUE= 11534 TARGET_LIBRARY_FALSE='#' 11535else 11536 TARGET_LIBRARY_TRUE='#' 11537 TARGET_LIBRARY_FALSE= 11538fi 11539 11540 11541if test "${multilib}" = "yes"; then 11542 multilib_arg="--enable-multilib" 11543else 11544 multilib_arg= 11545fi 11546 11547# Check whether --enable-host-shared was given. 11548if test "${enable_host_shared+set}" = set; then : 11549 enableval=$enable_host_shared; PICFLAG=-fPIC 11550else 11551 PICFLAG= 11552fi 11553 11554 11555 11556ac_config_files="$ac_config_files Makefile" 11557 11558cat >confcache <<\_ACEOF 11559# This file is a shell script that caches the results of configure 11560# tests run on this system so they can be shared between configure 11561# scripts and configure runs, see configure's option --config-cache. 11562# It is not useful on other systems. If it contains results you don't 11563# want to keep, you may remove or edit it. 11564# 11565# config.status only pays attention to the cache file if you give it 11566# the --recheck option to rerun configure. 11567# 11568# `ac_cv_env_foo' variables (set or unset) will be overridden when 11569# loading this file, other *unset* `ac_cv_foo' will be assigned the 11570# following values. 11571 11572_ACEOF 11573 11574# The following way of writing the cache mishandles newlines in values, 11575# but we know of no workaround that is simple, portable, and efficient. 11576# So, we kill variables containing newlines. 11577# Ultrix sh set writes to stderr and can't be redirected directly, 11578# and sets the high bit in the cache file unless we assign to the vars. 11579( 11580 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11581 eval ac_val=\$$ac_var 11582 case $ac_val in #( 11583 *${as_nl}*) 11584 case $ac_var in #( 11585 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11586$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11587 esac 11588 case $ac_var in #( 11589 _ | IFS | as_nl) ;; #( 11590 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11591 *) { eval $ac_var=; unset $ac_var;} ;; 11592 esac ;; 11593 esac 11594 done 11595 11596 (set) 2>&1 | 11597 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11598 *${as_nl}ac_space=\ *) 11599 # `set' does not quote correctly, so add quotes: double-quote 11600 # substitution turns \\\\ into \\, and sed turns \\ into \. 11601 sed -n \ 11602 "s/'/'\\\\''/g; 11603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11604 ;; #( 11605 *) 11606 # `set' quotes correctly as required by POSIX, so do not add quotes. 11607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11608 ;; 11609 esac | 11610 sort 11611) | 11612 sed ' 11613 /^ac_cv_env_/b end 11614 t clear 11615 :clear 11616 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11617 t end 11618 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11619 :end' >>confcache 11620if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11621 if test -w "$cache_file"; then 11622 if test "x$cache_file" != "x/dev/null"; then 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11624$as_echo "$as_me: updating cache $cache_file" >&6;} 11625 if test ! -f "$cache_file" || test -h "$cache_file"; then 11626 cat confcache >"$cache_file" 11627 else 11628 case $cache_file in #( 11629 */* | ?:*) 11630 mv -f confcache "$cache_file"$$ && 11631 mv -f "$cache_file"$$ "$cache_file" ;; #( 11632 *) 11633 mv -f confcache "$cache_file" ;; 11634 esac 11635 fi 11636 fi 11637 else 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11639$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11640 fi 11641fi 11642rm -f confcache 11643 11644test "x$prefix" = xNONE && prefix=$ac_default_prefix 11645# Let make expand exec_prefix. 11646test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11647 11648# Transform confdefs.h into DEFS. 11649# Protect against shell expansion while executing Makefile rules. 11650# Protect against Makefile macro expansion. 11651# 11652# If the first sed substitution is executed (which looks for macros that 11653# take arguments), then branch to the quote section. Otherwise, 11654# look for a macro that doesn't take arguments. 11655ac_script=' 11656:mline 11657/\\$/{ 11658 N 11659 s,\\\n,, 11660 b mline 11661} 11662t clear 11663:clear 11664s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11665t quote 11666s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11667t quote 11668b any 11669:quote 11670s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11671s/\[/\\&/g 11672s/\]/\\&/g 11673s/\$/$$/g 11674H 11675:any 11676${ 11677 g 11678 s/^\n// 11679 s/\n/ /g 11680 p 11681} 11682' 11683DEFS=`sed -n "$ac_script" confdefs.h` 11684 11685 11686ac_libobjs= 11687ac_ltlibobjs= 11688U= 11689for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11690 # 1. Remove the extension, and $U if already installed. 11691 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11692 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11693 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11694 # will be set to the directory where LIBOBJS objects are built. 11695 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11696 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11697done 11698LIBOBJS=$ac_libobjs 11699 11700LTLIBOBJS=$ac_ltlibobjs 11701 11702 11703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11704$as_echo_n "checking that generated files are newer than configure... " >&6; } 11705 if test -n "$am_sleep_pid"; then 11706 # Hide warnings about reused PIDs. 11707 wait $am_sleep_pid 2>/dev/null 11708 fi 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11710$as_echo "done" >&6; } 11711 if test -n "$EXEEXT"; then 11712 am__EXEEXT_TRUE= 11713 am__EXEEXT_FALSE='#' 11714else 11715 am__EXEEXT_TRUE='#' 11716 am__EXEEXT_FALSE= 11717fi 11718 11719if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11720 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11721Usually this means the macro was only invoked conditionally." "$LINENO" 5 11722fi 11723if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11724 as_fn_error $? "conditional \"AMDEP\" was never defined. 11725Usually this means the macro was only invoked conditionally." "$LINENO" 5 11726fi 11727if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11728 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11729Usually this means the macro was only invoked conditionally." "$LINENO" 5 11730fi 11731if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then 11732 as_fn_error $? "conditional \"TARGET_LIBRARY\" was never defined. 11733Usually this means the macro was only invoked conditionally." "$LINENO" 5 11734fi 11735 11736: "${CONFIG_STATUS=./config.status}" 11737ac_write_fail=0 11738ac_clean_files_save=$ac_clean_files 11739ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11740{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11741$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11742as_write_fail=0 11743cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11744#! $SHELL 11745# Generated by $as_me. 11746# Run this file to recreate the current configuration. 11747# Compiler output produced by configure, useful for debugging 11748# configure, is in config.log if it exists. 11749 11750debug=false 11751ac_cs_recheck=false 11752ac_cs_silent=false 11753 11754SHELL=\${CONFIG_SHELL-$SHELL} 11755export SHELL 11756_ASEOF 11757cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11758## -------------------- ## 11759## M4sh Initialization. ## 11760## -------------------- ## 11761 11762# Be more Bourne compatible 11763DUALCASE=1; export DUALCASE # for MKS sh 11764if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11765 emulate sh 11766 NULLCMD=: 11767 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11768 # is contrary to our usage. Disable this feature. 11769 alias -g '${1+"$@"}'='"$@"' 11770 setopt NO_GLOB_SUBST 11771else 11772 case `(set -o) 2>/dev/null` in #( 11773 *posix*) : 11774 set -o posix ;; #( 11775 *) : 11776 ;; 11777esac 11778fi 11779 11780 11781as_nl=' 11782' 11783export as_nl 11784# Printing a long string crashes Solaris 7 /usr/bin/printf. 11785as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11786as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11787as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11788# Prefer a ksh shell builtin over an external printf program on Solaris, 11789# but without wasting forks for bash or zsh. 11790if test -z "$BASH_VERSION$ZSH_VERSION" \ 11791 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11792 as_echo='print -r --' 11793 as_echo_n='print -rn --' 11794elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11795 as_echo='printf %s\n' 11796 as_echo_n='printf %s' 11797else 11798 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11799 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11800 as_echo_n='/usr/ucb/echo -n' 11801 else 11802 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11803 as_echo_n_body='eval 11804 arg=$1; 11805 case $arg in #( 11806 *"$as_nl"*) 11807 expr "X$arg" : "X\\(.*\\)$as_nl"; 11808 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11809 esac; 11810 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11811 ' 11812 export as_echo_n_body 11813 as_echo_n='sh -c $as_echo_n_body as_echo' 11814 fi 11815 export as_echo_body 11816 as_echo='sh -c $as_echo_body as_echo' 11817fi 11818 11819# The user is always right. 11820if test "${PATH_SEPARATOR+set}" != set; then 11821 PATH_SEPARATOR=: 11822 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11823 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11824 PATH_SEPARATOR=';' 11825 } 11826fi 11827 11828 11829# IFS 11830# We need space, tab and new line, in precisely that order. Quoting is 11831# there to prevent editors from complaining about space-tab. 11832# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11833# splitting by setting IFS to empty value.) 11834IFS=" "" $as_nl" 11835 11836# Find who we are. Look in the path if we contain no directory separator. 11837as_myself= 11838case $0 in #(( 11839 *[\\/]* ) as_myself=$0 ;; 11840 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11841for as_dir in $PATH 11842do 11843 IFS=$as_save_IFS 11844 test -z "$as_dir" && as_dir=. 11845 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11846 done 11847IFS=$as_save_IFS 11848 11849 ;; 11850esac 11851# We did not find ourselves, most probably we were run as `sh COMMAND' 11852# in which case we are not to be found in the path. 11853if test "x$as_myself" = x; then 11854 as_myself=$0 11855fi 11856if test ! -f "$as_myself"; then 11857 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11858 exit 1 11859fi 11860 11861# Unset variables that we do not need and which cause bugs (e.g. in 11862# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11863# suppresses any "Segmentation fault" message there. '((' could 11864# trigger a bug in pdksh 5.2.14. 11865for as_var in BASH_ENV ENV MAIL MAILPATH 11866do eval test x\${$as_var+set} = xset \ 11867 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11868done 11869PS1='$ ' 11870PS2='> ' 11871PS4='+ ' 11872 11873# NLS nuisances. 11874LC_ALL=C 11875export LC_ALL 11876LANGUAGE=C 11877export LANGUAGE 11878 11879# CDPATH. 11880(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11881 11882 11883# as_fn_error STATUS ERROR [LINENO LOG_FD] 11884# ---------------------------------------- 11885# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11886# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11887# script with STATUS, using 1 if that was 0. 11888as_fn_error () 11889{ 11890 as_status=$1; test $as_status -eq 0 && as_status=1 11891 if test "$4"; then 11892 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11893 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11894 fi 11895 $as_echo "$as_me: error: $2" >&2 11896 as_fn_exit $as_status 11897} # as_fn_error 11898 11899 11900# as_fn_set_status STATUS 11901# ----------------------- 11902# Set $? to STATUS, without forking. 11903as_fn_set_status () 11904{ 11905 return $1 11906} # as_fn_set_status 11907 11908# as_fn_exit STATUS 11909# ----------------- 11910# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11911as_fn_exit () 11912{ 11913 set +e 11914 as_fn_set_status $1 11915 exit $1 11916} # as_fn_exit 11917 11918# as_fn_unset VAR 11919# --------------- 11920# Portably unset VAR. 11921as_fn_unset () 11922{ 11923 { eval $1=; unset $1;} 11924} 11925as_unset=as_fn_unset 11926# as_fn_append VAR VALUE 11927# ---------------------- 11928# Append the text in VALUE to the end of the definition contained in VAR. Take 11929# advantage of any shell optimizations that allow amortized linear growth over 11930# repeated appends, instead of the typical quadratic growth present in naive 11931# implementations. 11932if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11933 eval 'as_fn_append () 11934 { 11935 eval $1+=\$2 11936 }' 11937else 11938 as_fn_append () 11939 { 11940 eval $1=\$$1\$2 11941 } 11942fi # as_fn_append 11943 11944# as_fn_arith ARG... 11945# ------------------ 11946# Perform arithmetic evaluation on the ARGs, and store the result in the 11947# global $as_val. Take advantage of shells that can avoid forks. The arguments 11948# must be portable across $(()) and expr. 11949if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11950 eval 'as_fn_arith () 11951 { 11952 as_val=$(( $* )) 11953 }' 11954else 11955 as_fn_arith () 11956 { 11957 as_val=`expr "$@" || test $? -eq 1` 11958 } 11959fi # as_fn_arith 11960 11961 11962if expr a : '\(a\)' >/dev/null 2>&1 && 11963 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11964 as_expr=expr 11965else 11966 as_expr=false 11967fi 11968 11969if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11970 as_basename=basename 11971else 11972 as_basename=false 11973fi 11974 11975if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11976 as_dirname=dirname 11977else 11978 as_dirname=false 11979fi 11980 11981as_me=`$as_basename -- "$0" || 11982$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11983 X"$0" : 'X\(//\)$' \| \ 11984 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11985$as_echo X/"$0" | 11986 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11987 s//\1/ 11988 q 11989 } 11990 /^X\/\(\/\/\)$/{ 11991 s//\1/ 11992 q 11993 } 11994 /^X\/\(\/\).*/{ 11995 s//\1/ 11996 q 11997 } 11998 s/.*/./; q'` 11999 12000# Avoid depending upon Character Ranges. 12001as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12002as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12003as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12004as_cr_digits='0123456789' 12005as_cr_alnum=$as_cr_Letters$as_cr_digits 12006 12007ECHO_C= ECHO_N= ECHO_T= 12008case `echo -n x` in #((((( 12009-n*) 12010 case `echo 'xy\c'` in 12011 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12012 xy) ECHO_C='\c';; 12013 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12014 ECHO_T=' ';; 12015 esac;; 12016*) 12017 ECHO_N='-n';; 12018esac 12019 12020rm -f conf$$ conf$$.exe conf$$.file 12021if test -d conf$$.dir; then 12022 rm -f conf$$.dir/conf$$.file 12023else 12024 rm -f conf$$.dir 12025 mkdir conf$$.dir 2>/dev/null 12026fi 12027if (echo >conf$$.file) 2>/dev/null; then 12028 if ln -s conf$$.file conf$$ 2>/dev/null; then 12029 as_ln_s='ln -s' 12030 # ... but there are two gotchas: 12031 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12032 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12033 # In both cases, we have to default to `cp -pR'. 12034 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12035 as_ln_s='cp -pR' 12036 elif ln conf$$.file conf$$ 2>/dev/null; then 12037 as_ln_s=ln 12038 else 12039 as_ln_s='cp -pR' 12040 fi 12041else 12042 as_ln_s='cp -pR' 12043fi 12044rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12045rmdir conf$$.dir 2>/dev/null 12046 12047 12048# as_fn_mkdir_p 12049# ------------- 12050# Create "$as_dir" as a directory, including parents if necessary. 12051as_fn_mkdir_p () 12052{ 12053 12054 case $as_dir in #( 12055 -*) as_dir=./$as_dir;; 12056 esac 12057 test -d "$as_dir" || eval $as_mkdir_p || { 12058 as_dirs= 12059 while :; do 12060 case $as_dir in #( 12061 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12062 *) as_qdir=$as_dir;; 12063 esac 12064 as_dirs="'$as_qdir' $as_dirs" 12065 as_dir=`$as_dirname -- "$as_dir" || 12066$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12067 X"$as_dir" : 'X\(//\)[^/]' \| \ 12068 X"$as_dir" : 'X\(//\)$' \| \ 12069 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12070$as_echo X"$as_dir" | 12071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12072 s//\1/ 12073 q 12074 } 12075 /^X\(\/\/\)[^/].*/{ 12076 s//\1/ 12077 q 12078 } 12079 /^X\(\/\/\)$/{ 12080 s//\1/ 12081 q 12082 } 12083 /^X\(\/\).*/{ 12084 s//\1/ 12085 q 12086 } 12087 s/.*/./; q'` 12088 test -d "$as_dir" && break 12089 done 12090 test -z "$as_dirs" || eval "mkdir $as_dirs" 12091 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12092 12093 12094} # as_fn_mkdir_p 12095if mkdir -p . 2>/dev/null; then 12096 as_mkdir_p='mkdir -p "$as_dir"' 12097else 12098 test -d ./-p && rmdir ./-p 12099 as_mkdir_p=false 12100fi 12101 12102 12103# as_fn_executable_p FILE 12104# ----------------------- 12105# Test if FILE is an executable regular file. 12106as_fn_executable_p () 12107{ 12108 test -f "$1" && test -x "$1" 12109} # as_fn_executable_p 12110as_test_x='test -x' 12111as_executable_p=as_fn_executable_p 12112 12113# Sed expression to map a string onto a valid CPP name. 12114as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12115 12116# Sed expression to map a string onto a valid variable name. 12117as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12118 12119 12120exec 6>&1 12121## ----------------------------------- ## 12122## Main body of $CONFIG_STATUS script. ## 12123## ----------------------------------- ## 12124_ASEOF 12125test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12126 12127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12128# Save the log message, to keep $0 and so on meaningful, and to 12129# report actual input values of CONFIG_FILES etc. instead of their 12130# values after options handling. 12131ac_log=" 12132This file was extended by zlib $as_me 1.1.4, which was 12133generated by GNU Autoconf 2.69. Invocation command line was 12134 12135 CONFIG_FILES = $CONFIG_FILES 12136 CONFIG_HEADERS = $CONFIG_HEADERS 12137 CONFIG_LINKS = $CONFIG_LINKS 12138 CONFIG_COMMANDS = $CONFIG_COMMANDS 12139 $ $0 $@ 12140 12141on `(hostname || uname -n) 2>/dev/null | sed 1q` 12142" 12143 12144_ACEOF 12145 12146case $ac_config_files in *" 12147"*) set x $ac_config_files; shift; ac_config_files=$*;; 12148esac 12149 12150 12151 12152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12153# Files that config.status was made for. 12154config_files="$ac_config_files" 12155config_commands="$ac_config_commands" 12156 12157_ACEOF 12158 12159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12160ac_cs_usage="\ 12161\`$as_me' instantiates files and other configuration actions 12162from templates according to the current configuration. Unless the files 12163and actions are specified as TAGs, all are instantiated by default. 12164 12165Usage: $0 [OPTION]... [TAG]... 12166 12167 -h, --help print this help, then exit 12168 -V, --version print version number and configuration settings, then exit 12169 --config print configuration, then exit 12170 -q, --quiet, --silent 12171 do not print progress messages 12172 -d, --debug don't remove temporary files 12173 --recheck update $as_me by reconfiguring in the same conditions 12174 --file=FILE[:TEMPLATE] 12175 instantiate the configuration file FILE 12176 12177Configuration files: 12178$config_files 12179 12180Configuration commands: 12181$config_commands 12182 12183Report bugs to the package provider." 12184 12185_ACEOF 12186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12187ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12188ac_cs_version="\\ 12189zlib config.status 1.1.4 12190configured by $0, generated by GNU Autoconf 2.69, 12191 with options \\"\$ac_cs_config\\" 12192 12193Copyright (C) 2012 Free Software Foundation, Inc. 12194This config.status script is free software; the Free Software Foundation 12195gives unlimited permission to copy, distribute and modify it." 12196 12197ac_pwd='$ac_pwd' 12198srcdir='$srcdir' 12199INSTALL='$INSTALL' 12200MKDIR_P='$MKDIR_P' 12201AWK='$AWK' 12202test -n "\$AWK" || AWK=awk 12203_ACEOF 12204 12205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12206# The default lists apply if the user does not specify any file. 12207ac_need_defaults=: 12208while test $# != 0 12209do 12210 case $1 in 12211 --*=?*) 12212 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12213 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12214 ac_shift=: 12215 ;; 12216 --*=) 12217 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12218 ac_optarg= 12219 ac_shift=: 12220 ;; 12221 *) 12222 ac_option=$1 12223 ac_optarg=$2 12224 ac_shift=shift 12225 ;; 12226 esac 12227 12228 case $ac_option in 12229 # Handling of the options. 12230 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12231 ac_cs_recheck=: ;; 12232 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12233 $as_echo "$ac_cs_version"; exit ;; 12234 --config | --confi | --conf | --con | --co | --c ) 12235 $as_echo "$ac_cs_config"; exit ;; 12236 --debug | --debu | --deb | --de | --d | -d ) 12237 debug=: ;; 12238 --file | --fil | --fi | --f ) 12239 $ac_shift 12240 case $ac_optarg in 12241 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12242 '') as_fn_error $? "missing file argument" ;; 12243 esac 12244 as_fn_append CONFIG_FILES " '$ac_optarg'" 12245 ac_need_defaults=false;; 12246 --he | --h | --help | --hel | -h ) 12247 $as_echo "$ac_cs_usage"; exit ;; 12248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12249 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12250 ac_cs_silent=: ;; 12251 12252 # This is an error. 12253 -*) as_fn_error $? "unrecognized option: \`$1' 12254Try \`$0 --help' for more information." ;; 12255 12256 *) as_fn_append ac_config_targets " $1" 12257 ac_need_defaults=false ;; 12258 12259 esac 12260 shift 12261done 12262 12263ac_configure_extra_args= 12264 12265if $ac_cs_silent; then 12266 exec 6>/dev/null 12267 ac_configure_extra_args="$ac_configure_extra_args --silent" 12268fi 12269 12270_ACEOF 12271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12272if \$ac_cs_recheck; then 12273 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12274 shift 12275 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12276 CONFIG_SHELL='$SHELL' 12277 export CONFIG_SHELL 12278 exec "\$@" 12279fi 12280 12281_ACEOF 12282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12283exec 5>>config.log 12284{ 12285 echo 12286 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12287## Running $as_me. ## 12288_ASBOX 12289 $as_echo "$ac_log" 12290} >&5 12291 12292_ACEOF 12293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12294# 12295# INIT-COMMANDS 12296# 12297 12298srcdir="$srcdir" 12299host="$host" 12300target="$target" 12301with_multisubdir="$with_multisubdir" 12302with_multisrctop="$with_multisrctop" 12303with_target_subdir="$with_target_subdir" 12304ac_configure_args="${multilib_arg} ${ac_configure_args}" 12305multi_basedir="$multi_basedir" 12306CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 12307CC="$CC" 12308CXX="$CXX" 12309GFORTRAN="$GFORTRAN" 12310GDC="$GDC" 12311AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12312 12313 12314# The HP-UX ksh and POSIX shell print the target directory to stdout 12315# if CDPATH is set. 12316(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12317 12318sed_quote_subst='$sed_quote_subst' 12319double_quote_subst='$double_quote_subst' 12320delay_variable_subst='$delay_variable_subst' 12321macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 12322macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 12323enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 12324enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 12325pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 12326enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 12327SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 12328ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 12329host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 12330host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 12331host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 12332build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 12333build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 12334build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 12335SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 12336Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 12337GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 12338EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 12339FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 12340LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 12341NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 12342LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 12343max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 12344ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 12345exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 12346lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 12347lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 12348lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 12349reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 12350reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 12351OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 12352deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 12353file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 12354AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 12355AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 12356STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 12357RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12358old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12359old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12360old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12361lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12362CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12363CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12364compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12365GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12366lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12367lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12368lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12369lt_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"`' 12370objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12371MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12372lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12373lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12374lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12375lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12376lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12377need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12378DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12379NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12380LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12381OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12382OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12383libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12384shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12385extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12386archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12387enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12388export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12389whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 12390compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 12391old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 12392old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12393archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 12394archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12395module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 12396module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12397with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12398allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12399no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12400hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12401hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 12402hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12403hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12404hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12405hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12406hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12407hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12408inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12409link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12410fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 12411always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12412export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12413exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12414include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12415prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12416file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12417variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12418need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12419need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12420version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12421runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12422shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12423shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12424libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12425library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12426soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12427install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12428postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12429postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12430finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12431finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12432hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12433sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12434sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12435hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12436enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12437enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12438enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12439old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12440striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12441 12442LTCC='$LTCC' 12443LTCFLAGS='$LTCFLAGS' 12444compiler='$compiler_DEFAULT' 12445 12446# A function that is used when there is no print builtin or printf. 12447func_fallback_echo () 12448{ 12449 eval 'cat <<_LTECHO_EOF 12450\$1 12451_LTECHO_EOF' 12452} 12453 12454# Quote evaled strings. 12455for var in SHELL \ 12456ECHO \ 12457SED \ 12458GREP \ 12459EGREP \ 12460FGREP \ 12461LD \ 12462NM \ 12463LN_S \ 12464lt_SP2NL \ 12465lt_NL2SP \ 12466reload_flag \ 12467OBJDUMP \ 12468deplibs_check_method \ 12469file_magic_cmd \ 12470AR \ 12471AR_FLAGS \ 12472STRIP \ 12473RANLIB \ 12474CC \ 12475CFLAGS \ 12476compiler \ 12477lt_cv_sys_global_symbol_pipe \ 12478lt_cv_sys_global_symbol_to_cdecl \ 12479lt_cv_sys_global_symbol_to_c_name_address \ 12480lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12481lt_prog_compiler_no_builtin_flag \ 12482lt_prog_compiler_wl \ 12483lt_prog_compiler_pic \ 12484lt_prog_compiler_static \ 12485lt_cv_prog_compiler_c_o \ 12486need_locks \ 12487DSYMUTIL \ 12488NMEDIT \ 12489LIPO \ 12490OTOOL \ 12491OTOOL64 \ 12492shrext_cmds \ 12493export_dynamic_flag_spec \ 12494whole_archive_flag_spec \ 12495compiler_needs_object \ 12496with_gnu_ld \ 12497allow_undefined_flag \ 12498no_undefined_flag \ 12499hardcode_libdir_flag_spec \ 12500hardcode_libdir_flag_spec_ld \ 12501hardcode_libdir_separator \ 12502fix_srcfile_path \ 12503exclude_expsyms \ 12504include_expsyms \ 12505file_list_spec \ 12506variables_saved_for_relink \ 12507libname_spec \ 12508library_names_spec \ 12509soname_spec \ 12510install_override_mode \ 12511finish_eval \ 12512old_striplib \ 12513striplib; do 12514 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12515 *[\\\\\\\`\\"\\\$]*) 12516 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12517 ;; 12518 *) 12519 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12520 ;; 12521 esac 12522done 12523 12524# Double-quote double-evaled strings. 12525for var in reload_cmds \ 12526old_postinstall_cmds \ 12527old_postuninstall_cmds \ 12528old_archive_cmds \ 12529extract_expsyms_cmds \ 12530old_archive_from_new_cmds \ 12531old_archive_from_expsyms_cmds \ 12532archive_cmds \ 12533archive_expsym_cmds \ 12534module_cmds \ 12535module_expsym_cmds \ 12536export_symbols_cmds \ 12537prelink_cmds \ 12538postinstall_cmds \ 12539postuninstall_cmds \ 12540finish_cmds \ 12541sys_lib_search_path_spec \ 12542sys_lib_dlsearch_path_spec; do 12543 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12544 *[\\\\\\\`\\"\\\$]*) 12545 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12546 ;; 12547 *) 12548 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12549 ;; 12550 esac 12551done 12552 12553ac_aux_dir='$ac_aux_dir' 12554xsi_shell='$xsi_shell' 12555lt_shell_append='$lt_shell_append' 12556 12557# See if we are running on zsh, and set the options which allow our 12558# commands through without removal of \ escapes INIT. 12559if test -n "\${ZSH_VERSION+set}" ; then 12560 setopt NO_GLOB_SUBST 12561fi 12562 12563 12564 PACKAGE='$PACKAGE' 12565 VERSION='$VERSION' 12566 TIMESTAMP='$TIMESTAMP' 12567 RM='$RM' 12568 ofile='$ofile' 12569 12570 12571 12572 12573_ACEOF 12574 12575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12576 12577# Handling of arguments. 12578for ac_config_target in $ac_config_targets 12579do 12580 case $ac_config_target in 12581 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 12582 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12583 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12584 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12585 12586 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12587 esac 12588done 12589 12590 12591# If the user did not use the arguments to specify the items to instantiate, 12592# then the envvar interface is used. Set only those that are not. 12593# We use the long form for the default assignment because of an extremely 12594# bizarre bug on SunOS 4.1.3. 12595if $ac_need_defaults; then 12596 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12597 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12598fi 12599 12600# Have a temporary directory for convenience. Make it in the build tree 12601# simply because there is no reason against having it here, and in addition, 12602# creating and moving files from /tmp can sometimes cause problems. 12603# Hook for its removal unless debugging. 12604# Note that there is a small window in which the directory will not be cleaned: 12605# after its creation but before its name has been assigned to `$tmp'. 12606$debug || 12607{ 12608 tmp= ac_tmp= 12609 trap 'exit_status=$? 12610 : "${ac_tmp:=$tmp}" 12611 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12612' 0 12613 trap 'as_fn_exit 1' 1 2 13 15 12614} 12615# Create a (secure) tmp directory for tmp files. 12616 12617{ 12618 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12619 test -d "$tmp" 12620} || 12621{ 12622 tmp=./conf$$-$RANDOM 12623 (umask 077 && mkdir "$tmp") 12624} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12625ac_tmp=$tmp 12626 12627# Set up the scripts for CONFIG_FILES section. 12628# No need to generate them if there are no CONFIG_FILES. 12629# This happens for instance with `./config.status config.h'. 12630if test -n "$CONFIG_FILES"; then 12631 12632 12633ac_cr=`echo X | tr X '\015'` 12634# On cygwin, bash can eat \r inside `` if the user requested igncr. 12635# But we know of no other shell where ac_cr would be empty at this 12636# point, so we can use a bashism as a fallback. 12637if test "x$ac_cr" = x; then 12638 eval ac_cr=\$\'\\r\' 12639fi 12640ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12641if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12642 ac_cs_awk_cr='\\r' 12643else 12644 ac_cs_awk_cr=$ac_cr 12645fi 12646 12647echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12648_ACEOF 12649 12650 12651{ 12652 echo "cat >conf$$subs.awk <<_ACEOF" && 12653 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12654 echo "_ACEOF" 12655} >conf$$subs.sh || 12656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12657ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12658ac_delim='%!_!# ' 12659for ac_last_try in false false false false false :; do 12660 . ./conf$$subs.sh || 12661 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12662 12663 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12664 if test $ac_delim_n = $ac_delim_num; then 12665 break 12666 elif $ac_last_try; then 12667 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12668 else 12669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12670 fi 12671done 12672rm -f conf$$subs.sh 12673 12674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12675cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12676_ACEOF 12677sed -n ' 12678h 12679s/^/S["/; s/!.*/"]=/ 12680p 12681g 12682s/^[^!]*!// 12683:repl 12684t repl 12685s/'"$ac_delim"'$// 12686t delim 12687:nl 12688h 12689s/\(.\{148\}\)..*/\1/ 12690t more1 12691s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12692p 12693n 12694b repl 12695:more1 12696s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12697p 12698g 12699s/.\{148\}// 12700t nl 12701:delim 12702h 12703s/\(.\{148\}\)..*/\1/ 12704t more2 12705s/["\\]/\\&/g; s/^/"/; s/$/"/ 12706p 12707b 12708:more2 12709s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12710p 12711g 12712s/.\{148\}// 12713t delim 12714' <conf$$subs.awk | sed ' 12715/^[^""]/{ 12716 N 12717 s/\n// 12718} 12719' >>$CONFIG_STATUS || ac_write_fail=1 12720rm -f conf$$subs.awk 12721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12722_ACAWK 12723cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12724 for (key in S) S_is_set[key] = 1 12725 FS = "" 12726 12727} 12728{ 12729 line = $ 0 12730 nfields = split(line, field, "@") 12731 substed = 0 12732 len = length(field[1]) 12733 for (i = 2; i < nfields; i++) { 12734 key = field[i] 12735 keylen = length(key) 12736 if (S_is_set[key]) { 12737 value = S[key] 12738 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12739 len += length(value) + length(field[++i]) 12740 substed = 1 12741 } else 12742 len += 1 + keylen 12743 } 12744 12745 print line 12746} 12747 12748_ACAWK 12749_ACEOF 12750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12751if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12752 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12753else 12754 cat 12755fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12756 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12757_ACEOF 12758 12759# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12760# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12761# trailing colons and then remove the whole line if VPATH becomes empty 12762# (actually we leave an empty line to preserve line numbers). 12763if test "x$srcdir" = x.; then 12764 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12765h 12766s/// 12767s/^/:/ 12768s/[ ]*$/:/ 12769s/:\$(srcdir):/:/g 12770s/:\${srcdir}:/:/g 12771s/:@srcdir@:/:/g 12772s/^:*// 12773s/:*$// 12774x 12775s/\(=[ ]*\).*/\1/ 12776G 12777s/\n// 12778s/^[^=]*=[ ]*$// 12779}' 12780fi 12781 12782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12783fi # test -n "$CONFIG_FILES" 12784 12785 12786eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 12787shift 12788for ac_tag 12789do 12790 case $ac_tag in 12791 :[FHLC]) ac_mode=$ac_tag; continue;; 12792 esac 12793 case $ac_mode$ac_tag in 12794 :[FHL]*:*);; 12795 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12796 :[FH]-) ac_tag=-:-;; 12797 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12798 esac 12799 ac_save_IFS=$IFS 12800 IFS=: 12801 set x $ac_tag 12802 IFS=$ac_save_IFS 12803 shift 12804 ac_file=$1 12805 shift 12806 12807 case $ac_mode in 12808 :L) ac_source=$1;; 12809 :[FH]) 12810 ac_file_inputs= 12811 for ac_f 12812 do 12813 case $ac_f in 12814 -) ac_f="$ac_tmp/stdin";; 12815 *) # Look for the file first in the build tree, then in the source tree 12816 # (if the path is not absolute). The absolute path cannot be DOS-style, 12817 # because $ac_f cannot contain `:'. 12818 test -f "$ac_f" || 12819 case $ac_f in 12820 [\\/$]*) false;; 12821 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12822 esac || 12823 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12824 esac 12825 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12826 as_fn_append ac_file_inputs " '$ac_f'" 12827 done 12828 12829 # Let's still pretend it is `configure' which instantiates (i.e., don't 12830 # use $as_me), people would be surprised to read: 12831 # /* config.h. Generated by config.status. */ 12832 configure_input='Generated from '` 12833 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12834 `' by configure.' 12835 if test x"$ac_file" != x-; then 12836 configure_input="$ac_file. $configure_input" 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12838$as_echo "$as_me: creating $ac_file" >&6;} 12839 fi 12840 # Neutralize special characters interpreted by sed in replacement strings. 12841 case $configure_input in #( 12842 *\&* | *\|* | *\\* ) 12843 ac_sed_conf_input=`$as_echo "$configure_input" | 12844 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12845 *) ac_sed_conf_input=$configure_input;; 12846 esac 12847 12848 case $ac_tag in 12849 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12850 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12851 esac 12852 ;; 12853 esac 12854 12855 ac_dir=`$as_dirname -- "$ac_file" || 12856$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12857 X"$ac_file" : 'X\(//\)[^/]' \| \ 12858 X"$ac_file" : 'X\(//\)$' \| \ 12859 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12860$as_echo X"$ac_file" | 12861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12862 s//\1/ 12863 q 12864 } 12865 /^X\(\/\/\)[^/].*/{ 12866 s//\1/ 12867 q 12868 } 12869 /^X\(\/\/\)$/{ 12870 s//\1/ 12871 q 12872 } 12873 /^X\(\/\).*/{ 12874 s//\1/ 12875 q 12876 } 12877 s/.*/./; q'` 12878 as_dir="$ac_dir"; as_fn_mkdir_p 12879 ac_builddir=. 12880 12881case "$ac_dir" in 12882.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12883*) 12884 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12885 # A ".." for each directory in $ac_dir_suffix. 12886 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12887 case $ac_top_builddir_sub in 12888 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12889 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12890 esac ;; 12891esac 12892ac_abs_top_builddir=$ac_pwd 12893ac_abs_builddir=$ac_pwd$ac_dir_suffix 12894# for backward compatibility: 12895ac_top_builddir=$ac_top_build_prefix 12896 12897case $srcdir in 12898 .) # We are building in place. 12899 ac_srcdir=. 12900 ac_top_srcdir=$ac_top_builddir_sub 12901 ac_abs_top_srcdir=$ac_pwd ;; 12902 [\\/]* | ?:[\\/]* ) # Absolute name. 12903 ac_srcdir=$srcdir$ac_dir_suffix; 12904 ac_top_srcdir=$srcdir 12905 ac_abs_top_srcdir=$srcdir ;; 12906 *) # Relative name. 12907 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12908 ac_top_srcdir=$ac_top_build_prefix$srcdir 12909 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12910esac 12911ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12912 12913 12914 case $ac_mode in 12915 :F) 12916 # 12917 # CONFIG_FILE 12918 # 12919 12920 case $INSTALL in 12921 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12922 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12923 esac 12924 ac_MKDIR_P=$MKDIR_P 12925 case $MKDIR_P in 12926 [\\/$]* | ?:[\\/]* ) ;; 12927 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12928 esac 12929_ACEOF 12930 12931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12932# If the template does not know about datarootdir, expand it. 12933# FIXME: This hack should be removed a few years after 2.60. 12934ac_datarootdir_hack=; ac_datarootdir_seen= 12935ac_sed_dataroot=' 12936/datarootdir/ { 12937 p 12938 q 12939} 12940/@datadir@/p 12941/@docdir@/p 12942/@infodir@/p 12943/@localedir@/p 12944/@mandir@/p' 12945case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12946*datarootdir*) ac_datarootdir_seen=yes;; 12947*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12949$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12950_ACEOF 12951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12952 ac_datarootdir_hack=' 12953 s&@datadir@&$datadir&g 12954 s&@docdir@&$docdir&g 12955 s&@infodir@&$infodir&g 12956 s&@localedir@&$localedir&g 12957 s&@mandir@&$mandir&g 12958 s&\\\${datarootdir}&$datarootdir&g' ;; 12959esac 12960_ACEOF 12961 12962# Neutralize VPATH when `$srcdir' = `.'. 12963# Shell code in configure.ac might set extrasub. 12964# FIXME: do we really want to maintain this feature? 12965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12966ac_sed_extra="$ac_vpsub 12967$extrasub 12968_ACEOF 12969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12970:t 12971/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12972s|@configure_input@|$ac_sed_conf_input|;t t 12973s&@top_builddir@&$ac_top_builddir_sub&;t t 12974s&@top_build_prefix@&$ac_top_build_prefix&;t t 12975s&@srcdir@&$ac_srcdir&;t t 12976s&@abs_srcdir@&$ac_abs_srcdir&;t t 12977s&@top_srcdir@&$ac_top_srcdir&;t t 12978s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12979s&@builddir@&$ac_builddir&;t t 12980s&@abs_builddir@&$ac_abs_builddir&;t t 12981s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12982s&@INSTALL@&$ac_INSTALL&;t t 12983s&@MKDIR_P@&$ac_MKDIR_P&;t t 12984$ac_datarootdir_hack 12985" 12986eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12987 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12988 12989test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12990 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12991 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12992 "$ac_tmp/out"`; test -z "$ac_out"; } && 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12994which seems to be undefined. Please make sure it is defined" >&5 12995$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12996which seems to be undefined. Please make sure it is defined" >&2;} 12997 12998 rm -f "$ac_tmp/stdin" 12999 case $ac_file in 13000 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13001 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13002 esac \ 13003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13004 ;; 13005 13006 13007 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13008$as_echo "$as_me: executing $ac_file commands" >&6;} 13009 ;; 13010 esac 13011 13012 13013 case $ac_file$ac_mode in 13014 "default-1":C) 13015# Only add multilib support code if we just rebuilt the top-level 13016# Makefile. 13017case " $CONFIG_FILES " in 13018 *" Makefile "*) 13019 ac_file=Makefile . ${multi_basedir}/config-ml.in 13020 ;; 13021esac ;; 13022 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13023 # Older Autoconf quotes --file arguments for eval, but not when files 13024 # are listed without --file. Let's play safe and only enable the eval 13025 # if we detect the quoting. 13026 # TODO: see whether this extra hack can be removed once we start 13027 # requiring Autoconf 2.70 or later. 13028 case $CONFIG_FILES in #( 13029 *\'*) : 13030 eval set x "$CONFIG_FILES" ;; #( 13031 *) : 13032 set x $CONFIG_FILES ;; #( 13033 *) : 13034 ;; 13035esac 13036 shift 13037 # Used to flag and report bootstrapping failures. 13038 am_rc=0 13039 for am_mf 13040 do 13041 # Strip MF so we end up with the name of the file. 13042 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 13043 # Check whether this is an Automake generated Makefile which includes 13044 # dependency-tracking related rules and includes. 13045 # Grep'ing the whole file directly is not great: AIX grep has a line 13046 # limit of 2048, but all sed's we know have understand at least 4000. 13047 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13048 || continue 13049 am_dirpart=`$as_dirname -- "$am_mf" || 13050$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13051 X"$am_mf" : 'X\(//\)[^/]' \| \ 13052 X"$am_mf" : 'X\(//\)$' \| \ 13053 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13054$as_echo X"$am_mf" | 13055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13056 s//\1/ 13057 q 13058 } 13059 /^X\(\/\/\)[^/].*/{ 13060 s//\1/ 13061 q 13062 } 13063 /^X\(\/\/\)$/{ 13064 s//\1/ 13065 q 13066 } 13067 /^X\(\/\).*/{ 13068 s//\1/ 13069 q 13070 } 13071 s/.*/./; q'` 13072 am_filepart=`$as_basename -- "$am_mf" || 13073$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13074 X"$am_mf" : 'X\(//\)$' \| \ 13075 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13076$as_echo X/"$am_mf" | 13077 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13078 s//\1/ 13079 q 13080 } 13081 /^X\/\(\/\/\)$/{ 13082 s//\1/ 13083 q 13084 } 13085 /^X\/\(\/\).*/{ 13086 s//\1/ 13087 q 13088 } 13089 s/.*/./; q'` 13090 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13091 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13092 | $MAKE -f - am--depfiles" >&5 13093 (cd "$am_dirpart" \ 13094 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13095 | $MAKE -f - am--depfiles) >&5 2>&5 13096 ac_status=$? 13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13098 (exit $ac_status); } || am_rc=$? 13099 done 13100 if test $am_rc -ne 0; then 13101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13103as_fn_error $? "Something went wrong bootstrapping makefile fragments 13104 for automatic dependency tracking. If GNU make was not used, consider 13105 re-running the configure script with MAKE=\"gmake\" (or whatever is 13106 necessary). You can also try re-running configure with the 13107 '--disable-dependency-tracking' option to at least be able to build 13108 the package (albeit without support for automatic dependency tracking). 13109See \`config.log' for more details" "$LINENO" 5; } 13110 fi 13111 { am_dirpart=; unset am_dirpart;} 13112 { am_filepart=; unset am_filepart;} 13113 { am_mf=; unset am_mf;} 13114 { am_rc=; unset am_rc;} 13115 rm -f conftest-deps.mk 13116} 13117 ;; 13118 "libtool":C) 13119 13120 # See if we are running on zsh, and set the options which allow our 13121 # commands through without removal of \ escapes. 13122 if test -n "${ZSH_VERSION+set}" ; then 13123 setopt NO_GLOB_SUBST 13124 fi 13125 13126 cfgfile="${ofile}T" 13127 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13128 $RM "$cfgfile" 13129 13130 cat <<_LT_EOF >> "$cfgfile" 13131#! $SHELL 13132 13133# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13134# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13135# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13136# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13137# 13138# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13139# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 13140# Written by Gordon Matzigkeit, 1996 13141# 13142# This file is part of GNU Libtool. 13143# 13144# GNU Libtool is free software; you can redistribute it and/or 13145# modify it under the terms of the GNU General Public License as 13146# published by the Free Software Foundation; either version 2 of 13147# the License, or (at your option) any later version. 13148# 13149# As a special exception to the GNU General Public License, 13150# if you distribute this file as part of a program or library that 13151# is built using GNU Libtool, you may include this file under the 13152# same distribution terms that you use for the rest of that program. 13153# 13154# GNU Libtool is distributed in the hope that it will be useful, 13155# but WITHOUT ANY WARRANTY; without even the implied warranty of 13156# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13157# GNU General Public License for more details. 13158# 13159# You should have received a copy of the GNU General Public License 13160# along with GNU Libtool; see the file COPYING. If not, a copy 13161# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13162# obtained by writing to the Free Software Foundation, Inc., 13163# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13164 13165 13166# The names of the tagged configurations supported by this script. 13167available_tags="" 13168 13169# ### BEGIN LIBTOOL CONFIG 13170 13171# Which release of libtool.m4 was used? 13172macro_version=$macro_version 13173macro_revision=$macro_revision 13174 13175# Whether or not to build shared libraries. 13176build_libtool_libs=$enable_shared 13177 13178# Whether or not to build static libraries. 13179build_old_libs=$enable_static 13180 13181# What type of objects to build. 13182pic_mode=$pic_mode 13183 13184# Whether or not to optimize for fast installation. 13185fast_install=$enable_fast_install 13186 13187# Shell to use when invoking shell scripts. 13188SHELL=$lt_SHELL 13189 13190# An echo program that protects backslashes. 13191ECHO=$lt_ECHO 13192 13193# The host system. 13194host_alias=$host_alias 13195host=$host 13196host_os=$host_os 13197 13198# The build system. 13199build_alias=$build_alias 13200build=$build 13201build_os=$build_os 13202 13203# A sed program that does not truncate output. 13204SED=$lt_SED 13205 13206# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13207Xsed="\$SED -e 1s/^X//" 13208 13209# A grep program that handles long lines. 13210GREP=$lt_GREP 13211 13212# An ERE matcher. 13213EGREP=$lt_EGREP 13214 13215# A literal string matcher. 13216FGREP=$lt_FGREP 13217 13218# A BSD- or MS-compatible name lister. 13219NM=$lt_NM 13220 13221# Whether we need soft or hard links. 13222LN_S=$lt_LN_S 13223 13224# What is the maximum length of a command? 13225max_cmd_len=$max_cmd_len 13226 13227# Object file suffix (normally "o"). 13228objext=$ac_objext 13229 13230# Executable file suffix (normally ""). 13231exeext=$exeext 13232 13233# whether the shell understands "unset". 13234lt_unset=$lt_unset 13235 13236# turn spaces into newlines. 13237SP2NL=$lt_lt_SP2NL 13238 13239# turn newlines into spaces. 13240NL2SP=$lt_lt_NL2SP 13241 13242# An object symbol dumper. 13243OBJDUMP=$lt_OBJDUMP 13244 13245# Method to check whether dependent libraries are shared objects. 13246deplibs_check_method=$lt_deplibs_check_method 13247 13248# Command to use when deplibs_check_method == "file_magic". 13249file_magic_cmd=$lt_file_magic_cmd 13250 13251# The archiver. 13252AR=$lt_AR 13253AR_FLAGS=$lt_AR_FLAGS 13254 13255# A symbol stripping program. 13256STRIP=$lt_STRIP 13257 13258# Commands used to install an old-style archive. 13259RANLIB=$lt_RANLIB 13260old_postinstall_cmds=$lt_old_postinstall_cmds 13261old_postuninstall_cmds=$lt_old_postuninstall_cmds 13262 13263# Whether to use a lock for old archive extraction. 13264lock_old_archive_extraction=$lock_old_archive_extraction 13265 13266# A C compiler. 13267LTCC=$lt_CC 13268 13269# LTCC compiler flags. 13270LTCFLAGS=$lt_CFLAGS 13271 13272# Take the output of nm and produce a listing of raw symbols and C names. 13273global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13274 13275# Transform the output of nm in a proper C declaration. 13276global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13277 13278# Transform the output of nm in a C name address pair. 13279global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13280 13281# Transform the output of nm in a C name address pair when lib prefix is needed. 13282global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13283 13284# The name of the directory that contains temporary libtool files. 13285objdir=$objdir 13286 13287# Used to examine libraries when file_magic_cmd begins with "file". 13288MAGIC_CMD=$MAGIC_CMD 13289 13290# Must we lock files when doing compilation? 13291need_locks=$lt_need_locks 13292 13293# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13294DSYMUTIL=$lt_DSYMUTIL 13295 13296# Tool to change global to local symbols on Mac OS X. 13297NMEDIT=$lt_NMEDIT 13298 13299# Tool to manipulate fat objects and archives on Mac OS X. 13300LIPO=$lt_LIPO 13301 13302# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13303OTOOL=$lt_OTOOL 13304 13305# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13306OTOOL64=$lt_OTOOL64 13307 13308# Old archive suffix (normally "a"). 13309libext=$libext 13310 13311# Shared library suffix (normally ".so"). 13312shrext_cmds=$lt_shrext_cmds 13313 13314# The commands to extract the exported symbol list from a shared archive. 13315extract_expsyms_cmds=$lt_extract_expsyms_cmds 13316 13317# Variables whose values should be saved in libtool wrapper scripts and 13318# restored at link time. 13319variables_saved_for_relink=$lt_variables_saved_for_relink 13320 13321# Do we need the "lib" prefix for modules? 13322need_lib_prefix=$need_lib_prefix 13323 13324# Do we need a version for libraries? 13325need_version=$need_version 13326 13327# Library versioning type. 13328version_type=$version_type 13329 13330# Shared library runtime path variable. 13331runpath_var=$runpath_var 13332 13333# Shared library path variable. 13334shlibpath_var=$shlibpath_var 13335 13336# Is shlibpath searched before the hard-coded library search path? 13337shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13338 13339# Format of library name prefix. 13340libname_spec=$lt_libname_spec 13341 13342# List of archive names. First name is the real one, the rest are links. 13343# The last name is the one that the linker finds with -lNAME 13344library_names_spec=$lt_library_names_spec 13345 13346# The coded name of the library, if different from the real name. 13347soname_spec=$lt_soname_spec 13348 13349# Permission mode override for installation of shared libraries. 13350install_override_mode=$lt_install_override_mode 13351 13352# Command to use after installation of a shared archive. 13353postinstall_cmds=$lt_postinstall_cmds 13354 13355# Command to use after uninstallation of a shared archive. 13356postuninstall_cmds=$lt_postuninstall_cmds 13357 13358# Commands used to finish a libtool library installation in a directory. 13359finish_cmds=$lt_finish_cmds 13360 13361# As "finish_cmds", except a single script fragment to be evaled but 13362# not shown. 13363finish_eval=$lt_finish_eval 13364 13365# Whether we should hardcode library paths into libraries. 13366hardcode_into_libs=$hardcode_into_libs 13367 13368# Compile-time system search path for libraries. 13369sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13370 13371# Run-time system search path for libraries. 13372sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13373 13374# Whether dlopen is supported. 13375dlopen_support=$enable_dlopen 13376 13377# Whether dlopen of programs is supported. 13378dlopen_self=$enable_dlopen_self 13379 13380# Whether dlopen of statically linked programs is supported. 13381dlopen_self_static=$enable_dlopen_self_static 13382 13383# Commands to strip libraries. 13384old_striplib=$lt_old_striplib 13385striplib=$lt_striplib 13386 13387 13388# The linker used to build libraries. 13389LD=$lt_LD 13390 13391# How to create reloadable object files. 13392reload_flag=$lt_reload_flag 13393reload_cmds=$lt_reload_cmds 13394 13395# Commands used to build an old-style archive. 13396old_archive_cmds=$lt_old_archive_cmds 13397 13398# A language specific compiler. 13399CC=$lt_compiler 13400 13401# Is the compiler the GNU compiler? 13402with_gcc=$GCC 13403 13404# Compiler flag to turn off builtin functions. 13405no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13406 13407# How to pass a linker flag through the compiler. 13408wl=$lt_lt_prog_compiler_wl 13409 13410# Additional compiler flags for building library objects. 13411pic_flag=$lt_lt_prog_compiler_pic 13412 13413# Compiler flag to prevent dynamic linking. 13414link_static_flag=$lt_lt_prog_compiler_static 13415 13416# Does compiler simultaneously support -c and -o options? 13417compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13418 13419# Whether or not to add -lc for building shared libraries. 13420build_libtool_need_lc=$archive_cmds_need_lc 13421 13422# Whether or not to disallow shared libs when runtime libs are static. 13423allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13424 13425# Compiler flag to allow reflexive dlopens. 13426export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13427 13428# Compiler flag to generate shared objects directly from archives. 13429whole_archive_flag_spec=$lt_whole_archive_flag_spec 13430 13431# Whether the compiler copes with passing no objects directly. 13432compiler_needs_object=$lt_compiler_needs_object 13433 13434# Create an old-style archive from a shared archive. 13435old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13436 13437# Create a temporary old-style archive to link instead of a shared archive. 13438old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13439 13440# Commands used to build a shared archive. 13441archive_cmds=$lt_archive_cmds 13442archive_expsym_cmds=$lt_archive_expsym_cmds 13443 13444# Commands used to build a loadable module if different from building 13445# a shared archive. 13446module_cmds=$lt_module_cmds 13447module_expsym_cmds=$lt_module_expsym_cmds 13448 13449# Whether we are building with GNU ld or not. 13450with_gnu_ld=$lt_with_gnu_ld 13451 13452# Flag that allows shared libraries with undefined symbols to be built. 13453allow_undefined_flag=$lt_allow_undefined_flag 13454 13455# Flag that enforces no undefined symbols. 13456no_undefined_flag=$lt_no_undefined_flag 13457 13458# Flag to hardcode \$libdir into a binary during linking. 13459# This must work even if \$libdir does not exist 13460hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13461 13462# If ld is used when linking, flag to hardcode \$libdir into a binary 13463# during linking. This must work even if \$libdir does not exist. 13464hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13465 13466# Whether we need a single "-rpath" flag with a separated argument. 13467hardcode_libdir_separator=$lt_hardcode_libdir_separator 13468 13469# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13470# DIR into the resulting binary. 13471hardcode_direct=$hardcode_direct 13472 13473# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13474# DIR into the resulting binary and the resulting library dependency is 13475# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13476# library is relocated. 13477hardcode_direct_absolute=$hardcode_direct_absolute 13478 13479# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13480# into the resulting binary. 13481hardcode_minus_L=$hardcode_minus_L 13482 13483# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13484# into the resulting binary. 13485hardcode_shlibpath_var=$hardcode_shlibpath_var 13486 13487# Set to "yes" if building a shared library automatically hardcodes DIR 13488# into the library and all subsequent libraries and executables linked 13489# against it. 13490hardcode_automatic=$hardcode_automatic 13491 13492# Set to yes if linker adds runtime paths of dependent libraries 13493# to runtime path list. 13494inherit_rpath=$inherit_rpath 13495 13496# Whether libtool must link a program against all its dependency libraries. 13497link_all_deplibs=$link_all_deplibs 13498 13499# Fix the shell variable \$srcfile for the compiler. 13500fix_srcfile_path=$lt_fix_srcfile_path 13501 13502# Set to "yes" if exported symbols are required. 13503always_export_symbols=$always_export_symbols 13504 13505# The commands to list exported symbols. 13506export_symbols_cmds=$lt_export_symbols_cmds 13507 13508# Symbols that should not be listed in the preloaded symbols. 13509exclude_expsyms=$lt_exclude_expsyms 13510 13511# Symbols that must always be exported. 13512include_expsyms=$lt_include_expsyms 13513 13514# Commands necessary for linking programs (against libraries) with templates. 13515prelink_cmds=$lt_prelink_cmds 13516 13517# Specify filename containing input files. 13518file_list_spec=$lt_file_list_spec 13519 13520# How to hardcode a shared library path into an executable. 13521hardcode_action=$hardcode_action 13522 13523# ### END LIBTOOL CONFIG 13524 13525_LT_EOF 13526 13527 case $host_os in 13528 aix3*) 13529 cat <<\_LT_EOF >> "$cfgfile" 13530# AIX sometimes has problems with the GCC collect2 program. For some 13531# reason, if we set the COLLECT_NAMES environment variable, the problems 13532# vanish in a puff of smoke. 13533if test "X${COLLECT_NAMES+set}" != Xset; then 13534 COLLECT_NAMES= 13535 export COLLECT_NAMES 13536fi 13537_LT_EOF 13538 ;; 13539 esac 13540 13541 13542ltmain="$ac_aux_dir/ltmain.sh" 13543 13544 13545 # We use sed instead of cat because bash on DJGPP gets confused if 13546 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13547 # text mode, it properly converts lines to CR/LF. This bash problem 13548 # is reportedly fixed, but why not run on old versions too? 13549 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13550 || (rm -f "$cfgfile"; exit 1) 13551 13552 case $xsi_shell in 13553 yes) 13554 cat << \_LT_EOF >> "$cfgfile" 13555 13556# func_dirname file append nondir_replacement 13557# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13558# otherwise set result to NONDIR_REPLACEMENT. 13559func_dirname () 13560{ 13561 case ${1} in 13562 */*) func_dirname_result="${1%/*}${2}" ;; 13563 * ) func_dirname_result="${3}" ;; 13564 esac 13565} 13566 13567# func_basename file 13568func_basename () 13569{ 13570 func_basename_result="${1##*/}" 13571} 13572 13573# func_dirname_and_basename file append nondir_replacement 13574# perform func_basename and func_dirname in a single function 13575# call: 13576# dirname: Compute the dirname of FILE. If nonempty, 13577# add APPEND to the result, otherwise set result 13578# to NONDIR_REPLACEMENT. 13579# value returned in "$func_dirname_result" 13580# basename: Compute filename of FILE. 13581# value retuned in "$func_basename_result" 13582# Implementation must be kept synchronized with func_dirname 13583# and func_basename. For efficiency, we do not delegate to 13584# those functions but instead duplicate the functionality here. 13585func_dirname_and_basename () 13586{ 13587 case ${1} in 13588 */*) func_dirname_result="${1%/*}${2}" ;; 13589 * ) func_dirname_result="${3}" ;; 13590 esac 13591 func_basename_result="${1##*/}" 13592} 13593 13594# func_stripname prefix suffix name 13595# strip PREFIX and SUFFIX off of NAME. 13596# PREFIX and SUFFIX must not contain globbing or regex special 13597# characters, hashes, percent signs, but SUFFIX may contain a leading 13598# dot (in which case that matches only a dot). 13599func_stripname () 13600{ 13601 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13602 # positional parameters, so assign one to ordinary parameter first. 13603 func_stripname_result=${3} 13604 func_stripname_result=${func_stripname_result#"${1}"} 13605 func_stripname_result=${func_stripname_result%"${2}"} 13606} 13607 13608# func_opt_split 13609func_opt_split () 13610{ 13611 func_opt_split_opt=${1%%=*} 13612 func_opt_split_arg=${1#*=} 13613} 13614 13615# func_lo2o object 13616func_lo2o () 13617{ 13618 case ${1} in 13619 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13620 *) func_lo2o_result=${1} ;; 13621 esac 13622} 13623 13624# func_xform libobj-or-source 13625func_xform () 13626{ 13627 func_xform_result=${1%.*}.lo 13628} 13629 13630# func_arith arithmetic-term... 13631func_arith () 13632{ 13633 func_arith_result=$(( $* )) 13634} 13635 13636# func_len string 13637# STRING may not start with a hyphen. 13638func_len () 13639{ 13640 func_len_result=${#1} 13641} 13642 13643_LT_EOF 13644 ;; 13645 *) # Bourne compatible functions. 13646 cat << \_LT_EOF >> "$cfgfile" 13647 13648# func_dirname file append nondir_replacement 13649# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13650# otherwise set result to NONDIR_REPLACEMENT. 13651func_dirname () 13652{ 13653 # Extract subdirectory from the argument. 13654 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 13655 if test "X$func_dirname_result" = "X${1}"; then 13656 func_dirname_result="${3}" 13657 else 13658 func_dirname_result="$func_dirname_result${2}" 13659 fi 13660} 13661 13662# func_basename file 13663func_basename () 13664{ 13665 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 13666} 13667 13668 13669# func_stripname prefix suffix name 13670# strip PREFIX and SUFFIX off of NAME. 13671# PREFIX and SUFFIX must not contain globbing or regex special 13672# characters, hashes, percent signs, but SUFFIX may contain a leading 13673# dot (in which case that matches only a dot). 13674# func_strip_suffix prefix name 13675func_stripname () 13676{ 13677 case ${2} in 13678 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 13679 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 13680 esac 13681} 13682 13683# sed scripts: 13684my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13685my_sed_long_arg='1s/^-[^=]*=//' 13686 13687# func_opt_split 13688func_opt_split () 13689{ 13690 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 13691 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 13692} 13693 13694# func_lo2o object 13695func_lo2o () 13696{ 13697 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 13698} 13699 13700# func_xform libobj-or-source 13701func_xform () 13702{ 13703 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 13704} 13705 13706# func_arith arithmetic-term... 13707func_arith () 13708{ 13709 func_arith_result=`expr "$@"` 13710} 13711 13712# func_len string 13713# STRING may not start with a hyphen. 13714func_len () 13715{ 13716 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13717} 13718 13719_LT_EOF 13720esac 13721 13722case $lt_shell_append in 13723 yes) 13724 cat << \_LT_EOF >> "$cfgfile" 13725 13726# func_append var value 13727# Append VALUE to the end of shell variable VAR. 13728func_append () 13729{ 13730 eval "$1+=\$2" 13731} 13732_LT_EOF 13733 ;; 13734 *) 13735 cat << \_LT_EOF >> "$cfgfile" 13736 13737# func_append var value 13738# Append VALUE to the end of shell variable VAR. 13739func_append () 13740{ 13741 eval "$1=\$$1\$2" 13742} 13743 13744_LT_EOF 13745 ;; 13746 esac 13747 13748 13749 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13750 || (rm -f "$cfgfile"; exit 1) 13751 13752 mv -f "$cfgfile" "$ofile" || 13753 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13754 chmod +x "$ofile" 13755 13756 ;; 13757 13758 esac 13759done # for ac_tag 13760 13761 13762as_fn_exit 0 13763_ACEOF 13764ac_clean_files=$ac_clean_files_save 13765 13766test $ac_write_fail = 0 || 13767 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13768 13769 13770# configure is writing to config.log, and then calls config.status. 13771# config.status does its own redirection, appending to config.log. 13772# Unfortunately, on DOS this fails, as config.log is still kept open 13773# by configure, so config.status won't be able to write to it; its 13774# output is simply discarded. So we exec the FD to /dev/null, 13775# effectively closing config.log, so it can be properly (re)opened and 13776# appended to by config.status. When coming back to configure, we 13777# need to make the FD available again. 13778if test "$no_create" != yes; then 13779 ac_cs_success=: 13780 ac_config_status_args= 13781 test "$silent" = yes && 13782 ac_config_status_args="$ac_config_status_args --quiet" 13783 exec 5>/dev/null 13784 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13785 exec 5>>config.log 13786 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13787 # would make configure fail if this is the last instruction. 13788 $ac_cs_success || as_fn_exit 1 13789fi 13790if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13792$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13793fi 13794 13795