1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$lt_ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255ECHO=${lt_ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $ECHO works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<_LT_EOF 274$* 275_LT_EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 282 283if test -z "$lt_ECHO"; then 284 if test "X${echo_test_string+set}" != Xset; then 285 # find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 290 then 291 break 292 fi 293 done 294 fi 295 296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 298 test "X$echo_testing_string" = "X$echo_test_string"; then 299 : 300 else 301 # The Solaris, AIX, and Digital Unix default echo programs unquote 302 # backslashes. This makes it impossible to quote backslashes using 303 # echo "$something" | sed 's/\\/\\\\/g' 304 # 305 # So, first we look for a working echo in the user's PATH. 306 307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 308 for dir in $PATH /usr/ucb; do 309 IFS="$lt_save_ifs" 310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 313 test "X$echo_testing_string" = "X$echo_test_string"; then 314 ECHO="$dir/echo" 315 break 316 fi 317 done 318 IFS="$lt_save_ifs" 319 320 if test "X$ECHO" = Xecho; then 321 # We didn't find a better echo, so look for alternatives. 322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 324 test "X$echo_testing_string" = "X$echo_test_string"; then 325 # This shell has a builtin print -r that does the trick. 326 ECHO='print -r' 327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 328 test "X$CONFIG_SHELL" != X/bin/ksh; then 329 # If we have ksh, try running configure again with it. 330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 331 export ORIGINAL_CONFIG_SHELL 332 CONFIG_SHELL=/bin/ksh 333 export CONFIG_SHELL 334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 335 else 336 # Try using printf. 337 ECHO='printf %s\n' 338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 340 test "X$echo_testing_string" = "X$echo_test_string"; then 341 # Cool, printf works 342 : 343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 344 test "X$echo_testing_string" = 'X\t' && 345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 346 test "X$echo_testing_string" = "X$echo_test_string"; then 347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 348 export CONFIG_SHELL 349 SHELL="$CONFIG_SHELL" 350 export SHELL 351 ECHO="$CONFIG_SHELL $0 --fallback-echo" 352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 353 test "X$echo_testing_string" = 'X\t' && 354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 355 test "X$echo_testing_string" = "X$echo_test_string"; then 356 ECHO="$CONFIG_SHELL $0 --fallback-echo" 357 else 358 # maybe with a smaller string... 359 prev=: 360 361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 363 then 364 break 365 fi 366 prev="$cmd" 367 done 368 369 if test "$prev" != 'sed 50q "$0"'; then 370 echo_test_string=`eval $prev` 371 export echo_test_string 372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 373 else 374 # Oops. We lost completely, so just stick with echo. 375 ECHO=echo 376 fi 377 fi 378 fi 379 fi 380 fi 381fi 382 383# Copy echo and quote the copy suitably for passing to libtool from 384# the Makefile, instead of quoting the original, which is used later. 385lt_ECHO=$ECHO 386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 388fi 389 390 391 392 393# Name of the host. 394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 395# so uname gets run too. 396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 397 398exec 6>&1 399 400# 401# Initializations. 402# 403ac_default_prefix=/usr/local 404ac_config_libobj_dir=. 405cross_compiling=no 406subdirs= 407MFLAGS= 408MAKEFLAGS= 409SHELL=${CONFIG_SHELL-/bin/sh} 410 411# Maximum number of lines to put in a shell here document. 412# This variable seems obsolete. It should probably be removed, and 413# only ac_max_sed_lines should be used. 414: ${ac_max_here_lines=38} 415 416# Identity of this package. 417PACKAGE_NAME= 418PACKAGE_TARNAME= 419PACKAGE_VERSION= 420PACKAGE_STRING= 421PACKAGE_BUGREPORT= 422 423ac_unique_file="ldmain.c" 424# Factoring default headers for most tests. 425ac_includes_default="\ 426#include <stdio.h> 427#if HAVE_SYS_TYPES_H 428# include <sys/types.h> 429#endif 430#if HAVE_SYS_STAT_H 431# include <sys/stat.h> 432#endif 433#if STDC_HEADERS 434# include <stdlib.h> 435# include <stddef.h> 436#else 437# if HAVE_STDLIB_H 438# include <stdlib.h> 439# endif 440#endif 441#if HAVE_STRING_H 442# if !STDC_HEADERS && HAVE_MEMORY_H 443# include <memory.h> 444# endif 445# include <string.h> 446#endif 447#if HAVE_STRINGS_H 448# include <strings.h> 449#endif 450#if HAVE_INTTYPES_H 451# include <inttypes.h> 452#else 453# if HAVE_STDINT_H 454# include <stdint.h> 455# endif 456#endif 457#if HAVE_UNISTD_H 458# include <unistd.h> 459#endif" 460 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS' 462ac_subst_files='TDIRS' 463 464# Initialize some variables set by options. 465ac_init_help= 466ac_init_version=false 467# The variables have the same names as the options, with 468# dashes changed to underlines. 469cache_file=/dev/null 470exec_prefix=NONE 471no_create= 472no_recursion= 473prefix=NONE 474program_prefix=NONE 475program_suffix=NONE 476program_transform_name=s,x,x, 477silent= 478site= 479srcdir= 480verbose= 481x_includes=NONE 482x_libraries=NONE 483 484# Installation directory options. 485# These are left unexpanded so users can "make install exec_prefix=/foo" 486# and all the variables that are supposed to be based on exec_prefix 487# by default will actually change. 488# Use braces instead of parens because sh, perl, etc. also accept them. 489bindir='${exec_prefix}/bin' 490sbindir='${exec_prefix}/sbin' 491libexecdir='${exec_prefix}/libexec' 492datadir='${prefix}/share' 493sysconfdir='${prefix}/etc' 494sharedstatedir='${prefix}/com' 495localstatedir='${prefix}/var' 496libdir='${exec_prefix}/lib' 497includedir='${prefix}/include' 498oldincludedir='/usr/include' 499infodir='${prefix}/info' 500mandir='${prefix}/man' 501 502ac_prev= 503for ac_option 504do 505 # If the previous option needs an argument, assign it. 506 if test -n "$ac_prev"; then 507 eval "$ac_prev=\$ac_option" 508 ac_prev= 509 continue 510 fi 511 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 513 514 # Accept the important Cygnus configure options, so we can diagnose typos. 515 516 case $ac_option in 517 518 -bindir | --bindir | --bindi | --bind | --bin | --bi) 519 ac_prev=bindir ;; 520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 521 bindir=$ac_optarg ;; 522 523 -build | --build | --buil | --bui | --bu) 524 ac_prev=build_alias ;; 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 526 build_alias=$ac_optarg ;; 527 528 -cache-file | --cache-file | --cache-fil | --cache-fi \ 529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 530 ac_prev=cache_file ;; 531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 533 cache_file=$ac_optarg ;; 534 535 --config-cache | -C) 536 cache_file=config.cache ;; 537 538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 539 ac_prev=datadir ;; 540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 541 | --da=*) 542 datadir=$ac_optarg ;; 543 544 -disable-* | --disable-*) 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 546 # Reject names that are not valid shell variable names. 547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 549 { (exit 1); exit 1; }; } 550 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 551 eval "enable_$ac_feature=no" ;; 552 553 -enable-* | --enable-*) 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 555 # Reject names that are not valid shell variable names. 556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 558 { (exit 1); exit 1; }; } 559 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 560 case $ac_option in 561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 562 *) ac_optarg=yes ;; 563 esac 564 eval "enable_$ac_feature='$ac_optarg'" ;; 565 566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 568 | --exec | --exe | --ex) 569 ac_prev=exec_prefix ;; 570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 572 | --exec=* | --exe=* | --ex=*) 573 exec_prefix=$ac_optarg ;; 574 575 -gas | --gas | --ga | --g) 576 # Obsolete; use --with-gas. 577 with_gas=yes ;; 578 579 -help | --help | --hel | --he | -h) 580 ac_init_help=long ;; 581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 582 ac_init_help=recursive ;; 583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 584 ac_init_help=short ;; 585 586 -host | --host | --hos | --ho) 587 ac_prev=host_alias ;; 588 -host=* | --host=* | --hos=* | --ho=*) 589 host_alias=$ac_optarg ;; 590 591 -includedir | --includedir | --includedi | --included | --include \ 592 | --includ | --inclu | --incl | --inc) 593 ac_prev=includedir ;; 594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 595 | --includ=* | --inclu=* | --incl=* | --inc=*) 596 includedir=$ac_optarg ;; 597 598 -infodir | --infodir | --infodi | --infod | --info | --inf) 599 ac_prev=infodir ;; 600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 601 infodir=$ac_optarg ;; 602 603 -libdir | --libdir | --libdi | --libd) 604 ac_prev=libdir ;; 605 -libdir=* | --libdir=* | --libdi=* | --libd=*) 606 libdir=$ac_optarg ;; 607 608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 609 | --libexe | --libex | --libe) 610 ac_prev=libexecdir ;; 611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 612 | --libexe=* | --libex=* | --libe=*) 613 libexecdir=$ac_optarg ;; 614 615 -localstatedir | --localstatedir | --localstatedi | --localstated \ 616 | --localstate | --localstat | --localsta | --localst \ 617 | --locals | --local | --loca | --loc | --lo) 618 ac_prev=localstatedir ;; 619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 622 localstatedir=$ac_optarg ;; 623 624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 625 ac_prev=mandir ;; 626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 627 mandir=$ac_optarg ;; 628 629 -nfp | --nfp | --nf) 630 # Obsolete; use --without-fp. 631 with_fp=no ;; 632 633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 634 | --no-cr | --no-c | -n) 635 no_create=yes ;; 636 637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 639 no_recursion=yes ;; 640 641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 643 | --oldin | --oldi | --old | --ol | --o) 644 ac_prev=oldincludedir ;; 645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 648 oldincludedir=$ac_optarg ;; 649 650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 651 ac_prev=prefix ;; 652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 653 prefix=$ac_optarg ;; 654 655 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 656 | --program-pre | --program-pr | --program-p) 657 ac_prev=program_prefix ;; 658 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 660 program_prefix=$ac_optarg ;; 661 662 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 663 | --program-suf | --program-su | --program-s) 664 ac_prev=program_suffix ;; 665 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 667 program_suffix=$ac_optarg ;; 668 669 -program-transform-name | --program-transform-name \ 670 | --program-transform-nam | --program-transform-na \ 671 | --program-transform-n | --program-transform- \ 672 | --program-transform | --program-transfor \ 673 | --program-transfo | --program-transf \ 674 | --program-trans | --program-tran \ 675 | --progr-tra | --program-tr | --program-t) 676 ac_prev=program_transform_name ;; 677 -program-transform-name=* | --program-transform-name=* \ 678 | --program-transform-nam=* | --program-transform-na=* \ 679 | --program-transform-n=* | --program-transform-=* \ 680 | --program-transform=* | --program-transfor=* \ 681 | --program-transfo=* | --program-transf=* \ 682 | --program-trans=* | --program-tran=* \ 683 | --progr-tra=* | --program-tr=* | --program-t=*) 684 program_transform_name=$ac_optarg ;; 685 686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 687 | -silent | --silent | --silen | --sile | --sil) 688 silent=yes ;; 689 690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 691 ac_prev=sbindir ;; 692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 693 | --sbi=* | --sb=*) 694 sbindir=$ac_optarg ;; 695 696 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 698 | --sharedst | --shareds | --shared | --share | --shar \ 699 | --sha | --sh) 700 ac_prev=sharedstatedir ;; 701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 704 | --sha=* | --sh=*) 705 sharedstatedir=$ac_optarg ;; 706 707 -site | --site | --sit) 708 ac_prev=site ;; 709 -site=* | --site=* | --sit=*) 710 site=$ac_optarg ;; 711 712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 713 ac_prev=srcdir ;; 714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 715 srcdir=$ac_optarg ;; 716 717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 718 | --syscon | --sysco | --sysc | --sys | --sy) 719 ac_prev=sysconfdir ;; 720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 722 sysconfdir=$ac_optarg ;; 723 724 -target | --target | --targe | --targ | --tar | --ta | --t) 725 ac_prev=target_alias ;; 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 727 target_alias=$ac_optarg ;; 728 729 -v | -verbose | --verbose | --verbos | --verbo | --verb) 730 verbose=yes ;; 731 732 -version | --version | --versio | --versi | --vers | -V) 733 ac_init_version=: ;; 734 735 -with-* | --with-*) 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 737 # Reject names that are not valid shell variable names. 738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 739 { echo "$as_me: error: invalid package name: $ac_package" >&2 740 { (exit 1); exit 1; }; } 741 ac_package=`echo $ac_package| sed 's/-/_/g'` 742 case $ac_option in 743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 744 *) ac_optarg=yes ;; 745 esac 746 eval "with_$ac_package='$ac_optarg'" ;; 747 748 -without-* | --without-*) 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 750 # Reject names that are not valid shell variable names. 751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 752 { echo "$as_me: error: invalid package name: $ac_package" >&2 753 { (exit 1); exit 1; }; } 754 ac_package=`echo $ac_package | sed 's/-/_/g'` 755 eval "with_$ac_package=no" ;; 756 757 --x) 758 # Obsolete; use --with-x. 759 with_x=yes ;; 760 761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 762 | --x-incl | --x-inc | --x-in | --x-i) 763 ac_prev=x_includes ;; 764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 766 x_includes=$ac_optarg ;; 767 768 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 770 ac_prev=x_libraries ;; 771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 773 x_libraries=$ac_optarg ;; 774 775 -*) { echo "$as_me: error: unrecognized option: $ac_option 776Try \`$0 --help' for more information." >&2 777 { (exit 1); exit 1; }; } 778 ;; 779 780 *=*) 781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 782 # Reject names that are not valid shell variable names. 783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 785 { (exit 1); exit 1; }; } 786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 787 eval "$ac_envvar='$ac_optarg'" 788 export $ac_envvar ;; 789 790 *) 791 # FIXME: should be removed in autoconf 3.0. 792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 796 ;; 797 798 esac 799done 800 801if test -n "$ac_prev"; then 802 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 803 { echo "$as_me: error: missing argument to $ac_option" >&2 804 { (exit 1); exit 1; }; } 805fi 806 807# Be sure to have absolute paths. 808for ac_var in exec_prefix prefix 809do 810 eval ac_val=$`echo $ac_var` 811 case $ac_val in 812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 814 { (exit 1); exit 1; }; };; 815 esac 816done 817 818# Be sure to have absolute paths. 819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 820 localstatedir libdir includedir oldincludedir infodir mandir 821do 822 eval ac_val=$`echo $ac_var` 823 case $ac_val in 824 [\\/$]* | ?:[\\/]* ) ;; 825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 826 { (exit 1); exit 1; }; };; 827 esac 828done 829 830# There might be people who depend on the old broken behavior: `$host' 831# used to hold the argument of --host etc. 832# FIXME: To remove some day. 833build=$build_alias 834host=$host_alias 835target=$target_alias 836 837# FIXME: To remove some day. 838if test "x$host_alias" != x; then 839 if test "x$build_alias" = x; then 840 cross_compiling=maybe 841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 842 If a cross compiler is detected then cross compile mode will be used." >&2 843 elif test "x$build_alias" != "x$host_alias"; then 844 cross_compiling=yes 845 fi 846fi 847 848ac_tool_prefix= 849test -n "$host_alias" && ac_tool_prefix=$host_alias- 850 851test "$silent" = yes && exec 6>/dev/null 852 853 854# Find the source files, if location was not specified. 855if test -z "$srcdir"; then 856 ac_srcdir_defaulted=yes 857 # Try the directory containing this script, then its parent. 858 ac_confdir=`(dirname "$0") 2>/dev/null || 859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 860 X"$0" : 'X\(//\)[^/]' \| \ 861 X"$0" : 'X\(//\)$' \| \ 862 X"$0" : 'X\(/\)' \| \ 863 . : '\(.\)' 2>/dev/null || 864echo X"$0" | 865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 866 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 867 /^X\(\/\/\)$/{ s//\1/; q; } 868 /^X\(\/\).*/{ s//\1/; q; } 869 s/.*/./; q'` 870 srcdir=$ac_confdir 871 if test ! -r $srcdir/$ac_unique_file; then 872 srcdir=.. 873 fi 874else 875 ac_srcdir_defaulted=no 876fi 877if test ! -r $srcdir/$ac_unique_file; then 878 if test "$ac_srcdir_defaulted" = yes; then 879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 880 { (exit 1); exit 1; }; } 881 else 882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 883 { (exit 1); exit 1; }; } 884 fi 885fi 886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 888 { (exit 1); exit 1; }; } 889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 890ac_env_build_alias_set=${build_alias+set} 891ac_env_build_alias_value=$build_alias 892ac_cv_env_build_alias_set=${build_alias+set} 893ac_cv_env_build_alias_value=$build_alias 894ac_env_host_alias_set=${host_alias+set} 895ac_env_host_alias_value=$host_alias 896ac_cv_env_host_alias_set=${host_alias+set} 897ac_cv_env_host_alias_value=$host_alias 898ac_env_target_alias_set=${target_alias+set} 899ac_env_target_alias_value=$target_alias 900ac_cv_env_target_alias_set=${target_alias+set} 901ac_cv_env_target_alias_value=$target_alias 902ac_env_CC_set=${CC+set} 903ac_env_CC_value=$CC 904ac_cv_env_CC_set=${CC+set} 905ac_cv_env_CC_value=$CC 906ac_env_CFLAGS_set=${CFLAGS+set} 907ac_env_CFLAGS_value=$CFLAGS 908ac_cv_env_CFLAGS_set=${CFLAGS+set} 909ac_cv_env_CFLAGS_value=$CFLAGS 910ac_env_LDFLAGS_set=${LDFLAGS+set} 911ac_env_LDFLAGS_value=$LDFLAGS 912ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 913ac_cv_env_LDFLAGS_value=$LDFLAGS 914ac_env_CPPFLAGS_set=${CPPFLAGS+set} 915ac_env_CPPFLAGS_value=$CPPFLAGS 916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 917ac_cv_env_CPPFLAGS_value=$CPPFLAGS 918ac_env_CPP_set=${CPP+set} 919ac_env_CPP_value=$CPP 920ac_cv_env_CPP_set=${CPP+set} 921ac_cv_env_CPP_value=$CPP 922 923# 924# Report the --help message. 925# 926if test "$ac_init_help" = "long"; then 927 # Omit some internal or obsolete options to make the list less imposing. 928 # This message is too long to be a string in the A/UX 3.1 sh. 929 cat <<_ACEOF 930\`configure' configures this package to adapt to many kinds of systems. 931 932Usage: $0 [OPTION]... [VAR=VALUE]... 933 934To assign environment variables (e.g., CC, CFLAGS...), specify them as 935VAR=VALUE. See below for descriptions of some of the useful variables. 936 937Defaults for the options are specified in brackets. 938 939Configuration: 940 -h, --help display this help and exit 941 --help=short display options specific to this package 942 --help=recursive display the short help of all the included packages 943 -V, --version display version information and exit 944 -q, --quiet, --silent do not print \`checking...' messages 945 --cache-file=FILE cache test results in FILE [disabled] 946 -C, --config-cache alias for \`--cache-file=config.cache' 947 -n, --no-create do not create output files 948 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 949 950_ACEOF 951 952 cat <<_ACEOF 953Installation directories: 954 --prefix=PREFIX install architecture-independent files in PREFIX 955 [$ac_default_prefix] 956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 957 [PREFIX] 958 959By default, \`make install' will install all the files in 960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 961an installation prefix other than \`$ac_default_prefix' using \`--prefix', 962for instance \`--prefix=\$HOME'. 963 964For better control, use the options below. 965 966Fine tuning of the installation directories: 967 --bindir=DIR user executables [EPREFIX/bin] 968 --sbindir=DIR system admin executables [EPREFIX/sbin] 969 --libexecdir=DIR program executables [EPREFIX/libexec] 970 --datadir=DIR read-only architecture-independent data [PREFIX/share] 971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 973 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 974 --libdir=DIR object code libraries [EPREFIX/lib] 975 --includedir=DIR C header files [PREFIX/include] 976 --oldincludedir=DIR C header files for non-gcc [/usr/include] 977 --infodir=DIR info documentation [PREFIX/info] 978 --mandir=DIR man documentation [PREFIX/man] 979_ACEOF 980 981 cat <<\_ACEOF 982 983Program names: 984 --program-prefix=PREFIX prepend PREFIX to installed program names 985 --program-suffix=SUFFIX append SUFFIX to installed program names 986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 987 988System types: 989 --build=BUILD configure for building on BUILD [guessed] 990 --host=HOST cross-compile to build programs to run on HOST [BUILD] 991 --target=TARGET configure for building compilers for TARGET [HOST] 992_ACEOF 993fi 994 995if test -n "$ac_init_help"; then 996 997 cat <<\_ACEOF 998 999Optional Features: 1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1002 --disable-dependency-tracking speeds up one-time build 1003 --enable-dependency-tracking do not reject slow dependency extractors 1004 --enable-shared[=PKGS] 1005 build shared libraries [default=yes] 1006 --enable-static[=PKGS] 1007 build static libraries [default=yes] 1008 --enable-fast-install[=PKGS] 1009 optimize for fast installation [default=yes] 1010 --disable-libtool-lock avoid locking (might break parallel builds) 1011 --enable-targets alternative target configurations 1012 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) 1013 --enable-werror treat compile warnings as errors 1014 --enable-build-warnings enable build-time compiler warnings 1015 --disable-nls do not use Native Language Support 1016 --enable-maintainer-mode enable make rules and dependencies not useful 1017 (and sometimes confusing) to the casual installer 1018 1019Optional Packages: 1020 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1021 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1022 --with-pic try to use only PIC/non-PIC objects [default=use 1023 both] 1024 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1025 --with-lib-path=dir1:dir2... set default LIB_PATH 1026 --with-sysroot=DIR Search for usr/lib et al within DIR. 1027 1028Some influential environment variables: 1029 CC C compiler command 1030 CFLAGS C compiler flags 1031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1032 nonstandard directory <lib dir> 1033 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1034 headers in a nonstandard directory <include dir> 1035 CPP C preprocessor 1036 1037Use these variables to override the choices made by `configure' or to help 1038it to find libraries and programs with nonstandard names/locations. 1039 1040_ACEOF 1041fi 1042 1043if test "$ac_init_help" = "recursive"; then 1044 # If there are subdirs, report their specific --help. 1045 ac_popdir=`pwd` 1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1047 test -d $ac_dir || continue 1048 ac_builddir=. 1049 1050if test "$ac_dir" != .; then 1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1052 # A "../" for each directory in $ac_dir_suffix. 1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1054else 1055 ac_dir_suffix= ac_top_builddir= 1056fi 1057 1058case $srcdir in 1059 .) # No --srcdir option. We are building in place. 1060 ac_srcdir=. 1061 if test -z "$ac_top_builddir"; then 1062 ac_top_srcdir=. 1063 else 1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1065 fi ;; 1066 [\\/]* | ?:[\\/]* ) # Absolute path. 1067 ac_srcdir=$srcdir$ac_dir_suffix; 1068 ac_top_srcdir=$srcdir ;; 1069 *) # Relative path. 1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1071 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1072esac 1073 1074# Do not use `cd foo && pwd` to compute absolute paths, because 1075# the directories may not exist. 1076case `pwd` in 1077.) ac_abs_builddir="$ac_dir";; 1078*) 1079 case "$ac_dir" in 1080 .) ac_abs_builddir=`pwd`;; 1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1082 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1083 esac;; 1084esac 1085case $ac_abs_builddir in 1086.) ac_abs_top_builddir=${ac_top_builddir}.;; 1087*) 1088 case ${ac_top_builddir}. in 1089 .) ac_abs_top_builddir=$ac_abs_builddir;; 1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1092 esac;; 1093esac 1094case $ac_abs_builddir in 1095.) ac_abs_srcdir=$ac_srcdir;; 1096*) 1097 case $ac_srcdir in 1098 .) ac_abs_srcdir=$ac_abs_builddir;; 1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1101 esac;; 1102esac 1103case $ac_abs_builddir in 1104.) ac_abs_top_srcdir=$ac_top_srcdir;; 1105*) 1106 case $ac_top_srcdir in 1107 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1110 esac;; 1111esac 1112 1113 cd $ac_dir 1114 # Check for guested configure; otherwise get Cygnus style configure. 1115 if test -f $ac_srcdir/configure.gnu; then 1116 echo 1117 $SHELL $ac_srcdir/configure.gnu --help=recursive 1118 elif test -f $ac_srcdir/configure; then 1119 echo 1120 $SHELL $ac_srcdir/configure --help=recursive 1121 elif test -f $ac_srcdir/configure.ac || 1122 test -f $ac_srcdir/configure.in; then 1123 echo 1124 $ac_configure --help 1125 else 1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1127 fi 1128 cd $ac_popdir 1129 done 1130fi 1131 1132test -n "$ac_init_help" && exit 0 1133if $ac_init_version; then 1134 cat <<\_ACEOF 1135 1136Copyright (C) 2003 Free Software Foundation, Inc. 1137This configure script is free software; the Free Software Foundation 1138gives unlimited permission to copy, distribute and modify it. 1139_ACEOF 1140 exit 0 1141fi 1142exec 5>config.log 1143cat >&5 <<_ACEOF 1144This file contains any messages produced by compilers while 1145running configure, to aid debugging if configure makes a mistake. 1146 1147It was created by $as_me, which was 1148generated by GNU Autoconf 2.59. Invocation command line was 1149 1150 $ $0 $@ 1151 1152_ACEOF 1153{ 1154cat <<_ASUNAME 1155## --------- ## 1156## Platform. ## 1157## --------- ## 1158 1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1160uname -m = `(uname -m) 2>/dev/null || echo unknown` 1161uname -r = `(uname -r) 2>/dev/null || echo unknown` 1162uname -s = `(uname -s) 2>/dev/null || echo unknown` 1163uname -v = `(uname -v) 2>/dev/null || echo unknown` 1164 1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1166/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1167 1168/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1169/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1171hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1172/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1173/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1174/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1175 1176_ASUNAME 1177 1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1179for as_dir in $PATH 1180do 1181 IFS=$as_save_IFS 1182 test -z "$as_dir" && as_dir=. 1183 echo "PATH: $as_dir" 1184done 1185 1186} >&5 1187 1188cat >&5 <<_ACEOF 1189 1190 1191## ----------- ## 1192## Core tests. ## 1193## ----------- ## 1194 1195_ACEOF 1196 1197 1198# Keep a trace of the command line. 1199# Strip out --no-create and --no-recursion so they do not pile up. 1200# Strip out --silent because we don't want to record it for future runs. 1201# Also quote any args containing shell meta-characters. 1202# Make two passes to allow for proper duplicate-argument suppression. 1203ac_configure_args= 1204ac_configure_args0= 1205ac_configure_args1= 1206ac_sep= 1207ac_must_keep_next=false 1208for ac_pass in 1 2 1209do 1210 for ac_arg 1211 do 1212 case $ac_arg in 1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1215 | -silent | --silent | --silen | --sile | --sil) 1216 continue ;; 1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1219 esac 1220 case $ac_pass in 1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1222 2) 1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1224 if test $ac_must_keep_next = true; then 1225 ac_must_keep_next=false # Got value, back to normal. 1226 else 1227 case $ac_arg in 1228 *=* | --config-cache | -C | -disable-* | --disable-* \ 1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1231 | -with-* | --with-* | -without-* | --without-* | --x) 1232 case "$ac_configure_args0 " in 1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1234 esac 1235 ;; 1236 -* ) ac_must_keep_next=true ;; 1237 esac 1238 fi 1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1240 # Get rid of the leading space. 1241 ac_sep=" " 1242 ;; 1243 esac 1244 done 1245done 1246$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1247$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1248 1249# When interrupted or exit'd, cleanup temporary files, and complete 1250# config.log. We remove comments because anyway the quotes in there 1251# would cause problems or look ugly. 1252# WARNING: Be sure not to use single quotes in there, as some shells, 1253# such as our DU 5.0 friend, will then `close' the trap. 1254trap 'exit_status=$? 1255 # Save into config.log some information that might help in debugging. 1256 { 1257 echo 1258 1259 cat <<\_ASBOX 1260## ---------------- ## 1261## Cache variables. ## 1262## ---------------- ## 1263_ASBOX 1264 echo 1265 # The following way of writing the cache mishandles newlines in values, 1266{ 1267 (set) 2>&1 | 1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1269 *ac_space=\ *) 1270 sed -n \ 1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1273 ;; 1274 *) 1275 sed -n \ 1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1277 ;; 1278 esac; 1279} 1280 echo 1281 1282 cat <<\_ASBOX 1283## ----------------- ## 1284## Output variables. ## 1285## ----------------- ## 1286_ASBOX 1287 echo 1288 for ac_var in $ac_subst_vars 1289 do 1290 eval ac_val=$`echo $ac_var` 1291 echo "$ac_var='"'"'$ac_val'"'"'" 1292 done | sort 1293 echo 1294 1295 if test -n "$ac_subst_files"; then 1296 cat <<\_ASBOX 1297## ------------- ## 1298## Output files. ## 1299## ------------- ## 1300_ASBOX 1301 echo 1302 for ac_var in $ac_subst_files 1303 do 1304 eval ac_val=$`echo $ac_var` 1305 echo "$ac_var='"'"'$ac_val'"'"'" 1306 done | sort 1307 echo 1308 fi 1309 1310 if test -s confdefs.h; then 1311 cat <<\_ASBOX 1312## ----------- ## 1313## confdefs.h. ## 1314## ----------- ## 1315_ASBOX 1316 echo 1317 sed "/^$/d" confdefs.h | sort 1318 echo 1319 fi 1320 test "$ac_signal" != 0 && 1321 echo "$as_me: caught signal $ac_signal" 1322 echo "$as_me: exit $exit_status" 1323 } >&5 1324 rm -f core *.core && 1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1326 exit $exit_status 1327 ' 0 1328for ac_signal in 1 2 13 15; do 1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1330done 1331ac_signal=0 1332 1333# confdefs.h avoids OS command line length limits that DEFS can exceed. 1334rm -rf conftest* confdefs.h 1335# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1336echo >confdefs.h 1337 1338# Predefined preprocessor variables. 1339 1340cat >>confdefs.h <<_ACEOF 1341#define PACKAGE_NAME "$PACKAGE_NAME" 1342_ACEOF 1343 1344 1345cat >>confdefs.h <<_ACEOF 1346#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1347_ACEOF 1348 1349 1350cat >>confdefs.h <<_ACEOF 1351#define PACKAGE_VERSION "$PACKAGE_VERSION" 1352_ACEOF 1353 1354 1355cat >>confdefs.h <<_ACEOF 1356#define PACKAGE_STRING "$PACKAGE_STRING" 1357_ACEOF 1358 1359 1360cat >>confdefs.h <<_ACEOF 1361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1362_ACEOF 1363 1364 1365# Let the site file select an alternate cache file if it wants to. 1366# Prefer explicitly selected file to automatically selected ones. 1367if test -z "$CONFIG_SITE"; then 1368 if test "x$prefix" != xNONE; then 1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1370 else 1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1372 fi 1373fi 1374for ac_site_file in $CONFIG_SITE; do 1375 if test -r "$ac_site_file"; then 1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1377echo "$as_me: loading site script $ac_site_file" >&6;} 1378 sed 's/^/| /' "$ac_site_file" >&5 1379 . "$ac_site_file" 1380 fi 1381done 1382 1383if test -r "$cache_file"; then 1384 # Some versions of bash will fail to source /dev/null (special 1385 # files actually), so we avoid doing that. 1386 if test -f "$cache_file"; then 1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1388echo "$as_me: loading cache $cache_file" >&6;} 1389 case $cache_file in 1390 [\\/]* | ?:[\\/]* ) . $cache_file;; 1391 *) . ./$cache_file;; 1392 esac 1393 fi 1394else 1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1396echo "$as_me: creating cache $cache_file" >&6;} 1397 >$cache_file 1398fi 1399 1400# Check that the precious variables saved in the cache have kept the same 1401# value. 1402ac_cache_corrupted=false 1403for ac_var in `(set) 2>&1 | 1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1406 eval ac_new_set=\$ac_env_${ac_var}_set 1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1408 eval ac_new_val="\$ac_env_${ac_var}_value" 1409 case $ac_old_set,$ac_new_set in 1410 set,) 1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1412echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1413 ac_cache_corrupted=: ;; 1414 ,set) 1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1416echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1417 ac_cache_corrupted=: ;; 1418 ,);; 1419 *) 1420 if test "x$ac_old_val" != "x$ac_new_val"; then 1421 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1422echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1423 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1424echo "$as_me: former value: $ac_old_val" >&2;} 1425 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1426echo "$as_me: current value: $ac_new_val" >&2;} 1427 ac_cache_corrupted=: 1428 fi;; 1429 esac 1430 # Pass precious variables to config.status. 1431 if test "$ac_new_set" = set; then 1432 case $ac_new_val in 1433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1434 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1435 *) ac_arg=$ac_var=$ac_new_val ;; 1436 esac 1437 case " $ac_configure_args " in 1438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1439 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1440 esac 1441 fi 1442done 1443if $ac_cache_corrupted; then 1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1445echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1447echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1448 { (exit 1); exit 1; }; } 1449fi 1450 1451ac_ext=c 1452ac_cpp='$CPP $CPPFLAGS' 1453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1455ac_compiler_gnu=$ac_cv_c_compiler_gnu 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476ac_aux_dir= 1477for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1478 if test -f $ac_dir/install-sh; then 1479 ac_aux_dir=$ac_dir 1480 ac_install_sh="$ac_aux_dir/install-sh -c" 1481 break 1482 elif test -f $ac_dir/install.sh; then 1483 ac_aux_dir=$ac_dir 1484 ac_install_sh="$ac_aux_dir/install.sh -c" 1485 break 1486 elif test -f $ac_dir/shtool; then 1487 ac_aux_dir=$ac_dir 1488 ac_install_sh="$ac_aux_dir/shtool install -c" 1489 break 1490 fi 1491done 1492if test -z "$ac_aux_dir"; then 1493 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1494echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1495 { (exit 1); exit 1; }; } 1496fi 1497ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1498ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1499ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1500 1501# Make sure we can run config.sub. 1502$ac_config_sub sun4 >/dev/null 2>&1 || 1503 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1504echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1505 { (exit 1); exit 1; }; } 1506 1507echo "$as_me:$LINENO: checking build system type" >&5 1508echo $ECHO_N "checking build system type... $ECHO_C" >&6 1509if test "${ac_cv_build+set}" = set; then 1510 echo $ECHO_N "(cached) $ECHO_C" >&6 1511else 1512 ac_cv_build_alias=$build_alias 1513test -z "$ac_cv_build_alias" && 1514 ac_cv_build_alias=`$ac_config_guess` 1515test -z "$ac_cv_build_alias" && 1516 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1517echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1518 { (exit 1); exit 1; }; } 1519ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1520 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1521echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1522 { (exit 1); exit 1; }; } 1523 1524fi 1525echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1526echo "${ECHO_T}$ac_cv_build" >&6 1527build=$ac_cv_build 1528build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1529build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1530build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1531 1532 1533echo "$as_me:$LINENO: checking host system type" >&5 1534echo $ECHO_N "checking host system type... $ECHO_C" >&6 1535if test "${ac_cv_host+set}" = set; then 1536 echo $ECHO_N "(cached) $ECHO_C" >&6 1537else 1538 ac_cv_host_alias=$host_alias 1539test -z "$ac_cv_host_alias" && 1540 ac_cv_host_alias=$ac_cv_build_alias 1541ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1542 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1543echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1544 { (exit 1); exit 1; }; } 1545 1546fi 1547echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1548echo "${ECHO_T}$ac_cv_host" >&6 1549host=$ac_cv_host 1550host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1551host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1552host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1553 1554 1555echo "$as_me:$LINENO: checking target system type" >&5 1556echo $ECHO_N "checking target system type... $ECHO_C" >&6 1557if test "${ac_cv_target+set}" = set; then 1558 echo $ECHO_N "(cached) $ECHO_C" >&6 1559else 1560 ac_cv_target_alias=$target_alias 1561test "x$ac_cv_target_alias" = "x" && 1562 ac_cv_target_alias=$ac_cv_host_alias 1563ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1564 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1565echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1566 { (exit 1); exit 1; }; } 1567 1568fi 1569echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1570echo "${ECHO_T}$ac_cv_target" >&6 1571target=$ac_cv_target 1572target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1573target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1574target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1575 1576 1577# The aliases save the names the user supplied, while $host etc. 1578# will get canonicalized. 1579test -n "$target_alias" && 1580 test "$program_prefix$program_suffix$program_transform_name" = \ 1581 NONENONEs,x,x, && 1582 program_prefix=${target_alias}- 1583ac_ext=c 1584ac_cpp='$CPP $CPPFLAGS' 1585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1587ac_compiler_gnu=$ac_cv_c_compiler_gnu 1588if test -n "$ac_tool_prefix"; then 1589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1590set dummy ${ac_tool_prefix}gcc; ac_word=$2 1591echo "$as_me:$LINENO: checking for $ac_word" >&5 1592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1593if test "${ac_cv_prog_CC+set}" = set; then 1594 echo $ECHO_N "(cached) $ECHO_C" >&6 1595else 1596 if test -n "$CC"; then 1597 ac_cv_prog_CC="$CC" # Let the user override the test. 1598else 1599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1600for as_dir in $PATH 1601do 1602 IFS=$as_save_IFS 1603 test -z "$as_dir" && as_dir=. 1604 for ac_exec_ext in '' $ac_executable_extensions; do 1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1606 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1608 break 2 1609 fi 1610done 1611done 1612 1613fi 1614fi 1615CC=$ac_cv_prog_CC 1616if test -n "$CC"; then 1617 echo "$as_me:$LINENO: result: $CC" >&5 1618echo "${ECHO_T}$CC" >&6 1619else 1620 echo "$as_me:$LINENO: result: no" >&5 1621echo "${ECHO_T}no" >&6 1622fi 1623 1624fi 1625if test -z "$ac_cv_prog_CC"; then 1626 ac_ct_CC=$CC 1627 # Extract the first word of "gcc", so it can be a program name with args. 1628set dummy gcc; ac_word=$2 1629echo "$as_me:$LINENO: checking for $ac_word" >&5 1630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1631if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1632 echo $ECHO_N "(cached) $ECHO_C" >&6 1633else 1634 if test -n "$ac_ct_CC"; then 1635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1636else 1637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1638for as_dir in $PATH 1639do 1640 IFS=$as_save_IFS 1641 test -z "$as_dir" && as_dir=. 1642 for ac_exec_ext in '' $ac_executable_extensions; do 1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1644 ac_cv_prog_ac_ct_CC="gcc" 1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1646 break 2 1647 fi 1648done 1649done 1650 1651fi 1652fi 1653ac_ct_CC=$ac_cv_prog_ac_ct_CC 1654if test -n "$ac_ct_CC"; then 1655 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1656echo "${ECHO_T}$ac_ct_CC" >&6 1657else 1658 echo "$as_me:$LINENO: result: no" >&5 1659echo "${ECHO_T}no" >&6 1660fi 1661 1662 CC=$ac_ct_CC 1663else 1664 CC="$ac_cv_prog_CC" 1665fi 1666 1667if test -z "$CC"; then 1668 if test -n "$ac_tool_prefix"; then 1669 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1670set dummy ${ac_tool_prefix}cc; ac_word=$2 1671echo "$as_me:$LINENO: checking for $ac_word" >&5 1672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1673if test "${ac_cv_prog_CC+set}" = set; then 1674 echo $ECHO_N "(cached) $ECHO_C" >&6 1675else 1676 if test -n "$CC"; then 1677 ac_cv_prog_CC="$CC" # Let the user override the test. 1678else 1679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1680for as_dir in $PATH 1681do 1682 IFS=$as_save_IFS 1683 test -z "$as_dir" && as_dir=. 1684 for ac_exec_ext in '' $ac_executable_extensions; do 1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1686 ac_cv_prog_CC="${ac_tool_prefix}cc" 1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1688 break 2 1689 fi 1690done 1691done 1692 1693fi 1694fi 1695CC=$ac_cv_prog_CC 1696if test -n "$CC"; then 1697 echo "$as_me:$LINENO: result: $CC" >&5 1698echo "${ECHO_T}$CC" >&6 1699else 1700 echo "$as_me:$LINENO: result: no" >&5 1701echo "${ECHO_T}no" >&6 1702fi 1703 1704fi 1705if test -z "$ac_cv_prog_CC"; then 1706 ac_ct_CC=$CC 1707 # Extract the first word of "cc", so it can be a program name with args. 1708set dummy cc; ac_word=$2 1709echo "$as_me:$LINENO: checking for $ac_word" >&5 1710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1711if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1712 echo $ECHO_N "(cached) $ECHO_C" >&6 1713else 1714 if test -n "$ac_ct_CC"; then 1715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1716else 1717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1718for as_dir in $PATH 1719do 1720 IFS=$as_save_IFS 1721 test -z "$as_dir" && as_dir=. 1722 for ac_exec_ext in '' $ac_executable_extensions; do 1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1724 ac_cv_prog_ac_ct_CC="cc" 1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1726 break 2 1727 fi 1728done 1729done 1730 1731fi 1732fi 1733ac_ct_CC=$ac_cv_prog_ac_ct_CC 1734if test -n "$ac_ct_CC"; then 1735 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1736echo "${ECHO_T}$ac_ct_CC" >&6 1737else 1738 echo "$as_me:$LINENO: result: no" >&5 1739echo "${ECHO_T}no" >&6 1740fi 1741 1742 CC=$ac_ct_CC 1743else 1744 CC="$ac_cv_prog_CC" 1745fi 1746 1747fi 1748if test -z "$CC"; then 1749 # Extract the first word of "cc", so it can be a program name with args. 1750set dummy cc; ac_word=$2 1751echo "$as_me:$LINENO: checking for $ac_word" >&5 1752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1753if test "${ac_cv_prog_CC+set}" = set; then 1754 echo $ECHO_N "(cached) $ECHO_C" >&6 1755else 1756 if test -n "$CC"; then 1757 ac_cv_prog_CC="$CC" # Let the user override the test. 1758else 1759 ac_prog_rejected=no 1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1761for as_dir in $PATH 1762do 1763 IFS=$as_save_IFS 1764 test -z "$as_dir" && as_dir=. 1765 for ac_exec_ext in '' $ac_executable_extensions; do 1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1768 ac_prog_rejected=yes 1769 continue 1770 fi 1771 ac_cv_prog_CC="cc" 1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1773 break 2 1774 fi 1775done 1776done 1777 1778if test $ac_prog_rejected = yes; then 1779 # We found a bogon in the path, so make sure we never use it. 1780 set dummy $ac_cv_prog_CC 1781 shift 1782 if test $# != 0; then 1783 # We chose a different compiler from the bogus one. 1784 # However, it has the same basename, so the bogon will be chosen 1785 # first if we set CC to just the basename; use the full file name. 1786 shift 1787 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1788 fi 1789fi 1790fi 1791fi 1792CC=$ac_cv_prog_CC 1793if test -n "$CC"; then 1794 echo "$as_me:$LINENO: result: $CC" >&5 1795echo "${ECHO_T}$CC" >&6 1796else 1797 echo "$as_me:$LINENO: result: no" >&5 1798echo "${ECHO_T}no" >&6 1799fi 1800 1801fi 1802if test -z "$CC"; then 1803 if test -n "$ac_tool_prefix"; then 1804 for ac_prog in cl 1805 do 1806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1807set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1808echo "$as_me:$LINENO: checking for $ac_word" >&5 1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1810if test "${ac_cv_prog_CC+set}" = set; then 1811 echo $ECHO_N "(cached) $ECHO_C" >&6 1812else 1813 if test -n "$CC"; then 1814 ac_cv_prog_CC="$CC" # Let the user override the test. 1815else 1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1817for as_dir in $PATH 1818do 1819 IFS=$as_save_IFS 1820 test -z "$as_dir" && as_dir=. 1821 for ac_exec_ext in '' $ac_executable_extensions; do 1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1825 break 2 1826 fi 1827done 1828done 1829 1830fi 1831fi 1832CC=$ac_cv_prog_CC 1833if test -n "$CC"; then 1834 echo "$as_me:$LINENO: result: $CC" >&5 1835echo "${ECHO_T}$CC" >&6 1836else 1837 echo "$as_me:$LINENO: result: no" >&5 1838echo "${ECHO_T}no" >&6 1839fi 1840 1841 test -n "$CC" && break 1842 done 1843fi 1844if test -z "$CC"; then 1845 ac_ct_CC=$CC 1846 for ac_prog in cl 1847do 1848 # Extract the first word of "$ac_prog", so it can be a program name with args. 1849set dummy $ac_prog; ac_word=$2 1850echo "$as_me:$LINENO: checking for $ac_word" >&5 1851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1852if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1853 echo $ECHO_N "(cached) $ECHO_C" >&6 1854else 1855 if test -n "$ac_ct_CC"; then 1856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1857else 1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1859for as_dir in $PATH 1860do 1861 IFS=$as_save_IFS 1862 test -z "$as_dir" && as_dir=. 1863 for ac_exec_ext in '' $ac_executable_extensions; do 1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1865 ac_cv_prog_ac_ct_CC="$ac_prog" 1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1867 break 2 1868 fi 1869done 1870done 1871 1872fi 1873fi 1874ac_ct_CC=$ac_cv_prog_ac_ct_CC 1875if test -n "$ac_ct_CC"; then 1876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1877echo "${ECHO_T}$ac_ct_CC" >&6 1878else 1879 echo "$as_me:$LINENO: result: no" >&5 1880echo "${ECHO_T}no" >&6 1881fi 1882 1883 test -n "$ac_ct_CC" && break 1884done 1885 1886 CC=$ac_ct_CC 1887fi 1888 1889fi 1890 1891 1892test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1893See \`config.log' for more details." >&5 1894echo "$as_me: error: no acceptable C compiler found in \$PATH 1895See \`config.log' for more details." >&2;} 1896 { (exit 1); exit 1; }; } 1897 1898# Provide some information about the compiler. 1899echo "$as_me:$LINENO:" \ 1900 "checking for C compiler version" >&5 1901ac_compiler=`set X $ac_compile; echo $2` 1902{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1903 (eval $ac_compiler --version </dev/null >&5) 2>&5 1904 ac_status=$? 1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1906 (exit $ac_status); } 1907{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1908 (eval $ac_compiler -v </dev/null >&5) 2>&5 1909 ac_status=$? 1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1911 (exit $ac_status); } 1912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1913 (eval $ac_compiler -V </dev/null >&5) 2>&5 1914 ac_status=$? 1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1916 (exit $ac_status); } 1917 1918cat >conftest.$ac_ext <<_ACEOF 1919/* confdefs.h. */ 1920_ACEOF 1921cat confdefs.h >>conftest.$ac_ext 1922cat >>conftest.$ac_ext <<_ACEOF 1923/* end confdefs.h. */ 1924 1925int 1926main () 1927{ 1928 1929 ; 1930 return 0; 1931} 1932_ACEOF 1933ac_clean_files_save=$ac_clean_files 1934ac_clean_files="$ac_clean_files a.out a.exe b.out" 1935# Try to create an executable without -o first, disregard a.out. 1936# It will help us diagnose broken compilers, and finding out an intuition 1937# of exeext. 1938echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1939echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1940ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1941if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1942 (eval $ac_link_default) 2>&5 1943 ac_status=$? 1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1945 (exit $ac_status); }; then 1946 # Find the output, starting from the most likely. This scheme is 1947# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1948# resort. 1949 1950# Be careful to initialize this variable, since it used to be cached. 1951# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1952ac_cv_exeext= 1953# b.out is created by i960 compilers. 1954for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1955do 1956 test -f "$ac_file" || continue 1957 case $ac_file in 1958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1959 ;; 1960 conftest.$ac_ext ) 1961 # This is the source file. 1962 ;; 1963 [ab].out ) 1964 # We found the default executable, but exeext='' is most 1965 # certainly right. 1966 break;; 1967 *.* ) 1968 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1969 # FIXME: I believe we export ac_cv_exeext for Libtool, 1970 # but it would be cool to find out if it's true. Does anybody 1971 # maintain Libtool? --akim. 1972 export ac_cv_exeext 1973 break;; 1974 * ) 1975 break;; 1976 esac 1977done 1978else 1979 echo "$as_me: failed program was:" >&5 1980sed 's/^/| /' conftest.$ac_ext >&5 1981 1982{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1983See \`config.log' for more details." >&5 1984echo "$as_me: error: C compiler cannot create executables 1985See \`config.log' for more details." >&2;} 1986 { (exit 77); exit 77; }; } 1987fi 1988 1989ac_exeext=$ac_cv_exeext 1990echo "$as_me:$LINENO: result: $ac_file" >&5 1991echo "${ECHO_T}$ac_file" >&6 1992 1993# Check the compiler produces executables we can run. If not, either 1994# the compiler is broken, or we cross compile. 1995echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1996echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1997# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1998# If not cross compiling, check that we can run a simple program. 1999if test "$cross_compiling" != yes; then 2000 if { ac_try='./$ac_file' 2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2002 (eval $ac_try) 2>&5 2003 ac_status=$? 2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2005 (exit $ac_status); }; }; then 2006 cross_compiling=no 2007 else 2008 if test "$cross_compiling" = maybe; then 2009 cross_compiling=yes 2010 else 2011 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2012If you meant to cross compile, use \`--host'. 2013See \`config.log' for more details." >&5 2014echo "$as_me: error: cannot run C compiled programs. 2015If you meant to cross compile, use \`--host'. 2016See \`config.log' for more details." >&2;} 2017 { (exit 1); exit 1; }; } 2018 fi 2019 fi 2020fi 2021echo "$as_me:$LINENO: result: yes" >&5 2022echo "${ECHO_T}yes" >&6 2023 2024rm -f a.out a.exe conftest$ac_cv_exeext b.out 2025ac_clean_files=$ac_clean_files_save 2026# Check the compiler produces executables we can run. If not, either 2027# the compiler is broken, or we cross compile. 2028echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2029echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2030echo "$as_me:$LINENO: result: $cross_compiling" >&5 2031echo "${ECHO_T}$cross_compiling" >&6 2032 2033echo "$as_me:$LINENO: checking for suffix of executables" >&5 2034echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2036 (eval $ac_link) 2>&5 2037 ac_status=$? 2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2039 (exit $ac_status); }; then 2040 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2041# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2042# work properly (i.e., refer to `conftest.exe'), while it won't with 2043# `rm'. 2044for ac_file in conftest.exe conftest conftest.*; do 2045 test -f "$ac_file" || continue 2046 case $ac_file in 2047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2049 export ac_cv_exeext 2050 break;; 2051 * ) break;; 2052 esac 2053done 2054else 2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2056See \`config.log' for more details." >&5 2057echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2058See \`config.log' for more details." >&2;} 2059 { (exit 1); exit 1; }; } 2060fi 2061 2062rm -f conftest$ac_cv_exeext 2063echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2064echo "${ECHO_T}$ac_cv_exeext" >&6 2065 2066rm -f conftest.$ac_ext 2067EXEEXT=$ac_cv_exeext 2068ac_exeext=$EXEEXT 2069echo "$as_me:$LINENO: checking for suffix of object files" >&5 2070echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2071if test "${ac_cv_objext+set}" = set; then 2072 echo $ECHO_N "(cached) $ECHO_C" >&6 2073else 2074 cat >conftest.$ac_ext <<_ACEOF 2075/* confdefs.h. */ 2076_ACEOF 2077cat confdefs.h >>conftest.$ac_ext 2078cat >>conftest.$ac_ext <<_ACEOF 2079/* end confdefs.h. */ 2080 2081int 2082main () 2083{ 2084 2085 ; 2086 return 0; 2087} 2088_ACEOF 2089rm -f conftest.o conftest.obj 2090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2091 (eval $ac_compile) 2>&5 2092 ac_status=$? 2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2094 (exit $ac_status); }; then 2095 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2096 case $ac_file in 2097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2099 break;; 2100 esac 2101done 2102else 2103 echo "$as_me: failed program was:" >&5 2104sed 's/^/| /' conftest.$ac_ext >&5 2105 2106{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2107See \`config.log' for more details." >&5 2108echo "$as_me: error: cannot compute suffix of object files: cannot compile 2109See \`config.log' for more details." >&2;} 2110 { (exit 1); exit 1; }; } 2111fi 2112 2113rm -f conftest.$ac_cv_objext conftest.$ac_ext 2114fi 2115echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2116echo "${ECHO_T}$ac_cv_objext" >&6 2117OBJEXT=$ac_cv_objext 2118ac_objext=$OBJEXT 2119echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2120echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2121if test "${ac_cv_c_compiler_gnu+set}" = set; then 2122 echo $ECHO_N "(cached) $ECHO_C" >&6 2123else 2124 cat >conftest.$ac_ext <<_ACEOF 2125/* confdefs.h. */ 2126_ACEOF 2127cat confdefs.h >>conftest.$ac_ext 2128cat >>conftest.$ac_ext <<_ACEOF 2129/* end confdefs.h. */ 2130 2131int 2132main () 2133{ 2134#ifndef __GNUC__ 2135 choke me 2136#endif 2137 2138 ; 2139 return 0; 2140} 2141_ACEOF 2142rm -f conftest.$ac_objext 2143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2144 (eval $ac_compile) 2>conftest.er1 2145 ac_status=$? 2146 grep -v '^ *+' conftest.er1 >conftest.err 2147 rm -f conftest.er1 2148 cat conftest.err >&5 2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2150 (exit $ac_status); } && 2151 { ac_try='test -z "$ac_c_werror_flag" 2152 || test ! -s conftest.err' 2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2154 (eval $ac_try) 2>&5 2155 ac_status=$? 2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2157 (exit $ac_status); }; } && 2158 { ac_try='test -s conftest.$ac_objext' 2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2160 (eval $ac_try) 2>&5 2161 ac_status=$? 2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2163 (exit $ac_status); }; }; then 2164 ac_compiler_gnu=yes 2165else 2166 echo "$as_me: failed program was:" >&5 2167sed 's/^/| /' conftest.$ac_ext >&5 2168 2169ac_compiler_gnu=no 2170fi 2171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2172ac_cv_c_compiler_gnu=$ac_compiler_gnu 2173 2174fi 2175echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2176echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2177GCC=`test $ac_compiler_gnu = yes && echo yes` 2178ac_test_CFLAGS=${CFLAGS+set} 2179ac_save_CFLAGS=$CFLAGS 2180CFLAGS="-g" 2181echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2182echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2183if test "${ac_cv_prog_cc_g+set}" = set; then 2184 echo $ECHO_N "(cached) $ECHO_C" >&6 2185else 2186 cat >conftest.$ac_ext <<_ACEOF 2187/* confdefs.h. */ 2188_ACEOF 2189cat confdefs.h >>conftest.$ac_ext 2190cat >>conftest.$ac_ext <<_ACEOF 2191/* end confdefs.h. */ 2192 2193int 2194main () 2195{ 2196 2197 ; 2198 return 0; 2199} 2200_ACEOF 2201rm -f conftest.$ac_objext 2202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2203 (eval $ac_compile) 2>conftest.er1 2204 ac_status=$? 2205 grep -v '^ *+' conftest.er1 >conftest.err 2206 rm -f conftest.er1 2207 cat conftest.err >&5 2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2209 (exit $ac_status); } && 2210 { ac_try='test -z "$ac_c_werror_flag" 2211 || test ! -s conftest.err' 2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2213 (eval $ac_try) 2>&5 2214 ac_status=$? 2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2216 (exit $ac_status); }; } && 2217 { ac_try='test -s conftest.$ac_objext' 2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2219 (eval $ac_try) 2>&5 2220 ac_status=$? 2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2222 (exit $ac_status); }; }; then 2223 ac_cv_prog_cc_g=yes 2224else 2225 echo "$as_me: failed program was:" >&5 2226sed 's/^/| /' conftest.$ac_ext >&5 2227 2228ac_cv_prog_cc_g=no 2229fi 2230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2231fi 2232echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2233echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2234if test "$ac_test_CFLAGS" = set; then 2235 CFLAGS=$ac_save_CFLAGS 2236elif test $ac_cv_prog_cc_g = yes; then 2237 if test "$GCC" = yes; then 2238 CFLAGS="-g -O2" 2239 else 2240 CFLAGS="-g" 2241 fi 2242else 2243 if test "$GCC" = yes; then 2244 CFLAGS="-O2" 2245 else 2246 CFLAGS= 2247 fi 2248fi 2249echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2250echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2251if test "${ac_cv_prog_cc_stdc+set}" = set; then 2252 echo $ECHO_N "(cached) $ECHO_C" >&6 2253else 2254 ac_cv_prog_cc_stdc=no 2255ac_save_CC=$CC 2256cat >conftest.$ac_ext <<_ACEOF 2257/* confdefs.h. */ 2258_ACEOF 2259cat confdefs.h >>conftest.$ac_ext 2260cat >>conftest.$ac_ext <<_ACEOF 2261/* end confdefs.h. */ 2262#include <stdarg.h> 2263#include <stdio.h> 2264#include <sys/types.h> 2265#include <sys/stat.h> 2266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2267struct buf { int x; }; 2268FILE * (*rcsopen) (struct buf *, struct stat *, int); 2269static char *e (p, i) 2270 char **p; 2271 int i; 2272{ 2273 return p[i]; 2274} 2275static char *f (char * (*g) (char **, int), char **p, ...) 2276{ 2277 char *s; 2278 va_list v; 2279 va_start (v,p); 2280 s = g (p, va_arg (v,int)); 2281 va_end (v); 2282 return s; 2283} 2284 2285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2286 function prototypes and stuff, but not '\xHH' hex character constants. 2287 These don't provoke an error unfortunately, instead are silently treated 2288 as 'x'. The following induces an error, until -std1 is added to get 2289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2290 array size at least. It's necessary to write '\x00'==0 to get something 2291 that's true only with -std1. */ 2292int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2293 2294int test (int i, double x); 2295struct s1 {int (*f) (int a);}; 2296struct s2 {int (*f) (double a);}; 2297int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2298int argc; 2299char **argv; 2300int 2301main () 2302{ 2303return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2304 ; 2305 return 0; 2306} 2307_ACEOF 2308# Don't try gcc -ansi; that turns off useful extensions and 2309# breaks some systems' header files. 2310# AIX -qlanglvl=ansi 2311# Ultrix and OSF/1 -std1 2312# HP-UX 10.20 and later -Ae 2313# HP-UX older versions -Aa -D_HPUX_SOURCE 2314# SVR4 -Xc -D__EXTENSIONS__ 2315for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2316do 2317 CC="$ac_save_CC $ac_arg" 2318 rm -f conftest.$ac_objext 2319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2320 (eval $ac_compile) 2>conftest.er1 2321 ac_status=$? 2322 grep -v '^ *+' conftest.er1 >conftest.err 2323 rm -f conftest.er1 2324 cat conftest.err >&5 2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2326 (exit $ac_status); } && 2327 { ac_try='test -z "$ac_c_werror_flag" 2328 || test ! -s conftest.err' 2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2330 (eval $ac_try) 2>&5 2331 ac_status=$? 2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2333 (exit $ac_status); }; } && 2334 { ac_try='test -s conftest.$ac_objext' 2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2336 (eval $ac_try) 2>&5 2337 ac_status=$? 2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2339 (exit $ac_status); }; }; then 2340 ac_cv_prog_cc_stdc=$ac_arg 2341break 2342else 2343 echo "$as_me: failed program was:" >&5 2344sed 's/^/| /' conftest.$ac_ext >&5 2345 2346fi 2347rm -f conftest.err conftest.$ac_objext 2348done 2349rm -f conftest.$ac_ext conftest.$ac_objext 2350CC=$ac_save_CC 2351 2352fi 2353 2354case "x$ac_cv_prog_cc_stdc" in 2355 x|xno) 2356 echo "$as_me:$LINENO: result: none needed" >&5 2357echo "${ECHO_T}none needed" >&6 ;; 2358 *) 2359 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2360echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2361 CC="$CC $ac_cv_prog_cc_stdc" ;; 2362esac 2363 2364# Some people use a C++ compiler to compile C. Since we use `exit', 2365# in C++ we need to declare it. In case someone uses the same compiler 2366# for both compiling C and C++ we need to have the C++ compiler decide 2367# the declaration of exit, since it's the most demanding environment. 2368cat >conftest.$ac_ext <<_ACEOF 2369#ifndef __cplusplus 2370 choke me 2371#endif 2372_ACEOF 2373rm -f conftest.$ac_objext 2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2375 (eval $ac_compile) 2>conftest.er1 2376 ac_status=$? 2377 grep -v '^ *+' conftest.er1 >conftest.err 2378 rm -f conftest.er1 2379 cat conftest.err >&5 2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2381 (exit $ac_status); } && 2382 { ac_try='test -z "$ac_c_werror_flag" 2383 || test ! -s conftest.err' 2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2385 (eval $ac_try) 2>&5 2386 ac_status=$? 2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2388 (exit $ac_status); }; } && 2389 { ac_try='test -s conftest.$ac_objext' 2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2391 (eval $ac_try) 2>&5 2392 ac_status=$? 2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2394 (exit $ac_status); }; }; then 2395 for ac_declaration in \ 2396 '' \ 2397 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2398 'extern "C" void std::exit (int); using std::exit;' \ 2399 'extern "C" void exit (int) throw ();' \ 2400 'extern "C" void exit (int);' \ 2401 'void exit (int);' 2402do 2403 cat >conftest.$ac_ext <<_ACEOF 2404/* confdefs.h. */ 2405_ACEOF 2406cat confdefs.h >>conftest.$ac_ext 2407cat >>conftest.$ac_ext <<_ACEOF 2408/* end confdefs.h. */ 2409$ac_declaration 2410#include <stdlib.h> 2411int 2412main () 2413{ 2414exit (42); 2415 ; 2416 return 0; 2417} 2418_ACEOF 2419rm -f conftest.$ac_objext 2420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2421 (eval $ac_compile) 2>conftest.er1 2422 ac_status=$? 2423 grep -v '^ *+' conftest.er1 >conftest.err 2424 rm -f conftest.er1 2425 cat conftest.err >&5 2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2427 (exit $ac_status); } && 2428 { ac_try='test -z "$ac_c_werror_flag" 2429 || test ! -s conftest.err' 2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2431 (eval $ac_try) 2>&5 2432 ac_status=$? 2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2434 (exit $ac_status); }; } && 2435 { ac_try='test -s conftest.$ac_objext' 2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2437 (eval $ac_try) 2>&5 2438 ac_status=$? 2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2440 (exit $ac_status); }; }; then 2441 : 2442else 2443 echo "$as_me: failed program was:" >&5 2444sed 's/^/| /' conftest.$ac_ext >&5 2445 2446continue 2447fi 2448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2449 cat >conftest.$ac_ext <<_ACEOF 2450/* confdefs.h. */ 2451_ACEOF 2452cat confdefs.h >>conftest.$ac_ext 2453cat >>conftest.$ac_ext <<_ACEOF 2454/* end confdefs.h. */ 2455$ac_declaration 2456int 2457main () 2458{ 2459exit (42); 2460 ; 2461 return 0; 2462} 2463_ACEOF 2464rm -f conftest.$ac_objext 2465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2466 (eval $ac_compile) 2>conftest.er1 2467 ac_status=$? 2468 grep -v '^ *+' conftest.er1 >conftest.err 2469 rm -f conftest.er1 2470 cat conftest.err >&5 2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2472 (exit $ac_status); } && 2473 { ac_try='test -z "$ac_c_werror_flag" 2474 || test ! -s conftest.err' 2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2476 (eval $ac_try) 2>&5 2477 ac_status=$? 2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2479 (exit $ac_status); }; } && 2480 { ac_try='test -s conftest.$ac_objext' 2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2482 (eval $ac_try) 2>&5 2483 ac_status=$? 2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2485 (exit $ac_status); }; }; then 2486 break 2487else 2488 echo "$as_me: failed program was:" >&5 2489sed 's/^/| /' conftest.$ac_ext >&5 2490 2491fi 2492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2493done 2494rm -f conftest* 2495if test -n "$ac_declaration"; then 2496 echo '#ifdef __cplusplus' >>confdefs.h 2497 echo $ac_declaration >>confdefs.h 2498 echo '#endif' >>confdefs.h 2499fi 2500 2501else 2502 echo "$as_me: failed program was:" >&5 2503sed 's/^/| /' conftest.$ac_ext >&5 2504 2505fi 2506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2507ac_ext=c 2508ac_cpp='$CPP $CPPFLAGS' 2509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2511ac_compiler_gnu=$ac_cv_c_compiler_gnu 2512 2513 2514echo "$as_me:$LINENO: checking for library containing strerror" >&5 2515echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 2516if test "${ac_cv_search_strerror+set}" = set; then 2517 echo $ECHO_N "(cached) $ECHO_C" >&6 2518else 2519 ac_func_search_save_LIBS=$LIBS 2520ac_cv_search_strerror=no 2521cat >conftest.$ac_ext <<_ACEOF 2522/* confdefs.h. */ 2523_ACEOF 2524cat confdefs.h >>conftest.$ac_ext 2525cat >>conftest.$ac_ext <<_ACEOF 2526/* end confdefs.h. */ 2527 2528/* Override any gcc2 internal prototype to avoid an error. */ 2529#ifdef __cplusplus 2530extern "C" 2531#endif 2532/* We use char because int might match the return type of a gcc2 2533 builtin and then its argument prototype would still apply. */ 2534char strerror (); 2535int 2536main () 2537{ 2538strerror (); 2539 ; 2540 return 0; 2541} 2542_ACEOF 2543rm -f conftest.$ac_objext conftest$ac_exeext 2544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2545 (eval $ac_link) 2>conftest.er1 2546 ac_status=$? 2547 grep -v '^ *+' conftest.er1 >conftest.err 2548 rm -f conftest.er1 2549 cat conftest.err >&5 2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2551 (exit $ac_status); } && 2552 { ac_try='test -z "$ac_c_werror_flag" 2553 || test ! -s conftest.err' 2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2555 (eval $ac_try) 2>&5 2556 ac_status=$? 2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2558 (exit $ac_status); }; } && 2559 { ac_try='test -s conftest$ac_exeext' 2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2561 (eval $ac_try) 2>&5 2562 ac_status=$? 2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2564 (exit $ac_status); }; }; then 2565 ac_cv_search_strerror="none required" 2566else 2567 echo "$as_me: failed program was:" >&5 2568sed 's/^/| /' conftest.$ac_ext >&5 2569 2570fi 2571rm -f conftest.err conftest.$ac_objext \ 2572 conftest$ac_exeext conftest.$ac_ext 2573if test "$ac_cv_search_strerror" = no; then 2574 for ac_lib in cposix; do 2575 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 2576 cat >conftest.$ac_ext <<_ACEOF 2577/* confdefs.h. */ 2578_ACEOF 2579cat confdefs.h >>conftest.$ac_ext 2580cat >>conftest.$ac_ext <<_ACEOF 2581/* end confdefs.h. */ 2582 2583/* Override any gcc2 internal prototype to avoid an error. */ 2584#ifdef __cplusplus 2585extern "C" 2586#endif 2587/* We use char because int might match the return type of a gcc2 2588 builtin and then its argument prototype would still apply. */ 2589char strerror (); 2590int 2591main () 2592{ 2593strerror (); 2594 ; 2595 return 0; 2596} 2597_ACEOF 2598rm -f conftest.$ac_objext conftest$ac_exeext 2599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2600 (eval $ac_link) 2>conftest.er1 2601 ac_status=$? 2602 grep -v '^ *+' conftest.er1 >conftest.err 2603 rm -f conftest.er1 2604 cat conftest.err >&5 2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2606 (exit $ac_status); } && 2607 { ac_try='test -z "$ac_c_werror_flag" 2608 || test ! -s conftest.err' 2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2610 (eval $ac_try) 2>&5 2611 ac_status=$? 2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2613 (exit $ac_status); }; } && 2614 { ac_try='test -s conftest$ac_exeext' 2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2616 (eval $ac_try) 2>&5 2617 ac_status=$? 2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2619 (exit $ac_status); }; }; then 2620 ac_cv_search_strerror="-l$ac_lib" 2621break 2622else 2623 echo "$as_me: failed program was:" >&5 2624sed 's/^/| /' conftest.$ac_ext >&5 2625 2626fi 2627rm -f conftest.err conftest.$ac_objext \ 2628 conftest$ac_exeext conftest.$ac_ext 2629 done 2630fi 2631LIBS=$ac_func_search_save_LIBS 2632fi 2633echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 2634echo "${ECHO_T}$ac_cv_search_strerror" >&6 2635if test "$ac_cv_search_strerror" != no; then 2636 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 2637 2638fi 2639 2640 2641BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` 2642am__api_version="1.9" 2643# Find a good install program. We prefer a C program (faster), 2644# so one script is as good as another. But avoid the broken or 2645# incompatible versions: 2646# SysV /etc/install, /usr/sbin/install 2647# SunOS /usr/etc/install 2648# IRIX /sbin/install 2649# AIX /bin/install 2650# AmigaOS /C/install, which installs bootblocks on floppy discs 2651# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2652# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2653# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2654# OS/2's system install, which has a completely different semantic 2655# ./install, which can be erroneously created by make from ./install.sh. 2656echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2657echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2658if test -z "$INSTALL"; then 2659if test "${ac_cv_path_install+set}" = set; then 2660 echo $ECHO_N "(cached) $ECHO_C" >&6 2661else 2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2663for as_dir in $PATH 2664do 2665 IFS=$as_save_IFS 2666 test -z "$as_dir" && as_dir=. 2667 # Account for people who put trailing slashes in PATH elements. 2668case $as_dir/ in 2669 ./ | .// | /cC/* | \ 2670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2671 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2672 /usr/ucb/* ) ;; 2673 *) 2674 # OSF1 and SCO ODT 3.0 have their own names for install. 2675 # Don't use installbsd from OSF since it installs stuff as root 2676 # by default. 2677 for ac_prog in ginstall scoinst install; do 2678 for ac_exec_ext in '' $ac_executable_extensions; do 2679 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2680 if test $ac_prog = install && 2681 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2682 # AIX install. It has an incompatible calling convention. 2683 : 2684 elif test $ac_prog = install && 2685 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2686 # program-specific install script used by HP pwplus--don't use. 2687 : 2688 else 2689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2690 break 3 2691 fi 2692 fi 2693 done 2694 done 2695 ;; 2696esac 2697done 2698 2699 2700fi 2701 if test "${ac_cv_path_install+set}" = set; then 2702 INSTALL=$ac_cv_path_install 2703 else 2704 # As a last resort, use the slow shell script. We don't cache a 2705 # path for INSTALL within a source directory, because that will 2706 # break other packages using the cache if that directory is 2707 # removed, or if the path is relative. 2708 INSTALL=$ac_install_sh 2709 fi 2710fi 2711echo "$as_me:$LINENO: result: $INSTALL" >&5 2712echo "${ECHO_T}$INSTALL" >&6 2713 2714# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2715# It thinks the first close brace ends the variable substitution. 2716test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2717 2718test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2719 2720test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2721 2722echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2723echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 2724# Just in case 2725sleep 1 2726echo timestamp > conftest.file 2727# Do `set' in a subshell so we don't clobber the current shell's 2728# arguments. Must try -L first in case configure is actually a 2729# symlink; some systems play weird games with the mod time of symlinks 2730# (eg FreeBSD returns the mod time of the symlink's containing 2731# directory). 2732if ( 2733 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2734 if test "$*" = "X"; then 2735 # -L didn't work. 2736 set X `ls -t $srcdir/configure conftest.file` 2737 fi 2738 rm -f conftest.file 2739 if test "$*" != "X $srcdir/configure conftest.file" \ 2740 && test "$*" != "X conftest.file $srcdir/configure"; then 2741 2742 # If neither matched, then we have a broken ls. This can happen 2743 # if, for instance, CONFIG_SHELL is bash and it inherits a 2744 # broken ls alias from the environment. This has actually 2745 # happened. Such a system could not be considered "sane". 2746 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2747alias in your environment" >&5 2748echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2749alias in your environment" >&2;} 2750 { (exit 1); exit 1; }; } 2751 fi 2752 2753 test "$2" = conftest.file 2754 ) 2755then 2756 # Ok. 2757 : 2758else 2759 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2760Check your system clock" >&5 2761echo "$as_me: error: newly created file is older than distributed files! 2762Check your system clock" >&2;} 2763 { (exit 1); exit 1; }; } 2764fi 2765echo "$as_me:$LINENO: result: yes" >&5 2766echo "${ECHO_T}yes" >&6 2767test "$program_prefix" != NONE && 2768 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2769# Use a double $ so make ignores it. 2770test "$program_suffix" != NONE && 2771 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2772# Double any \ or $. echo might interpret backslashes. 2773# By default was `s,x,x', remove it if useless. 2774cat <<\_ACEOF >conftest.sed 2775s/[\\$]/&&/g;s/;s,x,x,$// 2776_ACEOF 2777program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2778rm conftest.sed 2779 2780# expand $ac_aux_dir to an absolute path 2781am_aux_dir=`cd $ac_aux_dir && pwd` 2782 2783test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2784# Use eval to expand $SHELL 2785if eval "$MISSING --run true"; then 2786 am_missing_run="$MISSING --run " 2787else 2788 am_missing_run= 2789 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2790echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2791fi 2792 2793if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2794 # We used to keeping the `.' as first argument, in order to 2795 # allow $(mkdir_p) to be used without argument. As in 2796 # $(mkdir_p) $(somedir) 2797 # where $(somedir) is conditionally defined. However this is wrong 2798 # for two reasons: 2799 # 1. if the package is installed by a user who cannot write `.' 2800 # make install will fail, 2801 # 2. the above comment should most certainly read 2802 # $(mkdir_p) $(DESTDIR)$(somedir) 2803 # so it does not work when $(somedir) is undefined and 2804 # $(DESTDIR) is not. 2805 # To support the latter case, we have to write 2806 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2807 # so the `.' trick is pointless. 2808 mkdir_p='mkdir -p --' 2809else 2810 # On NextStep and OpenStep, the `mkdir' command does not 2811 # recognize any option. It will interpret all options as 2812 # directories to create, and then abort because `.' already 2813 # exists. 2814 for d in ./-p ./--version; 2815 do 2816 test -d $d && rmdir $d 2817 done 2818 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2819 if test -f "$ac_aux_dir/mkinstalldirs"; then 2820 mkdir_p='$(mkinstalldirs)' 2821 else 2822 mkdir_p='$(install_sh) -d' 2823 fi 2824fi 2825 2826for ac_prog in gawk mawk nawk awk 2827do 2828 # Extract the first word of "$ac_prog", so it can be a program name with args. 2829set dummy $ac_prog; ac_word=$2 2830echo "$as_me:$LINENO: checking for $ac_word" >&5 2831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2832if test "${ac_cv_prog_AWK+set}" = set; then 2833 echo $ECHO_N "(cached) $ECHO_C" >&6 2834else 2835 if test -n "$AWK"; then 2836 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2837else 2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2839for as_dir in $PATH 2840do 2841 IFS=$as_save_IFS 2842 test -z "$as_dir" && as_dir=. 2843 for ac_exec_ext in '' $ac_executable_extensions; do 2844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2845 ac_cv_prog_AWK="$ac_prog" 2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2847 break 2 2848 fi 2849done 2850done 2851 2852fi 2853fi 2854AWK=$ac_cv_prog_AWK 2855if test -n "$AWK"; then 2856 echo "$as_me:$LINENO: result: $AWK" >&5 2857echo "${ECHO_T}$AWK" >&6 2858else 2859 echo "$as_me:$LINENO: result: no" >&5 2860echo "${ECHO_T}no" >&6 2861fi 2862 2863 test -n "$AWK" && break 2864done 2865 2866echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2867echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2868set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2869if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2870 echo $ECHO_N "(cached) $ECHO_C" >&6 2871else 2872 cat >conftest.make <<\_ACEOF 2873all: 2874 @echo 'ac_maketemp="$(MAKE)"' 2875_ACEOF 2876# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2877eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2878if test -n "$ac_maketemp"; then 2879 eval ac_cv_prog_make_${ac_make}_set=yes 2880else 2881 eval ac_cv_prog_make_${ac_make}_set=no 2882fi 2883rm -f conftest.make 2884fi 2885if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2886 echo "$as_me:$LINENO: result: yes" >&5 2887echo "${ECHO_T}yes" >&6 2888 SET_MAKE= 2889else 2890 echo "$as_me:$LINENO: result: no" >&5 2891echo "${ECHO_T}no" >&6 2892 SET_MAKE="MAKE=${MAKE-make}" 2893fi 2894 2895rm -rf .tst 2>/dev/null 2896mkdir .tst 2>/dev/null 2897if test -d .tst; then 2898 am__leading_dot=. 2899else 2900 am__leading_dot=_ 2901fi 2902rmdir .tst 2>/dev/null 2903 2904DEPDIR="${am__leading_dot}deps" 2905 2906 ac_config_commands="$ac_config_commands depfiles" 2907 2908 2909am_make=${MAKE-make} 2910cat > confinc << 'END' 2911am__doit: 2912 @echo done 2913.PHONY: am__doit 2914END 2915# If we don't find an include directive, just comment out the code. 2916echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2917echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2918am__include="#" 2919am__quote= 2920_am_result=none 2921# First try GNU make style include. 2922echo "include confinc" > confmf 2923# We grep out `Entering directory' and `Leaving directory' 2924# messages which can occur if `w' ends up in MAKEFLAGS. 2925# In particular we don't look at `^make:' because GNU make might 2926# be invoked under some other name (usually "gmake"), in which 2927# case it prints its new name instead of `make'. 2928if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2929 am__include=include 2930 am__quote= 2931 _am_result=GNU 2932fi 2933# Now try BSD make style include. 2934if test "$am__include" = "#"; then 2935 echo '.include "confinc"' > confmf 2936 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2937 am__include=.include 2938 am__quote="\"" 2939 _am_result=BSD 2940 fi 2941fi 2942 2943 2944echo "$as_me:$LINENO: result: $_am_result" >&5 2945echo "${ECHO_T}$_am_result" >&6 2946rm -f confinc confmf 2947 2948# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2949if test "${enable_dependency_tracking+set}" = set; then 2950 enableval="$enable_dependency_tracking" 2951 2952fi; 2953if test "x$enable_dependency_tracking" != xno; then 2954 am_depcomp="$ac_aux_dir/depcomp" 2955 AMDEPBACKSLASH='\' 2956fi 2957 2958 2959if test "x$enable_dependency_tracking" != xno; then 2960 AMDEP_TRUE= 2961 AMDEP_FALSE='#' 2962else 2963 AMDEP_TRUE='#' 2964 AMDEP_FALSE= 2965fi 2966 2967 2968 2969# test to see if srcdir already configured 2970if test "`cd $srcdir && pwd`" != "`pwd`" && 2971 test -f $srcdir/config.status; then 2972 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2973echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2974 { (exit 1); exit 1; }; } 2975fi 2976 2977# test whether we have cygpath 2978if test -z "$CYGPATH_W"; then 2979 if (cygpath --version) >/dev/null 2>/dev/null; then 2980 CYGPATH_W='cygpath -w' 2981 else 2982 CYGPATH_W=echo 2983 fi 2984fi 2985 2986 2987# Define the identity of the package. 2988 PACKAGE=ld 2989 VERSION=${BFD_VERSION} 2990 2991 2992cat >>confdefs.h <<_ACEOF 2993#define PACKAGE "$PACKAGE" 2994_ACEOF 2995 2996 2997cat >>confdefs.h <<_ACEOF 2998#define VERSION "$VERSION" 2999_ACEOF 3000 3001# Some tools Automake needs. 3002 3003ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3004 3005 3006AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3007 3008 3009AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3010 3011 3012AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3013 3014 3015MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3016 3017install_sh=${install_sh-"$am_aux_dir/install-sh"} 3018 3019# Installed binaries are usually stripped using `strip' when the user 3020# run `make install-strip'. However `strip' might not be the right 3021# tool to use in cross-compilation environments, therefore Automake 3022# will honor the `STRIP' environment variable to overrule this program. 3023if test "$cross_compiling" != no; then 3024 if test -n "$ac_tool_prefix"; then 3025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3026set dummy ${ac_tool_prefix}strip; ac_word=$2 3027echo "$as_me:$LINENO: checking for $ac_word" >&5 3028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3029if test "${ac_cv_prog_STRIP+set}" = set; then 3030 echo $ECHO_N "(cached) $ECHO_C" >&6 3031else 3032 if test -n "$STRIP"; then 3033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3034else 3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3036for as_dir in $PATH 3037do 3038 IFS=$as_save_IFS 3039 test -z "$as_dir" && as_dir=. 3040 for ac_exec_ext in '' $ac_executable_extensions; do 3041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3042 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3044 break 2 3045 fi 3046done 3047done 3048 3049fi 3050fi 3051STRIP=$ac_cv_prog_STRIP 3052if test -n "$STRIP"; then 3053 echo "$as_me:$LINENO: result: $STRIP" >&5 3054echo "${ECHO_T}$STRIP" >&6 3055else 3056 echo "$as_me:$LINENO: result: no" >&5 3057echo "${ECHO_T}no" >&6 3058fi 3059 3060fi 3061if test -z "$ac_cv_prog_STRIP"; then 3062 ac_ct_STRIP=$STRIP 3063 # Extract the first word of "strip", so it can be a program name with args. 3064set dummy strip; ac_word=$2 3065echo "$as_me:$LINENO: checking for $ac_word" >&5 3066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3067if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 3068 echo $ECHO_N "(cached) $ECHO_C" >&6 3069else 3070 if test -n "$ac_ct_STRIP"; then 3071 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3072else 3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3074for as_dir in $PATH 3075do 3076 IFS=$as_save_IFS 3077 test -z "$as_dir" && as_dir=. 3078 for ac_exec_ext in '' $ac_executable_extensions; do 3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3080 ac_cv_prog_ac_ct_STRIP="strip" 3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3082 break 2 3083 fi 3084done 3085done 3086 3087 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 3088fi 3089fi 3090ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3091if test -n "$ac_ct_STRIP"; then 3092 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 3093echo "${ECHO_T}$ac_ct_STRIP" >&6 3094else 3095 echo "$as_me:$LINENO: result: no" >&5 3096echo "${ECHO_T}no" >&6 3097fi 3098 3099 STRIP=$ac_ct_STRIP 3100else 3101 STRIP="$ac_cv_prog_STRIP" 3102fi 3103 3104fi 3105INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 3106 3107# We need awk for the "check" target. The system "awk" is bad on 3108# some platforms. 3109# Always define AMTAR for backward compatibility. 3110 3111AMTAR=${AMTAR-"${am_missing_run}tar"} 3112 3113am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3114 3115 3116 3117 3118depcc="$CC" am_compiler_list= 3119 3120echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3121echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3122if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3123 echo $ECHO_N "(cached) $ECHO_C" >&6 3124else 3125 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3126 # We make a subdir and do the tests there. Otherwise we can end up 3127 # making bogus files that we don't know about and never remove. For 3128 # instance it was reported that on HP-UX the gcc test will end up 3129 # making a dummy file named `D' -- because `-MD' means `put the output 3130 # in D'. 3131 mkdir conftest.dir 3132 # Copy depcomp to subdir because otherwise we won't find it if we're 3133 # using a relative directory. 3134 cp "$am_depcomp" conftest.dir 3135 cd conftest.dir 3136 # We will build objects and dependencies in a subdirectory because 3137 # it helps to detect inapplicable dependency modes. For instance 3138 # both Tru64's cc and ICC support -MD to output dependencies as a 3139 # side effect of compilation, but ICC will put the dependencies in 3140 # the current directory while Tru64 will put them in the object 3141 # directory. 3142 mkdir sub 3143 3144 am_cv_CC_dependencies_compiler_type=none 3145 if test "$am_compiler_list" = ""; then 3146 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3147 fi 3148 for depmode in $am_compiler_list; do 3149 # Setup a source with many dependencies, because some compilers 3150 # like to wrap large dependency lists on column 80 (with \), and 3151 # we should not choose a depcomp mode which is confused by this. 3152 # 3153 # We need to recreate these files for each test, as the compiler may 3154 # overwrite some of them when testing with obscure command lines. 3155 # This happens at least with the AIX C compiler. 3156 : > sub/conftest.c 3157 for i in 1 2 3 4 5 6; do 3158 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3159 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3160 # Solaris 8's {/usr,}/bin/sh. 3161 touch sub/conftst$i.h 3162 done 3163 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3164 3165 case $depmode in 3166 nosideeffect) 3167 # after this tag, mechanisms are not by side-effect, so they'll 3168 # only be used when explicitly requested 3169 if test "x$enable_dependency_tracking" = xyes; then 3170 continue 3171 else 3172 break 3173 fi 3174 ;; 3175 none) break ;; 3176 esac 3177 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3178 # mode. It turns out that the SunPro C++ compiler does not properly 3179 # handle `-M -o', and we need to detect this. 3180 if depmode=$depmode \ 3181 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3182 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3183 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3184 >/dev/null 2>conftest.err && 3185 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3186 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3187 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3188 # icc doesn't choke on unknown options, it will just issue warnings 3189 # or remarks (even with -Werror). So we grep stderr for any message 3190 # that says an option was ignored or not supported. 3191 # When given -MP, icc 7.0 and 7.1 complain thusly: 3192 # icc: Command line warning: ignoring option '-M'; no argument required 3193 # The diagnosis changed in icc 8.0: 3194 # icc: Command line remark: option '-MP' not supported 3195 if (grep 'ignoring option' conftest.err || 3196 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3197 am_cv_CC_dependencies_compiler_type=$depmode 3198 break 3199 fi 3200 fi 3201 done 3202 3203 cd .. 3204 rm -rf conftest.dir 3205else 3206 am_cv_CC_dependencies_compiler_type=none 3207fi 3208 3209fi 3210echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3211echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3212CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3213 3214 3215 3216if 3217 test "x$enable_dependency_tracking" != xno \ 3218 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3219 am__fastdepCC_TRUE= 3220 am__fastdepCC_FALSE='#' 3221else 3222 am__fastdepCC_TRUE='#' 3223 am__fastdepCC_FALSE= 3224fi 3225 3226 3227 3228 3229 3230 3231macro_version='2.1a' 3232macro_revision='1.2435' 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245ltmain="$ac_aux_dir/ltmain.sh" 3246 3247# Set options 3248 3249enable_dlopen=no 3250 3251 3252enable_win32_dll=no 3253 3254 3255# Check whether --enable-shared or --disable-shared was given. 3256if test "${enable_shared+set}" = set; then 3257 enableval="$enable_shared" 3258 p=${PACKAGE-default} 3259 case $enableval in 3260 yes) enable_shared=yes ;; 3261 no) enable_shared=no ;; 3262 *) 3263 enable_shared=no 3264 # Look at the argument we got. We use all the common list separators. 3265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3266 for pkg in $enableval; do 3267 IFS="$lt_save_ifs" 3268 if test "X$pkg" = "X$p"; then 3269 enable_shared=yes 3270 fi 3271 done 3272 IFS="$lt_save_ifs" 3273 ;; 3274 esac 3275else 3276 enable_shared=yes 3277fi; 3278 3279 3280 3281 3282 3283 3284 3285 3286# Check whether --enable-static or --disable-static was given. 3287if test "${enable_static+set}" = set; then 3288 enableval="$enable_static" 3289 p=${PACKAGE-default} 3290 case $enableval in 3291 yes) enable_static=yes ;; 3292 no) enable_static=no ;; 3293 *) 3294 enable_static=no 3295 # Look at the argument we got. We use all the common list separators. 3296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3297 for pkg in $enableval; do 3298 IFS="$lt_save_ifs" 3299 if test "X$pkg" = "X$p"; then 3300 enable_static=yes 3301 fi 3302 done 3303 IFS="$lt_save_ifs" 3304 ;; 3305 esac 3306else 3307 enable_static=yes 3308fi; 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318# Check whether --with-pic or --without-pic was given. 3319if test "${with_pic+set}" = set; then 3320 withval="$with_pic" 3321 pic_mode="$withval" 3322else 3323 pic_mode=default 3324fi; 3325 3326test -z "$pic_mode" && pic_mode=default 3327 3328 3329 3330 3331 3332 3333 3334# Check whether --enable-fast-install or --disable-fast-install was given. 3335if test "${enable_fast_install+set}" = set; then 3336 enableval="$enable_fast_install" 3337 p=${PACKAGE-default} 3338 case $enableval in 3339 yes) enable_fast_install=yes ;; 3340 no) enable_fast_install=no ;; 3341 *) 3342 enable_fast_install=no 3343 # Look at the argument we got. We use all the common list separators. 3344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3345 for pkg in $enableval; do 3346 IFS="$lt_save_ifs" 3347 if test "X$pkg" = "X$p"; then 3348 enable_fast_install=yes 3349 fi 3350 done 3351 IFS="$lt_save_ifs" 3352 ;; 3353 esac 3354else 3355 enable_fast_install=yes 3356fi; 3357 3358 3359 3360 3361 3362 3363 3364 3365echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3366echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3367if test "${lt_cv_path_SED+set}" = set; then 3368 echo $ECHO_N "(cached) $ECHO_C" >&6 3369else 3370 # Loop through the user's path and test for sed and gsed. 3371# Then use that list of sed's as ones to test for truncation. 3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3373for as_dir in $PATH 3374do 3375 IFS=$as_save_IFS 3376 test -z "$as_dir" && as_dir=. 3377 for lt_ac_prog in sed gsed; do 3378 for ac_exec_ext in '' $ac_executable_extensions; do 3379 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3380 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3381 fi 3382 done 3383 done 3384done 3385IFS=$as_save_IFS 3386lt_ac_max=0 3387lt_ac_count=0 3388# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3389# along with /bin/sed that truncates output. 3390for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3391 test ! -f $lt_ac_sed && continue 3392 cat /dev/null > conftest.in 3393 lt_ac_count=0 3394 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3395 # Check for GNU sed and select it if it is found. 3396 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3397 lt_cv_path_SED=$lt_ac_sed 3398 break 3399 fi 3400 while true; do 3401 cat conftest.in conftest.in >conftest.tmp 3402 mv conftest.tmp conftest.in 3403 cp conftest.in conftest.nl 3404 echo >>conftest.nl 3405 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3406 cmp -s conftest.out conftest.nl || break 3407 # 10000 chars as input seems more than enough 3408 test $lt_ac_count -gt 10 && break 3409 lt_ac_count=`expr $lt_ac_count + 1` 3410 if test $lt_ac_count -gt $lt_ac_max; then 3411 lt_ac_max=$lt_ac_count 3412 lt_cv_path_SED=$lt_ac_sed 3413 fi 3414 done 3415done 3416 3417fi 3418 3419SED=$lt_cv_path_SED 3420 3421echo "$as_me:$LINENO: result: $SED" >&5 3422echo "${ECHO_T}$SED" >&6 3423 3424test -z "$SED" && SED=sed 3425Xsed="$SED -e 1s/^X//" 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437echo "$as_me:$LINENO: checking for egrep" >&5 3438echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3439if test "${ac_cv_prog_egrep+set}" = set; then 3440 echo $ECHO_N "(cached) $ECHO_C" >&6 3441else 3442 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3443 then ac_cv_prog_egrep='grep -E' 3444 else ac_cv_prog_egrep='egrep' 3445 fi 3446fi 3447echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3448echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3449 EGREP=$ac_cv_prog_egrep 3450 3451 3452echo "$as_me:$LINENO: checking for fgrep" >&5 3453echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 3454if test "${ac_cv_prog_fgrep+set}" = set; then 3455 echo $ECHO_N "(cached) $ECHO_C" >&6 3456else 3457 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 3458 then ac_cv_prog_fgrep='grep -F' 3459 else ac_cv_prog_fgrep='fgrep' 3460 fi 3461fi 3462echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 3463echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 3464 FGREP=$ac_cv_prog_fgrep 3465 3466 3467test -z "$GREP" && GREP=grep 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487# Check whether --with-gnu-ld or --without-gnu-ld was given. 3488if test "${with_gnu_ld+set}" = set; then 3489 withval="$with_gnu_ld" 3490 test "$withval" = no || with_gnu_ld=yes 3491else 3492 with_gnu_ld=no 3493fi; 3494ac_prog=ld 3495if test "$GCC" = yes; then 3496 # Check if gcc -print-prog-name=ld gives a path. 3497 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3498echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3499 case $host in 3500 *-*-mingw*) 3501 # gcc leaves a trailing carriage return which upsets mingw 3502 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3503 *) 3504 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3505 esac 3506 case $ac_prog in 3507 # Accept absolute paths. 3508 [\\/]* | ?:[\\/]*) 3509 re_direlt='/[^/][^/]*/\.\./' 3510 # Canonicalize the pathname of ld 3511 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3512 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3513 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3514 done 3515 test -z "$LD" && LD="$ac_prog" 3516 ;; 3517 "") 3518 # If it fails, then pretend we aren't using GCC. 3519 ac_prog=ld 3520 ;; 3521 *) 3522 # If it is relative, then search for the first ld in PATH. 3523 with_gnu_ld=unknown 3524 ;; 3525 esac 3526elif test "$with_gnu_ld" = yes; then 3527 echo "$as_me:$LINENO: checking for GNU ld" >&5 3528echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3529else 3530 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3531echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3532fi 3533if test "${lt_cv_path_LD+set}" = set; then 3534 echo $ECHO_N "(cached) $ECHO_C" >&6 3535else 3536 if test -z "$LD"; then 3537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3538 for ac_dir in $PATH; do 3539 IFS="$lt_save_ifs" 3540 test -z "$ac_dir" && ac_dir=. 3541 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3542 lt_cv_path_LD="$ac_dir/$ac_prog" 3543 # Check to see if the program is GNU ld. I'd rather use --version, 3544 # but apparently some variants of GNU ld only accept -v. 3545 # Break only if it was the GNU/non-GNU ld that we prefer. 3546 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3547 *GNU* | *'with BFD'*) 3548 test "$with_gnu_ld" != no && break 3549 ;; 3550 *) 3551 test "$with_gnu_ld" != yes && break 3552 ;; 3553 esac 3554 fi 3555 done 3556 IFS="$lt_save_ifs" 3557else 3558 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3559fi 3560fi 3561 3562LD="$lt_cv_path_LD" 3563if test -n "$LD"; then 3564 echo "$as_me:$LINENO: result: $LD" >&5 3565echo "${ECHO_T}$LD" >&6 3566else 3567 echo "$as_me:$LINENO: result: no" >&5 3568echo "${ECHO_T}no" >&6 3569fi 3570test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3571echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3572 { (exit 1); exit 1; }; } 3573echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3574echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3575if test "${lt_cv_prog_gnu_ld+set}" = set; then 3576 echo $ECHO_N "(cached) $ECHO_C" >&6 3577else 3578 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3579case `$LD -v 2>&1 </dev/null` in 3580*GNU* | *'with BFD'*) 3581 lt_cv_prog_gnu_ld=yes 3582 ;; 3583*) 3584 lt_cv_prog_gnu_ld=no 3585 ;; 3586esac 3587fi 3588echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3589echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3590with_gnu_ld=$lt_cv_prog_gnu_ld 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 3602echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 3603if test "${lt_cv_path_NM+set}" = set; then 3604 echo $ECHO_N "(cached) $ECHO_C" >&6 3605else 3606 if test -n "$NM"; then 3607 # Let the user override the test. 3608 lt_cv_path_NM="$NM" 3609else 3610 lt_nm_to_check="${ac_tool_prefix}nm" 3611 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3612 lt_nm_to_check="$lt_nm_to_check nm" 3613 fi 3614 for lt_tmp_nm in $lt_nm_to_check; do 3615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3616 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3617 IFS="$lt_save_ifs" 3618 test -z "$ac_dir" && ac_dir=. 3619 tmp_nm="$ac_dir/$lt_tmp_nm" 3620 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3621 # Check to see if the nm accepts a BSD-compat flag. 3622 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3623 # nm: unknown option "B" ignored 3624 # Tru64's nm complains that /dev/null is an invalid object file 3625 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3626 */dev/null* | *'Invalid file or object type'*) 3627 lt_cv_path_NM="$tmp_nm -B" 3628 break 3629 ;; 3630 *) 3631 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3632 */dev/null*) 3633 lt_cv_path_NM="$tmp_nm -p" 3634 break 3635 ;; 3636 *) 3637 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3638 continue # so that we can try to find one that supports BSD flags 3639 ;; 3640 esac 3641 ;; 3642 esac 3643 fi 3644 done 3645 IFS="$lt_save_ifs" 3646 done 3647 : ${lt_cv_path_NM=no} 3648fi 3649fi 3650echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3651echo "${ECHO_T}$lt_cv_path_NM" >&6 3652if test "$lt_cv_path_NM" != "no"; then 3653 NM="$lt_cv_path_NM" 3654else 3655 # Didn't find any BSD compatible name lister, look for dumpbin. 3656 if test -n "$ac_tool_prefix"; then 3657 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3658 do 3659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3660set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3661echo "$as_me:$LINENO: checking for $ac_word" >&5 3662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3663if test "${ac_cv_prog_DUMPBIN+set}" = set; then 3664 echo $ECHO_N "(cached) $ECHO_C" >&6 3665else 3666 if test -n "$DUMPBIN"; then 3667 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 3668else 3669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3670for as_dir in $PATH 3671do 3672 IFS=$as_save_IFS 3673 test -z "$as_dir" && as_dir=. 3674 for ac_exec_ext in '' $ac_executable_extensions; do 3675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3676 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 3677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3678 break 2 3679 fi 3680done 3681done 3682 3683fi 3684fi 3685DUMPBIN=$ac_cv_prog_DUMPBIN 3686if test -n "$DUMPBIN"; then 3687 echo "$as_me:$LINENO: result: $DUMPBIN" >&5 3688echo "${ECHO_T}$DUMPBIN" >&6 3689else 3690 echo "$as_me:$LINENO: result: no" >&5 3691echo "${ECHO_T}no" >&6 3692fi 3693 3694 test -n "$DUMPBIN" && break 3695 done 3696fi 3697if test -z "$DUMPBIN"; then 3698 ac_ct_DUMPBIN=$DUMPBIN 3699 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3700do 3701 # Extract the first word of "$ac_prog", so it can be a program name with args. 3702set dummy $ac_prog; ac_word=$2 3703echo "$as_me:$LINENO: checking for $ac_word" >&5 3704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3705if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 3706 echo $ECHO_N "(cached) $ECHO_C" >&6 3707else 3708 if test -n "$ac_ct_DUMPBIN"; then 3709 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 3710else 3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3712for as_dir in $PATH 3713do 3714 IFS=$as_save_IFS 3715 test -z "$as_dir" && as_dir=. 3716 for ac_exec_ext in '' $ac_executable_extensions; do 3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3718 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3720 break 2 3721 fi 3722done 3723done 3724 3725fi 3726fi 3727ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 3728if test -n "$ac_ct_DUMPBIN"; then 3729 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 3730echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 3731else 3732 echo "$as_me:$LINENO: result: no" >&5 3733echo "${ECHO_T}no" >&6 3734fi 3735 3736 test -n "$ac_ct_DUMPBIN" && break 3737done 3738test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" 3739 3740 DUMPBIN=$ac_ct_DUMPBIN 3741fi 3742 3743 3744 if test "$DUMPBIN" != ":"; then 3745 NM="$DUMPBIN" 3746 fi 3747fi 3748test -z "$NM" && NM=nm 3749 3750 3751 3752 3753 3754 3755echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 3756echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 3757if test "${lt_cv_nm_interface+set}" = set; then 3758 echo $ECHO_N "(cached) $ECHO_C" >&6 3759else 3760 lt_cv_nm_interface="BSD nm" 3761 echo "int some_variable = 0;" > conftest.$ac_ext 3762 (eval echo "\"\$as_me:3762: $ac_compile\"" >&5) 3763 (eval "$ac_compile" 2>conftest.err) 3764 cat conftest.err >&5 3765 (eval echo "\"\$as_me:3765: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 3766 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3767 cat conftest.err >&5 3768 (eval echo "\"\$as_me:3768: output\"" >&5) 3769 cat conftest.out >&5 3770 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3771 lt_cv_nm_interface="MS dumpbin" 3772 fi 3773 rm -f conftest* 3774fi 3775echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 3776echo "${ECHO_T}$lt_cv_nm_interface" >&6 3777 3778echo "$as_me:$LINENO: checking whether ln -s works" >&5 3779echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3780LN_S=$as_ln_s 3781if test "$LN_S" = "ln -s"; then 3782 echo "$as_me:$LINENO: result: yes" >&5 3783echo "${ECHO_T}yes" >&6 3784else 3785 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3786echo "${ECHO_T}no, using $LN_S" >&6 3787fi 3788 3789# find the maximum length of command line arguments 3790echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 3791echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 3792if test "${lt_cv_sys_max_cmd_len+set}" = set; then 3793 echo $ECHO_N "(cached) $ECHO_C" >&6 3794else 3795 i=0 3796 teststring="ABCD" 3797 3798 case $build_os in 3799 msdosdjgpp*) 3800 # On DJGPP, this test can blow up pretty badly due to problems in libc 3801 # (any single argument exceeding 2000 bytes causes a buffer overrun 3802 # during glob expansion). Even if it were fixed, the result of this 3803 # check would be larger than it should be. 3804 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3805 ;; 3806 3807 gnu*) 3808 # Under GNU Hurd, this test is not required because there is 3809 # no limit to the length of command line arguments. 3810 # Libtool will interpret -1 as no limit whatsoever 3811 lt_cv_sys_max_cmd_len=-1; 3812 ;; 3813 3814 cygwin* | mingw*) 3815 # On Win9x/ME, this test blows up -- it succeeds, but takes 3816 # about 5 minutes as the teststring grows exponentially. 3817 # Worse, since 9x/ME are not pre-emptively multitasking, 3818 # you end up with a "frozen" computer, even though with patience 3819 # the test eventually succeeds (with a max line length of 256k). 3820 # Instead, let's just punt: use the minimum linelength reported by 3821 # all of the supported platforms: 8192 (on NT/2K/XP). 3822 lt_cv_sys_max_cmd_len=8192; 3823 ;; 3824 3825 amigaos*) 3826 # On AmigaOS with pdksh, this test takes hours, literally. 3827 # So we just punt and use a minimum line length of 8192. 3828 lt_cv_sys_max_cmd_len=8192; 3829 ;; 3830 3831 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 3832 # This has been around since 386BSD, at least. Likely further. 3833 if test -x /sbin/sysctl; then 3834 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3835 elif test -x /usr/sbin/sysctl; then 3836 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3837 else 3838 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3839 fi 3840 # And add a safety zone 3841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3843 ;; 3844 3845 interix*) 3846 # We know the value 262144 and hardcode it with a safety zone (like BSD) 3847 lt_cv_sys_max_cmd_len=196608 3848 ;; 3849 3850 osf*) 3851 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 3852 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 3853 # nice to cause kernel panics so lets avoid the loop below. 3854 # First set a reasonable default. 3855 lt_cv_sys_max_cmd_len=16384 3856 # 3857 if test -x /sbin/sysconfig; then 3858 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 3859 *1*) lt_cv_sys_max_cmd_len=-1 ;; 3860 esac 3861 fi 3862 ;; 3863 sco3.2v5*) 3864 lt_cv_sys_max_cmd_len=102400 3865 ;; 3866 sysv5* | sco5v6* | sysv4.2uw2*) 3867 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 3868 if test -n "$kargmax"; then 3869 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 3870 else 3871 lt_cv_sys_max_cmd_len=32768 3872 fi 3873 ;; 3874 *) 3875 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null` 3876 if test -n $lt_cv_sys_max_cmd_len; then 3877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3879 else 3880 # Make teststring a little bigger before we do anything with it. 3881 # a 1K string should be a reasonable start. 3882 for i in 1 2 3 4 5 6 7 8 ; do 3883 teststring=$teststring$teststring 3884 done 3885 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 3886 # If test is not a shell built-in, we'll probably end up computing a 3887 # maximum length that is only half of the actual maximum length, but 3888 # we can't tell. 3889 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 3890 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 3891 test $i != 17 # 1/2 MB should be enough 3892 do 3893 i=`expr $i + 1` 3894 teststring=$teststring$teststring 3895 done 3896 # Only check the string length outside the loop. 3897 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 3898 teststring= 3899 # Add a significant safety factor because C++ compilers can tack on 3900 # massive amounts of additional arguments before passing them to the 3901 # linker. It appears as though 1/2 is a usable value. 3902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3903 fi 3904 ;; 3905 esac 3906 3907fi 3908 3909if test -n $lt_cv_sys_max_cmd_len ; then 3910 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 3911echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 3912else 3913 echo "$as_me:$LINENO: result: none" >&5 3914echo "${ECHO_T}none" >&6 3915fi 3916max_cmd_len=$lt_cv_sys_max_cmd_len 3917 3918 3919 3920 3921 3922 3923 3924: ${CP="cp -f"} 3925: ${MV="mv -f"} 3926: ${RM="rm -f"} 3927 3928echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 3929echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 3930# Try some XSI features 3931xsi_shell=no 3932( _lt_dummy="a/b/c" 3933 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 3934 = c,a/b,, ) >/dev/null 2>&1 \ 3935 && xsi_shell=yes 3936echo "$as_me:$LINENO: result: $xsi_shell" >&5 3937echo "${ECHO_T}$xsi_shell" >&6 3938 3939 3940echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 3941echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 3942lt_shell_append=no 3943( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 3944 >/dev/null 2>&1 \ 3945 && lt_shell_append=yes 3946echo "$as_me:$LINENO: result: $lt_shell_append" >&5 3947echo "${ECHO_T}$lt_shell_append" >&6 3948 3949 3950if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 3951 lt_unset=unset 3952else 3953 lt_unset=false 3954fi 3955 3956 3957 3958 3959 3960# test EBCDIC or ASCII 3961case `echo X|tr X '\101'` in 3962 A) # ASCII based system 3963 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 3964 lt_SP2NL='tr \040 \012' 3965 lt_NL2SP='tr \015\012 \040\040' 3966 ;; 3967 *) # EBCDIC based system 3968 lt_SP2NL='tr \100 \n' 3969 lt_NL2SP='tr \r\n \100\100' 3970 ;; 3971esac 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3982echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3983if test "${lt_cv_ld_reload_flag+set}" = set; then 3984 echo $ECHO_N "(cached) $ECHO_C" >&6 3985else 3986 lt_cv_ld_reload_flag='-r' 3987fi 3988echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3989echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3990reload_flag=$lt_cv_ld_reload_flag 3991case $reload_flag in 3992"" | " "*) ;; 3993*) reload_flag=" $reload_flag" ;; 3994esac 3995reload_cmds='$LD$reload_flag -o $output$reload_objs' 3996case $host_os in 3997 darwin*) 3998 if test "$GCC" = yes; then 3999 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4000 else 4001 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4002 fi 4003 ;; 4004esac 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4016echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 4017if test "${lt_cv_deplibs_check_method+set}" = set; then 4018 echo $ECHO_N "(cached) $ECHO_C" >&6 4019else 4020 lt_cv_file_magic_cmd='$MAGIC_CMD' 4021lt_cv_file_magic_test_file= 4022lt_cv_deplibs_check_method='unknown' 4023# Need to set the preceding variable on all platforms that support 4024# interlibrary dependencies. 4025# 'none' -- dependencies not supported. 4026# `unknown' -- same as none, but documents that we really don't know. 4027# 'pass_all' -- all dependencies passed with no checks. 4028# 'test_compile' -- check by making test program. 4029# 'file_magic [[regex]]' -- check by looking for files in library path 4030# which responds to the $file_magic_cmd with a given extended regex. 4031# If you have `file' or equivalent on your system and you're not sure 4032# whether `pass_all' will *always* work, you probably want this one. 4033 4034case $host_os in 4035aix4* | aix5*) 4036 lt_cv_deplibs_check_method=pass_all 4037 ;; 4038 4039beos*) 4040 lt_cv_deplibs_check_method=pass_all 4041 ;; 4042 4043bsdi[45]*) 4044 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4045 lt_cv_file_magic_cmd='/usr/bin/file -L' 4046 lt_cv_file_magic_test_file=/shlib/libc.so 4047 ;; 4048 4049cygwin*) 4050 # func_win32_libid is a shell function defined in ltmain.sh 4051 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4052 lt_cv_file_magic_cmd='func_win32_libid' 4053 ;; 4054 4055mingw* | pw32*) 4056 # Base MSYS/MinGW do not provide the 'file' command needed by 4057 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4058 # unless we find 'file', for example because we are cross-compiling. 4059 if ( file / ) >/dev/null 2>&1; then 4060 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4061 lt_cv_file_magic_cmd='func_win32_libid' 4062 else 4063 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4064 lt_cv_file_magic_cmd='$OBJDUMP -f' 4065 fi 4066 ;; 4067 4068darwin* | rhapsody*) 4069 lt_cv_deplibs_check_method=pass_all 4070 ;; 4071 4072freebsd* | dragonfly*) 4073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4074 case $host_cpu in 4075 i*86 ) 4076 # Not sure whether the presence of OpenBSD here was a mistake. 4077 # Let's accept both of them until this is cleared up. 4078 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4079 lt_cv_file_magic_cmd=/usr/bin/file 4080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4081 ;; 4082 esac 4083 else 4084 lt_cv_deplibs_check_method=pass_all 4085 fi 4086 ;; 4087 4088gnu*) 4089 lt_cv_deplibs_check_method=pass_all 4090 ;; 4091 4092hpux10.20* | hpux11*) 4093 lt_cv_file_magic_cmd=/usr/bin/file 4094 case $host_cpu in 4095 ia64*) 4096 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4097 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4098 ;; 4099 hppa*64*) 4100 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 4101 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4102 ;; 4103 *) 4104 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4105 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4106 ;; 4107 esac 4108 ;; 4109 4110interix[3-9]*) 4111 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4113 ;; 4114 4115irix5* | irix6* | nonstopux*) 4116 case $LD in 4117 *-32|*"-32 ") libmagic=32-bit;; 4118 *-n32|*"-n32 ") libmagic=N32;; 4119 *-64|*"-64 ") libmagic=64-bit;; 4120 *) libmagic=never-match;; 4121 esac 4122 lt_cv_deplibs_check_method=pass_all 4123 ;; 4124 4125# This must be Linux ELF. 4126linux* | k*bsd*-gnu) 4127 lt_cv_deplibs_check_method=pass_all 4128 ;; 4129 4130netbsd*) 4131 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4133 else 4134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4135 fi 4136 ;; 4137 4138newos6*) 4139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4140 lt_cv_file_magic_cmd=/usr/bin/file 4141 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4142 ;; 4143 4144*nto* | *qnx*) 4145 lt_cv_deplibs_check_method=pass_all 4146 ;; 4147 4148openbsd*) 4149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4151 else 4152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4153 fi 4154 ;; 4155 4156osf3* | osf4* | osf5*) 4157 lt_cv_deplibs_check_method=pass_all 4158 ;; 4159 4160rdos*) 4161 lt_cv_deplibs_check_method=pass_all 4162 ;; 4163 4164solaris*) 4165 lt_cv_deplibs_check_method=pass_all 4166 ;; 4167 4168sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4169 lt_cv_deplibs_check_method=pass_all 4170 ;; 4171 4172sysv4 | sysv4.3*) 4173 case $host_vendor in 4174 motorola) 4175 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]' 4176 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4177 ;; 4178 ncr) 4179 lt_cv_deplibs_check_method=pass_all 4180 ;; 4181 sequent) 4182 lt_cv_file_magic_cmd='/bin/file' 4183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4184 ;; 4185 sni) 4186 lt_cv_file_magic_cmd='/bin/file' 4187 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4188 lt_cv_file_magic_test_file=/lib/libc.so 4189 ;; 4190 siemens) 4191 lt_cv_deplibs_check_method=pass_all 4192 ;; 4193 pc) 4194 lt_cv_deplibs_check_method=pass_all 4195 ;; 4196 esac 4197 ;; 4198 4199tpf*) 4200 lt_cv_deplibs_check_method=pass_all 4201 ;; 4202esac 4203 4204fi 4205echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4206echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4207file_magic_cmd=$lt_cv_file_magic_cmd 4208deplibs_check_method=$lt_cv_deplibs_check_method 4209test -z "$deplibs_check_method" && deplibs_check_method=unknown 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222if test -n "$ac_tool_prefix"; then 4223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4224set dummy ${ac_tool_prefix}ar; ac_word=$2 4225echo "$as_me:$LINENO: checking for $ac_word" >&5 4226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4227if test "${ac_cv_prog_AR+set}" = set; then 4228 echo $ECHO_N "(cached) $ECHO_C" >&6 4229else 4230 if test -n "$AR"; then 4231 ac_cv_prog_AR="$AR" # Let the user override the test. 4232else 4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4234for as_dir in $PATH 4235do 4236 IFS=$as_save_IFS 4237 test -z "$as_dir" && as_dir=. 4238 for ac_exec_ext in '' $ac_executable_extensions; do 4239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4240 ac_cv_prog_AR="${ac_tool_prefix}ar" 4241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4242 break 2 4243 fi 4244done 4245done 4246 4247fi 4248fi 4249AR=$ac_cv_prog_AR 4250if test -n "$AR"; then 4251 echo "$as_me:$LINENO: result: $AR" >&5 4252echo "${ECHO_T}$AR" >&6 4253else 4254 echo "$as_me:$LINENO: result: no" >&5 4255echo "${ECHO_T}no" >&6 4256fi 4257 4258fi 4259if test -z "$ac_cv_prog_AR"; then 4260 ac_ct_AR=$AR 4261 # Extract the first word of "ar", so it can be a program name with args. 4262set dummy ar; ac_word=$2 4263echo "$as_me:$LINENO: checking for $ac_word" >&5 4264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4265if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4266 echo $ECHO_N "(cached) $ECHO_C" >&6 4267else 4268 if test -n "$ac_ct_AR"; then 4269 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4270else 4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4272for as_dir in $PATH 4273do 4274 IFS=$as_save_IFS 4275 test -z "$as_dir" && as_dir=. 4276 for ac_exec_ext in '' $ac_executable_extensions; do 4277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4278 ac_cv_prog_ac_ct_AR="ar" 4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4280 break 2 4281 fi 4282done 4283done 4284 4285 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 4286fi 4287fi 4288ac_ct_AR=$ac_cv_prog_ac_ct_AR 4289if test -n "$ac_ct_AR"; then 4290 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 4291echo "${ECHO_T}$ac_ct_AR" >&6 4292else 4293 echo "$as_me:$LINENO: result: no" >&5 4294echo "${ECHO_T}no" >&6 4295fi 4296 4297 AR=$ac_ct_AR 4298else 4299 AR="$ac_cv_prog_AR" 4300fi 4301 4302test -z "$AR" && AR=ar 4303test -z "$AR_FLAGS" && AR_FLAGS=cru 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315if test -n "$ac_tool_prefix"; then 4316 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4317set dummy ${ac_tool_prefix}strip; ac_word=$2 4318echo "$as_me:$LINENO: checking for $ac_word" >&5 4319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4320if test "${ac_cv_prog_STRIP+set}" = set; then 4321 echo $ECHO_N "(cached) $ECHO_C" >&6 4322else 4323 if test -n "$STRIP"; then 4324 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4325else 4326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4327for as_dir in $PATH 4328do 4329 IFS=$as_save_IFS 4330 test -z "$as_dir" && as_dir=. 4331 for ac_exec_ext in '' $ac_executable_extensions; do 4332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4333 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4335 break 2 4336 fi 4337done 4338done 4339 4340fi 4341fi 4342STRIP=$ac_cv_prog_STRIP 4343if test -n "$STRIP"; then 4344 echo "$as_me:$LINENO: result: $STRIP" >&5 4345echo "${ECHO_T}$STRIP" >&6 4346else 4347 echo "$as_me:$LINENO: result: no" >&5 4348echo "${ECHO_T}no" >&6 4349fi 4350 4351fi 4352if test -z "$ac_cv_prog_STRIP"; then 4353 ac_ct_STRIP=$STRIP 4354 # Extract the first word of "strip", so it can be a program name with args. 4355set dummy strip; ac_word=$2 4356echo "$as_me:$LINENO: checking for $ac_word" >&5 4357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4358if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4359 echo $ECHO_N "(cached) $ECHO_C" >&6 4360else 4361 if test -n "$ac_ct_STRIP"; then 4362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4363else 4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4365for as_dir in $PATH 4366do 4367 IFS=$as_save_IFS 4368 test -z "$as_dir" && as_dir=. 4369 for ac_exec_ext in '' $ac_executable_extensions; do 4370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4371 ac_cv_prog_ac_ct_STRIP="strip" 4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4373 break 2 4374 fi 4375done 4376done 4377 4378 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 4379fi 4380fi 4381ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4382if test -n "$ac_ct_STRIP"; then 4383 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4384echo "${ECHO_T}$ac_ct_STRIP" >&6 4385else 4386 echo "$as_me:$LINENO: result: no" >&5 4387echo "${ECHO_T}no" >&6 4388fi 4389 4390 STRIP=$ac_ct_STRIP 4391else 4392 STRIP="$ac_cv_prog_STRIP" 4393fi 4394 4395test -z "$STRIP" && STRIP=: 4396 4397 4398 4399 4400 4401 4402if test -n "$ac_tool_prefix"; then 4403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4404set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4405echo "$as_me:$LINENO: checking for $ac_word" >&5 4406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4407if test "${ac_cv_prog_RANLIB+set}" = set; then 4408 echo $ECHO_N "(cached) $ECHO_C" >&6 4409else 4410 if test -n "$RANLIB"; then 4411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4412else 4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4414for as_dir in $PATH 4415do 4416 IFS=$as_save_IFS 4417 test -z "$as_dir" && as_dir=. 4418 for ac_exec_ext in '' $ac_executable_extensions; do 4419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4420 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4422 break 2 4423 fi 4424done 4425done 4426 4427fi 4428fi 4429RANLIB=$ac_cv_prog_RANLIB 4430if test -n "$RANLIB"; then 4431 echo "$as_me:$LINENO: result: $RANLIB" >&5 4432echo "${ECHO_T}$RANLIB" >&6 4433else 4434 echo "$as_me:$LINENO: result: no" >&5 4435echo "${ECHO_T}no" >&6 4436fi 4437 4438fi 4439if test -z "$ac_cv_prog_RANLIB"; then 4440 ac_ct_RANLIB=$RANLIB 4441 # Extract the first word of "ranlib", so it can be a program name with args. 4442set dummy ranlib; ac_word=$2 4443echo "$as_me:$LINENO: checking for $ac_word" >&5 4444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4445if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4446 echo $ECHO_N "(cached) $ECHO_C" >&6 4447else 4448 if test -n "$ac_ct_RANLIB"; then 4449 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4450else 4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4452for as_dir in $PATH 4453do 4454 IFS=$as_save_IFS 4455 test -z "$as_dir" && as_dir=. 4456 for ac_exec_ext in '' $ac_executable_extensions; do 4457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4458 ac_cv_prog_ac_ct_RANLIB="ranlib" 4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4460 break 2 4461 fi 4462done 4463done 4464 4465 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 4466fi 4467fi 4468ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4469if test -n "$ac_ct_RANLIB"; then 4470 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4471echo "${ECHO_T}$ac_ct_RANLIB" >&6 4472else 4473 echo "$as_me:$LINENO: result: no" >&5 4474echo "${ECHO_T}no" >&6 4475fi 4476 4477 RANLIB=$ac_ct_RANLIB 4478else 4479 RANLIB="$ac_cv_prog_RANLIB" 4480fi 4481 4482test -z "$RANLIB" && RANLIB=: 4483 4484 4485 4486 4487 4488 4489# Determine commands to create old-style static archives. 4490old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 4491old_postinstall_cmds='chmod 644 $oldlib' 4492old_postuninstall_cmds= 4493 4494if test -n "$RANLIB"; then 4495 case $host_os in 4496 openbsd*) 4497 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 4498 ;; 4499 *) 4500 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 4501 ;; 4502 esac 4503 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4504fi 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539# If no C compiler was specified, use CC. 4540LTCC=${LTCC-"$CC"} 4541 4542# If no C compiler flags were specified, use CFLAGS. 4543LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4544 4545# Allow CC to be a program name with arguments. 4546compiler=$CC 4547 4548 4549# Check for command to grab the raw symbol name followed by C symbol from nm. 4550echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 4551echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 4552if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 4553 echo $ECHO_N "(cached) $ECHO_C" >&6 4554else 4555 4556# These are sane defaults that work on at least a few old systems. 4557# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4558 4559# Character class describing NM global symbol codes. 4560symcode='[BCDEGRST]' 4561 4562# Regexp to match symbols that can be accessed directly from C. 4563sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4564 4565# Define system-specific variables. 4566case $host_os in 4567aix*) 4568 symcode='[BCDT]' 4569 ;; 4570cygwin* | mingw* | pw32*) 4571 symcode='[ABCDGISTW]' 4572 ;; 4573hpux*) 4574 if test "$host_cpu" = ia64; then 4575 symcode='[ABCDEGRST]' 4576 fi 4577 ;; 4578irix* | nonstopux*) 4579 symcode='[BCDEGRST]' 4580 ;; 4581osf*) 4582 symcode='[BCDEGQRST]' 4583 ;; 4584solaris*) 4585 symcode='[BDRT]' 4586 ;; 4587sco3.2v5*) 4588 symcode='[DT]' 4589 ;; 4590sysv4.2uw2*) 4591 symcode='[DT]' 4592 ;; 4593sysv5* | sco5v6* | unixware* | OpenUNIX*) 4594 symcode='[ABDT]' 4595 ;; 4596sysv4) 4597 symcode='[DFNSTU]' 4598 ;; 4599esac 4600 4601# If we're using GNU nm, then use its standard symbol codes. 4602case `$NM -V 2>&1` in 4603*GNU* | *'with BFD'*) 4604 symcode='[ABCDGIRSTW]' ;; 4605esac 4606 4607# Transform an extracted symbol line into a proper C declaration. 4608# Some systems (esp. on ia64) link data and code symbols differently, 4609# so use this general approach. 4610lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4611 4612# Transform an extracted symbol line into symbol name and symbol address 4613lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 4614 4615# Handle CRLF in mingw tool chain 4616opt_cr= 4617case $build_os in 4618mingw*) 4619 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4620 ;; 4621esac 4622 4623# Try without a prefix underscore, then with it. 4624for ac_symprfx in "" "_"; do 4625 4626 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4627 symxfrm="\\1 $ac_symprfx\\2 \\2" 4628 4629 # Write the raw and C identifiers. 4630 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4631 # Fake it for dumpbin and say T for any non-static function 4632 # and D for any global variable. 4633 # Also find C++ and __fastcall symbols from MSVC++, 4634 # which start with @ or ?. 4635 lt_cv_sys_global_symbol_pipe="$AWK '"\ 4636" {last_section=section; section=\$ 3};"\ 4637" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4638" \$ 0!~/External *\|/{next};"\ 4639" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4640" {if(hide[section]) next};"\ 4641" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 4642" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 4643" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 4644" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 4645" ' prfx=^$ac_symprfx" 4646 else 4647 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4648 fi 4649 4650 # Check to see that the pipe works correctly. 4651 pipe_works=no 4652 4653 rm -f conftest* 4654 cat > conftest.$ac_ext <<_LT_EOF 4655#ifdef __cplusplus 4656extern "C" { 4657#endif 4658char nm_test_var; 4659void nm_test_func(void); 4660void nm_test_func(void){} 4661#ifdef __cplusplus 4662} 4663#endif 4664int main(){nm_test_var='a';nm_test_func();return(0);} 4665_LT_EOF 4666 4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4668 (eval $ac_compile) 2>&5 4669 ac_status=$? 4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4671 (exit $ac_status); }; then 4672 # Now try to grab the symbols. 4673 nlist=conftest.nm 4674 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 4675 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4676 ac_status=$? 4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4678 (exit $ac_status); } && test -s "$nlist"; then 4679 # Try sorting and uniquifying the output. 4680 if sort "$nlist" | uniq > "$nlist"T; then 4681 mv -f "$nlist"T "$nlist" 4682 else 4683 rm -f "$nlist"T 4684 fi 4685 4686 # Make sure that we snagged all the symbols we need. 4687 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 4688 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 4689 cat <<_LT_EOF > conftest.$ac_ext 4690#ifdef __cplusplus 4691extern "C" { 4692#endif 4693 4694_LT_EOF 4695 # Now generate the symbol file. 4696 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 4697 4698 cat <<_LT_EOF >> conftest.$ac_ext 4699 4700/* The mapping between symbol names and symbols. */ 4701const struct { 4702 const char *name; 4703 void *address; 4704} 4705lt__PROGRAM__LTX_preloaded_symbols[] = 4706{ 4707 { "@PROGRAM@", (void *) 0 }, 4708_LT_EOF 4709 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 4710 cat <<\_LT_EOF >> conftest.$ac_ext 4711 {0, (void *) 0} 4712}; 4713 4714/* This works around a problem in FreeBSD linker */ 4715#ifdef FREEBSD_WORKAROUND 4716static const void *lt_preloaded_setup() { 4717 return lt__PROGRAM__LTX_preloaded_symbols; 4718} 4719#endif 4720 4721#ifdef __cplusplus 4722} 4723#endif 4724_LT_EOF 4725 # Now try linking the two files. 4726 mv conftest.$ac_objext conftstm.$ac_objext 4727 lt_save_LIBS="$LIBS" 4728 lt_save_CFLAGS="$CFLAGS" 4729 LIBS="conftstm.$ac_objext" 4730 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 4731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4732 (eval $ac_link) 2>&5 4733 ac_status=$? 4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4735 (exit $ac_status); } && test -s conftest${ac_exeext}; then 4736 pipe_works=yes 4737 fi 4738 LIBS="$lt_save_LIBS" 4739 CFLAGS="$lt_save_CFLAGS" 4740 else 4741 echo "cannot find nm_test_func in $nlist" >&5 4742 fi 4743 else 4744 echo "cannot find nm_test_var in $nlist" >&5 4745 fi 4746 else 4747 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 4748 fi 4749 else 4750 echo "$progname: failed program was:" >&5 4751 cat conftest.$ac_ext >&5 4752 fi 4753 rm -f conftest* conftst* 4754 4755 # Do not use the global_symbol_pipe unless it works. 4756 if test "$pipe_works" = yes; then 4757 break 4758 else 4759 lt_cv_sys_global_symbol_pipe= 4760 fi 4761done 4762 4763fi 4764 4765if test -z "$lt_cv_sys_global_symbol_pipe"; then 4766 lt_cv_sys_global_symbol_to_cdecl= 4767fi 4768if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4769 echo "$as_me:$LINENO: result: failed" >&5 4770echo "${ECHO_T}failed" >&6 4771else 4772 echo "$as_me:$LINENO: result: ok" >&5 4773echo "${ECHO_T}ok" >&6 4774fi 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4793if test "${enable_libtool_lock+set}" = set; then 4794 enableval="$enable_libtool_lock" 4795 4796fi; 4797test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4798 4799# Some flags need to be propagated to the compiler or linker for good 4800# libtool support. 4801case $host in 4802ia64-*-hpux*) 4803 # Find out which ABI we are using. 4804 echo 'int i;' > conftest.$ac_ext 4805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4806 (eval $ac_compile) 2>&5 4807 ac_status=$? 4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4809 (exit $ac_status); }; then 4810 case `/usr/bin/file conftest.$ac_objext` in 4811 *ELF-32*) 4812 HPUX_IA64_MODE="32" 4813 ;; 4814 *ELF-64*) 4815 HPUX_IA64_MODE="64" 4816 ;; 4817 esac 4818 fi 4819 rm -rf conftest* 4820 ;; 4821*-*-irix6*) 4822 # Find out which ABI we are using. 4823 echo '#line 4823 "configure"' > conftest.$ac_ext 4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4825 (eval $ac_compile) 2>&5 4826 ac_status=$? 4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4828 (exit $ac_status); }; then 4829 if test "$lt_cv_prog_gnu_ld" = yes; then 4830 case `/usr/bin/file conftest.$ac_objext` in 4831 *32-bit*) 4832 LD="${LD-ld} -melf32bsmip" 4833 ;; 4834 *N32*) 4835 LD="${LD-ld} -melf32bmipn32" 4836 ;; 4837 *64-bit*) 4838 LD="${LD-ld} -melf64bmip" 4839 ;; 4840 esac 4841 else 4842 case `/usr/bin/file conftest.$ac_objext` in 4843 *32-bit*) 4844 LD="${LD-ld} -32" 4845 ;; 4846 *N32*) 4847 LD="${LD-ld} -n32" 4848 ;; 4849 *64-bit*) 4850 LD="${LD-ld} -64" 4851 ;; 4852 esac 4853 fi 4854 fi 4855 rm -rf conftest* 4856 ;; 4857 4858x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4859s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 4860 # Find out which ABI we are using. 4861 echo 'int i;' > conftest.$ac_ext 4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4863 (eval $ac_compile) 2>&5 4864 ac_status=$? 4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4866 (exit $ac_status); }; then 4867 case `/usr/bin/file conftest.o` in 4868 *32-bit*) 4869 case $host in 4870 x86_64-*kfreebsd*-gnu) 4871 LD="${LD-ld} -m elf_i386_fbsd" 4872 ;; 4873 x86_64-*linux*) 4874 LD="${LD-ld} -m elf_i386" 4875 ;; 4876 ppc64-*linux*|powerpc64-*linux*) 4877 LD="${LD-ld} -m elf32ppclinux" 4878 ;; 4879 s390x-*linux*) 4880 LD="${LD-ld} -m elf_s390" 4881 ;; 4882 sparc64-*linux*) 4883 LD="${LD-ld} -m elf32_sparc" 4884 ;; 4885 esac 4886 ;; 4887 *64-bit*) 4888 case $host in 4889 x86_64-*kfreebsd*-gnu) 4890 LD="${LD-ld} -m elf_x86_64_fbsd" 4891 ;; 4892 x86_64-*linux*) 4893 LD="${LD-ld} -m elf_x86_64" 4894 ;; 4895 ppc*-*linux*|powerpc*-*linux*) 4896 LD="${LD-ld} -m elf64ppc" 4897 ;; 4898 s390*-*linux*|s390*-*tpf*) 4899 LD="${LD-ld} -m elf64_s390" 4900 ;; 4901 sparc*-*linux*) 4902 LD="${LD-ld} -m elf64_sparc" 4903 ;; 4904 esac 4905 ;; 4906 esac 4907 fi 4908 rm -rf conftest* 4909 ;; 4910 4911*-*-sco3.2v5*) 4912 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4913 SAVE_CFLAGS="$CFLAGS" 4914 CFLAGS="$CFLAGS -belf" 4915 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4916echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4917if test "${lt_cv_cc_needs_belf+set}" = set; then 4918 echo $ECHO_N "(cached) $ECHO_C" >&6 4919else 4920 ac_ext=c 4921ac_cpp='$CPP $CPPFLAGS' 4922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4924ac_compiler_gnu=$ac_cv_c_compiler_gnu 4925 4926 cat >conftest.$ac_ext <<_ACEOF 4927/* confdefs.h. */ 4928_ACEOF 4929cat confdefs.h >>conftest.$ac_ext 4930cat >>conftest.$ac_ext <<_ACEOF 4931/* end confdefs.h. */ 4932 4933int 4934main () 4935{ 4936 4937 ; 4938 return 0; 4939} 4940_ACEOF 4941rm -f conftest.$ac_objext conftest$ac_exeext 4942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4943 (eval $ac_link) 2>conftest.er1 4944 ac_status=$? 4945 grep -v '^ *+' conftest.er1 >conftest.err 4946 rm -f conftest.er1 4947 cat conftest.err >&5 4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4949 (exit $ac_status); } && 4950 { ac_try='test -z "$ac_c_werror_flag" 4951 || test ! -s conftest.err' 4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4953 (eval $ac_try) 2>&5 4954 ac_status=$? 4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4956 (exit $ac_status); }; } && 4957 { ac_try='test -s conftest$ac_exeext' 4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4959 (eval $ac_try) 2>&5 4960 ac_status=$? 4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4962 (exit $ac_status); }; }; then 4963 lt_cv_cc_needs_belf=yes 4964else 4965 echo "$as_me: failed program was:" >&5 4966sed 's/^/| /' conftest.$ac_ext >&5 4967 4968lt_cv_cc_needs_belf=no 4969fi 4970rm -f conftest.err conftest.$ac_objext \ 4971 conftest$ac_exeext conftest.$ac_ext 4972 ac_ext=c 4973ac_cpp='$CPP $CPPFLAGS' 4974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4976ac_compiler_gnu=$ac_cv_c_compiler_gnu 4977 4978fi 4979echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4980echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4981 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4982 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4983 CFLAGS="$SAVE_CFLAGS" 4984 fi 4985 ;; 4986sparc*-*solaris*) 4987 # Find out which ABI we are using. 4988 echo 'int i;' > conftest.$ac_ext 4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4990 (eval $ac_compile) 2>&5 4991 ac_status=$? 4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4993 (exit $ac_status); }; then 4994 case `/usr/bin/file conftest.o` in 4995 *64-bit*) 4996 case $lt_cv_prog_gnu_ld in 4997 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4998 *) LD="${LD-ld} -64" ;; 4999 esac 5000 ;; 5001 esac 5002 fi 5003 rm -rf conftest* 5004 ;; 5005esac 5006 5007need_locks="$enable_libtool_lock" 5008 5009ac_ext=c 5010ac_cpp='$CPP $CPPFLAGS' 5011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5013ac_compiler_gnu=$ac_cv_c_compiler_gnu 5014echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5015echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 5016# On Suns, sometimes $CPP names a directory. 5017if test -n "$CPP" && test -d "$CPP"; then 5018 CPP= 5019fi 5020if test -z "$CPP"; then 5021 if test "${ac_cv_prog_CPP+set}" = set; then 5022 echo $ECHO_N "(cached) $ECHO_C" >&6 5023else 5024 # Double quotes because CPP needs to be expanded 5025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5026 do 5027 ac_preproc_ok=false 5028for ac_c_preproc_warn_flag in '' yes 5029do 5030 # Use a header file that comes with gcc, so configuring glibc 5031 # with a fresh cross-compiler works. 5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5033 # <limits.h> exists even on freestanding compilers. 5034 # On the NeXT, cc -E runs the code through the compiler's parser, 5035 # not just through cpp. "Syntax error" is here to catch this case. 5036 cat >conftest.$ac_ext <<_ACEOF 5037/* confdefs.h. */ 5038_ACEOF 5039cat confdefs.h >>conftest.$ac_ext 5040cat >>conftest.$ac_ext <<_ACEOF 5041/* end confdefs.h. */ 5042#ifdef __STDC__ 5043# include <limits.h> 5044#else 5045# include <assert.h> 5046#endif 5047 Syntax error 5048_ACEOF 5049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5051 ac_status=$? 5052 grep -v '^ *+' conftest.er1 >conftest.err 5053 rm -f conftest.er1 5054 cat conftest.err >&5 5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5056 (exit $ac_status); } >/dev/null; then 5057 if test -s conftest.err; then 5058 ac_cpp_err=$ac_c_preproc_warn_flag 5059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5060 else 5061 ac_cpp_err= 5062 fi 5063else 5064 ac_cpp_err=yes 5065fi 5066if test -z "$ac_cpp_err"; then 5067 : 5068else 5069 echo "$as_me: failed program was:" >&5 5070sed 's/^/| /' conftest.$ac_ext >&5 5071 5072 # Broken: fails on valid input. 5073continue 5074fi 5075rm -f conftest.err conftest.$ac_ext 5076 5077 # OK, works on sane cases. Now check whether non-existent headers 5078 # can be detected and how. 5079 cat >conftest.$ac_ext <<_ACEOF 5080/* confdefs.h. */ 5081_ACEOF 5082cat confdefs.h >>conftest.$ac_ext 5083cat >>conftest.$ac_ext <<_ACEOF 5084/* end confdefs.h. */ 5085#include <ac_nonexistent.h> 5086_ACEOF 5087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5089 ac_status=$? 5090 grep -v '^ *+' conftest.er1 >conftest.err 5091 rm -f conftest.er1 5092 cat conftest.err >&5 5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5094 (exit $ac_status); } >/dev/null; then 5095 if test -s conftest.err; then 5096 ac_cpp_err=$ac_c_preproc_warn_flag 5097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5098 else 5099 ac_cpp_err= 5100 fi 5101else 5102 ac_cpp_err=yes 5103fi 5104if test -z "$ac_cpp_err"; then 5105 # Broken: success on invalid input. 5106continue 5107else 5108 echo "$as_me: failed program was:" >&5 5109sed 's/^/| /' conftest.$ac_ext >&5 5110 5111 # Passes both tests. 5112ac_preproc_ok=: 5113break 5114fi 5115rm -f conftest.err conftest.$ac_ext 5116 5117done 5118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5119rm -f conftest.err conftest.$ac_ext 5120if $ac_preproc_ok; then 5121 break 5122fi 5123 5124 done 5125 ac_cv_prog_CPP=$CPP 5126 5127fi 5128 CPP=$ac_cv_prog_CPP 5129else 5130 ac_cv_prog_CPP=$CPP 5131fi 5132echo "$as_me:$LINENO: result: $CPP" >&5 5133echo "${ECHO_T}$CPP" >&6 5134ac_preproc_ok=false 5135for ac_c_preproc_warn_flag in '' yes 5136do 5137 # Use a header file that comes with gcc, so configuring glibc 5138 # with a fresh cross-compiler works. 5139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5140 # <limits.h> exists even on freestanding compilers. 5141 # On the NeXT, cc -E runs the code through the compiler's parser, 5142 # not just through cpp. "Syntax error" is here to catch this case. 5143 cat >conftest.$ac_ext <<_ACEOF 5144/* confdefs.h. */ 5145_ACEOF 5146cat confdefs.h >>conftest.$ac_ext 5147cat >>conftest.$ac_ext <<_ACEOF 5148/* end confdefs.h. */ 5149#ifdef __STDC__ 5150# include <limits.h> 5151#else 5152# include <assert.h> 5153#endif 5154 Syntax error 5155_ACEOF 5156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5158 ac_status=$? 5159 grep -v '^ *+' conftest.er1 >conftest.err 5160 rm -f conftest.er1 5161 cat conftest.err >&5 5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5163 (exit $ac_status); } >/dev/null; then 5164 if test -s conftest.err; then 5165 ac_cpp_err=$ac_c_preproc_warn_flag 5166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5167 else 5168 ac_cpp_err= 5169 fi 5170else 5171 ac_cpp_err=yes 5172fi 5173if test -z "$ac_cpp_err"; then 5174 : 5175else 5176 echo "$as_me: failed program was:" >&5 5177sed 's/^/| /' conftest.$ac_ext >&5 5178 5179 # Broken: fails on valid input. 5180continue 5181fi 5182rm -f conftest.err conftest.$ac_ext 5183 5184 # OK, works on sane cases. Now check whether non-existent headers 5185 # can be detected and how. 5186 cat >conftest.$ac_ext <<_ACEOF 5187/* confdefs.h. */ 5188_ACEOF 5189cat confdefs.h >>conftest.$ac_ext 5190cat >>conftest.$ac_ext <<_ACEOF 5191/* end confdefs.h. */ 5192#include <ac_nonexistent.h> 5193_ACEOF 5194if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5196 ac_status=$? 5197 grep -v '^ *+' conftest.er1 >conftest.err 5198 rm -f conftest.er1 5199 cat conftest.err >&5 5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5201 (exit $ac_status); } >/dev/null; then 5202 if test -s conftest.err; then 5203 ac_cpp_err=$ac_c_preproc_warn_flag 5204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5205 else 5206 ac_cpp_err= 5207 fi 5208else 5209 ac_cpp_err=yes 5210fi 5211if test -z "$ac_cpp_err"; then 5212 # Broken: success on invalid input. 5213continue 5214else 5215 echo "$as_me: failed program was:" >&5 5216sed 's/^/| /' conftest.$ac_ext >&5 5217 5218 # Passes both tests. 5219ac_preproc_ok=: 5220break 5221fi 5222rm -f conftest.err conftest.$ac_ext 5223 5224done 5225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5226rm -f conftest.err conftest.$ac_ext 5227if $ac_preproc_ok; then 5228 : 5229else 5230 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5231See \`config.log' for more details." >&5 5232echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5233See \`config.log' for more details." >&2;} 5234 { (exit 1); exit 1; }; } 5235fi 5236 5237ac_ext=c 5238ac_cpp='$CPP $CPPFLAGS' 5239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5241ac_compiler_gnu=$ac_cv_c_compiler_gnu 5242 5243 5244echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5245echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5246if test "${ac_cv_header_stdc+set}" = set; then 5247 echo $ECHO_N "(cached) $ECHO_C" >&6 5248else 5249 cat >conftest.$ac_ext <<_ACEOF 5250/* confdefs.h. */ 5251_ACEOF 5252cat confdefs.h >>conftest.$ac_ext 5253cat >>conftest.$ac_ext <<_ACEOF 5254/* end confdefs.h. */ 5255#include <stdlib.h> 5256#include <stdarg.h> 5257#include <string.h> 5258#include <float.h> 5259 5260int 5261main () 5262{ 5263 5264 ; 5265 return 0; 5266} 5267_ACEOF 5268rm -f conftest.$ac_objext 5269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5270 (eval $ac_compile) 2>conftest.er1 5271 ac_status=$? 5272 grep -v '^ *+' conftest.er1 >conftest.err 5273 rm -f conftest.er1 5274 cat conftest.err >&5 5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5276 (exit $ac_status); } && 5277 { ac_try='test -z "$ac_c_werror_flag" 5278 || test ! -s conftest.err' 5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5280 (eval $ac_try) 2>&5 5281 ac_status=$? 5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5283 (exit $ac_status); }; } && 5284 { ac_try='test -s conftest.$ac_objext' 5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5286 (eval $ac_try) 2>&5 5287 ac_status=$? 5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5289 (exit $ac_status); }; }; then 5290 ac_cv_header_stdc=yes 5291else 5292 echo "$as_me: failed program was:" >&5 5293sed 's/^/| /' conftest.$ac_ext >&5 5294 5295ac_cv_header_stdc=no 5296fi 5297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5298 5299if test $ac_cv_header_stdc = yes; then 5300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5301 cat >conftest.$ac_ext <<_ACEOF 5302/* confdefs.h. */ 5303_ACEOF 5304cat confdefs.h >>conftest.$ac_ext 5305cat >>conftest.$ac_ext <<_ACEOF 5306/* end confdefs.h. */ 5307#include <string.h> 5308 5309_ACEOF 5310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5311 $EGREP "memchr" >/dev/null 2>&1; then 5312 : 5313else 5314 ac_cv_header_stdc=no 5315fi 5316rm -f conftest* 5317 5318fi 5319 5320if test $ac_cv_header_stdc = yes; then 5321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5322 cat >conftest.$ac_ext <<_ACEOF 5323/* confdefs.h. */ 5324_ACEOF 5325cat confdefs.h >>conftest.$ac_ext 5326cat >>conftest.$ac_ext <<_ACEOF 5327/* end confdefs.h. */ 5328#include <stdlib.h> 5329 5330_ACEOF 5331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5332 $EGREP "free" >/dev/null 2>&1; then 5333 : 5334else 5335 ac_cv_header_stdc=no 5336fi 5337rm -f conftest* 5338 5339fi 5340 5341if test $ac_cv_header_stdc = yes; then 5342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5343 if test "$cross_compiling" = yes; then 5344 : 5345else 5346 cat >conftest.$ac_ext <<_ACEOF 5347/* confdefs.h. */ 5348_ACEOF 5349cat confdefs.h >>conftest.$ac_ext 5350cat >>conftest.$ac_ext <<_ACEOF 5351/* end confdefs.h. */ 5352#include <ctype.h> 5353#if ((' ' & 0x0FF) == 0x020) 5354# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5355# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5356#else 5357# define ISLOWER(c) \ 5358 (('a' <= (c) && (c) <= 'i') \ 5359 || ('j' <= (c) && (c) <= 'r') \ 5360 || ('s' <= (c) && (c) <= 'z')) 5361# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5362#endif 5363 5364#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5365int 5366main () 5367{ 5368 int i; 5369 for (i = 0; i < 256; i++) 5370 if (XOR (islower (i), ISLOWER (i)) 5371 || toupper (i) != TOUPPER (i)) 5372 exit(2); 5373 exit (0); 5374} 5375_ACEOF 5376rm -f conftest$ac_exeext 5377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5378 (eval $ac_link) 2>&5 5379 ac_status=$? 5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5383 (eval $ac_try) 2>&5 5384 ac_status=$? 5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5386 (exit $ac_status); }; }; then 5387 : 5388else 5389 echo "$as_me: program exited with status $ac_status" >&5 5390echo "$as_me: failed program was:" >&5 5391sed 's/^/| /' conftest.$ac_ext >&5 5392 5393( exit $ac_status ) 5394ac_cv_header_stdc=no 5395fi 5396rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5397fi 5398fi 5399fi 5400echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5401echo "${ECHO_T}$ac_cv_header_stdc" >&6 5402if test $ac_cv_header_stdc = yes; then 5403 5404cat >>confdefs.h <<\_ACEOF 5405#define STDC_HEADERS 1 5406_ACEOF 5407 5408fi 5409 5410# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5421 inttypes.h stdint.h unistd.h 5422do 5423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5424echo "$as_me:$LINENO: checking for $ac_header" >&5 5425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5426if eval "test \"\${$as_ac_Header+set}\" = set"; then 5427 echo $ECHO_N "(cached) $ECHO_C" >&6 5428else 5429 cat >conftest.$ac_ext <<_ACEOF 5430/* confdefs.h. */ 5431_ACEOF 5432cat confdefs.h >>conftest.$ac_ext 5433cat >>conftest.$ac_ext <<_ACEOF 5434/* end confdefs.h. */ 5435$ac_includes_default 5436 5437#include <$ac_header> 5438_ACEOF 5439rm -f conftest.$ac_objext 5440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5441 (eval $ac_compile) 2>conftest.er1 5442 ac_status=$? 5443 grep -v '^ *+' conftest.er1 >conftest.err 5444 rm -f conftest.er1 5445 cat conftest.err >&5 5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5447 (exit $ac_status); } && 5448 { ac_try='test -z "$ac_c_werror_flag" 5449 || test ! -s conftest.err' 5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5451 (eval $ac_try) 2>&5 5452 ac_status=$? 5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5454 (exit $ac_status); }; } && 5455 { ac_try='test -s conftest.$ac_objext' 5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5457 (eval $ac_try) 2>&5 5458 ac_status=$? 5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5460 (exit $ac_status); }; }; then 5461 eval "$as_ac_Header=yes" 5462else 5463 echo "$as_me: failed program was:" >&5 5464sed 's/^/| /' conftest.$ac_ext >&5 5465 5466eval "$as_ac_Header=no" 5467fi 5468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5469fi 5470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5472if test `eval echo '${'$as_ac_Header'}'` = yes; then 5473 cat >>confdefs.h <<_ACEOF 5474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5475_ACEOF 5476 5477fi 5478 5479done 5480 5481 5482 5483for ac_header in dlfcn.h 5484do 5485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5486echo "$as_me:$LINENO: checking for $ac_header" >&5 5487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5488if eval "test \"\${$as_ac_Header+set}\" = set"; then 5489 echo $ECHO_N "(cached) $ECHO_C" >&6 5490else 5491 cat >conftest.$ac_ext <<_ACEOF 5492/* confdefs.h. */ 5493_ACEOF 5494cat confdefs.h >>conftest.$ac_ext 5495cat >>conftest.$ac_ext <<_ACEOF 5496/* end confdefs.h. */ 5497$ac_includes_default 5498 5499#include <$ac_header> 5500_ACEOF 5501rm -f conftest.$ac_objext 5502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5503 (eval $ac_compile) 2>conftest.er1 5504 ac_status=$? 5505 grep -v '^ *+' conftest.er1 >conftest.err 5506 rm -f conftest.er1 5507 cat conftest.err >&5 5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5509 (exit $ac_status); } && 5510 { ac_try='test -z "$ac_c_werror_flag" 5511 || test ! -s conftest.err' 5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5513 (eval $ac_try) 2>&5 5514 ac_status=$? 5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5516 (exit $ac_status); }; } && 5517 { ac_try='test -s conftest.$ac_objext' 5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5519 (eval $ac_try) 2>&5 5520 ac_status=$? 5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5522 (exit $ac_status); }; }; then 5523 eval "$as_ac_Header=yes" 5524else 5525 echo "$as_me: failed program was:" >&5 5526sed 's/^/| /' conftest.$ac_ext >&5 5527 5528eval "$as_ac_Header=no" 5529fi 5530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5531fi 5532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5534if test `eval echo '${'$as_ac_Header'}'` = yes; then 5535 cat >>confdefs.h <<_ACEOF 5536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5537_ACEOF 5538 5539fi 5540 5541done 5542 5543 5544 5545# This can be used to rebuild libtool when needed 5546LIBTOOL_DEPS="$ltmain" 5547 5548# Always use our own libtool. 5549LIBTOOL='$(SHELL) $(top_builddir)/libtool' 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575test -z "$LN_S" && LN_S="ln -s" 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590if test -n "${ZSH_VERSION+set}" ; then 5591 setopt NO_GLOB_SUBST 5592fi 5593 5594echo "$as_me:$LINENO: checking for objdir" >&5 5595echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5596if test "${lt_cv_objdir+set}" = set; then 5597 echo $ECHO_N "(cached) $ECHO_C" >&6 5598else 5599 rm -f .libs 2>/dev/null 5600mkdir .libs 2>/dev/null 5601if test -d .libs; then 5602 lt_cv_objdir=.libs 5603else 5604 # MS-DOS does not allow filenames that begin with a dot. 5605 lt_cv_objdir=_libs 5606fi 5607rmdir .libs 2>/dev/null 5608fi 5609echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5610echo "${ECHO_T}$lt_cv_objdir" >&6 5611objdir=$lt_cv_objdir 5612 5613 5614 5615 5616 5617cat >>confdefs.h <<_ACEOF 5618#define LT_OBJDIR "$lt_cv_objdir/" 5619_ACEOF 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637case $host_os in 5638aix3*) 5639 # AIX sometimes has problems with the GCC collect2 program. For some 5640 # reason, if we set the COLLECT_NAMES environment variable, the problems 5641 # vanish in a puff of smoke. 5642 if test "X${COLLECT_NAMES+set}" != Xset; then 5643 COLLECT_NAMES= 5644 export COLLECT_NAMES 5645 fi 5646 ;; 5647esac 5648 5649# Sed substitution that helps us do robust quoting. It backslashifies 5650# metacharacters that are still active within double-quoted strings. 5651sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5652 5653# Same as above, but do not quote variable references. 5654double_quote_subst='s/\(["`\\]\)/\\\1/g' 5655 5656# Sed substitution to delay expansion of an escaped shell variable in a 5657# double_quote_subst'ed string. 5658delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5659 5660# Sed substitution to delay expansion of an escaped single quote. 5661delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5662 5663# Sed substitution to avoid accidental globbing in evaled expressions 5664no_glob_subst='s/\*/\\\*/g' 5665 5666# Global variables: 5667ofile=libtool 5668can_build_shared=yes 5669 5670# All known linkers require a `.a' archive for static linking (except MSVC, 5671# which needs '.lib'). 5672libext=a 5673 5674with_gnu_ld="$lt_cv_prog_gnu_ld" 5675 5676old_CC="$CC" 5677old_CFLAGS="$CFLAGS" 5678 5679# Set sane defaults for various variables 5680test -z "$CC" && CC=cc 5681test -z "$LTCC" && LTCC=$CC 5682test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 5683test -z "$LD" && LD=ld 5684test -z "$ac_objext" && ac_objext=o 5685 5686for cc_temp in $compiler""; do 5687 case $cc_temp in 5688 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 5689 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 5690 \-*) ;; 5691 *) break;; 5692 esac 5693done 5694cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 5695 5696 5697# Only perform the check for file, if the check method requires it 5698test -z "$MAGIC_CMD" && MAGIC_CMD=file 5699case $deplibs_check_method in 5700file_magic*) 5701 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5702 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5703echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5704if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5705 echo $ECHO_N "(cached) $ECHO_C" >&6 5706else 5707 case $MAGIC_CMD in 5708[\\/*] | ?:[\\/]*) 5709 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5710 ;; 5711*) 5712 lt_save_MAGIC_CMD="$MAGIC_CMD" 5713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5714 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5715 for ac_dir in $ac_dummy; do 5716 IFS="$lt_save_ifs" 5717 test -z "$ac_dir" && ac_dir=. 5718 if test -f $ac_dir/${ac_tool_prefix}file; then 5719 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5720 if test -n "$file_magic_test_file"; then 5721 case $deplibs_check_method in 5722 "file_magic "*) 5723 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5725 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5726 $EGREP "$file_magic_regex" > /dev/null; then 5727 : 5728 else 5729 cat <<_LT_EOF 1>&2 5730 5731*** Warning: the command libtool uses to detect shared libraries, 5732*** $file_magic_cmd, produces output that libtool cannot recognize. 5733*** The result is that libtool may fail to recognize shared libraries 5734*** as such. This will affect the creation of libtool libraries that 5735*** depend on shared libraries, but programs linked with such libtool 5736*** libraries will work regardless of this problem. Nevertheless, you 5737*** may want to report the problem to your system manager and/or to 5738*** bug-libtool@gnu.org 5739 5740_LT_EOF 5741 fi ;; 5742 esac 5743 fi 5744 break 5745 fi 5746 done 5747 IFS="$lt_save_ifs" 5748 MAGIC_CMD="$lt_save_MAGIC_CMD" 5749 ;; 5750esac 5751fi 5752 5753MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5754if test -n "$MAGIC_CMD"; then 5755 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5756echo "${ECHO_T}$MAGIC_CMD" >&6 5757else 5758 echo "$as_me:$LINENO: result: no" >&5 5759echo "${ECHO_T}no" >&6 5760fi 5761 5762 5763 5764 5765 5766if test -z "$lt_cv_path_MAGIC_CMD"; then 5767 if test -n "$ac_tool_prefix"; then 5768 echo "$as_me:$LINENO: checking for file" >&5 5769echo $ECHO_N "checking for file... $ECHO_C" >&6 5770if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5771 echo $ECHO_N "(cached) $ECHO_C" >&6 5772else 5773 case $MAGIC_CMD in 5774[\\/*] | ?:[\\/]*) 5775 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5776 ;; 5777*) 5778 lt_save_MAGIC_CMD="$MAGIC_CMD" 5779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5780 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5781 for ac_dir in $ac_dummy; do 5782 IFS="$lt_save_ifs" 5783 test -z "$ac_dir" && ac_dir=. 5784 if test -f $ac_dir/file; then 5785 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5786 if test -n "$file_magic_test_file"; then 5787 case $deplibs_check_method in 5788 "file_magic "*) 5789 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5790 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5791 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5792 $EGREP "$file_magic_regex" > /dev/null; then 5793 : 5794 else 5795 cat <<_LT_EOF 1>&2 5796 5797*** Warning: the command libtool uses to detect shared libraries, 5798*** $file_magic_cmd, produces output that libtool cannot recognize. 5799*** The result is that libtool may fail to recognize shared libraries 5800*** as such. This will affect the creation of libtool libraries that 5801*** depend on shared libraries, but programs linked with such libtool 5802*** libraries will work regardless of this problem. Nevertheless, you 5803*** may want to report the problem to your system manager and/or to 5804*** bug-libtool@gnu.org 5805 5806_LT_EOF 5807 fi ;; 5808 esac 5809 fi 5810 break 5811 fi 5812 done 5813 IFS="$lt_save_ifs" 5814 MAGIC_CMD="$lt_save_MAGIC_CMD" 5815 ;; 5816esac 5817fi 5818 5819MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5820if test -n "$MAGIC_CMD"; then 5821 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5822echo "${ECHO_T}$MAGIC_CMD" >&6 5823else 5824 echo "$as_me:$LINENO: result: no" >&5 5825echo "${ECHO_T}no" >&6 5826fi 5827 5828 5829 else 5830 MAGIC_CMD=: 5831 fi 5832fi 5833 5834 fi 5835 ;; 5836esac 5837 5838# Use C for the default configuration in the libtool script 5839 5840lt_save_CC="$CC" 5841ac_ext=c 5842ac_cpp='$CPP $CPPFLAGS' 5843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5845ac_compiler_gnu=$ac_cv_c_compiler_gnu 5846 5847 5848# Source file extension for C test sources. 5849ac_ext=c 5850 5851# Object file extension for compiled C test sources. 5852objext=o 5853objext=$objext 5854 5855# Code to be used in simple compile tests 5856lt_simple_compile_test_code="int some_variable = 0;" 5857 5858# Code to be used in simple link tests 5859lt_simple_link_test_code='int main(){return(0);}' 5860 5861 5862 5863 5864 5865 5866 5867# If no C compiler was specified, use CC. 5868LTCC=${LTCC-"$CC"} 5869 5870# If no C compiler flags were specified, use CFLAGS. 5871LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5872 5873# Allow CC to be a program name with arguments. 5874compiler=$CC 5875 5876# Save the default compiler, since it gets overwritten when the other 5877# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 5878compiler_DEFAULT=$CC 5879 5880# save warnings/boilerplate of simple test code 5881ac_outfile=conftest.$ac_objext 5882echo "$lt_simple_compile_test_code" >conftest.$ac_ext 5883eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 5884_lt_compiler_boilerplate=`cat conftest.err` 5885$RM conftest* 5886 5887ac_outfile=conftest.$ac_objext 5888echo "$lt_simple_link_test_code" >conftest.$ac_ext 5889eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 5890_lt_linker_boilerplate=`cat conftest.err` 5891$RM conftest* 5892 5893 5894## CAVEAT EMPTOR: 5895## There is no encapsulation within the following macros, do not change 5896## the running order or otherwise move them around unless you know exactly 5897## what you are doing... 5898if test -n "$compiler"; then 5899 5900lt_prog_compiler_no_builtin_flag= 5901 5902if test "$GCC" = yes; then 5903 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 5904 5905 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5906echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5907if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 5908 echo $ECHO_N "(cached) $ECHO_C" >&6 5909else 5910 lt_cv_prog_compiler_rtti_exceptions=no 5911 ac_outfile=conftest.$ac_objext 5912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 5913 lt_compiler_flag="-fno-rtti -fno-exceptions" 5914 # Insert the option either (1) after the last *FLAGS variable, or 5915 # (2) before a word containing "conftest.", or (3) at the end. 5916 # Note that $ac_compile itself does not contain backslashes and begins 5917 # with a dollar sign (not a hyphen), so the echo should work correctly. 5918 # The option is referenced via a variable to avoid confusing sed. 5919 lt_compile=`echo "$ac_compile" | $SED \ 5920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 5921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5922 -e 's:$: $lt_compiler_flag:'` 5923 (eval echo "\"\$as_me:5923: $lt_compile\"" >&5) 5924 (eval "$lt_compile" 2>conftest.err) 5925 ac_status=$? 5926 cat conftest.err >&5 5927 echo "$as_me:5927: \$? = $ac_status" >&5 5928 if (exit $ac_status) && test -s "$ac_outfile"; then 5929 # The compiler can only warn and ignore the option if not recognized 5930 # So say no if there are warnings other than the usual output. 5931 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 5932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 5933 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 5934 lt_cv_prog_compiler_rtti_exceptions=yes 5935 fi 5936 fi 5937 $RM conftest* 5938 5939fi 5940echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 5941echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 5942 5943if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 5944 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 5945else 5946 : 5947fi 5948 5949fi 5950 5951 5952 5953 5954 5955 5956 lt_prog_compiler_wl= 5957lt_prog_compiler_pic= 5958lt_prog_compiler_static= 5959 5960echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 5961echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 5962 5963 if test "$GCC" = yes; then 5964 lt_prog_compiler_wl='-Wl,' 5965 lt_prog_compiler_static='-static' 5966 5967 case $host_os in 5968 aix*) 5969 # All AIX code is PIC. 5970 if test "$host_cpu" = ia64; then 5971 # AIX 5 now supports IA64 processor 5972 lt_prog_compiler_static='-Bstatic' 5973 fi 5974 ;; 5975 5976 amigaos*) 5977 if test "$host_cpu" = m68k; then 5978 # FIXME: we need at least 68020 code to build shared libraries, but 5979 # adding the `-m68020' flag to GCC prevents building anything better, 5980 # like `-m68040'. 5981 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 5982 fi 5983 ;; 5984 5985 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5986 # PIC is the default for these OSes. 5987 ;; 5988 5989 mingw* | cygwin* | pw32* | os2*) 5990 # This hack is so that the source file can tell whether it is being 5991 # built for inclusion in a dll (and should export symbols for example). 5992 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5993 # (--disable-auto-import) libraries 5994 lt_prog_compiler_pic='-DDLL_EXPORT' 5995 ;; 5996 5997 darwin* | rhapsody*) 5998 # PIC is the default on this platform 5999 # Common symbols not allowed in MH_DYLIB files 6000 lt_prog_compiler_pic='-fno-common' 6001 ;; 6002 6003 hpux*) 6004 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6005 # not for PA HP-UX. 6006 case $host_cpu in 6007 hppa*64*|ia64*) 6008 # +Z the default 6009 ;; 6010 *) 6011 lt_prog_compiler_pic='-fPIC' 6012 ;; 6013 esac 6014 ;; 6015 6016 interix[3-9]*) 6017 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6018 # Instead, we relocate shared libraries at runtime. 6019 ;; 6020 6021 msdosdjgpp*) 6022 # Just because we use GCC doesn't mean we suddenly get shared libraries 6023 # on systems that don't support them. 6024 lt_prog_compiler_can_build_shared=no 6025 enable_shared=no 6026 ;; 6027 6028 *nto* | *qnx*) 6029 # QNX uses GNU C++, but need to define -shared option too, otherwise 6030 # it will coredump. 6031 lt_prog_compiler_pic='-fPIC -shared' 6032 ;; 6033 6034 sysv4*MP*) 6035 if test -d /usr/nec; then 6036 lt_prog_compiler_pic=-Kconform_pic 6037 fi 6038 ;; 6039 6040 *) 6041 lt_prog_compiler_pic='-fPIC' 6042 ;; 6043 esac 6044 else 6045 # PORTME Check for flag to pass linker flags through the system compiler. 6046 case $host_os in 6047 aix*) 6048 lt_prog_compiler_wl='-Wl,' 6049 if test "$host_cpu" = ia64; then 6050 # AIX 5 now supports IA64 processor 6051 lt_prog_compiler_static='-Bstatic' 6052 else 6053 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6054 fi 6055 ;; 6056 darwin*) 6057 # PIC is the default on this platform 6058 # Common symbols not allowed in MH_DYLIB files 6059 case $cc_basename in 6060 xlc*) 6061 lt_prog_compiler_pic='-qnocommon' 6062 lt_prog_compiler_wl='-Wl,' 6063 ;; 6064 esac 6065 ;; 6066 6067 mingw* | cygwin* | pw32* | os2*) 6068 # This hack is so that the source file can tell whether it is being 6069 # built for inclusion in a dll (and should export symbols for example). 6070 lt_prog_compiler_pic='-DDLL_EXPORT' 6071 ;; 6072 6073 hpux9* | hpux10* | hpux11*) 6074 lt_prog_compiler_wl='-Wl,' 6075 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6076 # not for PA HP-UX. 6077 case $host_cpu in 6078 hppa*64*|ia64*) 6079 # +Z the default 6080 ;; 6081 *) 6082 lt_prog_compiler_pic='+Z' 6083 ;; 6084 esac 6085 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6086 lt_prog_compiler_static='${wl}-a ${wl}archive' 6087 ;; 6088 6089 irix5* | irix6* | nonstopux*) 6090 lt_prog_compiler_wl='-Wl,' 6091 # PIC (with -KPIC) is the default. 6092 lt_prog_compiler_static='-non_shared' 6093 ;; 6094 6095 linux* | k*bsd*-gnu) 6096 case $cc_basename in 6097 icc* | ecc*) 6098 lt_prog_compiler_wl='-Wl,' 6099 lt_prog_compiler_pic='-KPIC' 6100 lt_prog_compiler_static='-static' 6101 ;; 6102 pgcc* | pgf77* | pgf90* | pgf95*) 6103 # Portland Group compilers (*not* the Pentium gcc compiler, 6104 # which looks to be a dead project) 6105 lt_prog_compiler_w