1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for memcache 1.4.0.rc2. 4# 5# Report bugs to <sean@gigave.org>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10# 11# Copyright (c) 2004-2006 Sean Chittenden <sean@gigave.com> 12## --------------------- ## 13## M4sh Initialization. ## 14## --------------------- ## 15 16# Be Bourne compatible 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 24 set -o posix 25fi 26DUALCASE=1; export DUALCASE # for MKS sh 27 28# Support unset when possible. 29if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 30 as_unset=unset 31else 32 as_unset=false 33fi 34 35 36# Work around bugs in pre-3.0 UWIN ksh. 37$as_unset ENV MAIL MAILPATH 38PS1='$ ' 39PS2='> ' 40PS4='+ ' 41 42# NLS nuisances. 43for as_var in \ 44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 46 LC_TELEPHONE LC_TIME 47do 48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 49 eval $as_var=C; export $as_var 50 else 51 $as_unset $as_var 52 fi 53done 54 55# Required to use basename. 56if expr a : '\(a\)' >/dev/null 2>&1; then 57 as_expr=expr 58else 59 as_expr=false 60fi 61 62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 63 as_basename=basename 64else 65 as_basename=false 66fi 67 68 69# Name of the executable. 70as_me=`$as_basename "$0" || 71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 72 X"$0" : 'X\(//\)$' \| \ 73 X"$0" : 'X\(/\)$' \| \ 74 . : '\(.\)' 2>/dev/null || 75echo X/"$0" | 76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 77 /^X\/\(\/\/\)$/{ s//\1/; q; } 78 /^X\/\(\/\).*/{ s//\1/; q; } 79 s/.*/./; q'` 80 81 82# PATH needs CR, and LINENO needs CR and PATH. 83# Avoid depending upon Character Ranges. 84as_cr_letters='abcdefghijklmnopqrstuvwxyz' 85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 86as_cr_Letters=$as_cr_letters$as_cr_LETTERS 87as_cr_digits='0123456789' 88as_cr_alnum=$as_cr_Letters$as_cr_digits 89 90# The user is always right. 91if test "${PATH_SEPARATOR+set}" != set; then 92 echo "#! /bin/sh" >conf$$.sh 93 echo "exit 0" >>conf$$.sh 94 chmod +x conf$$.sh 95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 96 PATH_SEPARATOR=';' 97 else 98 PATH_SEPARATOR=: 99 fi 100 rm -f conf$$.sh 101fi 102 103 104 as_lineno_1=$LINENO 105 as_lineno_2=$LINENO 106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 107 test "x$as_lineno_1" != "x$as_lineno_2" && 108 test "x$as_lineno_3" = "x$as_lineno_2" || { 109 # Find who we are. Look in the path if we contain no path at all 110 # relative or not. 111 case $0 in 112 *[\\/]* ) as_myself=$0 ;; 113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 114for as_dir in $PATH 115do 116 IFS=$as_save_IFS 117 test -z "$as_dir" && as_dir=. 118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 119done 120 121 ;; 122 esac 123 # We did not find ourselves, most probably we were run as `sh COMMAND' 124 # in which case we are not to be found in the path. 125 if test "x$as_myself" = x; then 126 as_myself=$0 127 fi 128 if test ! -f "$as_myself"; then 129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 130 { (exit 1); exit 1; }; } 131 fi 132 case $CONFIG_SHELL in 133 '') 134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 136do 137 IFS=$as_save_IFS 138 test -z "$as_dir" && as_dir=. 139 for as_base in sh bash ksh sh5; do 140 case $as_dir in 141 /*) 142 if ("$as_dir/$as_base" -c ' 143 as_lineno_1=$LINENO 144 as_lineno_2=$LINENO 145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 146 test "x$as_lineno_1" != "x$as_lineno_2" && 147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 150 CONFIG_SHELL=$as_dir/$as_base 151 export CONFIG_SHELL 152 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 153 fi;; 154 esac 155 done 156done 157;; 158 esac 159 160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 161 # uniformly replaced by the line number. The first 'sed' inserts a 162 # line-number line before each line; the second 'sed' does the real 163 # work. The second script uses 'N' to pair each line-number line 164 # with the numbered line, and appends trailing '-' during 165 # substitution so that $LINENO is not a special case at line end. 166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 168 sed '=' <$as_myself | 169 sed ' 170 N 171 s,$,-, 172 : loop 173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 174 t loop 175 s,-$,, 176 s,^['$as_cr_digits']*\n,, 177 ' >$as_me.lineno && 178 chmod +x $as_me.lineno || 179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 180 { (exit 1); exit 1; }; } 181 182 # Don't try to exec as it changes $[0], causing all sort of problems 183 # (the dirname of $[0] is not the place where we might find the 184 # original and so on. Autoconf is especially sensible to this). 185 . ./$as_me.lineno 186 # Exit status is that of the last command. 187 exit 188} 189 190 191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 192 *c*,-n*) ECHO_N= ECHO_C=' 193' ECHO_T=' ' ;; 194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 196esac 197 198if expr a : '\(a\)' >/dev/null 2>&1; then 199 as_expr=expr 200else 201 as_expr=false 202fi 203 204rm -f conf$$ conf$$.exe conf$$.file 205echo >conf$$.file 206if ln -s conf$$.file conf$$ 2>/dev/null; then 207 # We could just check for DJGPP; but this test a) works b) is more generic 208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 209 if test -f conf$$.exe; then 210 # Don't use ln at all; we don't have any links 211 as_ln_s='cp -p' 212 else 213 as_ln_s='ln -s' 214 fi 215elif ln conf$$.file conf$$ 2>/dev/null; then 216 as_ln_s=ln 217else 218 as_ln_s='cp -p' 219fi 220rm -f conf$$ conf$$.exe conf$$.file 221 222if mkdir -p . 2>/dev/null; then 223 as_mkdir_p=: 224else 225 test -d ./-p && rmdir ./-p 226 as_mkdir_p=false 227fi 228 229as_executable_p="test -f" 230 231# Sed expression to map a string onto a valid CPP name. 232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 233 234# Sed expression to map a string onto a valid variable name. 235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 236 237 238# IFS 239# We need space, tab and new line, in precisely that order. 240as_nl=' 241' 242IFS=" $as_nl" 243 244# CDPATH. 245$as_unset CDPATH 246 247 248 249# Check that we are running under the correct shell. 250SHELL=${CONFIG_SHELL-/bin/sh} 251 252case X$ECHO in 253X*--fallback-echo) 254 # Remove one level of quotation (which was required for Make). 255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 256 ;; 257esac 258 259echo=${ECHO-echo} 260if test "X$1" = X--no-reexec; then 261 # Discard the --no-reexec flag, and continue. 262 shift 263elif test "X$1" = X--fallback-echo; then 264 # Avoid inline document here, it may be left over 265 : 266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 267 # Yippee, $echo works! 268 : 269else 270 # Restart under the correct shell. 271 exec $SHELL "$0" --no-reexec ${1+"$@"} 272fi 273 274if test "X$1" = X--fallback-echo; then 275 # used as fallback echo 276 shift 277 cat <<EOF 278$* 279EOF 280 exit 0 281fi 282 283# The HP-UX ksh and POSIX shell print the target directory to stdout 284# if CDPATH is set. 285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 286 287if test -z "$ECHO"; then 288if test "X${echo_test_string+set}" != Xset; then 289# find a string as large as possible, as long as the shell can cope with it 290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 292 if (echo_test_string="`eval $cmd`") 2>/dev/null && 293 echo_test_string="`eval $cmd`" && 294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 295 then 296 break 297 fi 298 done 299fi 300 301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 303 test "X$echo_testing_string" = "X$echo_test_string"; then 304 : 305else 306 # The Solaris, AIX, and Digital Unix default echo programs unquote 307 # backslashes. This makes it impossible to quote backslashes using 308 # echo "$something" | sed 's/\\/\\\\/g' 309 # 310 # So, first we look for a working echo in the user's PATH. 311 312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 313 for dir in $PATH /usr/ucb; do 314 IFS="$lt_save_ifs" 315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 318 test "X$echo_testing_string" = "X$echo_test_string"; then 319 echo="$dir/echo" 320 break 321 fi 322 done 323 IFS="$lt_save_ifs" 324 325 if test "X$echo" = Xecho; then 326 # We didn't find a better echo, so look for alternatives. 327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 329 test "X$echo_testing_string" = "X$echo_test_string"; then 330 # This shell has a builtin print -r that does the trick. 331 echo='print -r' 332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 333 test "X$CONFIG_SHELL" != X/bin/ksh; then 334 # If we have ksh, try running configure again with it. 335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 336 export ORIGINAL_CONFIG_SHELL 337 CONFIG_SHELL=/bin/ksh 338 export CONFIG_SHELL 339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 340 else 341 # Try using printf. 342 echo='printf %s\n' 343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 345 test "X$echo_testing_string" = "X$echo_test_string"; then 346 # Cool, printf works 347 : 348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 349 test "X$echo_testing_string" = 'X\t' && 350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 351 test "X$echo_testing_string" = "X$echo_test_string"; then 352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 353 export CONFIG_SHELL 354 SHELL="$CONFIG_SHELL" 355 export SHELL 356 echo="$CONFIG_SHELL $0 --fallback-echo" 357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 358 test "X$echo_testing_string" = 'X\t' && 359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 360 test "X$echo_testing_string" = "X$echo_test_string"; then 361 echo="$CONFIG_SHELL $0 --fallback-echo" 362 else 363 # maybe with a smaller string... 364 prev=: 365 366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 368 then 369 break 370 fi 371 prev="$cmd" 372 done 373 374 if test "$prev" != 'sed 50q "$0"'; then 375 echo_test_string=`eval $prev` 376 export echo_test_string 377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 378 else 379 # Oops. We lost completely, so just stick with echo. 380 echo=echo 381 fi 382 fi 383 fi 384 fi 385fi 386fi 387 388# Copy echo and quote the copy suitably for passing to libtool from 389# the Makefile, instead of quoting the original, which is used later. 390ECHO=$echo 391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 393fi 394 395 396 397 398tagnames=${tagnames+${tagnames},}CXX 399 400tagnames=${tagnames+${tagnames},}F77 401 402# Name of the host. 403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 404# so uname gets run too. 405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 406 407exec 6>&1 408 409# 410# Initializations. 411# 412ac_default_prefix=/usr/local 413ac_config_libobj_dir=. 414cross_compiling=no 415subdirs= 416MFLAGS= 417MAKEFLAGS= 418SHELL=${CONFIG_SHELL-/bin/sh} 419 420# Maximum number of lines to put in a shell here document. 421# This variable seems obsolete. It should probably be removed, and 422# only ac_max_sed_lines should be used. 423: ${ac_max_here_lines=38} 424 425# Identity of this package. 426PACKAGE_NAME='memcache' 427PACKAGE_TARNAME='libmemcache' 428PACKAGE_VERSION='1.4.0.rc2' 429PACKAGE_STRING='memcache 1.4.0.rc2' 430PACKAGE_BUGREPORT='sean@gigave.org' 431 432# Factoring default headers for most tests. 433ac_includes_default="\ 434#include <stdio.h> 435#if HAVE_SYS_TYPES_H 436# include <sys/types.h> 437#endif 438#if HAVE_SYS_STAT_H 439# include <sys/stat.h> 440#endif 441#if STDC_HEADERS 442# include <stdlib.h> 443# include <stddef.h> 444#else 445# if HAVE_STDLIB_H 446# include <stdlib.h> 447# endif 448#endif 449#if HAVE_STRING_H 450# if !STDC_HEADERS && HAVE_MEMORY_H 451# include <memory.h> 452# endif 453# include <string.h> 454#endif 455#if HAVE_STRINGS_H 456# include <strings.h> 457#endif 458#if HAVE_INTTYPES_H 459# include <inttypes.h> 460#else 461# if HAVE_STDINT_H 462# include <stdint.h> 463# endif 464#endif 465#if HAVE_UNISTD_H 466# include <unistd.h> 467#endif" 468 469ac_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 MEMCACHE_MAJOR_VERSION MEMCACHE_MINOR_VERSION MEMCACHE_MICRO_VERSION_SUFFIX MEMCACHE_RELDATE MEMCACHE_VERSION MEMCACHE_VERSION_INFO MEMCACHE_VERSION_NUMBER 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL BIN_KILLALL BIN_MEMCACHED BIN_MD5 BIN_SVN2CL MCM_CALLBACK_CTXT MCM_CALLBACK_KEY MCM_CALLBACK_LEN MCM_CALLBACK_MC MCM_CALLBACK_PTR MCM_CALLBACK_RES MCM_ERR_MASK MCM_ERR_FUNC_ERR_CTXT MCM_ERR_FUNC_MC_CTXT MCM_KEY_VALID_KEY MCM_KEY_VALID_LEN MCM_UINT_16_DCL MCM_UINT_32_DCL MCM_UINT_64_DCL LIBOBJS INIT_GET_BUF_SIZE LTLIBOBJS' 470ac_subst_files='' 471 472# Initialize some variables set by options. 473ac_init_help= 474ac_init_version=false 475# The variables have the same names as the options, with 476# dashes changed to underlines. 477cache_file=/dev/null 478exec_prefix=NONE 479no_create= 480no_recursion= 481prefix=NONE 482program_prefix=NONE 483program_suffix=NONE 484program_transform_name=s,x,x, 485silent= 486site= 487srcdir= 488verbose= 489x_includes=NONE 490x_libraries=NONE 491 492# Installation directory options. 493# These are left unexpanded so users can "make install exec_prefix=/foo" 494# and all the variables that are supposed to be based on exec_prefix 495# by default will actually change. 496# Use braces instead of parens because sh, perl, etc. also accept them. 497bindir='${exec_prefix}/bin' 498sbindir='${exec_prefix}/sbin' 499libexecdir='${exec_prefix}/libexec' 500datadir='${prefix}/share' 501sysconfdir='${prefix}/etc' 502sharedstatedir='${prefix}/com' 503localstatedir='${prefix}/var' 504libdir='${exec_prefix}/lib' 505includedir='${prefix}/include' 506oldincludedir='/usr/include' 507infodir='${prefix}/info' 508mandir='${prefix}/man' 509 510ac_prev= 511for ac_option 512do 513 # If the previous option needs an argument, assign it. 514 if test -n "$ac_prev"; then 515 eval "$ac_prev=\$ac_option" 516 ac_prev= 517 continue 518 fi 519 520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 521 522 # Accept the important Cygnus configure options, so we can diagnose typos. 523 524 case $ac_option in 525 526 -bindir | --bindir | --bindi | --bind | --bin | --bi) 527 ac_prev=bindir ;; 528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 529 bindir=$ac_optarg ;; 530 531 -build | --build | --buil | --bui | --bu) 532 ac_prev=build_alias ;; 533 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 534 build_alias=$ac_optarg ;; 535 536 -cache-file | --cache-file | --cache-fil | --cache-fi \ 537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 538 ac_prev=cache_file ;; 539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 541 cache_file=$ac_optarg ;; 542 543 --config-cache | -C) 544 cache_file=config.cache ;; 545 546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 547 ac_prev=datadir ;; 548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 549 | --da=*) 550 datadir=$ac_optarg ;; 551 552 -disable-* | --disable-*) 553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 554 # Reject names that are not valid shell variable names. 555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 557 { (exit 1); exit 1; }; } 558 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 559 eval "enable_$ac_feature=no" ;; 560 561 -enable-* | --enable-*) 562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 563 # Reject names that are not valid shell variable names. 564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 566 { (exit 1); exit 1; }; } 567 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 568 case $ac_option in 569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 570 *) ac_optarg=yes ;; 571 esac 572 eval "enable_$ac_feature='$ac_optarg'" ;; 573 574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 576 | --exec | --exe | --ex) 577 ac_prev=exec_prefix ;; 578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 580 | --exec=* | --exe=* | --ex=*) 581 exec_prefix=$ac_optarg ;; 582 583 -gas | --gas | --ga | --g) 584 # Obsolete; use --with-gas. 585 with_gas=yes ;; 586 587 -help | --help | --hel | --he | -h) 588 ac_init_help=long ;; 589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 590 ac_init_help=recursive ;; 591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 592 ac_init_help=short ;; 593 594 -host | --host | --hos | --ho) 595 ac_prev=host_alias ;; 596 -host=* | --host=* | --hos=* | --ho=*) 597 host_alias=$ac_optarg ;; 598 599 -includedir | --includedir | --includedi | --included | --include \ 600 | --includ | --inclu | --incl | --inc) 601 ac_prev=includedir ;; 602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 603 | --includ=* | --inclu=* | --incl=* | --inc=*) 604 includedir=$ac_optarg ;; 605 606 -infodir | --infodir | --infodi | --infod | --info | --inf) 607 ac_prev=infodir ;; 608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 609 infodir=$ac_optarg ;; 610 611 -libdir | --libdir | --libdi | --libd) 612 ac_prev=libdir ;; 613 -libdir=* | --libdir=* | --libdi=* | --libd=*) 614 libdir=$ac_optarg ;; 615 616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 617 | --libexe | --libex | --libe) 618 ac_prev=libexecdir ;; 619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 620 | --libexe=* | --libex=* | --libe=*) 621 libexecdir=$ac_optarg ;; 622 623 -localstatedir | --localstatedir | --localstatedi | --localstated \ 624 | --localstate | --localstat | --localsta | --localst \ 625 | --locals | --local | --loca | --loc | --lo) 626 ac_prev=localstatedir ;; 627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 630 localstatedir=$ac_optarg ;; 631 632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 633 ac_prev=mandir ;; 634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 635 mandir=$ac_optarg ;; 636 637 -nfp | --nfp | --nf) 638 # Obsolete; use --without-fp. 639 with_fp=no ;; 640 641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 642 | --no-cr | --no-c | -n) 643 no_create=yes ;; 644 645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 647 no_recursion=yes ;; 648 649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 651 | --oldin | --oldi | --old | --ol | --o) 652 ac_prev=oldincludedir ;; 653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 656 oldincludedir=$ac_optarg ;; 657 658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 659 ac_prev=prefix ;; 660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 661 prefix=$ac_optarg ;; 662 663 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 664 | --program-pre | --program-pr | --program-p) 665 ac_prev=program_prefix ;; 666 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 668 program_prefix=$ac_optarg ;; 669 670 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 671 | --program-suf | --program-su | --program-s) 672 ac_prev=program_suffix ;; 673 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 675 program_suffix=$ac_optarg ;; 676 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 ac_prev=program_transform_name ;; 685 -program-transform-name=* | --program-transform-name=* \ 686 | --program-transform-nam=* | --program-transform-na=* \ 687 | --program-transform-n=* | --program-transform-=* \ 688 | --program-transform=* | --program-transfor=* \ 689 | --program-transfo=* | --program-transf=* \ 690 | --program-trans=* | --program-tran=* \ 691 | --progr-tra=* | --program-tr=* | --program-t=*) 692 program_transform_name=$ac_optarg ;; 693 694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 695 | -silent | --silent | --silen | --sile | --sil) 696 silent=yes ;; 697 698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 699 ac_prev=sbindir ;; 700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 701 | --sbi=* | --sb=*) 702 sbindir=$ac_optarg ;; 703 704 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 706 | --sharedst | --shareds | --shared | --share | --shar \ 707 | --sha | --sh) 708 ac_prev=sharedstatedir ;; 709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 712 | --sha=* | --sh=*) 713 sharedstatedir=$ac_optarg ;; 714 715 -site | --site | --sit) 716 ac_prev=site ;; 717 -site=* | --site=* | --sit=*) 718 site=$ac_optarg ;; 719 720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 721 ac_prev=srcdir ;; 722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 723 srcdir=$ac_optarg ;; 724 725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 726 | --syscon | --sysco | --sysc | --sys | --sy) 727 ac_prev=sysconfdir ;; 728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 730 sysconfdir=$ac_optarg ;; 731 732 -target | --target | --targe | --targ | --tar | --ta | --t) 733 ac_prev=target_alias ;; 734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 735 target_alias=$ac_optarg ;; 736 737 -v | -verbose | --verbose | --verbos | --verbo | --verb) 738 verbose=yes ;; 739 740 -version | --version | --versio | --versi | --vers | -V) 741 ac_init_version=: ;; 742 743 -with-* | --with-*) 744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 745 # Reject names that are not valid shell variable names. 746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 747 { echo "$as_me: error: invalid package name: $ac_package" >&2 748 { (exit 1); exit 1; }; } 749 ac_package=`echo $ac_package| sed 's/-/_/g'` 750 case $ac_option in 751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 752 *) ac_optarg=yes ;; 753 esac 754 eval "with_$ac_package='$ac_optarg'" ;; 755 756 -without-* | --without-*) 757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 758 # Reject names that are not valid shell variable names. 759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 760 { echo "$as_me: error: invalid package name: $ac_package" >&2 761 { (exit 1); exit 1; }; } 762 ac_package=`echo $ac_package | sed 's/-/_/g'` 763 eval "with_$ac_package=no" ;; 764 765 --x) 766 # Obsolete; use --with-x. 767 with_x=yes ;; 768 769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 770 | --x-incl | --x-inc | --x-in | --x-i) 771 ac_prev=x_includes ;; 772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 774 x_includes=$ac_optarg ;; 775 776 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 778 ac_prev=x_libraries ;; 779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 781 x_libraries=$ac_optarg ;; 782 783 -*) { echo "$as_me: error: unrecognized option: $ac_option 784Try \`$0 --help' for more information." >&2 785 { (exit 1); exit 1; }; } 786 ;; 787 788 *=*) 789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 790 # Reject names that are not valid shell variable names. 791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 793 { (exit 1); exit 1; }; } 794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 795 eval "$ac_envvar='$ac_optarg'" 796 export $ac_envvar ;; 797 798 *) 799 # FIXME: should be removed in autoconf 3.0. 800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 804 ;; 805 806 esac 807done 808 809if test -n "$ac_prev"; then 810 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 811 { echo "$as_me: error: missing argument to $ac_option" >&2 812 { (exit 1); exit 1; }; } 813fi 814 815# Be sure to have absolute paths. 816for ac_var in exec_prefix prefix 817do 818 eval ac_val=$`echo $ac_var` 819 case $ac_val in 820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 822 { (exit 1); exit 1; }; };; 823 esac 824done 825 826# Be sure to have absolute paths. 827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 828 localstatedir libdir includedir oldincludedir infodir mandir 829do 830 eval ac_val=$`echo $ac_var` 831 case $ac_val in 832 [\\/$]* | ?:[\\/]* ) ;; 833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 834 { (exit 1); exit 1; }; };; 835 esac 836done 837 838# There might be people who depend on the old broken behavior: `$host' 839# used to hold the argument of --host etc. 840# FIXME: To remove some day. 841build=$build_alias 842host=$host_alias 843target=$target_alias 844 845# FIXME: To remove some day. 846if test "x$host_alias" != x; then 847 if test "x$build_alias" = x; then 848 cross_compiling=maybe 849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 850 If a cross compiler is detected then cross compile mode will be used." >&2 851 elif test "x$build_alias" != "x$host_alias"; then 852 cross_compiling=yes 853 fi 854fi 855 856ac_tool_prefix= 857test -n "$host_alias" && ac_tool_prefix=$host_alias- 858 859test "$silent" = yes && exec 6>/dev/null 860 861 862# Find the source files, if location was not specified. 863if test -z "$srcdir"; then 864 ac_srcdir_defaulted=yes 865 # Try the directory containing this script, then its parent. 866 ac_confdir=`(dirname "$0") 2>/dev/null || 867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 868 X"$0" : 'X\(//\)[^/]' \| \ 869 X"$0" : 'X\(//\)$' \| \ 870 X"$0" : 'X\(/\)' \| \ 871 . : '\(.\)' 2>/dev/null || 872echo X"$0" | 873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 874 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 875 /^X\(\/\/\)$/{ s//\1/; q; } 876 /^X\(\/\).*/{ s//\1/; q; } 877 s/.*/./; q'` 878 srcdir=$ac_confdir 879 if test ! -r $srcdir/$ac_unique_file; then 880 srcdir=.. 881 fi 882else 883 ac_srcdir_defaulted=no 884fi 885if test ! -r $srcdir/$ac_unique_file; then 886 if test "$ac_srcdir_defaulted" = yes; then 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 888 { (exit 1); exit 1; }; } 889 else 890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 891 { (exit 1); exit 1; }; } 892 fi 893fi 894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 896 { (exit 1); exit 1; }; } 897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 898ac_env_build_alias_set=${build_alias+set} 899ac_env_build_alias_value=$build_alias 900ac_cv_env_build_alias_set=${build_alias+set} 901ac_cv_env_build_alias_value=$build_alias 902ac_env_host_alias_set=${host_alias+set} 903ac_env_host_alias_value=$host_alias 904ac_cv_env_host_alias_set=${host_alias+set} 905ac_cv_env_host_alias_value=$host_alias 906ac_env_target_alias_set=${target_alias+set} 907ac_env_target_alias_value=$target_alias 908ac_cv_env_target_alias_set=${target_alias+set} 909ac_cv_env_target_alias_value=$target_alias 910ac_env_CC_set=${CC+set} 911ac_env_CC_value=$CC 912ac_cv_env_CC_set=${CC+set} 913ac_cv_env_CC_value=$CC 914ac_env_CFLAGS_set=${CFLAGS+set} 915ac_env_CFLAGS_value=$CFLAGS 916ac_cv_env_CFLAGS_set=${CFLAGS+set} 917ac_cv_env_CFLAGS_value=$CFLAGS 918ac_env_LDFLAGS_set=${LDFLAGS+set} 919ac_env_LDFLAGS_value=$LDFLAGS 920ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 921ac_cv_env_LDFLAGS_value=$LDFLAGS 922ac_env_CPPFLAGS_set=${CPPFLAGS+set} 923ac_env_CPPFLAGS_value=$CPPFLAGS 924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 925ac_cv_env_CPPFLAGS_value=$CPPFLAGS 926ac_env_CPP_set=${CPP+set} 927ac_env_CPP_value=$CPP 928ac_cv_env_CPP_set=${CPP+set} 929ac_cv_env_CPP_value=$CPP 930ac_env_CXX_set=${CXX+set} 931ac_env_CXX_value=$CXX 932ac_cv_env_CXX_set=${CXX+set} 933ac_cv_env_CXX_value=$CXX 934ac_env_CXXFLAGS_set=${CXXFLAGS+set} 935ac_env_CXXFLAGS_value=$CXXFLAGS 936ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 937ac_cv_env_CXXFLAGS_value=$CXXFLAGS 938ac_env_CXXCPP_set=${CXXCPP+set} 939ac_env_CXXCPP_value=$CXXCPP 940ac_cv_env_CXXCPP_set=${CXXCPP+set} 941ac_cv_env_CXXCPP_value=$CXXCPP 942ac_env_F77_set=${F77+set} 943ac_env_F77_value=$F77 944ac_cv_env_F77_set=${F77+set} 945ac_cv_env_F77_value=$F77 946ac_env_FFLAGS_set=${FFLAGS+set} 947ac_env_FFLAGS_value=$FFLAGS 948ac_cv_env_FFLAGS_set=${FFLAGS+set} 949ac_cv_env_FFLAGS_value=$FFLAGS 950 951# 952# Report the --help message. 953# 954if test "$ac_init_help" = "long"; then 955 # Omit some internal or obsolete options to make the list less imposing. 956 # This message is too long to be a string in the A/UX 3.1 sh. 957 cat <<_ACEOF 958\`configure' configures memcache 1.4.0.rc2 to adapt to many kinds of systems. 959 960Usage: $0 [OPTION]... [VAR=VALUE]... 961 962To assign environment variables (e.g., CC, CFLAGS...), specify them as 963VAR=VALUE. See below for descriptions of some of the useful variables. 964 965Defaults for the options are specified in brackets. 966 967Configuration: 968 -h, --help display this help and exit 969 --help=short display options specific to this package 970 --help=recursive display the short help of all the included packages 971 -V, --version display version information and exit 972 -q, --quiet, --silent do not print \`checking...' messages 973 --cache-file=FILE cache test results in FILE [disabled] 974 -C, --config-cache alias for \`--cache-file=config.cache' 975 -n, --no-create do not create output files 976 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 977 978_ACEOF 979 980 cat <<_ACEOF 981Installation directories: 982 --prefix=PREFIX install architecture-independent files in PREFIX 983 [$ac_default_prefix] 984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 985 [PREFIX] 986 987By default, \`make install' will install all the files in 988\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 989an installation prefix other than \`$ac_default_prefix' using \`--prefix', 990for instance \`--prefix=\$HOME'. 991 992For better control, use the options below. 993 994Fine tuning of the installation directories: 995 --bindir=DIR user executables [EPREFIX/bin] 996 --sbindir=DIR system admin executables [EPREFIX/sbin] 997 --libexecdir=DIR program executables [EPREFIX/libexec] 998 --datadir=DIR read-only architecture-independent data [PREFIX/share] 999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1002 --libdir=DIR object code libraries [EPREFIX/lib] 1003 --includedir=DIR C header files [PREFIX/include] 1004 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1005 --infodir=DIR info documentation [PREFIX/info] 1006 --mandir=DIR man documentation [PREFIX/man] 1007_ACEOF 1008 1009 cat <<\_ACEOF 1010 1011Program names: 1012 --program-prefix=PREFIX prepend PREFIX to installed program names 1013 --program-suffix=SUFFIX append SUFFIX to installed program names 1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1015 1016System types: 1017 --build=BUILD configure for building on BUILD [guessed] 1018 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1019 --target=TARGET configure for building compilers for TARGET [HOST] 1020_ACEOF 1021fi 1022 1023if test -n "$ac_init_help"; then 1024 case $ac_init_help in 1025 short | recursive ) echo "Configuration of memcache 1.4.0.rc2:";; 1026 esac 1027 cat <<\_ACEOF 1028 1029Optional Features: 1030 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1031 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1032 --disable-dependency-tracking speeds up one-time build 1033 --enable-dependency-tracking do not reject slow dependency extractors 1034 --enable-shared[=PKGS] 1035 build shared libraries [default=yes] 1036 --enable-static[=PKGS] 1037 build static libraries [default=yes] 1038 --enable-fast-install[=PKGS] 1039 optimize for fast installation [default=yes] 1040 --disable-libtool-lock avoid locking (might break parallel builds) 1041 --enable-debug Compile with debugging flag (no) 1042 --enable-default-buf-size 1043 Sets the default buffer size (4096) 1044 --enable-hash-type Sets the client side hashing algo. Valid settings 1045 are "crc32", "elf", or "perl" (default: crc32) 1046 --enable-mc-proto-assert 1047 Enable memcache(4) protocol assertions (yes) 1048 --enable-mc-proto-debug Enable memcache(4) protocol debugging (no) 1049 --enable-optimize Enable a few compile time optimizations (yes) 1050 --enable-profile Enable profiling (no) 1051 1052Optional Packages: 1053 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1054 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1055 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1056 --with-pic try to use only PIC/non-PIC objects [default=use 1057 both] 1058 --with-tags[=TAGS] 1059 include additional configurations [automatic] 1060 1061Some influential environment variables: 1062 CC C compiler command 1063 CFLAGS C compiler flags 1064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1065 nonstandard directory <lib dir> 1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1067 headers in a nonstandard directory <include dir> 1068 CPP C preprocessor 1069 CXX C++ compiler command 1070 CXXFLAGS C++ compiler flags 1071 CXXCPP C++ preprocessor 1072 F77 Fortran 77 compiler command 1073 FFLAGS Fortran 77 compiler flags 1074 1075Use these variables to override the choices made by `configure' or to help 1076it to find libraries and programs with nonstandard names/locations. 1077 1078Report bugs to <sean@gigave.org>. 1079_ACEOF 1080fi 1081 1082if test "$ac_init_help" = "recursive"; then 1083 # If there are subdirs, report their specific --help. 1084 ac_popdir=`pwd` 1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1086 test -d $ac_dir || continue 1087 ac_builddir=. 1088 1089if test "$ac_dir" != .; then 1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1091 # A "../" for each directory in $ac_dir_suffix. 1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1093else 1094 ac_dir_suffix= ac_top_builddir= 1095fi 1096 1097case $srcdir in 1098 .) # No --srcdir option. We are building in place. 1099 ac_srcdir=. 1100 if test -z "$ac_top_builddir"; then 1101 ac_top_srcdir=. 1102 else 1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1104 fi ;; 1105 [\\/]* | ?:[\\/]* ) # Absolute path. 1106 ac_srcdir=$srcdir$ac_dir_suffix; 1107 ac_top_srcdir=$srcdir ;; 1108 *) # Relative path. 1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1110 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1111esac 1112 1113# Do not use `cd foo && pwd` to compute absolute paths, because 1114# the directories may not exist. 1115case `pwd` in 1116.) ac_abs_builddir="$ac_dir";; 1117*) 1118 case "$ac_dir" in 1119 .) ac_abs_builddir=`pwd`;; 1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1121 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1122 esac;; 1123esac 1124case $ac_abs_builddir in 1125.) ac_abs_top_builddir=${ac_top_builddir}.;; 1126*) 1127 case ${ac_top_builddir}. in 1128 .) ac_abs_top_builddir=$ac_abs_builddir;; 1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1131 esac;; 1132esac 1133case $ac_abs_builddir in 1134.) ac_abs_srcdir=$ac_srcdir;; 1135*) 1136 case $ac_srcdir in 1137 .) ac_abs_srcdir=$ac_abs_builddir;; 1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1140 esac;; 1141esac 1142case $ac_abs_builddir in 1143.) ac_abs_top_srcdir=$ac_top_srcdir;; 1144*) 1145 case $ac_top_srcdir in 1146 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1149 esac;; 1150esac 1151 1152 cd $ac_dir 1153 # Check for guested configure; otherwise get Cygnus style configure. 1154 if test -f $ac_srcdir/configure.gnu; then 1155 echo 1156 $SHELL $ac_srcdir/configure.gnu --help=recursive 1157 elif test -f $ac_srcdir/configure; then 1158 echo 1159 $SHELL $ac_srcdir/configure --help=recursive 1160 elif test -f $ac_srcdir/configure.ac || 1161 test -f $ac_srcdir/configure.in; then 1162 echo 1163 $ac_configure --help 1164 else 1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1166 fi 1167 cd $ac_popdir 1168 done 1169fi 1170 1171test -n "$ac_init_help" && exit 0 1172if $ac_init_version; then 1173 cat <<\_ACEOF 1174memcache configure 1.4.0.rc2 1175generated by GNU Autoconf 2.59 1176 1177Copyright (C) 2003 Free Software Foundation, Inc. 1178This configure script is free software; the Free Software Foundation 1179gives unlimited permission to copy, distribute and modify it. 1180 1181Copyright (c) 2004-2006 Sean Chittenden <sean@gigave.com> 1182_ACEOF 1183 exit 0 1184fi 1185exec 5>config.log 1186cat >&5 <<_ACEOF 1187This file contains any messages produced by compilers while 1188running configure, to aid debugging if configure makes a mistake. 1189 1190It was created by memcache $as_me 1.4.0.rc2, which was 1191generated by GNU Autoconf 2.59. Invocation command line was 1192 1193 $ $0 $@ 1194 1195_ACEOF 1196{ 1197cat <<_ASUNAME 1198## --------- ## 1199## Platform. ## 1200## --------- ## 1201 1202hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1203uname -m = `(uname -m) 2>/dev/null || echo unknown` 1204uname -r = `(uname -r) 2>/dev/null || echo unknown` 1205uname -s = `(uname -s) 2>/dev/null || echo unknown` 1206uname -v = `(uname -v) 2>/dev/null || echo unknown` 1207 1208/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1209/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1210 1211/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1212/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1213/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1214hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1215/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1216/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1217/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1218 1219_ASUNAME 1220 1221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1222for as_dir in $PATH 1223do 1224 IFS=$as_save_IFS 1225 test -z "$as_dir" && as_dir=. 1226 echo "PATH: $as_dir" 1227done 1228 1229} >&5 1230 1231cat >&5 <<_ACEOF 1232 1233 1234## ----------- ## 1235## Core tests. ## 1236## ----------- ## 1237 1238_ACEOF 1239 1240 1241# Keep a trace of the command line. 1242# Strip out --no-create and --no-recursion so they do not pile up. 1243# Strip out --silent because we don't want to record it for future runs. 1244# Also quote any args containing shell meta-characters. 1245# Make two passes to allow for proper duplicate-argument suppression. 1246ac_configure_args= 1247ac_configure_args0= 1248ac_configure_args1= 1249ac_sep= 1250ac_must_keep_next=false 1251for ac_pass in 1 2 1252do 1253 for ac_arg 1254 do 1255 case $ac_arg in 1256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1258 | -silent | --silent | --silen | --sile | --sil) 1259 continue ;; 1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1262 esac 1263 case $ac_pass in 1264 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1265 2) 1266 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1267 if test $ac_must_keep_next = true; then 1268 ac_must_keep_next=false # Got value, back to normal. 1269 else 1270 case $ac_arg in 1271 *=* | --config-cache | -C | -disable-* | --disable-* \ 1272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1274 | -with-* | --with-* | -without-* | --without-* | --x) 1275 case "$ac_configure_args0 " in 1276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1277 esac 1278 ;; 1279 -* ) ac_must_keep_next=true ;; 1280 esac 1281 fi 1282 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1283 # Get rid of the leading space. 1284 ac_sep=" " 1285 ;; 1286 esac 1287 done 1288done 1289$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1290$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1291 1292# When interrupted or exit'd, cleanup temporary files, and complete 1293# config.log. We remove comments because anyway the quotes in there 1294# would cause problems or look ugly. 1295# WARNING: Be sure not to use single quotes in there, as some shells, 1296# such as our DU 5.0 friend, will then `close' the trap. 1297trap 'exit_status=$? 1298 # Save into config.log some information that might help in debugging. 1299 { 1300 echo 1301 1302 cat <<\_ASBOX 1303## ---------------- ## 1304## Cache variables. ## 1305## ---------------- ## 1306_ASBOX 1307 echo 1308 # The following way of writing the cache mishandles newlines in values, 1309{ 1310 (set) 2>&1 | 1311 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1312 *ac_space=\ *) 1313 sed -n \ 1314 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1316 ;; 1317 *) 1318 sed -n \ 1319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1320 ;; 1321 esac; 1322} 1323 echo 1324 1325 cat <<\_ASBOX 1326## ----------------- ## 1327## Output variables. ## 1328## ----------------- ## 1329_ASBOX 1330 echo 1331 for ac_var in $ac_subst_vars 1332 do 1333 eval ac_val=$`echo $ac_var` 1334 echo "$ac_var='"'"'$ac_val'"'"'" 1335 done | sort 1336 echo 1337 1338 if test -n "$ac_subst_files"; then 1339 cat <<\_ASBOX 1340## ------------- ## 1341## Output files. ## 1342## ------------- ## 1343_ASBOX 1344 echo 1345 for ac_var in $ac_subst_files 1346 do 1347 eval ac_val=$`echo $ac_var` 1348 echo "$ac_var='"'"'$ac_val'"'"'" 1349 done | sort 1350 echo 1351 fi 1352 1353 if test -s confdefs.h; then 1354 cat <<\_ASBOX 1355## ----------- ## 1356## confdefs.h. ## 1357## ----------- ## 1358_ASBOX 1359 echo 1360 sed "/^$/d" confdefs.h | sort 1361 echo 1362 fi 1363 test "$ac_signal" != 0 && 1364 echo "$as_me: caught signal $ac_signal" 1365 echo "$as_me: exit $exit_status" 1366 } >&5 1367 rm -f core *.core && 1368 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1369 exit $exit_status 1370 ' 0 1371for ac_signal in 1 2 13 15; do 1372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1373done 1374ac_signal=0 1375 1376# confdefs.h avoids OS command line length limits that DEFS can exceed. 1377rm -rf conftest* confdefs.h 1378# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1379echo >confdefs.h 1380 1381# Predefined preprocessor variables. 1382 1383cat >>confdefs.h <<_ACEOF 1384#define PACKAGE_NAME "$PACKAGE_NAME" 1385_ACEOF 1386 1387 1388cat >>confdefs.h <<_ACEOF 1389#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1390_ACEOF 1391 1392 1393cat >>confdefs.h <<_ACEOF 1394#define PACKAGE_VERSION "$PACKAGE_VERSION" 1395_ACEOF 1396 1397 1398cat >>confdefs.h <<_ACEOF 1399#define PACKAGE_STRING "$PACKAGE_STRING" 1400_ACEOF 1401 1402 1403cat >>confdefs.h <<_ACEOF 1404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1405_ACEOF 1406 1407 1408# Let the site file select an alternate cache file if it wants to. 1409# Prefer explicitly selected file to automatically selected ones. 1410if test -z "$CONFIG_SITE"; then 1411 if test "x$prefix" != xNONE; then 1412 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1413 else 1414 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1415 fi 1416fi 1417for ac_site_file in $CONFIG_SITE; do 1418 if test -r "$ac_site_file"; then 1419 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1420echo "$as_me: loading site script $ac_site_file" >&6;} 1421 sed 's/^/| /' "$ac_site_file" >&5 1422 . "$ac_site_file" 1423 fi 1424done 1425 1426if test -r "$cache_file"; then 1427 # Some versions of bash will fail to source /dev/null (special 1428 # files actually), so we avoid doing that. 1429 if test -f "$cache_file"; then 1430 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1431echo "$as_me: loading cache $cache_file" >&6;} 1432 case $cache_file in 1433 [\\/]* | ?:[\\/]* ) . $cache_file;; 1434 *) . ./$cache_file;; 1435 esac 1436 fi 1437else 1438 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1439echo "$as_me: creating cache $cache_file" >&6;} 1440 >$cache_file 1441fi 1442 1443# Check that the precious variables saved in the cache have kept the same 1444# value. 1445ac_cache_corrupted=false 1446for ac_var in `(set) 2>&1 | 1447 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1448 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1449 eval ac_new_set=\$ac_env_${ac_var}_set 1450 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1451 eval ac_new_val="\$ac_env_${ac_var}_value" 1452 case $ac_old_set,$ac_new_set in 1453 set,) 1454 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1455echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1456 ac_cache_corrupted=: ;; 1457 ,set) 1458 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1459echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1460 ac_cache_corrupted=: ;; 1461 ,);; 1462 *) 1463 if test "x$ac_old_val" != "x$ac_new_val"; then 1464 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1465echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1466 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1467echo "$as_me: former value: $ac_old_val" >&2;} 1468 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1469echo "$as_me: current value: $ac_new_val" >&2;} 1470 ac_cache_corrupted=: 1471 fi;; 1472 esac 1473 # Pass precious variables to config.status. 1474 if test "$ac_new_set" = set; then 1475 case $ac_new_val in 1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1478 *) ac_arg=$ac_var=$ac_new_val ;; 1479 esac 1480 case " $ac_configure_args " in 1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1483 esac 1484 fi 1485done 1486if $ac_cache_corrupted; then 1487 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1488echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1489 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1490echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1491 { (exit 1); exit 1; }; } 1492fi 1493 1494ac_ext=c 1495ac_cpp='$CPP $CPPFLAGS' 1496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1498ac_compiler_gnu=$ac_cv_c_compiler_gnu 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 ac_config_headers="$ac_config_headers config.h" 1527 1528 1529ac_aux_dir= 1530for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1531 if test -f $ac_dir/install-sh; then 1532 ac_aux_dir=$ac_dir 1533 ac_install_sh="$ac_aux_dir/install-sh -c" 1534 break 1535 elif test -f $ac_dir/install.sh; then 1536 ac_aux_dir=$ac_dir 1537 ac_install_sh="$ac_aux_dir/install.sh -c" 1538 break 1539 elif test -f $ac_dir/shtool; then 1540 ac_aux_dir=$ac_dir 1541 ac_install_sh="$ac_aux_dir/shtool install -c" 1542 break 1543 fi 1544done 1545if test -z "$ac_aux_dir"; then 1546 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1547echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1548 { (exit 1); exit 1; }; } 1549fi 1550ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1551ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1552ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1553 1554# Make sure we can run config.sub. 1555$ac_config_sub sun4 >/dev/null 2>&1 || 1556 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1557echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1558 { (exit 1); exit 1; }; } 1559 1560echo "$as_me:$LINENO: checking build system type" >&5 1561echo $ECHO_N "checking build system type... $ECHO_C" >&6 1562if test "${ac_cv_build+set}" = set; then 1563 echo $ECHO_N "(cached) $ECHO_C" >&6 1564else 1565 ac_cv_build_alias=$build_alias 1566test -z "$ac_cv_build_alias" && 1567 ac_cv_build_alias=`$ac_config_guess` 1568test -z "$ac_cv_build_alias" && 1569 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1570echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1571 { (exit 1); exit 1; }; } 1572ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1574echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1575 { (exit 1); exit 1; }; } 1576 1577fi 1578echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1579echo "${ECHO_T}$ac_cv_build" >&6 1580build=$ac_cv_build 1581build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1582build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1583build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1584 1585 1586echo "$as_me:$LINENO: checking host system type" >&5 1587echo $ECHO_N "checking host system type... $ECHO_C" >&6 1588if test "${ac_cv_host+set}" = set; then 1589 echo $ECHO_N "(cached) $ECHO_C" >&6 1590else 1591 ac_cv_host_alias=$host_alias 1592test -z "$ac_cv_host_alias" && 1593 ac_cv_host_alias=$ac_cv_build_alias 1594ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1596echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1597 { (exit 1); exit 1; }; } 1598 1599fi 1600echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1601echo "${ECHO_T}$ac_cv_host" >&6 1602host=$ac_cv_host 1603host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1604host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1605host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1606 1607 1608echo "$as_me:$LINENO: checking target system type" >&5 1609echo $ECHO_N "checking target system type... $ECHO_C" >&6 1610if test "${ac_cv_target+set}" = set; then 1611 echo $ECHO_N "(cached) $ECHO_C" >&6 1612else 1613 ac_cv_target_alias=$target_alias 1614test "x$ac_cv_target_alias" = "x" && 1615 ac_cv_target_alias=$ac_cv_host_alias 1616ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1618echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1619 { (exit 1); exit 1; }; } 1620 1621fi 1622echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1623echo "${ECHO_T}$ac_cv_target" >&6 1624target=$ac_cv_target 1625target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1626target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1627target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1628 1629 1630# The aliases save the names the user supplied, while $host etc. 1631# will get canonicalized. 1632test -n "$target_alias" && 1633 test "$program_prefix$program_suffix$program_transform_name" = \ 1634 NONENONEs,x,x, && 1635 program_prefix=${target_alias}- 1636 1637MEMCACHE_MAJOR_VERSION=1 1638MEMCACHE_MINOR_VERSION=4 1639MEMCACHE_MICRO_VERSION=0 1640MEMCACHE_MICRO_VERSION_SUFFIX=.rc2 1641MEMCACHE_RELDATE=20060220 1642MEMCACHE_VERSION=$MEMCACHE_MAJOR_VERSION.$MEMCACHE_MINOR_VERSION.$MEMCACHE_MICRO_VERSION$MEMCACHE_MICRO_VERSION_SUFFIX 1643MEMCACHE_VERSION_INFO=`expr $MEMCACHE_MAJOR_VERSION \* $MEMCACHE_MINOR_VERSION`:$MEMCACHE_MICRO_VERSION:$MEMCACHE_MINOR_VERSION 1644MEMCACHE_VERSION_NUMBER=`expr $MEMCACHE_MAJOR_VERSION \* 10000 + $MEMCACHE_MINOR_VERSION \* 100 + $MEMCACHE_MICRO_VERSION` 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655am__api_version="1.9" 1656# Find a good install program. We prefer a C program (faster), 1657# so one script is as good as another. But avoid the broken or 1658# incompatible versions: 1659# SysV /etc/install, /usr/sbin/install 1660# SunOS /usr/etc/install 1661# IRIX /sbin/install 1662# AIX /bin/install 1663# AmigaOS /C/install, which installs bootblocks on floppy discs 1664# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1665# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1666# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1667# OS/2's system install, which has a completely different semantic 1668# ./install, which can be erroneously created by make from ./install.sh. 1669echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1670echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1671if test -z "$INSTALL"; then 1672if test "${ac_cv_path_install+set}" = set; then 1673 echo $ECHO_N "(cached) $ECHO_C" >&6 1674else 1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1676for as_dir in $PATH 1677do 1678 IFS=$as_save_IFS 1679 test -z "$as_dir" && as_dir=. 1680 # Account for people who put trailing slashes in PATH elements. 1681case $as_dir/ in 1682 ./ | .// | /cC/* | \ 1683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1684 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1685 /usr/ucb/* ) ;; 1686 *) 1687 # OSF1 and SCO ODT 3.0 have their own names for install. 1688 # Don't use installbsd from OSF since it installs stuff as root 1689 # by default. 1690 for ac_prog in ginstall scoinst install; do 1691 for ac_exec_ext in '' $ac_executable_extensions; do 1692 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1693 if test $ac_prog = install && 1694 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1695 # AIX install. It has an incompatible calling convention. 1696 : 1697 elif test $ac_prog = install && 1698 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1699 # program-specific install script used by HP pwplus--don't use. 1700 : 1701 else 1702 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1703 break 3 1704 fi 1705 fi 1706 done 1707 done 1708 ;; 1709esac 1710done 1711 1712 1713fi 1714 if test "${ac_cv_path_install+set}" = set; then 1715 INSTALL=$ac_cv_path_install 1716 else 1717 # As a last resort, use the slow shell script. We don't cache a 1718 # path for INSTALL within a source directory, because that will 1719 # break other packages using the cache if that directory is 1720 # removed, or if the path is relative. 1721 INSTALL=$ac_install_sh 1722 fi 1723fi 1724echo "$as_me:$LINENO: result: $INSTALL" >&5 1725echo "${ECHO_T}$INSTALL" >&6 1726 1727# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1728# It thinks the first close brace ends the variable substitution. 1729test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1730 1731test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1732 1733test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1734 1735echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1736echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1737# Just in case 1738sleep 1 1739echo timestamp > conftest.file 1740# Do `set' in a subshell so we don't clobber the current shell's 1741# arguments. Must try -L first in case configure is actually a 1742# symlink; some systems play weird games with the mod time of symlinks 1743# (eg FreeBSD returns the mod time of the symlink's containing 1744# directory). 1745if ( 1746 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1747 if test "$*" = "X"; then 1748 # -L didn't work. 1749 set X `ls -t $srcdir/configure conftest.file` 1750 fi 1751 rm -f conftest.file 1752 if test "$*" != "X $srcdir/configure conftest.file" \ 1753 && test "$*" != "X conftest.file $srcdir/configure"; then 1754 1755 # If neither matched, then we have a broken ls. This can happen 1756 # if, for instance, CONFIG_SHELL is bash and it inherits a 1757 # broken ls alias from the environment. This has actually 1758 # happened. Such a system could not be considered "sane". 1759 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1760alias in your environment" >&5 1761echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1762alias in your environment" >&2;} 1763 { (exit 1); exit 1; }; } 1764 fi 1765 1766 test "$2" = conftest.file 1767 ) 1768then 1769 # Ok. 1770 : 1771else 1772 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1773Check your system clock" >&5 1774echo "$as_me: error: newly created file is older than distributed files! 1775Check your system clock" >&2;} 1776 { (exit 1); exit 1; }; } 1777fi 1778echo "$as_me:$LINENO: result: yes" >&5 1779echo "${ECHO_T}yes" >&6 1780test "$program_prefix" != NONE && 1781 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1782# Use a double $ so make ignores it. 1783test "$program_suffix" != NONE && 1784 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1785# Double any \ or $. echo might interpret backslashes. 1786# By default was `s,x,x', remove it if useless. 1787cat <<\_ACEOF >conftest.sed 1788s/[\\$]/&&/g;s/;s,x,x,$// 1789_ACEOF 1790program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1791rm conftest.sed 1792 1793# expand $ac_aux_dir to an absolute path 1794am_aux_dir=`cd $ac_aux_dir && pwd` 1795 1796test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1797# Use eval to expand $SHELL 1798if eval "$MISSING --run true"; then 1799 am_missing_run="$MISSING --run " 1800else 1801 am_missing_run= 1802 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1803echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1804fi 1805 1806if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1807 # We used to keeping the `.' as first argument, in order to 1808 # allow $(mkdir_p) to be used without argument. As in 1809 # $(mkdir_p) $(somedir) 1810 # where $(somedir) is conditionally defined. However this is wrong 1811 # for two reasons: 1812 # 1. if the package is installed by a user who cannot write `.' 1813 # make install will fail, 1814 # 2. the above comment should most certainly read 1815 # $(mkdir_p) $(DESTDIR)$(somedir) 1816 # so it does not work when $(somedir) is undefined and 1817 # $(DESTDIR) is not. 1818 # To support the latter case, we have to write 1819 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1820 # so the `.' trick is pointless. 1821 mkdir_p='mkdir -p --' 1822else 1823 # On NextStep and OpenStep, the `mkdir' command does not 1824 # recognize any option. It will interpret all options as 1825 # directories to create, and then abort because `.' already 1826 # exists. 1827 for d in ./-p ./--version; 1828 do 1829 test -d $d && rmdir $d 1830 done 1831 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1832 if test -f "$ac_aux_dir/mkinstalldirs"; then 1833 mkdir_p='$(mkinstalldirs)' 1834 else 1835 mkdir_p='$(install_sh) -d' 1836 fi 1837fi 1838 1839for ac_prog in gawk mawk nawk awk 1840do 1841 # Extract the first word of "$ac_prog", so it can be a program name with args. 1842set dummy $ac_prog; ac_word=$2 1843echo "$as_me:$LINENO: checking for $ac_word" >&5 1844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1845if test "${ac_cv_prog_AWK+set}" = set; then 1846 echo $ECHO_N "(cached) $ECHO_C" >&6 1847else 1848 if test -n "$AWK"; then 1849 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1850else 1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1852for as_dir in $PATH 1853do 1854 IFS=$as_save_IFS 1855 test -z "$as_dir" && as_dir=. 1856 for ac_exec_ext in '' $ac_executable_extensions; do 1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1858 ac_cv_prog_AWK="$ac_prog" 1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1860 break 2 1861 fi 1862done 1863done 1864 1865fi 1866fi 1867AWK=$ac_cv_prog_AWK 1868if test -n "$AWK"; then 1869 echo "$as_me:$LINENO: result: $AWK" >&5 1870echo "${ECHO_T}$AWK" >&6 1871else 1872 echo "$as_me:$LINENO: result: no" >&5 1873echo "${ECHO_T}no" >&6 1874fi 1875 1876 test -n "$AWK" && break 1877done 1878 1879echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1880echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1881set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1882if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1883 echo $ECHO_N "(cached) $ECHO_C" >&6 1884else 1885 cat >conftest.make <<\_ACEOF 1886all: 1887 @echo 'ac_maketemp="$(MAKE)"' 1888_ACEOF 1889# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1890eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1891if test -n "$ac_maketemp"; then 1892 eval ac_cv_prog_make_${ac_make}_set=yes 1893else 1894 eval ac_cv_prog_make_${ac_make}_set=no 1895fi 1896rm -f conftest.make 1897fi 1898if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1899 echo "$as_me:$LINENO: result: yes" >&5 1900echo "${ECHO_T}yes" >&6 1901 SET_MAKE= 1902else 1903 echo "$as_me:$LINENO: result: no" >&5 1904echo "${ECHO_T}no" >&6 1905 SET_MAKE="MAKE=${MAKE-make}" 1906fi 1907 1908rm -rf .tst 2>/dev/null 1909mkdir .tst 2>/dev/null 1910if test -d .tst; then 1911 am__leading_dot=. 1912else 1913 am__leading_dot=_ 1914fi 1915rmdir .tst 2>/dev/null 1916 1917# test to see if srcdir already configured 1918if test "`cd $srcdir && pwd`" != "`pwd`" && 1919 test -f $srcdir/config.status; then 1920 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1921echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1922 { (exit 1); exit 1; }; } 1923fi 1924 1925# test whether we have cygpath 1926if test -z "$CYGPATH_W"; then 1927 if (cygpath --version) >/dev/null 2>/dev/null; then 1928 CYGPATH_W='cygpath -w' 1929 else 1930 CYGPATH_W=echo 1931 fi 1932fi 1933 1934 1935# Define the identity of the package. 1936 PACKAGE=libmemcache 1937 VERSION=${MEMCACHE_VERSION} 1938 1939 1940cat >>confdefs.h <<_ACEOF 1941#define PACKAGE "$PACKAGE" 1942_ACEOF 1943 1944 1945cat >>confdefs.h <<_ACEOF 1946#define VERSION "$VERSION" 1947_ACEOF 1948 1949# Some tools Automake needs. 1950 1951ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1952 1953 1954AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1955 1956 1957AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1958 1959 1960AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1961 1962 1963MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1964 1965install_sh=${install_sh-"$am_aux_dir/install-sh"} 1966 1967# Installed binaries are usually stripped using `strip' when the user 1968# run `make install-strip'. However `strip' might not be the right 1969# tool to use in cross-compilation environments, therefore Automake 1970# will honor the `STRIP' environment variable to overrule this program. 1971if test "$cross_compiling" != no; then 1972 if test -n "$ac_tool_prefix"; then 1973 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1974set dummy ${ac_tool_prefix}strip; ac_word=$2 1975echo "$as_me:$LINENO: checking for $ac_word" >&5 1976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1977if test "${ac_cv_prog_STRIP+set}" = set; then 1978 echo $ECHO_N "(cached) $ECHO_C" >&6 1979else 1980 if test -n "$STRIP"; then 1981 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1982else 1983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1984for as_dir in $PATH 1985do 1986 IFS=$as_save_IFS 1987 test -z "$as_dir" && as_dir=. 1988 for ac_exec_ext in '' $ac_executable_extensions; do 1989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1990 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1992 break 2 1993 fi 1994done 1995done 1996 1997fi 1998fi 1999STRIP=$ac_cv_prog_STRIP 2000if test -n "$STRIP"; then 2001 echo "$as_me:$LINENO: result: $STRIP" >&5 2002echo "${ECHO_T}$STRIP" >&6 2003else 2004 echo "$as_me:$LINENO: result: no" >&5 2005echo "${ECHO_T}no" >&6 2006fi 2007 2008fi 2009if test -z "$ac_cv_prog_STRIP"; then 2010 ac_ct_STRIP=$STRIP 2011 # Extract the first word of "strip", so it can be a program name with args. 2012set dummy strip; ac_word=$2 2013echo "$as_me:$LINENO: checking for $ac_word" >&5 2014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2015if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2016 echo $ECHO_N "(cached) $ECHO_C" >&6 2017else 2018 if test -n "$ac_ct_STRIP"; then 2019 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2020else 2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2022for as_dir in $PATH 2023do 2024 IFS=$as_save_IFS 2025 test -z "$as_dir" && as_dir=. 2026 for ac_exec_ext in '' $ac_executable_extensions; do 2027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2028 ac_cv_prog_ac_ct_STRIP="strip" 2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2030 break 2 2031 fi 2032done 2033done 2034 2035 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 2036fi 2037fi 2038ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2039if test -n "$ac_ct_STRIP"; then 2040 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2041echo "${ECHO_T}$ac_ct_STRIP" >&6 2042else 2043 echo "$as_me:$LINENO: result: no" >&5 2044echo "${ECHO_T}no" >&6 2045fi 2046 2047 STRIP=$ac_ct_STRIP 2048else 2049 STRIP="$ac_cv_prog_STRIP" 2050fi 2051 2052fi 2053INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2054 2055# We need awk for the "check" target. The system "awk" is bad on 2056# some platforms. 2057# Always define AMTAR for backward compatibility. 2058 2059AMTAR=${AMTAR-"${am_missing_run}tar"} 2060 2061am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2062 2063 2064 2065 2066 2067 2068 2069DEPDIR="${am__leading_dot}deps" 2070 2071 ac_config_commands="$ac_config_commands depfiles" 2072 2073 2074am_make=${MAKE-make} 2075cat > confinc << 'END' 2076am__doit: 2077 @echo done 2078.PHONY: am__doit 2079END 2080# If we don't find an include directive, just comment out the code. 2081echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2082echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2083am__include="#" 2084am__quote= 2085_am_result=none 2086# First try GNU make style include. 2087echo "include confinc" > confmf 2088# We grep out `Entering directory' and `Leaving directory' 2089# messages which can occur if `w' ends up in MAKEFLAGS. 2090# In particular we don't look at `^make:' because GNU make might 2091# be invoked under some other name (usually "gmake"), in which 2092# case it prints its new name instead of `make'. 2093if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2094 am__include=include 2095 am__quote= 2096 _am_result=GNU 2097fi 2098# Now try BSD make style include. 2099if test "$am__include" = "#"; then 2100 echo '.include "confinc"' > confmf 2101 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2102 am__include=.include 2103 am__quote="\"" 2104 _am_result=BSD 2105 fi 2106fi 2107 2108 2109echo "$as_me:$LINENO: result: $_am_result" >&5 2110echo "${ECHO_T}$_am_result" >&6 2111rm -f confinc confmf 2112 2113# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2114if test "${enable_dependency_tracking+set}" = set; then 2115 enableval="$enable_dependency_tracking" 2116 2117fi; 2118if test "x$enable_dependency_tracking" != xno; then 2119 am_depcomp="$ac_aux_dir/depcomp" 2120 AMDEPBACKSLASH='\' 2121fi 2122 2123 2124if test "x$enable_dependency_tracking" != xno; then 2125 AMDEP_TRUE= 2126 AMDEP_FALSE='#' 2127else 2128 AMDEP_TRUE='#' 2129 AMDEP_FALSE= 2130fi 2131 2132 2133 2134ac_ext=c 2135ac_cpp='$CPP $CPPFLAGS' 2136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2138ac_compiler_gnu=$ac_cv_c_compiler_gnu 2139if test -n "$ac_tool_prefix"; then 2140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2141set dummy ${ac_tool_prefix}gcc; ac_word=$2 2142echo "$as_me:$LINENO: checking for $ac_word" >&5 2143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2144if test "${ac_cv_prog_CC+set}" = set; then 2145 echo $ECHO_N "(cached) $ECHO_C" >&6 2146else 2147 if test -n "$CC"; then 2148 ac_cv_prog_CC="$CC" # Let the user override the test. 2149else 2150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2151for as_dir in $PATH 2152do 2153 IFS=$as_save_IFS 2154 test -z "$as_dir" && as_dir=. 2155 for ac_exec_ext in '' $ac_executable_extensions; do 2156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2157 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2159 break 2 2160 fi 2161done 2162done 2163 2164fi 2165fi 2166CC=$ac_cv_prog_CC 2167if test -n "$CC"; then 2168 echo "$as_me:$LINENO: result: $CC" >&5 2169echo "${ECHO_T}$CC" >&6 2170else 2171 echo "$as_me:$LINENO: result: no" >&5 2172echo "${ECHO_T}no" >&6 2173fi 2174 2175fi 2176if test -z "$ac_cv_prog_CC"; then 2177 ac_ct_CC=$CC 2178 # Extract the first word of "gcc", so it can be a program name with args. 2179set dummy gcc; ac_word=$2 2180echo "$as_me:$LINENO: checking for $ac_word" >&5 2181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2182if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2183 echo $ECHO_N "(cached) $ECHO_C" >&6 2184else 2185 if test -n "$ac_ct_CC"; then 2186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2187else 2188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2189for as_dir in $PATH 2190do 2191 IFS=$as_save_IFS 2192 test -z "$as_dir" && as_dir=. 2193 for ac_exec_ext in '' $ac_executable_extensions; do 2194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2195 ac_cv_prog_ac_ct_CC="gcc" 2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2197 break 2 2198 fi 2199done 2200done 2201 2202fi 2203fi 2204ac_ct_CC=$ac_cv_prog_ac_ct_CC 2205if test -n "$ac_ct_CC"; then 2206 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2207echo "${ECHO_T}$ac_ct_CC" >&6 2208else 2209 echo "$as_me:$LINENO: result: no" >&5 2210echo "${ECHO_T}no" >&6 2211fi 2212 2213 CC=$ac_ct_CC 2214else 2215 CC="$ac_cv_prog_CC" 2216fi 2217 2218if test -z "$CC"; then 2219 if test -n "$ac_tool_prefix"; then 2220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2221set dummy ${ac_tool_prefix}cc; ac_word=$2 2222echo "$as_me:$LINENO: checking for $ac_word" >&5 2223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2224if test "${ac_cv_prog_CC+set}" = set; then 2225 echo $ECHO_N "(cached) $ECHO_C" >&6 2226else 2227 if test -n "$CC"; then 2228 ac_cv_prog_CC="$CC" # Let the user override the test. 2229else 2230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2231for as_dir in $PATH 2232do 2233 IFS=$as_save_IFS 2234 test -z "$as_dir" && as_dir=. 2235 for ac_exec_ext in '' $ac_executable_extensions; do 2236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2237 ac_cv_prog_CC="${ac_tool_prefix}cc" 2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2239 break 2 2240 fi 2241done 2242done 2243 2244fi 2245fi 2246CC=$ac_cv_prog_CC 2247if test -n "$CC"; then 2248 echo "$as_me:$LINENO: result: $CC" >&5 2249echo "${ECHO_T}$CC" >&6 2250else 2251 echo "$as_me:$LINENO: result: no" >&5 2252echo "${ECHO_T}no" >&6 2253fi 2254 2255fi 2256if test -z "$ac_cv_prog_CC"; then 2257 ac_ct_CC=$CC 2258 # Extract the first word of "cc", so it can be a program name with args. 2259set dummy cc; ac_word=$2 2260echo "$as_me:$LINENO: checking for $ac_word" >&5 2261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2262if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2263 echo $ECHO_N "(cached) $ECHO_C" >&6 2264else 2265 if test -n "$ac_ct_CC"; then 2266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2267else 2268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2269for as_dir in $PATH 2270do 2271 IFS=$as_save_IFS 2272 test -z "$as_dir" && as_dir=. 2273 for ac_exec_ext in '' $ac_executable_extensions; do 2274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2275 ac_cv_prog_ac_ct_CC="cc" 2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2277 break 2 2278 fi 2279done 2280done 2281 2282fi 2283fi 2284ac_ct_CC=$ac_cv_prog_ac_ct_CC 2285if test -n "$ac_ct_CC"; then 2286 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2287echo "${ECHO_T}$ac_ct_CC" >&6 2288else 2289 echo "$as_me:$LINENO: result: no" >&5 2290echo "${ECHO_T}no" >&6 2291fi 2292 2293 CC=$ac_ct_CC 2294else 2295 CC="$ac_cv_prog_CC" 2296fi 2297 2298fi 2299if test -z "$CC"; then 2300 # Extract the first word of "cc", so it can be a program name with args. 2301set dummy cc; ac_word=$2 2302echo "$as_me:$LINENO: checking for $ac_word" >&5 2303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2304if test "${ac_cv_prog_CC+set}" = set; then 2305 echo $ECHO_N "(cached) $ECHO_C" >&6 2306else 2307 if test -n "$CC"; then 2308 ac_cv_prog_CC="$CC" # Let the user override the test. 2309else 2310 ac_prog_rejected=no 2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2312for as_dir in $PATH 2313do 2314 IFS=$as_save_IFS 2315 test -z "$as_dir" && as_dir=. 2316 for ac_exec_ext in '' $ac_executable_extensions; do 2317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2318 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2319 ac_prog_rejected=yes 2320 continue 2321 fi 2322 ac_cv_prog_CC="cc" 2323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2324 break 2 2325 fi 2326done 2327done 2328 2329if test $ac_prog_rejected = yes; then 2330 # We found a bogon in the path, so make sure we never use it. 2331 set dummy $ac_cv_prog_CC 2332 shift 2333 if test $# != 0; then 2334 # We chose a different compiler from the bogus one. 2335 # However, it has the same basename, so the bogon will be chosen 2336 # first if we set CC to just the basename; use the full file name. 2337 shift 2338 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2339 fi 2340fi 2341fi 2342fi 2343CC=$ac_cv_prog_CC 2344if test -n "$CC"; then 2345 echo "$as_me:$LINENO: result: $CC" >&5 2346echo "${ECHO_T}$CC" >&6 2347else 2348 echo "$as_me:$LINENO: result: no" >&5 2349echo "${ECHO_T}no" >&6 2350fi 2351 2352fi 2353if test -z "$CC"; then 2354 if test -n "$ac_tool_prefix"; then 2355 for ac_prog in cl 2356 do 2357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2358set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2359echo "$as_me:$LINENO: checking for $ac_word" >&5 2360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2361if test "${ac_cv_prog_CC+set}" = set; then 2362 echo $ECHO_N "(cached) $ECHO_C" >&6 2363else 2364 if test -n "$CC"; then 2365 ac_cv_prog_CC="$CC" # Let the user override the test. 2366else 2367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2368for as_dir in $PATH 2369do 2370 IFS=$as_save_IFS 2371 test -z "$as_dir" && as_dir=. 2372 for ac_exec_ext in '' $ac_executable_extensions; do 2373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2374 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2376 break 2 2377 fi 2378done 2379done 2380 2381fi 2382fi 2383CC=$ac_cv_prog_CC 2384if test -n "$CC"; then 2385 echo "$as_me:$LINENO: result: $CC" >&5 2386echo "${ECHO_T}$CC" >&6 2387else 2388 echo "$as_me:$LINENO: result: no" >&5 2389echo "${ECHO_T}no" >&6 2390fi 2391 2392 test -n "$CC" && break 2393 done 2394fi 2395if test -z "$CC"; then 2396 ac_ct_CC=$CC 2397 for ac_prog in cl 2398do 2399 # Extract the first word of "$ac_prog", so it can be a program name with args. 2400set dummy $ac_prog; ac_word=$2 2401echo "$as_me:$LINENO: checking for $ac_word" >&5 2402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2403if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2404 echo $ECHO_N "(cached) $ECHO_C" >&6 2405else 2406 if test -n "$ac_ct_CC"; then 2407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2408else 2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2410for as_dir in $PATH 2411do 2412 IFS=$as_save_IFS 2413 test -z "$as_dir" && as_dir=. 2414 for ac_exec_ext in '' $ac_executable_extensions; do 2415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2416 ac_cv_prog_ac_ct_CC="$ac_prog" 2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2418 break 2 2419 fi 2420done 2421done 2422 2423fi 2424fi 2425ac_ct_CC=$ac_cv_prog_ac_ct_CC 2426if test -n "$ac_ct_CC"; then 2427 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2428echo "${ECHO_T}$ac_ct_CC" >&6 2429else 2430 echo "$as_me:$LINENO: result: no" >&5 2431echo "${ECHO_T}no" >&6 2432fi 2433 2434 test -n "$ac_ct_CC" && break 2435done 2436 2437 CC=$ac_ct_CC 2438fi 2439 2440fi 2441 2442 2443test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2444See \`config.log' for more details." >&5 2445echo "$as_me: error: no acceptable C compiler found in \$PATH 2446See \`config.log' for more details." >&2;} 2447 { (exit 1); exit 1; }; } 2448 2449# Provide some information about the compiler. 2450echo "$as_me:$LINENO:" \ 2451 "checking for C compiler version" >&5 2452ac_compiler=`set X $ac_compile; echo $2` 2453{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2454 (eval $ac_compiler --version </dev/null >&5) 2>&5 2455 ac_status=$? 2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2457 (exit $ac_status); } 2458{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2459 (eval $ac_compiler -v </dev/null >&5) 2>&5 2460 ac_status=$? 2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2462 (exit $ac_status); } 2463{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2464 (eval $ac_compiler -V </dev/null >&5) 2>&5 2465 ac_status=$? 2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2467 (exit $ac_status); } 2468 2469cat >conftest.$ac_ext <<_ACEOF 2470/* confdefs.h. */ 2471_ACEOF 2472cat confdefs.h >>conftest.$ac_ext 2473cat >>conftest.$ac_ext <<_ACEOF 2474/* end confdefs.h. */ 2475 2476int 2477main () 2478{ 2479 2480 ; 2481 return 0; 2482} 2483_ACEOF 2484ac_clean_files_save=$ac_clean_files 2485ac_clean_files="$ac_clean_files a.out a.exe b.out" 2486# Try to create an executable without -o first, disregard a.out. 2487# It will help us diagnose broken compilers, and finding out an intuition 2488# of exeext. 2489echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2490echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2491ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2492if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2493 (eval $ac_link_default) 2>&5 2494 ac_status=$? 2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2496 (exit $ac_status); }; then 2497 # Find the output, starting from the most likely. This scheme is 2498# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2499# resort. 2500 2501# Be careful to initialize this variable, since it used to be cached. 2502# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2503ac_cv_exeext= 2504# b.out is created by i960 compilers. 2505for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2506do 2507 test -f "$ac_file" || continue 2508 case $ac_file in 2509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2510 ;; 2511 conftest.$ac_ext ) 2512 # This is the source file. 2513 ;; 2514 [ab].out ) 2515 # We found the default executable, but exeext='' is most 2516 # certainly right. 2517 break;; 2518 *.* ) 2519 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2520 # FIXME: I believe we export ac_cv_exeext for Libtool, 2521 # but it would be cool to find out if it's true. Does anybody 2522 # maintain Libtool? --akim. 2523 export ac_cv_exeext 2524 break;; 2525 * ) 2526 break;; 2527 esac 2528done 2529else 2530 echo "$as_me: failed program was:" >&5 2531sed 's/^/| /' conftest.$ac_ext >&5 2532 2533{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2534See \`config.log' for more details." >&5 2535echo "$as_me: error: C compiler cannot create executables 2536See \`config.log' for more details." >&2;} 2537 { (exit 77); exit 77; }; } 2538fi 2539 2540ac_exeext=$ac_cv_exeext 2541echo "$as_me:$LINENO: result: $ac_file" >&5 2542echo "${ECHO_T}$ac_file" >&6 2543 2544# Check the compiler produces executables we can run. If not, either 2545# the compiler is broken, or we cross compile. 2546echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2547echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2548# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2549# If not cross compiling, check that we can run a simple program. 2550if test "$cross_compiling" != yes; then 2551 if { ac_try='./$ac_file' 2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2553 (eval $ac_try) 2>&5 2554 ac_status=$? 2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2556 (exit $ac_status); }; }; then 2557 cross_compiling=no 2558 else 2559 if test "$cross_compiling" = maybe; then 2560 cross_compiling=yes 2561 else 2562 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2563If you meant to cross compile, use \`--host'. 2564See \`config.log' for more details." >&5 2565echo "$as_me: error: cannot run C compiled programs. 2566If you meant to cross compile, use \`--host'. 2567See \`config.log' for more details." >&2;} 2568 { (exit 1); exit 1; }; } 2569 fi 2570 fi 2571fi 2572echo "$as_me:$LINENO: result: yes" >&5 2573echo "${ECHO_T}yes" >&6 2574 2575rm -f a.out a.exe conftest$ac_cv_exeext b.out 2576ac_clean_files=$ac_clean_files_save 2577# Check the compiler produces executables we can run. If not, either 2578# the compiler is broken, or we cross compile. 2579echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2580echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2581echo "$as_me:$LINENO: result: $cross_compiling" >&5 2582echo "${ECHO_T}$cross_compiling" >&6 2583 2584echo "$as_me:$LINENO: checking for suffix of executables" >&5 2585echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2587 (eval $ac_link) 2>&5 2588 ac_status=$? 2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2590 (exit $ac_status); }; then 2591 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2592# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2593# work properly (i.e., refer to `conftest.exe'), while it won't with 2594# `rm'. 2595for ac_file in conftest.exe conftest conftest.*; do 2596 test -f "$ac_file" || continue 2597 case $ac_file in 2598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2599 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2600 export ac_cv_exeext 2601 break;; 2602 * ) break;; 2603 esac 2604done 2605else 2606 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2607See \`config.log' for more details." >&5 2608echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2609See \`config.log' for more details." >&2;} 2610 { (exit 1); exit 1; }; } 2611fi 2612 2613rm -f conftest$ac_cv_exeext 2614echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2615echo "${ECHO_T}$ac_cv_exeext" >&6 2616 2617rm -f conftest.$ac_ext 2618EXEEXT=$ac_cv_exeext 2619ac_exeext=$EXEEXT 2620echo "$as_me:$LINENO: checking for suffix of object files" >&5 2621echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2622if test "${ac_cv_objext+set}" = set; then 2623 echo $ECHO_N "(cached) $ECHO_C" >&6 2624else 2625 cat >conftest.$ac_ext <<_ACEOF 2626/* confdefs.h. */ 2627_ACEOF 2628cat confdefs.h >>conftest.$ac_ext 2629cat >>conftest.$ac_ext <<_ACEOF 2630/* end confdefs.h. */ 2631 2632int 2633main () 2634{ 2635 2636 ; 2637 return 0; 2638} 2639_ACEOF 2640rm -f conftest.o conftest.obj 2641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2642 (eval $ac_compile) 2>&5 2643 ac_status=$? 2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2645 (exit $ac_status); }; then 2646 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2647 case $ac_file in 2648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2649 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2650 break;; 2651 esac 2652done 2653else 2654 echo "$as_me: failed program was:" >&5 2655sed 's/^/| /' conftest.$ac_ext >&5 2656 2657{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2658See \`config.log' for more details." >&5 2659echo "$as_me: error: cannot compute suffix of object files: cannot compile 2660See \`config.log' for more details." >&2;} 2661 { (exit 1); exit 1; }; } 2662fi 2663 2664rm -f conftest.$ac_cv_objext conftest.$ac_ext 2665fi 2666echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2667echo "${ECHO_T}$ac_cv_objext" >&6 2668OBJEXT=$ac_cv_objext 2669ac_objext=$OBJEXT 2670echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2671echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2672if test "${ac_cv_c_compiler_gnu+set}" = set; then 2673 echo $ECHO_N "(cached) $ECHO_C" >&6 2674else 2675 cat >conftest.$ac_ext <<_ACEOF 2676/* confdefs.h. */ 2677_ACEOF 2678cat confdefs.h >>conftest.$ac_ext 2679cat >>conftest.$ac_ext <<_ACEOF 2680/* end confdefs.h. */ 2681 2682int 2683main () 2684{ 2685#ifndef __GNUC__ 2686 choke me 2687#endif 2688 2689 ; 2690 return 0; 2691} 2692_ACEOF 2693rm -f conftest.$ac_objext 2694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2695 (eval $ac_compile) 2>conftest.er1 2696 ac_status=$? 2697 grep -v '^ *+' conftest.er1 >conftest.err 2698 rm -f conftest.er1 2699 cat conftest.err >&5 2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2701 (exit $ac_status); } && 2702 { ac_try='test -z "$ac_c_werror_flag" 2703 || test ! -s conftest.err' 2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2705 (eval $ac_try) 2>&5 2706 ac_status=$? 2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2708 (exit $ac_status); }; } && 2709 { ac_try='test -s conftest.$ac_objext' 2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2711 (eval $ac_try) 2>&5 2712 ac_status=$? 2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2714 (exit $ac_status); }; }; then 2715 ac_compiler_gnu=yes 2716else 2717 echo "$as_me: failed program was:" >&5 2718sed 's/^/| /' conftest.$ac_ext >&5 2719 2720ac_compiler_gnu=no 2721fi 2722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2723ac_cv_c_compiler_gnu=$ac_compiler_gnu 2724 2725fi 2726echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2727echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2728GCC=`test $ac_compiler_gnu = yes && echo yes` 2729ac_test_CFLAGS=${CFLAGS+set} 2730ac_save_CFLAGS=$CFLAGS 2731CFLAGS="-g" 2732echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2733echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2734if test "${ac_cv_prog_cc_g+set}" = set; then 2735 echo $ECHO_N "(cached) $ECHO_C" >&6 2736else 2737 cat >conftest.$ac_ext <<_ACEOF 2738/* confdefs.h. */ 2739_ACEOF 2740cat confdefs.h >>conftest.$ac_ext 2741cat >>conftest.$ac_ext <<_ACEOF 2742/* end confdefs.h. */ 2743 2744int 2745main () 2746{ 2747 2748 ; 2749 return 0; 2750} 2751_ACEOF 2752rm -f conftest.$ac_objext 2753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2754 (eval $ac_compile) 2>conftest.er1 2755 ac_status=$? 2756 grep -v '^ *+' conftest.er1 >conftest.err 2757 rm -f conftest.er1 2758 cat conftest.err >&5 2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2760 (exit $ac_status); } && 2761 { ac_try='test -z "$ac_c_werror_flag" 2762 || test ! -s conftest.err' 2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2764 (eval $ac_try) 2>&5 2765 ac_status=$? 2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2767 (exit $ac_status); }; } && 2768 { ac_try='test -s conftest.$ac_objext' 2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2770 (eval $ac_try) 2>&5 2771 ac_status=$? 2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2773 (exit $ac_status); }; }; then 2774 ac_cv_prog_cc_g=yes 2775else 2776 echo "$as_me: failed program was:" >&5 2777sed 's/^/| /' conftest.$ac_ext >&5 2778 2779ac_cv_prog_cc_g=no 2780fi 2781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2782fi 2783echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2784echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2785if test "$ac_test_CFLAGS" = set; then 2786 CFLAGS=$ac_save_CFLAGS 2787elif test $ac_cv_prog_cc_g = yes; then 2788 if test "$GCC" = yes; then 2789 CFLAGS="-g -O2" 2790 else 2791 CFLAGS="-g" 2792 fi 2793else 2794 if test "$GCC" = yes; then 2795 CFLAGS="-O2" 2796 else 2797 CFLAGS= 2798 fi 2799fi 2800echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2801echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2802if test "${ac_cv_prog_cc_stdc+set}" = set; then 2803 echo $ECHO_N "(cached) $ECHO_C" >&6 2804else 2805 ac_cv_prog_cc_stdc=no 2806ac_save_CC=$CC 2807cat >conftest.$ac_ext <<_ACEOF 2808/* confdefs.h. */ 2809_ACEOF 2810cat confdefs.h >>conftest.$ac_ext 2811cat >>conftest.$ac_ext <<_ACEOF 2812/* end confdefs.h. */ 2813#include <stdarg.h> 2814#include <stdio.h> 2815#include <sys/types.h> 2816#include <sys/stat.h> 2817/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2818struct buf { int x; }; 2819FILE * (*rcsopen) (struct buf *, struct stat *, int); 2820static char *e (p, i) 2821 char **p; 2822 int i; 2823{ 2824 return p[i]; 2825} 2826static char *f (char * (*g) (char **, int), char **p, ...) 2827{ 2828 char *s; 2829 va_list v; 2830 va_start (v,p); 2831 s = g (p, va_arg (v,int)); 2832 va_end (v); 2833 return s; 2834} 2835 2836/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2837 function prototypes and stuff, but not '\xHH' hex character constants. 2838 These don't provoke an error unfortunately, instead are silently treated 2839 as 'x'. The following induces an error, until -std1 is added to get 2840 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2841 array size at least. It's necessary to write '\x00'==0 to get something 2842 that's true only with -std1. */ 2843int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2844 2845int test (int i, double x); 2846struct s1 {int (*f) (int a);}; 2847struct s2 {int (*f) (double a);}; 2848int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2849int argc; 2850char **argv; 2851int 2852main () 2853{ 2854return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2855 ; 2856 return 0; 2857} 2858_ACEOF 2859# Don't try gcc -ansi; that turns off useful extensions and 2860# breaks some systems' header files. 2861# AIX -qlanglvl=ansi 2862# Ultrix and OSF/1 -std1 2863# HP-UX 10.20 and later -Ae 2864# HP-UX older versions -Aa -D_HPUX_SOURCE 2865# SVR4 -Xc -D__EXTENSIONS__ 2866for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2867do 2868 CC="$ac_save_CC $ac_arg" 2869 rm -f conftest.$ac_objext 2870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2871 (eval $ac_compile) 2>conftest.er1 2872 ac_status=$? 2873 grep -v '^ *+' conftest.er1 >conftest.err 2874 rm -f conftest.er1 2875 cat conftest.err >&5 2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2877 (exit $ac_status); } && 2878 { ac_try='test -z "$ac_c_werror_flag" 2879 || test ! -s conftest.err' 2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2881 (eval $ac_try) 2>&5 2882 ac_status=$? 2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2884 (exit $ac_status); }; } && 2885 { ac_try='test -s conftest.$ac_objext' 2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2887 (eval $ac_try) 2>&5 2888 ac_status=$? 2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2890 (exit $ac_status); }; }; then 2891 ac_cv_prog_cc_stdc=$ac_arg 2892break 2893else 2894 echo "$as_me: failed program was:" >&5 2895sed 's/^/| /' conftest.$ac_ext >&5 2896 2897fi 2898rm -f conftest.err conftest.$ac_objext 2899done 2900rm -f conftest.$ac_ext conftest.$ac_objext 2901CC=$ac_save_CC 2902 2903fi 2904 2905case "x$ac_cv_prog_cc_stdc" in 2906 x|xno) 2907 echo "$as_me:$LINENO: result: none needed" >&5 2908echo "${ECHO_T}none needed" >&6 ;; 2909 *) 2910 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2911echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2912 CC="$CC $ac_cv_prog_cc_stdc" ;; 2913esac 2914 2915# Some people use a C++ compiler to compile C. Since we use `exit', 2916# in C++ we need to declare it. In case someone uses the same compiler 2917# for both compiling C and C++ we need to have the C++ compiler decide 2918# the declaration of exit, since it's the most demanding environment. 2919cat >conftest.$ac_ext <<_ACEOF 2920#ifndef __cplusplus 2921 choke me 2922#endif 2923_ACEOF 2924rm -f conftest.$ac_objext 2925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2926 (eval $ac_compile) 2>conftest.er1 2927 ac_status=$? 2928 grep -v '^ *+' conftest.er1 >conftest.err 2929 rm -f conftest.er1 2930 cat conftest.err >&5 2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2932 (exit $ac_status); } && 2933 { ac_try='test -z "$ac_c_werror_flag" 2934 || test ! -s conftest.err' 2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2936 (eval $ac_try) 2>&5 2937 ac_status=$? 2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2939 (exit $ac_status); }; } && 2940 { ac_try='test -s conftest.$ac_objext' 2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2942 (eval $ac_try) 2>&5 2943 ac_status=$? 2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); }; }; then 2946 for ac_declaration in \ 2947 '' \ 2948 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2949 'extern "C" void std::exit (int); using std::exit;' \ 2950 'extern "C" void exit (int) throw ();' \ 2951 'extern "C" void exit (int);' \ 2952 'void exit (int);' 2953do 2954 cat >conftest.$ac_ext <<_ACEOF 2955/* confdefs.h. */ 2956_ACEOF 2957cat confdefs.h >>conftest.$ac_ext 2958cat >>conftest.$ac_ext <<_ACEOF 2959/* end confdefs.h. */ 2960$ac_declaration 2961#include <stdlib.h> 2962int 2963main () 2964{ 2965exit (42); 2966 ; 2967 return 0; 2968} 2969_ACEOF 2970rm -f conftest.$ac_objext 2971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2972 (eval $ac_compile) 2>conftest.er1 2973 ac_status=$? 2974 grep -v '^ *+' conftest.er1 >conftest.err 2975 rm -f conftest.er1 2976 cat conftest.err >&5 2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2978 (exit $ac_status); } && 2979 { ac_try='test -z "$ac_c_werror_flag" 2980 || test ! -s conftest.err' 2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2982 (eval $ac_try) 2>&5 2983 ac_status=$? 2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2985 (exit $ac_status); }; } && 2986 { ac_try='test -s conftest.$ac_objext' 2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2988 (eval $ac_try) 2>&5 2989 ac_status=$? 2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2991 (exit $ac_status); }; }; then 2992 : 2993else 2994 echo "$as_me: failed program was:" >&5 2995sed 's/^/| /' conftest.$ac_ext >&5 2996 2997continue 2998fi 2999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3000 cat >conftest.$ac_ext <<_ACEOF 3001/* confdefs.h. */ 3002_ACEOF 3003cat confdefs.h >>conftest.$ac_ext 3004cat >>conftest.$ac_ext <<_ACEOF 3005/* end confdefs.h. */ 3006$ac_declaration 3007int 3008main () 3009{ 3010exit (42); 3011 ; 3012 return 0; 3013} 3014_ACEOF 3015rm -f conftest.$ac_objext 3016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3017 (eval $ac_compile) 2>conftest.er1 3018 ac_status=$? 3019 grep -v '^ *+' conftest.er1 >conftest.err 3020 rm -f conftest.er1 3021 cat conftest.err >&5 3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3023 (exit $ac_status); } && 3024 { ac_try='test -z "$ac_c_werror_flag" 3025 || test ! -s conftest.err' 3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3027 (eval $ac_try) 2>&5 3028 ac_status=$? 3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3030 (exit $ac_status); }; } && 3031 { ac_try='test -s conftest.$ac_objext' 3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3033 (eval $ac_try) 2>&5 3034 ac_status=$? 3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3036 (exit $ac_status); }; }; then 3037 break 3038else 3039 echo "$as_me: failed program was:" >&5 3040sed 's/^/| /' conftest.$ac_ext >&5 3041 3042fi 3043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3044done 3045rm -f conftest* 3046if test -n "$ac_declaration"; then 3047 echo '#ifdef __cplusplus' >>confdefs.h 3048 echo $ac_declaration >>confdefs.h 3049 echo '#endif' >>confdefs.h 3050fi 3051 3052else 3053 echo "$as_me: failed program was:" >&5 3054sed 's/^/| /' conftest.$ac_ext >&5 3055 3056fi 3057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3058ac_ext=c 3059ac_cpp='$CPP $CPPFLAGS' 3060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3062ac_compiler_gnu=$ac_cv_c_compiler_gnu 3063 3064depcc="$CC" am_compiler_list= 3065 3066echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3067echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3068if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3069 echo $ECHO_N "(cached) $ECHO_C" >&6 3070else 3071 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3072 # We make a subdir and do the tests there. Otherwise we can end up 3073 # making bogus files that we don't know about and never remove. For 3074 # instance it was reported that on HP-UX the gcc test will end up 3075 # making a dummy file named `D' -- because `-MD' means `put the output 3076 # in D'. 3077 mkdir conftest.dir 3078 # Copy depcomp to subdir because otherwise we won't find it if we're 3079 # using a relative directory. 3080 cp "$am_depcomp" conftest.dir 3081 cd conftest.dir 3082 # We will build objects and dependencies in a subdirectory because 3083 # it helps to detect inapplicable dependency modes. For instance 3084 # both Tru64's cc and ICC support -MD to output dependencies as a 3085 # side effect of compilation, but ICC will put the dependencies in 3086 # the current directory while Tru64 will put them in the object 3087 # directory. 3088 mkdir sub 3089 3090 am_cv_CC_dependencies_compiler_type=none 3091 if test "$am_compiler_list" = ""; then 3092 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3093 fi 3094 for depmode in $am_compiler_list; do 3095 # Setup a source with many dependencies, because some compilers 3096 # like to wrap large dependency lists on column 80 (with \), and 3097 # we should not choose a depcomp mode which is confused by this. 3098 # 3099 # We need to recreate these files for each test, as the compiler may 3100 # overwrite some of them when testing with obscure command lines. 3101 # This happens at least with the AIX C compiler. 3102 : > sub/conftest.c 3103 for i in 1 2 3 4 5 6; do 3104 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3105 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3106 # Solaris 8's {/usr,}/bin/sh. 3107 touch sub/conftst$i.h 3108 done 3109 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3110 3111 case $depmode in 3112 nosideeffect) 3113 # after this tag, mechanisms are not by side-effect, so they'll 3114 # only be used when explicitly requested 3115 if test "x$enable_dependency_tracking" = xyes; then 3116 continue 3117 else 3118 break 3119 fi 3120 ;; 3121 none) break ;; 3122 esac 3123 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3124 # mode. It turns out that the SunPro C++ compiler does not properly 3125 # handle `-M -o', and we need to detect this. 3126 if depmode=$depmode \ 3127 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3128 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3129 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3130 >/dev/null 2>conftest.err && 3131 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3132 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3133 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3134 # icc doesn't choke on unknown options, it will just issue warnings 3135 # or remarks (even with -Werror). So we grep stderr for any message 3136 # that says an option was ignored or not supported. 3137 # When given -MP, icc 7.0 and 7.1 complain thusly: 3138 # icc: Command line warning: ignoring option '-M'; no argument required 3139 # The diagnosis changed in icc 8.0: 3140 # icc: Command line remark: option '-MP' not supported 3141 if (grep 'ignoring option' conftest.err || 3142 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3143 am_cv_CC_dependencies_compiler_type=$depmode 3144 break 3145 fi 3146 fi 3147 done 3148 3149 cd .. 3150 rm -rf conftest.dir 3151else 3152 am_cv_CC_dependencies_compiler_type=none 3153fi 3154 3155fi 3156echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3157echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3158CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3159 3160 3161 3162if 3163 test "x$enable_dependency_tracking" != xno \ 3164 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3165 am__fastdepCC_TRUE= 3166 am__fastdepCC_FALSE='#' 3167else 3168 am__fastdepCC_TRUE='#' 3169 am__fastdepCC_FALSE= 3170fi 3171 3172 3173 3174echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3175echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3176if test "${ac_cv_c_const+set}" = set; then 3177 echo $ECHO_N "(cached) $ECHO_C" >&6 3178else 3179 cat >conftest.$ac_ext <<_ACEOF 3180/* confdefs.h. */ 3181_ACEOF 3182cat confdefs.h >>conftest.$ac_ext 3183cat >>conftest.$ac_ext <<_ACEOF 3184/* end confdefs.h. */ 3185 3186int 3187main () 3188{ 3189/* FIXME: Include the comments suggested by Paul. */ 3190#ifndef __cplusplus 3191 /* Ultrix mips cc rejects this. */ 3192 typedef int charset[2]; 3193 const charset x; 3194 /* SunOS 4.1.1 cc rejects this. */ 3195 char const *const *ccp; 3196 char **p; 3197 /* NEC SVR4.0.2 mips cc rejects this. */ 3198 struct point {int x, y;}; 3199 static struct point const zero = {0,0}; 3200 /* AIX XL C 1.02.0.0 rejects this. 3201 It does not let you subtract one const X* pointer from another in 3202 an arm of an if-expression whose if-part is not a constant 3203 expression */ 3204 const char *g = "string"; 3205 ccp = &g + (g ? g-g : 0); 3206 /* HPUX 7.0 cc rejects these. */ 3207 ++ccp; 3208 p = (char**) ccp; 3209 ccp = (char const *const *) p; 3210 { /* SCO 3.2v4 cc rejects this. */ 3211 char *t; 3212 char const *s = 0 ? (char *) 0 : (char const *) 0; 3213 3214 *t++ = 0; 3215 } 3216 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3217 int x[] = {25, 17}; 3218 const int *foo = &x[0]; 3219 ++foo; 3220 } 3221 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3222 typedef const int *iptr; 3223 iptr p = 0; 3224 ++p; 3225 } 3226 { /* AIX XL C 1.02.0.0 rejects this saying 3227 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3228 struct s { int j; const int *ap[3]; }; 3229 struct s *b; b->j = 5; 3230 } 3231 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3232 const int foo = 10; 3233 } 3234#endif 3235 3236 ; 3237 return 0; 3238} 3239_ACEOF 3240rm -f conftest.$ac_objext 3241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3242 (eval $ac_compile) 2>conftest.er1 3243 ac_status=$? 3244 grep -v '^ *+' conftest.er1 >conftest.err 3245 rm -f conftest.er1 3246 cat conftest.err >&5 3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3248 (exit $ac_status); } && 3249 { ac_try='test -z "$ac_c_werror_flag" 3250 || test ! -s conftest.err' 3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3252 (eval $ac_try) 2>&5 3253 ac_status=$? 3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3255 (exit $ac_status); }; } && 3256 { ac_try='test -s conftest.$ac_objext' 3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3258 (eval $ac_try) 2>&5 3259 ac_status=$? 3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3261 (exit $ac_status); }; }; then 3262 ac_cv_c_const=yes 3263else 3264 echo "$as_me: failed program was:" >&5 3265sed 's/^/| /' conftest.$ac_ext >&5 3266 3267ac_cv_c_const=no 3268fi 3269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3270fi 3271echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3272echo "${ECHO_T}$ac_cv_c_const" >&6 3273if test $ac_cv_c_const = no; then 3274 3275cat >>confdefs.h <<\_ACEOF 3276#define const 3277_ACEOF 3278 3279fi 3280 3281 3282ac_ext=c 3283ac_cpp='$CPP $CPPFLAGS' 3284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3286ac_compiler_gnu=$ac_cv_c_compiler_gnu 3287if test -n "$ac_tool_prefix"; then 3288 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3289set dummy ${ac_tool_prefix}gcc; ac_word=$2 3290echo "$as_me:$LINENO: checking for $ac_word" >&5 3291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3292if test "${ac_cv_prog_CC+set}" = set; then 3293 echo $ECHO_N "(cached) $ECHO_C" >&6 3294else 3295 if test -n "$CC"; then 3296 ac_cv_prog_CC="$CC" # Let the user override the test. 3297else 3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3299for as_dir in $PATH 3300do 3301 IFS=$as_save_IFS 3302 test -z "$as_dir" && as_dir=. 3303 for ac_exec_ext in '' $ac_executable_extensions; do 3304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3305 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3307 break 2 3308 fi 3309done 3310done 3311 3312fi 3313fi 3314CC=$ac_cv_prog_CC 3315if test -n "$CC"; then 3316 echo "$as_me:$LINENO: result: $CC" >&5 3317echo "${ECHO_T}$CC" >&6 3318else 3319 echo "$as_me:$LINENO: result: no" >&5 3320echo "${ECHO_T}no" >&6 3321fi 3322 3323fi 3324if test -z "$ac_cv_prog_CC"; then 3325 ac_ct_CC=$CC 3326 # Extract the first word of "gcc", so it can be a program name with args. 3327set dummy gcc; ac_word=$2 3328echo "$as_me:$LINENO: checking for $ac_word" >&5 3329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3330if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3331 echo $ECHO_N "(cached) $ECHO_C" >&6 3332else 3333 if test -n "$ac_ct_CC"; then 3334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3335else 3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3337for as_dir in $PATH 3338do 3339 IFS=$as_save_IFS 3340 test -z "$as_dir" && as_dir=. 3341 for ac_exec_ext in '' $ac_executable_extensions; do 3342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3343 ac_cv_prog_ac_ct_CC="gcc" 3344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3345 break 2 3346 fi 3347done 3348done 3349 3350fi 3351fi 3352ac_ct_CC=$ac_cv_prog_ac_ct_CC 3353if test -n "$ac_ct_CC"; then 3354 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3355echo "${ECHO_T}$ac_ct_CC" >&6 3356else 3357 echo "$as_me:$LINENO: result: no" >&5 3358echo "${ECHO_T}no" >&6 3359fi 3360 3361 CC=$ac_ct_CC 3362else 3363 CC="$ac_cv_prog_CC" 3364fi 3365 3366if test -z "$CC"; then 3367 if test -n "$ac_tool_prefix"; then 3368 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3369set dummy ${ac_tool_prefix}cc; ac_word=$2 3370echo "$as_me:$LINENO: checking for $ac_word" >&5 3371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3372if test "${ac_cv_prog_CC+set}" = set; then 3373 echo $ECHO_N "(cached) $ECHO_C" >&6 3374else 3375 if test -n "$CC"; then 3376 ac_cv_prog_CC="$CC" # Let the user override the test. 3377else 3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3379for as_dir in $PATH 3380do 3381 IFS=$as_save_IFS 3382 test -z "$as_dir" && as_dir=. 3383 for ac_exec_ext in '' $ac_executable_extensions; do 3384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3385 ac_cv_prog_CC="${ac_tool_prefix}cc" 3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3387 break 2 3388 fi 3389done 3390done 3391 3392fi 3393fi 3394CC=$ac_cv_prog_CC 3395if test -n "$CC"; then 3396 echo "$as_me:$LINENO: result: $CC" >&5 3397echo "${ECHO_T}$CC" >&6 3398else 3399 echo "$as_me:$LINENO: result: no" >&5 3400echo "${ECHO_T}no" >&6 3401fi 3402 3403fi 3404if test -z "$ac_cv_prog_CC"; then 3405 ac_ct_CC=$CC 3406 # Extract the first word of "cc", so it can be a program name with args. 3407set dummy cc; ac_word=$2 3408echo "$as_me:$LINENO: checking for $ac_word" >&5 3409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3410if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3411 echo $ECHO_N "(cached) $ECHO_C" >&6 3412else 3413 if test -n "$ac_ct_CC"; then 3414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3415else 3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3417for as_dir in $PATH 3418do 3419 IFS=$as_save_IFS 3420 test -z "$as_dir" && as_dir=. 3421 for ac_exec_ext in '' $ac_executable_extensions; do 3422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3423 ac_cv_prog_ac_ct_CC="cc" 3424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3425 break 2 3426 fi 3427done 3428done 3429 3430fi 3431fi 3432ac_ct_CC=$ac_cv_prog_ac_ct_CC 3433if test -n "$ac_ct_CC"; then 3434 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3435echo "${ECHO_T}$ac_ct_CC" >&6 3436else 3437 echo "$as_me:$LINENO: result: no" >&5 3438echo "${ECHO_T}no" >&6 3439fi 3440 3441 CC=$ac_ct_CC 3442else 3443 CC="$ac_cv_prog_CC" 3444fi 3445 3446fi 3447if test -z "$CC"; then 3448 # Extract the first word of "cc", so it can be a program name with args. 3449set dummy cc; ac_word=$2 3450echo "$as_me:$LINENO: checking for $ac_word" >&5 3451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3452if test "${ac_cv_prog_CC+set}" = set; then 3453 echo $ECHO_N "(cached) $ECHO_C" >&6 3454else 3455 if test -n "$CC"; then 3456 ac_cv_prog_CC="$CC" # Let the user override the test. 3457else 3458 ac_prog_rejected=no 3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3460for as_dir in $PATH 3461do 3462 IFS=$as_save_IFS 3463 test -z "$as_dir" && as_dir=. 3464 for ac_exec_ext in '' $ac_executable_extensions; do 3465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3467 ac_prog_rejected=yes 3468 continue 3469 fi 3470 ac_cv_prog_CC="cc" 3471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3472 break 2 3473 fi 3474done 3475done 3476 3477if test $ac_prog_rejected = yes; then 3478 # We found a bogon in the path, so make sure we never use it. 3479 set dummy $ac_cv_prog_CC 3480 shift 3481 if test $# != 0; then 3482 # We chose a different compiler from the bogus one. 3483 # However, it has the same basename, so the bogon will be chosen 3484 # first if we set CC to just the basename; use the full file name. 3485 shift 3486 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3487 fi 3488fi 3489fi 3490fi 3491CC=$ac_cv_prog_CC 3492if test -n "$CC"; then 3493 echo "$as_me:$LINENO: result: $CC" >&5 3494echo "${ECHO_T}$CC" >&6 3495else 3496 echo "$as_me:$LINENO: result: no" >&5 3497echo "${ECHO_T}no" >&6 3498fi 3499 3500fi 3501if test -z "$CC"; then 3502 if test -n "$ac_tool_prefix"; then 3503 for ac_prog in cl 3504 do 3505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3506set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3507echo "$as_me:$LINENO: checking for $ac_word" >&5 3508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3509if test "${ac_cv_prog_CC+set}" = set; then 3510 echo $ECHO_N "(cached) $ECHO_C" >&6 3511else 3512 if test -n "$CC"; then 3513 ac_cv_prog_CC="$CC" # Let the user override the test. 3514else 3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3516for as_dir in $PATH 3517do 3518 IFS=$as_save_IFS 3519 test -z "$as_dir" && as_dir=. 3520 for ac_exec_ext in '' $ac_executable_extensions; do 3521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3522 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3524 break 2 3525 fi 3526done 3527done 3528 3529fi 3530fi 3531CC=$ac_cv_prog_CC 3532if test -n "$CC"; then 3533 echo "$as_me:$LINENO: result: $CC" >&5 3534echo "${ECHO_T}$CC" >&6 3535else 3536 echo "$as_me:$LINENO: result: no" >&5 3537echo "${ECHO_T}no" >&6 3538fi 3539 3540 test -n "$CC" && break 3541 done 3542fi 3543if test -z "$CC"; then 3544 ac_ct_CC=$CC 3545 for ac_prog in cl 3546do 3547 # Extract the first word of "$ac_prog", so it can be a program name with args. 3548set dummy $ac_prog; ac_word=$2 3549echo "$as_me:$LINENO: checking for $ac_word" >&5 3550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3551if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3552 echo $ECHO_N "(cached) $ECHO_C" >&6 3553else 3554 if test -n "$ac_ct_CC"; then 3555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3556else 3557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3558for as_dir in $PATH 3559do 3560 IFS=$as_save_IFS 3561 test -z "$as_dir" && as_dir=. 3562 for ac_exec_ext in '' $ac_executable_extensions; do 3563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3564 ac_cv_prog_ac_ct_CC="$ac_prog" 3565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3566 break 2 3567 fi 3568done 3569done 3570 3571fi 3572fi 3573ac_ct_CC=$ac_cv_prog_ac_ct_CC 3574if test -n "$ac_ct_CC"; then 3575 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3576echo "${ECHO_T}$ac_ct_CC" >&6 3577else 3578 echo "$as_me:$LINENO: result: no" >&5 3579echo "${ECHO_T}no" >&6 3580fi 3581 3582 test -n "$ac_ct_CC" && break 3583done 3584 3585 CC=$ac_ct_CC 3586fi 3587 3588fi 3589 3590 3591test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3592See \`config.log' for more details." >&5 3593echo "$as_me: error: no acceptable C compiler found in \$PATH 3594See \`config.log' for more details." >&2;} 3595 { (exit 1); exit 1; }; } 3596 3597# Provide some information about the compiler. 3598echo "$as_me:$LINENO:" \ 3599 "checking for C compiler version" >&5 3600ac_compiler=`set X $ac_compile; echo $2` 3601{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3602 (eval $ac_compiler --version </dev/null >&5) 2>&5 3603 ac_status=$? 3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3605 (exit $ac_status); } 3606{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3607 (eval $ac_compiler -v </dev/null >&5) 2>&5 3608 ac_status=$? 3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3610 (exit $ac_status); } 3611{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3612 (eval $ac_compiler -V </dev/null >&5) 2>&5 3613 ac_status=$? 3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3615 (exit $ac_status); } 3616 3617echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3618echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 3619if test "${ac_cv_c_compiler_gnu+set}" = set; then 3620 echo $ECHO_N "(cached) $ECHO_C" >&6 3621else 3622 cat >conftest.$ac_ext <<_ACEOF 3623/* confdefs.h. */ 3624_ACEOF 3625cat confdefs.h >>conftest.$ac_ext 3626cat >>conftest.$ac_ext <<_ACEOF 3627/* end confdefs.h. */ 3628 3629int 3630main () 3631{ 3632#ifndef __GNUC__ 3633 choke me 3634#endif 3635 3636 ; 3637 return 0; 3638} 3639_ACEOF 3640rm -f conftest.$ac_objext 3641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3642 (eval $ac_compile) 2>conftest.er1 3643 ac_status=$? 3644 grep -v '^ *+' conftest.er1 >conftest.err 3645 rm -f conftest.er1 3646 cat conftest.err >&5 3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3648 (exit $ac_status); } && 3649 { ac_try='test -z "$ac_c_werror_flag" 3650 || test ! -s conftest.err' 3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3652 (eval $ac_try) 2>&5 3653 ac_status=$? 3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3655 (exit $ac_status); }; } && 3656 { ac_try='test -s conftest.$ac_objext' 3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3658 (eval $ac_try) 2>&5 3659 ac_status=$? 3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3661 (exit $ac_status); }; }; then 3662 ac_compiler_gnu=yes 3663else 3664 echo "$as_me: failed program was:" >&5 3665sed 's/^/| /' conftest.$ac_ext >&5 3666 3667ac_compiler_gnu=no 3668fi 3669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3670ac_cv_c_compiler_gnu=$ac_compiler_gnu 3671 3672fi 3673echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3674echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 3675GCC=`test $ac_compiler_gnu = yes && echo yes` 3676ac_test_CFLAGS=${CFLAGS+set} 3677ac_save_CFLAGS=$CFLAGS 3678CFLAGS="-g" 3679echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3680echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 3681if test "${ac_cv_prog_cc_g+set}" = set; then 3682 echo $ECHO_N "(cached) $ECHO_C" >&6 3683else 3684 cat >conftest.$ac_ext <<_ACEOF 3685/* confdefs.h. */ 3686_ACEOF 3687cat confdefs.h >>conftest.$ac_ext 3688cat >>conftest.$ac_ext <<_ACEOF 3689/* end confdefs.h. */ 3690 3691int 3692main () 3693{ 3694 3695 ; 3696 return 0; 3697} 3698_ACEOF 3699rm -f conftest.$ac_objext 3700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3701 (eval $ac_compile) 2>conftest.er1 3702 ac_status=$? 3703 grep -v '^ *+' conftest.er1 >conftest.err 3704 rm -f conftest.er1 3705 cat conftest.err >&5 3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3707 (exit $ac_status); } && 3708 { ac_try='test -z "$ac_c_werror_flag" 3709 || test ! -s conftest.err' 3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3711 (eval $ac_try) 2>&5 3712 ac_status=$? 3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3714 (exit $ac_status); }; } && 3715 { ac_try='test -s conftest.$ac_objext' 3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3717 (eval $ac_try) 2>&5 3718 ac_status=$? 3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3720 (exit $ac_status); }; }; then 3721 ac_cv_prog_cc_g=yes 3722else 3723 echo "$as_me: failed program was:" >&5 3724sed 's/^/| /' conftest.$ac_ext >&5 3725 3726ac_cv_prog_cc_g=no 3727fi 3728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3729fi 3730echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3731echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3732if test "$ac_test_CFLAGS" = set; then 3733 CFLAGS=$ac_save_CFLAGS 3734elif test $ac_cv_prog_cc_g = yes; then 3735 if test "$GCC" = yes; then 3736 CFLAGS="-g -O2" 3737 else 3738 CFLAGS="-g" 3739 fi 3740else 3741 if test "$GCC" = yes; then 3742 CFLAGS="-O2" 3743 else 3744 CFLAGS= 3745 fi 3746fi 3747echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 3748echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 3749if test "${ac_cv_prog_cc_stdc+set}" = set; then 3750 echo $ECHO_N "(cached) $ECHO_C" >&6 3751else 3752 ac_cv_prog_cc_stdc=no 3753ac_save_CC=$CC 3754cat >conftest.$ac_ext <<_ACEOF 3755/* confdefs.h. */ 3756_ACEOF 3757cat confdefs.h >>conftest.$ac_ext 3758cat >>conftest.$ac_ext <<_ACEOF 3759/* end confdefs.h. */ 3760#include <stdarg.h> 3761#include <stdio.h> 3762#include <sys/types.h> 3763#include <sys/stat.h> 3764/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3765struct buf { int x; }; 3766FILE * (*rcsopen) (struct buf *, struct stat *, int); 3767static char *e (p, i) 3768 char **p; 3769 int i; 3770{ 3771 return p[i]; 3772} 3773static char *f (char * (*g) (char **, int), char **p, ...) 3774{ 3775 char *s; 3776 va_list v; 3777 va_start (v,p); 3778 s = g (p, va_arg (v,int)); 3779 va_end (v); 3780 return s; 3781} 3782 3783/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3784 function prototypes and stuff, but not '\xHH' hex character constants. 3785 These don't provoke an error unfortunately, instead are silently treated 3786 as 'x'. The following induces an error, until -std1 is added to get 3787 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3788 array size at least. It's necessary to write '\x00'==0 to get something 3789 that's true only with -std1. */ 3790int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3791 3792int test (int i, double x); 3793struct s1 {int (*f) (int a);}; 3794struct s2 {int (*f) (double a);}; 3795int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3796int argc; 3797char **argv; 3798int 3799main () 3800{ 3801return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3802 ; 3803 return 0; 3804} 3805_ACEOF 3806# Don't try gcc -ansi; that turns off useful extensions and 3807# breaks some systems' header files. 3808# AIX -qlanglvl=ansi 3809# Ultrix and OSF/1 -std1 3810# HP-UX 10.20 and later -Ae 3811# HP-UX older versions -Aa -D_HPUX_SOURCE 3812# SVR4 -Xc -D__EXTENSIONS__ 3813for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3814do 3815 CC="$ac_save_CC $ac_arg" 3816 rm -f conftest.$ac_objext 3817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3818 (eval $ac_compile) 2>conftest.er1 3819 ac_status=$? 3820 grep -v '^ *+' conftest.er1 >conftest.err 3821 rm -f conftest.er1 3822 cat conftest.err >&5 3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3824 (exit $ac_status); } && 3825 { ac_try='test -z "$ac_c_werror_flag" 3826 || test ! -s conftest.err' 3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3828 (eval $ac_try) 2>&5 3829 ac_status=$? 3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3831 (exit $ac_status); }; } && 3832 { ac_try='test -s conftest.$ac_objext' 3833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3834 (eval $ac_try) 2>&5 3835 ac_status=$? 3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3837 (exit $ac_status); }; }; then 3838 ac_cv_prog_cc_stdc=$ac_arg 3839break 3840else 3841 echo "$as_me: failed program was:" >&5 3842sed 's/^/| /' conftest.$ac_ext >&5 3843 3844fi 3845rm -f conftest.err conftest.$ac_objext 3846done 3847rm -f conftest.$ac_ext conftest.$ac_objext 3848CC=$ac_save_CC 3849 3850fi 3851 3852case "x$ac_cv_prog_cc_stdc" in 3853 x|xno) 3854 echo "$as_me:$LINENO: result: none needed" >&5 3855echo "${ECHO_T}none needed" >&6 ;; 3856 *) 3857 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3858echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3859 CC="$CC $ac_cv_prog_cc_stdc" ;; 3860esac 3861 3862# Some people use a C++ compiler to compile C. Since we use `exit', 3863# in C++ we need to declare it. In case someone uses the same compiler 3864# for both compiling C and C++ we need to have the C++ compiler decide 3865# the declaration of exit, since it's the most demanding environment. 3866cat >conftest.$ac_ext <<_ACEOF 3867#ifndef __cplusplus 3868 choke me 3869#endif 3870_ACEOF 3871rm -f conftest.$ac_objext 3872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3873 (eval $ac_compile) 2>conftest.er1 3874 ac_status=$? 3875 grep -v '^ *+' conftest.er1 >conftest.err 3876 rm -f conftest.er1 3877 cat conftest.err >&5 3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3879 (exit $ac_status); } && 3880 { ac_try='test -z "$ac_c_werror_flag" 3881 || test ! -s conftest.err' 3882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3883 (eval $ac_try) 2>&5 3884 ac_status=$? 3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3886 (exit $ac_status); }; } && 3887 { ac_try='test -s conftest.$ac_objext' 3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3889 (eval $ac_try) 2>&5 3890 ac_status=$? 3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3892 (exit $ac_status); }; }; then 3893 for ac_declaration in \ 3894 '' \ 3895 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3896 'extern "C" void std::exit (int); using std::exit;' \ 3897 'extern "C" void exit (int) throw ();' \ 3898 'extern "C" void exit (int);' \ 3899 'void exit (int);' 3900do 3901 cat >conftest.$ac_ext <<_ACEOF 3902/* confdefs.h. */ 3903_ACEOF 3904cat confdefs.h >>conftest.$ac_ext 3905cat >>conftest.$ac_ext <<_ACEOF 3906/* end confdefs.h. */ 3907$ac_declaration 3908#include <stdlib.h> 3909int 3910main () 3911{ 3912exit (42); 3913 ; 3914 return 0; 3915} 3916_ACEOF 3917rm -f conftest.$ac_objext 3918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3919 (eval $ac_compile) 2>conftest.er1 3920 ac_status=$? 3921 grep -v '^ *+' conftest.er1 >conftest.err 3922 rm -f conftest.er1 3923 cat conftest.err >&5 3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3925 (exit $ac_status); } && 3926 { ac_try='test -z "$ac_c_werror_flag" 3927 || test ! -s conftest.err' 3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3929 (eval $ac_try) 2>&5 3930 ac_status=$? 3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3932 (exit $ac_status); }; } && 3933 { ac_try='test -s conftest.$ac_objext' 3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3935 (eval $ac_try) 2>&5 3936 ac_status=$? 3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3938 (exit $ac_status); }; }; then 3939 : 3940else 3941 echo "$as_me: failed program was:" >&5 3942sed 's/^/| /' conftest.$ac_ext >&5 3943 3944continue 3945fi 3946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3947 cat >conftest.$ac_ext <<_ACEOF 3948/* confdefs.h. */ 3949_ACEOF 3950cat confdefs.h >>conftest.$ac_ext 3951cat >>conftest.$ac_ext <<_ACEOF 3952/* end confdefs.h. */ 3953$ac_declaration 3954int 3955main () 3956{ 3957exit (42); 3958 ; 3959 return 0; 3960} 3961_ACEOF 3962rm -f conftest.$ac_objext 3963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3964 (eval $ac_compile) 2>conftest.er1 3965 ac_status=$? 3966 grep -v '^ *+' conftest.er1 >conftest.err 3967 rm -f conftest.er1 3968 cat conftest.err >&5 3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3970 (exit $ac_status); } && 3971 { ac_try='test -z "$ac_c_werror_flag" 3972 || test ! -s conftest.err' 3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3974 (eval $ac_try) 2>&5 3975 ac_status=$? 3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3977 (exit $ac_status); }; } && 3978 { ac_try='test -s conftest.$ac_objext' 3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3980 (eval $ac_try) 2>&5 3981 ac_status=$? 3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3983 (exit $ac_status); }; }; then 3984 break 3985else 3986 echo "$as_me: failed program was:" >&5 3987sed 's/^/| /' conftest.$ac_ext >&5 3988 3989fi 3990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3991done 3992rm -f conftest* 3993if test -n "$ac_declaration"; then 3994 echo '#ifdef __cplusplus' >>confdefs.h 3995 echo $ac_declaration >>confdefs.h 3996 echo '#endif' >>confdefs.h 3997fi 3998 3999else 4000 echo "$as_me: failed program was:" >&5 4001sed 's/^/| /' conftest.$ac_ext >&5 4002 4003fi 4004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4005ac_ext=c 4006ac_cpp='$CPP $CPPFLAGS' 4007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4009ac_compiler_gnu=$ac_cv_c_compiler_gnu 4010 4011depcc="$CC" am_compiler_list= 4012 4013echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4014echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4015if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4016 echo $ECHO_N "(cached) $ECHO_C" >&6 4017else 4018 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4019 # We make a subdir and do the tests there. Otherwise we can end up 4020 # making bogus files that we don't know about and never remove. For 4021 # instance it was reported that on HP-UX the gcc test will end up 4022 # making a dummy file named `D' -- because `-MD' means `put the output 4023 # in D'. 4024 mkdir conftest.dir 4025 # Copy depcomp to subdir because otherwise we won't find it if we're 4026 # using a relative directory. 4027 cp "$am_depcomp" conftest.dir 4028 cd conftest.dir 4029 # We will build objects and dependencies in a subdirectory because 4030 # it helps to detect inapplicable dependency modes. For instance 4031 # both Tru64's cc and ICC support -MD to output dependencies as a 4032 # side effect of compilation, but ICC will put the dependencies in 4033 # the current directory while Tru64 will put them in the object 4034 # directory. 4035 mkdir sub 4036 4037 am_cv_CC_dependencies_compiler_type=none 4038 if test "$am_compiler_list" = ""; then 4039 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4040 fi 4041 for depmode in $am_compiler_list; do 4042 # Setup a source with many dependencies, because some compilers 4043 # like to wrap large dependency lists on column 80 (with \), and 4044 # we should not choose a depcomp mode which is confused by this. 4045 # 4046 # We need to recreate these files for each test, as the compiler may 4047 # overwrite some of them when testing with obscure command lines. 4048 # This happens at least with the AIX C compiler. 4049 : > sub/conftest.c 4050 for i in 1 2 3 4 5 6; do 4051 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4052 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4053 # Solaris 8's {/usr,}/bin/sh. 4054 touch sub/conftst$i.h 4055 done 4056 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4057 4058 case $depmode in 4059 nosideeffect) 4060 # after this tag, mechanisms are not by side-effect, so they'll 4061 # only be used when explicitly requested 4062 if test "x$enable_dependency_tracking" = xyes; then 4063 continue 4064 else 4065 break 4066 fi 4067 ;; 4068 none) break ;; 4069 esac 4070 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4071 # mode. It turns out that the SunPro C++ compiler does not properly 4072 # handle `-M -o', and we need to detect this. 4073 if depmode=$depmode \ 4074 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4075 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4076 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4077 >/dev/null 2>conftest.err && 4078 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4079 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4080 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4081 # icc doesn't choke on unknown options, it will just issue warnings 4082 # or remarks (even with -Werror). So we grep stderr for any message 4083 # that says an option was ignored or not supported. 4084 # When given -MP, icc 7.0 and 7.1 complain thusly: 4085 # icc: Command line warning: ignoring option '-M'; no argument required 4086 # The diagnosis changed in icc 8.0: 4087 # icc: Command line remark: option '-MP' not supported 4088 if (grep 'ignoring option' conftest.err || 4089 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4090 am_cv_CC_dependencies_compiler_type=$depmode 4091 break 4092 fi 4093 fi 4094 done 4095 4096 cd .. 4097 rm -rf conftest.dir 4098else 4099 am_cv_CC_dependencies_compiler_type=none 4100fi 4101 4102fi 4103echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4104echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 4105CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4106 4107 4108 4109if 4110 test "x$enable_dependency_tracking" != xno \ 4111 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4112 am__fastdepCC_TRUE= 4113 am__fastdepCC_FALSE='#' 4114else 4115 am__fastdepCC_TRUE='#' 4116 am__fastdepCC_FALSE= 4117fi 4118 4119 4120# Find a good install program. We prefer a C program (faster), 4121# so one script is as good as another. But avoid the broken or 4122# incompatible versions: 4123# SysV /etc/install, /usr/sbin/install 4124# SunOS /usr/etc/install 4125# IRIX /sbin/install 4126# AIX /bin/install 4127# AmigaOS /C/install, which installs bootblocks on floppy discs 4128# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4129# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4130# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4131# OS/2's system install, which has a completely different semantic 4132# ./install, which can be erroneously created by make from ./install.sh. 4133echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4134echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 4135if test -z "$INSTALL"; then 4136if test "${ac_cv_path_install+set}" = set; then 4137 echo $ECHO_N "(cached) $ECHO_C" >&6 4138else 4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4140for as_dir in $PATH 4141do 4142 IFS=$as_save_IFS 4143 test -z "$as_dir" && as_dir=. 4144 # Account for people who put trailing slashes in PATH elements. 4145case $as_dir/ in 4146 ./ | .// | /cC/* | \ 4147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4148 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4149 /usr/ucb/* ) ;; 4150 *) 4151 # OSF1 and SCO ODT 3.0 have their own names for install. 4152 # Don't use installbsd from OSF since it installs stuff as root 4153 # by default. 4154 for ac_prog in ginstall scoinst install; do 4155 for ac_exec_ext in '' $ac_executable_extensions; do 4156 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4157 if test $ac_prog = install && 4158 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4159 # AIX install. It has an incompatible calling convention. 4160 : 4161 elif test $ac_prog = install && 4162 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4163 # program-specific install script used by HP pwplus--don't use. 4164 : 4165 else 4166 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4167 break 3 4168 fi 4169 fi 4170 done 4171 done 4172 ;; 4173esac 4174done 4175 4176 4177fi 4178 if test "${ac_cv_path_install+set}" = set; then 4179 INSTALL=$ac_cv_path_install 4180 else 4181 # As a last resort, use the slow shell script. We don't cache a 4182 # path for INSTALL within a source directory, because that will 4183 # break other packages using the cache if that directory is 4184 # removed, or if the path is relative. 4185 INSTALL=$ac_install_sh 4186 fi 4187fi 4188echo "$as_me:$LINENO: result: $INSTALL" >&5 4189echo "${ECHO_T}$INSTALL" >&6 4190 4191# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4192# It thinks the first close brace ends the variable substitution. 4193test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4194 4195test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4196 4197test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4198 4199# Check whether --enable-shared or --disable-shared was given. 4200if test "${enable_shared+set}" = set; then 4201 enableval="$enable_shared" 4202 p=${PACKAGE-default} 4203 case $enableval in 4204 yes) enable_shared=yes ;; 4205 no) enable_shared=no ;; 4206 *) 4207 enable_shared=no 4208 # Look at the argument we got. We use all the common list separators. 4209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4210 for pkg in $enableval; do 4211 IFS="$lt_save_ifs" 4212 if test "X$pkg" = "X$p"; then 4213 enable_shared=yes 4214 fi 4215 done 4216 IFS="$lt_save_ifs" 4217 ;; 4218 esac 4219else 4220 enable_shared=yes 4221fi; 4222 4223# Check whether --enable-static or --disable-static was given. 4224if test "${enable_static+set}" = set; then 4225 enableval="$enable_static" 4226 p=${PACKAGE-default} 4227 case $enableval in 4228 yes) enable_static=yes ;; 4229 no) enable_static=no ;; 4230 *) 4231 enable_static=no 4232 # Look at the argument we got. We use all the common list separators. 4233 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4234 for pkg in $enableval; do 4235 IFS="$lt_save_ifs" 4236 if test "X$pkg" = "X$p"; then 4237 enable_static=yes 4238 fi 4239 done 4240 IFS="$lt_save_ifs" 4241 ;; 4242 esac 4243else 4244 enable_static=yes 4245fi; 4246 4247# Check whether --enable-fast-install or --disable-fast-install was given. 4248if test "${enable_fast_install+set}" = set; then 4249 enableval="$enable_fast_install" 4250 p=${PACKAGE-default} 4251 case $enableval in 4252 yes) enable_fast_install=yes ;; 4253 no) enable_fast_install=no ;; 4254 *) 4255 enable_fast_install=no 4256 # Look at the argument we got. We use all the common list separators. 4257 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4258 for pkg in $enableval; do 4259 IFS="$lt_save_ifs" 4260 if test "X$pkg" = "X$p"; then 4261 enable_fast_install=yes 4262 fi 4263 done 4264 IFS="$lt_save_ifs" 4265 ;; 4266 esac 4267else 4268 enable_fast_install=yes 4269fi; 4270 4271echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4272echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 4273if test "${lt_cv_path_SED+set}" = set; then 4274 echo $ECHO_N "(cached) $ECHO_C" >&6 4275else 4276 # Loop through the user's path and test for sed and gsed. 4277# Then use that list of sed's as ones to test for truncation. 4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4279for as_dir in $PATH 4280do 4281 IFS=$as_save_IFS 4282 test -z "$as_dir" && as_dir=. 4283 for lt_ac_prog in sed gsed; do 4284 for ac_exec_ext in '' $ac_executable_extensions; do 4285 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 4286 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4287 fi 4288 done 4289 done 4290done 4291lt_ac_max=0 4292lt_ac_count=0 4293# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4294# along with /bin/sed that truncates output. 4295for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4296 test ! -f $lt_ac_sed && continue 4297 cat /dev/null > conftest.in 4298 lt_ac_count=0 4299 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4300 # Check for GNU sed and select it if it is found. 4301 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4302 lt_cv_path_SED=$lt_ac_sed 4303 break 4304 fi 4305 while true; do 4306 cat conftest.in conftest.in >conftest.tmp 4307 mv conftest.tmp conftest.in 4308 cp conftest.in conftest.nl 4309 echo >>conftest.nl 4310 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4311 cmp -s conftest.out conftest.nl || break 4312 # 10000 chars as input seems more than enough 4313 test $lt_ac_count -gt 10 && break 4314 lt_ac_count=`expr $lt_ac_count + 1` 4315 if test $lt_ac_count -gt $lt_ac_max; then 4316 lt_ac_max=$lt_ac_count 4317 lt_cv_path_SED=$lt_ac_sed 4318 fi 4319 done 4320done 4321 4322fi 4323 4324SED=$lt_cv_path_SED 4325echo "$as_me:$LINENO: result: $SED" >&5 4326echo "${ECHO_T}$SED" >&6 4327 4328echo "$as_me:$LINENO: checking for egrep" >&5 4329echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4330if test "${ac_cv_prog_egrep+set}" = set; then 4331 echo $ECHO_N "(cached) $ECHO_C" >&6 4332else 4333 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4334 then ac_cv_prog_egrep='grep -E' 4335 else ac_cv_prog_egrep='egrep' 4336 fi 4337fi 4338echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4339echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4340 EGREP=$ac_cv_prog_egrep 4341 4342 4343 4344# Check whether --with-gnu-ld or --without-gnu-ld was given. 4345if test "${with_gnu_ld+set}" = set; then 4346 withval="$with_gnu_ld" 4347 test "$withval" = no || with_gnu_ld=yes 4348else 4349 with_gnu_ld=no 4350fi; 4351ac_prog=ld 4352if test "$GCC" = yes; then 4353 # Check if gcc -print-prog-name=ld gives a path. 4354 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4355echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 4356 case $host in 4357 *-*-mingw*) 4358 # gcc leaves a trailing carriage return which upsets mingw 4359 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4360 *) 4361 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4362 esac 4363 case $ac_prog in 4364 # Accept absolute paths. 4365 [\\/]* | ?:[\\/]*) 4366 re_direlt='/[^/][^/]*/\.\./' 4367 # Canonicalize the pathname of ld 4368 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4369 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4370 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4371 done 4372 test -z "$LD" && LD="$ac_prog" 4373 ;; 4374 "") 4375 # If it fails, then pretend we aren't using GCC. 4376 ac_prog=ld 4377 ;; 4378 *) 4379 # If it is relative, then search for the first ld in PATH. 4380 with_gnu_ld=unknown 4381 ;; 4382 esac 4383elif test "$with_gnu_ld" = yes; then 4384 echo "$as_me:$LINENO: checking for GNU ld" >&5 4385echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4386else 4387 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4388echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4389fi 4390if test "${lt_cv_path_LD+set}" = set; then 4391 echo $ECHO_N "(cached) $ECHO_C" >&6 4392else 4393 if test -z "$LD"; then 4394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4395 for ac_dir in $PATH; do 4396 IFS="$lt_save_ifs" 4397 test -z "$ac_dir" && ac_dir=. 4398 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4399 lt_cv_path_LD="$ac_dir/$ac_prog" 4400 # Check to see if the program is GNU ld. I'd rather use --version, 4401 # but apparently some GNU ld's only accept -v. 4402 # Break only if it was the GNU/non-GNU ld that we prefer. 4403 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4404 *GNU* | *'with BFD'*) 4405 test "$with_gnu_ld" != no && break 4406 ;; 4407 *) 4408 test "$with_gnu_ld" != yes && break 4409 ;; 4410 esac 4411 fi 4412 done 4413 IFS="$lt_save_ifs" 4414else 4415 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4416fi 4417fi 4418 4419LD="$lt_cv_path_LD" 4420if test -n "$LD"; then 4421 echo "$as_me:$LINENO: result: $LD" >&5 4422echo "${ECHO_T}$LD" >&6 4423else 4424 echo "$as_me:$LINENO: result: no" >&5 4425echo "${ECHO_T}no" >&6 4426fi 4427test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4428echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4429 { (exit 1); exit 1; }; } 4430echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4431echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4432if test "${lt_cv_prog_gnu_ld+set}" = set; then 4433 echo $ECHO_N "(cached) $ECHO_C" >&6 4434else 4435 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4436case `$LD -v 2>&1 </dev/null` in 4437*GNU* | *'with BFD'*) 4438 lt_cv_prog_gnu_ld=yes 4439 ;; 4440*) 4441 lt_cv_prog_gnu_ld=no 4442 ;; 4443esac 4444fi 4445echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4446echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4447with_gnu_ld=$lt_cv_prog_gnu_ld 4448 4449 4450echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4451echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4452if test "${lt_cv_ld_reload_flag+set}" = set; then 4453 echo $ECHO_N "(cached) $ECHO_C" >&6 4454else 4455 lt_cv_ld_reload_flag='-r' 4456fi 4457echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4458echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4459reload_flag=$lt_cv_ld_reload_flag 4460case $reload_flag in 4461"" | " "*) ;; 4462*) reload_flag=" $reload_flag" ;; 4463esac 4464reload_cmds='$LD$reload_flag -o $output$reload_objs' 4465case $host_os in 4466 darwin*) 4467 if test "$GCC" = yes; then 4468 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 4469 else 4470 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4471 fi 4472 ;; 4473esac 4474 4475echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4476echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4477if test "${lt_cv_path_NM+set}" = set; then 4478 echo $ECHO_N "(cached) $ECHO_C" >&6 4479else 4480 if test -n "$NM"; then 4481 # Let the user override the test. 4482 lt_cv_path_NM="$NM" 4483else 4484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4485 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 4486 IFS="$lt_save_ifs" 4487 test -z "$ac_dir" && ac_dir=. 4488 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 4489 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4490 # Check to see if the nm accepts a BSD-compat flag. 4491 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4492 # nm: unknown option "B" ignored 4493 # Tru64's nm complains that /dev/null is an invalid object file 4494 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4495 */dev/null* | *'Invalid file or object type'*) 4496 lt_cv_path_NM="$tmp_nm -B" 4497 break 4498 ;; 4499 *) 4500 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4501 */dev/null*) 4502 lt_cv_path_NM="$tmp_nm -p" 4503 break 4504 ;; 4505 *) 4506 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4507 continue # so that we can try to find one that supports BSD flags 4508 ;; 4509 esac 4510 esac 4511 fi 4512 done 4513 IFS="$lt_save_ifs" 4514 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4515fi 4516fi 4517echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4518echo "${ECHO_T}$lt_cv_path_NM" >&6 4519NM="$lt_cv_path_NM" 4520 4521echo "$as_me:$LINENO: checking whether ln -s works" >&5 4522echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4523LN_S=$as_ln_s 4524if test "$LN_S" = "ln -s"; then 4525 echo "$as_me:$LINENO: result: yes" >&5 4526echo "${ECHO_T}yes" >&6 4527else 4528 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4529echo "${ECHO_T}no, using $LN_S" >&6 4530fi 4531 4532echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4533echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 4534if test "${lt_cv_deplibs_check_method+set}" = set; then 4535 echo $ECHO_N "(cached) $ECHO_C" >&6 4536else 4537 lt_cv_file_magic_cmd='$MAGIC_CMD' 4538lt_cv_file_magic_test_file= 4539lt_cv_deplibs_check_method='unknown' 4540# Need to set the preceding variable on all platforms that support 4541# interlibrary dependencies. 4542# 'none' -- dependencies not supported. 4543# `unknown' -- same as none, but documents that we really don't know. 4544# 'pass_all' -- all dependencies passed with no checks. 4545# 'test_compile' -- check by making test program. 4546# 'file_magic [[regex]]' -- check by looking for files in library path 4547# which responds to the $file_magic_cmd with a given extended regex. 4548# If you have `file' or equivalent on your system and you're not sure 4549# whether `pass_all' will *always* work, you probably want this one. 4550 4551case $host_os in 4552aix4* | aix5*) 4553 lt_cv_deplibs_check_method=pass_all 4554 ;; 4555 4556beos*) 4557 lt_cv_deplibs_check_method=pass_all 4558 ;; 4559 4560bsdi[45]*) 4561 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4562 lt_cv_file_magic_cmd='/usr/bin/file -L' 4563 lt_cv_file_magic_test_file=/shlib/libc.so 4564 ;; 4565 4566cygwin*) 4567 # func_win32_libid is a shell function defined in ltmain.sh 4568 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4569 lt_cv_file_magic_cmd='func_win32_libid' 4570 ;; 4571 4572mingw* | pw32*) 4573 # Base MSYS/MinGW do not provide the 'file' command needed by 4574 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4575 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4576 lt_cv_file_magic_cmd='$OBJDUMP -f' 4577 ;; 4578 4579darwin* | rhapsody*) 4580 lt_cv_deplibs_check_method=pass_all 4581 ;; 4582 4583freebsd* | kfreebsd*-gnu | dragonfly*) 4584 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4585 case $host_cpu in 4586 i*86 ) 4587 # Not sure whether the presence of OpenBSD here was a mistake. 4588 # Let's accept both of them until this is cleared up. 4589 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4590 lt_cv_file_magic_cmd=/usr/bin/file 4591 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4592 ;; 4593 esac 4594 else 4595 lt_cv_deplibs_check_method=pass_all 4596 fi 4597 ;; 4598 4599gnu*) 4600 lt_cv_deplibs_check_method=pass_all 4601 ;; 4602 4603hpux10.20* | hpux11*) 4604 lt_cv_file_magic_cmd=/usr/bin/file 4605 case "$host_cpu" in 4606 ia64*) 4607 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4608 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4609 ;; 4610 hppa*64*) 4611 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]' 4612 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4613 ;; 4614 *) 4615 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4616 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4617 ;; 4618 esac 4619 ;; 4620 4621irix5* | irix6* | nonstopux*) 4622 case $LD in 4623 *-32|*"-32 ") libmagic=32-bit;; 4624 *-n32|*"-n32 ") libmagic=N32;; 4625 *-64|*"-64 ") libmagic=64-bit;; 4626 *) libmagic=never-match;; 4627 esac 4628 lt_cv_deplibs_check_method=pass_all 4629 ;; 4630 4631# This must be Linux ELF. 4632linux*) 4633 lt_cv_deplibs_check_method=pass_all 4634 ;; 4635 4636netbsd*) 4637 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4639 else 4640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4641 fi 4642 ;; 4643 4644newos6*) 4645 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4646 lt_cv_file_magic_cmd=/usr/bin/file 4647 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4648 ;; 4649 4650nto-qnx*) 4651 lt_cv_deplibs_check_method=unknown 4652 ;; 4653 4654openbsd*) 4655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4657 else 4658 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4659 fi 4660 ;; 4661 4662osf3* | osf4* | osf5*) 4663 lt_cv_deplibs_check_method=pass_all 4664 ;; 4665 4666sco3.2v5*) 4667 lt_cv_deplibs_check_method=pass_all 4668 ;; 4669 4670solaris*) 4671 lt_cv_deplibs_check_method=pass_all 4672 ;; 4673 4674sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4675 case $host_vendor in 4676 motorola) 4677 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]' 4678 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4679 ;; 4680 ncr) 4681 lt_cv_deplibs_check_method=pass_all 4682 ;; 4683 sequent) 4684 lt_cv_file_magic_cmd='/bin/file' 4685 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4686 ;; 4687 sni) 4688 lt_cv_file_magic_cmd='/bin/file' 4689 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4690 lt_cv_file_magic_test_file=/lib/libc.so 4691 ;; 4692 siemens) 4693 lt_cv_deplibs_check_method=pass_all 4694 ;; 4695 esac 4696 ;; 4697 4698sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 4699 lt_cv_deplibs_check_method=pass_all 4700 ;; 4701esac 4702 4703fi 4704echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4705echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4706file_magic_cmd=$lt_cv_file_magic_cmd 4707deplibs_check_method=$lt_cv_deplibs_check_method 4708test -z "$deplibs_check_method" && deplibs_check_method=unknown 4709 4710 4711 4712# If no C compiler was specified, use CC. 4713LTCC=${LTCC-"$CC"} 4714 4715# Allow CC to be a program name with arguments. 4716compiler=$CC 4717 4718# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4719if test "${enable_libtool_lock+set}" = set; then 4720 enableval="$enable_libtool_lock" 4721 4722fi; 4723test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4724 4725# Some flags need to be propagated to the compiler or linker for good 4726# libtool support. 4727case $host in 4728ia64-*-hpux*) 4729 # Find out which ABI we are using. 4730 echo 'int i;' > conftest.$ac_ext 4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4732 (eval $ac_compile) 2>&5 4733 ac_status=$? 4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4735 (exit $ac_status); }; then 4736 case `/usr/bin/file conftest.$ac_objext` in 4737 *ELF-32*) 4738 HPUX_IA64_MODE="32" 4739 ;; 4740 *ELF-64*) 4741 HPUX_IA64_MODE="64" 4742 ;; 4743 esac 4744 fi 4745 rm -rf conftest* 4746 ;; 4747*-*-irix6*) 4748 # Find out which ABI we are using. 4749 echo '#line 4749 "configure"' > conftest.$ac_ext 4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4751 (eval $ac_compile) 2>&5 4752 ac_status=$? 4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4754 (exit $ac_status); }; then 4755 if test "$lt_cv_prog_gnu_ld" = yes; then 4756 case `/usr/bin/file conftest.$ac_objext` in 4757 *32-bit*) 4758 LD="${LD-ld} -melf32bsmip" 4759 ;; 4760 *N32*) 4761 LD="${LD-ld} -melf32bmipn32" 4762 ;; 4763 *64-bit*) 4764 LD="${LD-ld} -melf64bmip" 4765 ;; 4766 esac 4767 else 4768 case `/usr/bin/file conftest.$ac_objext` in 4769 *32-bit*) 4770 LD="${LD-ld} -32" 4771 ;; 4772 *N32*) 4773 LD="${LD-ld} -n32" 4774 ;; 4775 *64-bit*) 4776 LD="${LD-ld} -64" 4777 ;; 4778 esac 4779 fi 4780 fi 4781 rm -rf conftest* 4782 ;; 4783 4784x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4785 # Find out which ABI we are using. 4786 echo 'int i;' > conftest.$ac_ext 4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4788 (eval $ac_compile) 2>&5 4789 ac_status=$? 4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4791 (exit $ac_status); }; then 4792 case "`/usr/bin/file conftest.o`" in 4793 *32-bit*) 4794 case $host in 4795 x86_64-*linux*) 4796 LD="${LD-ld} -m elf_i386" 4797 ;; 4798 ppc64-*linux*|powerpc64-*linux*) 4799 LD="${LD-ld} -m elf32ppclinux" 4800 ;; 4801 s390x-*linux*) 4802 LD="${LD-ld} -m elf_s390" 4803 ;; 4804 sparc64-*linux*) 4805 LD="${LD-ld} -m elf32_sparc" 4806 ;; 4807 esac 4808 ;; 4809 *64-bit*) 4810 case $host in 4811 x86_64-*linux*) 4812 LD="${LD-ld} -m elf_x86_64" 4813 ;; 4814 ppc*-*linux*|powerpc*-*linux*) 4815 LD="${LD-ld} -m elf64ppc" 4816 ;; 4817 s390*-*linux*) 4818 LD="${LD-ld} -m elf64_s390" 4819 ;; 4820 sparc*-*linux*) 4821 LD="${LD-ld} -m elf64_sparc" 4822 ;; 4823 esac 4824 ;; 4825 esac 4826 fi 4827 rm -rf conftest* 4828 ;; 4829 4830*-*-sco3.2v5*) 4831 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4832 SAVE_CFLAGS="$CFLAGS" 4833 CFLAGS="$CFLAGS -belf" 4834 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4835echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4836if test "${lt_cv_cc_needs_belf+set}" = set; then 4837 echo $ECHO_N "(cached) $ECHO_C" >&6 4838else 4839 ac_ext=c 4840ac_cpp='$CPP $CPPFLAGS' 4841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4843ac_compiler_gnu=$ac_cv_c_compiler_gnu 4844 4845 cat >conftest.$ac_ext <<_ACEOF 4846/* confdefs.h. */ 4847_ACEOF 4848cat confdefs.h >>conftest.$ac_ext 4849cat >>conftest.$ac_ext <<_ACEOF 4850/* end confdefs.h. */ 4851 4852int 4853main () 4854{ 4855 4856 ; 4857 return 0; 4858} 4859_ACEOF 4860rm -f conftest.$ac_objext conftest$ac_exeext 4861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4862 (eval $ac_link) 2>conftest.er1 4863 ac_status=$? 4864 grep -v '^ *+' conftest.er1 >conftest.err 4865 rm -f conftest.er1 4866 cat conftest.err >&5 4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4868 (exit $ac_status); } && 4869 { ac_try='test -z "$ac_c_werror_flag" 4870 || test ! -s conftest.err' 4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4872 (eval $ac_try) 2>&5 4873 ac_status=$? 4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4875 (exit $ac_status); }; } && 4876 { ac_try='test -s conftest$ac_exeext' 4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4878 (eval $ac_try) 2>&5 4879 ac_status=$? 4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4881 (exit $ac_status); }; }; then 4882 lt_cv_cc_needs_belf=yes 4883else 4884 echo "$as_me: failed program was:" >&5 4885sed 's/^/| /' conftest.$ac_ext >&5 4886 4887lt_cv_cc_needs_belf=no 4888fi 4889rm -f conftest.err conftest.$ac_objext \ 4890 conftest$ac_exeext conftest.$ac_ext 4891 ac_ext=c 4892ac_cpp='$CPP $CPPFLAGS' 4893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4895ac_compiler_gnu=$ac_cv_c_compiler_gnu 4896 4897fi 4898echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4899echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4900 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4901 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4902 CFLAGS="$SAVE_CFLAGS" 4903 fi 4904 ;; 4905 4906esac 4907 4908need_locks="$enable_libtool_lock" 4909 4910 4911ac_ext=c 4912ac_cpp='$CPP $CPPFLAGS' 4913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4915ac_compiler_gnu=$ac_cv_c_compiler_gnu 4916echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4917echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 4918# On Suns, sometimes $CPP names a directory. 4919if test -n "$CPP" && test -d "$CPP"; then 4920 CPP= 4921fi 4922if test -z "$CPP"; then 4923 if test "${ac_cv_prog_CPP+set}" = set; then 4924 echo $ECHO_N "(cached) $ECHO_C" >&6 4925else 4926 # Double quotes because CPP needs to be expanded 4927 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4928 do 4929 ac_preproc_ok=false 4930for ac_c_preproc_warn_flag in '' yes 4931do 4932 # Use a header file that comes with gcc, so configuring glibc 4933 # with a fresh cross-compiler works. 4934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4935 # <limits.h> exists even on freestanding compilers. 4936 # On the NeXT, cc -E runs the code through the compiler's parser, 4937 # not just through cpp. "Syntax error" is here to catch this case. 4938 cat >conftest.$ac_ext <<_ACEOF 4939/* confdefs.h. */ 4940_ACEOF 4941cat confdefs.h >>conftest.$ac_ext 4942cat >>conftest.$ac_ext <<_ACEOF 4943/* end confdefs.h. */ 4944#ifdef __STDC__ 4945# include <limits.h> 4946#else 4947# include <assert.h> 4948#endif 4949 Syntax error 4950_ACEOF 4951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4953 ac_status=$? 4954 grep -v '^ *+' conftest.er1 >conftest.err 4955 rm -f conftest.er1 4956 cat conftest.err >&5 4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4958 (exit $ac_status); } >/dev/null; then 4959 if test -s conftest.err; then 4960 ac_cpp_err=$ac_c_preproc_warn_flag 4961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4962 else 4963 ac_cpp_err= 4964 fi 4965else 4966 ac_cpp_err=yes 4967fi 4968if test -z "$ac_cpp_err"; then 4969 : 4970else 4971 echo "$as_me: failed program was:" >&5 4972sed 's/^/| /' conftest.$ac_ext >&5 4973 4974 # Broken: fails on valid input. 4975continue 4976fi 4977rm -f conftest.err conftest.$ac_ext 4978 4979 # OK, works on sane cases. Now check whether non-existent headers 4980 # can be detected and how. 4981 cat >conftest.$ac_ext <<_ACEOF 4982/* confdefs.h. */ 4983_ACEOF 4984cat confdefs.h >>conftest.$ac_ext 4985cat >>conftest.$ac_ext <<_ACEOF 4986/* end confdefs.h. */ 4987#include <ac_nonexistent.h> 4988_ACEOF 4989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4991 ac_status=$? 4992 grep -v '^ *+' conftest.er1 >conftest.err 4993 rm -f conftest.er1 4994 cat conftest.err >&5 4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4996 (exit $ac_status); } >/dev/null; then 4997 if test -s conftest.err; then 4998 ac_cpp_err=$ac_c_preproc_warn_flag 4999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5000 else 5001 ac_cpp_err= 5002 fi 5003else 5004 ac_cpp_err=yes 5005fi 5006if test -z "$ac_cpp_err"; then 5007 # Broken: success on invalid input. 5008continue 5009else 5010 echo "$as_me: failed program was:" >&5 5011sed 's/^/| /' conftest.$ac_ext >&5 5012 5013 # Passes both tests. 5014ac_preproc_ok=: 5015break 5016fi 5017rm -f conftest.err conftest.$ac_ext 5018 5019done 5020# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5021rm -f conftest.err conftest.$ac_ext 5022if $ac_preproc_ok; then 5023 break 5024fi 5025 5026 done 5027 ac_cv_prog_CPP=$CPP 5028 5029fi 5030 CPP=$ac_cv_prog_CPP 5031else 5032 ac_cv_prog_CPP=$CPP 5033fi 5034echo "$as_me:$LINENO: result: $CPP" >&5 5035echo "${ECHO_T}$CPP" >&6 5036ac_preproc_ok=false 5037for ac_c_preproc_warn_flag in '' yes 5038do 5039 # Use a header file that comes with gcc, so configuring glibc 5040 # with a fresh cross-compiler works. 5041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5042 # <limits.h> exists even on freestanding compilers. 5043 # On the NeXT, cc -E runs the code through the compiler's parser, 5044 # not just through cpp. "Syntax error" is here to catch this case. 5045 cat >conftest.$ac_ext <<_ACEOF 5046/* confdefs.h. */ 5047_ACEOF 5048cat confdefs.h >>conftest.$ac_ext 5049cat >>conftest.$ac_ext <<_ACEOF 5050/* end confdefs.h. */ 5051#ifdef __STDC__ 5052# include <limits.h> 5053#else 5054# include <assert.h> 5055#endif 5056 Syntax error 5057_ACEOF 5058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5060 ac_status=$? 5061 grep -v '^ *+' conftest.er1 >conftest.err 5062 rm -f conftest.er1 5063 cat conftest.err >&5 5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5065 (exit $ac_status); } >/dev/null; then 5066 if test -s conftest.err; then 5067 ac_cpp_err=$ac_c_preproc_warn_flag 5068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5069 else 5070 ac_cpp_err= 5071 fi 5072else 5073 ac_cpp_err=yes 5074fi 5075if test -z "$ac_cpp_err"; then 5076 : 5077else 5078 echo "$as_me: failed program was:" >&5 5079sed 's/^/| /' conftest.$ac_ext >&5 5080 5081 # Broken: fails on valid input. 5082continue 5083fi 5084rm -f conftest.err conftest.$ac_ext 5085 5086 # OK, works on sane cases. Now check whether non-existent headers 5087 # can be detected and how. 5088 cat >conftest.$ac_ext <<_ACEOF 5089/* confdefs.h. */ 5090_ACEOF 5091cat confdefs.h >>conftest.$ac_ext 5092cat >>conftest.$ac_ext <<_ACEOF 5093/* end confdefs.h. */ 5094#include <ac_nonexistent.h> 5095_ACEOF 5096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5098 ac_status=$? 5099 grep -v '^ *+' conftest.er1 >conftest.err 5100 rm -f conftest.er1 5101 cat conftest.err >&5 5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5103 (exit $ac_status); } >/dev/null; then 5104 if test -s conftest.err; then 5105 ac_cpp_err=$ac_c_preproc_warn_flag 5106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5107 else 5108 ac_cpp_err= 5109 fi 5110else 5111 ac_cpp_err=yes 5112fi 5113if test -z "$ac_cpp_err"; then 5114 # Broken: success on invalid input. 5115continue 5116else 5117 echo "$as_me: failed program was:" >&5 5118sed 's/^/| /' conftest.$ac_ext >&5 5119 5120 # Passes both tests. 5121ac_preproc_ok=: 5122break 5123fi 5124rm -f conftest.err conftest.$ac_ext 5125 5126done 5127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5128rm -f conftest.err conftest.$ac_ext 5129if $ac_preproc_ok; then 5130 : 5131else 5132 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5133See \`config.log' for more details." >&5 5134echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5135See \`config.log' for more details." >&2;} 5136 { (exit 1); exit 1; }; } 5137fi 5138 5139ac_ext=c 5140ac_cpp='$CPP $CPPFLAGS' 5141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5143ac_compiler_gnu=$ac_cv_c_compiler_gnu 5144 5145 5146echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5147echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5148if test "${ac_cv_header_stdc+set}" = set; then 5149 echo $ECHO_N "(cached) $ECHO_C" >&6 5150else 5151 cat >conftest.$ac_ext <<_ACEOF 5152/* confdefs.h. */ 5153_ACEOF 5154cat confdefs.h >>conftest.$ac_ext 5155cat >>conftest.$ac_ext <<_ACEOF 5156/* end confdefs.h. */ 5157#include <stdlib.h> 5158#include <stdarg.h> 5159#include <string.h> 5160#include <float.h> 5161 5162int 5163main () 5164{ 5165 5166 ; 5167 return 0; 5168} 5169_ACEOF 5170rm -f conftest.$ac_objext 5171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5172 (eval $ac_compile) 2>conftest.er1 5173 ac_status=$? 5174 grep -v '^ *+' conftest.er1 >conftest.err 5175 rm -f conftest.er1 5176 cat conftest.err >&5 5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5178 (exit $ac_status); } && 5179 { ac_try='test -z "$ac_c_werror_flag" 5180 || test ! -s conftest.err' 5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5182 (eval $ac_try) 2>&5 5183 ac_status=$? 5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5185 (exit $ac_status); }; } && 5186 { ac_try='test -s conftest.$ac_objext' 5187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5188 (eval $ac_try) 2>&5 5189 ac_status=$? 5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5191 (exit $ac_status); }; }; then 5192 ac_cv_header_stdc=yes 5193else 5194 echo "$as_me: failed program was:" >&5 5195sed 's/^/| /' conftest.$ac_ext >&5 5196 5197ac_cv_header_stdc=no 5198fi 5199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5200 5201if test $ac_cv_header_stdc = yes; then 5202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5203 cat >conftest.$ac_ext <<_ACEOF 5204/* confdefs.h. */ 5205_ACEOF 5206cat confdefs.h >>conftest.$ac_ext 5207cat >>conftest.$ac_ext <<_ACEOF 5208/* end confdefs.h. */ 5209#include <string.h> 5210 5211_ACEOF 5212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5213 $EGREP "memchr" >/dev/null 2>&1; then 5214 : 5215else 5216 ac_cv_header_stdc=no 5217fi 5218rm -f conftest* 5219 5220fi 5221 5222if test $ac_cv_header_stdc = yes; then 5223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5224 cat >conftest.$ac_ext <<_ACEOF 5225/* confdefs.h. */ 5226_ACEOF 5227cat confdefs.h >>conftest.$ac_ext 5228cat >>conftest.$ac_ext <<_ACEOF 5229/* end confdefs.h. */ 5230#include <stdlib.h> 5231 5232_ACEOF 5233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5234 $EGREP "free" >/dev/null 2>&1; then 5235 : 5236else 5237 ac_cv_header_stdc=no 5238fi 5239rm -f conftest* 5240 5241fi 5242 5243if test $ac_cv_header_stdc = yes; then 5244 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5245 if test "$cross_compiling" = yes; then 5246 : 5247else 5248 cat >conftest.$ac_ext <<_ACEOF 5249/* confdefs.h. */ 5250_ACEOF 5251cat confdefs.h >>conftest.$ac_ext 5252cat >>conftest.$ac_ext <<_ACEOF 5253/* end confdefs.h. */ 5254#include <ctype.h> 5255#if ((' ' & 0x0FF) == 0x020) 5256# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5257# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5258#else 5259# define ISLOWER(c) \ 5260 (('a' <= (c) && (c) <= 'i') \ 5261 || ('j' <= (c) && (c) <= 'r') \ 5262 || ('s' <= (c) && (c) <= 'z')) 5263# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5264#endif 5265 5266#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5267int 5268main () 5269{ 5270 int i; 5271 for (i = 0; i < 256; i++) 5272 if (XOR (islower (i), ISLOWER (i)) 5273 || toupper (i) != TOUPPER (i)) 5274 exit(2); 5275 exit (0); 5276} 5277_ACEOF 5278rm -f conftest$ac_exeext 5279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5280 (eval $ac_link) 2>&5 5281 ac_status=$? 5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5285 (eval $ac_try) 2>&5 5286 ac_status=$? 5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5288 (exit $ac_status); }; }; then 5289 : 5290else 5291 echo "$as_me: program exited with status $ac_status" >&5 5292echo "$as_me: failed program was:" >&5 5293sed 's/^/| /' conftest.$ac_ext >&5 5294 5295( exit $ac_status ) 5296ac_cv_header_stdc=no 5297fi 5298rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5299fi 5300fi 5301fi 5302echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5303echo "${ECHO_T}$ac_cv_header_stdc" >&6 5304if test $ac_cv_header_stdc = yes; then 5305 5306cat >>confdefs.h <<\_ACEOF 5307#define STDC_HEADERS 1 5308_ACEOF 5309 5310fi 5311 5312# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5323 inttypes.h stdint.h unistd.h 5324do 5325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5326echo "$as_me:$LINENO: checking for $ac_header" >&5 5327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5328if eval "test \"\${$as_ac_Header+set}\" = set"; then 5329 echo $ECHO_N "(cached) $ECHO_C" >&6 5330else 5331 cat >conftest.$ac_ext <<_ACEOF 5332/* confdefs.h. */ 5333_ACEOF 5334cat confdefs.h >>conftest.$ac_ext 5335cat >>conftest.$ac_ext <<_ACEOF 5336/* end confdefs.h. */ 5337$ac_includes_default 5338 5339#include <$ac_header> 5340_ACEOF 5341rm -f conftest.$ac_objext 5342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5343 (eval $ac_compile) 2>conftest.er1 5344 ac_status=$? 5345 grep -v '^ *+' conftest.er1 >conftest.err 5346 rm -f conftest.er1 5347 cat conftest.err >&5 5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5349 (exit $ac_status); } && 5350 { ac_try='test -z "$ac_c_werror_flag" 5351 || test ! -s conftest.err' 5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5353 (eval $ac_try) 2>&5 5354 ac_status=$? 5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5356 (exit $ac_status); }; } && 5357 { ac_try='test -s conftest.$ac_objext' 5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5359 (eval $ac_try) 2>&5 5360 ac_status=$? 5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5362 (exit $ac_status); }; }; then 5363 eval "$as_ac_Header=yes" 5364else 5365 echo "$as_me: failed program was:" >&5 5366sed 's/^/| /' conftest.$ac_ext >&5 5367 5368eval "$as_ac_Header=no" 5369fi 5370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5371fi 5372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5374if test `eval echo '${'$as_ac_Header'}'` = yes; then 5375 cat >>confdefs.h <<_ACEOF 5376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5377_ACEOF 5378 5379fi 5380 5381done 5382 5383 5384 5385for ac_header in dlfcn.h 5386do 5387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5388if eval "test \"\${$as_ac_Header+set}\" = set"; then 5389 echo "$as_me:$LINENO: checking for $ac_header" >&5 5390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5391if eval "test \"\${$as_ac_Header+set}\" = set"; then 5392 echo $ECHO_N "(cached) $ECHO_C" >&6 5393fi 5394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5396else 5397 # Is the header compilable? 5398echo "$as_me:$LINENO: checking $ac_header usability" >&5 5399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5400cat >conftest.$ac_ext <<_ACEOF 5401/* confdefs.h. */ 5402_ACEOF 5403cat confdefs.h >>conftest.$ac_ext 5404cat >>conftest.$ac_ext <<_ACEOF 5405/* end confdefs.h. */ 5406$ac_includes_default 5407#include <$ac_header> 5408_ACEOF 5409rm -f conftest.$ac_objext 5410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5411 (eval $ac_compile) 2>conftest.er1 5412 ac_status=$? 5413 grep -v '^ *+' conftest.er1 >conftest.err 5414 rm -f conftest.er1 5415 cat conftest.err >&5 5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5417 (exit $ac_status); } && 5418 { ac_try='test -z "$ac_c_werror_flag" 5419 || test ! -s conftest.err' 5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5421 (eval $ac_try) 2>&5 5422 ac_status=$? 5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5424 (exit $ac_status); }; } && 5425 { ac_try='test -s conftest.$ac_objext' 5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5427 (eval $ac_try) 2>&5 5428 ac_status=$? 5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5430 (exit $ac_status); }; }; then 5431 ac_header_compiler=yes 5432else 5433 echo "$as_me: failed program was:" >&5 5434sed 's/^/| /' conftest.$ac_ext >&5 5435 5436ac_header_compiler=no 5437fi 5438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5439echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5440echo "${ECHO_T}$ac_header_compiler" >&6 5441 5442# Is the header present? 5443echo "$as_me:$LINENO: checking $ac_header presence" >&5 5444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5445cat >conftest.$ac_ext <<_ACEOF 5446/* confdefs.h. */ 5447_ACEOF 5448cat confdefs.h >>conftest.$ac_ext 5449cat >>conftest.$ac_ext <<_ACEOF 5450/* end confdefs.h. */ 5451#include <$ac_header> 5452_ACEOF 5453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5455 ac_status=$? 5456 grep -v '^ *+' conftest.er1 >conftest.err 5457 rm -f conftest.er1 5458 cat conftest.err >&5 5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5460 (exit $ac_status); } >/dev/null; then 5461 if test -s conftest.err; then 5462 ac_cpp_err=$ac_c_preproc_warn_flag 5463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5464 else 5465 ac_cpp_err= 5466 fi 5467else 5468 ac_cpp_err=yes 5469fi 5470if test -z "$ac_cpp_err"; then 5471 ac_header_preproc=yes 5472else 5473 echo "$as_me: failed program was:" >&5 5474sed 's/^/| /' conftest.$ac_ext >&5 5475 5476 ac_header_preproc=no 5477fi 5478rm -f conftest.err conftest.$ac_ext 5479echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5480echo "${ECHO_T}$ac_header_preproc" >&6 5481 5482# So? What about this header? 5483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5484 yes:no: ) 5485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5486echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5488echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5489 ac_header_preproc=yes 5490 ;; 5491 no:yes:* ) 5492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5493echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5495echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5497echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5499echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5503echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5504 ( 5505 cat <<\_ASBOX 5506## ------------------------------ ## 5507## Report this to sean@gigave.org ## 5508## ------------------------------ ## 5509_ASBOX 5510 ) | 5511 sed "s/^/$as_me: WARNING: /" >&2 5512 ;; 5513esac 5514echo "$as_me:$LINENO: checking for $ac_header" >&5 5515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5516if eval "test \"\${$as_ac_Header+set}\" = set"; then 5517 echo $ECHO_N "(cached) $ECHO_C" >&6 5518else 5519 eval "$as_ac_Header=\$ac_header_preproc" 5520fi 5521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5523 5524fi 5525if test `eval echo '${'$as_ac_Header'}'` = yes; then 5526 cat >>confdefs.h <<_ACEOF 5527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5528_ACEOF 5529 5530fi 5531 5532done 5533 5534ac_ext=cc 5535ac_cpp='$CXXCPP $CPPFLAGS' 5536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5539if test -n "$ac_tool_prefix"; then 5540 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5541 do 5542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5543set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5544echo "$as_me:$LINENO: checking for $ac_word" >&5 5545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5546if test "${ac_cv_prog_CXX+set}" = set; then 5547 echo $ECHO_N "(cached) $ECHO_C" >&6 5548else 5549 if test -n "$CXX"; then 5550 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5551else 5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5553for as_dir in $PATH 5554do 5555 IFS=$as_save_IFS 5556 test -z "$as_dir" && as_dir=. 5557 for ac_exec_ext in '' $ac_executable_extensions; do 5558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5559 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5561 break 2 5562 fi 5563done 5564done 5565 5566fi 5567fi 5568CXX=$ac_cv_prog_CXX 5569if test -n "$CXX"; then 5570 echo "$as_me:$LINENO: result: $CXX" >&5 5571echo "${ECHO_T}$CXX" >&6 5572else 5573 echo "$as_me:$LINENO: result: no" >&5 5574echo "${ECHO_T}no" >&6 5575fi 5576 5577 test -n "$CXX" && break 5578 done 5579fi 5580if test -z "$CXX"; then 5581 ac_ct_CXX=$CXX 5582 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5583do 5584 # Extract the first word of "$ac_prog", so it can be a program name with args. 5585set dummy $ac_prog; ac_word=$2 5586echo "$as_me:$LINENO: checking for $ac_word" >&5 5587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5588if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5589 echo $ECHO_N "(cached) $ECHO_C" >&6 5590else 5591 if test -n "$ac_ct_CXX"; then 5592 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5593else 5594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5595for as_dir in $PATH 5596do 5597 IFS=$as_save_IFS 5598 test -z "$as_dir" && as_dir=. 5599 for ac_exec_ext in '' $ac_executable_extensions; do 5600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5601 ac_cv_prog_ac_ct_CXX="$ac_prog" 5602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5603 break 2 5604 fi 5605done 5606done 5607 5608fi 5609fi 5610ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5611if test -n "$ac_ct_CXX"; then 5612 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5613echo "${ECHO_T}$ac_ct_CXX" >&6 5614else 5615 echo "$as_me:$LINENO: result: no" >&5 5616echo "${ECHO_T}no" >&6 5617fi 5618 5619 test -n "$ac_ct_CXX" && break 5620done 5621test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 5622 5623 CXX=$ac_ct_CXX 5624fi 5625 5626 5627# Provide some information about the compiler. 5628echo "$as_me:$LINENO:" \ 5629 "checking for C++ compiler version" >&5 5630ac_compiler=`set X $ac_compile; echo $2` 5631{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5632 (eval $ac_compiler --version </dev/null >&5) 2>&5 5633 ac_status=$? 5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5635 (exit $ac_status); } 5636{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5637 (eval $ac_compiler -v </dev/null >&5) 2>&5 5638 ac_status=$? 5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5640 (exit $ac_status); } 5641{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5642 (eval $ac_compiler -V </dev/null >&5) 2>&5 5643 ac_status=$? 5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5645 (exit $ac_status); } 5646 5647echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5648echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 5649if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5650 echo $ECHO_N "(cached) $ECHO_C" >&6 5651else 5652 cat >conftest.$ac_ext <<_ACEOF 5653/* confdefs.h. */ 5654_ACEOF 5655cat confdefs.h >>conftest.$ac_ext 5656cat >>conftest.$ac_ext <<_ACEOF 5657/* end confdefs.h. */ 5658 5659int 5660main () 5661{ 5662#ifndef __GNUC__ 5663 choke me 5664#endif 5665 5666 ; 5667 return 0; 5668} 5669_ACEOF 5670rm -f conftest.$ac_objext 5671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5672 (eval $ac_compile) 2>conftest.er1 5673 ac_status=$? 5674 grep -v '^ *+' conftest.er1 >conftest.err 5675 rm -f conftest.er1 5676 cat conftest.err >&5 5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5678 (exit $ac_status); } && 5679 { ac_try='test -z "$ac_cxx_werror_flag" 5680 || test ! -s conftest.err' 5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5682 (eval $ac_try) 2>&5 5683 ac_status=$? 5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5685 (exit $ac_status); }; } && 5686 { ac_try='test -s conftest.$ac_objext' 5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5688 (eval $ac_try) 2>&5 5689 ac_status=$? 5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5691 (exit $ac_status); }; }; then 5692 ac_compiler_gnu=yes 5693else 5694 echo "$as_me: failed program was:" >&5 5695sed 's/^/| /' conftest.$ac_ext >&5 5696 5697ac_compiler_gnu=no 5698fi 5699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5700ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5701 5702fi 5703echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5704echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 5705GXX=`test $ac_compiler_gnu = yes && echo yes` 5706ac_test_CXXFLAGS=${CXXFLAGS+set} 5707ac_save_CXXFLAGS=$CXXFLAGS 5708CXXFLAGS="-g" 5709echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5710echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 5711if test "${ac_cv_prog_cxx_g+set}" = set; then 5712 echo $ECHO_N "(cached) $ECHO_C" >&6 5713else 5714 cat >conftest.$ac_ext <<_ACEOF 5715/* confdefs.h. */ 5716_ACEOF 5717cat confdefs.h >>conftest.$ac_ext 5718cat >>conftest.$ac_ext <<_ACEOF 5719/* end confdefs.h. */ 5720 5721int 5722main () 5723{ 5724 5725 ; 5726 return 0; 5727} 5728_ACEOF 5729rm -f conftest.$ac_objext 5730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5731 (eval $ac_compile) 2>conftest.er1 5732 ac_status=$? 5733 grep -v '^ *+' conftest.er1 >conftest.err 5734 rm -f conftest.er1 5735 cat conftest.err >&5 5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5737 (exit $ac_status); } && 5738 { ac_try='test -z "$ac_cxx_werror_flag" 5739 || test ! -s conftest.err' 5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5741 (eval $ac_try) 2>&5 5742 ac_status=$? 5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5744 (exit $ac_status); }; } && 5745 { ac_try='test -s conftest.$ac_objext' 5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5747 (eval $ac_try) 2>&5 5748 ac_status=$? 5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5750 (exit $ac_status); }; }; then 5751 ac_cv_prog_cxx_g=yes 5752else 5753 echo "$as_me: failed program was:" >&5 5754sed 's/^/| /' conftest.$ac_ext >&5 5755 5756ac_cv_prog_cxx_g=no 5757fi 5758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5759fi 5760echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5761echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 5762if test "$ac_test_CXXFLAGS" = set; then 5763 CXXFLAGS=$ac_save_CXXFLAGS 5764elif test $ac_cv_prog_cxx_g = yes; then 5765 if test "$GXX" = yes; then 5766 CXXFLAGS="-g -O2" 5767 else 5768 CXXFLAGS="-g" 5769 fi 5770else 5771 if test "$GXX" = yes; then 5772 CXXFLAGS="-O2" 5773 else 5774 CXXFLAGS= 5775 fi 5776fi 5777for ac_declaration in \ 5778 '' \ 5779 'extern "C" void std::exit (int) throw (); using std::exit;' \ 5780 'extern "C" void std::exit (int); using std::exit;' \ 5781 'extern "C" void exit (int) throw ();' \ 5782 'extern "C" void exit (int);' \ 5783 'void exit (int);' 5784do 5785 cat >conftest.$ac_ext <<_ACEOF 5786/* confdefs.h. */ 5787_ACEOF 5788cat confdefs.h >>conftest.$ac_ext 5789cat >>conftest.$ac_ext <<_ACEOF 5790/* end confdefs.h. */ 5791$ac_declaration 5792#include <stdlib.h> 5793int 5794main () 5795{ 5796exit (42); 5797 ; 5798 return 0; 5799} 5800_ACEOF 5801rm -f conftest.$ac_objext 5802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5803 (eval $ac_compile) 2>conftest.er1 5804 ac_status=$? 5805 grep -v '^ *+' conftest.er1 >conftest.err 5806 rm -f conftest.er1 5807 cat conftest.err >&5 5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5809 (exit $ac_status); } && 5810 { ac_try='test -z "$ac_cxx_werror_flag" 5811 || test ! -s conftest.err' 5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5813 (eval $ac_try) 2>&5 5814 ac_status=$? 5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5816 (exit $ac_status); }; } && 5817 { ac_try='test -s conftest.$ac_objext' 5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5819 (eval $ac_try) 2>&5 5820 ac_status=$? 5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5822 (exit $ac_status); }; }; then 5823 : 5824else 5825 echo "$as_me: failed program was:" >&5 5826sed 's/^/| /' conftest.$ac_ext >&5 5827 5828continue 5829fi 5830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5831 cat >conftest.$ac_ext <<_ACEOF 5832/* confdefs.h. */ 5833_ACEOF 5834cat confdefs.h >>conftest.$ac_ext 5835cat >>conftest.$ac_ext <<_ACEOF 5836/* end confdefs.h. */ 5837$ac_declaration 5838int 5839main () 5840{ 5841exit (42); 5842 ; 5843 return 0; 5844} 5845_ACEOF 5846rm -f conftest.$ac_objext 5847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5848 (eval $ac_compile) 2>conftest.er1 5849 ac_status=$? 5850 grep -v '^ *+' conftest.er1 >conftest.err 5851 rm -f conftest.er1 5852 cat conftest.err >&5 5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5854 (exit $ac_status); } && 5855 { ac_try='test -z "$ac_cxx_werror_flag" 5856 || test ! -s conftest.err' 5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5858 (eval $ac_try) 2>&5 5859 ac_status=$? 5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5861 (exit $ac_status); }; } && 5862 { ac_try='test -s conftest.$ac_objext' 5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5864 (eval $ac_try) 2>&5 5865 ac_status=$? 5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5867 (exit $ac_status); }; }; then 5868 break 5869else 5870 echo "$as_me: failed program was:" >&5 5871sed 's/^/| /' conftest.$ac_ext >&5 5872 5873fi 5874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5875done 5876rm -f conftest* 5877if test -n "$ac_declaration"; then 5878 echo '#ifdef __cplusplus' >>confdefs.h 5879 echo $ac_declaration >>confdefs.h 5880 echo '#endif' >>confdefs.h 5881fi 5882 5883ac_ext=cc 5884ac_cpp='$CXXCPP $CPPFLAGS' 5885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5888 5889depcc="$CXX" am_compiler_list= 5890 5891echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5892echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5893if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5894 echo $ECHO_N "(cached) $ECHO_C" >&6 5895else 5896 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5897 # We make a subdir and do the tests there. Otherwise we can end up 5898 # making bogus files that we don't know about and never remove. For 5899 # instance it was reported that on HP-UX the gcc test will end up 5900 # making a dummy file named `D' -- because `-MD' means `put the output 5901 # in D'. 5902 mkdir conftest.dir 5903 # Copy depcomp to subdir because otherwise we won't find it if we're 5904 # using a relative directory. 5905 cp "$am_depcomp" conftest.dir 5906 cd conftest.dir 5907 # We will build objects and dependencies in a subdirectory because 5908 # it helps to detect inapplicable dependency modes. For instance 5909 # both Tru64's cc and ICC support -MD to output dependencies as a 5910 # side effect of compilation, but ICC will put the dependencies in 5911 # the current directory while Tru64 will put them in the object 5912 # directory. 5913 mkdir sub 5914 5915 am_cv_CXX_dependencies_compiler_type=none 5916 if test "$am_compiler_list" = ""; then 5917 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5918 fi 5919 for depmode in $am_compiler_list; do 5920 # Setup a source with many dependencies, because some compilers 5921 # like to wrap large dependency lists on column 80 (with \), and 5922 # we should not choose a depcomp mode which is confused by this. 5923 # 5924 # We need to recreate these files for each test, as the compiler may 5925 # overwrite some of them when testing with obscure command lines. 5926 # This happens at least with the AIX C compiler. 5927 : > sub/conftest.c 5928 for i in 1 2 3 4 5 6; do 5929 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5930 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5931 # Solaris 8's {/usr,}/bin/sh. 5932 touch sub/conftst$i.h 5933 done 5934 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5935 5936 case $depmode in 5937 nosideeffect) 5938 # after this tag, mechanisms are not by side-effect, so they'll 5939 # only be used when explicitly requested 5940 if test "x$enable_dependency_tracking" = xyes; then 5941 continue 5942 else 5943 break 5944 fi 5945 ;; 5946 none) break ;; 5947 esac 5948 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5949 # mode. It turns out that the SunPro C++ compiler does not properly 5950 # handle `-M -o', and we need to detect this. 5951 if depmode=$depmode \ 5952 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5953 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5954 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5955 >/dev/null 2>conftest.err && 5956 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5957 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5958 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5959 # icc doesn't choke on unknown options, it will just issue warnings 5960 # or remarks (even with -Werror). So we grep stderr for any message 5961 # that says an option was ignored or not supported. 5962 # When given -MP, icc 7.0 and 7.1 complain thusly: 5963 # icc: Command line warning: ignoring option '-M'; no argument required 5964 # The diagnosis changed in icc 8.0: 5965 # icc: Command line remark: option '-MP' not supported 5966 if (grep 'ignoring option' conftest.err || 5967 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5968 am_cv_CXX_dependencies_compiler_type=$depmode 5969 break 5970 fi 5971 fi 5972 done 5973 5974 cd .. 5975 rm -rf conftest.dir 5976else 5977 am_cv_CXX_dependencies_compiler_type=none 5978fi 5979 5980fi 5981echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5982echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5983CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5984 5985 5986 5987if 5988 test "x$enable_dependency_tracking" != xno \ 5989 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5990 am__fastdepCXX_TRUE= 5991 am__fastdepCXX_FALSE='#' 5992else 5993 am__fastdepCXX_TRUE='#' 5994 am__fastdepCXX_FALSE= 5995fi 5996 5997 5998 5999 6000if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6001 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6002 (test "X$CXX" != "Xg++"))) ; then 6003 ac_ext=cc 6004ac_cpp='$CXXCPP $CPPFLAGS' 6005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6008echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6009echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 6010if test -z "$CXXCPP"; then 6011 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6012 echo $ECHO_N "(cached) $ECHO_C" >&6 6013else 6014 # Double quotes because CXXCPP needs to be expanded 6015 for CXXCPP in "$CXX -E" "/lib/cpp" 6016 do 6017 ac_preproc_ok=false 6018for ac_cxx_preproc_warn_flag in '' yes 6019do 6020 # Use a header file that comes with gcc, so configuring glibc 6021 # with a fresh cross-compiler works. 6022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6023 # <limits.h> exists even on freestanding compilers. 6024 # On the NeXT, cc -E runs the code through the compiler's parser, 6025 # not just through cpp. "Syntax error" is here to catch this case. 6026 cat >conftest.$ac_ext <<_ACEOF 6027/* confdefs.h. */ 6028_ACEOF 6029cat confdefs.h >>conftest.$ac_ext 6030cat >>conftest.$ac_ext <<_ACEOF 6031/* end confdefs.h. */ 6032#ifdef __STDC__ 6033# include <limits.h> 6034#else 6035# include <assert.h> 6036#endif 6037 Syntax error 6038_ACEOF 6039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6041 ac_status=$? 6042 grep -v '^ *+' conftest.er1 >conftest.err 6043 rm -f conftest.er1 6044 cat conftest.err >&5 6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6046 (exit $ac_status); } >/dev/null; then 6047 if test -s conftest.err; then 6048 ac_cpp_err=$ac_cxx_preproc_warn_flag 6049 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6050 else 6051 ac_cpp_err= 6052 fi 6053else 6054 ac_cpp_err=yes 6055fi 6056if test -z "$ac_cpp_err"; then 6057 : 6058else 6059 echo "$as_me: failed program was:" >&5 6060sed 's/^/| /' conftest.$ac_ext >&5 6061 6062 # Broken: fails on valid input. 6063continue 6064fi 6065rm -f conftest.err conftest.$ac_ext 6066 6067 # OK, works on sane cases. Now check whether non-existent headers 6068 # can be detected and how. 6069 cat >conftest.$ac_ext <<_ACEOF 6070/* confdefs.h. */ 6071_ACEOF 6072cat confdefs.h >>conftest.$ac_ext 6073cat >>conftest.$ac_ext <<_ACEOF 6074/* end confdefs.h. */ 6075#include <ac_nonexistent.h> 6076_ACEOF 6077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6079 ac_status=$? 6080 grep -v '^ *+' conftest.er1 >conftest.err 6081 rm -f conftest.er1 6082 cat conftest.err >&5 6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6084 (exit $ac_status); } >/dev/null; then 6085 if test -s conftest.err; then 6086 ac_cpp_err=$ac_cxx_preproc_warn_flag 6087 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6088 else 6089 ac_cpp_err= 6090 fi 6091else 6092 ac_cpp_err=yes 6093fi 6094if test -z "$ac_cpp_err"; then 6095 # Broken: success on invalid input. 6096continue 6097else 6098 echo "$as_me: failed program was:" >&5 6099sed 's/^/| /' conftest.$ac_ext >&5 6100 6101 # Passes both tests. 6102ac_preproc_ok=: 6103break 6104fi 6105rm -f conftest.err conftest.$ac_ext 6106 6107done 6108# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6109rm -f conftest.err conftest.$ac_ext 6110if $ac_preproc_ok; then 6111 break 6112fi 6113 6114 done 6115 ac_cv_prog_CXXCPP=$CXXCPP 6116 6117fi 6118 CXXCPP=$ac_cv_prog_CXXCPP 6119else 6120 ac_cv_prog_CXXCPP=$CXXCPP 6121fi 6122echo "$as_me:$LINENO: result: $CXXCPP" >&5 6123echo "${ECHO_T}$CXXCPP" >&6 6124ac_preproc_ok=false 6125for ac_cxx_preproc_warn_flag in '' yes 6126do 6127 # Use a header file that comes with gcc, so configuring glibc 6128 # with a fresh cross-compiler works. 6129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6130 # <limits.h> exists even on freestanding compilers. 6131 # On the NeXT, cc -E runs the code through the compiler's parser, 6132 # not just through cpp. "Syntax error" is here to catch this case. 6133 cat >conftest.$ac_ext <<_ACEOF 6134/* confdefs.h. */ 6135_ACEOF 6136cat confdefs.h >>conftest.$ac_ext 6137cat >>conftest.$ac_ext <<_ACEOF 6138/* end confdefs.h. */ 6139#ifdef __STDC__ 6140# include <limits.h> 6141#else 6142# include <assert.h> 6143#endif 6144 Syntax error 6145_ACEOF 6146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6148 ac_status=$? 6149 grep -v '^ *+' conftest.er1 >conftest.err 6150 rm -f conftest.er1 6151 cat conftest.err >&5 6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6153 (exit $ac_status); } >/dev/null; then 6154 if test -s conftest.err; then 6155 ac_cpp_err=$ac_cxx_preproc_warn_flag 6156 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6157 else 6158 ac_cpp_err= 6159 fi 6160else 6161 ac_cpp_err=yes 6162fi 6163if test -z "$ac_cpp_err"; then 6164 : 6165else 6166 echo "$as_me: failed program was:" >&5 6167sed 's/^/| /' conftest.$ac_ext >&5 6168 6169 # Broken: fails on valid input. 6170continue 6171fi 6172rm -f conftest.err conftest.$ac_ext 6173 6174 # OK, works on sane cases. Now check whether non-existent headers 6175 # can be detected and how. 6176 cat >conftest.$ac_ext <<_ACEOF 6177/* confdefs.h. */ 6178_ACEOF 6179cat confdefs.h >>conftest.$ac_ext 6180cat >>conftest.$ac_ext <<_ACEOF 6181/* end confdefs.h. */ 6182#include <ac_nonexistent.h> 6183_ACEOF 6184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6186 ac_status=$? 6187 grep -v '^ *+' conftest.er1 >conftest.err 6188 rm -f conftest.er1 6189 cat conftest.err >&5 6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6191 (exit $ac_status); } >/dev/null; then 6192 if test -s conftest.err; then 6193 ac_cpp_err=$ac_cxx_preproc_warn_flag 6194 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6195 else 6196 ac_cpp_err= 6197 fi 6198else 6199 ac_cpp_err=yes 6200fi 6201if test -z "$ac_cpp_err"; then 6202 # Broken: success on invalid input. 6203continue 6204else 6205 echo "$as_me: failed program was:" >&5 6206sed 's/^/| /' conftest.$ac_ext >&5 6207 6208 # Passes both tests. 6209ac_preproc_ok=: 6210break 6211fi 6212rm -f conftest.err conftest.$ac_ext 6213 6214done 6215# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6216rm -f conftest.err conftest.$ac_ext 6217if $ac_preproc_ok; then 6218 : 6219else 6220 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6221See \`config.log' for more details." >&5 6222echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6223See \`config.log' for more details." >&2;} 6224 { (exit 1); exit 1; }; } 6225fi 6226 6227ac_ext=cc 6228ac_cpp='$CXXCPP $CPPFLAGS' 6229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6232 6233fi 6234 6235 6236ac_ext=f 6237ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6238ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6239ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6240if test -n "$ac_tool_prefix"; then 6241 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 6242 do 6243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6244set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6245echo "$as_me:$LINENO: checking for $ac_word" >&5 6246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6247if test "${ac_cv_prog_F77+set}" = set; then 6248 echo $ECHO_N "(cached) $ECHO_C" >&6 6249else 6250 if test -n "$F77"; then 6251 ac_cv_prog_F77="$F77" # Let the user override the test. 6252else 6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6254for as_dir in $PATH 6255do 6256 IFS=$as_save_IFS 6257 test -z "$as_dir" && as_dir=. 6258 for ac_exec_ext in '' $ac_executable_extensions; do 6259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6260 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6262 break 2 6263 fi 6264done 6265done 6266 6267fi 6268fi 6269F77=$ac_cv_prog_F77 6270if test -n "$F77"; then 6271 echo "$as_me:$LINENO: result: $F77" >&5 6272echo "${ECHO_T}$F77" >&6 6273else 6274 echo "$as_me:$LINENO: result: no" >&5 6275echo "${ECHO_T}no" >&6 6276fi 6277 6278 test -n "$F77" && break 6279 done 6280fi 6281if test -z "$F77"; then 6282 ac_ct_F77=$F77 6283 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 6284do 6285 # Extract the first word of "$ac_prog", so it can be a program name with args. 6286set dummy $ac_prog; ac_word=$2 6287echo "$as_me:$LINENO: checking for $ac_word" >&5 6288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6289if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6290 echo $ECHO_N "(cached) $ECHO_C" >&6 6291else 6292 if test -n "$ac_ct_F77"; then 6293 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6294else 6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6296for as_dir in $PATH 6297do 6298 IFS=$as_save_IFS 6299 test -z "$as_dir" && as_dir=. 6300 for ac_exec_ext in '' $ac_executable_extensions; do 6301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6302 ac_cv_prog_ac_ct_F77="$ac_prog" 6303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6304 break 2 6305 fi 6306done 6307done 6308 6309fi 6310fi 6311ac_ct_F77=$ac_cv_prog_ac_ct_F77 6312if test -n "$ac_ct_F77"; then 6313 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6314echo "${ECHO_T}$ac_ct_F77" >&6 6315else 6316 echo "$as_me:$LINENO: result: no" >&5 6317echo "${ECHO_T}no" >&6 6318fi 6319 6320 test -n "$ac_ct_F77" && break 6321done 6322 6323 F77=$ac_ct_F77 6324fi 6325 6326 6327# Provide some information about the compiler. 6328echo "$as_me:6328:" \ 6329 "checking for Fortran 77 compiler version" >&5 6330ac_compiler=`set X $ac_compile; echo $2` 6331{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 6332 (eval $ac_compiler --version </dev/null >&5) 2>&5 6333 ac_status=$? 6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6335 (exit $ac_status); } 6336{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 6337 (eval $ac_compiler -v </dev/null >&5) 2>&5 6338 ac_status=$? 6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6340 (exit $ac_status); } 6341{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 6342 (eval $ac_compiler -V </dev/null >&5) 2>&5 6343 ac_status=$? 6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6345 (exit $ac_status); } 6346rm -f a.out 6347 6348# If we don't use `.F' as extension, the preprocessor is not run on the 6349# input file. (Note that this only needs to work for GNU compilers.) 6350ac_save_ext=$ac_ext 6351ac_ext=F 6352echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6353echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 6354if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6355 echo $ECHO_N "(cached) $ECHO_C" >&6 6356else 6357 cat >conftest.$ac_ext <<_ACEOF 6358 program main 6359#ifndef __GNUC__ 6360 choke me 6361#endif 6362 6363 end 6364_ACEOF 6365rm -f conftest.$ac_objext 6366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6367 (eval $ac_compile) 2>conftest.er1 6368 ac_status=$? 6369 grep -v '^ *+' conftest.er1 >conftest.err 6370 rm -f conftest.er1 6371 cat conftest.err >&5 6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6373 (exit $ac_status); } && 6374 { ac_try='test -z "$ac_f77_werror_flag" 6375 || test ! -s conftest.err' 6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6377 (eval $ac_try) 2>&5 6378 ac_status=$? 6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6380 (exit $ac_status); }; } && 6381 { ac_try='test -s conftest.$ac_objext' 6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6383 (eval $ac_try) 2>&5 6384 ac_status=$? 6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6386 (exit $ac_status); }; }; then 6387 ac_compiler_gnu=yes 6388else 6389 echo "$as_me: failed program was:" >&5 6390sed 's/^/| /' conftest.$ac_ext >&5 6391 6392ac_compiler_gnu=no 6393fi 6394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6395ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6396 6397fi 6398echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6399echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 6400ac_ext=$ac_save_ext 6401ac_test_FFLAGS=${FFLAGS+set} 6402ac_save_FFLAGS=$FFLAGS 6403FFLAGS= 6404echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6405echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 6406if test "${ac_cv_prog_f77_g+set}" = set; then 6407 echo $ECHO_N "(cached) $ECHO_C" >&6 6408else 6409 FFLAGS=-g 6410cat >conftest.$ac_ext <<_ACEOF 6411 program main 6412 6413 end 6414_ACEOF 6415rm -f conftest.$ac_objext 6416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6417 (eval $ac_compile) 2>conftest.er1 6418 ac_status=$? 6419 grep -v '^ *+' conftest.er1 >conftest.err 6420 rm -f conftest.er1 6421 cat conftest.err >&5 6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6423 (exit $ac_status); } && 6424 { ac_try='test -z "$ac_f77_werror_flag" 6425 || test ! -s conftest.err' 6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6427 (eval $ac_try) 2>&5 6428 ac_status=$? 6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6430 (exit $ac_status); }; } && 6431 { ac_try='test -s conftest.$ac_objext' 6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6433 (eval $ac_try) 2>&5 6434 ac_status=$? 6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6436 (exit $ac_status); }; }; then 6437 ac_cv_prog_f77_g=yes 6438else 6439 echo "$as_me: failed program was:" >&5 6440sed 's/^/| /' conftest.$ac_ext >&5 6441 6442ac_cv_prog_f77_g=no 6443fi 6444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6445 6446fi 6447echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6448echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 6449if test "$ac_test_FFLAGS" = set; then 6450 FFLAGS=$ac_save_FFLAGS 6451elif test $ac_cv_prog_f77_g = yes; then 6452 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6453 FFLAGS="-g -O2" 6454 else 6455 FFLAGS="-g" 6456 fi 6457else 6458 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6459 FFLAGS="-O2" 6460 else 6461 FFLAGS= 6462 fi 6463fi 6464 6465G77=`test $ac_compiler_gnu = yes && echo yes` 6466ac_ext=c 6467ac_cpp='$CPP $CPPFLAGS' 6468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6470ac_compiler_gnu=$ac_cv_c_compiler_gnu 6471 6472 6473 6474# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6475 6476# find the maximum length of command line arguments 6477echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6478echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 6479if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6480 echo $ECHO_N "(cached) $ECHO_C" >&6 6481else 6482 i=0 6483 teststring="ABCD" 6484 6485 case $build_os in 6486 msdosdjgpp*) 6487 # On DJGPP, this test can blow up pretty badly due to problems in libc 6488 # (any single argument exceeding 2000 bytes causes a buffer overrun 6489 # during glob expansion). Even if it were fixed, the result of this 6490 # check would be larger than it should be. 6491 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6492 ;; 6493 6494 gnu*) 6495 # Under GNU Hurd, this test is not required because there is 6496 # no limit to the length of command line arguments. 6497 # Libtool will interpret -1 as no limit whatsoever 6498 lt_cv_sys_max_cmd_len=-1; 6499 ;; 6500 6501 cygwin* | mingw*) 6502 # On Win9x/ME, this test blows up -- it succeeds, but takes 6503 # about 5 minutes as the teststring grows exponentially. 6504 # Worse, since 9x/ME are not pre-emptively multitasking, 6505 # you end up with a "frozen" computer, even though with patience 6506 # the test eventually succeeds (with a max line length of 256k). 6507 # Instead, let's just punt: use the minimum linelength reported by 6508 # all of the supported platforms: 8192 (on NT/2K/XP). 6509 lt_cv_sys_max_cmd_len=8192; 6510 ;; 6511 6512 amigaos*) 6513 # On AmigaOS with pdksh, this test takes hours, literally. 6514 # So we just punt and use a minimum line length of 8192. 6515 lt_cv_sys_max_cmd_len=8192; 6516 ;; 6517 6518 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6519 # This has been around since 386BSD, at least. Likely further. 6520 if test -x /sbin/sysctl; then 6521 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6522 elif test -x /usr/sbin/sysctl; then 6523 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6524 else 6525 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD 6526 fi 6527 # And add a safety zone 6528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6530 ;; 6531 osf*) 6532 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6533 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6534 # nice to cause kernel panics so lets avoid the loop below. 6535 # First set a reasonable default. 6536 lt_cv_sys_max_cmd_len=16384 6537 # 6538 if test -x /sbin/sysconfig; then 6539 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6540 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6541 esac 6542 fi 6543 ;; 6544 *) 6545 # If test is not a shell built-in, we'll probably end up computing a 6546 # maximum length that is only half of the actual maximum length, but 6547 # we can't tell. 6548 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6549 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6550 = "XX$teststring") >/dev/null 2>&1 && 6551 new_result=`expr "X$teststring" : ".*" 2>&1` && 6552 lt_cv_sys_max_cmd_len=$new_result && 6553 test $i != 17 # 1/2 MB should be enough 6554 do 6555 i=`expr $i + 1` 6556 teststring=$teststring$teststring 6557 done 6558 teststring= 6559 # Add a significant safety factor because C++ compilers can tack on massive 6560 # amounts of additional arguments before passing them to the linker. 6561 # It appears as though 1/2 is a usable value. 6562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6563 ;; 6564 esac 6565 6566fi 6567 6568if test -n $lt_cv_sys_max_cmd_len ; then 6569 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6570echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 6571else 6572 echo "$as_me:$LINENO: result: none" >&5 6573echo "${ECHO_T}none" >&6 6574fi 6575 6576 6577 6578 6579# Check for command to grab the raw symbol name followed by C symbol from nm. 6580echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6581echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 6582if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6583 echo $ECHO_N "(cached) $ECHO_C" >&6 6584else 6585 6586# These are sane defaults that work on at least a few old systems. 6587# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6588 6589# Character class describing NM global symbol codes. 6590symcode='[BCDEGRST]' 6591 6592# Regexp to match symbols that can be accessed directly from C. 6593sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6594 6595# Transform an extracted symbol line into a proper C declaration 6596lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6597 6598# Transform an extracted symbol line into symbol name and symbol address 6599lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6600 6601# Define system-specific variables. 6602case $host_os in 6603aix*) 6604 symcode='[BCDT]' 6605 ;; 6606cygwin* | mingw* | pw32*) 6607 symcode='[ABCDGISTW]' 6608 ;; 6609hpux*) # Its linker distinguishes data from code symbols 6610 if test "$host_cpu" = ia64; then 6611 symcode='[ABCDEGRST]' 6612 fi 6613 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6614 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6615 ;; 6616linux*) 6617 if test "$host_cpu" = ia64; then 6618 symcode='[ABCDGIRSTW]' 6619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6620 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6621 fi 6622 ;; 6623irix* | nonstopux*) 6624 symcode='[BCDEGRST]' 6625 ;; 6626osf*) 6627 symcode='[BCDEGQRST]' 6628 ;; 6629solaris* | sysv5*) 6630 symcode='[BDRT]' 6631 ;; 6632sysv4) 6633 symcode='[DFNSTU]' 6634 ;; 6635esac 6636 6637# Handle CRLF in mingw tool chain 6638opt_cr= 6639case $build_os in 6640mingw*) 6641 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6642 ;; 6643esac 6644 6645# If we're using GNU nm, then use its standard symbol codes. 6646case `$NM -V 2>&1` in 6647*GNU* | *'with BFD'*) 6648 symcode='[ABCDGIRSTW]' ;; 6649esac 6650 6651# Try without a prefix undercore, then with it. 6652for ac_symprfx in "" "_"; do 6653 6654 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6655 symxfrm="\\1 $ac_symprfx\\2 \\2" 6656 6657 # Write the raw and C identifiers. 6658 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6659 6660 # Check to see that the pipe works correctly. 6661 pipe_works=no 6662 6663 rm -f conftest* 6664 cat > conftest.$ac_ext <<EOF 6665#ifdef __cplusplus 6666extern "C" { 6667#endif 6668char nm_test_var; 6669void nm_test_func(){} 6670#ifdef __cplusplus 6671} 6672#endif 6673int main(){nm_test_var='a';nm_test_func();return(0);} 6674EOF 6675 6676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6677 (eval $ac_compile) 2>&5 6678 ac_status=$? 6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6680 (exit $ac_status); }; then 6681 # Now try to grab the symbols. 6682 nlist=conftest.nm 6683 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6684 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6685 ac_status=$? 6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6687 (exit $ac_status); } && test -s "$nlist"; then 6688 # Try sorting and uniquifying the output. 6689 if sort "$nlist" | uniq > "$nlist"T; then 6690 mv -f "$nlist"T "$nlist" 6691 else 6692 rm -f "$nlist"T 6693 fi 6694 6695 # Make sure that we snagged all the symbols we need. 6696 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6697 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6698 cat <<EOF > conftest.$ac_ext 6699#ifdef __cplusplus 6700extern "C" { 6701#endif 6702 6703EOF 6704 # Now generate the symbol file. 6705 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6706 6707 cat <<EOF >> conftest.$ac_ext 6708#if defined (__STDC__) && __STDC__ 6709# define lt_ptr_t void * 6710#else 6711# define lt_ptr_t char * 6712# define const 6713#endif 6714 6715/* The mapping between symbol names and symbols. */ 6716const struct { 6717 const char *name; 6718 lt_ptr_t address; 6719} 6720lt_preloaded_symbols[] = 6721{ 6722EOF 6723 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6724 cat <<\EOF >> conftest.$ac_ext 6725 {0, (lt_ptr_t) 0} 6726}; 6727 6728#ifdef __cplusplus 6729} 6730#endif 6731EOF 6732 # Now try linking the two files. 6733 mv conftest.$ac_objext conftstm.$ac_objext 6734 lt_save_LIBS="$LIBS" 6735 lt_save_CFLAGS="$CFLAGS" 6736 LIBS="conftstm.$ac_objext" 6737 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6739 (eval $ac_link) 2>&5 6740 ac_status=$? 6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6742 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6743 pipe_works=yes 6744 fi 6745 LIBS="$lt_save_LIBS" 6746 CFLAGS="$lt_save_CFLAGS" 6747 else 6748 echo "cannot find nm_test_func in $nlist" >&5 6749 fi 6750 else 6751 echo "cannot find nm_test_var in $nlist" >&5 6752 fi 6753 else 6754 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6755 fi 6756 else 6757 echo "$progname: failed program was:" >&5 6758 cat conftest.$ac_ext >&5 6759 fi 6760 rm -f conftest* conftst* 6761 6762 # Do not use the global_symbol_pipe unless it works. 6763 if test "$pipe_works" = yes; then 6764 break 6765 else 6766 lt_cv_sys_global_symbol_pipe= 6767 fi 6768done 6769 6770fi 6771 6772if test -z "$lt_cv_sys_global_symbol_pipe"; then 6773 lt_cv_sys_global_symbol_to_cdecl= 6774fi 6775if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6776 echo "$as_me:$LINENO: result: failed" >&5 6777echo "${ECHO_T}failed" >&6 6778else 6779 echo "$as_me:$LINENO: result: ok" >&5 6780echo "${ECHO_T}ok" >&6 6781fi 6782 6783echo "$as_me:$LINENO: checking for objdir" >&5 6784echo $ECHO_N "checking for objdir... $ECHO_C" >&6 6785if test "${lt_cv_objdir+set}" = set; then 6786 echo $ECHO_N "(cached) $ECHO_C" >&6 6787else 6788 rm -f .libs 2>/dev/null 6789mkdir .libs 2>/dev/null 6790if test -d .libs; then 6791 lt_cv_objdir=.libs 6792else 6793 # MS-DOS does not allow filenames that begin with a dot. 6794 lt_cv_objdir=_libs 6795fi 6796rmdir .libs 2>/dev/null 6797fi 6798echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6799echo "${ECHO_T}$lt_cv_objdir" >&6 6800objdir=$lt_cv_objdir 6801 6802 6803 6804 6805 6806case $host_os in 6807aix3*) 6808 # AIX sometimes has problems with the GCC collect2 program. For some 6809 # reason, if we set the COLLECT_NAMES environment variable, the problems 6810 # vanish in a puff of smoke. 6811 if test "X${COLLECT_NAMES+set}" != Xset; then 6812 COLLECT_NAMES= 6813 export COLLECT_NAMES 6814 fi 6815 ;; 6816esac 6817 6818# Sed substitution that helps us do robust quoting. It backslashifies 6819# metacharacters that are still active within double-quoted strings. 6820Xsed='sed -e 1s/^X//' 6821sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6822 6823# Same as above, but do not quote variable references. 6824double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6825 6826# Sed substitution to delay expansion of an escaped shell variable in a 6827# double_quote_subst'ed string. 6828delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6829 6830# Sed substitution to avoid accidental globbing in evaled expressions 6831no_glob_subst='s/\*/\\\*/g' 6832 6833# Constants: 6834rm="rm -f" 6835 6836# Global variables: 6837default_ofile=libtool 6838can_build_shared=yes 6839 6840# All known linkers require a `.a' archive for static linking (except M$VC, 6841# which needs '.lib'). 6842libext=a 6843ltmain="$ac_aux_dir/ltmain.sh" 6844ofile="$default_ofile" 6845with_gnu_ld="$lt_cv_prog_gnu_ld" 6846 6847if test -n "$ac_tool_prefix"; then 6848 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6849set dummy ${ac_tool_prefix}ar; ac_word=$2 6850echo "$as_me:$LINENO: checking for $ac_word" >&5 6851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6852if test "${ac_cv_prog_AR+set}" = set; then 6853 echo $ECHO_N "(cached) $ECHO_C" >&6 6854else 6855 if test -n "$AR"; then 6856 ac_cv_prog_AR="$AR" # Let the user override the test. 6857else 6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6859for as_dir in $PATH 6860do 6861 IFS=$as_save_IFS 6862 test -z "$as_dir" && as_dir=. 6863 for ac_exec_ext in '' $ac_executable_extensions; do 6864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6865 ac_cv_prog_AR="${ac_tool_prefix}ar" 6866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6867 break 2 6868 fi 6869done 6870done 6871 6872fi 6873fi 6874AR=$ac_cv_prog_AR 6875if test -n "$AR"; then 6876 echo "$as_me:$LINENO: result: $AR" >&5 6877echo "${ECHO_T}$AR" >&6 6878else 6879 echo "$as_me:$LINENO: result: no" >&5 6880echo "${ECHO_T}no" >&6 6881fi 6882 6883fi 6884if test -z "$ac_cv_prog_AR"; then 6885 ac_ct_AR=$AR 6886 # Extract the first word of "ar", so it can be a program name with args. 6887set dummy ar; ac_word=$2 6888echo "$as_me:$LINENO: checking for $ac_word" >&5 6889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6890if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6891 echo $ECHO_N "(cached) $ECHO_C" >&6 6892else 6893 if test -n "$ac_ct_AR"; then 6894 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6895else 6896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6897for as_dir in $PATH 6898do 6899 IFS=$as_save_IFS 6900 test -z "$as_dir" && as_dir=. 6901 for ac_exec_ext in '' $ac_executable_extensions; do 6902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6903 ac_cv_prog_ac_ct_AR="ar" 6904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6905 break 2 6906 fi 6907done 6908done 6909 6910 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6911fi 6912fi 6913ac_ct_AR=$ac_cv_prog_ac_ct_AR 6914if test -n "$ac_ct_AR"; then 6915 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6916echo "${ECHO_T}$ac_ct_AR" >&6 6917else 6918 echo "$as_me:$LINENO: result: no" >&5 6919echo "${ECHO_T}no" >&6 6920fi 6921 6922 AR=$ac_ct_AR 6923else 6924 AR="$ac_cv_prog_AR" 6925fi 6926 6927if test -n "$ac_tool_prefix"; then 6928 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6929set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6930echo "$as_me:$LINENO: checking for $ac_word" >&5 6931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6932if test "${ac_cv_prog_RANLIB+set}" = set; then 6933 echo $ECHO_N "(cached) $ECHO_C" >&6 6934else 6935 if test -n "$RANLIB"; then 6936 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6937else 6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6939for as_dir in $PATH 6940do 6941 IFS=$as_save_IFS 6942 test -z "$as_dir" && as_dir=. 6943 for ac_exec_ext in '' $ac_executable_extensions; do 6944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6947 break 2 6948 fi 6949done 6950done 6951 6952fi 6953fi 6954RANLIB=$ac_cv_prog_RANLIB 6955if test -n "$RANLIB"; then 6956 echo "$as_me:$LINENO: result: $RANLIB" >&5 6957echo "${ECHO_T}$RANLIB" >&6 6958else 6959 echo "$as_me:$LINENO: result: no" >&5 6960echo "${ECHO_T}no" >&6 6961fi 6962 6963fi 6964if test -z "$ac_cv_prog_RANLIB"; then 6965 ac_ct_RANLIB=$RANLIB 6966 # Extract the first word of "ranlib", so it can be a program name with args. 6967set dummy ranlib; ac_word=$2 6968echo "$as_me:$LINENO: checking for $ac_word" >&5 6969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6970if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6971 echo $ECHO_N "(cached) $ECHO_C" >&6 6972else 6973 if test -n "$ac_ct_RANLIB"; then 6974 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6975else 6976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6977for as_dir in $PATH 6978do 6979 IFS=$as_save_IFS 6980 test -z "$as_dir" && as_dir=. 6981 for ac_exec_ext in '' $ac_executable_extensions; do 6982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6983 ac_cv_prog_ac_ct_RANLIB="ranlib" 6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6985 break 2 6986 fi 6987done 6988done 6989 6990 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6991fi 6992fi 6993ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6994if test -n "$ac_ct_RANLIB"; then 6995 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6996echo "${ECHO_T}$ac_ct_RANLIB" >&6 6997else 6998 echo "$as_me:$LINENO: result: no" >&5 6999echo "${ECHO_T}no" >&6 7000fi 7001 7002 RANLIB=$ac_ct_RANLIB 7003else 7004 RANLIB="$ac_cv_prog_RANLIB" 7005fi 7006 7007if test -n "$ac_tool_prefix"; then 7008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7009set dummy ${ac_tool_prefix}strip; ac_word=$2 7010echo "$as_me:$LINENO: checking for $ac_word" >&5 7011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7012if test "${ac_cv_prog_STRIP+set}" = set; then 7013 echo $ECHO_N "(cached) $ECHO_C" >&6 7014else 7015 if test -n "$STRIP"; then 7016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7017else 7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7019for as_dir in $PATH 7020do 7021 IFS=$as_save_IFS 7022 test -z "$as_dir" && as_dir=. 7023 for ac_exec_ext in '' $ac_executable_extensions; do 7024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7025 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7027 break 2 7028 fi 7029done 7030done 7031 7032fi 7033fi 7034STRIP=$ac_cv_prog_STRIP 7035if test -n "$STRIP"; then 7036 echo "$as_me:$LINENO: result: $STRIP" >&5 7037echo "${ECHO_T}$STRIP" >&6 7038else 7039 echo "$as_me:$LINENO: result: no" >&5 7040echo "${ECHO_T}no" >&6 7041fi 7042 7043fi 7044if test -z "$ac_cv_prog_STRIP"; then 7045 ac_ct_STRIP=$STRIP 7046 # Extract the first word of "strip", so it can be a program name with args. 7047set dummy strip; ac_word=$2 7048echo "$as_me:$LINENO: checking for $ac_word" >&5 7049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7050if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7051 echo $ECHO_N "(cached) $ECHO_C" >&6 7052else 7053 if test -n "$ac_ct_STRIP"; then 7054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7055else 7056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7057for as_dir in $PATH 7058do 7059 IFS=$as_save_IFS 7060 test -z "$as_dir" && as_dir=. 7061 for ac_exec_ext in '' $ac_executable_extensions; do 7062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7063 ac_cv_prog_ac_ct_STRIP="strip" 7064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7065 break 2 7066 fi 7067done 7068done 7069 7070 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 7071fi 7072fi 7073ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7074if test -n "$ac_ct_STRIP"; then 7075 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7076echo "${ECHO_T}$ac_ct_STRIP" >&6 7077else 7078 echo "$as_me:$LINENO: result: no" >&5 7079echo "${ECHO_T}no" >&6 7080fi 7081 7082 STRIP=$ac_ct_STRIP 7083else 7084 STRIP="$ac_cv_prog_STRIP" 7085fi 7086 7087 7088old_CC="$CC" 7089old_CFLAGS="$CFLAGS" 7090 7091# Set sane defaults for various variables 7092test -z "$AR" && AR=ar 7093test -z "$AR_FLAGS" && AR_FLAGS=cru 7094test -z "$AS" && AS=as 7095test -z "$CC" && CC=cc 7096test -z "$LTCC" && LTCC=$CC 7097test -z "$DLLTOOL" && DLLTOOL=dlltool 7098test -z "$LD" && LD=ld 7099test -z "$LN_S" && LN_S="ln -s" 7100test -z "$MAGIC_CMD" && MAGIC_CMD=file 7101test -z "$NM" && NM=nm 7102test -z "$SED" && SED=sed 7103test -z "$OBJDUMP" && OBJDUMP=objdump 7104test -z "$RANLIB" && RANLIB=: 7105test -z "$STRIP" && STRIP=: 7106test -z "$ac_objext" && ac_objext=o 7107 7108# Determine commands to create old-style static archives. 7109old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7110old_postinstall_cmds='chmod 644 $oldlib' 7111old_postuninstall_cmds= 7112 7113if test -n "$RANLIB"; then 7114 case $host_os in 7115 openbsd*) 7116 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 7117 ;; 7118 *) 7119 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 7120 ;; 7121 esac 7122 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7123fi 7124 7125for cc_temp in $compiler""; do 7126 case $cc_temp in 7127 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7128 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7129 \-*) ;; 7130 *) break;; 7131 esac 7132done 7133cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7134 7135 7136# Only perform the check for file, if the check method requires it 7137case $deplibs_check_method in 7138file_magic*) 7139 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7140 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7141echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 7142if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7143 echo $ECHO_N "(cached) $ECHO_C" >&6 7144else 7145 case $MAGIC_CMD in 7146[\\/*] | ?:[\\/]*) 7147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7148 ;; 7149*) 7150 lt_save_MAGIC_CMD="$MAGIC_CMD" 7151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7153 for ac_dir in $ac_dummy; do 7154 IFS="$lt_save_ifs" 7155 test -z "$ac_dir" && ac_dir=. 7156 if test -f $ac_dir/${ac_tool_prefix}file; then 7157 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7158 if test -n "$file_magic_test_file"; then 7159 case $deplibs_check_method in 7160 "file_magic "*) 7161 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 7162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7164 $EGREP "$file_magic_regex" > /dev/null; then 7165 : 7166 else 7167 cat <<EOF 1>&2 7168 7169*** Warning: the command libtool uses to detect shared libraries, 7170*** $file_magic_cmd, produces output that libtool cannot recognize. 7171*** The result is that libtool may fail to recognize shared libraries 7172*** as such. This will affect the creation of libtool libraries that 7173*** depend on shared libraries, but programs linked with such libtool 7174*** libraries will work regardless of this problem. Nevertheless, you 7175*** may want to report the problem to your system manager and/or to 7176*** bug-libtool@gnu.org 7177 7178EOF 7179 fi ;; 7180 esac 7181 fi 7182 break 7183 fi 7184 done 7185 IFS="$lt_save_ifs" 7186 MAGIC_CMD="$lt_save_MAGIC_CMD" 7187 ;; 7188esac 7189fi 7190 7191MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7192if test -n "$MAGIC_CMD"; then 7193 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7194echo "${ECHO_T}$MAGIC_CMD" >&6 7195else 7196 echo "$as_me:$LINENO: result: no" >&5 7197echo "${ECHO_T}no" >&6 7198fi 7199 7200if test -z "$lt_cv_path_MAGIC_CMD"; then 7201 if test -n "$ac_tool_prefix"; then 7202 echo "$as_me:$LINENO: checking for file" >&5 7203echo $ECHO_N "checking for file... $ECHO_C" >&6 7204if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7205 echo $ECHO_N "(cached) $ECHO_C" >&6 7206else 7207 case $MAGIC_CMD in 7208[\\/*] | ?:[\\/]*) 7209 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7210 ;; 7211*) 7212 lt_save_MAGIC_CMD="$MAGIC_CMD" 7213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7214 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7215 for ac_dir in $ac_dummy; do 7216 IFS="$lt_save_ifs" 7217 test -z "$ac_dir" && ac_dir=. 7218 if test -f $ac_dir/file; then 7219 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7220 if test -n "$file_magic_test_file"; then 7221 case $deplibs_check_method in 7222 "file_magic "*) 7223 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 7224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7225 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7226 $EGREP "$file_magic_regex" > /dev/null; then 7227 : 7228 else 7229 cat <<EOF 1>&2 7230 7231*** Warning: the command libtool uses to detect shared libraries, 7232*** $file_magic_cmd, produces output that libtool cannot recognize. 7233*** The result is that libtool may fail to recognize shared libraries 7234*** as such. This will affect the creation of libtool libraries that 7235*** depend on shared libraries, but programs linked with such libtool 7236*** libraries will work regardless of this problem. Nevertheless, you 7237*** may want to report the problem to your system manager and/or to 7238*** bug-libtool@gnu.org 7239 7240EOF 7241 fi ;; 7242 esac 7243 fi 7244 break 7245 fi 7246 done 7247 IFS="$lt_save_ifs" 7248 MAGIC_CMD="$lt_save_MAGIC_CMD" 7249 ;; 7250esac 7251fi 7252 7253MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7254if test -n "$MAGIC_CMD"; then 7255 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7256echo "${ECHO_T}$MAGIC_CMD" >&6 7257else 7258 echo "$as_me:$LINENO: result: no" >&5 7259echo "${ECHO_T}no" >&6 7260fi 7261 7262 else 7263 MAGIC_CMD=: 7264 fi 7265fi 7266 7267 fi 7268 ;; 7269esac 7270 7271enable_dlopen=no 7272enable_win32_dll=no 7273 7274# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 7275if test "${enable_libtool_lock+set}" = set; then 7276 enableval="$enable_libtool_lock" 7277 7278fi; 7279test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7280 7281 7282# Check whether --with-pic or --without-pic was given. 7283if test "${with_pic+set}" = set; then 7284 withval="$with_pic" 7285 pic_mode="$withval" 7286else 7287 pic_mode=default 7288fi; 7289test -z "$pic_mode" && pic_mode=default 7290 7291# Use C for the default configuration in the libtool script 7292tagname= 7293lt_save_CC="$CC" 7294ac_ext=c 7295ac_cpp='$CPP $CPPFLAGS' 7296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7298ac_compiler_gnu=$ac_cv_c_compiler_gnu 7299 7300 7301# Source file extension for C test sources. 7302ac_ext=c 7303 7304# Object file extension for compiled C test sources. 7305objext=o 7306objext=$objext 7307 7308# Code to be used in simple compile tests 7309lt_simple_compile_test_code="int some_variable = 0;\n" 7310 7311# Code to be used in simple link tests 7312lt_simple_link_test_code='int main(){return(0);}\n' 7313 7314 7315# If no C compiler was specified, use CC. 7316LTCC=${LTCC-"$CC"} 7317 7318# Allow CC to be a program name with arguments. 7319compiler=$CC 7320 7321 7322# save warnings/boilerplate of simple test code 7323ac_outfile=conftest.$ac_objext 7324printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7325eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 7326_lt_compiler_boilerplate=`cat conftest.err` 7327$rm conftest* 7328 7329ac_outfile=conftest.$ac_objext 7330printf "$lt_simple_link_test_code" >conftest.$ac_ext 7331eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 7332_lt_linker_boilerplate=`cat conftest.err` 7333$rm conftest* 7334 7335 7336# 7337# Check for any special shared library compilation flags. 7338# 7339lt_prog_cc_shlib= 7340if test "$GCC" = no; then 7341 case $host_os in 7342 sco3.2v5*) 7343 lt_prog_cc_shlib='-belf' 7344 ;; 7345 esac 7346fi 7347if test -n "$lt_prog_cc_shlib"; then 7348 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 7349echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 7350 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 7351 else 7352 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 7353echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 7354 lt_cv_prog_cc_can_build_shared=no 7355 fi 7356fi 7357 7358 7359# 7360# Check to make sure the static flag actually works. 7361# 7362echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 7363echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 7364if test "${lt_prog_compiler_static_works+set}" = set; then 7365 echo $ECHO_N "(cached) $ECHO_C" >&6 7366else 7367 lt_prog_compiler_static_works=no 7368 save_LDFLAGS="$LDFLAGS" 7369 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 7370 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7372 # The compiler can only warn and ignore the option if not recognized 7373 # So say no if there are warnings 7374 if test -s conftest.err; then 7375 # Append any errors to the config.log. 7376 cat conftest.err 1>&5 7377 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 7378 $SED '/^$/d' conftest.err >conftest.er2 7379 if diff conftest.exp conftest.er2 >/dev/null; then 7380 lt_prog_compiler_static_works=yes 7381 fi 7382 else 7383 lt_prog_compiler_static_works=yes 7384 fi 7385 fi 7386 $rm conftest* 7387 LDFLAGS="$save_LDFLAGS" 7388 7389fi 7390echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7391echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 7392 7393if test x"$lt_prog_compiler_static_works" = xyes; then 7394 : 7395else 7396 lt_prog_compiler_static= 7397fi 7398 7399 7400 7401## CAVEAT EMPTOR: 7402## There is no encapsulation within the following macros, do not change 7403## the running order or otherwise move them around unless you know exactly 7404## what you are doing... 7405 7406lt_prog_compiler_no_builtin_flag= 7407 7408if test "$GCC" = yes; then 7409 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7410 7411 7412echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7413echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 7414if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7415 echo $ECHO_N "(cached) $ECHO_C" >&6 7416else 7417 lt_cv_prog_compiler_rtti_exceptions=no 7418 ac_outfile=conftest.$ac_objext 7419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7420 lt_compiler_flag="-fno-rtti -fno-exceptions" 7421 # Insert the option either (1) after the last *FLAGS variable, or 7422 # (2) before a word containing "conftest.", or (3) at the end. 7423 # Note that $ac_compile itself does not contain backslashes and begins 7424 # with a dollar sign (not a hyphen), so the echo should work correctly. 7425 # The option is referenced via a variable to avoid confusing sed. 7426 lt_compile=`echo "$ac_compile" | $SED \ 7427 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 7428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7429 -e 's:$: $lt_compiler_flag:'` 7430 (eval echo "\"\$as_me:7430: $lt_compile\"" >&5) 7431 (eval "$lt_compile" 2>conftest.err) 7432 ac_status=$? 7433 cat conftest.err >&5 7434 echo "$as_me:7434: \$? = $ac_status" >&5 7435 if (exit $ac_status) && test -s "$ac_outfile"; then 7436 # The compiler can only warn and ignore the option if not recognized 7437 # So say no if there are warnings other than the usual output. 7438 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 7439 $SED '/^$/d' conftest.err >conftest.er2 7440 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 7441 lt_cv_prog_compiler_rtti_exceptions=yes 7442 fi 7443 fi 7444 $rm conftest* 7445 7446fi 7447echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7448echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 7449 7450if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7451 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7452else 7453 : 7454fi 7455 7456fi 7457 7458lt_prog_compiler_wl= 7459lt_prog_compiler_pic= 7460lt_prog_compiler_static= 7461 7462echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7463echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 7464 7465 if test "$GCC" = yes; then 7466 lt_prog_compiler_wl='-Wl,' 7467 lt_prog_compiler_static='-static' 7468 7469 case $host_os in 7470 aix*) 7471 # All AIX code is PIC. 7472 if test "$host_cpu" = ia64; then 7473 # AIX 5 now supports IA64 processor 7474 lt_prog_compiler_static='-Bstatic' 7475 fi 7476 ;; 7477 7478 amigaos*) 7479 # FIXME: we need at least 68020 code to build shared libraries, but 7480 # adding the `-m68020' flag to GCC prevents building anything better, 7481 # like `-m68040'. 7482 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7483 ;; 7484 7485 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7486 # PIC is the default for these OSes. 7487 ;; 7488 7489 mingw* | pw32* | os2*) 7490 # This hack is so that the source file can tell whether it is being 7491 # built for inclusion in a dll (and should export symbols for example). 7492 lt_prog_compiler_pic='-DDLL_EXPORT' 7493 ;; 7494 7495 darwin* | rhapsody*) 7496 # PIC is the default on this platform 7497 # Common symbols not allowed in MH_DYLIB files 7498 lt_prog_compiler_pic='-fno-common' 7499 ;; 7500 7501 msdosdjgpp*) 7502 # Just because we use GCC doesn't mean we suddenly get shared libraries 7503 # on systems that don't support them. 7504 lt_prog_compiler_can_build_shared=no 7505 enable_shared=no 7506 ;; 7507 7508 sysv4*MP*) 7509 if test -d /usr/nec; then 7510 lt_prog_compiler_pic=-Kconform_pic 7511 fi 7512 ;; 7513 7514 hpux*) 7515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7516 # not for PA HP-UX. 7517 case "$host_cpu" in 7518 hppa*64*|ia64*) 7519 # +Z the default 7520 ;; 7521 *) 7522 lt_prog_compiler_pic='-fPIC' 7523 ;; 7524 esac 7525 ;; 7526 7527 *) 7528 lt_prog_compiler_pic='-fPIC' 7529 ;; 7530 esac 7531 else 7532 # PORTME Check for flag to pass linker flags through the system compiler. 7533 case $host_os in 7534 aix*) 7535 lt_prog_compiler_wl='-Wl,' 7536 if test "$host_cpu" = ia64; then 7537 # AIX 5 now supports IA64 processor 7538 lt_prog_compiler_static='-Bstatic' 7539 else 7540 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7541 fi 7542 ;; 7543 darwin*) 7544 # PIC is the default on this platform 7545 # Common symbols not allowed in MH_DYLIB files 7546 case $cc_basename in 7547 xlc*) 7548 lt_prog_compiler_pic='-qnocommon' 7549 lt_prog_compiler_wl='-Wl,' 7550 ;; 7551 esac 7552 ;; 7553 7554 mingw* | pw32* | os2*) 7555 # This hack is so that the source file can tell whether it is being 7556 # built for inclusion in a dll (and should export symbols for example). 7557 lt_prog_compiler_pic='-DDLL_EXPORT' 7558 ;; 7559 7560 hpux9* | hpux10* | hpux11*) 7561 lt_prog_compiler_wl='-Wl,' 7562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7563 # not for PA HP-UX. 7564 case "$host_cpu" in 7565 hppa*64*|ia64*) 7566 # +Z the default 7567 ;; 7568 *) 7569 lt_prog_compiler_pic='+Z' 7570 ;; 7571 esac 7572 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7573 lt_prog_compiler_static='${wl}-a ${wl}archive' 7574 ;; 7575 7576 irix5* | irix6* | nonstopux*) 7577 lt_prog_compiler_wl='-Wl,' 7578 # PIC (with -KPIC) is the default. 7579 lt_prog_compiler_static='-non_shared' 7580 ;; 7581 7582 newsos6) 7583 lt_prog_compiler_pic='-KPIC' 7584 lt_prog_compiler_static='-Bstatic' 7585 ;; 7586 7587 linux*) 7588 case $cc_basename in 7589 icc* | ecc*) 7590 lt_prog_compiler_wl='-Wl,' 7591 lt_prog_compiler_pic='-KPIC' 7592 lt_prog_compiler_static='-static' 7593 ;; 7594 pgcc* | pgf77* | pgf90*) 7595 # Portland Group compilers (*not* the Pentium gcc compiler, 7596 # which looks to be a dead project) 7597 lt_prog_compiler_wl='-Wl,' 7598 lt_prog_compiler_pic='-fpic' 7599 lt_prog_compiler_static='-static' 7600 ;; 7601 ccc*) 7602 lt_prog_compiler_wl='-Wl,' 7603 # All Alpha code is PIC. 7604 lt_prog_compiler_static='-non_shared' 7605 ;; 7606 esac 7607 ;; 7608 7609 osf3* | osf4* | osf5*) 7610 lt_prog_compiler_wl='-Wl,' 7611 # All OSF/1 code is PIC. 7612 lt_prog_compiler_static='-non_shared' 7613 ;; 7614 7615 sco3.2v5*) 7616 lt_prog_compiler_pic='-Kpic' 7617 lt_prog_compiler_static='-dn' 7618 ;; 7619 7620 solaris*) 7621 lt_prog_compiler_pic='-KPIC' 7622 lt_prog_compiler_static='-Bstatic' 7623 case $cc_basename in 7624 f77* | f90* | f95*) 7625 lt_prog_compiler_wl='-Qoption ld ';; 7626 *) 7627 lt_prog_compiler_wl='-Wl,';; 7628 esac 7629 ;; 7630 7631 sunos4*) 7632 lt_prog_compiler_wl='-Qoption ld ' 7633 lt_prog_compiler_pic='-PIC' 7634 lt_prog_compiler_static='-Bstatic' 7635 ;; 7636 7637 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7638 lt_prog_compiler_wl='-Wl,' 7639 lt_prog_compiler_pic='-KPIC' 7640 lt_prog_compiler_static='-Bstatic' 7641 ;; 7642 7643 sysv4*MP*) 7644 if test -d /usr/nec ;then 7645 lt_prog_compiler_pic='-Kconform_pic' 7646 lt_prog_compiler_static='-Bstatic' 7647 fi 7648 ;; 7649 7650 unicos*) 7651 lt_prog_compiler_wl='-Wl,' 7652 lt_prog_compiler_can_build_shared=no 7653 ;; 7654 7655 uts4*) 7656 lt_prog_compiler_pic='-pic' 7657 lt_prog_compiler_static='-Bstatic' 7658 ;; 7659 7660 *) 7661 lt_prog_compiler_can_build_shared=no 7662 ;; 7663 esac 7664 fi 7665 7666echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7667echo "${ECHO_T}$lt_prog_compiler_pic" >&6 7668 7669# 7670# Check to make sure the PIC flag actually works. 7671# 7672if test -n "$lt_prog_compiler_pic"; then 7673 7674echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7675echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 7676if test "${lt_prog_compiler_pic_works+set}" = set; then 7677 echo $ECHO_N "(cached) $ECHO_C" >&6 7678else 7679 lt_prog_compiler_pic_works=no 7680 ac_outfile=conftest.$ac_objext 7681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7682 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7683 # Insert the option either (1) after the last *FLAGS variable, or 7684 # (2) before a word containing "conftest.", or (3) at the end. 7685 # Note that $ac_compile itself does not contain backslashes and begins 7686 # with a dollar sign (not a hyphen), so the echo should work correctly. 7687 # The option is referenced via a variable to avoid confusing sed. 7688 lt_compile=`echo "$ac_compile" | $SED \ 7689 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 7690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7691 -e 's:$: $lt_compiler_flag:'` 7692 (eval echo "\"\$as_me:7692: $lt_compile\"" >&5) 7693 (eval "$lt_compile" 2>conftest.err) 7694 ac_status=$? 7695 cat conftest.err >&5 7696 echo "$as_me:7696: \$? = $ac_status" >&5 7697 if (exit $ac_status) && test -s "$ac_outfile"; then 7698 # The compiler can only warn and ignore the option if not recognized 7699 # So say no if there are warnings other than the usual output. 7700 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 7701 $SED '/^$/d' conftest.err >conftest.er2 7702 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 7703 lt_prog_compiler_pic_works=yes 7704 fi 7705 fi 7706 $rm conftest* 7707 7708fi 7709echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7710echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 7711 7712if test x"$lt_prog_compiler_pic_works" = xyes; then 7713 case $lt_prog_compiler_pic in 7714 "" | " "*) ;; 7715 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7716 esac 7717else 7718 lt_prog_compiler_pic= 7719 lt_prog_compiler_can_build_shared=no 7720fi 7721 7722fi 7723case "$host_os" in 7724 # For platforms which do not support PIC, -DPIC is meaningless: 7725 *djgpp*) 7726 lt_prog_compiler_pic= 7727 ;; 7728 *) 7729 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7730 ;; 7731esac 7732 7733echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7734echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 7735if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7736 echo $ECHO_N "(cached) $ECHO_C" >&6 7737else 7738 lt_cv_prog_compiler_c_o=no 7739 $rm -r conftest 2>/dev/null 7740 mkdir conftest 7741 cd conftest 7742 mkdir out 7743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7744 7745 lt_compiler_flag="-o out/conftest2.$ac_objext" 7746 # Insert the option either (1) after the last *FLAGS variable, or 7747 # (2) before a word containing "conftest.", or (3) at the end. 7748 # Note that $ac_compile itself does not contain backslashes and begins 7749 # with a dollar sign (not a hyphen), so the echo should work correctly. 7750 lt_compile=`echo "$ac_compile" | $SED \ 7751 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 7752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7753 -e 's:$: $lt_compiler_flag:'` 7754 (eval echo "\"\$as_me:7754: $lt_compile\"" >&5) 7755 (eval "$lt_compile" 2>out/conftest.err) 7756 ac_status=$? 7757 cat out/conftest.err >&5 7758 echo "$as_me:7758: \$? = $ac_status" >&5 7759 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7760 then 7761 # The compiler can only warn and ignore the option if not recognized 7762 # So say no if there are warnings 7763 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 7764 $SED '/^$/d' out/conftest.err >out/conftest.er2 7765 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7766 lt_cv_prog_compiler_c_o=yes 7767 fi 7768 fi 7769 chmod u+w . 7770 $rm conftest* 7771 # SGI C++ compiler will create directory out/ii_files/ for 7772 # template instantiation 7773 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7774 $rm out/* && rmdir out 7775 cd .. 7776 rmdir conftest 7777 $rm conftest* 7778 7779fi 7780echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7781echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 7782 7783 7784hard_links="nottested" 7785if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7786 # do not overwrite the value of need_locks provided by the user 7787 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7788echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 7789 hard_links=yes 7790 $rm conftest* 7791 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7792 touch conftest.a 7793 ln conftest.a conftest.b 2>&5 || hard_links=no 7794 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7795 echo "$as_me:$LINENO: result: $hard_links" >&5 7796echo "${ECHO_T}$hard_links" >&6 7797 if test "$hard_links" = no; then 7798 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7799echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7800 need_locks=warn 7801 fi 7802else 7803 need_locks=no 7804fi 7805 7806echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7807echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 7808 7809 runpath_var= 7810 allow_undefined_flag= 7811 enable_shared_with_static_runtimes=no 7812 archive_cmds= 7813 archive_expsym_cmds= 7814 old_archive_From_new_cmds= 7815 old_archive_from_expsyms_cmds= 7816 export_dynamic_flag_spec= 7817 whole_archive_flag_spec= 7818 thread_safe_flag_spec= 7819 hardcode_libdir_flag_spec= 7820 hardcode_libdir_flag_spec_ld= 7821 hardcode_libdir_separator= 7822 hardcode_direct=no 7823 hardcode_minus_L=no 7824 hardcode_shlibpath_var=unsupported 7825 link_all_deplibs=unknown 7826 hardcode_automatic=no 7827 module_cmds= 7828 module_expsym_cmds= 7829 always_export_symbols=no 7830 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7831 # include_expsyms should be a list of space-separated symbols to be *always* 7832 # included in the symbol list 7833 include_expsyms= 7834 # exclude_expsyms can be an extended regexp of symbols to exclude 7835 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7836 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7837 # as well as any symbol that contains `d'. 7838 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7839 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7840 # platforms (ab)use it in PIC code, but their linkers get confused if 7841 # the symbol is explicitly referenced. Since portable code cannot 7842 # rely on this symbol name, it's probably fine to never include it in 7843 # preloaded symbol tables. 7844 extract_expsyms_cmds= 7845 # Just being paranoid about ensuring that cc_basename is set. 7846 for cc_temp in $compiler""; do 7847 case $cc_temp in 7848 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7849 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7850 \-*) ;; 7851 *) break;; 7852 esac 7853done 7854cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7855 7856 case $host_os in 7857 cygwin* | mingw* | pw32*) 7858 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7859 # When not using gcc, we currently assume that we are using 7860 # Microsoft Visual C++. 7861 if test "$GCC" != yes; then 7862 with_gnu_ld=no 7863 fi 7864 ;; 7865 openbsd*) 7866 with_gnu_ld=no 7867 ;; 7868 esac 7869 7870 ld_shlibs=yes 7871 if test "$with_gnu_ld" = yes; then 7872 # If archive_cmds runs LD, not CC, wlarc should be empty 7873 wlarc='${wl}' 7874 7875 # Set some defaults for GNU ld with shared library support. These 7876 # are reset later if shared libraries are not supported. Putting them 7877 # here allows them to be overridden if necessary. 7878 runpath_var=LD_RUN_PATH 7879 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7880 export_dynamic_flag_spec='${wl}--export-dynamic' 7881 # ancient GNU ld didn't support --whole-archive et. al. 7882 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7883 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7884 else 7885 whole_archive_flag_spec= 7886 fi 7887 supports_anon_versioning=no 7888 case `$LD -v 2>/dev/null` in 7889 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7890 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7891 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7892 *\ 2.11.*) ;; # other 2.11 versions 7893 *) supports_anon_versioning=yes ;; 7894 esac 7895 7896 # See if GNU ld supports shared libraries. 7897 case $host_os in 7898 aix3* | aix4* | aix5*) 7899 # On AIX/PPC, the GNU linker is very broken 7900 if test "$host_cpu" != ia64; then 7901 ld_shlibs=no 7902 cat <<EOF 1>&2 7903 7904*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7905*** to be unable to reliably create shared libraries on AIX. 7906*** Therefore, libtool is disabling shared libraries support. If you 7907*** really care for shared libraries, you may want to modify your PATH 7908*** so that a non-GNU linker is found, and then restart. 7909 7910EOF 7911 fi 7912 ;; 7913 7914 amigaos*) 7915 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 7916 hardcode_libdir_flag_spec='-L$libdir' 7917 hardcode_minus_L=yes 7918 7919 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7920 # that the semantics of dynamic libraries on AmigaOS, at least up 7921 # to version 4, is to share data among multiple programs linked 7922 # with the same dynamic library. Since this doesn't match the 7923 # behavior of shared libraries on other platforms, we can't use 7924 # them. 7925 ld_shlibs=no 7926 ;; 7927 7928 beos*) 7929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7930 allow_undefined_flag=unsupported 7931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7932 # support --undefined. This deserves some investigation. FIXME 7933 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7934 else 7935 ld_shlibs=no 7936 fi 7937 ;; 7938 7939 cygwin* | mingw* | pw32*) 7940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7941 # as there is no search path for DLLs. 7942 hardcode_libdir_flag_spec='-L$libdir' 7943 allow_undefined_flag=unsupported 7944 always_export_symbols=no 7945 enable_shared_with_static_runtimes=yes 7946 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7947 7948 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7950 # If the export-symbols file already is a .def file (1st line 7951 # is EXPORTS), use it as is; otherwise, prepend... 7952 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7953 cp $export_symbols $output_objdir/$soname.def; 7954 else 7955 echo EXPORTS > $output_objdir/$soname.def; 7956 cat $export_symbols >> $output_objdir/$soname.def; 7957 fi~ 7958 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7959 else 7960 ld_shlibs=no 7961 fi 7962 ;; 7963 7964 linux*) 7965 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7966 tmp_addflag= 7967 case $cc_basename,$host_cpu in 7968 pgcc*) # Portland Group C compiler 7969 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7970 tmp_addflag=' $pic_flag' 7971 ;; 7972 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers 7973 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7974 tmp_addflag=' $pic_flag -Mnomain' ;; 7975 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7976 tmp_addflag=' -i_dynamic' ;; 7977 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7978 tmp_addflag=' -i_dynamic -nofor_main' ;; 7979 ifc* | ifort*) # Intel Fortran compiler 7980 tmp_addflag=' -nofor_main' ;; 7981 esac 7982 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7983 7984 if test $supports_anon_versioning = yes; then 7985 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7986 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7987 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7988 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7989 fi 7990 else 7991 ld_shlibs=no 7992 fi 7993 ;; 7994 7995 netbsd*) 7996 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7997 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7998 wlarc= 7999 else 8000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8002 fi 8003 ;; 8004 8005 solaris* | sysv5*) 8006 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8007 ld_shlibs=no 8008 cat <<EOF 1>&2 8009 8010*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8011*** create shared libraries on Solaris systems. Therefore, libtool 8012*** is disabling shared libraries support. We urge you to upgrade GNU 8013*** binutils to release 2.9.1 or newer. Another option is to modify 8014*** your PATH or compiler configuration so that the native linker is 8015*** used, and then restart. 8016 8017EOF 8018 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8020 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8021 else 8022 ld_shlibs=no 8023 fi 8024 ;; 8025 8026 sunos4*) 8027 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8028 wlarc= 8029 hardcode_direct=yes 8030 hardcode_shlibpath_var=no 8031 ;; 8032 8033 *) 8034 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8037 else 8038 ld_shlibs=no 8039 fi 8040 ;; 8041 esac 8042 8043 if test "$ld_shlibs" = no; then 8044 runpath_var= 8045 hardcode_libdir_flag_spec= 8046 export_dynamic_flag_spec= 8047 whole_archive_flag_spec= 8048 fi 8049 else 8050 # PORTME fill in a description of your system's linker (not GNU ld) 8051 case $host_os in 8052 aix3*) 8053 allow_undefined_flag=unsupported 8054 always_export_symbols=yes 8055 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 8056 # Note: this linker hardcodes the directories in LIBPATH if there 8057 # are no directories specified by -L. 8058 hardcode_minus_L=yes 8059 if test "$GCC" = yes && test -z "$link_static_flag"; then 8060 # Neither direct hardcoding nor static linking is supported with a 8061 # broken collect2. 8062 hardcode_direct=unsupported 8063 fi 8064 ;; 8065 8066 aix4* | aix5*) 8067 if test "$host_cpu" = ia64; then 8068 # On IA64, the linker does run time linking by default, so we don't 8069 # have to do anything special. 8070 aix_use_runtimelinking=no 8071 exp_sym_flag='-Bexport' 8072 no_entry_flag="" 8073 else 8074 # If we're using GNU nm, then we don't want the "-C" option. 8075 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8076 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8077 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 8078 else 8079 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 8080 fi 8081 aix_use_runtimelinking=no 8082 8083 # Test if we are trying to use run time linking or normal 8084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8085 # need to do runtime linking. 8086 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8087 for ld_flag in $LDFLAGS; do 8088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8089 aix_use_runtimelinking=yes 8090 break 8091 fi 8092 done 8093 esac 8094 8095 exp_sym_flag='-bexport' 8096 no_entry_flag='-bnoentry' 8097 fi 8098 8099 # When large executables or shared objects are built, AIX ld can 8100 # have problems creating the table of contents. If linking a library 8101 # or program results in "error TOC overflow" add -mminimal-toc to 8102 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8103 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8104 8105 archive_cmds='' 8106 hardcode_direct=yes 8107 hardcode_libdir_separator=':' 8108 link_all_deplibs=yes 8109 8110 if test "$GCC" = yes; then 8111 case $host_os in aix4.[012]|aix4.[012].*) 8112 # We only want to do this on AIX 4.2 and lower, the check 8113 # below for broken collect2 doesn't work under 4.3+ 8114 collect2name=`${CC} -print-prog-name=collect2` 8115 if test -f "$collect2name" && \ 8116 strings "$collect2name" | grep resolve_lib_name >/dev/null 8117 then 8118 # We have reworked collect2 8119 hardcode_direct=yes 8120 else 8121 # We have old collect2 8122 hardcode_direct=unsupported 8123 # It fails to find uninstalled libraries when the uninstalled 8124 # path is not listed in the libpath. Setting hardcode_minus_L 8125 # to unsupported forces relinking 8126 hardcode_minus_L=yes 8127 hardcode_libdir_flag_spec='-L$libdir' 8128 hardcode_libdir_separator= 8129 fi 8130 esac 8131 shared_flag='-shared' 8132 if test "$aix_use_runtimelinking" = yes; then 8133 shared_flag="$shared_flag "'${wl}-G' 8134 fi 8135 else 8136 # not using gcc 8137 if test "$host_cpu" = ia64; then 8138 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8139 # chokes on -Wl,-G. The following line is correct: 8140 shared_flag='-G' 8141 else 8142 if test "$aix_use_runtimelinking" = yes; then 8143 shared_flag='${wl}-G' 8144 else 8145 shared_flag='${wl}-bM:SRE' 8146 fi 8147 fi 8148 fi 8149 8150 # It seems that -bexpall does not export symbols beginning with 8151 # underscore (_), so it is better to generate a list of symbols to export. 8152 always_export_symbols=yes 8153 if test "$aix_use_runtimelinking" = yes; then 8154 # Warning - without using the other runtime loading flags (-brtl), 8155 # -berok will link without error, but may produce a broken library. 8156 allow_undefined_flag='-berok' 8157 # Determine the default libpath from the value encoded in an empty executable. 8158 cat >conftest.$ac_ext <<_ACEOF 8159/* confdefs.h. */ 8160_ACEOF 8161cat confdefs.h >>conftest.$ac_ext 8162cat >>conftest.$ac_ext <<_ACEOF 8163/* end confdefs.h. */ 8164 8165int 8166main () 8167{ 8168 8169 ; 8170 return 0; 8171} 8172_ACEOF 8173rm -f conftest.$ac_objext conftest$ac_exeext 8174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8175 (eval $ac_link) 2>conftest.er1 8176 ac_status=$? 8177 grep -v '^ *+' conftest.er1 >conftest.err 8178 rm -f conftest.er1 8179 cat conftest.err >&5 8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8181 (exit $ac_status); } && 8182 { ac_try='test -z "$ac_c_werror_flag" 8183 || test ! -s conftest.err' 8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8185 (eval $ac_try) 2>&5 8186 ac_status=$? 8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8188 (exit $ac_status); }; } && 8189 { ac_try='test -s conftest$ac_exeext' 8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8191 (eval $ac_try) 2>&5 8192 ac_status=$? 8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8194 (exit $ac_status); }; }; then 8195 8196aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8197}'` 8198# Check for a 64-bit object if we didn't find anything. 8199if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8200}'`; fi 8201else 8202 echo "$as_me: failed program was:" >&5 8203sed 's/^/| /' conftest.$ac_ext >&5 8204 8205fi 8206rm -f conftest.err conftest.$ac_objext \ 8207 conftest$ac_exeext conftest.$ac_ext 8208if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8209 8210 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8211 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8212 else 8213 if test "$host_cpu" = ia64; then 8214 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8215 allow_undefined_flag="-z nodefs" 8216 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 8217 else 8218 # Determine the default libpath from the value encoded in an empty executable. 8219 cat >conftest.$ac_ext <<_ACEOF 8220/* confdefs.h. */ 8221_ACEOF 8222cat confdefs.h >>conftest.$ac_ext 8223cat >>conftest.$ac_ext <<_ACEOF 8224/* end confdefs.h. */ 8225 8226int 8227main () 8228{ 8229 8230 ; 8231 return 0; 8232} 8233_ACEOF 8234rm -f conftest.$ac_objext conftest$ac_exeext 8235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8236 (eval $ac_link) 2>conftest.er1 8237 ac_status=$? 8238 grep -v '^ *+' conftest.er1 >conftest.err 8239 rm -f conftest.er1 8240 cat conftest.err >&5 8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8242 (exit $ac_status); } && 8243 { ac_try='test -z "$ac_c_werror_flag" 8244 || test ! -s conftest.err' 8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8246 (eval $ac_try) 2>&5 8247 ac_status=$? 8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8249 (exit $ac_status); }; } && 8250 { ac_try='test -s conftest$ac_exeext' 8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8252 (eval $ac_try) 2>&5 8253 ac_status=$? 8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8255 (exit $ac_status); }; }; then 8256 8257aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8258}'` 8259# Check for a 64-bit object if we didn't find anything. 8260if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8261}'`; fi 8262else 8263 echo "$as_me: failed program was:" >&5 8264sed 's/^/| /' conftest.$ac_ext >&5 8265 8266fi 8267rm -f conftest.err conftest.$ac_objext \ 8268 conftest$ac_exeext conftest.$ac_ext 8269if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8270 8271 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8272 # Warning - without using the other run time loading flags, 8273 # -berok will link without error, but may produce a broken library. 8274 no_undefined_flag=' ${wl}-bernotok' 8275 allow_undefined_flag=' ${wl}-berok' 8276 # -bexpall does not export symbols beginning with underscore (_) 8277 always_export_symbols=yes 8278 # Exported symbols can be pulled into shared objects from archives 8279 whole_archive_flag_spec=' ' 8280 archive_cmds_need_lc=yes 8281 # This is similar to how AIX traditionally builds it's shared libraries. 8282 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8283 fi 8284 fi 8285 ;; 8286 8287 amigaos*) 8288 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 8289 hardcode_libdir_flag_spec='-L$libdir' 8290 hardcode_minus_L=yes 8291 # see comment about different semantics on the GNU ld section 8292 ld_shlibs=no 8293 ;; 8294 8295 bsdi[45]*) 8296 export_dynamic_flag_spec=-rdynamic 8297 ;; 8298 8299 cygwin* | mingw* | pw32*) 8300 # When not using gcc, we currently assume that we are using 8301 # Microsoft Visual C++. 8302 # hardcode_libdir_flag_spec is actually meaningless, as there is 8303 # no search path for DLLs. 8304 hardcode_libdir_flag_spec=' ' 8305 allow_undefined_flag=unsupported 8306 # Tell ltmain to make .lib files, not .a files. 8307 libext=lib 8308 # Tell ltmain to make .dll files, not .so files. 8309 shrext_cmds=".dll" 8310 # FIXME: Setting linknames here is a bad hack. 8311 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8312 # The linker will automatically build a .lib file if we build a DLL. 8313 old_archive_From_new_cmds='true' 8314 # FIXME: Should let the user specify the lib program. 8315 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8316 fix_srcfile_path='`cygpath -w "$srcfile"`' 8317 enable_shared_with_static_runtimes=yes 8318 ;; 8319 8320 darwin* | rhapsody*) 8321 case "$host_os" in 8322 rhapsody* | darwin1.[012]) 8323 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8324 ;; 8325 *) # Darwin 1.3 on 8326 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8327 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8328 else 8329 case ${MACOSX_DEPLOYMENT_TARGET} in 8330 10.[012]) 8331 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8332 ;; 8333 10.*) 8334 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8335 ;; 8336 esac 8337 fi 8338 ;; 8339 esac 8340 archive_cmds_need_lc=no 8341 hardcode_direct=no 8342 hardcode_automatic=yes 8343 hardcode_shlibpath_var=unsupported 8344 whole_archive_flag_spec='' 8345 link_all_deplibs=yes 8346 if test "$GCC" = yes ; then 8347 output_verbose_link_cmd='echo' 8348 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8349 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8350 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 8351 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8352 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8353 else 8354 case $cc_basename in 8355 xlc*) 8356 output_verbose_link_cmd='echo' 8357 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8358 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8359 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 8360 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8361 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8362 ;; 8363 *) 8364 ld_shlibs=no 8365 ;; 8366 esac 8367 fi 8368 ;; 8369 8370 dgux*) 8371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8372 hardcode_libdir_flag_spec='-L$libdir' 8373 hardcode_shlibpath_var=no 8374 ;; 8375 8376 freebsd1*) 8377 ld_shlibs=no 8378 ;; 8379 8380 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8381 # support. Future versions do this automatically, but an explicit c++rt0.o 8382 # does not break anything, and helps significantly (at the cost of a little 8383 # extra space). 8384 freebsd2.2*) 8385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8386 hardcode_libdir_flag_spec='-R$libdir' 8387 hardcode_direct=yes 8388 hardcode_shlibpath_var=no 8389 ;; 8390 8391 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8392 freebsd2*) 8393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8394 hardcode_direct=yes 8395 hardcode_minus_L=yes 8396 hardcode_shlibpath_var=no 8397 ;; 8398 8399 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8400 freebsd* | kfreebsd*-gnu | dragonfly*) 8401 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8402 hardcode_libdir_flag_spec='-R$libdir' 8403 hardcode_direct=yes 8404 hardcode_shlibpath_var=no 8405 ;; 8406 8407 hpux9*) 8408 if test "$GCC" = yes; then 8409 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8410 else 8411 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8412 fi 8413 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8414 hardcode_libdir_separator=: 8415 hardcode_direct=yes 8416 8417 # hardcode_minus_L: Not really in the search PATH, 8418 # but as the default location of the library. 8419 hardcode_minus_L=yes 8420 export_dynamic_flag_spec='${wl}-E' 8421 ;; 8422 8423 hpux10* | hpux11*) 8424 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8425 case "$host_cpu" in 8426 hppa*64*|ia64*) 8427 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8428 ;; 8429 *) 8430 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8431 ;; 8432 esac 8433 else 8434 case "$host_cpu" in 8435 hppa*64*|ia64*) 8436 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 8437 ;; 8438 *) 8439 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8440 ;; 8441 esac 8442 fi 8443 if test "$with_gnu_ld" = no; then 8444 case "$host_cpu" in 8445 hppa*64*) 8446 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8447 hardcode_libdir_flag_spec_ld='+b $libdir' 8448 hardcode_libdir_separator=: 8449 hardcode_direct=no 8450 hardcode_shlibpath_var=no 8451 ;; 8452 ia64*) 8453 hardcode_libdir_flag_spec='-L$libdir' 8454 hardcode_direct=no 8455 hardcode_shlibpath_var=no 8456 8457 # hardcode_minus_L: Not really in the search PATH, 8458 # but as the default location of the library. 8459 hardcode_minus_L=yes 8460 ;; 8461 *) 8462 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8463 hardcode_libdir_separator=: 8464 hardcode_direct=yes 8465 export_dynamic_flag_spec='${wl}-E' 8466 8467 # hardcode_minus_L: Not really in the search PATH, 8468 # but as the default location of the library. 8469 hardcode_minus_L=yes 8470 ;; 8471 esac 8472 fi 8473 ;; 8474 8475 irix5* | irix6* | nonstopux*) 8476 if test "$GCC" = yes; then 8477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8478 else 8479 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8480 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8481 fi 8482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8483 hardcode_libdir_separator=: 8484 link_all_deplibs=yes 8485 ;; 8486 8487 netbsd*) 8488 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8490 else 8491 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8492 fi 8493 hardcode_libdir_flag_spec='-R$libdir' 8494 hardcode_direct=yes 8495 hardcode_shlibpath_var=no 8496 ;; 8497 8498 newsos6) 8499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8500 hardcode_direct=yes 8501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8502 hardcode_libdir_separator=: 8503 hardcode_shlibpath_var=no 8504 ;; 8505 8506 openbsd*) 8507 hardcode_direct=yes 8508 hardcode_shlibpath_var=no 8509 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8510 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8511 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8512 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8513 export_dynamic_flag_spec='${wl}-E' 8514 else 8515 case $host_os in 8516 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8518 hardcode_libdir_flag_spec='-R$libdir' 8519 ;; 8520 *) 8521 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8522 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8523 ;; 8524 esac 8525 fi 8526 ;; 8527 8528 os2*) 8529 hardcode_libdir_flag_spec='-L$libdir' 8530 hardcode_minus_L=yes 8531 allow_undefined_flag=unsupported 8532 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 8533 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8534 ;; 8535 8536 osf3*) 8537 if test "$GCC" = yes; then 8538 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8539 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8540 else 8541 allow_undefined_flag=' -expect_unresolved \*' 8542 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8543 fi 8544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8545 hardcode_libdir_separator=: 8546 ;; 8547 8548 osf4* | osf5*) # as osf3* with the addition of -msym flag 8549 if test "$GCC" = yes; then 8550 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8551 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8553 else 8554 allow_undefined_flag=' -expect_unresolved \*' 8555 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8556 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8557 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 8558 8559 # Both c and cxx compiler support -rpath directly 8560 hardcode_libdir_flag_spec='-rpath $libdir' 8561 fi 8562 hardcode_libdir_separator=: 8563 ;; 8564 8565 sco3.2v5*) 8566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8567 hardcode_shlibpath_var=no 8568 export_dynamic_flag_spec='${wl}-Bexport' 8569 runpath_var=LD_RUN_PATH 8570 hardcode_runpath_var=yes 8571 ;; 8572 8573 solaris*) 8574 no_undefined_flag=' -z text' 8575 if test "$GCC" = yes; then 8576 wlarc='${wl}' 8577 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8578 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8579 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8580 else 8581 wlarc='' 8582 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8583 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8584 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8585 fi 8586 hardcode_libdir_flag_spec='-R$libdir' 8587 hardcode_shlibpath_var=no 8588 case $host_os in 8589 solaris2.[0-5] | solaris2.[0-5].*) ;; 8590 *) 8591 # The compiler driver will combine linker options so we 8592 # cannot just pass the convience library names through 8593 # without $wl, iff we do not link with $LD. 8594 # Luckily, gcc supports the same syntax we need for Sun Studio. 8595 # Supported since Solaris 2.6 (maybe 2.5.1?) 8596 case $wlarc in 8597 '') 8598 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8599 *) 8600 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8601 esac ;; 8602 esac 8603 link_all_deplibs=yes 8604 ;; 8605 8606 sunos4*) 8607 if test "x$host_vendor" = xsequent; then 8608 # Use $CC to link under sequent, because it throws in some extra .o 8609 # files that make .init and .fini sections work. 8610 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8611 else 8612 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8613 fi 8614 hardcode_libdir_flag_spec='-L$libdir' 8615 hardcode_direct=yes 8616 hardcode_minus_L=yes 8617 hardcode_shlibpath_var=no 8618 ;; 8619 8620 sysv4) 8621 case $host_vendor in 8622 sni) 8623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8624 hardcode_direct=yes # is this really true??? 8625 ;; 8626 siemens) 8627 ## LD is ld it makes a PLAMLIB 8628 ## CC just makes a GrossModule. 8629 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8630 reload_cmds='$CC -r -o $output$reload_objs' 8631 hardcode_direct=no 8632 ;; 8633 motorola) 8634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8635 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8636 ;; 8637 esac 8638 runpath_var='LD_RUN_PATH' 8639 hardcode_shlibpath_var=no 8640 ;; 8641 8642 sysv4.3*) 8643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8644 hardcode_shlibpath_var=no 8645 export_dynamic_flag_spec='-Bexport' 8646 ;; 8647 8648 sysv4*MP*) 8649 if test -d /usr/nec; then 8650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8651 hardcode_shlibpath_var=no 8652 runpath_var=LD_RUN_PATH 8653 hardcode_runpath_var=yes 8654 ld_shlibs=yes 8655 fi 8656 ;; 8657 8658 sysv4.2uw2*) 8659 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8660 hardcode_direct=yes 8661 hardcode_minus_L=no 8662 hardcode_shlibpath_var=no 8663 hardcode_runpath_var=yes 8664 runpath_var=LD_RUN_PATH 8665 ;; 8666 8667 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 8668 no_undefined_flag='${wl}-z ${wl}text' 8669 if test "$GCC" = yes; then 8670 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8671 else 8672 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8673 fi 8674 runpath_var='LD_RUN_PATH' 8675 hardcode_shlibpath_var=no 8676 ;; 8677 8678 sysv5*) 8679 no_undefined_flag=' -z text' 8680 # $CC -shared without GNU ld will not create a library from C++ 8681 # object files and a static libstdc++, better avoid it by now 8682 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8683 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8684 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8685 hardcode_libdir_flag_spec= 8686 hardcode_shlibpath_var=no 8687 runpath_var='LD_RUN_PATH' 8688 ;; 8689 8690 uts4*) 8691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8692 hardcode_libdir_flag_spec='-L$libdir' 8693 hardcode_shlibpath_var=no 8694 ;; 8695 8696 *) 8697 ld_shlibs=no 8698 ;; 8699 esac 8700 fi 8701 8702echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8703echo "${ECHO_T}$ld_shlibs" >&6 8704test "$ld_shlibs" = no && can_build_shared=no 8705 8706variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8707if test "$GCC" = yes; then 8708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8709fi 8710 8711# 8712# Do we need to explicitly link libc? 8713# 8714case "x$archive_cmds_need_lc" in 8715x|xyes) 8716 # Assume -lc should be added 8717 archive_cmds_need_lc=yes 8718 8719 if test "$enable_shared" = yes && test "$GCC" = yes; then 8720 case $archive_cmds in 8721 *'~'*) 8722 # FIXME: we may have to deal with multi-command sequences. 8723 ;; 8724 '$CC '*) 8725 # Test whether the compiler implicitly links with -lc since on some 8726 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8727 # to ld, don't add -lc before -lgcc. 8728 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8729echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 8730 $rm conftest* 8731 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8732 8733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8734 (eval $ac_compile) 2>&5 8735 ac_status=$? 8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8737 (exit $ac_status); } 2>conftest.err; then 8738 soname=conftest 8739 lib=conftest 8740 libobjs=conftest.$ac_objext 8741 deplibs= 8742 wl=$lt_prog_compiler_wl 8743 compiler_flags=-v 8744 linker_flags=-v 8745 verstring= 8746 output_objdir=. 8747 libname=conftest 8748 lt_save_allow_undefined_flag=$allow_undefined_flag 8749 allow_undefined_flag= 8750 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8751 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8752 ac_status=$? 8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8754 (exit $ac_status); } 8755 then 8756 archive_cmds_need_lc=no 8757 else 8758 archive_cmds_need_lc=yes 8759 fi 8760 allow_undefined_flag=$lt_save_allow_undefined_flag 8761 else 8762 cat conftest.err 1>&5 8763 fi 8764 $rm conftest* 8765 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8766echo "${ECHO_T}$archive_cmds_need_lc" >&6 8767 ;; 8768 esac 8769 fi 8770 ;; 8771esac 8772 8773echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8774echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 8775library_names_spec= 8776libname_spec='lib$name' 8777soname_spec= 8778shrext_cmds=".so" 8779postinstall_cmds= 8780postuninstall_cmds= 8781finish_cmds= 8782finish_eval= 8783shlibpath_var= 8784shlibpath_overrides_runpath=unknown 8785version_type=none 8786dynamic_linker="$host_os ld.so" 8787sys_lib_dlsearch_path_spec="/lib /usr/lib" 8788if test "$GCC" = yes; then 8789 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8790 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8791 # if the path contains ";" then we assume it to be the separator 8792 # otherwise default to the standard path separator (i.e. ":") - it is 8793 # assumed that no part of a normal pathname contains ";" but that should 8794 # okay in the real world where ";" in dirpaths is itself problematic. 8795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8796 else 8797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8798 fi 8799else 8800 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8801fi 8802need_lib_prefix=unknown 8803hardcode_into_libs=no 8804 8805# when you set need_version to no, make sure it does not cause -set_version 8806# flags to be left without arguments 8807need_version=unknown 8808 8809case $host_os in 8810aix3*) 8811 version_type=linux 8812 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8813 shlibpath_var=LIBPATH 8814 8815 # AIX 3 has no versioning support, so we append a major version to the name. 8816 soname_spec='${libname}${release}${shared_ext}$major' 8817 ;; 8818 8819aix4* | aix5*) 8820 version_type=linux 8821 need_lib_prefix=no 8822 need_version=no 8823 hardcode_into_libs=yes 8824 if test "$host_cpu" = ia64; then 8825 # AIX 5 supports IA64 8826 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8827 shlibpath_var=LD_LIBRARY_PATH 8828 else 8829 # With GCC up to 2.95.x, collect2 would create an import file 8830 # for dependence libraries. The import file would start with 8831 # the line `#! .'. This would cause the generated library to 8832 # depend on `.', always an invalid library. This was fixed in 8833 # development snapshots of GCC prior to 3.0. 8834 case $host_os in 8835 aix4 | aix4.[01] | aix4.[01].*) 8836 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8837 echo ' yes ' 8838 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8839 : 8840 else 8841 can_build_shared=no 8842 fi 8843 ;; 8844 esac 8845 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8846 # soname into executable. Probably we can add versioning support to 8847 # collect2, so additional links can be useful in future. 8848 if test "$aix_use_runtimelinking" = yes; then 8849 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8850 # instead of lib<name>.a to let people know that these are not 8851 # typical AIX shared libraries. 8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8853 else 8854 # We preserve .a as extension for shared libraries through AIX4.2 8855 # and later when we are not doing run time linking. 8856 library_names_spec='${libname}${release}.a $libname.a' 8857 soname_spec='${libname}${release}${shared_ext}$major' 8858 fi 8859 shlibpath_var=LIBPATH 8860 fi 8861 ;; 8862 8863amigaos*) 8864 library_names_spec='$libname.ixlibrary $libname.a' 8865 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8866 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 8867 ;; 8868 8869beos*) 8870 library_names_spec='${libname}${shared_ext}' 8871 dynamic_linker="$host_os ld.so" 8872 shlibpath_var=LIBRARY_PATH 8873 ;; 8874 8875bsdi[45]*) 8876 version_type=linux 8877 need_version=no 8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8879 soname_spec='${libname}${release}${shared_ext}$major' 8880 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8881 shlibpath_var=LD_LIBRARY_PATH 8882 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8883 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8884 # the default ld.so.conf also contains /usr/contrib/lib and 8885 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8886 # libtool to hard-code these into programs 8887 ;; 8888 8889cygwin* | mingw* | pw32*) 8890 version_type=windows 8891 shrext_cmds=".dll" 8892 need_version=no 8893 need_lib_prefix=no 8894 8895 case $GCC,$host_os in 8896 yes,cygwin* | yes,mingw* | yes,pw32*) 8897 library_names_spec='$libname.dll.a' 8898 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8899 postinstall_cmds='base_file=`basename \${file}`~ 8900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8901 dldir=$destdir/`dirname \$dlpath`~ 8902 test -d \$dldir || mkdir -p \$dldir~ 8903 $install_prog $dir/$dlname \$dldir/$dlname' 8904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8905 dlpath=$dir/\$dldll~ 8906 $rm \$dlpath' 8907 shlibpath_overrides_runpath=yes 8908 8909 case $host_os in 8910 cygwin*) 8911 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8913 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8914 ;; 8915 mingw*) 8916 # MinGW DLLs use traditional 'lib' prefix 8917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8918 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8919 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8920 # It is most probably a Windows format PATH printed by 8921 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8922 # path with ; separators, and with drive letters. We can handle the 8923 # drive letters (cygwin fileutils understands them), so leave them, 8924 # especially as we might pass files found there to a mingw objdump, 8925 # which wouldn't understand a cygwinified path. Ahh. 8926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8927 else 8928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8929 fi 8930 ;; 8931 pw32*) 8932 # pw32 DLLs use 'pw' prefix rather than 'lib' 8933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8934 ;; 8935 esac 8936 ;; 8937 8938 *) 8939 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8940 ;; 8941 esac 8942 dynamic_linker='Win32 ld.exe' 8943 # FIXME: first we should search . and the directory the executable is in 8944 shlibpath_var=PATH 8945 ;; 8946 8947darwin* | rhapsody*) 8948 dynamic_linker="$host_os dyld" 8949 version_type=darwin 8950 need_lib_prefix=no 8951 need_version=no 8952 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8953 soname_spec='${libname}${release}${major}$shared_ext' 8954 shlibpath_overrides_runpath=yes 8955 shlibpath_var=DYLD_LIBRARY_PATH 8956 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 8957 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8958 if test "$GCC" = yes; then 8959 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 8960 else 8961 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8962 fi 8963 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8964 ;; 8965 8966dgux*) 8967 version_type=linux 8968 need_lib_prefix=no 8969 need_version=no 8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8971 soname_spec='${libname}${release}${shared_ext}$major' 8972 shlibpath_var=LD_LIBRARY_PATH 8973 ;; 8974 8975freebsd1*) 8976 dynamic_linker=no 8977 ;; 8978 8979kfreebsd*-gnu) 8980 version_type=linux 8981 need_lib_prefix=no 8982 need_version=no 8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8984 soname_spec='${libname}${release}${shared_ext}$major' 8985 shlibpath_var=LD_LIBRARY_PATH 8986 shlibpath_overrides_runpath=no 8987 hardcode_into_libs=yes 8988 dynamic_linker='GNU ld.so' 8989 ;; 8990 8991freebsd* | dragonfly*) 8992 # DragonFly does not have aout. When/if they implement a new 8993 # versioning mechanism, adjust this. 8994 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 8995 version_type=freebsd-$objformat 8996 case $version_type in 8997 freebsd-elf*) 8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8999 need_version=no 9000 need_lib_prefix=no 9001 ;; 9002 freebsd-*) 9003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9004 need_version=yes 9005 ;; 9006 esac 9007 shlibpath_var=LD_LIBRARY_PATH 9008 case $host_os in 9009 freebsd2*) 9010 shlibpath_overrides_runpath=yes 9011 ;; 9012 freebsd3.[01]* | freebsdelf3.[01]*) 9013 shlibpath_overrides_runpath=yes 9014 hardcode_into_libs=yes 9015 ;; 9016 *) # from 3.2 on 9017 shlibpath_overrides_runpath=no 9018 hardcode_into_libs=yes 9019 ;; 9020 esac 9021 ;; 9022 9023gnu*) 9024 version_type=linux 9025 need_lib_prefix=no 9026 need_version=no 9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9028 soname_spec='${libname}${release}${shared_ext}$major' 9029 shlibpath_var=LD_LIBRARY_PATH 9030 hardcode_into_libs=yes 9031 ;; 9032 9033hpux9* | hpux10* | hpux11*) 9034 # Give a soname corresponding to the major version so that dld.sl refuses to 9035 # link against other versions. 9036 version_type=sunos 9037 need_lib_prefix=no 9038 need_version=no 9039 case "$host_cpu" in 9040 ia64*) 9041 shrext_cmds='.so' 9042 hardcode_into_libs=yes 9043 dynamic_linker="$host_os dld.so" 9044 shlibpath_var=LD_LIBRARY_PATH 9045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9047 soname_spec='${libname}${release}${shared_ext}$major' 9048 if test "X$HPUX_IA64_MODE" = X32; then 9049 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9050 else 9051 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9052 fi 9053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9054 ;; 9055 hppa*64*) 9056 shrext_cmds='.sl' 9057 hardcode_into_libs=yes 9058 dynamic_linker="$host_os dld.sl" 9059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9062 soname_spec='${libname}${release}${shared_ext}$major' 9063 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9065 ;; 9066 *) 9067 shrext_cmds='.sl' 9068 dynamic_linker="$host_os dld.sl" 9069 shlibpath_var=SHLIB_PATH 9070 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9072 soname_spec='${libname}${release}${shared_ext}$major' 9073 ;; 9074 esac 9075 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9076 postinstall_cmds='chmod 555 $lib' 9077 ;; 9078 9079irix5* | irix6* | nonstopux*) 9080 case $host_os in 9081 nonstopux*) version_type=nonstopux ;; 9082 *) 9083 if test "$lt_cv_prog_gnu_ld" = yes; then 9084 version_type=linux 9085 else 9086 version_type=irix 9087 fi ;; 9088 esac 9089 need_lib_prefix=no 9090 need_version=no 9091 soname_spec='${libname}${release}${shared_ext}$major' 9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9093 case $host_os in 9094 irix5* | nonstopux*) 9095 libsuff= shlibsuff= 9096 ;; 9097 *) 9098 case $LD in # libtool.m4 will add one of these switches to LD 9099 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9100 libsuff= shlibsuff= libmagic=32-bit;; 9101 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9102 libsuff=32 shlibsuff=N32 libmagic=N32;; 9103 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9104 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9105 *) libsuff= shlibsuff= libmagic=never-match;; 9106 esac 9107 ;; 9108 esac 9109 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9110 shlibpath_overrides_runpath=no 9111 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9112 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9113 hardcode_into_libs=yes 9114 ;; 9115 9116# No shared lib support for Linux oldld, aout, or coff. 9117linux*oldld* | linux*aout* | linux*coff*) 9118 dynamic_linker=no 9119 ;; 9120 9121# This must be Linux ELF. 9122linux*) 9123 version_type=linux 9124 need_lib_prefix=no 9125 need_version=no 9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9127 soname_spec='${libname}${release}${shared_ext}$major' 9128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9129 shlibpath_var=LD_LIBRARY_PATH 9130 shlibpath_overrides_runpath=no 9131 # This implies no fast_install, which is unacceptable. 9132 # Some rework will be needed to allow for fast_install 9133 # before this can be enabled. 9134 hardcode_into_libs=yes 9135 9136 # Append ld.so.conf contents to the search path 9137 if test -f /etc/ld.so.conf; then 9138 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9139 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9140 fi 9141 9142 # We used to test for /lib/ld.so.1 and disable shared libraries on 9143 # powerpc, because MkLinux only supported shared libraries with the 9144 # GNU dynamic linker. Since this was broken with cross compilers, 9145 # most powerpc-linux boxes support dynamic linking these days and 9146 # people can always --disable-shared, the test was removed, and we 9147 # assume the GNU/Linux dynamic linker is in use. 9148 dynamic_linker='GNU/Linux ld.so' 9149 ;; 9150 9151knetbsd*-gnu) 9152 version_type=linux 9153 need_lib_prefix=no 9154 need_version=no 9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9156 soname_spec='${libname}${release}${shared_ext}$major' 9157 shlibpath_var=LD_LIBRARY_PATH 9158 shlibpath_overrides_runpath=no 9159 hardcode_into_libs=yes 9160 dynamic_linker='GNU ld.so' 9161 ;; 9162 9163netbsd*) 9164 version_type=sunos 9165 need_lib_prefix=no 9166 need_version=no 9167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9170 dynamic_linker='NetBSD (a.out) ld.so' 9171 else 9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9173 soname_spec='${libname}${release}${shared_ext}$major' 9174 dynamic_linker='NetBSD ld.elf_so' 9175 fi 9176 shlibpath_var=LD_LIBRARY_PATH 9177 shlibpath_overrides_runpath=yes 9178 hardcode_into_libs=yes 9179 ;; 9180 9181newsos6) 9182 version_type=linux 9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9184 shlibpath_var=LD_LIBRARY_PATH 9185 shlibpath_overrides_runpath=yes 9186 ;; 9187 9188nto-qnx*) 9189 version_type=linux 9190 need_lib_prefix=no 9191 need_version=no 9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9193 soname_spec='${libname}${release}${shared_ext}$major' 9194 shlibpath_var=LD_LIBRARY_PATH 9195 shlibpath_overrides_runpath=yes 9196 ;; 9197 9198openbsd*) 9199 version_type=sunos 9200 need_lib_prefix=no 9201 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9202 case $host_os in 9203 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9204 *) need_version=no ;; 9205 esac 9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9208 shlibpath_var=LD_LIBRARY_PATH 9209 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9210 case $host_os in 9211 openbsd2.[89] | openbsd2.[89].*) 9212 shlibpath_overrides_runpath=no 9213 ;; 9214 *) 9215 shlibpath_overrides_runpath=yes 9216 ;; 9217 esac 9218 else 9219 shlibpath_overrides_runpath=yes 9220 fi 9221 ;; 9222 9223os2*) 9224 libname_spec='$name' 9225 shrext_cmds=".dll" 9226 need_lib_prefix=no 9227 library_names_spec='$libname${shared_ext} $libname.a' 9228 dynamic_linker='OS/2 ld.exe' 9229 shlibpath_var=LIBPATH 9230 ;; 9231 9232osf3* | osf4* | osf5*) 9233 version_type=osf 9234 need_lib_prefix=no 9235 need_version=no 9236 soname_spec='${libname}${release}${shared_ext}$major' 9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9238 shlibpath_var=LD_LIBRARY_PATH 9239 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9240 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9241 ;; 9242 9243sco3.2v5*) 9244 version_type=osf 9245 soname_spec='${libname}${release}${shared_ext}$major' 9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9247 shlibpath_var=LD_LIBRARY_PATH 9248 ;; 9249 9250solaris*) 9251 version_type=linux 9252 need_lib_prefix=no 9253 need_version=no 9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9255 soname_spec='${libname}${release}${shared_ext}$major' 9256 shlibpath_var=LD_LIBRARY_PATH 9257 shlibpath_overrides_runpath=yes 9258 hardcode_into_libs=yes 9259 # ldd complains unless libraries are executable 9260 postinstall_cmds='chmod +x $lib' 9261 ;; 9262 9263sunos4*) 9264 version_type=sunos 9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9266 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9267 shlibpath_var=LD_LIBRARY_PATH 9268 shlibpath_overrides_runpath=yes 9269 if test "$with_gnu_ld" = yes; then 9270 need_lib_prefix=no 9271 fi 9272 need_version=yes 9273 ;; 9274 9275sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9276 version_type=linux 9277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9278 soname_spec='${libname}${release}${shared_ext}$major' 9279 shlibpath_var=LD_LIBRARY_PATH 9280 case $host_vendor in 9281 sni) 9282 shlibpath_overrides_runpath=no 9283 need_lib_prefix=no 9284 export_dynamic_flag_spec='${wl}-Blargedynsym' 9285 runpath_var=LD_RUN_PATH 9286 ;; 9287 siemens) 9288 need_lib_prefix=no 9289 ;; 9290 motorola) 9291 need_lib_prefix=no 9292 need_version=no 9293 shlibpath_overrides_runpath=no 9294 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9295 ;; 9296 esac 9297 ;; 9298 9299sysv4*MP*) 9300 if test -d /usr/nec ;then 9301 version_type=linux 9302 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9303 soname_spec='$libname${shared_ext}.$major' 9304 shlibpath_var=LD_LIBRARY_PATH 9305 fi 9306 ;; 9307 9308uts4*) 9309 version_type=linux 9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9311 soname_spec='${libname}${release}${shared_ext}$major' 9312 shlibpath_var=LD_LIBRARY_PATH 9313 ;; 9314 9315*) 9316 dynamic_linker=no 9317 ;; 9318esac 9319echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9320echo "${ECHO_T}$dynamic_linker" >&6 9321test "$dynamic_linker" = no && can_build_shared=no 9322 9323echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9324echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 9325hardcode_action= 9326if test -n "$hardcode_libdir_flag_spec" || \ 9327 test -n "$runpath_var" || \ 9328 test "X$hardcode_automatic" = "Xyes" ; then 9329 9330 # We can hardcode non-existant directories. 9331 if test "$hardcode_direct" != no && 9332 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9333 # have to relink, otherwise we might link with an installed library 9334 # when we should be linking with a yet-to-be-installed one 9335 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9336 test "$hardcode_minus_L" != no; then 9337 # Linking always hardcodes the temporary library directory. 9338 hardcode_action=relink 9339 else 9340 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9341 hardcode_action=immediate 9342 fi 9343else 9344 # We cannot hardcode anything, or else we can only hardcode existing 9345 # directories. 9346 hardcode_action=unsupported 9347fi 9348echo "$as_me:$LINENO: result: $hardcode_action" >&5 9349echo "${ECHO_T}$hardcode_action" >&6 9350 9351if test "$hardcode_action" = relink; then 9352 # Fast installation is not supported 9353 enable_fast_install=no 9354elif test "$shlibpath_overrides_runpath" = yes || 9355 test "$enable_shared" = no; then 9356 # Fast installation is not necessary 9357 enable_fast_install=needless 9358fi 9359 9360striplib= 9361old_striplib= 9362echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9363echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 9364if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9365 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9366 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9367 echo "$as_me:$LINENO: result: yes" >&5 9368echo "${ECHO_T}yes" >&6 9369else 9370# FIXME - insert some real tests, host_os isn't really good enough 9371 case $host_os in 9372 darwin*) 9373 if test -n "$STRIP" ; then 9374 striplib="$STRIP -x" 9375 echo "$as_me:$LINENO: result: yes" >&5 9376echo "${ECHO_T}yes" >&6 9377 else 9378 echo "$as_me:$LINENO: result: no" >&5 9379echo "${ECHO_T}no" >&6 9380fi 9381 ;; 9382 *) 9383 echo "$as_me:$LINENO: result: no" >&5 9384echo "${ECHO_T}no" >&6 9385 ;; 9386 esac 9387fi 9388 9389if test "x$enable_dlopen" != xyes; then 9390 enable_dlopen=unknown 9391 enable_dlopen_self=unknown 9392 enable_dlopen_self_static=unknown 9393else 9394 lt_cv_dlopen=no 9395 lt_cv_dlopen_libs= 9396 9397 case $host_os in 9398 beos*) 9399 lt_cv_dlopen="load_add_on" 9400 lt_cv_dlopen_libs= 9401 lt_cv_dlopen_self=yes 9402 ;; 9403 9404 mingw* | pw32*) 9405 lt_cv_dlopen="LoadLibrary" 9406 lt_cv_dlopen_libs= 9407 ;; 9408 9409 cygwin*) 9410 lt_cv_dlopen="dlopen" 9411 lt_cv_dlopen_libs= 9412 ;; 9413 9414 darwin*) 9415 # if libdl is installed we need to link against it 9416 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9417echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9418if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9419 echo $ECHO_N "(cached) $ECHO_C" >&6 9420else 9421 ac_check_lib_save_LIBS=$LIBS 9422LIBS="-ldl $LIBS" 9423cat >conftest.$ac_ext <<_ACEOF 9424/* confdefs.h. */ 9425_ACEOF 9426cat confdefs.h >>conftest.$ac_ext 9427cat >>conftest.$ac_ext <<_ACEOF 9428/* end confdefs.h. */ 9429 9430/* Override any gcc2 internal prototype to avoid an error. */ 9431#ifdef __cplusplus 9432extern "C" 9433#endif 9434/* We use char because int might match the return type of a gcc2 9435 builtin and then its argument prototype would still apply. */ 9436char dlopen (); 9437int 9438main () 9439{ 9440dlopen (); 9441 ; 9442 return 0; 9443} 9444_ACEOF 9445rm -f conftest.$ac_objext conftest$ac_exeext 9446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9447 (eval $ac_link) 2>conftest.er1 9448 ac_status=$? 9449 grep -v '^ *+' conftest.er1 >conftest.err 9450 rm -f conftest.er1 9451 cat conftest.err >&5 9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9453 (exit $ac_status); } && 9454 { ac_try='test -z "$ac_c_werror_flag" 9455 || test ! -s conftest.err' 9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9457 (eval $ac_try) 2>&5 9458 ac_status=$? 9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9460 (exit $ac_status); }; } && 9461 { ac_try='test -s conftest$ac_exeext' 9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9463 (eval $ac_try) 2>&5 9464 ac_status=$? 9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9466 (exit $ac_status); }; }; then 9467 ac_cv_lib_dl_dlopen=yes 9468else 9469 echo "$as_me: failed program was:" >&5 9470sed 's/^/| /' conftest.$ac_ext >&5 9471 9472ac_cv_lib_dl_dlopen=no 9473fi 9474rm -f conftest.err conftest.$ac_objext \ 9475 conftest$ac_exeext conftest.$ac_ext 9476LIBS=$ac_check_lib_save_LIBS 9477fi 9478echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9479echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9480if test $ac_cv_lib_dl_dlopen = yes; then 9481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9482else 9483 9484 lt_cv_dlopen="dyld" 9485 lt_cv_dlopen_libs= 9486 lt_cv_dlopen_self=yes 9487 9488fi 9489 9490 ;; 9491 9492 *) 9493 echo "$as_me:$LINENO: checking for shl_load" >&5 9494echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 9495if test "${ac_cv_func_shl_load+set}" = set; then 9496 echo $ECHO_N "(cached) $ECHO_C" >&6 9497else 9498 cat >conftest.$ac_ext <<_ACEOF 9499/* confdefs.h. */ 9500_ACEOF 9501cat confdefs.h >>conftest.$ac_ext 9502cat >>conftest.$ac_ext <<_ACEOF 9503/* end confdefs.h. */ 9504/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9505 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9506#define shl_load innocuous_shl_load 9507 9508/* System header to define __stub macros and hopefully few prototypes, 9509 which can conflict with char shl_load (); below. 9510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9511 <limits.h> exists even on freestanding compilers. */ 9512 9513#ifdef __STDC__ 9514# include <limits.h> 9515#else 9516# include <assert.h> 9517#endif 9518 9519#undef shl_load 9520 9521/* Override any gcc2 internal prototype to avoid an error. */ 9522#ifdef __cplusplus 9523extern "C" 9524{ 9525#endif 9526/* We use char because int might match the return type of a gcc2 9527 builtin and then its argument prototype would still apply. */ 9528char shl_load (); 9529/* The GNU C library defines this for functions which it implements 9530 to always fail with ENOSYS. Some functions are actually named 9531 something starting with __ and the normal name is an alias. */ 9532#if defined (__stub_shl_load) || defined (__stub___shl_load) 9533choke me 9534#else 9535char (*f) () = shl_load; 9536#endif 9537#ifdef __cplusplus 9538} 9539#endif 9540 9541int 9542main () 9543{ 9544return f != shl_load; 9545 ; 9546 return 0; 9547} 9548_ACEOF 9549rm -f conftest.$ac_objext conftest$ac_exeext 9550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9551 (eval $ac_link) 2>conftest.er1 9552 ac_status=$? 9553 grep -v '^ *+' conftest.er1 >conftest.err 9554 rm -f conftest.er1 9555 cat conftest.err >&5 9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9557 (exit $ac_status); } && 9558 { ac_try='test -z "$ac_c_werror_flag" 9559 || test ! -s conftest.err' 9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9561 (eval $ac_try) 2>&5 9562 ac_status=$? 9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9564 (exit $ac_status); }; } && 9565 { ac_try='test -s conftest$ac_exeext' 9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9567 (eval $ac_try) 2>&5 9568 ac_status=$? 9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9570 (exit $ac_status); }; }; then 9571 ac_cv_func_shl_load=yes 9572else 9573 echo "$as_me: failed program was:" >&5 9574sed 's/^/| /' conftest.$ac_ext >&5 9575 9576ac_cv_func_shl_load=no 9577fi 9578rm -f conftest.err conftest.$ac_objext \ 9579 conftest$ac_exeext conftest.$ac_ext 9580fi 9581echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9582echo "${ECHO_T}$ac_cv_func_shl_load" >&6 9583if test $ac_cv_func_shl_load = yes; then 9584 lt_cv_dlopen="shl_load" 9585else 9586 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9587echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 9588if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9589 echo $ECHO_N "(cached) $ECHO_C" >&6 9590else 9591 ac_check_lib_save_LIBS=$LIBS 9592LIBS="-ldld $LIBS" 9593cat >conftest.$ac_ext <<_ACEOF 9594/* confdefs.h. */ 9595_ACEOF 9596cat confdefs.h >>conftest.$ac_ext 9597cat >>conftest.$ac_ext <<_ACEOF 9598/* end confdefs.h. */ 9599 9600/* Override any gcc2 internal prototype to avoid an error. */ 9601#ifdef __cplusplus 9602extern "C" 9603#endif 9604/* We use char because int might match the return type of a gcc2 9605 builtin and then its argument prototype would still apply. */ 9606char shl_load (); 9607int 9608main () 9609{ 9610shl_load (); 9611 ; 9612 return 0; 9613} 9614_ACEOF 9615rm -f conftest.$ac_objext conftest$ac_exeext 9616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9617 (eval $ac_link) 2>conftest.er1 9618 ac_status=$? 9619 grep -v '^ *+' conftest.er1 >conftest.err 9620 rm -f conftest.er1 9621 cat conftest.err >&5 9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9623 (exit $ac_status); } && 9624 { ac_try='test -z "$ac_c_werror_flag" 9625 || test ! -s conftest.err' 9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9627 (eval $ac_try) 2>&5 9628 ac_status=$? 9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9630 (exit $ac_status); }; } && 9631 { ac_try='test -s conftest$ac_exeext' 9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9633 (eval $ac_try) 2>&5 9634 ac_status=$? 9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9636 (exit $ac_status); }; }; then 9637 ac_cv_lib_dld_shl_load=yes 9638else 9639 echo "$as_me: failed program was:" >&5 9640sed 's/^/| /' conftest.$ac_ext >&5 9641 9642ac_cv_lib_dld_shl_load=no 9643fi 9644rm -f conftest.err conftest.$ac_objext \ 9645 conftest$ac_exeext conftest.$ac_ext 9646LIBS=$ac_check_lib_save_LIBS 9647fi 9648echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9649echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 9650if test $ac_cv_lib_dld_shl_load = yes; then 9651 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9652else 9653 echo "$as_me:$LINENO: checking for dlopen" >&5 9654echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 9655if test "${ac_cv_func_dlopen+set}" = set; then 9656 echo $ECHO_N "(cached) $ECHO_C" >&6 9657else 9658 cat >conftest.$ac_ext <<_ACEOF 9659/* confdefs.h. */ 9660_ACEOF 9661cat confdefs.h >>conftest.$ac_ext 9662cat >>conftest.$ac_ext <<_ACEOF 9663/* end confdefs.h. */ 9664/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9665 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9666#define dlopen innocuous_dlopen 9667 9668/* System header to define __stub macros and hopefully few prototypes, 9669 which can conflict with char dlopen (); below. 9670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9671 <limits.h> exists even on freestanding compilers. */ 9672 9673#ifdef __STDC__ 9674# include <limits.h> 9675#else 9676# include <assert.h> 9677#endif 9678 9679#undef dlopen 9680 9681/* Override any gcc2 internal prototype to avoid an error. */ 9682#ifdef __cplusplus 9683extern "C" 9684{ 9685#endif 9686/* We use char because int might match the return type of a gcc2 9687 builtin and then its argument prototype would still apply. */ 9688char dlopen (); 9689/* The GNU C library defines this for functions which it implements 9690 to always fail with ENOSYS. Some functions are actually named 9691 something starting with __ and the normal name is an alias. */ 9692#if defined (__stub_dlopen) || defined (__stub___dlopen) 9693choke me 9694#else 9695char (*f) () = dlopen; 9696#endif 9697#ifdef __cplusplus 9698} 9699#endif 9700 9701int 9702main () 9703{ 9704return f != dlopen; 9705 ; 9706 return 0; 9707} 9708_ACEOF 9709rm -f conftest.$ac_objext conftest$ac_exeext 9710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9711 (eval $ac_link) 2>conftest.er1 9712 ac_status=$? 9713 grep -v '^ *+' conftest.er1 >conftest.err 9714 rm -f conftest.er1 9715 cat conftest.err >&5 9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9717 (exit $ac_status); } && 9718 { ac_try='test -z "$ac_c_werror_flag" 9719 || test ! -s conftest.err' 9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9721 (eval $ac_try) 2>&5 9722 ac_status=$? 9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9724 (exit $ac_status); }; } && 9725 { ac_try='test -s conftest$ac_exeext' 9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9727 (eval $ac_try) 2>&5 9728 ac_status=$? 9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9730 (exit $ac_status); }; }; then 9731 ac_cv_func_dlopen=yes 9732else 9733 echo "$as_me: failed program was:" >&5 9734sed 's/^/| /' conftest.$ac_ext >&5 9735 9736ac_cv_func_dlopen=no 9737fi 9738rm -f conftest.err conftest.$ac_objext \ 9739 conftest$ac_exeext conftest.$ac_ext 9740fi 9741echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9742echo "${ECHO_T}$ac_cv_func_dlopen" >&6 9743if test $ac_cv_func_dlopen = yes; then 9744 lt_cv_dlopen="dlopen" 9745else 9746 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9747echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9748if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9749 echo $ECHO_N "(cached) $ECHO_C" >&6 9750else 9751 ac_check_lib_save_LIBS=$LIBS 9752LIBS="-ldl $LIBS" 9753cat >conftest.$ac_ext <<_ACEOF 9754/* confdefs.h. */ 9755_ACEOF 9756cat confdefs.h >>conftest.$ac_ext 9757cat >>conftest.$ac_ext <<_ACEOF 9758/* end confdefs.h. */ 9759 9760/* Override any gcc2 internal prototype to avoid an error. */ 9761#ifdef __cplusplus 9762extern "C" 9763#endif 9764/* We use char because int might match the return type of a gcc2 9765 builtin and then its argument prototype would still apply. */ 9766char dlopen (); 9767int 9768main () 9769{ 9770dlopen (); 9771 ; 9772 return 0; 9773} 9774_ACEOF 9775rm -f conftest.$ac_objext conftest$ac_exeext 9776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9777 (eval $ac_link) 2>conftest.er1 9778 ac_status=$? 9779 grep -v '^ *+' conftest.er1 >conftest.err 9780 rm -f conftest.er1 9781 cat conftest.err >&5 9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9783 (exit $ac_status); } && 9784 { ac_try='test -z "$ac_c_werror_flag" 9785 || test ! -s conftest.err' 9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9787 (eval $ac_try) 2>&5 9788 ac_status=$? 9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9790 (exit $ac_status); }; } && 9791 { ac_try='test -s conftest$ac_exeext' 9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9793 (eval $ac_try) 2>&5 9794 ac_status=$? 9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9796 (exit $ac_status); }; }; then 9797 ac_cv_lib_dl_dlopen=yes 9798else 9799 echo "$as_me: failed program was:" >&5 9800sed 's/^/| /' conftest.$ac_ext >&5 9801 9802ac_cv_lib_dl_dlopen=no 9803fi 9804rm -f conftest.err conftest.$ac_objext \ 9805 conftest$ac_exeext conftest.$ac_ext 9806LIBS=$ac_check_lib_save_LIBS 9807fi 9808echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9809echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9810if test $ac_cv_lib_dl_dlopen = yes; then 9811 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9812else 9813 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9814echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 9815if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9816 echo $ECHO_N "(cached) $ECHO_C" >&6 9817else 9818 ac_check_lib_save_LIBS=$LIBS 9819LIBS="-lsvld $LIBS" 9820cat >conftest.$ac_ext <<_ACEOF 9821/* confdefs.h. */ 9822_ACEOF 9823cat confdefs.h >>conftest.$ac_ext 9824cat >>conftest.$ac_ext <<_ACEOF 9825/* end confdefs.h. */ 9826 9827/* Override any gcc2 internal prototype to avoid an error. */ 9828#ifdef __cplusplus 9829extern "C" 9830#endif 9831/* We use char because int might match the return type of a gcc2 9832 builtin and then its argument prototype would still apply. */ 9833char dlopen (); 9834int 9835main () 9836{ 9837dlopen (); 9838 ; 9839 return 0; 9840} 9841_ACEOF 9842rm -f conftest.$ac_objext conftest$ac_exeext 9843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9844 (eval $ac_link) 2>conftest.er1 9845 ac_status=$? 9846 grep -v '^ *+' conftest.er1 >conftest.err 9847 rm -f conftest.er1 9848 cat conftest.err >&5 9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9850 (exit $ac_status); } && 9851 { ac_try='test -z "$ac_c_werror_flag" 9852 || test ! -s conftest.err' 9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9854 (eval $ac_try) 2>&5 9855 ac_status=$? 9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9857 (exit $ac_status); }; } && 9858 { ac_try='test -s conftest$ac_exeext' 9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9860 (eval $ac_try) 2>&5 9861 ac_status=$? 9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9863 (exit $ac_status); }; }; then 9864 ac_cv_lib_svld_dlopen=yes 9865else 9866 echo "$as_me: failed program was:" >&5 9867sed 's/^/| /' conftest.$ac_ext >&5 9868 9869ac_cv_lib_svld_dlopen=no 9870fi 9871rm -f conftest.err conftest.$ac_objext \ 9872 conftest$ac_exeext conftest.$ac_ext 9873LIBS=$ac_check_lib_save_LIBS 9874fi 9875echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9876echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9877if test $ac_cv_lib_svld_dlopen = yes; then 9878 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9879else 9880 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9881echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9882if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9883 echo $ECHO_N "(cached) $ECHO_C" >&6 9884else 9885 ac_check_lib_save_LIBS=$LIBS 9886LIBS="-ldld $LIBS" 9887cat >conftest.$ac_ext <<_ACEOF 9888/* confdefs.h. */ 9889_ACEOF 9890cat confdefs.h >>conftest.$ac_ext 9891cat >>conftest.$ac_ext <<_ACEOF 9892/* end confdefs.h. */ 9893 9894/* Override any gcc2 internal prototype to avoid an error. */ 9895#ifdef __cplusplus 9896extern "C" 9897#endif 9898/* We use char because int might match the return type of a gcc2 9899 builtin and then its argument prototype would still apply. */ 9900char dld_link (); 9901int 9902main () 9903{ 9904dld_link (); 9905 ; 9906 return 0; 9907} 9908_ACEOF 9909rm -f conftest.$ac_objext conftest$ac_exeext 9910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9911 (eval $ac_link) 2>conftest.er1 9912 ac_status=$? 9913 grep -v '^ *+' conftest.er1 >conftest.err 9914 rm -f conftest.er1 9915 cat conftest.err >&5 9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9917 (exit $ac_status); } && 9918 { ac_try='test -z "$ac_c_werror_flag" 9919 || test ! -s conftest.err' 9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9921 (eval $ac_try) 2>&5 9922 ac_status=$? 9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9924 (exit $ac_status); }; } && 9925 { ac_try='test -s conftest$ac_exeext' 9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9927 (eval $ac_try) 2>&5 9928 ac_status=$? 9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9930 (exit $ac_status); }; }; then 9931 ac_cv_lib_dld_dld_link=yes 9932else 9933 echo "$as_me: failed program was:" >&5 9934sed 's/^/| /' conftest.$ac_ext >&5 9935 9936ac_cv_lib_dld_dld_link=no 9937fi 9938rm -f conftest.err conftest.$ac_objext \ 9939 conftest$ac_exeext conftest.$ac_ext 9940LIBS=$ac_check_lib_save_LIBS 9941fi 9942echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9943echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9944if test $ac_cv_lib_dld_dld_link = yes; then 9945 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9946fi 9947 9948 9949fi 9950 9951 9952fi 9953 9954 9955fi 9956 9957 9958fi 9959 9960 9961fi 9962 9963 ;; 9964 esac 9965 9966 if test "x$lt_cv_dlopen" != xno; then 9967 enable_dlopen=yes 9968 else 9969 enable_dlopen=no 9970 fi 9971 9972 case $lt_cv_dlopen in 9973 dlopen) 9974 save_CPPFLAGS="$CPPFLAGS" 9975 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9976 9977 save_LDFLAGS="$LDFLAGS" 9978 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9979 9980 save_LIBS="$LIBS" 9981 LIBS="$lt_cv_dlopen_libs $LIBS" 9982 9983 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9984echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9985if test "${lt_cv_dlopen_self+set}" = set; then 9986 echo $ECHO_N "(cached) $ECHO_C" >&6 9987else 9988 if test "$cross_compiling" = yes; then : 9989 lt_cv_dlopen_self=cross 9990else 9991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9992 lt_status=$lt_dlunknown 9993 cat > conftest.$ac_ext <<EOF 9994#line 9994 "configure" 9995#include "confdefs.h" 9996 9997#if HAVE_DLFCN_H 9998#include <dlfcn.h> 9999#endif 10000 10001#include <stdio.h> 10002 10003#ifdef RTLD_GLOBAL 10004# define LT_DLGLOBAL RTLD_GLOBAL 10005#else 10006# ifdef DL_GLOBAL 10007# define LT_DLGLOBAL DL_GLOBAL 10008# else 10009# define LT_DLGLOBAL 0 10010# endif 10011#endif 10012 10013/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10014 find out it does not work in some platform. */ 10015#ifndef LT_DLLAZY_OR_NOW 10016# ifdef RTLD_LAZY 10017# define LT_DLLAZY_OR_NOW RTLD_LAZY 10018# else 10019# ifdef DL_LAZY 10020# define LT_DLLAZY_OR_NOW DL_LAZY 10021# else 10022# ifdef RTLD_NOW 10023# define LT_DLLAZY_OR_NOW RTLD_NOW 10024# else 10025# ifdef DL_NOW 10026# define LT_DLLAZY_OR_NOW DL_NOW 10027# else 10028# define LT_DLLAZY_OR_NOW 0 10029# endif 10030# endif 10031# endif 10032# endif 10033#endif 10034 10035#ifdef __cplusplus 10036extern "C" void exit (int); 10037#endif 10038 10039void fnord() { int i=42;} 10040int main () 10041{ 10042 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10043 int status = $lt_dlunknown; 10044 10045 if (self) 10046 { 10047 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10048 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10049 /* dlclose (self); */ 10050 } 10051 10052 exit (status); 10053} 10054EOF 10055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10056 (eval $ac_link) 2>&5 10057 ac_status=$? 10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10059 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10060 (./conftest; exit; ) 2>/dev/null 10061 lt_status=$? 10062 case x$lt_status in 10063 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10064 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10065 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 10066 esac 10067 else : 10068 # compilation failed 10069 lt_cv_dlopen_self=no 10070 fi 10071fi 10072rm -fr conftest* 10073 10074 10075fi 10076echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10077echo "${ECHO_T}$lt_cv_dlopen_self" >&6 10078 10079 if test "x$lt_cv_dlopen_self" = xyes; then 10080 LDFLAGS="$LDFLAGS $link_static_flag" 10081 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10082echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 10083if test "${lt_cv_dlopen_self_static+set}" = set; then 10084 echo $ECHO_N "(cached) $ECHO_C" >&6 10085else 10086 if test "$cross_compiling" = yes; then : 10087 lt_cv_dlopen_self_static=cross 10088else 10089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10090 lt_status=$lt_dlunknown 10091 cat > conftest.$ac_ext <<EOF 10092#line 10092 "configure" 10093#include "confdefs.h" 10094 10095#if HAVE_DLFCN_H 10096#include <dlfcn.h> 10097#endif 10098 10099#include <stdio.h> 10100 10101#ifdef RTLD_GLOBAL 10102# define LT_DLGLOBAL RTLD_GLOBAL 10103#else 10104# ifdef DL_GLOBAL 10105# define LT_DLGLOBAL DL_GLOBAL 10106# else 10107# define LT_DLGLOBAL 0 10108# endif 10109#endif 10110 10111/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10112 find out it does not work in some platform. */ 10113#ifndef LT_DLLAZY_OR_NOW 10114# ifdef RTLD_LAZY 10115# define LT_DLLAZY_OR_NOW RTLD_LAZY 10116# else 10117# ifdef DL_LAZY 10118# define LT_DLLAZY_OR_NOW DL_LAZY 10119# else 10120# ifdef RTLD_NOW 10121# define LT_DLLAZY_OR_NOW RTLD_NOW 10122# else 10123# ifdef DL_NOW 10124# define LT_DLLAZY_OR_NOW DL_NOW 10125# else 10126# define LT_DLLAZY_OR_NOW 0 10127# endif 10128# endif 10129# endif 10130# endif 10131#endif 10132 10133#ifdef __cplusplus 10134extern "C" void exit (int); 10135#endif 10136 10137void fnord() { int i=42;} 10138int main () 10139{ 10140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10141 int status = $lt_dlunknown; 10142 10143 if (self) 10144 { 10145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10146 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10147 /* dlclose (self); */ 10148 } 10149 10150 exit (status); 10151} 10152EOF 10153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10154 (eval $ac_link) 2>&5 10155 ac_status=$? 10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10157 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10158 (./conftest; exit; ) 2>/dev/null 10159 lt_status=$? 10160 case x$lt_status in 10161 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10162 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10163 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 10164 esac 10165 else : 10166 # compilation failed 10167 lt_cv_dlopen_self_static=no 10168 fi 10169fi 10170rm -fr conftest* 10171 10172 10173fi 10174echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10175echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 10176 fi 10177 10178 CPPFLAGS="$save_CPPFLAGS" 10179 LDFLAGS="$save_LDFLAGS" 10180 LIBS="$save_LIBS" 10181 ;; 10182 esac 10183 10184 case $lt_cv_dlopen_self in 10185 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10186 *) enable_dlopen_self=unknown ;; 10187 esac 10188 10189 case $lt_cv_dlopen_self_static in 10190 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10191 *) enable_dlopen_self_static=unknown ;; 10192 esac 10193fi 10194 10195 10196# Report which librarie types wil actually be built 10197echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10198echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 10199echo "$as_me:$LINENO: result: $can_build_shared" >&5 10200echo "${ECHO_T}$can_build_shared" >&6 10201 10202echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10203echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 10204test "$can_build_shared" = "no" && enable_shared=no 10205 10206# On AIX, shared libraries and static libraries use the same namespace, and 10207# are all built from PIC. 10208case "$host_os" in 10209aix3*) 10210 test "$enable_shared" = yes && enable_static=no 10211 if test -n "$RANLIB"; then 10212 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10213 postinstall_cmds='$RANLIB $lib' 10214 fi 10215 ;; 10216 10217aix4* | aix5*) 10218 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10219 test "$enable_shared" = yes && enable_static=no 10220 fi 10221 ;; 10222esac 10223echo "$as_me:$LINENO: result: $enable_shared" >&5 10224echo "${ECHO_T}$enable_shared" >&6 10225 10226echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10227echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 10228# Make sure either enable_shared or enable_static is yes. 10229test "$enable_shared" = yes || enable_static=yes 10230echo "$as_me:$LINENO: result: $enable_static" >&5 10231echo "${ECHO_T}$enable_static" >&6 10232 10233# The else clause should only fire when bootstrapping the 10234# libtool distribution, otherwise you forgot to ship ltmain.sh 10235# with your package, and you will get complaints that there are 10236# no rules to generate ltmain.sh. 10237if test -f "$ltmain"; then 10238 # See if we are running on zsh, and set the options which allow our commands through 10239 # without removal of \ escapes. 10240 if test -n "${ZSH_VERSION+set}" ; then 10241 setopt NO_GLOB_SUBST 10242 fi 10243 # Now quote all the things that may contain metacharacters while being 10244 # careful not to overquote the AC_SUBSTed values. We take copies of the 10245 # variables and quote the copies for generation of the libtool script. 10246 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 10247 SED SHELL STRIP \ 10248 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10249 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10250 deplibs_check_method reload_flag reload_cmds need_locks \ 10251 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10252 lt_cv_sys_global_symbol_to_c_name_address \ 10253 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10254 old_postinstall_cmds old_postuninstall_cmds \ 10255 compiler \ 10256 CC \ 10257 LD \ 10258 lt_prog_compiler_wl \ 10259 lt_prog_compiler_pic \ 10260 lt_prog_compiler_static \ 10261 lt_prog_compiler_no_builtin_flag \ 10262 export_dynamic_flag_spec \ 10263 thread_safe_flag_spec \ 10264 whole_archive_flag_spec \ 10265 enable_shared_with_static_runtimes \ 10266 old_archive_cmds \ 10267 old_archive_from_new_cmds \ 10268 predep_objects \ 10269 postdep_objects \ 10270 predeps \ 10271 postdeps \ 10272 compiler_lib_search_path \ 10273 archive_cmds \ 10274 archive_expsym_cmds \ 10275 postinstall_cmds \ 10276 postuninstall_cmds \ 10277 old_archive_from_expsyms_cmds \ 10278 allow_undefined_flag \ 10279 no_undefined_flag \ 10280 export_symbols_cmds \ 10281 hardcode_libdir_flag_spec \ 10282 hardcode_libdir_flag_spec_ld \ 10283 hardcode_libdir_separator \ 10284 hardcode_automatic \ 10285 module_cmds \ 10286 module_expsym_cmds \ 10287 lt_cv_prog_compiler_c_o \ 10288 exclude_expsyms \ 10289 include_expsyms; do 10290 10291 case $var in 10292 old_archive_cmds | \ 10293 old_archive_from_new_cmds | \ 10294 archive_cmds | \ 10295 archive_expsym_cmds | \ 10296 module_cmds | \ 10297 module_expsym_cmds | \ 10298 old_archive_from_expsyms_cmds | \ 10299 export_symbols_cmds | \ 10300 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10301 postinstall_cmds | postuninstall_cmds | \ 10302 old_postinstall_cmds | old_postuninstall_cmds | \ 10303 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10304 # Double-quote double-evaled strings. 10305 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10306 ;; 10307 *) 10308 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10309 ;; 10310 esac 10311 done 10312 10313 case $lt_echo in 10314 *'\$0 --fallback-echo"') 10315 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10316 ;; 10317 esac 10318 10319cfgfile="${ofile}T" 10320 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10321 $rm -f "$cfgfile" 10322 { echo "$as_me:$LINENO: creating $ofile" >&5 10323echo "$as_me: creating $ofile" >&6;} 10324 10325 cat <<__EOF__ >> "$cfgfile" 10326#! $SHELL 10327 10328# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10329# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10330# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10331# 10332# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10333# Free Software Foundation, Inc. 10334# 10335# This file is part of GNU Libtool: 10336# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10337# 10338# This program is free software; you can redistribute it and/or modify 10339# it under the terms of the GNU General Public License as published by 10340# the Free Software Foundation; either version 2 of the License, or 10341# (at your option) any later version. 10342# 10343# This program is distributed in the hope that it will be useful, but 10344# WITHOUT ANY WARRANTY; without even the implied warranty of 10345# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10346# General Public License for more details. 10347# 10348# You should have received a copy of the GNU General Public License 10349# along with this program; if not, write to the Free Software 10350# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10351# 10352# As a special exception to the GNU General Public License, if you 10353# distribute this file as part of a program that contains a 10354# configuration script generated by Autoconf, you may include it under 10355# the same distribution terms that you use for the rest of that program. 10356 10357# A sed program that does not truncate output. 10358SED=$lt_SED 10359 10360# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10361Xsed="$SED -e 1s/^X//" 10362 10363# The HP-UX ksh and POSIX shell print the target directory to stdout 10364# if CDPATH is set. 10365(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10366 10367# The names of the tagged configurations supported by this script. 10368available_tags= 10369 10370# ### BEGIN LIBTOOL CONFIG 10371 10372# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10373 10374# Shell to use when invoking shell scripts. 10375SHELL=$lt_SHELL 10376 10377# Whether or not to build shared libraries. 10378build_libtool_libs=$enable_shared 10379 10380# Whether or not to build static libraries. 10381build_old_libs=$enable_static 10382 10383# Whether or not to add -lc for building shared libraries. 10384build_libtool_need_lc=$archive_cmds_need_lc 10385 10386# Whether or not to disallow shared libs when runtime libs are static 10387allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10388 10389# Whether or not to optimize for fast installation. 10390fast_install=$enable_fast_install 10391 10392# The host system. 10393host_alias=$host_alias 10394host=$host 10395host_os=$host_os 10396 10397# The build system. 10398build_alias=$build_alias 10399build=$build 10400build_os=$build_os 10401 10402# An echo program that does not interpret backslashes. 10403echo=$lt_echo 10404 10405# The archiver. 10406AR=$lt_AR 10407AR_FLAGS=$lt_AR_FLAGS 10408 10409# A C compiler. 10410LTCC=$lt_LTCC 10411 10412# A language-specific compiler. 10413CC=$lt_compiler 10414 10415# Is the compiler the GNU C compiler? 10416with_gcc=$GCC 10417 10418# An ERE matcher. 10419EGREP=$lt_EGREP 10420 10421# The linker used to build libraries. 10422LD=$lt_LD 10423 10424# Whether we need hard or soft links. 10425LN_S=$lt_LN_S 10426 10427# A BSD-compatible nm program. 10428NM=$lt_NM 10429 10430# A symbol stripping program 10431STRIP=$lt_STRIP 10432 10433# Used to examine libraries when file_magic_cmd begins "file" 10434MAGIC_CMD=$MAGIC_CMD 10435 10436# Used on cygwin: DLL creation program. 10437DLLTOOL="$DLLTOOL" 10438 10439# Used on cygwin: object dumper. 10440OBJDUMP="$OBJDUMP" 10441 10442# Used on cygwin: assembler. 10443AS="$AS" 10444 10445# The name of the directory that contains temporary libtool files. 10446objdir=$objdir 10447 10448# How to create reloadable object files. 10449reload_flag=$lt_reload_flag 10450reload_cmds=$lt_reload_cmds 10451 10452# How to pass a linker flag through the compiler. 10453wl=$lt_lt_prog_compiler_wl 10454 10455# Object file suffix (normally "o"). 10456objext="$ac_objext" 10457 10458# Old archive suffix (normally "a"). 10459libext="$libext" 10460 10461# Shared library suffix (normally ".so"). 10462shrext_cmds='$shrext_cmds' 10463 10464# Executable file suffix (normally ""). 10465exeext="$exeext" 10466 10467# Additional compiler flags for building library objects. 10468pic_flag=$lt_lt_prog_compiler_pic 10469pic_mode=$pic_mode 10470 10471# What is the maximum length of a command? 10472max_cmd_len=$lt_cv_sys_max_cmd_len 10473 10474# Does compiler simultaneously support -c and -o options? 10475compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10476 10477# Must we lock files when doing compilation? 10478need_locks=$lt_need_locks 10479 10480# Do we need the lib prefix for modules? 10481need_lib_prefix=$need_lib_prefix 10482 10483# Do we need a version for libraries? 10484need_version=$need_version 10485 10486# Whether dlopen is supported. 10487dlopen_support=$enable_dlopen 10488 10489# Whether dlopen of programs is supported. 10490dlopen_self=$enable_dlopen_self 10491 10492# Whether dlopen of statically linked programs is supported. 10493dlopen_self_static=$enable_dlopen_self_static 10494 10495# Compiler flag to prevent dynamic linking. 10496link_static_flag=$lt_lt_prog_compiler_static 10497 10498# Compiler flag to turn off builtin functions. 10499no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10500 10501# Compiler flag to allow reflexive dlopens. 10502export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10503 10504# Compiler flag to generate shared objects directly from archives. 10505whole_archive_flag_spec=$lt_whole_archive_flag_spec 10506 10507# Compiler flag to generate thread-safe objects. 10508thread_safe_flag_spec=$lt_thread_safe_flag_spec 10509 10510# Library versioning type. 10511version_type=$version_type 10512 10513# Format of library name prefix. 10514libname_spec=$lt_libname_spec 10515 10516# List of archive names. First name is the real one, the rest are links. 10517# The last name is the one that the linker finds with -lNAME. 10518library_names_spec=$lt_library_names_spec 10519 10520# The coded name of the library, if different from the real name. 10521soname_spec=$lt_soname_spec 10522 10523# Commands used to build and install an old-style archive. 10524RANLIB=$lt_RANLIB 10525old_archive_cmds=$lt_old_archive_cmds 10526old_postinstall_cmds=$lt_old_postinstall_cmds 10527old_postuninstall_cmds=$lt_old_postuninstall_cmds 10528 10529# Create an old-style archive from a shared archive. 10530old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10531 10532# Create a temporary old-style archive to link instead of a shared archive. 10533old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10534 10535# Commands used to build and install a shared archive. 10536archive_cmds=$lt_archive_cmds 10537archive_expsym_cmds=$lt_archive_expsym_cmds 10538postinstall_cmds=$lt_postinstall_cmds 10539postuninstall_cmds=$lt_postuninstall_cmds 10540 10541# Commands used to build a loadable module (assumed same as above if empty) 10542module_cmds=$lt_module_cmds 10543module_expsym_cmds=$lt_module_expsym_cmds 10544 10545# Commands to strip libraries. 10546old_striplib=$lt_old_striplib 10547striplib=$lt_striplib 10548 10549# Dependencies to place before the objects being linked to create a 10550# shared library. 10551predep_objects=$lt_predep_objects 10552 10553# Dependencies to place after the objects being linked to create a 10554# shared library. 10555postdep_objects=$lt_postdep_objects 10556 10557# Dependencies to place before the objects being linked to create a 10558# shared library. 10559predeps=$lt_predeps 10560 10561# Dependencies to place after the objects being linked to create a 10562# shared library. 10563postdeps=$lt_postdeps 10564 10565# The library search path used internally by the compiler when linking 10566# a shared library. 10567compiler_lib_search_path=$lt_compiler_lib_search_path 10568 10569# Method to check whether dependent libraries are shared objects. 10570deplibs_check_method=$lt_deplibs_check_method 10571 10572# Command to use when deplibs_check_method == file_magic. 10573file_magic_cmd=$lt_file_magic_cmd 10574 10575# Flag that allows shared libraries with undefined symbols to be built. 10576allow_undefined_flag=$lt_allow_undefined_flag 10577 10578# Flag that forces no undefined symbols. 10579no_undefined_flag=$lt_no_undefined_flag 10580 10581# Commands used to finish a libtool library installation in a directory. 10582finish_cmds=$lt_finish_cmds 10583 10584# Same as above, but a single script fragment to be evaled but not shown. 10585finish_eval=$lt_finish_eval 10586 10587# Take the output of nm and produce a listing of raw symbols and C names. 10588global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10589 10590# Transform the output of nm in a proper C declaration 10591global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10592 10593# Transform the output of nm in a C name address pair 10594global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10595 10596# This is the shared library runtime path variable. 10597runpath_var=$runpath_var 10598 10599# This is the shared library path variable. 10600shlibpath_var=$shlibpath_var 10601 10602# Is shlibpath searched before the hard-coded library search path? 10603shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10604 10605# How to hardcode a shared library path into an executable. 10606hardcode_action=$hardcode_action 10607 10608# Whether we should hardcode library paths into libraries. 10609hardcode_into_libs=$hardcode_into_libs 10610 10611# Flag to hardcode \$libdir into a binary during linking. 10612# This must work even if \$libdir does not exist. 10613hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10614 10615# If ld is used when linking, flag to hardcode \$libdir into 10616# a binary during linking. This must work even if \$libdir does 10617# not exist. 10618hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10619 10620# Whether we need a single -rpath flag with a separated argument. 10621hardcode_libdir_separator=$lt_hardcode_libdir_separator 10622 10623# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10624# resulting binary. 10625hardcode_direct=$hardcode_direct 10626 10627# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10628# resulting binary. 10629hardcode_minus_L=$hardcode_minus_L 10630 10631# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10632# the resulting binary. 10633hardcode_shlibpath_var=$hardcode_shlibpath_var 10634 10635# Set to yes if building a shared library automatically hardcodes DIR into the library 10636# and all subsequent libraries and executables linked against it. 10637hardcode_automatic=$hardcode_automatic 10638 10639# Variables whose values should be saved in libtool wrapper scripts and 10640# restored at relink time. 10641variables_saved_for_relink="$variables_saved_for_relink" 10642 10643# Whether libtool must link a program against all its dependency libraries. 10644link_all_deplibs=$link_all_deplibs 10645 10646# Compile-time system search path for libraries 10647sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10648 10649# Run-time system search path for libraries 10650sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10651 10652# Fix the shell variable \$srcfile for the compiler. 10653fix_srcfile_path="$fix_srcfile_path" 10654 10655# Set to yes if exported symbols are required. 10656always_export_symbols=$always_export_symbols 10657 10658# The commands to list exported symbols. 10659export_symbols_cmds=$lt_export_symbols_cmds 10660 10661# The commands to extract the exported symbol list from a shared archive. 10662extract_expsyms_cmds=$lt_extract_expsyms_cmds 10663 10664# Symbols that should not be listed in the preloaded symbols. 10665exclude_expsyms=$lt_exclude_expsyms 10666 10667# Symbols that must always be exported. 10668include_expsyms=$lt_include_expsyms 10669 10670# ### END LIBTOOL CONFIG 10671 10672__EOF__ 10673 10674 10675 case $host_os in 10676 aix3*) 10677 cat <<\EOF >> "$cfgfile" 10678 10679# AIX sometimes has problems with the GCC collect2 program. For some 10680# reason, if we set the COLLECT_NAMES environment variable, the problems 10681# vanish in a puff of smoke. 10682if test "X${COLLECT_NAMES+set}" != Xset; then 10683 COLLECT_NAMES= 10684 export COLLECT_NAMES 10685fi 10686EOF 10687 ;; 10688 esac 10689 10690 # We use sed instead of cat because bash on DJGPP gets confused if 10691 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10692 # text mode, it properly converts lines to CR/LF. This bash problem 10693 # is reportedly fixed, but why not run on old versions too? 10694 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10695 10696 mv -f "$cfgfile" "$ofile" || \ 10697 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10698 chmod +x "$ofile" 10699 10700else 10701 # If there is no Makefile yet, we rely on a make rule to execute 10702 # `config.status --recheck' to rerun these tests and create the 10703 # libtool script then. 10704 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10705 if test -f "$ltmain_in"; then 10706 test -f Makefile && make "$ltmain" 10707 fi 10708fi 10709 10710 10711ac_ext=c 10712ac_cpp='$CPP $CPPFLAGS' 10713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10715ac_compiler_gnu=$ac_cv_c_compiler_gnu 10716 10717CC="$lt_save_CC" 10718 10719 10720# Check whether --with-tags or --without-tags was given. 10721if test "${with_tags+set}" = set; then 10722 withval="$with_tags" 10723 tagnames="$withval" 10724fi; 10725 10726if test -f "$ltmain" && test -n "$tagnames"; then 10727 if test ! -f "${ofile}"; then 10728 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10729echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10730 fi 10731 10732 if test -z "$LTCC"; then 10733 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10734 if test -z "$LTCC"; then 10735 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10736echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10737 else 10738 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10739echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10740 fi 10741 fi 10742 10743 # Extract list of available tagged configurations in $ofile. 10744 # Note that this assumes the entire list is on one line. 10745 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10746 10747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10748 for tagname in $tagnames; do 10749 IFS="$lt_save_ifs" 10750 # Check whether tagname contains only valid characters 10751 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10752 "") ;; 10753 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10754echo "$as_me: error: invalid tag name: $tagname" >&2;} 10755 { (exit 1); exit 1; }; } 10756 ;; 10757 esac 10758 10759 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10760 then 10761 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10762echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10763 { (exit 1); exit 1; }; } 10764 fi 10765 10766 # Update the list of available tags. 10767 if test -n "$tagname"; then 10768 echo appending configuration tag \"$tagname\" to $ofile 10769 10770 case $tagname in 10771 CXX) 10772 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10773 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10774 (test "X$CXX" != "Xg++"))) ; then 10775 ac_ext=cc 10776ac_cpp='$CXXCPP $CPPFLAGS' 10777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10780 10781 10782 10783 10784archive_cmds_need_lc_CXX=no 10785allow_undefined_flag_CXX= 10786always_export_symbols_CXX=no 10787archive_expsym_cmds_CXX= 10788export_dynamic_flag_spec_CXX= 10789hardcode_direct_CXX=no 10790hardcode_libdir_flag_spec_CXX= 10791hardcode_libdir_flag_spec_ld_CXX= 10792hardcode_libdir_separator_CXX= 10793hardcode_minus_L_CXX=no 10794hardcode_automatic_CXX=no 10795module_cmds_CXX= 10796module_expsym_cmds_CXX= 10797link_all_deplibs_CXX=unknown 10798old_archive_cmds_CXX=$old_archive_cmds 10799no_undefined_flag_CXX= 10800whole_archive_flag_spec_CXX= 10801enable_shared_with_static_runtimes_CXX=no 10802 10803# Dependencies to place before and after the object being linked: 10804predep_objects_CXX= 10805postdep_objects_CXX= 10806predeps_CXX= 10807postdeps_CXX= 10808compiler_lib_search_path_CXX= 10809 10810# Source file extension for C++ test sources. 10811ac_ext=cc 10812 10813# Object file extension for compiled C++ test sources. 10814objext=o 10815objext_CXX=$objext 10816 10817# Code to be used in simple compile tests 10818lt_simple_compile_test_code="int some_variable = 0;\n" 10819 10820# Code to be used in simple link tests 10821lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 10822 10823# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10824 10825# If no C compiler was specified, use CC. 10826LTCC=${LTCC-"$CC"} 10827 10828# Allow CC to be a program name with arguments. 10829compiler=$CC 10830 10831 10832# save warnings/boilerplate of simple test code 10833ac_outfile=conftest.$ac_objext 10834printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10835eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 10836_lt_compiler_boilerplate=`cat conftest.err` 10837$rm conftest* 10838 10839ac_outfile=conftest.$ac_objext 10840printf "$lt_simple_link_test_code" >conftest.$ac_ext 10841eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 10842_lt_linker_boilerplate=`cat conftest.err` 10843$rm conftest* 10844 10845 10846# Allow CC to be a program name with arguments. 10847lt_save_CC=$CC 10848lt_save_LD=$LD 10849lt_save_GCC=$GCC 10850GCC=$GXX 10851lt_save_with_gnu_ld=$with_gnu_ld 10852lt_save_path_LD=$lt_cv_path_LD 10853if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10854 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10855else 10856 unset lt_cv_prog_gnu_ld 10857fi 10858if test -n "${lt_cv_path_LDCXX+set}"; then 10859 lt_cv_path_LD=$lt_cv_path_LDCXX 10860else 10861 unset lt_cv_path_LD 10862fi 10863test -z "${LDCXX+set}" || LD=$LDCXX 10864CC=${CXX-"c++"} 10865compiler=$CC 10866compiler_CXX=$CC 10867for cc_temp in $compiler""; do 10868 case $cc_temp in 10869 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10870 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10871 \-*) ;; 10872 *) break;; 10873 esac 10874done 10875cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10876 10877 10878# We don't want -fno-exception wen compiling C++ code, so set the 10879# no_builtin_flag separately 10880if test "$GXX" = yes; then 10881 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10882else 10883 lt_prog_compiler_no_builtin_flag_CXX= 10884fi 10885 10886if test "$GXX" = yes; then 10887 # Set up default GNU C++ configuration 10888 10889 10890# Check whether --with-gnu-ld or --without-gnu-ld was given. 10891if test "${with_gnu_ld+set}" = set; then 10892 withval="$with_gnu_ld" 10893 test "$withval" = no || with_gnu_ld=yes 10894else 10895 with_gnu_ld=no 10896fi; 10897ac_prog=ld 10898if test "$GCC" = yes; then 10899 # Check if gcc -print-prog-name=ld gives a path. 10900 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10901echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10902 case $host in 10903 *-*-mingw*) 10904 # gcc leaves a trailing carriage return which upsets mingw 10905 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10906 *) 10907 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10908 esac 10909 case $ac_prog in 10910 # Accept absolute paths. 10911 [\\/]* | ?:[\\/]*) 10912 re_direlt='/[^/][^/]*/\.\./' 10913 # Canonicalize the pathname of ld 10914 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10915 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10916 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10917 done 10918 test -z "$LD" && LD="$ac_prog" 10919 ;; 10920 "") 10921 # If it fails, then pretend we aren't using GCC. 10922 ac_prog=ld 10923 ;; 10924 *) 10925 # If it is relative, then search for the first ld in PATH. 10926 with_gnu_ld=unknown 10927 ;; 10928 esac 10929elif test "$with_gnu_ld" = yes; then 10930 echo "$as_me:$LINENO: checking for GNU ld" >&5 10931echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10932else 10933 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10934echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10935fi 10936if test "${lt_cv_path_LD+set}" = set; then 10937 echo $ECHO_N "(cached) $ECHO_C" >&6 10938else 10939 if test -z "$LD"; then 10940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10941 for ac_dir in $PATH; do 10942 IFS="$lt_save_ifs" 10943 test -z "$ac_dir" && ac_dir=. 10944 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10945 lt_cv_path_LD="$ac_dir/$ac_prog" 10946 # Check to see if the program is GNU ld. I'd rather use --version, 10947 # but apparently some GNU ld's only accept -v. 10948 # Break only if it was the GNU/non-GNU ld that we prefer. 10949 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10950 *GNU* | *'with BFD'*) 10951 test "$with_gnu_ld" != no && break 10952 ;; 10953 *) 10954 test "$with_gnu_ld" != yes && break 10955 ;; 10956 esac 10957 fi 10958 done 10959 IFS="$lt_save_ifs" 10960else 10961 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10962fi 10963fi 10964 10965LD="$lt_cv_path_LD" 10966if test -n "$LD"; then 10967 echo "$as_me:$LINENO: result: $LD" >&5 10968echo "${ECHO_T}$LD" >&6 10969else 10970 echo "$as_me:$LINENO: result: no" >&5 10971echo "${ECHO_T}no" >&6 10972fi 10973test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10974echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10975 { (exit 1); exit 1; }; } 10976echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10977echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10978if test "${lt_cv_prog_gnu_ld+set}" = set; then 10979 echo $ECHO_N "(cached) $ECHO_C" >&6 10980else 10981 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 10982case `$LD -v 2>&1 </dev/null` in 10983*GNU* | *'with BFD'*) 10984 lt_cv_prog_gnu_ld=yes 10985 ;; 10986*) 10987 lt_cv_prog_gnu_ld=no 10988 ;; 10989esac 10990fi 10991echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10992echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10993with_gnu_ld=$lt_cv_prog_gnu_ld 10994 10995 10996 10997 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10998 # archiving commands below assume that GNU ld is being used. 10999 if test "$with_gnu_ld" = yes; then 11000 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11001 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11002 11003 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11004 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11005 11006 # If archive_cmds runs LD, not CC, wlarc should be empty 11007 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11008 # investigate it a little bit more. (MM) 11009 wlarc='${wl}' 11010 11011 # ancient GNU ld didn't support --whole-archive et. al. 11012 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11013 grep 'no-whole-archive' > /dev/null; then 11014 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11015 else 11016 whole_archive_flag_spec_CXX= 11017 fi 11018 else 11019 with_gnu_ld=no 11020 wlarc= 11021 11022 # A generic and very simple default shared library creation 11023 # command for GNU C++ for the case where it uses the native 11024 # linker, instead of GNU ld. If possible, this setting should 11025 # overridden to take advantage of the native linker features on 11026 # the platform it is being used on. 11027 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11028 fi 11029 11030 # Commands to make compiler produce verbose output that lists 11031 # what "hidden" libraries, object files and flags are used when 11032 # linking a shared library. 11033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11034 11035else 11036 GXX=no 11037 with_gnu_ld=no 11038 wlarc= 11039fi 11040 11041# PORTME: fill in a description of your system's C++ link characteristics 11042echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11043echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11044ld_shlibs_CXX=yes 11045case $host_os in 11046 aix3*) 11047 # FIXME: insert proper C++ library support 11048 ld_shlibs_CXX=no 11049 ;; 11050 aix4* | aix5*) 11051 if test "$host_cpu" = ia64; then 11052 # On IA64, the linker does run time linking by default, so we don't 11053 # have to do anything special. 11054 aix_use_runtimelinking=no 11055 exp_sym_flag='-Bexport' 11056 no_entry_flag="" 11057 else 11058 aix_use_runtimelinking=no 11059 11060 # Test if we are trying to use run time linking or normal 11061 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11062 # need to do runtime linking. 11063 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11064 for ld_flag in $LDFLAGS; do 11065 case $ld_flag in 11066 *-brtl*) 11067 aix_use_runtimelinking=yes 11068 break 11069 ;; 11070 esac 11071 done 11072 esac 11073 11074 exp_sym_flag='-bexport' 11075 no_entry_flag='-bnoentry' 11076 fi 11077 11078 # When large executables or shared objects are built, AIX ld can 11079 # have problems creating the table of contents. If linking a library 11080 # or program results in "error TOC overflow" add -mminimal-toc to 11081 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11082 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11083 11084 archive_cmds_CXX='' 11085 hardcode_direct_CXX=yes 11086 hardcode_libdir_separator_CXX=':' 11087 link_all_deplibs_CXX=yes 11088 11089 if test "$GXX" = yes; then 11090 case $host_os in aix4.[012]|aix4.[012].*) 11091 # We only want to do this on AIX 4.2 and lower, the check 11092 # below for broken collect2 doesn't work under 4.3+ 11093 collect2name=`${CC} -print-prog-name=collect2` 11094 if test -f "$collect2name" && \ 11095 strings "$collect2name" | grep resolve_lib_name >/dev/null 11096 then 11097 # We have reworked collect2 11098 hardcode_direct_CXX=yes 11099 else 11100 # We have old collect2 11101 hardcode_direct_CXX=unsupported 11102 # It fails to find uninstalled libraries when the uninstalled 11103 # path is not listed in the libpath. Setting hardcode_minus_L 11104 # to unsupported forces relinking 11105 hardcode_minus_L_CXX=yes 11106 hardcode_libdir_flag_spec_CXX='-L$libdir' 11107 hardcode_libdir_separator_CXX= 11108 fi 11109 esac 11110 shared_flag='-shared' 11111 if test "$aix_use_runtimelinking" = yes; then 11112 shared_flag="$shared_flag "'${wl}-G' 11113 fi 11114 else 11115 # not using gcc 11116 if test "$host_cpu" = ia64; then 11117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11118 # chokes on -Wl,-G. The following line is correct: 11119 shared_flag='-G' 11120 else 11121 if test "$aix_use_runtimelinking" = yes; then 11122 shared_flag='${wl}-G' 11123 else 11124 shared_flag='${wl}-bM:SRE' 11125 fi 11126 fi 11127 fi 11128 11129 # It seems that -bexpall does not export symbols beginning with 11130 # underscore (_), so it is better to generate a list of symbols to export. 11131 always_export_symbols_CXX=yes 11132 if test "$aix_use_runtimelinking" = yes; then 11133 # Warning - without using the other runtime loading flags (-brtl), 11134 # -berok will link without error, but may produce a broken library. 11135 allow_undefined_flag_CXX='-berok' 11136 # Determine the default libpath from the value encoded in an empty executable. 11137 cat >conftest.$ac_ext <<_ACEOF 11138/* confdefs.h. */ 11139_ACEOF 11140cat confdefs.h >>conftest.$ac_ext 11141cat >>conftest.$ac_ext <<_ACEOF 11142/* end confdefs.h. */ 11143 11144int 11145main () 11146{ 11147 11148 ; 11149 return 0; 11150} 11151_ACEOF 11152rm -f conftest.$ac_objext conftest$ac_exeext 11153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11154 (eval $ac_link) 2>conftest.er1 11155 ac_status=$? 11156 grep -v '^ *+' conftest.er1 >conftest.err 11157 rm -f conftest.er1 11158 cat conftest.err >&5 11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11160 (exit $ac_status); } && 11161 { ac_try='test -z "$ac_cxx_werror_flag" 11162 || test ! -s conftest.err' 11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11164 (eval $ac_try) 2>&5 11165 ac_status=$? 11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11167 (exit $ac_status); }; } && 11168 { ac_try='test -s conftest$ac_exeext' 11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11170 (eval $ac_try) 2>&5 11171 ac_status=$? 11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11173 (exit $ac_status); }; }; then 11174 11175aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11176}'` 11177# Check for a 64-bit object if we didn't find anything. 11178if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11179}'`; fi 11180else 11181 echo "$as_me: failed program was:" >&5 11182sed 's/^/| /' conftest.$ac_ext >&5 11183 11184fi 11185rm -f conftest.err conftest.$ac_objext \ 11186 conftest$ac_exeext conftest.$ac_ext 11187if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11188 11189 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11190 11191 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11192 else 11193 if test "$host_cpu" = ia64; then 11194 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11195 allow_undefined_flag_CXX="-z nodefs" 11196 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 11197 else 11198 # Determine the default libpath from the value encoded in an empty executable. 11199 cat >conftest.$ac_ext <<_ACEOF 11200/* confdefs.h. */ 11201_ACEOF 11202cat confdefs.h >>conftest.$ac_ext 11203cat >>conftest.$ac_ext <<_ACEOF 11204/* end confdefs.h. */ 11205 11206int 11207main () 11208{ 11209 11210 ; 11211 return 0; 11212} 11213_ACEOF 11214rm -f conftest.$ac_objext conftest$ac_exeext 11215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11216 (eval $ac_link) 2>conftest.er1 11217 ac_status=$? 11218 grep -v '^ *+' conftest.er1 >conftest.err 11219 rm -f conftest.er1 11220 cat conftest.err >&5 11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11222 (exit $ac_status); } && 11223 { ac_try='test -z "$ac_cxx_werror_flag" 11224 || test ! -s conftest.err' 11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11226 (eval $ac_try) 2>&5 11227 ac_status=$? 11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11229 (exit $ac_status); }; } && 11230 { ac_try='test -s conftest$ac_exeext' 11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11232 (eval $ac_try) 2>&5 11233 ac_status=$? 11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11235 (exit $ac_status); }; }; then 11236 11237aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11238}'` 11239# Check for a 64-bit object if we didn't find anything. 11240if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11241}'`; fi 11242else 11243 echo "$as_me: failed program was:" >&5 11244sed 's/^/| /' conftest.$ac_ext >&5 11245 11246fi 11247rm -f conftest.err conftest.$ac_objext \ 11248 conftest$ac_exeext conftest.$ac_ext 11249if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11250 11251 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11252 # Warning - without using the other run time loading flags, 11253 # -berok will link without error, but may produce a broken library. 11254 no_undefined_flag_CXX=' ${wl}-bernotok' 11255 allow_undefined_flag_CXX=' ${wl}-berok' 11256 # -bexpall does not export symbols beginning with underscore (_) 11257 always_export_symbols_CXX=yes 11258 # Exported symbols can be pulled into shared objects from archives 11259 whole_archive_flag_spec_CXX=' ' 11260 archive_cmds_need_lc_CXX=yes 11261 # This is similar to how AIX traditionally builds it's shared libraries. 11262 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11263 fi 11264 fi 11265 ;; 11266 chorus*) 11267 case $cc_basename in 11268 *) 11269 # FIXME: insert proper C++ library support 11270 ld_shlibs_CXX=no 11271 ;; 11272 esac 11273 ;; 11274 11275 11276 cygwin* | mingw* | pw32*) 11277 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11278 # as there is no search path for DLLs. 11279 hardcode_libdir_flag_spec_CXX='-L$libdir' 11280 allow_undefined_flag_CXX=unsupported 11281 always_export_symbols_CXX=no 11282 enable_shared_with_static_runtimes_CXX=yes 11283 11284 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11285 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 11286 # If the export-symbols file already is a .def file (1st line 11287 # is EXPORTS), use it as is; otherwise, prepend... 11288 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11289 cp $export_symbols $output_objdir/$soname.def; 11290 else 11291 echo EXPORTS > $output_objdir/$soname.def; 11292 cat $export_symbols >> $output_objdir/$soname.def; 11293 fi~ 11294 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 11295 else 11296 ld_shlibs_CXX=no 11297 fi 11298 ;; 11299 darwin* | rhapsody*) 11300 case "$host_os" in 11301 rhapsody* | darwin1.[012]) 11302 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11303 ;; 11304 *) # Darwin 1.3 on 11305 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11306 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11307 else 11308 case ${MACOSX_DEPLOYMENT_TARGET} in 11309 10.[012]) 11310 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11311 ;; 11312 10.*) 11313 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11314 ;; 11315 esac 11316 fi 11317 ;; 11318 esac 11319 archive_cmds_need_lc_CXX=no 11320 hardcode_direct_CXX=no 11321 hardcode_automatic_CXX=yes 11322 hardcode_shlibpath_var_CXX=unsupported 11323 whole_archive_flag_spec_CXX='' 11324 link_all_deplibs_CXX=yes 11325 11326 if test "$GXX" = yes ; then 11327 lt_int_apple_cc_single_mod=no 11328 output_verbose_link_cmd='echo' 11329 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11330 lt_int_apple_cc_single_mod=yes 11331 fi 11332 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11333 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11334 else 11335 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11336 fi 11337 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11338 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 11339 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11340 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11341 else 11342 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11343 fi 11344 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11345 else 11346 case $cc_basename in 11347 xlc*) 11348 output_verbose_link_cmd='echo' 11349 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11350 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11351 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 11352 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11353 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11354 ;; 11355 *) 11356 ld_shlibs_CXX=no 11357 ;; 11358 esac 11359 fi 11360 ;; 11361 11362 dgux*) 11363 case $cc_basename in 11364 ec++*) 11365 # FIXME: insert proper C++ library support 11366 ld_shlibs_CXX=no 11367 ;; 11368 ghcx*) 11369 # Green Hills C++ Compiler 11370 # FIXME: insert proper C++ library support 11371 ld_shlibs_CXX=no 11372 ;; 11373 *) 11374 # FIXME: insert proper C++ library support 11375 ld_shlibs_CXX=no 11376 ;; 11377 esac 11378 ;; 11379 freebsd[12]*) 11380 # C++ shared libraries reported to be fairly broken before switch to ELF 11381 ld_shlibs_CXX=no 11382 ;; 11383 freebsd-elf*) 11384 archive_cmds_need_lc_CXX=no 11385 ;; 11386 freebsd* | kfreebsd*-gnu | dragonfly*) 11387 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11388 # conventions 11389 ld_shlibs_CXX=yes 11390 ;; 11391 gnu*) 11392 ;; 11393 hpux9*) 11394 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11395 hardcode_libdir_separator_CXX=: 11396 export_dynamic_flag_spec_CXX='${wl}-E' 11397 hardcode_direct_CXX=yes 11398 hardcode_minus_L_CXX=yes # Not in the search PATH, 11399 # but as the default 11400 # location of the library. 11401 11402 case $cc_basename in 11403 CC*) 11404 # FIXME: insert proper C++ library support 11405 ld_shlibs_CXX=no 11406 ;; 11407 aCC*) 11408 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11409 # Commands to make compiler produce verbose output that lists 11410 # what "hidden" libraries, object files and flags are used when 11411 # linking a shared library. 11412 # 11413 # There doesn't appear to be a way to prevent this compiler from 11414 # explicitly linking system object files so we need to strip them 11415 # from the output so that they don't get included in the library 11416 # dependencies. 11417 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11418 ;; 11419 *) 11420 if test "$GXX" = yes; then 11421 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11422 else 11423 # FIXME: insert proper C++ library support 11424 ld_shlibs_CXX=no 11425 fi 11426 ;; 11427 esac 11428 ;; 11429 hpux10*|hpux11*) 11430 if test $with_gnu_ld = no; then 11431 case "$host_cpu" in 11432 hppa*64*) 11433 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11434 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11435 hardcode_libdir_separator_CXX=: 11436 ;; 11437 ia64*) 11438 hardcode_libdir_flag_spec_CXX='-L$libdir' 11439 ;; 11440 *) 11441 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11442 hardcode_libdir_separator_CXX=: 11443 export_dynamic_flag_spec_CXX='${wl}-E' 11444 ;; 11445 esac 11446 fi 11447 case "$host_cpu" in 11448 hppa*64*) 11449 hardcode_direct_CXX=no 11450 hardcode_shlibpath_var_CXX=no 11451 ;; 11452 ia64*) 11453 hardcode_direct_CXX=no 11454 hardcode_shlibpath_var_CXX=no 11455 hardcode_minus_L_CXX=yes # Not in the search PATH, 11456 # but as the default 11457 # location of the library. 11458 ;; 11459 *) 11460 hardcode_direct_CXX=yes 11461 hardcode_minus_L_CXX=yes # Not in the search PATH, 11462 # but as the default 11463 # location of the library. 11464 ;; 11465 esac 11466 11467 case $cc_basename in 11468 CC*) 11469 # FIXME: insert proper C++ library support 11470 ld_shlibs_CXX=no 11471 ;; 11472 aCC*) 11473 case "$host_cpu" in 11474 hppa*64*|ia64*) 11475 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 11476 ;; 11477 *) 11478 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11479 ;; 11480 esac 11481 # Commands to make compiler produce verbose output that lists 11482 # what "hidden" libraries, object files and flags are used when 11483 # linking a shared library. 11484 # 11485 # There doesn't appear to be a way to prevent this compiler from 11486 # explicitly linking system object files so we need to strip them 11487 # from the output so that they don't get included in the library 11488 # dependencies. 11489 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11490 ;; 11491 *) 11492 if test "$GXX" = yes; then 11493 if test $with_gnu_ld = no; then 11494 case "$host_cpu" in 11495 ia64*|hppa*64*) 11496 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 11497 ;; 11498 *) 11499 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11500 ;; 11501 esac 11502 fi 11503 else 11504 # FIXME: insert proper C++ library support 11505 ld_shlibs_CXX=no 11506 fi 11507 ;; 11508 esac 11509 ;; 11510 irix5* | irix6*) 11511 case $cc_basename in 11512 CC*) 11513 # SGI C++ 11514 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11515 11516 # Archives containing C++ object files must be created using 11517 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11518 # necessary to make sure instantiated templates are included 11519 # in the archive. 11520 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11521 ;; 11522 *) 11523 if test "$GXX" = yes; then 11524 if test "$with_gnu_ld" = no; then 11525 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11526 else 11527 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 11528 fi 11529 fi 11530 link_all_deplibs_CXX=yes 11531 ;; 11532 esac 11533 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11534 hardcode_libdir_separator_CXX=: 11535 ;; 11536 linux*) 11537 case $cc_basename in 11538 KCC*) 11539 # Kuck and Associates, Inc. (KAI) C++ Compiler 11540 11541 # KCC will only create a shared library if the output file 11542 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11543 # to its proper name (with version) after linking. 11544 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11545 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 11546 # Commands to make compiler produce verbose output that lists 11547 # what "hidden" libraries, object files and flags are used when 11548 # linking a shared library. 11549 # 11550 # There doesn't appear to be a way to prevent this compiler from 11551 # explicitly linking system object files so we need to strip them 11552 # from the output so that they don't get included in the library 11553 # dependencies. 11554 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11555 11556 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11557 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11558 11559 # Archives containing C++ object files must be created using 11560 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11561 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11562 ;; 11563 icpc*) 11564 # Intel C++ 11565 with_gnu_ld=yes 11566 # version 8.0 and above of icpc choke on multiply defined symbols 11567 # if we add $predep_objects and $postdep_objects, however 7.1 and 11568 # earlier do not add the objects themselves. 11569 case `$CC -V 2>&1` in 11570 *"Version 7."*) 11571 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11572 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11573 ;; 11574 *) # Version 8.0 or newer 11575 tmp_idyn= 11576 case $host_cpu in 11577 ia64*) tmp_idyn=' -i_dynamic';; 11578 esac 11579 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11580 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11581 ;; 11582 esac 11583 archive_cmds_need_lc_CXX=no 11584 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11585 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11586 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11587 ;; 11588 pgCC*) 11589 # Portland Group C++ compiler 11590 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11591 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 11592 11593 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11594 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11595 whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11596 ;; 11597 cxx*) 11598 # Compaq C++ 11599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11600 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 11601 11602 runpath_var=LD_RUN_PATH 11603 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11604 hardcode_libdir_separator_CXX=: 11605 11606 # Commands to make compiler produce verbose output that lists 11607 # what "hidden" libraries, object files and flags are used when 11608 # linking a shared library. 11609 # 11610 # There doesn't appear to be a way to prevent this compiler from 11611 # explicitly linking system object files so we need to strip them 11612 # from the output so that they don't get included in the library 11613 # dependencies. 11614 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11615 ;; 11616 esac 11617 ;; 11618 lynxos*) 11619 # FIXME: insert proper C++ library support 11620 ld_shlibs_CXX=no 11621 ;; 11622 m88k*) 11623 # FIXME: insert proper C++ library support 11624 ld_shlibs_CXX=no 11625 ;; 11626 mvs*) 11627 case $cc_basename in 11628 cxx*) 11629 # FIXME: insert proper C++ library support 11630 ld_shlibs_CXX=no 11631 ;; 11632 *) 11633 # FIXME: insert proper C++ library support 11634 ld_shlibs_CXX=no 11635 ;; 11636 esac 11637 ;; 11638 netbsd*) 11639 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11640 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11641 wlarc= 11642 hardcode_libdir_flag_spec_CXX='-R$libdir' 11643 hardcode_direct_CXX=yes 11644 hardcode_shlibpath_var_CXX=no 11645 fi 11646 # Workaround some broken pre-1.5 toolchains 11647 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11648 ;; 11649 openbsd2*) 11650 # C++ shared libraries are fairly broken 11651 ld_shlibs_CXX=no 11652 ;; 11653 openbsd*) 11654 hardcode_direct_CXX=yes 11655 hardcode_shlibpath_var_CXX=no 11656 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11657 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11659 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11660 export_dynamic_flag_spec_CXX='${wl}-E' 11661 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11662 fi 11663 output_verbose_link_cmd='echo' 11664 ;; 11665 osf3*) 11666 case $cc_basename in 11667 KCC*) 11668 # Kuck and Associates, Inc. (KAI) C++ Compiler 11669 11670 # KCC will only create a shared library if the output file 11671 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11672 # to its proper name (with version) after linking. 11673 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11674 11675 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11676 hardcode_libdir_separator_CXX=: 11677 11678 # Archives containing C++ object files must be created using 11679 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11680 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11681 11682 ;; 11683 RCC*) 11684 # Rational C++ 2.4.1 11685 # FIXME: insert proper C++ library support 11686 ld_shlibs_CXX=no 11687 ;; 11688 cxx*) 11689 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11690 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11691 11692 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11693 hardcode_libdir_separator_CXX=: 11694 11695 # Commands to make compiler produce verbose output that lists 11696 # what "hidden" libraries, object files and flags are used when 11697 # linking a shared library. 11698 # 11699 # There doesn't appear to be a way to prevent this compiler from 11700 # explicitly linking system object files so we need to strip them 11701 # from the output so that they don't get included in the library 11702 # dependencies. 11703 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11704 ;; 11705 *) 11706 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11707 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11708 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11709 11710 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11711 hardcode_libdir_separator_CXX=: 11712 11713 # Commands to make compiler produce verbose output that lists 11714 # what "hidden" libraries, object files and flags are used when 11715 # linking a shared library. 11716 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11717 11718 else 11719 # FIXME: insert proper C++ library support 11720 ld_shlibs_CXX=no 11721 fi 11722 ;; 11723 esac 11724 ;; 11725 osf4* | osf5*) 11726 case $cc_basename in 11727 KCC*) 11728 # Kuck and Associates, Inc. (KAI) C++ Compiler 11729 11730 # KCC will only create a shared library if the output file 11731 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11732 # to its proper name (with version) after linking. 11733 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11734 11735 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11736 hardcode_libdir_separator_CXX=: 11737 11738 # Archives containing C++ object files must be created using 11739 # the KAI C++ compiler. 11740 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11741 ;; 11742 RCC*) 11743 # Rational C++ 2.4.1 11744 # FIXME: insert proper C++ library support 11745 ld_shlibs_CXX=no 11746 ;; 11747 cxx*) 11748 allow_undefined_flag_CXX=' -expect_unresolved \*' 11749 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11750 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11751 echo "-hidden">> $lib.exp~ 11752 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 11753 $rm $lib.exp' 11754 11755 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11756 hardcode_libdir_separator_CXX=: 11757 11758 # Commands to make compiler produce verbose output that lists 11759 # what "hidden" libraries, object files and flags are used when 11760 # linking a shared library. 11761 # 11762 # There doesn't appear to be a way to prevent this compiler from 11763 # explicitly linking system object files so we need to strip them 11764 # from the output so that they don't get included in the library 11765 # dependencies. 11766 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11767 ;; 11768 *) 11769 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11770 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11771 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11772 11773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11774 hardcode_libdir_separator_CXX=: 11775 11776 # Commands to make compiler produce verbose output that lists 11777 # what "hidden" libraries, object files and flags are used when 11778 # linking a shared library. 11779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11780 11781 else 11782 # FIXME: insert proper C++ library support 11783 ld_shlibs_CXX=no 11784 fi 11785 ;; 11786 esac 11787 ;; 11788 psos*) 11789 # FIXME: insert proper C++ library support 11790 ld_shlibs_CXX=no 11791 ;; 11792 sco*) 11793 archive_cmds_need_lc_CXX=no 11794 case $cc_basename in 11795 CC*) 11796 # FIXME: insert proper C++ library support 11797 ld_shlibs_CXX=no 11798 ;; 11799 *) 11800 # FIXME: insert proper C++ library support 11801 ld_shlibs_CXX=no 11802 ;; 11803 esac 11804 ;; 11805 sunos4*) 11806 case $cc_basename in 11807 CC*) 11808 # Sun C++ 4.x 11809 # FIXME: insert proper C++ library support 11810 ld_shlibs_CXX=no 11811 ;; 11812 lcc*) 11813 # Lucid 11814 # FIXME: insert proper C++ library support 11815 ld_shlibs_CXX=no 11816 ;; 11817 *) 11818 # FIXME: insert proper C++ library support 11819 ld_shlibs_CXX=no 11820 ;; 11821 esac 11822 ;; 11823 solaris*) 11824 case $cc_basename in 11825 CC*) 11826 # Sun C++ 4.2, 5.x and Centerline C++ 11827 no_undefined_flag_CXX=' -zdefs' 11828 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11829 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11830 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11831 11832 hardcode_libdir_flag_spec_CXX='-R$libdir' 11833 hardcode_shlibpath_var_CXX=no 11834 case $host_os in 11835 solaris2.[0-5] | solaris2.[0-5].*) ;; 11836 *) 11837 # The C++ compiler is used as linker so we must use $wl 11838 # flag to pass the commands to the underlying system 11839 # linker. We must also pass each convience library through 11840 # to the system linker between allextract/defaultextract. 11841 # The C++ compiler will combine linker options so we 11842 # cannot just pass the convience library names through 11843 # without $wl. 11844 # Supported since Solaris 2.6 (maybe 2.5.1?) 11845 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 11846 ;; 11847 esac 11848 link_all_deplibs_CXX=yes 11849 11850 # Commands to make compiler produce verbose output that lists 11851 # what "hidden" libraries, object files and flags are used when 11852 # linking a shared library. 11853 # 11854 # There doesn't appear to be a way to prevent this compiler from 11855 # explicitly linking system object files so we need to strip them 11856 # from the output so that they don't get included in the library 11857 # dependencies. 11858 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11859 11860 # Archives containing C++ object files must be created using 11861 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11862 # necessary to make sure instantiated templates are included 11863 # in the archive. 11864 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11865 ;; 11866 gcx*) 11867 # Green Hills C++ Compiler 11868 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11869 11870 # The C++ compiler must be used to create the archive. 11871 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11872 ;; 11873 *) 11874 # GNU C++ compiler with Solaris linker 11875 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11876 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11877 if $CC --version | grep -v '^2\.7' > /dev/null; then 11878 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11879 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11880 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11881 11882 # Commands to make compiler produce verbose output that lists 11883 # what "hidden" libraries, object files and flags are used when 11884 # linking a shared library. 11885 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11886 else 11887 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11888 # platform. 11889 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11890 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11891 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11892 11893 # Commands to make compiler produce verbose output that lists 11894 # what "hidden" libraries, object files and flags are used when 11895 # linking a shared library. 11896 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11897 fi 11898 11899 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11900 fi 11901 ;; 11902 esac 11903 ;; 11904 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 11905 archive_cmds_need_lc_CXX=no 11906 ;; 11907 tandem*) 11908 case $cc_basename in 11909 NCC*) 11910 # NonStop-UX NCC 3.20 11911 # FIXME: insert proper C++ library support 11912 ld_shlibs_CXX=no 11913 ;; 11914 *) 11915 # FIXME: insert proper C++ library support 11916 ld_shlibs_CXX=no 11917 ;; 11918 esac 11919 ;; 11920 vxworks*) 11921 # FIXME: insert proper C++ library support 11922 ld_shlibs_CXX=no 11923 ;; 11924 *) 11925 # FIXME: insert proper C++ library support 11926 ld_shlibs_CXX=no 11927 ;; 11928esac 11929echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11930echo "${ECHO_T}$ld_shlibs_CXX" >&6 11931test "$ld_shlibs_CXX" = no && can_build_shared=no 11932 11933GCC_CXX="$GXX" 11934LD_CXX="$LD" 11935 11936## CAVEAT EMPTOR: 11937## There is no encapsulation within the following macros, do not change 11938## the running order or otherwise move them around unless you know exactly 11939## what you are doing... 11940 11941cat > conftest.$ac_ext <<EOF 11942class Foo 11943{ 11944public: 11945 Foo (void) { a = 0; } 11946private: 11947 int a; 11948}; 11949EOF 11950 11951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11952 (eval $ac_compile) 2>&5 11953 ac_status=$? 11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11955 (exit $ac_status); }; then 11956 # Parse the compiler output and extract the necessary 11957 # objects, libraries and library flags. 11958 11959 # Sentinel used to keep track of whether or not we are before 11960 # the conftest object file. 11961 pre_test_object_deps_done=no 11962 11963 # The `*' in the case matches for architectures that use `case' in 11964 # $output_verbose_cmd can trigger glob expansion during the loop 11965 # eval without this substitution. 11966 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 11967 11968 for p in `eval $output_verbose_link_cmd`; do 11969 case $p in 11970 11971 -L* | -R* | -l*) 11972 # Some compilers place space between "-{L,R}" and the path. 11973 # Remove the space. 11974 if test $p = "-L" \ 11975 || test $p = "-R"; then 11976 prev=$p 11977 continue 11978 else 11979 prev= 11980 fi 11981 11982 if test "$pre_test_object_deps_done" = no; then 11983 case $p in 11984 -L* | -R*) 11985 # Internal compiler library paths should come after those 11986 # provided the user. The postdeps already come after the 11987 # user supplied libs so there is no need to process them. 11988 if test -z "$compiler_lib_search_path_CXX"; then 11989 compiler_lib_search_path_CXX="${prev}${p}" 11990 else 11991 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11992 fi 11993 ;; 11994 # The "-l" case would never come before the object being 11995 # linked, so don't bother handling this case. 11996 esac 11997 else 11998 if test -z "$postdeps_CXX"; then 11999 postdeps_CXX="${prev}${p}" 12000 else 12001 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12002 fi 12003 fi 12004 ;; 12005 12006 *.$objext) 12007 # This assumes that the test object file only shows up 12008 # once in the compiler output. 12009 if test "$p" = "conftest.$objext"; then 12010 pre_test_object_deps_done=yes 12011 continue 12012 fi 12013 12014 if test "$pre_test_object_deps_done" = no; then 12015 if test -z "$predep_objects_CXX"; then 12016 predep_objects_CXX="$p" 12017 else 12018 predep_objects_CXX="$predep_objects_CXX $p" 12019 fi 12020 else 12021 if test -z "$postdep_objects_CXX"; then 12022 postdep_objects_CXX="$p" 12023 else 12024 postdep_objects_CXX="$postdep_objects_CXX $p" 12025 fi 12026 fi 12027 ;; 12028 12029 *) ;; # Ignore the rest. 12030 12031 esac 12032 done 12033 12034 # Clean up. 12035 rm -f a.out a.exe 12036else 12037 echo "libtool.m4: error: problem compiling CXX test program" 12038fi 12039 12040$rm -f confest.$objext 12041 12042case " $postdeps_CXX " in 12043*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12044esac 12045 12046lt_prog_compiler_wl_CXX= 12047lt_prog_compiler_pic_CXX= 12048lt_prog_compiler_static_CXX= 12049 12050echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12051echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12052 12053 # C++ specific cases for pic, static, wl, etc. 12054 if test "$GXX" = yes; then 12055 lt_prog_compiler_wl_CXX='-Wl,' 12056 lt_prog_compiler_static_CXX='-static' 12057 12058 case $host_os in 12059 aix*) 12060 # All AIX code is PIC. 12061 if test "$host_cpu" = ia64; then 12062 # AIX 5 now supports IA64 processor 12063 lt_prog_compiler_static_CXX='-Bstatic' 12064 fi 12065 ;; 12066 amigaos*) 12067 # FIXME: we need at least 68020 code to build shared libraries, but 12068 # adding the `-m68020' flag to GCC prevents building anything better, 12069 # like `-m68040'. 12070 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12071 ;; 12072 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12073 # PIC is the default for these OSes. 12074 ;; 12075 mingw* | os2* | pw32*) 12076 # This hack is so that the source file can tell whether it is being 12077 # built for inclusion in a dll (and should export symbols for example). 12078 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12079 ;; 12080 darwin* | rhapsody*) 12081 # PIC is the default on this platform 12082 # Common symbols not allowed in MH_DYLIB files 12083 lt_prog_compiler_pic_CXX='-fno-common' 12084 ;; 12085 *djgpp*) 12086 # DJGPP does not support shared libraries at all 12087 lt_prog_compiler_pic_CXX= 12088 ;; 12089 sysv4*MP*) 12090 if test -d /usr/nec; then 12091 lt_prog_compiler_pic_CXX=-Kconform_pic 12092 fi 12093 ;; 12094 hpux*) 12095 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12096 # not for PA HP-UX. 12097 case "$host_cpu" in 12098 hppa*64*|ia64*) 12099 ;; 12100 *) 12101 lt_prog_compiler_pic_CXX='-fPIC' 12102 ;; 12103 esac 12104 ;; 12105 *) 12106 lt_prog_compiler_pic_CXX='-fPIC' 12107 ;; 12108 esac 12109 else 12110 case $host_os in 12111 aix4* | aix5*) 12112 # All AIX code is PIC. 12113 if test "$host_cpu" = ia64; then 12114 # AIX 5 now supports IA64 processor 12115 lt_prog_compiler_static_CXX='-Bstatic' 12116 else 12117 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12118 fi 12119 ;; 12120 chorus*) 12121 case $cc_basename in 12122 cxch68*) 12123 # Green Hills C++ Compiler 12124 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 12125 ;; 12126 esac 12127 ;; 12128 darwin*) 12129 # PIC is the default on this platform 12130 # Common symbols not allowed in MH_DYLIB files 12131 case $cc_basename in 12132 xlc*) 12133 lt_prog_compiler_pic_CXX='-qnocommon' 12134 lt_prog_compiler_wl_CXX='-Wl,' 12135 ;; 12136 esac 12137 ;; 12138 dgux*) 12139 case $cc_basename in 12140 ec++*) 12141 lt_prog_compiler_pic_CXX='-KPIC' 12142 ;; 12143 ghcx*) 12144 # Green Hills C++ Compiler 12145 lt_prog_compiler_pic_CXX='-pic' 12146 ;; 12147 *) 12148 ;; 12149 esac 12150 ;; 12151 freebsd* | kfreebsd*-gnu | dragonfly*) 12152 # FreeBSD uses GNU C++ 12153 ;; 12154 hpux9* | hpux10* | hpux11*) 12155 case $cc_basename in 12156 CC*) 12157 lt_prog_compiler_wl_CXX='-Wl,' 12158 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 12159 if test "$host_cpu" != ia64; then 12160 lt_prog_compiler_pic_CXX='+Z' 12161 fi 12162 ;; 12163 aCC*) 12164 lt_prog_compiler_wl_CXX='-Wl,' 12165 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 12166 case "$host_cpu" in 12167 hppa*64*|ia64*) 12168 # +Z the default 12169 ;; 12170 *) 12171 lt_prog_compiler_pic_CXX='+Z' 12172 ;; 12173 esac 12174 ;; 12175 *) 12176 ;; 12177 esac 12178 ;; 12179 irix5* | irix6* | nonstopux*) 12180 case $cc_basename in 12181 CC*) 12182 lt_prog_compiler_wl_CXX='-Wl,' 12183 lt_prog_compiler_static_CXX='-non_shared' 12184 # CC pic flag -KPIC is the default. 12185 ;; 12186 *) 12187 ;; 12188 esac 12189 ;; 12190 linux*) 12191 case $cc_basename in 12192 KCC*) 12193 # KAI C++ Compiler 12194 lt_prog_compiler_wl_CXX='--backend -Wl,' 12195 lt_prog_compiler_pic_CXX='-fPIC' 12196 ;; 12197 icpc* | ecpc*) 12198 # Intel C++ 12199 lt_prog_compiler_wl_CXX='-Wl,' 12200 lt_prog_compiler_pic_CXX='-KPIC' 12201 lt_prog_compiler_static_CXX='-static' 12202 ;; 12203 pgCC*) 12204 # Portland Group C++ compiler. 12205 lt_prog_compiler_wl_CXX='-Wl,' 12206 lt_prog_compiler_pic_CXX='-fpic' 12207 lt_prog_compiler_static_CXX='-static' 12208 ;; 12209 cxx*) 12210 # Compaq C++ 12211 # Make sure the PIC flag is empty. It appears that all Alpha 12212 # Linux and Compaq Tru64 Unix objects are PIC. 12213 lt_prog_compiler_pic_CXX= 12214 lt_prog_compiler_static_CXX='-non_shared' 12215 ;; 12216 *) 12217 ;; 12218 esac 12219 ;; 12220 lynxos*) 12221 ;; 12222 m88k*) 12223 ;; 12224 mvs*) 12225 case $cc_basename in 12226 cxx*) 12227 lt_prog_compiler_pic_CXX='-W c,exportall' 12228 ;; 12229 *) 12230 ;; 12231 esac 12232 ;; 12233 netbsd*) 12234 ;; 12235 osf3* | osf4* | osf5*) 12236 case $cc_basename in 12237 KCC*) 12238 lt_prog_compiler_wl_CXX='--backend -Wl,' 12239 ;; 12240 RCC*) 12241 # Rational C++ 2.4.1 12242 lt_prog_compiler_pic_CXX='-pic' 12243 ;; 12244 cxx*) 12245 # Digital/Compaq C++ 12246 lt_prog_compiler_wl_CXX='-Wl,' 12247 # Make sure the PIC flag is empty. It appears that all Alpha 12248 # Linux and Compaq Tru64 Unix objects are PIC. 12249 lt_prog_compiler_pic_CXX= 12250 lt_prog_compiler_static_CXX='-non_shared' 12251 ;; 12252 *) 12253 ;; 12254 esac 12255 ;; 12256 psos*) 12257 ;; 12258 sco*) 12259 case $cc_basename in 12260 CC*) 12261 lt_prog_compiler_pic_CXX='-fPIC' 12262 ;; 12263 *) 12264 ;; 12265 esac 12266 ;; 12267 solaris*) 12268 case $cc_basename in 12269 CC*) 12270 # Sun C++ 4.2, 5.x and Centerline C++ 12271 lt_prog_compiler_pic_CXX='-KPIC' 12272 lt_prog_compiler_static_CXX='-Bstatic' 12273 lt_prog_compiler_wl_CXX='-Qoption ld ' 12274 ;; 12275 gcx*) 12276 # Green Hills C++ Compiler 12277 lt_prog_compiler_pic_CXX='-PIC' 12278 ;; 12279 *) 12280 ;; 12281 esac 12282 ;; 12283 sunos4*) 12284 case $cc_basename in 12285 CC*) 12286 # Sun C++ 4.x 12287 lt_prog_compiler_pic_CXX='-pic' 12288 lt_prog_compiler_static_CXX='-Bstatic' 12289 ;; 12290 lcc*) 12291 # Lucid 12292 lt_prog_compiler_pic_CXX='-pic' 12293 ;; 12294 *) 12295 ;; 12296 esac 12297 ;; 12298 tandem*) 12299 case $cc_basename in 12300 NCC*) 12301 # NonStop-UX NCC 3.20 12302 lt_prog_compiler_pic_CXX='-KPIC' 12303 ;; 12304 *) 12305 ;; 12306 esac 12307 ;; 12308 unixware*) 12309 ;; 12310 vxworks*) 12311 ;; 12312 *) 12313 lt_prog_compiler_can_build_shared_CXX=no 12314 ;; 12315 esac 12316 fi 12317 12318echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12319echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 12320 12321# 12322# Check to make sure the PIC flag actually works. 12323# 12324if test -n "$lt_prog_compiler_pic_CXX"; then 12325 12326echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12327echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 12328if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12329 echo $ECHO_N "(cached) $ECHO_C" >&6 12330else 12331 lt_prog_compiler_pic_works_CXX=no 12332 ac_outfile=conftest.$ac_objext 12333 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12334 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12335 # Insert the option either (1) after the last *FLAGS variable, or 12336 # (2) before a word containing "conftest.", or (3) at the end. 12337 # Note that $ac_compile itself does not contain backslashes and begins 12338 # with a dollar sign (not a hyphen), so the echo should work correctly. 12339 # The option is referenced via a variable to avoid confusing sed. 12340 lt_compile=`echo "$ac_compile" | $SED \ 12341 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12343 -e 's:$: $lt_compiler_flag:'` 12344 (eval echo "\"\$as_me:12344: $lt_compile\"" >&5) 12345 (eval "$lt_compile" 2>conftest.err) 12346 ac_status=$? 12347 cat conftest.err >&5 12348 echo "$as_me:12348: \$? = $ac_status" >&5 12349 if (exit $ac_status) && test -s "$ac_outfile"; then 12350 # The compiler can only warn and ignore the option if not recognized 12351 # So say no if there are warnings other than the usual output. 12352 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 12353 $SED '/^$/d' conftest.err >conftest.er2 12354 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 12355 lt_prog_compiler_pic_works_CXX=yes 12356 fi 12357 fi 12358 $rm conftest* 12359 12360fi 12361echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12362echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 12363 12364if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12365 case $lt_prog_compiler_pic_CXX in 12366 "" | " "*) ;; 12367 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12368 esac 12369else 12370 lt_prog_compiler_pic_CXX= 12371 lt_prog_compiler_can_build_shared_CXX=no 12372fi 12373 12374fi 12375case "$host_os" in 12376 # For platforms which do not support PIC, -DPIC is meaningless: 12377 *djgpp*) 12378 lt_prog_compiler_pic_CXX= 12379 ;; 12380 *) 12381 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12382 ;; 12383esac 12384 12385echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12386echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12387if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12388 echo $ECHO_N "(cached) $ECHO_C" >&6 12389else 12390 lt_cv_prog_compiler_c_o_CXX=no 12391 $rm -r conftest 2>/dev/null 12392 mkdir conftest 12393 cd conftest 12394 mkdir out 12395 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12396 12397 lt_compiler_flag="-o out/conftest2.$ac_objext" 12398 # Insert the option either (1) after the last *FLAGS variable, or 12399 # (2) before a word containing "conftest.", or (3) at the end. 12400 # Note that $ac_compile itself does not contain backslashes and begins 12401 # with a dollar sign (not a hyphen), so the echo should work correctly. 12402 lt_compile=`echo "$ac_compile" | $SED \ 12403 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12405 -e 's:$: $lt_compiler_flag:'` 12406 (eval echo "\"\$as_me:12406: $lt_compile\"" >&5) 12407 (eval "$lt_compile" 2>out/conftest.err) 12408 ac_status=$? 12409 cat out/conftest.err >&5 12410 echo "$as_me:12410: \$? = $ac_status" >&5 12411 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12412 then 12413 # The compiler can only warn and ignore the option if not recognized 12414 # So say no if there are warnings 12415 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 12416 $SED '/^$/d' out/conftest.err >out/conftest.er2 12417 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12418 lt_cv_prog_compiler_c_o_CXX=yes 12419 fi 12420 fi 12421 chmod u+w . 12422 $rm conftest* 12423 # SGI C++ compiler will create directory out/ii_files/ for 12424 # template instantiation 12425 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12426 $rm out/* && rmdir out 12427 cd .. 12428 rmdir conftest 12429 $rm conftest* 12430 12431fi 12432echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12433echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 12434 12435 12436hard_links="nottested" 12437if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12438 # do not overwrite the value of need_locks provided by the user 12439 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12440echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 12441 hard_links=yes 12442 $rm conftest* 12443 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12444 touch conftest.a 12445 ln conftest.a conftest.b 2>&5 || hard_links=no 12446 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12447 echo "$as_me:$LINENO: result: $hard_links" >&5 12448echo "${ECHO_T}$hard_links" >&6 12449 if test "$hard_links" = no; then 12450 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12451echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12452 need_locks=warn 12453 fi 12454else 12455 need_locks=no 12456fi 12457 12458echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12459echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12460 12461 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12462 case $host_os in 12463 aix4* | aix5*) 12464 # If we're using GNU nm, then we don't want the "-C" option. 12465 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12466 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12467 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 12468 else 12469 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 12470 fi 12471 ;; 12472 pw32*) 12473 export_symbols_cmds_CXX="$ltdll_cmds" 12474 ;; 12475 cygwin* | mingw*) 12476 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 12477 ;; 12478 *) 12479 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12480 ;; 12481 esac 12482 12483echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12484echo "${ECHO_T}$ld_shlibs_CXX" >&6 12485test "$ld_shlibs_CXX" = no && can_build_shared=no 12486 12487variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12488if test "$GCC" = yes; then 12489 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12490fi 12491 12492# 12493# Do we need to explicitly link libc? 12494# 12495case "x$archive_cmds_need_lc_CXX" in 12496x|xyes) 12497 # Assume -lc should be added 12498 archive_cmds_need_lc_CXX=yes 12499 12500 if test "$enable_shared" = yes && test "$GCC" = yes; then 12501 case $archive_cmds_CXX in 12502 *'~'*) 12503 # FIXME: we may have to deal with multi-command sequences. 12504 ;; 12505 '$CC '*) 12506 # Test whether the compiler implicitly links with -lc since on some 12507 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12508 # to ld, don't add -lc before -lgcc. 12509 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12510echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 12511 $rm conftest* 12512 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12513 12514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12515 (eval $ac_compile) 2>&5 12516 ac_status=$? 12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12518 (exit $ac_status); } 2>conftest.err; then 12519 soname=conftest 12520 lib=conftest 12521 libobjs=conftest.$ac_objext 12522 deplibs= 12523 wl=$lt_prog_compiler_wl_CXX 12524 compiler_flags=-v 12525 linker_flags=-v 12526 verstring= 12527 output_objdir=. 12528 libname=conftest 12529 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12530 allow_undefined_flag_CXX= 12531 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12532 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12533 ac_status=$? 12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12535 (exit $ac_status); } 12536 then 12537 archive_cmds_need_lc_CXX=no 12538 else 12539 archive_cmds_need_lc_CXX=yes 12540 fi 12541 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12542 else 12543 cat conftest.err 1>&5 12544 fi 12545 $rm conftest* 12546 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12547echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 12548 ;; 12549 esac 12550 fi 12551 ;; 12552esac 12553 12554echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12555echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 12556library_names_spec= 12557libname_spec='lib$name' 12558soname_spec= 12559shrext_cmds=".so" 12560postinstall_cmds= 12561postuninstall_cmds= 12562finish_cmds= 12563finish_eval= 12564shlibpath_var= 12565shlibpath_overrides_runpath=unknown 12566version_type=none 12567dynamic_linker="$host_os ld.so" 12568sys_lib_dlsearch_path_spec="/lib /usr/lib" 12569if test "$GCC" = yes; then 12570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12571 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12572 # if the path contains ";" then we assume it to be the separator 12573 # otherwise default to the standard path separator (i.e. ":") - it is 12574 # assumed that no part of a normal pathname contains ";" but that should 12575 # okay in the real world where ";" in dirpaths is itself problematic. 12576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12577 else 12578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12579 fi 12580else 12581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12582fi 12583need_lib_prefix=unknown 12584hardcode_into_libs=no 12585 12586# when you set need_version to no, make sure it does not cause -set_version 12587# flags to be left without arguments 12588need_version=unknown 12589 12590case $host_os in 12591aix3*) 12592 version_type=linux 12593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12594 shlibpath_var=LIBPATH 12595 12596 # AIX 3 has no versioning support, so we append a major version to the name. 12597 soname_spec='${libname}${release}${shared_ext}$major' 12598 ;; 12599 12600aix4* | aix5*) 12601 version_type=linux 12602 need_lib_prefix=no 12603 need_version=no 12604 hardcode_into_libs=yes 12605 if test "$host_cpu" = ia64; then 12606 # AIX 5 supports IA64 12607 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12608 shlibpath_var=LD_LIBRARY_PATH 12609 else 12610 # With GCC up to 2.95.x, collect2 would create an import file 12611 # for dependence libraries. The import file would start with 12612 # the line `#! .'. This would cause the generated library to 12613 # depend on `.', always an invalid library. This was fixed in 12614 # development snapshots of GCC prior to 3.0. 12615 case $host_os in 12616 aix4 | aix4.[01] | aix4.[01].*) 12617 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12618 echo ' yes ' 12619 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12620 : 12621 else 12622 can_build_shared=no 12623 fi 12624 ;; 12625 esac 12626 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12627 # soname into executable. Probably we can add versioning support to 12628 # collect2, so additional links can be useful in future. 12629 if test "$aix_use_runtimelinking" = yes; then 12630 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12631 # instead of lib<name>.a to let people know that these are not 12632 # typical AIX shared libraries. 12633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12634 else 12635 # We preserve .a as extension for shared libraries through AIX4.2 12636 # and later when we are not doing run time linking. 12637 library_names_spec='${libname}${release}.a $libname.a' 12638 soname_spec='${libname}${release}${shared_ext}$major' 12639 fi 12640 shlibpath_var=LIBPATH 12641 fi 12642 ;; 12643 12644amigaos*) 12645 library_names_spec='$libname.ixlibrary $libname.a' 12646 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12647 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12648 ;; 12649 12650beos*) 12651 library_names_spec='${libname}${shared_ext}' 12652 dynamic_linker="$host_os ld.so" 12653 shlibpath_var=LIBRARY_PATH 12654 ;; 12655 12656bsdi[45]*) 12657 version_type=linux 12658 need_version=no 12659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12660 soname_spec='${libname}${release}${shared_ext}$major' 12661 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12662 shlibpath_var=LD_LIBRARY_PATH 12663 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12664 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12665 # the default ld.so.conf also contains /usr/contrib/lib and 12666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12667 # libtool to hard-code these into programs 12668 ;; 12669 12670cygwin* | mingw* | pw32*) 12671 version_type=windows 12672 shrext_cmds=".dll" 12673 need_version=no 12674 need_lib_prefix=no 12675 12676 case $GCC,$host_os in 12677 yes,cygwin* | yes,mingw* | yes,pw32*) 12678 library_names_spec='$libname.dll.a' 12679 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12680 postinstall_cmds='base_file=`basename \${file}`~ 12681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12682 dldir=$destdir/`dirname \$dlpath`~ 12683 test -d \$dldir || mkdir -p \$dldir~ 12684 $install_prog $dir/$dlname \$dldir/$dlname' 12685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12686 dlpath=$dir/\$dldll~ 12687 $rm \$dlpath' 12688 shlibpath_overrides_runpath=yes 12689 12690 case $host_os in 12691 cygwin*) 12692 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12693 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12694 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12695 ;; 12696 mingw*) 12697 # MinGW DLLs use traditional 'lib' prefix 12698 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12700 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12701 # It is most probably a Windows format PATH printed by 12702 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12703 # path with ; separators, and with drive letters. We can handle the 12704 # drive letters (cygwin fileutils understands them), so leave them, 12705 # especially as we might pass files found there to a mingw objdump, 12706 # which wouldn't understand a cygwinified path. Ahh. 12707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12708 else 12709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12710 fi 12711 ;; 12712 pw32*) 12713 # pw32 DLLs use 'pw' prefix rather than 'lib' 12714 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12715 ;; 12716 esac 12717 ;; 12718 12719 *) 12720 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12721 ;; 12722 esac 12723 dynamic_linker='Win32 ld.exe' 12724 # FIXME: first we should search . and the directory the executable is in 12725 shlibpath_var=PATH 12726 ;; 12727 12728darwin* | rhapsody*) 12729 dynamic_linker="$host_os dyld" 12730 version_type=darwin 12731 need_lib_prefix=no 12732 need_version=no 12733 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12734 soname_spec='${libname}${release}${major}$shared_ext' 12735 shlibpath_overrides_runpath=yes 12736 shlibpath_var=DYLD_LIBRARY_PATH 12737 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 12738 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12739 if test "$GCC" = yes; then 12740 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 12741 else 12742 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12743 fi 12744 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12745 ;; 12746 12747dgux*) 12748 version_type=linux 12749 need_lib_prefix=no 12750 need_version=no 12751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12752 soname_spec='${libname}${release}${shared_ext}$major' 12753 shlibpath_var=LD_LIBRARY_PATH 12754 ;; 12755 12756freebsd1*) 12757 dynamic_linker=no 12758 ;; 12759 12760kfreebsd*-gnu) 12761 version_type=linux 12762 need_lib_prefix=no 12763 need_version=no 12764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12765 soname_spec='${libname}${release}${shared_ext}$major' 12766 shlibpath_var=LD_LIBRARY_PATH 12767 shlibpath_overrides_runpath=no 12768 hardcode_into_libs=yes 12769 dynamic_linker='GNU ld.so' 12770 ;; 12771 12772freebsd* | dragonfly*) 12773 # DragonFly does not have aout. When/if they implement a new 12774 # versioning mechanism, adjust this. 12775 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 12776 version_type=freebsd-$objformat 12777 case $version_type in 12778 freebsd-elf*) 12779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12780 need_version=no 12781 need_lib_prefix=no 12782 ;; 12783 freebsd-*) 12784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12785 need_version=yes 12786 ;; 12787 esac 12788 shlibpath_var=LD_LIBRARY_PATH 12789 case $host_os in 12790 freebsd2*) 12791 shlibpath_overrides_runpath=yes 12792 ;; 12793 freebsd3.[01]* | freebsdelf3.[01]*) 12794 shlibpath_overrides_runpath=yes 12795 hardcode_into_libs=yes 12796 ;; 12797 *) # from 3.2 on 12798 shlibpath_overrides_runpath=no 12799 hardcode_into_libs=yes 12800 ;; 12801 esac 12802 ;; 12803 12804gnu*) 12805 version_type=linux 12806 need_lib_prefix=no 12807 need_version=no 12808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12809 soname_spec='${libname}${release}${shared_ext}$major' 12810 shlibpath_var=LD_LIBRARY_PATH 12811 hardcode_into_libs=yes 12812 ;; 12813 12814hpux9* | hpux10* | hpux11*) 12815 # Give a soname corresponding to the major version so that dld.sl refuses to 12816 # link against other versions. 12817 version_type=sunos 12818 need_lib_prefix=no 12819 need_version=no 12820 case "$host_cpu" in 12821 ia64*) 12822 shrext_cmds='.so' 12823 hardcode_into_libs=yes 12824 dynamic_linker="$host_os dld.so" 12825 shlibpath_var=LD_LIBRARY_PATH 12826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12828 soname_spec='${libname}${release}${shared_ext}$major' 12829 if test "X$HPUX_IA64_MODE" = X32; then 12830 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12831 else 12832 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12833 fi 12834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12835 ;; 12836 hppa*64*) 12837 shrext_cmds='.sl' 12838 hardcode_into_libs=yes 12839 dynamic_linker="$host_os dld.sl" 12840 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12843 soname_spec='${libname}${release}${shared_ext}$major' 12844 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12846 ;; 12847 *) 12848 shrext_cmds='.sl' 12849 dynamic_linker="$host_os dld.sl" 12850 shlibpath_var=SHLIB_PATH 12851 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12853 soname_spec='${libname}${release}${shared_ext}$major' 12854 ;; 12855 esac 12856 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12857 postinstall_cmds='chmod 555 $lib' 12858 ;; 12859 12860irix5* | irix6* | nonstopux*) 12861 case $host_os in 12862 nonstopux*) version_type=nonstopux ;; 12863 *) 12864 if test "$lt_cv_prog_gnu_ld" = yes; then 12865 version_type=linux 12866 else 12867 version_type=irix 12868 fi ;; 12869 esac 12870 need_lib_prefix=no 12871 need_version=no 12872 soname_spec='${libname}${release}${shared_ext}$major' 12873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12874 case $host_os in 12875 irix5* | nonstopux*) 12876 libsuff= shlibsuff= 12877 ;; 12878 *) 12879 case $LD in # libtool.m4 will add one of these switches to LD 12880 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12881 libsuff= shlibsuff= libmagic=32-bit;; 12882 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12883 libsuff=32 shlibsuff=N32 libmagic=N32;; 12884 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12885 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12886 *) libsuff= shlibsuff= libmagic=never-match;; 12887 esac 12888 ;; 12889 esac 12890 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12891 shlibpath_overrides_runpath=no 12892 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12893 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12894 hardcode_into_libs=yes 12895 ;; 12896 12897# No shared lib support for Linux oldld, aout, or coff. 12898linux*oldld* | linux*aout* | linux*coff*) 12899 dynamic_linker=no 12900 ;; 12901 12902# This must be Linux ELF. 12903linux*) 12904 version_type=linux 12905 need_lib_prefix=no 12906 need_version=no 12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12908 soname_spec='${libname}${release}${shared_ext}$major' 12909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12910 shlibpath_var=LD_LIBRARY_PATH 12911 shlibpath_overrides_runpath=no 12912 # This implies no fast_install, which is unacceptable. 12913 # Some rework will be needed to allow for fast_install 12914 # before this can be enabled. 12915 hardcode_into_libs=yes 12916 12917 # Append ld.so.conf contents to the search path 12918 if test -f /etc/ld.so.conf; then 12919 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12920 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12921 fi 12922 12923 # We used to test for /lib/ld.so.1 and disable shared libraries on 12924 # powerpc, because MkLinux only supported shared libraries with the 12925 # GNU dynamic linker. Since this was broken with cross compilers, 12926 # most powerpc-linux boxes support dynamic linking these days and 12927 # people can always --disable-shared, the test was removed, and we 12928 # assume the GNU/Linux dynamic linker is in use. 12929 dynamic_linker='GNU/Linux ld.so' 12930 ;; 12931 12932knetbsd*-gnu) 12933 version_type=linux 12934 need_lib_prefix=no 12935 need_version=no 12936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12937 soname_spec='${libname}${release}${shared_ext}$major' 12938 shlibpath_var=LD_LIBRARY_PATH 12939 shlibpath_overrides_runpath=no 12940 hardcode_into_libs=yes 12941 dynamic_linker='GNU ld.so' 12942 ;; 12943 12944netbsd*) 12945 version_type=sunos 12946 need_lib_prefix=no 12947 need_version=no 12948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12951 dynamic_linker='NetBSD (a.out) ld.so' 12952 else 12953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12954 soname_spec='${libname}${release}${shared_ext}$major' 12955 dynamic_linker='NetBSD ld.elf_so' 12956 fi 12957 shlibpath_var=LD_LIBRARY_PATH 12958 shlibpath_overrides_runpath=yes 12959 hardcode_into_libs=yes 12960 ;; 12961 12962newsos6) 12963 version_type=linux 12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12965 shlibpath_var=LD_LIBRARY_PATH 12966 shlibpath_overrides_runpath=yes 12967 ;; 12968 12969nto-qnx*) 12970 version_type=linux 12971 need_lib_prefix=no 12972 need_version=no 12973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12974 soname_spec='${libname}${release}${shared_ext}$major' 12975 shlibpath_var=LD_LIBRARY_PATH 12976 shlibpath_overrides_runpath=yes 12977 ;; 12978 12979openbsd*) 12980 version_type=sunos 12981 need_lib_prefix=no 12982 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12983 case $host_os in 12984 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12985 *) need_version=no ;; 12986 esac 12987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12989 shlibpath_var=LD_LIBRARY_PATH 12990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12991 case $host_os in 12992 openbsd2.[89] | openbsd2.[89].*) 12993 shlibpath_overrides_runpath=no 12994 ;; 12995 *) 12996 shlibpath_overrides_runpath=yes 12997 ;; 12998 esac 12999 else 13000 shlibpath_overrides_runpath=yes 13001 fi 13002 ;; 13003 13004os2*) 13005 libname_spec='$name' 13006 shrext_cmds=".dll" 13007 need_lib_prefix=no 13008 library_names_spec='$libname${shared_ext} $libname.a' 13009 dynamic_linker='OS/2 ld.exe' 13010 shlibpath_var=LIBPATH 13011 ;; 13012 13013osf3* | osf4* | osf5*) 13014 version_type=osf 13015 need_lib_prefix=no 13016 need_version=no 13017 soname_spec='${libname}${release}${shared_ext}$major' 13018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13019 shlibpath_var=LD_LIBRARY_PATH 13020 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13021 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13022 ;; 13023 13024sco3.2v5*) 13025 version_type=osf 13026 soname_spec='${libname}${release}${shared_ext}$major' 13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13028 shlibpath_var=LD_LIBRARY_PATH 13029 ;; 13030 13031solaris*) 13032 version_type=linux 13033 need_lib_prefix=no 13034 need_version=no 13035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13036 soname_spec='${libname}${release}${shared_ext}$major' 13037 shlibpath_var=LD_LIBRARY_PATH 13038 shlibpath_overrides_runpath=yes 13039 hardcode_into_libs=yes 13040 # ldd complains unless libraries are executable 13041 postinstall_cmds='chmod +x $lib' 13042 ;; 13043 13044sunos4*) 13045 version_type=sunos 13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13048 shlibpath_var=LD_LIBRARY_PATH 13049 shlibpath_overrides_runpath=yes 13050 if test "$with_gnu_ld" = yes; then 13051 need_lib_prefix=no 13052 fi 13053 need_version=yes 13054 ;; 13055 13056sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13057 version_type=linux 13058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13059 soname_spec='${libname}${release}${shared_ext}$major' 13060 shlibpath_var=LD_LIBRARY_PATH 13061 case $host_vendor in 13062 sni) 13063 shlibpath_overrides_runpath=no 13064 need_lib_prefix=no 13065 export_dynamic_flag_spec='${wl}-Blargedynsym' 13066 runpath_var=LD_RUN_PATH 13067 ;; 13068 siemens) 13069 need_lib_prefix=no 13070 ;; 13071 motorola) 13072 need_lib_prefix=no 13073 need_version=no 13074 shlibpath_overrides_runpath=no 13075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13076 ;; 13077 esac 13078 ;; 13079 13080sysv4*MP*) 13081 if test -d /usr/nec ;then 13082 version_type=linux 13083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13084 soname_spec='$libname${shared_ext}.$major' 13085 shlibpath_var=LD_LIBRARY_PATH 13086 fi 13087 ;; 13088 13089uts4*) 13090 version_type=linux 13091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13092 soname_spec='${libname}${release}${shared_ext}$major' 13093 shlibpath_var=LD_LIBRARY_PATH 13094 ;; 13095 13096*) 13097 dynamic_linker=no 13098 ;; 13099esac 13100echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13101echo "${ECHO_T}$dynamic_linker" >&6 13102test "$dynamic_linker" = no && can_build_shared=no 13103 13104echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13105echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 13106hardcode_action_CXX= 13107if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13108 test -n "$runpath_var_CXX" || \ 13109 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13110 13111 # We can hardcode non-existant directories. 13112 if test "$hardcode_direct_CXX" != no && 13113 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13114 # have to relink, otherwise we might link with an installed library 13115 # when we should be linking with a yet-to-be-installed one 13116 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13117 test "$hardcode_minus_L_CXX" != no; then 13118 # Linking always hardcodes the temporary library directory. 13119 hardcode_action_CXX=relink 13120 else 13121 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13122 hardcode_action_CXX=immediate 13123 fi 13124else 13125 # We cannot hardcode anything, or else we can only hardcode existing 13126 # directories. 13127 hardcode_action_CXX=unsupported 13128fi 13129echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13130echo "${ECHO_T}$hardcode_action_CXX" >&6 13131 13132if test "$hardcode_action_CXX" = relink; then 13133 # Fast installation is not supported 13134 enable_fast_install=no 13135elif test "$shlibpath_overrides_runpath" = yes || 13136 test "$enable_shared" = no; then 13137 # Fast installation is not necessary 13138 enable_fast_install=needless 13139fi 13140 13141striplib= 13142old_striplib= 13143echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 13144echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 13145if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 13146 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13147 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13148 echo "$as_me:$LINENO: result: yes" >&5 13149echo "${ECHO_T}yes" >&6 13150else 13151# FIXME - insert some real tests, host_os isn't really good enough 13152 case $host_os in 13153 darwin*) 13154 if test -n "$STRIP" ; then 13155 striplib="$STRIP -x" 13156 echo "$as_me:$LINENO: result: yes" >&5 13157echo "${ECHO_T}yes" >&6 13158 else 13159 echo "$as_me:$LINENO: result: no" >&5 13160echo "${ECHO_T}no" >&6 13161fi 13162 ;; 13163 *) 13164 echo "$as_me:$LINENO: result: no" >&5 13165echo "${ECHO_T}no" >&6 13166 ;; 13167 esac 13168fi 13169 13170if test "x$enable_dlopen" != xyes; then 13171 enable_dlopen=unknown 13172 enable_dlopen_self=unknown 13173 enable_dlopen_self_static=unknown 13174else 13175 lt_cv_dlopen=no 13176 lt_cv_dlopen_libs= 13177 13178 case $host_os in 13179 beos*) 13180 lt_cv_dlopen="load_add_on" 13181 lt_cv_dlopen_libs= 13182 lt_cv_dlopen_self=yes 13183 ;; 13184 13185 mingw* | pw32*) 13186 lt_cv_dlopen="LoadLibrary" 13187 lt_cv_dlopen_libs= 13188 ;; 13189 13190 cygwin*) 13191 lt_cv_dlopen="dlopen" 13192 lt_cv_dlopen_libs= 13193 ;; 13194 13195 darwin*) 13196 # if libdl is installed we need to link against it 13197 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 13198echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 13199if test "${ac_cv_lib_dl_dlopen+set}" = set; then 13200 echo $ECHO_N "(cached) $ECHO_C" >&6 13201else 13202 ac_check_lib_save_LIBS=$LIBS 13203LIBS="-ldl $LIBS" 13204cat >conftest.$ac_ext <<_ACEOF 13205/* confdefs.h. */ 13206_ACEOF 13207cat confdefs.h >>conftest.$ac_ext 13208cat >>conftest.$ac_ext <<_ACEOF 13209/* end confdefs.h. */ 13210 13211/* Override any gcc2 internal prototype to avoid an error. */ 13212#ifdef __cplusplus 13213extern "C" 13214#endif 13215/* We use char because int might match the return type of a gcc2 13216 builtin and then its argument prototype would still apply. */ 13217char dlopen (); 13218int 13219main () 13220{ 13221dlopen (); 13222 ; 13223 return 0; 13224} 13225_ACEOF 13226rm -f conftest.$ac_objext conftest$ac_exeext 13227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13228 (eval $ac_link) 2>conftest.er1 13229 ac_status=$? 13230 grep -v '^ *+' conftest.er1 >conftest.err 13231 rm -f conftest.er1 13232 cat conftest.err >&5 13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13234 (exit $ac_status); } && 13235 { ac_try='test -z "$ac_cxx_werror_flag" 13236 || test ! -s conftest.err' 13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13238 (eval $ac_try) 2>&5 13239 ac_status=$? 13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13241 (exit $ac_status); }; } && 13242 { ac_try='test -s conftest$ac_exeext' 13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13244 (eval $ac_try) 2>&5 13245 ac_status=$? 13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13247 (exit $ac_status); }; }; then 13248 ac_cv_lib_dl_dlopen=yes 13249else 13250 echo "$as_me: failed program was:" >&5 13251sed 's/^/| /' conftest.$ac_ext >&5 13252 13253ac_cv_lib_dl_dlopen=no 13254fi 13255rm -f conftest.err conftest.$ac_objext \ 13256 conftest$ac_exeext conftest.$ac_ext 13257LIBS=$ac_check_lib_save_LIBS 13258fi 13259echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 13260echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 13261if test $ac_cv_lib_dl_dlopen = yes; then 13262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13263else 13264 13265 lt_cv_dlopen="dyld" 13266 lt_cv_dlopen_libs= 13267 lt_cv_dlopen_self=yes 13268 13269fi 13270 13271 ;; 13272 13273 *) 13274 echo "$as_me:$LINENO: checking for shl_load" >&5 13275echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 13276if test "${ac_cv_func_shl_load+set}" = set; then 13277 echo $ECHO_N "(cached) $ECHO_C" >&6 13278else 13279 cat >conftest.$ac_ext <<_ACEOF 13280/* confdefs.h. */ 13281_ACEOF 13282cat confdefs.h >>conftest.$ac_ext 13283cat >>conftest.$ac_ext <<_ACEOF 13284/* end confdefs.h. */ 13285/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 13286 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13287#define shl_load innocuous_shl_load 13288 13289/* System header to define __stub macros and hopefully few prototypes, 13290 which can conflict with char shl_load (); below. 13291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13292 <limits.h> exists even on freestanding compilers. */ 13293 13294#ifdef __STDC__ 13295# include <limits.h> 13296#else 13297# include <assert.h> 13298#endif 13299 13300#undef shl_load 13301 13302/* Override any gcc2 internal prototype to avoid an error. */ 13303#ifdef __cplusplus 13304extern "C" 13305{ 13306#endif 13307/* We use char because int might match the return type of a gcc2 13308 builtin and then its argument prototype would still apply. */ 13309char shl_load (); 13310/* The GNU C library defines this for functions which it implements 13311 to always fail with ENOSYS. Some functions are actually named 13312 something starting with __ and the normal name is an alias. */ 13313#if defined (__stub_shl_load) || defined (__stub___shl_load) 13314choke me 13315#else 13316char (*f) () = shl_load; 13317#endif 13318#ifdef __cplusplus 13319} 13320#endif 13321 13322int 13323main () 13324{ 13325return f != shl_load; 13326 ; 13327 return 0; 13328} 13329_ACEOF 13330rm -f conftest.$ac_objext conftest$ac_exeext 13331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13332 (eval $ac_link) 2>conftest.er1 13333 ac_status=$? 13334 grep -v '^ *+' conftest.er1 >conftest.err 13335 rm -f conftest.er1 13336 cat conftest.err >&5 13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13338 (exit $ac_status); } && 13339 { ac_try='test -z "$ac_cxx_werror_flag" 13340 || test ! -s conftest.err' 13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13342 (eval $ac_try) 2>&5 13343 ac_status=$? 13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13345 (exit $ac_status); }; } && 13346 { ac_try='test -s conftest$ac_exeext' 13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13348 (eval $ac_try) 2>&5 13349 ac_status=$? 13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13351 (exit $ac_status); }; }; then 13352 ac_cv_func_shl_load=yes 13353else 13354 echo "$as_me: failed program was:" >&5 13355sed 's/^/| /' conftest.$ac_ext >&5 13356 13357ac_cv_func_shl_load=no 13358fi 13359rm -f conftest.err conftest.$ac_objext \ 13360 conftest$ac_exeext conftest.$ac_ext 13361fi 13362echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 13363echo "${ECHO_T}$ac_cv_func_shl_load" >&6 13364if test $ac_cv_func_shl_load = yes; then 13365 lt_cv_dlopen="shl_load" 13366else 13367 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 13368echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 13369if test "${ac_cv_lib_dld_shl_load+set}" = set; then 13370 echo $ECHO_N "(cached) $ECHO_C" >&6 13371else 13372 ac_check_lib_save_LIBS=$LIBS 13373LIBS="-ldld $LIBS" 13374cat >conftest.$ac_ext <<_ACEOF 13375/* confdefs.h. */ 13376_ACEOF 13377cat confdefs.h >>conftest.$ac_ext 13378cat >>conftest.$ac_ext <<_ACEOF 13379/* end confdefs.h. */ 13380 13381/* Override any gcc2 internal prototype to avoid an error. */ 13382#ifdef __cplusplus 13383extern "C" 13384#endif 13385/* We use char because int might match the return type of a gcc2 13386 builtin and then its argument prototype would still apply. */ 13387char shl_load (); 13388int 13389main () 13390{ 13391shl_load (); 13392 ; 13393 return 0; 13394} 13395_ACEOF 13396rm -f conftest.$ac_objext conftest$ac_exeext 13397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13398 (eval $ac_link) 2>conftest.er1 13399 ac_status=$? 13400 grep -v '^ *+' conftest.er1 >conftest.err 13401 rm -f conftest.er1 13402 cat conftest.err >&5 13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13404 (exit $ac_status); } && 13405 { ac_try='test -z "$ac_cxx_werror_flag" 13406 || test ! -s conftest.err' 13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13408 (eval $ac_try) 2>&5 13409 ac_status=$? 13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13411 (exit $ac_status); }; } && 13412 { ac_try='test -s conftest$ac_exeext' 13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13414 (eval $ac_try) 2>&5 13415 ac_status=$? 13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13417 (exit $ac_status); }; }; then 13418 ac_cv_lib_dld_shl_load=yes 13419else 13420 echo "$as_me: failed program was:" >&5 13421sed 's/^/| /' conftest.$ac_ext >&5 13422 13423ac_cv_lib_dld_shl_load=no 13424fi 13425rm -f conftest.err conftest.$ac_objext \ 13426 conftest$ac_exeext conftest.$ac_ext 13427LIBS=$ac_check_lib_save_LIBS 13428fi 13429echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 13430echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 13431if test $ac_cv_lib_dld_shl_load = yes; then 13432 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 13433else 13434 echo "$as_me:$LINENO: checking for dlopen" >&5 13435echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 13436if test "${ac_cv_func_dlopen+set}" = set; then 13437 echo $ECHO_N "(cached) $ECHO_C" >&6 13438else 13439 cat >conftest.$ac_ext <<_ACEOF 13440/* confdefs.h. */ 13441_ACEOF 13442cat confdefs.h >>conftest.$ac_ext 13443cat >>conftest.$ac_ext <<_ACEOF 13444/* end confdefs.h. */ 13445/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 13446 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13447#define dlopen innocuous_dlopen 13448 13449/* System header to define __stub macros and hopefully few prototypes, 13450 which can conflict with char dlopen (); below. 13451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13452 <limits.h> exists even on freestanding compilers. */ 13453 13454#ifdef __STDC__ 13455# include <limits.h> 13456#else 13457# include <assert.h> 13458#endif 13459 13460#undef dlopen 13461 13462/* Override any gcc2 internal prototype to avoid an error. */ 13463#ifdef __cplusplus 13464extern "C" 13465{ 13466#endif 13467/* We use char because int might match the return type of a gcc2 13468 builtin and then its argument prototype would still apply. */ 13469char dlopen (); 13470/* The GNU C library defines this for functions which it implements 13471 to always fail with ENOSYS. Some functions are actually named 13472 something starting with __ and the normal name is an alias. */ 13473#if defined (__stub_dlopen) || defined (__stub___dlopen) 13474choke me 13475#else 13476char (*f) () = dlopen; 13477#endif 13478#ifdef __cplusplus 13479} 13480#endif 13481 13482int 13483main () 13484{ 13485return f != dlopen; 13486 ; 13487 return 0; 13488} 13489_ACEOF 13490rm -f conftest.$ac_objext conftest$ac_exeext 13491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13492 (eval $ac_link) 2>conftest.er1 13493 ac_status=$? 13494 grep -v '^ *+' conftest.er1 >conftest.err 13495 rm -f conftest.er1 13496 cat conftest.err >&5 13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13498 (exit $ac_status); } && 13499 { ac_try='test -z "$ac_cxx_werror_flag" 13500 || test ! -s conftest.err' 13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13502 (eval $ac_try) 2>&5 13503 ac_status=$? 13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13505 (exit $ac_status); }; } && 13506 { ac_try='test -s conftest$ac_exeext' 13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13508 (eval $ac_try) 2>&5 13509 ac_status=$? 13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13511 (exit $ac_status); }; }; then 13512 ac_cv_func_dlopen=yes 13513else 13514 echo "$as_me: failed program was:" >&5 13515sed 's/^/| /' conftest.$ac_ext >&5 13516 13517ac_cv_func_dlopen=no 13518fi 13519rm -f conftest.err conftest.$ac_objext \ 13520 conftest$ac_exeext conftest.$ac_ext 13521fi 13522echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 13523echo "${ECHO_T}$ac_cv_func_dlopen" >&6 13524if test $ac_cv_func_dlopen = yes; then 13525 lt_cv_dlopen="dlopen" 13526else 13527 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 13528echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 13529if test "${ac_cv_lib_dl_dlopen+set}" = set; then 13530 echo $ECHO_N "(cached) $ECHO_C" >&6 13531else 13532 ac_check_lib_save_LIBS=$LIBS 13533LIBS="-ldl $LIBS" 13534cat >conftest.$ac_ext <<_ACEOF 13535/* confdefs.h. */ 13536_ACEOF 13537cat confdefs.h >>conftest.$ac_ext 13538cat >>conftest.$ac_ext <<_ACEOF 13539/* end confdefs.h. */ 13540 13541/* Override any gcc2 internal prototype to avoid an error. */ 13542#ifdef __cplusplus 13543extern "C" 13544#endif 13545/* We use char because int might match the return type of a gcc2 13546 builtin and then its argument prototype would still apply. */ 13547char dlopen (); 13548int 13549main () 13550{ 13551dlopen (); 13552 ; 13553 return 0; 13554} 13555_ACEOF 13556rm -f conftest.$ac_objext conftest$ac_exeext 13557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13558 (eval $ac_link) 2>conftest.er1 13559 ac_status=$? 13560 grep -v '^ *+' conftest.er1 >conftest.err 13561 rm -f conftest.er1 13562 cat conftest.err >&5 13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13564 (exit $ac_status); } && 13565 { ac_try='test -z "$ac_cxx_werror_flag" 13566 || test ! -s conftest.err' 13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13568 (eval $ac_try) 2>&5 13569 ac_status=$? 13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13571 (exit $ac_status); }; } && 13572 { ac_try='test -s conftest$ac_exeext' 13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13574 (eval $ac_try) 2>&5 13575 ac_status=$? 13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13577 (exit $ac_status); }; }; then 13578 ac_cv_lib_dl_dlopen=yes 13579else 13580 echo "$as_me: failed program was:" >&5 13581sed 's/^/| /' conftest.$ac_ext >&5 13582 13583ac_cv_lib_dl_dlopen=no 13584fi 13585rm -f conftest.err conftest.$ac_objext \ 13586 conftest$ac_exeext conftest.$ac_ext 13587LIBS=$ac_check_lib_save_LIBS 13588fi 13589echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 13590echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 13591if test $ac_cv_lib_dl_dlopen = yes; then 13592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13593else 13594 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 13595echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 13596if test "${ac_cv_lib_svld_dlopen+set}" = set; then 13597 echo $ECHO_N "(cached) $ECHO_C" >&6 13598else 13599 ac_check_lib_save_LIBS=$LIBS 13600LIBS="-lsvld $LIBS" 13601cat >conftest.$ac_ext <<_ACEOF 13602/* confdefs.h. */ 13603_ACEOF 13604cat confdefs.h >>conftest.$ac_ext 13605cat >>conftest.$ac_ext <<_ACEOF 13606/* end confdefs.h. */ 13607 13608/* Override any gcc2 internal prototype to avoid an error. */ 13609#ifdef __cplusplus 13610extern "C" 13611#endif 13612/* We use char because int might match the return type of a gcc2 13613 builtin and then its argument prototype would still apply. */ 13614char dlopen (); 13615int 13616main () 13617{ 13618dlopen (); 13619 ; 13620 return 0; 13621} 13622_ACEOF 13623rm -f conftest.$ac_objext conftest$ac_exeext 13624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13625 (eval $ac_link) 2>conftest.er1 13626 ac_status=$? 13627 grep -v '^ *+' conftest.er1 >conftest.err 13628 rm -f conftest.er1 13629 cat conftest.err >&5 13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13631 (exit $ac_status); } && 13632 { ac_try='test -z "$ac_cxx_werror_flag" 13633 || test ! -s conftest.err' 13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13635 (eval $ac_try) 2>&5 13636 ac_status=$? 13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13638 (exit $ac_status); }; } && 13639 { ac_try='test -s conftest$ac_exeext' 13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13641 (eval $ac_try) 2>&5 13642 ac_status=$? 13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13644 (exit $ac_status); }; }; then 13645 ac_cv_lib_svld_dlopen=yes 13646else 13647 echo "$as_me: failed program was:" >&5 13648sed 's/^/| /' conftest.$ac_ext >&5 13649 13650ac_cv_lib_svld_dlopen=no 13651fi 13652rm -f conftest.err conftest.$ac_objext \ 13653 conftest$ac_exeext conftest.$ac_ext 13654LIBS=$ac_check_lib_save_LIBS 13655fi 13656echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 13657echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 13658if test $ac_cv_lib_svld_dlopen = yes; then 13659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13660else 13661 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 13662echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 13663if test "${ac_cv_lib_dld_dld_link+set}" = set; then 13664 echo $ECHO_N "(cached) $ECHO_C" >&6 13665else 13666 ac_check_lib_save_LIBS=$LIBS 13667LIBS="-ldld $LIBS" 13668cat >conftest.$ac_ext <<_ACEOF 13669/* confdefs.h. */ 13670_ACEOF 13671cat confdefs.h >>conftest.$ac_ext 13672cat >>conftest.$ac_ext <<_ACEOF 13673/* end confdefs.h. */ 13674 13675/* Override any gcc2 internal prototype to avoid an error. */ 13676#ifdef __cplusplus 13677extern "C" 13678#endif 13679/* We use char because int might match the return type of a gcc2 13680 builtin and then its argument prototype would still apply. */ 13681char dld_link (); 13682int 13683main () 13684{ 13685dld_link (); 13686 ; 13687 return 0; 13688} 13689_ACEOF 13690rm -f conftest.$ac_objext conftest$ac_exeext 13691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13692 (eval $ac_link) 2>conftest.er1 13693 ac_status=$? 13694 grep -v '^ *+' conftest.er1 >conftest.err 13695 rm -f conftest.er1 13696 cat conftest.err >&5 13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13698 (exit $ac_status); } && 13699 { ac_try='test -z "$ac_cxx_werror_flag" 13700 || test ! -s conftest.err' 13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13702 (eval $ac_try) 2>&5 13703 ac_status=$? 13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13705 (exit $ac_status); }; } && 13706 { ac_try='test -s conftest$ac_exeext' 13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13708 (eval $ac_try) 2>&5 13709 ac_status=$? 13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13711 (exit $ac_status); }; }; then 13712 ac_cv_lib_dld_dld_link=yes 13713else 13714 echo "$as_me: failed program was:" >&5 13715sed 's/^/| /' conftest.$ac_ext >&5 13716 13717ac_cv_lib_dld_dld_link=no 13718fi 13719rm -f conftest.err conftest.$ac_objext \ 13720 conftest$ac_exeext conftest.$ac_ext 13721LIBS=$ac_check_lib_save_LIBS 13722fi 13723echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 13724echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 13725if test $ac_cv_lib_dld_dld_link = yes; then 13726 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 13727fi 13728 13729 13730fi 13731 13732 13733fi 13734 13735 13736fi 13737 13738 13739fi 13740 13741 13742fi 13743 13744 ;; 13745 esac 13746 13747 if test "x$lt_cv_dlopen" != xno; then 13748 enable_dlopen=yes 13749 else 13750 enable_dlopen=no 13751 fi 13752 13753 case $lt_cv_dlopen in 13754 dlopen) 13755 save_CPPFLAGS="$CPPFLAGS" 13756 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13757 13758 save_LDFLAGS="$LDFLAGS" 13759 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13760 13761 save_LIBS="$LIBS" 13762 LIBS="$lt_cv_dlopen_libs $LIBS" 13763 13764 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 13765echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 13766if test "${lt_cv_dlopen_self+set}" = set; then 13767 echo $ECHO_N "(cached) $ECHO_C" >&6 13768else 13769 if test "$cross_compiling" = yes; then : 13770 lt_cv_dlopen_self=cross 13771else 13772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13773 lt_status=$lt_dlunknown 13774 cat > conftest.$ac_ext <<EOF 13775#line 13775 "configure" 13776#include "confdefs.h" 13777 13778#if HAVE_DLFCN_H 13779#include <dlfcn.h> 13780#endif 13781 13782#include <stdio.h> 13783 13784#ifdef RTLD_GLOBAL 13785# define LT_DLGLOBAL RTLD_GLOBAL 13786#else 13787# ifdef DL_GLOBAL 13788# define LT_DLGLOBAL DL_GLOBAL 13789# else 13790# define LT_DLGLOBAL 0 13791# endif 13792#endif 13793 13794/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13795 find out it does not work in some platform. */ 13796#ifndef LT_DLLAZY_OR_NOW 13797# ifdef RTLD_LAZY 13798# define LT_DLLAZY_OR_NOW RTLD_LAZY 13799# else 13800# ifdef DL_LAZY 13801# define LT_DLLAZY_OR_NOW DL_LAZY 13802# else 13803# ifdef RTLD_NOW 13804# define LT_DLLAZY_OR_NOW RTLD_NOW 13805# else 13806# ifdef DL_NOW 13807# define LT_DLLAZY_OR_NOW DL_NOW 13808# else 13809# define LT_DLLAZY_OR_NOW 0 13810# endif 13811# endif 13812# endif 13813# endif 13814#endif 13815 13816#ifdef __cplusplus 13817extern "C" void exit (int); 13818#endif 13819 13820void fnord() { int i=42;} 13821int main () 13822{ 13823 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13824 int status = $lt_dlunknown; 13825 13826 if (self) 13827 { 13828 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13829 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13830 /* dlclose (self); */ 13831 } 13832 13833 exit (status); 13834} 13835EOF 13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13837 (eval $ac_link) 2>&5 13838 ac_status=$? 13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13840 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13841 (./conftest; exit; ) 2>/dev/null 13842 lt_status=$? 13843 case x$lt_status in 13844 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13845 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13846 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 13847 esac 13848 else : 13849 # compilation failed 13850 lt_cv_dlopen_self=no 13851 fi 13852fi 13853rm -fr conftest* 13854 13855 13856fi 13857echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 13858echo "${ECHO_T}$lt_cv_dlopen_self" >&6 13859 13860 if test "x$lt_cv_dlopen_self" = xyes; then 13861 LDFLAGS="$LDFLAGS $link_static_flag" 13862 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 13863echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 13864if test "${lt_cv_dlopen_self_static+set}" = set; then 13865 echo $ECHO_N "(cached) $ECHO_C" >&6 13866else 13867 if test "$cross_compiling" = yes; then : 13868 lt_cv_dlopen_self_static=cross 13869else 13870 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13871 lt_status=$lt_dlunknown 13872 cat > conftest.$ac_ext <<EOF 13873#line 13873 "configure" 13874#include "confdefs.h" 13875 13876#if HAVE_DLFCN_H 13877#include <dlfcn.h> 13878#endif 13879 13880#include <stdio.h> 13881 13882#ifdef RTLD_GLOBAL 13883# define LT_DLGLOBAL RTLD_GLOBAL 13884#else 13885# ifdef DL_GLOBAL 13886# define LT_DLGLOBAL DL_GLOBAL 13887# else 13888# define LT_DLGLOBAL 0 13889# endif 13890#endif 13891 13892/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13893 find out it does not work in some platform. */ 13894#ifndef LT_DLLAZY_OR_NOW 13895# ifdef RTLD_LAZY 13896# define LT_DLLAZY_OR_NOW RTLD_LAZY 13897# else 13898# ifdef DL_LAZY 13899# define LT_DLLAZY_OR_NOW DL_LAZY 13900# else 13901# ifdef RTLD_NOW 13902# define LT_DLLAZY_OR_NOW RTLD_NOW 13903# else 13904# ifdef DL_NOW 13905# define LT_DLLAZY_OR_NOW DL_NOW 13906# else 13907# define LT_DLLAZY_OR_NOW 0 13908# endif 13909# endif 13910# endif 13911# endif 13912#endif 13913 13914#ifdef __cplusplus 13915extern "C" void exit (int); 13916#endif 13917 13918void fnord() { int i=42;} 13919int main () 13920{ 13921 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13922 int status = $lt_dlunknown; 13923 13924 if (self) 13925 { 13926 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13927 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13928 /* dlclose (self); */ 13929 } 13930 13931 exit (status); 13932} 13933EOF 13934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13935 (eval $ac_link) 2>&5 13936 ac_status=$? 13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13938 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13939 (./conftest; exit; ) 2>/dev/null 13940 lt_status=$? 13941 case x$lt_status in 13942 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13943 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13944 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 13945 esac 13946 else : 13947 # compilation failed 13948 lt_cv_dlopen_self_static=no 13949 fi 13950fi 13951rm -fr conftest* 13952 13953 13954fi 13955echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 13956echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 13957 fi 13958 13959 CPPFLAGS="$save_CPPFLAGS" 13960 LDFLAGS="$save_LDFLAGS" 13961 LIBS="$save_LIBS" 13962 ;; 13963 esac 13964 13965 case $lt_cv_dlopen_self in 13966 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13967 *) enable_dlopen_self=unknown ;; 13968 esac 13969 13970 case $lt_cv_dlopen_self_static in 13971 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13972 *) enable_dlopen_self_static=unknown ;; 13973 esac 13974fi 13975 13976 13977# The else clause should only fire when bootstrapping the 13978# libtool distribution, otherwise you forgot to ship ltmain.sh 13979# with your package, and you will get complaints that there are 13980# no rules to generate ltmain.sh. 13981if test -f "$ltmain"; then 13982 # See if we are running on zsh, and set the options which allow our commands through 13983 # without removal of \ escapes. 13984 if test -n "${ZSH_VERSION+set}" ; then 13985 setopt NO_GLOB_SUBST 13986 fi 13987 # Now quote all the things that may contain metacharacters while being 13988 # careful not to overquote the AC_SUBSTed values. We take copies of the 13989 # variables and quote the copies for generation of the libtool script. 13990 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13991 SED SHELL STRIP \ 13992 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13993 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13994 deplibs_check_method reload_flag reload_cmds need_locks \ 13995 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13996 lt_cv_sys_global_symbol_to_c_name_address \ 13997 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13998 old_postinstall_cmds old_postuninstall_cmds \ 13999 compiler_CXX \ 14000 CC_CXX \ 14001 LD_CXX \ 14002 lt_prog_compiler_wl_CXX \ 14003 lt_prog_compiler_pic_CXX \ 14004 lt_prog_compiler_static_CXX \ 14005 lt_prog_compiler_no_builtin_flag_CXX \ 14006 export_dynamic_flag_spec_CXX \ 14007 thread_safe_flag_spec_CXX \ 14008 whole_archive_flag_spec_CXX \ 14009 enable_shared_with_static_runtimes_CXX \ 14010 old_archive_cmds_CXX \ 14011 old_archive_from_new_cmds_CXX \ 14012 predep_objects_CXX \ 14013 postdep_objects_CXX \ 14014 predeps_CXX \ 14015 postdeps_CXX \ 14016 compiler_lib_search_path_CXX \ 14017 archive_cmds_CXX \ 14018 archive_expsym_cmds_CXX \ 14019 postinstall_cmds_CXX \ 14020 postuninstall_cmds_CXX \ 14021 old_archive_from_expsyms_cmds_CXX \ 14022 allow_undefined_flag_CXX \ 14023 no_undefined_flag_CXX \ 14024 export_symbols_cmds_CXX \ 14025 hardcode_libdir_flag_spec_CXX \ 14026 hardcode_libdir_flag_spec_ld_CXX \ 14027 hardcode_libdir_separator_CXX \ 14028 hardcode_automatic_CXX \ 14029 module_cmds_CXX \ 14030 module_expsym_cmds_CXX \ 14031 lt_cv_prog_compiler_c_o_CXX \ 14032 exclude_expsyms_CXX \ 14033 include_expsyms_CXX; do 14034 14035 case $var in 14036 old_archive_cmds_CXX | \ 14037 old_archive_from_new_cmds_CXX | \ 14038 archive_cmds_CXX | \ 14039 archive_expsym_cmds_CXX | \ 14040 module_cmds_CXX | \ 14041 module_expsym_cmds_CXX | \ 14042 old_archive_from_expsyms_cmds_CXX | \ 14043 export_symbols_cmds_CXX | \ 14044 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14045 postinstall_cmds | postuninstall_cmds | \ 14046 old_postinstall_cmds | old_postuninstall_cmds | \ 14047 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14048 # Double-quote double-evaled strings. 14049 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14050 ;; 14051 *) 14052 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14053 ;; 14054 esac 14055 done 14056 14057 case $lt_echo in 14058 *'\$0 --fallback-echo"') 14059 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14060 ;; 14061 esac 14062 14063cfgfile="$ofile" 14064 14065 cat <<__EOF__ >> "$cfgfile" 14066# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14067 14068# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14069 14070# Shell to use when invoking shell scripts. 14071SHELL=$lt_SHELL 14072 14073# Whether or not to build shared libraries. 14074build_libtool_libs=$enable_shared 14075 14076# Whether or not to build static libraries. 14077build_old_libs=$enable_static 14078 14079# Whether or not to add -lc for building shared libraries. 14080build_libtool_need_lc=$archive_cmds_need_lc_CXX 14081 14082# Whether or not to disallow shared libs when runtime libs are static 14083allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14084 14085# Whether or not to optimize for fast installation. 14086fast_install=$enable_fast_install 14087 14088# The host system. 14089host_alias=$host_alias 14090host=$host 14091host_os=$host_os 14092 14093# The build system. 14094build_alias=$build_alias 14095build=$build 14096build_os=$build_os 14097 14098# An echo program that does not interpret backslashes. 14099echo=$lt_echo 14100 14101# The archiver. 14102AR=$lt_AR 14103AR_FLAGS=$lt_AR_FLAGS 14104 14105# A C compiler. 14106LTCC=$lt_LTCC 14107 14108# A language-specific compiler. 14109CC=$lt_compiler_CXX 14110 14111# Is the compiler the GNU C compiler? 14112with_gcc=$GCC_CXX 14113 14114# An ERE matcher. 14115EGREP=$lt_EGREP 14116 14117# The linker used to build libraries. 14118LD=$lt_LD_CXX 14119 14120# Whether we need hard or soft links. 14121LN_S=$lt_LN_S 14122 14123# A BSD-compatible nm program. 14124NM=$lt_NM 14125 14126# A symbol stripping program 14127STRIP=$lt_STRIP 14128 14129# Used to examine libraries when file_magic_cmd begins "file" 14130MAGIC_CMD=$MAGIC_CMD 14131 14132# Used on cygwin: DLL creation program. 14133DLLTOOL="$DLLTOOL" 14134 14135# Used on cygwin: object dumper. 14136OBJDUMP="$OBJDUMP" 14137 14138# Used on cygwin: assembler. 14139AS="$AS" 14140 14141# The name of the directory that contains temporary libtool files. 14142objdir=$objdir 14143 14144# How to create reloadable object files. 14145reload_flag=$lt_reload_flag 14146reload_cmds=$lt_reload_cmds 14147 14148# How to pass a linker flag through the compiler. 14149wl=$lt_lt_prog_compiler_wl_CXX 14150 14151# Object file suffix (normally "o"). 14152objext="$ac_objext" 14153 14154# Old archive suffix (normally "a"). 14155libext="$libext" 14156 14157# Shared library suffix (normally ".so"). 14158shrext_cmds='$shrext_cmds' 14159 14160# Executable file suffix (normally ""). 14161exeext="$exeext" 14162 14163# Additional compiler flags for building library objects. 14164pic_flag=$lt_lt_prog_compiler_pic_CXX 14165pic_mode=$pic_mode 14166 14167# What is the maximum length of a command? 14168max_cmd_len=$lt_cv_sys_max_cmd_len 14169 14170# Does compiler simultaneously support -c and -o options? 14171compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14172 14173# Must we lock files when doing compilation? 14174need_locks=$lt_need_locks 14175 14176# Do we need the lib prefix for modules? 14177need_lib_prefix=$need_lib_prefix 14178 14179# Do we need a version for libraries? 14180need_version=$need_version 14181 14182# Whether dlopen is supported. 14183dlopen_support=$enable_dlopen 14184 14185# Whether dlopen of programs is supported. 14186dlopen_self=$enable_dlopen_self 14187 14188# Whether dlopen of statically linked programs is supported. 14189dlopen_self_static=$enable_dlopen_self_static 14190 14191# Compiler flag to prevent dynamic linking. 14192link_static_flag=$lt_lt_prog_compiler_static_CXX 14193 14194# Compiler flag to turn off builtin functions. 14195no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14196 14197# Compiler flag to allow reflexive dlopens. 14198export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14199 14200# Compiler flag to generate shared objects directly from archives. 14201whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14202 14203# Compiler flag to generate thread-safe objects. 14204thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14205 14206# Library versioning type. 14207version_type=$version_type 14208 14209# Format of library name prefix. 14210libname_spec=$lt_libname_spec 14211 14212# List of archive names. First name is the real one, the rest are links. 14213# The last name is the one that the linker finds with -lNAME. 14214library_names_spec=$lt_library_names_spec 14215 14216# The coded name of the library, if different from the real name. 14217soname_spec=$lt_soname_spec 14218 14219# Commands used to build and install an old-style archive. 14220RANLIB=$lt_RANLIB 14221old_archive_cmds=$lt_old_archive_cmds_CXX 14222old_postinstall_cmds=$lt_old_postinstall_cmds 14223old_postuninstall_cmds=$lt_old_postuninstall_cmds 14224 14225# Create an old-style archive from a shared archive. 14226old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14227 14228# Create a temporary old-style archive to link instead of a shared archive. 14229old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14230 14231# Commands used to build and install a shared archive. 14232archive_cmds=$lt_archive_cmds_CXX 14233archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14234postinstall_cmds=$lt_postinstall_cmds 14235postuninstall_cmds=$lt_postuninstall_cmds 14236 14237# Commands used to build a loadable module (assumed same as above if empty) 14238module_cmds=$lt_module_cmds_CXX 14239module_expsym_cmds=$lt_module_expsym_cmds_CXX 14240 14241# Commands to strip libraries. 14242old_striplib=$lt_old_striplib 14243striplib=$lt_striplib 14244 14245# Dependencies to place before the objects being linked to create a 14246# shared library. 14247predep_objects=$lt_predep_objects_CXX 14248 14249# Dependencies to place after the objects being linked to create a 14250# shared library. 14251postdep_objects=$lt_postdep_objects_CXX 14252 14253# Dependencies to place before the objects being linked to create a 14254# shared library. 14255predeps=$lt_predeps_CXX 14256 14257# Dependencies to place after the objects being linked to create a 14258# shared library. 14259postdeps=$lt_postdeps_CXX 14260 14261# The library search path used internally by the compiler when linking 14262# a shared library. 14263compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14264 14265# Method to check whether dependent libraries are shared objects. 14266deplibs_check_method=$lt_deplibs_check_method 14267 14268# Command to use when deplibs_check_method == file_magic. 14269file_magic_cmd=$lt_file_magic_cmd 14270 14271# Flag that allows shared libraries with undefined symbols to be built. 14272allow_undefined_flag=$lt_allow_undefined_flag_CXX 14273 14274# Flag that forces no undefined symbols. 14275no_undefined_flag=$lt_no_undefined_flag_CXX 14276 14277# Commands used to finish a libtool library installation in a directory. 14278finish_cmds=$lt_finish_cmds 14279 14280# Same as above, but a single script fragment to be evaled but not shown. 14281finish_eval=$lt_finish_eval 14282 14283# Take the output of nm and produce a listing of raw symbols and C names. 14284global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14285 14286# Transform the output of nm in a proper C declaration 14287global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14288 14289# Transform the output of nm in a C name address pair 14290global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14291 14292# This is the shared library runtime path variable. 14293runpath_var=$runpath_var 14294 14295# This is the shared library path variable. 14296shlibpath_var=$shlibpath_var 14297 14298# Is shlibpath searched before the hard-coded library search path? 14299shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14300 14301# How to hardcode a shared library path into an executable. 14302hardcode_action=$hardcode_action_CXX 14303 14304# Whether we should hardcode library paths into libraries. 14305hardcode_into_libs=$hardcode_into_libs 14306 14307# Flag to hardcode \$libdir into a binary during linking. 14308# This must work even if \$libdir does not exist. 14309hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14310 14311# If ld is used when linking, flag to hardcode \$libdir into 14312# a binary during linking. This must work even if \$libdir does 14313# not exist. 14314hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14315 14316# Whether we need a single -rpath flag with a separated argument. 14317hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14318 14319# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14320# resulting binary. 14321hardcode_direct=$hardcode_direct_CXX 14322 14323# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14324# resulting binary. 14325hardcode_minus_L=$hardcode_minus_L_CXX 14326 14327# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14328# the resulting binary. 14329hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14330 14331# Set to yes if building a shared library automatically hardcodes DIR into the library 14332# and all subsequent libraries and executables linked against it. 14333hardcode_automatic=$hardcode_automatic_CXX 14334 14335# Variables whose values should be saved in libtool wrapper scripts and 14336# restored at relink time. 14337variables_saved_for_relink="$variables_saved_for_relink" 14338 14339# Whether libtool must link a program against all its dependency libraries. 14340link_all_deplibs=$link_all_deplibs_CXX 14341 14342# Compile-time system search path for libraries 14343sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14344 14345# Run-time system search path for libraries 14346sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14347 14348# Fix the shell variable \$srcfile for the compiler. 14349fix_srcfile_path="$fix_srcfile_path_CXX" 14350 14351# Set to yes if exported symbols are required. 14352always_export_symbols=$always_export_symbols_CXX 14353 14354# The commands to list exported symbols. 14355export_symbols_cmds=$lt_export_symbols_cmds_CXX 14356 14357# The commands to extract the exported symbol list from a shared archive. 14358extract_expsyms_cmds=$lt_extract_expsyms_cmds 14359 14360# Symbols that should not be listed in the preloaded symbols. 14361exclude_expsyms=$lt_exclude_expsyms_CXX 14362 14363# Symbols that must always be exported. 14364include_expsyms=$lt_include_expsyms_CXX 14365 14366# ### END LIBTOOL TAG CONFIG: $tagname 14367 14368__EOF__ 14369 14370 14371else 14372 # If there is no Makefile yet, we rely on a make rule to execute 14373 # `config.status --recheck' to rerun these tests and create the 14374 # libtool script then. 14375 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14376 if test -f "$ltmain_in"; then 14377 test -f Makefile && make "$ltmain" 14378 fi 14379fi 14380 14381 14382ac_ext=c 14383ac_cpp='$CPP $CPPFLAGS' 14384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14386ac_compiler_gnu=$ac_cv_c_compiler_gnu 14387 14388CC=$lt_save_CC 14389LDCXX=$LD 14390LD=$lt_save_LD 14391GCC=$lt_save_GCC 14392with_gnu_ldcxx=$with_gnu_ld 14393with_gnu_ld=$lt_save_with_gnu_ld 14394lt_cv_path_LDCXX=$lt_cv_path_LD 14395lt_cv_path_LD=$lt_save_path_LD 14396lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14397lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14398 14399 else 14400 tagname="" 14401 fi 14402 ;; 14403 14404 F77) 14405 if test -n "$F77" && test "X$F77" != "Xno"; then 14406 14407ac_ext=f 14408ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14409ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14410ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14411 14412 14413archive_cmds_need_lc_F77=no 14414allow_undefined_flag_F77= 14415always_export_symbols_F77=no 14416archive_expsym_cmds_F77= 14417export_dynamic_flag_spec_F77= 14418hardcode_direct_F77=no 14419hardcode_libdir_flag_spec_F77= 14420hardcode_libdir_flag_spec_ld_F77= 14421hardcode_libdir_separator_F77= 14422hardcode_minus_L_F77=no 14423hardcode_automatic_F77=no 14424module_cmds_F77= 14425module_expsym_cmds_F77= 14426link_all_deplibs_F77=unknown 14427old_archive_cmds_F77=$old_archive_cmds 14428no_undefined_flag_F77= 14429whole_archive_flag_spec_F77= 14430enable_shared_with_static_runtimes_F77=no 14431 14432# Source file extension for f77 test sources. 14433ac_ext=f 14434 14435# Object file extension for compiled f77 test sources. 14436objext=o 14437objext_F77=$objext 14438 14439# Code to be used in simple compile tests 14440lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14441 14442# Code to be used in simple link tests 14443lt_simple_link_test_code=" program t\n end\n" 14444 14445# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14446 14447# If no C compiler was specified, use CC. 14448LTCC=${LTCC-"$CC"} 14449 14450# Allow CC to be a program name with arguments. 14451compiler=$CC 14452 14453 14454# save warnings/boilerplate of simple test code 14455ac_outfile=conftest.$ac_objext 14456printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14457eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 14458_lt_compiler_boilerplate=`cat conftest.err` 14459$rm conftest* 14460 14461ac_outfile=conftest.$ac_objext 14462printf "$lt_simple_link_test_code" >conftest.$ac_ext 14463eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 14464_lt_linker_boilerplate=`cat conftest.err` 14465$rm conftest* 14466 14467 14468# Allow CC to be a program name with arguments. 14469lt_save_CC="$CC" 14470CC=${F77-"f77"} 14471compiler=$CC 14472compiler_F77=$CC 14473for cc_temp in $compiler""; do 14474 case $cc_temp in 14475 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14476 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14477 \-*) ;; 14478 *) break;; 14479 esac 14480done 14481cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14482 14483 14484echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14485echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 14486echo "$as_me:$LINENO: result: $can_build_shared" >&5 14487echo "${ECHO_T}$can_build_shared" >&6 14488 14489echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14490echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 14491test "$can_build_shared" = "no" && enable_shared=no 14492 14493# On AIX, shared libraries and static libraries use the same namespace, and 14494# are all built from PIC. 14495case "$host_os" in 14496aix3*) 14497 test "$enable_shared" = yes && enable_static=no 14498 if test -n "$RANLIB"; then 14499 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14500 postinstall_cmds='$RANLIB $lib' 14501 fi 14502 ;; 14503aix4* | aix5*) 14504 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14505 test "$enable_shared" = yes && enable_static=no 14506 fi 14507 ;; 14508esac 14509echo "$as_me:$LINENO: result: $enable_shared" >&5 14510echo "${ECHO_T}$enable_shared" >&6 14511 14512echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14513echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 14514# Make sure either enable_shared or enable_static is yes. 14515test "$enable_shared" = yes || enable_static=yes 14516echo "$as_me:$LINENO: result: $enable_static" >&5 14517echo "${ECHO_T}$enable_static" >&6 14518 14519test "$ld_shlibs_F77" = no && can_build_shared=no 14520 14521GCC_F77="$G77" 14522LD_F77="$LD" 14523 14524lt_prog_compiler_wl_F77= 14525lt_prog_compiler_pic_F77= 14526lt_prog_compiler_static_F77= 14527 14528echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14529echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14530 14531 if test "$GCC" = yes; then 14532 lt_prog_compiler_wl_F77='-Wl,' 14533 lt_prog_compiler_static_F77='-static' 14534 14535 case $host_os in 14536 aix*) 14537 # All AIX code is PIC. 14538 if test "$host_cpu" = ia64; then 14539 # AIX 5 now supports IA64 processor 14540 lt_prog_compiler_static_F77='-Bstatic' 14541 fi 14542 ;; 14543 14544 amigaos*) 14545 # FIXME: we need at least 68020 code to build shared libraries, but 14546 # adding the `-m68020' flag to GCC prevents building anything better, 14547 # like `-m68040'. 14548 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14549 ;; 14550 14551 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14552 # PIC is the default for these OSes. 14553 ;; 14554 14555 mingw* | pw32* | os2*) 14556 # This hack is so that the source file can tell whether it is being 14557 # built for inclusion in a dll (and should export symbols for example). 14558 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14559 ;; 14560 14561 darwin* | rhapsody*) 14562 # PIC is the default on this platform 14563 # Common symbols not allowed in MH_DYLIB files 14564 lt_prog_compiler_pic_F77='-fno-common' 14565 ;; 14566 14567 msdosdjgpp*) 14568 # Just because we use GCC doesn't mean we suddenly get shared libraries 14569 # on systems that don't support them. 14570 lt_prog_compiler_can_build_shared_F77=no 14571 enable_shared=no 14572 ;; 14573 14574 sysv4*MP*) 14575 if test -d /usr/nec; then 14576 lt_prog_compiler_pic_F77=-Kconform_pic 14577 fi 14578 ;; 14579 14580 hpux*) 14581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14582 # not for PA HP-UX. 14583 case "$host_cpu" in 14584 hppa*64*|ia64*) 14585 # +Z the default 14586 ;; 14587 *) 14588 lt_prog_compiler_pic_F77='-fPIC' 14589 ;; 14590 esac 14591 ;; 14592 14593 *) 14594 lt_prog_compiler_pic_F77='-fPIC' 14595 ;; 14596 esac 14597 else 14598 # PORTME Check for flag to pass linker flags through the system compiler. 14599 case $host_os in 14600 aix*) 14601 lt_prog_compiler_wl_F77='-Wl,' 14602 if test "$host_cpu" = ia64; then 14603 # AIX 5 now supports IA64 processor 14604 lt_prog_compiler_static_F77='-Bstatic' 14605 else 14606 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14607 fi 14608 ;; 14609 darwin*) 14610 # PIC is the default on this platform 14611 # Common symbols not allowed in MH_DYLIB files 14612 case $cc_basename in 14613 xlc*) 14614 lt_prog_compiler_pic_F77='-qnocommon' 14615 lt_prog_compiler_wl_F77='-Wl,' 14616 ;; 14617 esac 14618 ;; 14619 14620 mingw* | pw32* | os2*) 14621 # This hack is so that the source file can tell whether it is being 14622 # built for inclusion in a dll (and should export symbols for example). 14623 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14624 ;; 14625 14626 hpux9* | hpux10* | hpux11*) 14627 lt_prog_compiler_wl_F77='-Wl,' 14628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14629 # not for PA HP-UX. 14630 case "$host_cpu" in 14631 hppa*64*|ia64*) 14632 # +Z the default 14633 ;; 14634 *) 14635 lt_prog_compiler_pic_F77='+Z' 14636 ;; 14637 esac 14638 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14639 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14640 ;; 14641 14642 irix5* | irix6* | nonstopux*) 14643 lt_prog_compiler_wl_F77='-Wl,' 14644 # PIC (with -KPIC) is the default. 14645 lt_prog_compiler_static_F77='-non_shared' 14646 ;; 14647 14648 newsos6) 14649 lt_prog_compiler_pic_F77='-KPIC' 14650 lt_prog_compiler_static_F77='-Bstatic' 14651 ;; 14652 14653 linux*) 14654 case $cc_basename in 14655 icc* | ecc*) 14656 lt_prog_compiler_wl_F77='-Wl,' 14657 lt_prog_compiler_pic_F77='-KPIC' 14658 lt_prog_compiler_static_F77='-static' 14659 ;; 14660 pgcc* | pgf77* | pgf90*) 14661 # Portland Group compilers (*not* the Pentium gcc compiler, 14662 # which looks to be a dead project) 14663 lt_prog_compiler_wl_F77='-Wl,' 14664 lt_prog_compiler_pic_F77='-fpic' 14665 lt_prog_compiler_static_F77='-static' 14666 ;; 14667 ccc*) 14668 lt_prog_compiler_wl_F77='-Wl,' 14669 # All Alpha code is PIC. 14670 lt_prog_compiler_static_F77='-non_shared' 14671 ;; 14672 esac 14673 ;; 14674 14675 osf3* | osf4* | osf5*) 14676 lt_prog_compiler_wl_F77='-Wl,' 14677 # All OSF/1 code is PIC. 14678 lt_prog_compiler_static_F77='-non_shared' 14679 ;; 14680 14681 sco3.2v5*) 14682 lt_prog_compiler_pic_F77='-Kpic' 14683 lt_prog_compiler_static_F77='-dn' 14684 ;; 14685 14686 solaris*) 14687 lt_prog_compiler_pic_F77='-KPIC' 14688 lt_prog_compiler_static_F77='-Bstatic' 14689 case $cc_basename in 14690 f77* | f90* | f95*) 14691 lt_prog_compiler_wl_F77='-Qoption ld ';; 14692 *) 14693 lt_prog_compiler_wl_F77='-Wl,';; 14694 esac 14695 ;; 14696 14697 sunos4*) 14698 lt_prog_compiler_wl_F77='-Qoption ld ' 14699 lt_prog_compiler_pic_F77='-PIC' 14700 lt_prog_compiler_static_F77='-Bstatic' 14701 ;; 14702 14703 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14704 lt_prog_compiler_wl_F77='-Wl,' 14705 lt_prog_compiler_pic_F77='-KPIC' 14706 lt_prog_compiler_static_F77='-Bstatic' 14707 ;; 14708 14709 sysv4*MP*) 14710 if test -d /usr/nec ;then 14711 lt_prog_compiler_pic_F77='-Kconform_pic' 14712 lt_prog_compiler_static_F77='-Bstatic' 14713 fi 14714 ;; 14715 14716 unicos*) 14717 lt_prog_compiler_wl_F77='-Wl,' 14718 lt_prog_compiler_can_build_shared_F77=no 14719 ;; 14720 14721 uts4*) 14722 lt_prog_compiler_pic_F77='-pic' 14723 lt_prog_compiler_static_F77='-Bstatic' 14724 ;; 14725 14726 *) 14727 lt_prog_compiler_can_build_shared_F77=no 14728 ;; 14729 esac 14730 fi 14731 14732echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14733echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 14734 14735# 14736# Check to make sure the PIC flag actually works. 14737# 14738if test -n "$lt_prog_compiler_pic_F77"; then 14739 14740echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14741echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 14742if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14743 echo $ECHO_N "(cached) $ECHO_C" >&6 14744else 14745 lt_prog_compiler_pic_works_F77=no 14746 ac_outfile=conftest.$ac_objext 14747 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14748 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14749 # Insert the option either (1) after the last *FLAGS variable, or 14750 # (2) before a word containing "conftest.", or (3) at the end. 14751 # Note that $ac_compile itself does not contain backslashes and begins 14752 # with a dollar sign (not a hyphen), so the echo should work correctly. 14753 # The option is referenced via a variable to avoid confusing sed. 14754 lt_compile=`echo "$ac_compile" | $SED \ 14755 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14757 -e 's:$: $lt_compiler_flag:'` 14758 (eval echo "\"\$as_me:14758: $lt_compile\"" >&5) 14759 (eval "$lt_compile" 2>conftest.err) 14760 ac_status=$? 14761 cat conftest.err >&5 14762 echo "$as_me:14762: \$? = $ac_status" >&5 14763 if (exit $ac_status) && test -s "$ac_outfile"; then 14764 # The compiler can only warn and ignore the option if not recognized 14765 # So say no if there are warnings other than the usual output. 14766 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 14767 $SED '/^$/d' conftest.err >conftest.er2 14768 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 14769 lt_prog_compiler_pic_works_F77=yes 14770 fi 14771 fi 14772 $rm conftest* 14773 14774fi 14775echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14776echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 14777 14778if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14779 case $lt_prog_compiler_pic_F77 in 14780 "" | " "*) ;; 14781 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14782 esac 14783else 14784 lt_prog_compiler_pic_F77= 14785 lt_prog_compiler_can_build_shared_F77=no 14786fi 14787 14788fi 14789case "$host_os" in 14790 # For platforms which do not support PIC, -DPIC is meaningless: 14791 *djgpp*) 14792 lt_prog_compiler_pic_F77= 14793 ;; 14794 *) 14795 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14796 ;; 14797esac 14798 14799echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14800echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14801if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14802 echo $ECHO_N "(cached) $ECHO_C" >&6 14803else 14804 lt_cv_prog_compiler_c_o_F77=no 14805 $rm -r conftest 2>/dev/null 14806 mkdir conftest 14807 cd conftest 14808 mkdir out 14809 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14810 14811 lt_compiler_flag="-o out/conftest2.$ac_objext" 14812 # Insert the option either (1) after the last *FLAGS variable, or 14813 # (2) before a word containing "conftest.", or (3) at the end. 14814 # Note that $ac_compile itself does not contain backslashes and begins 14815 # with a dollar sign (not a hyphen), so the echo should work correctly. 14816 lt_compile=`echo "$ac_compile" | $SED \ 14817 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14819 -e 's:$: $lt_compiler_flag:'` 14820 (eval echo "\"\$as_me:14820: $lt_compile\"" >&5) 14821 (eval "$lt_compile" 2>out/conftest.err) 14822 ac_status=$? 14823 cat out/conftest.err >&5 14824 echo "$as_me:14824: \$? = $ac_status" >&5 14825 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14826 then 14827 # The compiler can only warn and ignore the option if not recognized 14828 # So say no if there are warnings 14829 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 14830 $SED '/^$/d' out/conftest.err >out/conftest.er2 14831 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14832 lt_cv_prog_compiler_c_o_F77=yes 14833 fi 14834 fi 14835 chmod u+w . 14836 $rm conftest* 14837 # SGI C++ compiler will create directory out/ii_files/ for 14838 # template instantiation 14839 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14840 $rm out/* && rmdir out 14841 cd .. 14842 rmdir conftest 14843 $rm conftest* 14844 14845fi 14846echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14847echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 14848 14849 14850hard_links="nottested" 14851if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14852 # do not overwrite the value of need_locks provided by the user 14853 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14854echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14855 hard_links=yes 14856 $rm conftest* 14857 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14858 touch conftest.a 14859 ln conftest.a conftest.b 2>&5 || hard_links=no 14860 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14861 echo "$as_me:$LINENO: result: $hard_links" >&5 14862echo "${ECHO_T}$hard_links" >&6 14863 if test "$hard_links" = no; then 14864 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14865echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14866 need_locks=warn 14867 fi 14868else 14869 need_locks=no 14870fi 14871 14872echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14873echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14874 14875 runpath_var= 14876 allow_undefined_flag_F77= 14877 enable_shared_with_static_runtimes_F77=no 14878 archive_cmds_F77= 14879 archive_expsym_cmds_F77= 14880 old_archive_From_new_cmds_F77= 14881 old_archive_from_expsyms_cmds_F77= 14882 export_dynamic_flag_spec_F77= 14883 whole_archive_flag_spec_F77= 14884 thread_safe_flag_spec_F77= 14885 hardcode_libdir_flag_spec_F77= 14886 hardcode_libdir_flag_spec_ld_F77= 14887 hardcode_libdir_separator_F77= 14888 hardcode_direct_F77=no 14889 hardcode_minus_L_F77=no 14890 hardcode_shlibpath_var_F77=unsupported 14891 link_all_deplibs_F77=unknown 14892 hardcode_automatic_F77=no 14893 module_cmds_F77= 14894 module_expsym_cmds_F77= 14895 always_export_symbols_F77=no 14896 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14897 # include_expsyms should be a list of space-separated symbols to be *always* 14898 # included in the symbol list 14899 include_expsyms_F77= 14900 # exclude_expsyms can be an extended regexp of symbols to exclude 14901 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14902 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14903 # as well as any symbol that contains `d'. 14904 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14905 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14906 # platforms (ab)use it in PIC code, but their linkers get confused if 14907 # the symbol is explicitly referenced. Since portable code cannot 14908 # rely on this symbol name, it's probably fine to never include it in 14909 # preloaded symbol tables. 14910 extract_expsyms_cmds= 14911 # Just being paranoid about ensuring that cc_basename is set. 14912 for cc_temp in $compiler""; do 14913 case $cc_temp in 14914 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14915 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14916 \-*) ;; 14917 *) break;; 14918 esac 14919done 14920cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14921 14922 case $host_os in 14923 cygwin* | mingw* | pw32*) 14924 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14925 # When not using gcc, we currently assume that we are using 14926 # Microsoft Visual C++. 14927 if test "$GCC" != yes; then 14928 with_gnu_ld=no 14929 fi 14930 ;; 14931 openbsd*) 14932 with_gnu_ld=no 14933 ;; 14934 esac 14935 14936 ld_shlibs_F77=yes 14937 if test "$with_gnu_ld" = yes; then 14938 # If archive_cmds runs LD, not CC, wlarc should be empty 14939 wlarc='${wl}' 14940 14941 # Set some defaults for GNU ld with shared library support. These 14942 # are reset later if shared libraries are not supported. Putting them 14943 # here allows them to be overridden if necessary. 14944 runpath_var=LD_RUN_PATH 14945 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14946 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14947 # ancient GNU ld didn't support --whole-archive et. al. 14948 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14949 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14950 else 14951 whole_archive_flag_spec_F77= 14952 fi 14953 supports_anon_versioning=no 14954 case `$LD -v 2>/dev/null` in 14955 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14956 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14957 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14958 *\ 2.11.*) ;; # other 2.11 versions 14959 *) supports_anon_versioning=yes ;; 14960 esac 14961 14962 # See if GNU ld supports shared libraries. 14963 case $host_os in 14964 aix3* | aix4* | aix5*) 14965 # On AIX/PPC, the GNU linker is very broken 14966 if test "$host_cpu" != ia64; then 14967 ld_shlibs_F77=no 14968 cat <<EOF 1>&2 14969 14970*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14971*** to be unable to reliably create shared libraries on AIX. 14972*** Therefore, libtool is disabling shared libraries support. If you 14973*** really care for shared libraries, you may want to modify your PATH 14974*** so that a non-GNU linker is found, and then restart. 14975 14976EOF 14977 fi 14978 ;; 14979 14980 amigaos*) 14981 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 14982 hardcode_libdir_flag_spec_F77='-L$libdir' 14983 hardcode_minus_L_F77=yes 14984 14985 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14986 # that the semantics of dynamic libraries on AmigaOS, at least up 14987 # to version 4, is to share data among multiple programs linked 14988 # with the same dynamic library. Since this doesn't match the 14989 # behavior of shared libraries on other platforms, we can't use 14990 # them. 14991 ld_shlibs_F77=no 14992 ;; 14993 14994 beos*) 14995 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14996 allow_undefined_flag_F77=unsupported 14997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14998 # support --undefined. This deserves some investigation. FIXME 14999 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15000 else 15001 ld_shlibs_F77=no 15002 fi 15003 ;; 15004 15005 cygwin* | mingw* | pw32*) 15006 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15007 # as there is no search path for DLLs. 15008 hardcode_libdir_flag_spec_F77='-L$libdir' 15009 allow_undefined_flag_F77=unsupported 15010 always_export_symbols_F77=no 15011 enable_shared_with_static_runtimes_F77=yes 15012 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15013 15014 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15015 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15016 # If the export-symbols file already is a .def file (1st line 15017 # is EXPORTS), use it as is; otherwise, prepend... 15018 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15019 cp $export_symbols $output_objdir/$soname.def; 15020 else 15021 echo EXPORTS > $output_objdir/$soname.def; 15022 cat $export_symbols >> $output_objdir/$soname.def; 15023 fi~ 15024 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15025 else 15026 ld_shlibs_F77=no 15027 fi 15028 ;; 15029 15030 linux*) 15031 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15032 tmp_addflag= 15033 case $cc_basename,$host_cpu in 15034 pgcc*) # Portland Group C compiler 15035 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15036 tmp_addflag=' $pic_flag' 15037 ;; 15038 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers 15039 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15040 tmp_addflag=' $pic_flag -Mnomain' ;; 15041 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15042 tmp_addflag=' -i_dynamic' ;; 15043 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15044 tmp_addflag=' -i_dynamic -nofor_main' ;; 15045 ifc* | ifort*) # Intel Fortran compiler 15046 tmp_addflag=' -nofor_main' ;; 15047 esac 15048 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15049 15050 if test $supports_anon_versioning = yes; then 15051 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15052 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15053 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15054 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15055 fi 15056 else 15057 ld_shlibs_F77=no 15058 fi 15059 ;; 15060 15061 netbsd*) 15062 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15063 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15064 wlarc= 15065 else 15066 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15067 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15068 fi 15069 ;; 15070 15071 solaris* | sysv5*) 15072 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15073 ld_shlibs_F77=no 15074 cat <<EOF 1>&2 15075 15076*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15077*** create shared libraries on Solaris systems. Therefore, libtool 15078*** is disabling shared libraries support. We urge you to upgrade GNU 15079*** binutils to release 2.9.1 or newer. Another option is to modify 15080*** your PATH or compiler configuration so that the native linker is 15081*** used, and then restart. 15082 15083EOF 15084 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15085 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15086 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15087 else 15088 ld_shlibs_F77=no 15089 fi 15090 ;; 15091 15092 sunos4*) 15093 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15094 wlarc= 15095 hardcode_direct_F77=yes 15096 hardcode_shlibpath_var_F77=no 15097 ;; 15098 15099 *) 15100 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15101 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15102 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15103 else 15104 ld_shlibs_F77=no 15105 fi 15106 ;; 15107 esac 15108 15109 if test "$ld_shlibs_F77" = no; then 15110 runpath_var= 15111 hardcode_libdir_flag_spec_F77= 15112 export_dynamic_flag_spec_F77= 15113 whole_archive_flag_spec_F77= 15114 fi 15115 else 15116 # PORTME fill in a description of your system's linker (not GNU ld) 15117 case $host_os in 15118 aix3*) 15119 allow_undefined_flag_F77=unsupported 15120 always_export_symbols_F77=yes 15121 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 15122 # Note: this linker hardcodes the directories in LIBPATH if there 15123 # are no directories specified by -L. 15124 hardcode_minus_L_F77=yes 15125 if test "$GCC" = yes && test -z "$link_static_flag"; then 15126 # Neither direct hardcoding nor static linking is supported with a 15127 # broken collect2. 15128 hardcode_direct_F77=unsupported 15129 fi 15130 ;; 15131 15132 aix4* | aix5*) 15133 if test "$host_cpu" = ia64; then 15134 # On IA64, the linker does run time linking by default, so we don't 15135 # have to do anything special. 15136 aix_use_runtimelinking=no 15137 exp_sym_flag='-Bexport' 15138 no_entry_flag="" 15139 else 15140 # If we're using GNU nm, then we don't want the "-C" option. 15141 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15142 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15143 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15144 else 15145 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15146 fi 15147 aix_use_runtimelinking=no 15148 15149 # Test if we are trying to use run time linking or normal 15150 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15151 # need to do runtime linking. 15152 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15153 for ld_flag in $LDFLAGS; do 15154 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15155 aix_use_runtimelinking=yes 15156 break 15157 fi 15158 done 15159 esac 15160 15161 exp_sym_flag='-bexport' 15162 no_entry_flag='-bnoentry' 15163 fi 15164 15165 # When large executables or shared objects are built, AIX ld can 15166 # have problems creating the table of contents. If linking a library 15167 # or program results in "error TOC overflow" add -mminimal-toc to 15168 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15169 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15170 15171 archive_cmds_F77='' 15172 hardcode_direct_F77=yes 15173 hardcode_libdir_separator_F77=':' 15174 link_all_deplibs_F77=yes 15175 15176 if test "$GCC" = yes; then 15177 case $host_os in aix4.[012]|aix4.[012].*) 15178 # We only want to do this on AIX 4.2 and lower, the check 15179 # below for broken collect2 doesn't work under 4.3+ 15180 collect2name=`${CC} -print-prog-name=collect2` 15181 if test -f "$collect2name" && \ 15182 strings "$collect2name" | grep resolve_lib_name >/dev/null 15183 then 15184 # We have reworked collect2 15185 hardcode_direct_F77=yes 15186 else 15187 # We have old collect2 15188 hardcode_direct_F77=unsupported 15189 # It fails to find uninstalled libraries when the uninstalled 15190 # path is not listed in the libpath. Setting hardcode_minus_L 15191 # to unsupported forces relinking 15192 hardcode_minus_L_F77=yes 15193 hardcode_libdir_flag_spec_F77='-L$libdir' 15194 hardcode_libdir_separator_F77= 15195 fi 15196 esac 15197 shared_flag='-shared' 15198 if test "$aix_use_runtimelinking" = yes; then 15199 shared_flag="$shared_flag "'${wl}-G' 15200 fi 15201 else 15202 # not using gcc 15203 if test "$host_cpu" = ia64; then 15204 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15205 # chokes on -Wl,-G. The following line is correct: 15206 shared_flag='-G' 15207 else 15208 if test "$aix_use_runtimelinking" = yes; then 15209 shared_flag='${wl}-G' 15210 else 15211 shared_flag='${wl}-bM:SRE' 15212 fi 15213 fi 15214 fi 15215 15216 # It seems that -bexpall does not export symbols beginning with 15217 # underscore (_), so it is better to generate a list of symbols to export. 15218 always_export_symbols_F77=yes 15219 if test "$aix_use_runtimelinking" = yes; then 15220 # Warning - without using the other runtime loading flags (-brtl), 15221 # -berok will link without error, but may produce a broken library. 15222 allow_undefined_flag_F77='-berok' 15223 # Determine the default libpath from the value encoded in an empty executable. 15224 cat >conftest.$ac_ext <<_ACEOF 15225 program main 15226 15227 end 15228_ACEOF 15229rm -f conftest.$ac_objext conftest$ac_exeext 15230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15231 (eval $ac_link) 2>conftest.er1 15232 ac_status=$? 15233 grep -v '^ *+' conftest.er1 >conftest.err 15234 rm -f conftest.er1 15235 cat conftest.err >&5 15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15237 (exit $ac_status); } && 15238 { ac_try='test -z "$ac_f77_werror_flag" 15239 || test ! -s conftest.err' 15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15241 (eval $ac_try) 2>&5 15242 ac_status=$? 15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15244 (exit $ac_status); }; } && 15245 { ac_try='test -s conftest$ac_exeext' 15246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15247 (eval $ac_try) 2>&5 15248 ac_status=$? 15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15250 (exit $ac_status); }; }; then 15251 15252aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15253}'` 15254# Check for a 64-bit object if we didn't find anything. 15255if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15256}'`; fi 15257else 15258 echo "$as_me: failed program was:" >&5 15259sed 's/^/| /' conftest.$ac_ext >&5 15260 15261fi 15262rm -f conftest.err conftest.$ac_objext \ 15263 conftest$ac_exeext conftest.$ac_ext 15264if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15265 15266 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15267 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15268 else 15269 if test "$host_cpu" = ia64; then 15270 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15271 allow_undefined_flag_F77="-z nodefs" 15272 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 15273 else 15274 # Determine the default libpath from the value encoded in an empty executable. 15275 cat >conftest.$ac_ext <<_ACEOF 15276 program main 15277 15278 end 15279_ACEOF 15280rm -f conftest.$ac_objext conftest$ac_exeext 15281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15282 (eval $ac_link) 2>conftest.er1 15283 ac_status=$? 15284 grep -v '^ *+' conftest.er1 >conftest.err 15285 rm -f conftest.er1 15286 cat conftest.err >&5 15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15288 (exit $ac_status); } && 15289 { ac_try='test -z "$ac_f77_werror_flag" 15290 || test ! -s conftest.err' 15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15292 (eval $ac_try) 2>&5 15293 ac_status=$? 15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15295 (exit $ac_status); }; } && 15296 { ac_try='test -s conftest$ac_exeext' 15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15298 (eval $ac_try) 2>&5 15299 ac_status=$? 15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15301 (exit $ac_status); }; }; then 15302 15303aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15304}'` 15305# Check for a 64-bit object if we didn't find anything. 15306if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15307}'`; fi 15308else 15309 echo "$as_me: failed program was:" >&5 15310sed 's/^/| /' conftest.$ac_ext >&5 15311 15312fi 15313rm -f conftest.err conftest.$ac_objext \ 15314 conftest$ac_exeext conftest.$ac_ext 15315if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15316 15317 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15318 # Warning - without using the other run time loading flags, 15319 # -berok will link without error, but may produce a broken library. 15320 no_undefined_flag_F77=' ${wl}-bernotok' 15321 allow_undefined_flag_F77=' ${wl}-berok' 15322 # -bexpall does not export symbols beginning with underscore (_) 15323 always_export_symbols_F77=yes 15324 # Exported symbols can be pulled into shared objects from archives 15325 whole_archive_flag_spec_F77=' ' 15326 archive_cmds_need_lc_F77=yes 15327 # This is similar to how AIX traditionally builds it's shared libraries. 15328 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15329 fi 15330 fi 15331 ;; 15332 15333 amigaos*) 15334 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 15335 hardcode_libdir_flag_spec_F77='-L$libdir' 15336 hardcode_minus_L_F77=yes 15337 # see comment about different semantics on the GNU ld section 15338 ld_shlibs_F77=no 15339 ;; 15340 15341 bsdi[45]*) 15342 export_dynamic_flag_spec_F77=-rdynamic 15343 ;; 15344 15345 cygwin* | mingw* | pw32*) 15346 # When not using gcc, we currently assume that we are using 15347 # Microsoft Visual C++. 15348 # hardcode_libdir_flag_spec is actually meaningless, as there is 15349 # no search path for DLLs. 15350 hardcode_libdir_flag_spec_F77=' ' 15351 allow_undefined_flag_F77=unsupported 15352 # Tell ltmain to make .lib files, not .a files. 15353 libext=lib 15354 # Tell ltmain to make .dll files, not .so files. 15355 shrext_cmds=".dll" 15356 # FIXME: Setting linknames here is a bad hack. 15357 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15358 # The linker will automatically build a .lib file if we build a DLL. 15359 old_archive_From_new_cmds_F77='true' 15360 # FIXME: Should let the user specify the lib program. 15361 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15362 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15363 enable_shared_with_static_runtimes_F77=yes 15364 ;; 15365 15366 darwin* | rhapsody*) 15367 case "$host_os" in 15368 rhapsody* | darwin1.[012]) 15369 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15370 ;; 15371 *) # Darwin 1.3 on 15372 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15373 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15374 else 15375 case ${MACOSX_DEPLOYMENT_TARGET} in 15376 10.[012]) 15377 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15378 ;; 15379 10.*) 15380 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15381 ;; 15382 esac 15383 fi 15384 ;; 15385 esac 15386 archive_cmds_need_lc_F77=no 15387 hardcode_direct_F77=no 15388 hardcode_automatic_F77=yes 15389 hardcode_shlibpath_var_F77=unsupported 15390 whole_archive_flag_spec_F77='' 15391 link_all_deplibs_F77=yes 15392 if test "$GCC" = yes ; then 15393 output_verbose_link_cmd='echo' 15394 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15395 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 15397 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15398 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15399 else 15400 case $cc_basename in 15401 xlc*) 15402 output_verbose_link_cmd='echo' 15403 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15404 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15405 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 15406 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15407 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15408 ;; 15409 *) 15410 ld_shlibs_F77=no 15411 ;; 15412 esac 15413 fi 15414 ;; 15415 15416 dgux*) 15417 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15418 hardcode_libdir_flag_spec_F77='-L$libdir' 15419 hardcode_shlibpath_var_F77=no 15420 ;; 15421 15422 freebsd1*) 15423 ld_shlibs_F77=no 15424 ;; 15425 15426 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15427 # support. Future versions do this automatically, but an explicit c++rt0.o 15428 # does not break anything, and helps significantly (at the cost of a little 15429 # extra space). 15430 freebsd2.2*) 15431 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15432 hardcode_libdir_flag_spec_F77='-R$libdir' 15433 hardcode_direct_F77=yes 15434 hardcode_shlibpath_var_F77=no 15435 ;; 15436 15437 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15438 freebsd2*) 15439 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15440 hardcode_direct_F77=yes 15441 hardcode_minus_L_F77=yes 15442 hardcode_shlibpath_var_F77=no 15443 ;; 15444 15445 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15446 freebsd* | kfreebsd*-gnu | dragonfly*) 15447 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15448 hardcode_libdir_flag_spec_F77='-R$libdir' 15449 hardcode_direct_F77=yes 15450 hardcode_shlibpath_var_F77=no 15451 ;; 15452 15453 hpux9*) 15454 if test "$GCC" = yes; then 15455 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15456 else 15457 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15458 fi 15459 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15460 hardcode_libdir_separator_F77=: 15461 hardcode_direct_F77=yes 15462 15463 # hardcode_minus_L: Not really in the search PATH, 15464 # but as the default location of the library. 15465 hardcode_minus_L_F77=yes 15466 export_dynamic_flag_spec_F77='${wl}-E' 15467 ;; 15468 15469 hpux10* | hpux11*) 15470 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15471 case "$host_cpu" in 15472 hppa*64*|ia64*) 15473 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15474 ;; 15475 *) 15476 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15477 ;; 15478 esac 15479 else 15480 case "$host_cpu" in 15481 hppa*64*|ia64*) 15482 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 15483 ;; 15484 *) 15485 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15486 ;; 15487 esac 15488 fi 15489 if test "$with_gnu_ld" = no; then 15490 case "$host_cpu" in 15491 hppa*64*) 15492 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15493 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15494 hardcode_libdir_separator_F77=: 15495 hardcode_direct_F77=no 15496 hardcode_shlibpath_var_F77=no 15497 ;; 15498 ia64*) 15499 hardcode_libdir_flag_spec_F77='-L$libdir' 15500 hardcode_direct_F77=no 15501 hardcode_shlibpath_var_F77=no 15502 15503 # hardcode_minus_L: Not really in the search PATH, 15504 # but as the default location of the library. 15505 hardcode_minus_L_F77=yes 15506 ;; 15507 *) 15508 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15509 hardcode_libdir_separator_F77=: 15510 hardcode_direct_F77=yes 15511 export_dynamic_flag_spec_F77='${wl}-E' 15512 15513 # hardcode_minus_L: Not really in the search PATH, 15514 # but as the default location of the library. 15515 hardcode_minus_L_F77=yes 15516 ;; 15517 esac 15518 fi 15519 ;; 15520 15521 irix5* | irix6* | nonstopux*) 15522 if test "$GCC" = yes; then 15523 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15524 else 15525 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15526 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15527 fi 15528 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15529 hardcode_libdir_separator_F77=: 15530 link_all_deplibs_F77=yes 15531 ;; 15532 15533 netbsd*) 15534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15535 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15536 else 15537 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15538 fi 15539 hardcode_libdir_flag_spec_F77='-R$libdir' 15540 hardcode_direct_F77=yes 15541 hardcode_shlibpath_var_F77=no 15542 ;; 15543 15544 newsos6) 15545 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15546 hardcode_direct_F77=yes 15547 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15548 hardcode_libdir_separator_F77=: 15549 hardcode_shlibpath_var_F77=no 15550 ;; 15551 15552 openbsd*) 15553 hardcode_direct_F77=yes 15554 hardcode_shlibpath_var_F77=no 15555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15556 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15557 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15558 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15559 export_dynamic_flag_spec_F77='${wl}-E' 15560 else 15561 case $host_os in 15562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15563 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15564 hardcode_libdir_flag_spec_F77='-R$libdir' 15565 ;; 15566 *) 15567 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15568 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15569 ;; 15570 esac 15571 fi 15572 ;; 15573 15574 os2*) 15575 hardcode_libdir_flag_spec_F77='-L$libdir' 15576 hardcode_minus_L_F77=yes 15577 allow_undefined_flag_F77=unsupported 15578 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 15579 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15580 ;; 15581 15582 osf3*) 15583 if test "$GCC" = yes; then 15584 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15585 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15586 else 15587 allow_undefined_flag_F77=' -expect_unresolved \*' 15588 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15589 fi 15590 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15591 hardcode_libdir_separator_F77=: 15592 ;; 15593 15594 osf4* | osf5*) # as osf3* with the addition of -msym flag 15595 if test "$GCC" = yes; then 15596 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15597 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15598 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15599 else 15600 allow_undefined_flag_F77=' -expect_unresolved \*' 15601 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15602 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15603 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 15604 15605 # Both c and cxx compiler support -rpath directly 15606 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15607 fi 15608 hardcode_libdir_separator_F77=: 15609 ;; 15610 15611 sco3.2v5*) 15612 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15613 hardcode_shlibpath_var_F77=no 15614 export_dynamic_flag_spec_F77='${wl}-Bexport' 15615 runpath_var=LD_RUN_PATH 15616 hardcode_runpath_var=yes 15617 ;; 15618 15619 solaris*) 15620 no_undefined_flag_F77=' -z text' 15621 if test "$GCC" = yes; then 15622 wlarc='${wl}' 15623 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15624 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15625 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15626 else 15627 wlarc='' 15628 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15629 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15630 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15631 fi 15632 hardcode_libdir_flag_spec_F77='-R$libdir' 15633 hardcode_shlibpath_var_F77=no 15634 case $host_os in 15635 solaris2.[0-5] | solaris2.[0-5].*) ;; 15636 *) 15637 # The compiler driver will combine linker options so we 15638 # cannot just pass the convience library names through 15639 # without $wl, iff we do not link with $LD. 15640 # Luckily, gcc supports the same syntax we need for Sun Studio. 15641 # Supported since Solaris 2.6 (maybe 2.5.1?) 15642 case $wlarc in 15643 '') 15644 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15645 *) 15646 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 15647 esac ;; 15648 esac 15649 link_all_deplibs_F77=yes 15650 ;; 15651 15652 sunos4*) 15653 if test "x$host_vendor" = xsequent; then 15654 # Use $CC to link under sequent, because it throws in some extra .o 15655 # files that make .init and .fini sections work. 15656 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15657 else 15658 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15659 fi 15660 hardcode_libdir_flag_spec_F77='-L$libdir' 15661 hardcode_direct_F77=yes 15662 hardcode_minus_L_F77=yes 15663 hardcode_shlibpath_var_F77=no 15664 ;; 15665 15666 sysv4) 15667 case $host_vendor in 15668 sni) 15669 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15670 hardcode_direct_F77=yes # is this really true??? 15671 ;; 15672 siemens) 15673 ## LD is ld it makes a PLAMLIB 15674 ## CC just makes a GrossModule. 15675 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15676 reload_cmds_F77='$CC -r -o $output$reload_objs' 15677 hardcode_direct_F77=no 15678 ;; 15679 motorola) 15680 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15681 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15682 ;; 15683 esac 15684 runpath_var='LD_RUN_PATH' 15685 hardcode_shlibpath_var_F77=no 15686 ;; 15687 15688 sysv4.3*) 15689 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15690 hardcode_shlibpath_var_F77=no 15691 export_dynamic_flag_spec_F77='-Bexport' 15692 ;; 15693 15694 sysv4*MP*) 15695 if test -d /usr/nec; then 15696 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15697 hardcode_shlibpath_var_F77=no 15698 runpath_var=LD_RUN_PATH 15699 hardcode_runpath_var=yes 15700 ld_shlibs_F77=yes 15701 fi 15702 ;; 15703 15704 sysv4.2uw2*) 15705 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15706 hardcode_direct_F77=yes 15707 hardcode_minus_L_F77=no 15708 hardcode_shlibpath_var_F77=no 15709 hardcode_runpath_var=yes 15710 runpath_var=LD_RUN_PATH 15711 ;; 15712 15713 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 15714 no_undefined_flag_F77='${wl}-z ${wl}text' 15715 if test "$GCC" = yes; then 15716 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15717 else 15718 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15719 fi 15720 runpath_var='LD_RUN_PATH' 15721 hardcode_shlibpath_var_F77=no 15722 ;; 15723 15724 sysv5*) 15725 no_undefined_flag_F77=' -z text' 15726 # $CC -shared without GNU ld will not create a library from C++ 15727 # object files and a static libstdc++, better avoid it by now 15728 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15729 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15730 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15731 hardcode_libdir_flag_spec_F77= 15732 hardcode_shlibpath_var_F77=no 15733 runpath_var='LD_RUN_PATH' 15734 ;; 15735 15736 uts4*) 15737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15738 hardcode_libdir_flag_spec_F77='-L$libdir' 15739 hardcode_shlibpath_var_F77=no 15740 ;; 15741 15742 *) 15743 ld_shlibs_F77=no 15744 ;; 15745 esac 15746 fi 15747 15748echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15749echo "${ECHO_T}$ld_shlibs_F77" >&6 15750test "$ld_shlibs_F77" = no && can_build_shared=no 15751 15752variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15753if test "$GCC" = yes; then 15754 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15755fi 15756 15757# 15758# Do we need to explicitly link libc? 15759# 15760case "x$archive_cmds_need_lc_F77" in 15761x|xyes) 15762 # Assume -lc should be added 15763 archive_cmds_need_lc_F77=yes 15764 15765 if test "$enable_shared" = yes && test "$GCC" = yes; then 15766 case $archive_cmds_F77 in 15767 *'~'*) 15768 # FIXME: we may have to deal with multi-command sequences. 15769 ;; 15770 '$CC '*) 15771 # Test whether the compiler implicitly links with -lc since on some 15772 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15773 # to ld, don't add -lc before -lgcc. 15774 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15775echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15776 $rm conftest* 15777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15778 15779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15780 (eval $ac_compile) 2>&5 15781 ac_status=$? 15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15783 (exit $ac_status); } 2>conftest.err; then 15784 soname=conftest 15785 lib=conftest 15786 libobjs=conftest.$ac_objext 15787 deplibs= 15788 wl=$lt_prog_compiler_wl_F77 15789 compiler_flags=-v 15790 linker_flags=-v 15791 verstring= 15792 output_objdir=. 15793 libname=conftest 15794 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15795 allow_undefined_flag_F77= 15796 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15797 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15798 ac_status=$? 15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15800 (exit $ac_status); } 15801 then 15802 archive_cmds_need_lc_F77=no 15803 else 15804 archive_cmds_need_lc_F77=yes 15805 fi 15806 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15807 else 15808 cat conftest.err 1>&5 15809 fi 15810 $rm conftest* 15811 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15812echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 15813 ;; 15814 esac 15815 fi 15816 ;; 15817esac 15818 15819echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15820echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 15821library_names_spec= 15822libname_spec='lib$name' 15823soname_spec= 15824shrext_cmds=".so" 15825postinstall_cmds= 15826postuninstall_cmds= 15827finish_cmds= 15828finish_eval= 15829shlibpath_var= 15830shlibpath_overrides_runpath=unknown 15831version_type=none 15832dynamic_linker="$host_os ld.so" 15833sys_lib_dlsearch_path_spec="/lib /usr/lib" 15834if test "$GCC" = yes; then 15835 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15836 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15837 # if the path contains ";" then we assume it to be the separator 15838 # otherwise default to the standard path separator (i.e. ":") - it is 15839 # assumed that no part of a normal pathname contains ";" but that should 15840 # okay in the real world where ";" in dirpaths is itself problematic. 15841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15842 else 15843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15844 fi 15845else 15846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15847fi 15848need_lib_prefix=unknown 15849hardcode_into_libs=no 15850 15851# when you set need_version to no, make sure it does not cause -set_version 15852# flags to be left without arguments 15853need_version=unknown 15854 15855case $host_os in 15856aix3*) 15857 version_type=linux 15858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15859 shlibpath_var=LIBPATH 15860 15861 # AIX 3 has no versioning support, so we append a major version to the name. 15862 soname_spec='${libname}${release}${shared_ext}$major' 15863 ;; 15864 15865aix4* | aix5*) 15866 version_type=linux 15867 need_lib_prefix=no 15868 need_version=no 15869 hardcode_into_libs=yes 15870 if test "$host_cpu" = ia64; then 15871 # AIX 5 supports IA64 15872 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15873 shlibpath_var=LD_LIBRARY_PATH 15874 else 15875 # With GCC up to 2.95.x, collect2 would create an import file 15876 # for dependence libraries. The import file would start with 15877 # the line `#! .'. This would cause the generated library to 15878 # depend on `.', always an invalid library. This was fixed in 15879 # development snapshots of GCC prior to 3.0. 15880 case $host_os in 15881 aix4 | aix4.[01] | aix4.[01].*) 15882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15883 echo ' yes ' 15884 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15885 : 15886 else 15887 can_build_shared=no 15888 fi 15889 ;; 15890 esac 15891 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15892 # soname into executable. Probably we can add versioning support to 15893 # collect2, so additional links can be useful in future. 15894 if test "$aix_use_runtimelinking" = yes; then 15895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15896 # instead of lib<name>.a to let people know that these are not 15897 # typical AIX shared libraries. 15898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15899 else 15900 # We preserve .a as extension for shared libraries through AIX4.2 15901 # and later when we are not doing run time linking. 15902 library_names_spec='${libname}${release}.a $libname.a' 15903 soname_spec='${libname}${release}${shared_ext}$major' 15904 fi 15905 shlibpath_var=LIBPATH 15906 fi 15907 ;; 15908 15909amigaos*) 15910 library_names_spec='$libname.ixlibrary $libname.a' 15911 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15912 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 15913 ;; 15914 15915beos*) 15916 library_names_spec='${libname}${shared_ext}' 15917 dynamic_linker="$host_os ld.so" 15918 shlibpath_var=LIBRARY_PATH 15919 ;; 15920 15921bsdi[45]*) 15922 version_type=linux 15923 need_version=no 15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15925 soname_spec='${libname}${release}${shared_ext}$major' 15926 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15927 shlibpath_var=LD_LIBRARY_PATH 15928 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15929 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15930 # the default ld.so.conf also contains /usr/contrib/lib and 15931 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15932 # libtool to hard-code these into programs 15933 ;; 15934 15935cygwin* | mingw* | pw32*) 15936 version_type=windows 15937 shrext_cmds=".dll" 15938 need_version=no 15939 need_lib_prefix=no 15940 15941 case $GCC,$host_os in 15942 yes,cygwin* | yes,mingw* | yes,pw32*) 15943 library_names_spec='$libname.dll.a' 15944 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15945 postinstall_cmds='base_file=`basename \${file}`~ 15946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15947 dldir=$destdir/`dirname \$dlpath`~ 15948 test -d \$dldir || mkdir -p \$dldir~ 15949 $install_prog $dir/$dlname \$dldir/$dlname' 15950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15951 dlpath=$dir/\$dldll~ 15952 $rm \$dlpath' 15953 shlibpath_overrides_runpath=yes 15954 15955 case $host_os in 15956 cygwin*) 15957 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15958 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15959 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15960 ;; 15961 mingw*) 15962 # MinGW DLLs use traditional 'lib' prefix 15963 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15964 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15965 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15966 # It is most probably a Windows format PATH printed by 15967 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15968 # path with ; separators, and with drive letters. We can handle the 15969 # drive letters (cygwin fileutils understands them), so leave them, 15970 # especially as we might pass files found there to a mingw objdump, 15971 # which wouldn't understand a cygwinified path. Ahh. 15972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15973 else 15974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15975 fi 15976 ;; 15977 pw32*) 15978 # pw32 DLLs use 'pw' prefix rather than 'lib' 15979 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15980 ;; 15981 esac 15982 ;; 15983 15984 *) 15985 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15986 ;; 15987 esac 15988 dynamic_linker='Win32 ld.exe' 15989 # FIXME: first we should search . and the directory the executable is in 15990 shlibpath_var=PATH 15991 ;; 15992 15993darwin* | rhapsody*) 15994 dynamic_linker="$host_os dyld" 15995 version_type=darwin 15996 need_lib_prefix=no 15997 need_version=no 15998 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15999 soname_spec='${libname}${release}${major}$shared_ext' 16000 shlibpath_overrides_runpath=yes 16001 shlibpath_var=DYLD_LIBRARY_PATH 16002 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 16003 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16004 if test "$GCC" = yes; then 16005 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 16006 else 16007 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16008 fi 16009 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16010 ;; 16011 16012dgux*) 16013 version_type=linux 16014 need_lib_prefix=no 16015 need_version=no 16016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16017 soname_spec='${libname}${release}${shared_ext}$major' 16018 shlibpath_var=LD_LIBRARY_PATH 16019 ;; 16020 16021freebsd1*) 16022 dynamic_linker=no 16023 ;; 16024 16025kfreebsd*-gnu) 16026 version_type=linux 16027 need_lib_prefix=no 16028 need_version=no 16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16030 soname_spec='${libname}${release}${shared_ext}$major' 16031 shlibpath_var=LD_LIBRARY_PATH 16032 shlibpath_overrides_runpath=no 16033 hardcode_into_libs=yes 16034 dynamic_linker='GNU ld.so' 16035 ;; 16036 16037freebsd* | dragonfly*) 16038 # DragonFly does not have aout. When/if they implement a new 16039 # versioning mechanism, adjust this. 16040 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 16041 version_type=freebsd-$objformat 16042 case $version_type in 16043 freebsd-elf*) 16044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16045 need_version=no 16046 need_lib_prefix=no 16047 ;; 16048 freebsd-*) 16049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16050 need_version=yes 16051 ;; 16052 esac 16053 shlibpath_var=LD_LIBRARY_PATH 16054 case $host_os in 16055 freebsd2*) 16056 shlibpath_overrides_runpath=yes 16057 ;; 16058 freebsd3.[01]* | freebsdelf3.[01]*) 16059 shlibpath_overrides_runpath=yes 16060 hardcode_into_libs=yes 16061 ;; 16062 *) # from 3.2 on 16063 shlibpath_overrides_runpath=no 16064 hardcode_into_libs=yes 16065 ;; 16066 esac 16067 ;; 16068 16069gnu*) 16070 version_type=linux 16071 need_lib_prefix=no 16072 need_version=no 16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16074 soname_spec='${libname}${release}${shared_ext}$major' 16075 shlibpath_var=LD_LIBRARY_PATH 16076 hardcode_into_libs=yes 16077 ;; 16078 16079hpux9* | hpux10* | hpux11*) 16080 # Give a soname corresponding to the major version so that dld.sl refuses to 16081 # link against other versions. 16082 version_type=sunos 16083 need_lib_prefix=no 16084 need_version=no 16085 case "$host_cpu" in 16086 ia64*) 16087 shrext_cmds='.so' 16088 hardcode_into_libs=yes 16089 dynamic_linker="$host_os dld.so" 16090 shlibpath_var=LD_LIBRARY_PATH 16091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16093 soname_spec='${libname}${release}${shared_ext}$major' 16094 if test "X$HPUX_IA64_MODE" = X32; then 16095 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16096 else 16097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16098 fi 16099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16100 ;; 16101 hppa*64*) 16102 shrext_cmds='.sl' 16103 hardcode_into_libs=yes 16104 dynamic_linker="$host_os dld.sl" 16105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16108 soname_spec='${libname}${release}${shared_ext}$major' 16109 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16111 ;; 16112 *) 16113 shrext_cmds='.sl' 16114 dynamic_linker="$host_os dld.sl" 16115 shlibpath_var=SHLIB_PATH 16116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16118 soname_spec='${libname}${release}${shared_ext}$major' 16119 ;; 16120 esac 16121 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16122 postinstall_cmds='chmod 555 $lib' 16123 ;; 16124 16125irix5* | irix6* | nonstopux*) 16126 case $host_os in 16127 nonstopux*) version_type=nonstopux ;; 16128 *) 16129 if test "$lt_cv_prog_gnu_ld" = yes; then 16130 version_type=linux 16131 else 16132 version_type=irix 16133 fi ;; 16134 esac 16135 need_lib_prefix=no 16136 need_version=no 16137 soname_spec='${libname}${release}${shared_ext}$major' 16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16139 case $host_os in 16140 irix5* | nonstopux*) 16141 libsuff= shlibsuff= 16142 ;; 16143 *) 16144 case $LD in # libtool.m4 will add one of these switches to LD 16145 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16146 libsuff= shlibsuff= libmagic=32-bit;; 16147 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16148 libsuff=32 shlibsuff=N32 libmagic=N32;; 16149 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16150 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16151 *) libsuff= shlibsuff= libmagic=never-match;; 16152 esac 16153 ;; 16154 esac 16155 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16156 shlibpath_overrides_runpath=no 16157 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16158 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16159 hardcode_into_libs=yes 16160 ;; 16161 16162# No shared lib support for Linux oldld, aout, or coff. 16163linux*oldld* | linux*aout* | linux*coff*) 16164 dynamic_linker=no 16165 ;; 16166 16167# This must be Linux ELF. 16168linux*) 16169 version_type=linux 16170 need_lib_prefix=no 16171 need_version=no 16172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16173 soname_spec='${libname}${release}${shared_ext}$major' 16174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16175 shlibpath_var=LD_LIBRARY_PATH 16176 shlibpath_overrides_runpath=no 16177 # This implies no fast_install, which is unacceptable. 16178 # Some rework will be needed to allow for fast_install 16179 # before this can be enabled. 16180 hardcode_into_libs=yes 16181 16182 # Append ld.so.conf contents to the search path 16183 if test -f /etc/ld.so.conf; then 16184 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 16185 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16186 fi 16187 16188 # We used to test for /lib/ld.so.1 and disable shared libraries on 16189 # powerpc, because MkLinux only supported shared libraries with the 16190 # GNU dynamic linker. Since this was broken with cross compilers, 16191 # most powerpc-linux boxes support dynamic linking these days and 16192 # people can always --disable-shared, the test was removed, and we 16193 # assume the GNU/Linux dynamic linker is in use. 16194 dynamic_linker='GNU/Linux ld.so' 16195 ;; 16196 16197knetbsd*-gnu) 16198 version_type=linux 16199 need_lib_prefix=no 16200 need_version=no 16201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16202 soname_spec='${libname}${release}${shared_ext}$major' 16203 shlibpath_var=LD_LIBRARY_PATH 16204 shlibpath_overrides_runpath=no 16205 hardcode_into_libs=yes 16206 dynamic_linker='GNU ld.so' 16207 ;; 16208 16209netbsd*) 16210 version_type=sunos 16211 need_lib_prefix=no 16212 need_version=no 16213 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16216 dynamic_linker='NetBSD (a.out) ld.so' 16217 else 16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16219 soname_spec='${libname}${release}${shared_ext}$major' 16220 dynamic_linker='NetBSD ld.elf_so' 16221 fi 16222 shlibpath_var=LD_LIBRARY_PATH 16223 shlibpath_overrides_runpath=yes 16224 hardcode_into_libs=yes 16225 ;; 16226 16227newsos6) 16228 version_type=linux 16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16230 shlibpath_var=LD_LIBRARY_PATH 16231 shlibpath_overrides_runpath=yes 16232 ;; 16233 16234nto-qnx*) 16235 version_type=linux 16236 need_lib_prefix=no 16237 need_version=no 16238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16239 soname_spec='${libname}${release}${shared_ext}$major' 16240 shlibpath_var=LD_LIBRARY_PATH 16241 shlibpath_overrides_runpath=yes 16242 ;; 16243 16244openbsd*) 16245 version_type=sunos 16246 need_lib_prefix=no 16247 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16248 case $host_os in 16249 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16250 *) need_version=no ;; 16251 esac 16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16254 shlibpath_var=LD_LIBRARY_PATH 16255 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16256 case $host_os in 16257 openbsd2.[89] | openbsd2.[89].*) 16258 shlibpath_overrides_runpath=no 16259 ;; 16260 *) 16261 shlibpath_overrides_runpath=yes 16262 ;; 16263 esac 16264 else 16265 shlibpath_overrides_runpath=yes 16266 fi 16267 ;; 16268 16269os2*) 16270 libname_spec='$name' 16271 shrext_cmds=".dll" 16272 need_lib_prefix=no 16273 library_names_spec='$libname${shared_ext} $libname.a' 16274 dynamic_linker='OS/2 ld.exe' 16275 shlibpath_var=LIBPATH 16276 ;; 16277 16278osf3* | osf4* | osf5*) 16279 version_type=osf 16280 need_lib_prefix=no 16281 need_version=no 16282 soname_spec='${libname}${release}${shared_ext}$major' 16283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16284 shlibpath_var=LD_LIBRARY_PATH 16285 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16286 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16287 ;; 16288 16289sco3.2v5*) 16290 version_type=osf 16291 soname_spec='${libname}${release}${shared_ext}$major' 16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16293 shlibpath_var=LD_LIBRARY_PATH 16294 ;; 16295 16296solaris*) 16297 version_type=linux 16298 need_lib_prefix=no 16299 need_version=no 16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16301 soname_spec='${libname}${release}${shared_ext}$major' 16302 shlibpath_var=LD_LIBRARY_PATH 16303 shlibpath_overrides_runpath=yes 16304 hardcode_into_libs=yes 16305 # ldd complains unless libraries are executable 16306 postinstall_cmds='chmod +x $lib' 16307 ;; 16308 16309sunos4*) 16310 version_type=sunos 16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16312 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16313 shlibpath_var=LD_LIBRARY_PATH 16314 shlibpath_overrides_runpath=yes 16315 if test "$with_gnu_ld" = yes; then 16316 need_lib_prefix=no 16317 fi 16318 need_version=yes 16319 ;; 16320 16321sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16322 version_type=linux 16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16324 soname_spec='${libname}${release}${shared_ext}$major' 16325 shlibpath_var=LD_LIBRARY_PATH 16326 case $host_vendor in 16327 sni) 16328 shlibpath_overrides_runpath=no 16329 need_lib_prefix=no 16330 export_dynamic_flag_spec='${wl}-Blargedynsym' 16331 runpath_var=LD_RUN_PATH 16332 ;; 16333 siemens) 16334 need_lib_prefix=no 16335 ;; 16336 motorola) 16337 need_lib_prefix=no 16338 need_version=no 16339 shlibpath_overrides_runpath=no 16340 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16341 ;; 16342 esac 16343 ;; 16344 16345sysv4*MP*) 16346 if test -d /usr/nec ;then 16347 version_type=linux 16348 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16349 soname_spec='$libname${shared_ext}.$major' 16350 shlibpath_var=LD_LIBRARY_PATH 16351 fi 16352 ;; 16353 16354uts4*) 16355 version_type=linux 16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16357 soname_spec='${libname}${release}${shared_ext}$major' 16358 shlibpath_var=LD_LIBRARY_PATH 16359 ;; 16360 16361*) 16362 dynamic_linker=no 16363 ;; 16364esac 16365echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16366echo "${ECHO_T}$dynamic_linker" >&6 16367test "$dynamic_linker" = no && can_build_shared=no 16368 16369echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16370echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16371hardcode_action_F77= 16372if test -n "$hardcode_libdir_flag_spec_F77" || \ 16373 test -n "$runpath_var_F77" || \ 16374 test "X$hardcode_automatic_F77" = "Xyes" ; then 16375 16376 # We can hardcode non-existant directories. 16377 if test "$hardcode_direct_F77" != no && 16378 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16379 # have to relink, otherwise we might link with an installed library 16380 # when we should be linking with a yet-to-be-installed one 16381 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16382 test "$hardcode_minus_L_F77" != no; then 16383 # Linking always hardcodes the temporary library directory. 16384 hardcode_action_F77=relink 16385 else 16386 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16387 hardcode_action_F77=immediate 16388 fi 16389else 16390 # We cannot hardcode anything, or else we can only hardcode existing 16391 # directories. 16392 hardcode_action_F77=unsupported 16393fi 16394echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16395echo "${ECHO_T}$hardcode_action_F77" >&6 16396 16397if test "$hardcode_action_F77" = relink; then 16398 # Fast installation is not supported 16399 enable_fast_install=no 16400elif test "$shlibpath_overrides_runpath" = yes || 16401 test "$enable_shared" = no; then 16402 # Fast installation is not necessary 16403 enable_fast_install=needless 16404fi 16405 16406striplib= 16407old_striplib= 16408echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 16409echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 16410if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 16411 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 16412 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 16413 echo "$as_me:$LINENO: result: yes" >&5 16414echo "${ECHO_T}yes" >&6 16415else 16416# FIXME - insert some real tests, host_os isn't really good enough 16417 case $host_os in 16418 darwin*) 16419 if test -n "$STRIP" ; then 16420 striplib="$STRIP -x" 16421 echo "$as_me:$LINENO: result: yes" >&5 16422echo "${ECHO_T}yes" >&6 16423 else 16424 echo "$as_me:$LINENO: result: no" >&5 16425echo "${ECHO_T}no" >&6 16426fi 16427 ;; 16428 *) 16429 echo "$as_me:$LINENO: result: no" >&5 16430echo "${ECHO_T}no" >&6 16431 ;; 16432 esac 16433fi 16434 16435 16436 16437# The else clause should only fire when bootstrapping the 16438# libtool distribution, otherwise you forgot to ship ltmain.sh 16439# with your package, and you will get complaints that there are 16440# no rules to generate ltmain.sh. 16441if test -f "$ltmain"; then 16442 # See if we are running on zsh, and set the options which allow our commands through 16443 # without removal of \ escapes. 16444 if test -n "${ZSH_VERSION+set}" ; then 16445 setopt NO_GLOB_SUBST 16446 fi 16447 # Now quote all the things that may contain metacharacters while being 16448 # careful not to overquote the AC_SUBSTed values. We take copies of the 16449 # variables and quote the copies for generation of the libtool script. 16450 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 16451 SED SHELL STRIP \ 16452 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16453 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16454 deplibs_check_method reload_flag reload_cmds need_locks \ 16455 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16456 lt_cv_sys_global_symbol_to_c_name_address \ 16457 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16458 old_postinstall_cmds old_postuninstall_cmds \ 16459 compiler_F77 \ 16460 CC_F77 \ 16461 LD_F77 \ 16462 lt_prog_compiler_wl_F77 \ 16463 lt_prog_compiler_pic_F77 \ 16464 lt_prog_compiler_static_F77 \ 16465 lt_prog_compiler_no_builtin_flag_F77 \ 16466 export_dynamic_flag_spec_F77 \ 16467 thread_safe_flag_spec_F77 \ 16468 whole_archive_flag_spec_F77 \ 16469 enable_shared_with_static_runtimes_F77 \ 16470 old_archive_cmds_F77 \ 16471 old_archive_from_new_cmds_F77 \ 16472 predep_objects_F77 \ 16473 postdep_objects_F77 \ 16474 predeps_F77 \ 16475 postdeps_F77 \ 16476 compiler_lib_search_path_F77 \ 16477 archive_cmds_F77 \ 16478 archive_expsym_cmds_F77 \ 16479 postinstall_cmds_F77 \ 16480 postuninstall_cmds_F77 \ 16481 old_archive_from_expsyms_cmds_F77 \ 16482 allow_undefined_flag_F77 \ 16483 no_undefined_flag_F77 \ 16484 export_symbols_cmds_F77 \ 16485 hardcode_libdir_flag_spec_F77 \ 16486 hardcode_libdir_flag_spec_ld_F77 \ 16487 hardcode_libdir_separator_F77 \ 16488 hardcode_automatic_F77 \ 16489 module_cmds_F77 \ 16490 module_expsym_cmds_F77 \ 16491 lt_cv_prog_compiler_c_o_F77 \ 16492 exclude_expsyms_F77 \ 16493 include_expsyms_F77; do 16494 16495 case $var in 16496 old_archive_cmds_F77 | \ 16497 old_archive_from_new_cmds_F77 | \ 16498 archive_cmds_F77 | \ 16499 archive_expsym_cmds_F77 | \ 16500 module_cmds_F77 | \ 16501 module_expsym_cmds_F77 | \ 16502 old_archive_from_expsyms_cmds_F77 | \ 16503 export_symbols_cmds_F77 | \ 16504 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16505 postinstall_cmds | postuninstall_cmds | \ 16506 old_postinstall_cmds | old_postuninstall_cmds | \ 16507 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16508 # Double-quote double-evaled strings. 16509 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16510 ;; 16511 *) 16512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16513 ;; 16514 esac 16515 done 16516 16517 case $lt_echo in 16518 *'\$0 --fallback-echo"') 16519 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16520 ;; 16521 esac 16522 16523cfgfile="$ofile" 16524 16525 cat <<__EOF__ >> "$cfgfile" 16526# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16527 16528# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16529 16530# Shell to use when invoking shell scripts. 16531SHELL=$lt_SHELL 16532 16533# Whether or not to build shared libraries. 16534build_libtool_libs=$enable_shared 16535 16536# Whether or not to build static libraries. 16537build_old_libs=$enable_static 16538 16539# Whether or not to add -lc for building shared libraries. 16540build_libtool_need_lc=$archive_cmds_need_lc_F77 16541 16542# Whether or not to disallow shared libs when runtime libs are static 16543allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16544 16545# Whether or not to optimize for fast installation. 16546fast_install=$enable_fast_install 16547 16548# The host system. 16549host_alias=$host_alias 16550host=$host 16551host_os=$host_os 16552 16553# The build system. 16554build_alias=$build_alias 16555build=$build 16556build_os=$build_os 16557 16558# An echo program that does not interpret backslashes. 16559echo=$lt_echo 16560 16561# The archiver. 16562AR=$lt_AR 16563AR_FLAGS=$lt_AR_FLAGS 16564 16565# A C compiler. 16566LTCC=$lt_LTCC 16567 16568# A language-specific compiler. 16569CC=$lt_compiler_F77 16570 16571# Is the compiler the GNU C compiler? 16572with_gcc=$GCC_F77 16573 16574# An ERE matcher. 16575EGREP=$lt_EGREP 16576 16577# The linker used to build libraries. 16578LD=$lt_LD_F77 16579 16580# Whether we need hard or soft links. 16581LN_S=$lt_LN_S 16582 16583# A BSD-compatible nm program. 16584NM=$lt_NM 16585 16586# A symbol stripping program 16587STRIP=$lt_STRIP 16588 16589# Used to examine libraries when file_magic_cmd begins "file" 16590MAGIC_CMD=$MAGIC_CMD 16591 16592# Used on cygwin: DLL creation program. 16593DLLTOOL="$DLLTOOL" 16594 16595# Used on cygwin: object dumper. 16596OBJDUMP="$OBJDUMP" 16597 16598# Used on cygwin: assembler. 16599AS="$AS" 16600 16601# The name of the directory that contains temporary libtool files. 16602objdir=$objdir 16603 16604# How to create reloadable object files. 16605reload_flag=$lt_reload_flag 16606reload_cmds=$lt_reload_cmds 16607 16608# How to pass a linker flag through the compiler. 16609wl=$lt_lt_prog_compiler_wl_F77 16610 16611# Object file suffix (normally "o"). 16612objext="$ac_objext" 16613 16614# Old archive suffix (normally "a"). 16615libext="$libext" 16616 16617# Shared library suffix (normally ".so"). 16618shrext_cmds='$shrext_cmds' 16619 16620# Executable file suffix (normally ""). 16621exeext="$exeext" 16622 16623# Additional compiler flags for building library objects. 16624pic_flag=$lt_lt_prog_compiler_pic_F77 16625pic_mode=$pic_mode 16626 16627# What is the maximum length of a command? 16628max_cmd_len=$lt_cv_sys_max_cmd_len 16629 16630# Does compiler simultaneously support -c and -o options? 16631compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16632 16633# Must we lock files when doing compilation? 16634need_locks=$lt_need_locks 16635 16636# Do we need the lib prefix for modules? 16637need_lib_prefix=$need_lib_prefix 16638 16639# Do we need a version for libraries? 16640need_version=$need_version 16641 16642# Whether dlopen is supported. 16643dlopen_support=$enable_dlopen 16644 16645# Whether dlopen of programs is supported. 16646dlopen_self=$enable_dlopen_self 16647 16648# Whether dlopen of statically linked programs is supported. 16649dlopen_self_static=$enable_dlopen_self_static 16650 16651# Compiler flag to prevent dynamic linking. 16652link_static_flag=$lt_lt_prog_compiler_static_F77 16653 16654# Compiler flag to turn off builtin functions. 16655no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16656 16657# Compiler flag to allow reflexive dlopens. 16658export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16659 16660# Compiler flag to generate shared objects directly from archives. 16661whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16662 16663# Compiler flag to generate thread-safe objects. 16664thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16665 16666# Library versioning type. 16667version_type=$version_type 16668 16669# Format of library name prefix. 16670libname_spec=$lt_libname_spec 16671 16672# List of archive names. First name is the real one, the rest are links. 16673# The last name is the one that the linker finds with -lNAME. 16674library_names_spec=$lt_library_names_spec 16675 16676# The coded name of the library, if different from the real name. 16677soname_spec=$lt_soname_spec 16678 16679# Commands used to build and install an old-style archive. 16680RANLIB=$lt_RANLIB 16681old_archive_cmds=$lt_old_archive_cmds_F77 16682old_postinstall_cmds=$lt_old_postinstall_cmds 16683old_postuninstall_cmds=$lt_old_postuninstall_cmds 16684 16685# Create an old-style archive from a shared archive. 16686old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16687 16688# Create a temporary old-style archive to link instead of a shared archive. 16689old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16690 16691# Commands used to build and install a shared archive. 16692archive_cmds=$lt_archive_cmds_F77 16693archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16694postinstall_cmds=$lt_postinstall_cmds 16695postuninstall_cmds=$lt_postuninstall_cmds 16696 16697# Commands used to build a loadable module (assumed same as above if empty) 16698module_cmds=$lt_module_cmds_F77 16699module_expsym_cmds=$lt_module_expsym_cmds_F77 16700 16701# Commands to strip libraries. 16702old_striplib=$lt_old_striplib 16703striplib=$lt_striplib 16704 16705# Dependencies to place before the objects being linked to create a 16706# shared library. 16707predep_objects=$lt_predep_objects_F77 16708 16709# Dependencies to place after the objects being linked to create a 16710# shared library. 16711postdep_objects=$lt_postdep_objects_F77 16712 16713# Dependencies to place before the objects being linked to create a 16714# shared library. 16715predeps=$lt_predeps_F77 16716 16717# Dependencies to place after the objects being linked to create a 16718# shared library. 16719postdeps=$lt_postdeps_F77 16720 16721# The library search path used internally by the compiler when linking 16722# a shared library. 16723compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16724 16725# Method to check whether dependent libraries are shared objects. 16726deplibs_check_method=$lt_deplibs_check_method 16727 16728# Command to use when deplibs_check_method == file_magic. 16729file_magic_cmd=$lt_file_magic_cmd 16730 16731# Flag that allows shared libraries with undefined symbols to be built. 16732allow_undefined_flag=$lt_allow_undefined_flag_F77 16733 16734# Flag that forces no undefined symbols. 16735no_undefined_flag=$lt_no_undefined_flag_F77 16736 16737# Commands used to finish a libtool library installation in a directory. 16738finish_cmds=$lt_finish_cmds 16739 16740# Same as above, but a single script fragment to be evaled but not shown. 16741finish_eval=$lt_finish_eval 16742 16743# Take the output of nm and produce a listing of raw symbols and C names. 16744global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16745 16746# Transform the output of nm in a proper C declaration 16747global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16748 16749# Transform the output of nm in a C name address pair 16750global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16751 16752# This is the shared library runtime path variable. 16753runpath_var=$runpath_var 16754 16755# This is the shared library path variable. 16756shlibpath_var=$shlibpath_var 16757 16758# Is shlibpath searched before the hard-coded library search path? 16759shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16760 16761# How to hardcode a shared library path into an executable. 16762hardcode_action=$hardcode_action_F77 16763 16764# Whether we should hardcode library paths into libraries. 16765hardcode_into_libs=$hardcode_into_libs 16766 16767# Flag to hardcode \$libdir into a binary during linking. 16768# This must work even if \$libdir does not exist. 16769hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16770 16771# If ld is used when linking, flag to hardcode \$libdir into 16772# a binary during linking. This must work even if \$libdir does 16773# not exist. 16774hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16775 16776# Whether we need a single -rpath flag with a separated argument. 16777hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16778 16779# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16780# resulting binary. 16781hardcode_direct=$hardcode_direct_F77 16782 16783# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16784# resulting binary. 16785hardcode_minus_L=$hardcode_minus_L_F77 16786 16787# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16788# the resulting binary. 16789hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16790 16791# Set to yes if building a shared library automatically hardcodes DIR into the library 16792# and all subsequent libraries and executables linked against it. 16793hardcode_automatic=$hardcode_automatic_F77 16794 16795# Variables whose values should be saved in libtool wrapper scripts and 16796# restored at relink time. 16797variables_saved_for_relink="$variables_saved_for_relink" 16798 16799# Whether libtool must link a program against all its dependency libraries. 16800link_all_deplibs=$link_all_deplibs_F77 16801 16802# Compile-time system search path for libraries 16803sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16804 16805# Run-time system search path for libraries 16806sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16807 16808# Fix the shell variable \$srcfile for the compiler. 16809fix_srcfile_path="$fix_srcfile_path_F77" 16810 16811# Set to yes if exported symbols are required. 16812always_export_symbols=$always_export_symbols_F77 16813 16814# The commands to list exported symbols. 16815export_symbols_cmds=$lt_export_symbols_cmds_F77 16816 16817# The commands to extract the exported symbol list from a shared archive. 16818extract_expsyms_cmds=$lt_extract_expsyms_cmds 16819 16820# Symbols that should not be listed in the preloaded symbols. 16821exclude_expsyms=$lt_exclude_expsyms_F77 16822 16823# Symbols that must always be exported. 16824include_expsyms=$lt_include_expsyms_F77 16825 16826# ### END LIBTOOL TAG CONFIG: $tagname 16827 16828__EOF__ 16829 16830 16831else 16832 # If there is no Makefile yet, we rely on a make rule to execute 16833 # `config.status --recheck' to rerun these tests and create the 16834 # libtool script then. 16835 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16836 if test -f "$ltmain_in"; then 16837 test -f Makefile && make "$ltmain" 16838 fi 16839fi 16840 16841 16842ac_ext=c 16843ac_cpp='$CPP $CPPFLAGS' 16844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16846ac_compiler_gnu=$ac_cv_c_compiler_gnu 16847 16848CC="$lt_save_CC" 16849 16850 else 16851 tagname="" 16852 fi 16853 ;; 16854 16855 GCJ) 16856 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16857 16858 16859 16860# Source file extension for Java test sources. 16861ac_ext=java 16862 16863# Object file extension for compiled Java test sources. 16864objext=o 16865objext_GCJ=$objext 16866 16867# Code to be used in simple compile tests 16868lt_simple_compile_test_code="class foo {}\n" 16869 16870# Code to be used in simple link tests 16871lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16872 16873# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16874 16875# If no C compiler was specified, use CC. 16876LTCC=${LTCC-"$CC"} 16877 16878# Allow CC to be a program name with arguments. 16879compiler=$CC 16880 16881 16882# save warnings/boilerplate of simple test code 16883ac_outfile=conftest.$ac_objext 16884printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16885eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16886_lt_compiler_boilerplate=`cat conftest.err` 16887$rm conftest* 16888 16889ac_outfile=conftest.$ac_objext 16890printf "$lt_simple_link_test_code" >conftest.$ac_ext 16891eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16892_lt_linker_boilerplate=`cat conftest.err` 16893$rm conftest* 16894 16895 16896# Allow CC to be a program name with arguments. 16897lt_save_CC="$CC" 16898CC=${GCJ-"gcj"} 16899compiler=$CC 16900compiler_GCJ=$CC 16901for cc_temp in $compiler""; do 16902 case $cc_temp in 16903 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16904 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16905 \-*) ;; 16906 *) break;; 16907 esac 16908done 16909cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16910 16911 16912# GCJ did not exist at the time GCC didn't implicitly link libc in. 16913archive_cmds_need_lc_GCJ=no 16914 16915old_archive_cmds_GCJ=$old_archive_cmds 16916 16917## CAVEAT EMPTOR: 16918## There is no encapsulation within the following macros, do not change 16919## the running order or otherwise move them around unless you know exactly 16920## what you are doing... 16921 16922lt_prog_compiler_no_builtin_flag_GCJ= 16923 16924if test "$GCC" = yes; then 16925 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16926 16927 16928echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16929echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16930if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16931 echo $ECHO_N "(cached) $ECHO_C" >&6 16932else 16933 lt_cv_prog_compiler_rtti_exceptions=no 16934 ac_outfile=conftest.$ac_objext 16935 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16936 lt_compiler_flag="-fno-rtti -fno-exceptions" 16937 # Insert the option either (1) after the last *FLAGS variable, or 16938 # (2) before a word containing "conftest.", or (3) at the end. 16939 # Note that $ac_compile itself does not contain backslashes and begins 16940 # with a dollar sign (not a hyphen), so the echo should work correctly. 16941 # The option is referenced via a variable to avoid confusing sed. 16942 lt_compile=`echo "$ac_compile" | $SED \ 16943 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16945 -e 's:$: $lt_compiler_flag:'` 16946 (eval echo "\"\$as_me:16946: $lt_compile\"" >&5) 16947 (eval "$lt_compile" 2>conftest.err) 16948 ac_status=$? 16949 cat conftest.err >&5 16950 echo "$as_me:16950: \$? = $ac_status" >&5 16951 if (exit $ac_status) && test -s "$ac_outfile"; then 16952 # The compiler can only warn and ignore the option if not recognized 16953 # So say no if there are warnings other than the usual output. 16954 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16955 $SED '/^$/d' conftest.err >conftest.er2 16956 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16957 lt_cv_prog_compiler_rtti_exceptions=yes 16958 fi 16959 fi 16960 $rm conftest* 16961 16962fi 16963echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16964echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16965 16966if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16967 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16968else 16969 : 16970fi 16971 16972fi 16973 16974lt_prog_compiler_wl_GCJ= 16975lt_prog_compiler_pic_GCJ= 16976lt_prog_compiler_static_GCJ= 16977 16978echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16979echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16980 16981 if test "$GCC" = yes; then 16982 lt_prog_compiler_wl_GCJ='-Wl,' 16983 lt_prog_compiler_static_GCJ='-static' 16984 16985 case $host_os in 16986 aix*) 16987 # All AIX code is PIC. 16988 if test "$host_cpu" = ia64; then 16989 # AIX 5 now supports IA64 processor 16990 lt_prog_compiler_static_GCJ='-Bstatic' 16991 fi 16992 ;; 16993 16994 amigaos*) 16995 # FIXME: we need at least 68020 code to build shared libraries, but 16996 # adding the `-m68020' flag to GCC prevents building anything better, 16997 # like `-m68040'. 16998 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16999 ;; 17000 17001 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17002 # PIC is the default for these OSes. 17003 ;; 17004 17005 mingw* | pw32* | os2*) 17006 # This hack is so that the source file can tell whether it is being 17007 # built for inclusion in a dll (and should export symbols for example). 17008 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17009 ;; 17010 17011 darwin* | rhapsody*) 17012 # PIC is the default on this platform 17013 # Common symbols not allowed in MH_DYLIB files 17014 lt_prog_compiler_pic_GCJ='-fno-common' 17015 ;; 17016 17017 msdosdjgpp*) 17018 # Just because we use GCC doesn't mean we suddenly get shared libraries 17019 # on systems that don't support them. 17020 lt_prog_compiler_can_build_shared_GCJ=no 17021 enable_shared=no 17022 ;; 17023 17024 sysv4*MP*) 17025 if test -d /usr/nec; then 17026 lt_prog_compiler_pic_GCJ=-Kconform_pic 17027 fi 17028 ;; 17029 17030 hpux*) 17031 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17032 # not for PA HP-UX. 17033 case "$host_cpu" in 17034 hppa*64*|ia64*) 17035 # +Z the default 17036 ;; 17037 *) 17038 lt_prog_compiler_pic_GCJ='-fPIC' 17039 ;; 17040 esac 17041 ;; 17042 17043 *) 17044 lt_prog_compiler_pic_GCJ='-fPIC' 17045 ;; 17046 esac 17047 else 17048 # PORTME Check for flag to pass linker flags through the system compiler. 17049 case $host_os in 17050 aix*) 17051 lt_prog_compiler_wl_GCJ='-Wl,' 17052 if test "$host_cpu" = ia64; then 17053 # AIX 5 now supports IA64 processor 17054 lt_prog_compiler_static_GCJ='-Bstatic' 17055 else 17056 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17057 fi 17058 ;; 17059 darwin*) 17060 # PIC is the default on this platform 17061 # Common symbols not allowed in MH_DYLIB files 17062 case $cc_basename in 17063 xlc*) 17064 lt_prog_compiler_pic_GCJ='-qnocommon' 17065 lt_prog_compiler_wl_GCJ='-Wl,' 17066 ;; 17067 esac 17068 ;; 17069 17070 mingw* | pw32* | os2*) 17071 # This hack is so that the source file can tell whether it is being 17072 # built for inclusion in a dll (and should export symbols for example). 17073 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17074 ;; 17075 17076 hpux9* | hpux10* | hpux11*) 17077 lt_prog_compiler_wl_GCJ='-Wl,' 17078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17079 # not for PA HP-UX. 17080 case "$host_cpu" in 17081 hppa*64*|ia64*) 17082 # +Z the default 17083 ;; 17084 *) 17085 lt_prog_compiler_pic_GCJ='+Z' 17086 ;; 17087 esac 17088 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17089 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17090 ;; 17091 17092 irix5* | irix6* | nonstopux*) 17093 lt_prog_compiler_wl_GCJ='-Wl,' 17094 # PIC (with -KPIC) is the default. 17095 lt_prog_compiler_static_GCJ='-non_shared' 17096 ;; 17097 17098 newsos6) 17099 lt_prog_compiler_pic_GCJ='-KPIC' 17100 lt_prog_compiler_static_GCJ='-Bstatic' 17101 ;; 17102 17103 linux*) 17104 case $cc_basename in 17105 icc* | ecc*) 17106 lt_prog_compiler_wl_GCJ='-Wl,' 17107 lt_prog_compiler_pic_GCJ='-KPIC' 17108 lt_prog_compiler_static_GCJ='-static' 17109 ;; 17110 pgcc* | pgf77* | pgf90*) 17111 # Portland Group compilers (*not* the Pentium gcc compiler, 17112 # which looks to be a dead project) 17113 lt_prog_compiler_wl_GCJ='-Wl,' 17114 lt_prog_compiler_pic_GCJ='-fpic' 17115 lt_prog_compiler_static_GCJ='-static' 17116 ;; 17117 ccc*) 17118 lt_prog_compiler_wl_GCJ='-Wl,' 17119 # All Alpha code is PIC. 17120 lt_prog_compiler_static_GCJ='-non_shared' 17121 ;; 17122 esac 17123 ;; 17124 17125 osf3* | osf4* | osf5*) 17126 lt_prog_compiler_wl_GCJ='-Wl,' 17127 # All OSF/1 code is PIC. 17128 lt_prog_compiler_static_GCJ='-non_shared' 17129 ;; 17130 17131 sco3.2v5*) 17132 lt_prog_compiler_pic_GCJ='-Kpic' 17133 lt_prog_compiler_static_GCJ='-dn' 17134 ;; 17135 17136 solaris*) 17137 lt_prog_compiler_pic_GCJ='-KPIC' 17138 lt_prog_compiler_static_GCJ='-Bstatic' 17139 case $cc_basename in 17140 f77* | f90* | f95*) 17141 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17142 *) 17143 lt_prog_compiler_wl_GCJ='-Wl,';; 17144 esac 17145 ;; 17146 17147 sunos4*) 17148 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17149 lt_prog_compiler_pic_GCJ='-PIC' 17150 lt_prog_compiler_static_GCJ='-Bstatic' 17151 ;; 17152 17153 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17154 lt_prog_compiler_wl_GCJ='-Wl,' 17155 lt_prog_compiler_pic_GCJ='-KPIC' 17156 lt_prog_compiler_static_GCJ='-Bstatic' 17157 ;; 17158 17159 sysv4*MP*) 17160 if test -d /usr/nec ;then 17161 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17162 lt_prog_compiler_static_GCJ='-Bstatic' 17163 fi 17164 ;; 17165 17166 unicos*) 17167 lt_prog_compiler_wl_GCJ='-Wl,' 17168 lt_prog_compiler_can_build_shared_GCJ=no 17169 ;; 17170 17171 uts4*) 17172 lt_prog_compiler_pic_GCJ='-pic' 17173 lt_prog_compiler_static_GCJ='-Bstatic' 17174 ;; 17175 17176 *) 17177 lt_prog_compiler_can_build_shared_GCJ=no 17178 ;; 17179 esac 17180 fi 17181 17182echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17183echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 17184 17185# 17186# Check to make sure the PIC flag actually works. 17187# 17188if test -n "$lt_prog_compiler_pic_GCJ"; then 17189 17190echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17191echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 17192if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17193 echo $ECHO_N "(cached) $ECHO_C" >&6 17194else 17195 lt_prog_compiler_pic_works_GCJ=no 17196 ac_outfile=conftest.$ac_objext 17197 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17198 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17199 # Insert the option either (1) after the last *FLAGS variable, or 17200 # (2) before a word containing "conftest.", or (3) at the end. 17201 # Note that $ac_compile itself does not contain backslashes and begins 17202 # with a dollar sign (not a hyphen), so the echo should work correctly. 17203 # The option is referenced via a variable to avoid confusing sed. 17204 lt_compile=`echo "$ac_compile" | $SED \ 17205 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 17206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17207 -e 's:$: $lt_compiler_flag:'` 17208 (eval echo "\"\$as_me:17208: $lt_compile\"" >&5) 17209 (eval "$lt_compile" 2>conftest.err) 17210 ac_status=$? 17211 cat conftest.err >&5 17212 echo "$as_me:17212: \$? = $ac_status" >&5 17213 if (exit $ac_status) && test -s "$ac_outfile"; then 17214 # The compiler can only warn and ignore the option if not recognized 17215 # So say no if there are warnings other than the usual output. 17216 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 17217 $SED '/^$/d' conftest.err >conftest.er2 17218 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 17219 lt_prog_compiler_pic_works_GCJ=yes 17220 fi 17221 fi 17222 $rm conftest* 17223 17224fi 17225echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17226echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 17227 17228if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17229 case $lt_prog_compiler_pic_GCJ in 17230 "" | " "*) ;; 17231 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17232 esac 17233else 17234 lt_prog_compiler_pic_GCJ= 17235 lt_prog_compiler_can_build_shared_GCJ=no 17236fi 17237 17238fi 17239case "$host_os" in 17240 # For platforms which do not support PIC, -DPIC is meaningless: 17241 *djgpp*) 17242 lt_prog_compiler_pic_GCJ= 17243 ;; 17244 *) 17245 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17246 ;; 17247esac 17248 17249echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17250echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 17251if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17252 echo $ECHO_N "(cached) $ECHO_C" >&6 17253else 17254 lt_cv_prog_compiler_c_o_GCJ=no 17255 $rm -r conftest 2>/dev/null 17256 mkdir conftest 17257 cd conftest 17258 mkdir out 17259 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17260 17261 lt_compiler_flag="-o out/conftest2.$ac_objext" 17262 # Insert the option either (1) after the last *FLAGS variable, or 17263 # (2) before a word containing "conftest.", or (3) at the end. 17264 # Note that $ac_compile itself does not contain backslashes and begins 17265 # with a dollar sign (not a hyphen), so the echo should work correctly. 17266 lt_compile=`echo "$ac_compile" | $SED \ 17267 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 17268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17269 -e 's:$: $lt_compiler_flag:'` 17270 (eval echo "\"\$as_me:17270: $lt_compile\"" >&5) 17271 (eval "$lt_compile" 2>out/conftest.err) 17272 ac_status=$? 17273 cat out/conftest.err >&5 17274 echo "$as_me:17274: \$? = $ac_status" >&5 17275 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17276 then 17277 # The compiler can only warn and ignore the option if not recognized 17278 # So say no if there are warnings 17279 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 17280 $SED '/^$/d' out/conftest.err >out/conftest.er2 17281 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17282 lt_cv_prog_compiler_c_o_GCJ=yes 17283 fi 17284 fi 17285 chmod u+w . 17286 $rm conftest* 17287 # SGI C++ compiler will create directory out/ii_files/ for 17288 # template instantiation 17289 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17290 $rm out/* && rmdir out 17291 cd .. 17292 rmdir conftest 17293 $rm conftest* 17294 17295fi 17296echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17297echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 17298 17299 17300hard_links="nottested" 17301if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17302 # do not overwrite the value of need_locks provided by the user 17303 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17304echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 17305 hard_links=yes 17306 $rm conftest* 17307 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17308 touch conftest.a 17309 ln conftest.a conftest.b 2>&5 || hard_links=no 17310 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17311 echo "$as_me:$LINENO: result: $hard_links" >&5 17312echo "${ECHO_T}$hard_links" >&6 17313 if test "$hard_links" = no; then 17314 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17315echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17316 need_locks=warn 17317 fi 17318else 17319 need_locks=no 17320fi 17321 17322echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17323echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 17324 17325 runpath_var= 17326 allow_undefined_flag_GCJ= 17327 enable_shared_with_static_runtimes_GCJ=no 17328 archive_cmds_GCJ= 17329 archive_expsym_cmds_GCJ= 17330 old_archive_From_new_cmds_GCJ= 17331 old_archive_from_expsyms_cmds_GCJ= 17332 export_dynamic_flag_spec_GCJ= 17333 whole_archive_flag_spec_GCJ= 17334 thread_safe_flag_spec_GCJ= 17335 hardcode_libdir_flag_spec_GCJ= 17336 hardcode_libdir_flag_spec_ld_GCJ= 17337 hardcode_libdir_separator_GCJ= 17338 hardcode_direct_GCJ=no 17339 hardcode_minus_L_GCJ=no 17340 hardcode_shlibpath_var_GCJ=unsupported 17341 link_all_deplibs_GCJ=unknown 17342 hardcode_automatic_GCJ=no 17343 module_cmds_GCJ= 17344 module_expsym_cmds_GCJ= 17345 always_export_symbols_GCJ=no 17346 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17347 # include_expsyms should be a list of space-separated symbols to be *always* 17348 # included in the symbol list 17349 include_expsyms_GCJ= 17350 # exclude_expsyms can be an extended regexp of symbols to exclude 17351 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17352 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17353 # as well as any symbol that contains `d'. 17354 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17355 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17356 # platforms (ab)use it in PIC code, but their linkers get confused if 17357 # the symbol is explicitly referenced. Since portable code cannot 17358 # rely on this symbol name, it's probably fine to never include it in 17359 # preloaded symbol tables. 17360 extract_expsyms_cmds= 17361 # Just being paranoid about ensuring that cc_basename is set. 17362 for cc_temp in $compiler""; do 17363 case $cc_temp in 17364 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17365 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17366 \-*) ;; 17367 *) break;; 17368 esac 17369done 17370cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17371 17372 case $host_os in 17373 cygwin* | mingw* | pw32*) 17374 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17375 # When not using gcc, we currently assume that we are using 17376 # Microsoft Visual C++. 17377 if test "$GCC" != yes; then 17378 with_gnu_ld=no 17379 fi 17380 ;; 17381 openbsd*) 17382 with_gnu_ld=no 17383 ;; 17384 esac 17385 17386 ld_shlibs_GCJ=yes 17387 if test "$with_gnu_ld" = yes; then 17388 # If archive_cmds runs LD, not CC, wlarc should be empty 17389 wlarc='${wl}' 17390 17391 # Set some defaults for GNU ld with shared library support. These 17392 # are reset later if shared libraries are not supported. Putting them 17393 # here allows them to be overridden if necessary. 17394 runpath_var=LD_RUN_PATH 17395 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17396 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17397 # ancient GNU ld didn't support --whole-archive et. al. 17398 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17399 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17400 else 17401 whole_archive_flag_spec_GCJ= 17402 fi 17403 supports_anon_versioning=no 17404 case `$LD -v 2>/dev/null` in 17405 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17406 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17407 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17408 *\ 2.11.*) ;; # other 2.11 versions 17409 *) supports_anon_versioning=yes ;; 17410 esac 17411 17412 # See if GNU ld supports shared libraries. 17413 case $host_os in 17414 aix3* | aix4* | aix5*) 17415 # On AIX/PPC, the GNU linker is very broken 17416 if test "$host_cpu" != ia64; then 17417 ld_shlibs_GCJ=no 17418 cat <<EOF 1>&2 17419 17420*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17421*** to be unable to reliably create shared libraries on AIX. 17422*** Therefore, libtool is disabling shared libraries support. If you 17423*** really care for shared libraries, you may want to modify your PATH 17424*** so that a non-GNU linker is found, and then restart. 17425 17426EOF 17427 fi 17428 ;; 17429 17430 amigaos*) 17431 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 17432 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17433 hardcode_minus_L_GCJ=yes 17434 17435 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17436 # that the semantics of dynamic libraries on AmigaOS, at least up 17437 # to version 4, is to share data among multiple programs linked 17438 # with the same dynamic library. Since this doesn't match the 17439 # behavior of shared libraries on other platforms, we can't use 17440 # them. 17441 ld_shlibs_GCJ=no 17442 ;; 17443 17444 beos*) 17445 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17446 allow_undefined_flag_GCJ=unsupported 17447 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17448 # support --undefined. This deserves some investigation. FIXME 17449 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17450 else 17451 ld_shlibs_GCJ=no 17452 fi 17453 ;; 17454 17455 cygwin* | mingw* | pw32*) 17456 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17457 # as there is no search path for DLLs. 17458 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17459 allow_undefined_flag_GCJ=unsupported 17460 always_export_symbols_GCJ=no 17461 enable_shared_with_static_runtimes_GCJ=yes 17462 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17463 17464 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17465 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 17466 # If the export-symbols file already is a .def file (1st line 17467 # is EXPORTS), use it as is; otherwise, prepend... 17468 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17469 cp $export_symbols $output_objdir/$soname.def; 17470 else 17471 echo EXPORTS > $output_objdir/$soname.def; 17472 cat $export_symbols >> $output_objdir/$soname.def; 17473 fi~ 17474 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 17475 else 17476 ld_shlibs_GCJ=no 17477 fi 17478 ;; 17479 17480 linux*) 17481 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17482 tmp_addflag= 17483 case $cc_basename,$host_cpu in 17484 pgcc*) # Portland Group C compiler 17485 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17486 tmp_addflag=' $pic_flag' 17487 ;; 17488 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers 17489 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17490 tmp_addflag=' $pic_flag -Mnomain' ;; 17491 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17492 tmp_addflag=' -i_dynamic' ;; 17493 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17494 tmp_addflag=' -i_dynamic -nofor_main' ;; 17495 ifc* | ifort*) # Intel Fortran compiler 17496 tmp_addflag=' -nofor_main' ;; 17497 esac 17498 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17499 17500 if test $supports_anon_versioning = yes; then 17501 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17502 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17503 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17504 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17505 fi 17506 else 17507 ld_shlibs_GCJ=no 17508 fi 17509 ;; 17510 17511 netbsd*) 17512 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17513 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17514 wlarc= 17515 else 17516 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17517 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17518 fi 17519 ;; 17520 17521 solaris* | sysv5*) 17522 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17523 ld_shlibs_GCJ=no 17524 cat <<EOF 1>&2 17525 17526*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17527*** create shared libraries on Solaris systems. Therefore, libtool 17528*** is disabling shared libraries support. We urge you to upgrade GNU 17529*** binutils to release 2.9.1 or newer. Another option is to modify 17530*** your PATH or compiler configuration so that the native linker is 17531*** used, and then restart. 17532 17533EOF 17534 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17535 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17536 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17537 else 17538 ld_shlibs_GCJ=no 17539 fi 17540 ;; 17541 17542 sunos4*) 17543 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17544 wlarc= 17545 hardcode_direct_GCJ=yes 17546 hardcode_shlibpath_var_GCJ=no 17547 ;; 17548 17549 *) 17550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17551 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17552 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17553 else 17554 ld_shlibs_GCJ=no 17555 fi 17556 ;; 17557 esac 17558 17559 if test "$ld_shlibs_GCJ" = no; then 17560 runpath_var= 17561 hardcode_libdir_flag_spec_GCJ= 17562 export_dynamic_flag_spec_GCJ= 17563 whole_archive_flag_spec_GCJ= 17564 fi 17565 else 17566 # PORTME fill in a description of your system's linker (not GNU ld) 17567 case $host_os in 17568 aix3*) 17569 allow_undefined_flag_GCJ=unsupported 17570 always_export_symbols_GCJ=yes 17571 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 17572 # Note: this linker hardcodes the directories in LIBPATH if there 17573 # are no directories specified by -L. 17574 hardcode_minus_L_GCJ=yes 17575 if test "$GCC" = yes && test -z "$link_static_flag"; then 17576 # Neither direct hardcoding nor static linking is supported with a 17577 # broken collect2. 17578 hardcode_direct_GCJ=unsupported 17579 fi 17580 ;; 17581 17582 aix4* | aix5*) 17583 if test "$host_cpu" = ia64; then 17584 # On IA64, the linker does run time linking by default, so we don't 17585 # have to do anything special. 17586 aix_use_runtimelinking=no 17587 exp_sym_flag='-Bexport' 17588 no_entry_flag="" 17589 else 17590 # If we're using GNU nm, then we don't want the "-C" option. 17591 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17592 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17593 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17594 else 17595 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17596 fi 17597 aix_use_runtimelinking=no 17598 17599 # Test if we are trying to use run time linking or normal 17600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17601 # need to do runtime linking. 17602 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17603 for ld_flag in $LDFLAGS; do 17604 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17605 aix_use_runtimelinking=yes 17606 break 17607 fi 17608 done 17609 esac 17610 17611 exp_sym_flag='-bexport' 17612 no_entry_flag='-bnoentry' 17613 fi 17614 17615 # When large executables or shared objects are built, AIX ld can 17616 # have problems creating the table of contents. If linking a library 17617 # or program results in "error TOC overflow" add -mminimal-toc to 17618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17620 17621 archive_cmds_GCJ='' 17622 hardcode_direct_GCJ=yes 17623 hardcode_libdir_separator_GCJ=':' 17624 link_all_deplibs_GCJ=yes 17625 17626 if test "$GCC" = yes; then 17627 case $host_os in aix4.[012]|aix4.[012].*) 17628 # We only want to do this on AIX 4.2 and lower, the check 17629 # below for broken collect2 doesn't work under 4.3+ 17630 collect2name=`${CC} -print-prog-name=collect2` 17631 if test -f "$collect2name" && \ 17632 strings "$collect2name" | grep resolve_lib_name >/dev/null 17633 then 17634 # We have reworked collect2 17635 hardcode_direct_GCJ=yes 17636 else 17637 # We have old collect2 17638 hardcode_direct_GCJ=unsupported 17639 # It fails to find uninstalled libraries when the uninstalled 17640 # path is not listed in the libpath. Setting hardcode_minus_L 17641 # to unsupported forces relinking 17642 hardcode_minus_L_GCJ=yes 17643 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17644 hardcode_libdir_separator_GCJ= 17645 fi 17646 esac 17647 shared_flag='-shared' 17648 if test "$aix_use_runtimelinking" = yes; then 17649 shared_flag="$shared_flag "'${wl}-G' 17650 fi 17651 else 17652 # not using gcc 17653 if test "$host_cpu" = ia64; then 17654 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17655 # chokes on -Wl,-G. The following line is correct: 17656 shared_flag='-G' 17657 else 17658 if test "$aix_use_runtimelinking" = yes; then 17659 shared_flag='${wl}-G' 17660 else 17661 shared_flag='${wl}-bM:SRE' 17662 fi 17663 fi 17664 fi 17665 17666 # It seems that -bexpall does not export symbols beginning with 17667 # underscore (_), so it is better to generate a list of symbols to export. 17668 always_export_symbols_GCJ=yes 17669 if test "$aix_use_runtimelinking" = yes; then 17670 # Warning - without using the other runtime loading flags (-brtl), 17671 # -berok will link without error, but may produce a broken library. 17672 allow_undefined_flag_GCJ='-berok' 17673 # Determine the default libpath from the value encoded in an empty executable. 17674 cat >conftest.$ac_ext <<_ACEOF 17675/* confdefs.h. */ 17676_ACEOF 17677cat confdefs.h >>conftest.$ac_ext 17678cat >>conftest.$ac_ext <<_ACEOF 17679/* end confdefs.h. */ 17680 17681int 17682main () 17683{ 17684 17685 ; 17686 return 0; 17687} 17688_ACEOF 17689rm -f conftest.$ac_objext conftest$ac_exeext 17690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17691 (eval $ac_link) 2>conftest.er1 17692 ac_status=$? 17693 grep -v '^ *+' conftest.er1 >conftest.err 17694 rm -f conftest.er1 17695 cat conftest.err >&5 17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17697 (exit $ac_status); } && 17698 { ac_try='test -z "$ac_c_werror_flag" 17699 || test ! -s conftest.err' 17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17701 (eval $ac_try) 2>&5 17702 ac_status=$? 17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17704 (exit $ac_status); }; } && 17705 { ac_try='test -s conftest$ac_exeext' 17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17707 (eval $ac_try) 2>&5 17708 ac_status=$? 17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17710 (exit $ac_status); }; }; then 17711 17712aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17713}'` 17714# Check for a 64-bit object if we didn't find anything. 17715if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17716}'`; fi 17717else 17718 echo "$as_me: failed program was:" >&5 17719sed 's/^/| /' conftest.$ac_ext >&5 17720 17721fi 17722rm -f conftest.err conftest.$ac_objext \ 17723 conftest$ac_exeext conftest.$ac_ext 17724if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17725 17726 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17727 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17728 else 17729 if test "$host_cpu" = ia64; then 17730 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17731 allow_undefined_flag_GCJ="-z nodefs" 17732 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 17733 else 17734 # Determine the default libpath from the value encoded in an empty executable. 17735 cat >conftest.$ac_ext <<_ACEOF 17736/* confdefs.h. */ 17737_ACEOF 17738cat confdefs.h >>conftest.$ac_ext 17739cat >>conftest.$ac_ext <<_ACEOF 17740/* end confdefs.h. */ 17741 17742int 17743main () 17744{ 17745 17746 ; 17747 return 0; 17748} 17749_ACEOF 17750rm -f conftest.$ac_objext conftest$ac_exeext 17751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17752 (eval $ac_link) 2>conftest.er1 17753 ac_status=$? 17754 grep -v '^ *+' conftest.er1 >conftest.err 17755 rm -f conftest.er1 17756 cat conftest.err >&5 17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17758 (exit $ac_status); } && 17759 { ac_try='test -z "$ac_c_werror_flag" 17760 || test ! -s conftest.err' 17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17762 (eval $ac_try) 2>&5 17763 ac_status=$? 17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17765 (exit $ac_status); }; } && 17766 { ac_try='test -s conftest$ac_exeext' 17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17768 (eval $ac_try) 2>&5 17769 ac_status=$? 17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17771 (exit $ac_status); }; }; then 17772 17773aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17774}'` 17775# Check for a 64-bit object if we didn't find anything. 17776if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17777}'`; fi 17778else 17779 echo "$as_me: failed program was:" >&5 17780sed 's/^/| /' conftest.$ac_ext >&5 17781 17782fi 17783rm -f conftest.err conftest.$ac_objext \ 17784 conftest$ac_exeext conftest.$ac_ext 17785if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17786 17787 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17788 # Warning - without using the other run time loading flags, 17789 # -berok will link without error, but may produce a broken library. 17790 no_undefined_flag_GCJ=' ${wl}-bernotok' 17791 allow_undefined_flag_GCJ=' ${wl}-berok' 17792 # -bexpall does not export symbols beginning with underscore (_) 17793 always_export_symbols_GCJ=yes 17794 # Exported symbols can be pulled into shared objects from archives 17795 whole_archive_flag_spec_GCJ=' ' 17796 archive_cmds_need_lc_GCJ=yes 17797 # This is similar to how AIX traditionally builds it's shared libraries. 17798 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 17799 fi 17800 fi 17801 ;; 17802 17803 amigaos*) 17804 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 17805 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17806 hardcode_minus_L_GCJ=yes 17807 # see comment about different semantics on the GNU ld section 17808 ld_shlibs_GCJ=no 17809 ;; 17810 17811 bsdi[45]*) 17812 export_dynamic_flag_spec_GCJ=-rdynamic 17813 ;; 17814 17815 cygwin* | mingw* | pw32*) 17816 # When not using gcc, we currently assume that we are using 17817 # Microsoft Visual C++. 17818 # hardcode_libdir_flag_spec is actually meaningless, as there is 17819 # no search path for DLLs. 17820 hardcode_libdir_flag_spec_GCJ=' ' 17821 allow_undefined_flag_GCJ=unsupported 17822 # Tell ltmain to make .lib files, not .a files. 17823 libext=lib 17824 # Tell ltmain to make .dll files, not .so files. 17825 shrext_cmds=".dll" 17826 # FIXME: Setting linknames here is a bad hack. 17827 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17828 # The linker will automatically build a .lib file if we build a DLL. 17829 old_archive_From_new_cmds_GCJ='true' 17830 # FIXME: Should let the user specify the lib program. 17831 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17832 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17833 enable_shared_with_static_runtimes_GCJ=yes 17834 ;; 17835 17836 darwin* | rhapsody*) 17837 case "$host_os" in 17838 rhapsody* | darwin1.[012]) 17839 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17840 ;; 17841 *) # Darwin 1.3 on 17842 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17843 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17844 else 17845 case ${MACOSX_DEPLOYMENT_TARGET} in 17846 10.[012]) 17847 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17848 ;; 17849 10.*) 17850 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17851 ;; 17852 esac 17853 fi 17854 ;; 17855 esac 17856 archive_cmds_need_lc_GCJ=no 17857 hardcode_direct_GCJ=no 17858 hardcode_automatic_GCJ=yes 17859 hardcode_shlibpath_var_GCJ=unsupported 17860 whole_archive_flag_spec_GCJ='' 17861 link_all_deplibs_GCJ=yes 17862 if test "$GCC" = yes ; then 17863 output_verbose_link_cmd='echo' 17864 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17865 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17866 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 17867 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17868 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17869 else 17870 case $cc_basename in 17871 xlc*) 17872 output_verbose_link_cmd='echo' 17873 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17874 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17875 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 17876 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17877 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17878 ;; 17879 *) 17880 ld_shlibs_GCJ=no 17881 ;; 17882 esac 17883 fi 17884 ;; 17885 17886 dgux*) 17887 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17888 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17889 hardcode_shlibpath_var_GCJ=no 17890 ;; 17891 17892 freebsd1*) 17893 ld_shlibs_GCJ=no 17894 ;; 17895 17896 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17897 # support. Future versions do this automatically, but an explicit c++rt0.o 17898 # does not break anything, and helps significantly (at the cost of a little 17899 # extra space). 17900 freebsd2.2*) 17901 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17902 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17903 hardcode_direct_GCJ=yes 17904 hardcode_shlibpath_var_GCJ=no 17905 ;; 17906 17907 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17908 freebsd2*) 17909 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17910 hardcode_direct_GCJ=yes 17911 hardcode_minus_L_GCJ=yes 17912 hardcode_shlibpath_var_GCJ=no 17913 ;; 17914 17915 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17916 freebsd* | kfreebsd*-gnu | dragonfly*) 17917 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17918 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17919 hardcode_direct_GCJ=yes 17920 hardcode_shlibpath_var_GCJ=no 17921 ;; 17922 17923 hpux9*) 17924 if test "$GCC" = yes; then 17925 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17926 else 17927 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17928 fi 17929 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17930 hardcode_libdir_separator_GCJ=: 17931 hardcode_direct_GCJ=yes 17932 17933 # hardcode_minus_L: Not really in the search PATH, 17934 # but as the default location of the library. 17935 hardcode_minus_L_GCJ=yes 17936 export_dynamic_flag_spec_GCJ='${wl}-E' 17937 ;; 17938 17939 hpux10* | hpux11*) 17940 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17941 case "$host_cpu" in 17942 hppa*64*|ia64*) 17943 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17944 ;; 17945 *) 17946 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17947 ;; 17948 esac 17949 else 17950 case "$host_cpu" in 17951 hppa*64*|ia64*) 17952 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17953 ;; 17954 *) 17955 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17956 ;; 17957 esac 17958 fi 17959 if test "$with_gnu_ld" = no; then 17960 case "$host_cpu" in 17961 hppa*64*) 17962 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17963 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17964 hardcode_libdir_separator_GCJ=: 17965 hardcode_direct_GCJ=no 17966 hardcode_shlibpath_var_GCJ=no 17967 ;; 17968 ia64*) 17969 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17970 hardcode_direct_GCJ=no 17971 hardcode_shlibpath_var_GCJ=no 17972 17973 # hardcode_minus_L: Not really in the search PATH, 17974 # but as the default location of the library. 17975 hardcode_minus_L_GCJ=yes 17976 ;; 17977 *) 17978 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17979 hardcode_libdir_separator_GCJ=: 17980 hardcode_direct_GCJ=yes 17981 export_dynamic_flag_spec_GCJ='${wl}-E' 17982 17983 # hardcode_minus_L: Not really in the search PATH, 17984 # but as the default location of the library. 17985 hardcode_minus_L_GCJ=yes 17986 ;; 17987 esac 17988 fi 17989 ;; 17990 17991 irix5* | irix6* | nonstopux*) 17992 if test "$GCC" = yes; then 17993 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17994 else 17995 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17996 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17997 fi 17998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17999 hardcode_libdir_separator_GCJ=: 18000 link_all_deplibs_GCJ=yes 18001 ;; 18002 18003 netbsd*) 18004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18005 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18006 else 18007 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18008 fi 18009 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18010 hardcode_direct_GCJ=yes 18011 hardcode_shlibpath_var_GCJ=no 18012 ;; 18013 18014 newsos6) 18015 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18016 hardcode_direct_GCJ=yes 18017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18018 hardcode_libdir_separator_GCJ=: 18019 hardcode_shlibpath_var_GCJ=no 18020 ;; 18021 18022 openbsd*) 18023 hardcode_direct_GCJ=yes 18024 hardcode_shlibpath_var_GCJ=no 18025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18026 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18027 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18029 export_dynamic_flag_spec_GCJ='${wl}-E' 18030 else 18031 case $host_os in 18032 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18033 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18034 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18035 ;; 18036 *) 18037 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18038 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18039 ;; 18040 esac 18041 fi 18042 ;; 18043 18044 os2*) 18045 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18046 hardcode_minus_L_GCJ=yes 18047 allow_undefined_flag_GCJ=unsupported 18048 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 18049 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18050 ;; 18051 18052 osf3*) 18053 if test "$GCC" = yes; then 18054 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18055 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18056 else 18057 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18058 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18059 fi 18060 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18061 hardcode_libdir_separator_GCJ=: 18062 ;; 18063 18064 osf4* | osf5*) # as osf3* with the addition of -msym flag 18065 if test "$GCC" = yes; then 18066 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18067 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18068 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18069 else 18070 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18071 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18072 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 18073 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 18074 18075 # Both c and cxx compiler support -rpath directly 18076 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18077 fi 18078 hardcode_libdir_separator_GCJ=: 18079 ;; 18080 18081 sco3.2v5*) 18082 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18083 hardcode_shlibpath_var_GCJ=no 18084 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18085 runpath_var=LD_RUN_PATH 18086 hardcode_runpath_var=yes 18087 ;; 18088 18089 solaris*) 18090 no_undefined_flag_GCJ=' -z text' 18091 if test "$GCC" = yes; then 18092 wlarc='${wl}' 18093 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18094 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18095 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18096 else 18097 wlarc='' 18098 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18099 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18100 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18101 fi 18102 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18103 hardcode_shlibpath_var_GCJ=no 18104 case $host_os in 18105 solaris2.[0-5] | solaris2.[0-5].*) ;; 18106 *) 18107 # The compiler driver will combine linker options so we 18108 # cannot just pass the convience library names through 18109 # without $wl, iff we do not link with $LD. 18110 # Luckily, gcc supports the same syntax we need for Sun Studio. 18111 # Supported since Solaris 2.6 (maybe 2.5.1?) 18112 case $wlarc in 18113 '') 18114 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18115 *) 18116 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 18117 esac ;; 18118 esac 18119 link_all_deplibs_GCJ=yes 18120 ;; 18121 18122 sunos4*) 18123 if test "x$host_vendor" = xsequent; then 18124 # Use $CC to link under sequent, because it throws in some extra .o 18125 # files that make .init and .fini sections work. 18126 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18127 else 18128 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18129 fi 18130 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18131 hardcode_direct_GCJ=yes 18132 hardcode_minus_L_GCJ=yes 18133 hardcode_shlibpath_var_GCJ=no 18134 ;; 18135 18136 sysv4) 18137 case $host_vendor in 18138 sni) 18139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18140 hardcode_direct_GCJ=yes # is this really true??? 18141 ;; 18142 siemens) 18143 ## LD is ld it makes a PLAMLIB 18144 ## CC just makes a GrossModule. 18145 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18146 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18147 hardcode_direct_GCJ=no 18148 ;; 18149 motorola) 18150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18151 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18152 ;; 18153 esac 18154 runpath_var='LD_RUN_PATH' 18155 hardcode_shlibpath_var_GCJ=no 18156 ;; 18157 18158 sysv4.3*) 18159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18160 hardcode_shlibpath_var_GCJ=no 18161 export_dynamic_flag_spec_GCJ='-Bexport' 18162 ;; 18163 18164 sysv4*MP*) 18165 if test -d /usr/nec; then 18166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18167 hardcode_shlibpath_var_GCJ=no 18168 runpath_var=LD_RUN_PATH 18169 hardcode_runpath_var=yes 18170 ld_shlibs_GCJ=yes 18171 fi 18172 ;; 18173 18174 sysv4.2uw2*) 18175 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18176 hardcode_direct_GCJ=yes 18177 hardcode_minus_L_GCJ=no 18178 hardcode_shlibpath_var_GCJ=no 18179 hardcode_runpath_var=yes 18180 runpath_var=LD_RUN_PATH 18181 ;; 18182 18183 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 18184 no_undefined_flag_GCJ='${wl}-z ${wl}text' 18185 if test "$GCC" = yes; then 18186 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18187 else 18188 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18189 fi 18190 runpath_var='LD_RUN_PATH' 18191 hardcode_shlibpath_var_GCJ=no 18192 ;; 18193 18194 sysv5*) 18195 no_undefined_flag_GCJ=' -z text' 18196 # $CC -shared without GNU ld will not create a library from C++ 18197 # object files and a static libstdc++, better avoid it by now 18198 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18199 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18200 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18201 hardcode_libdir_flag_spec_GCJ= 18202 hardcode_shlibpath_var_GCJ=no 18203 runpath_var='LD_RUN_PATH' 18204 ;; 18205 18206 uts4*) 18207 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18208 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18209 hardcode_shlibpath_var_GCJ=no 18210 ;; 18211 18212 *) 18213 ld_shlibs_GCJ=no 18214 ;; 18215 esac 18216 fi 18217 18218echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18219echo "${ECHO_T}$ld_shlibs_GCJ" >&6 18220test "$ld_shlibs_GCJ" = no && can_build_shared=no 18221 18222variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18223if test "$GCC" = yes; then 18224 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18225fi 18226 18227# 18228# Do we need to explicitly link libc? 18229# 18230case "x$archive_cmds_need_lc_GCJ" in 18231x|xyes) 18232 # Assume -lc should be added 18233 archive_cmds_need_lc_GCJ=yes 18234 18235 if test "$enable_shared" = yes && test "$GCC" = yes; then 18236 case $archive_cmds_GCJ in 18237 *'~'*) 18238 # FIXME: we may have to deal with multi-command sequences. 18239 ;; 18240 '$CC '*) 18241 # Test whether the compiler implicitly links with -lc since on some 18242 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18243 # to ld, don't add -lc before -lgcc. 18244 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18245echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 18246 $rm conftest* 18247 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18248 18249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18250 (eval $ac_compile) 2>&5 18251 ac_status=$? 18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18253 (exit $ac_status); } 2>conftest.err; then 18254 soname=conftest 18255 lib=conftest 18256 libobjs=conftest.$ac_objext 18257 deplibs= 18258 wl=$lt_prog_compiler_wl_GCJ 18259 compiler_flags=-v 18260 linker_flags=-v 18261 verstring= 18262 output_objdir=. 18263 libname=conftest 18264 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18265 allow_undefined_flag_GCJ= 18266 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18267 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18268 ac_status=$? 18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18270 (exit $ac_status); } 18271 then 18272 archive_cmds_need_lc_GCJ=no 18273 else 18274 archive_cmds_need_lc_GCJ=yes 18275 fi 18276 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18277 else 18278 cat conftest.err 1>&5 18279 fi 18280 $rm conftest* 18281 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18282echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 18283 ;; 18284 esac 18285 fi 18286 ;; 18287esac 18288 18289echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18290echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 18291library_names_spec= 18292libname_spec='lib$name' 18293soname_spec= 18294shrext_cmds=".so" 18295postinstall_cmds= 18296postuninstall_cmds= 18297finish_cmds= 18298finish_eval= 18299shlibpath_var= 18300shlibpath_overrides_runpath=unknown 18301version_type=none 18302dynamic_linker="$host_os ld.so" 18303sys_lib_dlsearch_path_spec="/lib /usr/lib" 18304if test "$GCC" = yes; then 18305 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18306 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18307 # if the path contains ";" then we assume it to be the separator 18308 # otherwise default to the standard path separator (i.e. ":") - it is 18309 # assumed that no part of a normal pathname contains ";" but that should 18310 # okay in the real world where ";" in dirpaths is itself problematic. 18311 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18312 else 18313 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18314 fi 18315else 18316 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18317fi 18318need_lib_prefix=unknown 18319hardcode_into_libs=no 18320 18321# when you set need_version to no, make sure it does not cause -set_version 18322# flags to be left without arguments 18323need_version=unknown 18324 18325case $host_os in 18326aix3*) 18327 version_type=linux 18328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18329 shlibpath_var=LIBPATH 18330 18331 # AIX 3 has no versioning support, so we append a major version to the name. 18332 soname_spec='${libname}${release}${shared_ext}$major' 18333 ;; 18334 18335aix4* | aix5*) 18336 version_type=linux 18337 need_lib_prefix=no 18338 need_version=no 18339 hardcode_into_libs=yes 18340 if test "$host_cpu" = ia64; then 18341 # AIX 5 supports IA64 18342 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18343 shlibpath_var=LD_LIBRARY_PATH 18344 else 18345 # With GCC up to 2.95.x, collect2 would create an import file 18346 # for dependence libraries. The import file would start with 18347 # the line `#! .'. This would cause the generated library to 18348 # depend on `.', always an invalid library. This was fixed in 18349 # development snapshots of GCC prior to 3.0. 18350 case $host_os in 18351 aix4 | aix4.[01] | aix4.[01].*) 18352 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18353 echo ' yes ' 18354 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18355 : 18356 else 18357 can_build_shared=no 18358 fi 18359 ;; 18360 esac 18361 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18362 # soname into executable. Probably we can add versioning support to 18363 # collect2, so additional links can be useful in future. 18364 if test "$aix_use_runtimelinking" = yes; then 18365 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18366 # instead of lib<name>.a to let people know that these are not 18367 # typical AIX shared libraries. 18368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18369 else 18370 # We preserve .a as extension for shared libraries through AIX4.2 18371 # and later when we are not doing run time linking. 18372 library_names_spec='${libname}${release}.a $libname.a' 18373 soname_spec='${libname}${release}${shared_ext}$major' 18374 fi 18375 shlibpath_var=LIBPATH 18376 fi 18377 ;; 18378 18379amigaos*) 18380 library_names_spec='$libname.ixlibrary $libname.a' 18381 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18382 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 18383 ;; 18384 18385beos*) 18386 library_names_spec='${libname}${shared_ext}' 18387 dynamic_linker="$host_os ld.so" 18388 shlibpath_var=LIBRARY_PATH 18389 ;; 18390 18391bsdi[45]*) 18392 version_type=linux 18393 need_version=no 18394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18395 soname_spec='${libname}${release}${shared_ext}$major' 18396 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18397 shlibpath_var=LD_LIBRARY_PATH 18398 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18399 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18400 # the default ld.so.conf also contains /usr/contrib/lib and 18401 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18402 # libtool to hard-code these into programs 18403 ;; 18404 18405cygwin* | mingw* | pw32*) 18406 version_type=windows 18407 shrext_cmds=".dll" 18408 need_version=no 18409 need_lib_prefix=no 18410 18411 case $GCC,$host_os in 18412 yes,cygwin* | yes,mingw* | yes,pw32*) 18413 library_names_spec='$libname.dll.a' 18414 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18415 postinstall_cmds='base_file=`basename \${file}`~ 18416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18417 dldir=$destdir/`dirname \$dlpath`~ 18418 test -d \$dldir || mkdir -p \$dldir~ 18419 $install_prog $dir/$dlname \$dldir/$dlname' 18420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18421 dlpath=$dir/\$dldll~ 18422 $rm \$dlpath' 18423 shlibpath_overrides_runpath=yes 18424 18425 case $host_os in 18426 cygwin*) 18427 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18429 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18430 ;; 18431 mingw*) 18432 # MinGW DLLs use traditional 'lib' prefix 18433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18434 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18435 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18436 # It is most probably a Windows format PATH printed by 18437 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18438 # path with ; separators, and with drive letters. We can handle the 18439 # drive letters (cygwin fileutils understands them), so leave them, 18440 # especially as we might pass files found there to a mingw objdump, 18441 # which wouldn't understand a cygwinified path. Ahh. 18442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18443 else 18444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18445 fi 18446 ;; 18447 pw32*) 18448 # pw32 DLLs use 'pw' prefix rather than 'lib' 18449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18450 ;; 18451 esac 18452 ;; 18453 18454 *) 18455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18456 ;; 18457 esac 18458 dynamic_linker='Win32 ld.exe' 18459 # FIXME: first we should search . and the directory the executable is in 18460 shlibpath_var=PATH 18461 ;; 18462 18463darwin* | rhapsody*) 18464 dynamic_linker="$host_os dyld" 18465 version_type=darwin 18466 need_lib_prefix=no 18467 need_version=no 18468 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18469 soname_spec='${libname}${release}${major}$shared_ext' 18470 shlibpath_overrides_runpath=yes 18471 shlibpath_var=DYLD_LIBRARY_PATH 18472 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 18473 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18474 if test "$GCC" = yes; then 18475 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18476 else 18477 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18478 fi 18479 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18480 ;; 18481 18482dgux*) 18483 version_type=linux 18484 need_lib_prefix=no 18485 need_version=no 18486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18487 soname_spec='${libname}${release}${shared_ext}$major' 18488 shlibpath_var=LD_LIBRARY_PATH 18489 ;; 18490 18491freebsd1*) 18492 dynamic_linker=no 18493 ;; 18494 18495kfreebsd*-gnu) 18496 version_type=linux 18497 need_lib_prefix=no 18498 need_version=no 18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18500 soname_spec='${libname}${release}${shared_ext}$major' 18501 shlibpath_var=LD_LIBRARY_PATH 18502 shlibpath_overrides_runpath=no 18503 hardcode_into_libs=yes 18504 dynamic_linker='GNU ld.so' 18505 ;; 18506 18507freebsd* | dragonfly*) 18508 # DragonFly does not have aout. When/if they implement a new 18509 # versioning mechanism, adjust this. 18510 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 18511 version_type=freebsd-$objformat 18512 case $version_type in 18513 freebsd-elf*) 18514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18515 need_version=no 18516 need_lib_prefix=no 18517 ;; 18518 freebsd-*) 18519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18520 need_version=yes 18521 ;; 18522 esac 18523 shlibpath_var=LD_LIBRARY_PATH 18524 case $host_os in 18525 freebsd2*) 18526 shlibpath_overrides_runpath=yes 18527 ;; 18528 freebsd3.[01]* | freebsdelf3.[01]*) 18529 shlibpath_overrides_runpath=yes 18530 hardcode_into_libs=yes 18531 ;; 18532 *) # from 3.2 on 18533 shlibpath_overrides_runpath=no 18534 hardcode_into_libs=yes 18535 ;; 18536 esac 18537 ;; 18538 18539gnu*) 18540 version_type=linux 18541 need_lib_prefix=no 18542 need_version=no 18543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18544 soname_spec='${libname}${release}${shared_ext}$major' 18545 shlibpath_var=LD_LIBRARY_PATH 18546 hardcode_into_libs=yes 18547 ;; 18548 18549hpux9* | hpux10* | hpux11*) 18550 # Give a soname corresponding to the major version so that dld.sl refuses to 18551 # link against other versions. 18552 version_type=sunos 18553 need_lib_prefix=no 18554 need_version=no 18555 case "$host_cpu" in 18556 ia64*) 18557 shrext_cmds='.so' 18558 hardcode_into_libs=yes 18559 dynamic_linker="$host_os dld.so" 18560 shlibpath_var=LD_LIBRARY_PATH 18561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18563 soname_spec='${libname}${release}${shared_ext}$major' 18564 if test "X$HPUX_IA64_MODE" = X32; then 18565 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18566 else 18567 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18568 fi 18569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18570 ;; 18571 hppa*64*) 18572 shrext_cmds='.sl' 18573 hardcode_into_libs=yes 18574 dynamic_linker="$host_os dld.sl" 18575 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18578 soname_spec='${libname}${release}${shared_ext}$major' 18579 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18581 ;; 18582 *) 18583 shrext_cmds='.sl' 18584 dynamic_linker="$host_os dld.sl" 18585 shlibpath_var=SHLIB_PATH 18586 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18588 soname_spec='${libname}${release}${shared_ext}$major' 18589 ;; 18590 esac 18591 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18592 postinstall_cmds='chmod 555 $lib' 18593 ;; 18594 18595irix5* | irix6* | nonstopux*) 18596 case $host_os in 18597 nonstopux*) version_type=nonstopux ;; 18598 *) 18599 if test "$lt_cv_prog_gnu_ld" = yes; then 18600 version_type=linux 18601 else 18602 version_type=irix 18603 fi ;; 18604 esac 18605 need_lib_prefix=no 18606 need_version=no 18607 soname_spec='${libname}${release}${shared_ext}$major' 18608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18609 case $host_os in 18610 irix5* | nonstopux*) 18611 libsuff= shlibsuff= 18612 ;; 18613 *) 18614 case $LD in # libtool.m4 will add one of these switches to LD 18615 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18616 libsuff= shlibsuff= libmagic=32-bit;; 18617 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18618 libsuff=32 shlibsuff=N32 libmagic=N32;; 18619 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18620 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18621 *) libsuff= shlibsuff= libmagic=never-match;; 18622 esac 18623 ;; 18624 esac 18625 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18626 shlibpath_overrides_runpath=no 18627 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18628 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18629 hardcode_into_libs=yes 18630 ;; 18631 18632# No shared lib support for Linux oldld, aout, or coff. 18633linux*oldld* | linux*aout* | linux*coff*) 18634 dynamic_linker=no 18635 ;; 18636 18637# This must be Linux ELF. 18638linux*) 18639 version_type=linux 18640 need_lib_prefix=no 18641 need_version=no 18642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18643 soname_spec='${libname}${release}${shared_ext}$major' 18644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18645 shlibpath_var=LD_LIBRARY_PATH 18646 shlibpath_overrides_runpath=no 18647 # This implies no fast_install, which is unacceptable. 18648 # Some rework will be needed to allow for fast_install 18649 # before this can be enabled. 18650 hardcode_into_libs=yes 18651 18652 # Append ld.so.conf contents to the search path 18653 if test -f /etc/ld.so.conf; then 18654 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18655 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18656 fi 18657 18658 # We used to test for /lib/ld.so.1 and disable shared libraries on 18659 # powerpc, because MkLinux only supported shared libraries with the 18660 # GNU dynamic linker. Since this was broken with cross compilers, 18661 # most powerpc-linux boxes support dynamic linking these days and 18662 # people can always --disable-shared, the test was removed, and we 18663 # assume the GNU/Linux dynamic linker is in use. 18664 dynamic_linker='GNU/Linux ld.so' 18665 ;; 18666 18667knetbsd*-gnu) 18668 version_type=linux 18669 need_lib_prefix=no 18670 need_version=no 18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18672 soname_spec='${libname}${release}${shared_ext}$major' 18673 shlibpath_var=LD_LIBRARY_PATH 18674 shlibpath_overrides_runpath=no 18675 hardcode_into_libs=yes 18676 dynamic_linker='GNU ld.so' 18677 ;; 18678 18679netbsd*) 18680 version_type=sunos 18681 need_lib_prefix=no 18682 need_version=no 18683 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18686 dynamic_linker='NetBSD (a.out) ld.so' 18687 else 18688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18689 soname_spec='${libname}${release}${shared_ext}$major' 18690 dynamic_linker='NetBSD ld.elf_so' 18691 fi 18692 shlibpath_var=LD_LIBRARY_PATH 18693 shlibpath_overrides_runpath=yes 18694 hardcode_into_libs=yes 18695 ;; 18696 18697newsos6) 18698 version_type=linux 18699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18700 shlibpath_var=LD_LIBRARY_PATH 18701 shlibpath_overrides_runpath=yes 18702 ;; 18703 18704nto-qnx*) 18705 version_type=linux 18706 need_lib_prefix=no 18707 need_version=no 18708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18709 soname_spec='${libname}${release}${shared_ext}$major' 18710 shlibpath_var=LD_LIBRARY_PATH 18711 shlibpath_overrides_runpath=yes 18712 ;; 18713 18714openbsd*) 18715 version_type=sunos 18716 need_lib_prefix=no 18717 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18718 case $host_os in 18719 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18720 *) need_version=no ;; 18721 esac 18722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18724 shlibpath_var=LD_LIBRARY_PATH 18725 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18726 case $host_os in 18727 openbsd2.[89] | openbsd2.[89].*) 18728 shlibpath_overrides_runpath=no 18729 ;; 18730 *) 18731 shlibpath_overrides_runpath=yes 18732 ;; 18733 esac 18734 else 18735 shlibpath_overrides_runpath=yes 18736 fi 18737 ;; 18738 18739os2*) 18740 libname_spec='$name' 18741 shrext_cmds=".dll" 18742 need_lib_prefix=no 18743 library_names_spec='$libname${shared_ext} $libname.a' 18744 dynamic_linker='OS/2 ld.exe' 18745 shlibpath_var=LIBPATH 18746 ;; 18747 18748osf3* | osf4* | osf5*) 18749 version_type=osf 18750 need_lib_prefix=no 18751 need_version=no 18752 soname_spec='${libname}${release}${shared_ext}$major' 18753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18754 shlibpath_var=LD_LIBRARY_PATH 18755 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18756 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18757 ;; 18758 18759sco3.2v5*) 18760 version_type=osf 18761 soname_spec='${libname}${release}${shared_ext}$major' 18762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18763 shlibpath_var=LD_LIBRARY_PATH 18764 ;; 18765 18766solaris*) 18767 version_type=linux 18768 need_lib_prefix=no 18769 need_version=no 18770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18771 soname_spec='${libname}${release}${shared_ext}$major' 18772 shlibpath_var=LD_LIBRARY_PATH 18773 shlibpath_overrides_runpath=yes 18774 hardcode_into_libs=yes 18775 # ldd complains unless libraries are executable 18776 postinstall_cmds='chmod +x $lib' 18777 ;; 18778 18779sunos4*) 18780 version_type=sunos 18781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18782 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18783 shlibpath_var=LD_LIBRARY_PATH 18784 shlibpath_overrides_runpath=yes 18785 if test "$with_gnu_ld" = yes; then 18786 need_lib_prefix=no 18787 fi 18788 need_version=yes 18789 ;; 18790 18791sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18792 version_type=linux 18793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18794 soname_spec='${libname}${release}${shared_ext}$major' 18795 shlibpath_var=LD_LIBRARY_PATH 18796 case $host_vendor in 18797 sni) 18798 shlibpath_overrides_runpath=no 18799 need_lib_prefix=no 18800 export_dynamic_flag_spec='${wl}-Blargedynsym' 18801 runpath_var=LD_RUN_PATH 18802 ;; 18803 siemens) 18804 need_lib_prefix=no 18805 ;; 18806 motorola) 18807 need_lib_prefix=no 18808 need_version=no 18809 shlibpath_overrides_runpath=no 18810 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18811 ;; 18812 esac 18813 ;; 18814 18815sysv4*MP*) 18816 if test -d /usr/nec ;then 18817 version_type=linux 18818 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18819 soname_spec='$libname${shared_ext}.$major' 18820 shlibpath_var=LD_LIBRARY_PATH 18821 fi 18822 ;; 18823 18824uts4*) 18825 version_type=linux 18826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18827 soname_spec='${libname}${release}${shared_ext}$major' 18828 shlibpath_var=LD_LIBRARY_PATH 18829 ;; 18830 18831*) 18832 dynamic_linker=no 18833 ;; 18834esac 18835echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18836echo "${ECHO_T}$dynamic_linker" >&6 18837test "$dynamic_linker" = no && can_build_shared=no 18838 18839echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18840echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18841hardcode_action_GCJ= 18842if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18843 test -n "$runpath_var_GCJ" || \ 18844 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18845 18846 # We can hardcode non-existant directories. 18847 if test "$hardcode_direct_GCJ" != no && 18848 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18849 # have to relink, otherwise we might link with an installed library 18850 # when we should be linking with a yet-to-be-installed one 18851 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18852 test "$hardcode_minus_L_GCJ" != no; then 18853 # Linking always hardcodes the temporary library directory. 18854 hardcode_action_GCJ=relink 18855 else 18856 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18857 hardcode_action_GCJ=immediate 18858 fi 18859else 18860 # We cannot hardcode anything, or else we can only hardcode existing 18861 # directories. 18862 hardcode_action_GCJ=unsupported 18863fi 18864echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18865echo "${ECHO_T}$hardcode_action_GCJ" >&6 18866 18867if test "$hardcode_action_GCJ" = relink; then 18868 # Fast installation is not supported 18869 enable_fast_install=no 18870elif test "$shlibpath_overrides_runpath" = yes || 18871 test "$enable_shared" = no; then 18872 # Fast installation is not necessary 18873 enable_fast_install=needless 18874fi 18875 18876striplib= 18877old_striplib= 18878echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 18879echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 18880if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 18881 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18882 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18883 echo "$as_me:$LINENO: result: yes" >&5 18884echo "${ECHO_T}yes" >&6 18885else 18886# FIXME - insert some real tests, host_os isn't really good enough 18887 case $host_os in 18888 darwin*) 18889 if test -n "$STRIP" ; then 18890 striplib="$STRIP -x" 18891 echo "$as_me:$LINENO: result: yes" >&5 18892echo "${ECHO_T}yes" >&6 18893 else 18894 echo "$as_me:$LINENO: result: no" >&5 18895echo "${ECHO_T}no" >&6 18896fi 18897 ;; 18898 *) 18899 echo "$as_me:$LINENO: result: no" >&5 18900echo "${ECHO_T}no" >&6 18901 ;; 18902 esac 18903fi 18904 18905if test "x$enable_dlopen" != xyes; then 18906 enable_dlopen=unknown 18907 enable_dlopen_self=unknown 18908 enable_dlopen_self_static=unknown 18909else 18910 lt_cv_dlopen=no 18911 lt_cv_dlopen_libs= 18912 18913 case $host_os in 18914 beos*) 18915 lt_cv_dlopen="load_add_on" 18916 lt_cv_dlopen_libs= 18917 lt_cv_dlopen_self=yes 18918 ;; 18919 18920 mingw* | pw32*) 18921 lt_cv_dlopen="LoadLibrary" 18922 lt_cv_dlopen_libs= 18923 ;; 18924 18925 cygwin*) 18926 lt_cv_dlopen="dlopen" 18927 lt_cv_dlopen_libs= 18928 ;; 18929 18930 darwin*) 18931 # if libdl is installed we need to link against it 18932 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18933echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18934if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18935 echo $ECHO_N "(cached) $ECHO_C" >&6 18936else 18937 ac_check_lib_save_LIBS=$LIBS 18938LIBS="-ldl $LIBS" 18939cat >conftest.$ac_ext <<_ACEOF 18940/* confdefs.h. */ 18941_ACEOF 18942cat confdefs.h >>conftest.$ac_ext 18943cat >>conftest.$ac_ext <<_ACEOF 18944/* end confdefs.h. */ 18945 18946/* Override any gcc2 internal prototype to avoid an error. */ 18947#ifdef __cplusplus 18948extern "C" 18949#endif 18950/* We use char because int might match the return type of a gcc2 18951 builtin and then its argument prototype would still apply. */ 18952char dlopen (); 18953int 18954main () 18955{ 18956dlopen (); 18957 ; 18958 return 0; 18959} 18960_ACEOF 18961rm -f conftest.$ac_objext conftest$ac_exeext 18962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18963 (eval $ac_link) 2>conftest.er1 18964 ac_status=$? 18965 grep -v '^ *+' conftest.er1 >conftest.err 18966 rm -f conftest.er1 18967 cat conftest.err >&5 18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18969 (exit $ac_status); } && 18970 { ac_try='test -z "$ac_c_werror_flag" 18971 || test ! -s conftest.err' 18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18973 (eval $ac_try) 2>&5 18974 ac_status=$? 18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18976 (exit $ac_status); }; } && 18977 { ac_try='test -s conftest$ac_exeext' 18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18979 (eval $ac_try) 2>&5 18980 ac_status=$? 18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18982 (exit $ac_status); }; }; then 18983 ac_cv_lib_dl_dlopen=yes 18984else 18985 echo "$as_me: failed program was:" >&5 18986sed 's/^/| /' conftest.$ac_ext >&5 18987 18988ac_cv_lib_dl_dlopen=no 18989fi 18990rm -f conftest.err conftest.$ac_objext \ 18991 conftest$ac_exeext conftest.$ac_ext 18992LIBS=$ac_check_lib_save_LIBS 18993fi 18994echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18995echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18996if test $ac_cv_lib_dl_dlopen = yes; then 18997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18998else 18999 19000 lt_cv_dlopen="dyld" 19001 lt_cv_dlopen_libs= 19002 lt_cv_dlopen_self=yes 19003 19004fi 19005 19006 ;; 19007 19008 *) 19009 echo "$as_me:$LINENO: checking for shl_load" >&5 19010echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 19011if test "${ac_cv_func_shl_load+set}" = set; then 19012 echo $ECHO_N "(cached) $ECHO_C" >&6 19013else 19014 cat >conftest.$ac_ext <<_ACEOF 19015/* confdefs.h. */ 19016_ACEOF 19017cat confdefs.h >>conftest.$ac_ext 19018cat >>conftest.$ac_ext <<_ACEOF 19019/* end confdefs.h. */ 19020/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 19021 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19022#define shl_load innocuous_shl_load 19023 19024/* System header to define __stub macros and hopefully few prototypes, 19025 which can conflict with char shl_load (); below. 19026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19027 <limits.h> exists even on freestanding compilers. */ 19028 19029#ifdef __STDC__ 19030# include <limits.h> 19031#else 19032# include <assert.h> 19033#endif 19034 19035#undef shl_load 19036 19037/* Override any gcc2 internal prototype to avoid an error. */ 19038#ifdef __cplusplus 19039extern "C" 19040{ 19041#endif 19042/* We use char because int might match the return type of a gcc2 19043 builtin and then its argument prototype would still apply. */ 19044char shl_load (); 19045/* The GNU C library defines this for functions which it implements 19046 to always fail with ENOSYS. Some functions are actually named 19047 something starting with __ and the normal name is an alias. */ 19048#if defined (__stub_shl_load) || defined (__stub___shl_load) 19049choke me 19050#else 19051char (*f) () = shl_load; 19052#endif 19053#ifdef __cplusplus 19054} 19055#endif 19056 19057int 19058main () 19059{ 19060return f != shl_load; 19061 ; 19062 return 0; 19063} 19064_ACEOF 19065rm -f conftest.$ac_objext conftest$ac_exeext 19066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19067 (eval $ac_link) 2>conftest.er1 19068 ac_status=$? 19069 grep -v '^ *+' conftest.er1 >conftest.err 19070 rm -f conftest.er1 19071 cat conftest.err >&5 19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19073 (exit $ac_status); } && 19074 { ac_try='test -z "$ac_c_werror_flag" 19075 || test ! -s conftest.err' 19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19077 (eval $ac_try) 2>&5 19078 ac_status=$? 19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19080 (exit $ac_status); }; } && 19081 { ac_try='test -s conftest$ac_exeext' 19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19083 (eval $ac_try) 2>&5 19084 ac_status=$? 19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19086 (exit $ac_status); }; }; then 19087 ac_cv_func_shl_load=yes 19088else 19089 echo "$as_me: failed program was:" >&5 19090sed 's/^/| /' conftest.$ac_ext >&5 19091 19092ac_cv_func_shl_load=no 19093fi 19094rm -f conftest.err conftest.$ac_objext \ 19095 conftest$ac_exeext conftest.$ac_ext 19096fi 19097echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 19098echo "${ECHO_T}$ac_cv_func_shl_load" >&6 19099if test $ac_cv_func_shl_load = yes; then 19100 lt_cv_dlopen="shl_load" 19101else 19102 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 19103echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 19104if test "${ac_cv_lib_dld_shl_load+set}" = set; then 19105 echo $ECHO_N "(cached) $ECHO_C" >&6 19106else 19107 ac_check_lib_save_LIBS=$LIBS 19108LIBS="-ldld $LIBS" 19109cat >conftest.$ac_ext <<_ACEOF 19110/* confdefs.h. */ 19111_ACEOF 19112cat confdefs.h >>conftest.$ac_ext 19113cat >>conftest.$ac_ext <<_ACEOF 19114/* end confdefs.h. */ 19115 19116/* Override any gcc2 internal prototype to avoid an error. */ 19117#ifdef __cplusplus 19118extern "C" 19119#endif 19120/* We use char because int might match the return type of a gcc2 19121 builtin and then its argument prototype would still apply. */ 19122char shl_load (); 19123int 19124main () 19125{ 19126shl_load (); 19127 ; 19128 return 0; 19129} 19130_ACEOF 19131rm -f conftest.$ac_objext conftest$ac_exeext 19132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19133 (eval $ac_link) 2>conftest.er1 19134 ac_status=$? 19135 grep -v '^ *+' conftest.er1 >conftest.err 19136 rm -f conftest.er1 19137 cat conftest.err >&5 19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19139 (exit $ac_status); } && 19140 { ac_try='test -z "$ac_c_werror_flag" 19141 || test ! -s conftest.err' 19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19143 (eval $ac_try) 2>&5 19144 ac_status=$? 19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19146 (exit $ac_status); }; } && 19147 { ac_try='test -s conftest$ac_exeext' 19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19149 (eval $ac_try) 2>&5 19150 ac_status=$? 19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19152 (exit $ac_status); }; }; then 19153 ac_cv_lib_dld_shl_load=yes 19154else 19155 echo "$as_me: failed program was:" >&5 19156sed 's/^/| /' conftest.$ac_ext >&5 19157 19158ac_cv_lib_dld_shl_load=no 19159fi 19160rm -f conftest.err conftest.$ac_objext \ 19161 conftest$ac_exeext conftest.$ac_ext 19162LIBS=$ac_check_lib_save_LIBS 19163fi 19164echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 19165echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 19166if test $ac_cv_lib_dld_shl_load = yes; then 19167 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 19168else 19169 echo "$as_me:$LINENO: checking for dlopen" >&5 19170echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 19171if test "${ac_cv_func_dlopen+set}" = set; then 19172 echo $ECHO_N "(cached) $ECHO_C" >&6 19173else 19174 cat >conftest.$ac_ext <<_ACEOF 19175/* confdefs.h. */ 19176_ACEOF 19177cat confdefs.h >>conftest.$ac_ext 19178cat >>conftest.$ac_ext <<_ACEOF 19179/* end confdefs.h. */ 19180/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 19181 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19182#define dlopen innocuous_dlopen 19183 19184/* System header to define __stub macros and hopefully few prototypes, 19185 which can conflict with char dlopen (); below. 19186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19187 <limits.h> exists even on freestanding compilers. */ 19188 19189#ifdef __STDC__ 19190# include <limits.h> 19191#else 19192# include <assert.h> 19193#endif 19194 19195#undef dlopen 19196 19197/* Override any gcc2 internal prototype to avoid an error. */ 19198#ifdef __cplusplus 19199extern "C" 19200{ 19201#endif 19202/* We use char because int might match the return type of a gcc2 19203 builtin and then its argument prototype would still apply. */ 19204char dlopen (); 19205/* The GNU C library defines this for functions which it implements 19206 to always fail with ENOSYS. Some functions are actually named 19207 something starting with __ and the normal name is an alias. */ 19208#if defined (__stub_dlopen) || defined (__stub___dlopen) 19209choke me 19210#else 19211char (*f) () = dlopen; 19212#endif 19213#ifdef __cplusplus 19214} 19215#endif 19216 19217int 19218main () 19219{ 19220return f != dlopen; 19221 ; 19222 return 0; 19223} 19224_ACEOF 19225rm -f conftest.$ac_objext conftest$ac_exeext 19226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19227 (eval $ac_link) 2>conftest.er1 19228 ac_status=$? 19229 grep -v '^ *+' conftest.er1 >conftest.err 19230 rm -f conftest.er1 19231 cat conftest.err >&5 19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19233 (exit $ac_status); } && 19234 { ac_try='test -z "$ac_c_werror_flag" 19235 || test ! -s conftest.err' 19236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19237 (eval $ac_try) 2>&5 19238 ac_status=$? 19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19240 (exit $ac_status); }; } && 19241 { ac_try='test -s conftest$ac_exeext' 19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19243 (eval $ac_try) 2>&5 19244 ac_status=$? 19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19246 (exit $ac_status); }; }; then 19247 ac_cv_func_dlopen=yes 19248else 19249 echo "$as_me: failed program was:" >&5 19250sed 's/^/| /' conftest.$ac_ext >&5 19251 19252ac_cv_func_dlopen=no 19253fi 19254rm -f conftest.err conftest.$ac_objext \ 19255 conftest$ac_exeext conftest.$ac_ext 19256fi 19257echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 19258echo "${ECHO_T}$ac_cv_func_dlopen" >&6 19259if test $ac_cv_func_dlopen = yes; then 19260 lt_cv_dlopen="dlopen" 19261else 19262 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 19263echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 19264if test "${ac_cv_lib_dl_dlopen+set}" = set; then 19265 echo $ECHO_N "(cached) $ECHO_C" >&6 19266else 19267 ac_check_lib_save_LIBS=$LIBS 19268LIBS="-ldl $LIBS" 19269cat >conftest.$ac_ext <<_ACEOF 19270/* confdefs.h. */ 19271_ACEOF 19272cat confdefs.h >>conftest.$ac_ext 19273cat >>conftest.$ac_ext <<_ACEOF 19274/* end confdefs.h. */ 19275 19276/* Override any gcc2 internal prototype to avoid an error. */ 19277#ifdef __cplusplus 19278extern "C" 19279#endif 19280/* We use char because int might match the return type of a gcc2 19281 builtin and then its argument prototype would still apply. */ 19282char dlopen (); 19283int 19284main () 19285{ 19286dlopen (); 19287 ; 19288 return 0; 19289} 19290_ACEOF 19291rm -f conftest.$ac_objext conftest$ac_exeext 19292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19293 (eval $ac_link) 2>conftest.er1 19294 ac_status=$? 19295 grep -v '^ *+' conftest.er1 >conftest.err 19296 rm -f conftest.er1 19297 cat conftest.err >&5 19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19299 (exit $ac_status); } && 19300 { ac_try='test -z "$ac_c_werror_flag" 19301 || test ! -s conftest.err' 19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19303 (eval $ac_try) 2>&5 19304 ac_status=$? 19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19306 (exit $ac_status); }; } && 19307 { ac_try='test -s conftest$ac_exeext' 19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19309 (eval $ac_try) 2>&5 19310 ac_status=$? 19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19312 (exit $ac_status); }; }; then 19313 ac_cv_lib_dl_dlopen=yes 19314else 19315 echo "$as_me: failed program was:" >&5 19316sed 's/^/| /' conftest.$ac_ext >&5 19317 19318ac_cv_lib_dl_dlopen=no 19319fi 19320rm -f conftest.err conftest.$ac_objext \ 19321 conftest$ac_exeext conftest.$ac_ext 19322LIBS=$ac_check_lib_save_LIBS 19323fi 19324echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 19325echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 19326if test $ac_cv_lib_dl_dlopen = yes; then 19327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 19328else 19329 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 19330echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 19331if test "${ac_cv_lib_svld_dlopen+set}" = set; then 19332 echo $ECHO_N "(cached) $ECHO_C" >&6 19333else 19334 ac_check_lib_save_LIBS=$LIBS 19335LIBS="-lsvld $LIBS" 19336cat >conftest.$ac_ext <<_ACEOF 19337/* confdefs.h. */ 19338_ACEOF 19339cat confdefs.h >>conftest.$ac_ext 19340cat >>conftest.$ac_ext <<_ACEOF 19341/* end confdefs.h. */ 19342 19343/* Override any gcc2 internal prototype to avoid an error. */ 19344#ifdef __cplusplus 19345extern "C" 19346#endif 19347/* We use char because int might match the return type of a gcc2 19348 builtin and then its argument prototype would still apply. */ 19349char dlopen (); 19350int 19351main () 19352{ 19353dlopen (); 19354 ; 19355 return 0; 19356} 19357_ACEOF 19358rm -f conftest.$ac_objext conftest$ac_exeext 19359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19360 (eval $ac_link) 2>conftest.er1 19361 ac_status=$? 19362 grep -v '^ *+' conftest.er1 >conftest.err 19363 rm -f conftest.er1 19364 cat conftest.err >&5 19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19366 (exit $ac_status); } && 19367 { ac_try='test -z "$ac_c_werror_flag" 19368 || test ! -s conftest.err' 19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19370 (eval $ac_try) 2>&5 19371 ac_status=$? 19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19373 (exit $ac_status); }; } && 19374 { ac_try='test -s conftest$ac_exeext' 19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19376 (eval $ac_try) 2>&5 19377 ac_status=$? 19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19379 (exit $ac_status); }; }; then 19380 ac_cv_lib_svld_dlopen=yes 19381else 19382 echo "$as_me: failed program was:" >&5 19383sed 's/^/| /' conftest.$ac_ext >&5 19384 19385ac_cv_lib_svld_dlopen=no 19386fi 19387rm -f conftest.err conftest.$ac_objext \ 19388 conftest$ac_exeext conftest.$ac_ext 19389LIBS=$ac_check_lib_save_LIBS 19390fi 19391echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 19392echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 19393if test $ac_cv_lib_svld_dlopen = yes; then 19394 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 19395else 19396 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 19397echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 19398if test "${ac_cv_lib_dld_dld_link+set}" = set; then 19399 echo $ECHO_N "(cached) $ECHO_C" >&6 19400else 19401 ac_check_lib_save_LIBS=$LIBS 19402LIBS="-ldld $LIBS" 19403cat >conftest.$ac_ext <<_ACEOF 19404/* confdefs.h. */ 19405_ACEOF 19406cat confdefs.h >>conftest.$ac_ext 19407cat >>conftest.$ac_ext <<_ACEOF 19408/* end confdefs.h. */ 19409 19410/* Override any gcc2 internal prototype to avoid an error. */ 19411#ifdef __cplusplus 19412extern "C" 19413#endif 19414/* We use char because int might match the return type of a gcc2 19415 builtin and then its argument prototype would still apply. */ 19416char dld_link (); 19417int 19418main () 19419{ 19420dld_link (); 19421 ; 19422 return 0; 19423} 19424_ACEOF 19425rm -f conftest.$ac_objext conftest$ac_exeext 19426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19427 (eval $ac_link) 2>conftest.er1 19428 ac_status=$? 19429 grep -v '^ *+' conftest.er1 >conftest.err 19430 rm -f conftest.er1 19431 cat conftest.err >&5 19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19433 (exit $ac_status); } && 19434 { ac_try='test -z "$ac_c_werror_flag" 19435 || test ! -s conftest.err' 19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19437 (eval $ac_try) 2>&5 19438 ac_status=$? 19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19440 (exit $ac_status); }; } && 19441 { ac_try='test -s conftest$ac_exeext' 19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19443 (eval $ac_try) 2>&5 19444 ac_status=$? 19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19446 (exit $ac_status); }; }; then 19447 ac_cv_lib_dld_dld_link=yes 19448else 19449 echo "$as_me: failed program was:" >&5 19450sed 's/^/| /' conftest.$ac_ext >&5 19451 19452ac_cv_lib_dld_dld_link=no 19453fi 19454rm -f conftest.err conftest.$ac_objext \ 19455 conftest$ac_exeext conftest.$ac_ext 19456LIBS=$ac_check_lib_save_LIBS 19457fi 19458echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 19459echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 19460if test $ac_cv_lib_dld_dld_link = yes; then 19461 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 19462fi 19463 19464 19465fi 19466 19467 19468fi 19469 19470 19471fi 19472 19473 19474fi 19475 19476 19477fi 19478 19479 ;; 19480 esac 19481 19482 if test "x$lt_cv_dlopen" != xno; then 19483 enable_dlopen=yes 19484 else 19485 enable_dlopen=no 19486 fi 19487 19488 case $lt_cv_dlopen in 19489 dlopen) 19490 save_CPPFLAGS="$CPPFLAGS" 19491 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19492 19493 save_LDFLAGS="$LDFLAGS" 19494 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19495 19496 save_LIBS="$LIBS" 19497 LIBS="$lt_cv_dlopen_libs $LIBS" 19498 19499 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 19500echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 19501if test "${lt_cv_dlopen_self+set}" = set; then 19502 echo $ECHO_N "(cached) $ECHO_C" >&6 19503else 19504 if test "$cross_compiling" = yes; then : 19505 lt_cv_dlopen_self=cross 19506else 19507 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19508 lt_status=$lt_dlunknown 19509 cat > conftest.$ac_ext <<EOF 19510#line 19510 "configure" 19511#include "confdefs.h" 19512 19513#if HAVE_DLFCN_H 19514#include <dlfcn.h> 19515#endif 19516 19517#include <stdio.h> 19518 19519#ifdef RTLD_GLOBAL 19520# define LT_DLGLOBAL RTLD_GLOBAL 19521#else 19522# ifdef DL_GLOBAL 19523# define LT_DLGLOBAL DL_GLOBAL 19524# else 19525# define LT_DLGLOBAL 0 19526# endif 19527#endif 19528 19529/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19530 find out it does not work in some platform. */ 19531#ifndef LT_DLLAZY_OR_NOW 19532# ifdef RTLD_LAZY 19533# define LT_DLLAZY_OR_NOW RTLD_LAZY 19534# else 19535# ifdef DL_LAZY 19536# define LT_DLLAZY_OR_NOW DL_LAZY 19537# else 19538# ifdef RTLD_NOW 19539# define LT_DLLAZY_OR_NOW RTLD_NOW 19540# else 19541# ifdef DL_NOW 19542# define LT_DLLAZY_OR_NOW DL_NOW 19543# else 19544# define LT_DLLAZY_OR_NOW 0 19545# endif 19546# endif 19547# endif 19548# endif 19549#endif 19550 19551#ifdef __cplusplus 19552extern "C" void exit (int); 19553#endif 19554 19555void fnord() { int i=42;} 19556int main () 19557{ 19558 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19559 int status = $lt_dlunknown; 19560 19561 if (self) 19562 { 19563 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19564 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19565 /* dlclose (self); */ 19566 } 19567 19568 exit (status); 19569} 19570EOF 19571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19572 (eval $ac_link) 2>&5 19573 ac_status=$? 19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19575 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 19576 (./conftest; exit; ) 2>/dev/null 19577 lt_status=$? 19578 case x$lt_status in 19579 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19580 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19581 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 19582 esac 19583 else : 19584 # compilation failed 19585 lt_cv_dlopen_self=no 19586 fi 19587fi 19588rm -fr conftest* 19589 19590 19591fi 19592echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 19593echo "${ECHO_T}$lt_cv_dlopen_self" >&6 19594 19595 if test "x$lt_cv_dlopen_self" = xyes; then 19596 LDFLAGS="$LDFLAGS $link_static_flag" 19597 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 19598echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 19599if test "${lt_cv_dlopen_self_static+set}" = set; then 19600 echo $ECHO_N "(cached) $ECHO_C" >&6 19601else 19602 if test "$cross_compiling" = yes; then : 19603 lt_cv_dlopen_self_static=cross 19604else 19605 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19606 lt_status=$lt_dlunknown 19607 cat > conftest.$ac_ext <<EOF 19608#line 19608 "configure" 19609#include "confdefs.h" 19610 19611#if HAVE_DLFCN_H 19612#include <dlfcn.h> 19613#endif 19614 19615#include <stdio.h> 19616 19617#ifdef RTLD_GLOBAL 19618# define LT_DLGLOBAL RTLD_GLOBAL 19619#else 19620# ifdef DL_GLOBAL 19621# define LT_DLGLOBAL DL_GLOBAL 19622# else 19623# define LT_DLGLOBAL 0 19624# endif 19625#endif 19626 19627/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19628 find out it does not work in some platform. */ 19629#ifndef LT_DLLAZY_OR_NOW 19630# ifdef RTLD_LAZY 19631# define LT_DLLAZY_OR_NOW RTLD_LAZY 19632# else 19633# ifdef DL_LAZY 19634# define LT_DLLAZY_OR_NOW DL_LAZY 19635# else 19636# ifdef RTLD_NOW 19637# define LT_DLLAZY_OR_NOW RTLD_NOW 19638# else 19639# ifdef DL_NOW 19640# define LT_DLLAZY_OR_NOW DL_NOW 19641# else 19642# define LT_DLLAZY_OR_NOW 0 19643# endif 19644# endif 19645# endif 19646# endif 19647#endif 19648 19649#ifdef __cplusplus 19650extern "C" void exit (int); 19651#endif 19652 19653void fnord() { int i=42;} 19654int main () 19655{ 19656 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19657 int status = $lt_dlunknown; 19658 19659 if (self) 19660 { 19661 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19662 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19663 /* dlclose (self); */ 19664 } 19665 19666 exit (status); 19667} 19668EOF 19669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19670 (eval $ac_link) 2>&5 19671 ac_status=$? 19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19673 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 19674 (./conftest; exit; ) 2>/dev/null 19675 lt_status=$? 19676 case x$lt_status in 19677 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19678 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19679 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 19680 esac 19681 else : 19682 # compilation failed 19683 lt_cv_dlopen_self_static=no 19684 fi 19685fi 19686rm -fr conftest* 19687 19688 19689fi 19690echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 19691echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 19692 fi 19693 19694 CPPFLAGS="$save_CPPFLAGS" 19695 LDFLAGS="$save_LDFLAGS" 19696 LIBS="$save_LIBS" 19697 ;; 19698 esac 19699 19700 case $lt_cv_dlopen_self in 19701 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19702 *) enable_dlopen_self=unknown ;; 19703 esac 19704 19705 case $lt_cv_dlopen_self_static in 19706 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19707 *) enable_dlopen_self_static=unknown ;; 19708 esac 19709fi 19710 19711 19712# The else clause should only fire when bootstrapping the 19713# libtool distribution, otherwise you forgot to ship ltmain.sh 19714# with your package, and you will get complaints that there are 19715# no rules to generate ltmain.sh. 19716if test -f "$ltmain"; then 19717 # See if we are running on zsh, and set the options which allow our commands through 19718 # without removal of \ escapes. 19719 if test -n "${ZSH_VERSION+set}" ; then 19720 setopt NO_GLOB_SUBST 19721 fi 19722 # Now quote all the things that may contain metacharacters while being 19723 # careful not to overquote the AC_SUBSTed values. We take copies of the 19724 # variables and quote the copies for generation of the libtool script. 19725 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19726 SED SHELL STRIP \ 19727 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19728 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19729 deplibs_check_method reload_flag reload_cmds need_locks \ 19730 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19731 lt_cv_sys_global_symbol_to_c_name_address \ 19732 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19733 old_postinstall_cmds old_postuninstall_cmds \ 19734 compiler_GCJ \ 19735 CC_GCJ \ 19736 LD_GCJ \ 19737 lt_prog_compiler_wl_GCJ \ 19738 lt_prog_compiler_pic_GCJ \ 19739 lt_prog_compiler_static_GCJ \ 19740 lt_prog_compiler_no_builtin_flag_GCJ \ 19741 export_dynamic_flag_spec_GCJ \ 19742 thread_safe_flag_spec_GCJ \ 19743 whole_archive_flag_spec_GCJ \ 19744 enable_shared_with_static_runtimes_GCJ \ 19745 old_archive_cmds_GCJ \ 19746 old_archive_from_new_cmds_GCJ \ 19747 predep_objects_GCJ \ 19748 postdep_objects_GCJ \ 19749 predeps_GCJ \ 19750 postdeps_GCJ \ 19751 compiler_lib_search_path_GCJ \ 19752 archive_cmds_GCJ \ 19753 archive_expsym_cmds_GCJ \ 19754 postinstall_cmds_GCJ \ 19755 postuninstall_cmds_GCJ \ 19756 old_archive_from_expsyms_cmds_GCJ \ 19757 allow_undefined_flag_GCJ \ 19758 no_undefined_flag_GCJ \ 19759 export_symbols_cmds_GCJ \ 19760 hardcode_libdir_flag_spec_GCJ \ 19761 hardcode_libdir_flag_spec_ld_GCJ \ 19762 hardcode_libdir_separator_GCJ \ 19763 hardcode_automatic_GCJ \ 19764 module_cmds_GCJ \ 19765 module_expsym_cmds_GCJ \ 19766 lt_cv_prog_compiler_c_o_GCJ \ 19767 exclude_expsyms_GCJ \ 19768 include_expsyms_GCJ; do 19769 19770 case $var in 19771 old_archive_cmds_GCJ | \ 19772 old_archive_from_new_cmds_GCJ | \ 19773 archive_cmds_GCJ | \ 19774 archive_expsym_cmds_GCJ | \ 19775 module_cmds_GCJ | \ 19776 module_expsym_cmds_GCJ | \ 19777 old_archive_from_expsyms_cmds_GCJ | \ 19778 export_symbols_cmds_GCJ | \ 19779 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19780 postinstall_cmds | postuninstall_cmds | \ 19781 old_postinstall_cmds | old_postuninstall_cmds | \ 19782 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19783 # Double-quote double-evaled strings. 19784 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19785 ;; 19786 *) 19787 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19788 ;; 19789 esac 19790 done 19791 19792 case $lt_echo in 19793 *'\$0 --fallback-echo"') 19794 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19795 ;; 19796 esac 19797 19798cfgfile="$ofile" 19799 19800 cat <<__EOF__ >> "$cfgfile" 19801# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19802 19803# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19804 19805# Shell to use when invoking shell scripts. 19806SHELL=$lt_SHELL 19807 19808# Whether or not to build shared libraries. 19809build_libtool_libs=$enable_shared 19810 19811# Whether or not to build static libraries. 19812build_old_libs=$enable_static 19813 19814# Whether or not to add -lc for building shared libraries. 19815build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19816 19817# Whether or not to disallow shared libs when runtime libs are static 19818allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19819 19820# Whether or not to optimize for fast installation. 19821fast_install=$enable_fast_install 19822 19823# The host system. 19824host_alias=$host_alias 19825host=$host 19826host_os=$host_os 19827 19828# The build system. 19829build_alias=$build_alias 19830build=$build 19831build_os=$build_os 19832 19833# An echo program that does not interpret backslashes. 19834echo=$lt_echo 19835 19836# The archiver. 19837AR=$lt_AR 19838AR_FLAGS=$lt_AR_FLAGS 19839 19840# A C compiler. 19841LTCC=$lt_LTCC 19842 19843# A language-specific compiler. 19844CC=$lt_compiler_GCJ 19845 19846# Is the compiler the GNU C compiler? 19847with_gcc=$GCC_GCJ 19848 19849# An ERE matcher. 19850EGREP=$lt_EGREP 19851 19852# The linker used to build libraries. 19853LD=$lt_LD_GCJ 19854 19855# Whether we need hard or soft links. 19856LN_S=$lt_LN_S 19857 19858# A BSD-compatible nm program. 19859NM=$lt_NM 19860 19861# A symbol stripping program 19862STRIP=$lt_STRIP 19863 19864# Used to examine libraries when file_magic_cmd begins "file" 19865MAGIC_CMD=$MAGIC_CMD 19866 19867# Used on cygwin: DLL creation program. 19868DLLTOOL="$DLLTOOL" 19869 19870# Used on cygwin: object dumper. 19871OBJDUMP="$OBJDUMP" 19872 19873# Used on cygwin: assembler. 19874AS="$AS" 19875 19876# The name of the directory that contains temporary libtool files. 19877objdir=$objdir 19878 19879# How to create reloadable object files. 19880reload_flag=$lt_reload_flag 19881reload_cmds=$lt_reload_cmds 19882 19883# How to pass a linker flag through the compiler. 19884wl=$lt_lt_prog_compiler_wl_GCJ 19885 19886# Object file suffix (normally "o"). 19887objext="$ac_objext" 19888 19889# Old archive suffix (normally "a"). 19890libext="$libext" 19891 19892# Shared library suffix (normally ".so"). 19893shrext_cmds='$shrext_cmds' 19894 19895# Executable file suffix (normally ""). 19896exeext="$exeext" 19897 19898# Additional compiler flags for building library objects. 19899pic_flag=$lt_lt_prog_compiler_pic_GCJ 19900pic_mode=$pic_mode 19901 19902# What is the maximum length of a command? 19903max_cmd_len=$lt_cv_sys_max_cmd_len 19904 19905# Does compiler simultaneously support -c and -o options? 19906compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19907 19908# Must we lock files when doing compilation? 19909need_locks=$lt_need_locks 19910 19911# Do we need the lib prefix for modules? 19912need_lib_prefix=$need_lib_prefix 19913 19914# Do we need a version for libraries? 19915need_version=$need_version 19916 19917# Whether dlopen is supported. 19918dlopen_support=$enable_dlopen 19919 19920# Whether dlopen of programs is supported. 19921dlopen_self=$enable_dlopen_self 19922 19923# Whether dlopen of statically linked programs is supported. 19924dlopen_self_static=$enable_dlopen_self_static 19925 19926# Compiler flag to prevent dynamic linking. 19927link_static_flag=$lt_lt_prog_compiler_static_GCJ 19928 19929# Compiler flag to turn off builtin functions. 19930no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19931 19932# Compiler flag to allow reflexive dlopens. 19933export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19934 19935# Compiler flag to generate shared objects directly from archives. 19936whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19937 19938# Compiler flag to generate thread-safe objects. 19939thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19940 19941# Library versioning type. 19942version_type=$version_type 19943 19944# Format of library name prefix. 19945libname_spec=$lt_libname_spec 19946 19947# List of archive names. First name is the real one, the rest are links. 19948# The last name is the one that the linker finds with -lNAME. 19949library_names_spec=$lt_library_names_spec 19950 19951# The coded name of the library, if different from the real name. 19952soname_spec=$lt_soname_spec 19953 19954# Commands used to build and install an old-style archive. 19955RANLIB=$lt_RANLIB 19956old_archive_cmds=$lt_old_archive_cmds_GCJ 19957old_postinstall_cmds=$lt_old_postinstall_cmds 19958old_postuninstall_cmds=$lt_old_postuninstall_cmds 19959 19960# Create an old-style archive from a shared archive. 19961old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19962 19963# Create a temporary old-style archive to link instead of a shared archive. 19964old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19965 19966# Commands used to build and install a shared archive. 19967archive_cmds=$lt_archive_cmds_GCJ 19968archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19969postinstall_cmds=$lt_postinstall_cmds 19970postuninstall_cmds=$lt_postuninstall_cmds 19971 19972# Commands used to build a loadable module (assumed same as above if empty) 19973module_cmds=$lt_module_cmds_GCJ 19974module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19975 19976# Commands to strip libraries. 19977old_striplib=$lt_old_striplib 19978striplib=$lt_striplib 19979 19980# Dependencies to place before the objects being linked to create a 19981# shared library. 19982predep_objects=$lt_predep_objects_GCJ 19983 19984# Dependencies to place after the objects being linked to create a 19985# shared library. 19986postdep_objects=$lt_postdep_objects_GCJ 19987 19988# Dependencies to place before the objects being linked to create a 19989# shared library. 19990predeps=$lt_predeps_GCJ 19991 19992# Dependencies to place after the objects being linked to create a 19993# shared library. 19994postdeps=$lt_postdeps_GCJ 19995 19996# The library search path used internally by the compiler when linking 19997# a shared library. 19998compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19999 20000# Method to check whether dependent libraries are shared objects. 20001deplibs_check_method=$lt_deplibs_check_method 20002 20003# Command to use when deplibs_check_method == file_magic. 20004file_magic_cmd=$lt_file_magic_cmd 20005 20006# Flag that allows shared libraries with undefined symbols to be built. 20007allow_undefined_flag=$lt_allow_undefined_flag_GCJ 20008 20009# Flag that forces no undefined symbols. 20010no_undefined_flag=$lt_no_undefined_flag_GCJ 20011 20012# Commands used to finish a libtool library installation in a directory. 20013finish_cmds=$lt_finish_cmds 20014 20015# Same as above, but a single script fragment to be evaled but not shown. 20016finish_eval=$lt_finish_eval 20017 20018# Take the output of nm and produce a listing of raw symbols and C names. 20019global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20020 20021# Transform the output of nm in a proper C declaration 20022global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20023 20024# Transform the output of nm in a C name address pair 20025global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20026 20027# This is the shared library runtime path variable. 20028runpath_var=$runpath_var 20029 20030# This is the shared library path variable. 20031shlibpath_var=$shlibpath_var 20032 20033# Is shlibpath searched before the hard-coded library search path? 20034shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20035 20036# How to hardcode a shared library path into an executable. 20037hardcode_action=$hardcode_action_GCJ 20038 20039# Whether we should hardcode library paths into libraries. 20040hardcode_into_libs=$hardcode_into_libs 20041 20042# Flag to hardcode \$libdir into a binary during linking. 20043# This must work even if \$libdir does not exist. 20044hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 20045 20046# If ld is used when linking, flag to hardcode \$libdir into 20047# a binary during linking. This must work even if \$libdir does 20048# not exist. 20049hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 20050 20051# Whether we need a single -rpath flag with a separated argument. 20052hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 20053 20054# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20055# resulting binary. 20056hardcode_direct=$hardcode_direct_GCJ 20057 20058# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20059# resulting binary. 20060hardcode_minus_L=$hardcode_minus_L_GCJ 20061 20062# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20063# the resulting binary. 20064hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 20065 20066# Set to yes if building a shared library automatically hardcodes DIR into the library 20067# and all subsequent libraries and executables linked against it. 20068hardcode_automatic=$hardcode_automatic_GCJ 20069 20070# Variables whose values should be saved in libtool wrapper scripts and 20071# restored at relink time. 20072variables_saved_for_relink="$variables_saved_for_relink" 20073 20074# Whether libtool must link a program against all its dependency libraries. 20075link_all_deplibs=$link_all_deplibs_GCJ 20076 20077# Compile-time system search path for libraries 20078sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20079 20080# Run-time system search path for libraries 20081sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20082 20083# Fix the shell variable \$srcfile for the compiler. 20084fix_srcfile_path="$fix_srcfile_path_GCJ" 20085 20086# Set to yes if exported symbols are required. 20087always_export_symbols=$always_export_symbols_GCJ 20088 20089# The commands to list exported symbols. 20090export_symbols_cmds=$lt_export_symbols_cmds_GCJ 20091 20092# The commands to extract the exported symbol list from a shared archive. 20093extract_expsyms_cmds=$lt_extract_expsyms_cmds 20094 20095# Symbols that should not be listed in the preloaded symbols. 20096exclude_expsyms=$lt_exclude_expsyms_GCJ 20097 20098# Symbols that must always be exported. 20099include_expsyms=$lt_include_expsyms_GCJ 20100 20101# ### END LIBTOOL TAG CONFIG: $tagname 20102 20103__EOF__ 20104 20105 20106else 20107 # If there is no Makefile yet, we rely on a make rule to execute 20108 # `config.status --recheck' to rerun these tests and create the 20109 # libtool script then. 20110 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20111 if test -f "$ltmain_in"; then 20112 test -f Makefile && make "$ltmain" 20113 fi 20114fi 20115 20116 20117ac_ext=c 20118ac_cpp='$CPP $CPPFLAGS' 20119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20121ac_compiler_gnu=$ac_cv_c_compiler_gnu 20122 20123CC="$lt_save_CC" 20124 20125 else 20126 tagname="" 20127 fi 20128 ;; 20129 20130 RC) 20131 20132 20133 20134# Source file extension for RC test sources. 20135ac_ext=rc 20136 20137# Object file extension for compiled RC test sources. 20138objext=o 20139objext_RC=$objext 20140 20141# Code to be used in simple compile tests 20142lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 20143 20144# Code to be used in simple link tests 20145lt_simple_link_test_code="$lt_simple_compile_test_code" 20146 20147# ltmain only uses $CC for tagged configurations so make sure $CC is set. 20148 20149# If no C compiler was specified, use CC. 20150LTCC=${LTCC-"$CC"} 20151 20152# Allow CC to be a program name with arguments. 20153compiler=$CC 20154 20155 20156# save warnings/boilerplate of simple test code 20157ac_outfile=conftest.$ac_objext 20158printf "$lt_simple_compile_test_code" >conftest.$ac_ext 20159eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 20160_lt_compiler_boilerplate=`cat conftest.err` 20161$rm conftest* 20162 20163ac_outfile=conftest.$ac_objext 20164printf "$lt_simple_link_test_code" >conftest.$ac_ext 20165eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 20166_lt_linker_boilerplate=`cat conftest.err` 20167$rm conftest* 20168 20169 20170# Allow CC to be a program name with arguments. 20171lt_save_CC="$CC" 20172CC=${RC-"windres"} 20173compiler=$CC 20174compiler_RC=$CC 20175for cc_temp in $compiler""; do 20176 case $cc_temp in 20177 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20178 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20179 \-*) ;; 20180 *) break;; 20181 esac 20182done 20183cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 20184 20185lt_cv_prog_compiler_c_o_RC=yes 20186 20187# The else clause should only fire when bootstrapping the 20188# libtool distribution, otherwise you forgot to ship ltmain.sh 20189# with your package, and you will get complaints that there are 20190# no rules to generate ltmain.sh. 20191if test -f "$ltmain"; then 20192 # See if we are running on zsh, and set the options which allow our commands through 20193 # without removal of \ escapes. 20194 if test -n "${ZSH_VERSION+set}" ; then 20195 setopt NO_GLOB_SUBST 20196 fi 20197 # Now quote all the things that may contain metacharacters while being 20198 # careful not to overquote the AC_SUBSTed values. We take copies of the 20199 # variables and quote the copies for generation of the libtool script. 20200 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 20201 SED SHELL STRIP \ 20202 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20203 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20204 deplibs_check_method reload_flag reload_cmds need_locks \ 20205 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20206 lt_cv_sys_global_symbol_to_c_name_address \ 20207 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20208 old_postinstall_cmds old_postuninstall_cmds \ 20209 compiler_RC \ 20210 CC_RC \ 20211 LD_RC \ 20212 lt_prog_compiler_wl_RC \ 20213 lt_prog_compiler_pic_RC \ 20214 lt_prog_compiler_static_RC \ 20215 lt_prog_compiler_no_builtin_flag_RC \ 20216 export_dynamic_flag_spec_RC \ 20217 thread_safe_flag_spec_RC \ 20218 whole_archive_flag_spec_RC \ 20219 enable_shared_with_static_runtimes_RC \ 20220 old_archive_cmds_RC \ 20221 old_archive_from_new_cmds_RC \ 20222 predep_objects_RC \ 20223 postdep_objects_RC \ 20224 predeps_RC \ 20225 postdeps_RC \ 20226 compiler_lib_search_path_RC \ 20227 archive_cmds_RC \ 20228 archive_expsym_cmds_RC \ 20229 postinstall_cmds_RC \ 20230 postuninstall_cmds_RC \ 20231 old_archive_from_expsyms_cmds_RC \ 20232 allow_undefined_flag_RC \ 20233 no_undefined_flag_RC \ 20234 export_symbols_cmds_RC \ 20235 hardcode_libdir_flag_spec_RC \ 20236 hardcode_libdir_flag_spec_ld_RC \ 20237 hardcode_libdir_separator_RC \ 20238 hardcode_automatic_RC \ 20239 module_cmds_RC \ 20240 module_expsym_cmds_RC \ 20241 lt_cv_prog_compiler_c_o_RC \ 20242 exclude_expsyms_RC \ 20243 include_expsyms_RC; do 20244 20245 case $var in 20246 old_archive_cmds_RC | \ 20247 old_archive_from_new_cmds_RC | \ 20248 archive_cmds_RC | \ 20249 archive_expsym_cmds_RC | \ 20250 module_cmds_RC | \ 20251 module_expsym_cmds_RC | \ 20252 old_archive_from_expsyms_cmds_RC | \ 20253 export_symbols_cmds_RC | \ 20254 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20255 postinstall_cmds | postuninstall_cmds | \ 20256 old_postinstall_cmds | old_postuninstall_cmds | \ 20257 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20258 # Double-quote double-evaled strings. 20259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20260 ;; 20261 *) 20262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20263 ;; 20264 esac 20265 done 20266 20267 case $lt_echo in 20268 *'\$0 --fallback-echo"') 20269 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20270 ;; 20271 esac 20272 20273cfgfile="$ofile" 20274 20275 cat <<__EOF__ >> "$cfgfile" 20276# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20277 20278# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20279 20280# Shell to use when invoking shell scripts. 20281SHELL=$lt_SHELL 20282 20283# Whether or not to build shared libraries. 20284build_libtool_libs=$enable_shared 20285 20286# Whether or not to build static libraries. 20287build_old_libs=$enable_static 20288 20289# Whether or not to add -lc for building shared libraries. 20290build_libtool_need_lc=$archive_cmds_need_lc_RC 20291 20292# Whether or not to disallow shared libs when runtime libs are static 20293allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 20294 20295# Whether or not to optimize for fast installation. 20296fast_install=$enable_fast_install 20297 20298# The host system. 20299host_alias=$host_alias 20300host=$host 20301host_os=$host_os 20302 20303# The build system. 20304build_alias=$build_alias 20305build=$build 20306build_os=$build_os 20307 20308# An echo program that does not interpret backslashes. 20309echo=$lt_echo 20310 20311# The archiver. 20312AR=$lt_AR 20313AR_FLAGS=$lt_AR_FLAGS 20314 20315# A C compiler. 20316LTCC=$lt_LTCC 20317 20318# A language-specific compiler. 20319CC=$lt_compiler_RC 20320 20321# Is the compiler the GNU C compiler? 20322with_gcc=$GCC_RC 20323 20324# An ERE matcher. 20325EGREP=$lt_EGREP 20326 20327# The linker used to build libraries. 20328LD=$lt_LD_RC 20329 20330# Whether we need hard or soft links. 20331LN_S=$lt_LN_S 20332 20333# A BSD-compatible nm program. 20334NM=$lt_NM 20335 20336# A symbol stripping program 20337STRIP=$lt_STRIP 20338 20339# Used to examine libraries when file_magic_cmd begins "file" 20340MAGIC_CMD=$MAGIC_CMD 20341 20342# Used on cygwin: DLL creation program. 20343DLLTOOL="$DLLTOOL" 20344 20345# Used on cygwin: object dumper. 20346OBJDUMP="$OBJDUMP" 20347 20348# Used on cygwin: assembler. 20349AS="$AS" 20350 20351# The name of the directory that contains temporary libtool files. 20352objdir=$objdir 20353 20354# How to create reloadable object files. 20355reload_flag=$lt_reload_flag 20356reload_cmds=$lt_reload_cmds 20357 20358# How to pass a linker flag through the compiler. 20359wl=$lt_lt_prog_compiler_wl_RC 20360 20361# Object file suffix (normally "o"). 20362objext="$ac_objext" 20363 20364# Old archive suffix (normally "a"). 20365libext="$libext" 20366 20367# Shared library suffix (normally ".so"). 20368shrext_cmds='$shrext_cmds' 20369 20370# Executable file suffix (normally ""). 20371exeext="$exeext" 20372 20373# Additional compiler flags for building library objects. 20374pic_flag=$lt_lt_prog_compiler_pic_RC 20375pic_mode=$pic_mode 20376 20377# What is the maximum length of a command? 20378max_cmd_len=$lt_cv_sys_max_cmd_len 20379 20380# Does compiler simultaneously support -c and -o options? 20381compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 20382 20383# Must we lock files when doing compilation? 20384need_locks=$lt_need_locks 20385 20386# Do we need the lib prefix for modules? 20387need_lib_prefix=$need_lib_prefix 20388 20389# Do we need a version for libraries? 20390need_version=$need_version 20391 20392# Whether dlopen is supported. 20393dlopen_support=$enable_dlopen 20394 20395# Whether dlopen of programs is supported. 20396dlopen_self=$enable_dlopen_self 20397 20398# Whether dlopen of statically linked programs is supported. 20399dlopen_self_static=$enable_dlopen_self_static 20400 20401# Compiler flag to prevent dynamic linking. 20402link_static_flag=$lt_lt_prog_compiler_static_RC 20403 20404# Compiler flag to turn off builtin functions. 20405no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 20406 20407# Compiler flag to allow reflexive dlopens. 20408export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 20409 20410# Compiler flag to generate shared objects directly from archives. 20411whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 20412 20413# Compiler flag to generate thread-safe objects. 20414thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 20415 20416# Library versioning type. 20417version_type=$version_type 20418 20419# Format of library name prefix. 20420libname_spec=$lt_libname_spec 20421 20422# List of archive names. First name is the real one, the rest are links. 20423# The last name is the one that the linker finds with -lNAME. 20424library_names_spec=$lt_library_names_spec 20425 20426# The coded name of the library, if different from the real name. 20427soname_spec=$lt_soname_spec 20428 20429# Commands used to build and install an old-style archive. 20430RANLIB=$lt_RANLIB 20431old_archive_cmds=$lt_old_archive_cmds_RC 20432old_postinstall_cmds=$lt_old_postinstall_cmds 20433old_postuninstall_cmds=$lt_old_postuninstall_cmds 20434 20435# Create an old-style archive from a shared archive. 20436old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 20437 20438# Create a temporary old-style archive to link instead of a shared archive. 20439old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 20440 20441# Commands used to build and install a shared archive. 20442archive_cmds=$lt_archive_cmds_RC 20443archive_expsym_cmds=$lt_archive_expsym_cmds_RC 20444postinstall_cmds=$lt_postinstall_cmds 20445postuninstall_cmds=$lt_postuninstall_cmds 20446 20447# Commands used to build a loadable module (assumed same as above if empty) 20448module_cmds=$lt_module_cmds_RC 20449module_expsym_cmds=$lt_module_expsym_cmds_RC 20450 20451# Commands to strip libraries. 20452old_striplib=$lt_old_striplib 20453striplib=$lt_striplib 20454 20455# Dependencies to place before the objects being linked to create a 20456# shared library. 20457predep_objects=$lt_predep_objects_RC 20458 20459# Dependencies to place after the objects being linked to create a 20460# shared library. 20461postdep_objects=$lt_postdep_objects_RC 20462 20463# Dependencies to place before the objects being linked to create a 20464# shared library. 20465predeps=$lt_predeps_RC 20466 20467# Dependencies to place after the objects being linked to create a 20468# shared library. 20469postdeps=$lt_postdeps_RC 20470 20471# The library search path used internally by the compiler when linking 20472# a shared library. 20473compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20474 20475# Method to check whether dependent libraries are shared objects. 20476deplibs_check_method=$lt_deplibs_check_method 20477 20478# Command to use when deplibs_check_method == file_magic. 20479file_magic_cmd=$lt_file_magic_cmd 20480 20481# Flag that allows shared libraries with undefined symbols to be built. 20482allow_undefined_flag=$lt_allow_undefined_flag_RC 20483 20484# Flag that forces no undefined symbols. 20485no_undefined_flag=$lt_no_undefined_flag_RC 20486 20487# Commands used to finish a libtool library installation in a directory. 20488finish_cmds=$lt_finish_cmds 20489 20490# Same as above, but a single script fragment to be evaled but not shown. 20491finish_eval=$lt_finish_eval 20492 20493# Take the output of nm and produce a listing of raw symbols and C names. 20494global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20495 20496# Transform the output of nm in a proper C declaration 20497global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20498 20499# Transform the output of nm in a C name address pair 20500global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20501 20502# This is the shared library runtime path variable. 20503runpath_var=$runpath_var 20504 20505# This is the shared library path variable. 20506shlibpath_var=$shlibpath_var 20507 20508# Is shlibpath searched before the hard-coded library search path? 20509shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20510 20511# How to hardcode a shared library path into an executable. 20512hardcode_action=$hardcode_action_RC 20513 20514# Whether we should hardcode library paths into libraries. 20515hardcode_into_libs=$hardcode_into_libs 20516 20517# Flag to hardcode \$libdir into a binary during linking. 20518# This must work even if \$libdir does not exist. 20519hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20520 20521# If ld is used when linking, flag to hardcode \$libdir into 20522# a binary during linking. This must work even if \$libdir does 20523# not exist. 20524hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20525 20526# Whether we need a single -rpath flag with a separated argument. 20527hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20528 20529# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20530# resulting binary. 20531hardcode_direct=$hardcode_direct_RC 20532 20533# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20534# resulting binary. 20535hardcode_minus_L=$hardcode_minus_L_RC 20536 20537# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20538# the resulting binary. 20539hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20540 20541# Set to yes if building a shared library automatically hardcodes DIR into the library 20542# and all subsequent libraries and executables linked against it. 20543hardcode_automatic=$hardcode_automatic_RC 20544 20545# Variables whose values should be saved in libtool wrapper scripts and 20546# restored at relink time. 20547variables_saved_for_relink="$variables_saved_for_relink" 20548 20549# Whether libtool must link a program against all its dependency libraries. 20550link_all_deplibs=$link_all_deplibs_RC 20551 20552# Compile-time system search path for libraries 20553sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20554 20555# Run-time system search path for libraries 20556sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20557 20558# Fix the shell variable \$srcfile for the compiler. 20559fix_srcfile_path="$fix_srcfile_path_RC" 20560 20561# Set to yes if exported symbols are required. 20562always_export_symbols=$always_export_symbols_RC 20563 20564# The commands to list exported symbols. 20565export_symbols_cmds=$lt_export_symbols_cmds_RC 20566 20567# The commands to extract the exported symbol list from a shared archive. 20568extract_expsyms_cmds=$lt_extract_expsyms_cmds 20569 20570# Symbols that should not be listed in the preloaded symbols. 20571exclude_expsyms=$lt_exclude_expsyms_RC 20572 20573# Symbols that must always be exported. 20574include_expsyms=$lt_include_expsyms_RC 20575 20576# ### END LIBTOOL TAG CONFIG: $tagname 20577 20578__EOF__ 20579 20580 20581else 20582 # If there is no Makefile yet, we rely on a make rule to execute 20583 # `config.status --recheck' to rerun these tests and create the 20584 # libtool script then. 20585 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20586 if test -f "$ltmain_in"; then 20587 test -f Makefile && make "$ltmain" 20588 fi 20589fi 20590 20591 20592ac_ext=c 20593ac_cpp='$CPP $CPPFLAGS' 20594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20596ac_compiler_gnu=$ac_cv_c_compiler_gnu 20597 20598CC="$lt_save_CC" 20599 20600 ;; 20601 20602 *) 20603 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20604echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20605 { (exit 1); exit 1; }; } 20606 ;; 20607 esac 20608 20609 # Append the new tag name to the list of available tags. 20610 if test -n "$tagname" ; then 20611 available_tags="$available_tags $tagname" 20612 fi 20613 fi 20614 done 20615 IFS="$lt_save_ifs" 20616 20617 # Now substitute the updated list of available tags. 20618 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20619 mv "${ofile}T" "$ofile" 20620 chmod +x "$ofile" 20621 else 20622 rm -f "${ofile}T" 20623 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20624echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20625 { (exit 1); exit 1; }; } 20626 fi 20627fi 20628 20629 20630 20631# This can be used to rebuild libtool when needed 20632LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20633 20634# Always use our own libtool. 20635LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20636 20637# Prevent multiple expansion 20638 20639 20640 20641 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658echo "$as_me:$LINENO: checking whether ln -s works" >&5 20659echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 20660LN_S=$as_ln_s 20661if test "$LN_S" = "ln -s"; then 20662 echo "$as_me:$LINENO: result: yes" >&5 20663echo "${ECHO_T}yes" >&6 20664else 20665 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 20666echo "${ECHO_T}no, using $LN_S" >&6 20667fi 20668 20669# Extract the first word of "killall", so it can be a program name with args. 20670set dummy killall; ac_word=$2 20671echo "$as_me:$LINENO: checking for $ac_word" >&5 20672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20673if test "${ac_cv_path_BIN_KILLALL+set}" = set; then 20674 echo $ECHO_N "(cached) $ECHO_C" >&6 20675else 20676 case $BIN_KILLALL in 20677 [\\/]* | ?:[\\/]*) 20678 ac_cv_path_BIN_KILLALL="$BIN_KILLALL" # Let the user override the test with a path. 20679 ;; 20680 *) 20681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20682for as_dir in $PATH 20683do 20684 IFS=$as_save_IFS 20685 test -z "$as_dir" && as_dir=. 20686 for ac_exec_ext in '' $ac_executable_extensions; do 20687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20688 ac_cv_path_BIN_KILLALL="$as_dir/$ac_word$ac_exec_ext" 20689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20690 break 2 20691 fi 20692done 20693done 20694 20695 ;; 20696esac 20697fi 20698BIN_KILLALL=$ac_cv_path_BIN_KILLALL 20699 20700if test -n "$BIN_KILLALL"; then 20701 echo "$as_me:$LINENO: result: $BIN_KILLALL" >&5 20702echo "${ECHO_T}$BIN_KILLALL" >&6 20703else 20704 echo "$as_me:$LINENO: result: no" >&5 20705echo "${ECHO_T}no" >&6 20706fi 20707 20708# Extract the first word of "memcached", so it can be a program name with args. 20709set dummy memcached; ac_word=$2 20710echo "$as_me:$LINENO: checking for $ac_word" >&5 20711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20712if test "${ac_cv_path_BIN_MEMCACHED+set}" = set; then 20713 echo $ECHO_N "(cached) $ECHO_C" >&6 20714else 20715 case $BIN_MEMCACHED in 20716 [\\/]* | ?:[\\/]*) 20717 ac_cv_path_BIN_MEMCACHED="$BIN_MEMCACHED" # Let the user override the test with a path. 20718 ;; 20719 *) 20720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20721for as_dir in $PATH 20722do 20723 IFS=$as_save_IFS 20724 test -z "$as_dir" && as_dir=. 20725 for ac_exec_ext in '' $ac_executable_extensions; do 20726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20727 ac_cv_path_BIN_MEMCACHED="$as_dir/$ac_word$ac_exec_ext" 20728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20729 break 2 20730 fi 20731done 20732done 20733 20734 ;; 20735esac 20736fi 20737BIN_MEMCACHED=$ac_cv_path_BIN_MEMCACHED 20738 20739if test -n "$BIN_MEMCACHED"; then 20740 echo "$as_me:$LINENO: result: $BIN_MEMCACHED" >&5 20741echo "${ECHO_T}$BIN_MEMCACHED" >&6 20742else 20743 echo "$as_me:$LINENO: result: no" >&5 20744echo "${ECHO_T}no" >&6 20745fi 20746 20747# Extract the first word of "md5", so it can be a program name with args. 20748set dummy md5; ac_word=$2 20749echo "$as_me:$LINENO: checking for $ac_word" >&5 20750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20751if test "${ac_cv_path_BIN_MD5+set}" = set; then 20752 echo $ECHO_N "(cached) $ECHO_C" >&6 20753else 20754 case $BIN_MD5 in 20755 [\\/]* | ?:[\\/]*) 20756 ac_cv_path_BIN_MD5="$BIN_MD5" # Let the user override the test with a path. 20757 ;; 20758 *) 20759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20760for as_dir in $PATH 20761do 20762 IFS=$as_save_IFS 20763 test -z "$as_dir" && as_dir=. 20764 for ac_exec_ext in '' $ac_executable_extensions; do 20765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20766 ac_cv_path_BIN_MD5="$as_dir/$ac_word$ac_exec_ext" 20767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20768 break 2 20769 fi 20770done 20771done 20772 20773 ;; 20774esac 20775fi 20776BIN_MD5=$ac_cv_path_BIN_MD5 20777 20778if test -n "$BIN_MD5"; then 20779 echo "$as_me:$LINENO: result: $BIN_MD5" >&5 20780echo "${ECHO_T}$BIN_MD5" >&6 20781else 20782 echo "$as_me:$LINENO: result: no" >&5 20783echo "${ECHO_T}no" >&6 20784fi 20785 20786# Extract the first word of "svn2cl", so it can be a program name with args. 20787set dummy svn2cl; ac_word=$2 20788echo "$as_me:$LINENO: checking for $ac_word" >&5 20789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20790if test "${ac_cv_path_BIN_SVN2CL+set}" = set; then 20791 echo $ECHO_N "(cached) $ECHO_C" >&6 20792else 20793 case $BIN_SVN2CL in 20794 [\\/]* | ?:[\\/]*) 20795 ac_cv_path_BIN_SVN2CL="$BIN_SVN2CL" # Let the user override the test with a path. 20796 ;; 20797 *) 20798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20799for as_dir in $PATH 20800do 20801 IFS=$as_save_IFS 20802 test -z "$as_dir" && as_dir=. 20803 for ac_exec_ext in '' $ac_executable_extensions; do 20804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20805 ac_cv_path_BIN_SVN2CL="$as_dir/$ac_word$ac_exec_ext" 20806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20807 break 2 20808 fi 20809done 20810done 20811 20812 ;; 20813esac 20814fi 20815BIN_SVN2CL=$ac_cv_path_BIN_SVN2CL 20816 20817if test -n "$BIN_SVN2CL"; then 20818 echo "$as_me:$LINENO: result: $BIN_SVN2CL" >&5 20819echo "${ECHO_T}$BIN_SVN2CL" >&6 20820else 20821 echo "$as_me:$LINENO: result: no" >&5 20822echo "${ECHO_T}no" >&6 20823fi 20824 20825 20826if test "x$BIN_MD5" = x; then 20827MCM_CALLBACK_CTXT=md517e9be250407e8a37fb60180a76510d7 20828MCM_CALLBACK_KEY=md5c029c91da86138a5ad1489427e1d71b0 20829MCM_CALLBACK_LEN=md5a07b51f993c7254fcb18197565700326 20830MCM_CALLBACK_MC=md5897e5e464792802e78a18e0fdd437b7c 20831MCM_CALLBACK_PTR=md57b4ac6d3ad66bcb14ca7584f9a3eff43 20832MCM_CALLBACK_RES=md5e252857f6eaeebe7e61573a2a5bfa564 20833MCM_ERR_MASK=md51ba931bcdf1b3f122e9b86617155853e 20834MCM_ERR_FUNC_ERR_CTXT=md5314e69877a17018a14789a1a7fb8025c 20835MCM_ERR_FUNC_MC_CTXT=md57c7c80036a426539d819e35ebab5192f 20836MCM_KEY_VALID_CTXT=md5a142d8b02e6ad56fa56f0e27cee889a4 20837MCM_KEY_VALID_KEY=md5537bb21da67eb92e5898f9911c607217 20838MCM_KEY_VALID_LEN=md55ecd4a9c706b439f8eebaca09eeadacf 20839else 20840MCM_CALLBACK_CTXT=`$BIN_MD5 -qs "MCM_CALLBACK_CTXT${MEMCACHE_RELDATE}${MEMCACHE_VERSION_NUMBER}"` 20841MCM_CALLBACK_KEY=`$BIN_MD5 -qs "MCM_CALLBACK_KEY${MEMCACHE_RELDATE}${MEMCACHE_VERSION_NUMBER}"` 20842MCM_CALLBACK_LEN=`$BIN_MD5 -qs "MCM_CALLBACK_LEN${MEMCACHE_RELDATE}${MEMCACHE_VERSION_NUMBER}"` 20843MCM_CALLBACK_MC=`$BIN_MD5 -qs "MCM_CALLBACK_MC${MEMCACHE_RELDATE}${MEMCACHE_VERSION_NUMBER}"` 20844MCM_CALLBACK_PTR=`$BIN_MD5 -qs "MCM_CALLBACK_PTR${MEMCACHE_RELDATE}${MEMCACHE_VERSION_NUMBER}"` 20845MCM_CALLBACK_RES=`$BIN_MD5 -qs "MCM_CALLBACK_RES${MEMCACHE_RELDATE}${MEMCACHE_VERSION_NUMBER}"` 20846MCM_ERR_MASK=`$BIN_MD5 -qs "MCM_ERR_MASK${MEMCACHE_RELDATE}${MEMCACHE_VERSION_NUMBER}"` 20847MCM_ERR_FUNC_ERR_CTXT=`$BIN_MD5 -qs "MCM_ERR_FUNC_ERR_CTXT${MEMCACHE_RELDATE}${MEMCACHE_VERSION_NUMBER}"` 20848MCM_ERR_FUNC_MC_CTXT=`$BIN_MD5 -qs "MCM_ERR_FUNC_MC_CTXT${MEMCACHE_RELDATE}${MEMCACHE_VERSION_NUMBER}"` 20849MCM_KEY_VALID_CTXT=`$BIN_MD5 -qs "MCM_KEY_VALID_CTXT${MEMCACHE_RELDATE}${MEMCACHE_VERSION_NUMBER}"` 20850MCM_KEY_VALID_KEY=`$BIN_MD5 -qs "MCM_KEY_VALID_KEY${MEMCACHE_RELDATE}${MEMCACHE_VERSION_NUMBER}"` 20851MCM_KEY_VALID_LEN=`$BIN_MD5 -qs "MCM_KEY_VALID_LEN${MEMCACHE_RELDATE}${MEMCACHE_VERSION_NUMBER}"` 20852fi 20853 20854 20855 20856 20857 20858 20859 20860 20861 20862 20863 20864 20865 20866 20867CFLAGS="-Wall -pipe" 20868DEBUG_cflags="-g -Wunused -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wformat -Wredundant-decls -Wnested-externs -Winline -pedantic" 20869OPTIMIZE="-O3" 20870PROFILE="-g -pg" 20871 20872echo "$as_me:$LINENO: checking if $CC supports -Wpacked" >&5 20873echo $ECHO_N "checking if $CC supports -Wpacked... $ECHO_C" >&6 20874CFLAGS_orig=$CFLAGS 20875CFLAGS="$CFLAGS -Wpacked" 20876cat >conftest.$ac_ext <<_ACEOF 20877/* confdefs.h. */ 20878_ACEOF 20879cat confdefs.h >>conftest.$ac_ext 20880cat >>conftest.$ac_ext <<_ACEOF 20881/* end confdefs.h. */ 20882 20883int 20884main () 20885{ 20886 20887 ; 20888 return 0; 20889} 20890_ACEOF 20891rm -f conftest.$ac_objext 20892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20893 (eval $ac_compile) 2>conftest.er1 20894 ac_status=$? 20895 grep -v '^ *+' conftest.er1 >conftest.err 20896 rm -f conftest.er1 20897 cat conftest.err >&5 20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20899 (exit $ac_status); } && 20900 { ac_try='test -z "$ac_c_werror_flag" 20901 || test ! -s conftest.err' 20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20903 (eval $ac_try) 2>&5 20904 ac_status=$? 20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20906 (exit $ac_status); }; } && 20907 { ac_try='test -s conftest.$ac_objext' 20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20909 (eval $ac_try) 2>&5 20910 ac_status=$? 20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20912 (exit $ac_status); }; }; then 20913 echo "$as_me:$LINENO: result: yes" >&5 20914echo "${ECHO_T}yes" >&6 20915else 20916 echo "$as_me: failed program was:" >&5 20917sed 's/^/| /' conftest.$ac_ext >&5 20918 20919 CFLAGS=$CFLAGS_orig; echo "$as_me:$LINENO: result: no" >&5 20920echo "${ECHO_T}no" >&6 20921fi 20922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20923 20924echo "$as_me:$LINENO: checking if $CC supports -Wdisabled-optimization" >&5 20925echo $ECHO_N "checking if $CC supports -Wdisabled-optimization... $ECHO_C" >&6 20926CFLAGS_orig=$CFLAGS 20927CFLAGS="$CFLAGS -Wdisabled-optimization" 20928cat >conftest.$ac_ext <<_ACEOF 20929/* confdefs.h. */ 20930_ACEOF 20931cat confdefs.h >>conftest.$ac_ext 20932cat >>conftest.$ac_ext <<_ACEOF 20933/* end confdefs.h. */ 20934 20935int 20936main () 20937{ 20938 20939 ; 20940 return 0; 20941} 20942_ACEOF 20943rm -f conftest.$ac_objext 20944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20945 (eval $ac_compile) 2>conftest.er1 20946 ac_status=$? 20947 grep -v '^ *+' conftest.er1 >conftest.err 20948 rm -f conftest.er1 20949 cat conftest.err >&5 20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20951 (exit $ac_status); } && 20952 { ac_try='test -z "$ac_c_werror_flag" 20953 || test ! -s conftest.err' 20954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20955 (eval $ac_try) 2>&5 20956 ac_status=$? 20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20958 (exit $ac_status); }; } && 20959 { ac_try='test -s conftest.$ac_objext' 20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20961 (eval $ac_try) 2>&5 20962 ac_status=$? 20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20964 (exit $ac_status); }; }; then 20965 echo "$as_me:$LINENO: result: yes" >&5 20966echo "${ECHO_T}yes" >&6 20967else 20968 echo "$as_me: failed program was:" >&5 20969sed 's/^/| /' conftest.$ac_ext >&5 20970 20971 CFLAGS=$CFLAGS_orig; echo "$as_me:$LINENO: result: no" >&5 20972echo "${ECHO_T}no" >&6 20973fi 20974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20975 20976echo "$as_me:$LINENO: checking if $CC supports -std=c99" >&5 20977echo $ECHO_N "checking if $CC supports -std=c99... $ECHO_C" >&6 20978CFLAGS_orig=$CFLAGS 20979CFLAGS="-std=c99 $CFLAGS" 20980cat >conftest.$ac_ext <<_ACEOF 20981/* confdefs.h. */ 20982_ACEOF 20983cat confdefs.h >>conftest.$ac_ext 20984cat >>conftest.$ac_ext <<_ACEOF 20985/* end confdefs.h. */ 20986 20987int 20988main () 20989{ 20990 20991 ; 20992 return 0; 20993} 20994_ACEOF 20995rm -f conftest.$ac_objext 20996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20997 (eval $ac_compile) 2>conftest.er1 20998 ac_status=$? 20999 grep -v '^ *+' conftest.er1 >conftest.err 21000 rm -f conftest.er1 21001 cat conftest.err >&5 21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21003 (exit $ac_status); } && 21004 { ac_try='test -z "$ac_c_werror_flag" 21005 || test ! -s conftest.err' 21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21007 (eval $ac_try) 2>&5 21008 ac_status=$? 21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21010 (exit $ac_status); }; } && 21011 { ac_try='test -s conftest.$ac_objext' 21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21013 (eval $ac_try) 2>&5 21014 ac_status=$? 21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21016 (exit $ac_status); }; }; then 21017 echo "$as_me:$LINENO: result: yes" >&5 21018echo "${ECHO_T}yes" >&6 21019else 21020 echo "$as_me: failed program was:" >&5 21021sed 's/^/| /' conftest.$ac_ext >&5 21022 21023 CFLAGS=$CFLAGS_orig; echo "$as_me:$LINENO: result: no" >&5 21024echo "${ECHO_T}no" >&6 21025fi 21026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21027 21028echo "$as_me:$LINENO: checking if $CC supports variadic macros" >&5 21029echo $ECHO_N "checking if $CC supports variadic macros... $ECHO_C" >&6 21030cat >conftest.$ac_ext <<_ACEOF 21031/* confdefs.h. */ 21032_ACEOF 21033cat confdefs.h >>conftest.$ac_ext 21034cat >>conftest.$ac_ext <<_ACEOF 21035/* end confdefs.h. */ 21036#include <stdio.h> 21037#include <string.h> 21038#define asprint(fmt, args...) asprintf(&buf, fmt, ## args) 21039int 21040main () 21041{ 21042char *buf; 21043asprint("testing %s\n", "varargs"); 21044if (strcmp("testing varargs", buf) != 0) return (-1); 21045 ; 21046 return 0; 21047} 21048_ACEOF 21049rm -f conftest.$ac_objext 21050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21051 (eval $ac_compile) 2>conftest.er1 21052 ac_status=$? 21053 grep -v '^ *+' conftest.er1 >conftest.err 21054 rm -f conftest.er1 21055 cat conftest.err >&5 21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21057 (exit $ac_status); } && 21058 { ac_try='test -z "$ac_c_werror_flag" 21059 || test ! -s conftest.err' 21060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21061 (eval $ac_try) 2>&5 21062 ac_status=$? 21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21064 (exit $ac_status); }; } && 21065 { ac_try='test -s conftest.$ac_objext' 21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21067 (eval $ac_try) 2>&5 21068 ac_status=$? 21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21070 (exit $ac_status); }; }; then 21071 support_macro_varargs=yes 21072else 21073 echo "$as_me: failed program was:" >&5 21074sed 's/^/| /' conftest.$ac_ext >&5 21075 21076 support_macro_varargs=no 21077fi 21078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21079if test "x$support_macro_varargs" = xyes; then 21080echo "$as_me:$LINENO: result: yes" >&5 21081echo "${ECHO_T}yes" >&6 21082else 21083echo "$as_me:$LINENO: result: no" >&5 21084echo "${ECHO_T}no" >&6 21085fi 21086 21087 21088echo "$as_me:$LINENO: checking for uint16_t" >&5 21089echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 21090if test "${ac_cv_type_uint16_t+set}" = set; then 21091 echo $ECHO_N "(cached) $ECHO_C" >&6 21092else 21093 cat >conftest.$ac_ext <<_ACEOF 21094/* confdefs.h. */ 21095_ACEOF 21096cat confdefs.h >>conftest.$ac_ext 21097cat >>conftest.$ac_ext <<_ACEOF 21098/* end confdefs.h. */ 21099$ac_includes_default 21100int 21101main () 21102{ 21103if ((uint16_t *) 0) 21104 return 0; 21105if (sizeof (uint16_t)) 21106 return 0; 21107 ; 21108 return 0; 21109} 21110_ACEOF 21111rm -f conftest.$ac_objext 21112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21113 (eval $ac_compile) 2>conftest.er1 21114 ac_status=$? 21115 grep -v '^ *+' conftest.er1 >conftest.err 21116 rm -f conftest.er1 21117 cat conftest.err >&5 21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21119 (exit $ac_status); } && 21120 { ac_try='test -z "$ac_c_werror_flag" 21121 || test ! -s conftest.err' 21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21123 (eval $ac_try) 2>&5 21124 ac_status=$? 21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21126 (exit $ac_status); }; } && 21127 { ac_try='test -s conftest.$ac_objext' 21128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21129 (eval $ac_try) 2>&5 21130 ac_status=$? 21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21132 (exit $ac_status); }; }; then 21133 ac_cv_type_uint16_t=yes 21134else 21135 echo "$as_me: failed program was:" >&5 21136sed 's/^/| /' conftest.$ac_ext >&5 21137 21138ac_cv_type_uint16_t=no 21139fi 21140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21141fi 21142echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 21143echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 21144 21145echo "$as_me:$LINENO: checking size of uint16_t" >&5 21146echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6 21147if test "${ac_cv_sizeof_uint16_t+set}" = set; then 21148 echo $ECHO_N "(cached) $ECHO_C" >&6 21149else 21150 if test "$ac_cv_type_uint16_t" = yes; then 21151 # The cast to unsigned long works around a bug in the HP C Compiler 21152 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21153 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21154 # This bug is HP SR number 8606223364. 21155 if test "$cross_compiling" = yes; then 21156 # Depending upon the size, compute the lo and hi bounds. 21157cat >conftest.$ac_ext <<_ACEOF 21158/* confdefs.h. */ 21159_ACEOF 21160cat confdefs.h >>conftest.$ac_ext 21161cat >>conftest.$ac_ext <<_ACEOF 21162/* end confdefs.h. */ 21163$ac_includes_default 21164int 21165main () 21166{ 21167static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) >= 0)]; 21168test_array [0] = 0 21169 21170 ; 21171 return 0; 21172} 21173_ACEOF 21174rm -f conftest.$ac_objext 21175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21176 (eval $ac_compile) 2>conftest.er1 21177 ac_status=$? 21178 grep -v '^ *+' conftest.er1 >conftest.err 21179 rm -f conftest.er1 21180 cat conftest.err >&5 21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21182 (exit $ac_status); } && 21183 { ac_try='test -z "$ac_c_werror_flag" 21184 || test ! -s conftest.err' 21185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21186 (eval $ac_try) 2>&5 21187 ac_status=$? 21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21189 (exit $ac_status); }; } && 21190 { ac_try='test -s conftest.$ac_objext' 21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21192 (eval $ac_try) 2>&5 21193 ac_status=$? 21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21195 (exit $ac_status); }; }; then 21196 ac_lo=0 ac_mid=0 21197 while :; do 21198 cat >conftest.$ac_ext <<_ACEOF 21199/* confdefs.h. */ 21200_ACEOF 21201cat confdefs.h >>conftest.$ac_ext 21202cat >>conftest.$ac_ext <<_ACEOF 21203/* end confdefs.h. */ 21204$ac_includes_default 21205int 21206main () 21207{ 21208static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) <= $ac_mid)]; 21209test_array [0] = 0 21210 21211 ; 21212 return 0; 21213} 21214_ACEOF 21215rm -f conftest.$ac_objext 21216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21217 (eval $ac_compile) 2>conftest.er1 21218 ac_status=$? 21219 grep -v '^ *+' conftest.er1 >conftest.err 21220 rm -f conftest.er1 21221 cat conftest.err >&5 21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21223 (exit $ac_status); } && 21224 { ac_try='test -z "$ac_c_werror_flag" 21225 || test ! -s conftest.err' 21226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21227 (eval $ac_try) 2>&5 21228 ac_status=$? 21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21230 (exit $ac_status); }; } && 21231 { ac_try='test -s conftest.$ac_objext' 21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21233 (eval $ac_try) 2>&5 21234 ac_status=$? 21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21236 (exit $ac_status); }; }; then 21237 ac_hi=$ac_mid; break 21238else 21239 echo "$as_me: failed program was:" >&5 21240sed 's/^/| /' conftest.$ac_ext >&5 21241 21242ac_lo=`expr $ac_mid + 1` 21243 if test $ac_lo -le $ac_mid; then 21244 ac_lo= ac_hi= 21245 break 21246 fi 21247 ac_mid=`expr 2 '*' $ac_mid + 1` 21248fi 21249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21250 done 21251else 21252 echo "$as_me: failed program was:" >&5 21253sed 's/^/| /' conftest.$ac_ext >&5 21254 21255cat >conftest.$ac_ext <<_ACEOF 21256/* confdefs.h. */ 21257_ACEOF 21258cat confdefs.h >>conftest.$ac_ext 21259cat >>conftest.$ac_ext <<_ACEOF 21260/* end confdefs.h. */ 21261$ac_includes_default 21262int 21263main () 21264{ 21265static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) < 0)]; 21266test_array [0] = 0 21267 21268 ; 21269 return 0; 21270} 21271_ACEOF 21272rm -f conftest.$ac_objext 21273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21274 (eval $ac_compile) 2>conftest.er1 21275 ac_status=$? 21276 grep -v '^ *+' conftest.er1 >conftest.err 21277 rm -f conftest.er1 21278 cat conftest.err >&5 21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21280 (exit $ac_status); } && 21281 { ac_try='test -z "$ac_c_werror_flag" 21282 || test ! -s conftest.err' 21283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21284 (eval $ac_try) 2>&5 21285 ac_status=$? 21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21287 (exit $ac_status); }; } && 21288 { ac_try='test -s conftest.$ac_objext' 21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21290 (eval $ac_try) 2>&5 21291 ac_status=$? 21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21293 (exit $ac_status); }; }; then 21294 ac_hi=-1 ac_mid=-1 21295 while :; do 21296 cat >conftest.$ac_ext <<_ACEOF 21297/* confdefs.h. */ 21298_ACEOF 21299cat confdefs.h >>conftest.$ac_ext 21300cat >>conftest.$ac_ext <<_ACEOF 21301/* end confdefs.h. */ 21302$ac_includes_default 21303int 21304main () 21305{ 21306static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) >= $ac_mid)]; 21307test_array [0] = 0 21308 21309 ; 21310 return 0; 21311} 21312_ACEOF 21313rm -f conftest.$ac_objext 21314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21315 (eval $ac_compile) 2>conftest.er1 21316 ac_status=$? 21317 grep -v '^ *+' conftest.er1 >conftest.err 21318 rm -f conftest.er1 21319 cat conftest.err >&5 21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21321 (exit $ac_status); } && 21322 { ac_try='test -z "$ac_c_werror_flag" 21323 || test ! -s conftest.err' 21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21325 (eval $ac_try) 2>&5 21326 ac_status=$? 21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21328 (exit $ac_status); }; } && 21329 { ac_try='test -s conftest.$ac_objext' 21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21331 (eval $ac_try) 2>&5 21332 ac_status=$? 21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21334 (exit $ac_status); }; }; then 21335 ac_lo=$ac_mid; break 21336else 21337 echo "$as_me: failed program was:" >&5 21338sed 's/^/| /' conftest.$ac_ext >&5 21339 21340ac_hi=`expr '(' $ac_mid ')' - 1` 21341 if test $ac_mid -le $ac_hi; then 21342 ac_lo= ac_hi= 21343 break 21344 fi 21345 ac_mid=`expr 2 '*' $ac_mid` 21346fi 21347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21348 done 21349else 21350 echo "$as_me: failed program was:" >&5 21351sed 's/^/| /' conftest.$ac_ext >&5 21352 21353ac_lo= ac_hi= 21354fi 21355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21356fi 21357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21358# Binary search between lo and hi bounds. 21359while test "x$ac_lo" != "x$ac_hi"; do 21360 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 21361 cat >conftest.$ac_ext <<_ACEOF 21362/* confdefs.h. */ 21363_ACEOF 21364cat confdefs.h >>conftest.$ac_ext 21365cat >>conftest.$ac_ext <<_ACEOF 21366/* end confdefs.h. */ 21367$ac_includes_default 21368int 21369main () 21370{ 21371static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) <= $ac_mid)]; 21372test_array [0] = 0 21373 21374 ; 21375 return 0; 21376} 21377_ACEOF 21378rm -f conftest.$ac_objext 21379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21380 (eval $ac_compile) 2>conftest.er1 21381 ac_status=$? 21382 grep -v '^ *+' conftest.er1 >conftest.err 21383 rm -f conftest.er1 21384 cat conftest.err >&5 21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21386 (exit $ac_status); } && 21387 { ac_try='test -z "$ac_c_werror_flag" 21388 || test ! -s conftest.err' 21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21390 (eval $ac_try) 2>&5 21391 ac_status=$? 21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21393 (exit $ac_status); }; } && 21394 { ac_try='test -s conftest.$ac_objext' 21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21396 (eval $ac_try) 2>&5 21397 ac_status=$? 21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21399 (exit $ac_status); }; }; then 21400 ac_hi=$ac_mid 21401else 21402 echo "$as_me: failed program was:" >&5 21403sed 's/^/| /' conftest.$ac_ext >&5 21404 21405ac_lo=`expr '(' $ac_mid ')' + 1` 21406fi 21407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21408done 21409case $ac_lo in 21410?*) ac_cv_sizeof_uint16_t=$ac_lo;; 21411'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint16_t), 77 21412See \`config.log' for more details." >&5 21413echo "$as_me: error: cannot compute sizeof (uint16_t), 77 21414See \`config.log' for more details." >&2;} 21415 { (exit 1); exit 1; }; } ;; 21416esac 21417else 21418 if test "$cross_compiling" = yes; then 21419 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21420See \`config.log' for more details." >&5 21421echo "$as_me: error: cannot run test program while cross compiling 21422See \`config.log' for more details." >&2;} 21423 { (exit 1); exit 1; }; } 21424else 21425 cat >conftest.$ac_ext <<_ACEOF 21426/* confdefs.h. */ 21427_ACEOF 21428cat confdefs.h >>conftest.$ac_ext 21429cat >>conftest.$ac_ext <<_ACEOF 21430/* end confdefs.h. */ 21431$ac_includes_default 21432long longval () { return (long) (sizeof (uint16_t)); } 21433unsigned long ulongval () { return (long) (sizeof (uint16_t)); } 21434#include <stdio.h> 21435#include <stdlib.h> 21436int 21437main () 21438{ 21439 21440 FILE *f = fopen ("conftest.val", "w"); 21441 if (! f) 21442 exit (1); 21443 if (((long) (sizeof (uint16_t))) < 0) 21444 { 21445 long i = longval (); 21446 if (i != ((long) (sizeof (uint16_t)))) 21447 exit (1); 21448 fprintf (f, "%ld\n", i); 21449 } 21450 else 21451 { 21452 unsigned long i = ulongval (); 21453 if (i != ((long) (sizeof (uint16_t)))) 21454 exit (1); 21455 fprintf (f, "%lu\n", i); 21456 } 21457 exit (ferror (f) || fclose (f) != 0); 21458 21459 ; 21460 return 0; 21461} 21462_ACEOF 21463rm -f conftest$ac_exeext 21464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21465 (eval $ac_link) 2>&5 21466 ac_status=$? 21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21470 (eval $ac_try) 2>&5 21471 ac_status=$? 21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21473 (exit $ac_status); }; }; then 21474 ac_cv_sizeof_uint16_t=`cat conftest.val` 21475else 21476 echo "$as_me: program exited with status $ac_status" >&5 21477echo "$as_me: failed program was:" >&5 21478sed 's/^/| /' conftest.$ac_ext >&5 21479 21480( exit $ac_status ) 21481{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint16_t), 77 21482See \`config.log' for more details." >&5 21483echo "$as_me: error: cannot compute sizeof (uint16_t), 77 21484See \`config.log' for more details." >&2;} 21485 { (exit 1); exit 1; }; } 21486fi 21487rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21488fi 21489fi 21490rm -f conftest.val 21491else 21492 ac_cv_sizeof_uint16_t=0 21493fi 21494fi 21495echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5 21496echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6 21497cat >>confdefs.h <<_ACEOF 21498#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t 21499_ACEOF 21500 21501 21502echo "$as_me:$LINENO: checking for u_int16_t" >&5 21503echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 21504if test "${ac_cv_type_u_int16_t+set}" = set; then 21505 echo $ECHO_N "(cached) $ECHO_C" >&6 21506else 21507 cat >conftest.$ac_ext <<_ACEOF 21508/* confdefs.h. */ 21509_ACEOF 21510cat confdefs.h >>conftest.$ac_ext 21511cat >>conftest.$ac_ext <<_ACEOF 21512/* end confdefs.h. */ 21513$ac_includes_default 21514int 21515main () 21516{ 21517if ((u_int16_t *) 0) 21518 return 0; 21519if (sizeof (u_int16_t)) 21520 return 0; 21521 ; 21522 return 0; 21523} 21524_ACEOF 21525rm -f conftest.$ac_objext 21526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21527 (eval $ac_compile) 2>conftest.er1 21528 ac_status=$? 21529 grep -v '^ *+' conftest.er1 >conftest.err 21530 rm -f conftest.er1 21531 cat conftest.err >&5 21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21533 (exit $ac_status); } && 21534 { ac_try='test -z "$ac_c_werror_flag" 21535 || test ! -s conftest.err' 21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21537 (eval $ac_try) 2>&5 21538 ac_status=$? 21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21540 (exit $ac_status); }; } && 21541 { ac_try='test -s conftest.$ac_objext' 21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21543 (eval $ac_try) 2>&5 21544 ac_status=$? 21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21546 (exit $ac_status); }; }; then 21547 ac_cv_type_u_int16_t=yes 21548else 21549 echo "$as_me: failed program was:" >&5 21550sed 's/^/| /' conftest.$ac_ext >&5 21551 21552ac_cv_type_u_int16_t=no 21553fi 21554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21555fi 21556echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 21557echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 21558 21559echo "$as_me:$LINENO: checking size of u_int16_t" >&5 21560echo $ECHO_N "checking size of u_int16_t... $ECHO_C" >&6 21561if test "${ac_cv_sizeof_u_int16_t+set}" = set; then 21562 echo $ECHO_N "(cached) $ECHO_C" >&6 21563else 21564 if test "$ac_cv_type_u_int16_t" = yes; then 21565 # The cast to unsigned long works around a bug in the HP C Compiler 21566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21568 # This bug is HP SR number 8606223364. 21569 if test "$cross_compiling" = yes; then 21570 # Depending upon the size, compute the lo and hi bounds. 21571cat >conftest.$ac_ext <<_ACEOF 21572/* confdefs.h. */ 21573_ACEOF 21574cat confdefs.h >>conftest.$ac_ext 21575cat >>conftest.$ac_ext <<_ACEOF 21576/* end confdefs.h. */ 21577$ac_includes_default 21578int 21579main () 21580{ 21581static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) >= 0)]; 21582test_array [0] = 0 21583 21584 ; 21585 return 0; 21586} 21587_ACEOF 21588rm -f conftest.$ac_objext 21589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21590 (eval $ac_compile) 2>conftest.er1 21591 ac_status=$? 21592 grep -v '^ *+' conftest.er1 >conftest.err 21593 rm -f conftest.er1 21594 cat conftest.err >&5 21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21596 (exit $ac_status); } && 21597 { ac_try='test -z "$ac_c_werror_flag" 21598 || test ! -s conftest.err' 21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21600 (eval $ac_try) 2>&5 21601 ac_status=$? 21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21603 (exit $ac_status); }; } && 21604 { ac_try='test -s conftest.$ac_objext' 21605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21606 (eval $ac_try) 2>&5 21607 ac_status=$? 21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21609 (exit $ac_status); }; }; then 21610 ac_lo=0 ac_mid=0 21611 while :; do 21612 cat >conftest.$ac_ext <<_ACEOF 21613/* confdefs.h. */ 21614_ACEOF 21615cat confdefs.h >>conftest.$ac_ext 21616cat >>conftest.$ac_ext <<_ACEOF 21617/* end confdefs.h. */ 21618$ac_includes_default 21619int 21620main () 21621{ 21622static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) <= $ac_mid)]; 21623test_array [0] = 0 21624 21625 ; 21626 return 0; 21627} 21628_ACEOF 21629rm -f conftest.$ac_objext 21630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21631 (eval $ac_compile) 2>conftest.er1 21632 ac_status=$? 21633 grep -v '^ *+' conftest.er1 >conftest.err 21634 rm -f conftest.er1 21635 cat conftest.err >&5 21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21637 (exit $ac_status); } && 21638 { ac_try='test -z "$ac_c_werror_flag" 21639 || test ! -s conftest.err' 21640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21641 (eval $ac_try) 2>&5 21642 ac_status=$? 21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21644 (exit $ac_status); }; } && 21645 { ac_try='test -s conftest.$ac_objext' 21646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21647 (eval $ac_try) 2>&5 21648 ac_status=$? 21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21650 (exit $ac_status); }; }; then 21651 ac_hi=$ac_mid; break 21652else 21653 echo "$as_me: failed program was:" >&5 21654sed 's/^/| /' conftest.$ac_ext >&5 21655 21656ac_lo=`expr $ac_mid + 1` 21657 if test $ac_lo -le $ac_mid; then 21658 ac_lo= ac_hi= 21659 break 21660 fi 21661 ac_mid=`expr 2 '*' $ac_mid + 1` 21662fi 21663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21664 done 21665else 21666 echo "$as_me: failed program was:" >&5 21667sed 's/^/| /' conftest.$ac_ext >&5 21668 21669cat >conftest.$ac_ext <<_ACEOF 21670/* confdefs.h. */ 21671_ACEOF 21672cat confdefs.h >>conftest.$ac_ext 21673cat >>conftest.$ac_ext <<_ACEOF 21674/* end confdefs.h. */ 21675$ac_includes_default 21676int 21677main () 21678{ 21679static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) < 0)]; 21680test_array [0] = 0 21681 21682 ; 21683 return 0; 21684} 21685_ACEOF 21686rm -f conftest.$ac_objext 21687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21688 (eval $ac_compile) 2>conftest.er1 21689 ac_status=$? 21690 grep -v '^ *+' conftest.er1 >conftest.err 21691 rm -f conftest.er1 21692 cat conftest.err >&5 21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21694 (exit $ac_status); } && 21695 { ac_try='test -z "$ac_c_werror_flag" 21696 || test ! -s conftest.err' 21697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21698 (eval $ac_try) 2>&5 21699 ac_status=$? 21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21701 (exit $ac_status); }; } && 21702 { ac_try='test -s conftest.$ac_objext' 21703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21704 (eval $ac_try) 2>&5 21705 ac_status=$? 21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21707 (exit $ac_status); }; }; then 21708 ac_hi=-1 ac_mid=-1 21709 while :; do 21710 cat >conftest.$ac_ext <<_ACEOF 21711/* confdefs.h. */ 21712_ACEOF 21713cat confdefs.h >>conftest.$ac_ext 21714cat >>conftest.$ac_ext <<_ACEOF 21715/* end confdefs.h. */ 21716$ac_includes_default 21717int 21718main () 21719{ 21720static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) >= $ac_mid)]; 21721test_array [0] = 0 21722 21723 ; 21724 return 0; 21725} 21726_ACEOF 21727rm -f conftest.$ac_objext 21728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21729 (eval $ac_compile) 2>conftest.er1 21730 ac_status=$? 21731 grep -v '^ *+' conftest.er1 >conftest.err 21732 rm -f conftest.er1 21733 cat conftest.err >&5 21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21735 (exit $ac_status); } && 21736 { ac_try='test -z "$ac_c_werror_flag" 21737 || test ! -s conftest.err' 21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21739 (eval $ac_try) 2>&5 21740 ac_status=$? 21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21742 (exit $ac_status); }; } && 21743 { ac_try='test -s conftest.$ac_objext' 21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21745 (eval $ac_try) 2>&5 21746 ac_status=$? 21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21748 (exit $ac_status); }; }; then 21749 ac_lo=$ac_mid; break 21750else 21751 echo "$as_me: failed program was:" >&5 21752sed 's/^/| /' conftest.$ac_ext >&5 21753 21754ac_hi=`expr '(' $ac_mid ')' - 1` 21755 if test $ac_mid -le $ac_hi; then 21756 ac_lo= ac_hi= 21757 break 21758 fi 21759 ac_mid=`expr 2 '*' $ac_mid` 21760fi 21761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21762 done 21763else 21764 echo "$as_me: failed program was:" >&5 21765sed 's/^/| /' conftest.$ac_ext >&5 21766 21767ac_lo= ac_hi= 21768fi 21769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21770fi 21771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21772# Binary search between lo and hi bounds. 21773while test "x$ac_lo" != "x$ac_hi"; do 21774 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 21775 cat >conftest.$ac_ext <<_ACEOF 21776/* confdefs.h. */ 21777_ACEOF 21778cat confdefs.h >>conftest.$ac_ext 21779cat >>conftest.$ac_ext <<_ACEOF 21780/* end confdefs.h. */ 21781$ac_includes_default 21782int 21783main () 21784{ 21785static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) <= $ac_mid)]; 21786test_array [0] = 0 21787 21788 ; 21789 return 0; 21790} 21791_ACEOF 21792rm -f conftest.$ac_objext 21793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21794 (eval $ac_compile) 2>conftest.er1 21795 ac_status=$? 21796 grep -v '^ *+' conftest.er1 >conftest.err 21797 rm -f conftest.er1 21798 cat conftest.err >&5 21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21800 (exit $ac_status); } && 21801 { ac_try='test -z "$ac_c_werror_flag" 21802 || test ! -s conftest.err' 21803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21804 (eval $ac_try) 2>&5 21805 ac_status=$? 21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21807 (exit $ac_status); }; } && 21808 { ac_try='test -s conftest.$ac_objext' 21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21810 (eval $ac_try) 2>&5 21811 ac_status=$? 21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21813 (exit $ac_status); }; }; then 21814 ac_hi=$ac_mid 21815else 21816 echo "$as_me: failed program was:" >&5 21817sed 's/^/| /' conftest.$ac_ext >&5 21818 21819ac_lo=`expr '(' $ac_mid ')' + 1` 21820fi 21821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21822done 21823case $ac_lo in 21824?*) ac_cv_sizeof_u_int16_t=$ac_lo;; 21825'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int16_t), 77 21826See \`config.log' for more details." >&5 21827echo "$as_me: error: cannot compute sizeof (u_int16_t), 77 21828See \`config.log' for more details." >&2;} 21829 { (exit 1); exit 1; }; } ;; 21830esac 21831else 21832 if test "$cross_compiling" = yes; then 21833 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21834See \`config.log' for more details." >&5 21835echo "$as_me: error: cannot run test program while cross compiling 21836See \`config.log' for more details." >&2;} 21837 { (exit 1); exit 1; }; } 21838else 21839 cat >conftest.$ac_ext <<_ACEOF 21840/* confdefs.h. */ 21841_ACEOF 21842cat confdefs.h >>conftest.$ac_ext 21843cat >>conftest.$ac_ext <<_ACEOF 21844/* end confdefs.h. */ 21845$ac_includes_default 21846long longval () { return (long) (sizeof (u_int16_t)); } 21847unsigned long ulongval () { return (long) (sizeof (u_int16_t)); } 21848#include <stdio.h> 21849#include <stdlib.h> 21850int 21851main () 21852{ 21853 21854 FILE *f = fopen ("conftest.val", "w"); 21855 if (! f) 21856 exit (1); 21857 if (((long) (sizeof (u_int16_t))) < 0) 21858 { 21859 long i = longval (); 21860 if (i != ((long) (sizeof (u_int16_t)))) 21861 exit (1); 21862 fprintf (f, "%ld\n", i); 21863 } 21864 else 21865 { 21866 unsigned long i = ulongval (); 21867 if (i != ((long) (sizeof (u_int16_t)))) 21868 exit (1); 21869 fprintf (f, "%lu\n", i); 21870 } 21871 exit (ferror (f) || fclose (f) != 0); 21872 21873 ; 21874 return 0; 21875} 21876_ACEOF 21877rm -f conftest$ac_exeext 21878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21879 (eval $ac_link) 2>&5 21880 ac_status=$? 21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21884 (eval $ac_try) 2>&5 21885 ac_status=$? 21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21887 (exit $ac_status); }; }; then 21888 ac_cv_sizeof_u_int16_t=`cat conftest.val` 21889else 21890 echo "$as_me: program exited with status $ac_status" >&5 21891echo "$as_me: failed program was:" >&5 21892sed 's/^/| /' conftest.$ac_ext >&5 21893 21894( exit $ac_status ) 21895{ { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int16_t), 77 21896See \`config.log' for more details." >&5 21897echo "$as_me: error: cannot compute sizeof (u_int16_t), 77 21898See \`config.log' for more details." >&2;} 21899 { (exit 1); exit 1; }; } 21900fi 21901rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21902fi 21903fi 21904rm -f conftest.val 21905else 21906 ac_cv_sizeof_u_int16_t=0 21907fi 21908fi 21909echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int16_t" >&5 21910echo "${ECHO_T}$ac_cv_sizeof_u_int16_t" >&6 21911cat >>confdefs.h <<_ACEOF 21912#define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t 21913_ACEOF 21914 21915 21916echo "$as_me:$LINENO: checking for unsigned short int" >&5 21917echo $ECHO_N "checking for unsigned short int... $ECHO_C" >&6 21918if test "${ac_cv_type_unsigned_short_int+set}" = set; then 21919 echo $ECHO_N "(cached) $ECHO_C" >&6 21920else 21921 cat >conftest.$ac_ext <<_ACEOF 21922/* confdefs.h. */ 21923_ACEOF 21924cat confdefs.h >>conftest.$ac_ext 21925cat >>conftest.$ac_ext <<_ACEOF 21926/* end confdefs.h. */ 21927$ac_includes_default 21928int 21929main () 21930{ 21931if ((unsigned short int *) 0) 21932 return 0; 21933if (sizeof (unsigned short int)) 21934 return 0; 21935 ; 21936 return 0; 21937} 21938_ACEOF 21939rm -f conftest.$ac_objext 21940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21941 (eval $ac_compile) 2>conftest.er1 21942 ac_status=$? 21943 grep -v '^ *+' conftest.er1 >conftest.err 21944 rm -f conftest.er1 21945 cat conftest.err >&5 21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21947 (exit $ac_status); } && 21948 { ac_try='test -z "$ac_c_werror_flag" 21949 || test ! -s conftest.err' 21950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21951 (eval $ac_try) 2>&5 21952 ac_status=$? 21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21954 (exit $ac_status); }; } && 21955 { ac_try='test -s conftest.$ac_objext' 21956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21957 (eval $ac_try) 2>&5 21958 ac_status=$? 21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21960 (exit $ac_status); }; }; then 21961 ac_cv_type_unsigned_short_int=yes 21962else 21963 echo "$as_me: failed program was:" >&5 21964sed 's/^/| /' conftest.$ac_ext >&5 21965 21966ac_cv_type_unsigned_short_int=no 21967fi 21968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21969fi 21970echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short_int" >&5 21971echo "${ECHO_T}$ac_cv_type_unsigned_short_int" >&6 21972 21973echo "$as_me:$LINENO: checking size of unsigned short int" >&5 21974echo $ECHO_N "checking size of unsigned short int... $ECHO_C" >&6 21975if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then 21976 echo $ECHO_N "(cached) $ECHO_C" >&6 21977else 21978 if test "$ac_cv_type_unsigned_short_int" = yes; then 21979 # The cast to unsigned long works around a bug in the HP C Compiler 21980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21982 # This bug is HP SR number 8606223364. 21983 if test "$cross_compiling" = yes; then 21984 # Depending upon the size, compute the lo and hi bounds. 21985cat >conftest.$ac_ext <<_ACEOF 21986/* confdefs.h. */ 21987_ACEOF 21988cat confdefs.h >>conftest.$ac_ext 21989cat >>conftest.$ac_ext <<_ACEOF 21990/* end confdefs.h. */ 21991$ac_includes_default 21992int 21993main () 21994{ 21995static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) >= 0)]; 21996test_array [0] = 0 21997 21998 ; 21999 return 0; 22000} 22001_ACEOF 22002rm -f conftest.$ac_objext 22003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22004 (eval $ac_compile) 2>conftest.er1 22005 ac_status=$? 22006 grep -v '^ *+' conftest.er1 >conftest.err 22007 rm -f conftest.er1 22008 cat conftest.err >&5 22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22010 (exit $ac_status); } && 22011 { ac_try='test -z "$ac_c_werror_flag" 22012 || test ! -s conftest.err' 22013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22014 (eval $ac_try) 2>&5 22015 ac_status=$? 22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22017 (exit $ac_status); }; } && 22018 { ac_try='test -s conftest.$ac_objext' 22019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22020 (eval $ac_try) 2>&5 22021 ac_status=$? 22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22023 (exit $ac_status); }; }; then 22024 ac_lo=0 ac_mid=0 22025 while :; do 22026 cat >conftest.$ac_ext <<_ACEOF 22027/* confdefs.h. */ 22028_ACEOF 22029cat confdefs.h >>conftest.$ac_ext 22030cat >>conftest.$ac_ext <<_ACEOF 22031/* end confdefs.h. */ 22032$ac_includes_default 22033int 22034main () 22035{ 22036static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) <= $ac_mid)]; 22037test_array [0] = 0 22038 22039 ; 22040 return 0; 22041} 22042_ACEOF 22043rm -f conftest.$ac_objext 22044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22045 (eval $ac_compile) 2>conftest.er1 22046 ac_status=$? 22047 grep -v '^ *+' conftest.er1 >conftest.err 22048 rm -f conftest.er1 22049 cat conftest.err >&5 22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22051 (exit $ac_status); } && 22052 { ac_try='test -z "$ac_c_werror_flag" 22053 || test ! -s conftest.err' 22054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22055 (eval $ac_try) 2>&5 22056 ac_status=$? 22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22058 (exit $ac_status); }; } && 22059 { ac_try='test -s conftest.$ac_objext' 22060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22061 (eval $ac_try) 2>&5 22062 ac_status=$? 22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22064 (exit $ac_status); }; }; then 22065 ac_hi=$ac_mid; break 22066else 22067 echo "$as_me: failed program was:" >&5 22068sed 's/^/| /' conftest.$ac_ext >&5 22069 22070ac_lo=`expr $ac_mid + 1` 22071 if test $ac_lo -le $ac_mid; then 22072 ac_lo= ac_hi= 22073 break 22074 fi 22075 ac_mid=`expr 2 '*' $ac_mid + 1` 22076fi 22077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22078 done 22079else 22080 echo "$as_me: failed program was:" >&5 22081sed 's/^/| /' conftest.$ac_ext >&5 22082 22083cat >conftest.$ac_ext <<_ACEOF 22084/* confdefs.h. */ 22085_ACEOF 22086cat confdefs.h >>conftest.$ac_ext 22087cat >>conftest.$ac_ext <<_ACEOF 22088/* end confdefs.h. */ 22089$ac_includes_default 22090int 22091main () 22092{ 22093static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) < 0)]; 22094test_array [0] = 0 22095 22096 ; 22097 return 0; 22098} 22099_ACEOF 22100rm -f conftest.$ac_objext 22101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22102 (eval $ac_compile) 2>conftest.er1 22103 ac_status=$? 22104 grep -v '^ *+' conftest.er1 >conftest.err 22105 rm -f conftest.er1 22106 cat conftest.err >&5 22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22108 (exit $ac_status); } && 22109 { ac_try='test -z "$ac_c_werror_flag" 22110 || test ! -s conftest.err' 22111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22112 (eval $ac_try) 2>&5 22113 ac_status=$? 22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22115 (exit $ac_status); }; } && 22116 { ac_try='test -s conftest.$ac_objext' 22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22118 (eval $ac_try) 2>&5 22119 ac_status=$? 22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22121 (exit $ac_status); }; }; then 22122 ac_hi=-1 ac_mid=-1 22123 while :; do 22124 cat >conftest.$ac_ext <<_ACEOF 22125/* confdefs.h. */ 22126_ACEOF 22127cat confdefs.h >>conftest.$ac_ext 22128cat >>conftest.$ac_ext <<_ACEOF 22129/* end confdefs.h. */ 22130$ac_includes_default 22131int 22132main () 22133{ 22134static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) >= $ac_mid)]; 22135test_array [0] = 0 22136 22137 ; 22138 return 0; 22139} 22140_ACEOF 22141rm -f conftest.$ac_objext 22142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22143 (eval $ac_compile) 2>conftest.er1 22144 ac_status=$? 22145 grep -v '^ *+' conftest.er1 >conftest.err 22146 rm -f conftest.er1 22147 cat conftest.err >&5 22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22149 (exit $ac_status); } && 22150 { ac_try='test -z "$ac_c_werror_flag" 22151 || test ! -s conftest.err' 22152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22153 (eval $ac_try) 2>&5 22154 ac_status=$? 22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22156 (exit $ac_status); }; } && 22157 { ac_try='test -s conftest.$ac_objext' 22158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22159 (eval $ac_try) 2>&5 22160 ac_status=$? 22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22162 (exit $ac_status); }; }; then 22163 ac_lo=$ac_mid; break 22164else 22165 echo "$as_me: failed program was:" >&5 22166sed 's/^/| /' conftest.$ac_ext >&5 22167 22168ac_hi=`expr '(' $ac_mid ')' - 1` 22169 if test $ac_mid -le $ac_hi; then 22170 ac_lo= ac_hi= 22171 break 22172 fi 22173 ac_mid=`expr 2 '*' $ac_mid` 22174fi 22175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22176 done 22177else 22178 echo "$as_me: failed program was:" >&5 22179sed 's/^/| /' conftest.$ac_ext >&5 22180 22181ac_lo= ac_hi= 22182fi 22183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22184fi 22185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22186# Binary search between lo and hi bounds. 22187while test "x$ac_lo" != "x$ac_hi"; do 22188 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 22189 cat >conftest.$ac_ext <<_ACEOF 22190/* confdefs.h. */ 22191_ACEOF 22192cat confdefs.h >>conftest.$ac_ext 22193cat >>conftest.$ac_ext <<_ACEOF 22194/* end confdefs.h. */ 22195$ac_includes_default 22196int 22197main () 22198{ 22199static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) <= $ac_mid)]; 22200test_array [0] = 0 22201 22202 ; 22203 return 0; 22204} 22205_ACEOF 22206rm -f conftest.$ac_objext 22207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22208 (eval $ac_compile) 2>conftest.er1 22209 ac_status=$? 22210 grep -v '^ *+' conftest.er1 >conftest.err 22211 rm -f conftest.er1 22212 cat conftest.err >&5 22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22214 (exit $ac_status); } && 22215 { ac_try='test -z "$ac_c_werror_flag" 22216 || test ! -s conftest.err' 22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22218 (eval $ac_try) 2>&5 22219 ac_status=$? 22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22221 (exit $ac_status); }; } && 22222 { ac_try='test -s conftest.$ac_objext' 22223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22224 (eval $ac_try) 2>&5 22225 ac_status=$? 22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22227 (exit $ac_status); }; }; then 22228 ac_hi=$ac_mid 22229else 22230 echo "$as_me: failed program was:" >&5 22231sed 's/^/| /' conftest.$ac_ext >&5 22232 22233ac_lo=`expr '(' $ac_mid ')' + 1` 22234fi 22235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22236done 22237case $ac_lo in 22238?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;; 22239'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77 22240See \`config.log' for more details." >&5 22241echo "$as_me: error: cannot compute sizeof (unsigned short int), 77 22242See \`config.log' for more details." >&2;} 22243 { (exit 1); exit 1; }; } ;; 22244esac 22245else 22246 if test "$cross_compiling" = yes; then 22247 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 22248See \`config.log' for more details." >&5 22249echo "$as_me: error: cannot run test program while cross compiling 22250See \`config.log' for more details." >&2;} 22251 { (exit 1); exit 1; }; } 22252else 22253 cat >conftest.$ac_ext <<_ACEOF 22254/* confdefs.h. */ 22255_ACEOF 22256cat confdefs.h >>conftest.$ac_ext 22257cat >>conftest.$ac_ext <<_ACEOF 22258/* end confdefs.h. */ 22259$ac_includes_default 22260long longval () { return (long) (sizeof (unsigned short int)); } 22261unsigned long ulongval () { return (long) (sizeof (unsigned short int)); } 22262#include <stdio.h> 22263#include <stdlib.h> 22264int 22265main () 22266{ 22267 22268 FILE *f = fopen ("conftest.val", "w"); 22269 if (! f) 22270 exit (1); 22271 if (((long) (sizeof (unsigned short int))) < 0) 22272 { 22273 long i = longval (); 22274 if (i != ((long) (sizeof (unsigned short int)))) 22275 exit (1); 22276 fprintf (f, "%ld\n", i); 22277 } 22278 else 22279 { 22280 unsigned long i = ulongval (); 22281 if (i != ((long) (sizeof (unsigned short int)))) 22282 exit (1); 22283 fprintf (f, "%lu\n", i); 22284 } 22285 exit (ferror (f) || fclose (f) != 0); 22286 22287 ; 22288 return 0; 22289} 22290_ACEOF 22291rm -f conftest$ac_exeext 22292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22293 (eval $ac_link) 2>&5 22294 ac_status=$? 22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22298 (eval $ac_try) 2>&5 22299 ac_status=$? 22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22301 (exit $ac_status); }; }; then 22302 ac_cv_sizeof_unsigned_short_int=`cat conftest.val` 22303else 22304 echo "$as_me: program exited with status $ac_status" >&5 22305echo "$as_me: failed program was:" >&5 22306sed 's/^/| /' conftest.$ac_ext >&5 22307 22308( exit $ac_status ) 22309{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77 22310See \`config.log' for more details." >&5 22311echo "$as_me: error: cannot compute sizeof (unsigned short int), 77 22312See \`config.log' for more details." >&2;} 22313 { (exit 1); exit 1; }; } 22314fi 22315rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22316fi 22317fi 22318rm -f conftest.val 22319else 22320 ac_cv_sizeof_unsigned_short_int=0 22321fi 22322fi 22323echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5 22324echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6 22325cat >>confdefs.h <<_ACEOF 22326#define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int 22327_ACEOF 22328 22329 22330if test "$ac_cv_sizeof_uint16_t" = "2"; then 22331 mcm_uint_16="typedef uint16_t u_int16_t;" 22332elif test "$ac_cv_sizeof_u_int16_t" = "2"; then 22333 mcm_uint_16="" 22334elif test "$ac_cv_sizeof_unsigned_short_int" = "2"; then 22335 mcm_uint_16="typedef unsigned short int u_int16_t;" 22336else 22337 { { echo "$as_me:$LINENO: error: could not detect a 16-bit integer type" >&5 22338echo "$as_me: error: could not detect a 16-bit integer type" >&2;} 22339 { (exit 1); exit 1; }; } 22340fi 22341 22342 22343echo "$as_me:$LINENO: checking for uint32_t" >&5 22344echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 22345if test "${ac_cv_type_uint32_t+set}" = set; then 22346 echo $ECHO_N "(cached) $ECHO_C" >&6 22347else 22348 cat >conftest.$ac_ext <<_ACEOF 22349/* confdefs.h. */ 22350_ACEOF 22351cat confdefs.h >>conftest.$ac_ext 22352cat >>conftest.$ac_ext <<_ACEOF 22353/* end confdefs.h. */ 22354$ac_includes_default 22355int 22356main () 22357{ 22358if ((uint32_t *) 0) 22359 return 0; 22360if (sizeof (uint32_t)) 22361 return 0; 22362 ; 22363 return 0; 22364} 22365_ACEOF 22366rm -f conftest.$ac_objext 22367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22368 (eval $ac_compile) 2>conftest.er1 22369 ac_status=$? 22370 grep -v '^ *+' conftest.er1 >conftest.err 22371 rm -f conftest.er1 22372 cat conftest.err >&5 22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22374 (exit $ac_status); } && 22375 { ac_try='test -z "$ac_c_werror_flag" 22376 || test ! -s conftest.err' 22377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22378 (eval $ac_try) 2>&5 22379 ac_status=$? 22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22381 (exit $ac_status); }; } && 22382 { ac_try='test -s conftest.$ac_objext' 22383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22384 (eval $ac_try) 2>&5 22385 ac_status=$? 22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22387 (exit $ac_status); }; }; then 22388 ac_cv_type_uint32_t=yes 22389else 22390 echo "$as_me: failed program was:" >&5 22391sed 's/^/| /' conftest.$ac_ext >&5 22392 22393ac_cv_type_uint32_t=no 22394fi 22395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22396fi 22397echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 22398echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 22399 22400echo "$as_me:$LINENO: checking size of uint32_t" >&5 22401echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6 22402if test "${ac_cv_sizeof_uint32_t+set}" = set; then 22403 echo $ECHO_N "(cached) $ECHO_C" >&6 22404else 22405 if test "$ac_cv_type_uint32_t" = yes; then 22406 # The cast to unsigned long works around a bug in the HP C Compiler 22407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22409 # This bug is HP SR number 8606223364. 22410 if test "$cross_compiling" = yes; then 22411 # Depending upon the size, compute the lo and hi bounds. 22412cat >conftest.$ac_ext <<_ACEOF 22413/* confdefs.h. */ 22414_ACEOF 22415cat confdefs.h >>conftest.$ac_ext 22416cat >>conftest.$ac_ext <<_ACEOF 22417/* end confdefs.h. */ 22418$ac_includes_default 22419int 22420main () 22421{ 22422static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) >= 0)]; 22423test_array [0] = 0 22424 22425 ; 22426 return 0; 22427} 22428_ACEOF 22429rm -f conftest.$ac_objext 22430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22431 (eval $ac_compile) 2>conftest.er1 22432 ac_status=$? 22433 grep -v '^ *+' conftest.er1 >conftest.err 22434 rm -f conftest.er1 22435 cat conftest.err >&5 22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22437 (exit $ac_status); } && 22438 { ac_try='test -z "$ac_c_werror_flag" 22439 || test ! -s conftest.err' 22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22441 (eval $ac_try) 2>&5 22442 ac_status=$? 22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22444 (exit $ac_status); }; } && 22445 { ac_try='test -s conftest.$ac_objext' 22446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22447 (eval $ac_try) 2>&5 22448 ac_status=$? 22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22450 (exit $ac_status); }; }; then 22451 ac_lo=0 ac_mid=0 22452 while :; do 22453 cat >conftest.$ac_ext <<_ACEOF 22454/* confdefs.h. */ 22455_ACEOF 22456cat confdefs.h >>conftest.$ac_ext 22457cat >>conftest.$ac_ext <<_ACEOF 22458/* end confdefs.h. */ 22459$ac_includes_default 22460int 22461main () 22462{ 22463static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) <= $ac_mid)]; 22464test_array [0] = 0 22465 22466 ; 22467 return 0; 22468} 22469_ACEOF 22470rm -f conftest.$ac_objext 22471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22472 (eval $ac_compile) 2>conftest.er1 22473 ac_status=$? 22474 grep -v '^ *+' conftest.er1 >conftest.err 22475 rm -f conftest.er1 22476 cat conftest.err >&5 22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22478 (exit $ac_status); } && 22479 { ac_try='test -z "$ac_c_werror_flag" 22480 || test ! -s conftest.err' 22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22482 (eval $ac_try) 2>&5 22483 ac_status=$? 22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22485 (exit $ac_status); }; } && 22486 { ac_try='test -s conftest.$ac_objext' 22487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22488 (eval $ac_try) 2>&5 22489 ac_status=$? 22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22491 (exit $ac_status); }; }; then 22492 ac_hi=$ac_mid; break 22493else 22494 echo "$as_me: failed program was:" >&5 22495sed 's/^/| /' conftest.$ac_ext >&5 22496 22497ac_lo=`expr $ac_mid + 1` 22498 if test $ac_lo -le $ac_mid; then 22499 ac_lo= ac_hi= 22500 break 22501 fi 22502 ac_mid=`expr 2 '*' $ac_mid + 1` 22503fi 22504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22505 done 22506else 22507 echo "$as_me: failed program was:" >&5 22508sed 's/^/| /' conftest.$ac_ext >&5 22509 22510cat >conftest.$ac_ext <<_ACEOF 22511/* confdefs.h. */ 22512_ACEOF 22513cat confdefs.h >>conftest.$ac_ext 22514cat >>conftest.$ac_ext <<_ACEOF 22515/* end confdefs.h. */ 22516$ac_includes_default 22517int 22518main () 22519{ 22520static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) < 0)]; 22521test_array [0] = 0 22522 22523 ; 22524 return 0; 22525} 22526_ACEOF 22527rm -f conftest.$ac_objext 22528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22529 (eval $ac_compile) 2>conftest.er1 22530 ac_status=$? 22531 grep -v '^ *+' conftest.er1 >conftest.err 22532 rm -f conftest.er1 22533 cat conftest.err >&5 22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22535 (exit $ac_status); } && 22536 { ac_try='test -z "$ac_c_werror_flag" 22537 || test ! -s conftest.err' 22538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22539 (eval $ac_try) 2>&5 22540 ac_status=$? 22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22542 (exit $ac_status); }; } && 22543 { ac_try='test -s conftest.$ac_objext' 22544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22545 (eval $ac_try) 2>&5 22546 ac_status=$? 22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22548 (exit $ac_status); }; }; then 22549 ac_hi=-1 ac_mid=-1 22550 while :; do 22551 cat >conftest.$ac_ext <<_ACEOF 22552/* confdefs.h. */ 22553_ACEOF 22554cat confdefs.h >>conftest.$ac_ext 22555cat >>conftest.$ac_ext <<_ACEOF 22556/* end confdefs.h. */ 22557$ac_includes_default 22558int 22559main () 22560{ 22561static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) >= $ac_mid)]; 22562test_array [0] = 0 22563 22564 ; 22565 return 0; 22566} 22567_ACEOF 22568rm -f conftest.$ac_objext 22569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22570 (eval $ac_compile) 2>conftest.er1 22571 ac_status=$? 22572 grep -v '^ *+' conftest.er1 >conftest.err 22573 rm -f conftest.er1 22574 cat conftest.err >&5 22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22576 (exit $ac_status); } && 22577 { ac_try='test -z "$ac_c_werror_flag" 22578 || test ! -s conftest.err' 22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22580 (eval $ac_try) 2>&5 22581 ac_status=$? 22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22583 (exit $ac_status); }; } && 22584 { ac_try='test -s conftest.$ac_objext' 22585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22586 (eval $ac_try) 2>&5 22587 ac_status=$? 22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22589 (exit $ac_status); }; }; then 22590 ac_lo=$ac_mid; break 22591else 22592 echo "$as_me: failed program was:" >&5 22593sed 's/^/| /' conftest.$ac_ext >&5 22594 22595ac_hi=`expr '(' $ac_mid ')' - 1` 22596 if test $ac_mid -le $ac_hi; then 22597 ac_lo= ac_hi= 22598 break 22599 fi 22600 ac_mid=`expr 2 '*' $ac_mid` 22601fi 22602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22603 done 22604else 22605 echo "$as_me: failed program was:" >&5 22606sed 's/^/| /' conftest.$ac_ext >&5 22607 22608ac_lo= ac_hi= 22609fi 22610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22611fi 22612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22613# Binary search between lo and hi bounds. 22614while test "x$ac_lo" != "x$ac_hi"; do 22615 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 22616 cat >conftest.$ac_ext <<_ACEOF 22617/* confdefs.h. */ 22618_ACEOF 22619cat confdefs.h >>conftest.$ac_ext 22620cat >>conftest.$ac_ext <<_ACEOF 22621/* end confdefs.h. */ 22622$ac_includes_default 22623int 22624main () 22625{ 22626static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) <= $ac_mid)]; 22627test_array [0] = 0 22628 22629 ; 22630 return 0; 22631} 22632_ACEOF 22633rm -f conftest.$ac_objext 22634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22635 (eval $ac_compile) 2>conftest.er1 22636 ac_status=$? 22637 grep -v '^ *+' conftest.er1 >conftest.err 22638 rm -f conftest.er1 22639 cat conftest.err >&5 22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22641 (exit $ac_status); } && 22642 { ac_try='test -z "$ac_c_werror_flag" 22643 || test ! -s conftest.err' 22644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22645 (eval $ac_try) 2>&5 22646 ac_status=$? 22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22648 (exit $ac_status); }; } && 22649 { ac_try='test -s conftest.$ac_objext' 22650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22651 (eval $ac_try) 2>&5 22652 ac_status=$? 22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22654 (exit $ac_status); }; }; then 22655 ac_hi=$ac_mid 22656else 22657 echo "$as_me: failed program was:" >&5 22658sed 's/^/| /' conftest.$ac_ext >&5 22659 22660ac_lo=`expr '(' $ac_mid ')' + 1` 22661fi 22662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22663done 22664case $ac_lo in 22665?*) ac_cv_sizeof_uint32_t=$ac_lo;; 22666'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint32_t), 77 22667See \`config.log' for more details." >&5 22668echo "$as_me: error: cannot compute sizeof (uint32_t), 77 22669See \`config.log' for more details." >&2;} 22670 { (exit 1); exit 1; }; } ;; 22671esac 22672else 22673 if test "$cross_compiling" = yes; then 22674 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 22675See \`config.log' for more details." >&5 22676echo "$as_me: error: cannot run test program while cross compiling 22677See \`config.log' for more details." >&2;} 22678 { (exit 1); exit 1; }; } 22679else 22680 cat >conftest.$ac_ext <<_ACEOF 22681/* confdefs.h. */ 22682_ACEOF 22683cat confdefs.h >>conftest.$ac_ext 22684cat >>conftest.$ac_ext <<_ACEOF 22685/* end confdefs.h. */ 22686$ac_includes_default 22687long longval () { return (long) (sizeof (uint32_t)); } 22688unsigned long ulongval () { return (long) (sizeof (uint32_t)); } 22689#include <stdio.h> 22690#include <stdlib.h> 22691int 22692main () 22693{ 22694 22695 FILE *f = fopen ("conftest.val", "w"); 22696 if (! f) 22697 exit (1); 22698 if (((long) (sizeof (uint32_t))) < 0) 22699 { 22700 long i = longval (); 22701 if (i != ((long) (sizeof (uint32_t)))) 22702 exit (1); 22703 fprintf (f, "%ld\n", i); 22704 } 22705 else 22706 { 22707 unsigned long i = ulongval (); 22708 if (i != ((long) (sizeof (uint32_t)))) 22709 exit (1); 22710 fprintf (f, "%lu\n", i); 22711 } 22712 exit (ferror (f) || fclose (f) != 0); 22713 22714 ; 22715 return 0; 22716} 22717_ACEOF 22718rm -f conftest$ac_exeext 22719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22720 (eval $ac_link) 2>&5 22721 ac_status=$? 22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22725 (eval $ac_try) 2>&5 22726 ac_status=$? 22727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22728 (exit $ac_status); }; }; then 22729 ac_cv_sizeof_uint32_t=`cat conftest.val` 22730else 22731 echo "$as_me: program exited with status $ac_status" >&5 22732echo "$as_me: failed program was:" >&5 22733sed 's/^/| /' conftest.$ac_ext >&5 22734 22735( exit $ac_status ) 22736{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint32_t), 77 22737See \`config.log' for more details." >&5 22738echo "$as_me: error: cannot compute sizeof (uint32_t), 77 22739See \`config.log' for more details." >&2;} 22740 { (exit 1); exit 1; }; } 22741fi 22742rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22743fi 22744fi 22745rm -f conftest.val 22746else 22747 ac_cv_sizeof_uint32_t=0 22748fi 22749fi 22750echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5 22751echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6 22752cat >>confdefs.h <<_ACEOF 22753#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t 22754_ACEOF 22755 22756 22757echo "$as_me:$LINENO: checking for u_int32_t" >&5 22758echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 22759if test "${ac_cv_type_u_int32_t+set}" = set; then 22760 echo $ECHO_N "(cached) $ECHO_C" >&6 22761else 22762 cat >conftest.$ac_ext <<_ACEOF 22763/* confdefs.h. */ 22764_ACEOF 22765cat confdefs.h >>conftest.$ac_ext 22766cat >>conftest.$ac_ext <<_ACEOF 22767/* end confdefs.h. */ 22768$ac_includes_default 22769int 22770main () 22771{ 22772if ((u_int32_t *) 0) 22773 return 0; 22774if (sizeof (u_int32_t)) 22775 return 0; 22776 ; 22777 return 0; 22778} 22779_ACEOF 22780rm -f conftest.$ac_objext 22781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22782 (eval $ac_compile) 2>conftest.er1 22783 ac_status=$? 22784 grep -v '^ *+' conftest.er1 >conftest.err 22785 rm -f conftest.er1 22786 cat conftest.err >&5 22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22788 (exit $ac_status); } && 22789 { ac_try='test -z "$ac_c_werror_flag" 22790 || test ! -s conftest.err' 22791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22792 (eval $ac_try) 2>&5 22793 ac_status=$? 22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22795 (exit $ac_status); }; } && 22796 { ac_try='test -s conftest.$ac_objext' 22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22798 (eval $ac_try) 2>&5 22799 ac_status=$? 22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22801 (exit $ac_status); }; }; then 22802 ac_cv_type_u_int32_t=yes 22803else 22804 echo "$as_me: failed program was:" >&5 22805sed 's/^/| /' conftest.$ac_ext >&5 22806 22807ac_cv_type_u_int32_t=no 22808fi 22809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22810fi 22811echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 22812echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 22813 22814echo "$as_me:$LINENO: checking size of u_int32_t" >&5 22815echo $ECHO_N "checking size of u_int32_t... $ECHO_C" >&6 22816if test "${ac_cv_sizeof_u_int32_t+set}" = set; then 22817 echo $ECHO_N "(cached) $ECHO_C" >&6 22818else 22819 if test "$ac_cv_type_u_int32_t" = yes; then 22820 # The cast to unsigned long works around a bug in the HP C Compiler 22821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22823 # This bug is HP SR number 8606223364. 22824 if test "$cross_compiling" = yes; then 22825 # Depending upon the size, compute the lo and hi bounds. 22826cat >conftest.$ac_ext <<_ACEOF 22827/* confdefs.h. */ 22828_ACEOF 22829cat confdefs.h >>conftest.$ac_ext 22830cat >>conftest.$ac_ext <<_ACEOF 22831/* end confdefs.h. */ 22832$ac_includes_default 22833int 22834main () 22835{ 22836static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) >= 0)]; 22837test_array [0] = 0 22838 22839 ; 22840 return 0; 22841} 22842_ACEOF 22843rm -f conftest.$ac_objext 22844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22845 (eval $ac_compile) 2>conftest.er1 22846 ac_status=$? 22847 grep -v '^ *+' conftest.er1 >conftest.err 22848 rm -f conftest.er1 22849 cat conftest.err >&5 22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22851 (exit $ac_status); } && 22852 { ac_try='test -z "$ac_c_werror_flag" 22853 || test ! -s conftest.err' 22854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22855 (eval $ac_try) 2>&5 22856 ac_status=$? 22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22858 (exit $ac_status); }; } && 22859 { ac_try='test -s conftest.$ac_objext' 22860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22861 (eval $ac_try) 2>&5 22862 ac_status=$? 22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22864 (exit $ac_status); }; }; then 22865 ac_lo=0 ac_mid=0 22866 while :; do 22867 cat >conftest.$ac_ext <<_ACEOF 22868/* confdefs.h. */ 22869_ACEOF 22870cat confdefs.h >>conftest.$ac_ext 22871cat >>conftest.$ac_ext <<_ACEOF 22872/* end confdefs.h. */ 22873$ac_includes_default 22874int 22875main () 22876{ 22877static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) <= $ac_mid)]; 22878test_array [0] = 0 22879 22880 ; 22881 return 0; 22882} 22883_ACEOF 22884rm -f conftest.$ac_objext 22885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22886 (eval $ac_compile) 2>conftest.er1 22887 ac_status=$? 22888 grep -v '^ *+' conftest.er1 >conftest.err 22889 rm -f conftest.er1 22890 cat conftest.err >&5 22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22892 (exit $ac_status); } && 22893 { ac_try='test -z "$ac_c_werror_flag" 22894 || test ! -s conftest.err' 22895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22896 (eval $ac_try) 2>&5 22897 ac_status=$? 22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22899 (exit $ac_status); }; } && 22900 { ac_try='test -s conftest.$ac_objext' 22901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22902 (eval $ac_try) 2>&5 22903 ac_status=$? 22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22905 (exit $ac_status); }; }; then 22906 ac_hi=$ac_mid; break 22907else 22908 echo "$as_me: failed program was:" >&5 22909sed 's/^/| /' conftest.$ac_ext >&5 22910 22911ac_lo=`expr $ac_mid + 1` 22912 if test $ac_lo -le $ac_mid; then 22913 ac_lo= ac_hi= 22914 break 22915 fi 22916 ac_mid=`expr 2 '*' $ac_mid + 1` 22917fi 22918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22919 done 22920else 22921 echo "$as_me: failed program was:" >&5 22922sed 's/^/| /' conftest.$ac_ext >&5 22923 22924cat >conftest.$ac_ext <<_ACEOF 22925/* confdefs.h. */ 22926_ACEOF 22927cat confdefs.h >>conftest.$ac_ext 22928cat >>conftest.$ac_ext <<_ACEOF 22929/* end confdefs.h. */ 22930$ac_includes_default 22931int 22932main () 22933{ 22934static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) < 0)]; 22935test_array [0] = 0 22936 22937 ; 22938 return 0; 22939} 22940_ACEOF 22941rm -f conftest.$ac_objext 22942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22943 (eval $ac_compile) 2>conftest.er1 22944 ac_status=$? 22945 grep -v '^ *+' conftest.er1 >conftest.err 22946 rm -f conftest.er1 22947 cat conftest.err >&5 22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22949 (exit $ac_status); } && 22950 { ac_try='test -z "$ac_c_werror_flag" 22951 || test ! -s conftest.err' 22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22953 (eval $ac_try) 2>&5 22954 ac_status=$? 22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22956 (exit $ac_status); }; } && 22957 { ac_try='test -s conftest.$ac_objext' 22958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22959 (eval $ac_try) 2>&5 22960 ac_status=$? 22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22962 (exit $ac_status); }; }; then 22963 ac_hi=-1 ac_mid=-1 22964 while :; do 22965 cat >conftest.$ac_ext <<_ACEOF 22966/* confdefs.h. */ 22967_ACEOF 22968cat confdefs.h >>conftest.$ac_ext 22969cat >>conftest.$ac_ext <<_ACEOF 22970/* end confdefs.h. */ 22971$ac_includes_default 22972int 22973main () 22974{ 22975static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) >= $ac_mid)]; 22976test_array [0] = 0 22977 22978 ; 22979 return 0; 22980} 22981_ACEOF 22982rm -f conftest.$ac_objext 22983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22984 (eval $ac_compile) 2>conftest.er1 22985 ac_status=$? 22986 grep -v '^ *+' conftest.er1 >conftest.err 22987 rm -f conftest.er1 22988 cat conftest.err >&5 22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22990 (exit $ac_status); } && 22991 { ac_try='test -z "$ac_c_werror_flag" 22992 || test ! -s conftest.err' 22993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22994 (eval $ac_try) 2>&5 22995 ac_status=$? 22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22997 (exit $ac_status); }; } && 22998 { ac_try='test -s conftest.$ac_objext' 22999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23000 (eval $ac_try) 2>&5 23001 ac_status=$? 23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23003 (exit $ac_status); }; }; then 23004 ac_lo=$ac_mid; break 23005else 23006 echo "$as_me: failed program was:" >&5 23007sed 's/^/| /' conftest.$ac_ext >&5 23008 23009ac_hi=`expr '(' $ac_mid ')' - 1` 23010 if test $ac_mid -le $ac_hi; then 23011 ac_lo= ac_hi= 23012 break 23013 fi 23014 ac_mid=`expr 2 '*' $ac_mid` 23015fi 23016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23017 done 23018else 23019 echo "$as_me: failed program was:" >&5 23020sed 's/^/| /' conftest.$ac_ext >&5 23021 23022ac_lo= ac_hi= 23023fi 23024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23025fi 23026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23027# Binary search between lo and hi bounds. 23028while test "x$ac_lo" != "x$ac_hi"; do 23029 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 23030 cat >conftest.$ac_ext <<_ACEOF 23031/* confdefs.h. */ 23032_ACEOF 23033cat confdefs.h >>conftest.$ac_ext 23034cat >>conftest.$ac_ext <<_ACEOF 23035/* end confdefs.h. */ 23036$ac_includes_default 23037int 23038main () 23039{ 23040static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) <= $ac_mid)]; 23041test_array [0] = 0 23042 23043 ; 23044 return 0; 23045} 23046_ACEOF 23047rm -f conftest.$ac_objext 23048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23049 (eval $ac_compile) 2>conftest.er1 23050 ac_status=$? 23051 grep -v '^ *+' conftest.er1 >conftest.err 23052 rm -f conftest.er1 23053 cat conftest.err >&5 23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23055 (exit $ac_status); } && 23056 { ac_try='test -z "$ac_c_werror_flag" 23057 || test ! -s conftest.err' 23058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23059 (eval $ac_try) 2>&5 23060 ac_status=$? 23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23062 (exit $ac_status); }; } && 23063 { ac_try='test -s conftest.$ac_objext' 23064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23065 (eval $ac_try) 2>&5 23066 ac_status=$? 23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23068 (exit $ac_status); }; }; then 23069 ac_hi=$ac_mid 23070else 23071 echo "$as_me: failed program was:" >&5 23072sed 's/^/| /' conftest.$ac_ext >&5 23073 23074ac_lo=`expr '(' $ac_mid ')' + 1` 23075fi 23076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23077done 23078case $ac_lo in 23079?*) ac_cv_sizeof_u_int32_t=$ac_lo;; 23080'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int32_t), 77 23081See \`config.log' for more details." >&5 23082echo "$as_me: error: cannot compute sizeof (u_int32_t), 77 23083See \`config.log' for more details." >&2;} 23084 { (exit 1); exit 1; }; } ;; 23085esac 23086else 23087 if test "$cross_compiling" = yes; then 23088 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 23089See \`config.log' for more details." >&5 23090echo "$as_me: error: cannot run test program while cross compiling 23091See \`config.log' for more details." >&2;} 23092 { (exit 1); exit 1; }; } 23093else 23094 cat >conftest.$ac_ext <<_ACEOF 23095/* confdefs.h. */ 23096_ACEOF 23097cat confdefs.h >>conftest.$ac_ext 23098cat >>conftest.$ac_ext <<_ACEOF 23099/* end confdefs.h. */ 23100$ac_includes_default 23101long longval () { return (long) (sizeof (u_int32_t)); } 23102unsigned long ulongval () { return (long) (sizeof (u_int32_t)); } 23103#include <stdio.h> 23104#include <stdlib.h> 23105int 23106main () 23107{ 23108 23109 FILE *f = fopen ("conftest.val", "w"); 23110 if (! f) 23111 exit (1); 23112 if (((long) (sizeof (u_int32_t))) < 0) 23113 { 23114 long i = longval (); 23115 if (i != ((long) (sizeof (u_int32_t)))) 23116 exit (1); 23117 fprintf (f, "%ld\n", i); 23118 } 23119 else 23120 { 23121 unsigned long i = ulongval (); 23122 if (i != ((long) (sizeof (u_int32_t)))) 23123 exit (1); 23124 fprintf (f, "%lu\n", i); 23125 } 23126 exit (ferror (f) || fclose (f) != 0); 23127 23128 ; 23129 return 0; 23130} 23131_ACEOF 23132rm -f conftest$ac_exeext 23133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23134 (eval $ac_link) 2>&5 23135 ac_status=$? 23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23139 (eval $ac_try) 2>&5 23140 ac_status=$? 23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23142 (exit $ac_status); }; }; then 23143 ac_cv_sizeof_u_int32_t=`cat conftest.val` 23144else 23145 echo "$as_me: program exited with status $ac_status" >&5 23146echo "$as_me: failed program was:" >&5 23147sed 's/^/| /' conftest.$ac_ext >&5 23148 23149( exit $ac_status ) 23150{ { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int32_t), 77 23151See \`config.log' for more details." >&5 23152echo "$as_me: error: cannot compute sizeof (u_int32_t), 77 23153See \`config.log' for more details." >&2;} 23154 { (exit 1); exit 1; }; } 23155fi 23156rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23157fi 23158fi 23159rm -f conftest.val 23160else 23161 ac_cv_sizeof_u_int32_t=0 23162fi 23163fi 23164echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int32_t" >&5 23165echo "${ECHO_T}$ac_cv_sizeof_u_int32_t" >&6 23166cat >>confdefs.h <<_ACEOF 23167#define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t 23168_ACEOF 23169 23170 23171echo "$as_me:$LINENO: checking for unsigned long" >&5 23172echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6 23173if test "${ac_cv_type_unsigned_long+set}" = set; then 23174 echo $ECHO_N "(cached) $ECHO_C" >&6 23175else 23176 cat >conftest.$ac_ext <<_ACEOF 23177/* confdefs.h. */ 23178_ACEOF 23179cat confdefs.h >>conftest.$ac_ext 23180cat >>conftest.$ac_ext <<_ACEOF 23181/* end confdefs.h. */ 23182$ac_includes_default 23183int 23184main () 23185{ 23186if ((unsigned long *) 0) 23187 return 0; 23188if (sizeof (unsigned long)) 23189 return 0; 23190 ; 23191 return 0; 23192} 23193_ACEOF 23194rm -f conftest.$ac_objext 23195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23196 (eval $ac_compile) 2>conftest.er1 23197 ac_status=$? 23198 grep -v '^ *+' conftest.er1 >conftest.err 23199 rm -f conftest.er1 23200 cat conftest.err >&5 23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23202 (exit $ac_status); } && 23203 { ac_try='test -z "$ac_c_werror_flag" 23204 || test ! -s conftest.err' 23205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23206 (eval $ac_try) 2>&5 23207 ac_status=$? 23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23209 (exit $ac_status); }; } && 23210 { ac_try='test -s conftest.$ac_objext' 23211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23212 (eval $ac_try) 2>&5 23213 ac_status=$? 23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23215 (exit $ac_status); }; }; then 23216 ac_cv_type_unsigned_long=yes 23217else 23218 echo "$as_me: failed program was:" >&5 23219sed 's/^/| /' conftest.$ac_ext >&5 23220 23221ac_cv_type_unsigned_long=no 23222fi 23223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23224fi 23225echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5 23226echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6 23227 23228echo "$as_me:$LINENO: checking size of unsigned long" >&5 23229echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6 23230if test "${ac_cv_sizeof_unsigned_long+set}" = set; then 23231 echo $ECHO_N "(cached) $ECHO_C" >&6 23232else 23233 if test "$ac_cv_type_unsigned_long" = yes; then 23234 # The cast to unsigned long works around a bug in the HP C Compiler 23235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23237 # This bug is HP SR number 8606223364. 23238 if test "$cross_compiling" = yes; then 23239 # Depending upon the size, compute the lo and hi bounds. 23240cat >conftest.$ac_ext <<_ACEOF 23241/* confdefs.h. */ 23242_ACEOF 23243cat confdefs.h >>conftest.$ac_ext 23244cat >>conftest.$ac_ext <<_ACEOF 23245/* end confdefs.h. */ 23246$ac_includes_default 23247int 23248main () 23249{ 23250static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)]; 23251test_array [0] = 0 23252 23253 ; 23254 return 0; 23255} 23256_ACEOF 23257rm -f conftest.$ac_objext 23258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23259 (eval $ac_compile) 2>conftest.er1 23260 ac_status=$? 23261 grep -v '^ *+' conftest.er1 >conftest.err 23262 rm -f conftest.er1 23263 cat conftest.err >&5 23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23265 (exit $ac_status); } && 23266 { ac_try='test -z "$ac_c_werror_flag" 23267 || test ! -s conftest.err' 23268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23269 (eval $ac_try) 2>&5 23270 ac_status=$? 23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23272 (exit $ac_status); }; } && 23273 { ac_try='test -s conftest.$ac_objext' 23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23275 (eval $ac_try) 2>&5 23276 ac_status=$? 23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23278 (exit $ac_status); }; }; then 23279 ac_lo=0 ac_mid=0 23280 while :; do 23281 cat >conftest.$ac_ext <<_ACEOF 23282/* confdefs.h. */ 23283_ACEOF 23284cat confdefs.h >>conftest.$ac_ext 23285cat >>conftest.$ac_ext <<_ACEOF 23286/* end confdefs.h. */ 23287$ac_includes_default 23288int 23289main () 23290{ 23291static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)]; 23292test_array [0] = 0 23293 23294 ; 23295 return 0; 23296} 23297_ACEOF 23298rm -f conftest.$ac_objext 23299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23300 (eval $ac_compile) 2>conftest.er1 23301 ac_status=$? 23302 grep -v '^ *+' conftest.er1 >conftest.err 23303 rm -f conftest.er1 23304 cat conftest.err >&5 23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23306 (exit $ac_status); } && 23307 { ac_try='test -z "$ac_c_werror_flag" 23308 || test ! -s conftest.err' 23309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23310 (eval $ac_try) 2>&5 23311 ac_status=$? 23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23313 (exit $ac_status); }; } && 23314 { ac_try='test -s conftest.$ac_objext' 23315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23316 (eval $ac_try) 2>&5 23317 ac_status=$? 23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23319 (exit $ac_status); }; }; then 23320 ac_hi=$ac_mid; break 23321else 23322 echo "$as_me: failed program was:" >&5 23323sed 's/^/| /' conftest.$ac_ext >&5 23324 23325ac_lo=`expr $ac_mid + 1` 23326 if test $ac_lo -le $ac_mid; then 23327 ac_lo= ac_hi= 23328 break 23329 fi 23330 ac_mid=`expr 2 '*' $ac_mid + 1` 23331fi 23332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23333 done 23334else 23335 echo "$as_me: failed program was:" >&5 23336sed 's/^/| /' conftest.$ac_ext >&5 23337 23338cat >conftest.$ac_ext <<_ACEOF 23339/* confdefs.h. */ 23340_ACEOF 23341cat confdefs.h >>conftest.$ac_ext 23342cat >>conftest.$ac_ext <<_ACEOF 23343/* end confdefs.h. */ 23344$ac_includes_default 23345int 23346main () 23347{ 23348static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)]; 23349test_array [0] = 0 23350 23351 ; 23352 return 0; 23353} 23354_ACEOF 23355rm -f conftest.$ac_objext 23356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23357 (eval $ac_compile) 2>conftest.er1 23358 ac_status=$? 23359 grep -v '^ *+' conftest.er1 >conftest.err 23360 rm -f conftest.er1 23361 cat conftest.err >&5 23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23363 (exit $ac_status); } && 23364 { ac_try='test -z "$ac_c_werror_flag" 23365 || test ! -s conftest.err' 23366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23367 (eval $ac_try) 2>&5 23368 ac_status=$? 23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23370 (exit $ac_status); }; } && 23371 { ac_try='test -s conftest.$ac_objext' 23372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23373 (eval $ac_try) 2>&5 23374 ac_status=$? 23375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23376 (exit $ac_status); }; }; then 23377 ac_hi=-1 ac_mid=-1 23378 while :; do 23379 cat >conftest.$ac_ext <<_ACEOF 23380/* confdefs.h. */ 23381_ACEOF 23382cat confdefs.h >>conftest.$ac_ext 23383cat >>conftest.$ac_ext <<_ACEOF 23384/* end confdefs.h. */ 23385$ac_includes_default 23386int 23387main () 23388{ 23389static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)]; 23390test_array [0] = 0 23391 23392 ; 23393 return 0; 23394} 23395_ACEOF 23396rm -f conftest.$ac_objext 23397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23398 (eval $ac_compile) 2>conftest.er1 23399 ac_status=$? 23400 grep -v '^ *+' conftest.er1 >conftest.err 23401 rm -f conftest.er1 23402 cat conftest.err >&5 23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23404 (exit $ac_status); } && 23405 { ac_try='test -z "$ac_c_werror_flag" 23406 || test ! -s conftest.err' 23407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23408 (eval $ac_try) 2>&5 23409 ac_status=$? 23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23411 (exit $ac_status); }; } && 23412 { ac_try='test -s conftest.$ac_objext' 23413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23414 (eval $ac_try) 2>&5 23415 ac_status=$? 23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23417 (exit $ac_status); }; }; then 23418 ac_lo=$ac_mid; break 23419else 23420 echo "$as_me: failed program was:" >&5 23421sed 's/^/| /' conftest.$ac_ext >&5 23422 23423ac_hi=`expr '(' $ac_mid ')' - 1` 23424 if test $ac_mid -le $ac_hi; then 23425 ac_lo= ac_hi= 23426 break 23427 fi 23428 ac_mid=`expr 2 '*' $ac_mid` 23429fi 23430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23431 done 23432else 23433 echo "$as_me: failed program was:" >&5 23434sed 's/^/| /' conftest.$ac_ext >&5 23435 23436ac_lo= ac_hi= 23437fi 23438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23439fi 23440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23441# Binary search between lo and hi bounds. 23442while test "x$ac_lo" != "x$ac_hi"; do 23443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 23444 cat >conftest.$ac_ext <<_ACEOF 23445/* confdefs.h. */ 23446_ACEOF 23447cat confdefs.h >>conftest.$ac_ext 23448cat >>conftest.$ac_ext <<_ACEOF 23449/* end confdefs.h. */ 23450$ac_includes_default 23451int 23452main () 23453{ 23454static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)]; 23455test_array [0] = 0 23456 23457 ; 23458 return 0; 23459} 23460_ACEOF 23461rm -f conftest.$ac_objext 23462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23463 (eval $ac_compile) 2>conftest.er1 23464 ac_status=$? 23465 grep -v '^ *+' conftest.er1 >conftest.err 23466 rm -f conftest.er1 23467 cat conftest.err >&5 23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23469 (exit $ac_status); } && 23470 { ac_try='test -z "$ac_c_werror_flag" 23471 || test ! -s conftest.err' 23472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23473 (eval $ac_try) 2>&5 23474 ac_status=$? 23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23476 (exit $ac_status); }; } && 23477 { ac_try='test -s conftest.$ac_objext' 23478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23479 (eval $ac_try) 2>&5 23480 ac_status=$? 23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23482 (exit $ac_status); }; }; then 23483 ac_hi=$ac_mid 23484else 23485 echo "$as_me: failed program was:" >&5 23486sed 's/^/| /' conftest.$ac_ext >&5 23487 23488ac_lo=`expr '(' $ac_mid ')' + 1` 23489fi 23490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23491done 23492case $ac_lo in 23493?*) ac_cv_sizeof_unsigned_long=$ac_lo;; 23494'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77 23495See \`config.log' for more details." >&5 23496echo "$as_me: error: cannot compute sizeof (unsigned long), 77 23497See \`config.log' for more details." >&2;} 23498 { (exit 1); exit 1; }; } ;; 23499esac 23500else 23501 if test "$cross_compiling" = yes; then 23502 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 23503See \`config.log' for more details." >&5 23504echo "$as_me: error: cannot run test program while cross compiling 23505See \`config.log' for more details." >&2;} 23506 { (exit 1); exit 1; }; } 23507else 23508 cat >conftest.$ac_ext <<_ACEOF 23509/* confdefs.h. */ 23510_ACEOF 23511cat confdefs.h >>conftest.$ac_ext 23512cat >>conftest.$ac_ext <<_ACEOF 23513/* end confdefs.h. */ 23514$ac_includes_default 23515long longval () { return (long) (sizeof (unsigned long)); } 23516unsigned long ulongval () { return (long) (sizeof (unsigned long)); } 23517#include <stdio.h> 23518#include <stdlib.h> 23519int 23520main () 23521{ 23522 23523 FILE *f = fopen ("conftest.val", "w"); 23524 if (! f) 23525 exit (1); 23526 if (((long) (sizeof (unsigned long))) < 0) 23527 { 23528 long i = longval (); 23529 if (i != ((long) (sizeof (unsigned long)))) 23530 exit (1); 23531 fprintf (f, "%ld\n", i); 23532 } 23533 else 23534 { 23535 unsigned long i = ulongval (); 23536 if (i != ((long) (sizeof (unsigned long)))) 23537 exit (1); 23538 fprintf (f, "%lu\n", i); 23539 } 23540 exit (ferror (f) || fclose (f) != 0); 23541 23542 ; 23543 return 0; 23544} 23545_ACEOF 23546rm -f conftest$ac_exeext 23547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23548 (eval $ac_link) 2>&5 23549 ac_status=$? 23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23553 (eval $ac_try) 2>&5 23554 ac_status=$? 23555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23556 (exit $ac_status); }; }; then 23557 ac_cv_sizeof_unsigned_long=`cat conftest.val` 23558else 23559 echo "$as_me: program exited with status $ac_status" >&5 23560echo "$as_me: failed program was:" >&5 23561sed 's/^/| /' conftest.$ac_ext >&5 23562 23563( exit $ac_status ) 23564{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77 23565See \`config.log' for more details." >&5 23566echo "$as_me: error: cannot compute sizeof (unsigned long), 77 23567See \`config.log' for more details." >&2;} 23568 { (exit 1); exit 1; }; } 23569fi 23570rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23571fi 23572fi 23573rm -f conftest.val 23574else 23575 ac_cv_sizeof_unsigned_long=0 23576fi 23577fi 23578echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5 23579echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6 23580cat >>confdefs.h <<_ACEOF 23581#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 23582_ACEOF 23583 23584 23585if test "$ac_cv_sizeof_uint32_t" = "4"; then 23586 mcm_uint_32="typedef uint32_t u_int32_t;" 23587elif test "$ac_cv_sizeof_u_int32_t" = "4"; then 23588 mcm_uint_32="" 23589elif test "$ac_cv_sizeof_unsigned_long" = "4"; then 23590 mcm_uint_32="typedef unsigned long u_int32_t;" 23591else 23592 { { echo "$as_me:$LINENO: error: could not detect a 32-bit integer type" >&5 23593echo "$as_me: error: could not detect a 32-bit integer type" >&2;} 23594 { (exit 1); exit 1; }; } 23595fi 23596 23597echo "$as_me:$LINENO: checking for unsigned int" >&5 23598echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6 23599if test "${ac_cv_type_unsigned_int+set}" = set; then 23600 echo $ECHO_N "(cached) $ECHO_C" >&6 23601else 23602 cat >conftest.$ac_ext <<_ACEOF 23603/* confdefs.h. */ 23604_ACEOF 23605cat confdefs.h >>conftest.$ac_ext 23606cat >>conftest.$ac_ext <<_ACEOF 23607/* end confdefs.h. */ 23608$ac_includes_default 23609int 23610main () 23611{ 23612if ((unsigned int *) 0) 23613 return 0; 23614if (sizeof (unsigned int)) 23615 return 0; 23616 ; 23617 return 0; 23618} 23619_ACEOF 23620rm -f conftest.$ac_objext 23621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23622 (eval $ac_compile) 2>conftest.er1 23623 ac_status=$? 23624 grep -v '^ *+' conftest.er1 >conftest.err 23625 rm -f conftest.er1 23626 cat conftest.err >&5 23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23628 (exit $ac_status); } && 23629 { ac_try='test -z "$ac_c_werror_flag" 23630 || test ! -s conftest.err' 23631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23632 (eval $ac_try) 2>&5 23633 ac_status=$? 23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23635 (exit $ac_status); }; } && 23636 { ac_try='test -s conftest.$ac_objext' 23637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23638 (eval $ac_try) 2>&5 23639 ac_status=$? 23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23641 (exit $ac_status); }; }; then 23642 ac_cv_type_unsigned_int=yes 23643else 23644 echo "$as_me: failed program was:" >&5 23645sed 's/^/| /' conftest.$ac_ext >&5 23646 23647ac_cv_type_unsigned_int=no 23648fi 23649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23650fi 23651echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5 23652echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6 23653 23654echo "$as_me:$LINENO: checking size of unsigned int" >&5 23655echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6 23656if test "${ac_cv_sizeof_unsigned_int+set}" = set; then 23657 echo $ECHO_N "(cached) $ECHO_C" >&6 23658else 23659 if test "$ac_cv_type_unsigned_int" = yes; then 23660 # The cast to unsigned long works around a bug in the HP C Compiler 23661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23663 # This bug is HP SR number 8606223364. 23664 if test "$cross_compiling" = yes; then 23665 # Depending upon the size, compute the lo and hi bounds. 23666cat >conftest.$ac_ext <<_ACEOF 23667/* confdefs.h. */ 23668_ACEOF 23669cat confdefs.h >>conftest.$ac_ext 23670cat >>conftest.$ac_ext <<_ACEOF 23671/* end confdefs.h. */ 23672$ac_includes_default 23673int 23674main () 23675{ 23676static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)]; 23677test_array [0] = 0 23678 23679 ; 23680 return 0; 23681} 23682_ACEOF 23683rm -f conftest.$ac_objext 23684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23685 (eval $ac_compile) 2>conftest.er1 23686 ac_status=$? 23687 grep -v '^ *+' conftest.er1 >conftest.err 23688 rm -f conftest.er1 23689 cat conftest.err >&5 23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23691 (exit $ac_status); } && 23692 { ac_try='test -z "$ac_c_werror_flag" 23693 || test ! -s conftest.err' 23694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23695 (eval $ac_try) 2>&5 23696 ac_status=$? 23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23698 (exit $ac_status); }; } && 23699 { ac_try='test -s conftest.$ac_objext' 23700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23701 (eval $ac_try) 2>&5 23702 ac_status=$? 23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23704 (exit $ac_status); }; }; then 23705 ac_lo=0 ac_mid=0 23706 while :; do 23707 cat >conftest.$ac_ext <<_ACEOF 23708/* confdefs.h. */ 23709_ACEOF 23710cat confdefs.h >>conftest.$ac_ext 23711cat >>conftest.$ac_ext <<_ACEOF 23712/* end confdefs.h. */ 23713$ac_includes_default 23714int 23715main () 23716{ 23717static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)]; 23718test_array [0] = 0 23719 23720 ; 23721 return 0; 23722} 23723_ACEOF 23724rm -f conftest.$ac_objext 23725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23726 (eval $ac_compile) 2>conftest.er1 23727 ac_status=$? 23728 grep -v '^ *+' conftest.er1 >conftest.err 23729 rm -f conftest.er1 23730 cat conftest.err >&5 23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23732 (exit $ac_status); } && 23733 { ac_try='test -z "$ac_c_werror_flag" 23734 || test ! -s conftest.err' 23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23736 (eval $ac_try) 2>&5 23737 ac_status=$? 23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23739 (exit $ac_status); }; } && 23740 { ac_try='test -s conftest.$ac_objext' 23741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23742 (eval $ac_try) 2>&5 23743 ac_status=$? 23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23745 (exit $ac_status); }; }; then 23746 ac_hi=$ac_mid; break 23747else 23748 echo "$as_me: failed program was:" >&5 23749sed 's/^/| /' conftest.$ac_ext >&5 23750 23751ac_lo=`expr $ac_mid + 1` 23752 if test $ac_lo -le $ac_mid; then 23753 ac_lo= ac_hi= 23754 break 23755 fi 23756 ac_mid=`expr 2 '*' $ac_mid + 1` 23757fi 23758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23759 done 23760else 23761 echo "$as_me: failed program was:" >&5 23762sed 's/^/| /' conftest.$ac_ext >&5 23763 23764cat >conftest.$ac_ext <<_ACEOF 23765/* confdefs.h. */ 23766_ACEOF 23767cat confdefs.h >>conftest.$ac_ext 23768cat >>conftest.$ac_ext <<_ACEOF 23769/* end confdefs.h. */ 23770$ac_includes_default 23771int 23772main () 23773{ 23774static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)]; 23775test_array [0] = 0 23776 23777 ; 23778 return 0; 23779} 23780_ACEOF 23781rm -f conftest.$ac_objext 23782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23783 (eval $ac_compile) 2>conftest.er1 23784 ac_status=$? 23785 grep -v '^ *+' conftest.er1 >conftest.err 23786 rm -f conftest.er1 23787 cat conftest.err >&5 23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23789 (exit $ac_status); } && 23790 { ac_try='test -z "$ac_c_werror_flag" 23791 || test ! -s conftest.err' 23792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23793 (eval $ac_try) 2>&5 23794 ac_status=$? 23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23796 (exit $ac_status); }; } && 23797 { ac_try='test -s conftest.$ac_objext' 23798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23799 (eval $ac_try) 2>&5 23800 ac_status=$? 23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23802 (exit $ac_status); }; }; then 23803 ac_hi=-1 ac_mid=-1 23804 while :; do 23805 cat >conftest.$ac_ext <<_ACEOF 23806/* confdefs.h. */ 23807_ACEOF 23808cat confdefs.h >>conftest.$ac_ext 23809cat >>conftest.$ac_ext <<_ACEOF 23810/* end confdefs.h. */ 23811$ac_includes_default 23812int 23813main () 23814{ 23815static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)]; 23816test_array [0] = 0 23817 23818 ; 23819 return 0; 23820} 23821_ACEOF 23822rm -f conftest.$ac_objext 23823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23824 (eval $ac_compile) 2>conftest.er1 23825 ac_status=$? 23826 grep -v '^ *+' conftest.er1 >conftest.err 23827 rm -f conftest.er1 23828 cat conftest.err >&5 23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23830 (exit $ac_status); } && 23831 { ac_try='test -z "$ac_c_werror_flag" 23832 || test ! -s conftest.err' 23833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23834 (eval $ac_try) 2>&5 23835 ac_status=$? 23836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23837 (exit $ac_status); }; } && 23838 { ac_try='test -s conftest.$ac_objext' 23839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23840 (eval $ac_try) 2>&5 23841 ac_status=$? 23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23843 (exit $ac_status); }; }; then 23844 ac_lo=$ac_mid; break 23845else 23846 echo "$as_me: failed program was:" >&5 23847sed 's/^/| /' conftest.$ac_ext >&5 23848 23849ac_hi=`expr '(' $ac_mid ')' - 1` 23850 if test $ac_mid -le $ac_hi; then 23851 ac_lo= ac_hi= 23852 break 23853 fi 23854 ac_mid=`expr 2 '*' $ac_mid` 23855fi 23856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23857 done 23858else 23859 echo "$as_me: failed program was:" >&5 23860sed 's/^/| /' conftest.$ac_ext >&5 23861 23862ac_lo= ac_hi= 23863fi 23864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23865fi 23866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23867# Binary search between lo and hi bounds. 23868while test "x$ac_lo" != "x$ac_hi"; do 23869 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 23870 cat >conftest.$ac_ext <<_ACEOF 23871/* confdefs.h. */ 23872_ACEOF 23873cat confdefs.h >>conftest.$ac_ext 23874cat >>conftest.$ac_ext <<_ACEOF 23875/* end confdefs.h. */ 23876$ac_includes_default 23877int 23878main () 23879{ 23880static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)]; 23881test_array [0] = 0 23882 23883 ; 23884 return 0; 23885} 23886_ACEOF 23887rm -f conftest.$ac_objext 23888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23889 (eval $ac_compile) 2>conftest.er1 23890 ac_status=$? 23891 grep -v '^ *+' conftest.er1 >conftest.err 23892 rm -f conftest.er1 23893 cat conftest.err >&5 23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23895 (exit $ac_status); } && 23896 { ac_try='test -z "$ac_c_werror_flag" 23897 || test ! -s conftest.err' 23898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23899 (eval $ac_try) 2>&5 23900 ac_status=$? 23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23902 (exit $ac_status); }; } && 23903 { ac_try='test -s conftest.$ac_objext' 23904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23905 (eval $ac_try) 2>&5 23906 ac_status=$? 23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23908 (exit $ac_status); }; }; then 23909 ac_hi=$ac_mid 23910else 23911 echo "$as_me: failed program was:" >&5 23912sed 's/^/| /' conftest.$ac_ext >&5 23913 23914ac_lo=`expr '(' $ac_mid ')' + 1` 23915fi 23916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23917done 23918case $ac_lo in 23919?*) ac_cv_sizeof_unsigned_int=$ac_lo;; 23920'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77 23921See \`config.log' for more details." >&5 23922echo "$as_me: error: cannot compute sizeof (unsigned int), 77 23923See \`config.log' for more details." >&2;} 23924 { (exit 1); exit 1; }; } ;; 23925esac 23926else 23927 if test "$cross_compiling" = yes; then 23928 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 23929See \`config.log' for more details." >&5 23930echo "$as_me: error: cannot run test program while cross compiling 23931See \`config.log' for more details." >&2;} 23932 { (exit 1); exit 1; }; } 23933else 23934 cat >conftest.$ac_ext <<_ACEOF 23935/* confdefs.h. */ 23936_ACEOF 23937cat confdefs.h >>conftest.$ac_ext 23938cat >>conftest.$ac_ext <<_ACEOF 23939/* end confdefs.h. */ 23940$ac_includes_default 23941long longval () { return (long) (sizeof (unsigned int)); } 23942unsigned long ulongval () { return (long) (sizeof (unsigned int)); } 23943#include <stdio.h> 23944#include <stdlib.h> 23945int 23946main () 23947{ 23948 23949 FILE *f = fopen ("conftest.val", "w"); 23950 if (! f) 23951 exit (1); 23952 if (((long) (sizeof (unsigned int))) < 0) 23953 { 23954 long i = longval (); 23955 if (i != ((long) (sizeof (unsigned int)))) 23956 exit (1); 23957 fprintf (f, "%ld\n", i); 23958 } 23959 else 23960 { 23961 unsigned long i = ulongval (); 23962 if (i != ((long) (sizeof (unsigned int)))) 23963 exit (1); 23964 fprintf (f, "%lu\n", i); 23965 } 23966 exit (ferror (f) || fclose (f) != 0); 23967 23968 ; 23969 return 0; 23970} 23971_ACEOF 23972rm -f conftest$ac_exeext 23973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23974 (eval $ac_link) 2>&5 23975 ac_status=$? 23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23979 (eval $ac_try) 2>&5 23980 ac_status=$? 23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23982 (exit $ac_status); }; }; then 23983 ac_cv_sizeof_unsigned_int=`cat conftest.val` 23984else 23985 echo "$as_me: program exited with status $ac_status" >&5 23986echo "$as_me: failed program was:" >&5 23987sed 's/^/| /' conftest.$ac_ext >&5 23988 23989( exit $ac_status ) 23990{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77 23991See \`config.log' for more details." >&5 23992echo "$as_me: error: cannot compute sizeof (unsigned int), 77 23993See \`config.log' for more details." >&2;} 23994 { (exit 1); exit 1; }; } 23995fi 23996rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23997fi 23998fi 23999rm -f conftest.val 24000else 24001 ac_cv_sizeof_unsigned_int=0 24002fi 24003fi 24004echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5 24005echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6 24006cat >>confdefs.h <<_ACEOF 24007#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 24008_ACEOF 24009 24010 24011echo "$as_me:$LINENO: checking for u_int64_t" >&5 24012echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 24013if test "${ac_cv_type_u_int64_t+set}" = set; then 24014 echo $ECHO_N "(cached) $ECHO_C" >&6 24015else 24016 cat >conftest.$ac_ext <<_ACEOF 24017/* confdefs.h. */ 24018_ACEOF 24019cat confdefs.h >>conftest.$ac_ext 24020cat >>conftest.$ac_ext <<_ACEOF 24021/* end confdefs.h. */ 24022$ac_includes_default 24023int 24024main () 24025{ 24026if ((u_int64_t *) 0) 24027 return 0; 24028if (sizeof (u_int64_t)) 24029 return 0; 24030 ; 24031 return 0; 24032} 24033_ACEOF 24034rm -f conftest.$ac_objext 24035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24036 (eval $ac_compile) 2>conftest.er1 24037 ac_status=$? 24038 grep -v '^ *+' conftest.er1 >conftest.err 24039 rm -f conftest.er1 24040 cat conftest.err >&5 24041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24042 (exit $ac_status); } && 24043 { ac_try='test -z "$ac_c_werror_flag" 24044 || test ! -s conftest.err' 24045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24046 (eval $ac_try) 2>&5 24047 ac_status=$? 24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24049 (exit $ac_status); }; } && 24050 { ac_try='test -s conftest.$ac_objext' 24051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24052 (eval $ac_try) 2>&5 24053 ac_status=$? 24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24055 (exit $ac_status); }; }; then 24056 ac_cv_type_u_int64_t=yes 24057else 24058 echo "$as_me: failed program was:" >&5 24059sed 's/^/| /' conftest.$ac_ext >&5 24060 24061ac_cv_type_u_int64_t=no 24062fi 24063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24064fi 24065echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 24066echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 24067 24068echo "$as_me:$LINENO: checking size of u_int64_t" >&5 24069echo $ECHO_N "checking size of u_int64_t... $ECHO_C" >&6 24070if test "${ac_cv_sizeof_u_int64_t+set}" = set; then 24071 echo $ECHO_N "(cached) $ECHO_C" >&6 24072else 24073 if test "$ac_cv_type_u_int64_t" = yes; then 24074 # The cast to unsigned long works around a bug in the HP C Compiler 24075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24077 # This bug is HP SR number 8606223364. 24078 if test "$cross_compiling" = yes; then 24079 # Depending upon the size, compute the lo and hi bounds. 24080cat >conftest.$ac_ext <<_ACEOF 24081/* confdefs.h. */ 24082_ACEOF 24083cat confdefs.h >>conftest.$ac_ext 24084cat >>conftest.$ac_ext <<_ACEOF 24085/* end confdefs.h. */ 24086$ac_includes_default 24087int 24088main () 24089{ 24090static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) >= 0)]; 24091test_array [0] = 0 24092 24093 ; 24094 return 0; 24095} 24096_ACEOF 24097rm -f conftest.$ac_objext 24098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24099 (eval $ac_compile) 2>conftest.er1 24100 ac_status=$? 24101 grep -v '^ *+' conftest.er1 >conftest.err 24102 rm -f conftest.er1 24103 cat conftest.err >&5 24104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24105 (exit $ac_status); } && 24106 { ac_try='test -z "$ac_c_werror_flag" 24107 || test ! -s conftest.err' 24108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24109 (eval $ac_try) 2>&5 24110 ac_status=$? 24111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24112 (exit $ac_status); }; } && 24113 { ac_try='test -s conftest.$ac_objext' 24114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24115 (eval $ac_try) 2>&5 24116 ac_status=$? 24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24118 (exit $ac_status); }; }; then 24119 ac_lo=0 ac_mid=0 24120 while :; do 24121 cat >conftest.$ac_ext <<_ACEOF 24122/* confdefs.h. */ 24123_ACEOF 24124cat confdefs.h >>conftest.$ac_ext 24125cat >>conftest.$ac_ext <<_ACEOF 24126/* end confdefs.h. */ 24127$ac_includes_default 24128int 24129main () 24130{ 24131static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) <= $ac_mid)]; 24132test_array [0] = 0 24133 24134 ; 24135 return 0; 24136} 24137_ACEOF 24138rm -f conftest.$ac_objext 24139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24140 (eval $ac_compile) 2>conftest.er1 24141 ac_status=$? 24142 grep -v '^ *+' conftest.er1 >conftest.err 24143 rm -f conftest.er1 24144 cat conftest.err >&5 24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24146 (exit $ac_status); } && 24147 { ac_try='test -z "$ac_c_werror_flag" 24148 || test ! -s conftest.err' 24149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24150 (eval $ac_try) 2>&5 24151 ac_status=$? 24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24153 (exit $ac_status); }; } && 24154 { ac_try='test -s conftest.$ac_objext' 24155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24156 (eval $ac_try) 2>&5 24157 ac_status=$? 24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24159 (exit $ac_status); }; }; then 24160 ac_hi=$ac_mid; break 24161else 24162 echo "$as_me: failed program was:" >&5 24163sed 's/^/| /' conftest.$ac_ext >&5 24164 24165ac_lo=`expr $ac_mid + 1` 24166 if test $ac_lo -le $ac_mid; then 24167 ac_lo= ac_hi= 24168 break 24169 fi 24170 ac_mid=`expr 2 '*' $ac_mid + 1` 24171fi 24172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24173 done 24174else 24175 echo "$as_me: failed program was:" >&5 24176sed 's/^/| /' conftest.$ac_ext >&5 24177 24178cat >conftest.$ac_ext <<_ACEOF 24179/* confdefs.h. */ 24180_ACEOF 24181cat confdefs.h >>conftest.$ac_ext 24182cat >>conftest.$ac_ext <<_ACEOF 24183/* end confdefs.h. */ 24184$ac_includes_default 24185int 24186main () 24187{ 24188static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) < 0)]; 24189test_array [0] = 0 24190 24191 ; 24192 return 0; 24193} 24194_ACEOF 24195rm -f conftest.$ac_objext 24196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24197 (eval $ac_compile) 2>conftest.er1 24198 ac_status=$? 24199 grep -v '^ *+' conftest.er1 >conftest.err 24200 rm -f conftest.er1 24201 cat conftest.err >&5 24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24203 (exit $ac_status); } && 24204 { ac_try='test -z "$ac_c_werror_flag" 24205 || test ! -s conftest.err' 24206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24207 (eval $ac_try) 2>&5 24208 ac_status=$? 24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24210 (exit $ac_status); }; } && 24211 { ac_try='test -s conftest.$ac_objext' 24212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24213 (eval $ac_try) 2>&5 24214 ac_status=$? 24215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24216 (exit $ac_status); }; }; then 24217 ac_hi=-1 ac_mid=-1 24218 while :; do 24219 cat >conftest.$ac_ext <<_ACEOF 24220/* confdefs.h. */ 24221_ACEOF 24222cat confdefs.h >>conftest.$ac_ext 24223cat >>conftest.$ac_ext <<_ACEOF 24224/* end confdefs.h. */ 24225$ac_includes_default 24226int 24227main () 24228{ 24229static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) >= $ac_mid)]; 24230test_array [0] = 0 24231 24232 ; 24233 return 0; 24234} 24235_ACEOF 24236rm -f conftest.$ac_objext 24237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24238 (eval $ac_compile) 2>conftest.er1 24239 ac_status=$? 24240 grep -v '^ *+' conftest.er1 >conftest.err 24241 rm -f conftest.er1 24242 cat conftest.err >&5 24243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24244 (exit $ac_status); } && 24245 { ac_try='test -z "$ac_c_werror_flag" 24246 || test ! -s conftest.err' 24247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24248 (eval $ac_try) 2>&5 24249 ac_status=$? 24250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24251 (exit $ac_status); }; } && 24252 { ac_try='test -s conftest.$ac_objext' 24253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24254 (eval $ac_try) 2>&5 24255 ac_status=$? 24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24257 (exit $ac_status); }; }; then 24258 ac_lo=$ac_mid; break 24259else 24260 echo "$as_me: failed program was:" >&5 24261sed 's/^/| /' conftest.$ac_ext >&5 24262 24263ac_hi=`expr '(' $ac_mid ')' - 1` 24264 if test $ac_mid -le $ac_hi; then 24265 ac_lo= ac_hi= 24266 break 24267 fi 24268 ac_mid=`expr 2 '*' $ac_mid` 24269fi 24270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24271 done 24272else 24273 echo "$as_me: failed program was:" >&5 24274sed 's/^/| /' conftest.$ac_ext >&5 24275 24276ac_lo= ac_hi= 24277fi 24278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24279fi 24280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24281# Binary search between lo and hi bounds. 24282while test "x$ac_lo" != "x$ac_hi"; do 24283 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 24284 cat >conftest.$ac_ext <<_ACEOF 24285/* confdefs.h. */ 24286_ACEOF 24287cat confdefs.h >>conftest.$ac_ext 24288cat >>conftest.$ac_ext <<_ACEOF 24289/* end confdefs.h. */ 24290$ac_includes_default 24291int 24292main () 24293{ 24294static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) <= $ac_mid)]; 24295test_array [0] = 0 24296 24297 ; 24298 return 0; 24299} 24300_ACEOF 24301rm -f conftest.$ac_objext 24302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24303 (eval $ac_compile) 2>conftest.er1 24304 ac_status=$? 24305 grep -v '^ *+' conftest.er1 >conftest.err 24306 rm -f conftest.er1 24307 cat conftest.err >&5 24308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24309 (exit $ac_status); } && 24310 { ac_try='test -z "$ac_c_werror_flag" 24311 || test ! -s conftest.err' 24312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24313 (eval $ac_try) 2>&5 24314 ac_status=$? 24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24316 (exit $ac_status); }; } && 24317 { ac_try='test -s conftest.$ac_objext' 24318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24319 (eval $ac_try) 2>&5 24320 ac_status=$? 24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24322 (exit $ac_status); }; }; then 24323 ac_hi=$ac_mid 24324else 24325 echo "$as_me: failed program was:" >&5 24326sed 's/^/| /' conftest.$ac_ext >&5 24327 24328ac_lo=`expr '(' $ac_mid ')' + 1` 24329fi 24330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24331done 24332case $ac_lo in 24333?*) ac_cv_sizeof_u_int64_t=$ac_lo;; 24334'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int64_t), 77 24335See \`config.log' for more details." >&5 24336echo "$as_me: error: cannot compute sizeof (u_int64_t), 77 24337See \`config.log' for more details." >&2;} 24338 { (exit 1); exit 1; }; } ;; 24339esac 24340else 24341 if test "$cross_compiling" = yes; then 24342 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 24343See \`config.log' for more details." >&5 24344echo "$as_me: error: cannot run test program while cross compiling 24345See \`config.log' for more details." >&2;} 24346 { (exit 1); exit 1; }; } 24347else 24348 cat >conftest.$ac_ext <<_ACEOF 24349/* confdefs.h. */ 24350_ACEOF 24351cat confdefs.h >>conftest.$ac_ext 24352cat >>conftest.$ac_ext <<_ACEOF 24353/* end confdefs.h. */ 24354$ac_includes_default 24355long longval () { return (long) (sizeof (u_int64_t)); } 24356unsigned long ulongval () { return (long) (sizeof (u_int64_t)); } 24357#include <stdio.h> 24358#include <stdlib.h> 24359int 24360main () 24361{ 24362 24363 FILE *f = fopen ("conftest.val", "w"); 24364 if (! f) 24365 exit (1); 24366 if (((long) (sizeof (u_int64_t))) < 0) 24367 { 24368 long i = longval (); 24369 if (i != ((long) (sizeof (u_int64_t)))) 24370 exit (1); 24371 fprintf (f, "%ld\n", i); 24372 } 24373 else 24374 { 24375 unsigned long i = ulongval (); 24376 if (i != ((long) (sizeof (u_int64_t)))) 24377 exit (1); 24378 fprintf (f, "%lu\n", i); 24379 } 24380 exit (ferror (f) || fclose (f) != 0); 24381 24382 ; 24383 return 0; 24384} 24385_ACEOF 24386rm -f conftest$ac_exeext 24387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24388 (eval $ac_link) 2>&5 24389 ac_status=$? 24390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 24392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24393 (eval $ac_try) 2>&5 24394 ac_status=$? 24395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24396 (exit $ac_status); }; }; then 24397 ac_cv_sizeof_u_int64_t=`cat conftest.val` 24398else 24399 echo "$as_me: program exited with status $ac_status" >&5 24400echo "$as_me: failed program was:" >&5 24401sed 's/^/| /' conftest.$ac_ext >&5 24402 24403( exit $ac_status ) 24404{ { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int64_t), 77 24405See \`config.log' for more details." >&5 24406echo "$as_me: error: cannot compute sizeof (u_int64_t), 77 24407See \`config.log' for more details." >&2;} 24408 { (exit 1); exit 1; }; } 24409fi 24410rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 24411fi 24412fi 24413rm -f conftest.val 24414else 24415 ac_cv_sizeof_u_int64_t=0 24416fi 24417fi 24418echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int64_t" >&5 24419echo "${ECHO_T}$ac_cv_sizeof_u_int64_t" >&6 24420cat >>confdefs.h <<_ACEOF 24421#define SIZEOF_U_INT64_T $ac_cv_sizeof_u_int64_t 24422_ACEOF 24423 24424 24425echo "$as_me:$LINENO: checking for unsigned long" >&5 24426echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6 24427if test "${ac_cv_type_unsigned_long+set}" = set; then 24428 echo $ECHO_N "(cached) $ECHO_C" >&6 24429else 24430 cat >conftest.$ac_ext <<_ACEOF 24431/* confdefs.h. */ 24432_ACEOF 24433cat confdefs.h >>conftest.$ac_ext 24434cat >>conftest.$ac_ext <<_ACEOF 24435/* end confdefs.h. */ 24436$ac_includes_default 24437int 24438main () 24439{ 24440if ((unsigned long *) 0) 24441 return 0; 24442if (sizeof (unsigned long)) 24443 return 0; 24444 ; 24445 return 0; 24446} 24447_ACEOF 24448rm -f conftest.$ac_objext 24449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24450 (eval $ac_compile) 2>conftest.er1 24451 ac_status=$? 24452 grep -v '^ *+' conftest.er1 >conftest.err 24453 rm -f conftest.er1 24454 cat conftest.err >&5 24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24456 (exit $ac_status); } && 24457 { ac_try='test -z "$ac_c_werror_flag" 24458 || test ! -s conftest.err' 24459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24460 (eval $ac_try) 2>&5 24461 ac_status=$? 24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24463 (exit $ac_status); }; } && 24464 { ac_try='test -s conftest.$ac_objext' 24465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24466 (eval $ac_try) 2>&5 24467 ac_status=$? 24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24469 (exit $ac_status); }; }; then 24470 ac_cv_type_unsigned_long=yes 24471else 24472 echo "$as_me: failed program was:" >&5 24473sed 's/^/| /' conftest.$ac_ext >&5 24474 24475ac_cv_type_unsigned_long=no 24476fi 24477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24478fi 24479echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5 24480echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6 24481 24482echo "$as_me:$LINENO: checking size of unsigned long" >&5 24483echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6 24484if test "${ac_cv_sizeof_unsigned_long+set}" = set; then 24485 echo $ECHO_N "(cached) $ECHO_C" >&6 24486else 24487 if test "$ac_cv_type_unsigned_long" = yes; then 24488 # The cast to unsigned long works around a bug in the HP C Compiler 24489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24491 # This bug is HP SR number 8606223364. 24492 if test "$cross_compiling" = yes; then 24493 # Depending upon the size, compute the lo and hi bounds. 24494cat >conftest.$ac_ext <<_ACEOF 24495/* confdefs.h. */ 24496_ACEOF 24497cat confdefs.h >>conftest.$ac_ext 24498cat >>conftest.$ac_ext <<_ACEOF 24499/* end confdefs.h. */ 24500$ac_includes_default 24501int 24502main () 24503{ 24504static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)]; 24505test_array [0] = 0 24506 24507 ; 24508 return 0; 24509} 24510_ACEOF 24511rm -f conftest.$ac_objext 24512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24513 (eval $ac_compile) 2>conftest.er1 24514 ac_status=$? 24515 grep -v '^ *+' conftest.er1 >conftest.err 24516 rm -f conftest.er1 24517 cat conftest.err >&5 24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24519 (exit $ac_status); } && 24520 { ac_try='test -z "$ac_c_werror_flag" 24521 || test ! -s conftest.err' 24522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24523 (eval $ac_try) 2>&5 24524 ac_status=$? 24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24526 (exit $ac_status); }; } && 24527 { ac_try='test -s conftest.$ac_objext' 24528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24529 (eval $ac_try) 2>&5 24530 ac_status=$? 24531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24532 (exit $ac_status); }; }; then 24533 ac_lo=0 ac_mid=0 24534 while :; do 24535 cat >conftest.$ac_ext <<_ACEOF 24536/* confdefs.h. */ 24537_ACEOF 24538cat confdefs.h >>conftest.$ac_ext 24539cat >>conftest.$ac_ext <<_ACEOF 24540/* end confdefs.h. */ 24541$ac_includes_default 24542int 24543main () 24544{ 24545static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)]; 24546test_array [0] = 0 24547 24548 ; 24549 return 0; 24550} 24551_ACEOF 24552rm -f conftest.$ac_objext 24553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24554 (eval $ac_compile) 2>conftest.er1 24555 ac_status=$? 24556 grep -v '^ *+' conftest.er1 >conftest.err 24557 rm -f conftest.er1 24558 cat conftest.err >&5 24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24560 (exit $ac_status); } && 24561 { ac_try='test -z "$ac_c_werror_flag" 24562 || test ! -s conftest.err' 24563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24564 (eval $ac_try) 2>&5 24565 ac_status=$? 24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24567 (exit $ac_status); }; } && 24568 { ac_try='test -s conftest.$ac_objext' 24569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24570 (eval $ac_try) 2>&5 24571 ac_status=$? 24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24573 (exit $ac_status); }; }; then 24574 ac_hi=$ac_mid; break 24575else 24576 echo "$as_me: failed program was:" >&5 24577sed 's/^/| /' conftest.$ac_ext >&5 24578 24579ac_lo=`expr $ac_mid + 1` 24580 if test $ac_lo -le $ac_mid; then 24581 ac_lo= ac_hi= 24582 break 24583 fi 24584 ac_mid=`expr 2 '*' $ac_mid + 1` 24585fi 24586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24587 done 24588else 24589 echo "$as_me: failed program was:" >&5 24590sed 's/^/| /' conftest.$ac_ext >&5 24591 24592cat >conftest.$ac_ext <<_ACEOF 24593/* confdefs.h. */ 24594_ACEOF 24595cat confdefs.h >>conftest.$ac_ext 24596cat >>conftest.$ac_ext <<_ACEOF 24597/* end confdefs.h. */ 24598$ac_includes_default 24599int 24600main () 24601{ 24602static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)]; 24603test_array [0] = 0 24604 24605 ; 24606 return 0; 24607} 24608_ACEOF 24609rm -f conftest.$ac_objext 24610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24611 (eval $ac_compile) 2>conftest.er1 24612 ac_status=$? 24613 grep -v '^ *+' conftest.er1 >conftest.err 24614 rm -f conftest.er1 24615 cat conftest.err >&5 24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24617 (exit $ac_status); } && 24618 { ac_try='test -z "$ac_c_werror_flag" 24619 || test ! -s conftest.err' 24620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24621 (eval $ac_try) 2>&5 24622 ac_status=$? 24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24624 (exit $ac_status); }; } && 24625 { ac_try='test -s conftest.$ac_objext' 24626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24627 (eval $ac_try) 2>&5 24628 ac_status=$? 24629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24630 (exit $ac_status); }; }; then 24631 ac_hi=-1 ac_mid=-1 24632 while :; do 24633 cat >conftest.$ac_ext <<_ACEOF 24634/* confdefs.h. */ 24635_ACEOF 24636cat confdefs.h >>conftest.$ac_ext 24637cat >>conftest.$ac_ext <<_ACEOF 24638/* end confdefs.h. */ 24639$ac_includes_default 24640int 24641main () 24642{ 24643static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)]; 24644test_array [0] = 0 24645 24646 ; 24647 return 0; 24648} 24649_ACEOF 24650rm -f conftest.$ac_objext 24651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24652 (eval $ac_compile) 2>conftest.er1 24653 ac_status=$? 24654 grep -v '^ *+' conftest.er1 >conftest.err 24655 rm -f conftest.er1 24656 cat conftest.err >&5 24657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24658 (exit $ac_status); } && 24659 { ac_try='test -z "$ac_c_werror_flag" 24660 || test ! -s conftest.err' 24661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24662 (eval $ac_try) 2>&5 24663 ac_status=$? 24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24665 (exit $ac_status); }; } && 24666 { ac_try='test -s conftest.$ac_objext' 24667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24668 (eval $ac_try) 2>&5 24669 ac_status=$? 24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24671 (exit $ac_status); }; }; then 24672 ac_lo=$ac_mid; break 24673else 24674 echo "$as_me: failed program was:" >&5 24675sed 's/^/| /' conftest.$ac_ext >&5 24676 24677ac_hi=`expr '(' $ac_mid ')' - 1` 24678 if test $ac_mid -le $ac_hi; then 24679 ac_lo= ac_hi= 24680 break 24681 fi 24682 ac_mid=`expr 2 '*' $ac_mid` 24683fi 24684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24685 done 24686else 24687 echo "$as_me: failed program was:" >&5 24688sed 's/^/| /' conftest.$ac_ext >&5 24689 24690ac_lo= ac_hi= 24691fi 24692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24693fi 24694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24695# Binary search between lo and hi bounds. 24696while test "x$ac_lo" != "x$ac_hi"; do 24697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 24698 cat >conftest.$ac_ext <<_ACEOF 24699/* confdefs.h. */ 24700_ACEOF 24701cat confdefs.h >>conftest.$ac_ext 24702cat >>conftest.$ac_ext <<_ACEOF 24703/* end confdefs.h. */ 24704$ac_includes_default 24705int 24706main () 24707{ 24708static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)]; 24709test_array [0] = 0 24710 24711 ; 24712 return 0; 24713} 24714_ACEOF 24715rm -f conftest.$ac_objext 24716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24717 (eval $ac_compile) 2>conftest.er1 24718 ac_status=$? 24719 grep -v '^ *+' conftest.er1 >conftest.err 24720 rm -f conftest.er1 24721 cat conftest.err >&5 24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24723 (exit $ac_status); } && 24724 { ac_try='test -z "$ac_c_werror_flag" 24725 || test ! -s conftest.err' 24726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24727 (eval $ac_try) 2>&5 24728 ac_status=$? 24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24730 (exit $ac_status); }; } && 24731 { ac_try='test -s conftest.$ac_objext' 24732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24733 (eval $ac_try) 2>&5 24734 ac_status=$? 24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24736 (exit $ac_status); }; }; then 24737 ac_hi=$ac_mid 24738else 24739 echo "$as_me: failed program was:" >&5 24740sed 's/^/| /' conftest.$ac_ext >&5 24741 24742ac_lo=`expr '(' $ac_mid ')' + 1` 24743fi 24744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24745done 24746case $ac_lo in 24747?*) ac_cv_sizeof_unsigned_long=$ac_lo;; 24748'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77 24749See \`config.log' for more details." >&5 24750echo "$as_me: error: cannot compute sizeof (unsigned long), 77 24751See \`config.log' for more details." >&2;} 24752 { (exit 1); exit 1; }; } ;; 24753esac 24754else 24755 if test "$cross_compiling" = yes; then 24756 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 24757See \`config.log' for more details." >&5 24758echo "$as_me: error: cannot run test program while cross compiling 24759See \`config.log' for more details." >&2;} 24760 { (exit 1); exit 1; }; } 24761else 24762 cat >conftest.$ac_ext <<_ACEOF 24763/* confdefs.h. */ 24764_ACEOF 24765cat confdefs.h >>conftest.$ac_ext 24766cat >>conftest.$ac_ext <<_ACEOF 24767/* end confdefs.h. */ 24768$ac_includes_default 24769long longval () { return (long) (sizeof (unsigned long)); } 24770unsigned long ulongval () { return (long) (sizeof (unsigned long)); } 24771#include <stdio.h> 24772#include <stdlib.h> 24773int 24774main () 24775{ 24776 24777 FILE *f = fopen ("conftest.val", "w"); 24778 if (! f) 24779 exit (1); 24780 if (((long) (sizeof (unsigned long))) < 0) 24781 { 24782 long i = longval (); 24783 if (i != ((long) (sizeof (unsigned long)))) 24784 exit (1); 24785 fprintf (f, "%ld\n", i); 24786 } 24787 else 24788 { 24789 unsigned long i = ulongval (); 24790 if (i != ((long) (sizeof (unsigned long)))) 24791 exit (1); 24792 fprintf (f, "%lu\n", i); 24793 } 24794 exit (ferror (f) || fclose (f) != 0); 24795 24796 ; 24797 return 0; 24798} 24799_ACEOF 24800rm -f conftest$ac_exeext 24801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24802 (eval $ac_link) 2>&5 24803 ac_status=$? 24804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 24806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24807 (eval $ac_try) 2>&5 24808 ac_status=$? 24809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24810 (exit $ac_status); }; }; then 24811 ac_cv_sizeof_unsigned_long=`cat conftest.val` 24812else 24813 echo "$as_me: program exited with status $ac_status" >&5 24814echo "$as_me: failed program was:" >&5 24815sed 's/^/| /' conftest.$ac_ext >&5 24816 24817( exit $ac_status ) 24818{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77 24819See \`config.log' for more details." >&5 24820echo "$as_me: error: cannot compute sizeof (unsigned long), 77 24821See \`config.log' for more details." >&2;} 24822 { (exit 1); exit 1; }; } 24823fi 24824rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 24825fi 24826fi 24827rm -f conftest.val 24828else 24829 ac_cv_sizeof_unsigned_long=0 24830fi 24831fi 24832echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5 24833echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6 24834cat >>confdefs.h <<_ACEOF 24835#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 24836_ACEOF 24837 24838 24839echo "$as_me:$LINENO: checking for unsigned long long" >&5 24840echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 24841if test "${ac_cv_type_unsigned_long_long+set}" = set; then 24842 echo $ECHO_N "(cached) $ECHO_C" >&6 24843else 24844 cat >conftest.$ac_ext <<_ACEOF 24845/* confdefs.h. */ 24846_ACEOF 24847cat confdefs.h >>conftest.$ac_ext 24848cat >>conftest.$ac_ext <<_ACEOF 24849/* end confdefs.h. */ 24850$ac_includes_default 24851int 24852main () 24853{ 24854if ((unsigned long long *) 0) 24855 return 0; 24856if (sizeof (unsigned long long)) 24857 return 0; 24858 ; 24859 return 0; 24860} 24861_ACEOF 24862rm -f conftest.$ac_objext 24863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24864 (eval $ac_compile) 2>conftest.er1 24865 ac_status=$? 24866 grep -v '^ *+' conftest.er1 >conftest.err 24867 rm -f conftest.er1 24868 cat conftest.err >&5 24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24870 (exit $ac_status); } && 24871 { ac_try='test -z "$ac_c_werror_flag" 24872 || test ! -s conftest.err' 24873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24874 (eval $ac_try) 2>&5 24875 ac_status=$? 24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24877 (exit $ac_status); }; } && 24878 { ac_try='test -s conftest.$ac_objext' 24879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24880 (eval $ac_try) 2>&5 24881 ac_status=$? 24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24883 (exit $ac_status); }; }; then 24884 ac_cv_type_unsigned_long_long=yes 24885else 24886 echo "$as_me: failed program was:" >&5 24887sed 's/^/| /' conftest.$ac_ext >&5 24888 24889ac_cv_type_unsigned_long_long=no 24890fi 24891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24892fi 24893echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 24894echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 24895 24896echo "$as_me:$LINENO: checking size of unsigned long long" >&5 24897echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6 24898if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then 24899 echo $ECHO_N "(cached) $ECHO_C" >&6 24900else 24901 if test "$ac_cv_type_unsigned_long_long" = yes; then 24902 # The cast to unsigned long works around a bug in the HP C Compiler 24903 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24904 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24905 # This bug is HP SR number 8606223364. 24906 if test "$cross_compiling" = yes; then 24907 # Depending upon the size, compute the lo and hi bounds. 24908cat >conftest.$ac_ext <<_ACEOF 24909/* confdefs.h. */ 24910_ACEOF 24911cat confdefs.h >>conftest.$ac_ext 24912cat >>conftest.$ac_ext <<_ACEOF 24913/* end confdefs.h. */ 24914$ac_includes_default 24915int 24916main () 24917{ 24918static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= 0)]; 24919test_array [0] = 0 24920 24921 ; 24922 return 0; 24923} 24924_ACEOF 24925rm -f conftest.$ac_objext 24926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24927 (eval $ac_compile) 2>conftest.er1 24928 ac_status=$? 24929 grep -v '^ *+' conftest.er1 >conftest.err 24930 rm -f conftest.er1 24931 cat conftest.err >&5 24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24933 (exit $ac_status); } && 24934 { ac_try='test -z "$ac_c_werror_flag" 24935 || test ! -s conftest.err' 24936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24937 (eval $ac_try) 2>&5 24938 ac_status=$? 24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24940 (exit $ac_status); }; } && 24941 { ac_try='test -s conftest.$ac_objext' 24942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24943 (eval $ac_try) 2>&5 24944 ac_status=$? 24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24946 (exit $ac_status); }; }; then 24947 ac_lo=0 ac_mid=0 24948 while :; do 24949 cat >conftest.$ac_ext <<_ACEOF 24950/* confdefs.h. */ 24951_ACEOF 24952cat confdefs.h >>conftest.$ac_ext 24953cat >>conftest.$ac_ext <<_ACEOF 24954/* end confdefs.h. */ 24955$ac_includes_default 24956int 24957main () 24958{ 24959static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)]; 24960test_array [0] = 0 24961 24962 ; 24963 return 0; 24964} 24965_ACEOF 24966rm -f conftest.$ac_objext 24967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24968 (eval $ac_compile) 2>conftest.er1 24969 ac_status=$? 24970 grep -v '^ *+' conftest.er1 >conftest.err 24971 rm -f conftest.er1 24972 cat conftest.err >&5 24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24974 (exit $ac_status); } && 24975 { ac_try='test -z "$ac_c_werror_flag" 24976 || test ! -s conftest.err' 24977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24978 (eval $ac_try) 2>&5 24979 ac_status=$? 24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24981 (exit $ac_status); }; } && 24982 { ac_try='test -s conftest.$ac_objext' 24983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24984 (eval $ac_try) 2>&5 24985 ac_status=$? 24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24987 (exit $ac_status); }; }; then 24988 ac_hi=$ac_mid; break 24989else 24990 echo "$as_me: failed program was:" >&5 24991sed 's/^/| /' conftest.$ac_ext >&5 24992 24993ac_lo=`expr $ac_mid + 1` 24994 if test $ac_lo -le $ac_mid; then 24995 ac_lo= ac_hi= 24996 break 24997 fi 24998 ac_mid=`expr 2 '*' $ac_mid + 1` 24999fi 25000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25001 done 25002else 25003 echo "$as_me: failed program was:" >&5 25004sed 's/^/| /' conftest.$ac_ext >&5 25005 25006cat >conftest.$ac_ext <<_ACEOF 25007/* confdefs.h. */ 25008_ACEOF 25009cat confdefs.h >>conftest.$ac_ext 25010cat >>conftest.$ac_ext <<_ACEOF 25011/* end confdefs.h. */ 25012$ac_includes_default 25013int 25014main () 25015{ 25016static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) < 0)]; 25017test_array [0] = 0 25018 25019 ; 25020 return 0; 25021} 25022_ACEOF 25023rm -f conftest.$ac_objext 25024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25025 (eval $ac_compile) 2>conftest.er1 25026 ac_status=$? 25027 grep -v '^ *+' conftest.er1 >conftest.err 25028 rm -f conftest.er1 25029 cat conftest.err >&5 25030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25031 (exit $ac_status); } && 25032 { ac_try='test -z "$ac_c_werror_flag" 25033 || test ! -s conftest.err' 25034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25035 (eval $ac_try) 2>&5 25036 ac_status=$? 25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25038 (exit $ac_status); }; } && 25039 { ac_try='test -s conftest.$ac_objext' 25040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25041 (eval $ac_try) 2>&5 25042 ac_status=$? 25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25044 (exit $ac_status); }; }; then 25045 ac_hi=-1 ac_mid=-1 25046 while :; do 25047 cat >conftest.$ac_ext <<_ACEOF 25048/* confdefs.h. */ 25049_ACEOF 25050cat confdefs.h >>conftest.$ac_ext 25051cat >>conftest.$ac_ext <<_ACEOF 25052/* end confdefs.h. */ 25053$ac_includes_default 25054int 25055main () 25056{ 25057static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= $ac_mid)]; 25058test_array [0] = 0 25059 25060 ; 25061 return 0; 25062} 25063_ACEOF 25064rm -f conftest.$ac_objext 25065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25066 (eval $ac_compile) 2>conftest.er1 25067 ac_status=$? 25068 grep -v '^ *+' conftest.er1 >conftest.err 25069 rm -f conftest.er1 25070 cat conftest.err >&5 25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25072 (exit $ac_status); } && 25073 { ac_try='test -z "$ac_c_werror_flag" 25074 || test ! -s conftest.err' 25075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25076 (eval $ac_try) 2>&5 25077 ac_status=$? 25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25079 (exit $ac_status); }; } && 25080 { ac_try='test -s conftest.$ac_objext' 25081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25082 (eval $ac_try) 2>&5 25083 ac_status=$? 25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25085 (exit $ac_status); }; }; then 25086 ac_lo=$ac_mid; break 25087else 25088 echo "$as_me: failed program was:" >&5 25089sed 's/^/| /' conftest.$ac_ext >&5 25090 25091ac_hi=`expr '(' $ac_mid ')' - 1` 25092 if test $ac_mid -le $ac_hi; then 25093 ac_lo= ac_hi= 25094 break 25095 fi 25096 ac_mid=`expr 2 '*' $ac_mid` 25097fi 25098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25099 done 25100else 25101 echo "$as_me: failed program was:" >&5 25102sed 's/^/| /' conftest.$ac_ext >&5 25103 25104ac_lo= ac_hi= 25105fi 25106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25107fi 25108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25109# Binary search between lo and hi bounds. 25110while test "x$ac_lo" != "x$ac_hi"; do 25111 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 25112 cat >conftest.$ac_ext <<_ACEOF 25113/* confdefs.h. */ 25114_ACEOF 25115cat confdefs.h >>conftest.$ac_ext 25116cat >>conftest.$ac_ext <<_ACEOF 25117/* end confdefs.h. */ 25118$ac_includes_default 25119int 25120main () 25121{ 25122static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)]; 25123test_array [0] = 0 25124 25125 ; 25126 return 0; 25127} 25128_ACEOF 25129rm -f conftest.$ac_objext 25130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25131 (eval $ac_compile) 2>conftest.er1 25132 ac_status=$? 25133 grep -v '^ *+' conftest.er1 >conftest.err 25134 rm -f conftest.er1 25135 cat conftest.err >&5 25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25137 (exit $ac_status); } && 25138 { ac_try='test -z "$ac_c_werror_flag" 25139 || test ! -s conftest.err' 25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25141 (eval $ac_try) 2>&5 25142 ac_status=$? 25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25144 (exit $ac_status); }; } && 25145 { ac_try='test -s conftest.$ac_objext' 25146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25147 (eval $ac_try) 2>&5 25148 ac_status=$? 25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25150 (exit $ac_status); }; }; then 25151 ac_hi=$ac_mid 25152else 25153 echo "$as_me: failed program was:" >&5 25154sed 's/^/| /' conftest.$ac_ext >&5 25155 25156ac_lo=`expr '(' $ac_mid ')' + 1` 25157fi 25158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25159done 25160case $ac_lo in 25161?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;; 25162'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77 25163See \`config.log' for more details." >&5 25164echo "$as_me: error: cannot compute sizeof (unsigned long long), 77 25165See \`config.log' for more details." >&2;} 25166 { (exit 1); exit 1; }; } ;; 25167esac 25168else 25169 if test "$cross_compiling" = yes; then 25170 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 25171See \`config.log' for more details." >&5 25172echo "$as_me: error: cannot run test program while cross compiling 25173See \`config.log' for more details." >&2;} 25174 { (exit 1); exit 1; }; } 25175else 25176 cat >conftest.$ac_ext <<_ACEOF 25177/* confdefs.h. */ 25178_ACEOF 25179cat confdefs.h >>conftest.$ac_ext 25180cat >>conftest.$ac_ext <<_ACEOF 25181/* end confdefs.h. */ 25182$ac_includes_default 25183long longval () { return (long) (sizeof (unsigned long long)); } 25184unsigned long ulongval () { return (long) (sizeof (unsigned long long)); } 25185#include <stdio.h> 25186#include <stdlib.h> 25187int 25188main () 25189{ 25190 25191 FILE *f = fopen ("conftest.val", "w"); 25192 if (! f) 25193 exit (1); 25194 if (((long) (sizeof (unsigned long long))) < 0) 25195 { 25196 long i = longval (); 25197 if (i != ((long) (sizeof (unsigned long long)))) 25198 exit (1); 25199 fprintf (f, "%ld\n", i); 25200 } 25201 else 25202 { 25203 unsigned long i = ulongval (); 25204 if (i != ((long) (sizeof (unsigned long long)))) 25205 exit (1); 25206 fprintf (f, "%lu\n", i); 25207 } 25208 exit (ferror (f) || fclose (f) != 0); 25209 25210 ; 25211 return 0; 25212} 25213_ACEOF 25214rm -f conftest$ac_exeext 25215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25216 (eval $ac_link) 2>&5 25217 ac_status=$? 25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 25220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25221 (eval $ac_try) 2>&5 25222 ac_status=$? 25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25224 (exit $ac_status); }; }; then 25225 ac_cv_sizeof_unsigned_long_long=`cat conftest.val` 25226else 25227 echo "$as_me: program exited with status $ac_status" >&5 25228echo "$as_me: failed program was:" >&5 25229sed 's/^/| /' conftest.$ac_ext >&5 25230 25231( exit $ac_status ) 25232{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77 25233See \`config.log' for more details." >&5 25234echo "$as_me: error: cannot compute sizeof (unsigned long long), 77 25235See \`config.log' for more details." >&2;} 25236 { (exit 1); exit 1; }; } 25237fi 25238rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 25239fi 25240fi 25241rm -f conftest.val 25242else 25243 ac_cv_sizeof_unsigned_long_long=0 25244fi 25245fi 25246echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5 25247echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6 25248cat >>confdefs.h <<_ACEOF 25249#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 25250_ACEOF 25251 25252 25253echo "$as_me:$LINENO: checking for unsigned longlong" >&5 25254echo $ECHO_N "checking for unsigned longlong... $ECHO_C" >&6 25255if test "${ac_cv_type_unsigned_longlong+set}" = set; then 25256 echo $ECHO_N "(cached) $ECHO_C" >&6 25257else 25258 cat >conftest.$ac_ext <<_ACEOF 25259/* confdefs.h. */ 25260_ACEOF 25261cat confdefs.h >>conftest.$ac_ext 25262cat >>conftest.$ac_ext <<_ACEOF 25263/* end confdefs.h. */ 25264$ac_includes_default 25265int 25266main () 25267{ 25268if ((unsigned longlong *) 0) 25269 return 0; 25270if (sizeof (unsigned longlong)) 25271 return 0; 25272 ; 25273 return 0; 25274} 25275_ACEOF 25276rm -f conftest.$ac_objext 25277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25278 (eval $ac_compile) 2>conftest.er1 25279 ac_status=$? 25280 grep -v '^ *+' conftest.er1 >conftest.err 25281 rm -f conftest.er1 25282 cat conftest.err >&5 25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25284 (exit $ac_status); } && 25285 { ac_try='test -z "$ac_c_werror_flag" 25286 || test ! -s conftest.err' 25287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25288 (eval $ac_try) 2>&5 25289 ac_status=$? 25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25291 (exit $ac_status); }; } && 25292 { ac_try='test -s conftest.$ac_objext' 25293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25294 (eval $ac_try) 2>&5 25295 ac_status=$? 25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25297 (exit $ac_status); }; }; then 25298 ac_cv_type_unsigned_longlong=yes 25299else 25300 echo "$as_me: failed program was:" >&5 25301sed 's/^/| /' conftest.$ac_ext >&5 25302 25303ac_cv_type_unsigned_longlong=no 25304fi 25305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25306fi 25307echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_longlong" >&5 25308echo "${ECHO_T}$ac_cv_type_unsigned_longlong" >&6 25309 25310echo "$as_me:$LINENO: checking size of unsigned longlong" >&5 25311echo $ECHO_N "checking size of unsigned longlong... $ECHO_C" >&6 25312if test "${ac_cv_sizeof_unsigned_longlong+set}" = set; then 25313 echo $ECHO_N "(cached) $ECHO_C" >&6 25314else 25315 if test "$ac_cv_type_unsigned_longlong" = yes; then 25316 # The cast to unsigned long works around a bug in the HP C Compiler 25317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 25318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 25319 # This bug is HP SR number 8606223364. 25320 if test "$cross_compiling" = yes; then 25321 # Depending upon the size, compute the lo and hi bounds. 25322cat >conftest.$ac_ext <<_ACEOF 25323/* confdefs.h. */ 25324_ACEOF 25325cat confdefs.h >>conftest.$ac_ext 25326cat >>conftest.$ac_ext <<_ACEOF 25327/* end confdefs.h. */ 25328$ac_includes_default 25329int 25330main () 25331{ 25332static int test_array [1 - 2 * !(((long) (sizeof (unsigned longlong))) >= 0)]; 25333test_array [0] = 0 25334 25335 ; 25336 return 0; 25337} 25338_ACEOF 25339rm -f conftest.$ac_objext 25340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25341 (eval $ac_compile) 2>conftest.er1 25342 ac_status=$? 25343 grep -v '^ *+' conftest.er1 >conftest.err 25344 rm -f conftest.er1 25345 cat conftest.err >&5 25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25347 (exit $ac_status); } && 25348 { ac_try='test -z "$ac_c_werror_flag" 25349 || test ! -s conftest.err' 25350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25351 (eval $ac_try) 2>&5 25352 ac_status=$? 25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25354 (exit $ac_status); }; } && 25355 { ac_try='test -s conftest.$ac_objext' 25356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25357 (eval $ac_try) 2>&5 25358 ac_status=$? 25359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25360 (exit $ac_status); }; }; then 25361 ac_lo=0 ac_mid=0 25362 while :; do 25363 cat >conftest.$ac_ext <<_ACEOF 25364/* confdefs.h. */ 25365_ACEOF 25366cat confdefs.h >>conftest.$ac_ext 25367cat >>conftest.$ac_ext <<_ACEOF 25368/* end confdefs.h. */ 25369$ac_includes_default 25370int 25371main () 25372{ 25373static int test_array [1 - 2 * !(((long) (sizeof (unsigned longlong))) <= $ac_mid)]; 25374test_array [0] = 0 25375 25376 ; 25377 return 0; 25378} 25379_ACEOF 25380rm -f conftest.$ac_objext 25381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25382 (eval $ac_compile) 2>conftest.er1 25383 ac_status=$? 25384 grep -v '^ *+' conftest.er1 >conftest.err 25385 rm -f conftest.er1 25386 cat conftest.err >&5 25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25388 (exit $ac_status); } && 25389 { ac_try='test -z "$ac_c_werror_flag" 25390 || test ! -s conftest.err' 25391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25392 (eval $ac_try) 2>&5 25393 ac_status=$? 25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25395 (exit $ac_status); }; } && 25396 { ac_try='test -s conftest.$ac_objext' 25397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25398 (eval $ac_try) 2>&5 25399 ac_status=$? 25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25401 (exit $ac_status); }; }; then 25402 ac_hi=$ac_mid; break 25403else 25404 echo "$as_me: failed program was:" >&5 25405sed 's/^/| /' conftest.$ac_ext >&5 25406 25407ac_lo=`expr $ac_mid + 1` 25408 if test $ac_lo -le $ac_mid; then 25409 ac_lo= ac_hi= 25410 break 25411 fi 25412 ac_mid=`expr 2 '*' $ac_mid + 1` 25413fi 25414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25415 done 25416else 25417 echo "$as_me: failed program was:" >&5 25418sed 's/^/| /' conftest.$ac_ext >&5 25419 25420cat >conftest.$ac_ext <<_ACEOF 25421/* confdefs.h. */ 25422_ACEOF 25423cat confdefs.h >>conftest.$ac_ext 25424cat >>conftest.$ac_ext <<_ACEOF 25425/* end confdefs.h. */ 25426$ac_includes_default 25427int 25428main () 25429{ 25430static int test_array [1 - 2 * !(((long) (sizeof (unsigned longlong))) < 0)]; 25431test_array [0] = 0 25432 25433 ; 25434 return 0; 25435} 25436_ACEOF 25437rm -f conftest.$ac_objext 25438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25439 (eval $ac_compile) 2>conftest.er1 25440 ac_status=$? 25441 grep -v '^ *+' conftest.er1 >conftest.err 25442 rm -f conftest.er1 25443 cat conftest.err >&5 25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25445 (exit $ac_status); } && 25446 { ac_try='test -z "$ac_c_werror_flag" 25447 || test ! -s conftest.err' 25448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25449 (eval $ac_try) 2>&5 25450 ac_status=$? 25451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25452 (exit $ac_status); }; } && 25453 { ac_try='test -s conftest.$ac_objext' 25454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25455 (eval $ac_try) 2>&5 25456 ac_status=$? 25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25458 (exit $ac_status); }; }; then 25459 ac_hi=-1 ac_mid=-1 25460 while :; do 25461 cat >conftest.$ac_ext <<_ACEOF 25462/* confdefs.h. */ 25463_ACEOF 25464cat confdefs.h >>conftest.$ac_ext 25465cat >>conftest.$ac_ext <<_ACEOF 25466/* end confdefs.h. */ 25467$ac_includes_default 25468int 25469main () 25470{ 25471static int test_array [1 - 2 * !(((long) (sizeof (unsigned longlong))) >= $ac_mid)]; 25472test_array [0] = 0 25473 25474 ; 25475 return 0; 25476} 25477_ACEOF 25478rm -f conftest.$ac_objext 25479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25480 (eval $ac_compile) 2>conftest.er1 25481 ac_status=$? 25482 grep -v '^ *+' conftest.er1 >conftest.err 25483 rm -f conftest.er1 25484 cat conftest.err >&5 25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25486 (exit $ac_status); } && 25487 { ac_try='test -z "$ac_c_werror_flag" 25488 || test ! -s conftest.err' 25489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25490 (eval $ac_try) 2>&5 25491 ac_status=$? 25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25493 (exit $ac_status); }; } && 25494 { ac_try='test -s conftest.$ac_objext' 25495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25496 (eval $ac_try) 2>&5 25497 ac_status=$? 25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25499 (exit $ac_status); }; }; then 25500 ac_lo=$ac_mid; break 25501else 25502 echo "$as_me: failed program was:" >&5 25503sed 's/^/| /' conftest.$ac_ext >&5 25504 25505ac_hi=`expr '(' $ac_mid ')' - 1` 25506 if test $ac_mid -le $ac_hi; then 25507 ac_lo= ac_hi= 25508 break 25509 fi 25510 ac_mid=`expr 2 '*' $ac_mid` 25511fi 25512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25513 done 25514else 25515 echo "$as_me: failed program was:" >&5 25516sed 's/^/| /' conftest.$ac_ext >&5 25517 25518ac_lo= ac_hi= 25519fi 25520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25521fi 25522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25523# Binary search between lo and hi bounds. 25524while test "x$ac_lo" != "x$ac_hi"; do 25525 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 25526 cat >conftest.$ac_ext <<_ACEOF 25527/* confdefs.h. */ 25528_ACEOF 25529cat confdefs.h >>conftest.$ac_ext 25530cat >>conftest.$ac_ext <<_ACEOF 25531/* end confdefs.h. */ 25532$ac_includes_default 25533int 25534main () 25535{ 25536static int test_array [1 - 2 * !(((long) (sizeof (unsigned longlong))) <= $ac_mid)]; 25537test_array [0] = 0 25538 25539 ; 25540 return 0; 25541} 25542_ACEOF 25543rm -f conftest.$ac_objext 25544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25545 (eval $ac_compile) 2>conftest.er1 25546 ac_status=$? 25547 grep -v '^ *+' conftest.er1 >conftest.err 25548 rm -f conftest.er1 25549 cat conftest.err >&5 25550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25551 (exit $ac_status); } && 25552 { ac_try='test -z "$ac_c_werror_flag" 25553 || test ! -s conftest.err' 25554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25555 (eval $ac_try) 2>&5 25556 ac_status=$? 25557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25558 (exit $ac_status); }; } && 25559 { ac_try='test -s conftest.$ac_objext' 25560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25561 (eval $ac_try) 2>&5 25562 ac_status=$? 25563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25564 (exit $ac_status); }; }; then 25565 ac_hi=$ac_mid 25566else 25567 echo "$as_me: failed program was:" >&5 25568sed 's/^/| /' conftest.$ac_ext >&5 25569 25570ac_lo=`expr '(' $ac_mid ')' + 1` 25571fi 25572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25573done 25574case $ac_lo in 25575?*) ac_cv_sizeof_unsigned_longlong=$ac_lo;; 25576'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned longlong), 77 25577See \`config.log' for more details." >&5 25578echo "$as_me: error: cannot compute sizeof (unsigned longlong), 77 25579See \`config.log' for more details." >&2;} 25580 { (exit 1); exit 1; }; } ;; 25581esac 25582else 25583 if test "$cross_compiling" = yes; then 25584 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 25585See \`config.log' for more details." >&5 25586echo "$as_me: error: cannot run test program while cross compiling 25587See \`config.log' for more details." >&2;} 25588 { (exit 1); exit 1; }; } 25589else 25590 cat >conftest.$ac_ext <<_ACEOF 25591/* confdefs.h. */ 25592_ACEOF 25593cat confdefs.h >>conftest.$ac_ext 25594cat >>conftest.$ac_ext <<_ACEOF 25595/* end confdefs.h. */ 25596$ac_includes_default 25597long longval () { return (long) (sizeof (unsigned longlong)); } 25598unsigned long ulongval () { return (long) (sizeof (unsigned longlong)); } 25599#include <stdio.h> 25600#include <stdlib.h> 25601int 25602main () 25603{ 25604 25605 FILE *f = fopen ("conftest.val", "w"); 25606 if (! f) 25607 exit (1); 25608 if (((long) (sizeof (unsigned longlong))) < 0) 25609 { 25610 long i = longval (); 25611 if (i != ((long) (sizeof (unsigned longlong)))) 25612 exit (1); 25613 fprintf (f, "%ld\n", i); 25614 } 25615 else 25616 { 25617 unsigned long i = ulongval (); 25618 if (i != ((long) (sizeof (unsigned longlong)))) 25619 exit (1); 25620 fprintf (f, "%lu\n", i); 25621 } 25622 exit (ferror (f) || fclose (f) != 0); 25623 25624 ; 25625 return 0; 25626} 25627_ACEOF 25628rm -f conftest$ac_exeext 25629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25630 (eval $ac_link) 2>&5 25631 ac_status=$? 25632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 25634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25635 (eval $ac_try) 2>&5 25636 ac_status=$? 25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25638 (exit $ac_status); }; }; then 25639 ac_cv_sizeof_unsigned_longlong=`cat conftest.val` 25640else 25641 echo "$as_me: program exited with status $ac_status" >&5 25642echo "$as_me: failed program was:" >&5 25643sed 's/^/| /' conftest.$ac_ext >&5 25644 25645( exit $ac_status ) 25646{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned longlong), 77 25647See \`config.log' for more details." >&5 25648echo "$as_me: error: cannot compute sizeof (unsigned longlong), 77 25649See \`config.log' for more details." >&2;} 25650 { (exit 1); exit 1; }; } 25651fi 25652rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 25653fi 25654fi 25655rm -f conftest.val 25656else 25657 ac_cv_sizeof_unsigned_longlong=0 25658fi 25659fi 25660echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_longlong" >&5 25661echo "${ECHO_T}$ac_cv_sizeof_unsigned_longlong" >&6 25662cat >>confdefs.h <<_ACEOF 25663#define SIZEOF_UNSIGNED_LONGLONG $ac_cv_sizeof_unsigned_longlong 25664_ACEOF 25665 25666 25667if test "$ac_cv_sizeof_unsigned_int" = "8"; then 25668 mcm_uint_64="typedef unsigned int u_int64_t;" 25669elif test "$ac_cv_sizeof_u_int64_t" = "8"; then 25670 mcm_uint_64="" 25671elif test "$ac_cv_sizeof_unsigned_long" = "8"; then 25672 mcm_uint_64="typedef unsigned long u_int64_t;" 25673elif test "$ac_cv_sizeof_unsigned_long_long" = "8"; then 25674 mcm_uint_64="typedef unsigned long long u_int64_t;" 25675elif test "$ac_cv_sizeof_unsigned_longlong" = "8"; then 25676 mcm_uint_64="typedef unsigned longlong u_int64_t;" 25677else 25678 { { echo "$as_me:$LINENO: error: could not detect a 64-bit integer type" >&5 25679echo "$as_me: error: could not detect a 64-bit integer type" >&2;} 25680 { (exit 1); exit 1; }; } 25681fi 25682 25683MCM_UINT_16_DCL=$mcm_uint_16 25684 25685MCM_UINT_32_DCL=$mcm_uint_32 25686 25687MCM_UINT_64_DCL=$mcm_uint_64 25688 25689 25690echo "$as_me:$LINENO: checking for ANSI C header files" >&5 25691echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 25692if test "${ac_cv_header_stdc+set}" = set; then 25693 echo $ECHO_N "(cached) $ECHO_C" >&6 25694else 25695 cat >conftest.$ac_ext <<_ACEOF 25696/* confdefs.h. */ 25697_ACEOF 25698cat confdefs.h >>conftest.$ac_ext 25699cat >>conftest.$ac_ext <<_ACEOF 25700/* end confdefs.h. */ 25701#include <stdlib.h> 25702#include <stdarg.h> 25703#include <string.h> 25704#include <float.h> 25705 25706int 25707main () 25708{ 25709 25710 ; 25711 return 0; 25712} 25713_ACEOF 25714rm -f conftest.$ac_objext 25715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25716 (eval $ac_compile) 2>conftest.er1 25717 ac_status=$? 25718 grep -v '^ *+' conftest.er1 >conftest.err 25719 rm -f conftest.er1 25720 cat conftest.err >&5 25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25722 (exit $ac_status); } && 25723 { ac_try='test -z "$ac_c_werror_flag" 25724 || test ! -s conftest.err' 25725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25726 (eval $ac_try) 2>&5 25727 ac_status=$? 25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25729 (exit $ac_status); }; } && 25730 { ac_try='test -s conftest.$ac_objext' 25731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25732 (eval $ac_try) 2>&5 25733 ac_status=$? 25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25735 (exit $ac_status); }; }; then 25736 ac_cv_header_stdc=yes 25737else 25738 echo "$as_me: failed program was:" >&5 25739sed 's/^/| /' conftest.$ac_ext >&5 25740 25741ac_cv_header_stdc=no 25742fi 25743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25744 25745if test $ac_cv_header_stdc = yes; then 25746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 25747 cat >conftest.$ac_ext <<_ACEOF 25748/* confdefs.h. */ 25749_ACEOF 25750cat confdefs.h >>conftest.$ac_ext 25751cat >>conftest.$ac_ext <<_ACEOF 25752/* end confdefs.h. */ 25753#include <string.h> 25754 25755_ACEOF 25756if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25757 $EGREP "memchr" >/dev/null 2>&1; then 25758 : 25759else 25760 ac_cv_header_stdc=no 25761fi 25762rm -f conftest* 25763 25764fi 25765 25766if test $ac_cv_header_stdc = yes; then 25767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 25768 cat >conftest.$ac_ext <<_ACEOF 25769/* confdefs.h. */ 25770_ACEOF 25771cat confdefs.h >>conftest.$ac_ext 25772cat >>conftest.$ac_ext <<_ACEOF 25773/* end confdefs.h. */ 25774#include <stdlib.h> 25775 25776_ACEOF 25777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25778 $EGREP "free" >/dev/null 2>&1; then 25779 : 25780else 25781 ac_cv_header_stdc=no 25782fi 25783rm -f conftest* 25784 25785fi 25786 25787if test $ac_cv_header_stdc = yes; then 25788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 25789 if test "$cross_compiling" = yes; then 25790 : 25791else 25792 cat >conftest.$ac_ext <<_ACEOF 25793/* confdefs.h. */ 25794_ACEOF 25795cat confdefs.h >>conftest.$ac_ext 25796cat >>conftest.$ac_ext <<_ACEOF 25797/* end confdefs.h. */ 25798#include <ctype.h> 25799#if ((' ' & 0x0FF) == 0x020) 25800# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 25801# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 25802#else 25803# define ISLOWER(c) \ 25804 (('a' <= (c) && (c) <= 'i') \ 25805 || ('j' <= (c) && (c) <= 'r') \ 25806 || ('s' <= (c) && (c) <= 'z')) 25807# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 25808#endif 25809 25810#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 25811int 25812main () 25813{ 25814 int i; 25815 for (i = 0; i < 256; i++) 25816 if (XOR (islower (i), ISLOWER (i)) 25817 || toupper (i) != TOUPPER (i)) 25818 exit(2); 25819 exit (0); 25820} 25821_ACEOF 25822rm -f conftest$ac_exeext 25823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25824 (eval $ac_link) 2>&5 25825 ac_status=$? 25826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 25828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25829 (eval $ac_try) 2>&5 25830 ac_status=$? 25831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25832 (exit $ac_status); }; }; then 25833 : 25834else 25835 echo "$as_me: program exited with status $ac_status" >&5 25836echo "$as_me: failed program was:" >&5 25837sed 's/^/| /' conftest.$ac_ext >&5 25838 25839( exit $ac_status ) 25840ac_cv_header_stdc=no 25841fi 25842rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 25843fi 25844fi 25845fi 25846echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 25847echo "${ECHO_T}$ac_cv_header_stdc" >&6 25848if test $ac_cv_header_stdc = yes; then 25849 25850cat >>confdefs.h <<\_ACEOF 25851#define STDC_HEADERS 1 25852_ACEOF 25853 25854fi 25855 25856 25857 25858 25859 25860 25861 25862 25863 25864 25865for ac_header in fcntl.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h unistd.h 25866do 25867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25868if eval "test \"\${$as_ac_Header+set}\" = set"; then 25869 echo "$as_me:$LINENO: checking for $ac_header" >&5 25870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 25871if eval "test \"\${$as_ac_Header+set}\" = set"; then 25872 echo $ECHO_N "(cached) $ECHO_C" >&6 25873fi 25874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 25875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 25876else 25877 # Is the header compilable? 25878echo "$as_me:$LINENO: checking $ac_header usability" >&5 25879echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 25880cat >conftest.$ac_ext <<_ACEOF 25881/* confdefs.h. */ 25882_ACEOF 25883cat confdefs.h >>conftest.$ac_ext 25884cat >>conftest.$ac_ext <<_ACEOF 25885/* end confdefs.h. */ 25886$ac_includes_default 25887#include <$ac_header> 25888_ACEOF 25889rm -f conftest.$ac_objext 25890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25891 (eval $ac_compile) 2>conftest.er1 25892 ac_status=$? 25893 grep -v '^ *+' conftest.er1 >conftest.err 25894 rm -f conftest.er1 25895 cat conftest.err >&5 25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25897 (exit $ac_status); } && 25898 { ac_try='test -z "$ac_c_werror_flag" 25899 || test ! -s conftest.err' 25900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25901 (eval $ac_try) 2>&5 25902 ac_status=$? 25903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25904 (exit $ac_status); }; } && 25905 { ac_try='test -s conftest.$ac_objext' 25906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25907 (eval $ac_try) 2>&5 25908 ac_status=$? 25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25910 (exit $ac_status); }; }; then 25911 ac_header_compiler=yes 25912else 25913 echo "$as_me: failed program was:" >&5 25914sed 's/^/| /' conftest.$ac_ext >&5 25915 25916ac_header_compiler=no 25917fi 25918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25919echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 25920echo "${ECHO_T}$ac_header_compiler" >&6 25921 25922# Is the header present? 25923echo "$as_me:$LINENO: checking $ac_header presence" >&5 25924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 25925cat >conftest.$ac_ext <<_ACEOF 25926/* confdefs.h. */ 25927_ACEOF 25928cat confdefs.h >>conftest.$ac_ext 25929cat >>conftest.$ac_ext <<_ACEOF 25930/* end confdefs.h. */ 25931#include <$ac_header> 25932_ACEOF 25933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 25934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 25935 ac_status=$? 25936 grep -v '^ *+' conftest.er1 >conftest.err 25937 rm -f conftest.er1 25938 cat conftest.err >&5 25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25940 (exit $ac_status); } >/dev/null; then 25941 if test -s conftest.err; then 25942 ac_cpp_err=$ac_c_preproc_warn_flag 25943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 25944 else 25945 ac_cpp_err= 25946 fi 25947else 25948 ac_cpp_err=yes 25949fi 25950if test -z "$ac_cpp_err"; then 25951 ac_header_preproc=yes 25952else 25953 echo "$as_me: failed program was:" >&5 25954sed 's/^/| /' conftest.$ac_ext >&5 25955 25956 ac_header_preproc=no 25957fi 25958rm -f conftest.err conftest.$ac_ext 25959echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 25960echo "${ECHO_T}$ac_header_preproc" >&6 25961 25962# So? What about this header? 25963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 25964 yes:no: ) 25965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 25966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 25967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 25968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 25969 ac_header_preproc=yes 25970 ;; 25971 no:yes:* ) 25972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 25973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 25974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 25975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 25976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 25977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 25978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 25979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 25980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 25981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 25982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 25983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 25984 ( 25985 cat <<\_ASBOX 25986## ------------------------------ ## 25987## Report this to sean@gigave.org ## 25988## ------------------------------ ## 25989_ASBOX 25990 ) | 25991 sed "s/^/$as_me: WARNING: /" >&2 25992 ;; 25993esac 25994echo "$as_me:$LINENO: checking for $ac_header" >&5 25995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 25996if eval "test \"\${$as_ac_Header+set}\" = set"; then 25997 echo $ECHO_N "(cached) $ECHO_C" >&6 25998else 25999 eval "$as_ac_Header=\$ac_header_preproc" 26000fi 26001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 26002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 26003 26004fi 26005if test `eval echo '${'$as_ac_Header'}'` = yes; then 26006 cat >>confdefs.h <<_ACEOF 26007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 26008_ACEOF 26009 26010fi 26011 26012done 26013 26014 26015echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 26016echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 26017if test "${ac_cv_c_const+set}" = set; then 26018 echo $ECHO_N "(cached) $ECHO_C" >&6 26019else 26020 cat >conftest.$ac_ext <<_ACEOF 26021/* confdefs.h. */ 26022_ACEOF 26023cat confdefs.h >>conftest.$ac_ext 26024cat >>conftest.$ac_ext <<_ACEOF 26025/* end confdefs.h. */ 26026 26027int 26028main () 26029{ 26030/* FIXME: Include the comments suggested by Paul. */ 26031#ifndef __cplusplus 26032 /* Ultrix mips cc rejects this. */ 26033 typedef int charset[2]; 26034 const charset x; 26035 /* SunOS 4.1.1 cc rejects this. */ 26036 char const *const *ccp; 26037 char **p; 26038 /* NEC SVR4.0.2 mips cc rejects this. */ 26039 struct point {int x, y;}; 26040 static struct point const zero = {0,0}; 26041 /* AIX XL C 1.02.0.0 rejects this. 26042 It does not let you subtract one const X* pointer from another in 26043 an arm of an if-expression whose if-part is not a constant 26044 expression */ 26045 const char *g = "string"; 26046 ccp = &g + (g ? g-g : 0); 26047 /* HPUX 7.0 cc rejects these. */ 26048 ++ccp; 26049 p = (char**) ccp; 26050 ccp = (char const *const *) p; 26051 { /* SCO 3.2v4 cc rejects this. */ 26052 char *t; 26053 char const *s = 0 ? (char *) 0 : (char const *) 0; 26054 26055 *t++ = 0; 26056 } 26057 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 26058 int x[] = {25, 17}; 26059 const int *foo = &x[0]; 26060 ++foo; 26061 } 26062 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 26063 typedef const int *iptr; 26064 iptr p = 0; 26065 ++p; 26066 } 26067 { /* AIX XL C 1.02.0.0 rejects this saying 26068 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 26069 struct s { int j; const int *ap[3]; }; 26070 struct s *b; b->j = 5; 26071 } 26072 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 26073 const int foo = 10; 26074 } 26075#endif 26076 26077 ; 26078 return 0; 26079} 26080_ACEOF 26081rm -f conftest.$ac_objext 26082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26083 (eval $ac_compile) 2>conftest.er1 26084 ac_status=$? 26085 grep -v '^ *+' conftest.er1 >conftest.err 26086 rm -f conftest.er1 26087 cat conftest.err >&5 26088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26089 (exit $ac_status); } && 26090 { ac_try='test -z "$ac_c_werror_flag" 26091 || test ! -s conftest.err' 26092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26093 (eval $ac_try) 2>&5 26094 ac_status=$? 26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26096 (exit $ac_status); }; } && 26097 { ac_try='test -s conftest.$ac_objext' 26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26099 (eval $ac_try) 2>&5 26100 ac_status=$? 26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26102 (exit $ac_status); }; }; then 26103 ac_cv_c_const=yes 26104else 26105 echo "$as_me: failed program was:" >&5 26106sed 's/^/| /' conftest.$ac_ext >&5 26107 26108ac_cv_c_const=no 26109fi 26110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 26111fi 26112echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 26113echo "${ECHO_T}$ac_cv_c_const" >&6 26114if test $ac_cv_c_const = no; then 26115 26116cat >>confdefs.h <<\_ACEOF 26117#define const 26118_ACEOF 26119 26120fi 26121 26122echo "$as_me:$LINENO: checking for inline" >&5 26123echo $ECHO_N "checking for inline... $ECHO_C" >&6 26124if test "${ac_cv_c_inline+set}" = set; then 26125 echo $ECHO_N "(cached) $ECHO_C" >&6 26126else 26127 ac_cv_c_inline=no 26128for ac_kw in inline __inline__ __inline; do 26129 cat >conftest.$ac_ext <<_ACEOF 26130/* confdefs.h. */ 26131_ACEOF 26132cat confdefs.h >>conftest.$ac_ext 26133cat >>conftest.$ac_ext <<_ACEOF 26134/* end confdefs.h. */ 26135#ifndef __cplusplus 26136typedef int foo_t; 26137static $ac_kw foo_t static_foo () {return 0; } 26138$ac_kw foo_t foo () {return 0; } 26139#endif 26140 26141_ACEOF 26142rm -f conftest.$ac_objext 26143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26144 (eval $ac_compile) 2>conftest.er1 26145 ac_status=$? 26146 grep -v '^ *+' conftest.er1 >conftest.err 26147 rm -f conftest.er1 26148 cat conftest.err >&5 26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26150 (exit $ac_status); } && 26151 { ac_try='test -z "$ac_c_werror_flag" 26152 || test ! -s conftest.err' 26153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26154 (eval $ac_try) 2>&5 26155 ac_status=$? 26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26157 (exit $ac_status); }; } && 26158 { ac_try='test -s conftest.$ac_objext' 26159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26160 (eval $ac_try) 2>&5 26161 ac_status=$? 26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26163 (exit $ac_status); }; }; then 26164 ac_cv_c_inline=$ac_kw; break 26165else 26166 echo "$as_me: failed program was:" >&5 26167sed 's/^/| /' conftest.$ac_ext >&5 26168 26169fi 26170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 26171done 26172 26173fi 26174echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 26175echo "${ECHO_T}$ac_cv_c_inline" >&6 26176 26177 26178case $ac_cv_c_inline in 26179 inline | yes) ;; 26180 *) 26181 case $ac_cv_c_inline in 26182 no) ac_val=;; 26183 *) ac_val=$ac_cv_c_inline;; 26184 esac 26185 cat >>confdefs.h <<_ACEOF 26186#ifndef __cplusplus 26187#define inline $ac_val 26188#endif 26189_ACEOF 26190 ;; 26191esac 26192 26193echo "$as_me:$LINENO: checking for pid_t" >&5 26194echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 26195if test "${ac_cv_type_pid_t+set}" = set; then 26196 echo $ECHO_N "(cached) $ECHO_C" >&6 26197else 26198 cat >conftest.$ac_ext <<_ACEOF 26199/* confdefs.h. */ 26200_ACEOF 26201cat confdefs.h >>conftest.$ac_ext 26202cat >>conftest.$ac_ext <<_ACEOF 26203/* end confdefs.h. */ 26204$ac_includes_default 26205int 26206main () 26207{ 26208if ((pid_t *) 0) 26209 return 0; 26210if (sizeof (pid_t)) 26211 return 0; 26212 ; 26213 return 0; 26214} 26215_ACEOF 26216rm -f conftest.$ac_objext 26217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26218 (eval $ac_compile) 2>conftest.er1 26219 ac_status=$? 26220 grep -v '^ *+' conftest.er1 >conftest.err 26221 rm -f conftest.er1 26222 cat conftest.err >&5 26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26224 (exit $ac_status); } && 26225 { ac_try='test -z "$ac_c_werror_flag" 26226 || test ! -s conftest.err' 26227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26228 (eval $ac_try) 2>&5 26229 ac_status=$? 26230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26231 (exit $ac_status); }; } && 26232 { ac_try='test -s conftest.$ac_objext' 26233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26234 (eval $ac_try) 2>&5 26235 ac_status=$? 26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26237 (exit $ac_status); }; }; then 26238 ac_cv_type_pid_t=yes 26239else 26240 echo "$as_me: failed program was:" >&5 26241sed 's/^/| /' conftest.$ac_ext >&5 26242 26243ac_cv_type_pid_t=no 26244fi 26245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 26246fi 26247echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 26248echo "${ECHO_T}$ac_cv_type_pid_t" >&6 26249if test $ac_cv_type_pid_t = yes; then 26250 : 26251else 26252 26253cat >>confdefs.h <<_ACEOF 26254#define pid_t int 26255_ACEOF 26256 26257fi 26258 26259echo "$as_me:$LINENO: checking for size_t" >&5 26260echo $ECHO_N "checking for size_t... $ECHO_C" >&6 26261if test "${ac_cv_type_size_t+set}" = set; then 26262 echo $ECHO_N "(cached) $ECHO_C" >&6 26263else 26264 cat >conftest.$ac_ext <<_ACEOF 26265/* confdefs.h. */ 26266_ACEOF 26267cat confdefs.h >>conftest.$ac_ext 26268cat >>conftest.$ac_ext <<_ACEOF 26269/* end confdefs.h. */ 26270$ac_includes_default 26271int 26272main () 26273{ 26274if ((size_t *) 0) 26275 return 0; 26276if (sizeof (size_t)) 26277 return 0; 26278 ; 26279 return 0; 26280} 26281_ACEOF 26282rm -f conftest.$ac_objext 26283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26284 (eval $ac_compile) 2>conftest.er1 26285 ac_status=$? 26286 grep -v '^ *+' conftest.er1 >conftest.err 26287 rm -f conftest.er1 26288 cat conftest.err >&5 26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26290 (exit $ac_status); } && 26291 { ac_try='test -z "$ac_c_werror_flag" 26292 || test ! -s conftest.err' 26293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26294 (eval $ac_try) 2>&5 26295 ac_status=$? 26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26297 (exit $ac_status); }; } && 26298 { ac_try='test -s conftest.$ac_objext' 26299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26300 (eval $ac_try) 2>&5 26301 ac_status=$? 26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26303 (exit $ac_status); }; }; then 26304 ac_cv_type_size_t=yes 26305else 26306 echo "$as_me: failed program was:" >&5 26307sed 's/^/| /' conftest.$ac_ext >&5 26308 26309ac_cv_type_size_t=no 26310fi 26311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 26312fi 26313echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 26314echo "${ECHO_T}$ac_cv_type_size_t" >&6 26315if test $ac_cv_type_size_t = yes; then 26316 : 26317else 26318 26319cat >>confdefs.h <<_ACEOF 26320#define size_t unsigned 26321_ACEOF 26322 26323fi 26324 26325echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 26326echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 26327if test "${ac_cv_header_time+set}" = set; then 26328 echo $ECHO_N "(cached) $ECHO_C" >&6 26329else 26330 cat >conftest.$ac_ext <<_ACEOF 26331/* confdefs.h. */ 26332_ACEOF 26333cat confdefs.h >>conftest.$ac_ext 26334cat >>conftest.$ac_ext <<_ACEOF 26335/* end confdefs.h. */ 26336#include <sys/types.h> 26337#include <sys/time.h> 26338#include <time.h> 26339 26340int 26341main () 26342{ 26343if ((struct tm *) 0) 26344return 0; 26345 ; 26346 return 0; 26347} 26348_ACEOF 26349rm -f conftest.$ac_objext 26350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26351 (eval $ac_compile) 2>conftest.er1 26352 ac_status=$? 26353 grep -v '^ *+' conftest.er1 >conftest.err 26354 rm -f conftest.er1 26355 cat conftest.err >&5 26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26357 (exit $ac_status); } && 26358 { ac_try='test -z "$ac_c_werror_flag" 26359 || test ! -s conftest.err' 26360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26361 (eval $ac_try) 2>&5 26362 ac_status=$? 26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26364 (exit $ac_status); }; } && 26365 { ac_try='test -s conftest.$ac_objext' 26366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26367 (eval $ac_try) 2>&5 26368 ac_status=$? 26369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26370 (exit $ac_status); }; }; then 26371 ac_cv_header_time=yes 26372else 26373 echo "$as_me: failed program was:" >&5 26374sed 's/^/| /' conftest.$ac_ext >&5 26375 26376ac_cv_header_time=no 26377fi 26378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 26379fi 26380echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 26381echo "${ECHO_T}$ac_cv_header_time" >&6 26382if test $ac_cv_header_time = yes; then 26383 26384cat >>confdefs.h <<\_ACEOF 26385#define TIME_WITH_SYS_TIME 1 26386_ACEOF 26387 26388fi 26389 26390 26391 26392for ac_header in stdlib.h 26393do 26394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 26395if eval "test \"\${$as_ac_Header+set}\" = set"; then 26396 echo "$as_me:$LINENO: checking for $ac_header" >&5 26397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 26398if eval "test \"\${$as_ac_Header+set}\" = set"; then 26399 echo $ECHO_N "(cached) $ECHO_C" >&6 26400fi 26401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 26402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 26403else 26404 # Is the header compilable? 26405echo "$as_me:$LINENO: checking $ac_header usability" >&5 26406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 26407cat >conftest.$ac_ext <<_ACEOF 26408/* confdefs.h. */ 26409_ACEOF 26410cat confdefs.h >>conftest.$ac_ext 26411cat >>conftest.$ac_ext <<_ACEOF 26412/* end confdefs.h. */ 26413$ac_includes_default 26414#include <$ac_header> 26415_ACEOF 26416rm -f conftest.$ac_objext 26417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26418 (eval $ac_compile) 2>conftest.er1 26419 ac_status=$? 26420 grep -v '^ *+' conftest.er1 >conftest.err 26421 rm -f conftest.er1 26422 cat conftest.err >&5 26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26424 (exit $ac_status); } && 26425 { ac_try='test -z "$ac_c_werror_flag" 26426 || test ! -s conftest.err' 26427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26428 (eval $ac_try) 2>&5 26429 ac_status=$? 26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26431 (exit $ac_status); }; } && 26432 { ac_try='test -s conftest.$ac_objext' 26433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26434 (eval $ac_try) 2>&5 26435 ac_status=$? 26436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26437 (exit $ac_status); }; }; then 26438 ac_header_compiler=yes 26439else 26440 echo "$as_me: failed program was:" >&5 26441sed 's/^/| /' conftest.$ac_ext >&5 26442 26443ac_header_compiler=no 26444fi 26445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 26446echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 26447echo "${ECHO_T}$ac_header_compiler" >&6 26448 26449# Is the header present? 26450echo "$as_me:$LINENO: checking $ac_header presence" >&5 26451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 26452cat >conftest.$ac_ext <<_ACEOF 26453/* confdefs.h. */ 26454_ACEOF 26455cat confdefs.h >>conftest.$ac_ext 26456cat >>conftest.$ac_ext <<_ACEOF 26457/* end confdefs.h. */ 26458#include <$ac_header> 26459_ACEOF 26460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 26461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 26462 ac_status=$? 26463 grep -v '^ *+' conftest.er1 >conftest.err 26464 rm -f conftest.er1 26465 cat conftest.err >&5 26466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26467 (exit $ac_status); } >/dev/null; then 26468 if test -s conftest.err; then 26469 ac_cpp_err=$ac_c_preproc_warn_flag 26470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 26471 else 26472 ac_cpp_err= 26473 fi 26474else 26475 ac_cpp_err=yes 26476fi 26477if test -z "$ac_cpp_err"; then 26478 ac_header_preproc=yes 26479else 26480 echo "$as_me: failed program was:" >&5 26481sed 's/^/| /' conftest.$ac_ext >&5 26482 26483 ac_header_preproc=no 26484fi 26485rm -f conftest.err conftest.$ac_ext 26486echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 26487echo "${ECHO_T}$ac_header_preproc" >&6 26488 26489# So? What about this header? 26490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 26491 yes:no: ) 26492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 26493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 26494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 26495echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 26496 ac_header_preproc=yes 26497 ;; 26498 no:yes:* ) 26499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 26500echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 26501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 26502echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 26503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 26504echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 26505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 26506echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 26507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 26508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 26509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 26510echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 26511 ( 26512 cat <<\_ASBOX 26513## ------------------------------ ## 26514## Report this to sean@gigave.org ## 26515## ------------------------------ ## 26516_ASBOX 26517 ) | 26518 sed "s/^/$as_me: WARNING: /" >&2 26519 ;; 26520esac 26521echo "$as_me:$LINENO: checking for $ac_header" >&5 26522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 26523if eval "test \"\${$as_ac_Header+set}\" = set"; then 26524 echo $ECHO_N "(cached) $ECHO_C" >&6 26525else 26526 eval "$as_ac_Header=\$ac_header_preproc" 26527fi 26528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 26529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 26530 26531fi 26532if test `eval echo '${'$as_ac_Header'}'` = yes; then 26533 cat >>confdefs.h <<_ACEOF 26534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 26535_ACEOF 26536 26537fi 26538 26539done 26540 26541echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 26542echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 26543if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 26544 echo $ECHO_N "(cached) $ECHO_C" >&6 26545else 26546 if test "$cross_compiling" = yes; then 26547 ac_cv_func_malloc_0_nonnull=no 26548else 26549 cat >conftest.$ac_ext <<_ACEOF 26550/* confdefs.h. */ 26551_ACEOF 26552cat confdefs.h >>conftest.$ac_ext 26553cat >>conftest.$ac_ext <<_ACEOF 26554/* end confdefs.h. */ 26555#if STDC_HEADERS || HAVE_STDLIB_H 26556# include <stdlib.h> 26557#else 26558char *malloc (); 26559#endif 26560 26561int 26562main () 26563{ 26564exit (malloc (0) ? 0 : 1); 26565 ; 26566 return 0; 26567} 26568_ACEOF 26569rm -f conftest$ac_exeext 26570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26571 (eval $ac_link) 2>&5 26572 ac_status=$? 26573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 26575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26576 (eval $ac_try) 2>&5 26577 ac_status=$? 26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26579 (exit $ac_status); }; }; then 26580 ac_cv_func_malloc_0_nonnull=yes 26581else 26582 echo "$as_me: program exited with status $ac_status" >&5 26583echo "$as_me: failed program was:" >&5 26584sed 's/^/| /' conftest.$ac_ext >&5 26585 26586( exit $ac_status ) 26587ac_cv_func_malloc_0_nonnull=no 26588fi 26589rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 26590fi 26591fi 26592echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 26593echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 26594if test $ac_cv_func_malloc_0_nonnull = yes; then 26595 26596cat >>confdefs.h <<\_ACEOF 26597#define HAVE_MALLOC 1 26598_ACEOF 26599 26600else 26601 cat >>confdefs.h <<\_ACEOF 26602#define HAVE_MALLOC 0 26603_ACEOF 26604 26605 case $LIBOBJS in 26606 "malloc.$ac_objext" | \ 26607 *" malloc.$ac_objext" | \ 26608 "malloc.$ac_objext "* | \ 26609 *" malloc.$ac_objext "* ) ;; 26610 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; 26611esac 26612 26613 26614cat >>confdefs.h <<\_ACEOF 26615#define malloc rpl_malloc 26616_ACEOF 26617 26618fi 26619 26620 26621 26622echo "$as_me:$LINENO: checking for working memcmp" >&5 26623echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 26624if test "${ac_cv_func_memcmp_working+set}" = set; then 26625 echo $ECHO_N "(cached) $ECHO_C" >&6 26626else 26627 if test "$cross_compiling" = yes; then 26628 ac_cv_func_memcmp_working=no 26629else 26630 cat >conftest.$ac_ext <<_ACEOF 26631/* confdefs.h. */ 26632_ACEOF 26633cat confdefs.h >>conftest.$ac_ext 26634cat >>conftest.$ac_ext <<_ACEOF 26635/* end confdefs.h. */ 26636$ac_includes_default 26637int 26638main () 26639{ 26640 26641 /* Some versions of memcmp are not 8-bit clean. */ 26642 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 26643 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 26644 exit (1); 26645 26646 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 26647 or more and with at least one buffer not starting on a 4-byte boundary. 26648 William Lewis provided this test program. */ 26649 { 26650 char foo[21]; 26651 char bar[21]; 26652 int i; 26653 for (i = 0; i < 4; i++) 26654 { 26655 char *a = foo + i; 26656 char *b = bar + i; 26657 strcpy (a, "--------01111111"); 26658 strcpy (b, "--------10000000"); 26659 if (memcmp (a, b, 16) >= 0) 26660 exit (1); 26661 } 26662 exit (0); 26663 } 26664 26665 ; 26666 return 0; 26667} 26668_ACEOF 26669rm -f conftest$ac_exeext 26670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26671 (eval $ac_link) 2>&5 26672 ac_status=$? 26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 26675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26676 (eval $ac_try) 2>&5 26677 ac_status=$? 26678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26679 (exit $ac_status); }; }; then 26680 ac_cv_func_memcmp_working=yes 26681else 26682 echo "$as_me: program exited with status $ac_status" >&5 26683echo "$as_me: failed program was:" >&5 26684sed 's/^/| /' conftest.$ac_ext >&5 26685 26686( exit $ac_status ) 26687ac_cv_func_memcmp_working=no 26688fi 26689rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 26690fi 26691fi 26692echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 26693echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 26694test $ac_cv_func_memcmp_working = no && case $LIBOBJS in 26695 "memcmp.$ac_objext" | \ 26696 *" memcmp.$ac_objext" | \ 26697 "memcmp.$ac_objext "* | \ 26698 *" memcmp.$ac_objext "* ) ;; 26699 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; 26700esac 26701 26702 26703 26704 26705for ac_header in sys/select.h sys/socket.h 26706do 26707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 26708if eval "test \"\${$as_ac_Header+set}\" = set"; then 26709 echo "$as_me:$LINENO: checking for $ac_header" >&5 26710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 26711if eval "test \"\${$as_ac_Header+set}\" = set"; then 26712 echo $ECHO_N "(cached) $ECHO_C" >&6 26713fi 26714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 26715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 26716else 26717 # Is the header compilable? 26718echo "$as_me:$LINENO: checking $ac_header usability" >&5 26719echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 26720cat >conftest.$ac_ext <<_ACEOF 26721/* confdefs.h. */ 26722_ACEOF 26723cat confdefs.h >>conftest.$ac_ext 26724cat >>conftest.$ac_ext <<_ACEOF 26725/* end confdefs.h. */ 26726$ac_includes_default 26727#include <$ac_header> 26728_ACEOF 26729rm -f conftest.$ac_objext 26730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26731 (eval $ac_compile) 2>conftest.er1 26732 ac_status=$? 26733 grep -v '^ *+' conftest.er1 >conftest.err 26734 rm -f conftest.er1 26735 cat conftest.err >&5 26736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26737 (exit $ac_status); } && 26738 { ac_try='test -z "$ac_c_werror_flag" 26739 || test ! -s conftest.err' 26740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26741 (eval $ac_try) 2>&5 26742 ac_status=$? 26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26744 (exit $ac_status); }; } && 26745 { ac_try='test -s conftest.$ac_objext' 26746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26747 (eval $ac_try) 2>&5 26748 ac_status=$? 26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26750 (exit $ac_status); }; }; then 26751 ac_header_compiler=yes 26752else 26753 echo "$as_me: failed program was:" >&5 26754sed 's/^/| /' conftest.$ac_ext >&5 26755 26756ac_header_compiler=no 26757fi 26758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 26759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 26760echo "${ECHO_T}$ac_header_compiler" >&6 26761 26762# Is the header present? 26763echo "$as_me:$LINENO: checking $ac_header presence" >&5 26764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 26765cat >conftest.$ac_ext <<_ACEOF 26766/* confdefs.h. */ 26767_ACEOF 26768cat confdefs.h >>conftest.$ac_ext 26769cat >>conftest.$ac_ext <<_ACEOF 26770/* end confdefs.h. */ 26771#include <$ac_header> 26772_ACEOF 26773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 26774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 26775 ac_status=$? 26776 grep -v '^ *+' conftest.er1 >conftest.err 26777 rm -f conftest.er1 26778 cat conftest.err >&5 26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26780 (exit $ac_status); } >/dev/null; then 26781 if test -s conftest.err; then 26782 ac_cpp_err=$ac_c_preproc_warn_flag 26783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 26784 else 26785 ac_cpp_err= 26786 fi 26787else 26788 ac_cpp_err=yes 26789fi 26790if test -z "$ac_cpp_err"; then 26791 ac_header_preproc=yes 26792else 26793 echo "$as_me: failed program was:" >&5 26794sed 's/^/| /' conftest.$ac_ext >&5 26795 26796 ac_header_preproc=no 26797fi 26798rm -f conftest.err conftest.$ac_ext 26799echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 26800echo "${ECHO_T}$ac_header_preproc" >&6 26801 26802# So? What about this header? 26803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 26804 yes:no: ) 26805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 26806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 26807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 26808echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 26809 ac_header_preproc=yes 26810 ;; 26811 no:yes:* ) 26812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 26813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 26814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 26815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 26816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 26817echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 26818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 26819echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 26820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 26821echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 26822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 26823echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 26824 ( 26825 cat <<\_ASBOX 26826## ------------------------------ ## 26827## Report this to sean@gigave.org ## 26828## ------------------------------ ## 26829_ASBOX 26830 ) | 26831 sed "s/^/$as_me: WARNING: /" >&2 26832 ;; 26833esac 26834echo "$as_me:$LINENO: checking for $ac_header" >&5 26835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 26836if eval "test \"\${$as_ac_Header+set}\" = set"; then 26837 echo $ECHO_N "(cached) $ECHO_C" >&6 26838else 26839 eval "$as_ac_Header=\$ac_header_preproc" 26840fi 26841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 26842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 26843 26844fi 26845if test `eval echo '${'$as_ac_Header'}'` = yes; then 26846 cat >>confdefs.h <<_ACEOF 26847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 26848_ACEOF 26849 26850fi 26851 26852done 26853 26854echo "$as_me:$LINENO: checking types of arguments for select" >&5 26855echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6 26856if test "${ac_cv_func_select_args+set}" = set; then 26857 echo $ECHO_N "(cached) $ECHO_C" >&6 26858else 26859 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 26860 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do 26861 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 26862 cat >conftest.$ac_ext <<_ACEOF 26863/* confdefs.h. */ 26864_ACEOF 26865cat confdefs.h >>conftest.$ac_ext 26866cat >>conftest.$ac_ext <<_ACEOF 26867/* end confdefs.h. */ 26868$ac_includes_default 26869#if HAVE_SYS_SELECT_H 26870# include <sys/select.h> 26871#endif 26872#if HAVE_SYS_SOCKET_H 26873# include <sys/socket.h> 26874#endif 26875 26876int 26877main () 26878{ 26879extern int select ($ac_arg1, 26880 $ac_arg234, $ac_arg234, $ac_arg234, 26881 $ac_arg5); 26882 ; 26883 return 0; 26884} 26885_ACEOF 26886rm -f conftest.$ac_objext 26887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26888 (eval $ac_compile) 2>conftest.er1 26889 ac_status=$? 26890 grep -v '^ *+' conftest.er1 >conftest.err 26891 rm -f conftest.er1 26892 cat conftest.err >&5 26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26894 (exit $ac_status); } && 26895 { ac_try='test -z "$ac_c_werror_flag" 26896 || test ! -s conftest.err' 26897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26898 (eval $ac_try) 2>&5 26899 ac_status=$? 26900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26901 (exit $ac_status); }; } && 26902 { ac_try='test -s conftest.$ac_objext' 26903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26904 (eval $ac_try) 2>&5 26905 ac_status=$? 26906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26907 (exit $ac_status); }; }; then 26908 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 26909else 26910 echo "$as_me: failed program was:" >&5 26911sed 's/^/| /' conftest.$ac_ext >&5 26912 26913fi 26914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 26915 done 26916 done 26917done 26918# Provide a safe default value. 26919: ${ac_cv_func_select_args='int,int *,struct timeval *'} 26920 26921fi 26922echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 26923echo "${ECHO_T}$ac_cv_func_select_args" >&6 26924ac_save_IFS=$IFS; IFS=',' 26925set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 26926IFS=$ac_save_IFS 26927shift 26928 26929cat >>confdefs.h <<_ACEOF 26930#define SELECT_TYPE_ARG1 $1 26931_ACEOF 26932 26933 26934cat >>confdefs.h <<_ACEOF 26935#define SELECT_TYPE_ARG234 ($2) 26936_ACEOF 26937 26938 26939cat >>confdefs.h <<_ACEOF 26940#define SELECT_TYPE_ARG5 ($3) 26941_ACEOF 26942 26943rm -f conftest* 26944 26945 26946 26947 26948 26949 26950 26951 26952 26953for ac_func in bzero gettimeofday memchr memset select socket strerror strtol 26954do 26955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 26956echo "$as_me:$LINENO: checking for $ac_func" >&5 26957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 26958if eval "test \"\${$as_ac_var+set}\" = set"; then 26959 echo $ECHO_N "(cached) $ECHO_C" >&6 26960else 26961 cat >conftest.$ac_ext <<_ACEOF 26962/* confdefs.h. */ 26963_ACEOF 26964cat confdefs.h >>conftest.$ac_ext 26965cat >>conftest.$ac_ext <<_ACEOF 26966/* end confdefs.h. */ 26967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 26968 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26969#define $ac_func innocuous_$ac_func 26970 26971/* System header to define __stub macros and hopefully few prototypes, 26972 which can conflict with char $ac_func (); below. 26973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26974 <limits.h> exists even on freestanding compilers. */ 26975 26976#ifdef __STDC__ 26977# include <limits.h> 26978#else 26979# include <assert.h> 26980#endif 26981 26982#undef $ac_func 26983 26984/* Override any gcc2 internal prototype to avoid an error. */ 26985#ifdef __cplusplus 26986extern "C" 26987{ 26988#endif 26989/* We use char because int might match the return type of a gcc2 26990 builtin and then its argument prototype would still apply. */ 26991char $ac_func (); 26992/* The GNU C library defines this for functions which it implements 26993 to always fail with ENOSYS. Some functions are actually named 26994 something starting with __ and the normal name is an alias. */ 26995#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 26996choke me 26997#else 26998char (*f) () = $ac_func; 26999#endif 27000#ifdef __cplusplus 27001} 27002#endif 27003 27004int 27005main () 27006{ 27007return f != $ac_func; 27008 ; 27009 return 0; 27010} 27011_ACEOF 27012rm -f conftest.$ac_objext conftest$ac_exeext 27013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27014 (eval $ac_link) 2>conftest.er1 27015 ac_status=$? 27016 grep -v '^ *+' conftest.er1 >conftest.err 27017 rm -f conftest.er1 27018 cat conftest.err >&5 27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27020 (exit $ac_status); } && 27021 { ac_try='test -z "$ac_c_werror_flag" 27022 || test ! -s conftest.err' 27023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27024 (eval $ac_try) 2>&5 27025 ac_status=$? 27026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27027 (exit $ac_status); }; } && 27028 { ac_try='test -s conftest$ac_exeext' 27029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27030 (eval $ac_try) 2>&5 27031 ac_status=$? 27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27033 (exit $ac_status); }; }; then 27034 eval "$as_ac_var=yes" 27035else 27036 echo "$as_me: failed program was:" >&5 27037sed 's/^/| /' conftest.$ac_ext >&5 27038 27039eval "$as_ac_var=no" 27040fi 27041rm -f conftest.err conftest.$ac_objext \ 27042 conftest$ac_exeext conftest.$ac_ext 27043fi 27044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 27045echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 27046if test `eval echo '${'$as_ac_var'}'` = yes; then 27047 cat >>confdefs.h <<_ACEOF 27048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 27049_ACEOF 27050 27051fi 27052done 27053 27054 27055echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 27056echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 27057if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 27058 echo $ECHO_N "(cached) $ECHO_C" >&6 27059else 27060 ac_check_lib_save_LIBS=$LIBS 27061LIBS="-lsocket $LIBS" 27062cat >conftest.$ac_ext <<_ACEOF 27063/* confdefs.h. */ 27064_ACEOF 27065cat confdefs.h >>conftest.$ac_ext 27066cat >>conftest.$ac_ext <<_ACEOF 27067/* end confdefs.h. */ 27068 27069/* Override any gcc2 internal prototype to avoid an error. */ 27070#ifdef __cplusplus 27071extern "C" 27072#endif 27073/* We use char because int might match the return type of a gcc2 27074 builtin and then its argument prototype would still apply. */ 27075char setsockopt (); 27076int 27077main () 27078{ 27079setsockopt (); 27080 ; 27081 return 0; 27082} 27083_ACEOF 27084rm -f conftest.$ac_objext conftest$ac_exeext 27085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27086 (eval $ac_link) 2>conftest.er1 27087 ac_status=$? 27088 grep -v '^ *+' conftest.er1 >conftest.err 27089 rm -f conftest.er1 27090 cat conftest.err >&5 27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27092 (exit $ac_status); } && 27093 { ac_try='test -z "$ac_c_werror_flag" 27094 || test ! -s conftest.err' 27095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27096 (eval $ac_try) 2>&5 27097 ac_status=$? 27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27099 (exit $ac_status); }; } && 27100 { ac_try='test -s conftest$ac_exeext' 27101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27102 (eval $ac_try) 2>&5 27103 ac_status=$? 27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27105 (exit $ac_status); }; }; then 27106 ac_cv_lib_socket_setsockopt=yes 27107else 27108 echo "$as_me: failed program was:" >&5 27109sed 's/^/| /' conftest.$ac_ext >&5 27110 27111ac_cv_lib_socket_setsockopt=no 27112fi 27113rm -f conftest.err conftest.$ac_objext \ 27114 conftest$ac_exeext conftest.$ac_ext 27115LIBS=$ac_check_lib_save_LIBS 27116fi 27117echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 27118echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 27119if test $ac_cv_lib_socket_setsockopt = yes; then 27120 LIBS="$LIBS -lsocket" 27121fi 27122 27123 27124echo "$as_me:$LINENO: checking for enabled debug CFLAGS" >&5 27125echo $ECHO_N "checking for enabled debug CFLAGS... $ECHO_C" >&6 27126# Check whether --enable-debug or --disable-debug was given. 27127if test "${enable_debug+set}" = set; then 27128 enableval="$enable_debug" 27129 use_debug=$enableval 27130fi; 27131if test "x$use_debug" = xyes; then 27132CFLAGS="$CFLAGS $DEBUG_cflags" 27133echo "$as_me:$LINENO: result: yes" >&5 27134echo "${ECHO_T}yes" >&6 27135else 27136echo "$as_me:$LINENO: result: no" >&5 27137echo "${ECHO_T}no" >&6 27138fi 27139 27140 27141 27142 27143echo "$as_me:$LINENO: checking whether to use SO_RCVTIMEO with setsockopt()" >&5 27144echo $ECHO_N "checking whether to use SO_RCVTIMEO with setsockopt()... $ECHO_C" >&6 27145if test "$cross_compiling" = yes; then 27146 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 27147See \`config.log' for more details." >&5 27148echo "$as_me: error: cannot run test program while cross compiling 27149See \`config.log' for more details." >&2;} 27150 { (exit 1); exit 1; }; } 27151else 27152 cat >conftest.$ac_ext <<_ACEOF 27153/* confdefs.h. */ 27154_ACEOF 27155cat confdefs.h >>conftest.$ac_ext 27156cat >>conftest.$ac_ext <<_ACEOF 27157/* end confdefs.h. */ 27158 27159#include <sys/types.h> 27160#include <sys/socket.h> 27161#include <sys/time.h> 27162 27163int 27164main(void) { 27165 int s; 27166 struct timeval tv; 27167 tv.tv_sec = 3; 27168 tv.tv_usec = 0; 27169 27170#ifndef SO_RCVTIMEO 27171 exit(3); 27172#else 27173 if ((s = socket(AF_INET, SOCK_STREAM, 0)) == -1) 27174 exit(2); 27175 27176 /* fails on Solaris 2.6,8,9,10 and some Linuxes because 27177 SO_RCVTIMEO|SO_SNDTIMEO are defined but not implemented */ 27178 if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (const void *)&tv, sizeof(tv)) == -1) 27179 exit(1); 27180 27181 exit(0); 27182#endif 27183} 27184 27185 27186_ACEOF 27187rm -f conftest$ac_exeext 27188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27189 (eval $ac_link) 2>&5 27190 ac_status=$? 27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 27193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27194 (eval $ac_try) 2>&5 27195 ac_status=$? 27196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27197 (exit $ac_status); }; }; then 27198 echo "$as_me:$LINENO: result: yes" >&5 27199echo "${ECHO_T}yes" >&6 27200cat >>confdefs.h <<\_ACEOF 27201#define USE_SO_RCVTIMEO 1 27202_ACEOF 27203 27204 27205else 27206 echo "$as_me: program exited with status $ac_status" >&5 27207echo "$as_me: failed program was:" >&5 27208sed 's/^/| /' conftest.$ac_ext >&5 27209 27210( exit $ac_status ) 27211 echo "$as_me:$LINENO: result: no" >&5 27212echo "${ECHO_T}no" >&6 27213 27214fi 27215rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 27216fi 27217 27218 27219echo "$as_me:$LINENO: checking whether to use SO_SNDTIMEO with setsockopt()" >&5 27220echo $ECHO_N "checking whether to use SO_SNDTIMEO with setsockopt()... $ECHO_C" >&6 27221if test "$cross_compiling" = yes; then 27222 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 27223See \`config.log' for more details." >&5 27224echo "$as_me: error: cannot run test program while cross compiling 27225See \`config.log' for more details." >&2;} 27226 { (exit 1); exit 1; }; } 27227else 27228 cat >conftest.$ac_ext <<_ACEOF 27229/* confdefs.h. */ 27230_ACEOF 27231cat confdefs.h >>conftest.$ac_ext 27232cat >>conftest.$ac_ext <<_ACEOF 27233/* end confdefs.h. */ 27234 27235#include <sys/types.h> 27236#include <sys/socket.h> 27237#include <sys/time.h> 27238 27239int 27240main(void) { 27241 int s; 27242 struct timeval tv; 27243 tv.tv_sec = 3; 27244 tv.tv_usec = 0; 27245 27246#ifndef SO_SNDTIMEO 27247 exit(3); 27248#else 27249 if ((s = socket(AF_INET, SOCK_STREAM, 0)) == -1) 27250 exit(2); 27251 27252 /* fails on Solaris 2.6,8,9,10 and some Linuxes because 27253 SO_RCVTIMEO|SO_SNDTIMEO are defined but not implemented */ 27254 if (setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, (const void *)&tv, sizeof(tv)) == -1) 27255 exit(1); 27256 27257 exit(0); 27258#endif 27259} 27260 27261 27262_ACEOF 27263rm -f conftest$ac_exeext 27264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27265 (eval $ac_link) 2>&5 27266 ac_status=$? 27267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 27269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27270 (eval $ac_try) 2>&5 27271 ac_status=$? 27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27273 (exit $ac_status); }; }; then 27274 echo "$as_me:$LINENO: result: yes" >&5 27275echo "${ECHO_T}yes" >&6 27276cat >>confdefs.h <<\_ACEOF 27277#define USE_SO_SNDTIMEO 1 27278_ACEOF 27279 27280 27281else 27282 echo "$as_me: program exited with status $ac_status" >&5 27283echo "$as_me: failed program was:" >&5 27284sed 's/^/| /' conftest.$ac_ext >&5 27285 27286( exit $ac_status ) 27287 echo "$as_me:$LINENO: result: no" >&5 27288echo "${ECHO_T}no" >&6 27289 27290fi 27291rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 27292fi 27293 27294 27295# Check whether --enable-default-buf-size or --disable-default-buf-size was given. 27296if test "${enable_default_buf_size+set}" = set; then 27297 enableval="$enable_default_buf_size" 27298 use_default_buf_size=$enableval 27299else 27300 use_default_buf_size=0 27301fi; 27302echo "$as_me:$LINENO: checking for default buffer size for \"get\" commands" >&5 27303echo $ECHO_N "checking for default buffer size for \"get\" commands... $ECHO_C" >&6 27304if test "x$use_default_buf_size" = xno; then 27305{ { echo "$as_me:$LINENO: error: Default buffer size must be specified (ie: some value between 512 and 32768)" >&5 27306echo "$as_me: error: Default buffer size must be specified (ie: some value between 512 and 32768)" >&2;} 27307 { (exit 1); exit 1; }; } 27308elif test "x$use_default_buf_size" = x0; then 27309use_default_buf_size=4096 27310fi 27311INIT_GET_BUF_SIZE=$use_default_buf_size 27312 27313echo "$as_me:$LINENO: result: $use_default_buf_size" >&5 27314echo "${ECHO_T}$use_default_buf_size" >&6 27315 27316# Check whether --enable-hash-type or --disable-hash-type was given. 27317if test "${enable_hash_type+set}" = set; then 27318 enableval="$enable_hash_type" 27319 use_hash_type=$enableval 27320else 27321 use_hash_type=default 27322fi; 27323echo "$as_me:$LINENO: checking for client side hash algo preference" >&5 27324echo $ECHO_N "checking for client side hash algo preference... $ECHO_C" >&6 27325if test "x$use_hash_type" = xcrc32 -o "x$use_hash_type" = xdefault; then 27326cat >>confdefs.h <<\_ACEOF 27327#define USE_CRC32_HASH 1 27328_ACEOF 27329 27330echo "$as_me:$LINENO: result: crc32" >&5 27331echo "${ECHO_T}crc32" >&6 27332elif test "x$use_hash_type" = xelf; then 27333cat >>confdefs.h <<\_ACEOF 27334#define USE_ELF_HASH 1 27335_ACEOF 27336 27337echo "$as_me:$LINENO: result: elf" >&5 27338echo "${ECHO_T}elf" >&6 27339elif test "x$use_hash_type" = xperl; then 27340cat >>confdefs.h <<\_ACEOF 27341#define USE_PERL_HASH 1 27342_ACEOF 27343 27344echo "$as_me:$LINENO: result: perl" >&5 27345echo "${ECHO_T}perl" >&6 27346else 27347{ { echo "$as_me:$LINENO: error: Invalid hash type. Valid hash types include \"crc32\", \"elf\", and \"perl\"." >&5 27348echo "$as_me: error: Invalid hash type. Valid hash types include \"crc32\", \"elf\", and \"perl\"." >&2;} 27349 { (exit 1); exit 1; }; } 27350fi 27351 27352 27353 27354 27355 27356 27357 27358# Check whether --enable-mc-proto-assert or --disable-mc-proto-assert was given. 27359if test "${enable_mc_proto_assert+set}" = set; then 27360 enableval="$enable_mc_proto_assert" 27361 use_mc_proto_assert=$enableval 27362else 27363 use_mc_proto_assert=default 27364fi; 27365echo "$as_me:$LINENO: checking viability of using protocol assertions" >&5 27366echo $ECHO_N "checking viability of using protocol assertions... $ECHO_C" >&6 27367if test "x$use_mc_proto_assert" = xyes -o "x$use_mc_proto_assert" = xdefault; then 27368if test "x$support_macro_varargs" = xyes; then 27369cat >>confdefs.h <<\_ACEOF 27370#define DEBUG_MC_PROTO_ASSERT 1 27371_ACEOF 27372 27373echo "$as_me:$LINENO: result: yes" >&5 27374echo "${ECHO_T}yes" >&6 27375else 27376echo "$as_me:$LINENO: result: no (no variadic macro support)" >&5 27377echo "${ECHO_T}no (no variadic macro support)" >&6 27378fi 27379else 27380echo "$as_me:$LINENO: result: no" >&5 27381echo "${ECHO_T}no" >&6 27382fi 27383 27384 27385 27386# Check whether --enable-mc-proto-debug or --disable-mc-proto-debug was given. 27387if test "${enable_mc_proto_debug+set}" = set; then 27388 enableval="$enable_mc_proto_debug" 27389 if test "x$support_macro_varargs" = xyes; then 27390 use_mc_proto_trace=$enableval 27391else 27392 { echo "$as_me:$LINENO: WARNING: No variadic macro support, disabling protocol debugging." >&5 27393echo "$as_me: WARNING: No variadic macro support, disabling protocol debugging." >&2;} 27394 use_mc_proto_trace=no 27395fi 27396fi; 27397if test "x$use_mc_proto_trace" = xyes; then 27398{ echo "$as_me:$LINENO: WARNING: Enabling protocol debugging. *NEVER* enable this in production" >&5 27399echo "$as_me: WARNING: Enabling protocol debugging. *NEVER* enable this in production" >&2;} 27400cat >>confdefs.h <<\_ACEOF 27401#define DEBUG_MC_PROTO 1 27402_ACEOF 27403 27404fi 27405 27406 27407 27408echo "$as_me:$LINENO: checking for enabled compiler optimizations" >&5 27409echo $ECHO_N "checking for enabled compiler optimizations... $ECHO_C" >&6 27410# Check whether --enable-optimize or --disable-optimize was given. 27411if test "${enable_optimize+set}" = set; then 27412 enableval="$enable_optimize" 27413 use_optimize=$enableval 27414else 27415 use_optimize=default 27416fi; 27417if test "x$use_optimize" = xyes; then 27418CFLAGS="$OPTIMIZE $CFLAGS" 27419echo "$as_me:$LINENO: result: yes" >&5 27420echo "${ECHO_T}yes" >&6 27421elif test "x$use_optimize" = xdefault -a ! \( "x$use_debug" = xyes -o "x$use_profile" = xyes \); then 27422CFLAGS="$OPTIMIZE $CFLAGS" 27423echo "$as_me:$LINENO: result: yes" >&5 27424echo "${ECHO_T}yes" >&6 27425else 27426echo "$as_me:$LINENO: result: no" >&5 27427echo "${ECHO_T}no" >&6 27428fi 27429 27430echo "$as_me:$LINENO: checking for enabled profiling CFLAGS" >&5 27431echo $ECHO_N "checking for enabled profiling CFLAGS... $ECHO_C" >&6 27432# Check whether --enable-profile or --disable-profile was given. 27433if test "${enable_profile+set}" = set; then 27434 enableval="$enable_profile" 27435 use_profile=$enableval 27436fi; 27437if test "x$use_profile" = xyes; then 27438CFLAGS="$CFLAGS $PROFILE" 27439echo "$as_me:$LINENO: result: yes" >&5 27440echo "${ECHO_T}yes" >&6 27441else 27442echo "$as_me:$LINENO: result: no" >&5 27443echo "${ECHO_T}no" >&6 27444fi 27445 27446 ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile include/memcache.h include/memcache/Makefile src/Makefile test/Makefile test/benchmark/Makefile test/buffer_recycle/Makefile test/long_val/Makefile test/regress/Makefile test/redundant_server/Makefile test/unit/Makefile" 27447 27448cat >confcache <<\_ACEOF 27449# This file is a shell script that caches the results of configure 27450# tests run on this system so they can be shared between configure 27451# scripts and configure runs, see configure's option --config-cache. 27452# It is not useful on other systems. If it contains results you don't 27453# want to keep, you may remove or edit it. 27454# 27455# config.status only pays attention to the cache file if you give it 27456# the --recheck option to rerun configure. 27457# 27458# `ac_cv_env_foo' variables (set or unset) will be overridden when 27459# loading this file, other *unset* `ac_cv_foo' will be assigned the 27460# following values. 27461 27462_ACEOF 27463 27464# The following way of writing the cache mishandles newlines in values, 27465# but we know of no workaround that is simple, portable, and efficient. 27466# So, don't put newlines in cache variables' values. 27467# Ultrix sh set writes to stderr and can't be redirected directly, 27468# and sets the high bit in the cache file unless we assign to the vars. 27469{ 27470 (set) 2>&1 | 27471 case `(ac_space=' '; set | grep ac_space) 2>&1` in 27472 *ac_space=\ *) 27473 # `set' does not quote correctly, so add quotes (double-quote 27474 # substitution turns \\\\ into \\, and sed turns \\ into \). 27475 sed -n \ 27476 "s/'/'\\\\''/g; 27477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27478 ;; 27479 *) 27480 # `set' quotes correctly as required by POSIX, so do not add quotes. 27481 sed -n \ 27482 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 27483 ;; 27484 esac; 27485} | 27486 sed ' 27487 t clear 27488 : clear 27489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27490 t end 27491 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27492 : end' >>confcache 27493if diff $cache_file confcache >/dev/null 2>&1; then :; else 27494 if test -w $cache_file; then 27495 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 27496 cat confcache >$cache_file 27497 else 27498 echo "not updating unwritable cache $cache_file" 27499 fi 27500fi 27501rm -f confcache 27502 27503test "x$prefix" = xNONE && prefix=$ac_default_prefix 27504# Let make expand exec_prefix. 27505test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 27506 27507# VPATH may cause trouble with some makes, so we remove $(srcdir), 27508# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 27509# trailing colons and then remove the whole line if VPATH becomes empty 27510# (actually we leave an empty line to preserve line numbers). 27511if test "x$srcdir" = x.; then 27512 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 27513s/:*\$(srcdir):*/:/; 27514s/:*\${srcdir}:*/:/; 27515s/:*@srcdir@:*/:/; 27516s/^\([^=]*=[ ]*\):*/\1/; 27517s/:*$//; 27518s/^[^=]*=[ ]*$//; 27519}' 27520fi 27521 27522DEFS=-DHAVE_CONFIG_H 27523 27524ac_libobjs= 27525ac_ltlibobjs= 27526for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 27527 # 1. Remove the extension, and $U if already installed. 27528 ac_i=`echo "$ac_i" | 27529 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 27530 # 2. Add them. 27531 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 27532 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 27533done 27534LIBOBJS=$ac_libobjs 27535 27536LTLIBOBJS=$ac_ltlibobjs 27537 27538 27539if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 27540 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 27541Usually this means the macro was only invoked conditionally." >&5 27542echo "$as_me: error: conditional \"AMDEP\" was never defined. 27543Usually this means the macro was only invoked conditionally." >&2;} 27544 { (exit 1); exit 1; }; } 27545fi 27546if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27547 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 27548Usually this means the macro was only invoked conditionally." >&5 27549echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 27550Usually this means the macro was only invoked conditionally." >&2;} 27551 { (exit 1); exit 1; }; } 27552fi 27553if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27554 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 27555Usually this means the macro was only invoked conditionally." >&5 27556echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 27557Usually this means the macro was only invoked conditionally." >&2;} 27558 { (exit 1); exit 1; }; } 27559fi 27560if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 27561 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 27562Usually this means the macro was only invoked conditionally." >&5 27563echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 27564Usually this means the macro was only invoked conditionally." >&2;} 27565 { (exit 1); exit 1; }; } 27566fi 27567 27568: ${CONFIG_STATUS=./config.status} 27569ac_clean_files_save=$ac_clean_files 27570ac_clean_files="$ac_clean_files $CONFIG_STATUS" 27571{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 27572echo "$as_me: creating $CONFIG_STATUS" >&6;} 27573cat >$CONFIG_STATUS <<_ACEOF 27574#! $SHELL 27575# Generated by $as_me. 27576# Run this file to recreate the current configuration. 27577# Compiler output produced by configure, useful for debugging 27578# configure, is in config.log if it exists. 27579 27580debug=false 27581ac_cs_recheck=false 27582ac_cs_silent=false 27583SHELL=\${CONFIG_SHELL-$SHELL} 27584_ACEOF 27585 27586cat >>$CONFIG_STATUS <<\_ACEOF 27587## --------------------- ## 27588## M4sh Initialization. ## 27589## --------------------- ## 27590 27591# Be Bourne compatible 27592if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 27593 emulate sh 27594 NULLCMD=: 27595 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 27596 # is contrary to our usage. Disable this feature. 27597 alias -g '${1+"$@"}'='"$@"' 27598elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 27599 set -o posix 27600fi 27601DUALCASE=1; export DUALCASE # for MKS sh 27602 27603# Support unset when possible. 27604if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 27605 as_unset=unset 27606else 27607 as_unset=false 27608fi 27609 27610 27611# Work around bugs in pre-3.0 UWIN ksh. 27612$as_unset ENV MAIL MAILPATH 27613PS1='$ ' 27614PS2='> ' 27615PS4='+ ' 27616 27617# NLS nuisances. 27618for as_var in \ 27619 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 27620 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 27621 LC_TELEPHONE LC_TIME 27622do 27623 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 27624 eval $as_var=C; export $as_var 27625 else 27626 $as_unset $as_var 27627 fi 27628done 27629 27630# Required to use basename. 27631if expr a : '\(a\)' >/dev/null 2>&1; then 27632 as_expr=expr 27633else 27634 as_expr=false 27635fi 27636 27637if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 27638 as_basename=basename 27639else 27640 as_basename=false 27641fi 27642 27643 27644# Name of the executable. 27645as_me=`$as_basename "$0" || 27646$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 27647 X"$0" : 'X\(//\)$' \| \ 27648 X"$0" : 'X\(/\)$' \| \ 27649 . : '\(.\)' 2>/dev/null || 27650echo X/"$0" | 27651 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 27652 /^X\/\(\/\/\)$/{ s//\1/; q; } 27653 /^X\/\(\/\).*/{ s//\1/; q; } 27654 s/.*/./; q'` 27655 27656 27657# PATH needs CR, and LINENO needs CR and PATH. 27658# Avoid depending upon Character Ranges. 27659as_cr_letters='abcdefghijklmnopqrstuvwxyz' 27660as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 27661as_cr_Letters=$as_cr_letters$as_cr_LETTERS 27662as_cr_digits='0123456789' 27663as_cr_alnum=$as_cr_Letters$as_cr_digits 27664 27665# The user is always right. 27666if test "${PATH_SEPARATOR+set}" != set; then 27667 echo "#! /bin/sh" >conf$$.sh 27668 echo "exit 0" >>conf$$.sh 27669 chmod +x conf$$.sh 27670 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 27671 PATH_SEPARATOR=';' 27672 else 27673 PATH_SEPARATOR=: 27674 fi 27675 rm -f conf$$.sh 27676fi 27677 27678 27679 as_lineno_1=$LINENO 27680 as_lineno_2=$LINENO 27681 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 27682 test "x$as_lineno_1" != "x$as_lineno_2" && 27683 test "x$as_lineno_3" = "x$as_lineno_2" || { 27684 # Find who we are. Look in the path if we contain no path at all 27685 # relative or not. 27686 case $0 in 27687 *[\\/]* ) as_myself=$0 ;; 27688 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27689for as_dir in $PATH 27690do 27691 IFS=$as_save_IFS 27692 test -z "$as_dir" && as_dir=. 27693 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 27694done 27695 27696 ;; 27697 esac 27698 # We did not find ourselves, most probably we were run as `sh COMMAND' 27699 # in which case we are not to be found in the path. 27700 if test "x$as_myself" = x; then 27701 as_myself=$0 27702 fi 27703 if test ! -f "$as_myself"; then 27704 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 27705echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 27706 { (exit 1); exit 1; }; } 27707 fi 27708 case $CONFIG_SHELL in 27709 '') 27710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27711for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 27712do 27713 IFS=$as_save_IFS 27714 test -z "$as_dir" && as_dir=. 27715 for as_base in sh bash ksh sh5; do 27716 case $as_dir in 27717 /*) 27718 if ("$as_dir/$as_base" -c ' 27719 as_lineno_1=$LINENO 27720 as_lineno_2=$LINENO 27721 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 27722 test "x$as_lineno_1" != "x$as_lineno_2" && 27723 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 27724 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 27725 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 27726 CONFIG_SHELL=$as_dir/$as_base 27727 export CONFIG_SHELL 27728 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 27729 fi;; 27730 esac 27731 done 27732done 27733;; 27734 esac 27735 27736 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 27737 # uniformly replaced by the line number. The first 'sed' inserts a 27738 # line-number line before each line; the second 'sed' does the real 27739 # work. The second script uses 'N' to pair each line-number line 27740 # with the numbered line, and appends trailing '-' during 27741 # substitution so that $LINENO is not a special case at line end. 27742 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 27743 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 27744 sed '=' <$as_myself | 27745 sed ' 27746 N 27747 s,$,-, 27748 : loop 27749 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 27750 t loop 27751 s,-$,, 27752 s,^['$as_cr_digits']*\n,, 27753 ' >$as_me.lineno && 27754 chmod +x $as_me.lineno || 27755 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 27756echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 27757 { (exit 1); exit 1; }; } 27758 27759 # Don't try to exec as it changes $[0], causing all sort of problems 27760 # (the dirname of $[0] is not the place where we might find the 27761 # original and so on. Autoconf is especially sensible to this). 27762 . ./$as_me.lineno 27763 # Exit status is that of the last command. 27764 exit 27765} 27766 27767 27768case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 27769 *c*,-n*) ECHO_N= ECHO_C=' 27770' ECHO_T=' ' ;; 27771 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 27772 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 27773esac 27774 27775if expr a : '\(a\)' >/dev/null 2>&1; then 27776 as_expr=expr 27777else 27778 as_expr=false 27779fi 27780 27781rm -f conf$$ conf$$.exe conf$$.file 27782echo >conf$$.file 27783if ln -s conf$$.file conf$$ 2>/dev/null; then 27784 # We could just check for DJGPP; but this test a) works b) is more generic 27785 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 27786 if test -f conf$$.exe; then 27787 # Don't use ln at all; we don't have any links 27788 as_ln_s='cp -p' 27789 else 27790 as_ln_s='ln -s' 27791 fi 27792elif ln conf$$.file conf$$ 2>/dev/null; then 27793 as_ln_s=ln 27794else 27795 as_ln_s='cp -p' 27796fi 27797rm -f conf$$ conf$$.exe conf$$.file 27798 27799if mkdir -p . 2>/dev/null; then 27800 as_mkdir_p=: 27801else 27802 test -d ./-p && rmdir ./-p 27803 as_mkdir_p=false 27804fi 27805 27806as_executable_p="test -f" 27807 27808# Sed expression to map a string onto a valid CPP name. 27809as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 27810 27811# Sed expression to map a string onto a valid variable name. 27812as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27813 27814 27815# IFS 27816# We need space, tab and new line, in precisely that order. 27817as_nl=' 27818' 27819IFS=" $as_nl" 27820 27821# CDPATH. 27822$as_unset CDPATH 27823 27824exec 6>&1 27825 27826# Open the log real soon, to keep \$[0] and so on meaningful, and to 27827# report actual input values of CONFIG_FILES etc. instead of their 27828# values after options handling. Logging --version etc. is OK. 27829exec 5>>config.log 27830{ 27831 echo 27832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 27833## Running $as_me. ## 27834_ASBOX 27835} >&5 27836cat >&5 <<_CSEOF 27837 27838This file was extended by memcache $as_me 1.4.0.rc2, which was 27839generated by GNU Autoconf 2.59. Invocation command line was 27840 27841 CONFIG_FILES = $CONFIG_FILES 27842 CONFIG_HEADERS = $CONFIG_HEADERS 27843 CONFIG_LINKS = $CONFIG_LINKS 27844 CONFIG_COMMANDS = $CONFIG_COMMANDS 27845 $ $0 $@ 27846 27847_CSEOF 27848echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 27849echo >&5 27850_ACEOF 27851 27852# Files that config.status was made for. 27853if test -n "$ac_config_files"; then 27854 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 27855fi 27856 27857if test -n "$ac_config_headers"; then 27858 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 27859fi 27860 27861if test -n "$ac_config_links"; then 27862 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 27863fi 27864 27865if test -n "$ac_config_commands"; then 27866 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 27867fi 27868 27869cat >>$CONFIG_STATUS <<\_ACEOF 27870 27871ac_cs_usage="\ 27872\`$as_me' instantiates files from templates according to the 27873current configuration. 27874 27875Usage: $0 [OPTIONS] [FILE]... 27876 27877 -h, --help print this help, then exit 27878 -V, --version print version number, then exit 27879 -q, --quiet do not print progress messages 27880 -d, --debug don't remove temporary files 27881 --recheck update $as_me by reconfiguring in the same conditions 27882 --file=FILE[:TEMPLATE] 27883 instantiate the configuration file FILE 27884 --header=FILE[:TEMPLATE] 27885 instantiate the configuration header FILE 27886 27887Configuration files: 27888$config_files 27889 27890Configuration headers: 27891$config_headers 27892 27893Configuration commands: 27894$config_commands 27895 27896Report bugs to <bug-autoconf@gnu.org>." 27897_ACEOF 27898 27899cat >>$CONFIG_STATUS <<_ACEOF 27900ac_cs_version="\\ 27901memcache config.status 1.4.0.rc2 27902configured by $0, generated by GNU Autoconf 2.59, 27903 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 27904 27905Copyright (C) 2003 Free Software Foundation, Inc. 27906This config.status script is free software; the Free Software Foundation 27907gives unlimited permission to copy, distribute and modify it." 27908srcdir=$srcdir 27909INSTALL="$INSTALL" 27910_ACEOF 27911 27912cat >>$CONFIG_STATUS <<\_ACEOF 27913# If no file are specified by the user, then we need to provide default 27914# value. By we need to know if files were specified by the user. 27915ac_need_defaults=: 27916while test $# != 0 27917do 27918 case $1 in 27919 --*=*) 27920 ac_option=`expr "x$1" : 'x\([^=]*\)='` 27921 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 27922 ac_shift=: 27923 ;; 27924 -*) 27925 ac_option=$1 27926 ac_optarg=$2 27927 ac_shift=shift 27928 ;; 27929 *) # This is not an option, so the user has probably given explicit 27930 # arguments. 27931 ac_option=$1 27932 ac_need_defaults=false;; 27933 esac 27934 27935 case $ac_option in 27936 # Handling of the options. 27937_ACEOF 27938cat >>$CONFIG_STATUS <<\_ACEOF 27939 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 27940 ac_cs_recheck=: ;; 27941 --version | --vers* | -V ) 27942 echo "$ac_cs_version"; exit 0 ;; 27943 --he | --h) 27944 # Conflict between --help and --header 27945 { { echo "$as_me:$LINENO: error: ambiguous option: $1 27946Try \`$0 --help' for more information." >&5 27947echo "$as_me: error: ambiguous option: $1 27948Try \`$0 --help' for more information." >&2;} 27949 { (exit 1); exit 1; }; };; 27950 --help | --hel | -h ) 27951 echo "$ac_cs_usage"; exit 0 ;; 27952 --debug | --d* | -d ) 27953 debug=: ;; 27954 --file | --fil | --fi | --f ) 27955 $ac_shift 27956 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 27957 ac_need_defaults=false;; 27958 --header | --heade | --head | --hea ) 27959 $ac_shift 27960 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 27961 ac_need_defaults=false;; 27962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27963 | -silent | --silent | --silen | --sile | --sil | --si | --s) 27964 ac_cs_silent=: ;; 27965 27966 # This is an error. 27967 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 27968Try \`$0 --help' for more information." >&5 27969echo "$as_me: error: unrecognized option: $1 27970Try \`$0 --help' for more information." >&2;} 27971 { (exit 1); exit 1; }; } ;; 27972 27973 *) ac_config_targets="$ac_config_targets $1" ;; 27974 27975 esac 27976 shift 27977done 27978 27979ac_configure_extra_args= 27980 27981if $ac_cs_silent; then 27982 exec 6>/dev/null 27983 ac_configure_extra_args="$ac_configure_extra_args --silent" 27984fi 27985 27986_ACEOF 27987cat >>$CONFIG_STATUS <<_ACEOF 27988if \$ac_cs_recheck; then 27989 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 27990 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 27991fi 27992 27993_ACEOF 27994 27995cat >>$CONFIG_STATUS <<_ACEOF 27996# 27997# INIT-COMMANDS section. 27998# 27999 28000AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 28001 28002_ACEOF 28003 28004 28005 28006cat >>$CONFIG_STATUS <<\_ACEOF 28007for ac_config_target in $ac_config_targets 28008do 28009 case "$ac_config_target" in 28010 # Handling of arguments. 28011 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 28012 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 28013 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 28014 "include/memcache.h" ) CONFIG_FILES="$CONFIG_FILES include/memcache.h" ;; 28015 "include/memcache/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/memcache/Makefile" ;; 28016 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 28017 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 28018 "test/benchmark/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/benchmark/Makefile" ;; 28019 "test/buffer_recycle/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/buffer_recycle/Makefile" ;; 28020 "test/long_val/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/long_val/Makefile" ;; 28021 "test/regress/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regress/Makefile" ;; 28022 "test/redundant_server/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/redundant_server/Makefile" ;; 28023 "test/unit/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;; 28024 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 28025 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 28026 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 28027echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 28028 { (exit 1); exit 1; }; };; 28029 esac 28030done 28031 28032# If the user did not use the arguments to specify the items to instantiate, 28033# then the envvar interface is used. Set only those that are not. 28034# We use the long form for the default assignment because of an extremely 28035# bizarre bug on SunOS 4.1.3. 28036if $ac_need_defaults; then 28037 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 28038 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 28039 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 28040fi 28041 28042# Have a temporary directory for convenience. Make it in the build tree 28043# simply because there is no reason to put it here, and in addition, 28044# creating and moving files from /tmp can sometimes cause problems. 28045# Create a temporary directory, and hook for its removal unless debugging. 28046$debug || 28047{ 28048 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 28049 trap '{ (exit 1); exit 1; }' 1 2 13 15 28050} 28051 28052# Create a (secure) tmp directory for tmp files. 28053 28054{ 28055 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 28056 test -n "$tmp" && test -d "$tmp" 28057} || 28058{ 28059 tmp=./confstat$$-$RANDOM 28060 (umask 077 && mkdir $tmp) 28061} || 28062{ 28063 echo "$me: cannot create a temporary directory in ." >&2 28064 { (exit 1); exit 1; } 28065} 28066 28067_ACEOF 28068 28069cat >>$CONFIG_STATUS <<_ACEOF 28070 28071# 28072# CONFIG_FILES section. 28073# 28074 28075# No need to generate the scripts if there are no CONFIG_FILES. 28076# This happens for instance when ./config.status config.h 28077if test -n "\$CONFIG_FILES"; then 28078 # Protect against being on the right side of a sed subst in config.status. 28079 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 28080 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 28081s,@SHELL@,$SHELL,;t t 28082s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 28083s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 28084s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 28085s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 28086s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 28087s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 28088s,@exec_prefix@,$exec_prefix,;t t 28089s,@prefix@,$prefix,;t t 28090s,@program_transform_name@,$program_transform_name,;t t 28091s,@bindir@,$bindir,;t t 28092s,@sbindir@,$sbindir,;t t 28093s,@libexecdir@,$libexecdir,;t t 28094s,@datadir@,$datadir,;t t 28095s,@sysconfdir@,$sysconfdir,;t t 28096s,@sharedstatedir@,$sharedstatedir,;t t 28097s,@localstatedir@,$localstatedir,;t t 28098s,@libdir@,$libdir,;t t 28099s,@includedir@,$includedir,;t t 28100s,@oldincludedir@,$oldincludedir,;t t 28101s,@infodir@,$infodir,;t t 28102s,@mandir@,$mandir,;t t 28103s,@build_alias@,$build_alias,;t t 28104s,@host_alias@,$host_alias,;t t 28105s,@target_alias@,$target_alias,;t t 28106s,@DEFS@,$DEFS,;t t 28107s,@ECHO_C@,$ECHO_C,;t t 28108s,@ECHO_N@,$ECHO_N,;t t 28109s,@ECHO_T@,$ECHO_T,;t t 28110s,@LIBS@,$LIBS,;t t 28111s,@build@,$build,;t t 28112s,@build_cpu@,$build_cpu,;t t 28113s,@build_vendor@,$build_vendor,;t t 28114s,@build_os@,$build_os,;t t 28115s,@host@,$host,;t t 28116s,@host_cpu@,$host_cpu,;t t 28117s,@host_vendor@,$host_vendor,;t t 28118s,@host_os@,$host_os,;t t 28119s,@target@,$target,;t t 28120s,@target_cpu@,$target_cpu,;t t 28121s,@target_vendor@,$target_vendor,;t t 28122s,@target_os@,$target_os,;t t 28123s,@MEMCACHE_MAJOR_VERSION@,$MEMCACHE_MAJOR_VERSION,;t t 28124s,@MEMCACHE_MINOR_VERSION@,$MEMCACHE_MINOR_VERSION,;t t 28125s,@MEMCACHE_MICRO_VERSION_SUFFIX@,$MEMCACHE_MICRO_VERSION_SUFFIX,;t t 28126s,@MEMCACHE_RELDATE@,$MEMCACHE_RELDATE,;t t 28127s,@MEMCACHE_VERSION@,$MEMCACHE_VERSION,;t t 28128s,@MEMCACHE_VERSION_INFO@,$MEMCACHE_VERSION_INFO,;t t 28129s,@MEMCACHE_VERSION_NUMBER@,$MEMCACHE_VERSION_NUMBER,;t t 28130s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 28131s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 28132s,@INSTALL_DATA@,$INSTALL_DATA,;t t 28133s,@CYGPATH_W@,$CYGPATH_W,;t t 28134s,@PACKAGE@,$PACKAGE,;t t 28135s,@VERSION@,$VERSION,;t t 28136s,@ACLOCAL@,$ACLOCAL,;t t 28137s,@AUTOCONF@,$AUTOCONF,;t t 28138s,@AUTOMAKE@,$AUTOMAKE,;t t 28139s,@AUTOHEADER@,$AUTOHEADER,;t t 28140s,@MAKEINFO@,$MAKEINFO,;t t 28141s,@install_sh@,$install_sh,;t t 28142s,@STRIP@,$STRIP,;t t 28143s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 28144s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 28145s,@mkdir_p@,$mkdir_p,;t t 28146s,@AWK@,$AWK,;t t 28147s,@SET_MAKE@,$SET_MAKE,;t t 28148s,@am__leading_dot@,$am__leading_dot,;t t 28149s,@AMTAR@,$AMTAR,;t t 28150s,@am__tar@,$am__tar,;t t 28151s,@am__untar@,$am__untar,;t t 28152s,@CC@,$CC,;t t 28153s,@CFLAGS@,$CFLAGS,;t t 28154s,@LDFLAGS@,$LDFLAGS,;t t 28155s,@CPPFLAGS@,$CPPFLAGS,;t t 28156s,@ac_ct_CC@,$ac_ct_CC,;t t 28157s,@EXEEXT@,$EXEEXT,;t t 28158s,@OBJEXT@,$OBJEXT,;t t 28159s,@DEPDIR@,$DEPDIR,;t t 28160s,@am__include@,$am__include,;t t 28161s,@am__quote@,$am__quote,;t t 28162s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 28163s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 28164s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 28165s,@CCDEPMODE@,$CCDEPMODE,;t t 28166s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 28167s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 28168s,@EGREP@,$EGREP,;t t 28169s,@LN_S@,$LN_S,;t t 28170s,@ECHO@,$ECHO,;t t 28171s,@AR@,$AR,;t t 28172s,@ac_ct_AR@,$ac_ct_AR,;t t 28173s,@RANLIB@,$RANLIB,;t t 28174s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 28175s,@CPP@,$CPP,;t t 28176s,@CXX@,$CXX,;t t 28177s,@CXXFLAGS@,$CXXFLAGS,;t t 28178s,@ac_ct_CXX@,$ac_ct_CXX,;t t 28179s,@CXXDEPMODE@,$CXXDEPMODE,;t t 28180s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 28181s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 28182s,@CXXCPP@,$CXXCPP,;t t 28183s,@F77@,$F77,;t t 28184s,@FFLAGS@,$FFLAGS,;t t 28185s,@ac_ct_F77@,$ac_ct_F77,;t t 28186s,@LIBTOOL@,$LIBTOOL,;t t 28187s,@BIN_KILLALL@,$BIN_KILLALL,;t t 28188s,@BIN_MEMCACHED@,$BIN_MEMCACHED,;t t 28189s,@BIN_MD5@,$BIN_MD5,;t t 28190s,@BIN_SVN2CL@,$BIN_SVN2CL,;t t 28191s,@MCM_CALLBACK_CTXT@,$MCM_CALLBACK_CTXT,;t t 28192s,@MCM_CALLBACK_KEY@,$MCM_CALLBACK_KEY,;t t 28193s,@MCM_CALLBACK_LEN@,$MCM_CALLBACK_LEN,;t t 28194s,@MCM_CALLBACK_MC@,$MCM_CALLBACK_MC,;t t 28195s,@MCM_CALLBACK_PTR@,$MCM_CALLBACK_PTR,;t t 28196s,@MCM_CALLBACK_RES@,$MCM_CALLBACK_RES,;t t 28197s,@MCM_ERR_MASK@,$MCM_ERR_MASK,;t t 28198s,@MCM_ERR_FUNC_ERR_CTXT@,$MCM_ERR_FUNC_ERR_CTXT,;t t 28199s,@MCM_ERR_FUNC_MC_CTXT@,$MCM_ERR_FUNC_MC_CTXT,;t t 28200s,@MCM_KEY_VALID_KEY@,$MCM_KEY_VALID_KEY,;t t 28201s,@MCM_KEY_VALID_LEN@,$MCM_KEY_VALID_LEN,;t t 28202s,@MCM_UINT_16_DCL@,$MCM_UINT_16_DCL,;t t 28203s,@MCM_UINT_32_DCL@,$MCM_UINT_32_DCL,;t t 28204s,@MCM_UINT_64_DCL@,$MCM_UINT_64_DCL,;t t 28205s,@LIBOBJS@,$LIBOBJS,;t t 28206s,@INIT_GET_BUF_SIZE@,$INIT_GET_BUF_SIZE,;t t 28207s,@LTLIBOBJS@,$LTLIBOBJS,;t t 28208CEOF 28209 28210_ACEOF 28211 28212 cat >>$CONFIG_STATUS <<\_ACEOF 28213 # Split the substitutions into bite-sized pieces for seds with 28214 # small command number limits, like on Digital OSF/1 and HP-UX. 28215 ac_max_sed_lines=48 28216 ac_sed_frag=1 # Number of current file. 28217 ac_beg=1 # First line for current file. 28218 ac_end=$ac_max_sed_lines # Line after last line for current file. 28219 ac_more_lines=: 28220 ac_sed_cmds= 28221 while $ac_more_lines; do 28222 if test $ac_beg -gt 1; then 28223 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 28224 else 28225 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 28226 fi 28227 if test ! -s $tmp/subs.frag; then 28228 ac_more_lines=false 28229 else 28230 # The purpose of the label and of the branching condition is to 28231 # speed up the sed processing (if there are no `@' at all, there 28232 # is no need to browse any of the substitutions). 28233 # These are the two extra sed commands mentioned above. 28234 (echo ':t 28235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 28236 if test -z "$ac_sed_cmds"; then 28237 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 28238 else 28239 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 28240 fi 28241 ac_sed_frag=`expr $ac_sed_frag + 1` 28242 ac_beg=$ac_end 28243 ac_end=`expr $ac_end + $ac_max_sed_lines` 28244 fi 28245 done 28246 if test -z "$ac_sed_cmds"; then 28247 ac_sed_cmds=cat 28248 fi 28249fi # test -n "$CONFIG_FILES" 28250 28251_ACEOF 28252cat >>$CONFIG_STATUS <<\_ACEOF 28253for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 28254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 28255 case $ac_file in 28256 - | *:- | *:-:* ) # input from stdin 28257 cat >$tmp/stdin 28258 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 28259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 28260 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 28261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 28262 * ) ac_file_in=$ac_file.in ;; 28263 esac 28264 28265 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 28266 ac_dir=`(dirname "$ac_file") 2>/dev/null || 28267$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28268 X"$ac_file" : 'X\(//\)[^/]' \| \ 28269 X"$ac_file" : 'X\(//\)$' \| \ 28270 X"$ac_file" : 'X\(/\)' \| \ 28271 . : '\(.\)' 2>/dev/null || 28272echo X"$ac_file" | 28273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28274 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28275 /^X\(\/\/\)$/{ s//\1/; q; } 28276 /^X\(\/\).*/{ s//\1/; q; } 28277 s/.*/./; q'` 28278 { if $as_mkdir_p; then 28279 mkdir -p "$ac_dir" 28280 else 28281 as_dir="$ac_dir" 28282 as_dirs= 28283 while test ! -d "$as_dir"; do 28284 as_dirs="$as_dir $as_dirs" 28285 as_dir=`(dirname "$as_dir") 2>/dev/null || 28286$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28287 X"$as_dir" : 'X\(//\)[^/]' \| \ 28288 X"$as_dir" : 'X\(//\)$' \| \ 28289 X"$as_dir" : 'X\(/\)' \| \ 28290 . : '\(.\)' 2>/dev/null || 28291echo X"$as_dir" | 28292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28293 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28294 /^X\(\/\/\)$/{ s//\1/; q; } 28295 /^X\(\/\).*/{ s//\1/; q; } 28296 s/.*/./; q'` 28297 done 28298 test ! -n "$as_dirs" || mkdir $as_dirs 28299 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 28300echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 28301 { (exit 1); exit 1; }; }; } 28302 28303 ac_builddir=. 28304 28305if test "$ac_dir" != .; then 28306 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 28307 # A "../" for each directory in $ac_dir_suffix. 28308 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 28309else 28310 ac_dir_suffix= ac_top_builddir= 28311fi 28312 28313case $srcdir in 28314 .) # No --srcdir option. We are building in place. 28315 ac_srcdir=. 28316 if test -z "$ac_top_builddir"; then 28317 ac_top_srcdir=. 28318 else 28319 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 28320 fi ;; 28321 [\\/]* | ?:[\\/]* ) # Absolute path. 28322 ac_srcdir=$srcdir$ac_dir_suffix; 28323 ac_top_srcdir=$srcdir ;; 28324 *) # Relative path. 28325 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 28326 ac_top_srcdir=$ac_top_builddir$srcdir ;; 28327esac 28328 28329# Do not use `cd foo && pwd` to compute absolute paths, because 28330# the directories may not exist. 28331case `pwd` in 28332.) ac_abs_builddir="$ac_dir";; 28333*) 28334 case "$ac_dir" in 28335 .) ac_abs_builddir=`pwd`;; 28336 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 28337 *) ac_abs_builddir=`pwd`/"$ac_dir";; 28338 esac;; 28339esac 28340case $ac_abs_builddir in 28341.) ac_abs_top_builddir=${ac_top_builddir}.;; 28342*) 28343 case ${ac_top_builddir}. in 28344 .) ac_abs_top_builddir=$ac_abs_builddir;; 28345 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 28346 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 28347 esac;; 28348esac 28349case $ac_abs_builddir in 28350.) ac_abs_srcdir=$ac_srcdir;; 28351*) 28352 case $ac_srcdir in 28353 .) ac_abs_srcdir=$ac_abs_builddir;; 28354 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 28355 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 28356 esac;; 28357esac 28358case $ac_abs_builddir in 28359.) ac_abs_top_srcdir=$ac_top_srcdir;; 28360*) 28361 case $ac_top_srcdir in 28362 .) ac_abs_top_srcdir=$ac_abs_builddir;; 28363 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 28364 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 28365 esac;; 28366esac 28367 28368 28369 case $INSTALL in 28370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 28371 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 28372 esac 28373 28374 if test x"$ac_file" != x-; then 28375 { echo "$as_me:$LINENO: creating $ac_file" >&5 28376echo "$as_me: creating $ac_file" >&6;} 28377 rm -f "$ac_file" 28378 fi 28379 # Let's still pretend it is `configure' which instantiates (i.e., don't 28380 # use $as_me), people would be surprised to read: 28381 # /* config.h. Generated by config.status. */ 28382 if test x"$ac_file" = x-; then 28383 configure_input= 28384 else 28385 configure_input="$ac_file. " 28386 fi 28387 configure_input=$configure_input"Generated from `echo $ac_file_in | 28388 sed 's,.*/,,'` by configure." 28389 28390 # First look for the input files in the build tree, otherwise in the 28391 # src tree. 28392 ac_file_inputs=`IFS=: 28393 for f in $ac_file_in; do 28394 case $f in 28395 -) echo $tmp/stdin ;; 28396 [\\/$]*) 28397 # Absolute (can't be DOS-style, as IFS=:) 28398 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 28399echo "$as_me: error: cannot find input file: $f" >&2;} 28400 { (exit 1); exit 1; }; } 28401 echo "$f";; 28402 *) # Relative 28403 if test -f "$f"; then 28404 # Build tree 28405 echo "$f" 28406 elif test -f "$srcdir/$f"; then 28407 # Source tree 28408 echo "$srcdir/$f" 28409 else 28410 # /dev/null tree 28411 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 28412echo "$as_me: error: cannot find input file: $f" >&2;} 28413 { (exit 1); exit 1; }; } 28414 fi;; 28415 esac 28416 done` || { (exit 1); exit 1; } 28417_ACEOF 28418cat >>$CONFIG_STATUS <<_ACEOF 28419 sed "$ac_vpsub 28420$extrasub 28421_ACEOF 28422cat >>$CONFIG_STATUS <<\_ACEOF 28423:t 28424/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 28425s,@configure_input@,$configure_input,;t t 28426s,@srcdir@,$ac_srcdir,;t t 28427s,@abs_srcdir@,$ac_abs_srcdir,;t t 28428s,@top_srcdir@,$ac_top_srcdir,;t t 28429s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 28430s,@builddir@,$ac_builddir,;t t 28431s,@abs_builddir@,$ac_abs_builddir,;t t 28432s,@top_builddir@,$ac_top_builddir,;t t 28433s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 28434s,@INSTALL@,$ac_INSTALL,;t t 28435" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 28436 rm -f $tmp/stdin 28437 if test x"$ac_file" != x-; then 28438 mv $tmp/out $ac_file 28439 else 28440 cat $tmp/out 28441 rm -f $tmp/out 28442 fi 28443 28444done 28445_ACEOF 28446cat >>$CONFIG_STATUS <<\_ACEOF 28447 28448# 28449# CONFIG_HEADER section. 28450# 28451 28452# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 28453# NAME is the cpp macro being defined and VALUE is the value it is being given. 28454# 28455# ac_d sets the value in "#define NAME VALUE" lines. 28456ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 28457ac_dB='[ ].*$,\1#\2' 28458ac_dC=' ' 28459ac_dD=',;t' 28460# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 28461ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 28462ac_uB='$,\1#\2define\3' 28463ac_uC=' ' 28464ac_uD=',;t' 28465 28466for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 28467 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 28468 case $ac_file in 28469 - | *:- | *:-:* ) # input from stdin 28470 cat >$tmp/stdin 28471 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 28472 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 28473 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 28474 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 28475 * ) ac_file_in=$ac_file.in ;; 28476 esac 28477 28478 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 28479echo "$as_me: creating $ac_file" >&6;} 28480 28481 # First look for the input files in the build tree, otherwise in the 28482 # src tree. 28483 ac_file_inputs=`IFS=: 28484 for f in $ac_file_in; do 28485 case $f in 28486 -) echo $tmp/stdin ;; 28487 [\\/$]*) 28488 # Absolute (can't be DOS-style, as IFS=:) 28489 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 28490echo "$as_me: error: cannot find input file: $f" >&2;} 28491 { (exit 1); exit 1; }; } 28492 # Do quote $f, to prevent DOS paths from being IFS'd. 28493 echo "$f";; 28494 *) # Relative 28495 if test -f "$f"; then 28496 # Build tree 28497 echo "$f" 28498 elif test -f "$srcdir/$f"; then 28499 # Source tree 28500 echo "$srcdir/$f" 28501 else 28502 # /dev/null tree 28503 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 28504echo "$as_me: error: cannot find input file: $f" >&2;} 28505 { (exit 1); exit 1; }; } 28506 fi;; 28507 esac 28508 done` || { (exit 1); exit 1; } 28509 # Remove the trailing spaces. 28510 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 28511 28512_ACEOF 28513 28514# Transform confdefs.h into two sed scripts, `conftest.defines' and 28515# `conftest.undefs', that substitutes the proper values into 28516# config.h.in to produce config.h. The first handles `#define' 28517# templates, and the second `#undef' templates. 28518# And first: Protect against being on the right side of a sed subst in 28519# config.status. Protect against being in an unquoted here document 28520# in config.status. 28521rm -f conftest.defines conftest.undefs 28522# Using a here document instead of a string reduces the quoting nightmare. 28523# Putting comments in sed scripts is not portable. 28524# 28525# `end' is used to avoid that the second main sed command (meant for 28526# 0-ary CPP macros) applies to n-ary macro definitions. 28527# See the Autoconf documentation for `clear'. 28528cat >confdef2sed.sed <<\_ACEOF 28529s/[\\&,]/\\&/g 28530s,[\\$`],\\&,g 28531t clear 28532: clear 28533s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 28534t end 28535s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 28536: end 28537_ACEOF 28538# If some macros were called several times there might be several times 28539# the same #defines, which is useless. Nevertheless, we may not want to 28540# sort them, since we want the *last* AC-DEFINE to be honored. 28541uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 28542sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 28543rm -f confdef2sed.sed 28544 28545# This sed command replaces #undef with comments. This is necessary, for 28546# example, in the case of _POSIX_SOURCE, which is predefined and required 28547# on some systems where configure will not decide to define it. 28548cat >>conftest.undefs <<\_ACEOF 28549s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 28550_ACEOF 28551 28552# Break up conftest.defines because some shells have a limit on the size 28553# of here documents, and old seds have small limits too (100 cmds). 28554echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 28555echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 28556echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 28557echo ' :' >>$CONFIG_STATUS 28558rm -f conftest.tail 28559while grep . conftest.defines >/dev/null 28560do 28561 # Write a limited-size here document to $tmp/defines.sed. 28562 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 28563 # Speed up: don't consider the non `#define' lines. 28564 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 28565 # Work around the forget-to-reset-the-flag bug. 28566 echo 't clr' >>$CONFIG_STATUS 28567 echo ': clr' >>$CONFIG_STATUS 28568 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 28569 echo 'CEOF 28570 sed -f $tmp/defines.sed $tmp/in >$tmp/out 28571 rm -f $tmp/in 28572 mv $tmp/out $tmp/in 28573' >>$CONFIG_STATUS 28574 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 28575 rm -f conftest.defines 28576 mv conftest.tail conftest.defines 28577done 28578rm -f conftest.defines 28579echo ' fi # grep' >>$CONFIG_STATUS 28580echo >>$CONFIG_STATUS 28581 28582# Break up conftest.undefs because some shells have a limit on the size 28583# of here documents, and old seds have small limits too (100 cmds). 28584echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 28585rm -f conftest.tail 28586while grep . conftest.undefs >/dev/null 28587do 28588 # Write a limited-size here document to $tmp/undefs.sed. 28589 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 28590 # Speed up: don't consider the non `#undef' 28591 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 28592 # Work around the forget-to-reset-the-flag bug. 28593 echo 't clr' >>$CONFIG_STATUS 28594 echo ': clr' >>$CONFIG_STATUS 28595 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 28596 echo 'CEOF 28597 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 28598 rm -f $tmp/in 28599 mv $tmp/out $tmp/in 28600' >>$CONFIG_STATUS 28601 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 28602 rm -f conftest.undefs 28603 mv conftest.tail conftest.undefs 28604done 28605rm -f conftest.undefs 28606 28607cat >>$CONFIG_STATUS <<\_ACEOF 28608 # Let's still pretend it is `configure' which instantiates (i.e., don't 28609 # use $as_me), people would be surprised to read: 28610 # /* config.h. Generated by config.status. */ 28611 if test x"$ac_file" = x-; then 28612 echo "/* Generated by configure. */" >$tmp/config.h 28613 else 28614 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 28615 fi 28616 cat $tmp/in >>$tmp/config.h 28617 rm -f $tmp/in 28618 if test x"$ac_file" != x-; then 28619 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 28620 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 28621echo "$as_me: $ac_file is unchanged" >&6;} 28622 else 28623 ac_dir=`(dirname "$ac_file") 2>/dev/null || 28624$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28625 X"$ac_file" : 'X\(//\)[^/]' \| \ 28626 X"$ac_file" : 'X\(//\)$' \| \ 28627 X"$ac_file" : 'X\(/\)' \| \ 28628 . : '\(.\)' 2>/dev/null || 28629echo X"$ac_file" | 28630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28631 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28632 /^X\(\/\/\)$/{ s//\1/; q; } 28633 /^X\(\/\).*/{ s//\1/; q; } 28634 s/.*/./; q'` 28635 { if $as_mkdir_p; then 28636 mkdir -p "$ac_dir" 28637 else 28638 as_dir="$ac_dir" 28639 as_dirs= 28640 while test ! -d "$as_dir"; do 28641 as_dirs="$as_dir $as_dirs" 28642 as_dir=`(dirname "$as_dir") 2>/dev/null || 28643$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28644 X"$as_dir" : 'X\(//\)[^/]' \| \ 28645 X"$as_dir" : 'X\(//\)$' \| \ 28646 X"$as_dir" : 'X\(/\)' \| \ 28647 . : '\(.\)' 2>/dev/null || 28648echo X"$as_dir" | 28649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28650 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28651 /^X\(\/\/\)$/{ s//\1/; q; } 28652 /^X\(\/\).*/{ s//\1/; q; } 28653 s/.*/./; q'` 28654 done 28655 test ! -n "$as_dirs" || mkdir $as_dirs 28656 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 28657echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 28658 { (exit 1); exit 1; }; }; } 28659 28660 rm -f $ac_file 28661 mv $tmp/config.h $ac_file 28662 fi 28663 else 28664 cat $tmp/config.h 28665 rm -f $tmp/config.h 28666 fi 28667# Compute $ac_file's index in $config_headers. 28668_am_stamp_count=1 28669for _am_header in $config_headers :; do 28670 case $_am_header in 28671 $ac_file | $ac_file:* ) 28672 break ;; 28673 * ) 28674 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 28675 esac 28676done 28677echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 28678$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28679 X$ac_file : 'X\(//\)[^/]' \| \ 28680 X$ac_file : 'X\(//\)$' \| \ 28681 X$ac_file : 'X\(/\)' \| \ 28682 . : '\(.\)' 2>/dev/null || 28683echo X$ac_file | 28684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28685 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28686 /^X\(\/\/\)$/{ s//\1/; q; } 28687 /^X\(\/\).*/{ s//\1/; q; } 28688 s/.*/./; q'`/stamp-h$_am_stamp_count 28689done 28690_ACEOF 28691cat >>$CONFIG_STATUS <<\_ACEOF 28692 28693# 28694# CONFIG_COMMANDS section. 28695# 28696for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 28697 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 28698 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 28699 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 28700$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28701 X"$ac_dest" : 'X\(//\)[^/]' \| \ 28702 X"$ac_dest" : 'X\(//\)$' \| \ 28703 X"$ac_dest" : 'X\(/\)' \| \ 28704 . : '\(.\)' 2>/dev/null || 28705echo X"$ac_dest" | 28706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28707 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28708 /^X\(\/\/\)$/{ s//\1/; q; } 28709 /^X\(\/\).*/{ s//\1/; q; } 28710 s/.*/./; q'` 28711 { if $as_mkdir_p; then 28712 mkdir -p "$ac_dir" 28713 else 28714 as_dir="$ac_dir" 28715 as_dirs= 28716 while test ! -d "$as_dir"; do 28717 as_dirs="$as_dir $as_dirs" 28718 as_dir=`(dirname "$as_dir") 2>/dev/null || 28719$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28720 X"$as_dir" : 'X\(//\)[^/]' \| \ 28721 X"$as_dir" : 'X\(//\)$' \| \ 28722 X"$as_dir" : 'X\(/\)' \| \ 28723 . : '\(.\)' 2>/dev/null || 28724echo X"$as_dir" | 28725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28726 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28727 /^X\(\/\/\)$/{ s//\1/; q; } 28728 /^X\(\/\).*/{ s//\1/; q; } 28729 s/.*/./; q'` 28730 done 28731 test ! -n "$as_dirs" || mkdir $as_dirs 28732 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 28733echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 28734 { (exit 1); exit 1; }; }; } 28735 28736 ac_builddir=. 28737 28738if test "$ac_dir" != .; then 28739 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 28740 # A "../" for each directory in $ac_dir_suffix. 28741 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 28742else 28743 ac_dir_suffix= ac_top_builddir= 28744fi 28745 28746case $srcdir in 28747 .) # No --srcdir option. We are building in place. 28748 ac_srcdir=. 28749 if test -z "$ac_top_builddir"; then 28750 ac_top_srcdir=. 28751 else 28752 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 28753 fi ;; 28754 [\\/]* | ?:[\\/]* ) # Absolute path. 28755 ac_srcdir=$srcdir$ac_dir_suffix; 28756 ac_top_srcdir=$srcdir ;; 28757 *) # Relative path. 28758 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 28759 ac_top_srcdir=$ac_top_builddir$srcdir ;; 28760esac 28761 28762# Do not use `cd foo && pwd` to compute absolute paths, because 28763# the directories may not exist. 28764case `pwd` in 28765.) ac_abs_builddir="$ac_dir";; 28766*) 28767 case "$ac_dir" in 28768 .) ac_abs_builddir=`pwd`;; 28769 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 28770 *) ac_abs_builddir=`pwd`/"$ac_dir";; 28771 esac;; 28772esac 28773case $ac_abs_builddir in 28774.) ac_abs_top_builddir=${ac_top_builddir}.;; 28775*) 28776 case ${ac_top_builddir}. in 28777 .) ac_abs_top_builddir=$ac_abs_builddir;; 28778 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 28779 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 28780 esac;; 28781esac 28782case $ac_abs_builddir in 28783.) ac_abs_srcdir=$ac_srcdir;; 28784*) 28785 case $ac_srcdir in 28786 .) ac_abs_srcdir=$ac_abs_builddir;; 28787 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 28788 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 28789 esac;; 28790esac 28791case $ac_abs_builddir in 28792.) ac_abs_top_srcdir=$ac_top_srcdir;; 28793*) 28794 case $ac_top_srcdir in 28795 .) ac_abs_top_srcdir=$ac_abs_builddir;; 28796 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 28797 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 28798 esac;; 28799esac 28800 28801 28802 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 28803echo "$as_me: executing $ac_dest commands" >&6;} 28804 case $ac_dest in 28805 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 28806 # Strip MF so we end up with the name of the file. 28807 mf=`echo "$mf" | sed -e 's/:.*$//'` 28808 # Check whether this is an Automake generated Makefile or not. 28809 # We used to match only the files named `Makefile.in', but 28810 # some people rename them; so instead we look at the file content. 28811 # Grep'ing the first line is not enough: some people post-process 28812 # each Makefile.in and add a new line on top of each file to say so. 28813 # So let's grep whole file. 28814 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 28815 dirpart=`(dirname "$mf") 2>/dev/null || 28816$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28817 X"$mf" : 'X\(//\)[^/]' \| \ 28818 X"$mf" : 'X\(//\)$' \| \ 28819 X"$mf" : 'X\(/\)' \| \ 28820 . : '\(.\)' 2>/dev/null || 28821echo X"$mf" | 28822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28823 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28824 /^X\(\/\/\)$/{ s//\1/; q; } 28825 /^X\(\/\).*/{ s//\1/; q; } 28826 s/.*/./; q'` 28827 else 28828 continue 28829 fi 28830 # Extract the definition of DEPDIR, am__include, and am__quote 28831 # from the Makefile without running `make'. 28832 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 28833 test -z "$DEPDIR" && continue 28834 am__include=`sed -n 's/^am__include = //p' < "$mf"` 28835 test -z "am__include" && continue 28836 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 28837 # When using ansi2knr, U may be empty or an underscore; expand it 28838 U=`sed -n 's/^U = //p' < "$mf"` 28839 # Find all dependency output files, they are included files with 28840 # $(DEPDIR) in their names. We invoke sed twice because it is the 28841 # simplest approach to changing $(DEPDIR) to its actual value in the 28842 # expansion. 28843 for file in `sed -n " 28844 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 28845 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 28846 # Make sure the directory exists. 28847 test -f "$dirpart/$file" && continue 28848 fdir=`(dirname "$file") 2>/dev/null || 28849$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28850 X"$file" : 'X\(//\)[^/]' \| \ 28851 X"$file" : 'X\(//\)$' \| \ 28852 X"$file" : 'X\(/\)' \| \ 28853 . : '\(.\)' 2>/dev/null || 28854echo X"$file" | 28855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28856 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28857 /^X\(\/\/\)$/{ s//\1/; q; } 28858 /^X\(\/\).*/{ s//\1/; q; } 28859 s/.*/./; q'` 28860 { if $as_mkdir_p; then 28861 mkdir -p $dirpart/$fdir 28862 else 28863 as_dir=$dirpart/$fdir 28864 as_dirs= 28865 while test ! -d "$as_dir"; do 28866 as_dirs="$as_dir $as_dirs" 28867 as_dir=`(dirname "$as_dir") 2>/dev/null || 28868$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28869 X"$as_dir" : 'X\(//\)[^/]' \| \ 28870 X"$as_dir" : 'X\(//\)$' \| \ 28871 X"$as_dir" : 'X\(/\)' \| \ 28872 . : '\(.\)' 2>/dev/null || 28873echo X"$as_dir" | 28874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28875 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28876 /^X\(\/\/\)$/{ s//\1/; q; } 28877 /^X\(\/\).*/{ s//\1/; q; } 28878 s/.*/./; q'` 28879 done 28880 test ! -n "$as_dirs" || mkdir $as_dirs 28881 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 28882echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 28883 { (exit 1); exit 1; }; }; } 28884 28885 # echo "creating $dirpart/$file" 28886 echo '# dummy' > "$dirpart/$file" 28887 done 28888done 28889 ;; 28890 esac 28891done 28892_ACEOF 28893 28894cat >>$CONFIG_STATUS <<\_ACEOF 28895 28896{ (exit 0); exit 0; } 28897_ACEOF 28898chmod +x $CONFIG_STATUS 28899ac_clean_files=$ac_clean_files_save 28900 28901 28902# configure is writing to config.log, and then calls config.status. 28903# config.status does its own redirection, appending to config.log. 28904# Unfortunately, on DOS this fails, as config.log is still kept open 28905# by configure, so config.status won't be able to write to it; its 28906# output is simply discarded. So we exec the FD to /dev/null, 28907# effectively closing config.log, so it can be properly (re)opened and 28908# appended to by config.status. When coming back to configure, we 28909# need to make the FD available again. 28910if test "$no_create" != yes; then 28911 ac_cs_success=: 28912 ac_config_status_args= 28913 test "$silent" = yes && 28914 ac_config_status_args="$ac_config_status_args --quiet" 28915 exec 5>/dev/null 28916 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 28917 exec 5>>config.log 28918 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 28919 # would make configure fail if this is the last instruction. 28920 $ac_cs_success || { (exit 1); exit 1; } 28921fi 28922 28923