1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7# Foundation, Inc. 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. 90case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93for as_dir in $PATH 94do 95 IFS=$as_save_IFS 96 test -z "$as_dir" && as_dir=. 97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 done 99IFS=$as_save_IFS 100 101 ;; 102esac 103# We did not find ourselves, most probably we were run as `sh COMMAND' 104# in which case we are not to be found in the path. 105if test "x$as_myself" = x; then 106 as_myself=$0 107fi 108if test ! -f "$as_myself"; then 109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 exit 1 111fi 112 113# Unset variables that we do not need and which cause bugs (e.g. in 114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 115# suppresses any "Segmentation fault" message there. '((' could 116# trigger a bug in pdksh 5.2.14. 117for as_var in BASH_ENV ENV MAIL MAILPATH 118do eval test x\${$as_var+set} = xset \ 119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120done 121PS1='$ ' 122PS2='> ' 123PS4='+ ' 124 125# NLS nuisances. 126LC_ALL=C 127export LC_ALL 128LANGUAGE=C 129export LANGUAGE 130 131# CDPATH. 132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 134if test "x$CONFIG_SHELL" = x; then 135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 136 emulate sh 137 NULLCMD=: 138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 139 # is contrary to our usage. Disable this feature. 140 alias -g '\${1+\"\$@\"}'='\"\$@\"' 141 setopt NO_GLOB_SUBST 142else 143 case \`(set -o) 2>/dev/null\` in #( 144 *posix*) : 145 set -o posix ;; #( 146 *) : 147 ;; 148esac 149fi 150" 151 as_required="as_fn_return () { (exit \$1); } 152as_fn_success () { as_fn_return 0; } 153as_fn_failure () { as_fn_return 1; } 154as_fn_ret_success () { return 0; } 155as_fn_ret_failure () { return 1; } 156 157exitcode=0 158as_fn_success || { exitcode=1; echo as_fn_success failed.; } 159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 163 164else 165 exitcode=1; echo positional parameters were not saved. 166fi 167test x\$exitcode = x0 || exit 1" 168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 172 173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 177 PATH=/empty FPATH=/empty; export PATH FPATH 178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 180test \$(( 1 + 1 )) = 2 || exit 1" 181 if (eval "$as_required") 2>/dev/null; then : 182 as_have_required=yes 183else 184 as_have_required=no 185fi 186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 187 188else 189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 190as_found=false 191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 192do 193 IFS=$as_save_IFS 194 test -z "$as_dir" && as_dir=. 195 as_found=: 196 case $as_dir in #( 197 /*) 198 for as_base in sh bash ksh sh5; do 199 # Try only shells that exist, to save several forks. 200 as_shell=$as_dir/$as_base 201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 203 CONFIG_SHELL=$as_shell as_have_required=yes 204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 break 2 206fi 207fi 208 done;; 209 esac 210 as_found=false 211done 212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 214 CONFIG_SHELL=$SHELL as_have_required=yes 215fi; } 216IFS=$as_save_IFS 217 218 219 if test "x$CONFIG_SHELL" != x; then : 220 # We cannot yet assume a decent shell, so we have to provide a 221 # neutralization value for shells without unset; and this also 222 # works around shells that cannot unset nonexistent variables. 223 BASH_ENV=/dev/null 224 ENV=/dev/null 225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 226 export CONFIG_SHELL 227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 228fi 229 230 if test x$as_have_required = xno; then : 231 $as_echo "$0: This script requires a shell more modern than all" 232 $as_echo "$0: the shells that I found on your system." 233 if test x${ZSH_VERSION+set} = xset ; then 234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 235 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 236 else 237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 238$0: including any error possibly output before this 239$0: message. Then install a modern shell, or manually run 240$0: the script under such a shell if you do have one." 241 fi 242 exit 1 243fi 244fi 245fi 246SHELL=${CONFIG_SHELL-/bin/sh} 247export SHELL 248# Unset more variables known to interfere with behavior of common tools. 249CLICOLOR_FORCE= GREP_OPTIONS= 250unset CLICOLOR_FORCE GREP_OPTIONS 251 252## --------------------- ## 253## M4sh Shell Functions. ## 254## --------------------- ## 255# as_fn_unset VAR 256# --------------- 257# Portably unset VAR. 258as_fn_unset () 259{ 260 { eval $1=; unset $1;} 261} 262as_unset=as_fn_unset 263 264# as_fn_set_status STATUS 265# ----------------------- 266# Set $? to STATUS, without forking. 267as_fn_set_status () 268{ 269 return $1 270} # as_fn_set_status 271 272# as_fn_exit STATUS 273# ----------------- 274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 275as_fn_exit () 276{ 277 set +e 278 as_fn_set_status $1 279 exit $1 280} # as_fn_exit 281 282# as_fn_mkdir_p 283# ------------- 284# Create "$as_dir" as a directory, including parents if necessary. 285as_fn_mkdir_p () 286{ 287 288 case $as_dir in #( 289 -*) as_dir=./$as_dir;; 290 esac 291 test -d "$as_dir" || eval $as_mkdir_p || { 292 as_dirs= 293 while :; do 294 case $as_dir in #( 295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 296 *) as_qdir=$as_dir;; 297 esac 298 as_dirs="'$as_qdir' $as_dirs" 299 as_dir=`$as_dirname -- "$as_dir" || 300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 301 X"$as_dir" : 'X\(//\)[^/]' \| \ 302 X"$as_dir" : 'X\(//\)$' \| \ 303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 304$as_echo X"$as_dir" | 305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 306 s//\1/ 307 q 308 } 309 /^X\(\/\/\)[^/].*/{ 310 s//\1/ 311 q 312 } 313 /^X\(\/\/\)$/{ 314 s//\1/ 315 q 316 } 317 /^X\(\/\).*/{ 318 s//\1/ 319 q 320 } 321 s/.*/./; q'` 322 test -d "$as_dir" && break 323 done 324 test -z "$as_dirs" || eval "mkdir $as_dirs" 325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 326 327 328} # as_fn_mkdir_p 329# as_fn_append VAR VALUE 330# ---------------------- 331# Append the text in VALUE to the end of the definition contained in VAR. Take 332# advantage of any shell optimizations that allow amortized linear growth over 333# repeated appends, instead of the typical quadratic growth present in naive 334# implementations. 335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 336 eval 'as_fn_append () 337 { 338 eval $1+=\$2 339 }' 340else 341 as_fn_append () 342 { 343 eval $1=\$$1\$2 344 } 345fi # as_fn_append 346 347# as_fn_arith ARG... 348# ------------------ 349# Perform arithmetic evaluation on the ARGs, and store the result in the 350# global $as_val. Take advantage of shells that can avoid forks. The arguments 351# must be portable across $(()) and expr. 352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 353 eval 'as_fn_arith () 354 { 355 as_val=$(( $* )) 356 }' 357else 358 as_fn_arith () 359 { 360 as_val=`expr "$@" || test $? -eq 1` 361 } 362fi # as_fn_arith 363 364 365# as_fn_error ERROR [LINENO LOG_FD] 366# --------------------------------- 367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 369# script with status $?, using 1 if that was 0. 370as_fn_error () 371{ 372 as_status=$?; test $as_status -eq 0 && as_status=1 373 if test "$3"; then 374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 376 fi 377 $as_echo "$as_me: error: $1" >&2 378 as_fn_exit $as_status 379} # as_fn_error 380 381if expr a : '\(a\)' >/dev/null 2>&1 && 382 test "X`expr 00001 : '.*\(...\)'`" = X001; then 383 as_expr=expr 384else 385 as_expr=false 386fi 387 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 389 as_basename=basename 390else 391 as_basename=false 392fi 393 394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 395 as_dirname=dirname 396else 397 as_dirname=false 398fi 399 400as_me=`$as_basename -- "$0" || 401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 402 X"$0" : 'X\(//\)$' \| \ 403 X"$0" : 'X\(/\)' \| . 2>/dev/null || 404$as_echo X/"$0" | 405 sed '/^.*\/\([^/][^/]*\)\/*$/{ 406 s//\1/ 407 q 408 } 409 /^X\/\(\/\/\)$/{ 410 s//\1/ 411 q 412 } 413 /^X\/\(\/\).*/{ 414 s//\1/ 415 q 416 } 417 s/.*/./; q'` 418 419# Avoid depending upon Character Ranges. 420as_cr_letters='abcdefghijklmnopqrstuvwxyz' 421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 422as_cr_Letters=$as_cr_letters$as_cr_LETTERS 423as_cr_digits='0123456789' 424as_cr_alnum=$as_cr_Letters$as_cr_digits 425 426 427 as_lineno_1=$LINENO as_lineno_1a=$LINENO 428 as_lineno_2=$LINENO as_lineno_2a=$LINENO 429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 449 450 # Don't try to exec as it changes $[0], causing all sort of problems 451 # (the dirname of $[0] is not the place where we might find the 452 # original and so on. Autoconf is especially sensitive to this). 453 . "./$as_me.lineno" 454 # Exit status is that of the last command. 455 exit 456} 457 458ECHO_C= ECHO_N= ECHO_T= 459case `echo -n x` in #((((( 460-n*) 461 case `echo 'xy\c'` in 462 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 463 xy) ECHO_C='\c';; 464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 465 ECHO_T=' ';; 466 esac;; 467*) 468 ECHO_N='-n';; 469esac 470 471rm -f conf$$ conf$$.exe conf$$.file 472if test -d conf$$.dir; then 473 rm -f conf$$.dir/conf$$.file 474else 475 rm -f conf$$.dir 476 mkdir conf$$.dir 2>/dev/null 477fi 478if (echo >conf$$.file) 2>/dev/null; then 479 if ln -s conf$$.file conf$$ 2>/dev/null; then 480 as_ln_s='ln -s' 481 # ... but there are two gotchas: 482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 484 # In both cases, we have to default to `cp -p'. 485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 486 as_ln_s='cp -p' 487 elif ln conf$$.file conf$$ 2>/dev/null; then 488 as_ln_s=ln 489 else 490 as_ln_s='cp -p' 491 fi 492else 493 as_ln_s='cp -p' 494fi 495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 496rmdir conf$$.dir 2>/dev/null 497 498if mkdir -p . 2>/dev/null; then 499 as_mkdir_p='mkdir -p "$as_dir"' 500else 501 test -d ./-p && rmdir ./-p 502 as_mkdir_p=false 503fi 504 505if test -x / >/dev/null 2>&1; then 506 as_test_x='test -x' 507else 508 if ls -dL / >/dev/null 2>&1; then 509 as_ls_L_option=L 510 else 511 as_ls_L_option= 512 fi 513 as_test_x=' 514 eval sh -c '\'' 515 if test -d "$1"; then 516 test -d "$1/."; 517 else 518 case $1 in #( 519 -*)set "./$1";; 520 esac; 521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 522 ???[sx]*):;;*)false;;esac;fi 523 '\'' sh 524 ' 525fi 526as_executable_p=$as_test_x 527 528# Sed expression to map a string onto a valid CPP name. 529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 530 531# Sed expression to map a string onto a valid variable name. 532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 533 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536 537exec 7<&0 </dev/null 6>&1 538 539# Name of the host. 540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541# so uname gets run too. 542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543 544# 545# Initializations. 546# 547ac_default_prefix=/usr/local 548ac_clean_files= 549ac_config_libobj_dir=. 550LIBOBJS= 551cross_compiling=no 552subdirs= 553MFLAGS= 554MAKEFLAGS= 555 556# Identity of this package. 557PACKAGE_NAME= 558PACKAGE_TARNAME= 559PACKAGE_VERSION= 560PACKAGE_STRING= 561PACKAGE_BUGREPORT= 562PACKAGE_URL= 563 564ac_unique_file="zlib.h" 565# Factoring default headers for most tests. 566ac_includes_default="\ 567#include <stdio.h> 568#ifdef HAVE_SYS_TYPES_H 569# include <sys/types.h> 570#endif 571#ifdef HAVE_SYS_STAT_H 572# include <sys/stat.h> 573#endif 574#ifdef STDC_HEADERS 575# include <stdlib.h> 576# include <stddef.h> 577#else 578# ifdef HAVE_STDLIB_H 579# include <stdlib.h> 580# endif 581#endif 582#ifdef HAVE_STRING_H 583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 584# include <memory.h> 585# endif 586# include <string.h> 587#endif 588#ifdef HAVE_STRINGS_H 589# include <strings.h> 590#endif 591#ifdef HAVE_INTTYPES_H 592# include <inttypes.h> 593#endif 594#ifdef HAVE_STDINT_H 595# include <stdint.h> 596#endif 597#ifdef HAVE_UNISTD_H 598# include <unistd.h> 599#endif" 600 601ac_subst_vars='am__EXEEXT_FALSE 602am__EXEEXT_TRUE 603LTLIBOBJS 604LIBOBJS 605PICFLAG 606TARGET_LIBRARY_FALSE 607TARGET_LIBRARY_TRUE 608toolexeclibdir 609toolexecdir 610target_all 611CPP 612OTOOL64 613OTOOL 614LIPO 615NMEDIT 616DSYMUTIL 617RANLIB 618AR 619OBJDUMP 620LN_S 621NM 622ac_ct_DUMPBIN 623DUMPBIN 624LD 625FGREP 626EGREP 627GREP 628SED 629LIBTOOL 630am__fastdepCC_FALSE 631am__fastdepCC_TRUE 632CCDEPMODE 633am__nodep 634AMDEPBACKSLASH 635AMDEP_FALSE 636AMDEP_TRUE 637am__quote 638am__include 639DEPDIR 640OBJEXT 641EXEEXT 642ac_ct_CC 643CPPFLAGS 644LDFLAGS 645CFLAGS 646CC 647COMPPATH 648MAINT 649MAINTAINER_MODE_FALSE 650MAINTAINER_MODE_TRUE 651am__untar 652am__tar 653AMTAR 654am__leading_dot 655SET_MAKE 656AWK 657mkdir_p 658MKDIR_P 659INSTALL_STRIP_PROGRAM 660STRIP 661install_sh 662MAKEINFO 663AUTOHEADER 664AUTOMAKE 665AUTOCONF 666ACLOCAL 667VERSION 668PACKAGE 669CYGPATH_W 670am__isrc 671INSTALL_DATA 672INSTALL_SCRIPT 673INSTALL_PROGRAM 674mkinstalldirs 675target_os 676target_vendor 677target_cpu 678target 679host_os 680host_vendor 681host_cpu 682host 683build_os 684build_vendor 685build_cpu 686build 687multi_basedir 688target_alias 689host_alias 690build_alias 691LIBS 692ECHO_T 693ECHO_N 694ECHO_C 695DEFS 696mandir 697localedir 698libdir 699psdir 700pdfdir 701dvidir 702htmldir 703infodir 704docdir 705oldincludedir 706includedir 707localstatedir 708sharedstatedir 709sysconfdir 710datadir 711datarootdir 712libexecdir 713sbindir 714bindir 715program_transform_name 716prefix 717exec_prefix 718PACKAGE_URL 719PACKAGE_BUGREPORT 720PACKAGE_STRING 721PACKAGE_VERSION 722PACKAGE_TARNAME 723PACKAGE_NAME 724PATH_SEPARATOR 725SHELL' 726ac_subst_files='' 727ac_user_opts=' 728enable_option_checking 729enable_multilib 730enable_maintainer_mode 731with_target_subdir 732with_cross_host 733with_system_zlib 734enable_dependency_tracking 735enable_shared 736enable_static 737with_pic 738enable_fast_install 739with_gnu_ld 740enable_libtool_lock 741enable_host_shared 742' 743 ac_precious_vars='build_alias 744host_alias 745target_alias 746CPP 747CPPFLAGS' 748 749 750# Initialize some variables set by options. 751ac_init_help= 752ac_init_version=false 753ac_unrecognized_opts= 754ac_unrecognized_sep= 755# The variables have the same names as the options, with 756# dashes changed to underlines. 757cache_file=/dev/null 758exec_prefix=NONE 759no_create= 760no_recursion= 761prefix=NONE 762program_prefix=NONE 763program_suffix=NONE 764program_transform_name=s,x,x, 765silent= 766site= 767srcdir= 768verbose= 769x_includes=NONE 770x_libraries=NONE 771 772# Installation directory options. 773# These are left unexpanded so users can "make install exec_prefix=/foo" 774# and all the variables that are supposed to be based on exec_prefix 775# by default will actually change. 776# Use braces instead of parens because sh, perl, etc. also accept them. 777# (The list follows the same order as the GNU Coding Standards.) 778bindir='${exec_prefix}/bin' 779sbindir='${exec_prefix}/sbin' 780libexecdir='${exec_prefix}/libexec' 781datarootdir='${prefix}/share' 782datadir='${datarootdir}' 783sysconfdir='${prefix}/etc' 784sharedstatedir='${prefix}/com' 785localstatedir='${prefix}/var' 786includedir='${prefix}/include' 787oldincludedir='/usr/include' 788docdir='${datarootdir}/doc/${PACKAGE}' 789infodir='${datarootdir}/info' 790htmldir='${docdir}' 791dvidir='${docdir}' 792pdfdir='${docdir}' 793psdir='${docdir}' 794libdir='${exec_prefix}/lib' 795localedir='${datarootdir}/locale' 796mandir='${datarootdir}/man' 797 798ac_prev= 799ac_dashdash= 800for ac_option 801do 802 # If the previous option needs an argument, assign it. 803 if test -n "$ac_prev"; then 804 eval $ac_prev=\$ac_option 805 ac_prev= 806 continue 807 fi 808 809 case $ac_option in 810 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 811 *) ac_optarg=yes ;; 812 esac 813 814 # Accept the important Cygnus configure options, so we can diagnose typos. 815 816 case $ac_dashdash$ac_option in 817 --) 818 ac_dashdash=yes ;; 819 820 -bindir | --bindir | --bindi | --bind | --bin | --bi) 821 ac_prev=bindir ;; 822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 823 bindir=$ac_optarg ;; 824 825 -build | --build | --buil | --bui | --bu) 826 ac_prev=build_alias ;; 827 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 828 build_alias=$ac_optarg ;; 829 830 -cache-file | --cache-file | --cache-fil | --cache-fi \ 831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 832 ac_prev=cache_file ;; 833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 835 cache_file=$ac_optarg ;; 836 837 --config-cache | -C) 838 cache_file=config.cache ;; 839 840 -datadir | --datadir | --datadi | --datad) 841 ac_prev=datadir ;; 842 -datadir=* | --datadir=* | --datadi=* | --datad=*) 843 datadir=$ac_optarg ;; 844 845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 846 | --dataroo | --dataro | --datar) 847 ac_prev=datarootdir ;; 848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 850 datarootdir=$ac_optarg ;; 851 852 -disable-* | --disable-*) 853 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 854 # Reject names that are not valid shell variable names. 855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 856 as_fn_error "invalid feature name: $ac_useropt" 857 ac_useropt_orig=$ac_useropt 858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 859 case $ac_user_opts in 860 *" 861"enable_$ac_useropt" 862"*) ;; 863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 864 ac_unrecognized_sep=', ';; 865 esac 866 eval enable_$ac_useropt=no ;; 867 868 -docdir | --docdir | --docdi | --doc | --do) 869 ac_prev=docdir ;; 870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 871 docdir=$ac_optarg ;; 872 873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 874 ac_prev=dvidir ;; 875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 876 dvidir=$ac_optarg ;; 877 878 -enable-* | --enable-*) 879 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 880 # Reject names that are not valid shell variable names. 881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 882 as_fn_error "invalid feature name: $ac_useropt" 883 ac_useropt_orig=$ac_useropt 884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 885 case $ac_user_opts in 886 *" 887"enable_$ac_useropt" 888"*) ;; 889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 890 ac_unrecognized_sep=', ';; 891 esac 892 eval enable_$ac_useropt=\$ac_optarg ;; 893 894 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 895 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 896 | --exec | --exe | --ex) 897 ac_prev=exec_prefix ;; 898 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 899 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 900 | --exec=* | --exe=* | --ex=*) 901 exec_prefix=$ac_optarg ;; 902 903 -gas | --gas | --ga | --g) 904 # Obsolete; use --with-gas. 905 with_gas=yes ;; 906 907 -help | --help | --hel | --he | -h) 908 ac_init_help=long ;; 909 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 910 ac_init_help=recursive ;; 911 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 912 ac_init_help=short ;; 913 914 -host | --host | --hos | --ho) 915 ac_prev=host_alias ;; 916 -host=* | --host=* | --hos=* | --ho=*) 917 host_alias=$ac_optarg ;; 918 919 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 920 ac_prev=htmldir ;; 921 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 922 | --ht=*) 923 htmldir=$ac_optarg ;; 924 925 -includedir | --includedir | --includedi | --included | --include \ 926 | --includ | --inclu | --incl | --inc) 927 ac_prev=includedir ;; 928 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 929 | --includ=* | --inclu=* | --incl=* | --inc=*) 930 includedir=$ac_optarg ;; 931 932 -infodir | --infodir | --infodi | --infod | --info | --inf) 933 ac_prev=infodir ;; 934 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 935 infodir=$ac_optarg ;; 936 937 -libdir | --libdir | --libdi | --libd) 938 ac_prev=libdir ;; 939 -libdir=* | --libdir=* | --libdi=* | --libd=*) 940 libdir=$ac_optarg ;; 941 942 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 943 | --libexe | --libex | --libe) 944 ac_prev=libexecdir ;; 945 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 946 | --libexe=* | --libex=* | --libe=*) 947 libexecdir=$ac_optarg ;; 948 949 -localedir | --localedir | --localedi | --localed | --locale) 950 ac_prev=localedir ;; 951 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 952 localedir=$ac_optarg ;; 953 954 -localstatedir | --localstatedir | --localstatedi | --localstated \ 955 | --localstate | --localstat | --localsta | --localst | --locals) 956 ac_prev=localstatedir ;; 957 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 958 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 959 localstatedir=$ac_optarg ;; 960 961 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 962 ac_prev=mandir ;; 963 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 964 mandir=$ac_optarg ;; 965 966 -nfp | --nfp | --nf) 967 # Obsolete; use --without-fp. 968 with_fp=no ;; 969 970 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 971 | --no-cr | --no-c | -n) 972 no_create=yes ;; 973 974 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 975 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 976 no_recursion=yes ;; 977 978 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 979 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 980 | --oldin | --oldi | --old | --ol | --o) 981 ac_prev=oldincludedir ;; 982 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 983 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 984 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 985 oldincludedir=$ac_optarg ;; 986 987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 988 ac_prev=prefix ;; 989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 990 prefix=$ac_optarg ;; 991 992 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 993 | --program-pre | --program-pr | --program-p) 994 ac_prev=program_prefix ;; 995 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 996 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 997 program_prefix=$ac_optarg ;; 998 999 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1000 | --program-suf | --program-su | --program-s) 1001 ac_prev=program_suffix ;; 1002 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1003 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1004 program_suffix=$ac_optarg ;; 1005 1006 -program-transform-name | --program-transform-name \ 1007 | --program-transform-nam | --program-transform-na \ 1008 | --program-transform-n | --program-transform- \ 1009 | --program-transform | --program-transfor \ 1010 | --program-transfo | --program-transf \ 1011 | --program-trans | --program-tran \ 1012 | --progr-tra | --program-tr | --program-t) 1013 ac_prev=program_transform_name ;; 1014 -program-transform-name=* | --program-transform-name=* \ 1015 | --program-transform-nam=* | --program-transform-na=* \ 1016 | --program-transform-n=* | --program-transform-=* \ 1017 | --program-transform=* | --program-transfor=* \ 1018 | --program-transfo=* | --program-transf=* \ 1019 | --program-trans=* | --program-tran=* \ 1020 | --progr-tra=* | --program-tr=* | --program-t=*) 1021 program_transform_name=$ac_optarg ;; 1022 1023 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1024 ac_prev=pdfdir ;; 1025 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1026 pdfdir=$ac_optarg ;; 1027 1028 -psdir | --psdir | --psdi | --psd | --ps) 1029 ac_prev=psdir ;; 1030 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1031 psdir=$ac_optarg ;; 1032 1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1034 | -silent | --silent | --silen | --sile | --sil) 1035 silent=yes ;; 1036 1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1038 ac_prev=sbindir ;; 1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1040 | --sbi=* | --sb=*) 1041 sbindir=$ac_optarg ;; 1042 1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1045 | --sharedst | --shareds | --shared | --share | --shar \ 1046 | --sha | --sh) 1047 ac_prev=sharedstatedir ;; 1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1051 | --sha=* | --sh=*) 1052 sharedstatedir=$ac_optarg ;; 1053 1054 -site | --site | --sit) 1055 ac_prev=site ;; 1056 -site=* | --site=* | --sit=*) 1057 site=$ac_optarg ;; 1058 1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1060 ac_prev=srcdir ;; 1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1062 srcdir=$ac_optarg ;; 1063 1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1065 | --syscon | --sysco | --sysc | --sys | --sy) 1066 ac_prev=sysconfdir ;; 1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1069 sysconfdir=$ac_optarg ;; 1070 1071 -target | --target | --targe | --targ | --tar | --ta | --t) 1072 ac_prev=target_alias ;; 1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1074 target_alias=$ac_optarg ;; 1075 1076 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1077 verbose=yes ;; 1078 1079 -version | --version | --versio | --versi | --vers | -V) 1080 ac_init_version=: ;; 1081 1082 -with-* | --with-*) 1083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1084 # Reject names that are not valid shell variable names. 1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1086 as_fn_error "invalid package name: $ac_useropt" 1087 ac_useropt_orig=$ac_useropt 1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1089 case $ac_user_opts in 1090 *" 1091"with_$ac_useropt" 1092"*) ;; 1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1094 ac_unrecognized_sep=', ';; 1095 esac 1096 eval with_$ac_useropt=\$ac_optarg ;; 1097 1098 -without-* | --without-*) 1099 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1100 # Reject names that are not valid shell variable names. 1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1102 as_fn_error "invalid package name: $ac_useropt" 1103 ac_useropt_orig=$ac_useropt 1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1105 case $ac_user_opts in 1106 *" 1107"with_$ac_useropt" 1108"*) ;; 1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1110 ac_unrecognized_sep=', ';; 1111 esac 1112 eval with_$ac_useropt=no ;; 1113 1114 --x) 1115 # Obsolete; use --with-x. 1116 with_x=yes ;; 1117 1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1119 | --x-incl | --x-inc | --x-in | --x-i) 1120 ac_prev=x_includes ;; 1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1123 x_includes=$ac_optarg ;; 1124 1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1127 ac_prev=x_libraries ;; 1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1130 x_libraries=$ac_optarg ;; 1131 1132 -*) as_fn_error "unrecognized option: \`$ac_option' 1133Try \`$0 --help' for more information." 1134 ;; 1135 1136 *=*) 1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1138 # Reject names that are not valid shell variable names. 1139 case $ac_envvar in #( 1140 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1141 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1142 esac 1143 eval $ac_envvar=\$ac_optarg 1144 export $ac_envvar ;; 1145 1146 *) 1147 # FIXME: should be removed in autoconf 3.0. 1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1152 ;; 1153 1154 esac 1155done 1156 1157if test -n "$ac_prev"; then 1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1159 as_fn_error "missing argument to $ac_option" 1160fi 1161 1162if test -n "$ac_unrecognized_opts"; then 1163 case $enable_option_checking in 1164 no) ;; 1165 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1167 esac 1168fi 1169 1170# Check all directory arguments for consistency. 1171for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1172 datadir sysconfdir sharedstatedir localstatedir includedir \ 1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1174 libdir localedir mandir 1175do 1176 eval ac_val=\$$ac_var 1177 # Remove trailing slashes. 1178 case $ac_val in 1179 */ ) 1180 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1181 eval $ac_var=\$ac_val;; 1182 esac 1183 # Be sure to have absolute directory names. 1184 case $ac_val in 1185 [\\/$]* | ?:[\\/]* ) continue;; 1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1187 esac 1188 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1189done 1190 1191# There might be people who depend on the old broken behavior: `$host' 1192# used to hold the argument of --host etc. 1193# FIXME: To remove some day. 1194build=$build_alias 1195host=$host_alias 1196target=$target_alias 1197 1198# FIXME: To remove some day. 1199if test "x$host_alias" != x; then 1200 if test "x$build_alias" = x; then 1201 cross_compiling=maybe 1202 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1203 If a cross compiler is detected then cross compile mode will be used." >&2 1204 elif test "x$build_alias" != "x$host_alias"; then 1205 cross_compiling=yes 1206 fi 1207fi 1208 1209ac_tool_prefix= 1210test -n "$host_alias" && ac_tool_prefix=$host_alias- 1211 1212test "$silent" = yes && exec 6>/dev/null 1213 1214 1215ac_pwd=`pwd` && test -n "$ac_pwd" && 1216ac_ls_di=`ls -di .` && 1217ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1218 as_fn_error "working directory cannot be determined" 1219test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1220 as_fn_error "pwd does not report name of working directory" 1221 1222 1223# Find the source files, if location was not specified. 1224if test -z "$srcdir"; then 1225 ac_srcdir_defaulted=yes 1226 # Try the directory containing this script, then the parent directory. 1227 ac_confdir=`$as_dirname -- "$as_myself" || 1228$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1229 X"$as_myself" : 'X\(//\)[^/]' \| \ 1230 X"$as_myself" : 'X\(//\)$' \| \ 1231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1232$as_echo X"$as_myself" | 1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1234 s//\1/ 1235 q 1236 } 1237 /^X\(\/\/\)[^/].*/{ 1238 s//\1/ 1239 q 1240 } 1241 /^X\(\/\/\)$/{ 1242 s//\1/ 1243 q 1244 } 1245 /^X\(\/\).*/{ 1246 s//\1/ 1247 q 1248 } 1249 s/.*/./; q'` 1250 srcdir=$ac_confdir 1251 if test ! -r "$srcdir/$ac_unique_file"; then 1252 srcdir=.. 1253 fi 1254else 1255 ac_srcdir_defaulted=no 1256fi 1257if test ! -r "$srcdir/$ac_unique_file"; then 1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1259 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1260fi 1261ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1262ac_abs_confdir=`( 1263 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1264 pwd)` 1265# When building in place, set srcdir=. 1266if test "$ac_abs_confdir" = "$ac_pwd"; then 1267 srcdir=. 1268fi 1269# Remove unnecessary trailing slashes from srcdir. 1270# Double slashes in file names in object file debugging info 1271# mess up M-x gdb in Emacs. 1272case $srcdir in 1273*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1274esac 1275for ac_var in $ac_precious_vars; do 1276 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1277 eval ac_env_${ac_var}_value=\$${ac_var} 1278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1279 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1280done 1281 1282# 1283# Report the --help message. 1284# 1285if test "$ac_init_help" = "long"; then 1286 # Omit some internal or obsolete options to make the list less imposing. 1287 # This message is too long to be a string in the A/UX 3.1 sh. 1288 cat <<_ACEOF 1289\`configure' configures this package to adapt to many kinds of systems. 1290 1291Usage: $0 [OPTION]... [VAR=VALUE]... 1292 1293To assign environment variables (e.g., CC, CFLAGS...), specify them as 1294VAR=VALUE. See below for descriptions of some of the useful variables. 1295 1296Defaults for the options are specified in brackets. 1297 1298Configuration: 1299 -h, --help display this help and exit 1300 --help=short display options specific to this package 1301 --help=recursive display the short help of all the included packages 1302 -V, --version display version information and exit 1303 -q, --quiet, --silent do not print \`checking...' messages 1304 --cache-file=FILE cache test results in FILE [disabled] 1305 -C, --config-cache alias for \`--cache-file=config.cache' 1306 -n, --no-create do not create output files 1307 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1308 1309Installation directories: 1310 --prefix=PREFIX install architecture-independent files in PREFIX 1311 [$ac_default_prefix] 1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1313 [PREFIX] 1314 1315By default, \`make install' will install all the files in 1316\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1317an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1318for instance \`--prefix=\$HOME'. 1319 1320For better control, use the options below. 1321 1322Fine tuning of the installation directories: 1323 --bindir=DIR user executables [EPREFIX/bin] 1324 --sbindir=DIR system admin executables [EPREFIX/sbin] 1325 --libexecdir=DIR program executables [EPREFIX/libexec] 1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1329 --libdir=DIR object code libraries [EPREFIX/lib] 1330 --includedir=DIR C header files [PREFIX/include] 1331 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1334 --infodir=DIR info documentation [DATAROOTDIR/info] 1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1336 --mandir=DIR man documentation [DATAROOTDIR/man] 1337 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1338 --htmldir=DIR html documentation [DOCDIR] 1339 --dvidir=DIR dvi documentation [DOCDIR] 1340 --pdfdir=DIR pdf documentation [DOCDIR] 1341 --psdir=DIR ps documentation [DOCDIR] 1342_ACEOF 1343 1344 cat <<\_ACEOF 1345 1346Program names: 1347 --program-prefix=PREFIX prepend PREFIX to installed program names 1348 --program-suffix=SUFFIX append SUFFIX to installed program names 1349 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1350 1351System types: 1352 --build=BUILD configure for building on BUILD [guessed] 1353 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1354 --target=TARGET configure for building compilers for TARGET [HOST] 1355_ACEOF 1356fi 1357 1358if test -n "$ac_init_help"; then 1359 1360 cat <<\_ACEOF 1361 1362Optional Features: 1363 --disable-option-checking ignore unrecognized --enable/--with options 1364 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1365 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1366 --enable-multilib build many library versions (default) 1367 --enable-maintainer-mode enable make rules and dependencies not useful 1368 (and sometimes confusing) to the casual installer 1369 --disable-dependency-tracking speeds up one-time build 1370 --enable-dependency-tracking do not reject slow dependency extractors 1371 --enable-shared[=PKGS] build shared libraries [default=yes] 1372 --enable-static[=PKGS] build static libraries [default=yes] 1373 --enable-fast-install[=PKGS] 1374 optimize for fast installation [default=yes] 1375 --disable-libtool-lock avoid locking (might break parallel builds) 1376 --enable-host-shared build host code as shared libraries 1377 1378Optional Packages: 1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1381 --with-target-subdir=SUBDIR 1382 configuring in a subdirectory 1383 --with-cross-host=HOST configuring with a cross compiler 1384 --with-system-zlib use installed libz 1385 --with-pic try to use only PIC/non-PIC objects [default=use 1386 both] 1387 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1388 1389Some influential environment variables: 1390 CC C compiler command 1391 CFLAGS C compiler flags 1392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1393 nonstandard directory <lib dir> 1394 LIBS libraries to pass to the linker, e.g. -l<library> 1395 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1396 you have headers in a nonstandard directory <include dir> 1397 CPP C preprocessor 1398 1399Use these variables to override the choices made by `configure' or to help 1400it to find libraries and programs with nonstandard names/locations. 1401 1402Report bugs to the package provider. 1403_ACEOF 1404ac_status=$? 1405fi 1406 1407if test "$ac_init_help" = "recursive"; then 1408 # If there are subdirs, report their specific --help. 1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1410 test -d "$ac_dir" || 1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1412 continue 1413 ac_builddir=. 1414 1415case "$ac_dir" in 1416.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1417*) 1418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1419 # A ".." for each directory in $ac_dir_suffix. 1420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1421 case $ac_top_builddir_sub in 1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1424 esac ;; 1425esac 1426ac_abs_top_builddir=$ac_pwd 1427ac_abs_builddir=$ac_pwd$ac_dir_suffix 1428# for backward compatibility: 1429ac_top_builddir=$ac_top_build_prefix 1430 1431case $srcdir in 1432 .) # We are building in place. 1433 ac_srcdir=. 1434 ac_top_srcdir=$ac_top_builddir_sub 1435 ac_abs_top_srcdir=$ac_pwd ;; 1436 [\\/]* | ?:[\\/]* ) # Absolute name. 1437 ac_srcdir=$srcdir$ac_dir_suffix; 1438 ac_top_srcdir=$srcdir 1439 ac_abs_top_srcdir=$srcdir ;; 1440 *) # Relative name. 1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1442 ac_top_srcdir=$ac_top_build_prefix$srcdir 1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1444esac 1445ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1446 1447 cd "$ac_dir" || { ac_status=$?; continue; } 1448 # Check for guested configure. 1449 if test -f "$ac_srcdir/configure.gnu"; then 1450 echo && 1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1452 elif test -f "$ac_srcdir/configure"; then 1453 echo && 1454 $SHELL "$ac_srcdir/configure" --help=recursive 1455 else 1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1457 fi || ac_status=$? 1458 cd "$ac_pwd" || { ac_status=$?; break; } 1459 done 1460fi 1461 1462test -n "$ac_init_help" && exit $ac_status 1463if $ac_init_version; then 1464 cat <<\_ACEOF 1465configure 1466generated by GNU Autoconf 2.64 1467 1468Copyright (C) 2009 Free Software Foundation, Inc. 1469This configure script is free software; the Free Software Foundation 1470gives unlimited permission to copy, distribute and modify it. 1471_ACEOF 1472 exit 1473fi 1474 1475## ------------------------ ## 1476## Autoconf initialization. ## 1477## ------------------------ ## 1478 1479# ac_fn_c_try_compile LINENO 1480# -------------------------- 1481# Try to compile conftest.$ac_ext, and return whether this succeeded. 1482ac_fn_c_try_compile () 1483{ 1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1485 rm -f conftest.$ac_objext 1486 if { { ac_try="$ac_compile" 1487case "(($ac_try" in 1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1489 *) ac_try_echo=$ac_try;; 1490esac 1491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1492$as_echo "$ac_try_echo"; } >&5 1493 (eval "$ac_compile") 2>conftest.err 1494 ac_status=$? 1495 if test -s conftest.err; then 1496 grep -v '^ *+' conftest.err >conftest.er1 1497 cat conftest.er1 >&5 1498 mv -f conftest.er1 conftest.err 1499 fi 1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1501 test $ac_status = 0; } && { 1502 test -z "$ac_c_werror_flag" || 1503 test ! -s conftest.err 1504 } && test -s conftest.$ac_objext; then : 1505 ac_retval=0 1506else 1507 $as_echo "$as_me: failed program was:" >&5 1508sed 's/^/| /' conftest.$ac_ext >&5 1509 1510 ac_retval=1 1511fi 1512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1513 return $ac_retval 1514 1515} # ac_fn_c_try_compile 1516 1517# ac_fn_c_try_link LINENO 1518# ----------------------- 1519# Try to link conftest.$ac_ext, and return whether this succeeded. 1520ac_fn_c_try_link () 1521{ 1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1523 rm -f conftest.$ac_objext conftest$ac_exeext 1524 if { { ac_try="$ac_link" 1525case "(($ac_try" in 1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1527 *) ac_try_echo=$ac_try;; 1528esac 1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1530$as_echo "$ac_try_echo"; } >&5 1531 (eval "$ac_link") 2>conftest.err 1532 ac_status=$? 1533 if test -s conftest.err; then 1534 grep -v '^ *+' conftest.err >conftest.er1 1535 cat conftest.er1 >&5 1536 mv -f conftest.er1 conftest.err 1537 fi 1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1539 test $ac_status = 0; } && { 1540 test -z "$ac_c_werror_flag" || 1541 test ! -s conftest.err 1542 } && test -s conftest$ac_exeext && { 1543 test "$cross_compiling" = yes || 1544 $as_test_x conftest$ac_exeext 1545 }; then : 1546 ac_retval=0 1547else 1548 $as_echo "$as_me: failed program was:" >&5 1549sed 's/^/| /' conftest.$ac_ext >&5 1550 1551 ac_retval=1 1552fi 1553 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1554 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1555 # interfere with the next link command; also delete a directory that is 1556 # left behind by Apple's compiler. We do this before executing the actions. 1557 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1559 return $ac_retval 1560 1561} # ac_fn_c_try_link 1562 1563# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1564# ------------------------------------------------------- 1565# Tests whether HEADER exists and can be compiled using the include files in 1566# INCLUDES, setting the cache variable VAR accordingly. 1567ac_fn_c_check_header_compile () 1568{ 1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1571$as_echo_n "checking for $2... " >&6; } 1572if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1573 $as_echo_n "(cached) " >&6 1574else 1575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1576/* end confdefs.h. */ 1577$4 1578#include <$2> 1579_ACEOF 1580if ac_fn_c_try_compile "$LINENO"; then : 1581 eval "$3=yes" 1582else 1583 eval "$3=no" 1584fi 1585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1586fi 1587eval ac_res=\$$3 1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1589$as_echo "$ac_res" >&6; } 1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1591 1592} # ac_fn_c_check_header_compile 1593 1594# ac_fn_c_try_cpp LINENO 1595# ---------------------- 1596# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1597ac_fn_c_try_cpp () 1598{ 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 if { { ac_try="$ac_cpp conftest.$ac_ext" 1601case "(($ac_try" in 1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1603 *) ac_try_echo=$ac_try;; 1604esac 1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1606$as_echo "$ac_try_echo"; } >&5 1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1608 ac_status=$? 1609 if test -s conftest.err; then 1610 grep -v '^ *+' conftest.err >conftest.er1 1611 cat conftest.er1 >&5 1612 mv -f conftest.er1 conftest.err 1613 fi 1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1615 test $ac_status = 0; } >/dev/null && { 1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1617 test ! -s conftest.err 1618 }; then : 1619 ac_retval=0 1620else 1621 $as_echo "$as_me: failed program was:" >&5 1622sed 's/^/| /' conftest.$ac_ext >&5 1623 1624 ac_retval=1 1625fi 1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1627 return $ac_retval 1628 1629} # ac_fn_c_try_cpp 1630 1631# ac_fn_c_try_run LINENO 1632# ---------------------- 1633# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1634# that executables *can* be run. 1635ac_fn_c_try_run () 1636{ 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 if { { ac_try="$ac_link" 1639case "(($ac_try" in 1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1641 *) ac_try_echo=$ac_try;; 1642esac 1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1644$as_echo "$ac_try_echo"; } >&5 1645 (eval "$ac_link") 2>&5 1646 ac_status=$? 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1649 { { case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652esac 1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654$as_echo "$ac_try_echo"; } >&5 1655 (eval "$ac_try") 2>&5 1656 ac_status=$? 1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1658 test $ac_status = 0; }; }; then : 1659 ac_retval=0 1660else 1661 $as_echo "$as_me: program exited with status $ac_status" >&5 1662 $as_echo "$as_me: failed program was:" >&5 1663sed 's/^/| /' conftest.$ac_ext >&5 1664 1665 ac_retval=$ac_status 1666fi 1667 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1669 return $ac_retval 1670 1671} # ac_fn_c_try_run 1672 1673# ac_fn_c_check_func LINENO FUNC VAR 1674# ---------------------------------- 1675# Tests whether FUNC exists, setting the cache variable VAR accordingly 1676ac_fn_c_check_func () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1680$as_echo_n "checking for $2... " >&6; } 1681if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1682 $as_echo_n "(cached) " >&6 1683else 1684 if test x$gcc_no_link = xyes; then 1685 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 1686fi 1687cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1688/* end confdefs.h. */ 1689/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1690 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1691#define $2 innocuous_$2 1692 1693/* System header to define __stub macros and hopefully few prototypes, 1694 which can conflict with char $2 (); below. 1695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1696 <limits.h> exists even on freestanding compilers. */ 1697 1698#ifdef __STDC__ 1699# include <limits.h> 1700#else 1701# include <assert.h> 1702#endif 1703 1704#undef $2 1705 1706/* Override any GCC internal prototype to avoid an error. 1707 Use char because int might match the return type of a GCC 1708 builtin and then its argument prototype would still apply. */ 1709#ifdef __cplusplus 1710extern "C" 1711#endif 1712char $2 (); 1713/* The GNU C library defines this for functions which it implements 1714 to always fail with ENOSYS. Some functions are actually named 1715 something starting with __ and the normal name is an alias. */ 1716#if defined __stub_$2 || defined __stub___$2 1717choke me 1718#endif 1719 1720int 1721main () 1722{ 1723return $2 (); 1724 ; 1725 return 0; 1726} 1727_ACEOF 1728if ac_fn_c_try_link "$LINENO"; then : 1729 eval "$3=yes" 1730else 1731 eval "$3=no" 1732fi 1733rm -f core conftest.err conftest.$ac_objext \ 1734 conftest$ac_exeext conftest.$ac_ext 1735fi 1736eval ac_res=\$$3 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1738$as_echo "$ac_res" >&6; } 1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1740 1741} # ac_fn_c_check_func 1742 1743# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1744# ------------------------------------------------------- 1745# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1746# the include files in INCLUDES and setting the cache variable VAR 1747# accordingly. 1748ac_fn_c_check_header_mongrel () 1749{ 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1753$as_echo_n "checking for $2... " >&6; } 1754if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1755 $as_echo_n "(cached) " >&6 1756fi 1757eval ac_res=\$$3 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1759$as_echo "$ac_res" >&6; } 1760else 1761 # Is the header compilable? 1762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1763$as_echo_n "checking $2 usability... " >&6; } 1764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1765/* end confdefs.h. */ 1766$4 1767#include <$2> 1768_ACEOF 1769if ac_fn_c_try_compile "$LINENO"; then : 1770 ac_header_compiler=yes 1771else 1772 ac_header_compiler=no 1773fi 1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1776$as_echo "$ac_header_compiler" >&6; } 1777 1778# Is the header present? 1779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1780$as_echo_n "checking $2 presence... " >&6; } 1781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1782/* end confdefs.h. */ 1783#include <$2> 1784_ACEOF 1785if ac_fn_c_try_cpp "$LINENO"; then : 1786 ac_header_preproc=yes 1787else 1788 ac_header_preproc=no 1789fi 1790rm -f conftest.err conftest.$ac_ext 1791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1792$as_echo "$ac_header_preproc" >&6; } 1793 1794# So? What about this header? 1795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1796 yes:no: ) 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1798$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1800$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1801 ;; 1802 no:yes:* ) 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1804$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1806$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1808$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1810$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1812$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1813 ;; 1814esac 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1816$as_echo_n "checking for $2... " >&6; } 1817if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1818 $as_echo_n "(cached) " >&6 1819else 1820 eval "$3=\$ac_header_compiler" 1821fi 1822eval ac_res=\$$3 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1824$as_echo "$ac_res" >&6; } 1825fi 1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1827 1828} # ac_fn_c_check_header_mongrel 1829cat >config.log <<_ACEOF 1830This file contains any messages produced by compilers while 1831running configure, to aid debugging if configure makes a mistake. 1832 1833It was created by $as_me, which was 1834generated by GNU Autoconf 2.64. Invocation command line was 1835 1836 $ $0 $@ 1837 1838_ACEOF 1839exec 5>>config.log 1840{ 1841cat <<_ASUNAME 1842## --------- ## 1843## Platform. ## 1844## --------- ## 1845 1846hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1847uname -m = `(uname -m) 2>/dev/null || echo unknown` 1848uname -r = `(uname -r) 2>/dev/null || echo unknown` 1849uname -s = `(uname -s) 2>/dev/null || echo unknown` 1850uname -v = `(uname -v) 2>/dev/null || echo unknown` 1851 1852/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1853/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1854 1855/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1856/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1857/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1858/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1859/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1860/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1861/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1862 1863_ASUNAME 1864 1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1866for as_dir in $PATH 1867do 1868 IFS=$as_save_IFS 1869 test -z "$as_dir" && as_dir=. 1870 $as_echo "PATH: $as_dir" 1871 done 1872IFS=$as_save_IFS 1873 1874} >&5 1875 1876cat >&5 <<_ACEOF 1877 1878 1879## ----------- ## 1880## Core tests. ## 1881## ----------- ## 1882 1883_ACEOF 1884 1885 1886# Keep a trace of the command line. 1887# Strip out --no-create and --no-recursion so they do not pile up. 1888# Strip out --silent because we don't want to record it for future runs. 1889# Also quote any args containing shell meta-characters. 1890# Make two passes to allow for proper duplicate-argument suppression. 1891ac_configure_args= 1892ac_configure_args0= 1893ac_configure_args1= 1894ac_must_keep_next=false 1895for ac_pass in 1 2 1896do 1897 for ac_arg 1898 do 1899 case $ac_arg in 1900 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1902 | -silent | --silent | --silen | --sile | --sil) 1903 continue ;; 1904 *\'*) 1905 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1906 esac 1907 case $ac_pass in 1908 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1909 2) 1910 as_fn_append ac_configure_args1 " '$ac_arg'" 1911 if test $ac_must_keep_next = true; then 1912 ac_must_keep_next=false # Got value, back to normal. 1913 else 1914 case $ac_arg in 1915 *=* | --config-cache | -C | -disable-* | --disable-* \ 1916 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1917 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1918 | -with-* | --with-* | -without-* | --without-* | --x) 1919 case "$ac_configure_args0 " in 1920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1921 esac 1922 ;; 1923 -* ) ac_must_keep_next=true ;; 1924 esac 1925 fi 1926 as_fn_append ac_configure_args " '$ac_arg'" 1927 ;; 1928 esac 1929 done 1930done 1931{ ac_configure_args0=; unset ac_configure_args0;} 1932{ ac_configure_args1=; unset ac_configure_args1;} 1933 1934# When interrupted or exit'd, cleanup temporary files, and complete 1935# config.log. We remove comments because anyway the quotes in there 1936# would cause problems or look ugly. 1937# WARNING: Use '\'' to represent an apostrophe within the trap. 1938# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1939trap 'exit_status=$? 1940 # Save into config.log some information that might help in debugging. 1941 { 1942 echo 1943 1944 cat <<\_ASBOX 1945## ---------------- ## 1946## Cache variables. ## 1947## ---------------- ## 1948_ASBOX 1949 echo 1950 # The following way of writing the cache mishandles newlines in values, 1951( 1952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1953 eval ac_val=\$$ac_var 1954 case $ac_val in #( 1955 *${as_nl}*) 1956 case $ac_var in #( 1957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1958$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1959 esac 1960 case $ac_var in #( 1961 _ | IFS | as_nl) ;; #( 1962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1963 *) { eval $ac_var=; unset $ac_var;} ;; 1964 esac ;; 1965 esac 1966 done 1967 (set) 2>&1 | 1968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1969 *${as_nl}ac_space=\ *) 1970 sed -n \ 1971 "s/'\''/'\''\\\\'\'''\''/g; 1972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1973 ;; #( 1974 *) 1975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1976 ;; 1977 esac | 1978 sort 1979) 1980 echo 1981 1982 cat <<\_ASBOX 1983## ----------------- ## 1984## Output variables. ## 1985## ----------------- ## 1986_ASBOX 1987 echo 1988 for ac_var in $ac_subst_vars 1989 do 1990 eval ac_val=\$$ac_var 1991 case $ac_val in 1992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1993 esac 1994 $as_echo "$ac_var='\''$ac_val'\''" 1995 done | sort 1996 echo 1997 1998 if test -n "$ac_subst_files"; then 1999 cat <<\_ASBOX 2000## ------------------- ## 2001## File substitutions. ## 2002## ------------------- ## 2003_ASBOX 2004 echo 2005 for ac_var in $ac_subst_files 2006 do 2007 eval ac_val=\$$ac_var 2008 case $ac_val in 2009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2010 esac 2011 $as_echo "$ac_var='\''$ac_val'\''" 2012 done | sort 2013 echo 2014 fi 2015 2016 if test -s confdefs.h; then 2017 cat <<\_ASBOX 2018## ----------- ## 2019## confdefs.h. ## 2020## ----------- ## 2021_ASBOX 2022 echo 2023 cat confdefs.h 2024 echo 2025 fi 2026 test "$ac_signal" != 0 && 2027 $as_echo "$as_me: caught signal $ac_signal" 2028 $as_echo "$as_me: exit $exit_status" 2029 } >&5 2030 rm -f core *.core core.conftest.* && 2031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2032 exit $exit_status 2033' 0 2034for ac_signal in 1 2 13 15; do 2035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2036done 2037ac_signal=0 2038 2039# confdefs.h avoids OS command line length limits that DEFS can exceed. 2040rm -f -r conftest* confdefs.h 2041 2042$as_echo "/* confdefs.h */" > confdefs.h 2043 2044# Predefined preprocessor variables. 2045 2046cat >>confdefs.h <<_ACEOF 2047#define PACKAGE_NAME "$PACKAGE_NAME" 2048_ACEOF 2049 2050cat >>confdefs.h <<_ACEOF 2051#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2052_ACEOF 2053 2054cat >>confdefs.h <<_ACEOF 2055#define PACKAGE_VERSION "$PACKAGE_VERSION" 2056_ACEOF 2057 2058cat >>confdefs.h <<_ACEOF 2059#define PACKAGE_STRING "$PACKAGE_STRING" 2060_ACEOF 2061 2062cat >>confdefs.h <<_ACEOF 2063#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2064_ACEOF 2065 2066cat >>confdefs.h <<_ACEOF 2067#define PACKAGE_URL "$PACKAGE_URL" 2068_ACEOF 2069 2070 2071# Let the site file select an alternate cache file if it wants to. 2072# Prefer an explicitly selected file to automatically selected ones. 2073ac_site_file1=NONE 2074ac_site_file2=NONE 2075if test -n "$CONFIG_SITE"; then 2076 ac_site_file1=$CONFIG_SITE 2077elif test "x$prefix" != xNONE; then 2078 ac_site_file1=$prefix/share/config.site 2079 ac_site_file2=$prefix/etc/config.site 2080else 2081 ac_site_file1=$ac_default_prefix/share/config.site 2082 ac_site_file2=$ac_default_prefix/etc/config.site 2083fi 2084for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2085do 2086 test "x$ac_site_file" = xNONE && continue 2087 if test -r "$ac_site_file"; then 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2089$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2090 sed 's/^/| /' "$ac_site_file" >&5 2091 . "$ac_site_file" 2092 fi 2093done 2094 2095if test -r "$cache_file"; then 2096 # Some versions of bash will fail to source /dev/null (special 2097 # files actually), so we avoid doing that. 2098 if test -f "$cache_file"; then 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2100$as_echo "$as_me: loading cache $cache_file" >&6;} 2101 case $cache_file in 2102 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2103 *) . "./$cache_file";; 2104 esac 2105 fi 2106else 2107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2108$as_echo "$as_me: creating cache $cache_file" >&6;} 2109 >$cache_file 2110fi 2111 2112# Check that the precious variables saved in the cache have kept the same 2113# value. 2114ac_cache_corrupted=false 2115for ac_var in $ac_precious_vars; do 2116 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2117 eval ac_new_set=\$ac_env_${ac_var}_set 2118 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2119 eval ac_new_val=\$ac_env_${ac_var}_value 2120 case $ac_old_set,$ac_new_set in 2121 set,) 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2123$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2124 ac_cache_corrupted=: ;; 2125 ,set) 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2127$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2128 ac_cache_corrupted=: ;; 2129 ,);; 2130 *) 2131 if test "x$ac_old_val" != "x$ac_new_val"; then 2132 # differences in whitespace do not lead to failure. 2133 ac_old_val_w=`echo x $ac_old_val` 2134 ac_new_val_w=`echo x $ac_new_val` 2135 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2137$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2138 ac_cache_corrupted=: 2139 else 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2141$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2142 eval $ac_var=\$ac_old_val 2143 fi 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2145$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2147$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2148 fi;; 2149 esac 2150 # Pass precious variables to config.status. 2151 if test "$ac_new_set" = set; then 2152 case $ac_new_val in 2153 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2154 *) ac_arg=$ac_var=$ac_new_val ;; 2155 esac 2156 case " $ac_configure_args " in 2157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2158 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2159 esac 2160 fi 2161done 2162if $ac_cache_corrupted; then 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2166$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2167 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2168fi 2169## -------------------- ## 2170## Main body of script. ## 2171## -------------------- ## 2172 2173ac_ext=c 2174ac_cpp='$CPP $CPPFLAGS' 2175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2177ac_compiler_gnu=$ac_cv_c_compiler_gnu 2178 2179 2180 2181 2182 2183 2184 2185if test -n "${with_target_subdir}"; then 2186 # Default to --enable-multilib 2187# Check whether --enable-multilib was given. 2188if test "${enable_multilib+set}" = set; then : 2189 enableval=$enable_multilib; case "$enableval" in 2190 yes) multilib=yes ;; 2191 no) multilib=no ;; 2192 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; 2193 esac 2194else 2195 multilib=yes 2196fi 2197 2198 2199# We may get other options which we leave undocumented: 2200# --with-target-subdir, --with-multisrctop, --with-multisubdir 2201# See config-ml.in if you want the gory details. 2202 2203if test "$srcdir" = "."; then 2204 if test "$with_target_subdir" != "."; then 2205 multi_basedir="$srcdir/$with_multisrctop../.." 2206 else 2207 multi_basedir="$srcdir/$with_multisrctop.." 2208 fi 2209else 2210 multi_basedir="$srcdir/.." 2211fi 2212 2213 2214# Even if the default multilib is not a cross compilation, 2215# it may be that some of the other multilibs are. 2216if test $cross_compiling = no && test $multilib = yes \ 2217 && test "x${with_multisubdir}" != x ; then 2218 cross_compiling=maybe 2219fi 2220 2221ac_config_commands="$ac_config_commands default-1" 2222 2223fi 2224 2225ac_aux_dir= 2226for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2227 for ac_t in install-sh install.sh shtool; do 2228 if test -f "$ac_dir/$ac_t"; then 2229 ac_aux_dir=$ac_dir 2230 ac_install_sh="$ac_aux_dir/$ac_t -c" 2231 break 2 2232 fi 2233 done 2234done 2235if test -z "$ac_aux_dir"; then 2236 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2237fi 2238 2239# These three variables are undocumented and unsupported, 2240# and are intended to be withdrawn in a future Autoconf release. 2241# They can cause serious problems if a builder's source tree is in a directory 2242# whose full name contains unusual characters. 2243ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2244ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2245ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2246 2247 2248# Make sure we can run config.sub. 2249$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2250 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2251 2252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2253$as_echo_n "checking build system type... " >&6; } 2254if test "${ac_cv_build+set}" = set; then : 2255 $as_echo_n "(cached) " >&6 2256else 2257 ac_build_alias=$build_alias 2258test "x$ac_build_alias" = x && 2259 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2260test "x$ac_build_alias" = x && 2261 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2262ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2263 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2264 2265fi 2266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2267$as_echo "$ac_cv_build" >&6; } 2268case $ac_cv_build in 2269*-*-*) ;; 2270*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2271esac 2272build=$ac_cv_build 2273ac_save_IFS=$IFS; IFS='-' 2274set x $ac_cv_build 2275shift 2276build_cpu=$1 2277build_vendor=$2 2278shift; shift 2279# Remember, the first character of IFS is used to create $*, 2280# except with old shells: 2281build_os=$* 2282IFS=$ac_save_IFS 2283case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2284 2285 2286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2287$as_echo_n "checking host system type... " >&6; } 2288if test "${ac_cv_host+set}" = set; then : 2289 $as_echo_n "(cached) " >&6 2290else 2291 if test "x$host_alias" = x; then 2292 ac_cv_host=$ac_cv_build 2293else 2294 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2295 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2296fi 2297 2298fi 2299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2300$as_echo "$ac_cv_host" >&6; } 2301case $ac_cv_host in 2302*-*-*) ;; 2303*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2304esac 2305host=$ac_cv_host 2306ac_save_IFS=$IFS; IFS='-' 2307set x $ac_cv_host 2308shift 2309host_cpu=$1 2310host_vendor=$2 2311shift; shift 2312# Remember, the first character of IFS is used to create $*, 2313# except with old shells: 2314host_os=$* 2315IFS=$ac_save_IFS 2316case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2317 2318 2319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2320$as_echo_n "checking target system type... " >&6; } 2321if test "${ac_cv_target+set}" = set; then : 2322 $as_echo_n "(cached) " >&6 2323else 2324 if test "x$target_alias" = x; then 2325 ac_cv_target=$ac_cv_host 2326else 2327 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2328 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2329fi 2330 2331fi 2332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2333$as_echo "$ac_cv_target" >&6; } 2334case $ac_cv_target in 2335*-*-*) ;; 2336*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2337esac 2338target=$ac_cv_target 2339ac_save_IFS=$IFS; IFS='-' 2340set x $ac_cv_target 2341shift 2342target_cpu=$1 2343target_vendor=$2 2344shift; shift 2345# Remember, the first character of IFS is used to create $*, 2346# except with old shells: 2347target_os=$* 2348IFS=$ac_save_IFS 2349case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2350 2351 2352# The aliases save the names the user supplied, while $host etc. 2353# will get canonicalized. 2354test -n "$target_alias" && 2355 test "$program_prefix$program_suffix$program_transform_name" = \ 2356 NONENONEs,x,x, && 2357 program_prefix=${target_alias}- 2358 2359 2360# This works around an automake problem. 2361mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs" 2362 2363 2364am__api_version='1.11' 2365 2366# Find a good install program. We prefer a C program (faster), 2367# so one script is as good as another. But avoid the broken or 2368# incompatible versions: 2369# SysV /etc/install, /usr/sbin/install 2370# SunOS /usr/etc/install 2371# IRIX /sbin/install 2372# AIX /bin/install 2373# AmigaOS /C/install, which installs bootblocks on floppy discs 2374# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2375# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2376# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2377# OS/2's system install, which has a completely different semantic 2378# ./install, which can be erroneously created by make from ./install.sh. 2379# Reject install programs that cannot install multiple files. 2380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2381$as_echo_n "checking for a BSD-compatible install... " >&6; } 2382if test -z "$INSTALL"; then 2383if test "${ac_cv_path_install+set}" = set; then : 2384 $as_echo_n "(cached) " >&6 2385else 2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2387for as_dir in $PATH 2388do 2389 IFS=$as_save_IFS 2390 test -z "$as_dir" && as_dir=. 2391 # Account for people who put trailing slashes in PATH elements. 2392case $as_dir/ in #(( 2393 ./ | .// | /[cC]/* | \ 2394 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2395 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2396 /usr/ucb/* ) ;; 2397 *) 2398 # OSF1 and SCO ODT 3.0 have their own names for install. 2399 # Don't use installbsd from OSF since it installs stuff as root 2400 # by default. 2401 for ac_prog in ginstall scoinst install; do 2402 for ac_exec_ext in '' $ac_executable_extensions; do 2403 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2404 if test $ac_prog = install && 2405 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2406 # AIX install. It has an incompatible calling convention. 2407 : 2408 elif test $ac_prog = install && 2409 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2410 # program-specific install script used by HP pwplus--don't use. 2411 : 2412 else 2413 rm -rf conftest.one conftest.two conftest.dir 2414 echo one > conftest.one 2415 echo two > conftest.two 2416 mkdir conftest.dir 2417 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2418 test -s conftest.one && test -s conftest.two && 2419 test -s conftest.dir/conftest.one && 2420 test -s conftest.dir/conftest.two 2421 then 2422 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2423 break 3 2424 fi 2425 fi 2426 fi 2427 done 2428 done 2429 ;; 2430esac 2431 2432 done 2433IFS=$as_save_IFS 2434 2435rm -rf conftest.one conftest.two conftest.dir 2436 2437fi 2438 if test "${ac_cv_path_install+set}" = set; then 2439 INSTALL=$ac_cv_path_install 2440 else 2441 # As a last resort, use the slow shell script. Don't cache a 2442 # value for INSTALL within a source directory, because that will 2443 # break other packages using the cache if that directory is 2444 # removed, or if the value is a relative name. 2445 INSTALL=$ac_install_sh 2446 fi 2447fi 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2449$as_echo "$INSTALL" >&6; } 2450 2451# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2452# It thinks the first close brace ends the variable substitution. 2453test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2454 2455test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2456 2457test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2458 2459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2460$as_echo_n "checking whether build environment is sane... " >&6; } 2461# Just in case 2462sleep 1 2463echo timestamp > conftest.file 2464# Reject unsafe characters in $srcdir or the absolute working directory 2465# name. Accept space and tab only in the latter. 2466am_lf=' 2467' 2468case `pwd` in 2469 *[\\\"\#\$\&\'\`$am_lf]*) 2470 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2471esac 2472case $srcdir in 2473 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2474 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2475esac 2476 2477# Do `set' in a subshell so we don't clobber the current shell's 2478# arguments. Must try -L first in case configure is actually a 2479# symlink; some systems play weird games with the mod time of symlinks 2480# (eg FreeBSD returns the mod time of the symlink's containing 2481# directory). 2482if ( 2483 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2484 if test "$*" = "X"; then 2485 # -L didn't work. 2486 set X `ls -t "$srcdir/configure" conftest.file` 2487 fi 2488 rm -f conftest.file 2489 if test "$*" != "X $srcdir/configure conftest.file" \ 2490 && test "$*" != "X conftest.file $srcdir/configure"; then 2491 2492 # If neither matched, then we have a broken ls. This can happen 2493 # if, for instance, CONFIG_SHELL is bash and it inherits a 2494 # broken ls alias from the environment. This has actually 2495 # happened. Such a system could not be considered "sane". 2496 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2497alias in your environment" "$LINENO" 5 2498 fi 2499 2500 test "$2" = conftest.file 2501 ) 2502then 2503 # Ok. 2504 : 2505else 2506 as_fn_error "newly created file is older than distributed files! 2507Check your system clock" "$LINENO" 5 2508fi 2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2510$as_echo "yes" >&6; } 2511test "$program_prefix" != NONE && 2512 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2513# Use a double $ so make ignores it. 2514test "$program_suffix" != NONE && 2515 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2516# Double any \ or $. 2517# By default was `s,x,x', remove it if useless. 2518ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2519program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2520 2521# expand $ac_aux_dir to an absolute path 2522am_aux_dir=`cd $ac_aux_dir && pwd` 2523 2524if test x"${MISSING+set}" != xset; then 2525 case $am_aux_dir in 2526 *\ * | *\ *) 2527 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2528 *) 2529 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2530 esac 2531fi 2532# Use eval to expand $SHELL 2533if eval "$MISSING --run true"; then 2534 am_missing_run="$MISSING --run " 2535else 2536 am_missing_run= 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2538$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2539fi 2540 2541if test x"${install_sh}" != xset; then 2542 case $am_aux_dir in 2543 *\ * | *\ *) 2544 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2545 *) 2546 install_sh="\${SHELL} $am_aux_dir/install-sh" 2547 esac 2548fi 2549 2550# Installed binaries are usually stripped using `strip' when the user 2551# run `make install-strip'. However `strip' might not be the right 2552# tool to use in cross-compilation environments, therefore Automake 2553# will honor the `STRIP' environment variable to overrule this program. 2554if test "$cross_compiling" != no; then 2555 if test -n "$ac_tool_prefix"; then 2556 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2557set dummy ${ac_tool_prefix}strip; ac_word=$2 2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2559$as_echo_n "checking for $ac_word... " >&6; } 2560if test "${ac_cv_prog_STRIP+set}" = set; then : 2561 $as_echo_n "(cached) " >&6 2562else 2563 if test -n "$STRIP"; then 2564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2565else 2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2567for as_dir in $PATH 2568do 2569 IFS=$as_save_IFS 2570 test -z "$as_dir" && as_dir=. 2571 for ac_exec_ext in '' $ac_executable_extensions; do 2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2573 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2575 break 2 2576 fi 2577done 2578 done 2579IFS=$as_save_IFS 2580 2581fi 2582fi 2583STRIP=$ac_cv_prog_STRIP 2584if test -n "$STRIP"; then 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2586$as_echo "$STRIP" >&6; } 2587else 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2589$as_echo "no" >&6; } 2590fi 2591 2592 2593fi 2594if test -z "$ac_cv_prog_STRIP"; then 2595 ac_ct_STRIP=$STRIP 2596 # Extract the first word of "strip", so it can be a program name with args. 2597set dummy strip; ac_word=$2 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2599$as_echo_n "checking for $ac_word... " >&6; } 2600if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2601 $as_echo_n "(cached) " >&6 2602else 2603 if test -n "$ac_ct_STRIP"; then 2604 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2605else 2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2607for as_dir in $PATH 2608do 2609 IFS=$as_save_IFS 2610 test -z "$as_dir" && as_dir=. 2611 for ac_exec_ext in '' $ac_executable_extensions; do 2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2613 ac_cv_prog_ac_ct_STRIP="strip" 2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2615 break 2 2616 fi 2617done 2618 done 2619IFS=$as_save_IFS 2620 2621fi 2622fi 2623ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2624if test -n "$ac_ct_STRIP"; then 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2626$as_echo "$ac_ct_STRIP" >&6; } 2627else 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2629$as_echo "no" >&6; } 2630fi 2631 2632 if test "x$ac_ct_STRIP" = x; then 2633 STRIP=":" 2634 else 2635 case $cross_compiling:$ac_tool_warned in 2636yes:) 2637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2639ac_tool_warned=yes ;; 2640esac 2641 STRIP=$ac_ct_STRIP 2642 fi 2643else 2644 STRIP="$ac_cv_prog_STRIP" 2645fi 2646 2647fi 2648INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2649 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2651$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2652if test -z "$MKDIR_P"; then 2653 if test "${ac_cv_path_mkdir+set}" = set; then : 2654 $as_echo_n "(cached) " >&6 2655else 2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2657for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2658do 2659 IFS=$as_save_IFS 2660 test -z "$as_dir" && as_dir=. 2661 for ac_prog in mkdir gmkdir; do 2662 for ac_exec_ext in '' $ac_executable_extensions; do 2663 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2664 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2665 'mkdir (GNU coreutils) '* | \ 2666 'mkdir (coreutils) '* | \ 2667 'mkdir (fileutils) '4.1*) 2668 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2669 break 3;; 2670 esac 2671 done 2672 done 2673 done 2674IFS=$as_save_IFS 2675 2676fi 2677 2678 if test "${ac_cv_path_mkdir+set}" = set; then 2679 MKDIR_P="$ac_cv_path_mkdir -p" 2680 else 2681 # As a last resort, use the slow shell script. Don't cache a 2682 # value for MKDIR_P within a source directory, because that will 2683 # break other packages using the cache if that directory is 2684 # removed, or if the value is a relative name. 2685 test -d ./--version && rmdir ./--version 2686 MKDIR_P="$ac_install_sh -d" 2687 fi 2688fi 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2690$as_echo "$MKDIR_P" >&6; } 2691 2692mkdir_p="$MKDIR_P" 2693case $mkdir_p in 2694 [\\/$]* | ?:[\\/]*) ;; 2695 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2696esac 2697 2698for ac_prog in gawk mawk nawk awk 2699do 2700 # Extract the first word of "$ac_prog", so it can be a program name with args. 2701set dummy $ac_prog; ac_word=$2 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2703$as_echo_n "checking for $ac_word... " >&6; } 2704if test "${ac_cv_prog_AWK+set}" = set; then : 2705 $as_echo_n "(cached) " >&6 2706else 2707 if test -n "$AWK"; then 2708 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2709else 2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2711for as_dir in $PATH 2712do 2713 IFS=$as_save_IFS 2714 test -z "$as_dir" && as_dir=. 2715 for ac_exec_ext in '' $ac_executable_extensions; do 2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2717 ac_cv_prog_AWK="$ac_prog" 2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2719 break 2 2720 fi 2721done 2722 done 2723IFS=$as_save_IFS 2724 2725fi 2726fi 2727AWK=$ac_cv_prog_AWK 2728if test -n "$AWK"; then 2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2730$as_echo "$AWK" >&6; } 2731else 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2733$as_echo "no" >&6; } 2734fi 2735 2736 2737 test -n "$AWK" && break 2738done 2739 2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2741$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2742set x ${MAKE-make} 2743ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2744if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2745 $as_echo_n "(cached) " >&6 2746else 2747 cat >conftest.make <<\_ACEOF 2748SHELL = /bin/sh 2749all: 2750 @echo '@@@%%%=$(MAKE)=@@@%%%' 2751_ACEOF 2752# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2753case `${MAKE-make} -f conftest.make 2>/dev/null` in 2754 *@@@%%%=?*=@@@%%%*) 2755 eval ac_cv_prog_make_${ac_make}_set=yes;; 2756 *) 2757 eval ac_cv_prog_make_${ac_make}_set=no;; 2758esac 2759rm -f conftest.make 2760fi 2761if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2763$as_echo "yes" >&6; } 2764 SET_MAKE= 2765else 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2767$as_echo "no" >&6; } 2768 SET_MAKE="MAKE=${MAKE-make}" 2769fi 2770 2771rm -rf .tst 2>/dev/null 2772mkdir .tst 2>/dev/null 2773if test -d .tst; then 2774 am__leading_dot=. 2775else 2776 am__leading_dot=_ 2777fi 2778rmdir .tst 2>/dev/null 2779 2780if test "`cd $srcdir && pwd`" != "`pwd`"; then 2781 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2782 # is not polluted with repeated "-I." 2783 am__isrc=' -I$(srcdir)' 2784 # test to see if srcdir already configured 2785 if test -f $srcdir/config.status; then 2786 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2787 fi 2788fi 2789 2790# test whether we have cygpath 2791if test -z "$CYGPATH_W"; then 2792 if (cygpath --version) >/dev/null 2>/dev/null; then 2793 CYGPATH_W='cygpath -w' 2794 else 2795 CYGPATH_W=echo 2796 fi 2797fi 2798 2799 2800# Define the identity of the package. 2801 PACKAGE=zlib 2802 VERSION=1.1.4 2803 2804 2805cat >>confdefs.h <<_ACEOF 2806#define PACKAGE "$PACKAGE" 2807_ACEOF 2808 2809 2810cat >>confdefs.h <<_ACEOF 2811#define VERSION "$VERSION" 2812_ACEOF 2813 2814# Some tools Automake needs. 2815 2816ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2817 2818 2819AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2820 2821 2822AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2823 2824 2825AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2826 2827 2828MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2829 2830# We need awk for the "check" target. The system "awk" is bad on 2831# some platforms. 2832# Always define AMTAR for backward compatibility. Yes, it's still used 2833# in the wild :-( We should find a proper way to deprecate it ... 2834AMTAR='$${TAR-tar}' 2835 2836am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2837 2838 2839 2840 2841 2842 2843 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2845$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2846 # Check whether --enable-maintainer-mode was given. 2847if test "${enable_maintainer_mode+set}" = set; then : 2848 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2849else 2850 USE_MAINTAINER_MODE=no 2851fi 2852 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2854$as_echo "$USE_MAINTAINER_MODE" >&6; } 2855 if test $USE_MAINTAINER_MODE = yes; then 2856 MAINTAINER_MODE_TRUE= 2857 MAINTAINER_MODE_FALSE='#' 2858else 2859 MAINTAINER_MODE_TRUE='#' 2860 MAINTAINER_MODE_FALSE= 2861fi 2862 2863 MAINT=$MAINTAINER_MODE_TRUE 2864 2865 2866 2867 2868# Check whether --with-target-subdir was given. 2869if test "${with_target_subdir+set}" = set; then : 2870 withval=$with_target_subdir; 2871fi 2872 2873 2874if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then 2875 COMPPATH=. 2876else 2877 COMPPATH=.. 2878fi 2879 2880 2881 2882# Check whether --with-cross-host was given. 2883if test "${with_cross_host+set}" = set; then : 2884 withval=$with_cross_host; 2885fi 2886 2887 2888# Check whether --enable-multilib was given. 2889if test "${enable_multilib+set}" = set; then : 2890 enableval=$enable_multilib; case "${enableval}" in 2891 yes) multilib=yes ;; 2892 no) multilib=no ;; 2893 *) as_fn_error "bad value ${enableval} for multilib option" "$LINENO" 5 ;; 2894 esac 2895else 2896 test -z "$with_target_subdir" && multilib=no || multilib=yes 2897fi 2898 2899 2900# Check whether --with-system-zlib was given. 2901if test "${with_system_zlib+set}" = set; then : 2902 withval=$with_system_zlib; 2903fi 2904 2905 2906# Make sure we don't test executables when making cross-tools. 2907 2908 2909# The same as in boehm-gc and libstdc++. Have to borrow it from there. 2910# We must force CC to /not/ be precious variables; otherwise 2911# the wrong, non-multilib-adjusted value will be used in multilibs. 2912# As a side effect, we have to subst CFLAGS ourselves. 2913 2914 2915 2916ac_ext=c 2917ac_cpp='$CPP $CPPFLAGS' 2918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2920ac_compiler_gnu=$ac_cv_c_compiler_gnu 2921if test -n "$ac_tool_prefix"; then 2922 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2923set dummy ${ac_tool_prefix}gcc; ac_word=$2 2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2925$as_echo_n "checking for $ac_word... " >&6; } 2926if test "${ac_cv_prog_CC+set}" = set; then : 2927 $as_echo_n "(cached) " >&6 2928else 2929 if test -n "$CC"; then 2930 ac_cv_prog_CC="$CC" # Let the user override the test. 2931else 2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2933for as_dir in $PATH 2934do 2935 IFS=$as_save_IFS 2936 test -z "$as_dir" && as_dir=. 2937 for ac_exec_ext in '' $ac_executable_extensions; do 2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2939 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2941 break 2 2942 fi 2943done 2944 done 2945IFS=$as_save_IFS 2946 2947fi 2948fi 2949CC=$ac_cv_prog_CC 2950if test -n "$CC"; then 2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2952$as_echo "$CC" >&6; } 2953else 2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2955$as_echo "no" >&6; } 2956fi 2957 2958 2959fi 2960if test -z "$ac_cv_prog_CC"; then 2961 ac_ct_CC=$CC 2962 # Extract the first word of "gcc", so it can be a program name with args. 2963set dummy gcc; ac_word=$2 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2965$as_echo_n "checking for $ac_word... " >&6; } 2966if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2967 $as_echo_n "(cached) " >&6 2968else 2969 if test -n "$ac_ct_CC"; then 2970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2971else 2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2973for as_dir in $PATH 2974do 2975 IFS=$as_save_IFS 2976 test -z "$as_dir" && as_dir=. 2977 for ac_exec_ext in '' $ac_executable_extensions; do 2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2979 ac_cv_prog_ac_ct_CC="gcc" 2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2981 break 2 2982 fi 2983done 2984 done 2985IFS=$as_save_IFS 2986 2987fi 2988fi 2989ac_ct_CC=$ac_cv_prog_ac_ct_CC 2990if test -n "$ac_ct_CC"; then 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2992$as_echo "$ac_ct_CC" >&6; } 2993else 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2995$as_echo "no" >&6; } 2996fi 2997 2998 if test "x$ac_ct_CC" = x; then 2999 CC="" 3000 else 3001 case $cross_compiling:$ac_tool_warned in 3002yes:) 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3005ac_tool_warned=yes ;; 3006esac 3007 CC=$ac_ct_CC 3008 fi 3009else 3010 CC="$ac_cv_prog_CC" 3011fi 3012 3013if test -z "$CC"; then 3014 if test -n "$ac_tool_prefix"; then 3015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3016set dummy ${ac_tool_prefix}cc; ac_word=$2 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3018$as_echo_n "checking for $ac_word... " >&6; } 3019if test "${ac_cv_prog_CC+set}" = set; then : 3020 $as_echo_n "(cached) " >&6 3021else 3022 if test -n "$CC"; then 3023 ac_cv_prog_CC="$CC" # Let the user override the test. 3024else 3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3026for as_dir in $PATH 3027do 3028 IFS=$as_save_IFS 3029 test -z "$as_dir" && as_dir=. 3030 for ac_exec_ext in '' $ac_executable_extensions; do 3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3032 ac_cv_prog_CC="${ac_tool_prefix}cc" 3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3034 break 2 3035 fi 3036done 3037 done 3038IFS=$as_save_IFS 3039 3040fi 3041fi 3042CC=$ac_cv_prog_CC 3043if test -n "$CC"; then 3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3045$as_echo "$CC" >&6; } 3046else 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3048$as_echo "no" >&6; } 3049fi 3050 3051 3052 fi 3053fi 3054if test -z "$CC"; then 3055 # Extract the first word of "cc", so it can be a program name with args. 3056set dummy cc; ac_word=$2 3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3058$as_echo_n "checking for $ac_word... " >&6; } 3059if test "${ac_cv_prog_CC+set}" = set; then : 3060 $as_echo_n "(cached) " >&6 3061else 3062 if test -n "$CC"; then 3063 ac_cv_prog_CC="$CC" # Let the user override the test. 3064else 3065 ac_prog_rejected=no 3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3067for as_dir in $PATH 3068do 3069 IFS=$as_save_IFS 3070 test -z "$as_dir" && as_dir=. 3071 for ac_exec_ext in '' $ac_executable_extensions; do 3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3073 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3074 ac_prog_rejected=yes 3075 continue 3076 fi 3077 ac_cv_prog_CC="cc" 3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3079 break 2 3080 fi 3081done 3082 done 3083IFS=$as_save_IFS 3084 3085if test $ac_prog_rejected = yes; then 3086 # We found a bogon in the path, so make sure we never use it. 3087 set dummy $ac_cv_prog_CC 3088 shift 3089 if test $# != 0; then 3090 # We chose a different compiler from the bogus one. 3091 # However, it has the same basename, so the bogon will be chosen 3092 # first if we set CC to just the basename; use the full file name. 3093 shift 3094 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3095 fi 3096fi 3097fi 3098fi 3099CC=$ac_cv_prog_CC 3100if test -n "$CC"; then 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3102$as_echo "$CC" >&6; } 3103else 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3105$as_echo "no" >&6; } 3106fi 3107 3108 3109fi 3110if test -z "$CC"; then 3111 if test -n "$ac_tool_prefix"; then 3112 for ac_prog in cl.exe 3113 do 3114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3115set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3117$as_echo_n "checking for $ac_word... " >&6; } 3118if test "${ac_cv_prog_CC+set}" = set; then : 3119 $as_echo_n "(cached) " >&6 3120else 3121 if test -n "$CC"; then 3122 ac_cv_prog_CC="$CC" # Let the user override the test. 3123else 3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3125for as_dir in $PATH 3126do 3127 IFS=$as_save_IFS 3128 test -z "$as_dir" && as_dir=. 3129 for ac_exec_ext in '' $ac_executable_extensions; do 3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3133 break 2 3134 fi 3135done 3136 done 3137IFS=$as_save_IFS 3138 3139fi 3140fi 3141CC=$ac_cv_prog_CC 3142if test -n "$CC"; then 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3144$as_echo "$CC" >&6; } 3145else 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3147$as_echo "no" >&6; } 3148fi 3149 3150 3151 test -n "$CC" && break 3152 done 3153fi 3154if test -z "$CC"; then 3155 ac_ct_CC=$CC 3156 for ac_prog in cl.exe 3157do 3158 # Extract the first word of "$ac_prog", so it can be a program name with args. 3159set dummy $ac_prog; ac_word=$2 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3161$as_echo_n "checking for $ac_word... " >&6; } 3162if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3163 $as_echo_n "(cached) " >&6 3164else 3165 if test -n "$ac_ct_CC"; then 3166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3167else 3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3169for as_dir in $PATH 3170do 3171 IFS=$as_save_IFS 3172 test -z "$as_dir" && as_dir=. 3173 for ac_exec_ext in '' $ac_executable_extensions; do 3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3175 ac_cv_prog_ac_ct_CC="$ac_prog" 3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3177 break 2 3178 fi 3179done 3180 done 3181IFS=$as_save_IFS 3182 3183fi 3184fi 3185ac_ct_CC=$ac_cv_prog_ac_ct_CC 3186if test -n "$ac_ct_CC"; then 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3188$as_echo "$ac_ct_CC" >&6; } 3189else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3191$as_echo "no" >&6; } 3192fi 3193 3194 3195 test -n "$ac_ct_CC" && break 3196done 3197 3198 if test "x$ac_ct_CC" = x; then 3199 CC="" 3200 else 3201 case $cross_compiling:$ac_tool_warned in 3202yes:) 3203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3205ac_tool_warned=yes ;; 3206esac 3207 CC=$ac_ct_CC 3208 fi 3209fi 3210 3211fi 3212 3213 3214test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3216as_fn_error "no acceptable C compiler found in \$PATH 3217See \`config.log' for more details." "$LINENO" 5; } 3218 3219# Provide some information about the compiler. 3220$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3221set X $ac_compile 3222ac_compiler=$2 3223for ac_option in --version -v -V -qversion; do 3224 { { ac_try="$ac_compiler $ac_option >&5" 3225case "(($ac_try" in 3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3227 *) ac_try_echo=$ac_try;; 3228esac 3229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3230$as_echo "$ac_try_echo"; } >&5 3231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3232 ac_status=$? 3233 if test -s conftest.err; then 3234 sed '10a\ 3235... rest of stderr output deleted ... 3236 10q' conftest.err >conftest.er1 3237 cat conftest.er1 >&5 3238 rm -f conftest.er1 conftest.err 3239 fi 3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3241 test $ac_status = 0; } 3242done 3243 3244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3245/* end confdefs.h. */ 3246 3247int 3248main () 3249{ 3250 3251 ; 3252 return 0; 3253} 3254_ACEOF 3255# FIXME: Cleanup? 3256if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 3257 (eval $ac_link) 2>&5 3258 ac_status=$? 3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3260 test $ac_status = 0; }; then : 3261 gcc_no_link=no 3262else 3263 gcc_no_link=yes 3264fi 3265if test x$gcc_no_link = xyes; then 3266 # Setting cross_compile will disable run tests; it will 3267 # also disable AC_CHECK_FILE but that's generally 3268 # correct if we can't link. 3269 cross_compiling=yes 3270 EXEEXT= 3271else 3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3273/* end confdefs.h. */ 3274 3275int 3276main () 3277{ 3278 3279 ; 3280 return 0; 3281} 3282_ACEOF 3283ac_clean_files_save=$ac_clean_files 3284ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3285# Try to create an executable without -o first, disregard a.out. 3286# It will help us diagnose broken compilers, and finding out an intuition 3287# of exeext. 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3289$as_echo_n "checking for C compiler default output file name... " >&6; } 3290ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3291 3292# The possible output files: 3293ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3294 3295ac_rmfiles= 3296for ac_file in $ac_files 3297do 3298 case $ac_file in 3299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3300 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3301 esac 3302done 3303rm -f $ac_rmfiles 3304 3305if { { ac_try="$ac_link_default" 3306case "(($ac_try" in 3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3308 *) ac_try_echo=$ac_try;; 3309esac 3310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3311$as_echo "$ac_try_echo"; } >&5 3312 (eval "$ac_link_default") 2>&5 3313 ac_status=$? 3314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3315 test $ac_status = 0; }; then : 3316 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3317# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3318# in a Makefile. We should not override ac_cv_exeext if it was cached, 3319# so that the user can short-circuit this test for compilers unknown to 3320# Autoconf. 3321for ac_file in $ac_files '' 3322do 3323 test -f "$ac_file" || continue 3324 case $ac_file in 3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3326 ;; 3327 [ab].out ) 3328 # We found the default executable, but exeext='' is most 3329 # certainly right. 3330 break;; 3331 *.* ) 3332 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3333 then :; else 3334 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3335 fi 3336 # We set ac_cv_exeext here because the later test for it is not 3337 # safe: cross compilers may not add the suffix if given an `-o' 3338 # argument, so we may need to know it at that point already. 3339 # Even if this section looks crufty: it has the advantage of 3340 # actually working. 3341 break;; 3342 * ) 3343 break;; 3344 esac 3345done 3346test "$ac_cv_exeext" = no && ac_cv_exeext= 3347 3348else 3349 ac_file='' 3350fi 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3352$as_echo "$ac_file" >&6; } 3353if test -z "$ac_file"; then : 3354 $as_echo "$as_me: failed program was:" >&5 3355sed 's/^/| /' conftest.$ac_ext >&5 3356 3357{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3359{ as_fn_set_status 77 3360as_fn_error "C compiler cannot create executables 3361See \`config.log' for more details." "$LINENO" 5; }; } 3362fi 3363ac_exeext=$ac_cv_exeext 3364 3365# Check that the compiler produces executables we can run. If not, either 3366# the compiler is broken, or we cross compile. 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3368$as_echo_n "checking whether the C compiler works... " >&6; } 3369# If not cross compiling, check that we can run a simple program. 3370if test "$cross_compiling" != yes; then 3371 if { ac_try='./$ac_file' 3372 { { case "(($ac_try" in 3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3374 *) ac_try_echo=$ac_try;; 3375esac 3376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3377$as_echo "$ac_try_echo"; } >&5 3378 (eval "$ac_try") 2>&5 3379 ac_status=$? 3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3381 test $ac_status = 0; }; }; then 3382 cross_compiling=no 3383 else 3384 if test "$cross_compiling" = maybe; then 3385 cross_compiling=yes 3386 else 3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3389as_fn_error "cannot run C compiled programs. 3390If you meant to cross compile, use \`--host'. 3391See \`config.log' for more details." "$LINENO" 5; } 3392 fi 3393 fi 3394fi 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3396$as_echo "yes" >&6; } 3397 3398rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3399ac_clean_files=$ac_clean_files_save 3400# Check that the compiler produces executables we can run. If not, either 3401# the compiler is broken, or we cross compile. 3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3403$as_echo_n "checking whether we are cross compiling... " >&6; } 3404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3405$as_echo "$cross_compiling" >&6; } 3406 3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3408$as_echo_n "checking for suffix of executables... " >&6; } 3409if { { ac_try="$ac_link" 3410case "(($ac_try" in 3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3412 *) ac_try_echo=$ac_try;; 3413esac 3414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3415$as_echo "$ac_try_echo"; } >&5 3416 (eval "$ac_link") 2>&5 3417 ac_status=$? 3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3419 test $ac_status = 0; }; then : 3420 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3421# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3422# work properly (i.e., refer to `conftest.exe'), while it won't with 3423# `rm'. 3424for ac_file in conftest.exe conftest conftest.*; do 3425 test -f "$ac_file" || continue 3426 case $ac_file in 3427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3428 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3429 break;; 3430 * ) break;; 3431 esac 3432done 3433else 3434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3436as_fn_error "cannot compute suffix of executables: cannot compile and link 3437See \`config.log' for more details." "$LINENO" 5; } 3438fi 3439rm -f conftest$ac_cv_exeext 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3441$as_echo "$ac_cv_exeext" >&6; } 3442 3443rm -f conftest.$ac_ext 3444EXEEXT=$ac_cv_exeext 3445ac_exeext=$EXEEXT 3446fi 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3448$as_echo_n "checking for suffix of object files... " >&6; } 3449if test "${ac_cv_objext+set}" = set; then : 3450 $as_echo_n "(cached) " >&6 3451else 3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3453/* end confdefs.h. */ 3454 3455int 3456main () 3457{ 3458 3459 ; 3460 return 0; 3461} 3462_ACEOF 3463rm -f conftest.o conftest.obj 3464if { { ac_try="$ac_compile" 3465case "(($ac_try" in 3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3467 *) ac_try_echo=$ac_try;; 3468esac 3469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3470$as_echo "$ac_try_echo"; } >&5 3471 (eval "$ac_compile") 2>&5 3472 ac_status=$? 3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3474 test $ac_status = 0; }; then : 3475 for ac_file in conftest.o conftest.obj conftest.*; do 3476 test -f "$ac_file" || continue; 3477 case $ac_file in 3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3479 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3480 break;; 3481 esac 3482done 3483else 3484 $as_echo "$as_me: failed program was:" >&5 3485sed 's/^/| /' conftest.$ac_ext >&5 3486 3487{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3489as_fn_error "cannot compute suffix of object files: cannot compile 3490See \`config.log' for more details." "$LINENO" 5; } 3491fi 3492rm -f conftest.$ac_cv_objext conftest.$ac_ext 3493fi 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3495$as_echo "$ac_cv_objext" >&6; } 3496OBJEXT=$ac_cv_objext 3497ac_objext=$OBJEXT 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3499$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3500if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3501 $as_echo_n "(cached) " >&6 3502else 3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3504/* end confdefs.h. */ 3505 3506int 3507main () 3508{ 3509#ifndef __GNUC__ 3510 choke me 3511#endif 3512 3513 ; 3514 return 0; 3515} 3516_ACEOF 3517if ac_fn_c_try_compile "$LINENO"; then : 3518 ac_compiler_gnu=yes 3519else 3520 ac_compiler_gnu=no 3521fi 3522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3523ac_cv_c_compiler_gnu=$ac_compiler_gnu 3524 3525fi 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3527$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3528if test $ac_compiler_gnu = yes; then 3529 GCC=yes 3530else 3531 GCC= 3532fi 3533ac_test_CFLAGS=${CFLAGS+set} 3534ac_save_CFLAGS=$CFLAGS 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3536$as_echo_n "checking whether $CC accepts -g... " >&6; } 3537if test "${ac_cv_prog_cc_g+set}" = set; then : 3538 $as_echo_n "(cached) " >&6 3539else 3540 ac_save_c_werror_flag=$ac_c_werror_flag 3541 ac_c_werror_flag=yes 3542 ac_cv_prog_cc_g=no 3543 CFLAGS="-g" 3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3545/* end confdefs.h. */ 3546 3547int 3548main () 3549{ 3550 3551 ; 3552 return 0; 3553} 3554_ACEOF 3555if ac_fn_c_try_compile "$LINENO"; then : 3556 ac_cv_prog_cc_g=yes 3557else 3558 CFLAGS="" 3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3560/* end confdefs.h. */ 3561 3562int 3563main () 3564{ 3565 3566 ; 3567 return 0; 3568} 3569_ACEOF 3570if ac_fn_c_try_compile "$LINENO"; then : 3571 3572else 3573 ac_c_werror_flag=$ac_save_c_werror_flag 3574 CFLAGS="-g" 3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3576/* end confdefs.h. */ 3577 3578int 3579main () 3580{ 3581 3582 ; 3583 return 0; 3584} 3585_ACEOF 3586if ac_fn_c_try_compile "$LINENO"; then : 3587 ac_cv_prog_cc_g=yes 3588fi 3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3590fi 3591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3592fi 3593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3594 ac_c_werror_flag=$ac_save_c_werror_flag 3595fi 3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3597$as_echo "$ac_cv_prog_cc_g" >&6; } 3598if test "$ac_test_CFLAGS" = set; then 3599 CFLAGS=$ac_save_CFLAGS 3600elif test $ac_cv_prog_cc_g = yes; then 3601 if test "$GCC" = yes; then 3602 CFLAGS="-g -O2" 3603 else 3604 CFLAGS="-g" 3605 fi 3606else 3607 if test "$GCC" = yes; then 3608 CFLAGS="-O2" 3609 else 3610 CFLAGS= 3611 fi 3612fi 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3614$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3615if test "${ac_cv_prog_cc_c89+set}" = set; then : 3616 $as_echo_n "(cached) " >&6 3617else 3618 ac_cv_prog_cc_c89=no 3619ac_save_CC=$CC 3620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3621/* end confdefs.h. */ 3622#include <stdarg.h> 3623#include <stdio.h> 3624#include <sys/types.h> 3625#include <sys/stat.h> 3626/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3627struct buf { int x; }; 3628FILE * (*rcsopen) (struct buf *, struct stat *, int); 3629static char *e (p, i) 3630 char **p; 3631 int i; 3632{ 3633 return p[i]; 3634} 3635static char *f (char * (*g) (char **, int), char **p, ...) 3636{ 3637 char *s; 3638 va_list v; 3639 va_start (v,p); 3640 s = g (p, va_arg (v,int)); 3641 va_end (v); 3642 return s; 3643} 3644 3645/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3646 function prototypes and stuff, but not '\xHH' hex character constants. 3647 These don't provoke an error unfortunately, instead are silently treated 3648 as 'x'. The following induces an error, until -std is added to get 3649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3650 array size at least. It's necessary to write '\x00'==0 to get something 3651 that's true only with -std. */ 3652int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3653 3654/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3655 inside strings and character constants. */ 3656#define FOO(x) 'x' 3657int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3658 3659int test (int i, double x); 3660struct s1 {int (*f) (int a);}; 3661struct s2 {int (*f) (double a);}; 3662int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3663int argc; 3664char **argv; 3665int 3666main () 3667{ 3668return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3669 ; 3670 return 0; 3671} 3672_ACEOF 3673for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3674 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3675do 3676 CC="$ac_save_CC $ac_arg" 3677 if ac_fn_c_try_compile "$LINENO"; then : 3678 ac_cv_prog_cc_c89=$ac_arg 3679fi 3680rm -f core conftest.err conftest.$ac_objext 3681 test "x$ac_cv_prog_cc_c89" != "xno" && break 3682done 3683rm -f conftest.$ac_ext 3684CC=$ac_save_CC 3685 3686fi 3687# AC_CACHE_VAL 3688case "x$ac_cv_prog_cc_c89" in 3689 x) 3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3691$as_echo "none needed" >&6; } ;; 3692 xno) 3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3694$as_echo "unsupported" >&6; } ;; 3695 *) 3696 CC="$CC $ac_cv_prog_cc_c89" 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3698$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3699esac 3700if test "x$ac_cv_prog_cc_c89" != xno; then : 3701 3702fi 3703 3704ac_ext=c 3705ac_cpp='$CPP $CPPFLAGS' 3706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3708ac_compiler_gnu=$ac_cv_c_compiler_gnu 3709DEPDIR="${am__leading_dot}deps" 3710 3711ac_config_commands="$ac_config_commands depfiles" 3712 3713 3714am_make=${MAKE-make} 3715cat > confinc << 'END' 3716am__doit: 3717 @echo this is the am__doit target 3718.PHONY: am__doit 3719END 3720# If we don't find an include directive, just comment out the code. 3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3722$as_echo_n "checking for style of include used by $am_make... " >&6; } 3723am__include="#" 3724am__quote= 3725_am_result=none 3726# First try GNU make style include. 3727echo "include confinc" > confmf 3728# Ignore all kinds of additional output from `make'. 3729case `$am_make -s -f confmf 2> /dev/null` in #( 3730*the\ am__doit\ target*) 3731 am__include=include 3732 am__quote= 3733 _am_result=GNU 3734 ;; 3735esac 3736# Now try BSD make style include. 3737if test "$am__include" = "#"; then 3738 echo '.include "confinc"' > confmf 3739 case `$am_make -s -f confmf 2> /dev/null` in #( 3740 *the\ am__doit\ target*) 3741 am__include=.include 3742 am__quote="\"" 3743 _am_result=BSD 3744 ;; 3745 esac 3746fi 3747 3748 3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3750$as_echo "$_am_result" >&6; } 3751rm -f confinc confmf 3752 3753# Check whether --enable-dependency-tracking was given. 3754if test "${enable_dependency_tracking+set}" = set; then : 3755 enableval=$enable_dependency_tracking; 3756fi 3757 3758if test "x$enable_dependency_tracking" != xno; then 3759 am_depcomp="$ac_aux_dir/depcomp" 3760 AMDEPBACKSLASH='\' 3761 am__nodep='_no' 3762fi 3763 if test "x$enable_dependency_tracking" != xno; then 3764 AMDEP_TRUE= 3765 AMDEP_FALSE='#' 3766else 3767 AMDEP_TRUE='#' 3768 AMDEP_FALSE= 3769fi 3770 3771 3772 3773depcc="$CC" am_compiler_list= 3774 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3776$as_echo_n "checking dependency style of $depcc... " >&6; } 3777if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3778 $as_echo_n "(cached) " >&6 3779else 3780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3781 # We make a subdir and do the tests there. Otherwise we can end up 3782 # making bogus files that we don't know about and never remove. For 3783 # instance it was reported that on HP-UX the gcc test will end up 3784 # making a dummy file named `D' -- because `-MD' means `put the output 3785 # in D'. 3786 rm -rf conftest.dir 3787 mkdir conftest.dir 3788 # Copy depcomp to subdir because otherwise we won't find it if we're 3789 # using a relative directory. 3790 cp "$am_depcomp" conftest.dir 3791 cd conftest.dir 3792 # We will build objects and dependencies in a subdirectory because 3793 # it helps to detect inapplicable dependency modes. For instance 3794 # both Tru64's cc and ICC support -MD to output dependencies as a 3795 # side effect of compilation, but ICC will put the dependencies in 3796 # the current directory while Tru64 will put them in the object 3797 # directory. 3798 mkdir sub 3799 3800 am_cv_CC_dependencies_compiler_type=none 3801 if test "$am_compiler_list" = ""; then 3802 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3803 fi 3804 am__universal=false 3805 case " $depcc " in #( 3806 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3807 esac 3808 3809 for depmode in $am_compiler_list; do 3810 # Setup a source with many dependencies, because some compilers 3811 # like to wrap large dependency lists on column 80 (with \), and 3812 # we should not choose a depcomp mode which is confused by this. 3813 # 3814 # We need to recreate these files for each test, as the compiler may 3815 # overwrite some of them when testing with obscure command lines. 3816 # This happens at least with the AIX C compiler. 3817 : > sub/conftest.c 3818 for i in 1 2 3 4 5 6; do 3819 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3820 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3821 # Solaris 8's {/usr,}/bin/sh. 3822 touch sub/conftst$i.h 3823 done 3824 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3825 3826 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3827 # mode. It turns out that the SunPro C++ compiler does not properly 3828 # handle `-M -o', and we need to detect this. Also, some Intel 3829 # versions had trouble with output in subdirs 3830 am__obj=sub/conftest.${OBJEXT-o} 3831 am__minus_obj="-o $am__obj" 3832 case $depmode in 3833 gcc) 3834 # This depmode causes a compiler race in universal mode. 3835 test "$am__universal" = false || continue 3836 ;; 3837 nosideeffect) 3838 # after this tag, mechanisms are not by side-effect, so they'll 3839 # only be used when explicitly requested 3840 if test "x$enable_dependency_tracking" = xyes; then 3841 continue 3842 else 3843 break 3844 fi 3845 ;; 3846 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3847 # This compiler won't grok `-c -o', but also, the minuso test has 3848 # not run yet. These depmodes are late enough in the game, and 3849 # so weak that their functioning should not be impacted. 3850 am__obj=conftest.${OBJEXT-o} 3851 am__minus_obj= 3852 ;; 3853 none) break ;; 3854 esac 3855 if depmode=$depmode \ 3856 source=sub/conftest.c object=$am__obj \ 3857 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3858 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3859 >/dev/null 2>conftest.err && 3860 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3861 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3862 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3863 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3864 # icc doesn't choke on unknown options, it will just issue warnings 3865 # or remarks (even with -Werror). So we grep stderr for any message 3866 # that says an option was ignored or not supported. 3867 # When given -MP, icc 7.0 and 7.1 complain thusly: 3868 # icc: Command line warning: ignoring option '-M'; no argument required 3869 # The diagnosis changed in icc 8.0: 3870 # icc: Command line remark: option '-MP' not supported 3871 if (grep 'ignoring option' conftest.err || 3872 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3873 am_cv_CC_dependencies_compiler_type=$depmode 3874 break 3875 fi 3876 fi 3877 done 3878 3879 cd .. 3880 rm -rf conftest.dir 3881else 3882 am_cv_CC_dependencies_compiler_type=none 3883fi 3884 3885fi 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3887$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3888CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3889 3890 if 3891 test "x$enable_dependency_tracking" != xno \ 3892 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3893 am__fastdepCC_TRUE= 3894 am__fastdepCC_FALSE='#' 3895else 3896 am__fastdepCC_TRUE='#' 3897 am__fastdepCC_FALSE= 3898fi 3899 3900 3901 3902 3903 3904 3905case `pwd` in 3906 *\ * | *\ *) 3907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3908$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3909esac 3910 3911 3912 3913macro_version='2.2.7a' 3914macro_revision='1.3134' 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928ltmain="$ac_aux_dir/ltmain.sh" 3929 3930# Backslashify metacharacters that are still active within 3931# double-quoted strings. 3932sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3933 3934# Same as above, but do not quote variable references. 3935double_quote_subst='s/\(["`\\]\)/\\\1/g' 3936 3937# Sed substitution to delay expansion of an escaped shell variable in a 3938# double_quote_subst'ed string. 3939delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3940 3941# Sed substitution to delay expansion of an escaped single quote. 3942delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3943 3944# Sed substitution to avoid accidental globbing in evaled expressions 3945no_glob_subst='s/\*/\\\*/g' 3946 3947ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3948ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3949ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3950 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3952$as_echo_n "checking how to print strings... " >&6; } 3953# Test print first, because it will be a builtin if present. 3954if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 3955 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3956 ECHO='print -r --' 3957elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3958 ECHO='printf %s\n' 3959else 3960 # Use this function as a fallback that always works. 3961 func_fallback_echo () 3962 { 3963 eval 'cat <<_LTECHO_EOF 3964$1 3965_LTECHO_EOF' 3966 } 3967 ECHO='func_fallback_echo' 3968fi 3969 3970# func_echo_all arg... 3971# Invoke $ECHO with all args, space-separated. 3972func_echo_all () 3973{ 3974 $ECHO "" 3975} 3976 3977case "$ECHO" in 3978 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3979$as_echo "printf" >&6; } ;; 3980 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3981$as_echo "print -r" >&6; } ;; 3982 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3983$as_echo "cat" >&6; } ;; 3984esac 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4000$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4001if test "${ac_cv_path_SED+set}" = set; then : 4002 $as_echo_n "(cached) " >&6 4003else 4004 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4005 for ac_i in 1 2 3 4 5 6 7; do 4006 ac_script="$ac_script$as_nl$ac_script" 4007 done 4008 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4009 { ac_script=; unset ac_script;} 4010 if test -z "$SED"; then 4011 ac_path_SED_found=false 4012 # Loop through the user's path and test for each of PROGNAME-LIST 4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4014for as_dir in $PATH 4015do 4016 IFS=$as_save_IFS 4017 test -z "$as_dir" && as_dir=. 4018 for ac_prog in sed gsed; do 4019 for ac_exec_ext in '' $ac_executable_extensions; do 4020 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4021 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4022# Check for GNU ac_path_SED and select it if it is found. 4023 # Check for GNU $ac_path_SED 4024case `"$ac_path_SED" --version 2>&1` in 4025*GNU*) 4026 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4027*) 4028 ac_count=0 4029 $as_echo_n 0123456789 >"conftest.in" 4030 while : 4031 do 4032 cat "conftest.in" "conftest.in" >"conftest.tmp" 4033 mv "conftest.tmp" "conftest.in" 4034 cp "conftest.in" "conftest.nl" 4035 $as_echo '' >> "conftest.nl" 4036 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4038 as_fn_arith $ac_count + 1 && ac_count=$as_val 4039 if test $ac_count -gt ${ac_path_SED_max-0}; then 4040 # Best one so far, save it but keep looking for a better one 4041 ac_cv_path_SED="$ac_path_SED" 4042 ac_path_SED_max=$ac_count 4043 fi 4044 # 10*(2^10) chars as input seems more than enough 4045 test $ac_count -gt 10 && break 4046 done 4047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4048esac 4049 4050 $ac_path_SED_found && break 3 4051 done 4052 done 4053 done 4054IFS=$as_save_IFS 4055 if test -z "$ac_cv_path_SED"; then 4056 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4057 fi 4058else 4059 ac_cv_path_SED=$SED 4060fi 4061 4062fi 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4064$as_echo "$ac_cv_path_SED" >&6; } 4065 SED="$ac_cv_path_SED" 4066 rm -f conftest.sed 4067 4068test -z "$SED" && SED=sed 4069Xsed="$SED -e 1s/^X//" 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4082$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4083if test "${ac_cv_path_GREP+set}" = set; then : 4084 $as_echo_n "(cached) " >&6 4085else 4086 if test -z "$GREP"; then 4087 ac_path_GREP_found=false 4088 # Loop through the user's path and test for each of PROGNAME-LIST 4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4090for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4091do 4092 IFS=$as_save_IFS 4093 test -z "$as_dir" && as_dir=. 4094 for ac_prog in grep ggrep; do 4095 for ac_exec_ext in '' $ac_executable_extensions; do 4096 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4097 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4098# Check for GNU ac_path_GREP and select it if it is found. 4099 # Check for GNU $ac_path_GREP 4100case `"$ac_path_GREP" --version 2>&1` in 4101*GNU*) 4102 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4103*) 4104 ac_count=0 4105 $as_echo_n 0123456789 >"conftest.in" 4106 while : 4107 do 4108 cat "conftest.in" "conftest.in" >"conftest.tmp" 4109 mv "conftest.tmp" "conftest.in" 4110 cp "conftest.in" "conftest.nl" 4111 $as_echo 'GREP' >> "conftest.nl" 4112 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4114 as_fn_arith $ac_count + 1 && ac_count=$as_val 4115 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4116 # Best one so far, save it but keep looking for a better one 4117 ac_cv_path_GREP="$ac_path_GREP" 4118 ac_path_GREP_max=$ac_count 4119 fi 4120 # 10*(2^10) chars as input seems more than enough 4121 test $ac_count -gt 10 && break 4122 done 4123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4124esac 4125 4126 $ac_path_GREP_found && break 3 4127 done 4128 done 4129 done 4130IFS=$as_save_IFS 4131 if test -z "$ac_cv_path_GREP"; then 4132 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4133 fi 4134else 4135 ac_cv_path_GREP=$GREP 4136fi 4137 4138fi 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4140$as_echo "$ac_cv_path_GREP" >&6; } 4141 GREP="$ac_cv_path_GREP" 4142 4143 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4145$as_echo_n "checking for egrep... " >&6; } 4146if test "${ac_cv_path_EGREP+set}" = set; then : 4147 $as_echo_n "(cached) " >&6 4148else 4149 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4150 then ac_cv_path_EGREP="$GREP -E" 4151 else 4152 if test -z "$EGREP"; then 4153 ac_path_EGREP_found=false 4154 # Loop through the user's path and test for each of PROGNAME-LIST 4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4156for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4157do 4158 IFS=$as_save_IFS 4159 test -z "$as_dir" && as_dir=. 4160 for ac_prog in egrep; do 4161 for ac_exec_ext in '' $ac_executable_extensions; do 4162 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4163 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4164# Check for GNU ac_path_EGREP and select it if it is found. 4165 # Check for GNU $ac_path_EGREP 4166case `"$ac_path_EGREP" --version 2>&1` in 4167*GNU*) 4168 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4169*) 4170 ac_count=0 4171 $as_echo_n 0123456789 >"conftest.in" 4172 while : 4173 do 4174 cat "conftest.in" "conftest.in" >"conftest.tmp" 4175 mv "conftest.tmp" "conftest.in" 4176 cp "conftest.in" "conftest.nl" 4177 $as_echo 'EGREP' >> "conftest.nl" 4178 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4180 as_fn_arith $ac_count + 1 && ac_count=$as_val 4181 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4182 # Best one so far, save it but keep looking for a better one 4183 ac_cv_path_EGREP="$ac_path_EGREP" 4184 ac_path_EGREP_max=$ac_count 4185 fi 4186 # 10*(2^10) chars as input seems more than enough 4187 test $ac_count -gt 10 && break 4188 done 4189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4190esac 4191 4192 $ac_path_EGREP_found && break 3 4193 done 4194 done 4195 done 4196IFS=$as_save_IFS 4197 if test -z "$ac_cv_path_EGREP"; then 4198 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4199 fi 4200else 4201 ac_cv_path_EGREP=$EGREP 4202fi 4203 4204 fi 4205fi 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4207$as_echo "$ac_cv_path_EGREP" >&6; } 4208 EGREP="$ac_cv_path_EGREP" 4209 4210 4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4212$as_echo_n "checking for fgrep... " >&6; } 4213if test "${ac_cv_path_FGREP+set}" = set; then : 4214 $as_echo_n "(cached) " >&6 4215else 4216 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4217 then ac_cv_path_FGREP="$GREP -F" 4218 else 4219 if test -z "$FGREP"; then 4220 ac_path_FGREP_found=false 4221 # Loop through the user's path and test for each of PROGNAME-LIST 4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4223for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4224do 4225 IFS=$as_save_IFS 4226 test -z "$as_dir" && as_dir=. 4227 for ac_prog in fgrep; do 4228 for ac_exec_ext in '' $ac_executable_extensions; do 4229 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4230 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4231# Check for GNU ac_path_FGREP and select it if it is found. 4232 # Check for GNU $ac_path_FGREP 4233case `"$ac_path_FGREP" --version 2>&1` in 4234*GNU*) 4235 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4236*) 4237 ac_count=0 4238 $as_echo_n 0123456789 >"conftest.in" 4239 while : 4240 do 4241 cat "conftest.in" "conftest.in" >"conftest.tmp" 4242 mv "conftest.tmp" "conftest.in" 4243 cp "conftest.in" "conftest.nl" 4244 $as_echo 'FGREP' >> "conftest.nl" 4245 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4246 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4247 as_fn_arith $ac_count + 1 && ac_count=$as_val 4248 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4249 # Best one so far, save it but keep looking for a better one 4250 ac_cv_path_FGREP="$ac_path_FGREP" 4251 ac_path_FGREP_max=$ac_count 4252 fi 4253 # 10*(2^10) chars as input seems more than enough 4254 test $ac_count -gt 10 && break 4255 done 4256 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4257esac 4258 4259 $ac_path_FGREP_found && break 3 4260 done 4261 done 4262 done 4263IFS=$as_save_IFS 4264 if test -z "$ac_cv_path_FGREP"; then 4265 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4266 fi 4267else 4268 ac_cv_path_FGREP=$FGREP 4269fi 4270 4271 fi 4272fi 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4274$as_echo "$ac_cv_path_FGREP" >&6; } 4275 FGREP="$ac_cv_path_FGREP" 4276 4277 4278test -z "$GREP" && GREP=grep 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298# Check whether --with-gnu-ld was given. 4299if test "${with_gnu_ld+set}" = set; then : 4300 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4301else 4302 with_gnu_ld=no 4303fi 4304 4305ac_prog=ld 4306if test "$GCC" = yes; then 4307 # Check if gcc -print-prog-name=ld gives a path. 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4309$as_echo_n "checking for ld used by $CC... " >&6; } 4310 case $host in 4311 *-*-mingw*) 4312 # gcc leaves a trailing carriage return which upsets mingw 4313 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4314 *) 4315 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4316 esac 4317 case $ac_prog in 4318 # Accept absolute paths. 4319 [\\/]* | ?:[\\/]*) 4320 re_direlt='/[^/][^/]*/\.\./' 4321 # Canonicalize the pathname of ld 4322 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4323 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4324 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4325 done 4326 test -z "$LD" && LD="$ac_prog" 4327 ;; 4328 "") 4329 # If it fails, then pretend we aren't using GCC. 4330 ac_prog=ld 4331 ;; 4332 *) 4333 # If it is relative, then search for the first ld in PATH. 4334 with_gnu_ld=unknown 4335 ;; 4336 esac 4337elif test "$with_gnu_ld" = yes; then 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4339$as_echo_n "checking for GNU ld... " >&6; } 4340else 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4342$as_echo_n "checking for non-GNU ld... " >&6; } 4343fi 4344if test "${lt_cv_path_LD+set}" = set; then : 4345 $as_echo_n "(cached) " >&6 4346else 4347 if test -z "$LD"; then 4348 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4349 for ac_dir in $PATH; do 4350 IFS="$lt_save_ifs" 4351 test -z "$ac_dir" && ac_dir=. 4352 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4353 lt_cv_path_LD="$ac_dir/$ac_prog" 4354 # Check to see if the program is GNU ld. I'd rather use --version, 4355 # but apparently some variants of GNU ld only accept -v. 4356 # Break only if it was the GNU/non-GNU ld that we prefer. 4357 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4358 *GNU* | *'with BFD'*) 4359 test "$with_gnu_ld" != no && break 4360 ;; 4361 *) 4362 test "$with_gnu_ld" != yes && break 4363 ;; 4364 esac 4365 fi 4366 done 4367 IFS="$lt_save_ifs" 4368else 4369 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4370fi 4371fi 4372 4373LD="$lt_cv_path_LD" 4374if test -n "$LD"; then 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4376$as_echo "$LD" >&6; } 4377else 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4379$as_echo "no" >&6; } 4380fi 4381test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4383$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4384if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4385 $as_echo_n "(cached) " >&6 4386else 4387 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4388case `$LD -v 2>&1 </dev/null` in 4389*GNU* | *'with BFD'*) 4390 lt_cv_prog_gnu_ld=yes 4391 ;; 4392*) 4393 lt_cv_prog_gnu_ld=no 4394 ;; 4395esac 4396fi 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4398$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4399with_gnu_ld=$lt_cv_prog_gnu_ld 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4410$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4411if test "${lt_cv_path_NM+set}" = set; then : 4412 $as_echo_n "(cached) " >&6 4413else 4414 if test -n "$NM"; then 4415 # Let the user override the test. 4416 lt_cv_path_NM="$NM" 4417else 4418 lt_nm_to_check="${ac_tool_prefix}nm" 4419 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4420 lt_nm_to_check="$lt_nm_to_check nm" 4421 fi 4422 for lt_tmp_nm in $lt_nm_to_check; do 4423 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4424 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4425 IFS="$lt_save_ifs" 4426 test -z "$ac_dir" && ac_dir=. 4427 tmp_nm="$ac_dir/$lt_tmp_nm" 4428 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4429 # Check to see if the nm accepts a BSD-compat flag. 4430 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4431 # nm: unknown option "B" ignored 4432 # Tru64's nm complains that /dev/null is an invalid object file 4433 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4434 */dev/null* | *'Invalid file or object type'*) 4435 lt_cv_path_NM="$tmp_nm -B" 4436 break 4437 ;; 4438 *) 4439 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4440 */dev/null*) 4441 lt_cv_path_NM="$tmp_nm -p" 4442 break 4443 ;; 4444 *) 4445 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4446 continue # so that we can try to find one that supports BSD flags 4447 ;; 4448 esac 4449 ;; 4450 esac 4451 fi 4452 done 4453 IFS="$lt_save_ifs" 4454 done 4455 : ${lt_cv_path_NM=no} 4456fi 4457fi 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4459$as_echo "$lt_cv_path_NM" >&6; } 4460if test "$lt_cv_path_NM" != "no"; then 4461 NM="$lt_cv_path_NM" 4462else 4463 # Didn't find any BSD compatible name lister, look for dumpbin. 4464 if test -n "$DUMPBIN"; then : 4465 # Let the user override the test. 4466 else 4467 if test -n "$ac_tool_prefix"; then 4468 for ac_prog in dumpbin "link -dump" 4469 do 4470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4471set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4473$as_echo_n "checking for $ac_word... " >&6; } 4474if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4475 $as_echo_n "(cached) " >&6 4476else 4477 if test -n "$DUMPBIN"; then 4478 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4479else 4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4481for as_dir in $PATH 4482do 4483 IFS=$as_save_IFS 4484 test -z "$as_dir" && as_dir=. 4485 for ac_exec_ext in '' $ac_executable_extensions; do 4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4487 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4489 break 2 4490 fi 4491done 4492 done 4493IFS=$as_save_IFS 4494 4495fi 4496fi 4497DUMPBIN=$ac_cv_prog_DUMPBIN 4498if test -n "$DUMPBIN"; then 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4500$as_echo "$DUMPBIN" >&6; } 4501else 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4503$as_echo "no" >&6; } 4504fi 4505 4506 4507 test -n "$DUMPBIN" && break 4508 done 4509fi 4510if test -z "$DUMPBIN"; then 4511 ac_ct_DUMPBIN=$DUMPBIN 4512 for ac_prog in dumpbin "link -dump" 4513do 4514 # Extract the first word of "$ac_prog", so it can be a program name with args. 4515set dummy $ac_prog; ac_word=$2 4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4517$as_echo_n "checking for $ac_word... " >&6; } 4518if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4519 $as_echo_n "(cached) " >&6 4520else 4521 if test -n "$ac_ct_DUMPBIN"; then 4522 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4523else 4524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4525for as_dir in $PATH 4526do 4527 IFS=$as_save_IFS 4528 test -z "$as_dir" && as_dir=. 4529 for ac_exec_ext in '' $ac_executable_extensions; do 4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4531 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4533 break 2 4534 fi 4535done 4536 done 4537IFS=$as_save_IFS 4538 4539fi 4540fi 4541ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4542if test -n "$ac_ct_DUMPBIN"; then 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4544$as_echo "$ac_ct_DUMPBIN" >&6; } 4545else 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4547$as_echo "no" >&6; } 4548fi 4549 4550 4551 test -n "$ac_ct_DUMPBIN" && break 4552done 4553 4554 if test "x$ac_ct_DUMPBIN" = x; then 4555 DUMPBIN=":" 4556 else 4557 case $cross_compiling:$ac_tool_warned in 4558yes:) 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4561ac_tool_warned=yes ;; 4562esac 4563 DUMPBIN=$ac_ct_DUMPBIN 4564 fi 4565fi 4566 4567 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4568 *COFF*) 4569 DUMPBIN="$DUMPBIN -symbols" 4570 ;; 4571 *) 4572 DUMPBIN=: 4573 ;; 4574 esac 4575 fi 4576 4577 if test "$DUMPBIN" != ":"; then 4578 NM="$DUMPBIN" 4579 fi 4580fi 4581test -z "$NM" && NM=nm 4582 4583 4584 4585 4586 4587 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4589$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4590if test "${lt_cv_nm_interface+set}" = set; then : 4591 $as_echo_n "(cached) " >&6 4592else 4593 lt_cv_nm_interface="BSD nm" 4594 echo "int some_variable = 0;" > conftest.$ac_ext 4595 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4596 (eval "$ac_compile" 2>conftest.err) 4597 cat conftest.err >&5 4598 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4599 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4600 cat conftest.err >&5 4601 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4602 cat conftest.out >&5 4603 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4604 lt_cv_nm_interface="MS dumpbin" 4605 fi 4606 rm -f conftest* 4607fi 4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4609$as_echo "$lt_cv_nm_interface" >&6; } 4610 4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4612$as_echo_n "checking whether ln -s works... " >&6; } 4613LN_S=$as_ln_s 4614if test "$LN_S" = "ln -s"; then 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4616$as_echo "yes" >&6; } 4617else 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4619$as_echo "no, using $LN_S" >&6; } 4620fi 4621 4622# find the maximum length of command line arguments 4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4624$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4625if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4626 $as_echo_n "(cached) " >&6 4627else 4628 i=0 4629 teststring="ABCD" 4630 4631 case $build_os in 4632 msdosdjgpp*) 4633 # On DJGPP, this test can blow up pretty badly due to problems in libc 4634 # (any single argument exceeding 2000 bytes causes a buffer overrun 4635 # during glob expansion). Even if it were fixed, the result of this 4636 # check would be larger than it should be. 4637 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4638 ;; 4639 4640 gnu*) 4641 # Under GNU Hurd, this test is not required because there is 4642 # no limit to the length of command line arguments. 4643 # Libtool will interpret -1 as no limit whatsoever 4644 lt_cv_sys_max_cmd_len=-1; 4645 ;; 4646 4647 cygwin* | mingw* | cegcc*) 4648 # On Win9x/ME, this test blows up -- it succeeds, but takes 4649 # about 5 minutes as the teststring grows exponentially. 4650 # Worse, since 9x/ME are not pre-emptively multitasking, 4651 # you end up with a "frozen" computer, even though with patience 4652 # the test eventually succeeds (with a max line length of 256k). 4653 # Instead, let's just punt: use the minimum linelength reported by 4654 # all of the supported platforms: 8192 (on NT/2K/XP). 4655 lt_cv_sys_max_cmd_len=8192; 4656 ;; 4657 4658 mint*) 4659 # On MiNT this can take a long time and run out of memory. 4660 lt_cv_sys_max_cmd_len=8192; 4661 ;; 4662 4663 amigaos*) 4664 # On AmigaOS with pdksh, this test takes hours, literally. 4665 # So we just punt and use a minimum line length of 8192. 4666 lt_cv_sys_max_cmd_len=8192; 4667 ;; 4668 4669 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4670 # This has been around since 386BSD, at least. Likely further. 4671 if test -x /sbin/sysctl; then 4672 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4673 elif test -x /usr/sbin/sysctl; then 4674 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4675 else 4676 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4677 fi 4678 # And add a safety zone 4679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4681 ;; 4682 4683 interix*) 4684 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4685 lt_cv_sys_max_cmd_len=196608 4686 ;; 4687 4688 osf*) 4689 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4690 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4691 # nice to cause kernel panics so lets avoid the loop below. 4692 # First set a reasonable default. 4693 lt_cv_sys_max_cmd_len=16384 4694 # 4695 if test -x /sbin/sysconfig; then 4696 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4697 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4698 esac 4699 fi 4700 ;; 4701 sco3.2v5*) 4702 lt_cv_sys_max_cmd_len=102400 4703 ;; 4704 sysv5* | sco5v6* | sysv4.2uw2*) 4705 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4706 if test -n "$kargmax"; then 4707 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4708 else 4709 lt_cv_sys_max_cmd_len=32768 4710 fi 4711 ;; 4712 *) 4713 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4714 if test -n "$lt_cv_sys_max_cmd_len"; then 4715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4717 else 4718 # Make teststring a little bigger before we do anything with it. 4719 # a 1K string should be a reasonable start. 4720 for i in 1 2 3 4 5 6 7 8 ; do 4721 teststring=$teststring$teststring 4722 done 4723 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4724 # If test is not a shell built-in, we'll probably end up computing a 4725 # maximum length that is only half of the actual maximum length, but 4726 # we can't tell. 4727 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4728 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4729 test $i != 17 # 1/2 MB should be enough 4730 do 4731 i=`expr $i + 1` 4732 teststring=$teststring$teststring 4733 done 4734 # Only check the string length outside the loop. 4735 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4736 teststring= 4737 # Add a significant safety factor because C++ compilers can tack on 4738 # massive amounts of additional arguments before passing them to the 4739 # linker. It appears as though 1/2 is a usable value. 4740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4741 fi 4742 ;; 4743 esac 4744 4745fi 4746 4747if test -n $lt_cv_sys_max_cmd_len ; then 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4749$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4750else 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4752$as_echo "none" >&6; } 4753fi 4754max_cmd_len=$lt_cv_sys_max_cmd_len 4755 4756 4757 4758 4759 4760 4761: ${CP="cp -f"} 4762: ${MV="mv -f"} 4763: ${RM="rm -f"} 4764 4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4766$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4767# Try some XSI features 4768xsi_shell=no 4769( _lt_dummy="a/b/c" 4770 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4771 = c,a/b,, \ 4772 && eval 'test $(( 1 + 1 )) -eq 2 \ 4773 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4774 && xsi_shell=yes 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4776$as_echo "$xsi_shell" >&6; } 4777 4778 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4780$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4781lt_shell_append=no 4782( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4783 >/dev/null 2>&1 \ 4784 && lt_shell_append=yes 4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4786$as_echo "$lt_shell_append" >&6; } 4787 4788 4789if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4790 lt_unset=unset 4791else 4792 lt_unset=false 4793fi 4794 4795 4796 4797 4798 4799# test EBCDIC or ASCII 4800case `echo X|tr X '\101'` in 4801 A) # ASCII based system 4802 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4803 lt_SP2NL='tr \040 \012' 4804 lt_NL2SP='tr \015\012 \040\040' 4805 ;; 4806 *) # EBCDIC based system 4807 lt_SP2NL='tr \100 \n' 4808 lt_NL2SP='tr \r\n \100\100' 4809 ;; 4810esac 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4821$as_echo_n "checking for $LD option to reload object files... " >&6; } 4822if test "${lt_cv_ld_reload_flag+set}" = set; then : 4823 $as_echo_n "(cached) " >&6 4824else 4825 lt_cv_ld_reload_flag='-r' 4826fi 4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4828$as_echo "$lt_cv_ld_reload_flag" >&6; } 4829reload_flag=$lt_cv_ld_reload_flag 4830case $reload_flag in 4831"" | " "*) ;; 4832*) reload_flag=" $reload_flag" ;; 4833esac 4834reload_cmds='$LD$reload_flag -o $output$reload_objs' 4835case $host_os in 4836 darwin*) 4837 if test "$GCC" = yes; then 4838 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4839 else 4840 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4841 fi 4842 ;; 4843esac 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853if test -n "$ac_tool_prefix"; then 4854 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4855set dummy ${ac_tool_prefix}objdump; ac_word=$2 4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4857$as_echo_n "checking for $ac_word... " >&6; } 4858if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4859 $as_echo_n "(cached) " >&6 4860else 4861 if test -n "$OBJDUMP"; then 4862 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4863else 4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4865for as_dir in $PATH 4866do 4867 IFS=$as_save_IFS 4868 test -z "$as_dir" && as_dir=. 4869 for ac_exec_ext in '' $ac_executable_extensions; do 4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4871 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4873 break 2 4874 fi 4875done 4876 done 4877IFS=$as_save_IFS 4878 4879fi 4880fi 4881OBJDUMP=$ac_cv_prog_OBJDUMP 4882if test -n "$OBJDUMP"; then 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4884$as_echo "$OBJDUMP" >&6; } 4885else 4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4887$as_echo "no" >&6; } 4888fi 4889 4890 4891fi 4892if test -z "$ac_cv_prog_OBJDUMP"; then 4893 ac_ct_OBJDUMP=$OBJDUMP 4894 # Extract the first word of "objdump", so it can be a program name with args. 4895set dummy objdump; ac_word=$2 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4897$as_echo_n "checking for $ac_word... " >&6; } 4898if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 4899 $as_echo_n "(cached) " >&6 4900else 4901 if test -n "$ac_ct_OBJDUMP"; then 4902 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4903else 4904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4905for as_dir in $PATH 4906do 4907 IFS=$as_save_IFS 4908 test -z "$as_dir" && as_dir=. 4909 for ac_exec_ext in '' $ac_executable_extensions; do 4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4911 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4913 break 2 4914 fi 4915done 4916 done 4917IFS=$as_save_IFS 4918 4919fi 4920fi 4921ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4922if test -n "$ac_ct_OBJDUMP"; then 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4924$as_echo "$ac_ct_OBJDUMP" >&6; } 4925else 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4927$as_echo "no" >&6; } 4928fi 4929 4930 if test "x$ac_ct_OBJDUMP" = x; then 4931 OBJDUMP="false" 4932 else 4933 case $cross_compiling:$ac_tool_warned in 4934yes:) 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4937ac_tool_warned=yes ;; 4938esac 4939 OBJDUMP=$ac_ct_OBJDUMP 4940 fi 4941else 4942 OBJDUMP="$ac_cv_prog_OBJDUMP" 4943fi 4944 4945test -z "$OBJDUMP" && OBJDUMP=objdump 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4956$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4957if test "${lt_cv_deplibs_check_method+set}" = set; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 lt_cv_file_magic_cmd='$MAGIC_CMD' 4961lt_cv_file_magic_test_file= 4962lt_cv_deplibs_check_method='unknown' 4963# Need to set the preceding variable on all platforms that support 4964# interlibrary dependencies. 4965# 'none' -- dependencies not supported. 4966# `unknown' -- same as none, but documents that we really don't know. 4967# 'pass_all' -- all dependencies passed with no checks. 4968# 'test_compile' -- check by making test program. 4969# 'file_magic [[regex]]' -- check by looking for files in library path 4970# which responds to the $file_magic_cmd with a given extended regex. 4971# If you have `file' or equivalent on your system and you're not sure 4972# whether `pass_all' will *always* work, you probably want this one. 4973 4974case $host_os in 4975aix[4-9]*) 4976 lt_cv_deplibs_check_method=pass_all 4977 ;; 4978 4979beos*) 4980 lt_cv_deplibs_check_method=pass_all 4981 ;; 4982 4983bsdi[45]*) 4984 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4985 lt_cv_file_magic_cmd='/usr/bin/file -L' 4986 lt_cv_file_magic_test_file=/shlib/libc.so 4987 ;; 4988 4989cygwin*) 4990 # func_win32_libid is a shell function defined in ltmain.sh 4991 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4992 lt_cv_file_magic_cmd='func_win32_libid' 4993 ;; 4994 4995mingw* | pw32*) 4996 # Base MSYS/MinGW do not provide the 'file' command needed by 4997 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4998 # unless we find 'file', for example because we are cross-compiling. 4999 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5000 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5001 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5002 lt_cv_file_magic_cmd='func_win32_libid' 5003 else 5004 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5005 lt_cv_file_magic_cmd='$OBJDUMP -f' 5006 fi 5007 ;; 5008 5009cegcc*) 5010 # use the weaker test based on 'objdump'. See mingw*. 5011 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5012 lt_cv_file_magic_cmd='$OBJDUMP -f' 5013 ;; 5014 5015darwin* | rhapsody*) 5016 lt_cv_deplibs_check_method=pass_all 5017 ;; 5018 5019freebsd* | dragonfly*) 5020 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5021 case $host_cpu in 5022 i*86 ) 5023 # Not sure whether the presence of OpenBSD here was a mistake. 5024 # Let's accept both of them until this is cleared up. 5025 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5026 lt_cv_file_magic_cmd=/usr/bin/file 5027 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5028 ;; 5029 esac 5030 else 5031 lt_cv_deplibs_check_method=pass_all 5032 fi 5033 ;; 5034 5035gnu*) 5036 lt_cv_deplibs_check_method=pass_all 5037 ;; 5038 5039haiku*) 5040 lt_cv_deplibs_check_method=pass_all 5041 ;; 5042 5043hpux10.20* | hpux11*) 5044 lt_cv_file_magic_cmd=/usr/bin/file 5045 case $host_cpu in 5046 ia64*) 5047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5048 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5049 ;; 5050 hppa*64*) 5051 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]' 5052 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5053 ;; 5054 *) 5055 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5056 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5057 ;; 5058 esac 5059 ;; 5060 5061interix[3-9]*) 5062 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5064 ;; 5065 5066irix5* | irix6* | nonstopux*) 5067 case $LD in 5068 *-32|*"-32 ") libmagic=32-bit;; 5069 *-n32|*"-n32 ") libmagic=N32;; 5070 *-64|*"-64 ") libmagic=64-bit;; 5071 *) libmagic=never-match;; 5072 esac 5073 lt_cv_deplibs_check_method=pass_all 5074 ;; 5075 5076# This must be Linux ELF. 5077linux* | k*bsd*-gnu | kopensolaris*-gnu) 5078 lt_cv_deplibs_check_method=pass_all 5079 ;; 5080 5081netbsd*) 5082 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5084 else 5085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5086 fi 5087 ;; 5088 5089newos6*) 5090 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5091 lt_cv_file_magic_cmd=/usr/bin/file 5092 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5093 ;; 5094 5095*nto* | *qnx*) 5096 lt_cv_deplibs_check_method=pass_all 5097 ;; 5098 5099openbsd*) 5100 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5102 else 5103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5104 fi 5105 ;; 5106 5107osf3* | osf4* | osf5*) 5108 lt_cv_deplibs_check_method=pass_all 5109 ;; 5110 5111rdos*) 5112 lt_cv_deplibs_check_method=pass_all 5113 ;; 5114 5115solaris*) 5116 lt_cv_deplibs_check_method=pass_all 5117 ;; 5118 5119sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5120 lt_cv_deplibs_check_method=pass_all 5121 ;; 5122 5123sysv4 | sysv4.3*) 5124 case $host_vendor in 5125 motorola) 5126 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]' 5127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5128 ;; 5129 ncr) 5130 lt_cv_deplibs_check_method=pass_all 5131 ;; 5132 sequent) 5133 lt_cv_file_magic_cmd='/bin/file' 5134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5135 ;; 5136 sni) 5137 lt_cv_file_magic_cmd='/bin/file' 5138 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5139 lt_cv_file_magic_test_file=/lib/libc.so 5140 ;; 5141 siemens) 5142 lt_cv_deplibs_check_method=pass_all 5143 ;; 5144 pc) 5145 lt_cv_deplibs_check_method=pass_all 5146 ;; 5147 esac 5148 ;; 5149 5150tpf*) 5151 lt_cv_deplibs_check_method=pass_all 5152 ;; 5153esac 5154 5155fi 5156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5157$as_echo "$lt_cv_deplibs_check_method" >&6; } 5158file_magic_cmd=$lt_cv_file_magic_cmd 5159deplibs_check_method=$lt_cv_deplibs_check_method 5160test -z "$deplibs_check_method" && deplibs_check_method=unknown 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173if test -n "$ac_tool_prefix"; then 5174 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5175set dummy ${ac_tool_prefix}ar; ac_word=$2 5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5177$as_echo_n "checking for $ac_word... " >&6; } 5178if test "${ac_cv_prog_AR+set}" = set; then : 5179 $as_echo_n "(cached) " >&6 5180else 5181 if test -n "$AR"; then 5182 ac_cv_prog_AR="$AR" # Let the user override the test. 5183else 5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5185for as_dir in $PATH 5186do 5187 IFS=$as_save_IFS 5188 test -z "$as_dir" && as_dir=. 5189 for ac_exec_ext in '' $ac_executable_extensions; do 5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5191 ac_cv_prog_AR="${ac_tool_prefix}ar" 5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5193 break 2 5194 fi 5195done 5196 done 5197IFS=$as_save_IFS 5198 5199fi 5200fi 5201AR=$ac_cv_prog_AR 5202if test -n "$AR"; then 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5204$as_echo "$AR" >&6; } 5205else 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5207$as_echo "no" >&6; } 5208fi 5209 5210 5211fi 5212if test -z "$ac_cv_prog_AR"; then 5213 ac_ct_AR=$AR 5214 # Extract the first word of "ar", so it can be a program name with args. 5215set dummy ar; ac_word=$2 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5217$as_echo_n "checking for $ac_word... " >&6; } 5218if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5219 $as_echo_n "(cached) " >&6 5220else 5221 if test -n "$ac_ct_AR"; then 5222 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5223else 5224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5225for as_dir in $PATH 5226do 5227 IFS=$as_save_IFS 5228 test -z "$as_dir" && as_dir=. 5229 for ac_exec_ext in '' $ac_executable_extensions; do 5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5231 ac_cv_prog_ac_ct_AR="ar" 5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5233 break 2 5234 fi 5235done 5236 done 5237IFS=$as_save_IFS 5238 5239fi 5240fi 5241ac_ct_AR=$ac_cv_prog_ac_ct_AR 5242if test -n "$ac_ct_AR"; then 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5244$as_echo "$ac_ct_AR" >&6; } 5245else 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5247$as_echo "no" >&6; } 5248fi 5249 5250 if test "x$ac_ct_AR" = x; then 5251 AR="false" 5252 else 5253 case $cross_compiling:$ac_tool_warned in 5254yes:) 5255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5257ac_tool_warned=yes ;; 5258esac 5259 AR=$ac_ct_AR 5260 fi 5261else 5262 AR="$ac_cv_prog_AR" 5263fi 5264 5265test -z "$AR" && AR=ar 5266test -z "$AR_FLAGS" && AR_FLAGS=cru 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278if test -n "$ac_tool_prefix"; then 5279 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5280set dummy ${ac_tool_prefix}strip; ac_word=$2 5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5282$as_echo_n "checking for $ac_word... " >&6; } 5283if test "${ac_cv_prog_STRIP+set}" = set; then : 5284 $as_echo_n "(cached) " >&6 5285else 5286 if test -n "$STRIP"; then 5287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5288else 5289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5290for as_dir in $PATH 5291do 5292 IFS=$as_save_IFS 5293 test -z "$as_dir" && as_dir=. 5294 for ac_exec_ext in '' $ac_executable_extensions; do 5295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5296 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5298 break 2 5299 fi 5300done 5301 done 5302IFS=$as_save_IFS 5303 5304fi 5305fi 5306STRIP=$ac_cv_prog_STRIP 5307if test -n "$STRIP"; then 5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5309$as_echo "$STRIP" >&6; } 5310else 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5312$as_echo "no" >&6; } 5313fi 5314 5315 5316fi 5317if test -z "$ac_cv_prog_STRIP"; then 5318 ac_ct_STRIP=$STRIP 5319 # Extract the first word of "strip", so it can be a program name with args. 5320set dummy strip; ac_word=$2 5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5322$as_echo_n "checking for $ac_word... " >&6; } 5323if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5324 $as_echo_n "(cached) " >&6 5325else 5326 if test -n "$ac_ct_STRIP"; then 5327 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5328else 5329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5330for as_dir in $PATH 5331do 5332 IFS=$as_save_IFS 5333 test -z "$as_dir" && as_dir=. 5334 for ac_exec_ext in '' $ac_executable_extensions; do 5335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5336 ac_cv_prog_ac_ct_STRIP="strip" 5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5338 break 2 5339 fi 5340done 5341 done 5342IFS=$as_save_IFS 5343 5344fi 5345fi 5346ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5347if test -n "$ac_ct_STRIP"; then 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5349$as_echo "$ac_ct_STRIP" >&6; } 5350else 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5352$as_echo "no" >&6; } 5353fi 5354 5355 if test "x$ac_ct_STRIP" = x; then 5356 STRIP=":" 5357 else 5358 case $cross_compiling:$ac_tool_warned in 5359yes:) 5360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5362ac_tool_warned=yes ;; 5363esac 5364 STRIP=$ac_ct_STRIP 5365 fi 5366else 5367 STRIP="$ac_cv_prog_STRIP" 5368fi 5369 5370test -z "$STRIP" && STRIP=: 5371 5372 5373 5374 5375 5376 5377if test -n "$ac_tool_prefix"; then 5378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5379set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5381$as_echo_n "checking for $ac_word... " >&6; } 5382if test "${ac_cv_prog_RANLIB+set}" = set; then : 5383 $as_echo_n "(cached) " >&6 5384else 5385 if test -n "$RANLIB"; then 5386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5387else 5388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5389for as_dir in $PATH 5390do 5391 IFS=$as_save_IFS 5392 test -z "$as_dir" && as_dir=. 5393 for ac_exec_ext in '' $ac_executable_extensions; do 5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5397 break 2 5398 fi 5399done 5400 done 5401IFS=$as_save_IFS 5402 5403fi 5404fi 5405RANLIB=$ac_cv_prog_RANLIB 5406if test -n "$RANLIB"; then 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5408$as_echo "$RANLIB" >&6; } 5409else 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5411$as_echo "no" >&6; } 5412fi 5413 5414 5415fi 5416if test -z "$ac_cv_prog_RANLIB"; then 5417 ac_ct_RANLIB=$RANLIB 5418 # Extract the first word of "ranlib", so it can be a program name with args. 5419set dummy ranlib; ac_word=$2 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5421$as_echo_n "checking for $ac_word... " >&6; } 5422if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5423 $as_echo_n "(cached) " >&6 5424else 5425 if test -n "$ac_ct_RANLIB"; then 5426 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5427else 5428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5429for as_dir in $PATH 5430do 5431 IFS=$as_save_IFS 5432 test -z "$as_dir" && as_dir=. 5433 for ac_exec_ext in '' $ac_executable_extensions; do 5434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5435 ac_cv_prog_ac_ct_RANLIB="ranlib" 5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5437 break 2 5438 fi 5439done 5440 done 5441IFS=$as_save_IFS 5442 5443fi 5444fi 5445ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5446if test -n "$ac_ct_RANLIB"; then 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5448$as_echo "$ac_ct_RANLIB" >&6; } 5449else 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5451$as_echo "no" >&6; } 5452fi 5453 5454 if test "x$ac_ct_RANLIB" = x; then 5455 RANLIB=":" 5456 else 5457 case $cross_compiling:$ac_tool_warned in 5458yes:) 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5461ac_tool_warned=yes ;; 5462esac 5463 RANLIB=$ac_ct_RANLIB 5464 fi 5465else 5466 RANLIB="$ac_cv_prog_RANLIB" 5467fi 5468 5469test -z "$RANLIB" && RANLIB=: 5470 5471 5472 5473 5474 5475 5476# Determine commands to create old-style static archives. 5477old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5478old_postinstall_cmds='chmod 644 $oldlib' 5479old_postuninstall_cmds= 5480 5481if test -n "$RANLIB"; then 5482 case $host_os in 5483 openbsd*) 5484 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5485 ;; 5486 *) 5487 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5488 ;; 5489 esac 5490 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5491fi 5492 5493case $host_os in 5494 darwin*) 5495 lock_old_archive_extraction=yes ;; 5496 *) 5497 lock_old_archive_extraction=no ;; 5498esac 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538# If no C compiler was specified, use CC. 5539LTCC=${LTCC-"$CC"} 5540 5541# If no C compiler flags were specified, use CFLAGS. 5542LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5543 5544# Allow CC to be a program name with arguments. 5545compiler=$CC 5546 5547 5548# Check for command to grab the raw symbol name followed by C symbol from nm. 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5550$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5551if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5552 $as_echo_n "(cached) " >&6 5553else 5554 5555# These are sane defaults that work on at least a few old systems. 5556# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5557 5558# Character class describing NM global symbol codes. 5559symcode='[BCDEGRST]' 5560 5561# Regexp to match symbols that can be accessed directly from C. 5562sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5563 5564# Define system-specific variables. 5565case $host_os in 5566aix*) 5567 symcode='[BCDT]' 5568 ;; 5569cygwin* | mingw* | pw32* | cegcc*) 5570 symcode='[ABCDGISTW]' 5571 ;; 5572hpux*) 5573 if test "$host_cpu" = ia64; then 5574 symcode='[ABCDEGRST]' 5575 fi 5576 ;; 5577irix* | nonstopux*) 5578 symcode='[BCDEGRST]' 5579 ;; 5580osf*) 5581 symcode='[BCDEGQRST]' 5582 ;; 5583solaris*) 5584 symcode='[BDRT]' 5585 ;; 5586sco3.2v5*) 5587 symcode='[DT]' 5588 ;; 5589sysv4.2uw2*) 5590 symcode='[DT]' 5591 ;; 5592sysv5* | sco5v6* | unixware* | OpenUNIX*) 5593 symcode='[ABDT]' 5594 ;; 5595sysv4) 5596 symcode='[DFNSTU]' 5597 ;; 5598esac 5599 5600# If we're using GNU nm, then use its standard symbol codes. 5601case `$NM -V 2>&1` in 5602*GNU* | *'with BFD'*) 5603 symcode='[ABCDGIRSTW]' ;; 5604esac 5605 5606# Transform an extracted symbol line into a proper C declaration. 5607# Some systems (esp. on ia64) link data and code symbols differently, 5608# so use this general approach. 5609lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5610 5611# Transform an extracted symbol line into symbol name and symbol address 5612lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5613lt_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'" 5614 5615# Handle CRLF in mingw tool chain 5616opt_cr= 5617case $build_os in 5618mingw*) 5619 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5620 ;; 5621esac 5622 5623# Try without a prefix underscore, then with it. 5624for ac_symprfx in "" "_"; do 5625 5626 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5627 symxfrm="\\1 $ac_symprfx\\2 \\2" 5628 5629 # Write the raw and C identifiers. 5630 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5631 # Fake it for dumpbin and say T for any non-static function 5632 # and D for any global variable. 5633 # Also find C++ and __fastcall symbols from MSVC++, 5634 # which start with @ or ?. 5635 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5636" {last_section=section; section=\$ 3};"\ 5637" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5638" \$ 0!~/External *\|/{next};"\ 5639" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5640" {if(hide[section]) next};"\ 5641" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5642" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5643" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5644" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5645" ' prfx=^$ac_symprfx" 5646 else 5647 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5648 fi 5649 5650 # Check to see that the pipe works correctly. 5651 pipe_works=no 5652 5653 rm -f conftest* 5654 cat > conftest.$ac_ext <<_LT_EOF 5655#ifdef __cplusplus 5656extern "C" { 5657#endif 5658char nm_test_var; 5659void nm_test_func(void); 5660void nm_test_func(void){} 5661#ifdef __cplusplus 5662} 5663#endif 5664int main(){nm_test_var='a';nm_test_func();return(0);} 5665_LT_EOF 5666 5667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5668 (eval $ac_compile) 2>&5 5669 ac_status=$? 5670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5671 test $ac_status = 0; }; then 5672 # Now try to grab the symbols. 5673 nlist=conftest.nm 5674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5675 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5676 ac_status=$? 5677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5678 test $ac_status = 0; } && test -s "$nlist"; then 5679 # Try sorting and uniquifying the output. 5680 if sort "$nlist" | uniq > "$nlist"T; then 5681 mv -f "$nlist"T "$nlist" 5682 else 5683 rm -f "$nlist"T 5684 fi 5685 5686 # Make sure that we snagged all the symbols we need. 5687 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5688 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5689 cat <<_LT_EOF > conftest.$ac_ext 5690#ifdef __cplusplus 5691extern "C" { 5692#endif 5693 5694_LT_EOF 5695 # Now generate the symbol file. 5696 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5697 5698 cat <<_LT_EOF >> conftest.$ac_ext 5699 5700/* The mapping between symbol names and symbols. */ 5701const struct { 5702 const char *name; 5703 void *address; 5704} 5705lt__PROGRAM__LTX_preloaded_symbols[] = 5706{ 5707 { "@PROGRAM@", (void *) 0 }, 5708_LT_EOF 5709 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5710 cat <<\_LT_EOF >> conftest.$ac_ext 5711 {0, (void *) 0} 5712}; 5713 5714/* This works around a problem in FreeBSD linker */ 5715#ifdef FREEBSD_WORKAROUND 5716static const void *lt_preloaded_setup() { 5717 return lt__PROGRAM__LTX_preloaded_symbols; 5718} 5719#endif 5720 5721#ifdef __cplusplus 5722} 5723#endif 5724_LT_EOF 5725 # Now try linking the two files. 5726 mv conftest.$ac_objext conftstm.$ac_objext 5727 lt_save_LIBS="$LIBS" 5728 lt_save_CFLAGS="$CFLAGS" 5729 LIBS="conftstm.$ac_objext" 5730 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5732 (eval $ac_link) 2>&5 5733 ac_status=$? 5734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5735 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5736 pipe_works=yes 5737 fi 5738 LIBS="$lt_save_LIBS" 5739 CFLAGS="$lt_save_CFLAGS" 5740 else 5741 echo "cannot find nm_test_func in $nlist" >&5 5742 fi 5743 else 5744 echo "cannot find nm_test_var in $nlist" >&5 5745 fi 5746 else 5747 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5748 fi 5749 else 5750 echo "$progname: failed program was:" >&5 5751 cat conftest.$ac_ext >&5 5752 fi 5753 rm -rf conftest* conftst* 5754 5755 # Do not use the global_symbol_pipe unless it works. 5756 if test "$pipe_works" = yes; then 5757 break 5758 else 5759 lt_cv_sys_global_symbol_pipe= 5760 fi 5761done 5762 5763fi 5764 5765if test -z "$lt_cv_sys_global_symbol_pipe"; then 5766 lt_cv_sys_global_symbol_to_cdecl= 5767fi 5768if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5770$as_echo "failed" >&6; } 5771else 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5773$as_echo "ok" >&6; } 5774fi 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798# Check whether --enable-libtool-lock was given. 5799if test "${enable_libtool_lock+set}" = set; then : 5800 enableval=$enable_libtool_lock; 5801fi 5802 5803test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5804 5805# Some flags need to be propagated to the compiler or linker for good 5806# libtool support. 5807case $host in 5808ia64-*-hpux*) 5809 # Find out which ABI we are using. 5810 echo 'int i;' > conftest.$ac_ext 5811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5812 (eval $ac_compile) 2>&5 5813 ac_status=$? 5814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5815 test $ac_status = 0; }; then 5816 case `/usr/bin/file conftest.$ac_objext` in 5817 *ELF-32*) 5818 HPUX_IA64_MODE="32" 5819 ;; 5820 *ELF-64*) 5821 HPUX_IA64_MODE="64" 5822 ;; 5823 esac 5824 fi 5825 rm -rf conftest* 5826 ;; 5827*-*-irix6*) 5828 # Find out which ABI we are using. 5829 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5831 (eval $ac_compile) 2>&5 5832 ac_status=$? 5833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5834 test $ac_status = 0; }; then 5835 if test "$lt_cv_prog_gnu_ld" = yes; then 5836 case `/usr/bin/file conftest.$ac_objext` in 5837 *32-bit*) 5838 LD="${LD-ld} -melf32bsmip" 5839 ;; 5840 *N32*) 5841 LD="${LD-ld} -melf32bmipn32" 5842 ;; 5843 *64-bit*) 5844 LD="${LD-ld} -melf64bmip" 5845 ;; 5846 esac 5847 else 5848 case `/usr/bin/file conftest.$ac_objext` in 5849 *32-bit*) 5850 LD="${LD-ld} -32" 5851 ;; 5852 *N32*) 5853 LD="${LD-ld} -n32" 5854 ;; 5855 *64-bit*) 5856 LD="${LD-ld} -64" 5857 ;; 5858 esac 5859 fi 5860 fi 5861 rm -rf conftest* 5862 ;; 5863 5864x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 5865s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5866 # Find out which ABI we are using. 5867 echo 'int i;' > conftest.$ac_ext 5868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5869 (eval $ac_compile) 2>&5 5870 ac_status=$? 5871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5872 test $ac_status = 0; }; then 5873 case `/usr/bin/file conftest.o` in 5874 *32-bit*) 5875 case $host in 5876 x86_64-*kfreebsd*-gnu) 5877 LD="${LD-ld} -m elf_i386_fbsd" 5878 ;; 5879 x86_64-*linux*) 5880 case `/usr/bin/file conftest.o` in 5881 *x86-64*) 5882 LD="${LD-ld} -m elf32_x86_64" 5883 ;; 5884 *) 5885 LD="${LD-ld} -m elf_i386" 5886 ;; 5887 esac 5888 ;; 5889 powerpc64le-*linux*) 5890 LD="${LD-ld} -m elf32lppclinux" 5891 ;; 5892 powerpc64-*linux*) 5893 LD="${LD-ld} -m elf32ppclinux" 5894 ;; 5895 s390x-*linux*) 5896 LD="${LD-ld} -m elf_s390" 5897 ;; 5898 sparc64-*linux*) 5899 LD="${LD-ld} -m elf32_sparc" 5900 ;; 5901 esac 5902 ;; 5903 *64-bit*) 5904 case $host in 5905 x86_64-*kfreebsd*-gnu) 5906 LD="${LD-ld} -m elf_x86_64_fbsd" 5907 ;; 5908 x86_64-*linux*) 5909 LD="${LD-ld} -m elf_x86_64" 5910 ;; 5911 powerpcle-*linux*) 5912 LD="${LD-ld} -m elf64lppc" 5913 ;; 5914 powerpc-*linux*) 5915 LD="${LD-ld} -m elf64ppc" 5916 ;; 5917 s390*-*linux*|s390*-*tpf*) 5918 LD="${LD-ld} -m elf64_s390" 5919 ;; 5920 sparc*-*linux*) 5921 LD="${LD-ld} -m elf64_sparc" 5922 ;; 5923 esac 5924 ;; 5925 esac 5926 fi 5927 rm -rf conftest* 5928 ;; 5929 5930*-*-sco3.2v5*) 5931 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5932 SAVE_CFLAGS="$CFLAGS" 5933 CFLAGS="$CFLAGS -belf" 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5935$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5936if test "${lt_cv_cc_needs_belf+set}" = set; then : 5937 $as_echo_n "(cached) " >&6 5938else 5939 ac_ext=c 5940ac_cpp='$CPP $CPPFLAGS' 5941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5943ac_compiler_gnu=$ac_cv_c_compiler_gnu 5944 5945 if test x$gcc_no_link = xyes; then 5946 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 5947fi 5948cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5949/* end confdefs.h. */ 5950 5951int 5952main () 5953{ 5954 5955 ; 5956 return 0; 5957} 5958_ACEOF 5959if ac_fn_c_try_link "$LINENO"; then : 5960 lt_cv_cc_needs_belf=yes 5961else 5962 lt_cv_cc_needs_belf=no 5963fi 5964rm -f core conftest.err conftest.$ac_objext \ 5965 conftest$ac_exeext conftest.$ac_ext 5966 ac_ext=c 5967ac_cpp='$CPP $CPPFLAGS' 5968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5970ac_compiler_gnu=$ac_cv_c_compiler_gnu 5971 5972fi 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5974$as_echo "$lt_cv_cc_needs_belf" >&6; } 5975 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5976 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5977 CFLAGS="$SAVE_CFLAGS" 5978 fi 5979 ;; 5980sparc*-*solaris*) 5981 # Find out which ABI we are using. 5982 echo 'int i;' > conftest.$ac_ext 5983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5984 (eval $ac_compile) 2>&5 5985 ac_status=$? 5986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5987 test $ac_status = 0; }; then 5988 case `/usr/bin/file conftest.o` in 5989 *64-bit*) 5990 case $lt_cv_prog_gnu_ld in 5991 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5992 *) 5993 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5994 LD="${LD-ld} -64" 5995 fi 5996 ;; 5997 esac 5998 ;; 5999 esac 6000 fi 6001 rm -rf conftest* 6002 ;; 6003esac 6004 6005need_locks="$enable_libtool_lock" 6006 6007 6008 case $host_os in 6009 rhapsody* | darwin*) 6010 if test -n "$ac_tool_prefix"; then 6011 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6012set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6014$as_echo_n "checking for $ac_word... " >&6; } 6015if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6016 $as_echo_n "(cached) " >&6 6017else 6018 if test -n "$DSYMUTIL"; then 6019 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6020else 6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6022for as_dir in $PATH 6023do 6024 IFS=$as_save_IFS 6025 test -z "$as_dir" && as_dir=. 6026 for ac_exec_ext in '' $ac_executable_extensions; do 6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6028 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6030 break 2 6031 fi 6032done 6033 done 6034IFS=$as_save_IFS 6035 6036fi 6037fi 6038DSYMUTIL=$ac_cv_prog_DSYMUTIL 6039if test -n "$DSYMUTIL"; then 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6041$as_echo "$DSYMUTIL" >&6; } 6042else 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6044$as_echo "no" >&6; } 6045fi 6046 6047 6048fi 6049if test -z "$ac_cv_prog_DSYMUTIL"; then 6050 ac_ct_DSYMUTIL=$DSYMUTIL 6051 # Extract the first word of "dsymutil", so it can be a program name with args. 6052set dummy dsymutil; ac_word=$2 6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6054$as_echo_n "checking for $ac_word... " >&6; } 6055if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6056 $as_echo_n "(cached) " >&6 6057else 6058 if test -n "$ac_ct_DSYMUTIL"; then 6059 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6060else 6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6062for as_dir in $PATH 6063do 6064 IFS=$as_save_IFS 6065 test -z "$as_dir" && as_dir=. 6066 for ac_exec_ext in '' $ac_executable_extensions; do 6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6068 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6070 break 2 6071 fi 6072done 6073 done 6074IFS=$as_save_IFS 6075 6076fi 6077fi 6078ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6079if test -n "$ac_ct_DSYMUTIL"; then 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6081$as_echo "$ac_ct_DSYMUTIL" >&6; } 6082else 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6084$as_echo "no" >&6; } 6085fi 6086 6087 if test "x$ac_ct_DSYMUTIL" = x; then 6088 DSYMUTIL=":" 6089 else 6090 case $cross_compiling:$ac_tool_warned in 6091yes:) 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6094ac_tool_warned=yes ;; 6095esac 6096 DSYMUTIL=$ac_ct_DSYMUTIL 6097 fi 6098else 6099 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6100fi 6101 6102 if test -n "$ac_tool_prefix"; then 6103 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6104set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6106$as_echo_n "checking for $ac_word... " >&6; } 6107if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6108 $as_echo_n "(cached) " >&6 6109else 6110 if test -n "$NMEDIT"; then 6111 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6112else 6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6114for as_dir in $PATH 6115do 6116 IFS=$as_save_IFS 6117 test -z "$as_dir" && as_dir=. 6118 for ac_exec_ext in '' $ac_executable_extensions; do 6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6120 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6122 break 2 6123 fi 6124done 6125 done 6126IFS=$as_save_IFS 6127 6128fi 6129fi 6130NMEDIT=$ac_cv_prog_NMEDIT 6131if test -n "$NMEDIT"; then 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6133$as_echo "$NMEDIT" >&6; } 6134else 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6136$as_echo "no" >&6; } 6137fi 6138 6139 6140fi 6141if test -z "$ac_cv_prog_NMEDIT"; then 6142 ac_ct_NMEDIT=$NMEDIT 6143 # Extract the first word of "nmedit", so it can be a program name with args. 6144set dummy nmedit; ac_word=$2 6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6146$as_echo_n "checking for $ac_word... " >&6; } 6147if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6148 $as_echo_n "(cached) " >&6 6149else 6150 if test -n "$ac_ct_NMEDIT"; then 6151 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6152else 6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6154for as_dir in $PATH 6155do 6156 IFS=$as_save_IFS 6157 test -z "$as_dir" && as_dir=. 6158 for ac_exec_ext in '' $ac_executable_extensions; do 6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6160 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6162 break 2 6163 fi 6164done 6165 done 6166IFS=$as_save_IFS 6167 6168fi 6169fi 6170ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6171if test -n "$ac_ct_NMEDIT"; then 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6173$as_echo "$ac_ct_NMEDIT" >&6; } 6174else 6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6176$as_echo "no" >&6; } 6177fi 6178 6179 if test "x$ac_ct_NMEDIT" = x; then 6180 NMEDIT=":" 6181 else 6182 case $cross_compiling:$ac_tool_warned in 6183yes:) 6184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6186ac_tool_warned=yes ;; 6187esac 6188 NMEDIT=$ac_ct_NMEDIT 6189 fi 6190else 6191 NMEDIT="$ac_cv_prog_NMEDIT" 6192fi 6193 6194 if test -n "$ac_tool_prefix"; then 6195 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6196set dummy ${ac_tool_prefix}lipo; ac_word=$2 6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6198$as_echo_n "checking for $ac_word... " >&6; } 6199if test "${ac_cv_prog_LIPO+set}" = set; then : 6200 $as_echo_n "(cached) " >&6 6201else 6202 if test -n "$LIPO"; then 6203 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6204else 6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6206for as_dir in $PATH 6207do 6208 IFS=$as_save_IFS 6209 test -z "$as_dir" && as_dir=. 6210 for ac_exec_ext in '' $ac_executable_extensions; do 6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6212 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6214 break 2 6215 fi 6216done 6217 done 6218IFS=$as_save_IFS 6219 6220fi 6221fi 6222LIPO=$ac_cv_prog_LIPO 6223if test -n "$LIPO"; then 6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6225$as_echo "$LIPO" >&6; } 6226else 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6228$as_echo "no" >&6; } 6229fi 6230 6231 6232fi 6233if test -z "$ac_cv_prog_LIPO"; then 6234 ac_ct_LIPO=$LIPO 6235 # Extract the first word of "lipo", so it can be a program name with args. 6236set dummy lipo; ac_word=$2 6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6238$as_echo_n "checking for $ac_word... " >&6; } 6239if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6240 $as_echo_n "(cached) " >&6 6241else 6242 if test -n "$ac_ct_LIPO"; then 6243 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6244else 6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6246for as_dir in $PATH 6247do 6248 IFS=$as_save_IFS 6249 test -z "$as_dir" && as_dir=. 6250 for ac_exec_ext in '' $ac_executable_extensions; do 6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6252 ac_cv_prog_ac_ct_LIPO="lipo" 6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6254 break 2 6255 fi 6256done 6257 done 6258IFS=$as_save_IFS 6259 6260fi 6261fi 6262ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6263if test -n "$ac_ct_LIPO"; then 6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6265$as_echo "$ac_ct_LIPO" >&6; } 6266else 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6268$as_echo "no" >&6; } 6269fi 6270 6271 if test "x$ac_ct_LIPO" = x; then 6272 LIPO=":" 6273 else 6274 case $cross_compiling:$ac_tool_warned in 6275yes:) 6276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6278ac_tool_warned=yes ;; 6279esac 6280 LIPO=$ac_ct_LIPO 6281 fi 6282else 6283 LIPO="$ac_cv_prog_LIPO" 6284fi 6285 6286 if test -n "$ac_tool_prefix"; then 6287 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6288set dummy ${ac_tool_prefix}otool; ac_word=$2 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6290$as_echo_n "checking for $ac_word... " >&6; } 6291if test "${ac_cv_prog_OTOOL+set}" = set; then : 6292 $as_echo_n "(cached) " >&6 6293else 6294 if test -n "$OTOOL"; then 6295 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6296else 6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6298for as_dir in $PATH 6299do 6300 IFS=$as_save_IFS 6301 test -z "$as_dir" && as_dir=. 6302 for ac_exec_ext in '' $ac_executable_extensions; do 6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6304 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6306 break 2 6307 fi 6308done 6309 done 6310IFS=$as_save_IFS 6311 6312fi 6313fi 6314OTOOL=$ac_cv_prog_OTOOL 6315if test -n "$OTOOL"; then 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6317$as_echo "$OTOOL" >&6; } 6318else 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6320$as_echo "no" >&6; } 6321fi 6322 6323 6324fi 6325if test -z "$ac_cv_prog_OTOOL"; then 6326 ac_ct_OTOOL=$OTOOL 6327 # Extract the first word of "otool", so it can be a program name with args. 6328set dummy otool; ac_word=$2 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6330$as_echo_n "checking for $ac_word... " >&6; } 6331if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6332 $as_echo_n "(cached) " >&6 6333else 6334 if test -n "$ac_ct_OTOOL"; then 6335 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6336else 6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6338for as_dir in $PATH 6339do 6340 IFS=$as_save_IFS 6341 test -z "$as_dir" && as_dir=. 6342 for ac_exec_ext in '' $ac_executable_extensions; do 6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6344 ac_cv_prog_ac_ct_OTOOL="otool" 6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6346 break 2 6347 fi 6348done 6349 done 6350IFS=$as_save_IFS 6351 6352fi 6353fi 6354ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6355if test -n "$ac_ct_OTOOL"; then 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6357$as_echo "$ac_ct_OTOOL" >&6; } 6358else 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6360$as_echo "no" >&6; } 6361fi 6362 6363 if test "x$ac_ct_OTOOL" = x; then 6364 OTOOL=":" 6365 else 6366 case $cross_compiling:$ac_tool_warned in 6367yes:) 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6370ac_tool_warned=yes ;; 6371esac 6372 OTOOL=$ac_ct_OTOOL 6373 fi 6374else 6375 OTOOL="$ac_cv_prog_OTOOL" 6376fi 6377 6378 if test -n "$ac_tool_prefix"; then 6379 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6380set dummy ${ac_tool_prefix}otool64; ac_word=$2 6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6382$as_echo_n "checking for $ac_word... " >&6; } 6383if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6384 $as_echo_n "(cached) " >&6 6385else 6386 if test -n "$OTOOL64"; then 6387 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6388else 6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6390for as_dir in $PATH 6391do 6392 IFS=$as_save_IFS 6393 test -z "$as_dir" && as_dir=. 6394 for ac_exec_ext in '' $ac_executable_extensions; do 6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6396 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6398 break 2 6399 fi 6400done 6401 done 6402IFS=$as_save_IFS 6403 6404fi 6405fi 6406OTOOL64=$ac_cv_prog_OTOOL64 6407if test -n "$OTOOL64"; then 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6409$as_echo "$OTOOL64" >&6; } 6410else 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6412$as_echo "no" >&6; } 6413fi 6414 6415 6416fi 6417if test -z "$ac_cv_prog_OTOOL64"; then 6418 ac_ct_OTOOL64=$OTOOL64 6419 # Extract the first word of "otool64", so it can be a program name with args. 6420set dummy otool64; ac_word=$2 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6422$as_echo_n "checking for $ac_word... " >&6; } 6423if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 if test -n "$ac_ct_OTOOL64"; then 6427 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6428else 6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430for as_dir in $PATH 6431do 6432 IFS=$as_save_IFS 6433 test -z "$as_dir" && as_dir=. 6434 for ac_exec_ext in '' $ac_executable_extensions; do 6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6436 ac_cv_prog_ac_ct_OTOOL64="otool64" 6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6438 break 2 6439 fi 6440done 6441 done 6442IFS=$as_save_IFS 6443 6444fi 6445fi 6446ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6447if test -n "$ac_ct_OTOOL64"; then 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6449$as_echo "$ac_ct_OTOOL64" >&6; } 6450else 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6452$as_echo "no" >&6; } 6453fi 6454 6455 if test "x$ac_ct_OTOOL64" = x; then 6456 OTOOL64=":" 6457 else 6458 case $cross_compiling:$ac_tool_warned in 6459yes:) 6460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6462ac_tool_warned=yes ;; 6463esac 6464 OTOOL64=$ac_ct_OTOOL64 6465 fi 6466else 6467 OTOOL64="$ac_cv_prog_OTOOL64" 6468fi 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6497$as_echo_n "checking for -single_module linker flag... " >&6; } 6498if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6499 $as_echo_n "(cached) " >&6 6500else 6501 lt_cv_apple_cc_single_mod=no 6502 if test -z "${LT_MULTI_MODULE}"; then 6503 # By default we will add the -single_module flag. You can override 6504 # by either setting the environment variable LT_MULTI_MODULE 6505 # non-empty at configure time, or by adding -multi_module to the 6506 # link flags. 6507 rm -rf libconftest.dylib* 6508 echo "int foo(void){return 1;}" > conftest.c 6509 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6510-dynamiclib -Wl,-single_module conftest.c" >&5 6511 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6512 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6513 _lt_result=$? 6514 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6515 lt_cv_apple_cc_single_mod=yes 6516 else 6517 cat conftest.err >&5 6518 fi 6519 rm -rf libconftest.dylib* 6520 rm -f conftest.* 6521 fi 6522fi 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6524$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6526$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6527if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6528 $as_echo_n "(cached) " >&6 6529else 6530 lt_cv_ld_exported_symbols_list=no 6531 save_LDFLAGS=$LDFLAGS 6532 echo "_main" > conftest.sym 6533 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6534 if test x$gcc_no_link = xyes; then 6535 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6536fi 6537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6538/* end confdefs.h. */ 6539 6540int 6541main () 6542{ 6543 6544 ; 6545 return 0; 6546} 6547_ACEOF 6548if ac_fn_c_try_link "$LINENO"; then : 6549 lt_cv_ld_exported_symbols_list=yes 6550else 6551 lt_cv_ld_exported_symbols_list=no 6552fi 6553rm -f core conftest.err conftest.$ac_objext \ 6554 conftest$ac_exeext conftest.$ac_ext 6555 LDFLAGS="$save_LDFLAGS" 6556 6557fi 6558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6559$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6561$as_echo_n "checking for -force_load linker flag... " >&6; } 6562if test "${lt_cv_ld_force_load+set}" = set; then : 6563 $as_echo_n "(cached) " >&6 6564else 6565 lt_cv_ld_force_load=no 6566 cat > conftest.c << _LT_EOF 6567int forced_loaded() { return 2;} 6568_LT_EOF 6569 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6570 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6571 echo "$AR cru libconftest.a conftest.o" >&5 6572 $AR cru libconftest.a conftest.o 2>&5 6573 cat > conftest.c << _LT_EOF 6574int main() { return 0;} 6575_LT_EOF 6576 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6577 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6578 _lt_result=$? 6579 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 6580 lt_cv_ld_force_load=yes 6581 else 6582 cat conftest.err >&5 6583 fi 6584 rm -f conftest.err libconftest.a conftest conftest.c 6585 rm -rf conftest.dSYM 6586 6587fi 6588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6589$as_echo "$lt_cv_ld_force_load" >&6; } 6590 case $host_os in 6591 rhapsody* | darwin1.[012]) 6592 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6593 darwin1.*) 6594 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6595 darwin*) # darwin 5.x on 6596 # if running on 10.5 or later, the deployment target defaults 6597 # to the OS version, if on x86, and 10.4, the deployment 6598 # target defaults to 10.4. Don't you love it? 6599 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6600 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6601 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6602 10.[012][,.]*) 6603 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6604 10.*) 6605 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6606 esac 6607 ;; 6608 esac 6609 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6610 _lt_dar_single_mod='$single_module' 6611 fi 6612 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6613 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6614 else 6615 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6616 fi 6617 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6618 _lt_dsymutil='~$DSYMUTIL $lib || :' 6619 else 6620 _lt_dsymutil= 6621 fi 6622 ;; 6623 esac 6624 6625ac_ext=c 6626ac_cpp='$CPP $CPPFLAGS' 6627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6629ac_compiler_gnu=$ac_cv_c_compiler_gnu 6630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6631$as_echo_n "checking how to run the C preprocessor... " >&6; } 6632# On Suns, sometimes $CPP names a directory. 6633if test -n "$CPP" && test -d "$CPP"; then 6634 CPP= 6635fi 6636if test -z "$CPP"; then 6637 if test "${ac_cv_prog_CPP+set}" = set; then : 6638 $as_echo_n "(cached) " >&6 6639else 6640 # Double quotes because CPP needs to be expanded 6641 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6642 do 6643 ac_preproc_ok=false 6644for ac_c_preproc_warn_flag in '' yes 6645do 6646 # Use a header file that comes with gcc, so configuring glibc 6647 # with a fresh cross-compiler works. 6648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6649 # <limits.h> exists even on freestanding compilers. 6650 # On the NeXT, cc -E runs the code through the compiler's parser, 6651 # not just through cpp. "Syntax error" is here to catch this case. 6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6653/* end confdefs.h. */ 6654#ifdef __STDC__ 6655# include <limits.h> 6656#else 6657# include <assert.h> 6658#endif 6659 Syntax error 6660_ACEOF 6661if ac_fn_c_try_cpp "$LINENO"; then : 6662 6663else 6664 # Broken: fails on valid input. 6665continue 6666fi 6667rm -f conftest.err conftest.$ac_ext 6668 6669 # OK, works on sane cases. Now check whether nonexistent headers 6670 # can be detected and how. 6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672/* end confdefs.h. */ 6673#include <ac_nonexistent.h> 6674_ACEOF 6675if ac_fn_c_try_cpp "$LINENO"; then : 6676 # Broken: success on invalid input. 6677continue 6678else 6679 # Passes both tests. 6680ac_preproc_ok=: 6681break 6682fi 6683rm -f conftest.err conftest.$ac_ext 6684 6685done 6686# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6687rm -f conftest.err conftest.$ac_ext 6688if $ac_preproc_ok; then : 6689 break 6690fi 6691 6692 done 6693 ac_cv_prog_CPP=$CPP 6694 6695fi 6696 CPP=$ac_cv_prog_CPP 6697else 6698 ac_cv_prog_CPP=$CPP 6699fi 6700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6701$as_echo "$CPP" >&6; } 6702ac_preproc_ok=false 6703for ac_c_preproc_warn_flag in '' yes 6704do 6705 # Use a header file that comes with gcc, so configuring glibc 6706 # with a fresh cross-compiler works. 6707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6708 # <limits.h> exists even on freestanding compilers. 6709 # On the NeXT, cc -E runs the code through the compiler's parser, 6710 # not just through cpp. "Syntax error" is here to catch this case. 6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6712/* end confdefs.h. */ 6713#ifdef __STDC__ 6714# include <limits.h> 6715#else 6716# include <assert.h> 6717#endif 6718 Syntax error 6719_ACEOF 6720if ac_fn_c_try_cpp "$LINENO"; then : 6721 6722else 6723 # Broken: fails on valid input. 6724continue 6725fi 6726rm -f conftest.err conftest.$ac_ext 6727 6728 # OK, works on sane cases. Now check whether nonexistent headers 6729 # can be detected and how. 6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6731/* end confdefs.h. */ 6732#include <ac_nonexistent.h> 6733_ACEOF 6734if ac_fn_c_try_cpp "$LINENO"; then : 6735 # Broken: success on invalid input. 6736continue 6737else 6738 # Passes both tests. 6739ac_preproc_ok=: 6740break 6741fi 6742rm -f conftest.err conftest.$ac_ext 6743 6744done 6745# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6746rm -f conftest.err conftest.$ac_ext 6747if $ac_preproc_ok; then : 6748 6749else 6750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6752as_fn_error "C preprocessor \"$CPP\" fails sanity check 6753See \`config.log' for more details." "$LINENO" 5; } 6754fi 6755 6756ac_ext=c 6757ac_cpp='$CPP $CPPFLAGS' 6758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6760ac_compiler_gnu=$ac_cv_c_compiler_gnu 6761 6762 6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6764$as_echo_n "checking for ANSI C header files... " >&6; } 6765if test "${ac_cv_header_stdc+set}" = set; then : 6766 $as_echo_n "(cached) " >&6 6767else 6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6769/* end confdefs.h. */ 6770#include <stdlib.h> 6771#include <stdarg.h> 6772#include <string.h> 6773#include <float.h> 6774 6775int 6776main () 6777{ 6778 6779 ; 6780 return 0; 6781} 6782_ACEOF 6783if ac_fn_c_try_compile "$LINENO"; then : 6784 ac_cv_header_stdc=yes 6785else 6786 ac_cv_header_stdc=no 6787fi 6788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6789 6790if test $ac_cv_header_stdc = yes; then 6791 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6793/* end confdefs.h. */ 6794#include <string.h> 6795 6796_ACEOF 6797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6798 $EGREP "memchr" >/dev/null 2>&1; then : 6799 6800else 6801 ac_cv_header_stdc=no 6802fi 6803rm -f conftest* 6804 6805fi 6806 6807if test $ac_cv_header_stdc = yes; then 6808 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6810/* end confdefs.h. */ 6811#include <stdlib.h> 6812 6813_ACEOF 6814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6815 $EGREP "free" >/dev/null 2>&1; then : 6816 6817else 6818 ac_cv_header_stdc=no 6819fi 6820rm -f conftest* 6821 6822fi 6823 6824if test $ac_cv_header_stdc = yes; then 6825 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6826 if test "$cross_compiling" = yes; then : 6827 : 6828else 6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6830/* end confdefs.h. */ 6831#include <ctype.h> 6832#include <stdlib.h> 6833#if ((' ' & 0x0FF) == 0x020) 6834# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6835# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6836#else 6837# define ISLOWER(c) \ 6838 (('a' <= (c) && (c) <= 'i') \ 6839 || ('j' <= (c) && (c) <= 'r') \ 6840 || ('s' <= (c) && (c) <= 'z')) 6841# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6842#endif 6843 6844#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6845int 6846main () 6847{ 6848 int i; 6849 for (i = 0; i < 256; i++) 6850 if (XOR (islower (i), ISLOWER (i)) 6851 || toupper (i) != TOUPPER (i)) 6852 return 2; 6853 return 0; 6854} 6855_ACEOF 6856if ac_fn_c_try_run "$LINENO"; then : 6857 6858else 6859 ac_cv_header_stdc=no 6860fi 6861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6862 conftest.$ac_objext conftest.beam conftest.$ac_ext 6863fi 6864 6865fi 6866fi 6867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6868$as_echo "$ac_cv_header_stdc" >&6; } 6869if test $ac_cv_header_stdc = yes; then 6870 6871$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6872 6873fi 6874 6875# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6876for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6877 inttypes.h stdint.h unistd.h 6878do : 6879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6880ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6881" 6882eval as_val=\$$as_ac_Header 6883 if test "x$as_val" = x""yes; then : 6884 cat >>confdefs.h <<_ACEOF 6885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6886_ACEOF 6887 6888fi 6889 6890done 6891 6892 6893for ac_header in dlfcn.h 6894do : 6895 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6896" 6897if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6898 cat >>confdefs.h <<_ACEOF 6899#define HAVE_DLFCN_H 1 6900_ACEOF 6901 6902fi 6903 6904done 6905 6906 6907 6908 6909 6910# Set options 6911 6912 6913 6914 enable_dlopen=no 6915 6916 6917 enable_win32_dll=no 6918 6919 6920 # Check whether --enable-shared was given. 6921if test "${enable_shared+set}" = set; then : 6922 enableval=$enable_shared; p=${PACKAGE-default} 6923 case $enableval in 6924 yes) enable_shared=yes ;; 6925 no) enable_shared=no ;; 6926 *) 6927 enable_shared=no 6928 # Look at the argument we got. We use all the common list separators. 6929 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6930 for pkg in $enableval; do 6931 IFS="$lt_save_ifs" 6932 if test "X$pkg" = "X$p"; then 6933 enable_shared=yes 6934 fi 6935 done 6936 IFS="$lt_save_ifs" 6937 ;; 6938 esac 6939else 6940 enable_shared=yes 6941fi 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 # Check whether --enable-static was given. 6952if test "${enable_static+set}" = set; then : 6953 enableval=$enable_static; p=${PACKAGE-default} 6954 case $enableval in 6955 yes) enable_static=yes ;; 6956 no) enable_static=no ;; 6957 *) 6958 enable_static=no 6959 # Look at the argument we got. We use all the common list separators. 6960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6961 for pkg in $enableval; do 6962 IFS="$lt_save_ifs" 6963 if test "X$pkg" = "X$p"; then 6964 enable_static=yes 6965 fi 6966 done 6967 IFS="$lt_save_ifs" 6968 ;; 6969 esac 6970else 6971 enable_static=yes 6972fi 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983# Check whether --with-pic was given. 6984if test "${with_pic+set}" = set; then : 6985 withval=$with_pic; pic_mode="$withval" 6986else 6987 pic_mode=default 6988fi 6989 6990 6991test -z "$pic_mode" && pic_mode=default 6992 6993 6994 6995 6996 6997 6998 6999 # Check whether --enable-fast-install was given. 7000if test "${enable_fast_install+set}" = set; then : 7001 enableval=$enable_fast_install; p=${PACKAGE-default} 7002 case $enableval in 7003 yes) enable_fast_install=yes ;; 7004 no) enable_fast_install=no ;; 7005 *) 7006 enable_fast_install=no 7007 # Look at the argument we got. We use all the common list separators. 7008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7009 for pkg in $enableval; do 7010 IFS="$lt_save_ifs" 7011 if test "X$pkg" = "X$p"; then 7012 enable_fast_install=yes 7013 fi 7014 done 7015 IFS="$lt_save_ifs" 7016 ;; 7017 esac 7018else 7019 enable_fast_install=yes 7020fi 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032# This can be used to rebuild libtool when needed 7033LIBTOOL_DEPS="$ltmain" 7034 7035# Always use our own libtool. 7036LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063test -z "$LN_S" && LN_S="ln -s" 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078if test -n "${ZSH_VERSION+set}" ; then 7079 setopt NO_GLOB_SUBST 7080fi 7081 7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7083$as_echo_n "checking for objdir... " >&6; } 7084if test "${lt_cv_objdir+set}" = set; then : 7085 $as_echo_n "(cached) " >&6 7086else 7087 rm -f .libs 2>/dev/null 7088mkdir .libs 2>/dev/null 7089if test -d .libs; then 7090 lt_cv_objdir=.libs 7091else 7092 # MS-DOS does not allow filenames that begin with a dot. 7093 lt_cv_objdir=_libs 7094fi 7095rmdir .libs 2>/dev/null 7096fi 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7098$as_echo "$lt_cv_objdir" >&6; } 7099objdir=$lt_cv_objdir 7100 7101 7102 7103 7104 7105cat >>confdefs.h <<_ACEOF 7106#define LT_OBJDIR "$lt_cv_objdir/" 7107_ACEOF 7108 7109 7110 7111 7112case $host_os in 7113aix3*) 7114 # AIX sometimes has problems with the GCC collect2 program. For some 7115 # reason, if we set the COLLECT_NAMES environment variable, the problems 7116 # vanish in a puff of smoke. 7117 if test "X${COLLECT_NAMES+set}" != Xset; then 7118 COLLECT_NAMES= 7119 export COLLECT_NAMES 7120 fi 7121 ;; 7122esac 7123 7124# Global variables: 7125ofile=libtool 7126can_build_shared=yes 7127 7128# All known linkers require a `.a' archive for static linking (except MSVC, 7129# which needs '.lib'). 7130libext=a 7131 7132with_gnu_ld="$lt_cv_prog_gnu_ld" 7133 7134old_CC="$CC" 7135old_CFLAGS="$CFLAGS" 7136 7137# Set sane defaults for various variables 7138test -z "$CC" && CC=cc 7139test -z "$LTCC" && LTCC=$CC 7140test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7141test -z "$LD" && LD=ld 7142test -z "$ac_objext" && ac_objext=o 7143 7144for cc_temp in $compiler""; do 7145 case $cc_temp in 7146 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7147 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7148 \-*) ;; 7149 *) break;; 7150 esac 7151done 7152cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7153 7154 7155# Only perform the check for file, if the check method requires it 7156test -z "$MAGIC_CMD" && MAGIC_CMD=file 7157case $deplibs_check_method in 7158file_magic*) 7159 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7161$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7162if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7163 $as_echo_n "(cached) " >&6 7164else 7165 case $MAGIC_CMD in 7166[\\/*] | ?:[\\/]*) 7167 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7168 ;; 7169*) 7170 lt_save_MAGIC_CMD="$MAGIC_CMD" 7171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7172 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7173 for ac_dir in $ac_dummy; do 7174 IFS="$lt_save_ifs" 7175 test -z "$ac_dir" && ac_dir=. 7176 if test -f $ac_dir/${ac_tool_prefix}file; then 7177 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7178 if test -n "$file_magic_test_file"; then 7179 case $deplibs_check_method in 7180 "file_magic "*) 7181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7184 $EGREP "$file_magic_regex" > /dev/null; then 7185 : 7186 else 7187 cat <<_LT_EOF 1>&2 7188 7189*** Warning: the command libtool uses to detect shared libraries, 7190*** $file_magic_cmd, produces output that libtool cannot recognize. 7191*** The result is that libtool may fail to recognize shared libraries 7192*** as such. This will affect the creation of libtool libraries that 7193*** depend on shared libraries, but programs linked with such libtool 7194*** libraries will work regardless of this problem. Nevertheless, you 7195*** may want to report the problem to your system manager and/or to 7196*** bug-libtool@gnu.org 7197 7198_LT_EOF 7199 fi ;; 7200 esac 7201 fi 7202 break 7203 fi 7204 done 7205 IFS="$lt_save_ifs" 7206 MAGIC_CMD="$lt_save_MAGIC_CMD" 7207 ;; 7208esac 7209fi 7210 7211MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7212if test -n "$MAGIC_CMD"; then 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7214$as_echo "$MAGIC_CMD" >&6; } 7215else 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7217$as_echo "no" >&6; } 7218fi 7219 7220 7221 7222 7223 7224if test -z "$lt_cv_path_MAGIC_CMD"; then 7225 if test -n "$ac_tool_prefix"; then 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7227$as_echo_n "checking for file... " >&6; } 7228if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7229 $as_echo_n "(cached) " >&6 7230else 7231 case $MAGIC_CMD in 7232[\\/*] | ?:[\\/]*) 7233 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7234 ;; 7235*) 7236 lt_save_MAGIC_CMD="$MAGIC_CMD" 7237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7238 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7239 for ac_dir in $ac_dummy; do 7240 IFS="$lt_save_ifs" 7241 test -z "$ac_dir" && ac_dir=. 7242 if test -f $ac_dir/file; then 7243 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7244 if test -n "$file_magic_test_file"; then 7245 case $deplibs_check_method in 7246 "file_magic "*) 7247 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7249 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7250 $EGREP "$file_magic_regex" > /dev/null; then 7251 : 7252 else 7253 cat <<_LT_EOF 1>&2 7254 7255*** Warning: the command libtool uses to detect shared libraries, 7256*** $file_magic_cmd, produces output that libtool cannot recognize. 7257*** The result is that libtool may fail to recognize shared libraries 7258*** as such. This will affect the creation of libtool libraries that 7259*** depend on shared libraries, but programs linked with such libtool 7260*** libraries will work regardless of this problem. Nevertheless, you 7261*** may want to report the problem to your system manager and/or to 7262*** bug-libtool@gnu.org 7263 7264_LT_EOF 7265 fi ;; 7266 esac 7267 fi 7268 break 7269 fi 7270 done 7271 IFS="$lt_save_ifs" 7272 MAGIC_CMD="$lt_save_MAGIC_CMD" 7273 ;; 7274esac 7275fi 7276 7277MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7278if test -n "$MAGIC_CMD"; then 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7280$as_echo "$MAGIC_CMD" >&6; } 7281else 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7283$as_echo "no" >&6; } 7284fi 7285 7286 7287 else 7288 MAGIC_CMD=: 7289 fi 7290fi 7291 7292 fi 7293 ;; 7294esac 7295 7296# Use C for the default configuration in the libtool script 7297 7298lt_save_CC="$CC" 7299ac_ext=c 7300ac_cpp='$CPP $CPPFLAGS' 7301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7303ac_compiler_gnu=$ac_cv_c_compiler_gnu 7304 7305 7306# Source file extension for C test sources. 7307ac_ext=c 7308 7309# Object file extension for compiled C test sources. 7310objext=o 7311objext=$objext 7312 7313# Code to be used in simple compile tests 7314lt_simple_compile_test_code="int some_variable = 0;" 7315 7316# Code to be used in simple link tests 7317lt_simple_link_test_code='int main(){return(0);}' 7318 7319 7320 7321 7322 7323 7324 7325# If no C compiler was specified, use CC. 7326LTCC=${LTCC-"$CC"} 7327 7328# If no C compiler flags were specified, use CFLAGS. 7329LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7330 7331# Allow CC to be a program name with arguments. 7332compiler=$CC 7333 7334# Save the default compiler, since it gets overwritten when the other 7335# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7336compiler_DEFAULT=$CC 7337 7338# save warnings/boilerplate of simple test code 7339ac_outfile=conftest.$ac_objext 7340echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7341eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7342_lt_compiler_boilerplate=`cat conftest.err` 7343$RM conftest* 7344 7345ac_outfile=conftest.$ac_objext 7346echo "$lt_simple_link_test_code" >conftest.$ac_ext 7347eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7348_lt_linker_boilerplate=`cat conftest.err` 7349$RM -r conftest* 7350 7351 7352## CAVEAT EMPTOR: 7353## There is no encapsulation within the following macros, do not change 7354## the running order or otherwise move them around unless you know exactly 7355## what you are doing... 7356if test -n "$compiler"; then 7357 7358lt_prog_compiler_no_builtin_flag= 7359 7360if test "$GCC" = yes; then 7361 case $cc_basename in 7362 nvcc*) 7363 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7364 *) 7365 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7366 esac 7367 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7369$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7370if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7371 $as_echo_n "(cached) " >&6 7372else 7373 lt_cv_prog_compiler_rtti_exceptions=no 7374 ac_outfile=conftest.$ac_objext 7375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7376 lt_compiler_flag="-fno-rtti -fno-exceptions" 7377 # Insert the option either (1) after the last *FLAGS variable, or 7378 # (2) before a word containing "conftest.", or (3) at the end. 7379 # Note that $ac_compile itself does not contain backslashes and begins 7380 # with a dollar sign (not a hyphen), so the echo should work correctly. 7381 # The option is referenced via a variable to avoid confusing sed. 7382 lt_compile=`echo "$ac_compile" | $SED \ 7383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7385 -e 's:$: $lt_compiler_flag:'` 7386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7387 (eval "$lt_compile" 2>conftest.err) 7388 ac_status=$? 7389 cat conftest.err >&5 7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7391 if (exit $ac_status) && test -s "$ac_outfile"; then 7392 # The compiler can only warn and ignore the option if not recognized 7393 # So say no if there are warnings other than the usual output. 7394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7397 lt_cv_prog_compiler_rtti_exceptions=yes 7398 fi 7399 fi 7400 $RM conftest* 7401 7402fi 7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7404$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7405 7406if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7407 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7408else 7409 : 7410fi 7411 7412fi 7413 7414 7415 7416 7417 7418 7419 lt_prog_compiler_wl= 7420lt_prog_compiler_pic= 7421lt_prog_compiler_static= 7422 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7424$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7425 7426 if test "$GCC" = yes; then 7427 lt_prog_compiler_wl='-Wl,' 7428 lt_prog_compiler_static='-static' 7429 7430 case $host_os in 7431 aix*) 7432 # All AIX code is PIC. 7433 if test "$host_cpu" = ia64; then 7434 # AIX 5 now supports IA64 processor 7435 lt_prog_compiler_static='-Bstatic' 7436 fi 7437 lt_prog_compiler_pic='-fPIC' 7438 ;; 7439 7440 amigaos*) 7441 case $host_cpu in 7442 powerpc) 7443 # see comment about AmigaOS4 .so support 7444 lt_prog_compiler_pic='-fPIC' 7445 ;; 7446 m68k) 7447 # FIXME: we need at least 68020 code to build shared libraries, but 7448 # adding the `-m68020' flag to GCC prevents building anything better, 7449 # like `-m68040'. 7450 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7451 ;; 7452 esac 7453 ;; 7454 7455 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7456 # PIC is the default for these OSes. 7457 ;; 7458 7459 mingw* | cygwin* | pw32* | os2* | cegcc*) 7460 # This hack is so that the source file can tell whether it is being 7461 # built for inclusion in a dll (and should export symbols for example). 7462 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7463 # (--disable-auto-import) libraries 7464 lt_prog_compiler_pic='-DDLL_EXPORT' 7465 ;; 7466 7467 darwin* | rhapsody*) 7468 # PIC is the default on this platform 7469 # Common symbols not allowed in MH_DYLIB files 7470 lt_prog_compiler_pic='-fno-common' 7471 ;; 7472 7473 haiku*) 7474 # PIC is the default for Haiku. 7475 # The "-static" flag exists, but is broken. 7476 lt_prog_compiler_static= 7477 ;; 7478 7479 hpux*) 7480 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7481 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7482 # sets the default TLS model and affects inlining. 7483 case $host_cpu in 7484 hppa*64*) 7485 # +Z the default 7486 ;; 7487 *) 7488 lt_prog_compiler_pic='-fPIC' 7489 ;; 7490 esac 7491 ;; 7492 7493 interix[3-9]*) 7494 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7495 # Instead, we relocate shared libraries at runtime. 7496 ;; 7497 7498 msdosdjgpp*) 7499 # Just because we use GCC doesn't mean we suddenly get shared libraries 7500 # on systems that don't support them. 7501 lt_prog_compiler_can_build_shared=no 7502 enable_shared=no 7503 ;; 7504 7505 *nto* | *qnx*) 7506 # QNX uses GNU C++, but need to define -shared option too, otherwise 7507 # it will coredump. 7508 lt_prog_compiler_pic='-fPIC -shared' 7509 ;; 7510 7511 sysv4*MP*) 7512 if test -d /usr/nec; then 7513 lt_prog_compiler_pic=-Kconform_pic 7514 fi 7515 ;; 7516 7517 *) 7518 lt_prog_compiler_pic='-fPIC' 7519 ;; 7520 esac 7521 7522 case $cc_basename in 7523 nvcc*) # Cuda Compiler Driver 2.2 7524 lt_prog_compiler_wl='-Xlinker ' 7525 lt_prog_compiler_pic='-Xcompiler -fPIC' 7526 ;; 7527 esac 7528 else 7529 # PORTME Check for flag to pass linker flags through the system compiler. 7530 case $host_os in 7531 aix*) 7532 lt_prog_compiler_wl='-Wl,' 7533 if test "$host_cpu" = ia64; then 7534 # AIX 5 now supports IA64 processor 7535 lt_prog_compiler_static='-Bstatic' 7536 else 7537 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7538 fi 7539 ;; 7540 7541 mingw* | cygwin* | pw32* | os2* | cegcc*) 7542 # This hack is so that the source file can tell whether it is being 7543 # built for inclusion in a dll (and should export symbols for example). 7544 lt_prog_compiler_pic='-DDLL_EXPORT' 7545 ;; 7546 7547 hpux9* | hpux10* | hpux11*) 7548 lt_prog_compiler_wl='-Wl,' 7549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7550 # not for PA HP-UX. 7551 case $host_cpu in 7552 hppa*64*|ia64*) 7553 # +Z the default 7554 ;; 7555 *) 7556 lt_prog_compiler_pic='+Z' 7557 ;; 7558 esac 7559 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7560 lt_prog_compiler_static='${wl}-a ${wl}archive' 7561 ;; 7562 7563 irix5* | irix6* | nonstopux*) 7564 lt_prog_compiler_wl='-Wl,' 7565 # PIC (with -KPIC) is the default. 7566 lt_prog_compiler_static='-non_shared' 7567 ;; 7568 7569 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7570 case $cc_basename in 7571 # old Intel for x86_64 which still supported -KPIC. 7572 ecc*) 7573 lt_prog_compiler_wl='-Wl,' 7574 lt_prog_compiler_pic='-KPIC' 7575 lt_prog_compiler_static='-static' 7576 ;; 7577 # icc used to be incompatible with GCC. 7578 # ICC 10 doesn't accept -KPIC any more. 7579 icc* | ifort*) 7580 lt_prog_compiler_wl='-Wl,' 7581 lt_prog_compiler_pic='-fPIC' 7582 lt_prog_compiler_static='-static' 7583 ;; 7584 # Lahey Fortran 8.1. 7585 lf95*) 7586 lt_prog_compiler_wl='-Wl,' 7587 lt_prog_compiler_pic='--shared' 7588 lt_prog_compiler_static='--static' 7589 ;; 7590 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7591 # Portland Group compilers (*not* the Pentium gcc compiler, 7592 # which looks to be a dead project) 7593 lt_prog_compiler_wl='-Wl,' 7594 lt_prog_compiler_pic='-fpic' 7595 lt_prog_compiler_static='-Bstatic' 7596 ;; 7597 ccc*) 7598 lt_prog_compiler_wl='-Wl,' 7599 # All Alpha code is PIC. 7600 lt_prog_compiler_static='-non_shared' 7601 ;; 7602 xl* | bgxl* | bgf* | mpixl*) 7603 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7604 lt_prog_compiler_wl='-Wl,' 7605 lt_prog_compiler_pic='-qpic' 7606 lt_prog_compiler_static='-qstaticlink' 7607 ;; 7608 *) 7609 case `$CC -V 2>&1 | sed 5q` in 7610 *Sun\ F* | *Sun*Fortran*) 7611 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7612 lt_prog_compiler_pic='-KPIC' 7613 lt_prog_compiler_static='-Bstatic' 7614 lt_prog_compiler_wl='' 7615 ;; 7616 *Sun\ C*) 7617 # Sun C 5.9 7618 lt_prog_compiler_pic='-KPIC' 7619 lt_prog_compiler_static='-Bstatic' 7620 lt_prog_compiler_wl='-Wl,' 7621 ;; 7622 esac 7623 ;; 7624 esac 7625 ;; 7626 7627 newsos6) 7628 lt_prog_compiler_pic='-KPIC' 7629 lt_prog_compiler_static='-Bstatic' 7630 ;; 7631 7632 *nto* | *qnx*) 7633 # QNX uses GNU C++, but need to define -shared option too, otherwise 7634 # it will coredump. 7635 lt_prog_compiler_pic='-fPIC -shared' 7636 ;; 7637 7638 osf3* | osf4* | osf5*) 7639 lt_prog_compiler_wl='-Wl,' 7640 # All OSF/1 code is PIC. 7641 lt_prog_compiler_static='-non_shared' 7642 ;; 7643 7644 rdos*) 7645 lt_prog_compiler_static='-non_shared' 7646 ;; 7647 7648 solaris*) 7649 lt_prog_compiler_pic='-KPIC' 7650 lt_prog_compiler_static='-Bstatic' 7651 case $cc_basename in 7652 f77* | f90* | f95*) 7653 lt_prog_compiler_wl='-Qoption ld ';; 7654 *) 7655 lt_prog_compiler_wl='-Wl,';; 7656 esac 7657 ;; 7658 7659 sunos4*) 7660 lt_prog_compiler_wl='-Qoption ld ' 7661 lt_prog_compiler_pic='-PIC' 7662 lt_prog_compiler_static='-Bstatic' 7663 ;; 7664 7665 sysv4 | sysv4.2uw2* | sysv4.3*) 7666 lt_prog_compiler_wl='-Wl,' 7667 lt_prog_compiler_pic='-KPIC' 7668 lt_prog_compiler_static='-Bstatic' 7669 ;; 7670 7671 sysv4*MP*) 7672 if test -d /usr/nec ;then 7673 lt_prog_compiler_pic='-Kconform_pic' 7674 lt_prog_compiler_static='-Bstatic' 7675 fi 7676 ;; 7677 7678 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7679 lt_prog_compiler_wl='-Wl,' 7680 lt_prog_compiler_pic='-KPIC' 7681 lt_prog_compiler_static='-Bstatic' 7682 ;; 7683 7684 unicos*) 7685 lt_prog_compiler_wl='-Wl,' 7686 lt_prog_compiler_can_build_shared=no 7687 ;; 7688 7689 uts4*) 7690 lt_prog_compiler_pic='-pic' 7691 lt_prog_compiler_static='-Bstatic' 7692 ;; 7693 7694 *) 7695 lt_prog_compiler_can_build_shared=no 7696 ;; 7697 esac 7698 fi 7699 7700case $host_os in 7701 # For platforms which do not support PIC, -DPIC is meaningless: 7702 *djgpp*) 7703 lt_prog_compiler_pic= 7704 ;; 7705 *) 7706 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7707 ;; 7708esac 7709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7710$as_echo "$lt_prog_compiler_pic" >&6; } 7711 7712 7713 7714 7715 7716 7717# 7718# Check to make sure the PIC flag actually works. 7719# 7720if test -n "$lt_prog_compiler_pic"; then 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7722$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7723if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7724 $as_echo_n "(cached) " >&6 7725else 7726 lt_cv_prog_compiler_pic_works=no 7727 ac_outfile=conftest.$ac_objext 7728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7729 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7730 # Insert the option either (1) after the last *FLAGS variable, or 7731 # (2) before a word containing "conftest.", or (3) at the end. 7732 # Note that $ac_compile itself does not contain backslashes and begins 7733 # with a dollar sign (not a hyphen), so the echo should work correctly. 7734 # The option is referenced via a variable to avoid confusing sed. 7735 lt_compile=`echo "$ac_compile" | $SED \ 7736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7738 -e 's:$: $lt_compiler_flag:'` 7739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7740 (eval "$lt_compile" 2>conftest.err) 7741 ac_status=$? 7742 cat conftest.err >&5 7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7744 if (exit $ac_status) && test -s "$ac_outfile"; then 7745 # The compiler can only warn and ignore the option if not recognized 7746 # So say no if there are warnings other than the usual output. 7747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7750 lt_cv_prog_compiler_pic_works=yes 7751 fi 7752 fi 7753 $RM conftest* 7754 7755fi 7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7757$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7758 7759if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7760 case $lt_prog_compiler_pic in 7761 "" | " "*) ;; 7762 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7763 esac 7764else 7765 lt_prog_compiler_pic= 7766 lt_prog_compiler_can_build_shared=no 7767fi 7768 7769fi 7770 7771 7772 7773 7774 7775 7776# 7777# Check to make sure the static flag actually works. 7778# 7779wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7781$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7782if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7783 $as_echo_n "(cached) " >&6 7784else 7785 lt_cv_prog_compiler_static_works=no 7786 save_LDFLAGS="$LDFLAGS" 7787 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7788 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7789 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7790 # The linker can only warn and ignore the option if not recognized 7791 # So say no if there are warnings 7792 if test -s conftest.err; then 7793 # Append any errors to the config.log. 7794 cat conftest.err 1>&5 7795 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 7796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7797 if diff conftest.exp conftest.er2 >/dev/null; then 7798 lt_cv_prog_compiler_static_works=yes 7799 fi 7800 else 7801 lt_cv_prog_compiler_static_works=yes 7802 fi 7803 fi 7804 $RM -r conftest* 7805 LDFLAGS="$save_LDFLAGS" 7806 7807fi 7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7809$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7810 7811if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7812 : 7813else 7814 lt_prog_compiler_static= 7815fi 7816 7817 7818 7819 7820 7821 7822 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7824$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7825if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7826 $as_echo_n "(cached) " >&6 7827else 7828 lt_cv_prog_compiler_c_o=no 7829 $RM -r conftest 2>/dev/null 7830 mkdir conftest 7831 cd conftest 7832 mkdir out 7833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7834 7835 lt_compiler_flag="-o out/conftest2.$ac_objext" 7836 # Insert the option either (1) after the last *FLAGS variable, or 7837 # (2) before a word containing "conftest.", or (3) at the end. 7838 # Note that $ac_compile itself does not contain backslashes and begins 7839 # with a dollar sign (not a hyphen), so the echo should work correctly. 7840 lt_compile=`echo "$ac_compile" | $SED \ 7841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7843 -e 's:$: $lt_compiler_flag:'` 7844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7845 (eval "$lt_compile" 2>out/conftest.err) 7846 ac_status=$? 7847 cat out/conftest.err >&5 7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7849 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7850 then 7851 # The compiler can only warn and ignore the option if not recognized 7852 # So say no if there are warnings 7853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 7854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7856 lt_cv_prog_compiler_c_o=yes 7857 fi 7858 fi 7859 chmod u+w . 2>&5 7860 $RM conftest* 7861 # SGI C++ compiler will create directory out/ii_files/ for 7862 # template instantiation 7863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7864 $RM out/* && rmdir out 7865 cd .. 7866 $RM -r conftest 7867 $RM conftest* 7868 7869fi 7870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7871$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7872 7873 7874 7875 7876 7877 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7879$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7880if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7881 $as_echo_n "(cached) " >&6 7882else 7883 lt_cv_prog_compiler_c_o=no 7884 $RM -r conftest 2>/dev/null 7885 mkdir conftest 7886 cd conftest 7887 mkdir out 7888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7889 7890 lt_compiler_flag="-o out/conftest2.$ac_objext" 7891 # Insert the option either (1) after the last *FLAGS variable, or 7892 # (2) before a word containing "conftest.", or (3) at the end. 7893 # Note that $ac_compile itself does not contain backslashes and begins 7894 # with a dollar sign (not a hyphen), so the echo should work correctly. 7895 lt_compile=`echo "$ac_compile" | $SED \ 7896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7898 -e 's:$: $lt_compiler_flag:'` 7899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7900 (eval "$lt_compile" 2>out/conftest.err) 7901 ac_status=$? 7902 cat out/conftest.err >&5 7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7904 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7905 then 7906 # The compiler can only warn and ignore the option if not recognized 7907 # So say no if there are warnings 7908 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 7909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7911 lt_cv_prog_compiler_c_o=yes 7912 fi 7913 fi 7914 chmod u+w . 2>&5 7915 $RM conftest* 7916 # SGI C++ compiler will create directory out/ii_files/ for 7917 # template instantiation 7918 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7919 $RM out/* && rmdir out 7920 cd .. 7921 $RM -r conftest 7922 $RM conftest* 7923 7924fi 7925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7926$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7927 7928 7929 7930 7931hard_links="nottested" 7932if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7933 # do not overwrite the value of need_locks provided by the user 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7935$as_echo_n "checking if we can lock with hard links... " >&6; } 7936 hard_links=yes 7937 $RM conftest* 7938 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7939 touch conftest.a 7940 ln conftest.a conftest.b 2>&5 || hard_links=no 7941 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7943$as_echo "$hard_links" >&6; } 7944 if test "$hard_links" = no; then 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7946$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7947 need_locks=warn 7948 fi 7949else 7950 need_locks=no 7951fi 7952 7953 7954 7955 7956 7957 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7959$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7960 7961 runpath_var= 7962 allow_undefined_flag= 7963 always_export_symbols=no 7964 archive_cmds= 7965 archive_expsym_cmds= 7966 compiler_needs_object=no 7967 enable_shared_with_static_runtimes=no 7968 export_dynamic_flag_spec= 7969 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7970 hardcode_automatic=no 7971 hardcode_direct=no 7972 hardcode_direct_absolute=no 7973 hardcode_libdir_flag_spec= 7974 hardcode_libdir_flag_spec_ld= 7975 hardcode_libdir_separator= 7976 hardcode_minus_L=no 7977 hardcode_shlibpath_var=unsupported 7978 inherit_rpath=no 7979 link_all_deplibs=unknown 7980 module_cmds= 7981 module_expsym_cmds= 7982 old_archive_from_new_cmds= 7983 old_archive_from_expsyms_cmds= 7984 thread_safe_flag_spec= 7985 whole_archive_flag_spec= 7986 # include_expsyms should be a list of space-separated symbols to be *always* 7987 # included in the symbol list 7988 include_expsyms= 7989 # exclude_expsyms can be an extended regexp of symbols to exclude 7990 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7991 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7992 # as well as any symbol that contains `d'. 7993 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7994 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7995 # platforms (ab)use it in PIC code, but their linkers get confused if 7996 # the symbol is explicitly referenced. Since portable code cannot 7997 # rely on this symbol name, it's probably fine to never include it in 7998 # preloaded symbol tables. 7999 # Exclude shared library initialization/finalization symbols. 8000 extract_expsyms_cmds= 8001 8002 case $host_os in 8003 cygwin* | mingw* | pw32* | cegcc*) 8004 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8005 # When not using gcc, we currently assume that we are using 8006 # Microsoft Visual C++. 8007 if test "$GCC" != yes; then 8008 with_gnu_ld=no 8009 fi 8010 ;; 8011 interix*) 8012 # we just hope/assume this is gcc and not c89 (= MSVC++) 8013 with_gnu_ld=yes 8014 ;; 8015 openbsd*) 8016 with_gnu_ld=no 8017 ;; 8018 esac 8019 8020 ld_shlibs=yes 8021 8022 # On some targets, GNU ld is compatible enough with the native linker 8023 # that we're better off using the native interface for both. 8024 lt_use_gnu_ld_interface=no 8025 if test "$with_gnu_ld" = yes; then 8026 case $host_os in 8027 aix*) 8028 # The AIX port of GNU ld has always aspired to compatibility 8029 # with the native linker. However, as the warning in the GNU ld 8030 # block says, versions before 2.19.5* couldn't really create working 8031 # shared libraries, regardless of the interface used. 8032 case `$LD -v 2>&1` in 8033 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8034 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8035 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8036 *) 8037 lt_use_gnu_ld_interface=yes 8038 ;; 8039 esac 8040 ;; 8041 *) 8042 lt_use_gnu_ld_interface=yes 8043 ;; 8044 esac 8045 fi 8046 8047 if test "$lt_use_gnu_ld_interface" = yes; then 8048 # If archive_cmds runs LD, not CC, wlarc should be empty 8049 wlarc='${wl}' 8050 8051 # Set some defaults for GNU ld with shared library support. These 8052 # are reset later if shared libraries are not supported. Putting them 8053 # here allows them to be overridden if necessary. 8054 runpath_var=LD_RUN_PATH 8055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8056 export_dynamic_flag_spec='${wl}--export-dynamic' 8057 # ancient GNU ld didn't support --whole-archive et. al. 8058 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8059 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8060 else 8061 whole_archive_flag_spec= 8062 fi 8063 supports_anon_versioning=no 8064 case `$LD -v 2>&1` in 8065 *GNU\ gold*) supports_anon_versioning=yes ;; 8066 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8067 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8068 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8069 *\ 2.11.*) ;; # other 2.11 versions 8070 *) supports_anon_versioning=yes ;; 8071 esac 8072 8073 # See if GNU ld supports shared libraries. 8074 case $host_os in 8075 aix[3-9]*) 8076 # On AIX/PPC, the GNU linker is very broken 8077 if test "$host_cpu" != ia64; then 8078 ld_shlibs=no 8079 cat <<_LT_EOF 1>&2 8080 8081*** Warning: the GNU linker, at least up to release 2.19, is reported 8082*** to be unable to reliably create shared libraries on AIX. 8083*** Therefore, libtool is disabling shared libraries support. If you 8084*** really care for shared libraries, you may want to install binutils 8085*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8086*** You will then need to restart the configuration process. 8087 8088_LT_EOF 8089 fi 8090 ;; 8091 8092 amigaos*) 8093 case $host_cpu in 8094 powerpc) 8095 # see comment about AmigaOS4 .so support 8096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8097 archive_expsym_cmds='' 8098 ;; 8099 m68k) 8100 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)' 8101 hardcode_libdir_flag_spec='-L$libdir' 8102 hardcode_minus_L=yes 8103 ;; 8104 esac 8105 ;; 8106 8107 beos*) 8108 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8109 allow_undefined_flag=unsupported 8110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8111 # support --undefined. This deserves some investigation. FIXME 8112 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8113 else 8114 ld_shlibs=no 8115 fi 8116 ;; 8117 8118 cygwin* | mingw* | pw32* | cegcc*) 8119 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8120 # as there is no search path for DLLs. 8121 hardcode_libdir_flag_spec='-L$libdir' 8122 export_dynamic_flag_spec='${wl}--export-all-symbols' 8123 allow_undefined_flag=unsupported 8124 always_export_symbols=no 8125 enable_shared_with_static_runtimes=yes 8126 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8127 8128 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8130 # If the export-symbols file already is a .def file (1st line 8131 # is EXPORTS), use it as is; otherwise, prepend... 8132 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8133 cp $export_symbols $output_objdir/$soname.def; 8134 else 8135 echo EXPORTS > $output_objdir/$soname.def; 8136 cat $export_symbols >> $output_objdir/$soname.def; 8137 fi~ 8138 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8139 else 8140 ld_shlibs=no 8141 fi 8142 ;; 8143 8144 haiku*) 8145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8146 link_all_deplibs=yes 8147 ;; 8148 8149 interix[3-9]*) 8150 hardcode_direct=no 8151 hardcode_shlibpath_var=no 8152 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8153 export_dynamic_flag_spec='${wl}-E' 8154 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8155 # Instead, shared libraries are loaded at an image base (0x10000000 by 8156 # default) and relocated if they conflict, which is a slow very memory 8157 # consuming and fragmenting process. To avoid this, we pick a random, 8158 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8159 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8160 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8161 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' 8162 ;; 8163 8164 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8165 tmp_diet=no 8166 if test "$host_os" = linux-dietlibc; then 8167 case $cc_basename in 8168 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8169 esac 8170 fi 8171 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8172 && test "$tmp_diet" = no 8173 then 8174 tmp_addflag=' $pic_flag' 8175 tmp_sharedflag='-shared' 8176 case $cc_basename,$host_cpu in 8177 pgcc*) # Portland Group C compiler 8178 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' 8179 tmp_addflag=' $pic_flag' 8180 ;; 8181 pgf77* | pgf90* | pgf95* | pgfortran*) 8182 # Portland Group f77 and f90 compilers 8183 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' 8184 tmp_addflag=' $pic_flag -Mnomain' ;; 8185 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8186 tmp_addflag=' -i_dynamic' ;; 8187 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8188 tmp_addflag=' -i_dynamic -nofor_main' ;; 8189 ifc* | ifort*) # Intel Fortran compiler 8190 tmp_addflag=' -nofor_main' ;; 8191 lf95*) # Lahey Fortran 8.1 8192 whole_archive_flag_spec= 8193 tmp_sharedflag='--shared' ;; 8194 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8195 tmp_sharedflag='-qmkshrobj' 8196 tmp_addflag= ;; 8197 nvcc*) # Cuda Compiler Driver 2.2 8198 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' 8199 compiler_needs_object=yes 8200 ;; 8201 esac 8202 case `$CC -V 2>&1 | sed 5q` in 8203 *Sun\ C*) # Sun C 5.9 8204 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' 8205 compiler_needs_object=yes 8206 tmp_sharedflag='-G' ;; 8207 *Sun\ F*) # Sun Fortran 8.3 8208 tmp_sharedflag='-G' ;; 8209 esac 8210 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8211 8212 if test "x$supports_anon_versioning" = xyes; then 8213 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8214 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8215 echo "local: *; };" >> $output_objdir/$libname.ver~ 8216 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8217 fi 8218 8219 case $cc_basename in 8220 xlf* | bgf* | bgxlf* | mpixlf*) 8221 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8222 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8223 hardcode_libdir_flag_spec= 8224 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8225 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8226 if test "x$supports_anon_versioning" = xyes; then 8227 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8229 echo "local: *; };" >> $output_objdir/$libname.ver~ 8230 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8231 fi 8232 ;; 8233 esac 8234 else 8235 ld_shlibs=no 8236 fi 8237 ;; 8238 8239 netbsd*) 8240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8241 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8242 wlarc= 8243 else 8244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8245 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8246 fi 8247 ;; 8248 8249 solaris*) 8250 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8251 ld_shlibs=no 8252 cat <<_LT_EOF 1>&2 8253 8254*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8255*** create shared libraries on Solaris systems. Therefore, libtool 8256*** is disabling shared libraries support. We urge you to upgrade GNU 8257*** binutils to release 2.9.1 or newer. Another option is to modify 8258*** your PATH or compiler configuration so that the native linker is 8259*** used, and then restart. 8260 8261_LT_EOF 8262 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8265 else 8266 ld_shlibs=no 8267 fi 8268 ;; 8269 8270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8271 case `$LD -v 2>&1` in 8272 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8273 ld_shlibs=no 8274 cat <<_LT_EOF 1>&2 8275 8276*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8277*** reliably create shared libraries on SCO systems. Therefore, libtool 8278*** is disabling shared libraries support. We urge you to upgrade GNU 8279*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8280*** your PATH or compiler configuration so that the native linker is 8281*** used, and then restart. 8282 8283_LT_EOF 8284 ;; 8285 *) 8286 # For security reasons, it is highly recommended that you always 8287 # use absolute paths for naming shared libraries, and exclude the 8288 # DT_RUNPATH tag from executables and libraries. But doing so 8289 # requires that you compile everything twice, which is a pain. 8290 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8294 else 8295 ld_shlibs=no 8296 fi 8297 ;; 8298 esac 8299 ;; 8300 8301 sunos4*) 8302 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8303 wlarc= 8304 hardcode_direct=yes 8305 hardcode_shlibpath_var=no 8306 ;; 8307 8308 *) 8309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8312 else 8313 ld_shlibs=no 8314 fi 8315 ;; 8316 esac 8317 8318 if test "$ld_shlibs" = no; then 8319 runpath_var= 8320 hardcode_libdir_flag_spec= 8321 export_dynamic_flag_spec= 8322 whole_archive_flag_spec= 8323 fi 8324 else 8325 # PORTME fill in a description of your system's linker (not GNU ld) 8326 case $host_os in 8327 aix3*) 8328 allow_undefined_flag=unsupported 8329 always_export_symbols=yes 8330 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' 8331 # Note: this linker hardcodes the directories in LIBPATH if there 8332 # are no directories specified by -L. 8333 hardcode_minus_L=yes 8334 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8335 # Neither direct hardcoding nor static linking is supported with a 8336 # broken collect2. 8337 hardcode_direct=unsupported 8338 fi 8339 ;; 8340 8341 aix[4-9]*) 8342 if test "$host_cpu" = ia64; then 8343 # On IA64, the linker does run time linking by default, so we don't 8344 # have to do anything special. 8345 aix_use_runtimelinking=no 8346 exp_sym_flag='-Bexport' 8347 no_entry_flag="" 8348 else 8349 # If we're using GNU nm, then we don't want the "-C" option. 8350 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8351 # Also, AIX nm treats weak defined symbols like other global 8352 # defined symbols, whereas GNU nm marks them as "W". 8353 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8354 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' 8355 else 8356 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' 8357 fi 8358 aix_use_runtimelinking=no 8359 8360 # Test if we are trying to use run time linking or normal 8361 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8362 # need to do runtime linking. 8363 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8364 for ld_flag in $LDFLAGS; do 8365 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8366 aix_use_runtimelinking=yes 8367 break 8368 fi 8369 done 8370 ;; 8371 esac 8372 8373 exp_sym_flag='-bexport' 8374 no_entry_flag='-bnoentry' 8375 fi 8376 8377 # When large executables or shared objects are built, AIX ld can 8378 # have problems creating the table of contents. If linking a library 8379 # or program results in "error TOC overflow" add -mminimal-toc to 8380 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8381 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8382 8383 archive_cmds='' 8384 hardcode_direct=yes 8385 hardcode_direct_absolute=yes 8386 hardcode_libdir_separator=':' 8387 link_all_deplibs=yes 8388 file_list_spec='${wl}-f,' 8389 8390 if test "$GCC" = yes; then 8391 case $host_os in aix4.[012]|aix4.[012].*) 8392 # We only want to do this on AIX 4.2 and lower, the check 8393 # below for broken collect2 doesn't work under 4.3+ 8394 collect2name=`${CC} -print-prog-name=collect2` 8395 if test -f "$collect2name" && 8396 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8397 then 8398 # We have reworked collect2 8399 : 8400 else 8401 # We have old collect2 8402 hardcode_direct=unsupported 8403 # It fails to find uninstalled libraries when the uninstalled 8404 # path is not listed in the libpath. Setting hardcode_minus_L 8405 # to unsupported forces relinking 8406 hardcode_minus_L=yes 8407 hardcode_libdir_flag_spec='-L$libdir' 8408 hardcode_libdir_separator= 8409 fi 8410 ;; 8411 esac 8412 shared_flag='-shared' 8413 if test "$aix_use_runtimelinking" = yes; then 8414 shared_flag="$shared_flag "'${wl}-G' 8415 fi 8416 else 8417 # not using gcc 8418 if test "$host_cpu" = ia64; then 8419 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8420 # chokes on -Wl,-G. The following line is correct: 8421 shared_flag='-G' 8422 else 8423 if test "$aix_use_runtimelinking" = yes; then 8424 shared_flag='${wl}-G' 8425 else 8426 shared_flag='${wl}-bM:SRE' 8427 fi 8428 fi 8429 fi 8430 8431 export_dynamic_flag_spec='${wl}-bexpall' 8432 # It seems that -bexpall does not export symbols beginning with 8433 # underscore (_), so it is better to generate a list of symbols to export. 8434 always_export_symbols=yes 8435 if test "$aix_use_runtimelinking" = yes; then 8436 # Warning - without using the other runtime loading flags (-brtl), 8437 # -berok will link without error, but may produce a broken library. 8438 allow_undefined_flag='-berok' 8439 # Determine the default libpath from the value encoded in an 8440 # empty executable. 8441 if test x$gcc_no_link = xyes; then 8442 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8443fi 8444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8445/* end confdefs.h. */ 8446 8447int 8448main () 8449{ 8450 8451 ; 8452 return 0; 8453} 8454_ACEOF 8455if ac_fn_c_try_link "$LINENO"; then : 8456 8457lt_aix_libpath_sed=' 8458 /Import File Strings/,/^$/ { 8459 /^0/ { 8460 s/^0 *\(.*\)$/\1/ 8461 p 8462 } 8463 }' 8464aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8465# Check for a 64-bit object if we didn't find anything. 8466if test -z "$aix_libpath"; then 8467 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8468fi 8469fi 8470rm -f core conftest.err conftest.$ac_objext \ 8471 conftest$ac_exeext conftest.$ac_ext 8472if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8473 8474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8475 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" 8476 else 8477 if test "$host_cpu" = ia64; then 8478 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8479 allow_undefined_flag="-z nodefs" 8480 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" 8481 else 8482 # Determine the default libpath from the value encoded in an 8483 # empty executable. 8484 if test x$gcc_no_link = xyes; then 8485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8486fi 8487cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8488/* end confdefs.h. */ 8489 8490int 8491main () 8492{ 8493 8494 ; 8495 return 0; 8496} 8497_ACEOF 8498if ac_fn_c_try_link "$LINENO"; then : 8499 8500lt_aix_libpath_sed=' 8501 /Import File Strings/,/^$/ { 8502 /^0/ { 8503 s/^0 *\(.*\)$/\1/ 8504 p 8505 } 8506 }' 8507aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8508# Check for a 64-bit object if we didn't find anything. 8509if test -z "$aix_libpath"; then 8510 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8511fi 8512fi 8513rm -f core conftest.err conftest.$ac_objext \ 8514 conftest$ac_exeext conftest.$ac_ext 8515if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8516 8517 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8518 # Warning - without using the other run time loading flags, 8519 # -berok will link without error, but may produce a broken library. 8520 no_undefined_flag=' ${wl}-bernotok' 8521 allow_undefined_flag=' ${wl}-berok' 8522 if test "$with_gnu_ld" = yes; then 8523 # We only use this code for GNU lds that support --whole-archive. 8524 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8525 else 8526 # Exported symbols can be pulled into shared objects from archives 8527 whole_archive_flag_spec='$convenience' 8528 fi 8529 archive_cmds_need_lc=yes 8530 # This is similar to how AIX traditionally builds its shared libraries. 8531 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' 8532 fi 8533 fi 8534 ;; 8535 8536 amigaos*) 8537 case $host_cpu in 8538 powerpc) 8539 # see comment about AmigaOS4 .so support 8540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8541 archive_expsym_cmds='' 8542 ;; 8543 m68k) 8544 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)' 8545 hardcode_libdir_flag_spec='-L$libdir' 8546 hardcode_minus_L=yes 8547 ;; 8548 esac 8549 ;; 8550 8551 bsdi[45]*) 8552 export_dynamic_flag_spec=-rdynamic 8553 ;; 8554 8555 cygwin* | mingw* | pw32* | cegcc*) 8556 # When not using gcc, we currently assume that we are using 8557 # Microsoft Visual C++. 8558 # hardcode_libdir_flag_spec is actually meaningless, as there is 8559 # no search path for DLLs. 8560 hardcode_libdir_flag_spec=' ' 8561 allow_undefined_flag=unsupported 8562 # Tell ltmain to make .lib files, not .a files. 8563 libext=lib 8564 # Tell ltmain to make .dll files, not .so files. 8565 shrext_cmds=".dll" 8566 # FIXME: Setting linknames here is a bad hack. 8567 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8568 # The linker will automatically build a .lib file if we build a DLL. 8569 old_archive_from_new_cmds='true' 8570 # FIXME: Should let the user specify the lib program. 8571 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8572 fix_srcfile_path='`cygpath -w "$srcfile"`' 8573 enable_shared_with_static_runtimes=yes 8574 ;; 8575 8576 darwin* | rhapsody*) 8577 8578 8579 archive_cmds_need_lc=no 8580 hardcode_direct=no 8581 hardcode_automatic=yes 8582 hardcode_shlibpath_var=unsupported 8583 if test "$lt_cv_ld_force_load" = "yes"; then 8584 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\"`' 8585 else 8586 whole_archive_flag_spec='' 8587 fi 8588 link_all_deplibs=yes 8589 allow_undefined_flag="$_lt_dar_allow_undefined" 8590 case $cc_basename in 8591 ifort*) _lt_dar_can_shared=yes ;; 8592 *) _lt_dar_can_shared=$GCC ;; 8593 esac 8594 if test "$_lt_dar_can_shared" = "yes"; then 8595 output_verbose_link_cmd=func_echo_all 8596 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8597 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8598 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}" 8599 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}" 8600 8601 else 8602 ld_shlibs=no 8603 fi 8604 8605 ;; 8606 8607 dgux*) 8608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8609 hardcode_libdir_flag_spec='-L$libdir' 8610 hardcode_shlibpath_var=no 8611 ;; 8612 8613 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8614 # support. Future versions do this automatically, but an explicit c++rt0.o 8615 # does not break anything, and helps significantly (at the cost of a little 8616 # extra space). 8617 freebsd2.2*) 8618 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8619 hardcode_libdir_flag_spec='-R$libdir' 8620 hardcode_direct=yes 8621 hardcode_shlibpath_var=no 8622 ;; 8623 8624 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8625 freebsd2.*) 8626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8627 hardcode_direct=yes 8628 hardcode_minus_L=yes 8629 hardcode_shlibpath_var=no 8630 ;; 8631 8632 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8633 freebsd* | dragonfly*) 8634 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8635 hardcode_libdir_flag_spec='-R$libdir' 8636 hardcode_direct=yes 8637 hardcode_shlibpath_var=no 8638 ;; 8639 8640 hpux9*) 8641 if test "$GCC" = yes; then 8642 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' 8643 else 8644 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' 8645 fi 8646 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8647 hardcode_libdir_separator=: 8648 hardcode_direct=yes 8649 8650 # hardcode_minus_L: Not really in the search PATH, 8651 # but as the default location of the library. 8652 hardcode_minus_L=yes 8653 export_dynamic_flag_spec='${wl}-E' 8654 ;; 8655 8656 hpux10*) 8657 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8658 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8659 else 8660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8661 fi 8662 if test "$with_gnu_ld" = no; then 8663 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8664 hardcode_libdir_flag_spec_ld='+b $libdir' 8665 hardcode_libdir_separator=: 8666 hardcode_direct=yes 8667 hardcode_direct_absolute=yes 8668 export_dynamic_flag_spec='${wl}-E' 8669 # hardcode_minus_L: Not really in the search PATH, 8670 # but as the default location of the library. 8671 hardcode_minus_L=yes 8672 fi 8673 ;; 8674 8675 hpux11*) 8676 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8677 case $host_cpu in 8678 hppa*64*) 8679 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8680 ;; 8681 ia64*) 8682 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8683 ;; 8684 *) 8685 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8686 ;; 8687 esac 8688 else 8689 case $host_cpu in 8690 hppa*64*) 8691 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8692 ;; 8693 ia64*) 8694 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8695 ;; 8696 *) 8697 8698 # Older versions of the 11.00 compiler do not understand -b yet 8699 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 8701$as_echo_n "checking if $CC understands -b... " >&6; } 8702if test "${lt_cv_prog_compiler__b+set}" = set; then : 8703 $as_echo_n "(cached) " >&6 8704else 8705 lt_cv_prog_compiler__b=no 8706 save_LDFLAGS="$LDFLAGS" 8707 LDFLAGS="$LDFLAGS -b" 8708 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8710 # The linker can only warn and ignore the option if not recognized 8711 # So say no if there are warnings 8712 if test -s conftest.err; then 8713 # Append any errors to the config.log. 8714 cat conftest.err 1>&5 8715 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8717 if diff conftest.exp conftest.er2 >/dev/null; then 8718 lt_cv_prog_compiler__b=yes 8719 fi 8720 else 8721 lt_cv_prog_compiler__b=yes 8722 fi 8723 fi 8724 $RM -r conftest* 8725 LDFLAGS="$save_LDFLAGS" 8726 8727fi 8728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 8729$as_echo "$lt_cv_prog_compiler__b" >&6; } 8730 8731if test x"$lt_cv_prog_compiler__b" = xyes; then 8732 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8733else 8734 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8735fi 8736 8737 ;; 8738 esac 8739 fi 8740 if test "$with_gnu_ld" = no; then 8741 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8742 hardcode_libdir_separator=: 8743 8744 case $host_cpu in 8745 hppa*64*|ia64*) 8746 hardcode_direct=no 8747 hardcode_shlibpath_var=no 8748 ;; 8749 *) 8750 hardcode_direct=yes 8751 hardcode_direct_absolute=yes 8752 export_dynamic_flag_spec='${wl}-E' 8753 8754 # hardcode_minus_L: Not really in the search PATH, 8755 # but as the default location of the library. 8756 hardcode_minus_L=yes 8757 ;; 8758 esac 8759 fi 8760 ;; 8761 8762 irix5* | irix6* | nonstopux*) 8763 if test "$GCC" = yes; then 8764 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' 8765 # Try to use the -exported_symbol ld option, if it does not 8766 # work, assume that -exports_file does not work either and 8767 # implicitly export all symbols. 8768 save_LDFLAGS="$LDFLAGS" 8769 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8770 if test x$gcc_no_link = xyes; then 8771 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8772fi 8773cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8774/* end confdefs.h. */ 8775int foo(void) {} 8776_ACEOF 8777if ac_fn_c_try_link "$LINENO"; then : 8778 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' 8779 8780fi 8781rm -f core conftest.err conftest.$ac_objext \ 8782 conftest$ac_exeext conftest.$ac_ext 8783 LDFLAGS="$save_LDFLAGS" 8784 else 8785 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' 8786 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' 8787 fi 8788 archive_cmds_need_lc='no' 8789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8790 hardcode_libdir_separator=: 8791 inherit_rpath=yes 8792 link_all_deplibs=yes 8793 ;; 8794 8795 netbsd*) 8796 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8798 else 8799 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8800 fi 8801 hardcode_libdir_flag_spec='-R$libdir' 8802 hardcode_direct=yes 8803 hardcode_shlibpath_var=no 8804 ;; 8805 8806 newsos6) 8807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8808 hardcode_direct=yes 8809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8810 hardcode_libdir_separator=: 8811 hardcode_shlibpath_var=no 8812 ;; 8813 8814 *nto* | *qnx*) 8815 ;; 8816 8817 openbsd*) 8818 if test -f /usr/libexec/ld.so; then 8819 hardcode_direct=yes 8820 hardcode_shlibpath_var=no 8821 hardcode_direct_absolute=yes 8822 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8823 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8824 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8825 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8826 export_dynamic_flag_spec='${wl}-E' 8827 else 8828 case $host_os in 8829 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8831 hardcode_libdir_flag_spec='-R$libdir' 8832 ;; 8833 *) 8834 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8835 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8836 ;; 8837 esac 8838 fi 8839 else 8840 ld_shlibs=no 8841 fi 8842 ;; 8843 8844 os2*) 8845 hardcode_libdir_flag_spec='-L$libdir' 8846 hardcode_minus_L=yes 8847 allow_undefined_flag=unsupported 8848 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' 8849 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8850 ;; 8851 8852 osf3*) 8853 if test "$GCC" = yes; then 8854 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8855 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' 8856 else 8857 allow_undefined_flag=' -expect_unresolved \*' 8858 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' 8859 fi 8860 archive_cmds_need_lc='no' 8861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8862 hardcode_libdir_separator=: 8863 ;; 8864 8865 osf4* | osf5*) # as osf3* with the addition of -msym flag 8866 if test "$GCC" = yes; then 8867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8868 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' 8869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8870 else 8871 allow_undefined_flag=' -expect_unresolved \*' 8872 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' 8873 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~ 8874 $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' 8875 8876 # Both c and cxx compiler support -rpath directly 8877 hardcode_libdir_flag_spec='-rpath $libdir' 8878 fi 8879 archive_cmds_need_lc='no' 8880 hardcode_libdir_separator=: 8881 ;; 8882 8883 solaris*) 8884 no_undefined_flag=' -z defs' 8885 if test "$GCC" = yes; then 8886 wlarc='${wl}' 8887 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8888 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8889 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8890 else 8891 case `$CC -V 2>&1` in 8892 *"Compilers 5.0"*) 8893 wlarc='' 8894 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8895 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8896 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8897 ;; 8898 *) 8899 wlarc='${wl}' 8900 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8902 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8903 ;; 8904 esac 8905 fi 8906 hardcode_libdir_flag_spec='-R$libdir' 8907 hardcode_shlibpath_var=no 8908 case $host_os in 8909 solaris2.[0-5] | solaris2.[0-5].*) ;; 8910 *) 8911 # The compiler driver will combine and reorder linker options, 8912 # but understands `-z linker_flag'. GCC discards it without `$wl', 8913 # but is careful enough not to reorder. 8914 # Supported since Solaris 2.6 (maybe 2.5.1?) 8915 if test "$GCC" = yes; then 8916 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8917 else 8918 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8919 fi 8920 ;; 8921 esac 8922 link_all_deplibs=yes 8923 ;; 8924 8925 sunos4*) 8926 if test "x$host_vendor" = xsequent; then 8927 # Use $CC to link under sequent, because it throws in some extra .o 8928 # files that make .init and .fini sections work. 8929 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8930 else 8931 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8932 fi 8933 hardcode_libdir_flag_spec='-L$libdir' 8934 hardcode_direct=yes 8935 hardcode_minus_L=yes 8936 hardcode_shlibpath_var=no 8937 ;; 8938 8939 sysv4) 8940 case $host_vendor in 8941 sni) 8942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8943 hardcode_direct=yes # is this really true??? 8944 ;; 8945 siemens) 8946 ## LD is ld it makes a PLAMLIB 8947 ## CC just makes a GrossModule. 8948 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8949 reload_cmds='$CC -r -o $output$reload_objs' 8950 hardcode_direct=no 8951 ;; 8952 motorola) 8953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8954 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8955 ;; 8956 esac 8957 runpath_var='LD_RUN_PATH' 8958 hardcode_shlibpath_var=no 8959 ;; 8960 8961 sysv4.3*) 8962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8963 hardcode_shlibpath_var=no 8964 export_dynamic_flag_spec='-Bexport' 8965 ;; 8966 8967 sysv4*MP*) 8968 if test -d /usr/nec; then 8969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8970 hardcode_shlibpath_var=no 8971 runpath_var=LD_RUN_PATH 8972 hardcode_runpath_var=yes 8973 ld_shlibs=yes 8974 fi 8975 ;; 8976 8977 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8978 no_undefined_flag='${wl}-z,text' 8979 archive_cmds_need_lc=no 8980 hardcode_shlibpath_var=no 8981 runpath_var='LD_RUN_PATH' 8982 8983 if test "$GCC" = yes; then 8984 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8985 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8986 else 8987 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8988 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8989 fi 8990 ;; 8991 8992 sysv5* | sco3.2v5* | sco5v6*) 8993 # Note: We can NOT use -z defs as we might desire, because we do not 8994 # link with -lc, and that would cause any symbols used from libc to 8995 # always be unresolved, which means just about no library would 8996 # ever link correctly. If we're not using GNU ld we use -z text 8997 # though, which does catch some bad symbols but isn't as heavy-handed 8998 # as -z defs. 8999 no_undefined_flag='${wl}-z,text' 9000 allow_undefined_flag='${wl}-z,nodefs' 9001 archive_cmds_need_lc=no 9002 hardcode_shlibpath_var=no 9003 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9004 hardcode_libdir_separator=':' 9005 link_all_deplibs=yes 9006 export_dynamic_flag_spec='${wl}-Bexport' 9007 runpath_var='LD_RUN_PATH' 9008 9009 if test "$GCC" = yes; then 9010 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9011 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9012 else 9013 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9014 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9015 fi 9016 ;; 9017 9018 uts4*) 9019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9020 hardcode_libdir_flag_spec='-L$libdir' 9021 hardcode_shlibpath_var=no 9022 ;; 9023 9024 *) 9025 ld_shlibs=no 9026 ;; 9027 esac 9028 9029 if test x$host_vendor = xsni; then 9030 case $host in 9031 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9032 export_dynamic_flag_spec='${wl}-Blargedynsym' 9033 ;; 9034 esac 9035 fi 9036 fi 9037 9038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9039$as_echo "$ld_shlibs" >&6; } 9040test "$ld_shlibs" = no && can_build_shared=no 9041 9042with_gnu_ld=$with_gnu_ld 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058# 9059# Do we need to explicitly link libc? 9060# 9061case "x$archive_cmds_need_lc" in 9062x|xyes) 9063 # Assume -lc should be added 9064 archive_cmds_need_lc=yes 9065 9066 if test "$enable_shared" = yes && test "$GCC" = yes; then 9067 case $archive_cmds in 9068 *'~'*) 9069 # FIXME: we may have to deal with multi-command sequences. 9070 ;; 9071 '$CC '*) 9072 # Test whether the compiler implicitly links with -lc since on some 9073 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9074 # to ld, don't add -lc before -lgcc. 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9076$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9077if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9078 $as_echo_n "(cached) " >&6 9079else 9080 $RM conftest* 9081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9082 9083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9084 (eval $ac_compile) 2>&5 9085 ac_status=$? 9086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9087 test $ac_status = 0; } 2>conftest.err; then 9088 soname=conftest 9089 lib=conftest 9090 libobjs=conftest.$ac_objext 9091 deplibs= 9092 wl=$lt_prog_compiler_wl 9093 pic_flag=$lt_prog_compiler_pic 9094 compiler_flags=-v 9095 linker_flags=-v 9096 verstring= 9097 output_objdir=. 9098 libname=conftest 9099 lt_save_allow_undefined_flag=$allow_undefined_flag 9100 allow_undefined_flag= 9101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9102 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9103 ac_status=$? 9104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9105 test $ac_status = 0; } 9106 then 9107 lt_cv_archive_cmds_need_lc=no 9108 else 9109 lt_cv_archive_cmds_need_lc=yes 9110 fi 9111 allow_undefined_flag=$lt_save_allow_undefined_flag 9112 else 9113 cat conftest.err 1>&5 9114 fi 9115 $RM conftest* 9116 9117fi 9118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9119$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9120 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9121 ;; 9122 esac 9123 fi 9124 ;; 9125esac 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9284$as_echo_n "checking dynamic linker characteristics... " >&6; } 9285 9286if test "$GCC" = yes; then 9287 case $host_os in 9288 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9289 *) lt_awk_arg="/^libraries:/" ;; 9290 esac 9291 case $host_os in 9292 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9293 *) lt_sed_strip_eq="s,=/,/,g" ;; 9294 esac 9295 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9296 case $lt_search_path_spec in 9297 *\;*) 9298 # if the path contains ";" then we assume it to be the separator 9299 # otherwise default to the standard path separator (i.e. ":") - it is 9300 # assumed that no part of a normal pathname contains ";" but that should 9301 # okay in the real world where ";" in dirpaths is itself problematic. 9302 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9303 ;; 9304 *) 9305 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9306 ;; 9307 esac 9308 # Ok, now we have the path, separated by spaces, we can step through it 9309 # and add multilib dir if necessary. 9310 lt_tmp_lt_search_path_spec= 9311 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9312 for lt_sys_path in $lt_search_path_spec; do 9313 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9314 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9315 else 9316 test -d "$lt_sys_path" && \ 9317 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9318 fi 9319 done 9320 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9321BEGIN {RS=" "; FS="/|\n";} { 9322 lt_foo=""; 9323 lt_count=0; 9324 for (lt_i = NF; lt_i > 0; lt_i--) { 9325 if ($lt_i != "" && $lt_i != ".") { 9326 if ($lt_i == "..") { 9327 lt_count++; 9328 } else { 9329 if (lt_count == 0) { 9330 lt_foo="/" $lt_i lt_foo; 9331 } else { 9332 lt_count--; 9333 } 9334 } 9335 } 9336 } 9337 if (lt_foo != "") { lt_freq[lt_foo]++; } 9338 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9339}'` 9340 # AWK program above erroneously prepends '/' to C:/dos/paths 9341 # for these hosts. 9342 case $host_os in 9343 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9344 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9345 esac 9346 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9347else 9348 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9349fi 9350library_names_spec= 9351libname_spec='lib$name' 9352soname_spec= 9353shrext_cmds=".so" 9354postinstall_cmds= 9355postuninstall_cmds= 9356finish_cmds= 9357finish_eval= 9358shlibpath_var= 9359shlibpath_overrides_runpath=unknown 9360version_type=none 9361dynamic_linker="$host_os ld.so" 9362sys_lib_dlsearch_path_spec="/lib /usr/lib" 9363need_lib_prefix=unknown 9364hardcode_into_libs=no 9365 9366# when you set need_version to no, make sure it does not cause -set_version 9367# flags to be left without arguments 9368need_version=unknown 9369 9370case $host_os in 9371aix3*) 9372 version_type=linux 9373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9374 shlibpath_var=LIBPATH 9375 9376 # AIX 3 has no versioning support, so we append a major version to the name. 9377 soname_spec='${libname}${release}${shared_ext}$major' 9378 ;; 9379 9380aix[4-9]*) 9381 version_type=linux 9382 need_lib_prefix=no 9383 need_version=no 9384 hardcode_into_libs=yes 9385 if test "$host_cpu" = ia64; then 9386 # AIX 5 supports IA64 9387 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9388 shlibpath_var=LD_LIBRARY_PATH 9389 else 9390 # With GCC up to 2.95.x, collect2 would create an import file 9391 # for dependence libraries. The import file would start with 9392 # the line `#! .'. This would cause the generated library to 9393 # depend on `.', always an invalid library. This was fixed in 9394 # development snapshots of GCC prior to 3.0. 9395 case $host_os in 9396 aix4 | aix4.[01] | aix4.[01].*) 9397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9398 echo ' yes ' 9399 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9400 : 9401 else 9402 can_build_shared=no 9403 fi 9404 ;; 9405 esac 9406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9407 # soname into executable. Probably we can add versioning support to 9408 # collect2, so additional links can be useful in future. 9409 if test "$aix_use_runtimelinking" = yes; then 9410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9411 # instead of lib<name>.a to let people know that these are not 9412 # typical AIX shared libraries. 9413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9414 else 9415 # We preserve .a as extension for shared libraries through AIX4.2 9416 # and later when we are not doing run time linking. 9417 library_names_spec='${libname}${release}.a $libname.a' 9418 soname_spec='${libname}${release}${shared_ext}$major' 9419 fi 9420 shlibpath_var=LIBPATH 9421 fi 9422 ;; 9423 9424amigaos*) 9425 case $host_cpu in 9426 powerpc) 9427 # Since July 2007 AmigaOS4 officially supports .so libraries. 9428 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9430 ;; 9431 m68k) 9432 library_names_spec='$libname.ixlibrary $libname.a' 9433 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9434 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' 9435 ;; 9436 esac 9437 ;; 9438 9439beos*) 9440 library_names_spec='${libname}${shared_ext}' 9441 dynamic_linker="$host_os ld.so" 9442 shlibpath_var=LIBRARY_PATH 9443 ;; 9444 9445bsdi[45]*) 9446 version_type=linux 9447 need_version=no 9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9449 soname_spec='${libname}${release}${shared_ext}$major' 9450 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9451 shlibpath_var=LD_LIBRARY_PATH 9452 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9453 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9454 # the default ld.so.conf also contains /usr/contrib/lib and 9455 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9456 # libtool to hard-code these into programs 9457 ;; 9458 9459cygwin* | mingw* | pw32* | cegcc*) 9460 version_type=windows 9461 shrext_cmds=".dll" 9462 need_version=no 9463 need_lib_prefix=no 9464 9465 case $GCC,$host_os in 9466 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9467 library_names_spec='$libname.dll.a' 9468 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9469 postinstall_cmds='base_file=`basename \${file}`~ 9470 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9471 dldir=$destdir/`dirname \$dlpath`~ 9472 test -d \$dldir || mkdir -p \$dldir~ 9473 $install_prog $dir/$dlname \$dldir/$dlname~ 9474 chmod a+x \$dldir/$dlname~ 9475 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9476 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9477 fi' 9478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9479 dlpath=$dir/\$dldll~ 9480 $RM \$dlpath' 9481 shlibpath_overrides_runpath=yes 9482 9483 case $host_os in 9484 cygwin*) 9485 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9486 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9487 9488 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9489 ;; 9490 mingw* | cegcc*) 9491 # MinGW DLLs use traditional 'lib' prefix 9492 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9493 ;; 9494 pw32*) 9495 # pw32 DLLs use 'pw' prefix rather than 'lib' 9496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9497 ;; 9498 esac 9499 ;; 9500 9501 *) 9502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9503 ;; 9504 esac 9505 dynamic_linker='Win32 ld.exe' 9506 # FIXME: first we should search . and the directory the executable is in 9507 shlibpath_var=PATH 9508 ;; 9509 9510darwin* | rhapsody*) 9511 dynamic_linker="$host_os dyld" 9512 version_type=darwin 9513 need_lib_prefix=no 9514 need_version=no 9515 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9516 soname_spec='${libname}${release}${major}$shared_ext' 9517 shlibpath_overrides_runpath=yes 9518 shlibpath_var=DYLD_LIBRARY_PATH 9519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9520 9521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9523 ;; 9524 9525dgux*) 9526 version_type=linux 9527 need_lib_prefix=no 9528 need_version=no 9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9530 soname_spec='${libname}${release}${shared_ext}$major' 9531 shlibpath_var=LD_LIBRARY_PATH 9532 ;; 9533 9534freebsd* | dragonfly*) 9535 # DragonFly does not have aout. When/if they implement a new 9536 # versioning mechanism, adjust this. 9537 if test -x /usr/bin/objformat; then 9538 objformat=`/usr/bin/objformat` 9539 else 9540 case $host_os in 9541 freebsd[23].*) objformat=aout ;; 9542 *) objformat=elf ;; 9543 esac 9544 fi 9545 version_type=freebsd-$objformat 9546 case $version_type in 9547 freebsd-elf*) 9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9549 need_version=no 9550 need_lib_prefix=no 9551 ;; 9552 freebsd-*) 9553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9554 need_version=yes 9555 ;; 9556 esac 9557 shlibpath_var=LD_LIBRARY_PATH 9558 case $host_os in 9559 freebsd2.*) 9560 shlibpath_overrides_runpath=yes 9561 ;; 9562 freebsd3.[01]* | freebsdelf3.[01]*) 9563 shlibpath_overrides_runpath=yes 9564 hardcode_into_libs=yes 9565 ;; 9566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9568 shlibpath_overrides_runpath=no 9569 hardcode_into_libs=yes 9570 ;; 9571 *) # from 4.6 on, and DragonFly 9572 shlibpath_overrides_runpath=yes 9573 hardcode_into_libs=yes 9574 ;; 9575 esac 9576 ;; 9577 9578gnu*) 9579 version_type=linux 9580 need_lib_prefix=no 9581 need_version=no 9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9583 soname_spec='${libname}${release}${shared_ext}$major' 9584 shlibpath_var=LD_LIBRARY_PATH 9585 hardcode_into_libs=yes 9586 ;; 9587 9588haiku*) 9589 version_type=linux 9590 need_lib_prefix=no 9591 need_version=no 9592 dynamic_linker="$host_os runtime_loader" 9593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9594 soname_spec='${libname}${release}${shared_ext}$major' 9595 shlibpath_var=LIBRARY_PATH 9596 shlibpath_overrides_runpath=yes 9597 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 9598 hardcode_into_libs=yes 9599 ;; 9600 9601hpux9* | hpux10* | hpux11*) 9602 # Give a soname corresponding to the major version so that dld.sl refuses to 9603 # link against other versions. 9604 version_type=sunos 9605 need_lib_prefix=no 9606 need_version=no 9607 case $host_cpu in 9608 ia64*) 9609 shrext_cmds='.so' 9610 hardcode_into_libs=yes 9611 dynamic_linker="$host_os dld.so" 9612 shlibpath_var=LD_LIBRARY_PATH 9613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9615 soname_spec='${libname}${release}${shared_ext}$major' 9616 if test "X$HPUX_IA64_MODE" = X32; then 9617 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9618 else 9619 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9620 fi 9621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9622 ;; 9623 hppa*64*) 9624 shrext_cmds='.sl' 9625 hardcode_into_libs=yes 9626 dynamic_linker="$host_os dld.sl" 9627 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9630 soname_spec='${libname}${release}${shared_ext}$major' 9631 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9633 ;; 9634 *) 9635 shrext_cmds='.sl' 9636 dynamic_linker="$host_os dld.sl" 9637 shlibpath_var=SHLIB_PATH 9638 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9640 soname_spec='${libname}${release}${shared_ext}$major' 9641 ;; 9642 esac 9643 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 9644 postinstall_cmds='chmod 555 $lib' 9645 # or fails outright, so override atomically: 9646 install_override_mode=555 9647 ;; 9648 9649interix[3-9]*) 9650 version_type=linux 9651 need_lib_prefix=no 9652 need_version=no 9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9654 soname_spec='${libname}${release}${shared_ext}$major' 9655 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9656 shlibpath_var=LD_LIBRARY_PATH 9657 shlibpath_overrides_runpath=no 9658 hardcode_into_libs=yes 9659 ;; 9660 9661irix5* | irix6* | nonstopux*) 9662 case $host_os in 9663 nonstopux*) version_type=nonstopux ;; 9664 *) 9665 if test "$lt_cv_prog_gnu_ld" = yes; then 9666 version_type=linux 9667 else 9668 version_type=irix 9669 fi ;; 9670 esac 9671 need_lib_prefix=no 9672 need_version=no 9673 soname_spec='${libname}${release}${shared_ext}$major' 9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9675 case $host_os in 9676 irix5* | nonstopux*) 9677 libsuff= shlibsuff= 9678 ;; 9679 *) 9680 case $LD in # libtool.m4 will add one of these switches to LD 9681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9682 libsuff= shlibsuff= libmagic=32-bit;; 9683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9684 libsuff=32 shlibsuff=N32 libmagic=N32;; 9685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9686 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9687 *) libsuff= shlibsuff= libmagic=never-match;; 9688 esac 9689 ;; 9690 esac 9691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9692 shlibpath_overrides_runpath=no 9693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9695 hardcode_into_libs=yes 9696 ;; 9697 9698# No shared lib support for Linux oldld, aout, or coff. 9699linux*oldld* | linux*aout* | linux*coff*) 9700 dynamic_linker=no 9701 ;; 9702 9703# This must be Linux ELF. 9704linux* | k*bsd*-gnu | kopensolaris*-gnu) 9705 version_type=linux 9706 need_lib_prefix=no 9707 need_version=no 9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9709 soname_spec='${libname}${release}${shared_ext}$major' 9710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9711 shlibpath_var=LD_LIBRARY_PATH 9712 shlibpath_overrides_runpath=no 9713 9714 # Some binutils ld are patched to set DT_RUNPATH 9715 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 9716 $as_echo_n "(cached) " >&6 9717else 9718 lt_cv_shlibpath_overrides_runpath=no 9719 save_LDFLAGS=$LDFLAGS 9720 save_libdir=$libdir 9721 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9722 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9723 if test x$gcc_no_link = xyes; then 9724 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 9725fi 9726cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9727/* end confdefs.h. */ 9728 9729int 9730main () 9731{ 9732 9733 ; 9734 return 0; 9735} 9736_ACEOF 9737if ac_fn_c_try_link "$LINENO"; then : 9738 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9739 lt_cv_shlibpath_overrides_runpath=yes 9740fi 9741fi 9742rm -f core conftest.err conftest.$ac_objext \ 9743 conftest$ac_exeext conftest.$ac_ext 9744 LDFLAGS=$save_LDFLAGS 9745 libdir=$save_libdir 9746 9747fi 9748 9749 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 9750 9751 # This implies no fast_install, which is unacceptable. 9752 # Some rework will be needed to allow for fast_install 9753 # before this can be enabled. 9754 hardcode_into_libs=yes 9755 9756 # Append ld.so.conf contents to the search path 9757 if test -f /etc/ld.so.conf; then 9758 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' ' '` 9759 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9760 fi 9761 9762 # We used to test for /lib/ld.so.1 and disable shared libraries on 9763 # powerpc, because MkLinux only supported shared libraries with the 9764 # GNU dynamic linker. Since this was broken with cross compilers, 9765 # most powerpc-linux boxes support dynamic linking these days and 9766 # people can always --disable-shared, the test was removed, and we 9767 # assume the GNU/Linux dynamic linker is in use. 9768 dynamic_linker='GNU/Linux ld.so' 9769 ;; 9770 9771netbsd*) 9772 version_type=sunos 9773 need_lib_prefix=no 9774 need_version=no 9775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9778 dynamic_linker='NetBSD (a.out) ld.so' 9779 else 9780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9781 soname_spec='${libname}${release}${shared_ext}$major' 9782 dynamic_linker='NetBSD ld.elf_so' 9783 fi 9784 shlibpath_var=LD_LIBRARY_PATH 9785 shlibpath_overrides_runpath=yes 9786 hardcode_into_libs=yes 9787 ;; 9788 9789newsos6) 9790 version_type=linux 9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9792 shlibpath_var=LD_LIBRARY_PATH 9793 shlibpath_overrides_runpath=yes 9794 ;; 9795 9796*nto* | *qnx*) 9797 version_type=qnx 9798 need_lib_prefix=no 9799 need_version=no 9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9801 soname_spec='${libname}${release}${shared_ext}$major' 9802 shlibpath_var=LD_LIBRARY_PATH 9803 shlibpath_overrides_runpath=no 9804 hardcode_into_libs=yes 9805 dynamic_linker='ldqnx.so' 9806 ;; 9807 9808openbsd*) 9809 version_type=sunos 9810 sys_lib_dlsearch_path_spec="/usr/lib" 9811 need_lib_prefix=no 9812 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9813 case $host_os in 9814 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9815 *) need_version=no ;; 9816 esac 9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9819 shlibpath_var=LD_LIBRARY_PATH 9820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9821 case $host_os in 9822 openbsd2.[89] | openbsd2.[89].*) 9823 shlibpath_overrides_runpath=no 9824 ;; 9825 *) 9826 shlibpath_overrides_runpath=yes 9827 ;; 9828 esac 9829 else 9830 shlibpath_overrides_runpath=yes 9831 fi 9832 ;; 9833 9834os2*) 9835 libname_spec='$name' 9836 shrext_cmds=".dll" 9837 need_lib_prefix=no 9838 library_names_spec='$libname${shared_ext} $libname.a' 9839 dynamic_linker='OS/2 ld.exe' 9840 shlibpath_var=LIBPATH 9841 ;; 9842 9843osf3* | osf4* | osf5*) 9844 version_type=osf 9845 need_lib_prefix=no 9846 need_version=no 9847 soname_spec='${libname}${release}${shared_ext}$major' 9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9849 shlibpath_var=LD_LIBRARY_PATH 9850 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9851 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9852 ;; 9853 9854rdos*) 9855 dynamic_linker=no 9856 ;; 9857 9858solaris*) 9859 version_type=linux 9860 need_lib_prefix=no 9861 need_version=no 9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9863 soname_spec='${libname}${release}${shared_ext}$major' 9864 shlibpath_var=LD_LIBRARY_PATH 9865 shlibpath_overrides_runpath=yes 9866 hardcode_into_libs=yes 9867 # ldd complains unless libraries are executable 9868 postinstall_cmds='chmod +x $lib' 9869 ;; 9870 9871sunos4*) 9872 version_type=sunos 9873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9874 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9875 shlibpath_var=LD_LIBRARY_PATH 9876 shlibpath_overrides_runpath=yes 9877 if test "$with_gnu_ld" = yes; then 9878 need_lib_prefix=no 9879 fi 9880 need_version=yes 9881 ;; 9882 9883sysv4 | sysv4.3*) 9884 version_type=linux 9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9886 soname_spec='${libname}${release}${shared_ext}$major' 9887 shlibpath_var=LD_LIBRARY_PATH 9888 case $host_vendor in 9889 sni) 9890 shlibpath_overrides_runpath=no 9891 need_lib_prefix=no 9892 runpath_var=LD_RUN_PATH 9893 ;; 9894 siemens) 9895 need_lib_prefix=no 9896 ;; 9897 motorola) 9898 need_lib_prefix=no 9899 need_version=no 9900 shlibpath_overrides_runpath=no 9901 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9902 ;; 9903 esac 9904 ;; 9905 9906sysv4*MP*) 9907 if test -d /usr/nec ;then 9908 version_type=linux 9909 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9910 soname_spec='$libname${shared_ext}.$major' 9911 shlibpath_var=LD_LIBRARY_PATH 9912 fi 9913 ;; 9914 9915sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9916 version_type=freebsd-elf 9917 need_lib_prefix=no 9918 need_version=no 9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9920 soname_spec='${libname}${release}${shared_ext}$major' 9921 shlibpath_var=LD_LIBRARY_PATH 9922 shlibpath_overrides_runpath=yes 9923 hardcode_into_libs=yes 9924 if test "$with_gnu_ld" = yes; then 9925 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9926 else 9927 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9928 case $host_os in 9929 sco3.2v5*) 9930 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9931 ;; 9932 esac 9933 fi 9934 sys_lib_dlsearch_path_spec='/usr/lib' 9935 ;; 9936 9937tpf*) 9938 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9939 version_type=linux 9940 need_lib_prefix=no 9941 need_version=no 9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9943 shlibpath_var=LD_LIBRARY_PATH 9944 shlibpath_overrides_runpath=no 9945 hardcode_into_libs=yes 9946 ;; 9947 9948uts4*) 9949 version_type=linux 9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9951 soname_spec='${libname}${release}${shared_ext}$major' 9952 shlibpath_var=LD_LIBRARY_PATH 9953 ;; 9954 9955*) 9956 dynamic_linker=no 9957 ;; 9958esac 9959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9960$as_echo "$dynamic_linker" >&6; } 9961test "$dynamic_linker" = no && can_build_shared=no 9962 9963variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9964if test "$GCC" = yes; then 9965 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9966fi 9967 9968if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9969 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9970fi 9971if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9972 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9973fi 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10067$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10068hardcode_action= 10069if test -n "$hardcode_libdir_flag_spec" || 10070 test -n "$runpath_var" || 10071 test "X$hardcode_automatic" = "Xyes" ; then 10072 10073 # We can hardcode non-existent directories. 10074 if test "$hardcode_direct" != no && 10075 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10076 # have to relink, otherwise we might link with an installed library 10077 # when we should be linking with a yet-to-be-installed one 10078 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10079 test "$hardcode_minus_L" != no; then 10080 # Linking always hardcodes the temporary library directory. 10081 hardcode_action=relink 10082 else 10083 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10084 hardcode_action=immediate 10085 fi 10086else 10087 # We cannot hardcode anything, or else we can only hardcode existing 10088 # directories. 10089 hardcode_action=unsupported 10090fi 10091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10092$as_echo "$hardcode_action" >&6; } 10093 10094if test "$hardcode_action" = relink || 10095 test "$inherit_rpath" = yes; then 10096 # Fast installation is not supported 10097 enable_fast_install=no 10098elif test "$shlibpath_overrides_runpath" = yes || 10099 test "$enable_shared" = no; then 10100 # Fast installation is not necessary 10101 enable_fast_install=needless 10102fi 10103 10104 10105 10106 10107 10108 10109 if test "x$enable_dlopen" != xyes; then 10110 enable_dlopen=unknown 10111 enable_dlopen_self=unknown 10112 enable_dlopen_self_static=unknown 10113else 10114 lt_cv_dlopen=no 10115 lt_cv_dlopen_libs= 10116 10117 case $host_os in 10118 beos*) 10119 lt_cv_dlopen="load_add_on" 10120 lt_cv_dlopen_libs= 10121 lt_cv_dlopen_self=yes 10122 ;; 10123 10124 mingw* | pw32* | cegcc*) 10125 lt_cv_dlopen="LoadLibrary" 10126 lt_cv_dlopen_libs= 10127 ;; 10128 10129 cygwin*) 10130 lt_cv_dlopen="dlopen" 10131 lt_cv_dlopen_libs= 10132 ;; 10133 10134 darwin*) 10135 # if libdl is installed we need to link against it 10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10137$as_echo_n "checking for dlopen in -ldl... " >&6; } 10138if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10139 $as_echo_n "(cached) " >&6 10140else 10141 ac_check_lib_save_LIBS=$LIBS 10142LIBS="-ldl $LIBS" 10143if test x$gcc_no_link = xyes; then 10144 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10145fi 10146cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10147/* end confdefs.h. */ 10148 10149/* Override any GCC internal prototype to avoid an error. 10150 Use char because int might match the return type of a GCC 10151 builtin and then its argument prototype would still apply. */ 10152#ifdef __cplusplus 10153extern "C" 10154#endif 10155char dlopen (); 10156int 10157main () 10158{ 10159return dlopen (); 10160 ; 10161 return 0; 10162} 10163_ACEOF 10164if ac_fn_c_try_link "$LINENO"; then : 10165 ac_cv_lib_dl_dlopen=yes 10166else 10167 ac_cv_lib_dl_dlopen=no 10168fi 10169rm -f core conftest.err conftest.$ac_objext \ 10170 conftest$ac_exeext conftest.$ac_ext 10171LIBS=$ac_check_lib_save_LIBS 10172fi 10173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10174$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10175if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10176 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10177else 10178 10179 lt_cv_dlopen="dyld" 10180 lt_cv_dlopen_libs= 10181 lt_cv_dlopen_self=yes 10182 10183fi 10184 10185 ;; 10186 10187 *) 10188 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10189if test "x$ac_cv_func_shl_load" = x""yes; then : 10190 lt_cv_dlopen="shl_load" 10191else 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10193$as_echo_n "checking for shl_load in -ldld... " >&6; } 10194if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10195 $as_echo_n "(cached) " >&6 10196else 10197 ac_check_lib_save_LIBS=$LIBS 10198LIBS="-ldld $LIBS" 10199if test x$gcc_no_link = xyes; then 10200 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10201fi 10202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10203/* end confdefs.h. */ 10204 10205/* Override any GCC internal prototype to avoid an error. 10206 Use char because int might match the return type of a GCC 10207 builtin and then its argument prototype would still apply. */ 10208#ifdef __cplusplus 10209extern "C" 10210#endif 10211char shl_load (); 10212int 10213main () 10214{ 10215return shl_load (); 10216 ; 10217 return 0; 10218} 10219_ACEOF 10220if ac_fn_c_try_link "$LINENO"; then : 10221 ac_cv_lib_dld_shl_load=yes 10222else 10223 ac_cv_lib_dld_shl_load=no 10224fi 10225rm -f core conftest.err conftest.$ac_objext \ 10226 conftest$ac_exeext conftest.$ac_ext 10227LIBS=$ac_check_lib_save_LIBS 10228fi 10229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10230$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10231if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10232 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10233else 10234 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10235if test "x$ac_cv_func_dlopen" = x""yes; then : 10236 lt_cv_dlopen="dlopen" 10237else 10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10239$as_echo_n "checking for dlopen in -ldl... " >&6; } 10240if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10241 $as_echo_n "(cached) " >&6 10242else 10243 ac_check_lib_save_LIBS=$LIBS 10244LIBS="-ldl $LIBS" 10245if test x$gcc_no_link = xyes; then 10246 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10247fi 10248cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10249/* end confdefs.h. */ 10250 10251/* Override any GCC internal prototype to avoid an error. 10252 Use char because int might match the return type of a GCC 10253 builtin and then its argument prototype would still apply. */ 10254#ifdef __cplusplus 10255extern "C" 10256#endif 10257char dlopen (); 10258int 10259main () 10260{ 10261return dlopen (); 10262 ; 10263 return 0; 10264} 10265_ACEOF 10266if ac_fn_c_try_link "$LINENO"; then : 10267 ac_cv_lib_dl_dlopen=yes 10268else 10269 ac_cv_lib_dl_dlopen=no 10270fi 10271rm -f core conftest.err conftest.$ac_objext \ 10272 conftest$ac_exeext conftest.$ac_ext 10273LIBS=$ac_check_lib_save_LIBS 10274fi 10275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10276$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10277if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10278 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10279else 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10281$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10282if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10283 $as_echo_n "(cached) " >&6 10284else 10285 ac_check_lib_save_LIBS=$LIBS 10286LIBS="-lsvld $LIBS" 10287if test x$gcc_no_link = xyes; then 10288 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10289fi 10290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10291/* end confdefs.h. */ 10292 10293/* Override any GCC internal prototype to avoid an error. 10294 Use char because int might match the return type of a GCC 10295 builtin and then its argument prototype would still apply. */ 10296#ifdef __cplusplus 10297extern "C" 10298#endif 10299char dlopen (); 10300int 10301main () 10302{ 10303return dlopen (); 10304 ; 10305 return 0; 10306} 10307_ACEOF 10308if ac_fn_c_try_link "$LINENO"; then : 10309 ac_cv_lib_svld_dlopen=yes 10310else 10311 ac_cv_lib_svld_dlopen=no 10312fi 10313rm -f core conftest.err conftest.$ac_objext \ 10314 conftest$ac_exeext conftest.$ac_ext 10315LIBS=$ac_check_lib_save_LIBS 10316fi 10317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10318$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10319if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10321else 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10323$as_echo_n "checking for dld_link in -ldld... " >&6; } 10324if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10325 $as_echo_n "(cached) " >&6 10326else 10327 ac_check_lib_save_LIBS=$LIBS 10328LIBS="-ldld $LIBS" 10329if test x$gcc_no_link = xyes; then 10330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10331fi 10332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10333/* end confdefs.h. */ 10334 10335/* Override any GCC internal prototype to avoid an error. 10336 Use char because int might match the return type of a GCC 10337 builtin and then its argument prototype would still apply. */ 10338#ifdef __cplusplus 10339extern "C" 10340#endif 10341char dld_link (); 10342int 10343main () 10344{ 10345return dld_link (); 10346 ; 10347 return 0; 10348} 10349_ACEOF 10350if ac_fn_c_try_link "$LINENO"; then : 10351 ac_cv_lib_dld_dld_link=yes 10352else 10353 ac_cv_lib_dld_dld_link=no 10354fi 10355rm -f core conftest.err conftest.$ac_objext \ 10356 conftest$ac_exeext conftest.$ac_ext 10357LIBS=$ac_check_lib_save_LIBS 10358fi 10359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10360$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10361if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10362 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10363fi 10364 10365 10366fi 10367 10368 10369fi 10370 10371 10372fi 10373 10374 10375fi 10376 10377 10378fi 10379 10380 ;; 10381 esac 10382 10383 if test "x$lt_cv_dlopen" != xno; then 10384 enable_dlopen=yes 10385 else 10386 enable_dlopen=no 10387 fi 10388 10389 case $lt_cv_dlopen in 10390 dlopen) 10391 save_CPPFLAGS="$CPPFLAGS" 10392 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10393 10394 save_LDFLAGS="$LDFLAGS" 10395 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10396 10397 save_LIBS="$LIBS" 10398 LIBS="$lt_cv_dlopen_libs $LIBS" 10399 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10401$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10402if test "${lt_cv_dlopen_self+set}" = set; then : 10403 $as_echo_n "(cached) " >&6 10404else 10405 if test "$cross_compiling" = yes; then : 10406 lt_cv_dlopen_self=cross 10407else 10408 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10409 lt_status=$lt_dlunknown 10410 cat > conftest.$ac_ext <<_LT_EOF 10411#line 10411 "configure" 10412#include "confdefs.h" 10413 10414#if HAVE_DLFCN_H 10415#include <dlfcn.h> 10416#endif 10417 10418#include <stdio.h> 10419 10420#ifdef RTLD_GLOBAL 10421# define LT_DLGLOBAL RTLD_GLOBAL 10422#else 10423# ifdef DL_GLOBAL 10424# define LT_DLGLOBAL DL_GLOBAL 10425# else 10426# define LT_DLGLOBAL 0 10427# endif 10428#endif 10429 10430/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10431 find out it does not work in some platform. */ 10432#ifndef LT_DLLAZY_OR_NOW 10433# ifdef RTLD_LAZY 10434# define LT_DLLAZY_OR_NOW RTLD_LAZY 10435# else 10436# ifdef DL_LAZY 10437# define LT_DLLAZY_OR_NOW DL_LAZY 10438# else 10439# ifdef RTLD_NOW 10440# define LT_DLLAZY_OR_NOW RTLD_NOW 10441# else 10442# ifdef DL_NOW 10443# define LT_DLLAZY_OR_NOW DL_NOW 10444# else 10445# define LT_DLLAZY_OR_NOW 0 10446# endif 10447# endif 10448# endif 10449# endif 10450#endif 10451 10452/* When -fvisbility=hidden is used, assume the code has been annotated 10453 correspondingly for the symbols needed. */ 10454#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10455void fnord () __attribute__((visibility("default"))); 10456#endif 10457 10458void fnord () { int i=42; } 10459int main () 10460{ 10461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10462 int status = $lt_dlunknown; 10463 10464 if (self) 10465 { 10466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10467 else 10468 { 10469 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10470 else puts (dlerror ()); 10471 } 10472 /* dlclose (self); */ 10473 } 10474 else 10475 puts (dlerror ()); 10476 10477 return status; 10478} 10479_LT_EOF 10480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10481 (eval $ac_link) 2>&5 10482 ac_status=$? 10483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10484 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10485 (./conftest; exit; ) >&5 2>/dev/null 10486 lt_status=$? 10487 case x$lt_status in 10488 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10489 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10490 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10491 esac 10492 else : 10493 # compilation failed 10494 lt_cv_dlopen_self=no 10495 fi 10496fi 10497rm -fr conftest* 10498 10499 10500fi 10501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10502$as_echo "$lt_cv_dlopen_self" >&6; } 10503 10504 if test "x$lt_cv_dlopen_self" = xyes; then 10505 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10507$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10508if test "${lt_cv_dlopen_self_static+set}" = set; then : 10509 $as_echo_n "(cached) " >&6 10510else 10511 if test "$cross_compiling" = yes; then : 10512 lt_cv_dlopen_self_static=cross 10513else 10514 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10515 lt_status=$lt_dlunknown 10516 cat > conftest.$ac_ext <<_LT_EOF 10517#line 10517 "configure" 10518#include "confdefs.h" 10519 10520#if HAVE_DLFCN_H 10521#include <dlfcn.h> 10522#endif 10523 10524#include <stdio.h> 10525 10526#ifdef RTLD_GLOBAL 10527# define LT_DLGLOBAL RTLD_GLOBAL 10528#else 10529# ifdef DL_GLOBAL 10530# define LT_DLGLOBAL DL_GLOBAL 10531# else 10532# define LT_DLGLOBAL 0 10533# endif 10534#endif 10535 10536/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10537 find out it does not work in some platform. */ 10538#ifndef LT_DLLAZY_OR_NOW 10539# ifdef RTLD_LAZY 10540# define LT_DLLAZY_OR_NOW RTLD_LAZY 10541# else 10542# ifdef DL_LAZY 10543# define LT_DLLAZY_OR_NOW DL_LAZY 10544# else 10545# ifdef RTLD_NOW 10546# define LT_DLLAZY_OR_NOW RTLD_NOW 10547# else 10548# ifdef DL_NOW 10549# define LT_DLLAZY_OR_NOW DL_NOW 10550# else 10551# define LT_DLLAZY_OR_NOW 0 10552# endif 10553# endif 10554# endif 10555# endif 10556#endif 10557 10558/* When -fvisbility=hidden is used, assume the code has been annotated 10559 correspondingly for the symbols needed. */ 10560#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10561void fnord () __attribute__((visibility("default"))); 10562#endif 10563 10564void fnord () { int i=42; } 10565int main () 10566{ 10567 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10568 int status = $lt_dlunknown; 10569 10570 if (self) 10571 { 10572 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10573 else 10574 { 10575 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10576 else puts (dlerror ()); 10577 } 10578 /* dlclose (self); */ 10579 } 10580 else 10581 puts (dlerror ()); 10582 10583 return status; 10584} 10585_LT_EOF 10586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10587 (eval $ac_link) 2>&5 10588 ac_status=$? 10589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10590 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10591 (./conftest; exit; ) >&5 2>/dev/null 10592 lt_status=$? 10593 case x$lt_status in 10594 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10595 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10596 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10597 esac 10598 else : 10599 # compilation failed 10600 lt_cv_dlopen_self_static=no 10601 fi 10602fi 10603rm -fr conftest* 10604 10605 10606fi 10607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10608$as_echo "$lt_cv_dlopen_self_static" >&6; } 10609 fi 10610 10611 CPPFLAGS="$save_CPPFLAGS" 10612 LDFLAGS="$save_LDFLAGS" 10613 LIBS="$save_LIBS" 10614 ;; 10615 esac 10616 10617 case $lt_cv_dlopen_self in 10618 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10619 *) enable_dlopen_self=unknown ;; 10620 esac 10621 10622 case $lt_cv_dlopen_self_static in 10623 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10624 *) enable_dlopen_self_static=unknown ;; 10625 esac 10626fi 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644striplib= 10645old_striplib= 10646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10647$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10648if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10649 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10650 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10652$as_echo "yes" >&6; } 10653else 10654# FIXME - insert some real tests, host_os isn't really good enough 10655 case $host_os in 10656 darwin*) 10657 if test -n "$STRIP" ; then 10658 striplib="$STRIP -x" 10659 old_striplib="$STRIP -S" 10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10661$as_echo "yes" >&6; } 10662 else 10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10664$as_echo "no" >&6; } 10665 fi 10666 ;; 10667 *) 10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10669$as_echo "no" >&6; } 10670 ;; 10671 esac 10672fi 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 # Report which library types will actually be built 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10687$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10689$as_echo "$can_build_shared" >&6; } 10690 10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10692$as_echo_n "checking whether to build shared libraries... " >&6; } 10693 test "$can_build_shared" = "no" && enable_shared=no 10694 10695 # On AIX, shared libraries and static libraries use the same namespace, and 10696 # are all built from PIC. 10697 case $host_os in 10698 aix3*) 10699 test "$enable_shared" = yes && enable_static=no 10700 if test -n "$RANLIB"; then 10701 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10702 postinstall_cmds='$RANLIB $lib' 10703 fi 10704 ;; 10705 10706 aix[4-9]*) 10707 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10708 test "$enable_shared" = yes && enable_static=no 10709 fi 10710 ;; 10711 esac 10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10713$as_echo "$enable_shared" >&6; } 10714 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10716$as_echo_n "checking whether to build static libraries... " >&6; } 10717 # Make sure either enable_shared or enable_static is yes. 10718 test "$enable_shared" = yes || enable_static=yes 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10720$as_echo "$enable_static" >&6; } 10721 10722 10723 10724 10725fi 10726ac_ext=c 10727ac_cpp='$CPP $CPPFLAGS' 10728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10730ac_compiler_gnu=$ac_cv_c_compiler_gnu 10731 10732CC="$lt_save_CC" 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 ac_config_commands="$ac_config_commands libtool" 10747 10748 10749 10750 10751# Only expand once: 10752 10753 10754 10755# Find CPP now so that any conditional tests below won't do it and 10756# thereby make the resulting definitions conditional. 10757ac_ext=c 10758ac_cpp='$CPP $CPPFLAGS' 10759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10761ac_compiler_gnu=$ac_cv_c_compiler_gnu 10762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 10763$as_echo_n "checking how to run the C preprocessor... " >&6; } 10764# On Suns, sometimes $CPP names a directory. 10765if test -n "$CPP" && test -d "$CPP"; then 10766 CPP= 10767fi 10768if test -z "$CPP"; then 10769 if test "${ac_cv_prog_CPP+set}" = set; then : 10770 $as_echo_n "(cached) " >&6 10771else 10772 # Double quotes because CPP needs to be expanded 10773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 10774 do 10775 ac_preproc_ok=false 10776for ac_c_preproc_warn_flag in '' yes 10777do 10778 # Use a header file that comes with gcc, so configuring glibc 10779 # with a fresh cross-compiler works. 10780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10781 # <limits.h> exists even on freestanding compilers. 10782 # On the NeXT, cc -E runs the code through the compiler's parser, 10783 # not just through cpp. "Syntax error" is here to catch this case. 10784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10785/* end confdefs.h. */ 10786#ifdef __STDC__ 10787# include <limits.h> 10788#else 10789# include <assert.h> 10790#endif 10791 Syntax error 10792_ACEOF 10793if ac_fn_c_try_cpp "$LINENO"; then : 10794 10795else 10796 # Broken: fails on valid input. 10797continue 10798fi 10799rm -f conftest.err conftest.$ac_ext 10800 10801 # OK, works on sane cases. Now check whether nonexistent headers 10802 # can be detected and how. 10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10804/* end confdefs.h. */ 10805#include <ac_nonexistent.h> 10806_ACEOF 10807if ac_fn_c_try_cpp "$LINENO"; then : 10808 # Broken: success on invalid input. 10809continue 10810else 10811 # Passes both tests. 10812ac_preproc_ok=: 10813break 10814fi 10815rm -f conftest.err conftest.$ac_ext 10816 10817done 10818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10819rm -f conftest.err conftest.$ac_ext 10820if $ac_preproc_ok; then : 10821 break 10822fi 10823 10824 done 10825 ac_cv_prog_CPP=$CPP 10826 10827fi 10828 CPP=$ac_cv_prog_CPP 10829else 10830 ac_cv_prog_CPP=$CPP 10831fi 10832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 10833$as_echo "$CPP" >&6; } 10834ac_preproc_ok=false 10835for ac_c_preproc_warn_flag in '' yes 10836do 10837 # Use a header file that comes with gcc, so configuring glibc 10838 # with a fresh cross-compiler works. 10839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10840 # <limits.h> exists even on freestanding compilers. 10841 # On the NeXT, cc -E runs the code through the compiler's parser, 10842 # not just through cpp. "Syntax error" is here to catch this case. 10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10844/* end confdefs.h. */ 10845#ifdef __STDC__ 10846# include <limits.h> 10847#else 10848# include <assert.h> 10849#endif 10850 Syntax error 10851_ACEOF 10852if ac_fn_c_try_cpp "$LINENO"; then : 10853 10854else 10855 # Broken: fails on valid input. 10856continue 10857fi 10858rm -f conftest.err conftest.$ac_ext 10859 10860 # OK, works on sane cases. Now check whether nonexistent headers 10861 # can be detected and how. 10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10863/* end confdefs.h. */ 10864#include <ac_nonexistent.h> 10865_ACEOF 10866if ac_fn_c_try_cpp "$LINENO"; then : 10867 # Broken: success on invalid input. 10868continue 10869else 10870 # Passes both tests. 10871ac_preproc_ok=: 10872break 10873fi 10874rm -f conftest.err conftest.$ac_ext 10875 10876done 10877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10878rm -f conftest.err conftest.$ac_ext 10879if $ac_preproc_ok; then : 10880 10881else 10882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10884as_fn_error "C preprocessor \"$CPP\" fails sanity check 10885See \`config.log' for more details." "$LINENO" 5; } 10886fi 10887 10888ac_ext=c 10889ac_cpp='$CPP $CPPFLAGS' 10890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10892ac_compiler_gnu=$ac_cv_c_compiler_gnu 10893 10894 10895if test -n "$with_cross_host"; then 10896 # We are being configured with a cross compiler. AC_REPLACE_FUNCS 10897 # may not work correctly, because the compiler may not be able to 10898 # link executables. 10899 10900 # We assume newlib. This lets us hard-code the functions we know 10901 # we'll have. 10902 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h 10903 10904 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 10905 10906 10907 # We ignore --with-system-zlib in this case. 10908 target_all=libzgcj.la 10909else 10910 if test x$gcc_no_link = xyes; then 10911 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then 10912 ac_cv_func_mmap_fixed_mapped=no 10913 fi 10914fi 10915if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then 10916 for ac_header in stdlib.h unistd.h 10917do : 10918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10919ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10920eval as_val=\$$as_ac_Header 10921 if test "x$as_val" = x""yes; then : 10922 cat >>confdefs.h <<_ACEOF 10923#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10924_ACEOF 10925 10926fi 10927 10928done 10929 10930for ac_func in getpagesize 10931do : 10932 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 10933if test "x$ac_cv_func_getpagesize" = x""yes; then : 10934 cat >>confdefs.h <<_ACEOF 10935#define HAVE_GETPAGESIZE 1 10936_ACEOF 10937 10938fi 10939done 10940 10941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 10942$as_echo_n "checking for working mmap... " >&6; } 10943if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 10944 $as_echo_n "(cached) " >&6 10945else 10946 if test "$cross_compiling" = yes; then : 10947 ac_cv_func_mmap_fixed_mapped=no 10948else 10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10950/* end confdefs.h. */ 10951$ac_includes_default 10952/* malloc might have been renamed as rpl_malloc. */ 10953#undef malloc 10954 10955/* Thanks to Mike Haertel and Jim Avera for this test. 10956 Here is a matrix of mmap possibilities: 10957 mmap private not fixed 10958 mmap private fixed at somewhere currently unmapped 10959 mmap private fixed at somewhere already mapped 10960 mmap shared not fixed 10961 mmap shared fixed at somewhere currently unmapped 10962 mmap shared fixed at somewhere already mapped 10963 For private mappings, we should verify that changes cannot be read() 10964 back from the file, nor mmap's back from the file at a different 10965 address. (There have been systems where private was not correctly 10966 implemented like the infamous i386 svr4.0, and systems where the 10967 VM page cache was not coherent with the file system buffer cache 10968 like early versions of FreeBSD and possibly contemporary NetBSD.) 10969 For shared mappings, we should conversely verify that changes get 10970 propagated back to all the places they're supposed to be. 10971 10972 Grep wants private fixed already mapped. 10973 The main things grep needs to know about mmap are: 10974 * does it exist and is it safe to write into the mmap'd area 10975 * how to use it (BSD variants) */ 10976 10977#include <fcntl.h> 10978#include <sys/mman.h> 10979 10980#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 10981char *malloc (); 10982#endif 10983 10984/* This mess was copied from the GNU getpagesize.h. */ 10985#ifndef HAVE_GETPAGESIZE 10986/* Assume that all systems that can run configure have sys/param.h. */ 10987# ifndef HAVE_SYS_PARAM_H 10988# define HAVE_SYS_PARAM_H 1 10989# endif 10990 10991# ifdef _SC_PAGESIZE 10992# define getpagesize() sysconf(_SC_PAGESIZE) 10993# else /* no _SC_PAGESIZE */ 10994# ifdef HAVE_SYS_PARAM_H 10995# include <sys/param.h> 10996# ifdef EXEC_PAGESIZE 10997# define getpagesize() EXEC_PAGESIZE 10998# else /* no EXEC_PAGESIZE */ 10999# ifdef NBPG 11000# define getpagesize() NBPG * CLSIZE 11001# ifndef CLSIZE 11002# define CLSIZE 1 11003# endif /* no CLSIZE */ 11004# else /* no NBPG */ 11005# ifdef NBPC 11006# define getpagesize() NBPC 11007# else /* no NBPC */ 11008# ifdef PAGESIZE 11009# define getpagesize() PAGESIZE 11010# endif /* PAGESIZE */ 11011# endif /* no NBPC */ 11012# endif /* no NBPG */ 11013# endif /* no EXEC_PAGESIZE */ 11014# else /* no HAVE_SYS_PARAM_H */ 11015# define getpagesize() 8192 /* punt totally */ 11016# endif /* no HAVE_SYS_PARAM_H */ 11017# endif /* no _SC_PAGESIZE */ 11018 11019#endif /* no HAVE_GETPAGESIZE */ 11020 11021int 11022main () 11023{ 11024 char *data, *data2, *data3; 11025 int i, pagesize; 11026 int fd; 11027 11028 pagesize = getpagesize (); 11029 11030 /* First, make a file with some known garbage in it. */ 11031 data = (char *) malloc (pagesize); 11032 if (!data) 11033 return 1; 11034 for (i = 0; i < pagesize; ++i) 11035 *(data + i) = rand (); 11036 umask (0); 11037 fd = creat ("conftest.mmap", 0600); 11038 if (fd < 0) 11039 return 1; 11040 if (write (fd, data, pagesize) != pagesize) 11041 return 1; 11042 close (fd); 11043 11044 /* Next, try to mmap the file at a fixed address which already has 11045 something else allocated at it. If we can, also make sure that 11046 we see the same garbage. */ 11047 fd = open ("conftest.mmap", O_RDWR); 11048 if (fd < 0) 11049 return 1; 11050 data2 = (char *) malloc (2 * pagesize); 11051 if (!data2) 11052 return 1; 11053 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 11054 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 11055 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 11056 return 1; 11057 for (i = 0; i < pagesize; ++i) 11058 if (*(data + i) != *(data2 + i)) 11059 return 1; 11060 11061 /* Finally, make sure that changes to the mapped area do not 11062 percolate back to the file as seen by read(). (This is a bug on 11063 some variants of i386 svr4.0.) */ 11064 for (i = 0; i < pagesize; ++i) 11065 *(data2 + i) = *(data2 + i) + 1; 11066 data3 = (char *) malloc (pagesize); 11067 if (!data3) 11068 return 1; 11069 if (read (fd, data3, pagesize) != pagesize) 11070 return 1; 11071 for (i = 0; i < pagesize; ++i) 11072 if (*(data + i) != *(data3 + i)) 11073 return 1; 11074 close (fd); 11075 return 0; 11076} 11077_ACEOF 11078if ac_fn_c_try_run "$LINENO"; then : 11079 ac_cv_func_mmap_fixed_mapped=yes 11080else 11081 ac_cv_func_mmap_fixed_mapped=no 11082fi 11083rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11084 conftest.$ac_objext conftest.beam conftest.$ac_ext 11085fi 11086 11087fi 11088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 11089$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 11090if test $ac_cv_func_mmap_fixed_mapped = yes; then 11091 11092$as_echo "#define HAVE_MMAP 1" >>confdefs.h 11093 11094fi 11095rm -f conftest.mmap 11096 11097fi 11098 for ac_func in memcpy strerror 11099do : 11100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11101ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11102eval as_val=\$$as_ac_var 11103 if test "x$as_val" = x""yes; then : 11104 cat >>confdefs.h <<_ACEOF 11105#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11106_ACEOF 11107 11108fi 11109done 11110 11111 11112 if test "$with_system_zlib" = yes; then 11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 11114$as_echo_n "checking for deflate in -lz... " >&6; } 11115if test "${ac_cv_lib_z_deflate+set}" = set; then : 11116 $as_echo_n "(cached) " >&6 11117else 11118 ac_check_lib_save_LIBS=$LIBS 11119LIBS="-lz $LIBS" 11120if test x$gcc_no_link = xyes; then 11121 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11122fi 11123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11124/* end confdefs.h. */ 11125 11126/* Override any GCC internal prototype to avoid an error. 11127 Use char because int might match the return type of a GCC 11128 builtin and then its argument prototype would still apply. */ 11129#ifdef __cplusplus 11130extern "C" 11131#endif 11132char deflate (); 11133int 11134main () 11135{ 11136return deflate (); 11137 ; 11138 return 0; 11139} 11140_ACEOF 11141if ac_fn_c_try_link "$LINENO"; then : 11142 ac_cv_lib_z_deflate=yes 11143else 11144 ac_cv_lib_z_deflate=no 11145fi 11146rm -f core conftest.err conftest.$ac_objext \ 11147 conftest$ac_exeext conftest.$ac_ext 11148LIBS=$ac_check_lib_save_LIBS 11149fi 11150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 11151$as_echo "$ac_cv_lib_z_deflate" >&6; } 11152if test "x$ac_cv_lib_z_deflate" = x""yes; then : 11153 target_all= 11154else 11155 target_all=libzgcj.la 11156fi 11157 11158 else 11159 target_all=libzgcj.la 11160 fi 11161fi 11162 11163 11164 11165for ac_header in unistd.h 11166do : 11167 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 11168if test "x$ac_cv_header_unistd_h" = x""yes; then : 11169 cat >>confdefs.h <<_ACEOF 11170#define HAVE_UNISTD_H 1 11171_ACEOF 11172 11173fi 11174 11175done 11176 11177 11178if test -n "$with_cross_host" && 11179 test x"$with_cross_host" != x"no"; then 11180 toolexecdir='$(exec_prefix)/$(target_alias)' 11181 toolexeclibdir='$(toolexecdir)/lib' 11182else 11183 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 11184 toolexeclibdir='$(libdir)' 11185fi 11186if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then 11187 multiosdir=/`$CC -print-multi-os-directory` 11188 case $multiosdir in 11189 /.) multiosdir= ;; # Avoid trailing /. 11190 esac 11191else 11192 multiosdir= 11193fi 11194toolexeclibdir=${toolexeclibdir}${multiosdir} 11195 11196 11197 11198 if test -n "$with_target_subdir"; then 11199 TARGET_LIBRARY_TRUE= 11200 TARGET_LIBRARY_FALSE='#' 11201else 11202 TARGET_LIBRARY_TRUE='#' 11203 TARGET_LIBRARY_FALSE= 11204fi 11205 11206 11207if test "${multilib}" = "yes"; then 11208 multilib_arg="--enable-multilib" 11209else 11210 multilib_arg= 11211fi 11212 11213# Check whether --enable-host-shared was given. 11214if test "${enable_host_shared+set}" = set; then : 11215 enableval=$enable_host_shared; PICFLAG=-fPIC 11216else 11217 PICFLAG= 11218fi 11219 11220 11221 11222ac_config_files="$ac_config_files Makefile" 11223 11224cat >confcache <<\_ACEOF 11225# This file is a shell script that caches the results of configure 11226# tests run on this system so they can be shared between configure 11227# scripts and configure runs, see configure's option --config-cache. 11228# It is not useful on other systems. If it contains results you don't 11229# want to keep, you may remove or edit it. 11230# 11231# config.status only pays attention to the cache file if you give it 11232# the --recheck option to rerun configure. 11233# 11234# `ac_cv_env_foo' variables (set or unset) will be overridden when 11235# loading this file, other *unset* `ac_cv_foo' will be assigned the 11236# following values. 11237 11238_ACEOF 11239 11240# The following way of writing the cache mishandles newlines in values, 11241# but we know of no workaround that is simple, portable, and efficient. 11242# So, we kill variables containing newlines. 11243# Ultrix sh set writes to stderr and can't be redirected directly, 11244# and sets the high bit in the cache file unless we assign to the vars. 11245( 11246 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11247 eval ac_val=\$$ac_var 11248 case $ac_val in #( 11249 *${as_nl}*) 11250 case $ac_var in #( 11251 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11252$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11253 esac 11254 case $ac_var in #( 11255 _ | IFS | as_nl) ;; #( 11256 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11257 *) { eval $ac_var=; unset $ac_var;} ;; 11258 esac ;; 11259 esac 11260 done 11261 11262 (set) 2>&1 | 11263 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11264 *${as_nl}ac_space=\ *) 11265 # `set' does not quote correctly, so add quotes: double-quote 11266 # substitution turns \\\\ into \\, and sed turns \\ into \. 11267 sed -n \ 11268 "s/'/'\\\\''/g; 11269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11270 ;; #( 11271 *) 11272 # `set' quotes correctly as required by POSIX, so do not add quotes. 11273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11274 ;; 11275 esac | 11276 sort 11277) | 11278 sed ' 11279 /^ac_cv_env_/b end 11280 t clear 11281 :clear 11282 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11283 t end 11284 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11285 :end' >>confcache 11286if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11287 if test -w "$cache_file"; then 11288 test "x$cache_file" != "x/dev/null" && 11289 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11290$as_echo "$as_me: updating cache $cache_file" >&6;} 11291 cat confcache >$cache_file 11292 else 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11294$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11295 fi 11296fi 11297rm -f confcache 11298 11299test "x$prefix" = xNONE && prefix=$ac_default_prefix 11300# Let make expand exec_prefix. 11301test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11302 11303# Transform confdefs.h into DEFS. 11304# Protect against shell expansion while executing Makefile rules. 11305# Protect against Makefile macro expansion. 11306# 11307# If the first sed substitution is executed (which looks for macros that 11308# take arguments), then branch to the quote section. Otherwise, 11309# look for a macro that doesn't take arguments. 11310ac_script=' 11311:mline 11312/\\$/{ 11313 N 11314 s,\\\n,, 11315 b mline 11316} 11317t clear 11318:clear 11319s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11320t quote 11321s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11322t quote 11323b any 11324:quote 11325s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11326s/\[/\\&/g 11327s/\]/\\&/g 11328s/\$/$$/g 11329H 11330:any 11331${ 11332 g 11333 s/^\n// 11334 s/\n/ /g 11335 p 11336} 11337' 11338DEFS=`sed -n "$ac_script" confdefs.h` 11339 11340 11341ac_libobjs= 11342ac_ltlibobjs= 11343for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11344 # 1. Remove the extension, and $U if already installed. 11345 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11346 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11347 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11348 # will be set to the directory where LIBOBJS objects are built. 11349 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11350 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11351done 11352LIBOBJS=$ac_libobjs 11353 11354LTLIBOBJS=$ac_ltlibobjs 11355 11356 11357 if test -n "$EXEEXT"; then 11358 am__EXEEXT_TRUE= 11359 am__EXEEXT_FALSE='#' 11360else 11361 am__EXEEXT_TRUE='#' 11362 am__EXEEXT_FALSE= 11363fi 11364 11365if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11366 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 11367Usually this means the macro was only invoked conditionally." "$LINENO" 5 11368fi 11369if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11370 as_fn_error "conditional \"AMDEP\" was never defined. 11371Usually this means the macro was only invoked conditionally." "$LINENO" 5 11372fi 11373if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11374 as_fn_error "conditional \"am__fastdepCC\" was never defined. 11375Usually this means the macro was only invoked conditionally." "$LINENO" 5 11376fi 11377if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then 11378 as_fn_error "conditional \"TARGET_LIBRARY\" was never defined. 11379Usually this means the macro was only invoked conditionally." "$LINENO" 5 11380fi 11381 11382: ${CONFIG_STATUS=./config.status} 11383ac_write_fail=0 11384ac_clean_files_save=$ac_clean_files 11385ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11386{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11387$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11388as_write_fail=0 11389cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11390#! $SHELL 11391# Generated by $as_me. 11392# Run this file to recreate the current configuration. 11393# Compiler output produced by configure, useful for debugging 11394# configure, is in config.log if it exists. 11395 11396debug=false 11397ac_cs_recheck=false 11398ac_cs_silent=false 11399 11400SHELL=\${CONFIG_SHELL-$SHELL} 11401export SHELL 11402_ASEOF 11403cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11404## -------------------- ## 11405## M4sh Initialization. ## 11406## -------------------- ## 11407 11408# Be more Bourne compatible 11409DUALCASE=1; export DUALCASE # for MKS sh 11410if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11411 emulate sh 11412 NULLCMD=: 11413 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11414 # is contrary to our usage. Disable this feature. 11415 alias -g '${1+"$@"}'='"$@"' 11416 setopt NO_GLOB_SUBST 11417else 11418 case `(set -o) 2>/dev/null` in #( 11419 *posix*) : 11420 set -o posix ;; #( 11421 *) : 11422 ;; 11423esac 11424fi 11425 11426 11427as_nl=' 11428' 11429export as_nl 11430# Printing a long string crashes Solaris 7 /usr/bin/printf. 11431as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11432as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11433as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11434# Prefer a ksh shell builtin over an external printf program on Solaris, 11435# but without wasting forks for bash or zsh. 11436if test -z "$BASH_VERSION$ZSH_VERSION" \ 11437 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11438 as_echo='print -r --' 11439 as_echo_n='print -rn --' 11440elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11441 as_echo='printf %s\n' 11442 as_echo_n='printf %s' 11443else 11444 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11445 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11446 as_echo_n='/usr/ucb/echo -n' 11447 else 11448 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11449 as_echo_n_body='eval 11450 arg=$1; 11451 case $arg in #( 11452 *"$as_nl"*) 11453 expr "X$arg" : "X\\(.*\\)$as_nl"; 11454 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11455 esac; 11456 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11457 ' 11458 export as_echo_n_body 11459 as_echo_n='sh -c $as_echo_n_body as_echo' 11460 fi 11461 export as_echo_body 11462 as_echo='sh -c $as_echo_body as_echo' 11463fi 11464 11465# The user is always right. 11466if test "${PATH_SEPARATOR+set}" != set; then 11467 PATH_SEPARATOR=: 11468 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11469 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11470 PATH_SEPARATOR=';' 11471 } 11472fi 11473 11474 11475# IFS 11476# We need space, tab and new line, in precisely that order. Quoting is 11477# there to prevent editors from complaining about space-tab. 11478# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11479# splitting by setting IFS to empty value.) 11480IFS=" "" $as_nl" 11481 11482# Find who we are. Look in the path if we contain no directory separator. 11483case $0 in #(( 11484 *[\\/]* ) as_myself=$0 ;; 11485 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11486for as_dir in $PATH 11487do 11488 IFS=$as_save_IFS 11489 test -z "$as_dir" && as_dir=. 11490 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11491 done 11492IFS=$as_save_IFS 11493 11494 ;; 11495esac 11496# We did not find ourselves, most probably we were run as `sh COMMAND' 11497# in which case we are not to be found in the path. 11498if test "x$as_myself" = x; then 11499 as_myself=$0 11500fi 11501if test ! -f "$as_myself"; then 11502 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11503 exit 1 11504fi 11505 11506# Unset variables that we do not need and which cause bugs (e.g. in 11507# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11508# suppresses any "Segmentation fault" message there. '((' could 11509# trigger a bug in pdksh 5.2.14. 11510for as_var in BASH_ENV ENV MAIL MAILPATH 11511do eval test x\${$as_var+set} = xset \ 11512 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11513done 11514PS1='$ ' 11515PS2='> ' 11516PS4='+ ' 11517 11518# NLS nuisances. 11519LC_ALL=C 11520export LC_ALL 11521LANGUAGE=C 11522export LANGUAGE 11523 11524# CDPATH. 11525(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11526 11527 11528# as_fn_error ERROR [LINENO LOG_FD] 11529# --------------------------------- 11530# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11531# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11532# script with status $?, using 1 if that was 0. 11533as_fn_error () 11534{ 11535 as_status=$?; test $as_status -eq 0 && as_status=1 11536 if test "$3"; then 11537 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11538 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 11539 fi 11540 $as_echo "$as_me: error: $1" >&2 11541 as_fn_exit $as_status 11542} # as_fn_error 11543 11544 11545# as_fn_set_status STATUS 11546# ----------------------- 11547# Set $? to STATUS, without forking. 11548as_fn_set_status () 11549{ 11550 return $1 11551} # as_fn_set_status 11552 11553# as_fn_exit STATUS 11554# ----------------- 11555# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11556as_fn_exit () 11557{ 11558 set +e 11559 as_fn_set_status $1 11560 exit $1 11561} # as_fn_exit 11562 11563# as_fn_unset VAR 11564# --------------- 11565# Portably unset VAR. 11566as_fn_unset () 11567{ 11568 { eval $1=; unset $1;} 11569} 11570as_unset=as_fn_unset 11571# as_fn_append VAR VALUE 11572# ---------------------- 11573# Append the text in VALUE to the end of the definition contained in VAR. Take 11574# advantage of any shell optimizations that allow amortized linear growth over 11575# repeated appends, instead of the typical quadratic growth present in naive 11576# implementations. 11577if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11578 eval 'as_fn_append () 11579 { 11580 eval $1+=\$2 11581 }' 11582else 11583 as_fn_append () 11584 { 11585 eval $1=\$$1\$2 11586 } 11587fi # as_fn_append 11588 11589# as_fn_arith ARG... 11590# ------------------ 11591# Perform arithmetic evaluation on the ARGs, and store the result in the 11592# global $as_val. Take advantage of shells that can avoid forks. The arguments 11593# must be portable across $(()) and expr. 11594if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11595 eval 'as_fn_arith () 11596 { 11597 as_val=$(( $* )) 11598 }' 11599else 11600 as_fn_arith () 11601 { 11602 as_val=`expr "$@" || test $? -eq 1` 11603 } 11604fi # as_fn_arith 11605 11606 11607if expr a : '\(a\)' >/dev/null 2>&1 && 11608 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11609 as_expr=expr 11610else 11611 as_expr=false 11612fi 11613 11614if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11615 as_basename=basename 11616else 11617 as_basename=false 11618fi 11619 11620if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11621 as_dirname=dirname 11622else 11623 as_dirname=false 11624fi 11625 11626as_me=`$as_basename -- "$0" || 11627$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11628 X"$0" : 'X\(//\)$' \| \ 11629 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11630$as_echo X/"$0" | 11631 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11632 s//\1/ 11633 q 11634 } 11635 /^X\/\(\/\/\)$/{ 11636 s//\1/ 11637 q 11638 } 11639 /^X\/\(\/\).*/{ 11640 s//\1/ 11641 q 11642 } 11643 s/.*/./; q'` 11644 11645# Avoid depending upon Character Ranges. 11646as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11647as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11648as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11649as_cr_digits='0123456789' 11650as_cr_alnum=$as_cr_Letters$as_cr_digits 11651 11652ECHO_C= ECHO_N= ECHO_T= 11653case `echo -n x` in #((((( 11654-n*) 11655 case `echo 'xy\c'` in 11656 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11657 xy) ECHO_C='\c';; 11658 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11659 ECHO_T=' ';; 11660 esac;; 11661*) 11662 ECHO_N='-n';; 11663esac 11664 11665rm -f conf$$ conf$$.exe conf$$.file 11666if test -d conf$$.dir; then 11667 rm -f conf$$.dir/conf$$.file 11668else 11669 rm -f conf$$.dir 11670 mkdir conf$$.dir 2>/dev/null 11671fi 11672if (echo >conf$$.file) 2>/dev/null; then 11673 if ln -s conf$$.file conf$$ 2>/dev/null; then 11674 as_ln_s='ln -s' 11675 # ... but there are two gotchas: 11676 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11677 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11678 # In both cases, we have to default to `cp -p'. 11679 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11680 as_ln_s='cp -p' 11681 elif ln conf$$.file conf$$ 2>/dev/null; then 11682 as_ln_s=ln 11683 else 11684 as_ln_s='cp -p' 11685 fi 11686else 11687 as_ln_s='cp -p' 11688fi 11689rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11690rmdir conf$$.dir 2>/dev/null 11691 11692 11693# as_fn_mkdir_p 11694# ------------- 11695# Create "$as_dir" as a directory, including parents if necessary. 11696as_fn_mkdir_p () 11697{ 11698 11699 case $as_dir in #( 11700 -*) as_dir=./$as_dir;; 11701 esac 11702 test -d "$as_dir" || eval $as_mkdir_p || { 11703 as_dirs= 11704 while :; do 11705 case $as_dir in #( 11706 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11707 *) as_qdir=$as_dir;; 11708 esac 11709 as_dirs="'$as_qdir' $as_dirs" 11710 as_dir=`$as_dirname -- "$as_dir" || 11711$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11712 X"$as_dir" : 'X\(//\)[^/]' \| \ 11713 X"$as_dir" : 'X\(//\)$' \| \ 11714 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11715$as_echo X"$as_dir" | 11716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11717 s//\1/ 11718 q 11719 } 11720 /^X\(\/\/\)[^/].*/{ 11721 s//\1/ 11722 q 11723 } 11724 /^X\(\/\/\)$/{ 11725 s//\1/ 11726 q 11727 } 11728 /^X\(\/\).*/{ 11729 s//\1/ 11730 q 11731 } 11732 s/.*/./; q'` 11733 test -d "$as_dir" && break 11734 done 11735 test -z "$as_dirs" || eval "mkdir $as_dirs" 11736 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 11737 11738 11739} # as_fn_mkdir_p 11740if mkdir -p . 2>/dev/null; then 11741 as_mkdir_p='mkdir -p "$as_dir"' 11742else 11743 test -d ./-p && rmdir ./-p 11744 as_mkdir_p=false 11745fi 11746 11747if test -x / >/dev/null 2>&1; then 11748 as_test_x='test -x' 11749else 11750 if ls -dL / >/dev/null 2>&1; then 11751 as_ls_L_option=L 11752 else 11753 as_ls_L_option= 11754 fi 11755 as_test_x=' 11756 eval sh -c '\'' 11757 if test -d "$1"; then 11758 test -d "$1/."; 11759 else 11760 case $1 in #( 11761 -*)set "./$1";; 11762 esac; 11763 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11764 ???[sx]*):;;*)false;;esac;fi 11765 '\'' sh 11766 ' 11767fi 11768as_executable_p=$as_test_x 11769 11770# Sed expression to map a string onto a valid CPP name. 11771as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11772 11773# Sed expression to map a string onto a valid variable name. 11774as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11775 11776 11777exec 6>&1 11778## ----------------------------------- ## 11779## Main body of $CONFIG_STATUS script. ## 11780## ----------------------------------- ## 11781_ASEOF 11782test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11783 11784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11785# Save the log message, to keep $0 and so on meaningful, and to 11786# report actual input values of CONFIG_FILES etc. instead of their 11787# values after options handling. 11788ac_log=" 11789This file was extended by $as_me, which was 11790generated by GNU Autoconf 2.64. Invocation command line was 11791 11792 CONFIG_FILES = $CONFIG_FILES 11793 CONFIG_HEADERS = $CONFIG_HEADERS 11794 CONFIG_LINKS = $CONFIG_LINKS 11795 CONFIG_COMMANDS = $CONFIG_COMMANDS 11796 $ $0 $@ 11797 11798on `(hostname || uname -n) 2>/dev/null | sed 1q` 11799" 11800 11801_ACEOF 11802 11803case $ac_config_files in *" 11804"*) set x $ac_config_files; shift; ac_config_files=$*;; 11805esac 11806 11807 11808 11809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11810# Files that config.status was made for. 11811config_files="$ac_config_files" 11812config_commands="$ac_config_commands" 11813 11814_ACEOF 11815 11816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11817ac_cs_usage="\ 11818\`$as_me' instantiates files and other configuration actions 11819from templates according to the current configuration. Unless the files 11820and actions are specified as TAGs, all are instantiated by default. 11821 11822Usage: $0 [OPTION]... [TAG]... 11823 11824 -h, --help print this help, then exit 11825 -V, --version print version number and configuration settings, then exit 11826 -q, --quiet, --silent 11827 do not print progress messages 11828 -d, --debug don't remove temporary files 11829 --recheck update $as_me by reconfiguring in the same conditions 11830 --file=FILE[:TEMPLATE] 11831 instantiate the configuration file FILE 11832 11833Configuration files: 11834$config_files 11835 11836Configuration commands: 11837$config_commands 11838 11839Report bugs to the package provider." 11840 11841_ACEOF 11842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11843ac_cs_version="\\ 11844config.status 11845configured by $0, generated by GNU Autoconf 2.64, 11846 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11847 11848Copyright (C) 2009 Free Software Foundation, Inc. 11849This config.status script is free software; the Free Software Foundation 11850gives unlimited permission to copy, distribute and modify it." 11851 11852ac_pwd='$ac_pwd' 11853srcdir='$srcdir' 11854INSTALL='$INSTALL' 11855MKDIR_P='$MKDIR_P' 11856AWK='$AWK' 11857test -n "\$AWK" || AWK=awk 11858_ACEOF 11859 11860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11861# The default lists apply if the user does not specify any file. 11862ac_need_defaults=: 11863while test $# != 0 11864do 11865 case $1 in 11866 --*=*) 11867 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11868 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11869 ac_shift=: 11870 ;; 11871 *) 11872 ac_option=$1 11873 ac_optarg=$2 11874 ac_shift=shift 11875 ;; 11876 esac 11877 11878 case $ac_option in 11879 # Handling of the options. 11880 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11881 ac_cs_recheck=: ;; 11882 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11883 $as_echo "$ac_cs_version"; exit ;; 11884 --debug | --debu | --deb | --de | --d | -d ) 11885 debug=: ;; 11886 --file | --fil | --fi | --f ) 11887 $ac_shift 11888 case $ac_optarg in 11889 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11890 esac 11891 as_fn_append CONFIG_FILES " '$ac_optarg'" 11892 ac_need_defaults=false;; 11893 --he | --h | --help | --hel | -h ) 11894 $as_echo "$ac_cs_usage"; exit ;; 11895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11896 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11897 ac_cs_silent=: ;; 11898 11899 # This is an error. 11900 -*) as_fn_error "unrecognized option: \`$1' 11901Try \`$0 --help' for more information." ;; 11902 11903 *) as_fn_append ac_config_targets " $1" 11904 ac_need_defaults=false ;; 11905 11906 esac 11907 shift 11908done 11909 11910ac_configure_extra_args= 11911 11912if $ac_cs_silent; then 11913 exec 6>/dev/null 11914 ac_configure_extra_args="$ac_configure_extra_args --silent" 11915fi 11916 11917_ACEOF 11918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11919if \$ac_cs_recheck; then 11920 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11921 shift 11922 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11923 CONFIG_SHELL='$SHELL' 11924 export CONFIG_SHELL 11925 exec "\$@" 11926fi 11927 11928_ACEOF 11929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11930exec 5>>config.log 11931{ 11932 echo 11933 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11934## Running $as_me. ## 11935_ASBOX 11936 $as_echo "$ac_log" 11937} >&5 11938 11939_ACEOF 11940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11941# 11942# INIT-COMMANDS 11943# 11944 11945srcdir="$srcdir" 11946host="$host" 11947target="$target" 11948with_multisubdir="$with_multisubdir" 11949with_multisrctop="$with_multisrctop" 11950with_target_subdir="$with_target_subdir" 11951ac_configure_args="${multilib_arg} ${ac_configure_args}" 11952multi_basedir="$multi_basedir" 11953CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 11954CC="$CC" 11955CXX="$CXX" 11956GFORTRAN="$GFORTRAN" 11957GCJ="$GCJ" 11958AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11959 11960 11961# The HP-UX ksh and POSIX shell print the target directory to stdout 11962# if CDPATH is set. 11963(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11964 11965sed_quote_subst='$sed_quote_subst' 11966double_quote_subst='$double_quote_subst' 11967delay_variable_subst='$delay_variable_subst' 11968macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 11969macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 11970enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 11971enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 11972pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 11973enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 11974SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 11975ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 11976host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 11977host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 11978host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 11979build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 11980build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 11981build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 11982SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 11983Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 11984GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 11985EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 11986FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 11987LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 11988NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 11989LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 11990max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 11991ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 11992exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 11993lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 11994lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 11995lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 11996reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 11997reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 11998OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 11999deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 12000file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 12001AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 12002AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 12003STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 12004RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12005old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12006old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12007old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12008lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12009CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12010CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12011compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12012GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12013lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12014lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12015lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12016lt_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"`' 12017objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12018MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12019lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12020lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12021lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12022lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12023lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12024need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12025DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12026NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12027LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12028OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12029OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12030libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12031shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12032extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12033archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12034enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12035export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12036whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 12037compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 12038old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 12039old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12040archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 12041archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12042module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 12043module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12044with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12045allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12046no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12047hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12048hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 12049hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12050hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12051hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12052hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12053hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12054hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12055inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12056link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12057fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 12058always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12059export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12060exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12061include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12062prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12063file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12064variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12065need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12066need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12067version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12068runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12069shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12070shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12071libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12072library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12073soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12074install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12075postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12076postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12077finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12078finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12079hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12080sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12081sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12082hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12083enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12084enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12085enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12086old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12087striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12088 12089LTCC='$LTCC' 12090LTCFLAGS='$LTCFLAGS' 12091compiler='$compiler_DEFAULT' 12092 12093# A function that is used when there is no print builtin or printf. 12094func_fallback_echo () 12095{ 12096 eval 'cat <<_LTECHO_EOF 12097\$1 12098_LTECHO_EOF' 12099} 12100 12101# Quote evaled strings. 12102for var in SHELL \ 12103ECHO \ 12104SED \ 12105GREP \ 12106EGREP \ 12107FGREP \ 12108LD \ 12109NM \ 12110LN_S \ 12111lt_SP2NL \ 12112lt_NL2SP \ 12113reload_flag \ 12114OBJDUMP \ 12115deplibs_check_method \ 12116file_magic_cmd \ 12117AR \ 12118AR_FLAGS \ 12119STRIP \ 12120RANLIB \ 12121CC \ 12122CFLAGS \ 12123compiler \ 12124lt_cv_sys_global_symbol_pipe \ 12125lt_cv_sys_global_symbol_to_cdecl \ 12126lt_cv_sys_global_symbol_to_c_name_address \ 12127lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12128lt_prog_compiler_no_builtin_flag \ 12129lt_prog_compiler_wl \ 12130lt_prog_compiler_pic \ 12131lt_prog_compiler_static \ 12132lt_cv_prog_compiler_c_o \ 12133need_locks \ 12134DSYMUTIL \ 12135NMEDIT \ 12136LIPO \ 12137OTOOL \ 12138OTOOL64 \ 12139shrext_cmds \ 12140export_dynamic_flag_spec \ 12141whole_archive_flag_spec \ 12142compiler_needs_object \ 12143with_gnu_ld \ 12144allow_undefined_flag \ 12145no_undefined_flag \ 12146hardcode_libdir_flag_spec \ 12147hardcode_libdir_flag_spec_ld \ 12148hardcode_libdir_separator \ 12149fix_srcfile_path \ 12150exclude_expsyms \ 12151include_expsyms \ 12152file_list_spec \ 12153variables_saved_for_relink \ 12154libname_spec \ 12155library_names_spec \ 12156soname_spec \ 12157install_override_mode \ 12158finish_eval \ 12159old_striplib \ 12160striplib; do 12161 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12162 *[\\\\\\\`\\"\\\$]*) 12163 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12164 ;; 12165 *) 12166 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12167 ;; 12168 esac 12169done 12170 12171# Double-quote double-evaled strings. 12172for var in reload_cmds \ 12173old_postinstall_cmds \ 12174old_postuninstall_cmds \ 12175old_archive_cmds \ 12176extract_expsyms_cmds \ 12177old_archive_from_new_cmds \ 12178old_archive_from_expsyms_cmds \ 12179archive_cmds \ 12180archive_expsym_cmds \ 12181module_cmds \ 12182module_expsym_cmds \ 12183export_symbols_cmds \ 12184prelink_cmds \ 12185postinstall_cmds \ 12186postuninstall_cmds \ 12187finish_cmds \ 12188sys_lib_search_path_spec \ 12189sys_lib_dlsearch_path_spec; do 12190 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12191 *[\\\\\\\`\\"\\\$]*) 12192 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12193 ;; 12194 *) 12195 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12196 ;; 12197 esac 12198done 12199 12200ac_aux_dir='$ac_aux_dir' 12201xsi_shell='$xsi_shell' 12202lt_shell_append='$lt_shell_append' 12203 12204# See if we are running on zsh, and set the options which allow our 12205# commands through without removal of \ escapes INIT. 12206if test -n "\${ZSH_VERSION+set}" ; then 12207 setopt NO_GLOB_SUBST 12208fi 12209 12210 12211 PACKAGE='$PACKAGE' 12212 VERSION='$VERSION' 12213 TIMESTAMP='$TIMESTAMP' 12214 RM='$RM' 12215 ofile='$ofile' 12216 12217 12218 12219 12220_ACEOF 12221 12222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12223 12224# Handling of arguments. 12225for ac_config_target in $ac_config_targets 12226do 12227 case $ac_config_target in 12228 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 12229 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12230 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12231 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12232 12233 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12234 esac 12235done 12236 12237 12238# If the user did not use the arguments to specify the items to instantiate, 12239# then the envvar interface is used. Set only those that are not. 12240# We use the long form for the default assignment because of an extremely 12241# bizarre bug on SunOS 4.1.3. 12242if $ac_need_defaults; then 12243 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12244 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12245fi 12246 12247# Have a temporary directory for convenience. Make it in the build tree 12248# simply because there is no reason against having it here, and in addition, 12249# creating and moving files from /tmp can sometimes cause problems. 12250# Hook for its removal unless debugging. 12251# Note that there is a small window in which the directory will not be cleaned: 12252# after its creation but before its name has been assigned to `$tmp'. 12253$debug || 12254{ 12255 tmp= 12256 trap 'exit_status=$? 12257 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12258' 0 12259 trap 'as_fn_exit 1' 1 2 13 15 12260} 12261# Create a (secure) tmp directory for tmp files. 12262 12263{ 12264 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12265 test -n "$tmp" && test -d "$tmp" 12266} || 12267{ 12268 tmp=./conf$$-$RANDOM 12269 (umask 077 && mkdir "$tmp") 12270} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 12271 12272# Set up the scripts for CONFIG_FILES section. 12273# No need to generate them if there are no CONFIG_FILES. 12274# This happens for instance with `./config.status config.h'. 12275if test -n "$CONFIG_FILES"; then 12276 12277 12278ac_cr=`echo X | tr X '\015'` 12279# On cygwin, bash can eat \r inside `` if the user requested igncr. 12280# But we know of no other shell where ac_cr would be empty at this 12281# point, so we can use a bashism as a fallback. 12282if test "x$ac_cr" = x; then 12283 eval ac_cr=\$\'\\r\' 12284fi 12285ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12286if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12287 ac_cs_awk_cr='\r' 12288else 12289 ac_cs_awk_cr=$ac_cr 12290fi 12291 12292echo 'BEGIN {' >"$tmp/subs1.awk" && 12293_ACEOF 12294 12295 12296{ 12297 echo "cat >conf$$subs.awk <<_ACEOF" && 12298 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12299 echo "_ACEOF" 12300} >conf$$subs.sh || 12301 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12302ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12303ac_delim='%!_!# ' 12304for ac_last_try in false false false false false :; do 12305 . ./conf$$subs.sh || 12306 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12307 12308 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12309 if test $ac_delim_n = $ac_delim_num; then 12310 break 12311 elif $ac_last_try; then 12312 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12313 else 12314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12315 fi 12316done 12317rm -f conf$$subs.sh 12318 12319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12320cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12321_ACEOF 12322sed -n ' 12323h 12324s/^/S["/; s/!.*/"]=/ 12325p 12326g 12327s/^[^!]*!// 12328:repl 12329t repl 12330s/'"$ac_delim"'$// 12331t delim 12332:nl 12333h 12334s/\(.\{148\}\).*/\1/ 12335t more1 12336s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12337p 12338n 12339b repl 12340:more1 12341s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12342p 12343g 12344s/.\{148\}// 12345t nl 12346:delim 12347h 12348s/\(.\{148\}\).*/\1/ 12349t more2 12350s/["\\]/\\&/g; s/^/"/; s/$/"/ 12351p 12352b 12353:more2 12354s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12355p 12356g 12357s/.\{148\}// 12358t delim 12359' <conf$$subs.awk | sed ' 12360/^[^""]/{ 12361 N 12362 s/\n// 12363} 12364' >>$CONFIG_STATUS || ac_write_fail=1 12365rm -f conf$$subs.awk 12366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12367_ACAWK 12368cat >>"\$tmp/subs1.awk" <<_ACAWK && 12369 for (key in S) S_is_set[key] = 1 12370 FS = "" 12371 12372} 12373{ 12374 line = $ 0 12375 nfields = split(line, field, "@") 12376 substed = 0 12377 len = length(field[1]) 12378 for (i = 2; i < nfields; i++) { 12379 key = field[i] 12380 keylen = length(key) 12381 if (S_is_set[key]) { 12382 value = S[key] 12383 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12384 len += length(value) + length(field[++i]) 12385 substed = 1 12386 } else 12387 len += 1 + keylen 12388 } 12389 12390 print line 12391} 12392 12393_ACAWK 12394_ACEOF 12395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12396if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12397 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12398else 12399 cat 12400fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12401 || as_fn_error "could not setup config files machinery" "$LINENO" 5 12402_ACEOF 12403 12404# VPATH may cause trouble with some makes, so we remove $(srcdir), 12405# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12406# trailing colons and then remove the whole line if VPATH becomes empty 12407# (actually we leave an empty line to preserve line numbers). 12408if test "x$srcdir" = x.; then 12409 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12410s/:*\$(srcdir):*/:/ 12411s/:*\${srcdir}:*/:/ 12412s/:*@srcdir@:*/:/ 12413s/^\([^=]*=[ ]*\):*/\1/ 12414s/:*$// 12415s/^[^=]*=[ ]*$// 12416}' 12417fi 12418 12419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12420fi # test -n "$CONFIG_FILES" 12421 12422 12423eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 12424shift 12425for ac_tag 12426do 12427 case $ac_tag in 12428 :[FHLC]) ac_mode=$ac_tag; continue;; 12429 esac 12430 case $ac_mode$ac_tag in 12431 :[FHL]*:*);; 12432 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 12433 :[FH]-) ac_tag=-:-;; 12434 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12435 esac 12436 ac_save_IFS=$IFS 12437 IFS=: 12438 set x $ac_tag 12439 IFS=$ac_save_IFS 12440 shift 12441 ac_file=$1 12442 shift 12443 12444 case $ac_mode in 12445 :L) ac_source=$1;; 12446 :[FH]) 12447 ac_file_inputs= 12448 for ac_f 12449 do 12450 case $ac_f in 12451 -) ac_f="$tmp/stdin";; 12452 *) # Look for the file first in the build tree, then in the source tree 12453 # (if the path is not absolute). The absolute path cannot be DOS-style, 12454 # because $ac_f cannot contain `:'. 12455 test -f "$ac_f" || 12456 case $ac_f in 12457 [\\/$]*) false;; 12458 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12459 esac || 12460 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12461 esac 12462 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12463 as_fn_append ac_file_inputs " '$ac_f'" 12464 done 12465 12466 # Let's still pretend it is `configure' which instantiates (i.e., don't 12467 # use $as_me), people would be surprised to read: 12468 # /* config.h. Generated by config.status. */ 12469 configure_input='Generated from '` 12470 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12471 `' by configure.' 12472 if test x"$ac_file" != x-; then 12473 configure_input="$ac_file. $configure_input" 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12475$as_echo "$as_me: creating $ac_file" >&6;} 12476 fi 12477 # Neutralize special characters interpreted by sed in replacement strings. 12478 case $configure_input in #( 12479 *\&* | *\|* | *\\* ) 12480 ac_sed_conf_input=`$as_echo "$configure_input" | 12481 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12482 *) ac_sed_conf_input=$configure_input;; 12483 esac 12484 12485 case $ac_tag in 12486 *:-:* | *:-) cat >"$tmp/stdin" \ 12487 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 12488 esac 12489 ;; 12490 esac 12491 12492 ac_dir=`$as_dirname -- "$ac_file" || 12493$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12494 X"$ac_file" : 'X\(//\)[^/]' \| \ 12495 X"$ac_file" : 'X\(//\)$' \| \ 12496 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12497$as_echo X"$ac_file" | 12498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12499 s//\1/ 12500 q 12501 } 12502 /^X\(\/\/\)[^/].*/{ 12503 s//\1/ 12504 q 12505 } 12506 /^X\(\/\/\)$/{ 12507 s//\1/ 12508 q 12509 } 12510 /^X\(\/\).*/{ 12511 s//\1/ 12512 q 12513 } 12514 s/.*/./; q'` 12515 as_dir="$ac_dir"; as_fn_mkdir_p 12516 ac_builddir=. 12517 12518case "$ac_dir" in 12519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12520*) 12521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12522 # A ".." for each directory in $ac_dir_suffix. 12523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12524 case $ac_top_builddir_sub in 12525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12527 esac ;; 12528esac 12529ac_abs_top_builddir=$ac_pwd 12530ac_abs_builddir=$ac_pwd$ac_dir_suffix 12531# for backward compatibility: 12532ac_top_builddir=$ac_top_build_prefix 12533 12534case $srcdir in 12535 .) # We are building in place. 12536 ac_srcdir=. 12537 ac_top_srcdir=$ac_top_builddir_sub 12538 ac_abs_top_srcdir=$ac_pwd ;; 12539 [\\/]* | ?:[\\/]* ) # Absolute name. 12540 ac_srcdir=$srcdir$ac_dir_suffix; 12541 ac_top_srcdir=$srcdir 12542 ac_abs_top_srcdir=$srcdir ;; 12543 *) # Relative name. 12544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12545 ac_top_srcdir=$ac_top_build_prefix$srcdir 12546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12547esac 12548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12549 12550 12551 case $ac_mode in 12552 :F) 12553 # 12554 # CONFIG_FILE 12555 # 12556 12557 case $INSTALL in 12558 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12559 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12560 esac 12561 ac_MKDIR_P=$MKDIR_P 12562 case $MKDIR_P in 12563 [\\/$]* | ?:[\\/]* ) ;; 12564 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12565 esac 12566_ACEOF 12567 12568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12569# If the template does not know about datarootdir, expand it. 12570# FIXME: This hack should be removed a few years after 2.60. 12571ac_datarootdir_hack=; ac_datarootdir_seen= 12572ac_sed_dataroot=' 12573/datarootdir/ { 12574 p 12575 q 12576} 12577/@datadir@/p 12578/@docdir@/p 12579/@infodir@/p 12580/@localedir@/p 12581/@mandir@/p' 12582case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12583*datarootdir*) ac_datarootdir_seen=yes;; 12584*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12586$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12587_ACEOF 12588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12589 ac_datarootdir_hack=' 12590 s&@datadir@&$datadir&g 12591 s&@docdir@&$docdir&g 12592 s&@infodir@&$infodir&g 12593 s&@localedir@&$localedir&g 12594 s&@mandir@&$mandir&g 12595 s&\\\${datarootdir}&$datarootdir&g' ;; 12596esac 12597_ACEOF 12598 12599# Neutralize VPATH when `$srcdir' = `.'. 12600# Shell code in configure.ac might set extrasub. 12601# FIXME: do we really want to maintain this feature? 12602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12603ac_sed_extra="$ac_vpsub 12604$extrasub 12605_ACEOF 12606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12607:t 12608/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12609s|@configure_input@|$ac_sed_conf_input|;t t 12610s&@top_builddir@&$ac_top_builddir_sub&;t t 12611s&@top_build_prefix@&$ac_top_build_prefix&;t t 12612s&@srcdir@&$ac_srcdir&;t t 12613s&@abs_srcdir@&$ac_abs_srcdir&;t t 12614s&@top_srcdir@&$ac_top_srcdir&;t t 12615s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12616s&@builddir@&$ac_builddir&;t t 12617s&@abs_builddir@&$ac_abs_builddir&;t t 12618s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12619s&@INSTALL@&$ac_INSTALL&;t t 12620s&@MKDIR_P@&$ac_MKDIR_P&;t t 12621$ac_datarootdir_hack 12622" 12623eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 12624 || as_fn_error "could not create $ac_file" "$LINENO" 5 12625 12626test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12627 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12628 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12630which seems to be undefined. Please make sure it is defined." >&5 12631$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12632which seems to be undefined. Please make sure it is defined." >&2;} 12633 12634 rm -f "$tmp/stdin" 12635 case $ac_file in 12636 -) cat "$tmp/out" && rm -f "$tmp/out";; 12637 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 12638 esac \ 12639 || as_fn_error "could not create $ac_file" "$LINENO" 5 12640 ;; 12641 12642 12643 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12644$as_echo "$as_me: executing $ac_file commands" >&6;} 12645 ;; 12646 esac 12647 12648 12649 case $ac_file$ac_mode in 12650 "default-1":C) 12651# Only add multilib support code if we just rebuilt the top-level 12652# Makefile. 12653case " $CONFIG_FILES " in 12654 *" Makefile "*) 12655 ac_file=Makefile . ${multi_basedir}/config-ml.in 12656 ;; 12657esac ;; 12658 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12659 # Autoconf 2.62 quotes --file arguments for eval, but not when files 12660 # are listed without --file. Let's play safe and only enable the eval 12661 # if we detect the quoting. 12662 case $CONFIG_FILES in 12663 *\'*) eval set x "$CONFIG_FILES" ;; 12664 *) set x $CONFIG_FILES ;; 12665 esac 12666 shift 12667 for mf 12668 do 12669 # Strip MF so we end up with the name of the file. 12670 mf=`echo "$mf" | sed -e 's/:.*$//'` 12671 # Check whether this is an Automake generated Makefile or not. 12672 # We used to match only the files named `Makefile.in', but 12673 # some people rename them; so instead we look at the file content. 12674 # Grep'ing the first line is not enough: some people post-process 12675 # each Makefile.in and add a new line on top of each file to say so. 12676 # Grep'ing the whole file is not good either: AIX grep has a line 12677 # limit of 2048, but all sed's we know have understand at least 4000. 12678 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12679 dirpart=`$as_dirname -- "$mf" || 12680$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12681 X"$mf" : 'X\(//\)[^/]' \| \ 12682 X"$mf" : 'X\(//\)$' \| \ 12683 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12684$as_echo X"$mf" | 12685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12686 s//\1/ 12687 q 12688 } 12689 /^X\(\/\/\)[^/].*/{ 12690 s//\1/ 12691 q 12692 } 12693 /^X\(\/\/\)$/{ 12694 s//\1/ 12695 q 12696 } 12697 /^X\(\/\).*/{ 12698 s//\1/ 12699 q 12700 } 12701 s/.*/./; q'` 12702 else 12703 continue 12704 fi 12705 # Extract the definition of DEPDIR, am__include, and am__quote 12706 # from the Makefile without running `make'. 12707 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12708 test -z "$DEPDIR" && continue 12709 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12710 test -z "am__include" && continue 12711 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12712 # When using ansi2knr, U may be empty or an underscore; expand it 12713 U=`sed -n 's/^U = //p' < "$mf"` 12714 # Find all dependency output files, they are included files with 12715 # $(DEPDIR) in their names. We invoke sed twice because it is the 12716 # simplest approach to changing $(DEPDIR) to its actual value in the 12717 # expansion. 12718 for file in `sed -n " 12719 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12720 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12721 # Make sure the directory exists. 12722 test -f "$dirpart/$file" && continue 12723 fdir=`$as_dirname -- "$file" || 12724$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12725 X"$file" : 'X\(//\)[^/]' \| \ 12726 X"$file" : 'X\(//\)$' \| \ 12727 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12728$as_echo X"$file" | 12729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12730 s//\1/ 12731 q 12732 } 12733 /^X\(\/\/\)[^/].*/{ 12734 s//\1/ 12735 q 12736 } 12737 /^X\(\/\/\)$/{ 12738 s//\1/ 12739 q 12740 } 12741 /^X\(\/\).*/{ 12742 s//\1/ 12743 q 12744 } 12745 s/.*/./; q'` 12746 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12747 # echo "creating $dirpart/$file" 12748 echo '# dummy' > "$dirpart/$file" 12749 done 12750 done 12751} 12752 ;; 12753 "libtool":C) 12754 12755 # See if we are running on zsh, and set the options which allow our 12756 # commands through without removal of \ escapes. 12757 if test -n "${ZSH_VERSION+set}" ; then 12758 setopt NO_GLOB_SUBST 12759 fi 12760 12761 cfgfile="${ofile}T" 12762 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 12763 $RM "$cfgfile" 12764 12765 cat <<_LT_EOF >> "$cfgfile" 12766#! $SHELL 12767 12768# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 12769# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 12770# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12771# NOTE: Changes made to this file will be lost: look at ltmain.sh. 12772# 12773# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 12774# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 12775# Written by Gordon Matzigkeit, 1996 12776# 12777# This file is part of GNU Libtool. 12778# 12779# GNU Libtool is free software; you can redistribute it and/or 12780# modify it under the terms of the GNU General Public License as 12781# published by the Free Software Foundation; either version 2 of 12782# the License, or (at your option) any later version. 12783# 12784# As a special exception to the GNU General Public License, 12785# if you distribute this file as part of a program or library that 12786# is built using GNU Libtool, you may include this file under the 12787# same distribution terms that you use for the rest of that program. 12788# 12789# GNU Libtool is distributed in the hope that it will be useful, 12790# but WITHOUT ANY WARRANTY; without even the implied warranty of 12791# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12792# GNU General Public License for more details. 12793# 12794# You should have received a copy of the GNU General Public License 12795# along with GNU Libtool; see the file COPYING. If not, a copy 12796# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 12797# obtained by writing to the Free Software Foundation, Inc., 12798# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 12799 12800 12801# The names of the tagged configurations supported by this script. 12802available_tags="" 12803 12804# ### BEGIN LIBTOOL CONFIG 12805 12806# Which release of libtool.m4 was used? 12807macro_version=$macro_version 12808macro_revision=$macro_revision 12809 12810# Whether or not to build shared libraries. 12811build_libtool_libs=$enable_shared 12812 12813# Whether or not to build static libraries. 12814build_old_libs=$enable_static 12815 12816# What type of objects to build. 12817pic_mode=$pic_mode 12818 12819# Whether or not to optimize for fast installation. 12820fast_install=$enable_fast_install 12821 12822# Shell to use when invoking shell scripts. 12823SHELL=$lt_SHELL 12824 12825# An echo program that protects backslashes. 12826ECHO=$lt_ECHO 12827 12828# The host system. 12829host_alias=$host_alias 12830host=$host 12831host_os=$host_os 12832 12833# The build system. 12834build_alias=$build_alias 12835build=$build 12836build_os=$build_os 12837 12838# A sed program that does not truncate output. 12839SED=$lt_SED 12840 12841# Sed that helps us avoid accidentally triggering echo(1) options like -n. 12842Xsed="\$SED -e 1s/^X//" 12843 12844# A grep program that handles long lines. 12845GREP=$lt_GREP 12846 12847# An ERE matcher. 12848EGREP=$lt_EGREP 12849 12850# A literal string matcher. 12851FGREP=$lt_FGREP 12852 12853# A BSD- or MS-compatible name lister. 12854NM=$lt_NM 12855 12856# Whether we need soft or hard links. 12857LN_S=$lt_LN_S 12858 12859# What is the maximum length of a command? 12860max_cmd_len=$max_cmd_len 12861 12862# Object file suffix (normally "o"). 12863objext=$ac_objext 12864 12865# Executable file suffix (normally ""). 12866exeext=$exeext 12867 12868# whether the shell understands "unset". 12869lt_unset=$lt_unset 12870 12871# turn spaces into newlines. 12872SP2NL=$lt_lt_SP2NL 12873 12874# turn newlines into spaces. 12875NL2SP=$lt_lt_NL2SP 12876 12877# An object symbol dumper. 12878OBJDUMP=$lt_OBJDUMP 12879 12880# Method to check whether dependent libraries are shared objects. 12881deplibs_check_method=$lt_deplibs_check_method 12882 12883# Command to use when deplibs_check_method == "file_magic". 12884file_magic_cmd=$lt_file_magic_cmd 12885 12886# The archiver. 12887AR=$lt_AR 12888AR_FLAGS=$lt_AR_FLAGS 12889 12890# A symbol stripping program. 12891STRIP=$lt_STRIP 12892 12893# Commands used to install an old-style archive. 12894RANLIB=$lt_RANLIB 12895old_postinstall_cmds=$lt_old_postinstall_cmds 12896old_postuninstall_cmds=$lt_old_postuninstall_cmds 12897 12898# Whether to use a lock for old archive extraction. 12899lock_old_archive_extraction=$lock_old_archive_extraction 12900 12901# A C compiler. 12902LTCC=$lt_CC 12903 12904# LTCC compiler flags. 12905LTCFLAGS=$lt_CFLAGS 12906 12907# Take the output of nm and produce a listing of raw symbols and C names. 12908global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12909 12910# Transform the output of nm in a proper C declaration. 12911global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12912 12913# Transform the output of nm in a C name address pair. 12914global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12915 12916# Transform the output of nm in a C name address pair when lib prefix is needed. 12917global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 12918 12919# The name of the directory that contains temporary libtool files. 12920objdir=$objdir 12921 12922# Used to examine libraries when file_magic_cmd begins with "file". 12923MAGIC_CMD=$MAGIC_CMD 12924 12925# Must we lock files when doing compilation? 12926need_locks=$lt_need_locks 12927 12928# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 12929DSYMUTIL=$lt_DSYMUTIL 12930 12931# Tool to change global to local symbols on Mac OS X. 12932NMEDIT=$lt_NMEDIT 12933 12934# Tool to manipulate fat objects and archives on Mac OS X. 12935LIPO=$lt_LIPO 12936 12937# ldd/readelf like tool for Mach-O binaries on Mac OS X. 12938OTOOL=$lt_OTOOL 12939 12940# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 12941OTOOL64=$lt_OTOOL64 12942 12943# Old archive suffix (normally "a"). 12944libext=$libext 12945 12946# Shared library suffix (normally ".so"). 12947shrext_cmds=$lt_shrext_cmds 12948 12949# The commands to extract the exported symbol list from a shared archive. 12950extract_expsyms_cmds=$lt_extract_expsyms_cmds 12951 12952# Variables whose values should be saved in libtool wrapper scripts and 12953# restored at link time. 12954variables_saved_for_relink=$lt_variables_saved_for_relink 12955 12956# Do we need the "lib" prefix for modules? 12957need_lib_prefix=$need_lib_prefix 12958 12959# Do we need a version for libraries? 12960need_version=$need_version 12961 12962# Library versioning type. 12963version_type=$version_type 12964 12965# Shared library runtime path variable. 12966runpath_var=$runpath_var 12967 12968# Shared library path variable. 12969shlibpath_var=$shlibpath_var 12970 12971# Is shlibpath searched before the hard-coded library search path? 12972shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12973 12974# Format of library name prefix. 12975libname_spec=$lt_libname_spec 12976 12977# List of archive names. First name is the real one, the rest are links. 12978# The last name is the one that the linker finds with -lNAME 12979library_names_spec=$lt_library_names_spec 12980 12981# The coded name of the library, if different from the real name. 12982soname_spec=$lt_soname_spec 12983 12984# Permission mode override for installation of shared libraries. 12985install_override_mode=$lt_install_override_mode 12986 12987# Command to use after installation of a shared archive. 12988postinstall_cmds=$lt_postinstall_cmds 12989 12990# Command to use after uninstallation of a shared archive. 12991postuninstall_cmds=$lt_postuninstall_cmds 12992 12993# Commands used to finish a libtool library installation in a directory. 12994finish_cmds=$lt_finish_cmds 12995 12996# As "finish_cmds", except a single script fragment to be evaled but 12997# not shown. 12998finish_eval=$lt_finish_eval 12999 13000# Whether we should hardcode library paths into libraries. 13001hardcode_into_libs=$hardcode_into_libs 13002 13003# Compile-time system search path for libraries. 13004sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13005 13006# Run-time system search path for libraries. 13007sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13008 13009# Whether dlopen is supported. 13010dlopen_support=$enable_dlopen 13011 13012# Whether dlopen of programs is supported. 13013dlopen_self=$enable_dlopen_self 13014 13015# Whether dlopen of statically linked programs is supported. 13016dlopen_self_static=$enable_dlopen_self_static 13017 13018# Commands to strip libraries. 13019old_striplib=$lt_old_striplib 13020striplib=$lt_striplib 13021 13022 13023# The linker used to build libraries. 13024LD=$lt_LD 13025 13026# How to create reloadable object files. 13027reload_flag=$lt_reload_flag 13028reload_cmds=$lt_reload_cmds 13029 13030# Commands used to build an old-style archive. 13031old_archive_cmds=$lt_old_archive_cmds 13032 13033# A language specific compiler. 13034CC=$lt_compiler 13035 13036# Is the compiler the GNU compiler? 13037with_gcc=$GCC 13038 13039# Compiler flag to turn off builtin functions. 13040no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13041 13042# How to pass a linker flag through the compiler. 13043wl=$lt_lt_prog_compiler_wl 13044 13045# Additional compiler flags for building library objects. 13046pic_flag=$lt_lt_prog_compiler_pic 13047 13048# Compiler flag to prevent dynamic linking. 13049link_static_flag=$lt_lt_prog_compiler_static 13050 13051# Does compiler simultaneously support -c and -o options? 13052compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13053 13054# Whether or not to add -lc for building shared libraries. 13055build_libtool_need_lc=$archive_cmds_need_lc 13056 13057# Whether or not to disallow shared libs when runtime libs are static. 13058allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13059 13060# Compiler flag to allow reflexive dlopens. 13061export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13062 13063# Compiler flag to generate shared objects directly from archives. 13064whole_archive_flag_spec=$lt_whole_archive_flag_spec 13065 13066# Whether the compiler copes with passing no objects directly. 13067compiler_needs_object=$lt_compiler_needs_object 13068 13069# Create an old-style archive from a shared archive. 13070old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13071 13072# Create a temporary old-style archive to link instead of a shared archive. 13073old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13074 13075# Commands used to build a shared archive. 13076archive_cmds=$lt_archive_cmds 13077archive_expsym_cmds=$lt_archive_expsym_cmds 13078 13079# Commands used to build a loadable module if different from building 13080# a shared archive. 13081module_cmds=$lt_module_cmds 13082module_expsym_cmds=$lt_module_expsym_cmds 13083 13084# Whether we are building with GNU ld or not. 13085with_gnu_ld=$lt_with_gnu_ld 13086 13087# Flag that allows shared libraries with undefined symbols to be built. 13088allow_undefined_flag=$lt_allow_undefined_flag 13089 13090# Flag that enforces no undefined symbols. 13091no_undefined_flag=$lt_no_undefined_flag 13092 13093# Flag to hardcode \$libdir into a binary during linking. 13094# This must work even if \$libdir does not exist 13095hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13096 13097# If ld is used when linking, flag to hardcode \$libdir into a binary 13098# during linking. This must work even if \$libdir does not exist. 13099hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13100 13101# Whether we need a single "-rpath" flag with a separated argument. 13102hardcode_libdir_separator=$lt_hardcode_libdir_separator 13103 13104# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13105# DIR into the resulting binary. 13106hardcode_direct=$hardcode_direct 13107 13108# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13109# DIR into the resulting binary and the resulting library dependency is 13110# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13111# library is relocated. 13112hardcode_direct_absolute=$hardcode_direct_absolute 13113 13114# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13115# into the resulting binary. 13116hardcode_minus_L=$hardcode_minus_L 13117 13118# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13119# into the resulting binary. 13120hardcode_shlibpath_var=$hardcode_shlibpath_var 13121 13122# Set to "yes" if building a shared library automatically hardcodes DIR 13123# into the library and all subsequent libraries and executables linked 13124# against it. 13125hardcode_automatic=$hardcode_automatic 13126 13127# Set to yes if linker adds runtime paths of dependent libraries 13128# to runtime path list. 13129inherit_rpath=$inherit_rpath 13130 13131# Whether libtool must link a program against all its dependency libraries. 13132link_all_deplibs=$link_all_deplibs 13133 13134# Fix the shell variable \$srcfile for the compiler. 13135fix_srcfile_path=$lt_fix_srcfile_path 13136 13137# Set to "yes" if exported symbols are required. 13138always_export_symbols=$always_export_symbols 13139 13140# The commands to list exported symbols. 13141export_symbols_cmds=$lt_export_symbols_cmds 13142 13143# Symbols that should not be listed in the preloaded symbols. 13144exclude_expsyms=$lt_exclude_expsyms 13145 13146# Symbols that must always be exported. 13147include_expsyms=$lt_include_expsyms 13148 13149# Commands necessary for linking programs (against libraries) with templates. 13150prelink_cmds=$lt_prelink_cmds 13151 13152# Specify filename containing input files. 13153file_list_spec=$lt_file_list_spec 13154 13155# How to hardcode a shared library path into an executable. 13156hardcode_action=$hardcode_action 13157 13158# ### END LIBTOOL CONFIG 13159 13160_LT_EOF 13161 13162 case $host_os in 13163 aix3*) 13164 cat <<\_LT_EOF >> "$cfgfile" 13165# AIX sometimes has problems with the GCC collect2 program. For some 13166# reason, if we set the COLLECT_NAMES environment variable, the problems 13167# vanish in a puff of smoke. 13168if test "X${COLLECT_NAMES+set}" != Xset; then 13169 COLLECT_NAMES= 13170 export COLLECT_NAMES 13171fi 13172_LT_EOF 13173 ;; 13174 esac 13175 13176 13177ltmain="$ac_aux_dir/ltmain.sh" 13178 13179 13180 # We use sed instead of cat because bash on DJGPP gets confused if 13181 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13182 # text mode, it properly converts lines to CR/LF. This bash problem 13183 # is reportedly fixed, but why not run on old versions too? 13184 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13185 || (rm -f "$cfgfile"; exit 1) 13186 13187 case $xsi_shell in 13188 yes) 13189 cat << \_LT_EOF >> "$cfgfile" 13190 13191# func_dirname file append nondir_replacement 13192# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13193# otherwise set result to NONDIR_REPLACEMENT. 13194func_dirname () 13195{ 13196 case ${1} in 13197 */*) func_dirname_result="${1%/*}${2}" ;; 13198 * ) func_dirname_result="${3}" ;; 13199 esac 13200} 13201 13202# func_basename file 13203func_basename () 13204{ 13205 func_basename_result="${1##*/}" 13206} 13207 13208# func_dirname_and_basename file append nondir_replacement 13209# perform func_basename and func_dirname in a single function 13210# call: 13211# dirname: Compute the dirname of FILE. If nonempty, 13212# add APPEND to the result, otherwise set result 13213# to NONDIR_REPLACEMENT. 13214# value returned in "$func_dirname_result" 13215# basename: Compute filename of FILE. 13216# value retuned in "$func_basename_result" 13217# Implementation must be kept synchronized with func_dirname 13218# and func_basename. For efficiency, we do not delegate to 13219# those functions but instead duplicate the functionality here. 13220func_dirname_and_basename () 13221{ 13222 case ${1} in 13223 */*) func_dirname_result="${1%/*}${2}" ;; 13224 * ) func_dirname_result="${3}" ;; 13225 esac 13226 func_basename_result="${1##*/}" 13227} 13228 13229# func_stripname prefix suffix name 13230# strip PREFIX and SUFFIX off of NAME. 13231# PREFIX and SUFFIX must not contain globbing or regex special 13232# characters, hashes, percent signs, but SUFFIX may contain a leading 13233# dot (in which case that matches only a dot). 13234func_stripname () 13235{ 13236 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13237 # positional parameters, so assign one to ordinary parameter first. 13238 func_stripname_result=${3} 13239 func_stripname_result=${func_stripname_result#"${1}"} 13240 func_stripname_result=${func_stripname_result%"${2}"} 13241} 13242 13243# func_opt_split 13244func_opt_split () 13245{ 13246 func_opt_split_opt=${1%%=*} 13247 func_opt_split_arg=${1#*=} 13248} 13249 13250# func_lo2o object 13251func_lo2o () 13252{ 13253 case ${1} in 13254 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13255 *) func_lo2o_result=${1} ;; 13256 esac 13257} 13258 13259# func_xform libobj-or-source 13260func_xform () 13261{ 13262 func_xform_result=${1%.*}.lo 13263} 13264 13265# func_arith arithmetic-term... 13266func_arith () 13267{ 13268 func_arith_result=$(( $* )) 13269} 13270 13271# func_len string 13272# STRING may not start with a hyphen. 13273func_len () 13274{ 13275 func_len_result=${#1} 13276} 13277 13278_LT_EOF 13279 ;; 13280 *) # Bourne compatible functions. 13281 cat << \_LT_EOF >> "$cfgfile" 13282 13283# func_dirname file append nondir_replacement 13284# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13285# otherwise set result to NONDIR_REPLACEMENT. 13286func_dirname () 13287{ 13288 # Extract subdirectory from the argument. 13289 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 13290 if test "X$func_dirname_result" = "X${1}"; then 13291 func_dirname_result="${3}" 13292 else 13293 func_dirname_result="$func_dirname_result${2}" 13294 fi 13295} 13296 13297# func_basename file 13298func_basename () 13299{ 13300 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 13301} 13302 13303 13304# func_stripname prefix suffix name 13305# strip PREFIX and SUFFIX off of NAME. 13306# PREFIX and SUFFIX must not contain globbing or regex special 13307# characters, hashes, percent signs, but SUFFIX may contain a leading 13308# dot (in which case that matches only a dot). 13309# func_strip_suffix prefix name 13310func_stripname () 13311{ 13312 case ${2} in 13313 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 13314 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 13315 esac 13316} 13317 13318# sed scripts: 13319my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13320my_sed_long_arg='1s/^-[^=]*=//' 13321 13322# func_opt_split 13323func_opt_split () 13324{ 13325 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 13326 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 13327} 13328 13329# func_lo2o object 13330func_lo2o () 13331{ 13332 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 13333} 13334 13335# func_xform libobj-or-source 13336func_xform () 13337{ 13338 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 13339} 13340 13341# func_arith arithmetic-term... 13342func_arith () 13343{ 13344 func_arith_result=`expr "$@"` 13345} 13346 13347# func_len string 13348# STRING may not start with a hyphen. 13349func_len () 13350{ 13351 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13352} 13353 13354_LT_EOF 13355esac 13356 13357case $lt_shell_append in 13358 yes) 13359 cat << \_LT_EOF >> "$cfgfile" 13360 13361# func_append var value 13362# Append VALUE to the end of shell variable VAR. 13363func_append () 13364{ 13365 eval "$1+=\$2" 13366} 13367_LT_EOF 13368 ;; 13369 *) 13370 cat << \_LT_EOF >> "$cfgfile" 13371 13372# func_append var value 13373# Append VALUE to the end of shell variable VAR. 13374func_append () 13375{ 13376 eval "$1=\$$1\$2" 13377} 13378 13379_LT_EOF 13380 ;; 13381 esac 13382 13383 13384 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13385 || (rm -f "$cfgfile"; exit 1) 13386 13387 mv -f "$cfgfile" "$ofile" || 13388 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13389 chmod +x "$ofile" 13390 13391 ;; 13392 13393 esac 13394done # for ac_tag 13395 13396 13397as_fn_exit 0 13398_ACEOF 13399ac_clean_files=$ac_clean_files_save 13400 13401test $ac_write_fail = 0 || 13402 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 13403 13404 13405# configure is writing to config.log, and then calls config.status. 13406# config.status does its own redirection, appending to config.log. 13407# Unfortunately, on DOS this fails, as config.log is still kept open 13408# by configure, so config.status won't be able to write to it; its 13409# output is simply discarded. So we exec the FD to /dev/null, 13410# effectively closing config.log, so it can be properly (re)opened and 13411# appended to by config.status. When coming back to configure, we 13412# need to make the FD available again. 13413if test "$no_create" != yes; then 13414 ac_cs_success=: 13415 ac_config_status_args= 13416 test "$silent" = yes && 13417 ac_config_status_args="$ac_config_status_args --quiet" 13418 exec 5>/dev/null 13419 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13420 exec 5>>config.log 13421 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13422 # would make configure fail if this is the last instruction. 13423 $ac_cs_success || as_fn_exit $? 13424fi 13425if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13427$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13428fi 13429 13430