1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255echo=${ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274$* 275EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 282 283if test -z "$ECHO"; then 284if test "X${echo_test_string+set}" != Xset; then 285# find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if (echo_test_string="`eval $cmd`") 2>/dev/null && 289 echo_test_string="`eval $cmd`" && 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 291 then 292 break 293 fi 294 done 295fi 296 297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 299 test "X$echo_testing_string" = "X$echo_test_string"; then 300 : 301else 302 # The Solaris, AIX, and Digital Unix default echo programs unquote 303 # backslashes. This makes it impossible to quote backslashes using 304 # echo "$something" | sed 's/\\/\\\\/g' 305 # 306 # So, first we look for a working echo in the user's PATH. 307 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 echo="$dir/echo" 316 break 317 fi 318 done 319 IFS="$lt_save_ifs" 320 321 if test "X$echo" = Xecho; then 322 # We didn't find a better echo, so look for alternatives. 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 325 test "X$echo_testing_string" = "X$echo_test_string"; then 326 # This shell has a builtin print -r that does the trick. 327 echo='print -r' 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 329 test "X$CONFIG_SHELL" != X/bin/ksh; then 330 # If we have ksh, try running configure again with it. 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 332 export ORIGINAL_CONFIG_SHELL 333 CONFIG_SHELL=/bin/ksh 334 export CONFIG_SHELL 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 336 else 337 # Try using printf. 338 echo='printf %s\n' 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 341 test "X$echo_testing_string" = "X$echo_test_string"; then 342 # Cool, printf works 343 : 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 345 test "X$echo_testing_string" = 'X\t' && 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 347 test "X$echo_testing_string" = "X$echo_test_string"; then 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 349 export CONFIG_SHELL 350 SHELL="$CONFIG_SHELL" 351 export SHELL 352 echo="$CONFIG_SHELL $0 --fallback-echo" 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 echo="$CONFIG_SHELL $0 --fallback-echo" 358 else 359 # maybe with a smaller string... 360 prev=: 361 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 364 then 365 break 366 fi 367 prev="$cmd" 368 done 369 370 if test "$prev" != 'sed 50q "$0"'; then 371 echo_test_string=`eval $prev` 372 export echo_test_string 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 374 else 375 # Oops. We lost completely, so just stick with echo. 376 echo=echo 377 fi 378 fi 379 fi 380 fi 381fi 382fi 383 384# Copy echo and quote the copy suitably for passing to libtool from 385# the Makefile, instead of quoting the original, which is used later. 386ECHO=$echo 387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389fi 390 391 392 393 394tagnames=${tagnames+${tagnames},}CXX 395 396tagnames=${tagnames+${tagnames},}F77 397 398# Name of the host. 399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 400# so uname gets run too. 401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403exec 6>&1 404 405# 406# Initializations. 407# 408ac_default_prefix=/usr/local 409ac_config_libobj_dir=. 410cross_compiling=no 411subdirs= 412MFLAGS= 413MAKEFLAGS= 414SHELL=${CONFIG_SHELL-/bin/sh} 415 416# Maximum number of lines to put in a shell here document. 417# This variable seems obsolete. It should probably be removed, and 418# only ac_max_sed_lines should be used. 419: ${ac_max_here_lines=38} 420 421# Identity of this package. 422PACKAGE_NAME= 423PACKAGE_TARNAME= 424PACKAGE_VERSION= 425PACKAGE_STRING= 426PACKAGE_BUGREPORT= 427 428ac_unique_file="src/pserv.c" 429# Factoring default headers for most tests. 430ac_includes_default="\ 431#include <stdio.h> 432#if HAVE_SYS_TYPES_H 433# include <sys/types.h> 434#endif 435#if HAVE_SYS_STAT_H 436# include <sys/stat.h> 437#endif 438#if STDC_HEADERS 439# include <stdlib.h> 440# include <stddef.h> 441#else 442# if HAVE_STDLIB_H 443# include <stdlib.h> 444# endif 445#endif 446#if HAVE_STRING_H 447# if !STDC_HEADERS && HAVE_MEMORY_H 448# include <memory.h> 449# endif 450# include <string.h> 451#endif 452#if HAVE_STRINGS_H 453# include <strings.h> 454#endif 455#if HAVE_INTTYPES_H 456# include <inttypes.h> 457#else 458# if HAVE_STDINT_H 459# include <stdint.h> 460# endif 461#endif 462#if HAVE_UNISTD_H 463# include <unistd.h> 464#endif" 465 466ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL HAVE_STRLCAT_TRUE HAVE_STRLCAT_FALSE HAVE_GETOPT_TRUE HAVE_GETOPT_FALSE LIB_DB2 LIB_DB3 LIB_DB40 LIB_DB41 USE_BDB BDB_VERSION MAKE_TEST LIB_READLINE SSL_LIBS SSL_INCL CDBDIR PDMLIST PERL_PATH have_sgml MAKE_SGML_TRUE MAKE_SGML_FALSE LIB_STRL LIB_GETOPT LIBOBJS LTLIBOBJS' 467ac_subst_files='' 468 469# Initialize some variables set by options. 470ac_init_help= 471ac_init_version=false 472# The variables have the same names as the options, with 473# dashes changed to underlines. 474cache_file=/dev/null 475exec_prefix=NONE 476no_create= 477no_recursion= 478prefix=NONE 479program_prefix=NONE 480program_suffix=NONE 481program_transform_name=s,x,x, 482silent= 483site= 484srcdir= 485verbose= 486x_includes=NONE 487x_libraries=NONE 488 489# Installation directory options. 490# These are left unexpanded so users can "make install exec_prefix=/foo" 491# and all the variables that are supposed to be based on exec_prefix 492# by default will actually change. 493# Use braces instead of parens because sh, perl, etc. also accept them. 494bindir='${exec_prefix}/bin' 495sbindir='${exec_prefix}/sbin' 496libexecdir='${exec_prefix}/libexec' 497datadir='${prefix}/share' 498sysconfdir='${prefix}/etc' 499sharedstatedir='${prefix}/com' 500localstatedir='${prefix}/var' 501libdir='${exec_prefix}/lib' 502includedir='${prefix}/include' 503oldincludedir='/usr/include' 504infodir='${prefix}/info' 505mandir='${prefix}/man' 506 507ac_prev= 508for ac_option 509do 510 # If the previous option needs an argument, assign it. 511 if test -n "$ac_prev"; then 512 eval "$ac_prev=\$ac_option" 513 ac_prev= 514 continue 515 fi 516 517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 518 519 # Accept the important Cygnus configure options, so we can diagnose typos. 520 521 case $ac_option in 522 523 -bindir | --bindir | --bindi | --bind | --bin | --bi) 524 ac_prev=bindir ;; 525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 526 bindir=$ac_optarg ;; 527 528 -build | --build | --buil | --bui | --bu) 529 ac_prev=build_alias ;; 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 531 build_alias=$ac_optarg ;; 532 533 -cache-file | --cache-file | --cache-fil | --cache-fi \ 534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 535 ac_prev=cache_file ;; 536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 538 cache_file=$ac_optarg ;; 539 540 --config-cache | -C) 541 cache_file=config.cache ;; 542 543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 544 ac_prev=datadir ;; 545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 546 | --da=*) 547 datadir=$ac_optarg ;; 548 549 -disable-* | --disable-*) 550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 551 # Reject names that are not valid shell variable names. 552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 554 { (exit 1); exit 1; }; } 555 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 556 eval "enable_$ac_feature=no" ;; 557 558 -enable-* | --enable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 case $ac_option in 566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 567 *) ac_optarg=yes ;; 568 esac 569 eval "enable_$ac_feature='$ac_optarg'" ;; 570 571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 573 | --exec | --exe | --ex) 574 ac_prev=exec_prefix ;; 575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 577 | --exec=* | --exe=* | --ex=*) 578 exec_prefix=$ac_optarg ;; 579 580 -gas | --gas | --ga | --g) 581 # Obsolete; use --with-gas. 582 with_gas=yes ;; 583 584 -help | --help | --hel | --he | -h) 585 ac_init_help=long ;; 586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 587 ac_init_help=recursive ;; 588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 589 ac_init_help=short ;; 590 591 -host | --host | --hos | --ho) 592 ac_prev=host_alias ;; 593 -host=* | --host=* | --hos=* | --ho=*) 594 host_alias=$ac_optarg ;; 595 596 -includedir | --includedir | --includedi | --included | --include \ 597 | --includ | --inclu | --incl | --inc) 598 ac_prev=includedir ;; 599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 600 | --includ=* | --inclu=* | --incl=* | --inc=*) 601 includedir=$ac_optarg ;; 602 603 -infodir | --infodir | --infodi | --infod | --info | --inf) 604 ac_prev=infodir ;; 605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 606 infodir=$ac_optarg ;; 607 608 -libdir | --libdir | --libdi | --libd) 609 ac_prev=libdir ;; 610 -libdir=* | --libdir=* | --libdi=* | --libd=*) 611 libdir=$ac_optarg ;; 612 613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 614 | --libexe | --libex | --libe) 615 ac_prev=libexecdir ;; 616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 617 | --libexe=* | --libex=* | --libe=*) 618 libexecdir=$ac_optarg ;; 619 620 -localstatedir | --localstatedir | --localstatedi | --localstated \ 621 | --localstate | --localstat | --localsta | --localst \ 622 | --locals | --local | --loca | --loc | --lo) 623 ac_prev=localstatedir ;; 624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 627 localstatedir=$ac_optarg ;; 628 629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 630 ac_prev=mandir ;; 631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 632 mandir=$ac_optarg ;; 633 634 -nfp | --nfp | --nf) 635 # Obsolete; use --without-fp. 636 with_fp=no ;; 637 638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 639 | --no-cr | --no-c | -n) 640 no_create=yes ;; 641 642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 644 no_recursion=yes ;; 645 646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 648 | --oldin | --oldi | --old | --ol | --o) 649 ac_prev=oldincludedir ;; 650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 653 oldincludedir=$ac_optarg ;; 654 655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 656 ac_prev=prefix ;; 657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 658 prefix=$ac_optarg ;; 659 660 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 661 | --program-pre | --program-pr | --program-p) 662 ac_prev=program_prefix ;; 663 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 665 program_prefix=$ac_optarg ;; 666 667 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 668 | --program-suf | --program-su | --program-s) 669 ac_prev=program_suffix ;; 670 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 672 program_suffix=$ac_optarg ;; 673 674 -program-transform-name | --program-transform-name \ 675 | --program-transform-nam | --program-transform-na \ 676 | --program-transform-n | --program-transform- \ 677 | --program-transform | --program-transfor \ 678 | --program-transfo | --program-transf \ 679 | --program-trans | --program-tran \ 680 | --progr-tra | --program-tr | --program-t) 681 ac_prev=program_transform_name ;; 682 -program-transform-name=* | --program-transform-name=* \ 683 | --program-transform-nam=* | --program-transform-na=* \ 684 | --program-transform-n=* | --program-transform-=* \ 685 | --program-transform=* | --program-transfor=* \ 686 | --program-transfo=* | --program-transf=* \ 687 | --program-trans=* | --program-tran=* \ 688 | --progr-tra=* | --program-tr=* | --program-t=*) 689 program_transform_name=$ac_optarg ;; 690 691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 692 | -silent | --silent | --silen | --sile | --sil) 693 silent=yes ;; 694 695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 696 ac_prev=sbindir ;; 697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 698 | --sbi=* | --sb=*) 699 sbindir=$ac_optarg ;; 700 701 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 703 | --sharedst | --shareds | --shared | --share | --shar \ 704 | --sha | --sh) 705 ac_prev=sharedstatedir ;; 706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 709 | --sha=* | --sh=*) 710 sharedstatedir=$ac_optarg ;; 711 712 -site | --site | --sit) 713 ac_prev=site ;; 714 -site=* | --site=* | --sit=*) 715 site=$ac_optarg ;; 716 717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 718 ac_prev=srcdir ;; 719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 720 srcdir=$ac_optarg ;; 721 722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 723 | --syscon | --sysco | --sysc | --sys | --sy) 724 ac_prev=sysconfdir ;; 725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 727 sysconfdir=$ac_optarg ;; 728 729 -target | --target | --targe | --targ | --tar | --ta | --t) 730 ac_prev=target_alias ;; 731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 732 target_alias=$ac_optarg ;; 733 734 -v | -verbose | --verbose | --verbos | --verbo | --verb) 735 verbose=yes ;; 736 737 -version | --version | --versio | --versi | --vers | -V) 738 ac_init_version=: ;; 739 740 -with-* | --with-*) 741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 742 # Reject names that are not valid shell variable names. 743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 744 { echo "$as_me: error: invalid package name: $ac_package" >&2 745 { (exit 1); exit 1; }; } 746 ac_package=`echo $ac_package| sed 's/-/_/g'` 747 case $ac_option in 748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 749 *) ac_optarg=yes ;; 750 esac 751 eval "with_$ac_package='$ac_optarg'" ;; 752 753 -without-* | --without-*) 754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 755 # Reject names that are not valid shell variable names. 756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 757 { echo "$as_me: error: invalid package name: $ac_package" >&2 758 { (exit 1); exit 1; }; } 759 ac_package=`echo $ac_package | sed 's/-/_/g'` 760 eval "with_$ac_package=no" ;; 761 762 --x) 763 # Obsolete; use --with-x. 764 with_x=yes ;; 765 766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 767 | --x-incl | --x-inc | --x-in | --x-i) 768 ac_prev=x_includes ;; 769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 771 x_includes=$ac_optarg ;; 772 773 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 775 ac_prev=x_libraries ;; 776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 778 x_libraries=$ac_optarg ;; 779 780 -*) { echo "$as_me: error: unrecognized option: $ac_option 781Try \`$0 --help' for more information." >&2 782 { (exit 1); exit 1; }; } 783 ;; 784 785 *=*) 786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 787 # Reject names that are not valid shell variable names. 788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 790 { (exit 1); exit 1; }; } 791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 792 eval "$ac_envvar='$ac_optarg'" 793 export $ac_envvar ;; 794 795 *) 796 # FIXME: should be removed in autoconf 3.0. 797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 801 ;; 802 803 esac 804done 805 806if test -n "$ac_prev"; then 807 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 808 { echo "$as_me: error: missing argument to $ac_option" >&2 809 { (exit 1); exit 1; }; } 810fi 811 812# Be sure to have absolute paths. 813for ac_var in exec_prefix prefix 814do 815 eval ac_val=$`echo $ac_var` 816 case $ac_val in 817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 819 { (exit 1); exit 1; }; };; 820 esac 821done 822 823# Be sure to have absolute paths. 824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 825 localstatedir libdir includedir oldincludedir infodir mandir 826do 827 eval ac_val=$`echo $ac_var` 828 case $ac_val in 829 [\\/$]* | ?:[\\/]* ) ;; 830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 831 { (exit 1); exit 1; }; };; 832 esac 833done 834 835# There might be people who depend on the old broken behavior: `$host' 836# used to hold the argument of --host etc. 837# FIXME: To remove some day. 838build=$build_alias 839host=$host_alias 840target=$target_alias 841 842# FIXME: To remove some day. 843if test "x$host_alias" != x; then 844 if test "x$build_alias" = x; then 845 cross_compiling=maybe 846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 847 If a cross compiler is detected then cross compile mode will be used." >&2 848 elif test "x$build_alias" != "x$host_alias"; then 849 cross_compiling=yes 850 fi 851fi 852 853ac_tool_prefix= 854test -n "$host_alias" && ac_tool_prefix=$host_alias- 855 856test "$silent" = yes && exec 6>/dev/null 857 858 859# Find the source files, if location was not specified. 860if test -z "$srcdir"; then 861 ac_srcdir_defaulted=yes 862 # Try the directory containing this script, then its parent. 863 ac_confdir=`(dirname "$0") 2>/dev/null || 864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 865 X"$0" : 'X\(//\)[^/]' \| \ 866 X"$0" : 'X\(//\)$' \| \ 867 X"$0" : 'X\(/\)' \| \ 868 . : '\(.\)' 2>/dev/null || 869echo X"$0" | 870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 871 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 872 /^X\(\/\/\)$/{ s//\1/; q; } 873 /^X\(\/\).*/{ s//\1/; q; } 874 s/.*/./; q'` 875 srcdir=$ac_confdir 876 if test ! -r $srcdir/$ac_unique_file; then 877 srcdir=.. 878 fi 879else 880 ac_srcdir_defaulted=no 881fi 882if test ! -r $srcdir/$ac_unique_file; then 883 if test "$ac_srcdir_defaulted" = yes; then 884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 885 { (exit 1); exit 1; }; } 886 else 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 888 { (exit 1); exit 1; }; } 889 fi 890fi 891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 893 { (exit 1); exit 1; }; } 894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 895ac_env_build_alias_set=${build_alias+set} 896ac_env_build_alias_value=$build_alias 897ac_cv_env_build_alias_set=${build_alias+set} 898ac_cv_env_build_alias_value=$build_alias 899ac_env_host_alias_set=${host_alias+set} 900ac_env_host_alias_value=$host_alias 901ac_cv_env_host_alias_set=${host_alias+set} 902ac_cv_env_host_alias_value=$host_alias 903ac_env_target_alias_set=${target_alias+set} 904ac_env_target_alias_value=$target_alias 905ac_cv_env_target_alias_set=${target_alias+set} 906ac_cv_env_target_alias_value=$target_alias 907ac_env_CC_set=${CC+set} 908ac_env_CC_value=$CC 909ac_cv_env_CC_set=${CC+set} 910ac_cv_env_CC_value=$CC 911ac_env_CFLAGS_set=${CFLAGS+set} 912ac_env_CFLAGS_value=$CFLAGS 913ac_cv_env_CFLAGS_set=${CFLAGS+set} 914ac_cv_env_CFLAGS_value=$CFLAGS 915ac_env_LDFLAGS_set=${LDFLAGS+set} 916ac_env_LDFLAGS_value=$LDFLAGS 917ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 918ac_cv_env_LDFLAGS_value=$LDFLAGS 919ac_env_CPPFLAGS_set=${CPPFLAGS+set} 920ac_env_CPPFLAGS_value=$CPPFLAGS 921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_cv_env_CPPFLAGS_value=$CPPFLAGS 923ac_env_CPP_set=${CPP+set} 924ac_env_CPP_value=$CPP 925ac_cv_env_CPP_set=${CPP+set} 926ac_cv_env_CPP_value=$CPP 927ac_env_CXX_set=${CXX+set} 928ac_env_CXX_value=$CXX 929ac_cv_env_CXX_set=${CXX+set} 930ac_cv_env_CXX_value=$CXX 931ac_env_CXXFLAGS_set=${CXXFLAGS+set} 932ac_env_CXXFLAGS_value=$CXXFLAGS 933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_cv_env_CXXFLAGS_value=$CXXFLAGS 935ac_env_CXXCPP_set=${CXXCPP+set} 936ac_env_CXXCPP_value=$CXXCPP 937ac_cv_env_CXXCPP_set=${CXXCPP+set} 938ac_cv_env_CXXCPP_value=$CXXCPP 939ac_env_F77_set=${F77+set} 940ac_env_F77_value=$F77 941ac_cv_env_F77_set=${F77+set} 942ac_cv_env_F77_value=$F77 943ac_env_FFLAGS_set=${FFLAGS+set} 944ac_env_FFLAGS_value=$FFLAGS 945ac_cv_env_FFLAGS_set=${FFLAGS+set} 946ac_cv_env_FFLAGS_value=$FFLAGS 947 948# 949# Report the --help message. 950# 951if test "$ac_init_help" = "long"; then 952 # Omit some internal or obsolete options to make the list less imposing. 953 # This message is too long to be a string in the A/UX 3.1 sh. 954 cat <<_ACEOF 955\`configure' configures this package to adapt to many kinds of systems. 956 957Usage: $0 [OPTION]... [VAR=VALUE]... 958 959To assign environment variables (e.g., CC, CFLAGS...), specify them as 960VAR=VALUE. See below for descriptions of some of the useful variables. 961 962Defaults for the options are specified in brackets. 963 964Configuration: 965 -h, --help display this help and exit 966 --help=short display options specific to this package 967 --help=recursive display the short help of all the included packages 968 -V, --version display version information and exit 969 -q, --quiet, --silent do not print \`checking...' messages 970 --cache-file=FILE cache test results in FILE [disabled] 971 -C, --config-cache alias for \`--cache-file=config.cache' 972 -n, --no-create do not create output files 973 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 974 975_ACEOF 976 977 cat <<_ACEOF 978Installation directories: 979 --prefix=PREFIX install architecture-independent files in PREFIX 980 [$ac_default_prefix] 981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 982 [PREFIX] 983 984By default, \`make install' will install all the files in 985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 986an installation prefix other than \`$ac_default_prefix' using \`--prefix', 987for instance \`--prefix=\$HOME'. 988 989For better control, use the options below. 990 991Fine tuning of the installation directories: 992 --bindir=DIR user executables [EPREFIX/bin] 993 --sbindir=DIR system admin executables [EPREFIX/sbin] 994 --libexecdir=DIR program executables [EPREFIX/libexec] 995 --datadir=DIR read-only architecture-independent data [PREFIX/share] 996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 998 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 999 --libdir=DIR object code libraries [EPREFIX/lib] 1000 --includedir=DIR C header files [PREFIX/include] 1001 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1002 --infodir=DIR info documentation [PREFIX/info] 1003 --mandir=DIR man documentation [PREFIX/man] 1004_ACEOF 1005 1006 cat <<\_ACEOF 1007 1008Program names: 1009 --program-prefix=PREFIX prepend PREFIX to installed program names 1010 --program-suffix=SUFFIX append SUFFIX to installed program names 1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1012 1013System types: 1014 --build=BUILD configure for building on BUILD [guessed] 1015 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1016_ACEOF 1017fi 1018 1019if test -n "$ac_init_help"; then 1020 1021 cat <<\_ACEOF 1022 1023Optional Features: 1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1026 --enable-shared[=PKGS] 1027 build shared libraries [default=yes] 1028 --enable-static[=PKGS] 1029 build static libraries [default=yes] 1030 --enable-fast-install[=PKGS] 1031 optimize for fast installation [default=yes] 1032 --disable-libtool-lock avoid locking (might break parallel builds) 1033 --enable-test build test programs 1034 --disable-readline disable readline support 1035 --enable-ssl=SSLDIR enable SSL/TLS support. 1036 --enable-docbook enable making of manual from SGML sources 1037 1038Optional Packages: 1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1041 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1042 --with-pic try to use only PIC/non-PIC objects [default=use 1043 both] 1044 --with-tags[=TAGS] 1045 include additional configurations [automatic] 1046 --with-bdb(=VERSION) Berkeley DB Version to use 1047 --with-cdb=CDBDIR cdb source directory for cdb support 1048 --with-pdm=PDMLIST space separated list of PDM modules to build 1049 (default: any master db2 db3 db4 bdb cdb) 1050 --with-confdir=CONFDIR look for config files in this directory 1051 (default: /etc/popular) 1052 1053Some influential environment variables: 1054 CC C compiler command 1055 CFLAGS C compiler flags 1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1057 nonstandard directory <lib dir> 1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1059 headers in a nonstandard directory <include dir> 1060 CPP C preprocessor 1061 CXX C++ compiler command 1062 CXXFLAGS C++ compiler flags 1063 CXXCPP C++ preprocessor 1064 F77 Fortran 77 compiler command 1065 FFLAGS Fortran 77 compiler flags 1066 1067Use these variables to override the choices made by `configure' or to help 1068it to find libraries and programs with nonstandard names/locations. 1069 1070_ACEOF 1071fi 1072 1073if test "$ac_init_help" = "recursive"; then 1074 # If there are subdirs, report their specific --help. 1075 ac_popdir=`pwd` 1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1077 test -d $ac_dir || continue 1078 ac_builddir=. 1079 1080if test "$ac_dir" != .; then 1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1082 # A "../" for each directory in $ac_dir_suffix. 1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1084else 1085 ac_dir_suffix= ac_top_builddir= 1086fi 1087 1088case $srcdir in 1089 .) # No --srcdir option. We are building in place. 1090 ac_srcdir=. 1091 if test -z "$ac_top_builddir"; then 1092 ac_top_srcdir=. 1093 else 1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1095 fi ;; 1096 [\\/]* | ?:[\\/]* ) # Absolute path. 1097 ac_srcdir=$srcdir$ac_dir_suffix; 1098 ac_top_srcdir=$srcdir ;; 1099 *) # Relative path. 1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1101 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1102esac 1103 1104# Do not use `cd foo && pwd` to compute absolute paths, because 1105# the directories may not exist. 1106case `pwd` in 1107.) ac_abs_builddir="$ac_dir";; 1108*) 1109 case "$ac_dir" in 1110 .) ac_abs_builddir=`pwd`;; 1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1112 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1113 esac;; 1114esac 1115case $ac_abs_builddir in 1116.) ac_abs_top_builddir=${ac_top_builddir}.;; 1117*) 1118 case ${ac_top_builddir}. in 1119 .) ac_abs_top_builddir=$ac_abs_builddir;; 1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1122 esac;; 1123esac 1124case $ac_abs_builddir in 1125.) ac_abs_srcdir=$ac_srcdir;; 1126*) 1127 case $ac_srcdir in 1128 .) ac_abs_srcdir=$ac_abs_builddir;; 1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1131 esac;; 1132esac 1133case $ac_abs_builddir in 1134.) ac_abs_top_srcdir=$ac_top_srcdir;; 1135*) 1136 case $ac_top_srcdir in 1137 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1140 esac;; 1141esac 1142 1143 cd $ac_dir 1144 # Check for guested configure; otherwise get Cygnus style configure. 1145 if test -f $ac_srcdir/configure.gnu; then 1146 echo 1147 $SHELL $ac_srcdir/configure.gnu --help=recursive 1148 elif test -f $ac_srcdir/configure; then 1149 echo 1150 $SHELL $ac_srcdir/configure --help=recursive 1151 elif test -f $ac_srcdir/configure.ac || 1152 test -f $ac_srcdir/configure.in; then 1153 echo 1154 $ac_configure --help 1155 else 1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1157 fi 1158 cd "$ac_popdir" 1159 done 1160fi 1161 1162test -n "$ac_init_help" && exit 0 1163if $ac_init_version; then 1164 cat <<\_ACEOF 1165 1166Copyright (C) 2003 Free Software Foundation, Inc. 1167This configure script is free software; the Free Software Foundation 1168gives unlimited permission to copy, distribute and modify it. 1169_ACEOF 1170 exit 0 1171fi 1172exec 5>config.log 1173cat >&5 <<_ACEOF 1174This file contains any messages produced by compilers while 1175running configure, to aid debugging if configure makes a mistake. 1176 1177It was created by $as_me, which was 1178generated by GNU Autoconf 2.59. Invocation command line was 1179 1180 $ $0 $@ 1181 1182_ACEOF 1183{ 1184cat <<_ASUNAME 1185## --------- ## 1186## Platform. ## 1187## --------- ## 1188 1189hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1190uname -m = `(uname -m) 2>/dev/null || echo unknown` 1191uname -r = `(uname -r) 2>/dev/null || echo unknown` 1192uname -s = `(uname -s) 2>/dev/null || echo unknown` 1193uname -v = `(uname -v) 2>/dev/null || echo unknown` 1194 1195/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1196/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1197 1198/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1199/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1200/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1201hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1202/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1203/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1204/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1205 1206_ASUNAME 1207 1208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1209for as_dir in $PATH 1210do 1211 IFS=$as_save_IFS 1212 test -z "$as_dir" && as_dir=. 1213 echo "PATH: $as_dir" 1214done 1215 1216} >&5 1217 1218cat >&5 <<_ACEOF 1219 1220 1221## ----------- ## 1222## Core tests. ## 1223## ----------- ## 1224 1225_ACEOF 1226 1227 1228# Keep a trace of the command line. 1229# Strip out --no-create and --no-recursion so they do not pile up. 1230# Strip out --silent because we don't want to record it for future runs. 1231# Also quote any args containing shell meta-characters. 1232# Make two passes to allow for proper duplicate-argument suppression. 1233ac_configure_args= 1234ac_configure_args0= 1235ac_configure_args1= 1236ac_sep= 1237ac_must_keep_next=false 1238for ac_pass in 1 2 1239do 1240 for ac_arg 1241 do 1242 case $ac_arg in 1243 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1245 | -silent | --silent | --silen | --sile | --sil) 1246 continue ;; 1247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1249 esac 1250 case $ac_pass in 1251 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1252 2) 1253 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1254 if test $ac_must_keep_next = true; then 1255 ac_must_keep_next=false # Got value, back to normal. 1256 else 1257 case $ac_arg in 1258 *=* | --config-cache | -C | -disable-* | --disable-* \ 1259 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1260 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1261 | -with-* | --with-* | -without-* | --without-* | --x) 1262 case "$ac_configure_args0 " in 1263 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1264 esac 1265 ;; 1266 -* ) ac_must_keep_next=true ;; 1267 esac 1268 fi 1269 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1270 # Get rid of the leading space. 1271 ac_sep=" " 1272 ;; 1273 esac 1274 done 1275done 1276$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1277$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1278 1279# When interrupted or exit'd, cleanup temporary files, and complete 1280# config.log. We remove comments because anyway the quotes in there 1281# would cause problems or look ugly. 1282# WARNING: Be sure not to use single quotes in there, as some shells, 1283# such as our DU 5.0 friend, will then `close' the trap. 1284trap 'exit_status=$? 1285 # Save into config.log some information that might help in debugging. 1286 { 1287 echo 1288 1289 cat <<\_ASBOX 1290## ---------------- ## 1291## Cache variables. ## 1292## ---------------- ## 1293_ASBOX 1294 echo 1295 # The following way of writing the cache mishandles newlines in values, 1296{ 1297 (set) 2>&1 | 1298 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1299 *ac_space=\ *) 1300 sed -n \ 1301 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1303 ;; 1304 *) 1305 sed -n \ 1306 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1307 ;; 1308 esac; 1309} 1310 echo 1311 1312 cat <<\_ASBOX 1313## ----------------- ## 1314## Output variables. ## 1315## ----------------- ## 1316_ASBOX 1317 echo 1318 for ac_var in $ac_subst_vars 1319 do 1320 eval ac_val=$`echo $ac_var` 1321 echo "$ac_var='"'"'$ac_val'"'"'" 1322 done | sort 1323 echo 1324 1325 if test -n "$ac_subst_files"; then 1326 cat <<\_ASBOX 1327## ------------- ## 1328## Output files. ## 1329## ------------- ## 1330_ASBOX 1331 echo 1332 for ac_var in $ac_subst_files 1333 do 1334 eval ac_val=$`echo $ac_var` 1335 echo "$ac_var='"'"'$ac_val'"'"'" 1336 done | sort 1337 echo 1338 fi 1339 1340 if test -s confdefs.h; then 1341 cat <<\_ASBOX 1342## ----------- ## 1343## confdefs.h. ## 1344## ----------- ## 1345_ASBOX 1346 echo 1347 sed "/^$/d" confdefs.h | sort 1348 echo 1349 fi 1350 test "$ac_signal" != 0 && 1351 echo "$as_me: caught signal $ac_signal" 1352 echo "$as_me: exit $exit_status" 1353 } >&5 1354 rm -f core *.core && 1355 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1356 exit $exit_status 1357 ' 0 1358for ac_signal in 1 2 13 15; do 1359 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1360done 1361ac_signal=0 1362 1363# confdefs.h avoids OS command line length limits that DEFS can exceed. 1364rm -rf conftest* confdefs.h 1365# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1366echo >confdefs.h 1367 1368# Predefined preprocessor variables. 1369 1370cat >>confdefs.h <<_ACEOF 1371#define PACKAGE_NAME "$PACKAGE_NAME" 1372_ACEOF 1373 1374 1375cat >>confdefs.h <<_ACEOF 1376#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1377_ACEOF 1378 1379 1380cat >>confdefs.h <<_ACEOF 1381#define PACKAGE_VERSION "$PACKAGE_VERSION" 1382_ACEOF 1383 1384 1385cat >>confdefs.h <<_ACEOF 1386#define PACKAGE_STRING "$PACKAGE_STRING" 1387_ACEOF 1388 1389 1390cat >>confdefs.h <<_ACEOF 1391#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1392_ACEOF 1393 1394 1395# Let the site file select an alternate cache file if it wants to. 1396# Prefer explicitly selected file to automatically selected ones. 1397if test -z "$CONFIG_SITE"; then 1398 if test "x$prefix" != xNONE; then 1399 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1400 else 1401 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1402 fi 1403fi 1404for ac_site_file in $CONFIG_SITE; do 1405 if test -r "$ac_site_file"; then 1406 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1407echo "$as_me: loading site script $ac_site_file" >&6;} 1408 sed 's/^/| /' "$ac_site_file" >&5 1409 . "$ac_site_file" 1410 fi 1411done 1412 1413if test -r "$cache_file"; then 1414 # Some versions of bash will fail to source /dev/null (special 1415 # files actually), so we avoid doing that. 1416 if test -f "$cache_file"; then 1417 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1418echo "$as_me: loading cache $cache_file" >&6;} 1419 case $cache_file in 1420 [\\/]* | ?:[\\/]* ) . $cache_file;; 1421 *) . ./$cache_file;; 1422 esac 1423 fi 1424else 1425 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1426echo "$as_me: creating cache $cache_file" >&6;} 1427 >$cache_file 1428fi 1429 1430# Check that the precious variables saved in the cache have kept the same 1431# value. 1432ac_cache_corrupted=false 1433for ac_var in `(set) 2>&1 | 1434 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1435 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1436 eval ac_new_set=\$ac_env_${ac_var}_set 1437 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1438 eval ac_new_val="\$ac_env_${ac_var}_value" 1439 case $ac_old_set,$ac_new_set in 1440 set,) 1441 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1442echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1443 ac_cache_corrupted=: ;; 1444 ,set) 1445 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1446echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1447 ac_cache_corrupted=: ;; 1448 ,);; 1449 *) 1450 if test "x$ac_old_val" != "x$ac_new_val"; then 1451 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1452echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1453 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1454echo "$as_me: former value: $ac_old_val" >&2;} 1455 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1456echo "$as_me: current value: $ac_new_val" >&2;} 1457 ac_cache_corrupted=: 1458 fi;; 1459 esac 1460 # Pass precious variables to config.status. 1461 if test "$ac_new_set" = set; then 1462 case $ac_new_val in 1463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1464 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1465 *) ac_arg=$ac_var=$ac_new_val ;; 1466 esac 1467 case " $ac_configure_args " in 1468 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1469 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1470 esac 1471 fi 1472done 1473if $ac_cache_corrupted; then 1474 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1475echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1476 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1477echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1478 { (exit 1); exit 1; }; } 1479fi 1480 1481ac_ext=c 1482ac_cpp='$CPP $CPPFLAGS' 1483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1485ac_compiler_gnu=$ac_cv_c_compiler_gnu 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 ac_config_headers="$ac_config_headers config.h" 1507 1508 ac_config_commands="$ac_config_commands default-1" 1509 1510am__api_version="1.4" 1511ac_aux_dir= 1512for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1513 if test -f $ac_dir/install-sh; then 1514 ac_aux_dir=$ac_dir 1515 ac_install_sh="$ac_aux_dir/install-sh -c" 1516 break 1517 elif test -f $ac_dir/install.sh; then 1518 ac_aux_dir=$ac_dir 1519 ac_install_sh="$ac_aux_dir/install.sh -c" 1520 break 1521 elif test -f $ac_dir/shtool; then 1522 ac_aux_dir=$ac_dir 1523 ac_install_sh="$ac_aux_dir/shtool install -c" 1524 break 1525 fi 1526done 1527if test -z "$ac_aux_dir"; then 1528 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1529echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1530 { (exit 1); exit 1; }; } 1531fi 1532ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1533ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1534ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1535 1536# Find a good install program. We prefer a C program (faster), 1537# so one script is as good as another. But avoid the broken or 1538# incompatible versions: 1539# SysV /etc/install, /usr/sbin/install 1540# SunOS /usr/etc/install 1541# IRIX /sbin/install 1542# AIX /bin/install 1543# AmigaOS /C/install, which installs bootblocks on floppy discs 1544# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1545# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1546# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1547# OS/2's system install, which has a completely different semantic 1548# ./install, which can be erroneously created by make from ./install.sh. 1549echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1550echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1551if test -z "$INSTALL"; then 1552if test "${ac_cv_path_install+set}" = set; then 1553 echo $ECHO_N "(cached) $ECHO_C" >&6 1554else 1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1556for as_dir in $PATH 1557do 1558 IFS=$as_save_IFS 1559 test -z "$as_dir" && as_dir=. 1560 # Account for people who put trailing slashes in PATH elements. 1561case $as_dir/ in 1562 ./ | .// | /cC/* | \ 1563 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1564 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1565 /usr/ucb/* ) ;; 1566 *) 1567 # OSF1 and SCO ODT 3.0 have their own names for install. 1568 # Don't use installbsd from OSF since it installs stuff as root 1569 # by default. 1570 for ac_prog in ginstall scoinst install; do 1571 for ac_exec_ext in '' $ac_executable_extensions; do 1572 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1573 if test $ac_prog = install && 1574 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1575 # AIX install. It has an incompatible calling convention. 1576 : 1577 elif test $ac_prog = install && 1578 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1579 # program-specific install script used by HP pwplus--don't use. 1580 : 1581 else 1582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1583 break 3 1584 fi 1585 fi 1586 done 1587 done 1588 ;; 1589esac 1590done 1591 1592 1593fi 1594 if test "${ac_cv_path_install+set}" = set; then 1595 INSTALL=$ac_cv_path_install 1596 else 1597 # As a last resort, use the slow shell script. We don't cache a 1598 # path for INSTALL within a source directory, because that will 1599 # break other packages using the cache if that directory is 1600 # removed, or if the path is relative. 1601 INSTALL=$ac_install_sh 1602 fi 1603fi 1604echo "$as_me:$LINENO: result: $INSTALL" >&5 1605echo "${ECHO_T}$INSTALL" >&6 1606 1607# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1608# It thinks the first close brace ends the variable substitution. 1609test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1610 1611test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1612 1613test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1614 1615echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1616echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1617# Just in case 1618sleep 1 1619echo timestamp > conftestfile 1620# Do `set' in a subshell so we don't clobber the current shell's 1621# arguments. Must try -L first in case configure is actually a 1622# symlink; some systems play weird games with the mod time of symlinks 1623# (eg FreeBSD returns the mod time of the symlink's containing 1624# directory). 1625if ( 1626 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 1627 if test "$*" = "X"; then 1628 # -L didn't work. 1629 set X `ls -t $srcdir/configure conftestfile` 1630 fi 1631 if test "$*" != "X $srcdir/configure conftestfile" \ 1632 && test "$*" != "X conftestfile $srcdir/configure"; then 1633 1634 # If neither matched, then we have a broken ls. This can happen 1635 # if, for instance, CONFIG_SHELL is bash and it inherits a 1636 # broken ls alias from the environment. This has actually 1637 # happened. Such a system could not be considered "sane". 1638 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1639alias in your environment" >&5 1640echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1641alias in your environment" >&2;} 1642 { (exit 1); exit 1; }; } 1643 fi 1644 1645 test "$2" = conftestfile 1646 ) 1647then 1648 # Ok. 1649 : 1650else 1651 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1652Check your system clock" >&5 1653echo "$as_me: error: newly created file is older than distributed files! 1654Check your system clock" >&2;} 1655 { (exit 1); exit 1; }; } 1656fi 1657rm -f conftest* 1658echo "$as_me:$LINENO: result: yes" >&5 1659echo "${ECHO_T}yes" >&6 1660test "$program_prefix" != NONE && 1661 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1662# Use a double $ so make ignores it. 1663test "$program_suffix" != NONE && 1664 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1665# Double any \ or $. echo might interpret backslashes. 1666# By default was `s,x,x', remove it if useless. 1667cat <<\_ACEOF >conftest.sed 1668s/[\\$]/&&/g;s/;s,x,x,$// 1669_ACEOF 1670program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1671rm conftest.sed 1672 1673echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1674echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1675set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1676if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1677 echo $ECHO_N "(cached) $ECHO_C" >&6 1678else 1679 cat >conftest.make <<\_ACEOF 1680all: 1681 @echo 'ac_maketemp="$(MAKE)"' 1682_ACEOF 1683# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1684eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1685if test -n "$ac_maketemp"; then 1686 eval ac_cv_prog_make_${ac_make}_set=yes 1687else 1688 eval ac_cv_prog_make_${ac_make}_set=no 1689fi 1690rm -f conftest.make 1691fi 1692if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1693 echo "$as_me:$LINENO: result: yes" >&5 1694echo "${ECHO_T}yes" >&6 1695 SET_MAKE= 1696else 1697 echo "$as_me:$LINENO: result: no" >&5 1698echo "${ECHO_T}no" >&6 1699 SET_MAKE="MAKE=${MAKE-make}" 1700fi 1701 1702 1703PACKAGE=popular 1704 1705VERSION=1.5.5 1706 1707if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 1708 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1709echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1710 { (exit 1); exit 1; }; } 1711fi 1712 1713cat >>confdefs.h <<_ACEOF 1714#define PACKAGE "$PACKAGE" 1715_ACEOF 1716 1717 1718cat >>confdefs.h <<_ACEOF 1719#define VERSION "$VERSION" 1720_ACEOF 1721 1722 1723 1724missing_dir=`cd $ac_aux_dir && pwd` 1725echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 1726echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 1727# Run test in a subshell; some versions of sh will print an error if 1728# an executable is not found, even if stderr is redirected. 1729# Redirect stdin to placate older versions of autoconf. Sigh. 1730if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 1731 ACLOCAL=aclocal-${am__api_version} 1732 echo "$as_me:$LINENO: result: found" >&5 1733echo "${ECHO_T}found" >&6 1734else 1735 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" 1736 echo "$as_me:$LINENO: result: missing" >&5 1737echo "${ECHO_T}missing" >&6 1738fi 1739 1740echo "$as_me:$LINENO: checking for working autoconf" >&5 1741echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 1742# Run test in a subshell; some versions of sh will print an error if 1743# an executable is not found, even if stderr is redirected. 1744# Redirect stdin to placate older versions of autoconf. Sigh. 1745if (autoconf --version) < /dev/null > /dev/null 2>&1; then 1746 AUTOCONF=autoconf 1747 echo "$as_me:$LINENO: result: found" >&5 1748echo "${ECHO_T}found" >&6 1749else 1750 AUTOCONF="$missing_dir/missing autoconf" 1751 echo "$as_me:$LINENO: result: missing" >&5 1752echo "${ECHO_T}missing" >&6 1753fi 1754 1755echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 1756echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6 1757# Run test in a subshell; some versions of sh will print an error if 1758# an executable is not found, even if stderr is redirected. 1759# Redirect stdin to placate older versions of autoconf. Sigh. 1760if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 1761 AUTOMAKE=automake-${am__api_version} 1762 echo "$as_me:$LINENO: result: found" >&5 1763echo "${ECHO_T}found" >&6 1764else 1765 AUTOMAKE="$missing_dir/missing automake-${am__api_version}" 1766 echo "$as_me:$LINENO: result: missing" >&5 1767echo "${ECHO_T}missing" >&6 1768fi 1769 1770echo "$as_me:$LINENO: checking for working autoheader" >&5 1771echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 1772# Run test in a subshell; some versions of sh will print an error if 1773# an executable is not found, even if stderr is redirected. 1774# Redirect stdin to placate older versions of autoconf. Sigh. 1775if (autoheader --version) < /dev/null > /dev/null 2>&1; then 1776 AUTOHEADER=autoheader 1777 echo "$as_me:$LINENO: result: found" >&5 1778echo "${ECHO_T}found" >&6 1779else 1780 AUTOHEADER="$missing_dir/missing autoheader" 1781 echo "$as_me:$LINENO: result: missing" >&5 1782echo "${ECHO_T}missing" >&6 1783fi 1784 1785echo "$as_me:$LINENO: checking for working makeinfo" >&5 1786echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 1787# Run test in a subshell; some versions of sh will print an error if 1788# an executable is not found, even if stderr is redirected. 1789# Redirect stdin to placate older versions of autoconf. Sigh. 1790if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 1791 MAKEINFO=makeinfo 1792 echo "$as_me:$LINENO: result: found" >&5 1793echo "${ECHO_T}found" >&6 1794else 1795 MAKEINFO="$missing_dir/missing makeinfo" 1796 echo "$as_me:$LINENO: result: missing" >&5 1797echo "${ECHO_T}missing" >&6 1798fi 1799 1800 1801 1802 1803# Check whether --enable-shared or --disable-shared was given. 1804if test "${enable_shared+set}" = set; then 1805 enableval="$enable_shared" 1806 p=${PACKAGE-default} 1807 case $enableval in 1808 yes) enable_shared=yes ;; 1809 no) enable_shared=no ;; 1810 *) 1811 enable_shared=no 1812 # Look at the argument we got. We use all the common list separators. 1813 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1814 for pkg in $enableval; do 1815 IFS="$lt_save_ifs" 1816 if test "X$pkg" = "X$p"; then 1817 enable_shared=yes 1818 fi 1819 done 1820 IFS="$lt_save_ifs" 1821 ;; 1822 esac 1823else 1824 enable_shared=yes 1825fi; 1826 1827# Check whether --enable-static or --disable-static was given. 1828if test "${enable_static+set}" = set; then 1829 enableval="$enable_static" 1830 p=${PACKAGE-default} 1831 case $enableval in 1832 yes) enable_static=yes ;; 1833 no) enable_static=no ;; 1834 *) 1835 enable_static=no 1836 # Look at the argument we got. We use all the common list separators. 1837 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1838 for pkg in $enableval; do 1839 IFS="$lt_save_ifs" 1840 if test "X$pkg" = "X$p"; then 1841 enable_static=yes 1842 fi 1843 done 1844 IFS="$lt_save_ifs" 1845 ;; 1846 esac 1847else 1848 enable_static=yes 1849fi; 1850 1851# Check whether --enable-fast-install or --disable-fast-install was given. 1852if test "${enable_fast_install+set}" = set; then 1853 enableval="$enable_fast_install" 1854 p=${PACKAGE-default} 1855 case $enableval in 1856 yes) enable_fast_install=yes ;; 1857 no) enable_fast_install=no ;; 1858 *) 1859 enable_fast_install=no 1860 # Look at the argument we got. We use all the common list separators. 1861 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1862 for pkg in $enableval; do 1863 IFS="$lt_save_ifs" 1864 if test "X$pkg" = "X$p"; then 1865 enable_fast_install=yes 1866 fi 1867 done 1868 IFS="$lt_save_ifs" 1869 ;; 1870 esac 1871else 1872 enable_fast_install=yes 1873fi; 1874 1875# Make sure we can run config.sub. 1876$ac_config_sub sun4 >/dev/null 2>&1 || 1877 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1878echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1879 { (exit 1); exit 1; }; } 1880 1881echo "$as_me:$LINENO: checking build system type" >&5 1882echo $ECHO_N "checking build system type... $ECHO_C" >&6 1883if test "${ac_cv_build+set}" = set; then 1884 echo $ECHO_N "(cached) $ECHO_C" >&6 1885else 1886 ac_cv_build_alias=$build_alias 1887test -z "$ac_cv_build_alias" && 1888 ac_cv_build_alias=`$ac_config_guess` 1889test -z "$ac_cv_build_alias" && 1890 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1891echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1892 { (exit 1); exit 1; }; } 1893ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1894 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1895echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1896 { (exit 1); exit 1; }; } 1897 1898fi 1899echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1900echo "${ECHO_T}$ac_cv_build" >&6 1901build=$ac_cv_build 1902build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1903build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1904build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1905 1906 1907echo "$as_me:$LINENO: checking host system type" >&5 1908echo $ECHO_N "checking host system type... $ECHO_C" >&6 1909if test "${ac_cv_host+set}" = set; then 1910 echo $ECHO_N "(cached) $ECHO_C" >&6 1911else 1912 ac_cv_host_alias=$host_alias 1913test -z "$ac_cv_host_alias" && 1914 ac_cv_host_alias=$ac_cv_build_alias 1915ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1916 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1917echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1918 { (exit 1); exit 1; }; } 1919 1920fi 1921echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1922echo "${ECHO_T}$ac_cv_host" >&6 1923host=$ac_cv_host 1924host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1925host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1926host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1927 1928 1929ac_ext=c 1930ac_cpp='$CPP $CPPFLAGS' 1931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1933ac_compiler_gnu=$ac_cv_c_compiler_gnu 1934if test -n "$ac_tool_prefix"; then 1935 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1936set dummy ${ac_tool_prefix}gcc; ac_word=$2 1937echo "$as_me:$LINENO: checking for $ac_word" >&5 1938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1939if test "${ac_cv_prog_CC+set}" = set; then 1940 echo $ECHO_N "(cached) $ECHO_C" >&6 1941else 1942 if test -n "$CC"; then 1943 ac_cv_prog_CC="$CC" # Let the user override the test. 1944else 1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1946for as_dir in $PATH 1947do 1948 IFS=$as_save_IFS 1949 test -z "$as_dir" && as_dir=. 1950 for ac_exec_ext in '' $ac_executable_extensions; do 1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1952 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1954 break 2 1955 fi 1956done 1957done 1958 1959fi 1960fi 1961CC=$ac_cv_prog_CC 1962if test -n "$CC"; then 1963 echo "$as_me:$LINENO: result: $CC" >&5 1964echo "${ECHO_T}$CC" >&6 1965else 1966 echo "$as_me:$LINENO: result: no" >&5 1967echo "${ECHO_T}no" >&6 1968fi 1969 1970fi 1971if test -z "$ac_cv_prog_CC"; then 1972 ac_ct_CC=$CC 1973 # Extract the first word of "gcc", so it can be a program name with args. 1974set dummy gcc; 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_ac_ct_CC+set}" = set; then 1978 echo $ECHO_N "(cached) $ECHO_C" >&6 1979else 1980 if test -n "$ac_ct_CC"; then 1981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="gcc" 1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1992 break 2 1993 fi 1994done 1995done 1996 1997fi 1998fi 1999ac_ct_CC=$ac_cv_prog_ac_ct_CC 2000if test -n "$ac_ct_CC"; then 2001 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2002echo "${ECHO_T}$ac_ct_CC" >&6 2003else 2004 echo "$as_me:$LINENO: result: no" >&5 2005echo "${ECHO_T}no" >&6 2006fi 2007 2008 CC=$ac_ct_CC 2009else 2010 CC="$ac_cv_prog_CC" 2011fi 2012 2013if test -z "$CC"; then 2014 if test -n "$ac_tool_prefix"; then 2015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2016set dummy ${ac_tool_prefix}cc; ac_word=$2 2017echo "$as_me:$LINENO: checking for $ac_word" >&5 2018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2019if test "${ac_cv_prog_CC+set}" = set; then 2020 echo $ECHO_N "(cached) $ECHO_C" >&6 2021else 2022 if test -n "$CC"; then 2023 ac_cv_prog_CC="$CC" # Let the user override the test. 2024else 2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2026for as_dir in $PATH 2027do 2028 IFS=$as_save_IFS 2029 test -z "$as_dir" && as_dir=. 2030 for ac_exec_ext in '' $ac_executable_extensions; do 2031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2032 ac_cv_prog_CC="${ac_tool_prefix}cc" 2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2034 break 2 2035 fi 2036done 2037done 2038 2039fi 2040fi 2041CC=$ac_cv_prog_CC 2042if test -n "$CC"; then 2043 echo "$as_me:$LINENO: result: $CC" >&5 2044echo "${ECHO_T}$CC" >&6 2045else 2046 echo "$as_me:$LINENO: result: no" >&5 2047echo "${ECHO_T}no" >&6 2048fi 2049 2050fi 2051if test -z "$ac_cv_prog_CC"; then 2052 ac_ct_CC=$CC 2053 # Extract the first word of "cc", so it can be a program name with args. 2054set dummy cc; ac_word=$2 2055echo "$as_me:$LINENO: checking for $ac_word" >&5 2056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2057if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2058 echo $ECHO_N "(cached) $ECHO_C" >&6 2059else 2060 if test -n "$ac_ct_CC"; then 2061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2062else 2063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2064for as_dir in $PATH 2065do 2066 IFS=$as_save_IFS 2067 test -z "$as_dir" && as_dir=. 2068 for ac_exec_ext in '' $ac_executable_extensions; do 2069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2070 ac_cv_prog_ac_ct_CC="cc" 2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2072 break 2 2073 fi 2074done 2075done 2076 2077fi 2078fi 2079ac_ct_CC=$ac_cv_prog_ac_ct_CC 2080if test -n "$ac_ct_CC"; then 2081 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2082echo "${ECHO_T}$ac_ct_CC" >&6 2083else 2084 echo "$as_me:$LINENO: result: no" >&5 2085echo "${ECHO_T}no" >&6 2086fi 2087 2088 CC=$ac_ct_CC 2089else 2090 CC="$ac_cv_prog_CC" 2091fi 2092 2093fi 2094if test -z "$CC"; then 2095 # Extract the first word of "cc", so it can be a program name with args. 2096set dummy cc; ac_word=$2 2097echo "$as_me:$LINENO: checking for $ac_word" >&5 2098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2099if test "${ac_cv_prog_CC+set}" = set; then 2100 echo $ECHO_N "(cached) $ECHO_C" >&6 2101else 2102 if test -n "$CC"; then 2103 ac_cv_prog_CC="$CC" # Let the user override the test. 2104else 2105 ac_prog_rejected=no 2106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2107for as_dir in $PATH 2108do 2109 IFS=$as_save_IFS 2110 test -z "$as_dir" && as_dir=. 2111 for ac_exec_ext in '' $ac_executable_extensions; do 2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2113 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2114 ac_prog_rejected=yes 2115 continue 2116 fi 2117 ac_cv_prog_CC="cc" 2118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2119 break 2 2120 fi 2121done 2122done 2123 2124if test $ac_prog_rejected = yes; then 2125 # We found a bogon in the path, so make sure we never use it. 2126 set dummy $ac_cv_prog_CC 2127 shift 2128 if test $# != 0; then 2129 # We chose a different compiler from the bogus one. 2130 # However, it has the same basename, so the bogon will be chosen 2131 # first if we set CC to just the basename; use the full file name. 2132 shift 2133 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2134 fi 2135fi 2136fi 2137fi 2138CC=$ac_cv_prog_CC 2139if test -n "$CC"; then 2140 echo "$as_me:$LINENO: result: $CC" >&5 2141echo "${ECHO_T}$CC" >&6 2142else 2143 echo "$as_me:$LINENO: result: no" >&5 2144echo "${ECHO_T}no" >&6 2145fi 2146 2147fi 2148if test -z "$CC"; then 2149 if test -n "$ac_tool_prefix"; then 2150 for ac_prog in cl 2151 do 2152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2153set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2154echo "$as_me:$LINENO: checking for $ac_word" >&5 2155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2156if test "${ac_cv_prog_CC+set}" = set; then 2157 echo $ECHO_N "(cached) $ECHO_C" >&6 2158else 2159 if test -n "$CC"; then 2160 ac_cv_prog_CC="$CC" # Let the user override the test. 2161else 2162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2163for as_dir in $PATH 2164do 2165 IFS=$as_save_IFS 2166 test -z "$as_dir" && as_dir=. 2167 for ac_exec_ext in '' $ac_executable_extensions; do 2168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2171 break 2 2172 fi 2173done 2174done 2175 2176fi 2177fi 2178CC=$ac_cv_prog_CC 2179if test -n "$CC"; then 2180 echo "$as_me:$LINENO: result: $CC" >&5 2181echo "${ECHO_T}$CC" >&6 2182else 2183 echo "$as_me:$LINENO: result: no" >&5 2184echo "${ECHO_T}no" >&6 2185fi 2186 2187 test -n "$CC" && break 2188 done 2189fi 2190if test -z "$CC"; then 2191 ac_ct_CC=$CC 2192 for ac_prog in cl 2193do 2194 # Extract the first word of "$ac_prog", so it can be a program name with args. 2195set dummy $ac_prog; ac_word=$2 2196echo "$as_me:$LINENO: checking for $ac_word" >&5 2197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2198if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2199 echo $ECHO_N "(cached) $ECHO_C" >&6 2200else 2201 if test -n "$ac_ct_CC"; then 2202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2203else 2204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2205for as_dir in $PATH 2206do 2207 IFS=$as_save_IFS 2208 test -z "$as_dir" && as_dir=. 2209 for ac_exec_ext in '' $ac_executable_extensions; do 2210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2211 ac_cv_prog_ac_ct_CC="$ac_prog" 2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2213 break 2 2214 fi 2215done 2216done 2217 2218fi 2219fi 2220ac_ct_CC=$ac_cv_prog_ac_ct_CC 2221if test -n "$ac_ct_CC"; then 2222 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2223echo "${ECHO_T}$ac_ct_CC" >&6 2224else 2225 echo "$as_me:$LINENO: result: no" >&5 2226echo "${ECHO_T}no" >&6 2227fi 2228 2229 test -n "$ac_ct_CC" && break 2230done 2231 2232 CC=$ac_ct_CC 2233fi 2234 2235fi 2236 2237 2238test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2239See \`config.log' for more details." >&5 2240echo "$as_me: error: no acceptable C compiler found in \$PATH 2241See \`config.log' for more details." >&2;} 2242 { (exit 1); exit 1; }; } 2243 2244# Provide some information about the compiler. 2245echo "$as_me:$LINENO:" \ 2246 "checking for C compiler version" >&5 2247ac_compiler=`set X $ac_compile; echo $2` 2248{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2249 (eval $ac_compiler --version </dev/null >&5) 2>&5 2250 ac_status=$? 2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2252 (exit $ac_status); } 2253{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2254 (eval $ac_compiler -v </dev/null >&5) 2>&5 2255 ac_status=$? 2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2257 (exit $ac_status); } 2258{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2259 (eval $ac_compiler -V </dev/null >&5) 2>&5 2260 ac_status=$? 2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 (exit $ac_status); } 2263 2264cat >conftest.$ac_ext <<_ACEOF 2265/* confdefs.h. */ 2266_ACEOF 2267cat confdefs.h >>conftest.$ac_ext 2268cat >>conftest.$ac_ext <<_ACEOF 2269/* end confdefs.h. */ 2270 2271int 2272main () 2273{ 2274 2275 ; 2276 return 0; 2277} 2278_ACEOF 2279ac_clean_files_save=$ac_clean_files 2280ac_clean_files="$ac_clean_files a.out a.exe b.out" 2281# Try to create an executable without -o first, disregard a.out. 2282# It will help us diagnose broken compilers, and finding out an intuition 2283# of exeext. 2284echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2285echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2286ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2287if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2288 (eval $ac_link_default) 2>&5 2289 ac_status=$? 2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2291 (exit $ac_status); }; then 2292 # Find the output, starting from the most likely. This scheme is 2293# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2294# resort. 2295 2296# Be careful to initialize this variable, since it used to be cached. 2297# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2298ac_cv_exeext= 2299# b.out is created by i960 compilers. 2300for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2301do 2302 test -f "$ac_file" || continue 2303 case $ac_file in 2304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2305 ;; 2306 conftest.$ac_ext ) 2307 # This is the source file. 2308 ;; 2309 [ab].out ) 2310 # We found the default executable, but exeext='' is most 2311 # certainly right. 2312 break;; 2313 *.* ) 2314 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2315 # FIXME: I believe we export ac_cv_exeext for Libtool, 2316 # but it would be cool to find out if it's true. Does anybody 2317 # maintain Libtool? --akim. 2318 export ac_cv_exeext 2319 break;; 2320 * ) 2321 break;; 2322 esac 2323done 2324else 2325 echo "$as_me: failed program was:" >&5 2326sed 's/^/| /' conftest.$ac_ext >&5 2327 2328{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2329See \`config.log' for more details." >&5 2330echo "$as_me: error: C compiler cannot create executables 2331See \`config.log' for more details." >&2;} 2332 { (exit 77); exit 77; }; } 2333fi 2334 2335ac_exeext=$ac_cv_exeext 2336echo "$as_me:$LINENO: result: $ac_file" >&5 2337echo "${ECHO_T}$ac_file" >&6 2338 2339# Check the compiler produces executables we can run. If not, either 2340# the compiler is broken, or we cross compile. 2341echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2342echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2343# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2344# If not cross compiling, check that we can run a simple program. 2345if test "$cross_compiling" != yes; then 2346 if { ac_try='./$ac_file' 2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2348 (eval $ac_try) 2>&5 2349 ac_status=$? 2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2351 (exit $ac_status); }; }; then 2352 cross_compiling=no 2353 else 2354 if test "$cross_compiling" = maybe; then 2355 cross_compiling=yes 2356 else 2357 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2358If you meant to cross compile, use \`--host'. 2359See \`config.log' for more details." >&5 2360echo "$as_me: error: cannot run C compiled programs. 2361If you meant to cross compile, use \`--host'. 2362See \`config.log' for more details." >&2;} 2363 { (exit 1); exit 1; }; } 2364 fi 2365 fi 2366fi 2367echo "$as_me:$LINENO: result: yes" >&5 2368echo "${ECHO_T}yes" >&6 2369 2370rm -f a.out a.exe conftest$ac_cv_exeext b.out 2371ac_clean_files=$ac_clean_files_save 2372# Check the compiler produces executables we can run. If not, either 2373# the compiler is broken, or we cross compile. 2374echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2375echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2376echo "$as_me:$LINENO: result: $cross_compiling" >&5 2377echo "${ECHO_T}$cross_compiling" >&6 2378 2379echo "$as_me:$LINENO: checking for suffix of executables" >&5 2380echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2382 (eval $ac_link) 2>&5 2383 ac_status=$? 2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2385 (exit $ac_status); }; then 2386 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2387# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2388# work properly (i.e., refer to `conftest.exe'), while it won't with 2389# `rm'. 2390for ac_file in conftest.exe conftest conftest.*; do 2391 test -f "$ac_file" || continue 2392 case $ac_file in 2393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2394 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2395 export ac_cv_exeext 2396 break;; 2397 * ) break;; 2398 esac 2399done 2400else 2401 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2402See \`config.log' for more details." >&5 2403echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2404See \`config.log' for more details." >&2;} 2405 { (exit 1); exit 1; }; } 2406fi 2407 2408rm -f conftest$ac_cv_exeext 2409echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2410echo "${ECHO_T}$ac_cv_exeext" >&6 2411 2412rm -f conftest.$ac_ext 2413EXEEXT=$ac_cv_exeext 2414ac_exeext=$EXEEXT 2415echo "$as_me:$LINENO: checking for suffix of object files" >&5 2416echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2417if test "${ac_cv_objext+set}" = set; then 2418 echo $ECHO_N "(cached) $ECHO_C" >&6 2419else 2420 cat >conftest.$ac_ext <<_ACEOF 2421/* confdefs.h. */ 2422_ACEOF 2423cat confdefs.h >>conftest.$ac_ext 2424cat >>conftest.$ac_ext <<_ACEOF 2425/* end confdefs.h. */ 2426 2427int 2428main () 2429{ 2430 2431 ; 2432 return 0; 2433} 2434_ACEOF 2435rm -f conftest.o conftest.obj 2436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2437 (eval $ac_compile) 2>&5 2438 ac_status=$? 2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2440 (exit $ac_status); }; then 2441 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2442 case $ac_file in 2443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2445 break;; 2446 esac 2447done 2448else 2449 echo "$as_me: failed program was:" >&5 2450sed 's/^/| /' conftest.$ac_ext >&5 2451 2452{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2453See \`config.log' for more details." >&5 2454echo "$as_me: error: cannot compute suffix of object files: cannot compile 2455See \`config.log' for more details." >&2;} 2456 { (exit 1); exit 1; }; } 2457fi 2458 2459rm -f conftest.$ac_cv_objext conftest.$ac_ext 2460fi 2461echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2462echo "${ECHO_T}$ac_cv_objext" >&6 2463OBJEXT=$ac_cv_objext 2464ac_objext=$OBJEXT 2465echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2466echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2467if test "${ac_cv_c_compiler_gnu+set}" = set; then 2468 echo $ECHO_N "(cached) $ECHO_C" >&6 2469else 2470 cat >conftest.$ac_ext <<_ACEOF 2471/* confdefs.h. */ 2472_ACEOF 2473cat confdefs.h >>conftest.$ac_ext 2474cat >>conftest.$ac_ext <<_ACEOF 2475/* end confdefs.h. */ 2476 2477int 2478main () 2479{ 2480#ifndef __GNUC__ 2481 choke me 2482#endif 2483 2484 ; 2485 return 0; 2486} 2487_ACEOF 2488rm -f conftest.$ac_objext 2489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2490 (eval $ac_compile) 2>conftest.er1 2491 ac_status=$? 2492 grep -v '^ *+' conftest.er1 >conftest.err 2493 rm -f conftest.er1 2494 cat conftest.err >&5 2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2496 (exit $ac_status); } && 2497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2499 (eval $ac_try) 2>&5 2500 ac_status=$? 2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2502 (exit $ac_status); }; } && 2503 { ac_try='test -s conftest.$ac_objext' 2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2505 (eval $ac_try) 2>&5 2506 ac_status=$? 2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2508 (exit $ac_status); }; }; then 2509 ac_compiler_gnu=yes 2510else 2511 echo "$as_me: failed program was:" >&5 2512sed 's/^/| /' conftest.$ac_ext >&5 2513 2514ac_compiler_gnu=no 2515fi 2516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2517ac_cv_c_compiler_gnu=$ac_compiler_gnu 2518 2519fi 2520echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2521echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2522GCC=`test $ac_compiler_gnu = yes && echo yes` 2523ac_test_CFLAGS=${CFLAGS+set} 2524ac_save_CFLAGS=$CFLAGS 2525CFLAGS="-g" 2526echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2527echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2528if test "${ac_cv_prog_cc_g+set}" = set; then 2529 echo $ECHO_N "(cached) $ECHO_C" >&6 2530else 2531 cat >conftest.$ac_ext <<_ACEOF 2532/* confdefs.h. */ 2533_ACEOF 2534cat confdefs.h >>conftest.$ac_ext 2535cat >>conftest.$ac_ext <<_ACEOF 2536/* end confdefs.h. */ 2537 2538int 2539main () 2540{ 2541 2542 ; 2543 return 0; 2544} 2545_ACEOF 2546rm -f conftest.$ac_objext 2547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2548 (eval $ac_compile) 2>conftest.er1 2549 ac_status=$? 2550 grep -v '^ *+' conftest.er1 >conftest.err 2551 rm -f conftest.er1 2552 cat conftest.err >&5 2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2554 (exit $ac_status); } && 2555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2557 (eval $ac_try) 2>&5 2558 ac_status=$? 2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2560 (exit $ac_status); }; } && 2561 { ac_try='test -s conftest.$ac_objext' 2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2563 (eval $ac_try) 2>&5 2564 ac_status=$? 2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2566 (exit $ac_status); }; }; then 2567 ac_cv_prog_cc_g=yes 2568else 2569 echo "$as_me: failed program was:" >&5 2570sed 's/^/| /' conftest.$ac_ext >&5 2571 2572ac_cv_prog_cc_g=no 2573fi 2574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2575fi 2576echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2577echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2578if test "$ac_test_CFLAGS" = set; then 2579 CFLAGS=$ac_save_CFLAGS 2580elif test $ac_cv_prog_cc_g = yes; then 2581 if test "$GCC" = yes; then 2582 CFLAGS="-g -O2" 2583 else 2584 CFLAGS="-g" 2585 fi 2586else 2587 if test "$GCC" = yes; then 2588 CFLAGS="-O2" 2589 else 2590 CFLAGS= 2591 fi 2592fi 2593echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2594echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2595if test "${ac_cv_prog_cc_stdc+set}" = set; then 2596 echo $ECHO_N "(cached) $ECHO_C" >&6 2597else 2598 ac_cv_prog_cc_stdc=no 2599ac_save_CC=$CC 2600cat >conftest.$ac_ext <<_ACEOF 2601/* confdefs.h. */ 2602_ACEOF 2603cat confdefs.h >>conftest.$ac_ext 2604cat >>conftest.$ac_ext <<_ACEOF 2605/* end confdefs.h. */ 2606#include <stdarg.h> 2607#include <stdio.h> 2608#include <sys/types.h> 2609#include <sys/stat.h> 2610/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2611struct buf { int x; }; 2612FILE * (*rcsopen) (struct buf *, struct stat *, int); 2613static char *e (p, i) 2614 char **p; 2615 int i; 2616{ 2617 return p[i]; 2618} 2619static char *f (char * (*g) (char **, int), char **p, ...) 2620{ 2621 char *s; 2622 va_list v; 2623 va_start (v,p); 2624 s = g (p, va_arg (v,int)); 2625 va_end (v); 2626 return s; 2627} 2628 2629/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2630 function prototypes and stuff, but not '\xHH' hex character constants. 2631 These don't provoke an error unfortunately, instead are silently treated 2632 as 'x'. The following induces an error, until -std1 is added to get 2633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2634 array size at least. It's necessary to write '\x00'==0 to get something 2635 that's true only with -std1. */ 2636int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2637 2638int test (int i, double x); 2639struct s1 {int (*f) (int a);}; 2640struct s2 {int (*f) (double a);}; 2641int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2642int argc; 2643char **argv; 2644int 2645main () 2646{ 2647return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2648 ; 2649 return 0; 2650} 2651_ACEOF 2652# Don't try gcc -ansi; that turns off useful extensions and 2653# breaks some systems' header files. 2654# AIX -qlanglvl=ansi 2655# Ultrix and OSF/1 -std1 2656# HP-UX 10.20 and later -Ae 2657# HP-UX older versions -Aa -D_HPUX_SOURCE 2658# SVR4 -Xc -D__EXTENSIONS__ 2659for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2660do 2661 CC="$ac_save_CC $ac_arg" 2662 rm -f conftest.$ac_objext 2663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2664 (eval $ac_compile) 2>conftest.er1 2665 ac_status=$? 2666 grep -v '^ *+' conftest.er1 >conftest.err 2667 rm -f conftest.er1 2668 cat conftest.err >&5 2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2670 (exit $ac_status); } && 2671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2673 (eval $ac_try) 2>&5 2674 ac_status=$? 2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2676 (exit $ac_status); }; } && 2677 { ac_try='test -s conftest.$ac_objext' 2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2679 (eval $ac_try) 2>&5 2680 ac_status=$? 2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2682 (exit $ac_status); }; }; then 2683 ac_cv_prog_cc_stdc=$ac_arg 2684break 2685else 2686 echo "$as_me: failed program was:" >&5 2687sed 's/^/| /' conftest.$ac_ext >&5 2688 2689fi 2690rm -f conftest.err conftest.$ac_objext 2691done 2692rm -f conftest.$ac_ext conftest.$ac_objext 2693CC=$ac_save_CC 2694 2695fi 2696 2697case "x$ac_cv_prog_cc_stdc" in 2698 x|xno) 2699 echo "$as_me:$LINENO: result: none needed" >&5 2700echo "${ECHO_T}none needed" >&6 ;; 2701 *) 2702 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2703echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2704 CC="$CC $ac_cv_prog_cc_stdc" ;; 2705esac 2706 2707# Some people use a C++ compiler to compile C. Since we use `exit', 2708# in C++ we need to declare it. In case someone uses the same compiler 2709# for both compiling C and C++ we need to have the C++ compiler decide 2710# the declaration of exit, since it's the most demanding environment. 2711cat >conftest.$ac_ext <<_ACEOF 2712#ifndef __cplusplus 2713 choke me 2714#endif 2715_ACEOF 2716rm -f conftest.$ac_objext 2717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2718 (eval $ac_compile) 2>conftest.er1 2719 ac_status=$? 2720 grep -v '^ *+' conftest.er1 >conftest.err 2721 rm -f conftest.er1 2722 cat conftest.err >&5 2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2724 (exit $ac_status); } && 2725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2727 (eval $ac_try) 2>&5 2728 ac_status=$? 2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2730 (exit $ac_status); }; } && 2731 { ac_try='test -s conftest.$ac_objext' 2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2733 (eval $ac_try) 2>&5 2734 ac_status=$? 2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2736 (exit $ac_status); }; }; then 2737 for ac_declaration in \ 2738 '' \ 2739 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2740 'extern "C" void std::exit (int); using std::exit;' \ 2741 'extern "C" void exit (int) throw ();' \ 2742 'extern "C" void exit (int);' \ 2743 'void exit (int);' 2744do 2745 cat >conftest.$ac_ext <<_ACEOF 2746/* confdefs.h. */ 2747_ACEOF 2748cat confdefs.h >>conftest.$ac_ext 2749cat >>conftest.$ac_ext <<_ACEOF 2750/* end confdefs.h. */ 2751$ac_declaration 2752#include <stdlib.h> 2753int 2754main () 2755{ 2756exit (42); 2757 ; 2758 return 0; 2759} 2760_ACEOF 2761rm -f conftest.$ac_objext 2762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2763 (eval $ac_compile) 2>conftest.er1 2764 ac_status=$? 2765 grep -v '^ *+' conftest.er1 >conftest.err 2766 rm -f conftest.er1 2767 cat conftest.err >&5 2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2769 (exit $ac_status); } && 2770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2772 (eval $ac_try) 2>&5 2773 ac_status=$? 2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2775 (exit $ac_status); }; } && 2776 { ac_try='test -s conftest.$ac_objext' 2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2778 (eval $ac_try) 2>&5 2779 ac_status=$? 2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2781 (exit $ac_status); }; }; then 2782 : 2783else 2784 echo "$as_me: failed program was:" >&5 2785sed 's/^/| /' conftest.$ac_ext >&5 2786 2787continue 2788fi 2789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2790 cat >conftest.$ac_ext <<_ACEOF 2791/* confdefs.h. */ 2792_ACEOF 2793cat confdefs.h >>conftest.$ac_ext 2794cat >>conftest.$ac_ext <<_ACEOF 2795/* end confdefs.h. */ 2796$ac_declaration 2797int 2798main () 2799{ 2800exit (42); 2801 ; 2802 return 0; 2803} 2804_ACEOF 2805rm -f conftest.$ac_objext 2806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2807 (eval $ac_compile) 2>conftest.er1 2808 ac_status=$? 2809 grep -v '^ *+' conftest.er1 >conftest.err 2810 rm -f conftest.er1 2811 cat conftest.err >&5 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); } && 2814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2816 (eval $ac_try) 2>&5 2817 ac_status=$? 2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2819 (exit $ac_status); }; } && 2820 { ac_try='test -s conftest.$ac_objext' 2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2822 (eval $ac_try) 2>&5 2823 ac_status=$? 2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2825 (exit $ac_status); }; }; then 2826 break 2827else 2828 echo "$as_me: failed program was:" >&5 2829sed 's/^/| /' conftest.$ac_ext >&5 2830 2831fi 2832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2833done 2834rm -f conftest* 2835if test -n "$ac_declaration"; then 2836 echo '#ifdef __cplusplus' >>confdefs.h 2837 echo $ac_declaration >>confdefs.h 2838 echo '#endif' >>confdefs.h 2839fi 2840 2841else 2842 echo "$as_me: failed program was:" >&5 2843sed 's/^/| /' conftest.$ac_ext >&5 2844 2845fi 2846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2847ac_ext=c 2848ac_cpp='$CPP $CPPFLAGS' 2849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2851ac_compiler_gnu=$ac_cv_c_compiler_gnu 2852 2853echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 2854echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 2855if test "${lt_cv_path_SED+set}" = set; then 2856 echo $ECHO_N "(cached) $ECHO_C" >&6 2857else 2858 # Loop through the user's path and test for sed and gsed. 2859# Then use that list of sed's as ones to test for truncation. 2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2861for as_dir in $PATH 2862do 2863 IFS=$as_save_IFS 2864 test -z "$as_dir" && as_dir=. 2865 for lt_ac_prog in sed gsed; do 2866 for ac_exec_ext in '' $ac_executable_extensions; do 2867 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 2868 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 2869 fi 2870 done 2871 done 2872done 2873lt_ac_max=0 2874lt_ac_count=0 2875# Add /usr/xpg4/bin/sed as it is typically found on Solaris 2876# along with /bin/sed that truncates output. 2877for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 2878 test ! -f $lt_ac_sed && break 2879 cat /dev/null > conftest.in 2880 lt_ac_count=0 2881 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 2882 # Check for GNU sed and select it if it is found. 2883 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 2884 lt_cv_path_SED=$lt_ac_sed 2885 break 2886 fi 2887 while true; do 2888 cat conftest.in conftest.in >conftest.tmp 2889 mv conftest.tmp conftest.in 2890 cp conftest.in conftest.nl 2891 echo >>conftest.nl 2892 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 2893 cmp -s conftest.out conftest.nl || break 2894 # 10000 chars as input seems more than enough 2895 test $lt_ac_count -gt 10 && break 2896 lt_ac_count=`expr $lt_ac_count + 1` 2897 if test $lt_ac_count -gt $lt_ac_max; then 2898 lt_ac_max=$lt_ac_count 2899 lt_cv_path_SED=$lt_ac_sed 2900 fi 2901 done 2902done 2903SED=$lt_cv_path_SED 2904 2905fi 2906 2907echo "$as_me:$LINENO: result: $SED" >&5 2908echo "${ECHO_T}$SED" >&6 2909 2910echo "$as_me:$LINENO: checking for egrep" >&5 2911echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2912if test "${ac_cv_prog_egrep+set}" = set; then 2913 echo $ECHO_N "(cached) $ECHO_C" >&6 2914else 2915 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2916 then ac_cv_prog_egrep='grep -E' 2917 else ac_cv_prog_egrep='egrep' 2918 fi 2919fi 2920echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2921echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2922 EGREP=$ac_cv_prog_egrep 2923 2924 2925 2926# Check whether --with-gnu-ld or --without-gnu-ld was given. 2927if test "${with_gnu_ld+set}" = set; then 2928 withval="$with_gnu_ld" 2929 test "$withval" = no || with_gnu_ld=yes 2930else 2931 with_gnu_ld=no 2932fi; 2933ac_prog=ld 2934if test "$GCC" = yes; then 2935 # Check if gcc -print-prog-name=ld gives a path. 2936 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 2937echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 2938 case $host in 2939 *-*-mingw*) 2940 # gcc leaves a trailing carriage return which upsets mingw 2941 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 2942 *) 2943 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 2944 esac 2945 case $ac_prog in 2946 # Accept absolute paths. 2947 [\\/]* | ?:[\\/]*) 2948 re_direlt='/[^/][^/]*/\.\./' 2949 # Canonicalize the pathname of ld 2950 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 2951 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 2952 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 2953 done 2954 test -z "$LD" && LD="$ac_prog" 2955 ;; 2956 "") 2957 # If it fails, then pretend we aren't using GCC. 2958 ac_prog=ld 2959 ;; 2960 *) 2961 # If it is relative, then search for the first ld in PATH. 2962 with_gnu_ld=unknown 2963 ;; 2964 esac 2965elif test "$with_gnu_ld" = yes; then 2966 echo "$as_me:$LINENO: checking for GNU ld" >&5 2967echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 2968else 2969 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 2970echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 2971fi 2972if test "${lt_cv_path_LD+set}" = set; then 2973 echo $ECHO_N "(cached) $ECHO_C" >&6 2974else 2975 if test -z "$LD"; then 2976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2977 for ac_dir in $PATH; do 2978 IFS="$lt_save_ifs" 2979 test -z "$ac_dir" && ac_dir=. 2980 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2981 lt_cv_path_LD="$ac_dir/$ac_prog" 2982 # Check to see if the program is GNU ld. I'd rather use --version, 2983 # but apparently some GNU ld's only accept -v. 2984 # Break only if it was the GNU/non-GNU ld that we prefer. 2985 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 2986 *GNU* | *'with BFD'*) 2987 test "$with_gnu_ld" != no && break 2988 ;; 2989 *) 2990 test "$with_gnu_ld" != yes && break 2991 ;; 2992 esac 2993 fi 2994 done 2995 IFS="$lt_save_ifs" 2996else 2997 lt_cv_path_LD="$LD" # Let the user override the test with a path. 2998fi 2999fi 3000 3001LD="$lt_cv_path_LD" 3002if test -n "$LD"; then 3003 echo "$as_me:$LINENO: result: $LD" >&5 3004echo "${ECHO_T}$LD" >&6 3005else 3006 echo "$as_me:$LINENO: result: no" >&5 3007echo "${ECHO_T}no" >&6 3008fi 3009test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3010echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3011 { (exit 1); exit 1; }; } 3012echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3013echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3014if test "${lt_cv_prog_gnu_ld+set}" = set; then 3015 echo $ECHO_N "(cached) $ECHO_C" >&6 3016else 3017 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3018case `$LD -v 2>&1 </dev/null` in 3019*GNU* | *'with BFD'*) 3020 lt_cv_prog_gnu_ld=yes 3021 ;; 3022*) 3023 lt_cv_prog_gnu_ld=no 3024 ;; 3025esac 3026fi 3027echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3028echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3029with_gnu_ld=$lt_cv_prog_gnu_ld 3030 3031 3032echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3033echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3034if test "${lt_cv_ld_reload_flag+set}" = set; then 3035 echo $ECHO_N "(cached) $ECHO_C" >&6 3036else 3037 lt_cv_ld_reload_flag='-r' 3038fi 3039echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3040echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3041reload_flag=$lt_cv_ld_reload_flag 3042case $reload_flag in 3043"" | " "*) ;; 3044*) reload_flag=" $reload_flag" ;; 3045esac 3046reload_cmds='$LD$reload_flag -o $output$reload_objs' 3047 3048echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3049echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3050if test "${lt_cv_path_NM+set}" = set; then 3051 echo $ECHO_N "(cached) $ECHO_C" >&6 3052else 3053 if test -n "$NM"; then 3054 # Let the user override the test. 3055 lt_cv_path_NM="$NM" 3056else 3057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3058 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3059 IFS="$lt_save_ifs" 3060 test -z "$ac_dir" && ac_dir=. 3061 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3062 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3063 # Check to see if the nm accepts a BSD-compat flag. 3064 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3065 # nm: unknown option "B" ignored 3066 # Tru64's nm complains that /dev/null is an invalid object file 3067 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3068 */dev/null* | *'Invalid file or object type'*) 3069 lt_cv_path_NM="$tmp_nm -B" 3070 break 3071 ;; 3072 *) 3073 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3074 */dev/null*) 3075 lt_cv_path_NM="$tmp_nm -p" 3076 break 3077 ;; 3078 *) 3079 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3080 continue # so that we can try to find one that supports BSD flags 3081 ;; 3082 esac 3083 esac 3084 fi 3085 done 3086 IFS="$lt_save_ifs" 3087 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3088fi 3089fi 3090echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3091echo "${ECHO_T}$lt_cv_path_NM" >&6 3092NM="$lt_cv_path_NM" 3093 3094echo "$as_me:$LINENO: checking whether ln -s works" >&5 3095echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3096LN_S=$as_ln_s 3097if test "$LN_S" = "ln -s"; then 3098 echo "$as_me:$LINENO: result: yes" >&5 3099echo "${ECHO_T}yes" >&6 3100else 3101 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3102echo "${ECHO_T}no, using $LN_S" >&6 3103fi 3104 3105echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3106echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3107if test "${lt_cv_deplibs_check_method+set}" = set; then 3108 echo $ECHO_N "(cached) $ECHO_C" >&6 3109else 3110 lt_cv_file_magic_cmd='$MAGIC_CMD' 3111lt_cv_file_magic_test_file= 3112lt_cv_deplibs_check_method='unknown' 3113# Need to set the preceding variable on all platforms that support 3114# interlibrary dependencies. 3115# 'none' -- dependencies not supported. 3116# `unknown' -- same as none, but documents that we really don't know. 3117# 'pass_all' -- all dependencies passed with no checks. 3118# 'test_compile' -- check by making test program. 3119# 'file_magic [[regex]]' -- check by looking for files in library path 3120# which responds to the $file_magic_cmd with a given extended regex. 3121# If you have `file' or equivalent on your system and you're not sure 3122# whether `pass_all' will *always* work, you probably want this one. 3123 3124case $host_os in 3125aix4* | aix5*) 3126 lt_cv_deplibs_check_method=pass_all 3127 ;; 3128 3129beos*) 3130 lt_cv_deplibs_check_method=pass_all 3131 ;; 3132 3133bsdi4*) 3134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3135 lt_cv_file_magic_cmd='/usr/bin/file -L' 3136 lt_cv_file_magic_test_file=/shlib/libc.so 3137 ;; 3138 3139cygwin*) 3140 # func_win32_libid is a shell function defined in ltmain.sh 3141 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3142 lt_cv_file_magic_cmd='func_win32_libid' 3143 ;; 3144 3145mingw* | pw32*) 3146 # Base MSYS/MinGW do not provide the 'file' command needed by 3147 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3148 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3149 lt_cv_file_magic_cmd='$OBJDUMP -f' 3150 ;; 3151 3152darwin* | rhapsody*) 3153 lt_cv_deplibs_check_method=pass_all 3154 ;; 3155 3156freebsd* | kfreebsd*-gnu) 3157 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3158 case $host_cpu in 3159 i*86 ) 3160 # Not sure whether the presence of OpenBSD here was a mistake. 3161 # Let's accept both of them until this is cleared up. 3162 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3163 lt_cv_file_magic_cmd=/usr/bin/file 3164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3165 ;; 3166 esac 3167 else 3168 lt_cv_deplibs_check_method=pass_all 3169 fi 3170 ;; 3171 3172gnu*) 3173 lt_cv_deplibs_check_method=pass_all 3174 ;; 3175 3176hpux10.20* | hpux11*) 3177 lt_cv_file_magic_cmd=/usr/bin/file 3178 case "$host_cpu" in 3179 ia64*) 3180 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3181 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3182 ;; 3183 hppa*64*) 3184 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]' 3185 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3186 ;; 3187 *) 3188 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3189 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3190 ;; 3191 esac 3192 ;; 3193 3194irix5* | irix6* | nonstopux*) 3195 case $LD in 3196 *-32|*"-32 ") libmagic=32-bit;; 3197 *-n32|*"-n32 ") libmagic=N32;; 3198 *-64|*"-64 ") libmagic=64-bit;; 3199 *) libmagic=never-match;; 3200 esac 3201 lt_cv_deplibs_check_method=pass_all 3202 ;; 3203 3204# This must be Linux ELF. 3205linux*) 3206 lt_cv_deplibs_check_method=pass_all 3207 ;; 3208 3209netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 3210 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3212 else 3213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3214 fi 3215 ;; 3216 3217newos6*) 3218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3219 lt_cv_file_magic_cmd=/usr/bin/file 3220 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3221 ;; 3222 3223nto-qnx*) 3224 lt_cv_deplibs_check_method=unknown 3225 ;; 3226 3227openbsd*) 3228 lt_cv_file_magic_cmd=/usr/bin/file 3229 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3231 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3232 else 3233 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3234 fi 3235 ;; 3236 3237osf3* | osf4* | osf5*) 3238 lt_cv_deplibs_check_method=pass_all 3239 ;; 3240 3241sco3.2v5*) 3242 lt_cv_deplibs_check_method=pass_all 3243 ;; 3244 3245solaris*) 3246 lt_cv_deplibs_check_method=pass_all 3247 ;; 3248 3249sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3250 case $host_vendor in 3251 motorola) 3252 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]' 3253 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3254 ;; 3255 ncr) 3256 lt_cv_deplibs_check_method=pass_all 3257 ;; 3258 sequent) 3259 lt_cv_file_magic_cmd='/bin/file' 3260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3261 ;; 3262 sni) 3263 lt_cv_file_magic_cmd='/bin/file' 3264 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3265 lt_cv_file_magic_test_file=/lib/libc.so 3266 ;; 3267 siemens) 3268 lt_cv_deplibs_check_method=pass_all 3269 ;; 3270 esac 3271 ;; 3272 3273sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3274 lt_cv_deplibs_check_method=pass_all 3275 ;; 3276esac 3277 3278fi 3279echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3280echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3281file_magic_cmd=$lt_cv_file_magic_cmd 3282deplibs_check_method=$lt_cv_deplibs_check_method 3283test -z "$deplibs_check_method" && deplibs_check_method=unknown 3284 3285 3286 3287 3288# If no C compiler was specified, use CC. 3289LTCC=${LTCC-"$CC"} 3290 3291# Allow CC to be a program name with arguments. 3292compiler=$CC 3293 3294 3295# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3296if test "${enable_libtool_lock+set}" = set; then 3297 enableval="$enable_libtool_lock" 3298 3299fi; 3300test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3301 3302# Some flags need to be propagated to the compiler or linker for good 3303# libtool support. 3304case $host in 3305ia64-*-hpux*) 3306 # Find out which ABI we are using. 3307 echo 'int i;' > conftest.$ac_ext 3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3309 (eval $ac_compile) 2>&5 3310 ac_status=$? 3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3312 (exit $ac_status); }; then 3313 case `/usr/bin/file conftest.$ac_objext` in 3314 *ELF-32*) 3315 HPUX_IA64_MODE="32" 3316 ;; 3317 *ELF-64*) 3318 HPUX_IA64_MODE="64" 3319 ;; 3320 esac 3321 fi 3322 rm -rf conftest* 3323 ;; 3324*-*-irix6*) 3325 # Find out which ABI we are using. 3326 echo '#line 3326 "configure"' > conftest.$ac_ext 3327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3328 (eval $ac_compile) 2>&5 3329 ac_status=$? 3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3331 (exit $ac_status); }; then 3332 if test "$lt_cv_prog_gnu_ld" = yes; then 3333 case `/usr/bin/file conftest.$ac_objext` in 3334 *32-bit*) 3335 LD="${LD-ld} -melf32bsmip" 3336 ;; 3337 *N32*) 3338 LD="${LD-ld} -melf32bmipn32" 3339 ;; 3340 *64-bit*) 3341 LD="${LD-ld} -melf64bmip" 3342 ;; 3343 esac 3344 else 3345 case `/usr/bin/file conftest.$ac_objext` in 3346 *32-bit*) 3347 LD="${LD-ld} -32" 3348 ;; 3349 *N32*) 3350 LD="${LD-ld} -n32" 3351 ;; 3352 *64-bit*) 3353 LD="${LD-ld} -64" 3354 ;; 3355 esac 3356 fi 3357 fi 3358 rm -rf conftest* 3359 ;; 3360 3361x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3362 # Find out which ABI we are using. 3363 echo 'int i;' > conftest.$ac_ext 3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3365 (eval $ac_compile) 2>&5 3366 ac_status=$? 3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3368 (exit $ac_status); }; then 3369 case "`/usr/bin/file conftest.o`" in 3370 *32-bit*) 3371 case $host in 3372 x86_64-*linux*) 3373 LD="${LD-ld} -m elf_i386" 3374 ;; 3375 ppc64-*linux*|powerpc64-*linux*) 3376 LD="${LD-ld} -m elf32ppclinux" 3377 ;; 3378 s390x-*linux*) 3379 LD="${LD-ld} -m elf_s390" 3380 ;; 3381 sparc64-*linux*) 3382 LD="${LD-ld} -m elf32_sparc" 3383 ;; 3384 esac 3385 ;; 3386 *64-bit*) 3387 case $host in 3388 x86_64-*linux*) 3389 LD="${LD-ld} -m elf_x86_64" 3390 ;; 3391 ppc*-*linux*|powerpc*-*linux*) 3392 LD="${LD-ld} -m elf64ppc" 3393 ;; 3394 s390*-*linux*) 3395 LD="${LD-ld} -m elf64_s390" 3396 ;; 3397 sparc*-*linux*) 3398 LD="${LD-ld} -m elf64_sparc" 3399 ;; 3400 esac 3401 ;; 3402 esac 3403 fi 3404 rm -rf conftest* 3405 ;; 3406 3407*-*-sco3.2v5*) 3408 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3409 SAVE_CFLAGS="$CFLAGS" 3410 CFLAGS="$CFLAGS -belf" 3411 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3412echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3413if test "${lt_cv_cc_needs_belf+set}" = set; then 3414 echo $ECHO_N "(cached) $ECHO_C" >&6 3415else 3416 ac_ext=c 3417ac_cpp='$CPP $CPPFLAGS' 3418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3420ac_compiler_gnu=$ac_cv_c_compiler_gnu 3421 3422 cat >conftest.$ac_ext <<_ACEOF 3423/* confdefs.h. */ 3424_ACEOF 3425cat confdefs.h >>conftest.$ac_ext 3426cat >>conftest.$ac_ext <<_ACEOF 3427/* end confdefs.h. */ 3428 3429int 3430main () 3431{ 3432 3433 ; 3434 return 0; 3435} 3436_ACEOF 3437rm -f conftest.$ac_objext conftest$ac_exeext 3438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3439 (eval $ac_link) 2>conftest.er1 3440 ac_status=$? 3441 grep -v '^ *+' conftest.er1 >conftest.err 3442 rm -f conftest.er1 3443 cat conftest.err >&5 3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3445 (exit $ac_status); } && 3446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3448 (eval $ac_try) 2>&5 3449 ac_status=$? 3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3451 (exit $ac_status); }; } && 3452 { ac_try='test -s conftest$ac_exeext' 3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3454 (eval $ac_try) 2>&5 3455 ac_status=$? 3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3457 (exit $ac_status); }; }; then 3458 lt_cv_cc_needs_belf=yes 3459else 3460 echo "$as_me: failed program was:" >&5 3461sed 's/^/| /' conftest.$ac_ext >&5 3462 3463lt_cv_cc_needs_belf=no 3464fi 3465rm -f conftest.err conftest.$ac_objext \ 3466 conftest$ac_exeext conftest.$ac_ext 3467 ac_ext=c 3468ac_cpp='$CPP $CPPFLAGS' 3469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3471ac_compiler_gnu=$ac_cv_c_compiler_gnu 3472 3473fi 3474echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3475echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3476 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3477 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3478 CFLAGS="$SAVE_CFLAGS" 3479 fi 3480 ;; 3481 3482esac 3483 3484need_locks="$enable_libtool_lock" 3485 3486 3487ac_ext=c 3488ac_cpp='$CPP $CPPFLAGS' 3489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3491ac_compiler_gnu=$ac_cv_c_compiler_gnu 3492echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3493echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3494# On Suns, sometimes $CPP names a directory. 3495if test -n "$CPP" && test -d "$CPP"; then 3496 CPP= 3497fi 3498if test -z "$CPP"; then 3499 if test "${ac_cv_prog_CPP+set}" = set; then 3500 echo $ECHO_N "(cached) $ECHO_C" >&6 3501else 3502 # Double quotes because CPP needs to be expanded 3503 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3504 do 3505 ac_preproc_ok=false 3506for ac_c_preproc_warn_flag in '' yes 3507do 3508 # Use a header file that comes with gcc, so configuring glibc 3509 # with a fresh cross-compiler works. 3510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3511 # <limits.h> exists even on freestanding compilers. 3512 # On the NeXT, cc -E runs the code through the compiler's parser, 3513 # not just through cpp. "Syntax error" is here to catch this case. 3514 cat >conftest.$ac_ext <<_ACEOF 3515/* confdefs.h. */ 3516_ACEOF 3517cat confdefs.h >>conftest.$ac_ext 3518cat >>conftest.$ac_ext <<_ACEOF 3519/* end confdefs.h. */ 3520#ifdef __STDC__ 3521# include <limits.h> 3522#else 3523# include <assert.h> 3524#endif 3525 Syntax error 3526_ACEOF 3527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3529 ac_status=$? 3530 grep -v '^ *+' conftest.er1 >conftest.err 3531 rm -f conftest.er1 3532 cat conftest.err >&5 3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3534 (exit $ac_status); } >/dev/null; then 3535 if test -s conftest.err; then 3536 ac_cpp_err=$ac_c_preproc_warn_flag 3537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3538 else 3539 ac_cpp_err= 3540 fi 3541else 3542 ac_cpp_err=yes 3543fi 3544if test -z "$ac_cpp_err"; then 3545 : 3546else 3547 echo "$as_me: failed program was:" >&5 3548sed 's/^/| /' conftest.$ac_ext >&5 3549 3550 # Broken: fails on valid input. 3551continue 3552fi 3553rm -f conftest.err conftest.$ac_ext 3554 3555 # OK, works on sane cases. Now check whether non-existent headers 3556 # can be detected and how. 3557 cat >conftest.$ac_ext <<_ACEOF 3558/* confdefs.h. */ 3559_ACEOF 3560cat confdefs.h >>conftest.$ac_ext 3561cat >>conftest.$ac_ext <<_ACEOF 3562/* end confdefs.h. */ 3563#include <ac_nonexistent.h> 3564_ACEOF 3565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3567 ac_status=$? 3568 grep -v '^ *+' conftest.er1 >conftest.err 3569 rm -f conftest.er1 3570 cat conftest.err >&5 3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3572 (exit $ac_status); } >/dev/null; then 3573 if test -s conftest.err; then 3574 ac_cpp_err=$ac_c_preproc_warn_flag 3575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3576 else 3577 ac_cpp_err= 3578 fi 3579else 3580 ac_cpp_err=yes 3581fi 3582if test -z "$ac_cpp_err"; then 3583 # Broken: success on invalid input. 3584continue 3585else 3586 echo "$as_me: failed program was:" >&5 3587sed 's/^/| /' conftest.$ac_ext >&5 3588 3589 # Passes both tests. 3590ac_preproc_ok=: 3591break 3592fi 3593rm -f conftest.err conftest.$ac_ext 3594 3595done 3596# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3597rm -f conftest.err conftest.$ac_ext 3598if $ac_preproc_ok; then 3599 break 3600fi 3601 3602 done 3603 ac_cv_prog_CPP=$CPP 3604 3605fi 3606 CPP=$ac_cv_prog_CPP 3607else 3608 ac_cv_prog_CPP=$CPP 3609fi 3610echo "$as_me:$LINENO: result: $CPP" >&5 3611echo "${ECHO_T}$CPP" >&6 3612ac_preproc_ok=false 3613for ac_c_preproc_warn_flag in '' yes 3614do 3615 # Use a header file that comes with gcc, so configuring glibc 3616 # with a fresh cross-compiler works. 3617 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3618 # <limits.h> exists even on freestanding compilers. 3619 # On the NeXT, cc -E runs the code through the compiler's parser, 3620 # not just through cpp. "Syntax error" is here to catch this case. 3621 cat >conftest.$ac_ext <<_ACEOF 3622/* confdefs.h. */ 3623_ACEOF 3624cat confdefs.h >>conftest.$ac_ext 3625cat >>conftest.$ac_ext <<_ACEOF 3626/* end confdefs.h. */ 3627#ifdef __STDC__ 3628# include <limits.h> 3629#else 3630# include <assert.h> 3631#endif 3632 Syntax error 3633_ACEOF 3634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3636 ac_status=$? 3637 grep -v '^ *+' conftest.er1 >conftest.err 3638 rm -f conftest.er1 3639 cat conftest.err >&5 3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3641 (exit $ac_status); } >/dev/null; then 3642 if test -s conftest.err; then 3643 ac_cpp_err=$ac_c_preproc_warn_flag 3644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3645 else 3646 ac_cpp_err= 3647 fi 3648else 3649 ac_cpp_err=yes 3650fi 3651if test -z "$ac_cpp_err"; then 3652 : 3653else 3654 echo "$as_me: failed program was:" >&5 3655sed 's/^/| /' conftest.$ac_ext >&5 3656 3657 # Broken: fails on valid input. 3658continue 3659fi 3660rm -f conftest.err conftest.$ac_ext 3661 3662 # OK, works on sane cases. Now check whether non-existent headers 3663 # can be detected and how. 3664 cat >conftest.$ac_ext <<_ACEOF 3665/* confdefs.h. */ 3666_ACEOF 3667cat confdefs.h >>conftest.$ac_ext 3668cat >>conftest.$ac_ext <<_ACEOF 3669/* end confdefs.h. */ 3670#include <ac_nonexistent.h> 3671_ACEOF 3672if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3674 ac_status=$? 3675 grep -v '^ *+' conftest.er1 >conftest.err 3676 rm -f conftest.er1 3677 cat conftest.err >&5 3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3679 (exit $ac_status); } >/dev/null; then 3680 if test -s conftest.err; then 3681 ac_cpp_err=$ac_c_preproc_warn_flag 3682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3683 else 3684 ac_cpp_err= 3685 fi 3686else 3687 ac_cpp_err=yes 3688fi 3689if test -z "$ac_cpp_err"; then 3690 # Broken: success on invalid input. 3691continue 3692else 3693 echo "$as_me: failed program was:" >&5 3694sed 's/^/| /' conftest.$ac_ext >&5 3695 3696 # Passes both tests. 3697ac_preproc_ok=: 3698break 3699fi 3700rm -f conftest.err conftest.$ac_ext 3701 3702done 3703# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3704rm -f conftest.err conftest.$ac_ext 3705if $ac_preproc_ok; then 3706 : 3707else 3708 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3709See \`config.log' for more details." >&5 3710echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3711See \`config.log' for more details." >&2;} 3712 { (exit 1); exit 1; }; } 3713fi 3714 3715ac_ext=c 3716ac_cpp='$CPP $CPPFLAGS' 3717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3719ac_compiler_gnu=$ac_cv_c_compiler_gnu 3720 3721 3722echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3723echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3724if test "${ac_cv_header_stdc+set}" = set; then 3725 echo $ECHO_N "(cached) $ECHO_C" >&6 3726else 3727 cat >conftest.$ac_ext <<_ACEOF 3728/* confdefs.h. */ 3729_ACEOF 3730cat confdefs.h >>conftest.$ac_ext 3731cat >>conftest.$ac_ext <<_ACEOF 3732/* end confdefs.h. */ 3733#include <stdlib.h> 3734#include <stdarg.h> 3735#include <string.h> 3736#include <float.h> 3737 3738int 3739main () 3740{ 3741 3742 ; 3743 return 0; 3744} 3745_ACEOF 3746rm -f conftest.$ac_objext 3747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3748 (eval $ac_compile) 2>conftest.er1 3749 ac_status=$? 3750 grep -v '^ *+' conftest.er1 >conftest.err 3751 rm -f conftest.er1 3752 cat conftest.err >&5 3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3754 (exit $ac_status); } && 3755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3757 (eval $ac_try) 2>&5 3758 ac_status=$? 3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3760 (exit $ac_status); }; } && 3761 { ac_try='test -s conftest.$ac_objext' 3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3763 (eval $ac_try) 2>&5 3764 ac_status=$? 3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3766 (exit $ac_status); }; }; then 3767 ac_cv_header_stdc=yes 3768else 3769 echo "$as_me: failed program was:" >&5 3770sed 's/^/| /' conftest.$ac_ext >&5 3771 3772ac_cv_header_stdc=no 3773fi 3774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3775 3776if test $ac_cv_header_stdc = yes; then 3777 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3778 cat >conftest.$ac_ext <<_ACEOF 3779/* confdefs.h. */ 3780_ACEOF 3781cat confdefs.h >>conftest.$ac_ext 3782cat >>conftest.$ac_ext <<_ACEOF 3783/* end confdefs.h. */ 3784#include <string.h> 3785 3786_ACEOF 3787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3788 $EGREP "memchr" >/dev/null 2>&1; then 3789 : 3790else 3791 ac_cv_header_stdc=no 3792fi 3793rm -f conftest* 3794 3795fi 3796 3797if test $ac_cv_header_stdc = yes; then 3798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3799 cat >conftest.$ac_ext <<_ACEOF 3800/* confdefs.h. */ 3801_ACEOF 3802cat confdefs.h >>conftest.$ac_ext 3803cat >>conftest.$ac_ext <<_ACEOF 3804/* end confdefs.h. */ 3805#include <stdlib.h> 3806 3807_ACEOF 3808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3809 $EGREP "free" >/dev/null 2>&1; then 3810 : 3811else 3812 ac_cv_header_stdc=no 3813fi 3814rm -f conftest* 3815 3816fi 3817 3818if test $ac_cv_header_stdc = yes; then 3819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3820 if test "$cross_compiling" = yes; then 3821 : 3822else 3823 cat >conftest.$ac_ext <<_ACEOF 3824/* confdefs.h. */ 3825_ACEOF 3826cat confdefs.h >>conftest.$ac_ext 3827cat >>conftest.$ac_ext <<_ACEOF 3828/* end confdefs.h. */ 3829#include <ctype.h> 3830#if ((' ' & 0x0FF) == 0x020) 3831# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3832# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3833#else 3834# define ISLOWER(c) \ 3835 (('a' <= (c) && (c) <= 'i') \ 3836 || ('j' <= (c) && (c) <= 'r') \ 3837 || ('s' <= (c) && (c) <= 'z')) 3838# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3839#endif 3840 3841#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3842int 3843main () 3844{ 3845 int i; 3846 for (i = 0; i < 256; i++) 3847 if (XOR (islower (i), ISLOWER (i)) 3848 || toupper (i) != TOUPPER (i)) 3849 exit(2); 3850 exit (0); 3851} 3852_ACEOF 3853rm -f conftest$ac_exeext 3854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3855 (eval $ac_link) 2>&5 3856 ac_status=$? 3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3860 (eval $ac_try) 2>&5 3861 ac_status=$? 3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3863 (exit $ac_status); }; }; then 3864 : 3865else 3866 echo "$as_me: program exited with status $ac_status" >&5 3867echo "$as_me: failed program was:" >&5 3868sed 's/^/| /' conftest.$ac_ext >&5 3869 3870( exit $ac_status ) 3871ac_cv_header_stdc=no 3872fi 3873rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3874fi 3875fi 3876fi 3877echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3878echo "${ECHO_T}$ac_cv_header_stdc" >&6 3879if test $ac_cv_header_stdc = yes; then 3880 3881cat >>confdefs.h <<\_ACEOF 3882#define STDC_HEADERS 1 3883_ACEOF 3884 3885fi 3886 3887# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3898 inttypes.h stdint.h unistd.h 3899do 3900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3901echo "$as_me:$LINENO: checking for $ac_header" >&5 3902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3903if eval "test \"\${$as_ac_Header+set}\" = set"; then 3904 echo $ECHO_N "(cached) $ECHO_C" >&6 3905else 3906 cat >conftest.$ac_ext <<_ACEOF 3907/* confdefs.h. */ 3908_ACEOF 3909cat confdefs.h >>conftest.$ac_ext 3910cat >>conftest.$ac_ext <<_ACEOF 3911/* end confdefs.h. */ 3912$ac_includes_default 3913 3914#include <$ac_header> 3915_ACEOF 3916rm -f conftest.$ac_objext 3917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3918 (eval $ac_compile) 2>conftest.er1 3919 ac_status=$? 3920 grep -v '^ *+' conftest.er1 >conftest.err 3921 rm -f conftest.er1 3922 cat conftest.err >&5 3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3924 (exit $ac_status); } && 3925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3927 (eval $ac_try) 2>&5 3928 ac_status=$? 3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3930 (exit $ac_status); }; } && 3931 { ac_try='test -s conftest.$ac_objext' 3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3933 (eval $ac_try) 2>&5 3934 ac_status=$? 3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3936 (exit $ac_status); }; }; then 3937 eval "$as_ac_Header=yes" 3938else 3939 echo "$as_me: failed program was:" >&5 3940sed 's/^/| /' conftest.$ac_ext >&5 3941 3942eval "$as_ac_Header=no" 3943fi 3944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3945fi 3946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3948if test `eval echo '${'$as_ac_Header'}'` = yes; then 3949 cat >>confdefs.h <<_ACEOF 3950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3951_ACEOF 3952 3953fi 3954 3955done 3956 3957 3958 3959for ac_header in dlfcn.h 3960do 3961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3962if eval "test \"\${$as_ac_Header+set}\" = set"; then 3963 echo "$as_me:$LINENO: checking for $ac_header" >&5 3964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3965if eval "test \"\${$as_ac_Header+set}\" = set"; then 3966 echo $ECHO_N "(cached) $ECHO_C" >&6 3967fi 3968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3970else 3971 # Is the header compilable? 3972echo "$as_me:$LINENO: checking $ac_header usability" >&5 3973echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3974cat >conftest.$ac_ext <<_ACEOF 3975/* confdefs.h. */ 3976_ACEOF 3977cat confdefs.h >>conftest.$ac_ext 3978cat >>conftest.$ac_ext <<_ACEOF 3979/* end confdefs.h. */ 3980$ac_includes_default 3981#include <$ac_header> 3982_ACEOF 3983rm -f conftest.$ac_objext 3984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3985 (eval $ac_compile) 2>conftest.er1 3986 ac_status=$? 3987 grep -v '^ *+' conftest.er1 >conftest.err 3988 rm -f conftest.er1 3989 cat conftest.err >&5 3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3991 (exit $ac_status); } && 3992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3994 (eval $ac_try) 2>&5 3995 ac_status=$? 3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3997 (exit $ac_status); }; } && 3998 { ac_try='test -s conftest.$ac_objext' 3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4000 (eval $ac_try) 2>&5 4001 ac_status=$? 4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4003 (exit $ac_status); }; }; then 4004 ac_header_compiler=yes 4005else 4006 echo "$as_me: failed program was:" >&5 4007sed 's/^/| /' conftest.$ac_ext >&5 4008 4009ac_header_compiler=no 4010fi 4011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4012echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4013echo "${ECHO_T}$ac_header_compiler" >&6 4014 4015# Is the header present? 4016echo "$as_me:$LINENO: checking $ac_header presence" >&5 4017echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4018cat >conftest.$ac_ext <<_ACEOF 4019/* confdefs.h. */ 4020_ACEOF 4021cat confdefs.h >>conftest.$ac_ext 4022cat >>conftest.$ac_ext <<_ACEOF 4023/* end confdefs.h. */ 4024#include <$ac_header> 4025_ACEOF 4026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4028 ac_status=$? 4029 grep -v '^ *+' conftest.er1 >conftest.err 4030 rm -f conftest.er1 4031 cat conftest.err >&5 4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4033 (exit $ac_status); } >/dev/null; then 4034 if test -s conftest.err; then 4035 ac_cpp_err=$ac_c_preproc_warn_flag 4036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4037 else 4038 ac_cpp_err= 4039 fi 4040else 4041 ac_cpp_err=yes 4042fi 4043if test -z "$ac_cpp_err"; then 4044 ac_header_preproc=yes 4045else 4046 echo "$as_me: failed program was:" >&5 4047sed 's/^/| /' conftest.$ac_ext >&5 4048 4049 ac_header_preproc=no 4050fi 4051rm -f conftest.err conftest.$ac_ext 4052echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4053echo "${ECHO_T}$ac_header_preproc" >&6 4054 4055# So? What about this header? 4056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4057 yes:no: ) 4058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4059echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4061echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4062 ac_header_preproc=yes 4063 ;; 4064 no:yes:* ) 4065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4066echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4068echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4070echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4072echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4074echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4076echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4077 ( 4078 cat <<\_ASBOX 4079## ------------------------------------------ ## 4080## Report this to the AC_PACKAGE_NAME lists. ## 4081## ------------------------------------------ ## 4082_ASBOX 4083 ) | 4084 sed "s/^/$as_me: WARNING: /" >&2 4085 ;; 4086esac 4087echo "$as_me:$LINENO: checking for $ac_header" >&5 4088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4089if eval "test \"\${$as_ac_Header+set}\" = set"; then 4090 echo $ECHO_N "(cached) $ECHO_C" >&6 4091else 4092 eval "$as_ac_Header=\$ac_header_preproc" 4093fi 4094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4096 4097fi 4098if test `eval echo '${'$as_ac_Header'}'` = yes; then 4099 cat >>confdefs.h <<_ACEOF 4100#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4101_ACEOF 4102 4103fi 4104 4105done 4106 4107ac_ext=cc 4108ac_cpp='$CXXCPP $CPPFLAGS' 4109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4112if test -n "$ac_tool_prefix"; then 4113 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4114 do 4115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4116set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4117echo "$as_me:$LINENO: checking for $ac_word" >&5 4118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4119if test "${ac_cv_prog_CXX+set}" = set; then 4120 echo $ECHO_N "(cached) $ECHO_C" >&6 4121else 4122 if test -n "$CXX"; then 4123 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4124else 4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4126for as_dir in $PATH 4127do 4128 IFS=$as_save_IFS 4129 test -z "$as_dir" && as_dir=. 4130 for ac_exec_ext in '' $ac_executable_extensions; do 4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4132 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4134 break 2 4135 fi 4136done 4137done 4138 4139fi 4140fi 4141CXX=$ac_cv_prog_CXX 4142if test -n "$CXX"; then 4143 echo "$as_me:$LINENO: result: $CXX" >&5 4144echo "${ECHO_T}$CXX" >&6 4145else 4146 echo "$as_me:$LINENO: result: no" >&5 4147echo "${ECHO_T}no" >&6 4148fi 4149 4150 test -n "$CXX" && break 4151 done 4152fi 4153if test -z "$CXX"; then 4154 ac_ct_CXX=$CXX 4155 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4156do 4157 # Extract the first word of "$ac_prog", so it can be a program name with args. 4158set dummy $ac_prog; ac_word=$2 4159echo "$as_me:$LINENO: checking for $ac_word" >&5 4160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4161if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4162 echo $ECHO_N "(cached) $ECHO_C" >&6 4163else 4164 if test -n "$ac_ct_CXX"; then 4165 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4166else 4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4168for as_dir in $PATH 4169do 4170 IFS=$as_save_IFS 4171 test -z "$as_dir" && as_dir=. 4172 for ac_exec_ext in '' $ac_executable_extensions; do 4173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4174 ac_cv_prog_ac_ct_CXX="$ac_prog" 4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4176 break 2 4177 fi 4178done 4179done 4180 4181fi 4182fi 4183ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4184if test -n "$ac_ct_CXX"; then 4185 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4186echo "${ECHO_T}$ac_ct_CXX" >&6 4187else 4188 echo "$as_me:$LINENO: result: no" >&5 4189echo "${ECHO_T}no" >&6 4190fi 4191 4192 test -n "$ac_ct_CXX" && break 4193done 4194test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4195 4196 CXX=$ac_ct_CXX 4197fi 4198 4199 4200# Provide some information about the compiler. 4201echo "$as_me:$LINENO:" \ 4202 "checking for C++ compiler version" >&5 4203ac_compiler=`set X $ac_compile; echo $2` 4204{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4205 (eval $ac_compiler --version </dev/null >&5) 2>&5 4206 ac_status=$? 4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4208 (exit $ac_status); } 4209{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4210 (eval $ac_compiler -v </dev/null >&5) 2>&5 4211 ac_status=$? 4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4213 (exit $ac_status); } 4214{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4215 (eval $ac_compiler -V </dev/null >&5) 2>&5 4216 ac_status=$? 4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4218 (exit $ac_status); } 4219 4220echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4221echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4222if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4223 echo $ECHO_N "(cached) $ECHO_C" >&6 4224else 4225 cat >conftest.$ac_ext <<_ACEOF 4226/* confdefs.h. */ 4227_ACEOF 4228cat confdefs.h >>conftest.$ac_ext 4229cat >>conftest.$ac_ext <<_ACEOF 4230/* end confdefs.h. */ 4231 4232int 4233main () 4234{ 4235#ifndef __GNUC__ 4236 choke me 4237#endif 4238 4239 ; 4240 return 0; 4241} 4242_ACEOF 4243rm -f conftest.$ac_objext 4244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4245 (eval $ac_compile) 2>conftest.er1 4246 ac_status=$? 4247 grep -v '^ *+' conftest.er1 >conftest.err 4248 rm -f conftest.er1 4249 cat conftest.err >&5 4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4251 (exit $ac_status); } && 4252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4254 (eval $ac_try) 2>&5 4255 ac_status=$? 4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4257 (exit $ac_status); }; } && 4258 { ac_try='test -s conftest.$ac_objext' 4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4260 (eval $ac_try) 2>&5 4261 ac_status=$? 4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4263 (exit $ac_status); }; }; then 4264 ac_compiler_gnu=yes 4265else 4266 echo "$as_me: failed program was:" >&5 4267sed 's/^/| /' conftest.$ac_ext >&5 4268 4269ac_compiler_gnu=no 4270fi 4271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4272ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4273 4274fi 4275echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4276echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4277GXX=`test $ac_compiler_gnu = yes && echo yes` 4278ac_test_CXXFLAGS=${CXXFLAGS+set} 4279ac_save_CXXFLAGS=$CXXFLAGS 4280CXXFLAGS="-g" 4281echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4282echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4283if test "${ac_cv_prog_cxx_g+set}" = set; then 4284 echo $ECHO_N "(cached) $ECHO_C" >&6 4285else 4286 cat >conftest.$ac_ext <<_ACEOF 4287/* confdefs.h. */ 4288_ACEOF 4289cat confdefs.h >>conftest.$ac_ext 4290cat >>conftest.$ac_ext <<_ACEOF 4291/* end confdefs.h. */ 4292 4293int 4294main () 4295{ 4296 4297 ; 4298 return 0; 4299} 4300_ACEOF 4301rm -f conftest.$ac_objext 4302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4303 (eval $ac_compile) 2>conftest.er1 4304 ac_status=$? 4305 grep -v '^ *+' conftest.er1 >conftest.err 4306 rm -f conftest.er1 4307 cat conftest.err >&5 4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4309 (exit $ac_status); } && 4310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4312 (eval $ac_try) 2>&5 4313 ac_status=$? 4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4315 (exit $ac_status); }; } && 4316 { ac_try='test -s conftest.$ac_objext' 4317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4318 (eval $ac_try) 2>&5 4319 ac_status=$? 4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4321 (exit $ac_status); }; }; then 4322 ac_cv_prog_cxx_g=yes 4323else 4324 echo "$as_me: failed program was:" >&5 4325sed 's/^/| /' conftest.$ac_ext >&5 4326 4327ac_cv_prog_cxx_g=no 4328fi 4329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4330fi 4331echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4332echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4333if test "$ac_test_CXXFLAGS" = set; then 4334 CXXFLAGS=$ac_save_CXXFLAGS 4335elif test $ac_cv_prog_cxx_g = yes; then 4336 if test "$GXX" = yes; then 4337 CXXFLAGS="-g -O2" 4338 else 4339 CXXFLAGS="-g" 4340 fi 4341else 4342 if test "$GXX" = yes; then 4343 CXXFLAGS="-O2" 4344 else 4345 CXXFLAGS= 4346 fi 4347fi 4348for ac_declaration in \ 4349 '' \ 4350 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4351 'extern "C" void std::exit (int); using std::exit;' \ 4352 'extern "C" void exit (int) throw ();' \ 4353 'extern "C" void exit (int);' \ 4354 'void exit (int);' 4355do 4356 cat >conftest.$ac_ext <<_ACEOF 4357/* confdefs.h. */ 4358_ACEOF 4359cat confdefs.h >>conftest.$ac_ext 4360cat >>conftest.$ac_ext <<_ACEOF 4361/* end confdefs.h. */ 4362$ac_declaration 4363#include <stdlib.h> 4364int 4365main () 4366{ 4367exit (42); 4368 ; 4369 return 0; 4370} 4371_ACEOF 4372rm -f conftest.$ac_objext 4373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4374 (eval $ac_compile) 2>conftest.er1 4375 ac_status=$? 4376 grep -v '^ *+' conftest.er1 >conftest.err 4377 rm -f conftest.er1 4378 cat conftest.err >&5 4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4380 (exit $ac_status); } && 4381 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4383 (eval $ac_try) 2>&5 4384 ac_status=$? 4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4386 (exit $ac_status); }; } && 4387 { ac_try='test -s conftest.$ac_objext' 4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4389 (eval $ac_try) 2>&5 4390 ac_status=$? 4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4392 (exit $ac_status); }; }; then 4393 : 4394else 4395 echo "$as_me: failed program was:" >&5 4396sed 's/^/| /' conftest.$ac_ext >&5 4397 4398continue 4399fi 4400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4401 cat >conftest.$ac_ext <<_ACEOF 4402/* confdefs.h. */ 4403_ACEOF 4404cat confdefs.h >>conftest.$ac_ext 4405cat >>conftest.$ac_ext <<_ACEOF 4406/* end confdefs.h. */ 4407$ac_declaration 4408int 4409main () 4410{ 4411exit (42); 4412 ; 4413 return 0; 4414} 4415_ACEOF 4416rm -f conftest.$ac_objext 4417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4418 (eval $ac_compile) 2>conftest.er1 4419 ac_status=$? 4420 grep -v '^ *+' conftest.er1 >conftest.err 4421 rm -f conftest.er1 4422 cat conftest.err >&5 4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4424 (exit $ac_status); } && 4425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4427 (eval $ac_try) 2>&5 4428 ac_status=$? 4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4430 (exit $ac_status); }; } && 4431 { ac_try='test -s conftest.$ac_objext' 4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4433 (eval $ac_try) 2>&5 4434 ac_status=$? 4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4436 (exit $ac_status); }; }; then 4437 break 4438else 4439 echo "$as_me: failed program was:" >&5 4440sed 's/^/| /' conftest.$ac_ext >&5 4441 4442fi 4443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4444done 4445rm -f conftest* 4446if test -n "$ac_declaration"; then 4447 echo '#ifdef __cplusplus' >>confdefs.h 4448 echo $ac_declaration >>confdefs.h 4449 echo '#endif' >>confdefs.h 4450fi 4451 4452ac_ext=cc 4453ac_cpp='$CXXCPP $CPPFLAGS' 4454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4457 4458ac_ext=cc 4459ac_cpp='$CXXCPP $CPPFLAGS' 4460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4463echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4464echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4465if test -z "$CXXCPP"; then 4466 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4467 echo $ECHO_N "(cached) $ECHO_C" >&6 4468else 4469 # Double quotes because CXXCPP needs to be expanded 4470 for CXXCPP in "$CXX -E" "/lib/cpp" 4471 do 4472 ac_preproc_ok=false 4473for ac_cxx_preproc_warn_flag in '' yes 4474do 4475 # Use a header file that comes with gcc, so configuring glibc 4476 # with a fresh cross-compiler works. 4477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4478 # <limits.h> exists even on freestanding compilers. 4479 # On the NeXT, cc -E runs the code through the compiler's parser, 4480 # not just through cpp. "Syntax error" is here to catch this case. 4481 cat >conftest.$ac_ext <<_ACEOF 4482/* confdefs.h. */ 4483_ACEOF 4484cat confdefs.h >>conftest.$ac_ext 4485cat >>conftest.$ac_ext <<_ACEOF 4486/* end confdefs.h. */ 4487#ifdef __STDC__ 4488# include <limits.h> 4489#else 4490# include <assert.h> 4491#endif 4492 Syntax error 4493_ACEOF 4494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4496 ac_status=$? 4497 grep -v '^ *+' conftest.er1 >conftest.err 4498 rm -f conftest.er1 4499 cat conftest.err >&5 4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4501 (exit $ac_status); } >/dev/null; then 4502 if test -s conftest.err; then 4503 ac_cpp_err=$ac_cxx_preproc_warn_flag 4504 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4505 else 4506 ac_cpp_err= 4507 fi 4508else 4509 ac_cpp_err=yes 4510fi 4511if test -z "$ac_cpp_err"; then 4512 : 4513else 4514 echo "$as_me: failed program was:" >&5 4515sed 's/^/| /' conftest.$ac_ext >&5 4516 4517 # Broken: fails on valid input. 4518continue 4519fi 4520rm -f conftest.err conftest.$ac_ext 4521 4522 # OK, works on sane cases. Now check whether non-existent headers 4523 # can be detected and how. 4524 cat >conftest.$ac_ext <<_ACEOF 4525/* confdefs.h. */ 4526_ACEOF 4527cat confdefs.h >>conftest.$ac_ext 4528cat >>conftest.$ac_ext <<_ACEOF 4529/* end confdefs.h. */ 4530#include <ac_nonexistent.h> 4531_ACEOF 4532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4534 ac_status=$? 4535 grep -v '^ *+' conftest.er1 >conftest.err 4536 rm -f conftest.er1 4537 cat conftest.err >&5 4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4539 (exit $ac_status); } >/dev/null; then 4540 if test -s conftest.err; then 4541 ac_cpp_err=$ac_cxx_preproc_warn_flag 4542 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4543 else 4544 ac_cpp_err= 4545 fi 4546else 4547 ac_cpp_err=yes 4548fi 4549if test -z "$ac_cpp_err"; then 4550 # Broken: success on invalid input. 4551continue 4552else 4553 echo "$as_me: failed program was:" >&5 4554sed 's/^/| /' conftest.$ac_ext >&5 4555 4556 # Passes both tests. 4557ac_preproc_ok=: 4558break 4559fi 4560rm -f conftest.err conftest.$ac_ext 4561 4562done 4563# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4564rm -f conftest.err conftest.$ac_ext 4565if $ac_preproc_ok; then 4566 break 4567fi 4568 4569 done 4570 ac_cv_prog_CXXCPP=$CXXCPP 4571 4572fi 4573 CXXCPP=$ac_cv_prog_CXXCPP 4574else 4575 ac_cv_prog_CXXCPP=$CXXCPP 4576fi 4577echo "$as_me:$LINENO: result: $CXXCPP" >&5 4578echo "${ECHO_T}$CXXCPP" >&6 4579ac_preproc_ok=false 4580for ac_cxx_preproc_warn_flag in '' yes 4581do 4582 # Use a header file that comes with gcc, so configuring glibc 4583 # with a fresh cross-compiler works. 4584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4585 # <limits.h> exists even on freestanding compilers. 4586 # On the NeXT, cc -E runs the code through the compiler's parser, 4587 # not just through cpp. "Syntax error" is here to catch this case. 4588 cat >conftest.$ac_ext <<_ACEOF 4589/* confdefs.h. */ 4590_ACEOF 4591cat confdefs.h >>conftest.$ac_ext 4592cat >>conftest.$ac_ext <<_ACEOF 4593/* end confdefs.h. */ 4594#ifdef __STDC__ 4595# include <limits.h> 4596#else 4597# include <assert.h> 4598#endif 4599 Syntax error 4600_ACEOF 4601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4603 ac_status=$? 4604 grep -v '^ *+' conftest.er1 >conftest.err 4605 rm -f conftest.er1 4606 cat conftest.err >&5 4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4608 (exit $ac_status); } >/dev/null; then 4609 if test -s conftest.err; then 4610 ac_cpp_err=$ac_cxx_preproc_warn_flag 4611 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4612 else 4613 ac_cpp_err= 4614 fi 4615else 4616 ac_cpp_err=yes 4617fi 4618if test -z "$ac_cpp_err"; then 4619 : 4620else 4621 echo "$as_me: failed program was:" >&5 4622sed 's/^/| /' conftest.$ac_ext >&5 4623 4624 # Broken: fails on valid input. 4625continue 4626fi 4627rm -f conftest.err conftest.$ac_ext 4628 4629 # OK, works on sane cases. Now check whether non-existent headers 4630 # can be detected and how. 4631 cat >conftest.$ac_ext <<_ACEOF 4632/* confdefs.h. */ 4633_ACEOF 4634cat confdefs.h >>conftest.$ac_ext 4635cat >>conftest.$ac_ext <<_ACEOF 4636/* end confdefs.h. */ 4637#include <ac_nonexistent.h> 4638_ACEOF 4639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4641 ac_status=$? 4642 grep -v '^ *+' conftest.er1 >conftest.err 4643 rm -f conftest.er1 4644 cat conftest.err >&5 4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4646 (exit $ac_status); } >/dev/null; then 4647 if test -s conftest.err; then 4648 ac_cpp_err=$ac_cxx_preproc_warn_flag 4649 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4650 else 4651 ac_cpp_err= 4652 fi 4653else 4654 ac_cpp_err=yes 4655fi 4656if test -z "$ac_cpp_err"; then 4657 # Broken: success on invalid input. 4658continue 4659else 4660 echo "$as_me: failed program was:" >&5 4661sed 's/^/| /' conftest.$ac_ext >&5 4662 4663 # Passes both tests. 4664ac_preproc_ok=: 4665break 4666fi 4667rm -f conftest.err conftest.$ac_ext 4668 4669done 4670# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4671rm -f conftest.err conftest.$ac_ext 4672if $ac_preproc_ok; then 4673 : 4674else 4675 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4676See \`config.log' for more details." >&5 4677echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4678See \`config.log' for more details." >&2;} 4679 { (exit 1); exit 1; }; } 4680fi 4681 4682ac_ext=cc 4683ac_cpp='$CXXCPP $CPPFLAGS' 4684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4687 4688 4689ac_ext=f 4690ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4691ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4692ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4693if test -n "$ac_tool_prefix"; then 4694 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 4695 do 4696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4697set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4698echo "$as_me:$LINENO: checking for $ac_word" >&5 4699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4700if test "${ac_cv_prog_F77+set}" = set; then 4701 echo $ECHO_N "(cached) $ECHO_C" >&6 4702else 4703 if test -n "$F77"; then 4704 ac_cv_prog_F77="$F77" # Let the user override the test. 4705else 4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4707for as_dir in $PATH 4708do 4709 IFS=$as_save_IFS 4710 test -z "$as_dir" && as_dir=. 4711 for ac_exec_ext in '' $ac_executable_extensions; do 4712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4713 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4715 break 2 4716 fi 4717done 4718done 4719 4720fi 4721fi 4722F77=$ac_cv_prog_F77 4723if test -n "$F77"; then 4724 echo "$as_me:$LINENO: result: $F77" >&5 4725echo "${ECHO_T}$F77" >&6 4726else 4727 echo "$as_me:$LINENO: result: no" >&5 4728echo "${ECHO_T}no" >&6 4729fi 4730 4731 test -n "$F77" && break 4732 done 4733fi 4734if test -z "$F77"; then 4735 ac_ct_F77=$F77 4736 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 4737do 4738 # Extract the first word of "$ac_prog", so it can be a program name with args. 4739set dummy $ac_prog; ac_word=$2 4740echo "$as_me:$LINENO: checking for $ac_word" >&5 4741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4742if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4743 echo $ECHO_N "(cached) $ECHO_C" >&6 4744else 4745 if test -n "$ac_ct_F77"; then 4746 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4747else 4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4749for as_dir in $PATH 4750do 4751 IFS=$as_save_IFS 4752 test -z "$as_dir" && as_dir=. 4753 for ac_exec_ext in '' $ac_executable_extensions; do 4754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4755 ac_cv_prog_ac_ct_F77="$ac_prog" 4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4757 break 2 4758 fi 4759done 4760done 4761 4762fi 4763fi 4764ac_ct_F77=$ac_cv_prog_ac_ct_F77 4765if test -n "$ac_ct_F77"; then 4766 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4767echo "${ECHO_T}$ac_ct_F77" >&6 4768else 4769 echo "$as_me:$LINENO: result: no" >&5 4770echo "${ECHO_T}no" >&6 4771fi 4772 4773 test -n "$ac_ct_F77" && break 4774done 4775 4776 F77=$ac_ct_F77 4777fi 4778 4779 4780# Provide some information about the compiler. 4781echo "$as_me:4781:" \ 4782 "checking for Fortran 77 compiler version" >&5 4783ac_compiler=`set X $ac_compile; echo $2` 4784{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4785 (eval $ac_compiler --version </dev/null >&5) 2>&5 4786 ac_status=$? 4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4788 (exit $ac_status); } 4789{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4790 (eval $ac_compiler -v </dev/null >&5) 2>&5 4791 ac_status=$? 4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4793 (exit $ac_status); } 4794{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4795 (eval $ac_compiler -V </dev/null >&5) 2>&5 4796 ac_status=$? 4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4798 (exit $ac_status); } 4799rm -f a.out 4800 4801# If we don't use `.F' as extension, the preprocessor is not run on the 4802# input file. (Note that this only needs to work for GNU compilers.) 4803ac_save_ext=$ac_ext 4804ac_ext=F 4805echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4806echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4807if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4808 echo $ECHO_N "(cached) $ECHO_C" >&6 4809else 4810 cat >conftest.$ac_ext <<_ACEOF 4811 program main 4812#ifndef __GNUC__ 4813 choke me 4814#endif 4815 4816 end 4817_ACEOF 4818rm -f conftest.$ac_objext 4819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4820 (eval $ac_compile) 2>conftest.er1 4821 ac_status=$? 4822 grep -v '^ *+' conftest.er1 >conftest.err 4823 rm -f conftest.er1 4824 cat conftest.err >&5 4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4826 (exit $ac_status); } && 4827 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4829 (eval $ac_try) 2>&5 4830 ac_status=$? 4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4832 (exit $ac_status); }; } && 4833 { ac_try='test -s conftest.$ac_objext' 4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4835 (eval $ac_try) 2>&5 4836 ac_status=$? 4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4838 (exit $ac_status); }; }; then 4839 ac_compiler_gnu=yes 4840else 4841 echo "$as_me: failed program was:" >&5 4842sed 's/^/| /' conftest.$ac_ext >&5 4843 4844ac_compiler_gnu=no 4845fi 4846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4847ac_cv_f77_compiler_gnu=$ac_compiler_gnu 4848 4849fi 4850echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 4851echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 4852ac_ext=$ac_save_ext 4853ac_test_FFLAGS=${FFLAGS+set} 4854ac_save_FFLAGS=$FFLAGS 4855FFLAGS= 4856echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 4857echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 4858if test "${ac_cv_prog_f77_g+set}" = set; then 4859 echo $ECHO_N "(cached) $ECHO_C" >&6 4860else 4861 FFLAGS=-g 4862cat >conftest.$ac_ext <<_ACEOF 4863 program main 4864 4865 end 4866_ACEOF 4867rm -f conftest.$ac_objext 4868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4869 (eval $ac_compile) 2>conftest.er1 4870 ac_status=$? 4871 grep -v '^ *+' conftest.er1 >conftest.err 4872 rm -f conftest.er1 4873 cat conftest.err >&5 4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4875 (exit $ac_status); } && 4876 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 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); }; } && 4882 { ac_try='test -s conftest.$ac_objext' 4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4884 (eval $ac_try) 2>&5 4885 ac_status=$? 4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4887 (exit $ac_status); }; }; then 4888 ac_cv_prog_f77_g=yes 4889else 4890 echo "$as_me: failed program was:" >&5 4891sed 's/^/| /' conftest.$ac_ext >&5 4892 4893ac_cv_prog_f77_g=no 4894fi 4895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4896 4897fi 4898echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 4899echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 4900if test "$ac_test_FFLAGS" = set; then 4901 FFLAGS=$ac_save_FFLAGS 4902elif test $ac_cv_prog_f77_g = yes; then 4903 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4904 FFLAGS="-g -O2" 4905 else 4906 FFLAGS="-g" 4907 fi 4908else 4909 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4910 FFLAGS="-O2" 4911 else 4912 FFLAGS= 4913 fi 4914fi 4915 4916G77=`test $ac_compiler_gnu = yes && echo yes` 4917ac_ext=c 4918ac_cpp='$CPP $CPPFLAGS' 4919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4921ac_compiler_gnu=$ac_cv_c_compiler_gnu 4922 4923 4924 4925# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 4926 4927# find the maximum length of command line arguments 4928echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4929echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 4930if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4931 echo $ECHO_N "(cached) $ECHO_C" >&6 4932else 4933 i=0 4934 teststring="ABCD" 4935 4936 case $build_os in 4937 msdosdjgpp*) 4938 # On DJGPP, this test can blow up pretty badly due to problems in libc 4939 # (any single argument exceeding 2000 bytes causes a buffer overrun 4940 # during glob expansion). Even if it were fixed, the result of this 4941 # check would be larger than it should be. 4942 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4943 ;; 4944 4945 gnu*) 4946 # Under GNU Hurd, this test is not required because there is 4947 # no limit to the length of command line arguments. 4948 # Libtool will interpret -1 as no limit whatsoever 4949 lt_cv_sys_max_cmd_len=-1; 4950 ;; 4951 4952 cygwin* | mingw*) 4953 # On Win9x/ME, this test blows up -- it succeeds, but takes 4954 # about 5 minutes as the teststring grows exponentially. 4955 # Worse, since 9x/ME are not pre-emptively multitasking, 4956 # you end up with a "frozen" computer, even though with patience 4957 # the test eventually succeeds (with a max line length of 256k). 4958 # Instead, let's just punt: use the minimum linelength reported by 4959 # all of the supported platforms: 8192 (on NT/2K/XP). 4960 lt_cv_sys_max_cmd_len=8192; 4961 ;; 4962 4963 amigaos*) 4964 # On AmigaOS with pdksh, this test takes hours, literally. 4965 # So we just punt and use a minimum line length of 8192. 4966 lt_cv_sys_max_cmd_len=8192; 4967 ;; 4968 4969 *) 4970 # If test is not a shell built-in, we'll probably end up computing a 4971 # maximum length that is only half of the actual maximum length, but 4972 # we can't tell. 4973 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 4974 = "XX$teststring") >/dev/null 2>&1 && 4975 new_result=`expr "X$teststring" : ".*" 2>&1` && 4976 lt_cv_sys_max_cmd_len=$new_result && 4977 test $i != 17 # 1/2 MB should be enough 4978 do 4979 i=`expr $i + 1` 4980 teststring=$teststring$teststring 4981 done 4982 teststring= 4983 # Add a significant safety factor because C++ compilers can tack on massive 4984 # amounts of additional arguments before passing them to the linker. 4985 # It appears as though 1/2 is a usable value. 4986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4987 ;; 4988 esac 4989 4990fi 4991 4992if test -n $lt_cv_sys_max_cmd_len ; then 4993 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4994echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 4995else 4996 echo "$as_me:$LINENO: result: none" >&5 4997echo "${ECHO_T}none" >&6 4998fi 4999 5000 5001 5002 5003# Check for command to grab the raw symbol name followed by C symbol from nm. 5004echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5005echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5006if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5007 echo $ECHO_N "(cached) $ECHO_C" >&6 5008else 5009 5010# These are sane defaults that work on at least a few old systems. 5011# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5012 5013# Character class describing NM global symbol codes. 5014symcode='[BCDEGRST]' 5015 5016# Regexp to match symbols that can be accessed directly from C. 5017sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5018 5019# Transform the above into a raw symbol and a C symbol. 5020symxfrm='\1 \2\3 \3' 5021 5022# Transform an extracted symbol line into a proper C declaration 5023lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5024 5025# Transform an extracted symbol line into symbol name and symbol address 5026lt_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'" 5027 5028# Define system-specific variables. 5029case $host_os in 5030aix*) 5031 symcode='[BCDT]' 5032 ;; 5033cygwin* | mingw* | pw32*) 5034 symcode='[ABCDGISTW]' 5035 ;; 5036hpux*) # Its linker distinguishes data from code symbols 5037 if test "$host_cpu" = ia64; then 5038 symcode='[ABCDEGRST]' 5039 fi 5040 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5041 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'" 5042 ;; 5043irix* | nonstopux*) 5044 symcode='[BCDEGRST]' 5045 ;; 5046osf*) 5047 symcode='[BCDEGQRST]' 5048 ;; 5049solaris* | sysv5*) 5050 symcode='[BDRT]' 5051 ;; 5052sysv4) 5053 symcode='[DFNSTU]' 5054 ;; 5055esac 5056 5057# Handle CRLF in mingw tool chain 5058opt_cr= 5059case $build_os in 5060mingw*) 5061 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5062 ;; 5063esac 5064 5065# If we're using GNU nm, then use its standard symbol codes. 5066case `$NM -V 2>&1` in 5067*GNU* | *'with BFD'*) 5068 symcode='[ABCDGIRSTW]' ;; 5069esac 5070 5071# Try without a prefix undercore, then with it. 5072for ac_symprfx in "" "_"; do 5073 5074 # Write the raw and C identifiers. 5075 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5076 5077 # Check to see that the pipe works correctly. 5078 pipe_works=no 5079 5080 rm -f conftest* 5081 cat > conftest.$ac_ext <<EOF 5082#ifdef __cplusplus 5083extern "C" { 5084#endif 5085char nm_test_var; 5086void nm_test_func(){} 5087#ifdef __cplusplus 5088} 5089#endif 5090int main(){nm_test_var='a';nm_test_func();return(0);} 5091EOF 5092 5093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5094 (eval $ac_compile) 2>&5 5095 ac_status=$? 5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5097 (exit $ac_status); }; then 5098 # Now try to grab the symbols. 5099 nlist=conftest.nm 5100 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5101 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5102 ac_status=$? 5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5104 (exit $ac_status); } && test -s "$nlist"; then 5105 # Try sorting and uniquifying the output. 5106 if sort "$nlist" | uniq > "$nlist"T; then 5107 mv -f "$nlist"T "$nlist" 5108 else 5109 rm -f "$nlist"T 5110 fi 5111 5112 # Make sure that we snagged all the symbols we need. 5113 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5114 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5115 cat <<EOF > conftest.$ac_ext 5116#ifdef __cplusplus 5117extern "C" { 5118#endif 5119 5120EOF 5121 # Now generate the symbol file. 5122 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5123 5124 cat <<EOF >> conftest.$ac_ext 5125#if defined (__STDC__) && __STDC__ 5126# define lt_ptr_t void * 5127#else 5128# define lt_ptr_t char * 5129# define const 5130#endif 5131 5132/* The mapping between symbol names and symbols. */ 5133const struct { 5134 const char *name; 5135 lt_ptr_t address; 5136} 5137lt_preloaded_symbols[] = 5138{ 5139EOF 5140 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5141 cat <<\EOF >> conftest.$ac_ext 5142 {0, (lt_ptr_t) 0} 5143}; 5144 5145#ifdef __cplusplus 5146} 5147#endif 5148EOF 5149 # Now try linking the two files. 5150 mv conftest.$ac_objext conftstm.$ac_objext 5151 lt_save_LIBS="$LIBS" 5152 lt_save_CFLAGS="$CFLAGS" 5153 LIBS="conftstm.$ac_objext" 5154 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5156 (eval $ac_link) 2>&5 5157 ac_status=$? 5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5159 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5160 pipe_works=yes 5161 fi 5162 LIBS="$lt_save_LIBS" 5163 CFLAGS="$lt_save_CFLAGS" 5164 else 5165 echo "cannot find nm_test_func in $nlist" >&5 5166 fi 5167 else 5168 echo "cannot find nm_test_var in $nlist" >&5 5169 fi 5170 else 5171 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5172 fi 5173 else 5174 echo "$progname: failed program was:" >&5 5175 cat conftest.$ac_ext >&5 5176 fi 5177 rm -f conftest* conftst* 5178 5179 # Do not use the global_symbol_pipe unless it works. 5180 if test "$pipe_works" = yes; then 5181 break 5182 else 5183 lt_cv_sys_global_symbol_pipe= 5184 fi 5185done 5186 5187fi 5188 5189if test -z "$lt_cv_sys_global_symbol_pipe"; then 5190 lt_cv_sys_global_symbol_to_cdecl= 5191fi 5192if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5193 echo "$as_me:$LINENO: result: failed" >&5 5194echo "${ECHO_T}failed" >&6 5195else 5196 echo "$as_me:$LINENO: result: ok" >&5 5197echo "${ECHO_T}ok" >&6 5198fi 5199 5200echo "$as_me:$LINENO: checking for objdir" >&5 5201echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5202if test "${lt_cv_objdir+set}" = set; then 5203 echo $ECHO_N "(cached) $ECHO_C" >&6 5204else 5205 rm -f .libs 2>/dev/null 5206mkdir .libs 2>/dev/null 5207if test -d .libs; then 5208 lt_cv_objdir=.libs 5209else 5210 # MS-DOS does not allow filenames that begin with a dot. 5211 lt_cv_objdir=_libs 5212fi 5213rmdir .libs 2>/dev/null 5214fi 5215echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5216echo "${ECHO_T}$lt_cv_objdir" >&6 5217objdir=$lt_cv_objdir 5218 5219 5220 5221 5222 5223case $host_os in 5224aix3*) 5225 # AIX sometimes has problems with the GCC collect2 program. For some 5226 # reason, if we set the COLLECT_NAMES environment variable, the problems 5227 # vanish in a puff of smoke. 5228 if test "X${COLLECT_NAMES+set}" != Xset; then 5229 COLLECT_NAMES= 5230 export COLLECT_NAMES 5231 fi 5232 ;; 5233esac 5234 5235# Sed substitution that helps us do robust quoting. It backslashifies 5236# metacharacters that are still active within double-quoted strings. 5237Xsed='sed -e s/^X//' 5238sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5239 5240# Same as above, but do not quote variable references. 5241double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5242 5243# Sed substitution to delay expansion of an escaped shell variable in a 5244# double_quote_subst'ed string. 5245delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5246 5247# Sed substitution to avoid accidental globbing in evaled expressions 5248no_glob_subst='s/\*/\\\*/g' 5249 5250# Constants: 5251rm="rm -f" 5252 5253# Global variables: 5254default_ofile=libtool 5255can_build_shared=yes 5256 5257# All known linkers require a `.a' archive for static linking (except M$VC, 5258# which needs '.lib'). 5259libext=a 5260ltmain="$ac_aux_dir/ltmain.sh" 5261ofile="$default_ofile" 5262with_gnu_ld="$lt_cv_prog_gnu_ld" 5263 5264if test -n "$ac_tool_prefix"; then 5265 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5266set dummy ${ac_tool_prefix}ar; ac_word=$2 5267echo "$as_me:$LINENO: checking for $ac_word" >&5 5268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5269if test "${ac_cv_prog_AR+set}" = set; then 5270 echo $ECHO_N "(cached) $ECHO_C" >&6 5271else 5272 if test -n "$AR"; then 5273 ac_cv_prog_AR="$AR" # Let the user override the test. 5274else 5275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5276for as_dir in $PATH 5277do 5278 IFS=$as_save_IFS 5279 test -z "$as_dir" && as_dir=. 5280 for ac_exec_ext in '' $ac_executable_extensions; do 5281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5282 ac_cv_prog_AR="${ac_tool_prefix}ar" 5283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5284 break 2 5285 fi 5286done 5287done 5288 5289fi 5290fi 5291AR=$ac_cv_prog_AR 5292if test -n "$AR"; then 5293 echo "$as_me:$LINENO: result: $AR" >&5 5294echo "${ECHO_T}$AR" >&6 5295else 5296 echo "$as_me:$LINENO: result: no" >&5 5297echo "${ECHO_T}no" >&6 5298fi 5299 5300fi 5301if test -z "$ac_cv_prog_AR"; then 5302 ac_ct_AR=$AR 5303 # Extract the first word of "ar", so it can be a program name with args. 5304set dummy ar; ac_word=$2 5305echo "$as_me:$LINENO: checking for $ac_word" >&5 5306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5307if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5308 echo $ECHO_N "(cached) $ECHO_C" >&6 5309else 5310 if test -n "$ac_ct_AR"; then 5311 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5312else 5313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5314for as_dir in $PATH 5315do 5316 IFS=$as_save_IFS 5317 test -z "$as_dir" && as_dir=. 5318 for ac_exec_ext in '' $ac_executable_extensions; do 5319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5320 ac_cv_prog_ac_ct_AR="ar" 5321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5322 break 2 5323 fi 5324done 5325done 5326 5327 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5328fi 5329fi 5330ac_ct_AR=$ac_cv_prog_ac_ct_AR 5331if test -n "$ac_ct_AR"; then 5332 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5333echo "${ECHO_T}$ac_ct_AR" >&6 5334else 5335 echo "$as_me:$LINENO: result: no" >&5 5336echo "${ECHO_T}no" >&6 5337fi 5338 5339 AR=$ac_ct_AR 5340else 5341 AR="$ac_cv_prog_AR" 5342fi 5343 5344if test -n "$ac_tool_prefix"; then 5345 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5346set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5347echo "$as_me:$LINENO: checking for $ac_word" >&5 5348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5349if test "${ac_cv_prog_RANLIB+set}" = set; then 5350 echo $ECHO_N "(cached) $ECHO_C" >&6 5351else 5352 if test -n "$RANLIB"; then 5353 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5354else 5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5356for as_dir in $PATH 5357do 5358 IFS=$as_save_IFS 5359 test -z "$as_dir" && as_dir=. 5360 for ac_exec_ext in '' $ac_executable_extensions; do 5361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5362 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5364 break 2 5365 fi 5366done 5367done 5368 5369fi 5370fi 5371RANLIB=$ac_cv_prog_RANLIB 5372if test -n "$RANLIB"; then 5373 echo "$as_me:$LINENO: result: $RANLIB" >&5 5374echo "${ECHO_T}$RANLIB" >&6 5375else 5376 echo "$as_me:$LINENO: result: no" >&5 5377echo "${ECHO_T}no" >&6 5378fi 5379 5380fi 5381if test -z "$ac_cv_prog_RANLIB"; then 5382 ac_ct_RANLIB=$RANLIB 5383 # Extract the first word of "ranlib", so it can be a program name with args. 5384set dummy ranlib; ac_word=$2 5385echo "$as_me:$LINENO: checking for $ac_word" >&5 5386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5387if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5388 echo $ECHO_N "(cached) $ECHO_C" >&6 5389else 5390 if test -n "$ac_ct_RANLIB"; then 5391 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5392else 5393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5394for as_dir in $PATH 5395do 5396 IFS=$as_save_IFS 5397 test -z "$as_dir" && as_dir=. 5398 for ac_exec_ext in '' $ac_executable_extensions; do 5399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5400 ac_cv_prog_ac_ct_RANLIB="ranlib" 5401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5402 break 2 5403 fi 5404done 5405done 5406 5407 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5408fi 5409fi 5410ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5411if test -n "$ac_ct_RANLIB"; then 5412 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5413echo "${ECHO_T}$ac_ct_RANLIB" >&6 5414else 5415 echo "$as_me:$LINENO: result: no" >&5 5416echo "${ECHO_T}no" >&6 5417fi 5418 5419 RANLIB=$ac_ct_RANLIB 5420else 5421 RANLIB="$ac_cv_prog_RANLIB" 5422fi 5423 5424if test -n "$ac_tool_prefix"; then 5425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5426set dummy ${ac_tool_prefix}strip; ac_word=$2 5427echo "$as_me:$LINENO: checking for $ac_word" >&5 5428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5429if test "${ac_cv_prog_STRIP+set}" = set; then 5430 echo $ECHO_N "(cached) $ECHO_C" >&6 5431else 5432 if test -n "$STRIP"; then 5433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5434else 5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5436for as_dir in $PATH 5437do 5438 IFS=$as_save_IFS 5439 test -z "$as_dir" && as_dir=. 5440 for ac_exec_ext in '' $ac_executable_extensions; do 5441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5442 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5444 break 2 5445 fi 5446done 5447done 5448 5449fi 5450fi 5451STRIP=$ac_cv_prog_STRIP 5452if test -n "$STRIP"; then 5453 echo "$as_me:$LINENO: result: $STRIP" >&5 5454echo "${ECHO_T}$STRIP" >&6 5455else 5456 echo "$as_me:$LINENO: result: no" >&5 5457echo "${ECHO_T}no" >&6 5458fi 5459 5460fi 5461if test -z "$ac_cv_prog_STRIP"; then 5462 ac_ct_STRIP=$STRIP 5463 # Extract the first word of "strip", so it can be a program name with args. 5464set dummy strip; ac_word=$2 5465echo "$as_me:$LINENO: checking for $ac_word" >&5 5466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5467if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5468 echo $ECHO_N "(cached) $ECHO_C" >&6 5469else 5470 if test -n "$ac_ct_STRIP"; then 5471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5472else 5473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5474for as_dir in $PATH 5475do 5476 IFS=$as_save_IFS 5477 test -z "$as_dir" && as_dir=. 5478 for ac_exec_ext in '' $ac_executable_extensions; do 5479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5480 ac_cv_prog_ac_ct_STRIP="strip" 5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5482 break 2 5483 fi 5484done 5485done 5486 5487 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5488fi 5489fi 5490ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5491if test -n "$ac_ct_STRIP"; then 5492 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5493echo "${ECHO_T}$ac_ct_STRIP" >&6 5494else 5495 echo "$as_me:$LINENO: result: no" >&5 5496echo "${ECHO_T}no" >&6 5497fi 5498 5499 STRIP=$ac_ct_STRIP 5500else 5501 STRIP="$ac_cv_prog_STRIP" 5502fi 5503 5504 5505old_CC="$CC" 5506old_CFLAGS="$CFLAGS" 5507 5508# Set sane defaults for various variables 5509test -z "$AR" && AR=ar 5510test -z "$AR_FLAGS" && AR_FLAGS=cru 5511test -z "$AS" && AS=as 5512test -z "$CC" && CC=cc 5513test -z "$LTCC" && LTCC=$CC 5514test -z "$DLLTOOL" && DLLTOOL=dlltool 5515test -z "$LD" && LD=ld 5516test -z "$LN_S" && LN_S="ln -s" 5517test -z "$MAGIC_CMD" && MAGIC_CMD=file 5518test -z "$NM" && NM=nm 5519test -z "$SED" && SED=sed 5520test -z "$OBJDUMP" && OBJDUMP=objdump 5521test -z "$RANLIB" && RANLIB=: 5522test -z "$STRIP" && STRIP=: 5523test -z "$ac_objext" && ac_objext=o 5524 5525# Determine commands to create old-style static archives. 5526old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5527old_postinstall_cmds='chmod 644 $oldlib' 5528old_postuninstall_cmds= 5529 5530if test -n "$RANLIB"; then 5531 case $host_os in 5532 openbsd*) 5533 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 5534 ;; 5535 *) 5536 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 5537 ;; 5538 esac 5539 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5540fi 5541 5542# Only perform the check for file, if the check method requires it 5543case $deplibs_check_method in 5544file_magic*) 5545 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5546 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5547echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5548if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5549 echo $ECHO_N "(cached) $ECHO_C" >&6 5550else 5551 case $MAGIC_CMD in 5552[\\/*] | ?:[\\/]*) 5553 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5554 ;; 5555*) 5556 lt_save_MAGIC_CMD="$MAGIC_CMD" 5557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5558 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5559 for ac_dir in $ac_dummy; do 5560 IFS="$lt_save_ifs" 5561 test -z "$ac_dir" && ac_dir=. 5562 if test -f $ac_dir/${ac_tool_prefix}file; then 5563 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5564 if test -n "$file_magic_test_file"; then 5565 case $deplibs_check_method in 5566 "file_magic "*) 5567 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5570 $EGREP "$file_magic_regex" > /dev/null; then 5571 : 5572 else 5573 cat <<EOF 1>&2 5574 5575*** Warning: the command libtool uses to detect shared libraries, 5576*** $file_magic_cmd, produces output that libtool cannot recognize. 5577*** The result is that libtool may fail to recognize shared libraries 5578*** as such. This will affect the creation of libtool libraries that 5579*** depend on shared libraries, but programs linked with such libtool 5580*** libraries will work regardless of this problem. Nevertheless, you 5581*** may want to report the problem to your system manager and/or to 5582*** bug-libtool@gnu.org 5583 5584EOF 5585 fi ;; 5586 esac 5587 fi 5588 break 5589 fi 5590 done 5591 IFS="$lt_save_ifs" 5592 MAGIC_CMD="$lt_save_MAGIC_CMD" 5593 ;; 5594esac 5595fi 5596 5597MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5598if test -n "$MAGIC_CMD"; then 5599 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5600echo "${ECHO_T}$MAGIC_CMD" >&6 5601else 5602 echo "$as_me:$LINENO: result: no" >&5 5603echo "${ECHO_T}no" >&6 5604fi 5605 5606if test -z "$lt_cv_path_MAGIC_CMD"; then 5607 if test -n "$ac_tool_prefix"; then 5608 echo "$as_me:$LINENO: checking for file" >&5 5609echo $ECHO_N "checking for file... $ECHO_C" >&6 5610if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5611 echo $ECHO_N "(cached) $ECHO_C" >&6 5612else 5613 case $MAGIC_CMD in 5614[\\/*] | ?:[\\/]*) 5615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5616 ;; 5617*) 5618 lt_save_MAGIC_CMD="$MAGIC_CMD" 5619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5621 for ac_dir in $ac_dummy; do 5622 IFS="$lt_save_ifs" 5623 test -z "$ac_dir" && ac_dir=. 5624 if test -f $ac_dir/file; then 5625 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5626 if test -n "$file_magic_test_file"; then 5627 case $deplibs_check_method in 5628 "file_magic "*) 5629 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5632 $EGREP "$file_magic_regex" > /dev/null; then 5633 : 5634 else 5635 cat <<EOF 1>&2 5636 5637*** Warning: the command libtool uses to detect shared libraries, 5638*** $file_magic_cmd, produces output that libtool cannot recognize. 5639*** The result is that libtool may fail to recognize shared libraries 5640*** as such. This will affect the creation of libtool libraries that 5641*** depend on shared libraries, but programs linked with such libtool 5642*** libraries will work regardless of this problem. Nevertheless, you 5643*** may want to report the problem to your system manager and/or to 5644*** bug-libtool@gnu.org 5645 5646EOF 5647 fi ;; 5648 esac 5649 fi 5650 break 5651 fi 5652 done 5653 IFS="$lt_save_ifs" 5654 MAGIC_CMD="$lt_save_MAGIC_CMD" 5655 ;; 5656esac 5657fi 5658 5659MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5660if test -n "$MAGIC_CMD"; then 5661 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5662echo "${ECHO_T}$MAGIC_CMD" >&6 5663else 5664 echo "$as_me:$LINENO: result: no" >&5 5665echo "${ECHO_T}no" >&6 5666fi 5667 5668 else 5669 MAGIC_CMD=: 5670 fi 5671fi 5672 5673 fi 5674 ;; 5675esac 5676 5677enable_dlopen=yes 5678enable_win32_dll=no 5679 5680# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5681if test "${enable_libtool_lock+set}" = set; then 5682 enableval="$enable_libtool_lock" 5683 5684fi; 5685test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5686 5687 5688# Check whether --with-pic or --without-pic was given. 5689if test "${with_pic+set}" = set; then 5690 withval="$with_pic" 5691 pic_mode="$withval" 5692else 5693 pic_mode=default 5694fi; 5695test -z "$pic_mode" && pic_mode=default 5696 5697# Use C for the default configuration in the libtool script 5698tagname= 5699lt_save_CC="$CC" 5700ac_ext=c 5701ac_cpp='$CPP $CPPFLAGS' 5702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5704ac_compiler_gnu=$ac_cv_c_compiler_gnu 5705 5706 5707# Source file extension for C test sources. 5708ac_ext=c 5709 5710# Object file extension for compiled C test sources. 5711objext=o 5712objext=$objext 5713 5714# Code to be used in simple compile tests 5715lt_simple_compile_test_code="int some_variable = 0;\n" 5716 5717# Code to be used in simple link tests 5718lt_simple_link_test_code='int main(){return(0);}\n' 5719 5720 5721# If no C compiler was specified, use CC. 5722LTCC=${LTCC-"$CC"} 5723 5724# Allow CC to be a program name with arguments. 5725compiler=$CC 5726 5727 5728# 5729# Check for any special shared library compilation flags. 5730# 5731lt_prog_cc_shlib= 5732if test "$GCC" = no; then 5733 case $host_os in 5734 sco3.2v5*) 5735 lt_prog_cc_shlib='-belf' 5736 ;; 5737 esac 5738fi 5739if test -n "$lt_prog_cc_shlib"; then 5740 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 5741echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 5742 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 5743 else 5744 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5745echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5746 lt_cv_prog_cc_can_build_shared=no 5747 fi 5748fi 5749 5750 5751# 5752# Check to make sure the static flag actually works. 5753# 5754echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 5755echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 5756if test "${lt_prog_compiler_static_works+set}" = set; then 5757 echo $ECHO_N "(cached) $ECHO_C" >&6 5758else 5759 lt_prog_compiler_static_works=no 5760 save_LDFLAGS="$LDFLAGS" 5761 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 5762 printf "$lt_simple_link_test_code" > conftest.$ac_ext 5763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 5764 # The compiler can only warn and ignore the option if not recognized 5765 # So say no if there are warnings 5766 if test -s conftest.err; then 5767 # Append any errors to the config.log. 5768 cat conftest.err 1>&5 5769 else 5770 lt_prog_compiler_static_works=yes 5771 fi 5772 fi 5773 $rm conftest* 5774 LDFLAGS="$save_LDFLAGS" 5775 5776fi 5777echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 5778echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 5779 5780if test x"$lt_prog_compiler_static_works" = xyes; then 5781 : 5782else 5783 lt_prog_compiler_static= 5784fi 5785 5786 5787 5788 5789lt_prog_compiler_no_builtin_flag= 5790 5791if test "$GCC" = yes; then 5792 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 5793 5794 5795echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5796echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5797if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 5798 echo $ECHO_N "(cached) $ECHO_C" >&6 5799else 5800 lt_cv_prog_compiler_rtti_exceptions=no 5801 ac_outfile=conftest.$ac_objext 5802 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5803 lt_compiler_flag="-fno-rtti -fno-exceptions" 5804 # Insert the option either (1) after the last *FLAGS variable, or 5805 # (2) before a word containing "conftest.", or (3) at the end. 5806 # Note that $ac_compile itself does not contain backslashes and begins 5807 # with a dollar sign (not a hyphen), so the echo should work correctly. 5808 # The option is referenced via a variable to avoid confusing sed. 5809 lt_compile=`echo "$ac_compile" | $SED \ 5810 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 5811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5812 -e 's:$: $lt_compiler_flag:'` 5813 (eval echo "\"\$as_me:5813: $lt_compile\"" >&5) 5814 (eval "$lt_compile" 2>conftest.err) 5815 ac_status=$? 5816 cat conftest.err >&5 5817 echo "$as_me:5817: \$? = $ac_status" >&5 5818 if (exit $ac_status) && test -s "$ac_outfile"; then 5819 # The compiler can only warn and ignore the option if not recognized 5820 # So say no if there are warnings 5821 if test ! -s conftest.err; then 5822 lt_cv_prog_compiler_rtti_exceptions=yes 5823 fi 5824 fi 5825 $rm conftest* 5826 5827fi 5828echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 5829echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 5830 5831if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 5832 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 5833else 5834 : 5835fi 5836 5837fi 5838 5839lt_prog_compiler_wl= 5840lt_prog_compiler_pic= 5841lt_prog_compiler_static= 5842 5843echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 5844echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 5845 5846 if test "$GCC" = yes; then 5847 lt_prog_compiler_wl='-Wl,' 5848 lt_prog_compiler_static='-static' 5849 5850 case $host_os in 5851 aix*) 5852 # All AIX code is PIC. 5853 if test "$host_cpu" = ia64; then 5854 # AIX 5 now supports IA64 processor 5855 lt_prog_compiler_static='-Bstatic' 5856 fi 5857 ;; 5858 5859 amigaos*) 5860 # FIXME: we need at least 68020 code to build shared libraries, but 5861 # adding the `-m68020' flag to GCC prevents building anything better, 5862 # like `-m68040'. 5863 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 5864 ;; 5865 5866 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5867 # PIC is the default for these OSes. 5868 ;; 5869 5870 mingw* | pw32* | os2*) 5871 # This hack is so that the source file can tell whether it is being 5872 # built for inclusion in a dll (and should export symbols for example). 5873 lt_prog_compiler_pic='-DDLL_EXPORT' 5874 ;; 5875 5876 darwin* | rhapsody*) 5877 # PIC is the default on this platform 5878 # Common symbols not allowed in MH_DYLIB files 5879 lt_prog_compiler_pic='-fno-common' 5880 ;; 5881 5882 msdosdjgpp*) 5883 # Just because we use GCC doesn't mean we suddenly get shared libraries 5884 # on systems that don't support them. 5885 lt_prog_compiler_can_build_shared=no 5886 enable_shared=no 5887 ;; 5888 5889 sysv4*MP*) 5890 if test -d /usr/nec; then 5891 lt_prog_compiler_pic=-Kconform_pic 5892 fi 5893 ;; 5894 5895 hpux*) 5896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5897 # not for PA HP-UX. 5898 case "$host_cpu" in 5899 hppa*64*|ia64*) 5900 # +Z the default 5901 ;; 5902 *) 5903 lt_prog_compiler_pic='-fPIC' 5904 ;; 5905 esac 5906 ;; 5907 5908 *) 5909 lt_prog_compiler_pic='-fPIC' 5910 ;; 5911 esac 5912 else 5913 # PORTME Check for flag to pass linker flags through the system compiler. 5914 case $host_os in 5915 aix*) 5916 lt_prog_compiler_wl='-Wl,' 5917 if test "$host_cpu" = ia64; then 5918 # AIX 5 now supports IA64 processor 5919 lt_prog_compiler_static='-Bstatic' 5920 else 5921 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 5922 fi 5923 ;; 5924 5925 mingw* | pw32* | os2*) 5926 # This hack is so that the source file can tell whether it is being 5927 # built for inclusion in a dll (and should export symbols for example). 5928 lt_prog_compiler_pic='-DDLL_EXPORT' 5929 ;; 5930 5931 hpux9* | hpux10* | hpux11*) 5932 lt_prog_compiler_wl='-Wl,' 5933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5934 # not for PA HP-UX. 5935 case "$host_cpu" in 5936 hppa*64*|ia64*) 5937 # +Z the default 5938 ;; 5939 *) 5940 lt_prog_compiler_pic='+Z' 5941 ;; 5942 esac 5943 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5944 lt_prog_compiler_static='${wl}-a ${wl}archive' 5945 ;; 5946 5947 irix5* | irix6* | nonstopux*) 5948 lt_prog_compiler_wl='-Wl,' 5949 # PIC (with -KPIC) is the default. 5950 lt_prog_compiler_static='-non_shared' 5951 ;; 5952 5953 newsos6) 5954 lt_prog_compiler_pic='-KPIC' 5955 lt_prog_compiler_static='-Bstatic' 5956 ;; 5957 5958 linux*) 5959 case $CC in 5960 icc* | ecc*) 5961 lt_prog_compiler_wl='-Wl,' 5962 lt_prog_compiler_pic='-KPIC' 5963 lt_prog_compiler_static='-static' 5964 ;; 5965 ccc*) 5966 lt_prog_compiler_wl='-Wl,' 5967 # All Alpha code is PIC. 5968 lt_prog_compiler_static='-non_shared' 5969 ;; 5970 esac 5971 ;; 5972 5973 osf3* | osf4* | osf5*) 5974 lt_prog_compiler_wl='-Wl,' 5975 # All OSF/1 code is PIC. 5976 lt_prog_compiler_static='-non_shared' 5977 ;; 5978 5979 sco3.2v5*) 5980 lt_prog_compiler_pic='-Kpic' 5981 lt_prog_compiler_static='-dn' 5982 ;; 5983 5984 solaris*) 5985 lt_prog_compiler_wl='-Wl,' 5986 lt_prog_compiler_pic='-KPIC' 5987 lt_prog_compiler_static='-Bstatic' 5988 ;; 5989 5990 sunos4*) 5991 lt_prog_compiler_wl='-Qoption ld ' 5992 lt_prog_compiler_pic='-PIC' 5993 lt_prog_compiler_static='-Bstatic' 5994 ;; 5995 5996 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5997 lt_prog_compiler_wl='-Wl,' 5998 lt_prog_compiler_pic='-KPIC' 5999 lt_prog_compiler_static='-Bstatic' 6000 ;; 6001 6002 sysv4*MP*) 6003 if test -d /usr/nec ;then 6004 lt_prog_compiler_pic='-Kconform_pic' 6005 lt_prog_compiler_static='-Bstatic' 6006 fi 6007 ;; 6008 6009 uts4*) 6010 lt_prog_compiler_pic='-pic' 6011 lt_prog_compiler_static='-Bstatic' 6012 ;; 6013 6014 *) 6015 lt_prog_compiler_can_build_shared=no 6016 ;; 6017 esac 6018 fi 6019 6020echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6021echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6022 6023# 6024# Check to make sure the PIC flag actually works. 6025# 6026if test -n "$lt_prog_compiler_pic"; then 6027 6028echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6029echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6030if test "${lt_prog_compiler_pic_works+set}" = set; then 6031 echo $ECHO_N "(cached) $ECHO_C" >&6 6032else 6033 lt_prog_compiler_pic_works=no 6034 ac_outfile=conftest.$ac_objext 6035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6036 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6037 # Insert the option either (1) after the last *FLAGS variable, or 6038 # (2) before a word containing "conftest.", or (3) at the end. 6039 # Note that $ac_compile itself does not contain backslashes and begins 6040 # with a dollar sign (not a hyphen), so the echo should work correctly. 6041 # The option is referenced via a variable to avoid confusing sed. 6042 lt_compile=`echo "$ac_compile" | $SED \ 6043 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6045 -e 's:$: $lt_compiler_flag:'` 6046 (eval echo "\"\$as_me:6046: $lt_compile\"" >&5) 6047 (eval "$lt_compile" 2>conftest.err) 6048 ac_status=$? 6049 cat conftest.err >&5 6050 echo "$as_me:6050: \$? = $ac_status" >&5 6051 if (exit $ac_status) && test -s "$ac_outfile"; then 6052 # The compiler can only warn and ignore the option if not recognized 6053 # So say no if there are warnings 6054 if test ! -s conftest.err; then 6055 lt_prog_compiler_pic_works=yes 6056 fi 6057 fi 6058 $rm conftest* 6059 6060fi 6061echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6062echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6063 6064if test x"$lt_prog_compiler_pic_works" = xyes; then 6065 case $lt_prog_compiler_pic in 6066 "" | " "*) ;; 6067 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6068 esac 6069else 6070 lt_prog_compiler_pic= 6071 lt_prog_compiler_can_build_shared=no 6072fi 6073 6074fi 6075case "$host_os" in 6076 # For platforms which do not support PIC, -DPIC is meaningless: 6077 *djgpp*) 6078 lt_prog_compiler_pic= 6079 ;; 6080 *) 6081 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6082 ;; 6083esac 6084 6085echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6086echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6087if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6088 echo $ECHO_N "(cached) $ECHO_C" >&6 6089else 6090 lt_cv_prog_compiler_c_o=no 6091 $rm -r conftest 2>/dev/null 6092 mkdir conftest 6093 cd conftest 6094 mkdir out 6095 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6096 6097 lt_compiler_flag="-o out/conftest2.$ac_objext" 6098 # Insert the option either (1) after the last *FLAGS variable, or 6099 # (2) before a word containing "conftest.", or (3) at the end. 6100 # Note that $ac_compile itself does not contain backslashes and begins 6101 # with a dollar sign (not a hyphen), so the echo should work correctly. 6102 lt_compile=`echo "$ac_compile" | $SED \ 6103 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6105 -e 's:$: $lt_compiler_flag:'` 6106 (eval echo "\"\$as_me:6106: $lt_compile\"" >&5) 6107 (eval "$lt_compile" 2>out/conftest.err) 6108 ac_status=$? 6109 cat out/conftest.err >&5 6110 echo "$as_me:6110: \$? = $ac_status" >&5 6111 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6112 then 6113 # The compiler can only warn and ignore the option if not recognized 6114 # So say no if there are warnings 6115 if test ! -s out/conftest.err; then 6116 lt_cv_prog_compiler_c_o=yes 6117 fi 6118 fi 6119 chmod u+w . 6120 $rm conftest* 6121 # SGI C++ compiler will create directory out/ii_files/ for 6122 # template instantiation 6123 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6124 $rm out/* && rmdir out 6125 cd .. 6126 rmdir conftest 6127 $rm conftest* 6128 6129fi 6130echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6131echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6132 6133 6134hard_links="nottested" 6135if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6136 # do not overwrite the value of need_locks provided by the user 6137 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6138echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6139 hard_links=yes 6140 $rm conftest* 6141 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6142 touch conftest.a 6143 ln conftest.a conftest.b 2>&5 || hard_links=no 6144 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6145 echo "$as_me:$LINENO: result: $hard_links" >&5 6146echo "${ECHO_T}$hard_links" >&6 6147 if test "$hard_links" = no; then 6148 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6149echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6150 need_locks=warn 6151 fi 6152else 6153 need_locks=no 6154fi 6155 6156echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6157echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6158 6159 runpath_var= 6160 allow_undefined_flag= 6161 enable_shared_with_static_runtimes=no 6162 archive_cmds= 6163 archive_expsym_cmds= 6164 old_archive_From_new_cmds= 6165 old_archive_from_expsyms_cmds= 6166 export_dynamic_flag_spec= 6167 whole_archive_flag_spec= 6168 thread_safe_flag_spec= 6169 hardcode_libdir_flag_spec= 6170 hardcode_libdir_flag_spec_ld= 6171 hardcode_libdir_separator= 6172 hardcode_direct=no 6173 hardcode_minus_L=no 6174 hardcode_shlibpath_var=unsupported 6175 link_all_deplibs=unknown 6176 hardcode_automatic=no 6177 module_cmds= 6178 module_expsym_cmds= 6179 always_export_symbols=no 6180 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6181 # include_expsyms should be a list of space-separated symbols to be *always* 6182 # included in the symbol list 6183 include_expsyms= 6184 # exclude_expsyms can be an extended regexp of symbols to exclude 6185 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6186 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6187 # as well as any symbol that contains `d'. 6188 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6189 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6190 # platforms (ab)use it in PIC code, but their linkers get confused if 6191 # the symbol is explicitly referenced. Since portable code cannot 6192 # rely on this symbol name, it's probably fine to never include it in 6193 # preloaded symbol tables. 6194 extract_expsyms_cmds= 6195 6196 case $host_os in 6197 cygwin* | mingw* | pw32*) 6198 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6199 # When not using gcc, we currently assume that we are using 6200 # Microsoft Visual C++. 6201 if test "$GCC" != yes; then 6202 with_gnu_ld=no 6203 fi 6204 ;; 6205 openbsd*) 6206 with_gnu_ld=no 6207 ;; 6208 esac 6209 6210 ld_shlibs=yes 6211 if test "$with_gnu_ld" = yes; then 6212 # If archive_cmds runs LD, not CC, wlarc should be empty 6213 wlarc='${wl}' 6214 6215 # See if GNU ld supports shared libraries. 6216 case $host_os in 6217 aix3* | aix4* | aix5*) 6218 # On AIX/PPC, the GNU linker is very broken 6219 if test "$host_cpu" != ia64; then 6220 ld_shlibs=no 6221 cat <<EOF 1>&2 6222 6223*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6224*** to be unable to reliably create shared libraries on AIX. 6225*** Therefore, libtool is disabling shared libraries support. If you 6226*** really care for shared libraries, you may want to modify your PATH 6227*** so that a non-GNU linker is found, and then restart. 6228 6229EOF 6230 fi 6231 ;; 6232 6233 amigaos*) 6234 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)' 6235 hardcode_libdir_flag_spec='-L$libdir' 6236 hardcode_minus_L=yes 6237 6238 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6239 # that the semantics of dynamic libraries on AmigaOS, at least up 6240 # to version 4, is to share data among multiple programs linked 6241 # with the same dynamic library. Since this doesn't match the 6242 # behavior of shared libraries on other platforms, we can't use 6243 # them. 6244 ld_shlibs=no 6245 ;; 6246 6247 beos*) 6248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6249 allow_undefined_flag=unsupported 6250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6251 # support --undefined. This deserves some investigation. FIXME 6252 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6253 else 6254 ld_shlibs=no 6255 fi 6256 ;; 6257 6258 cygwin* | mingw* | pw32*) 6259 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6260 # as there is no search path for DLLs. 6261 hardcode_libdir_flag_spec='-L$libdir' 6262 allow_undefined_flag=unsupported 6263 always_export_symbols=no 6264 enable_shared_with_static_runtimes=yes 6265 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6266 6267 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6269 # If the export-symbols file already is a .def file (1st line 6270 # is EXPORTS), use it as is; otherwise, prepend... 6271 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6272 cp $export_symbols $output_objdir/$soname.def; 6273 else 6274 echo EXPORTS > $output_objdir/$soname.def; 6275 cat $export_symbols >> $output_objdir/$soname.def; 6276 fi~ 6277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6278 else 6279 ld_shlibs=no 6280 fi 6281 ;; 6282 6283 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 6284 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6285 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6286 wlarc= 6287 else 6288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6289 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6290 fi 6291 ;; 6292 6293 solaris* | sysv5*) 6294 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6295 ld_shlibs=no 6296 cat <<EOF 1>&2 6297 6298*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6299*** create shared libraries on Solaris systems. Therefore, libtool 6300*** is disabling shared libraries support. We urge you to upgrade GNU 6301*** binutils to release 2.9.1 or newer. Another option is to modify 6302*** your PATH or compiler configuration so that the native linker is 6303*** used, and then restart. 6304 6305EOF 6306 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6309 else 6310 ld_shlibs=no 6311 fi 6312 ;; 6313 6314 sunos4*) 6315 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6316 wlarc= 6317 hardcode_direct=yes 6318 hardcode_shlibpath_var=no 6319 ;; 6320 6321 linux*) 6322 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6323 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6324 archive_cmds="$tmp_archive_cmds" 6325 supports_anon_versioning=no 6326 case `$LD -v 2>/dev/null` in 6327 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6328 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6329 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6330 *\ 2.11.*) ;; # other 2.11 versions 6331 *) supports_anon_versioning=yes ;; 6332 esac 6333 if test $supports_anon_versioning = yes; then 6334 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6335cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6336$echo "local: *; };" >> $output_objdir/$libname.ver~ 6337 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6338 else 6339 archive_expsym_cmds="$tmp_archive_cmds" 6340 fi 6341 link_all_deplibs=no 6342 else 6343 ld_shlibs=no 6344 fi 6345 ;; 6346 6347 *) 6348 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6351 else 6352 ld_shlibs=no 6353 fi 6354 ;; 6355 esac 6356 6357 if test "$ld_shlibs" = yes; then 6358 runpath_var=LD_RUN_PATH 6359 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6360 export_dynamic_flag_spec='${wl}--export-dynamic' 6361 # ancient GNU ld didn't support --whole-archive et. al. 6362 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6363 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6364 else 6365 whole_archive_flag_spec= 6366 fi 6367 fi 6368 else 6369 # PORTME fill in a description of your system's linker (not GNU ld) 6370 case $host_os in 6371 aix3*) 6372 allow_undefined_flag=unsupported 6373 always_export_symbols=yes 6374 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' 6375 # Note: this linker hardcodes the directories in LIBPATH if there 6376 # are no directories specified by -L. 6377 hardcode_minus_L=yes 6378 if test "$GCC" = yes && test -z "$link_static_flag"; then 6379 # Neither direct hardcoding nor static linking is supported with a 6380 # broken collect2. 6381 hardcode_direct=unsupported 6382 fi 6383 ;; 6384 6385 aix4* | aix5*) 6386 if test "$host_cpu" = ia64; then 6387 # On IA64, the linker does run time linking by default, so we don't 6388 # have to do anything special. 6389 aix_use_runtimelinking=no 6390 exp_sym_flag='-Bexport' 6391 no_entry_flag="" 6392 else 6393 # If we're using GNU nm, then we don't want the "-C" option. 6394 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6395 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6396 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' 6397 else 6398 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' 6399 fi 6400 aix_use_runtimelinking=no 6401 6402 # Test if we are trying to use run time linking or normal 6403 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6404 # need to do runtime linking. 6405 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6406 for ld_flag in $LDFLAGS; do 6407 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6408 aix_use_runtimelinking=yes 6409 break 6410 fi 6411 done 6412 esac 6413 6414 exp_sym_flag='-bexport' 6415 no_entry_flag='-bnoentry' 6416 fi 6417 6418 # When large executables or shared objects are built, AIX ld can 6419 # have problems creating the table of contents. If linking a library 6420 # or program results in "error TOC overflow" add -mminimal-toc to 6421 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6422 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6423 6424 archive_cmds='' 6425 hardcode_direct=yes 6426 hardcode_libdir_separator=':' 6427 link_all_deplibs=yes 6428 6429 if test "$GCC" = yes; then 6430 case $host_os in aix4.012|aix4.012.*) 6431 # We only want to do this on AIX 4.2 and lower, the check 6432 # below for broken collect2 doesn't work under 4.3+ 6433 collect2name=`${CC} -print-prog-name=collect2` 6434 if test -f "$collect2name" && \ 6435 strings "$collect2name" | grep resolve_lib_name >/dev/null 6436 then 6437 # We have reworked collect2 6438 hardcode_direct=yes 6439 else 6440 # We have old collect2 6441 hardcode_direct=unsupported 6442 # It fails to find uninstalled libraries when the uninstalled 6443 # path is not listed in the libpath. Setting hardcode_minus_L 6444 # to unsupported forces relinking 6445 hardcode_minus_L=yes 6446 hardcode_libdir_flag_spec='-L$libdir' 6447 hardcode_libdir_separator= 6448 fi 6449 esac 6450 shared_flag='-shared' 6451 else 6452 # not using gcc 6453 if test "$host_cpu" = ia64; then 6454 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6455 # chokes on -Wl,-G. The following line is correct: 6456 shared_flag='-G' 6457 else 6458 if test "$aix_use_runtimelinking" = yes; then 6459 shared_flag='${wl}-G' 6460 else 6461 shared_flag='${wl}-bM:SRE' 6462 fi 6463 fi 6464 fi 6465 6466 # It seems that -bexpall does not export symbols beginning with 6467 # underscore (_), so it is better to generate a list of symbols to export. 6468 always_export_symbols=yes 6469 if test "$aix_use_runtimelinking" = yes; then 6470 # Warning - without using the other runtime loading flags (-brtl), 6471 # -berok will link without error, but may produce a broken library. 6472 allow_undefined_flag='-berok' 6473 # Determine the default libpath from the value encoded in an empty executable. 6474 cat >conftest.$ac_ext <<_ACEOF 6475/* confdefs.h. */ 6476_ACEOF 6477cat confdefs.h >>conftest.$ac_ext 6478cat >>conftest.$ac_ext <<_ACEOF 6479/* end confdefs.h. */ 6480 6481int 6482main () 6483{ 6484 6485 ; 6486 return 0; 6487} 6488_ACEOF 6489rm -f conftest.$ac_objext conftest$ac_exeext 6490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6491 (eval $ac_link) 2>conftest.er1 6492 ac_status=$? 6493 grep -v '^ *+' conftest.er1 >conftest.err 6494 rm -f conftest.er1 6495 cat conftest.err >&5 6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6497 (exit $ac_status); } && 6498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6500 (eval $ac_try) 2>&5 6501 ac_status=$? 6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6503 (exit $ac_status); }; } && 6504 { ac_try='test -s conftest$ac_exeext' 6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6506 (eval $ac_try) 2>&5 6507 ac_status=$? 6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6509 (exit $ac_status); }; }; then 6510 6511aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6512}'` 6513# Check for a 64-bit object if we didn't find anything. 6514if 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; } 6515}'`; fi 6516else 6517 echo "$as_me: failed program was:" >&5 6518sed 's/^/| /' conftest.$ac_ext >&5 6519 6520fi 6521rm -f conftest.err conftest.$ac_objext \ 6522 conftest$ac_exeext conftest.$ac_ext 6523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6524 6525 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6526 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" 6527 else 6528 if test "$host_cpu" = ia64; then 6529 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6530 allow_undefined_flag="-z nodefs" 6531 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" 6532 else 6533 # Determine the default libpath from the value encoded in an empty executable. 6534 cat >conftest.$ac_ext <<_ACEOF 6535/* confdefs.h. */ 6536_ACEOF 6537cat confdefs.h >>conftest.$ac_ext 6538cat >>conftest.$ac_ext <<_ACEOF 6539/* end confdefs.h. */ 6540 6541int 6542main () 6543{ 6544 6545 ; 6546 return 0; 6547} 6548_ACEOF 6549rm -f conftest.$ac_objext conftest$ac_exeext 6550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6551 (eval $ac_link) 2>conftest.er1 6552 ac_status=$? 6553 grep -v '^ *+' conftest.er1 >conftest.err 6554 rm -f conftest.er1 6555 cat conftest.err >&5 6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6557 (exit $ac_status); } && 6558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6560 (eval $ac_try) 2>&5 6561 ac_status=$? 6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6563 (exit $ac_status); }; } && 6564 { ac_try='test -s conftest$ac_exeext' 6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6566 (eval $ac_try) 2>&5 6567 ac_status=$? 6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6569 (exit $ac_status); }; }; then 6570 6571aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6572}'` 6573# Check for a 64-bit object if we didn't find anything. 6574if 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; } 6575}'`; fi 6576else 6577 echo "$as_me: failed program was:" >&5 6578sed 's/^/| /' conftest.$ac_ext >&5 6579 6580fi 6581rm -f conftest.err conftest.$ac_objext \ 6582 conftest$ac_exeext conftest.$ac_ext 6583if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6584 6585 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6586 # Warning - without using the other run time loading flags, 6587 # -berok will link without error, but may produce a broken library. 6588 no_undefined_flag=' ${wl}-bernotok' 6589 allow_undefined_flag=' ${wl}-berok' 6590 # -bexpall does not export symbols beginning with underscore (_) 6591 always_export_symbols=yes 6592 # Exported symbols can be pulled into shared objects from archives 6593 whole_archive_flag_spec=' ' 6594 archive_cmds_need_lc=yes 6595 # This is similar to how AIX traditionally builds it's shared libraries. 6596 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' 6597 fi 6598 fi 6599 ;; 6600 6601 amigaos*) 6602 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)' 6603 hardcode_libdir_flag_spec='-L$libdir' 6604 hardcode_minus_L=yes 6605 # see comment about different semantics on the GNU ld section 6606 ld_shlibs=no 6607 ;; 6608 6609 bsdi4*) 6610 export_dynamic_flag_spec=-rdynamic 6611 ;; 6612 6613 cygwin* | mingw* | pw32*) 6614 # When not using gcc, we currently assume that we are using 6615 # Microsoft Visual C++. 6616 # hardcode_libdir_flag_spec is actually meaningless, as there is 6617 # no search path for DLLs. 6618 hardcode_libdir_flag_spec=' ' 6619 allow_undefined_flag=unsupported 6620 # Tell ltmain to make .lib files, not .a files. 6621 libext=lib 6622 # Tell ltmain to make .dll files, not .so files. 6623 shrext_cmds=".dll" 6624 # FIXME: Setting linknames here is a bad hack. 6625 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6626 # The linker will automatically build a .lib file if we build a DLL. 6627 old_archive_From_new_cmds='true' 6628 # FIXME: Should let the user specify the lib program. 6629 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6630 fix_srcfile_path='`cygpath -w "$srcfile"`' 6631 enable_shared_with_static_runtimes=yes 6632 ;; 6633 6634 darwin* | rhapsody*) 6635 if test "$GXX" = yes ; then 6636 archive_cmds_need_lc=no 6637 case "$host_os" in 6638 rhapsody* | darwin1.[012]) 6639 allow_undefined_flag='-undefined suppress' 6640 ;; 6641 *) # Darwin 1.3 on 6642 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 6643 allow_undefined_flag='-flat_namespace -undefined suppress' 6644 else 6645 case ${MACOSX_DEPLOYMENT_TARGET} in 6646 10.[012]) 6647 allow_undefined_flag='-flat_namespace -undefined suppress' 6648 ;; 6649 10.*) 6650 allow_undefined_flag='-undefined dynamic_lookup' 6651 ;; 6652 esac 6653 fi 6654 ;; 6655 esac 6656 lt_int_apple_cc_single_mod=no 6657 output_verbose_link_cmd='echo' 6658 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 6659 lt_int_apple_cc_single_mod=yes 6660 fi 6661 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 6662 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6663 else 6664 archive_cmds='$CC -r ${wl}-bind_at_load -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' 6665 fi 6666 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6667 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 6668 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 6669 archive_expsym_cmds='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}' 6670 else 6671 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 6672 fi 6673 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}' 6674 hardcode_direct=no 6675 hardcode_automatic=yes 6676 hardcode_shlibpath_var=unsupported 6677 whole_archive_flag_spec='-all_load $convenience' 6678 link_all_deplibs=yes 6679 else 6680 ld_shlibs=no 6681 fi 6682 ;; 6683 6684 dgux*) 6685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6686 hardcode_libdir_flag_spec='-L$libdir' 6687 hardcode_shlibpath_var=no 6688 ;; 6689 6690 freebsd1*) 6691 ld_shlibs=no 6692 ;; 6693 6694 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6695 # support. Future versions do this automatically, but an explicit c++rt0.o 6696 # does not break anything, and helps significantly (at the cost of a little 6697 # extra space). 6698 freebsd2.2*) 6699 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6700 hardcode_libdir_flag_spec='-R$libdir' 6701 hardcode_direct=yes 6702 hardcode_shlibpath_var=no 6703 ;; 6704 6705 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6706 freebsd2*) 6707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6708 hardcode_direct=yes 6709 hardcode_minus_L=yes 6710 hardcode_shlibpath_var=no 6711 ;; 6712 6713 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6714 freebsd* | kfreebsd*-gnu) 6715 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6716 hardcode_libdir_flag_spec='-R$libdir' 6717 hardcode_direct=yes 6718 hardcode_shlibpath_var=no 6719 ;; 6720 6721 hpux9*) 6722 if test "$GCC" = yes; then 6723 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' 6724 else 6725 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' 6726 fi 6727 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6728 hardcode_libdir_separator=: 6729 hardcode_direct=yes 6730 6731 # hardcode_minus_L: Not really in the search PATH, 6732 # but as the default location of the library. 6733 hardcode_minus_L=yes 6734 export_dynamic_flag_spec='${wl}-E' 6735 ;; 6736 6737 hpux10* | hpux11*) 6738 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6739 case "$host_cpu" in 6740 hppa*64*|ia64*) 6741 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6742 ;; 6743 *) 6744 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6745 ;; 6746 esac 6747 else 6748 case "$host_cpu" in 6749 hppa*64*|ia64*) 6750 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 6751 ;; 6752 *) 6753 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6754 ;; 6755 esac 6756 fi 6757 if test "$with_gnu_ld" = no; then 6758 case "$host_cpu" in 6759 hppa*64*) 6760 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6761 hardcode_libdir_flag_spec_ld='+b $libdir' 6762 hardcode_libdir_separator=: 6763 hardcode_direct=no 6764 hardcode_shlibpath_var=no 6765 ;; 6766 ia64*) 6767 hardcode_libdir_flag_spec='-L$libdir' 6768 hardcode_direct=no 6769 hardcode_shlibpath_var=no 6770 6771 # hardcode_minus_L: Not really in the search PATH, 6772 # but as the default location of the library. 6773 hardcode_minus_L=yes 6774 ;; 6775 *) 6776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6777 hardcode_libdir_separator=: 6778 hardcode_direct=yes 6779 export_dynamic_flag_spec='${wl}-E' 6780 6781 # hardcode_minus_L: Not really in the search PATH, 6782 # but as the default location of the library. 6783 hardcode_minus_L=yes 6784 ;; 6785 esac 6786 fi 6787 ;; 6788 6789 irix5* | irix6* | nonstopux*) 6790 if test "$GCC" = yes; then 6791 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' 6792 else 6793 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' 6794 hardcode_libdir_flag_spec_ld='-rpath $libdir' 6795 fi 6796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6797 hardcode_libdir_separator=: 6798 link_all_deplibs=yes 6799 ;; 6800 6801 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 6802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6804 else 6805 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6806 fi 6807 hardcode_libdir_flag_spec='-R$libdir' 6808 hardcode_direct=yes 6809 hardcode_shlibpath_var=no 6810 ;; 6811 6812 newsos6) 6813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6814 hardcode_direct=yes 6815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6816 hardcode_libdir_separator=: 6817 hardcode_shlibpath_var=no 6818 ;; 6819 6820 openbsd*) 6821 hardcode_direct=yes 6822 hardcode_shlibpath_var=no 6823 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6825 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6826 export_dynamic_flag_spec='${wl}-E' 6827 else 6828 case $host_os in 6829 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 6830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6831 hardcode_libdir_flag_spec='-R$libdir' 6832 ;; 6833 *) 6834 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6835 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6836 ;; 6837 esac 6838 fi 6839 ;; 6840 6841 os2*) 6842 hardcode_libdir_flag_spec='-L$libdir' 6843 hardcode_minus_L=yes 6844 allow_undefined_flag=unsupported 6845 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' 6846 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6847 ;; 6848 6849 osf3*) 6850 if test "$GCC" = yes; then 6851 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6852 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' 6853 else 6854 allow_undefined_flag=' -expect_unresolved \*' 6855 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' 6856 fi 6857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6858 hardcode_libdir_separator=: 6859 ;; 6860 6861 osf4* | osf5*) # as osf3* with the addition of -msym flag 6862 if test "$GCC" = yes; then 6863 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6864 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' 6865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6866 else 6867 allow_undefined_flag=' -expect_unresolved \*' 6868 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' 6869 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6870 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 6871 6872 # Both c and cxx compiler support -rpath directly 6873 hardcode_libdir_flag_spec='-rpath $libdir' 6874 fi 6875 hardcode_libdir_separator=: 6876 ;; 6877 6878 sco3.2v5*) 6879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6880 hardcode_shlibpath_var=no 6881 export_dynamic_flag_spec='${wl}-Bexport' 6882 runpath_var=LD_RUN_PATH 6883 hardcode_runpath_var=yes 6884 ;; 6885 6886 solaris*) 6887 no_undefined_flag=' -z text' 6888 if test "$GCC" = yes; then 6889 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6890 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6891 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6892 else 6893 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6894 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6895 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6896 fi 6897 hardcode_libdir_flag_spec='-R$libdir' 6898 hardcode_shlibpath_var=no 6899 case $host_os in 6900 solaris2.[0-5] | solaris2.[0-5].*) ;; 6901 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 6902 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 6903 esac 6904 link_all_deplibs=yes 6905 ;; 6906 6907 sunos4*) 6908 if test "x$host_vendor" = xsequent; then 6909 # Use $CC to link under sequent, because it throws in some extra .o 6910 # files that make .init and .fini sections work. 6911 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6912 else 6913 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6914 fi 6915 hardcode_libdir_flag_spec='-L$libdir' 6916 hardcode_direct=yes 6917 hardcode_minus_L=yes 6918 hardcode_shlibpath_var=no 6919 ;; 6920 6921 sysv4) 6922 case $host_vendor in 6923 sni) 6924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6925 hardcode_direct=yes # is this really true??? 6926 ;; 6927 siemens) 6928 ## LD is ld it makes a PLAMLIB 6929 ## CC just makes a GrossModule. 6930 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6931 reload_cmds='$CC -r -o $output$reload_objs' 6932 hardcode_direct=no 6933 ;; 6934 motorola) 6935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6936 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 6937 ;; 6938 esac 6939 runpath_var='LD_RUN_PATH' 6940 hardcode_shlibpath_var=no 6941 ;; 6942 6943 sysv4.3*) 6944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6945 hardcode_shlibpath_var=no 6946 export_dynamic_flag_spec='-Bexport' 6947 ;; 6948 6949 sysv4*MP*) 6950 if test -d /usr/nec; then 6951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6952 hardcode_shlibpath_var=no 6953 runpath_var=LD_RUN_PATH 6954 hardcode_runpath_var=yes 6955 ld_shlibs=yes 6956 fi 6957 ;; 6958 6959 sysv4.2uw2*) 6960 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6961 hardcode_direct=yes 6962 hardcode_minus_L=no 6963 hardcode_shlibpath_var=no 6964 hardcode_runpath_var=yes 6965 runpath_var=LD_RUN_PATH 6966 ;; 6967 6968 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 6969 no_undefined_flag='${wl}-z ${wl}text' 6970 if test "$GCC" = yes; then 6971 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6972 else 6973 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6974 fi 6975 runpath_var='LD_RUN_PATH' 6976 hardcode_shlibpath_var=no 6977 ;; 6978 6979 sysv5*) 6980 no_undefined_flag=' -z text' 6981 # $CC -shared without GNU ld will not create a library from C++ 6982 # object files and a static libstdc++, better avoid it by now 6983 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6984 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6985 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6986 hardcode_libdir_flag_spec= 6987 hardcode_shlibpath_var=no 6988 runpath_var='LD_RUN_PATH' 6989 ;; 6990 6991 uts4*) 6992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6993 hardcode_libdir_flag_spec='-L$libdir' 6994 hardcode_shlibpath_var=no 6995 ;; 6996 6997 *) 6998 ld_shlibs=no 6999 ;; 7000 esac 7001 fi 7002 7003echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7004echo "${ECHO_T}$ld_shlibs" >&6 7005test "$ld_shlibs" = no && can_build_shared=no 7006 7007variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7008if test "$GCC" = yes; then 7009 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7010fi 7011 7012# 7013# Do we need to explicitly link libc? 7014# 7015case "x$archive_cmds_need_lc" in 7016x|xyes) 7017 # Assume -lc should be added 7018 archive_cmds_need_lc=yes 7019 7020 if test "$enable_shared" = yes && test "$GCC" = yes; then 7021 case $archive_cmds in 7022 *'~'*) 7023 # FIXME: we may have to deal with multi-command sequences. 7024 ;; 7025 '$CC '*) 7026 # Test whether the compiler implicitly links with -lc since on some 7027 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7028 # to ld, don't add -lc before -lgcc. 7029 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7030echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7031 $rm conftest* 7032 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7033 7034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7035 (eval $ac_compile) 2>&5 7036 ac_status=$? 7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7038 (exit $ac_status); } 2>conftest.err; then 7039 soname=conftest 7040 lib=conftest 7041 libobjs=conftest.$ac_objext 7042 deplibs= 7043 wl=$lt_prog_compiler_wl 7044 compiler_flags=-v 7045 linker_flags=-v 7046 verstring= 7047 output_objdir=. 7048 libname=conftest 7049 lt_save_allow_undefined_flag=$allow_undefined_flag 7050 allow_undefined_flag= 7051 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7052 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7053 ac_status=$? 7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7055 (exit $ac_status); } 7056 then 7057 archive_cmds_need_lc=no 7058 else 7059 archive_cmds_need_lc=yes 7060 fi 7061 allow_undefined_flag=$lt_save_allow_undefined_flag 7062 else 7063 cat conftest.err 1>&5 7064 fi 7065 $rm conftest* 7066 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7067echo "${ECHO_T}$archive_cmds_need_lc" >&6 7068 ;; 7069 esac 7070 fi 7071 ;; 7072esac 7073 7074echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7075echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7076library_names_spec= 7077libname_spec='lib$name' 7078soname_spec= 7079shrext_cmds=".so" 7080postinstall_cmds= 7081postuninstall_cmds= 7082finish_cmds= 7083finish_eval= 7084shlibpath_var= 7085shlibpath_overrides_runpath=unknown 7086version_type=none 7087dynamic_linker="$host_os ld.so" 7088sys_lib_dlsearch_path_spec="/lib /usr/lib" 7089if test "$GCC" = yes; then 7090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7091 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7092 # if the path contains ";" then we assume it to be the separator 7093 # otherwise default to the standard path separator (i.e. ":") - it is 7094 # assumed that no part of a normal pathname contains ";" but that should 7095 # okay in the real world where ";" in dirpaths is itself problematic. 7096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7097 else 7098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7099 fi 7100else 7101 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7102fi 7103need_lib_prefix=unknown 7104hardcode_into_libs=no 7105 7106# when you set need_version to no, make sure it does not cause -set_version 7107# flags to be left without arguments 7108need_version=unknown 7109 7110case $host_os in 7111aix3*) 7112 version_type=linux 7113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7114 shlibpath_var=LIBPATH 7115 7116 # AIX 3 has no versioning support, so we append a major version to the name. 7117 soname_spec='${libname}${release}${shared_ext}$major' 7118 ;; 7119 7120aix4* | aix5*) 7121 version_type=linux 7122 need_lib_prefix=no 7123 need_version=no 7124 hardcode_into_libs=yes 7125 if test "$host_cpu" = ia64; then 7126 # AIX 5 supports IA64 7127 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7128 shlibpath_var=LD_LIBRARY_PATH 7129 else 7130 # With GCC up to 2.95.x, collect2 would create an import file 7131 # for dependence libraries. The import file would start with 7132 # the line `#! .'. This would cause the generated library to 7133 # depend on `.', always an invalid library. This was fixed in 7134 # development snapshots of GCC prior to 3.0. 7135 case $host_os in 7136 aix4 | aix4.[01] | aix4.[01].*) 7137 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7138 echo ' yes ' 7139 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7140 : 7141 else 7142 can_build_shared=no 7143 fi 7144 ;; 7145 esac 7146 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7147 # soname into executable. Probably we can add versioning support to 7148 # collect2, so additional links can be useful in future. 7149 if test "$aix_use_runtimelinking" = yes; then 7150 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7151 # instead of lib<name>.a to let people know that these are not 7152 # typical AIX shared libraries. 7153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7154 else 7155 # We preserve .a as extension for shared libraries through AIX4.2 7156 # and later when we are not doing run time linking. 7157 library_names_spec='${libname}${release}.a $libname.a' 7158 soname_spec='${libname}${release}${shared_ext}$major' 7159 fi 7160 shlibpath_var=LIBPATH 7161 fi 7162 ;; 7163 7164amigaos*) 7165 library_names_spec='$libname.ixlibrary $libname.a' 7166 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7167 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' 7168 ;; 7169 7170beos*) 7171 library_names_spec='${libname}${shared_ext}' 7172 dynamic_linker="$host_os ld.so" 7173 shlibpath_var=LIBRARY_PATH 7174 ;; 7175 7176bsdi4*) 7177 version_type=linux 7178 need_version=no 7179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7180 soname_spec='${libname}${release}${shared_ext}$major' 7181 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7182 shlibpath_var=LD_LIBRARY_PATH 7183 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7184 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7185 # the default ld.so.conf also contains /usr/contrib/lib and 7186 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7187 # libtool to hard-code these into programs 7188 ;; 7189 7190cygwin* | mingw* | pw32*) 7191 version_type=windows 7192 shrext_cmds=".dll" 7193 need_version=no 7194 need_lib_prefix=no 7195 7196 case $GCC,$host_os in 7197 yes,cygwin* | yes,mingw* | yes,pw32*) 7198 library_names_spec='$libname.dll.a' 7199 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7200 postinstall_cmds='base_file=`basename \${file}`~ 7201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7202 dldir=$destdir/`dirname \$dlpath`~ 7203 test -d \$dldir || mkdir -p \$dldir~ 7204 $install_prog $dir/$dlname \$dldir/$dlname' 7205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7206 dlpath=$dir/\$dldll~ 7207 $rm \$dlpath' 7208 shlibpath_overrides_runpath=yes 7209 7210 case $host_os in 7211 cygwin*) 7212 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7214 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7215 ;; 7216 mingw*) 7217 # MinGW DLLs use traditional 'lib' prefix 7218 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7220 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7221 # It is most probably a Windows format PATH printed by 7222 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7223 # path with ; separators, and with drive letters. We can handle the 7224 # drive letters (cygwin fileutils understands them), so leave them, 7225 # especially as we might pass files found there to a mingw objdump, 7226 # which wouldn't understand a cygwinified path. Ahh. 7227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7228 else 7229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7230 fi 7231 ;; 7232 pw32*) 7233 # pw32 DLLs use 'pw' prefix rather than 'lib' 7234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7235 ;; 7236 esac 7237 ;; 7238 7239 *) 7240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7241 ;; 7242 esac 7243 dynamic_linker='Win32 ld.exe' 7244 # FIXME: first we should search . and the directory the executable is in 7245 shlibpath_var=PATH 7246 ;; 7247 7248darwin* | rhapsody*) 7249 dynamic_linker="$host_os dyld" 7250 version_type=darwin 7251 need_lib_prefix=no 7252 need_version=no 7253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7254 soname_spec='${libname}${release}${major}$shared_ext' 7255 shlibpath_overrides_runpath=yes 7256 shlibpath_var=DYLD_LIBRARY_PATH 7257 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7258 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7259 if test "$GCC" = yes; then 7260 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"` 7261 else 7262 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7263 fi 7264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7265 ;; 7266 7267dgux*) 7268 version_type=linux 7269 need_lib_prefix=no 7270 need_version=no 7271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7272 soname_spec='${libname}${release}${shared_ext}$major' 7273 shlibpath_var=LD_LIBRARY_PATH 7274 ;; 7275 7276freebsd1*) 7277 dynamic_linker=no 7278 ;; 7279 7280kfreebsd*-gnu) 7281 version_type=linux 7282 need_lib_prefix=no 7283 need_version=no 7284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7285 soname_spec='${libname}${release}${shared_ext}$major' 7286 shlibpath_var=LD_LIBRARY_PATH 7287 shlibpath_overrides_runpath=no 7288 hardcode_into_libs=yes 7289 dynamic_linker='GNU ld.so' 7290 ;; 7291 7292freebsd*) 7293 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7294 version_type=freebsd-$objformat 7295 case $version_type in 7296 freebsd-elf*) 7297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7298 need_version=no 7299 need_lib_prefix=no 7300 ;; 7301 freebsd-*) 7302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7303 need_version=yes 7304 ;; 7305 esac 7306 shlibpath_var=LD_LIBRARY_PATH 7307 case $host_os in 7308 freebsd2*) 7309 shlibpath_overrides_runpath=yes 7310 ;; 7311 freebsd3.01* | freebsdelf3.01*) 7312 shlibpath_overrides_runpath=yes 7313 hardcode_into_libs=yes 7314 ;; 7315 *) # from 3.2 on 7316 shlibpath_overrides_runpath=no 7317 hardcode_into_libs=yes 7318 ;; 7319 esac 7320 ;; 7321 7322gnu*) 7323 version_type=linux 7324 need_lib_prefix=no 7325 need_version=no 7326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7327 soname_spec='${libname}${release}${shared_ext}$major' 7328 shlibpath_var=LD_LIBRARY_PATH 7329 hardcode_into_libs=yes 7330 ;; 7331 7332hpux9* | hpux10* | hpux11*) 7333 # Give a soname corresponding to the major version so that dld.sl refuses to 7334 # link against other versions. 7335 version_type=sunos 7336 need_lib_prefix=no 7337 need_version=no 7338 case "$host_cpu" in 7339 ia64*) 7340 shrext_cmds='.so' 7341 hardcode_into_libs=yes 7342 dynamic_linker="$host_os dld.so" 7343 shlibpath_var=LD_LIBRARY_PATH 7344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7346 soname_spec='${libname}${release}${shared_ext}$major' 7347 if test "X$HPUX_IA64_MODE" = X32; then 7348 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7349 else 7350 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7351 fi 7352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7353 ;; 7354 hppa*64*) 7355 shrext_cmds='.sl' 7356 hardcode_into_libs=yes 7357 dynamic_linker="$host_os dld.sl" 7358 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7361 soname_spec='${libname}${release}${shared_ext}$major' 7362 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7364 ;; 7365 *) 7366 shrext_cmds='.sl' 7367 dynamic_linker="$host_os dld.sl" 7368 shlibpath_var=SHLIB_PATH 7369 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7371 soname_spec='${libname}${release}${shared_ext}$major' 7372 ;; 7373 esac 7374 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7375 postinstall_cmds='chmod 555 $lib' 7376 ;; 7377 7378irix5* | irix6* | nonstopux*) 7379 case $host_os in 7380 nonstopux*) version_type=nonstopux ;; 7381 *) 7382 if test "$lt_cv_prog_gnu_ld" = yes; then 7383 version_type=linux 7384 else 7385 version_type=irix 7386 fi ;; 7387 esac 7388 need_lib_prefix=no 7389 need_version=no 7390 soname_spec='${libname}${release}${shared_ext}$major' 7391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7392 case $host_os in 7393 irix5* | nonstopux*) 7394 libsuff= shlibsuff= 7395 ;; 7396 *) 7397 case $LD in # libtool.m4 will add one of these switches to LD 7398 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7399 libsuff= shlibsuff= libmagic=32-bit;; 7400 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7401 libsuff=32 shlibsuff=N32 libmagic=N32;; 7402 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7403 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7404 *) libsuff= shlibsuff= libmagic=never-match;; 7405 esac 7406 ;; 7407 esac 7408 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7409 shlibpath_overrides_runpath=no 7410 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7411 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7412 hardcode_into_libs=yes 7413 ;; 7414 7415# No shared lib support for Linux oldld, aout, or coff. 7416linux*oldld* | linux*aout* | linux*coff*) 7417 dynamic_linker=no 7418 ;; 7419 7420# This must be Linux ELF. 7421linux*) 7422 version_type=linux 7423 need_lib_prefix=no 7424 need_version=no 7425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7426 soname_spec='${libname}${release}${shared_ext}$major' 7427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7428 shlibpath_var=LD_LIBRARY_PATH 7429 shlibpath_overrides_runpath=no 7430 # This implies no fast_install, which is unacceptable. 7431 # Some rework will be needed to allow for fast_install 7432 # before this can be enabled. 7433 hardcode_into_libs=yes 7434 7435 # Append ld.so.conf contents to the search path 7436 if test -f /etc/ld.so.conf; then 7437 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 7438 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 7439 fi 7440 7441 # We used to test for /lib/ld.so.1 and disable shared libraries on 7442 # powerpc, because MkLinux only supported shared libraries with the 7443 # GNU dynamic linker. Since this was broken with cross compilers, 7444 # most powerpc-linux boxes support dynamic linking these days and 7445 # people can always --disable-shared, the test was removed, and we 7446 # assume the GNU/Linux dynamic linker is in use. 7447 dynamic_linker='GNU/Linux ld.so' 7448 ;; 7449 7450netbsdelf*-gnu) 7451 version_type=linux 7452 need_lib_prefix=no 7453 need_version=no 7454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7455 soname_spec='${libname}${release}${shared_ext}$major' 7456 shlibpath_var=LD_LIBRARY_PATH 7457 shlibpath_overrides_runpath=no 7458 hardcode_into_libs=yes 7459 dynamic_linker='NetBSD ld.elf_so' 7460 ;; 7461 7462knetbsd*-gnu) 7463 version_type=linux 7464 need_lib_prefix=no 7465 need_version=no 7466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7467 soname_spec='${libname}${release}${shared_ext}$major' 7468 shlibpath_var=LD_LIBRARY_PATH 7469 shlibpath_overrides_runpath=no 7470 hardcode_into_libs=yes 7471 dynamic_linker='GNU ld.so' 7472 ;; 7473 7474netbsd*) 7475 version_type=sunos 7476 need_lib_prefix=no 7477 need_version=no 7478 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7481 dynamic_linker='NetBSD (a.out) ld.so' 7482 else 7483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7484 soname_spec='${libname}${release}${shared_ext}$major' 7485 dynamic_linker='NetBSD ld.elf_so' 7486 fi 7487 shlibpath_var=LD_LIBRARY_PATH 7488 shlibpath_overrides_runpath=yes 7489 hardcode_into_libs=yes 7490 ;; 7491 7492newsos6) 7493 version_type=linux 7494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7495 shlibpath_var=LD_LIBRARY_PATH 7496 shlibpath_overrides_runpath=yes 7497 ;; 7498 7499nto-qnx*) 7500 version_type=linux 7501 need_lib_prefix=no 7502 need_version=no 7503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7504 soname_spec='${libname}${release}${shared_ext}$major' 7505 shlibpath_var=LD_LIBRARY_PATH 7506 shlibpath_overrides_runpath=yes 7507 ;; 7508 7509openbsd*) 7510 version_type=sunos 7511 need_lib_prefix=no 7512 need_version=yes 7513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7515 shlibpath_var=LD_LIBRARY_PATH 7516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7517 case $host_os in 7518 openbsd2.[89] | openbsd2.[89].*) 7519 shlibpath_overrides_runpath=no 7520 ;; 7521 *) 7522 shlibpath_overrides_runpath=yes 7523 ;; 7524 esac 7525 else 7526 shlibpath_overrides_runpath=yes 7527 fi 7528 ;; 7529 7530os2*) 7531 libname_spec='$name' 7532 shrext_cmds=".dll" 7533 need_lib_prefix=no 7534 library_names_spec='$libname${shared_ext} $libname.a' 7535 dynamic_linker='OS/2 ld.exe' 7536 shlibpath_var=LIBPATH 7537 ;; 7538 7539osf3* | osf4* | osf5*) 7540 version_type=osf 7541 need_lib_prefix=no 7542 need_version=no 7543 soname_spec='${libname}${release}${shared_ext}$major' 7544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7545 shlibpath_var=LD_LIBRARY_PATH 7546 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 7547 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 7548 ;; 7549 7550sco3.2v5*) 7551 version_type=osf 7552 soname_spec='${libname}${release}${shared_ext}$major' 7553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7554 shlibpath_var=LD_LIBRARY_PATH 7555 ;; 7556 7557solaris*) 7558 version_type=linux 7559 need_lib_prefix=no 7560 need_version=no 7561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7562 soname_spec='${libname}${release}${shared_ext}$major' 7563 shlibpath_var=LD_LIBRARY_PATH 7564 shlibpath_overrides_runpath=yes 7565 hardcode_into_libs=yes 7566 # ldd complains unless libraries are executable 7567 postinstall_cmds='chmod +x $lib' 7568 ;; 7569 7570sunos4*) 7571 version_type=sunos 7572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7573 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 7574 shlibpath_var=LD_LIBRARY_PATH 7575 shlibpath_overrides_runpath=yes 7576 if test "$with_gnu_ld" = yes; then 7577 need_lib_prefix=no 7578 fi 7579 need_version=yes 7580 ;; 7581 7582sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7583 version_type=linux 7584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7585 soname_spec='${libname}${release}${shared_ext}$major' 7586 shlibpath_var=LD_LIBRARY_PATH 7587 case $host_vendor in 7588 sni) 7589 shlibpath_overrides_runpath=no 7590 need_lib_prefix=no 7591 export_dynamic_flag_spec='${wl}-Blargedynsym' 7592 runpath_var=LD_RUN_PATH 7593 ;; 7594 siemens) 7595 need_lib_prefix=no 7596 ;; 7597 motorola) 7598 need_lib_prefix=no 7599 need_version=no 7600 shlibpath_overrides_runpath=no 7601 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 7602 ;; 7603 esac 7604 ;; 7605 7606sysv4*MP*) 7607 if test -d /usr/nec ;then 7608 version_type=linux 7609 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 7610 soname_spec='$libname${shared_ext}.$major' 7611 shlibpath_var=LD_LIBRARY_PATH 7612 fi 7613 ;; 7614 7615uts4*) 7616 version_type=linux 7617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7618 soname_spec='${libname}${release}${shared_ext}$major' 7619 shlibpath_var=LD_LIBRARY_PATH 7620 ;; 7621 7622*) 7623 dynamic_linker=no 7624 ;; 7625esac 7626echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7627echo "${ECHO_T}$dynamic_linker" >&6 7628test "$dynamic_linker" = no && can_build_shared=no 7629 7630echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7631echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7632hardcode_action= 7633if test -n "$hardcode_libdir_flag_spec" || \ 7634 test -n "$runpath_var " || \ 7635 test "X$hardcode_automatic"="Xyes" ; then 7636 7637 # We can hardcode non-existant directories. 7638 if test "$hardcode_direct" != no && 7639 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7640 # have to relink, otherwise we might link with an installed library 7641 # when we should be linking with a yet-to-be-installed one 7642 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 7643 test "$hardcode_minus_L" != no; then 7644 # Linking always hardcodes the temporary library directory. 7645 hardcode_action=relink 7646 else 7647 # We can link without hardcoding, and we can hardcode nonexisting dirs. 7648 hardcode_action=immediate 7649 fi 7650else 7651 # We cannot hardcode anything, or else we can only hardcode existing 7652 # directories. 7653 hardcode_action=unsupported 7654fi 7655echo "$as_me:$LINENO: result: $hardcode_action" >&5 7656echo "${ECHO_T}$hardcode_action" >&6 7657 7658if test "$hardcode_action" = relink; then 7659 # Fast installation is not supported 7660 enable_fast_install=no 7661elif test "$shlibpath_overrides_runpath" = yes || 7662 test "$enable_shared" = no; then 7663 # Fast installation is not necessary 7664 enable_fast_install=needless 7665fi 7666 7667striplib= 7668old_striplib= 7669echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7670echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7671if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 7672 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7673 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7674 echo "$as_me:$LINENO: result: yes" >&5 7675echo "${ECHO_T}yes" >&6 7676else 7677# FIXME - insert some real tests, host_os isn't really good enough 7678 case $host_os in 7679 darwin*) 7680 if test -n "$STRIP" ; then 7681 striplib="$STRIP -x" 7682 echo "$as_me:$LINENO: result: yes" >&5 7683echo "${ECHO_T}yes" >&6 7684 else 7685 echo "$as_me:$LINENO: result: no" >&5 7686echo "${ECHO_T}no" >&6 7687fi 7688 ;; 7689 *) 7690 echo "$as_me:$LINENO: result: no" >&5 7691echo "${ECHO_T}no" >&6 7692 ;; 7693 esac 7694fi 7695 7696if test "x$enable_dlopen" != xyes; then 7697 enable_dlopen=unknown 7698 enable_dlopen_self=unknown 7699 enable_dlopen_self_static=unknown 7700else 7701 lt_cv_dlopen=no 7702 lt_cv_dlopen_libs= 7703 7704 case $host_os in 7705 beos*) 7706 lt_cv_dlopen="load_add_on" 7707 lt_cv_dlopen_libs= 7708 lt_cv_dlopen_self=yes 7709 ;; 7710 7711 mingw* | pw32*) 7712 lt_cv_dlopen="LoadLibrary" 7713 lt_cv_dlopen_libs= 7714 ;; 7715 7716 cygwin*) 7717 lt_cv_dlopen="dlopen" 7718 lt_cv_dlopen_libs= 7719 ;; 7720 7721 darwin*) 7722 # if libdl is installed we need to link against it 7723 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7724echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7725if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7726 echo $ECHO_N "(cached) $ECHO_C" >&6 7727else 7728 ac_check_lib_save_LIBS=$LIBS 7729LIBS="-ldl $LIBS" 7730cat >conftest.$ac_ext <<_ACEOF 7731/* confdefs.h. */ 7732_ACEOF 7733cat confdefs.h >>conftest.$ac_ext 7734cat >>conftest.$ac_ext <<_ACEOF 7735/* end confdefs.h. */ 7736 7737/* Override any gcc2 internal prototype to avoid an error. */ 7738#ifdef __cplusplus 7739extern "C" 7740#endif 7741/* We use char because int might match the return type of a gcc2 7742 builtin and then its argument prototype would still apply. */ 7743char dlopen (); 7744int 7745main () 7746{ 7747dlopen (); 7748 ; 7749 return 0; 7750} 7751_ACEOF 7752rm -f conftest.$ac_objext conftest$ac_exeext 7753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7754 (eval $ac_link) 2>conftest.er1 7755 ac_status=$? 7756 grep -v '^ *+' conftest.er1 >conftest.err 7757 rm -f conftest.er1 7758 cat conftest.err >&5 7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7760 (exit $ac_status); } && 7761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7763 (eval $ac_try) 2>&5 7764 ac_status=$? 7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7766 (exit $ac_status); }; } && 7767 { ac_try='test -s conftest$ac_exeext' 7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7769 (eval $ac_try) 2>&5 7770 ac_status=$? 7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7772 (exit $ac_status); }; }; then 7773 ac_cv_lib_dl_dlopen=yes 7774else 7775 echo "$as_me: failed program was:" >&5 7776sed 's/^/| /' conftest.$ac_ext >&5 7777 7778ac_cv_lib_dl_dlopen=no 7779fi 7780rm -f conftest.err conftest.$ac_objext \ 7781 conftest$ac_exeext conftest.$ac_ext 7782LIBS=$ac_check_lib_save_LIBS 7783fi 7784echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7785echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 7786if test $ac_cv_lib_dl_dlopen = yes; then 7787 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 7788else 7789 7790 lt_cv_dlopen="dyld" 7791 lt_cv_dlopen_libs= 7792 lt_cv_dlopen_self=yes 7793 7794fi 7795 7796 ;; 7797 7798 *) 7799 echo "$as_me:$LINENO: checking for shl_load" >&5 7800echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 7801if test "${ac_cv_func_shl_load+set}" = set; then 7802 echo $ECHO_N "(cached) $ECHO_C" >&6 7803else 7804 cat >conftest.$ac_ext <<_ACEOF 7805/* confdefs.h. */ 7806_ACEOF 7807cat confdefs.h >>conftest.$ac_ext 7808cat >>conftest.$ac_ext <<_ACEOF 7809/* end confdefs.h. */ 7810/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 7811 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7812#define shl_load innocuous_shl_load 7813 7814/* System header to define __stub macros and hopefully few prototypes, 7815 which can conflict with char shl_load (); below. 7816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7817 <limits.h> exists even on freestanding compilers. */ 7818 7819#ifdef __STDC__ 7820# include <limits.h> 7821#else 7822# include <assert.h> 7823#endif 7824 7825#undef shl_load 7826 7827/* Override any gcc2 internal prototype to avoid an error. */ 7828#ifdef __cplusplus 7829extern "C" 7830{ 7831#endif 7832/* We use char because int might match the return type of a gcc2 7833 builtin and then its argument prototype would still apply. */ 7834char shl_load (); 7835/* The GNU C library defines this for functions which it implements 7836 to always fail with ENOSYS. Some functions are actually named 7837 something starting with __ and the normal name is an alias. */ 7838#if defined (__stub_shl_load) || defined (__stub___shl_load) 7839choke me 7840#else 7841char (*f) () = shl_load; 7842#endif 7843#ifdef __cplusplus 7844} 7845#endif 7846 7847int 7848main () 7849{ 7850return f != shl_load; 7851 ; 7852 return 0; 7853} 7854_ACEOF 7855rm -f conftest.$ac_objext conftest$ac_exeext 7856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7857 (eval $ac_link) 2>conftest.er1 7858 ac_status=$? 7859 grep -v '^ *+' conftest.er1 >conftest.err 7860 rm -f conftest.er1 7861 cat conftest.err >&5 7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7863 (exit $ac_status); } && 7864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7866 (eval $ac_try) 2>&5 7867 ac_status=$? 7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7869 (exit $ac_status); }; } && 7870 { ac_try='test -s conftest$ac_exeext' 7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7872 (eval $ac_try) 2>&5 7873 ac_status=$? 7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7875 (exit $ac_status); }; }; then 7876 ac_cv_func_shl_load=yes 7877else 7878 echo "$as_me: failed program was:" >&5 7879sed 's/^/| /' conftest.$ac_ext >&5 7880 7881ac_cv_func_shl_load=no 7882fi 7883rm -f conftest.err conftest.$ac_objext \ 7884 conftest$ac_exeext conftest.$ac_ext 7885fi 7886echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 7887echo "${ECHO_T}$ac_cv_func_shl_load" >&6 7888if test $ac_cv_func_shl_load = yes; then 7889 lt_cv_dlopen="shl_load" 7890else 7891 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 7892echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 7893if test "${ac_cv_lib_dld_shl_load+set}" = set; then 7894 echo $ECHO_N "(cached) $ECHO_C" >&6 7895else 7896 ac_check_lib_save_LIBS=$LIBS 7897LIBS="-ldld $LIBS" 7898cat >conftest.$ac_ext <<_ACEOF 7899/* confdefs.h. */ 7900_ACEOF 7901cat confdefs.h >>conftest.$ac_ext 7902cat >>conftest.$ac_ext <<_ACEOF 7903/* end confdefs.h. */ 7904 7905/* Override any gcc2 internal prototype to avoid an error. */ 7906#ifdef __cplusplus 7907extern "C" 7908#endif 7909/* We use char because int might match the return type of a gcc2 7910 builtin and then its argument prototype would still apply. */ 7911char shl_load (); 7912int 7913main () 7914{ 7915shl_load (); 7916 ; 7917 return 0; 7918} 7919_ACEOF 7920rm -f conftest.$ac_objext conftest$ac_exeext 7921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7922 (eval $ac_link) 2>conftest.er1 7923 ac_status=$? 7924 grep -v '^ *+' conftest.er1 >conftest.err 7925 rm -f conftest.er1 7926 cat conftest.err >&5 7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7928 (exit $ac_status); } && 7929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7931 (eval $ac_try) 2>&5 7932 ac_status=$? 7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7934 (exit $ac_status); }; } && 7935 { ac_try='test -s conftest$ac_exeext' 7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7937 (eval $ac_try) 2>&5 7938 ac_status=$? 7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7940 (exit $ac_status); }; }; then 7941 ac_cv_lib_dld_shl_load=yes 7942else 7943 echo "$as_me: failed program was:" >&5 7944sed 's/^/| /' conftest.$ac_ext >&5 7945 7946ac_cv_lib_dld_shl_load=no 7947fi 7948rm -f conftest.err conftest.$ac_objext \ 7949 conftest$ac_exeext conftest.$ac_ext 7950LIBS=$ac_check_lib_save_LIBS 7951fi 7952echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 7953echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 7954if test $ac_cv_lib_dld_shl_load = yes; then 7955 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 7956else 7957 echo "$as_me:$LINENO: checking for dlopen" >&5 7958echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 7959if test "${ac_cv_func_dlopen+set}" = set; then 7960 echo $ECHO_N "(cached) $ECHO_C" >&6 7961else 7962 cat >conftest.$ac_ext <<_ACEOF 7963/* confdefs.h. */ 7964_ACEOF 7965cat confdefs.h >>conftest.$ac_ext 7966cat >>conftest.$ac_ext <<_ACEOF 7967/* end confdefs.h. */ 7968/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 7969 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7970#define dlopen innocuous_dlopen 7971 7972/* System header to define __stub macros and hopefully few prototypes, 7973 which can conflict with char dlopen (); below. 7974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7975 <limits.h> exists even on freestanding compilers. */ 7976 7977#ifdef __STDC__ 7978# include <limits.h> 7979#else 7980# include <assert.h> 7981#endif 7982 7983#undef dlopen 7984 7985/* Override any gcc2 internal prototype to avoid an error. */ 7986#ifdef __cplusplus 7987extern "C" 7988{ 7989#endif 7990/* We use char because int might match the return type of a gcc2 7991 builtin and then its argument prototype would still apply. */ 7992char dlopen (); 7993/* The GNU C library defines this for functions which it implements 7994 to always fail with ENOSYS. Some functions are actually named 7995 something starting with __ and the normal name is an alias. */ 7996#if defined (__stub_dlopen) || defined (__stub___dlopen) 7997choke me 7998#else 7999char (*f) () = dlopen; 8000#endif 8001#ifdef __cplusplus 8002} 8003#endif 8004 8005int 8006main () 8007{ 8008return f != dlopen; 8009 ; 8010 return 0; 8011} 8012_ACEOF 8013rm -f conftest.$ac_objext conftest$ac_exeext 8014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8015 (eval $ac_link) 2>conftest.er1 8016 ac_status=$? 8017 grep -v '^ *+' conftest.er1 >conftest.err 8018 rm -f conftest.er1 8019 cat conftest.err >&5 8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8021 (exit $ac_status); } && 8022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8024 (eval $ac_try) 2>&5 8025 ac_status=$? 8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8027 (exit $ac_status); }; } && 8028 { ac_try='test -s conftest$ac_exeext' 8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8030 (eval $ac_try) 2>&5 8031 ac_status=$? 8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8033 (exit $ac_status); }; }; then 8034 ac_cv_func_dlopen=yes 8035else 8036 echo "$as_me: failed program was:" >&5 8037sed 's/^/| /' conftest.$ac_ext >&5 8038 8039ac_cv_func_dlopen=no 8040fi 8041rm -f conftest.err conftest.$ac_objext \ 8042 conftest$ac_exeext conftest.$ac_ext 8043fi 8044echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8045echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8046if test $ac_cv_func_dlopen = yes; then 8047 lt_cv_dlopen="dlopen" 8048else 8049 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8050echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8051if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8052 echo $ECHO_N "(cached) $ECHO_C" >&6 8053else 8054 ac_check_lib_save_LIBS=$LIBS 8055LIBS="-ldl $LIBS" 8056cat >conftest.$ac_ext <<_ACEOF 8057/* confdefs.h. */ 8058_ACEOF 8059cat confdefs.h >>conftest.$ac_ext 8060cat >>conftest.$ac_ext <<_ACEOF 8061/* end confdefs.h. */ 8062 8063/* Override any gcc2 internal prototype to avoid an error. */ 8064#ifdef __cplusplus 8065extern "C" 8066#endif 8067/* We use char because int might match the return type of a gcc2 8068 builtin and then its argument prototype would still apply. */ 8069char dlopen (); 8070int 8071main () 8072{ 8073dlopen (); 8074 ; 8075 return 0; 8076} 8077_ACEOF 8078rm -f conftest.$ac_objext conftest$ac_exeext 8079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8080 (eval $ac_link) 2>conftest.er1 8081 ac_status=$? 8082 grep -v '^ *+' conftest.er1 >conftest.err 8083 rm -f conftest.er1 8084 cat conftest.err >&5 8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8086 (exit $ac_status); } && 8087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8089 (eval $ac_try) 2>&5 8090 ac_status=$? 8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8092 (exit $ac_status); }; } && 8093 { ac_try='test -s conftest$ac_exeext' 8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8095 (eval $ac_try) 2>&5 8096 ac_status=$? 8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8098 (exit $ac_status); }; }; then 8099 ac_cv_lib_dl_dlopen=yes 8100else 8101 echo "$as_me: failed program was:" >&5 8102sed 's/^/| /' conftest.$ac_ext >&5 8103 8104ac_cv_lib_dl_dlopen=no 8105fi 8106rm -f conftest.err conftest.$ac_objext \ 8107 conftest$ac_exeext conftest.$ac_ext 8108LIBS=$ac_check_lib_save_LIBS 8109fi 8110echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8111echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8112if test $ac_cv_lib_dl_dlopen = yes; then 8113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8114else 8115 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8116echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8117if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8118 echo $ECHO_N "(cached) $ECHO_C" >&6 8119else 8120 ac_check_lib_save_LIBS=$LIBS 8121LIBS="-lsvld $LIBS" 8122cat >conftest.$ac_ext <<_ACEOF 8123/* confdefs.h. */ 8124_ACEOF 8125cat confdefs.h >>conftest.$ac_ext 8126cat >>conftest.$ac_ext <<_ACEOF 8127/* end confdefs.h. */ 8128 8129/* Override any gcc2 internal prototype to avoid an error. */ 8130#ifdef __cplusplus 8131extern "C" 8132#endif 8133/* We use char because int might match the return type of a gcc2 8134 builtin and then its argument prototype would still apply. */ 8135char dlopen (); 8136int 8137main () 8138{ 8139dlopen (); 8140 ; 8141 return 0; 8142} 8143_ACEOF 8144rm -f conftest.$ac_objext conftest$ac_exeext 8145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8146 (eval $ac_link) 2>conftest.er1 8147 ac_status=$? 8148 grep -v '^ *+' conftest.er1 >conftest.err 8149 rm -f conftest.er1 8150 cat conftest.err >&5 8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8152 (exit $ac_status); } && 8153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8155 (eval $ac_try) 2>&5 8156 ac_status=$? 8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8158 (exit $ac_status); }; } && 8159 { ac_try='test -s conftest$ac_exeext' 8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8161 (eval $ac_try) 2>&5 8162 ac_status=$? 8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8164 (exit $ac_status); }; }; then 8165 ac_cv_lib_svld_dlopen=yes 8166else 8167 echo "$as_me: failed program was:" >&5 8168sed 's/^/| /' conftest.$ac_ext >&5 8169 8170ac_cv_lib_svld_dlopen=no 8171fi 8172rm -f conftest.err conftest.$ac_objext \ 8173 conftest$ac_exeext conftest.$ac_ext 8174LIBS=$ac_check_lib_save_LIBS 8175fi 8176echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8177echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8178if test $ac_cv_lib_svld_dlopen = yes; then 8179 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8180else 8181 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8182echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8183if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8184 echo $ECHO_N "(cached) $ECHO_C" >&6 8185else 8186 ac_check_lib_save_LIBS=$LIBS 8187LIBS="-ldld $LIBS" 8188cat >conftest.$ac_ext <<_ACEOF 8189/* confdefs.h. */ 8190_ACEOF 8191cat confdefs.h >>conftest.$ac_ext 8192cat >>conftest.$ac_ext <<_ACEOF 8193/* end confdefs.h. */ 8194 8195/* Override any gcc2 internal prototype to avoid an error. */ 8196#ifdef __cplusplus 8197extern "C" 8198#endif 8199/* We use char because int might match the return type of a gcc2 8200 builtin and then its argument prototype would still apply. */ 8201char dld_link (); 8202int 8203main () 8204{ 8205dld_link (); 8206 ; 8207 return 0; 8208} 8209_ACEOF 8210rm -f conftest.$ac_objext conftest$ac_exeext 8211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8212 (eval $ac_link) 2>conftest.er1 8213 ac_status=$? 8214 grep -v '^ *+' conftest.er1 >conftest.err 8215 rm -f conftest.er1 8216 cat conftest.err >&5 8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8218 (exit $ac_status); } && 8219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8221 (eval $ac_try) 2>&5 8222 ac_status=$? 8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8224 (exit $ac_status); }; } && 8225 { ac_try='test -s conftest$ac_exeext' 8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8227 (eval $ac_try) 2>&5 8228 ac_status=$? 8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8230 (exit $ac_status); }; }; then 8231 ac_cv_lib_dld_dld_link=yes 8232else 8233 echo "$as_me: failed program was:" >&5 8234sed 's/^/| /' conftest.$ac_ext >&5 8235 8236ac_cv_lib_dld_dld_link=no 8237fi 8238rm -f conftest.err conftest.$ac_objext \ 8239 conftest$ac_exeext conftest.$ac_ext 8240LIBS=$ac_check_lib_save_LIBS 8241fi 8242echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8243echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8244if test $ac_cv_lib_dld_dld_link = yes; then 8245 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8246fi 8247 8248 8249fi 8250 8251 8252fi 8253 8254 8255fi 8256 8257 8258fi 8259 8260 8261fi 8262 8263 ;; 8264 esac 8265 8266 if test "x$lt_cv_dlopen" != xno; then 8267 enable_dlopen=yes 8268 else 8269 enable_dlopen=no 8270 fi 8271 8272 case $lt_cv_dlopen in 8273 dlopen) 8274 save_CPPFLAGS="$CPPFLAGS" 8275 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8276 8277 save_LDFLAGS="$LDFLAGS" 8278 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8279 8280 save_LIBS="$LIBS" 8281 LIBS="$lt_cv_dlopen_libs $LIBS" 8282 8283 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8284echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8285if test "${lt_cv_dlopen_self+set}" = set; then 8286 echo $ECHO_N "(cached) $ECHO_C" >&6 8287else 8288 if test "$cross_compiling" = yes; then : 8289 lt_cv_dlopen_self=cross 8290else 8291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8292 lt_status=$lt_dlunknown 8293 cat > conftest.$ac_ext <<EOF 8294#line 8294 "configure" 8295#include "confdefs.h" 8296 8297#if HAVE_DLFCN_H 8298#include <dlfcn.h> 8299#endif 8300 8301#include <stdio.h> 8302 8303#ifdef RTLD_GLOBAL 8304# define LT_DLGLOBAL RTLD_GLOBAL 8305#else 8306# ifdef DL_GLOBAL 8307# define LT_DLGLOBAL DL_GLOBAL 8308# else 8309# define LT_DLGLOBAL 0 8310# endif 8311#endif 8312 8313/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8314 find out it does not work in some platform. */ 8315#ifndef LT_DLLAZY_OR_NOW 8316# ifdef RTLD_LAZY 8317# define LT_DLLAZY_OR_NOW RTLD_LAZY 8318# else 8319# ifdef DL_LAZY 8320# define LT_DLLAZY_OR_NOW DL_LAZY 8321# else 8322# ifdef RTLD_NOW 8323# define LT_DLLAZY_OR_NOW RTLD_NOW 8324# else 8325# ifdef DL_NOW 8326# define LT_DLLAZY_OR_NOW DL_NOW 8327# else 8328# define LT_DLLAZY_OR_NOW 0 8329# endif 8330# endif 8331# endif 8332# endif 8333#endif 8334 8335#ifdef __cplusplus 8336extern "C" void exit (int); 8337#endif 8338 8339void fnord() { int i=42;} 8340int main () 8341{ 8342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8343 int status = $lt_dlunknown; 8344 8345 if (self) 8346 { 8347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8348 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8349 /* dlclose (self); */ 8350 } 8351 8352 exit (status); 8353} 8354EOF 8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8356 (eval $ac_link) 2>&5 8357 ac_status=$? 8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8359 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8360 (./conftest; exit; ) 2>/dev/null 8361 lt_status=$? 8362 case x$lt_status in 8363 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8364 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8365 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 8366 esac 8367 else : 8368 # compilation failed 8369 lt_cv_dlopen_self=no 8370 fi 8371fi 8372rm -fr conftest* 8373 8374 8375fi 8376echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8377echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8378 8379 if test "x$lt_cv_dlopen_self" = xyes; then 8380 LDFLAGS="$LDFLAGS $link_static_flag" 8381 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8382echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8383if test "${lt_cv_dlopen_self_static+set}" = set; then 8384 echo $ECHO_N "(cached) $ECHO_C" >&6 8385else 8386 if test "$cross_compiling" = yes; then : 8387 lt_cv_dlopen_self_static=cross 8388else 8389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8390 lt_status=$lt_dlunknown 8391 cat > conftest.$ac_ext <<EOF 8392#line 8392 "configure" 8393#include "confdefs.h" 8394 8395#if HAVE_DLFCN_H 8396#include <dlfcn.h> 8397#endif 8398 8399#include <stdio.h> 8400 8401#ifdef RTLD_GLOBAL 8402# define LT_DLGLOBAL RTLD_GLOBAL 8403#else 8404# ifdef DL_GLOBAL 8405# define LT_DLGLOBAL DL_GLOBAL 8406# else 8407# define LT_DLGLOBAL 0 8408# endif 8409#endif 8410 8411/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8412 find out it does not work in some platform. */ 8413#ifndef LT_DLLAZY_OR_NOW 8414# ifdef RTLD_LAZY 8415# define LT_DLLAZY_OR_NOW RTLD_LAZY 8416# else 8417# ifdef DL_LAZY 8418# define LT_DLLAZY_OR_NOW DL_LAZY 8419# else 8420# ifdef RTLD_NOW 8421# define LT_DLLAZY_OR_NOW RTLD_NOW 8422# else 8423# ifdef DL_NOW 8424# define LT_DLLAZY_OR_NOW DL_NOW 8425# else 8426# define LT_DLLAZY_OR_NOW 0 8427# endif 8428# endif 8429# endif 8430# endif 8431#endif 8432 8433#ifdef __cplusplus 8434extern "C" void exit (int); 8435#endif 8436 8437void fnord() { int i=42;} 8438int main () 8439{ 8440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8441 int status = $lt_dlunknown; 8442 8443 if (self) 8444 { 8445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8447 /* dlclose (self); */ 8448 } 8449 8450 exit (status); 8451} 8452EOF 8453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8454 (eval $ac_link) 2>&5 8455 ac_status=$? 8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8457 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8458 (./conftest; exit; ) 2>/dev/null 8459 lt_status=$? 8460 case x$lt_status in 8461 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8462 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8463 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 8464 esac 8465 else : 8466 # compilation failed 8467 lt_cv_dlopen_self_static=no 8468 fi 8469fi 8470rm -fr conftest* 8471 8472 8473fi 8474echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8475echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 8476 fi 8477 8478 CPPFLAGS="$save_CPPFLAGS" 8479 LDFLAGS="$save_LDFLAGS" 8480 LIBS="$save_LIBS" 8481 ;; 8482 esac 8483 8484 case $lt_cv_dlopen_self in 8485 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8486 *) enable_dlopen_self=unknown ;; 8487 esac 8488 8489 case $lt_cv_dlopen_self_static in 8490 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8491 *) enable_dlopen_self_static=unknown ;; 8492 esac 8493fi 8494 8495 8496# Report which librarie types wil actually be built 8497echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8498echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8499echo "$as_me:$LINENO: result: $can_build_shared" >&5 8500echo "${ECHO_T}$can_build_shared" >&6 8501 8502echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8503echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8504test "$can_build_shared" = "no" && enable_shared=no 8505 8506# On AIX, shared libraries and static libraries use the same namespace, and 8507# are all built from PIC. 8508case "$host_os" in 8509aix3*) 8510 test "$enable_shared" = yes && enable_static=no 8511 if test -n "$RANLIB"; then 8512 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8513 postinstall_cmds='$RANLIB $lib' 8514 fi 8515 ;; 8516 8517aix4* | aix5*) 8518 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8519 test "$enable_shared" = yes && enable_static=no 8520 fi 8521 ;; 8522 darwin* | rhapsody*) 8523 if test "$GCC" = yes; then 8524 archive_cmds_need_lc=no 8525 case "$host_os" in 8526 rhapsody* | darwin1.[012]) 8527 allow_undefined_flag='-undefined suppress' 8528 ;; 8529 *) # Darwin 1.3 on 8530 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8531 allow_undefined_flag='-flat_namespace -undefined suppress' 8532 else 8533 case ${MACOSX_DEPLOYMENT_TARGET} in 8534 10.[012]) 8535 allow_undefined_flag='-flat_namespace -undefined suppress' 8536 ;; 8537 10.*) 8538 allow_undefined_flag='-undefined dynamic_lookup' 8539 ;; 8540 esac 8541 fi 8542 ;; 8543 esac 8544 output_verbose_link_cmd='echo' 8545 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 8546 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8547 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 8548 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}' 8549 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}' 8550 hardcode_direct=no 8551 hardcode_automatic=yes 8552 hardcode_shlibpath_var=unsupported 8553 whole_archive_flag_spec='-all_load $convenience' 8554 link_all_deplibs=yes 8555 else 8556 ld_shlibs=no 8557 fi 8558 ;; 8559esac 8560echo "$as_me:$LINENO: result: $enable_shared" >&5 8561echo "${ECHO_T}$enable_shared" >&6 8562 8563echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8564echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8565# Make sure either enable_shared or enable_static is yes. 8566test "$enable_shared" = yes || enable_static=yes 8567echo "$as_me:$LINENO: result: $enable_static" >&5 8568echo "${ECHO_T}$enable_static" >&6 8569 8570# The else clause should only fire when bootstrapping the 8571# libtool distribution, otherwise you forgot to ship ltmain.sh 8572# with your package, and you will get complaints that there are 8573# no rules to generate ltmain.sh. 8574if test -f "$ltmain"; then 8575 # See if we are running on zsh, and set the options which allow our commands through 8576 # without removal of \ escapes. 8577 if test -n "${ZSH_VERSION+set}" ; then 8578 setopt NO_GLOB_SUBST 8579 fi 8580 # Now quote all the things that may contain metacharacters while being 8581 # careful not to overquote the AC_SUBSTed values. We take copies of the 8582 # variables and quote the copies for generation of the libtool script. 8583 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 8584 SED SHELL STRIP \ 8585 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 8586 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 8587 deplibs_check_method reload_flag reload_cmds need_locks \ 8588 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 8589 lt_cv_sys_global_symbol_to_c_name_address \ 8590 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 8591 old_postinstall_cmds old_postuninstall_cmds \ 8592 compiler \ 8593 CC \ 8594 LD \ 8595 lt_prog_compiler_wl \ 8596 lt_prog_compiler_pic \ 8597 lt_prog_compiler_static \ 8598 lt_prog_compiler_no_builtin_flag \ 8599 export_dynamic_flag_spec \ 8600 thread_safe_flag_spec \ 8601 whole_archive_flag_spec \ 8602 enable_shared_with_static_runtimes \ 8603 old_archive_cmds \ 8604 old_archive_from_new_cmds \ 8605 predep_objects \ 8606 postdep_objects \ 8607 predeps \ 8608 postdeps \ 8609 compiler_lib_search_path \ 8610 archive_cmds \ 8611 archive_expsym_cmds \ 8612 postinstall_cmds \ 8613 postuninstall_cmds \ 8614 old_archive_from_expsyms_cmds \ 8615 allow_undefined_flag \ 8616 no_undefined_flag \ 8617 export_symbols_cmds \ 8618 hardcode_libdir_flag_spec \ 8619 hardcode_libdir_flag_spec_ld \ 8620 hardcode_libdir_separator \ 8621 hardcode_automatic \ 8622 module_cmds \ 8623 module_expsym_cmds \ 8624 lt_cv_prog_compiler_c_o \ 8625 exclude_expsyms \ 8626 include_expsyms; do 8627 8628 case $var in 8629 old_archive_cmds | \ 8630 old_archive_from_new_cmds | \ 8631 archive_cmds | \ 8632 archive_expsym_cmds | \ 8633 module_cmds | \ 8634 module_expsym_cmds | \ 8635 old_archive_from_expsyms_cmds | \ 8636 export_symbols_cmds | \ 8637 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 8638 postinstall_cmds | postuninstall_cmds | \ 8639 old_postinstall_cmds | old_postuninstall_cmds | \ 8640 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 8641 # Double-quote double-evaled strings. 8642 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 8643 ;; 8644 *) 8645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 8646 ;; 8647 esac 8648 done 8649 8650 case $lt_echo in 8651 *'\$0 --fallback-echo"') 8652 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 8653 ;; 8654 esac 8655 8656cfgfile="${ofile}T" 8657 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 8658 $rm -f "$cfgfile" 8659 { echo "$as_me:$LINENO: creating $ofile" >&5 8660echo "$as_me: creating $ofile" >&6;} 8661 8662 cat <<__EOF__ >> "$cfgfile" 8663#! $SHELL 8664 8665# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 8666# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 8667# NOTE: Changes made to this file will be lost: look at ltmain.sh. 8668# 8669# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 8670# Free Software Foundation, Inc. 8671# 8672# This file is part of GNU Libtool: 8673# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 8674# 8675# This program is free software; you can redistribute it and/or modify 8676# it under the terms of the GNU General Public License as published by 8677# the Free Software Foundation; either version 2 of the License, or 8678# (at your option) any later version. 8679# 8680# This program is distributed in the hope that it will be useful, but 8681# WITHOUT ANY WARRANTY; without even the implied warranty of 8682# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8683# General Public License for more details. 8684# 8685# You should have received a copy of the GNU General Public License 8686# along with this program; if not, write to the Free Software 8687# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8688# 8689# As a special exception to the GNU General Public License, if you 8690# distribute this file as part of a program that contains a 8691# configuration script generated by Autoconf, you may include it under 8692# the same distribution terms that you use for the rest of that program. 8693 8694# A sed program that does not truncate output. 8695SED=$lt_SED 8696 8697# Sed that helps us avoid accidentally triggering echo(1) options like -n. 8698Xsed="$SED -e s/^X//" 8699 8700# The HP-UX ksh and POSIX shell print the target directory to stdout 8701# if CDPATH is set. 8702if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 8703 8704# The names of the tagged configurations supported by this script. 8705available_tags= 8706 8707# ### BEGIN LIBTOOL CONFIG 8708 8709# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8710 8711# Shell to use when invoking shell scripts. 8712SHELL=$lt_SHELL 8713 8714# Whether or not to build shared libraries. 8715build_libtool_libs=$enable_shared 8716 8717# Whether or not to build static libraries. 8718build_old_libs=$enable_static 8719 8720# Whether or not to add -lc for building shared libraries. 8721build_libtool_need_lc=$archive_cmds_need_lc 8722 8723# Whether or not to disallow shared libs when runtime libs are static 8724allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 8725 8726# Whether or not to optimize for fast installation. 8727fast_install=$enable_fast_install 8728 8729# The host system. 8730host_alias=$host_alias 8731host=$host 8732 8733# An echo program that does not interpret backslashes. 8734echo=$lt_echo 8735 8736# The archiver. 8737AR=$lt_AR 8738AR_FLAGS=$lt_AR_FLAGS 8739 8740# A C compiler. 8741LTCC=$lt_LTCC 8742 8743# A language-specific compiler. 8744CC=$lt_compiler 8745 8746# Is the compiler the GNU C compiler? 8747with_gcc=$GCC 8748 8749# An ERE matcher. 8750EGREP=$lt_EGREP 8751 8752# The linker used to build libraries. 8753LD=$lt_LD 8754 8755# Whether we need hard or soft links. 8756LN_S=$lt_LN_S 8757 8758# A BSD-compatible nm program. 8759NM=$lt_NM 8760 8761# A symbol stripping program 8762STRIP=$lt_STRIP 8763 8764# Used to examine libraries when file_magic_cmd begins "file" 8765MAGIC_CMD=$MAGIC_CMD 8766 8767# Used on cygwin: DLL creation program. 8768DLLTOOL="$DLLTOOL" 8769 8770# Used on cygwin: object dumper. 8771OBJDUMP="$OBJDUMP" 8772 8773# Used on cygwin: assembler. 8774AS="$AS" 8775 8776# The name of the directory that contains temporary libtool files. 8777objdir=$objdir 8778 8779# How to create reloadable object files. 8780reload_flag=$lt_reload_flag 8781reload_cmds=$lt_reload_cmds 8782 8783# How to pass a linker flag through the compiler. 8784wl=$lt_lt_prog_compiler_wl 8785 8786# Object file suffix (normally "o"). 8787objext="$ac_objext" 8788 8789# Old archive suffix (normally "a"). 8790libext="$libext" 8791 8792# Shared library suffix (normally ".so"). 8793shrext_cmds='$shrext_cmds' 8794 8795# Executable file suffix (normally ""). 8796exeext="$exeext" 8797 8798# Additional compiler flags for building library objects. 8799pic_flag=$lt_lt_prog_compiler_pic 8800pic_mode=$pic_mode 8801 8802# What is the maximum length of a command? 8803max_cmd_len=$lt_cv_sys_max_cmd_len 8804 8805# Does compiler simultaneously support -c and -o options? 8806compiler_c_o=$lt_lt_cv_prog_compiler_c_o 8807 8808# Must we lock files when doing compilation ? 8809need_locks=$lt_need_locks 8810 8811# Do we need the lib prefix for modules? 8812need_lib_prefix=$need_lib_prefix 8813 8814# Do we need a version for libraries? 8815need_version=$need_version 8816 8817# Whether dlopen is supported. 8818dlopen_support=$enable_dlopen 8819 8820# Whether dlopen of programs is supported. 8821dlopen_self=$enable_dlopen_self 8822 8823# Whether dlopen of statically linked programs is supported. 8824dlopen_self_static=$enable_dlopen_self_static 8825 8826# Compiler flag to prevent dynamic linking. 8827link_static_flag=$lt_lt_prog_compiler_static 8828 8829# Compiler flag to turn off builtin functions. 8830no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 8831 8832# Compiler flag to allow reflexive dlopens. 8833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 8834 8835# Compiler flag to generate shared objects directly from archives. 8836whole_archive_flag_spec=$lt_whole_archive_flag_spec 8837 8838# Compiler flag to generate thread-safe objects. 8839thread_safe_flag_spec=$lt_thread_safe_flag_spec 8840 8841# Library versioning type. 8842version_type=$version_type 8843 8844# Format of library name prefix. 8845libname_spec=$lt_libname_spec 8846 8847# List of archive names. First name is the real one, the rest are links. 8848# The last name is the one that the linker finds with -lNAME. 8849library_names_spec=$lt_library_names_spec 8850 8851# The coded name of the library, if different from the real name. 8852soname_spec=$lt_soname_spec 8853 8854# Commands used to build and install an old-style archive. 8855RANLIB=$lt_RANLIB 8856old_archive_cmds=$lt_old_archive_cmds 8857old_postinstall_cmds=$lt_old_postinstall_cmds 8858old_postuninstall_cmds=$lt_old_postuninstall_cmds 8859 8860# Create an old-style archive from a shared archive. 8861old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 8862 8863# Create a temporary old-style archive to link instead of a shared archive. 8864old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 8865 8866# Commands used to build and install a shared archive. 8867archive_cmds=$lt_archive_cmds 8868archive_expsym_cmds=$lt_archive_expsym_cmds 8869postinstall_cmds=$lt_postinstall_cmds 8870postuninstall_cmds=$lt_postuninstall_cmds 8871 8872# Commands used to build a loadable module (assumed same as above if empty) 8873module_cmds=$lt_module_cmds 8874module_expsym_cmds=$lt_module_expsym_cmds 8875 8876# Commands to strip libraries. 8877old_striplib=$lt_old_striplib 8878striplib=$lt_striplib 8879 8880# Dependencies to place before the objects being linked to create a 8881# shared library. 8882predep_objects=$lt_predep_objects 8883 8884# Dependencies to place after the objects being linked to create a 8885# shared library. 8886postdep_objects=$lt_postdep_objects 8887 8888# Dependencies to place before the objects being linked to create a 8889# shared library. 8890predeps=$lt_predeps 8891 8892# Dependencies to place after the objects being linked to create a 8893# shared library. 8894postdeps=$lt_postdeps 8895 8896# The library search path used internally by the compiler when linking 8897# a shared library. 8898compiler_lib_search_path=$lt_compiler_lib_search_path 8899 8900# Method to check whether dependent libraries are shared objects. 8901deplibs_check_method=$lt_deplibs_check_method 8902 8903# Command to use when deplibs_check_method == file_magic. 8904file_magic_cmd=$lt_file_magic_cmd 8905 8906# Flag that allows shared libraries with undefined symbols to be built. 8907allow_undefined_flag=$lt_allow_undefined_flag 8908 8909# Flag that forces no undefined symbols. 8910no_undefined_flag=$lt_no_undefined_flag 8911 8912# Commands used to finish a libtool library installation in a directory. 8913finish_cmds=$lt_finish_cmds 8914 8915# Same as above, but a single script fragment to be evaled but not shown. 8916finish_eval=$lt_finish_eval 8917 8918# Take the output of nm and produce a listing of raw symbols and C names. 8919global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 8920 8921# Transform the output of nm in a proper C declaration 8922global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 8923 8924# Transform the output of nm in a C name address pair 8925global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 8926 8927# This is the shared library runtime path variable. 8928runpath_var=$runpath_var 8929 8930# This is the shared library path variable. 8931shlibpath_var=$shlibpath_var 8932 8933# Is shlibpath searched before the hard-coded library search path? 8934shlibpath_overrides_runpath=$shlibpath_overrides_runpath 8935 8936# How to hardcode a shared library path into an executable. 8937hardcode_action=$hardcode_action 8938 8939# Whether we should hardcode library paths into libraries. 8940hardcode_into_libs=$hardcode_into_libs 8941 8942# Flag to hardcode \$libdir into a binary during linking. 8943# This must work even if \$libdir does not exist. 8944hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 8945 8946# If ld is used when linking, flag to hardcode \$libdir into 8947# a binary during linking. This must work even if \$libdir does 8948# not exist. 8949hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 8950 8951# Whether we need a single -rpath flag with a separated argument. 8952hardcode_libdir_separator=$lt_hardcode_libdir_separator 8953 8954# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 8955# resulting binary. 8956hardcode_direct=$hardcode_direct 8957 8958# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 8959# resulting binary. 8960hardcode_minus_L=$hardcode_minus_L 8961 8962# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 8963# the resulting binary. 8964hardcode_shlibpath_var=$hardcode_shlibpath_var 8965 8966# Set to yes if building a shared library automatically hardcodes DIR into the library 8967# and all subsequent libraries and executables linked against it. 8968hardcode_automatic=$hardcode_automatic 8969 8970# Variables whose values should be saved in libtool wrapper scripts and 8971# restored at relink time. 8972variables_saved_for_relink="$variables_saved_for_relink" 8973 8974# Whether libtool must link a program against all its dependency libraries. 8975link_all_deplibs=$link_all_deplibs 8976 8977# Compile-time system search path for libraries 8978sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 8979 8980# Run-time system search path for libraries 8981sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 8982 8983# Fix the shell variable \$srcfile for the compiler. 8984fix_srcfile_path="$fix_srcfile_path" 8985 8986# Set to yes if exported symbols are required. 8987always_export_symbols=$always_export_symbols 8988 8989# The commands to list exported symbols. 8990export_symbols_cmds=$lt_export_symbols_cmds 8991 8992# The commands to extract the exported symbol list from a shared archive. 8993extract_expsyms_cmds=$lt_extract_expsyms_cmds 8994 8995# Symbols that should not be listed in the preloaded symbols. 8996exclude_expsyms=$lt_exclude_expsyms 8997 8998# Symbols that must always be exported. 8999include_expsyms=$lt_include_expsyms 9000 9001# ### END LIBTOOL CONFIG 9002 9003__EOF__ 9004 9005 9006 case $host_os in 9007 aix3*) 9008 cat <<\EOF >> "$cfgfile" 9009 9010# AIX sometimes has problems with the GCC collect2 program. For some 9011# reason, if we set the COLLECT_NAMES environment variable, the problems 9012# vanish in a puff of smoke. 9013if test "X${COLLECT_NAMES+set}" != Xset; then 9014 COLLECT_NAMES= 9015 export COLLECT_NAMES 9016fi 9017EOF 9018 ;; 9019 esac 9020 9021 # We use sed instead of cat because bash on DJGPP gets confused if 9022 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9023 # text mode, it properly converts lines to CR/LF. This bash problem 9024 # is reportedly fixed, but why not run on old versions too? 9025 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9026 9027 mv -f "$cfgfile" "$ofile" || \ 9028 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9029 chmod +x "$ofile" 9030 9031else 9032 # If there is no Makefile yet, we rely on a make rule to execute 9033 # `config.status --recheck' to rerun these tests and create the 9034 # libtool script then. 9035 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9036 if test -f "$ltmain_in"; then 9037 test -f Makefile && make "$ltmain" 9038 fi 9039fi 9040 9041 9042ac_ext=c 9043ac_cpp='$CPP $CPPFLAGS' 9044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9046ac_compiler_gnu=$ac_cv_c_compiler_gnu 9047 9048CC="$lt_save_CC" 9049 9050 9051# Check whether --with-tags or --without-tags was given. 9052if test "${with_tags+set}" = set; then 9053 withval="$with_tags" 9054 tagnames="$withval" 9055fi; 9056 9057if test -f "$ltmain" && test -n "$tagnames"; then 9058 if test ! -f "${ofile}"; then 9059 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9060echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9061 fi 9062 9063 if test -z "$LTCC"; then 9064 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9065 if test -z "$LTCC"; then 9066 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9067echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9068 else 9069 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9070echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9071 fi 9072 fi 9073 9074 # Extract list of available tagged configurations in $ofile. 9075 # Note that this assumes the entire list is on one line. 9076 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9077 9078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9079 for tagname in $tagnames; do 9080 IFS="$lt_save_ifs" 9081 # Check whether tagname contains only valid characters 9082 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9083 "") ;; 9084 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9085echo "$as_me: error: invalid tag name: $tagname" >&2;} 9086 { (exit 1); exit 1; }; } 9087 ;; 9088 esac 9089 9090 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9091 then 9092 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9093echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9094 { (exit 1); exit 1; }; } 9095 fi 9096 9097 # Update the list of available tags. 9098 if test -n "$tagname"; then 9099 echo appending configuration tag \"$tagname\" to $ofile 9100 9101 case $tagname in 9102 CXX) 9103 if test -n "$CXX" && test "X$CXX" != "Xno"; then 9104 ac_ext=cc 9105ac_cpp='$CXXCPP $CPPFLAGS' 9106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9109 9110 9111 9112 9113archive_cmds_need_lc_CXX=no 9114allow_undefined_flag_CXX= 9115always_export_symbols_CXX=no 9116archive_expsym_cmds_CXX= 9117export_dynamic_flag_spec_CXX= 9118hardcode_direct_CXX=no 9119hardcode_libdir_flag_spec_CXX= 9120hardcode_libdir_flag_spec_ld_CXX= 9121hardcode_libdir_separator_CXX= 9122hardcode_minus_L_CXX=no 9123hardcode_automatic_CXX=no 9124module_cmds_CXX= 9125module_expsym_cmds_CXX= 9126link_all_deplibs_CXX=unknown 9127old_archive_cmds_CXX=$old_archive_cmds 9128no_undefined_flag_CXX= 9129whole_archive_flag_spec_CXX= 9130enable_shared_with_static_runtimes_CXX=no 9131 9132# Dependencies to place before and after the object being linked: 9133predep_objects_CXX= 9134postdep_objects_CXX= 9135predeps_CXX= 9136postdeps_CXX= 9137compiler_lib_search_path_CXX= 9138 9139# Source file extension for C++ test sources. 9140ac_ext=cc 9141 9142# Object file extension for compiled C++ test sources. 9143objext=o 9144objext_CXX=$objext 9145 9146# Code to be used in simple compile tests 9147lt_simple_compile_test_code="int some_variable = 0;\n" 9148 9149# Code to be used in simple link tests 9150lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9151 9152# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9153 9154# If no C compiler was specified, use CC. 9155LTCC=${LTCC-"$CC"} 9156 9157# Allow CC to be a program name with arguments. 9158compiler=$CC 9159 9160 9161# Allow CC to be a program name with arguments. 9162lt_save_CC=$CC 9163lt_save_LD=$LD 9164lt_save_GCC=$GCC 9165GCC=$GXX 9166lt_save_with_gnu_ld=$with_gnu_ld 9167lt_save_path_LD=$lt_cv_path_LD 9168if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9169 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9170else 9171 unset lt_cv_prog_gnu_ld 9172fi 9173if test -n "${lt_cv_path_LDCXX+set}"; then 9174 lt_cv_path_LD=$lt_cv_path_LDCXX 9175else 9176 unset lt_cv_path_LD 9177fi 9178test -z "${LDCXX+set}" || LD=$LDCXX 9179CC=${CXX-"c++"} 9180compiler=$CC 9181compiler_CXX=$CC 9182cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 9183 9184# We don't want -fno-exception wen compiling C++ code, so set the 9185# no_builtin_flag separately 9186if test "$GXX" = yes; then 9187 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9188else 9189 lt_prog_compiler_no_builtin_flag_CXX= 9190fi 9191 9192if test "$GXX" = yes; then 9193 # Set up default GNU C++ configuration 9194 9195 9196# Check whether --with-gnu-ld or --without-gnu-ld was given. 9197if test "${with_gnu_ld+set}" = set; then 9198 withval="$with_gnu_ld" 9199 test "$withval" = no || with_gnu_ld=yes 9200else 9201 with_gnu_ld=no 9202fi; 9203ac_prog=ld 9204if test "$GCC" = yes; then 9205 # Check if gcc -print-prog-name=ld gives a path. 9206 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9207echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9208 case $host in 9209 *-*-mingw*) 9210 # gcc leaves a trailing carriage return which upsets mingw 9211 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9212 *) 9213 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9214 esac 9215 case $ac_prog in 9216 # Accept absolute paths. 9217 [\\/]* | ?:[\\/]*) 9218 re_direlt='/[^/][^/]*/\.\./' 9219 # Canonicalize the pathname of ld 9220 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9221 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9222 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9223 done 9224 test -z "$LD" && LD="$ac_prog" 9225 ;; 9226 "") 9227 # If it fails, then pretend we aren't using GCC. 9228 ac_prog=ld 9229 ;; 9230 *) 9231 # If it is relative, then search for the first ld in PATH. 9232 with_gnu_ld=unknown 9233 ;; 9234 esac 9235elif test "$with_gnu_ld" = yes; then 9236 echo "$as_me:$LINENO: checking for GNU ld" >&5 9237echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9238else 9239 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9240echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9241fi 9242if test "${lt_cv_path_LD+set}" = set; then 9243 echo $ECHO_N "(cached) $ECHO_C" >&6 9244else 9245 if test -z "$LD"; then 9246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9247 for ac_dir in $PATH; do 9248 IFS="$lt_save_ifs" 9249 test -z "$ac_dir" && ac_dir=. 9250 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9251 lt_cv_path_LD="$ac_dir/$ac_prog" 9252 # Check to see if the program is GNU ld. I'd rather use --version, 9253 # but apparently some GNU ld's only accept -v. 9254 # Break only if it was the GNU/non-GNU ld that we prefer. 9255 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9256 *GNU* | *'with BFD'*) 9257 test "$with_gnu_ld" != no && break 9258 ;; 9259 *) 9260 test "$with_gnu_ld" != yes && break 9261 ;; 9262 esac 9263 fi 9264 done 9265 IFS="$lt_save_ifs" 9266else 9267 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9268fi 9269fi 9270 9271LD="$lt_cv_path_LD" 9272if test -n "$LD"; then 9273 echo "$as_me:$LINENO: result: $LD" >&5 9274echo "${ECHO_T}$LD" >&6 9275else 9276 echo "$as_me:$LINENO: result: no" >&5 9277echo "${ECHO_T}no" >&6 9278fi 9279test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9280echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9281 { (exit 1); exit 1; }; } 9282echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9283echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9284if test "${lt_cv_prog_gnu_ld+set}" = set; then 9285 echo $ECHO_N "(cached) $ECHO_C" >&6 9286else 9287 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9288case `$LD -v 2>&1 </dev/null` in 9289*GNU* | *'with BFD'*) 9290 lt_cv_prog_gnu_ld=yes 9291 ;; 9292*) 9293 lt_cv_prog_gnu_ld=no 9294 ;; 9295esac 9296fi 9297echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9298echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9299with_gnu_ld=$lt_cv_prog_gnu_ld 9300 9301 9302 9303 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9304 # archiving commands below assume that GNU ld is being used. 9305 if test "$with_gnu_ld" = yes; then 9306 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9307 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' 9308 9309 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9310 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9311 9312 # If archive_cmds runs LD, not CC, wlarc should be empty 9313 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9314 # investigate it a little bit more. (MM) 9315 wlarc='${wl}' 9316 9317 # ancient GNU ld didn't support --whole-archive et. al. 9318 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9319 grep 'no-whole-archive' > /dev/null; then 9320 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9321 else 9322 whole_archive_flag_spec_CXX= 9323 fi 9324 else 9325 with_gnu_ld=no 9326 wlarc= 9327 9328 # A generic and very simple default shared library creation 9329 # command for GNU C++ for the case where it uses the native 9330 # linker, instead of GNU ld. If possible, this setting should 9331 # overridden to take advantage of the native linker features on 9332 # the platform it is being used on. 9333 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9334 fi 9335 9336 # Commands to make compiler produce verbose output that lists 9337 # what "hidden" libraries, object files and flags are used when 9338 # linking a shared library. 9339 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9340 9341else 9342 GXX=no 9343 with_gnu_ld=no 9344 wlarc= 9345fi 9346 9347# PORTME: fill in a description of your system's C++ link characteristics 9348echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9349echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9350ld_shlibs_CXX=yes 9351case $host_os in 9352 aix3*) 9353 # FIXME: insert proper C++ library support 9354 ld_shlibs_CXX=no 9355 ;; 9356 aix4* | aix5*) 9357 if test "$host_cpu" = ia64; then 9358 # On IA64, the linker does run time linking by default, so we don't 9359 # have to do anything special. 9360 aix_use_runtimelinking=no 9361 exp_sym_flag='-Bexport' 9362 no_entry_flag="" 9363 else 9364 aix_use_runtimelinking=no 9365 9366 # Test if we are trying to use run time linking or normal 9367 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9368 # need to do runtime linking. 9369 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9370 for ld_flag in $LDFLAGS; do 9371 case $ld_flag in 9372 *-brtl*) 9373 aix_use_runtimelinking=yes 9374 break 9375 ;; 9376 esac 9377 done 9378 esac 9379 9380 exp_sym_flag='-bexport' 9381 no_entry_flag='-bnoentry' 9382 fi 9383 9384 # When large executables or shared objects are built, AIX ld can 9385 # have problems creating the table of contents. If linking a library 9386 # or program results in "error TOC overflow" add -mminimal-toc to 9387 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9388 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9389 9390 archive_cmds_CXX='' 9391 hardcode_direct_CXX=yes 9392 hardcode_libdir_separator_CXX=':' 9393 link_all_deplibs_CXX=yes 9394 9395 if test "$GXX" = yes; then 9396 case $host_os in aix4.012|aix4.012.*) 9397 # We only want to do this on AIX 4.2 and lower, the check 9398 # below for broken collect2 doesn't work under 4.3+ 9399 collect2name=`${CC} -print-prog-name=collect2` 9400 if test -f "$collect2name" && \ 9401 strings "$collect2name" | grep resolve_lib_name >/dev/null 9402 then 9403 # We have reworked collect2 9404 hardcode_direct_CXX=yes 9405 else 9406 # We have old collect2 9407 hardcode_direct_CXX=unsupported 9408 # It fails to find uninstalled libraries when the uninstalled 9409 # path is not listed in the libpath. Setting hardcode_minus_L 9410 # to unsupported forces relinking 9411 hardcode_minus_L_CXX=yes 9412 hardcode_libdir_flag_spec_CXX='-L$libdir' 9413 hardcode_libdir_separator_CXX= 9414 fi 9415 esac 9416 shared_flag='-shared' 9417 else 9418 # not using gcc 9419 if test "$host_cpu" = ia64; then 9420 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9421 # chokes on -Wl,-G. The following line is correct: 9422 shared_flag='-G' 9423 else 9424 if test "$aix_use_runtimelinking" = yes; then 9425 shared_flag='${wl}-G' 9426 else 9427 shared_flag='${wl}-bM:SRE' 9428 fi 9429 fi 9430 fi 9431 9432 # It seems that -bexpall does not export symbols beginning with 9433 # underscore (_), so it is better to generate a list of symbols to export. 9434 always_export_symbols_CXX=yes 9435 if test "$aix_use_runtimelinking" = yes; then 9436 # Warning - without using the other runtime loading flags (-brtl), 9437 # -berok will link without error, but may produce a broken library. 9438 allow_undefined_flag_CXX='-berok' 9439 # Determine the default libpath from the value encoded in an empty executable. 9440 cat >conftest.$ac_ext <<_ACEOF 9441/* confdefs.h. */ 9442_ACEOF 9443cat confdefs.h >>conftest.$ac_ext 9444cat >>conftest.$ac_ext <<_ACEOF 9445/* end confdefs.h. */ 9446 9447int 9448main () 9449{ 9450 9451 ; 9452 return 0; 9453} 9454_ACEOF 9455rm -f conftest.$ac_objext conftest$ac_exeext 9456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9457 (eval $ac_link) 2>conftest.er1 9458 ac_status=$? 9459 grep -v '^ *+' conftest.er1 >conftest.err 9460 rm -f conftest.er1 9461 cat conftest.err >&5 9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9463 (exit $ac_status); } && 9464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9466 (eval $ac_try) 2>&5 9467 ac_status=$? 9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9469 (exit $ac_status); }; } && 9470 { ac_try='test -s conftest$ac_exeext' 9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9472 (eval $ac_try) 2>&5 9473 ac_status=$? 9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9475 (exit $ac_status); }; }; then 9476 9477aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9478}'` 9479# Check for a 64-bit object if we didn't find anything. 9480if 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; } 9481}'`; fi 9482else 9483 echo "$as_me: failed program was:" >&5 9484sed 's/^/| /' conftest.$ac_ext >&5 9485 9486fi 9487rm -f conftest.err conftest.$ac_objext \ 9488 conftest$ac_exeext conftest.$ac_ext 9489if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9490 9491 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9492 9493 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" 9494 else 9495 if test "$host_cpu" = ia64; then 9496 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 9497 allow_undefined_flag_CXX="-z nodefs" 9498 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" 9499 else 9500 # Determine the default libpath from the value encoded in an empty executable. 9501 cat >conftest.$ac_ext <<_ACEOF 9502/* confdefs.h. */ 9503_ACEOF 9504cat confdefs.h >>conftest.$ac_ext 9505cat >>conftest.$ac_ext <<_ACEOF 9506/* end confdefs.h. */ 9507 9508int 9509main () 9510{ 9511 9512 ; 9513 return 0; 9514} 9515_ACEOF 9516rm -f conftest.$ac_objext conftest$ac_exeext 9517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9518 (eval $ac_link) 2>conftest.er1 9519 ac_status=$? 9520 grep -v '^ *+' conftest.er1 >conftest.err 9521 rm -f conftest.er1 9522 cat conftest.err >&5 9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9524 (exit $ac_status); } && 9525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9527 (eval $ac_try) 2>&5 9528 ac_status=$? 9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9530 (exit $ac_status); }; } && 9531 { ac_try='test -s conftest$ac_exeext' 9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9533 (eval $ac_try) 2>&5 9534 ac_status=$? 9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9536 (exit $ac_status); }; }; then 9537 9538aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9539}'` 9540# Check for a 64-bit object if we didn't find anything. 9541if 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; } 9542}'`; fi 9543else 9544 echo "$as_me: failed program was:" >&5 9545sed 's/^/| /' conftest.$ac_ext >&5 9546 9547fi 9548rm -f conftest.err conftest.$ac_objext \ 9549 conftest$ac_exeext conftest.$ac_ext 9550if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9551 9552 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9553 # Warning - without using the other run time loading flags, 9554 # -berok will link without error, but may produce a broken library. 9555 no_undefined_flag_CXX=' ${wl}-bernotok' 9556 allow_undefined_flag_CXX=' ${wl}-berok' 9557 # -bexpall does not export symbols beginning with underscore (_) 9558 always_export_symbols_CXX=yes 9559 # Exported symbols can be pulled into shared objects from archives 9560 whole_archive_flag_spec_CXX=' ' 9561 archive_cmds_need_lc_CXX=yes 9562 # This is similar to how AIX traditionally builds it's shared libraries. 9563 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' 9564 fi 9565 fi 9566 ;; 9567 chorus*) 9568 case $cc_basename in 9569 *) 9570 # FIXME: insert proper C++ library support 9571 ld_shlibs_CXX=no 9572 ;; 9573 esac 9574 ;; 9575 9576 cygwin* | mingw* | pw32*) 9577 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 9578 # as there is no search path for DLLs. 9579 hardcode_libdir_flag_spec_CXX='-L$libdir' 9580 allow_undefined_flag_CXX=unsupported 9581 always_export_symbols_CXX=no 9582 enable_shared_with_static_runtimes_CXX=yes 9583 9584 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9585 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' 9586 # If the export-symbols file already is a .def file (1st line 9587 # is EXPORTS), use it as is; otherwise, prepend... 9588 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9589 cp $export_symbols $output_objdir/$soname.def; 9590 else 9591 echo EXPORTS > $output_objdir/$soname.def; 9592 cat $export_symbols >> $output_objdir/$soname.def; 9593 fi~ 9594 $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' 9595 else 9596 ld_shlibs_CXX=no 9597 fi 9598 ;; 9599 9600 darwin* | rhapsody*) 9601 if test "$GXX" = yes; then 9602 archive_cmds_need_lc_CXX=no 9603 case "$host_os" in 9604 rhapsody* | darwin1.[012]) 9605 allow_undefined_flag_CXX='-undefined suppress' 9606 ;; 9607 *) # Darwin 1.3 on 9608 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9609 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 9610 else 9611 case ${MACOSX_DEPLOYMENT_TARGET} in 9612 10.[012]) 9613 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 9614 ;; 9615 10.*) 9616 allow_undefined_flag_CXX='-undefined dynamic_lookup' 9617 ;; 9618 esac 9619 fi 9620 ;; 9621 esac 9622 lt_int_apple_cc_single_mod=no 9623 output_verbose_link_cmd='echo' 9624 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 9625 lt_int_apple_cc_single_mod=yes 9626 fi 9627 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9628 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9629 else 9630 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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' 9631 fi 9632 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9633 9634 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9635 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9636 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}' 9637 else 9638 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 9639 fi 9640 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}' 9641 hardcode_direct_CXX=no 9642 hardcode_automatic_CXX=yes 9643 hardcode_shlibpath_var_CXX=unsupported 9644 whole_archive_flag_spec_CXX='-all_load $convenience' 9645 link_all_deplibs_CXX=yes 9646 else 9647 ld_shlibs_CXX=no 9648 fi 9649 ;; 9650 9651 dgux*) 9652 case $cc_basename in 9653 ec++) 9654 # FIXME: insert proper C++ library support 9655 ld_shlibs_CXX=no 9656 ;; 9657 ghcx) 9658 # Green Hills C++ Compiler 9659 # FIXME: insert proper C++ library support 9660 ld_shlibs_CXX=no 9661 ;; 9662 *) 9663 # FIXME: insert proper C++ library support 9664 ld_shlibs_CXX=no 9665 ;; 9666 esac 9667 ;; 9668 freebsd12*) 9669 # C++ shared libraries reported to be fairly broken before switch to ELF 9670 ld_shlibs_CXX=no 9671 ;; 9672 freebsd-elf*) 9673 archive_cmds_need_lc_CXX=no 9674 ;; 9675 freebsd* | kfreebsd*-gnu) 9676 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 9677 # conventions 9678 ld_shlibs_CXX=yes 9679 ;; 9680 gnu*) 9681 ;; 9682 hpux9*) 9683 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9684 hardcode_libdir_separator_CXX=: 9685 export_dynamic_flag_spec_CXX='${wl}-E' 9686 hardcode_direct_CXX=yes 9687 hardcode_minus_L_CXX=yes # Not in the search PATH, 9688 # but as the default 9689 # location of the library. 9690 9691 case $cc_basename in 9692 CC) 9693 # FIXME: insert proper C++ library support 9694 ld_shlibs_CXX=no 9695 ;; 9696 aCC) 9697 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' 9698 # Commands to make compiler produce verbose output that lists 9699 # what "hidden" libraries, object files and flags are used when 9700 # linking a shared library. 9701 # 9702 # There doesn't appear to be a way to prevent this compiler from 9703 # explicitly linking system object files so we need to strip them 9704 # from the output so that they don't get included in the library 9705 # dependencies. 9706 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' 9707 ;; 9708 *) 9709 if test "$GXX" = yes; then 9710 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' 9711 else 9712 # FIXME: insert proper C++ library support 9713 ld_shlibs_CXX=no 9714 fi 9715 ;; 9716 esac 9717 ;; 9718 hpux10*|hpux11*) 9719 if test $with_gnu_ld = no; then 9720 case "$host_cpu" in 9721 hppa*64*) 9722 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9723 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 9724 hardcode_libdir_separator_CXX=: 9725 ;; 9726 ia64*) 9727 hardcode_libdir_flag_spec_CXX='-L$libdir' 9728 ;; 9729 *) 9730 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9731 hardcode_libdir_separator_CXX=: 9732 export_dynamic_flag_spec_CXX='${wl}-E' 9733 ;; 9734 esac 9735 fi 9736 case "$host_cpu" in 9737 hppa*64*) 9738 hardcode_direct_CXX=no 9739 hardcode_shlibpath_var_CXX=no 9740 ;; 9741 ia64*) 9742 hardcode_direct_CXX=no 9743 hardcode_shlibpath_var_CXX=no 9744 hardcode_minus_L_CXX=yes # Not in the search PATH, 9745 # but as the default 9746 # location of the library. 9747 ;; 9748 *) 9749 hardcode_direct_CXX=yes 9750 hardcode_minus_L_CXX=yes # Not in the search PATH, 9751 # but as the default 9752 # location of the library. 9753 ;; 9754 esac 9755 9756 case $cc_basename in 9757 CC) 9758 # FIXME: insert proper C++ library support 9759 ld_shlibs_CXX=no 9760 ;; 9761 aCC) 9762 case "$host_cpu" in 9763 hppa*64*|ia64*) 9764 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 9765 ;; 9766 *) 9767 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9768 ;; 9769 esac 9770 # Commands to make compiler produce verbose output that lists 9771 # what "hidden" libraries, object files and flags are used when 9772 # linking a shared library. 9773 # 9774 # There doesn't appear to be a way to prevent this compiler from 9775 # explicitly linking system object files so we need to strip them 9776 # from the output so that they don't get included in the library 9777 # dependencies. 9778 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' 9779 ;; 9780 *) 9781 if test "$GXX" = yes; then 9782 if test $with_gnu_ld = no; then 9783 case "$host_cpu" in 9784 ia64*|hppa*64*) 9785 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 9786 ;; 9787 *) 9788 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' 9789 ;; 9790 esac 9791 fi 9792 else 9793 # FIXME: insert proper C++ library support 9794 ld_shlibs_CXX=no 9795 fi 9796 ;; 9797 esac 9798 ;; 9799 irix5* | irix6*) 9800 case $cc_basename in 9801 CC) 9802 # SGI C++ 9803 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 ${objdir}/so_locations -o $lib' 9804 9805 # Archives containing C++ object files must be created using 9806 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 9807 # necessary to make sure instantiated templates are included 9808 # in the archive. 9809 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 9810 ;; 9811 *) 9812 if test "$GXX" = yes; then 9813 if test "$with_gnu_ld" = no; then 9814 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}${objdir}/so_locations -o $lib' 9815 else 9816 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' 9817 fi 9818 fi 9819 link_all_deplibs_CXX=yes 9820 ;; 9821 esac 9822 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9823 hardcode_libdir_separator_CXX=: 9824 ;; 9825 linux*) 9826 case $cc_basename in 9827 KCC) 9828 # Kuck and Associates, Inc. (KAI) C++ Compiler 9829 9830 # KCC will only create a shared library if the output file 9831 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9832 # to its proper name (with version) after linking. 9833 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' 9834 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' 9835 # Commands to make compiler produce verbose output that lists 9836 # what "hidden" libraries, object files and flags are used when 9837 # linking a shared library. 9838 # 9839 # There doesn't appear to be a way to prevent this compiler from 9840 # explicitly linking system object files so we need to strip them 9841 # from the output so that they don't get included in the library 9842 # dependencies. 9843 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' 9844 9845 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 9846 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9847 9848 # Archives containing C++ object files must be created using 9849 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 9850 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 9851 ;; 9852 icpc) 9853 # Intel C++ 9854 with_gnu_ld=yes 9855 archive_cmds_need_lc_CXX=no 9856 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9857 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' 9858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9859 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9860 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9861 ;; 9862 cxx) 9863 # Compaq C++ 9864 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9865 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' 9866 9867 runpath_var=LD_RUN_PATH 9868 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 9869 hardcode_libdir_separator_CXX=: 9870 9871 # Commands to make compiler produce verbose output that lists 9872 # what "hidden" libraries, object files and flags are used when 9873 # linking a shared library. 9874 # 9875 # There doesn't appear to be a way to prevent this compiler from 9876 # explicitly linking system object files so we need to strip them 9877 # from the output so that they don't get included in the library 9878 # dependencies. 9879 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' 9880 ;; 9881 esac 9882 ;; 9883 lynxos*) 9884 # FIXME: insert proper C++ library support 9885 ld_shlibs_CXX=no 9886 ;; 9887 m88k*) 9888 # FIXME: insert proper C++ library support 9889 ld_shlibs_CXX=no 9890 ;; 9891 mvs*) 9892 case $cc_basename in 9893 cxx) 9894 # FIXME: insert proper C++ library support 9895 ld_shlibs_CXX=no 9896 ;; 9897 *) 9898 # FIXME: insert proper C++ library support 9899 ld_shlibs_CXX=no 9900 ;; 9901 esac 9902 ;; 9903 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 9904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9905 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 9906 wlarc= 9907 hardcode_libdir_flag_spec_CXX='-R$libdir' 9908 hardcode_direct_CXX=yes 9909 hardcode_shlibpath_var_CXX=no 9910 fi 9911 # Workaround some broken pre-1.5 toolchains 9912 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 9913 ;; 9914 osf3*) 9915 case $cc_basename in 9916 KCC) 9917 # Kuck and Associates, Inc. (KAI) C++ Compiler 9918 9919 # KCC will only create a shared library if the output file 9920 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9921 # to its proper name (with version) after linking. 9922 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' 9923 9924 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9925 hardcode_libdir_separator_CXX=: 9926 9927 # Archives containing C++ object files must be created using 9928 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 9929 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 9930 9931 ;; 9932 RCC) 9933 # Rational C++ 2.4.1 9934 # FIXME: insert proper C++ library support 9935 ld_shlibs_CXX=no 9936 ;; 9937 cxx) 9938 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9939 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 ${objdir}/so_locations -o $lib' 9940 9941 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9942 hardcode_libdir_separator_CXX=: 9943 9944 # Commands to make compiler produce verbose output that lists 9945 # what "hidden" libraries, object files and flags are used when 9946 # linking a shared library. 9947 # 9948 # There doesn't appear to be a way to prevent this compiler from 9949 # explicitly linking system object files so we need to strip them 9950 # from the output so that they don't get included in the library 9951 # dependencies. 9952 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' 9953 ;; 9954 *) 9955 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9956 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9957 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}${objdir}/so_locations -o $lib' 9958 9959 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9960 hardcode_libdir_separator_CXX=: 9961 9962 # Commands to make compiler produce verbose output that lists 9963 # what "hidden" libraries, object files and flags are used when 9964 # linking a shared library. 9965 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9966 9967 else 9968 # FIXME: insert proper C++ library support 9969 ld_shlibs_CXX=no 9970 fi 9971 ;; 9972 esac 9973 ;; 9974 osf4* | osf5*) 9975 case $cc_basename in 9976 KCC) 9977 # Kuck and Associates, Inc. (KAI) C++ Compiler 9978 9979 # KCC will only create a shared library if the output file 9980 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9981 # to its proper name (with version) after linking. 9982 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' 9983 9984 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9985 hardcode_libdir_separator_CXX=: 9986 9987 # Archives containing C++ object files must be created using 9988 # the KAI C++ compiler. 9989 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 9990 ;; 9991 RCC) 9992 # Rational C++ 2.4.1 9993 # FIXME: insert proper C++ library support 9994 ld_shlibs_CXX=no 9995 ;; 9996 cxx) 9997 allow_undefined_flag_CXX=' -expect_unresolved \*' 9998 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 ${objdir}/so_locations -o $lib' 9999 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10000 echo "-hidden">> $lib.exp~ 10001 $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 $objdir/so_locations -o $lib~ 10002 $rm $lib.exp' 10003 10004 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10005 hardcode_libdir_separator_CXX=: 10006 10007 # Commands to make compiler produce verbose output that lists 10008 # what "hidden" libraries, object files and flags are used when 10009 # linking a shared library. 10010 # 10011 # There doesn't appear to be a way to prevent this compiler from 10012 # explicitly linking system object files so we need to strip them 10013 # from the output so that they don't get included in the library 10014 # dependencies. 10015 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' 10016 ;; 10017 *) 10018 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10019 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10020 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}${objdir}/so_locations -o $lib' 10021 10022 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10023 hardcode_libdir_separator_CXX=: 10024 10025 # Commands to make compiler produce verbose output that lists 10026 # what "hidden" libraries, object files and flags are used when 10027 # linking a shared library. 10028 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10029 10030 else 10031 # FIXME: insert proper C++ library support 10032 ld_shlibs_CXX=no 10033 fi 10034 ;; 10035 esac 10036 ;; 10037 psos*) 10038 # FIXME: insert proper C++ library support 10039 ld_shlibs_CXX=no 10040 ;; 10041 sco*) 10042 archive_cmds_need_lc_CXX=no 10043 case $cc_basename in 10044 CC) 10045 # FIXME: insert proper C++ library support 10046 ld_shlibs_CXX=no 10047 ;; 10048 *) 10049 # FIXME: insert proper C++ library support 10050 ld_shlibs_CXX=no 10051 ;; 10052 esac 10053 ;; 10054 sunos4*) 10055 case $cc_basename in 10056 CC) 10057 # Sun C++ 4.x 10058 # FIXME: insert proper C++ library support 10059 ld_shlibs_CXX=no 10060 ;; 10061 lcc) 10062 # Lucid 10063 # FIXME: insert proper C++ library support 10064 ld_shlibs_CXX=no 10065 ;; 10066 *) 10067 # FIXME: insert proper C++ library support 10068 ld_shlibs_CXX=no 10069 ;; 10070 esac 10071 ;; 10072 solaris*) 10073 case $cc_basename in 10074 CC) 10075 # Sun C++ 4.2, 5.x and Centerline C++ 10076 no_undefined_flag_CXX=' -zdefs' 10077 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10078 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10079 $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' 10080 10081 hardcode_libdir_flag_spec_CXX='-R$libdir' 10082 hardcode_shlibpath_var_CXX=no 10083 case $host_os in 10084 solaris2.0-5 | solaris2.0-5.*) ;; 10085 *) 10086 # The C++ compiler is used as linker so we must use $wl 10087 # flag to pass the commands to the underlying system 10088 # linker. 10089 # Supported since Solaris 2.6 (maybe 2.5.1?) 10090 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10091 ;; 10092 esac 10093 link_all_deplibs_CXX=yes 10094 10095 # Commands to make compiler produce verbose output that lists 10096 # what "hidden" libraries, object files and flags are used when 10097 # linking a shared library. 10098 # 10099 # There doesn't appear to be a way to prevent this compiler from 10100 # explicitly linking system object files so we need to strip them 10101 # from the output so that they don't get included in the library 10102 # dependencies. 10103 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' 10104 10105 # Archives containing C++ object files must be created using 10106 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10107 # necessary to make sure instantiated templates are included 10108 # in the archive. 10109 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10110 ;; 10111 gcx) 10112 # Green Hills C++ Compiler 10113 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10114 10115 # The C++ compiler must be used to create the archive. 10116 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10117 ;; 10118 *) 10119 # GNU C++ compiler with Solaris linker 10120 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10121 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10122 if $CC --version | grep -v '^2\.7' > /dev/null; then 10123 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10124 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10125 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10126 10127 # Commands to make compiler produce verbose output that lists 10128 # what "hidden" libraries, object files and flags are used when 10129 # linking a shared library. 10130 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10131 else 10132 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10133 # platform. 10134 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10135 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10136 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10137 10138 # Commands to make compiler produce verbose output that lists 10139 # what "hidden" libraries, object files and flags are used when 10140 # linking a shared library. 10141 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10142 fi 10143 10144 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10145 fi 10146 ;; 10147 esac 10148 ;; 10149 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10150 archive_cmds_need_lc_CXX=no 10151 ;; 10152 tandem*) 10153 case $cc_basename in 10154 NCC) 10155 # NonStop-UX NCC 3.20 10156 # FIXME: insert proper C++ library support 10157 ld_shlibs_CXX=no 10158 ;; 10159 *) 10160 # FIXME: insert proper C++ library support 10161 ld_shlibs_CXX=no 10162 ;; 10163 esac 10164 ;; 10165 vxworks*) 10166 # FIXME: insert proper C++ library support 10167 ld_shlibs_CXX=no 10168 ;; 10169 *) 10170 # FIXME: insert proper C++ library support 10171 ld_shlibs_CXX=no 10172 ;; 10173esac 10174echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10175echo "${ECHO_T}$ld_shlibs_CXX" >&6 10176test "$ld_shlibs_CXX" = no && can_build_shared=no 10177 10178GCC_CXX="$GXX" 10179LD_CXX="$LD" 10180 10181 10182cat > conftest.$ac_ext <<EOF 10183class Foo 10184{ 10185public: 10186 Foo (void) { a = 0; } 10187private: 10188 int a; 10189}; 10190EOF 10191 10192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10193 (eval $ac_compile) 2>&5 10194 ac_status=$? 10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10196 (exit $ac_status); }; then 10197 # Parse the compiler output and extract the necessary 10198 # objects, libraries and library flags. 10199 10200 # Sentinel used to keep track of whether or not we are before 10201 # the conftest object file. 10202 pre_test_object_deps_done=no 10203 10204 # The `*' in the case matches for architectures that use `case' in 10205 # $output_verbose_cmd can trigger glob expansion during the loop 10206 # eval without this substitution. 10207 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10208 10209 for p in `eval $output_verbose_link_cmd`; do 10210 case $p in 10211 10212 -L* | -R* | -l*) 10213 # Some compilers place space between "-{L,R}" and the path. 10214 # Remove the space. 10215 if test $p = "-L" \ 10216 || test $p = "-R"; then 10217 prev=$p 10218 continue 10219 else 10220 prev= 10221 fi 10222 10223 if test "$pre_test_object_deps_done" = no; then 10224 case $p in 10225 -L* | -R*) 10226 # Internal compiler library paths should come after those 10227 # provided the user. The postdeps already come after the 10228 # user supplied libs so there is no need to process them. 10229 if test -z "$compiler_lib_search_path_CXX"; then 10230 compiler_lib_search_path_CXX="${prev}${p}" 10231 else 10232 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10233 fi 10234 ;; 10235 # The "-l" case would never come before the object being 10236 # linked, so don't bother handling this case. 10237 esac 10238 else 10239 if test -z "$postdeps_CXX"; then 10240 postdeps_CXX="${prev}${p}" 10241 else 10242 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10243 fi 10244 fi 10245 ;; 10246 10247 *.$objext) 10248 # This assumes that the test object file only shows up 10249 # once in the compiler output. 10250 if test "$p" = "conftest.$objext"; then 10251 pre_test_object_deps_done=yes 10252 continue 10253 fi 10254 10255 if test "$pre_test_object_deps_done" = no; then 10256 if test -z "$predep_objects_CXX"; then 10257 predep_objects_CXX="$p" 10258 else 10259 predep_objects_CXX="$predep_objects_CXX $p" 10260 fi 10261 else 10262 if test -z "$postdep_objects_CXX"; then 10263 postdep_objects_CXX="$p" 10264 else 10265 postdep_objects_CXX="$postdep_objects_CXX $p" 10266 fi 10267 fi 10268 ;; 10269 10270 *) ;; # Ignore the rest. 10271 10272 esac 10273 done 10274 10275 # Clean up. 10276 rm -f a.out a.exe 10277else 10278 echo "libtool.m4: error: problem compiling CXX test program" 10279fi 10280 10281$rm -f confest.$objext 10282 10283case " $postdeps_CXX " in 10284*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10285esac 10286 10287lt_prog_compiler_wl_CXX= 10288lt_prog_compiler_pic_CXX= 10289lt_prog_compiler_static_CXX= 10290 10291echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10292echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10293 10294 # C++ specific cases for pic, static, wl, etc. 10295 if test "$GXX" = yes; then 10296 lt_prog_compiler_wl_CXX='-Wl,' 10297 lt_prog_compiler_static_CXX='-static' 10298 10299 case $host_os in 10300 aix*) 10301 # All AIX code is PIC. 10302 if test "$host_cpu" = ia64; then 10303 # AIX 5 now supports IA64 processor 10304 lt_prog_compiler_static_CXX='-Bstatic' 10305 fi 10306 ;; 10307 amigaos*) 10308 # FIXME: we need at least 68020 code to build shared libraries, but 10309 # adding the `-m68020' flag to GCC prevents building anything better, 10310 # like `-m68040'. 10311 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10312 ;; 10313 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10314 # PIC is the default for these OSes. 10315 ;; 10316 mingw* | os2* | pw32*) 10317 # This hack is so that the source file can tell whether it is being 10318 # built for inclusion in a dll (and should export symbols for example). 10319 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10320 ;; 10321 darwin* | rhapsody*) 10322 # PIC is the default on this platform 10323 # Common symbols not allowed in MH_DYLIB files 10324 lt_prog_compiler_pic_CXX='-fno-common' 10325 ;; 10326 *djgpp*) 10327 # DJGPP does not support shared libraries at all 10328 lt_prog_compiler_pic_CXX= 10329 ;; 10330 sysv4*MP*) 10331 if test -d /usr/nec; then 10332 lt_prog_compiler_pic_CXX=-Kconform_pic 10333 fi 10334 ;; 10335 hpux*) 10336 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10337 # not for PA HP-UX. 10338 case "$host_cpu" in 10339 hppa*64*|ia64*) 10340 ;; 10341 *) 10342 lt_prog_compiler_pic_CXX='-fPIC' 10343 ;; 10344 esac 10345 ;; 10346 *) 10347 lt_prog_compiler_pic_CXX='-fPIC' 10348 ;; 10349 esac 10350 else 10351 case $host_os in 10352 aix4* | aix5*) 10353 # All AIX code is PIC. 10354 if test "$host_cpu" = ia64; then 10355 # AIX 5 now supports IA64 processor 10356 lt_prog_compiler_static_CXX='-Bstatic' 10357 else 10358 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10359 fi 10360 ;; 10361 chorus*) 10362 case $cc_basename in 10363 cxch68) 10364 # Green Hills C++ Compiler 10365 # _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" 10366 ;; 10367 esac 10368 ;; 10369 dgux*) 10370 case $cc_basename in 10371 ec++) 10372 lt_prog_compiler_pic_CXX='-KPIC' 10373 ;; 10374 ghcx) 10375 # Green Hills C++ Compiler 10376 lt_prog_compiler_pic_CXX='-pic' 10377 ;; 10378 *) 10379 ;; 10380 esac 10381 ;; 10382 freebsd* | kfreebsd*-gnu) 10383 # FreeBSD uses GNU C++ 10384 ;; 10385 hpux9* | hpux10* | hpux11*) 10386 case $cc_basename in 10387 CC) 10388 lt_prog_compiler_wl_CXX='-Wl,' 10389 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10390 if test "$host_cpu" != ia64; then 10391 lt_prog_compiler_pic_CXX='+Z' 10392 fi 10393 ;; 10394 aCC) 10395 lt_prog_compiler_wl_CXX='-Wl,' 10396 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10397 case "$host_cpu" in 10398 hppa*64*|ia64*) 10399 # +Z the default 10400 ;; 10401 *) 10402 lt_prog_compiler_pic_CXX='+Z' 10403 ;; 10404 esac 10405 ;; 10406 *) 10407 ;; 10408 esac 10409 ;; 10410 irix5* | irix6* | nonstopux*) 10411 case $cc_basename in 10412 CC) 10413 lt_prog_compiler_wl_CXX='-Wl,' 10414 lt_prog_compiler_static_CXX='-non_shared' 10415 # CC pic flag -KPIC is the default. 10416 ;; 10417 *) 10418 ;; 10419 esac 10420 ;; 10421 linux*) 10422 case $cc_basename in 10423 KCC) 10424 # KAI C++ Compiler 10425 lt_prog_compiler_wl_CXX='--backend -Wl,' 10426 lt_prog_compiler_pic_CXX='-fPIC' 10427 ;; 10428 icpc) 10429 # Intel C++ 10430 lt_prog_compiler_wl_CXX='-Wl,' 10431 lt_prog_compiler_pic_CXX='-KPIC' 10432 lt_prog_compiler_static_CXX='-static' 10433 ;; 10434 cxx) 10435 # Compaq C++ 10436 # Make sure the PIC flag is empty. It appears that all Alpha 10437 # Linux and Compaq Tru64 Unix objects are PIC. 10438 lt_prog_compiler_pic_CXX= 10439 lt_prog_compiler_static_CXX='-non_shared' 10440 ;; 10441 *) 10442 ;; 10443 esac 10444 ;; 10445 lynxos*) 10446 ;; 10447 m88k*) 10448 ;; 10449 mvs*) 10450 case $cc_basename in 10451 cxx) 10452 lt_prog_compiler_pic_CXX='-W c,exportall' 10453 ;; 10454 *) 10455 ;; 10456 esac 10457 ;; 10458 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 10459 ;; 10460 osf3* | osf4* | osf5*) 10461 case $cc_basename in 10462 KCC) 10463 lt_prog_compiler_wl_CXX='--backend -Wl,' 10464 ;; 10465 RCC) 10466 # Rational C++ 2.4.1 10467 lt_prog_compiler_pic_CXX='-pic' 10468 ;; 10469 cxx) 10470 # Digital/Compaq C++ 10471 lt_prog_compiler_wl_CXX='-Wl,' 10472 # Make sure the PIC flag is empty. It appears that all Alpha 10473 # Linux and Compaq Tru64 Unix objects are PIC. 10474 lt_prog_compiler_pic_CXX= 10475 lt_prog_compiler_static_CXX='-non_shared' 10476 ;; 10477 *) 10478 ;; 10479 esac 10480 ;; 10481 psos*) 10482 ;; 10483 sco*) 10484 case $cc_basename in 10485 CC) 10486 lt_prog_compiler_pic_CXX='-fPIC' 10487 ;; 10488 *) 10489 ;; 10490 esac 10491 ;; 10492 solaris*) 10493 case $cc_basename in 10494 CC) 10495 # Sun C++ 4.2, 5.x and Centerline C++ 10496 lt_prog_compiler_pic_CXX='-KPIC' 10497 lt_prog_compiler_static_CXX='-Bstatic' 10498 lt_prog_compiler_wl_CXX='-Qoption ld ' 10499 ;; 10500 gcx) 10501 # Green Hills C++ Compiler 10502 lt_prog_compiler_pic_CXX='-PIC' 10503 ;; 10504 *) 10505 ;; 10506 esac 10507 ;; 10508 sunos4*) 10509 case $cc_basename in 10510 CC) 10511 # Sun C++ 4.x 10512 lt_prog_compiler_pic_CXX='-pic' 10513 lt_prog_compiler_static_CXX='-Bstatic' 10514 ;; 10515 lcc) 10516 # Lucid 10517 lt_prog_compiler_pic_CXX='-pic' 10518 ;; 10519 *) 10520 ;; 10521 esac 10522 ;; 10523 tandem*) 10524 case $cc_basename in 10525 NCC) 10526 # NonStop-UX NCC 3.20 10527 lt_prog_compiler_pic_CXX='-KPIC' 10528 ;; 10529 *) 10530 ;; 10531 esac 10532 ;; 10533 unixware*) 10534 ;; 10535 vxworks*) 10536 ;; 10537 *) 10538 lt_prog_compiler_can_build_shared_CXX=no 10539 ;; 10540 esac 10541 fi 10542 10543echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 10544echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 10545 10546# 10547# Check to make sure the PIC flag actually works. 10548# 10549if test -n "$lt_prog_compiler_pic_CXX"; then 10550 10551echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 10552echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 10553if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 10554 echo $ECHO_N "(cached) $ECHO_C" >&6 10555else 10556 lt_prog_compiler_pic_works_CXX=no 10557 ac_outfile=conftest.$ac_objext 10558 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10559 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 10560 # Insert the option either (1) after the last *FLAGS variable, or 10561 # (2) before a word containing "conftest.", or (3) at the end. 10562 # Note that $ac_compile itself does not contain backslashes and begins 10563 # with a dollar sign (not a hyphen), so the echo should work correctly. 10564 # The option is referenced via a variable to avoid confusing sed. 10565 lt_compile=`echo "$ac_compile" | $SED \ 10566 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 10567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10568 -e 's:$: $lt_compiler_flag:'` 10569 (eval echo "\"\$as_me:10569: $lt_compile\"" >&5) 10570 (eval "$lt_compile" 2>conftest.err) 10571 ac_status=$? 10572 cat conftest.err >&5 10573 echo "$as_me:10573: \$? = $ac_status" >&5 10574 if (exit $ac_status) && test -s "$ac_outfile"; then 10575 # The compiler can only warn and ignore the option if not recognized 10576 # So say no if there are warnings 10577 if test ! -s conftest.err; then 10578 lt_prog_compiler_pic_works_CXX=yes 10579 fi 10580 fi 10581 $rm conftest* 10582 10583fi 10584echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 10585echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 10586 10587if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 10588 case $lt_prog_compiler_pic_CXX in 10589 "" | " "*) ;; 10590 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 10591 esac 10592else 10593 lt_prog_compiler_pic_CXX= 10594 lt_prog_compiler_can_build_shared_CXX=no 10595fi 10596 10597fi 10598case "$host_os" in 10599 # For platforms which do not support PIC, -DPIC is meaningless: 10600 *djgpp*) 10601 lt_prog_compiler_pic_CXX= 10602 ;; 10603 *) 10604 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 10605 ;; 10606esac 10607 10608echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 10609echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 10610if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 10611 echo $ECHO_N "(cached) $ECHO_C" >&6 10612else 10613 lt_cv_prog_compiler_c_o_CXX=no 10614 $rm -r conftest 2>/dev/null 10615 mkdir conftest 10616 cd conftest 10617 mkdir out 10618 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10619 10620 lt_compiler_flag="-o out/conftest2.$ac_objext" 10621 # Insert the option either (1) after the last *FLAGS variable, or 10622 # (2) before a word containing "conftest.", or (3) at the end. 10623 # Note that $ac_compile itself does not contain backslashes and begins 10624 # with a dollar sign (not a hyphen), so the echo should work correctly. 10625 lt_compile=`echo "$ac_compile" | $SED \ 10626 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 10627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10628 -e 's:$: $lt_compiler_flag:'` 10629 (eval echo "\"\$as_me:10629: $lt_compile\"" >&5) 10630 (eval "$lt_compile" 2>out/conftest.err) 10631 ac_status=$? 10632 cat out/conftest.err >&5 10633 echo "$as_me:10633: \$? = $ac_status" >&5 10634 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10635 then 10636 # The compiler can only warn and ignore the option if not recognized 10637 # So say no if there are warnings 10638 if test ! -s out/conftest.err; then 10639 lt_cv_prog_compiler_c_o_CXX=yes 10640 fi 10641 fi 10642 chmod u+w . 10643 $rm conftest* 10644 # SGI C++ compiler will create directory out/ii_files/ for 10645 # template instantiation 10646 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 10647 $rm out/* && rmdir out 10648 cd .. 10649 rmdir conftest 10650 $rm conftest* 10651 10652fi 10653echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 10654echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 10655 10656 10657hard_links="nottested" 10658if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 10659 # do not overwrite the value of need_locks provided by the user 10660 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 10661echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 10662 hard_links=yes 10663 $rm conftest* 10664 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10665 touch conftest.a 10666 ln conftest.a conftest.b 2>&5 || hard_links=no 10667 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10668 echo "$as_me:$LINENO: result: $hard_links" >&5 10669echo "${ECHO_T}$hard_links" >&6 10670 if test "$hard_links" = no; then 10671 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10672echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10673 need_locks=warn 10674 fi 10675else 10676 need_locks=no 10677fi 10678 10679echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10680echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10681 10682 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10683 case $host_os in 10684 aix4* | aix5*) 10685 # If we're using GNU nm, then we don't want the "-C" option. 10686 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10687 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 10688 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' 10689 else 10690 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' 10691 fi 10692 ;; 10693 pw32*) 10694 export_symbols_cmds_CXX="$ltdll_cmds" 10695 ;; 10696 cygwin* | mingw*) 10697 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 10698 ;; 10699 linux*) 10700 link_all_deplibs_CXX=no 10701 ;; 10702 *) 10703 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10704 ;; 10705 esac 10706 10707echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10708echo "${ECHO_T}$ld_shlibs_CXX" >&6 10709test "$ld_shlibs_CXX" = no && can_build_shared=no 10710 10711variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10712if test "$GCC" = yes; then 10713 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10714fi 10715 10716# 10717# Do we need to explicitly link libc? 10718# 10719case "x$archive_cmds_need_lc_CXX" in 10720x|xyes) 10721 # Assume -lc should be added 10722 archive_cmds_need_lc_CXX=yes 10723 10724 if test "$enable_shared" = yes && test "$GCC" = yes; then 10725 case $archive_cmds_CXX in 10726 *'~'*) 10727 # FIXME: we may have to deal with multi-command sequences. 10728 ;; 10729 '$CC '*) 10730 # Test whether the compiler implicitly links with -lc since on some 10731 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10732 # to ld, don't add -lc before -lgcc. 10733 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10734echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 10735 $rm conftest* 10736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10737 10738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10739 (eval $ac_compile) 2>&5 10740 ac_status=$? 10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10742 (exit $ac_status); } 2>conftest.err; then 10743 soname=conftest 10744 lib=conftest 10745 libobjs=conftest.$ac_objext 10746 deplibs= 10747 wl=$lt_prog_compiler_wl_CXX 10748 compiler_flags=-v 10749 linker_flags=-v 10750 verstring= 10751 output_objdir=. 10752 libname=conftest 10753 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 10754 allow_undefined_flag_CXX= 10755 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 10756 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 10757 ac_status=$? 10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10759 (exit $ac_status); } 10760 then 10761 archive_cmds_need_lc_CXX=no 10762 else 10763 archive_cmds_need_lc_CXX=yes 10764 fi 10765 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 10766 else 10767 cat conftest.err 1>&5 10768 fi 10769 $rm conftest* 10770 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 10771echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 10772 ;; 10773 esac 10774 fi 10775 ;; 10776esac 10777 10778echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10779echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 10780library_names_spec= 10781libname_spec='lib$name' 10782soname_spec= 10783shrext_cmds=".so" 10784postinstall_cmds= 10785postuninstall_cmds= 10786finish_cmds= 10787finish_eval= 10788shlibpath_var= 10789shlibpath_overrides_runpath=unknown 10790version_type=none 10791dynamic_linker="$host_os ld.so" 10792sys_lib_dlsearch_path_spec="/lib /usr/lib" 10793if test "$GCC" = yes; then 10794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10795 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 10796 # if the path contains ";" then we assume it to be the separator 10797 # otherwise default to the standard path separator (i.e. ":") - it is 10798 # assumed that no part of a normal pathname contains ";" but that should 10799 # okay in the real world where ";" in dirpaths is itself problematic. 10800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10801 else 10802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10803 fi 10804else 10805 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10806fi 10807need_lib_prefix=unknown 10808hardcode_into_libs=no 10809 10810# when you set need_version to no, make sure it does not cause -set_version 10811# flags to be left without arguments 10812need_version=unknown 10813 10814case $host_os in 10815aix3*) 10816 version_type=linux 10817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10818 shlibpath_var=LIBPATH 10819 10820 # AIX 3 has no versioning support, so we append a major version to the name. 10821 soname_spec='${libname}${release}${shared_ext}$major' 10822 ;; 10823 10824aix4* | aix5*) 10825 version_type=linux 10826 need_lib_prefix=no 10827 need_version=no 10828 hardcode_into_libs=yes 10829 if test "$host_cpu" = ia64; then 10830 # AIX 5 supports IA64 10831 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10832 shlibpath_var=LD_LIBRARY_PATH 10833 else 10834 # With GCC up to 2.95.x, collect2 would create an import file 10835 # for dependence libraries. The import file would start with 10836 # the line `#! .'. This would cause the generated library to 10837 # depend on `.', always an invalid library. This was fixed in 10838 # development snapshots of GCC prior to 3.0. 10839 case $host_os in 10840 aix4 | aix4.[01] | aix4.[01].*) 10841 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10842 echo ' yes ' 10843 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10844 : 10845 else 10846 can_build_shared=no 10847 fi 10848 ;; 10849 esac 10850 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10851 # soname into executable. Probably we can add versioning support to 10852 # collect2, so additional links can be useful in future. 10853 if test "$aix_use_runtimelinking" = yes; then 10854 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10855 # instead of lib<name>.a to let people know that these are not 10856 # typical AIX shared libraries. 10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10858 else 10859 # We preserve .a as extension for shared libraries through AIX4.2 10860 # and later when we are not doing run time linking. 10861 library_names_spec='${libname}${release}.a $libname.a' 10862 soname_spec='${libname}${release}${shared_ext}$major' 10863 fi 10864 shlibpath_var=LIBPATH 10865 fi 10866 ;; 10867 10868amigaos*) 10869 library_names_spec='$libname.ixlibrary $libname.a' 10870 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10871 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' 10872 ;; 10873 10874beos*) 10875 library_names_spec='${libname}${shared_ext}' 10876 dynamic_linker="$host_os ld.so" 10877 shlibpath_var=LIBRARY_PATH 10878 ;; 10879 10880bsdi4*) 10881 version_type=linux 10882 need_version=no 10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10884 soname_spec='${libname}${release}${shared_ext}$major' 10885 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10886 shlibpath_var=LD_LIBRARY_PATH 10887 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10888 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10889 # the default ld.so.conf also contains /usr/contrib/lib and 10890 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10891 # libtool to hard-code these into programs 10892 ;; 10893 10894cygwin* | mingw* | pw32*) 10895 version_type=windows 10896 shrext_cmds=".dll" 10897 need_version=no 10898 need_lib_prefix=no 10899 10900 case $GCC,$host_os in 10901 yes,cygwin* | yes,mingw* | yes,pw32*) 10902 library_names_spec='$libname.dll.a' 10903 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10904 postinstall_cmds='base_file=`basename \${file}`~ 10905 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 10906 dldir=$destdir/`dirname \$dlpath`~ 10907 test -d \$dldir || mkdir -p \$dldir~ 10908 $install_prog $dir/$dlname \$dldir/$dlname' 10909 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10910 dlpath=$dir/\$dldll~ 10911 $rm \$dlpath' 10912 shlibpath_overrides_runpath=yes 10913 10914 case $host_os in 10915 cygwin*) 10916 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10917 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10918 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10919 ;; 10920 mingw*) 10921 # MinGW DLLs use traditional 'lib' prefix 10922 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10923 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10924 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10925 # It is most probably a Windows format PATH printed by 10926 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10927 # path with ; separators, and with drive letters. We can handle the 10928 # drive letters (cygwin fileutils understands them), so leave them, 10929 # especially as we might pass files found there to a mingw objdump, 10930 # which wouldn't understand a cygwinified path. Ahh. 10931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10932 else 10933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10934 fi 10935 ;; 10936 pw32*) 10937 # pw32 DLLs use 'pw' prefix rather than 'lib' 10938 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 10939 ;; 10940 esac 10941 ;; 10942 10943 *) 10944 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10945 ;; 10946 esac 10947 dynamic_linker='Win32 ld.exe' 10948 # FIXME: first we should search . and the directory the executable is in 10949 shlibpath_var=PATH 10950 ;; 10951 10952darwin* | rhapsody*) 10953 dynamic_linker="$host_os dyld" 10954 version_type=darwin 10955 need_lib_prefix=no 10956 need_version=no 10957 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10958 soname_spec='${libname}${release}${major}$shared_ext' 10959 shlibpath_overrides_runpath=yes 10960 shlibpath_var=DYLD_LIBRARY_PATH 10961 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 10962 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10963 if test "$GCC" = yes; then 10964 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"` 10965 else 10966 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 10967 fi 10968 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10969 ;; 10970 10971dgux*) 10972 version_type=linux 10973 need_lib_prefix=no 10974 need_version=no 10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10976 soname_spec='${libname}${release}${shared_ext}$major' 10977 shlibpath_var=LD_LIBRARY_PATH 10978 ;; 10979 10980freebsd1*) 10981 dynamic_linker=no 10982 ;; 10983 10984kfreebsd*-gnu) 10985 version_type=linux 10986 need_lib_prefix=no 10987 need_version=no 10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10989 soname_spec='${libname}${release}${shared_ext}$major' 10990 shlibpath_var=LD_LIBRARY_PATH 10991 shlibpath_overrides_runpath=no 10992 hardcode_into_libs=yes 10993 dynamic_linker='GNU ld.so' 10994 ;; 10995 10996freebsd*) 10997 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 10998 version_type=freebsd-$objformat 10999 case $version_type in 11000 freebsd-elf*) 11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11002 need_version=no 11003 need_lib_prefix=no 11004 ;; 11005 freebsd-*) 11006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11007 need_version=yes 11008 ;; 11009 esac 11010 shlibpath_var=LD_LIBRARY_PATH 11011 case $host_os in 11012 freebsd2*) 11013 shlibpath_overrides_runpath=yes 11014 ;; 11015 freebsd3.01* | freebsdelf3.01*) 11016 shlibpath_overrides_runpath=yes 11017 hardcode_into_libs=yes 11018 ;; 11019 *) # from 3.2 on 11020 shlibpath_overrides_runpath=no 11021 hardcode_into_libs=yes 11022 ;; 11023 esac 11024 ;; 11025 11026gnu*) 11027 version_type=linux 11028 need_lib_prefix=no 11029 need_version=no 11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11031 soname_spec='${libname}${release}${shared_ext}$major' 11032 shlibpath_var=LD_LIBRARY_PATH 11033 hardcode_into_libs=yes 11034 ;; 11035 11036hpux9* | hpux10* | hpux11*) 11037 # Give a soname corresponding to the major version so that dld.sl refuses to 11038 # link against other versions. 11039 version_type=sunos 11040 need_lib_prefix=no 11041 need_version=no 11042 case "$host_cpu" in 11043 ia64*) 11044 shrext_cmds='.so' 11045 hardcode_into_libs=yes 11046 dynamic_linker="$host_os dld.so" 11047 shlibpath_var=LD_LIBRARY_PATH 11048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11050 soname_spec='${libname}${release}${shared_ext}$major' 11051 if test "X$HPUX_IA64_MODE" = X32; then 11052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11053 else 11054 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11055 fi 11056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11057 ;; 11058 hppa*64*) 11059 shrext_cmds='.sl' 11060 hardcode_into_libs=yes 11061 dynamic_linker="$host_os dld.sl" 11062 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11065 soname_spec='${libname}${release}${shared_ext}$major' 11066 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11068 ;; 11069 *) 11070 shrext_cmds='.sl' 11071 dynamic_linker="$host_os dld.sl" 11072 shlibpath_var=SHLIB_PATH 11073 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11075 soname_spec='${libname}${release}${shared_ext}$major' 11076 ;; 11077 esac 11078 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11079 postinstall_cmds='chmod 555 $lib' 11080 ;; 11081 11082irix5* | irix6* | nonstopux*) 11083 case $host_os in 11084 nonstopux*) version_type=nonstopux ;; 11085 *) 11086 if test "$lt_cv_prog_gnu_ld" = yes; then 11087 version_type=linux 11088 else 11089 version_type=irix 11090 fi ;; 11091 esac 11092 need_lib_prefix=no 11093 need_version=no 11094 soname_spec='${libname}${release}${shared_ext}$major' 11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11096 case $host_os in 11097 irix5* | nonstopux*) 11098 libsuff= shlibsuff= 11099 ;; 11100 *) 11101 case $LD in # libtool.m4 will add one of these switches to LD 11102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11103 libsuff= shlibsuff= libmagic=32-bit;; 11104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11105 libsuff=32 shlibsuff=N32 libmagic=N32;; 11106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11107 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11108 *) libsuff= shlibsuff= libmagic=never-match;; 11109 esac 11110 ;; 11111 esac 11112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11113 shlibpath_overrides_runpath=no 11114 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11115 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11116 hardcode_into_libs=yes 11117 ;; 11118 11119# No shared lib support for Linux oldld, aout, or coff. 11120linux*oldld* | linux*aout* | linux*coff*) 11121 dynamic_linker=no 11122 ;; 11123 11124# This must be Linux ELF. 11125linux*) 11126 version_type=linux 11127 need_lib_prefix=no 11128 need_version=no 11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11130 soname_spec='${libname}${release}${shared_ext}$major' 11131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11132 shlibpath_var=LD_LIBRARY_PATH 11133 shlibpath_overrides_runpath=no 11134 # This implies no fast_install, which is unacceptable. 11135 # Some rework will be needed to allow for fast_install 11136 # before this can be enabled. 11137 hardcode_into_libs=yes 11138 11139 # Append ld.so.conf contents to the search path 11140 if test -f /etc/ld.so.conf; then 11141 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 11142 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11143 fi 11144 11145 # We used to test for /lib/ld.so.1 and disable shared libraries on 11146 # powerpc, because MkLinux only supported shared libraries with the 11147 # GNU dynamic linker. Since this was broken with cross compilers, 11148 # most powerpc-linux boxes support dynamic linking these days and 11149 # people can always --disable-shared, the test was removed, and we 11150 # assume the GNU/Linux dynamic linker is in use. 11151 dynamic_linker='GNU/Linux ld.so' 11152 ;; 11153 11154netbsdelf*-gnu) 11155 version_type=linux 11156 need_lib_prefix=no 11157 need_version=no 11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11159 soname_spec='${libname}${release}${shared_ext}$major' 11160 shlibpath_var=LD_LIBRARY_PATH 11161 shlibpath_overrides_runpath=no 11162 hardcode_into_libs=yes 11163 dynamic_linker='NetBSD ld.elf_so' 11164 ;; 11165 11166knetbsd*-gnu) 11167 version_type=linux 11168 need_lib_prefix=no 11169 need_version=no 11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11171 soname_spec='${libname}${release}${shared_ext}$major' 11172 shlibpath_var=LD_LIBRARY_PATH 11173 shlibpath_overrides_runpath=no 11174 hardcode_into_libs=yes 11175 dynamic_linker='GNU ld.so' 11176 ;; 11177 11178netbsd*) 11179 version_type=sunos 11180 need_lib_prefix=no 11181 need_version=no 11182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11185 dynamic_linker='NetBSD (a.out) ld.so' 11186 else 11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11188 soname_spec='${libname}${release}${shared_ext}$major' 11189 dynamic_linker='NetBSD ld.elf_so' 11190 fi 11191 shlibpath_var=LD_LIBRARY_PATH 11192 shlibpath_overrides_runpath=yes 11193 hardcode_into_libs=yes 11194 ;; 11195 11196newsos6) 11197 version_type=linux 11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11199 shlibpath_var=LD_LIBRARY_PATH 11200 shlibpath_overrides_runpath=yes 11201 ;; 11202 11203nto-qnx*) 11204 version_type=linux 11205 need_lib_prefix=no 11206 need_version=no 11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11208 soname_spec='${libname}${release}${shared_ext}$major' 11209 shlibpath_var=LD_LIBRARY_PATH 11210 shlibpath_overrides_runpath=yes 11211 ;; 11212 11213openbsd*) 11214 version_type=sunos 11215 need_lib_prefix=no 11216 need_version=yes 11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11219 shlibpath_var=LD_LIBRARY_PATH 11220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11221 case $host_os in 11222 openbsd2.[89] | openbsd2.[89].*) 11223 shlibpath_overrides_runpath=no 11224 ;; 11225 *) 11226 shlibpath_overrides_runpath=yes 11227 ;; 11228 esac 11229 else 11230 shlibpath_overrides_runpath=yes 11231 fi 11232 ;; 11233 11234os2*) 11235 libname_spec='$name' 11236 shrext_cmds=".dll" 11237 need_lib_prefix=no 11238 library_names_spec='$libname${shared_ext} $libname.a' 11239 dynamic_linker='OS/2 ld.exe' 11240 shlibpath_var=LIBPATH 11241 ;; 11242 11243osf3* | osf4* | osf5*) 11244 version_type=osf 11245 need_lib_prefix=no 11246 need_version=no 11247 soname_spec='${libname}${release}${shared_ext}$major' 11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11249 shlibpath_var=LD_LIBRARY_PATH 11250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11251 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11252 ;; 11253 11254sco3.2v5*) 11255 version_type=osf 11256 soname_spec='${libname}${release}${shared_ext}$major' 11257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11258 shlibpath_var=LD_LIBRARY_PATH 11259 ;; 11260 11261solaris*) 11262 version_type=linux 11263 need_lib_prefix=no 11264 need_version=no 11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11266 soname_spec='${libname}${release}${shared_ext}$major' 11267 shlibpath_var=LD_LIBRARY_PATH 11268 shlibpath_overrides_runpath=yes 11269 hardcode_into_libs=yes 11270 # ldd complains unless libraries are executable 11271 postinstall_cmds='chmod +x $lib' 11272 ;; 11273 11274sunos4*) 11275 version_type=sunos 11276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11277 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11278 shlibpath_var=LD_LIBRARY_PATH 11279 shlibpath_overrides_runpath=yes 11280 if test "$with_gnu_ld" = yes; then 11281 need_lib_prefix=no 11282 fi 11283 need_version=yes 11284 ;; 11285 11286sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11287 version_type=linux 11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11289 soname_spec='${libname}${release}${shared_ext}$major' 11290 shlibpath_var=LD_LIBRARY_PATH 11291 case $host_vendor in 11292 sni) 11293 shlibpath_overrides_runpath=no 11294 need_lib_prefix=no 11295 export_dynamic_flag_spec='${wl}-Blargedynsym' 11296 runpath_var=LD_RUN_PATH 11297 ;; 11298 siemens) 11299 need_lib_prefix=no 11300 ;; 11301 motorola) 11302 need_lib_prefix=no 11303 need_version=no 11304 shlibpath_overrides_runpath=no 11305 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11306 ;; 11307 esac 11308 ;; 11309 11310sysv4*MP*) 11311 if test -d /usr/nec ;then 11312 version_type=linux 11313 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11314 soname_spec='$libname${shared_ext}.$major' 11315 shlibpath_var=LD_LIBRARY_PATH 11316 fi 11317 ;; 11318 11319uts4*) 11320 version_type=linux 11321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11322 soname_spec='${libname}${release}${shared_ext}$major' 11323 shlibpath_var=LD_LIBRARY_PATH 11324 ;; 11325 11326*) 11327 dynamic_linker=no 11328 ;; 11329esac 11330echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11331echo "${ECHO_T}$dynamic_linker" >&6 11332test "$dynamic_linker" = no && can_build_shared=no 11333 11334echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11335echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 11336hardcode_action_CXX= 11337if test -n "$hardcode_libdir_flag_spec_CXX" || \ 11338 test -n "$runpath_var CXX" || \ 11339 test "X$hardcode_automatic_CXX"="Xyes" ; then 11340 11341 # We can hardcode non-existant directories. 11342 if test "$hardcode_direct_CXX" != no && 11343 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11344 # have to relink, otherwise we might link with an installed library 11345 # when we should be linking with a yet-to-be-installed one 11346 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 11347 test "$hardcode_minus_L_CXX" != no; then 11348 # Linking always hardcodes the temporary library directory. 11349 hardcode_action_CXX=relink 11350 else 11351 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11352 hardcode_action_CXX=immediate 11353 fi 11354else 11355 # We cannot hardcode anything, or else we can only hardcode existing 11356 # directories. 11357 hardcode_action_CXX=unsupported 11358fi 11359echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 11360echo "${ECHO_T}$hardcode_action_CXX" >&6 11361 11362if test "$hardcode_action_CXX" = relink; then 11363 # Fast installation is not supported 11364 enable_fast_install=no 11365elif test "$shlibpath_overrides_runpath" = yes || 11366 test "$enable_shared" = no; then 11367 # Fast installation is not necessary 11368 enable_fast_install=needless 11369fi 11370 11371striplib= 11372old_striplib= 11373echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11374echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 11375if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 11376 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11377 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11378 echo "$as_me:$LINENO: result: yes" >&5 11379echo "${ECHO_T}yes" >&6 11380else 11381# FIXME - insert some real tests, host_os isn't really good enough 11382 case $host_os in 11383 darwin*) 11384 if test -n "$STRIP" ; then 11385 striplib="$STRIP -x" 11386 echo "$as_me:$LINENO: result: yes" >&5 11387echo "${ECHO_T}yes" >&6 11388 else 11389 echo "$as_me:$LINENO: result: no" >&5 11390echo "${ECHO_T}no" >&6 11391fi 11392 ;; 11393 *) 11394 echo "$as_me:$LINENO: result: no" >&5 11395echo "${ECHO_T}no" >&6 11396 ;; 11397 esac 11398fi 11399 11400if test "x$enable_dlopen" != xyes; then 11401 enable_dlopen=unknown 11402 enable_dlopen_self=unknown 11403 enable_dlopen_self_static=unknown 11404else 11405 lt_cv_dlopen=no 11406 lt_cv_dlopen_libs= 11407 11408 case $host_os in 11409 beos*) 11410 lt_cv_dlopen="load_add_on" 11411 lt_cv_dlopen_libs= 11412 lt_cv_dlopen_self=yes 11413 ;; 11414 11415 mingw* | pw32*) 11416 lt_cv_dlopen="LoadLibrary" 11417 lt_cv_dlopen_libs= 11418 ;; 11419 11420 cygwin*) 11421 lt_cv_dlopen="dlopen" 11422 lt_cv_dlopen_libs= 11423 ;; 11424 11425 darwin*) 11426 # if libdl is installed we need to link against it 11427 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11428echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11429if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11430 echo $ECHO_N "(cached) $ECHO_C" >&6 11431else 11432 ac_check_lib_save_LIBS=$LIBS 11433LIBS="-ldl $LIBS" 11434cat >conftest.$ac_ext <<_ACEOF 11435/* confdefs.h. */ 11436_ACEOF 11437cat confdefs.h >>conftest.$ac_ext 11438cat >>conftest.$ac_ext <<_ACEOF 11439/* end confdefs.h. */ 11440 11441/* Override any gcc2 internal prototype to avoid an error. */ 11442#ifdef __cplusplus 11443extern "C" 11444#endif 11445/* We use char because int might match the return type of a gcc2 11446 builtin and then its argument prototype would still apply. */ 11447char dlopen (); 11448int 11449main () 11450{ 11451dlopen (); 11452 ; 11453 return 0; 11454} 11455_ACEOF 11456rm -f conftest.$ac_objext conftest$ac_exeext 11457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11458 (eval $ac_link) 2>conftest.er1 11459 ac_status=$? 11460 grep -v '^ *+' conftest.er1 >conftest.err 11461 rm -f conftest.er1 11462 cat conftest.err >&5 11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11464 (exit $ac_status); } && 11465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11467 (eval $ac_try) 2>&5 11468 ac_status=$? 11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11470 (exit $ac_status); }; } && 11471 { ac_try='test -s conftest$ac_exeext' 11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11473 (eval $ac_try) 2>&5 11474 ac_status=$? 11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11476 (exit $ac_status); }; }; then 11477 ac_cv_lib_dl_dlopen=yes 11478else 11479 echo "$as_me: failed program was:" >&5 11480sed 's/^/| /' conftest.$ac_ext >&5 11481 11482ac_cv_lib_dl_dlopen=no 11483fi 11484rm -f conftest.err conftest.$ac_objext \ 11485 conftest$ac_exeext conftest.$ac_ext 11486LIBS=$ac_check_lib_save_LIBS 11487fi 11488echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11489echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11490if test $ac_cv_lib_dl_dlopen = yes; then 11491 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11492else 11493 11494 lt_cv_dlopen="dyld" 11495 lt_cv_dlopen_libs= 11496 lt_cv_dlopen_self=yes 11497 11498fi 11499 11500 ;; 11501 11502 *) 11503 echo "$as_me:$LINENO: checking for shl_load" >&5 11504echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 11505if test "${ac_cv_func_shl_load+set}" = set; then 11506 echo $ECHO_N "(cached) $ECHO_C" >&6 11507else 11508 cat >conftest.$ac_ext <<_ACEOF 11509/* confdefs.h. */ 11510_ACEOF 11511cat confdefs.h >>conftest.$ac_ext 11512cat >>conftest.$ac_ext <<_ACEOF 11513/* end confdefs.h. */ 11514/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11515 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11516#define shl_load innocuous_shl_load 11517 11518/* System header to define __stub macros and hopefully few prototypes, 11519 which can conflict with char shl_load (); below. 11520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11521 <limits.h> exists even on freestanding compilers. */ 11522 11523#ifdef __STDC__ 11524# include <limits.h> 11525#else 11526# include <assert.h> 11527#endif 11528 11529#undef shl_load 11530 11531/* Override any gcc2 internal prototype to avoid an error. */ 11532#ifdef __cplusplus 11533extern "C" 11534{ 11535#endif 11536/* We use char because int might match the return type of a gcc2 11537 builtin and then its argument prototype would still apply. */ 11538char shl_load (); 11539/* The GNU C library defines this for functions which it implements 11540 to always fail with ENOSYS. Some functions are actually named 11541 something starting with __ and the normal name is an alias. */ 11542#if defined (__stub_shl_load) || defined (__stub___shl_load) 11543choke me 11544#else 11545char (*f) () = shl_load; 11546#endif 11547#ifdef __cplusplus 11548} 11549#endif 11550 11551int 11552main () 11553{ 11554return f != shl_load; 11555 ; 11556 return 0; 11557} 11558_ACEOF 11559rm -f conftest.$ac_objext conftest$ac_exeext 11560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11561 (eval $ac_link) 2>conftest.er1 11562 ac_status=$? 11563 grep -v '^ *+' conftest.er1 >conftest.err 11564 rm -f conftest.er1 11565 cat conftest.err >&5 11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11567 (exit $ac_status); } && 11568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11570 (eval $ac_try) 2>&5 11571 ac_status=$? 11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11573 (exit $ac_status); }; } && 11574 { ac_try='test -s conftest$ac_exeext' 11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11576 (eval $ac_try) 2>&5 11577 ac_status=$? 11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11579 (exit $ac_status); }; }; then 11580 ac_cv_func_shl_load=yes 11581else 11582 echo "$as_me: failed program was:" >&5 11583sed 's/^/| /' conftest.$ac_ext >&5 11584 11585ac_cv_func_shl_load=no 11586fi 11587rm -f conftest.err conftest.$ac_objext \ 11588 conftest$ac_exeext conftest.$ac_ext 11589fi 11590echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11591echo "${ECHO_T}$ac_cv_func_shl_load" >&6 11592if test $ac_cv_func_shl_load = yes; then 11593 lt_cv_dlopen="shl_load" 11594else 11595 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11596echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 11597if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11598 echo $ECHO_N "(cached) $ECHO_C" >&6 11599else 11600 ac_check_lib_save_LIBS=$LIBS 11601LIBS="-ldld $LIBS" 11602cat >conftest.$ac_ext <<_ACEOF 11603/* confdefs.h. */ 11604_ACEOF 11605cat confdefs.h >>conftest.$ac_ext 11606cat >>conftest.$ac_ext <<_ACEOF 11607/* end confdefs.h. */ 11608 11609/* Override any gcc2 internal prototype to avoid an error. */ 11610#ifdef __cplusplus 11611extern "C" 11612#endif 11613/* We use char because int might match the return type of a gcc2 11614 builtin and then its argument prototype would still apply. */ 11615char shl_load (); 11616int 11617main () 11618{ 11619shl_load (); 11620 ; 11621 return 0; 11622} 11623_ACEOF 11624rm -f conftest.$ac_objext conftest$ac_exeext 11625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11626 (eval $ac_link) 2>conftest.er1 11627 ac_status=$? 11628 grep -v '^ *+' conftest.er1 >conftest.err 11629 rm -f conftest.er1 11630 cat conftest.err >&5 11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11632 (exit $ac_status); } && 11633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11635 (eval $ac_try) 2>&5 11636 ac_status=$? 11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11638 (exit $ac_status); }; } && 11639 { ac_try='test -s conftest$ac_exeext' 11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11641 (eval $ac_try) 2>&5 11642 ac_status=$? 11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11644 (exit $ac_status); }; }; then 11645 ac_cv_lib_dld_shl_load=yes 11646else 11647 echo "$as_me: failed program was:" >&5 11648sed 's/^/| /' conftest.$ac_ext >&5 11649 11650ac_cv_lib_dld_shl_load=no 11651fi 11652rm -f conftest.err conftest.$ac_objext \ 11653 conftest$ac_exeext conftest.$ac_ext 11654LIBS=$ac_check_lib_save_LIBS 11655fi 11656echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11657echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 11658if test $ac_cv_lib_dld_shl_load = yes; then 11659 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 11660else 11661 echo "$as_me:$LINENO: checking for dlopen" >&5 11662echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 11663if test "${ac_cv_func_dlopen+set}" = set; then 11664 echo $ECHO_N "(cached) $ECHO_C" >&6 11665else 11666 cat >conftest.$ac_ext <<_ACEOF 11667/* confdefs.h. */ 11668_ACEOF 11669cat confdefs.h >>conftest.$ac_ext 11670cat >>conftest.$ac_ext <<_ACEOF 11671/* end confdefs.h. */ 11672/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11673 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11674#define dlopen innocuous_dlopen 11675 11676/* System header to define __stub macros and hopefully few prototypes, 11677 which can conflict with char dlopen (); below. 11678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11679 <limits.h> exists even on freestanding compilers. */ 11680 11681#ifdef __STDC__ 11682# include <limits.h> 11683#else 11684# include <assert.h> 11685#endif 11686 11687#undef dlopen 11688 11689/* Override any gcc2 internal prototype to avoid an error. */ 11690#ifdef __cplusplus 11691extern "C" 11692{ 11693#endif 11694/* We use char because int might match the return type of a gcc2 11695 builtin and then its argument prototype would still apply. */ 11696char dlopen (); 11697/* The GNU C library defines this for functions which it implements 11698 to always fail with ENOSYS. Some functions are actually named 11699 something starting with __ and the normal name is an alias. */ 11700#if defined (__stub_dlopen) || defined (__stub___dlopen) 11701choke me 11702#else 11703char (*f) () = dlopen; 11704#endif 11705#ifdef __cplusplus 11706} 11707#endif 11708 11709int 11710main () 11711{ 11712return f != dlopen; 11713 ; 11714 return 0; 11715} 11716_ACEOF 11717rm -f conftest.$ac_objext conftest$ac_exeext 11718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11719 (eval $ac_link) 2>conftest.er1 11720 ac_status=$? 11721 grep -v '^ *+' conftest.er1 >conftest.err 11722 rm -f conftest.er1 11723 cat conftest.err >&5 11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11725 (exit $ac_status); } && 11726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11728 (eval $ac_try) 2>&5 11729 ac_status=$? 11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11731 (exit $ac_status); }; } && 11732 { ac_try='test -s conftest$ac_exeext' 11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11734 (eval $ac_try) 2>&5 11735 ac_status=$? 11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11737 (exit $ac_status); }; }; then 11738 ac_cv_func_dlopen=yes 11739else 11740 echo "$as_me: failed program was:" >&5 11741sed 's/^/| /' conftest.$ac_ext >&5 11742 11743ac_cv_func_dlopen=no 11744fi 11745rm -f conftest.err conftest.$ac_objext \ 11746 conftest$ac_exeext conftest.$ac_ext 11747fi 11748echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11749echo "${ECHO_T}$ac_cv_func_dlopen" >&6 11750if test $ac_cv_func_dlopen = yes; then 11751 lt_cv_dlopen="dlopen" 11752else 11753 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11754echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11755if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11756 echo $ECHO_N "(cached) $ECHO_C" >&6 11757else 11758 ac_check_lib_save_LIBS=$LIBS 11759LIBS="-ldl $LIBS" 11760cat >conftest.$ac_ext <<_ACEOF 11761/* confdefs.h. */ 11762_ACEOF 11763cat confdefs.h >>conftest.$ac_ext 11764cat >>conftest.$ac_ext <<_ACEOF 11765/* end confdefs.h. */ 11766 11767/* Override any gcc2 internal prototype to avoid an error. */ 11768#ifdef __cplusplus 11769extern "C" 11770#endif 11771/* We use char because int might match the return type of a gcc2 11772 builtin and then its argument prototype would still apply. */ 11773char dlopen (); 11774int 11775main () 11776{ 11777dlopen (); 11778 ; 11779 return 0; 11780} 11781_ACEOF 11782rm -f conftest.$ac_objext conftest$ac_exeext 11783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11784 (eval $ac_link) 2>conftest.er1 11785 ac_status=$? 11786 grep -v '^ *+' conftest.er1 >conftest.err 11787 rm -f conftest.er1 11788 cat conftest.err >&5 11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11790 (exit $ac_status); } && 11791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11793 (eval $ac_try) 2>&5 11794 ac_status=$? 11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11796 (exit $ac_status); }; } && 11797 { ac_try='test -s conftest$ac_exeext' 11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11799 (eval $ac_try) 2>&5 11800 ac_status=$? 11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11802 (exit $ac_status); }; }; then 11803 ac_cv_lib_dl_dlopen=yes 11804else 11805 echo "$as_me: failed program was:" >&5 11806sed 's/^/| /' conftest.$ac_ext >&5 11807 11808ac_cv_lib_dl_dlopen=no 11809fi 11810rm -f conftest.err conftest.$ac_objext \ 11811 conftest$ac_exeext conftest.$ac_ext 11812LIBS=$ac_check_lib_save_LIBS 11813fi 11814echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11815echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11816if test $ac_cv_lib_dl_dlopen = yes; then 11817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11818else 11819 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11820echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 11821if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11822 echo $ECHO_N "(cached) $ECHO_C" >&6 11823else 11824 ac_check_lib_save_LIBS=$LIBS 11825LIBS="-lsvld $LIBS" 11826cat >conftest.$ac_ext <<_ACEOF 11827/* confdefs.h. */ 11828_ACEOF 11829cat confdefs.h >>conftest.$ac_ext 11830cat >>conftest.$ac_ext <<_ACEOF 11831/* end confdefs.h. */ 11832 11833/* Override any gcc2 internal prototype to avoid an error. */ 11834#ifdef __cplusplus 11835extern "C" 11836#endif 11837/* We use char because int might match the return type of a gcc2 11838 builtin and then its argument prototype would still apply. */ 11839char dlopen (); 11840int 11841main () 11842{ 11843dlopen (); 11844 ; 11845 return 0; 11846} 11847_ACEOF 11848rm -f conftest.$ac_objext conftest$ac_exeext 11849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11850 (eval $ac_link) 2>conftest.er1 11851 ac_status=$? 11852 grep -v '^ *+' conftest.er1 >conftest.err 11853 rm -f conftest.er1 11854 cat conftest.err >&5 11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11856 (exit $ac_status); } && 11857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11859 (eval $ac_try) 2>&5 11860 ac_status=$? 11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11862 (exit $ac_status); }; } && 11863 { ac_try='test -s conftest$ac_exeext' 11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11865 (eval $ac_try) 2>&5 11866 ac_status=$? 11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11868 (exit $ac_status); }; }; then 11869 ac_cv_lib_svld_dlopen=yes 11870else 11871 echo "$as_me: failed program was:" >&5 11872sed 's/^/| /' conftest.$ac_ext >&5 11873 11874ac_cv_lib_svld_dlopen=no 11875fi 11876rm -f conftest.err conftest.$ac_objext \ 11877 conftest$ac_exeext conftest.$ac_ext 11878LIBS=$ac_check_lib_save_LIBS 11879fi 11880echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11881echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 11882if test $ac_cv_lib_svld_dlopen = yes; then 11883 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11884else 11885 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11886echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 11887if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11888 echo $ECHO_N "(cached) $ECHO_C" >&6 11889else 11890 ac_check_lib_save_LIBS=$LIBS 11891LIBS="-ldld $LIBS" 11892cat >conftest.$ac_ext <<_ACEOF 11893/* confdefs.h. */ 11894_ACEOF 11895cat confdefs.h >>conftest.$ac_ext 11896cat >>conftest.$ac_ext <<_ACEOF 11897/* end confdefs.h. */ 11898 11899/* Override any gcc2 internal prototype to avoid an error. */ 11900#ifdef __cplusplus 11901extern "C" 11902#endif 11903/* We use char because int might match the return type of a gcc2 11904 builtin and then its argument prototype would still apply. */ 11905char dld_link (); 11906int 11907main () 11908{ 11909dld_link (); 11910 ; 11911 return 0; 11912} 11913_ACEOF 11914rm -f conftest.$ac_objext conftest$ac_exeext 11915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11916 (eval $ac_link) 2>conftest.er1 11917 ac_status=$? 11918 grep -v '^ *+' conftest.er1 >conftest.err 11919 rm -f conftest.er1 11920 cat conftest.err >&5 11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11922 (exit $ac_status); } && 11923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11925 (eval $ac_try) 2>&5 11926 ac_status=$? 11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11928 (exit $ac_status); }; } && 11929 { ac_try='test -s conftest$ac_exeext' 11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11931 (eval $ac_try) 2>&5 11932 ac_status=$? 11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11934 (exit $ac_status); }; }; then 11935 ac_cv_lib_dld_dld_link=yes 11936else 11937 echo "$as_me: failed program was:" >&5 11938sed 's/^/| /' conftest.$ac_ext >&5 11939 11940ac_cv_lib_dld_dld_link=no 11941fi 11942rm -f conftest.err conftest.$ac_objext \ 11943 conftest$ac_exeext conftest.$ac_ext 11944LIBS=$ac_check_lib_save_LIBS 11945fi 11946echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11947echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 11948if test $ac_cv_lib_dld_dld_link = yes; then 11949 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11950fi 11951 11952 11953fi 11954 11955 11956fi 11957 11958 11959fi 11960 11961 11962fi 11963 11964 11965fi 11966 11967 ;; 11968 esac 11969 11970 if test "x$lt_cv_dlopen" != xno; then 11971 enable_dlopen=yes 11972 else 11973 enable_dlopen=no 11974 fi 11975 11976 case $lt_cv_dlopen in 11977 dlopen) 11978 save_CPPFLAGS="$CPPFLAGS" 11979 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11980 11981 save_LDFLAGS="$LDFLAGS" 11982 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11983 11984 save_LIBS="$LIBS" 11985 LIBS="$lt_cv_dlopen_libs $LIBS" 11986 11987 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11988echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 11989if test "${lt_cv_dlopen_self+set}" = set; then 11990 echo $ECHO_N "(cached) $ECHO_C" >&6 11991else 11992 if test "$cross_compiling" = yes; then : 11993 lt_cv_dlopen_self=cross 11994else 11995 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11996 lt_status=$lt_dlunknown 11997 cat > conftest.$ac_ext <<EOF 11998#line 11998 "configure" 11999#include "confdefs.h" 12000 12001#if HAVE_DLFCN_H 12002#include <dlfcn.h> 12003#endif 12004 12005#include <stdio.h> 12006 12007#ifdef RTLD_GLOBAL 12008# define LT_DLGLOBAL RTLD_GLOBAL 12009#else 12010# ifdef DL_GLOBAL 12011# define LT_DLGLOBAL DL_GLOBAL 12012# else 12013# define LT_DLGLOBAL 0 12014# endif 12015#endif 12016 12017/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12018 find out it does not work in some platform. */ 12019#ifndef LT_DLLAZY_OR_NOW 12020# ifdef RTLD_LAZY 12021# define LT_DLLAZY_OR_NOW RTLD_LAZY 12022# else 12023# ifdef DL_LAZY 12024# define LT_DLLAZY_OR_NOW DL_LAZY 12025# else 12026# ifdef RTLD_NOW 12027# define LT_DLLAZY_OR_NOW RTLD_NOW 12028# else 12029# ifdef DL_NOW 12030# define LT_DLLAZY_OR_NOW DL_NOW 12031# else 12032# define LT_DLLAZY_OR_NOW 0 12033# endif 12034# endif 12035# endif 12036# endif 12037#endif 12038 12039#ifdef __cplusplus 12040extern "C" void exit (int); 12041#endif 12042 12043void fnord() { int i=42;} 12044int main () 12045{ 12046 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12047 int status = $lt_dlunknown; 12048 12049 if (self) 12050 { 12051 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12052 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12053 /* dlclose (self); */ 12054 } 12055 12056 exit (status); 12057} 12058EOF 12059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12060 (eval $ac_link) 2>&5 12061 ac_status=$? 12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12063 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12064 (./conftest; exit; ) 2>/dev/null 12065 lt_status=$? 12066 case x$lt_status in 12067 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12068 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12069 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12070 esac 12071 else : 12072 # compilation failed 12073 lt_cv_dlopen_self=no 12074 fi 12075fi 12076rm -fr conftest* 12077 12078 12079fi 12080echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12081echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12082 12083 if test "x$lt_cv_dlopen_self" = xyes; then 12084 LDFLAGS="$LDFLAGS $link_static_flag" 12085 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12086echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12087if test "${lt_cv_dlopen_self_static+set}" = set; then 12088 echo $ECHO_N "(cached) $ECHO_C" >&6 12089else 12090 if test "$cross_compiling" = yes; then : 12091 lt_cv_dlopen_self_static=cross 12092else 12093 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12094 lt_status=$lt_dlunknown 12095 cat > conftest.$ac_ext <<EOF 12096#line 12096 "configure" 12097#include "confdefs.h" 12098 12099#if HAVE_DLFCN_H 12100#include <dlfcn.h> 12101#endif 12102 12103#include <stdio.h> 12104 12105#ifdef RTLD_GLOBAL 12106# define LT_DLGLOBAL RTLD_GLOBAL 12107#else 12108# ifdef DL_GLOBAL 12109# define LT_DLGLOBAL DL_GLOBAL 12110# else 12111# define LT_DLGLOBAL 0 12112# endif 12113#endif 12114 12115/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12116 find out it does not work in some platform. */ 12117#ifndef LT_DLLAZY_OR_NOW 12118# ifdef RTLD_LAZY 12119# define LT_DLLAZY_OR_NOW RTLD_LAZY 12120# else 12121# ifdef DL_LAZY 12122# define LT_DLLAZY_OR_NOW DL_LAZY 12123# else 12124# ifdef RTLD_NOW 12125# define LT_DLLAZY_OR_NOW RTLD_NOW 12126# else 12127# ifdef DL_NOW 12128# define LT_DLLAZY_OR_NOW DL_NOW 12129# else 12130# define LT_DLLAZY_OR_NOW 0 12131# endif 12132# endif 12133# endif 12134# endif 12135#endif 12136 12137#ifdef __cplusplus 12138extern "C" void exit (int); 12139#endif 12140 12141void fnord() { int i=42;} 12142int main () 12143{ 12144 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12145 int status = $lt_dlunknown; 12146 12147 if (self) 12148 { 12149 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12150 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12151 /* dlclose (self); */ 12152 } 12153 12154 exit (status); 12155} 12156EOF 12157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12158 (eval $ac_link) 2>&5 12159 ac_status=$? 12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12161 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12162 (./conftest; exit; ) 2>/dev/null 12163 lt_status=$? 12164 case x$lt_status in 12165 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12166 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12167 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12168 esac 12169 else : 12170 # compilation failed 12171 lt_cv_dlopen_self_static=no 12172 fi 12173fi 12174rm -fr conftest* 12175 12176 12177fi 12178echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12179echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 12180 fi 12181 12182 CPPFLAGS="$save_CPPFLAGS" 12183 LDFLAGS="$save_LDFLAGS" 12184 LIBS="$save_LIBS" 12185 ;; 12186 esac 12187 12188 case $lt_cv_dlopen_self in 12189 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12190 *) enable_dlopen_self=unknown ;; 12191 esac 12192 12193 case $lt_cv_dlopen_self_static in 12194 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12195 *) enable_dlopen_self_static=unknown ;; 12196 esac 12197fi 12198 12199 12200# The else clause should only fire when bootstrapping the 12201# libtool distribution, otherwise you forgot to ship ltmain.sh 12202# with your package, and you will get complaints that there are 12203# no rules to generate ltmain.sh. 12204if test -f "$ltmain"; then 12205 # See if we are running on zsh, and set the options which allow our commands through 12206 # without removal of \ escapes. 12207 if test -n "${ZSH_VERSION+set}" ; then 12208 setopt NO_GLOB_SUBST 12209 fi 12210 # Now quote all the things that may contain metacharacters while being 12211 # careful not to overquote the AC_SUBSTed values. We take copies of the 12212 # variables and quote the copies for generation of the libtool script. 12213 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 12214 SED SHELL STRIP \ 12215 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12216 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12217 deplibs_check_method reload_flag reload_cmds need_locks \ 12218 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12219 lt_cv_sys_global_symbol_to_c_name_address \ 12220 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12221 old_postinstall_cmds old_postuninstall_cmds \ 12222 compiler_CXX \ 12223 CC_CXX \ 12224 LD_CXX \ 12225 lt_prog_compiler_wl_CXX \ 12226 lt_prog_compiler_pic_CXX \ 12227 lt_prog_compiler_static_CXX \ 12228 lt_prog_compiler_no_builtin_flag_CXX \ 12229 export_dynamic_flag_spec_CXX \ 12230 thread_safe_flag_spec_CXX \ 12231 whole_archive_flag_spec_CXX \ 12232 enable_shared_with_static_runtimes_CXX \ 12233 old_archive_cmds_CXX \ 12234 old_archive_from_new_cmds_CXX \ 12235 predep_objects_CXX \ 12236 postdep_objects_CXX \ 12237 predeps_CXX \ 12238 postdeps_CXX \ 12239 compiler_lib_search_path_CXX \ 12240 archive_cmds_CXX \ 12241 archive_expsym_cmds_CXX \ 12242 postinstall_cmds_CXX \ 12243 postuninstall_cmds_CXX \ 12244 old_archive_from_expsyms_cmds_CXX \ 12245 allow_undefined_flag_CXX \ 12246 no_undefined_flag_CXX \ 12247 export_symbols_cmds_CXX \ 12248 hardcode_libdir_flag_spec_CXX \ 12249 hardcode_libdir_flag_spec_ld_CXX \ 12250 hardcode_libdir_separator_CXX \ 12251 hardcode_automatic_CXX \ 12252 module_cmds_CXX \ 12253 module_expsym_cmds_CXX \ 12254 lt_cv_prog_compiler_c_o_CXX \ 12255 exclude_expsyms_CXX \ 12256 include_expsyms_CXX; do 12257 12258 case $var in 12259 old_archive_cmds_CXX | \ 12260 old_archive_from_new_cmds_CXX | \ 12261 archive_cmds_CXX | \ 12262 archive_expsym_cmds_CXX | \ 12263 module_cmds_CXX | \ 12264 module_expsym_cmds_CXX | \ 12265 old_archive_from_expsyms_cmds_CXX | \ 12266 export_symbols_cmds_CXX | \ 12267 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12268 postinstall_cmds | postuninstall_cmds | \ 12269 old_postinstall_cmds | old_postuninstall_cmds | \ 12270 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12271 # Double-quote double-evaled strings. 12272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12273 ;; 12274 *) 12275 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12276 ;; 12277 esac 12278 done 12279 12280 case $lt_echo in 12281 *'\$0 --fallback-echo"') 12282 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12283 ;; 12284 esac 12285 12286cfgfile="$ofile" 12287 12288 cat <<__EOF__ >> "$cfgfile" 12289# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12290 12291# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12292 12293# Shell to use when invoking shell scripts. 12294SHELL=$lt_SHELL 12295 12296# Whether or not to build shared libraries. 12297build_libtool_libs=$enable_shared 12298 12299# Whether or not to build static libraries. 12300build_old_libs=$enable_static 12301 12302# Whether or not to add -lc for building shared libraries. 12303build_libtool_need_lc=$archive_cmds_need_lc_CXX 12304 12305# Whether or not to disallow shared libs when runtime libs are static 12306allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12307 12308# Whether or not to optimize for fast installation. 12309fast_install=$enable_fast_install 12310 12311# The host system. 12312host_alias=$host_alias 12313host=$host 12314 12315# An echo program that does not interpret backslashes. 12316echo=$lt_echo 12317 12318# The archiver. 12319AR=$lt_AR 12320AR_FLAGS=$lt_AR_FLAGS 12321 12322# A C compiler. 12323LTCC=$lt_LTCC 12324 12325# A language-specific compiler. 12326CC=$lt_compiler_CXX 12327 12328# Is the compiler the GNU C compiler? 12329with_gcc=$GCC_CXX 12330 12331# An ERE matcher. 12332EGREP=$lt_EGREP 12333 12334# The linker used to build libraries. 12335LD=$lt_LD_CXX 12336 12337# Whether we need hard or soft links. 12338LN_S=$lt_LN_S 12339 12340# A BSD-compatible nm program. 12341NM=$lt_NM 12342 12343# A symbol stripping program 12344STRIP=$lt_STRIP 12345 12346# Used to examine libraries when file_magic_cmd begins "file" 12347MAGIC_CMD=$MAGIC_CMD 12348 12349# Used on cygwin: DLL creation program. 12350DLLTOOL="$DLLTOOL" 12351 12352# Used on cygwin: object dumper. 12353OBJDUMP="$OBJDUMP" 12354 12355# Used on cygwin: assembler. 12356AS="$AS" 12357 12358# The name of the directory that contains temporary libtool files. 12359objdir=$objdir 12360 12361# How to create reloadable object files. 12362reload_flag=$lt_reload_flag 12363reload_cmds=$lt_reload_cmds 12364 12365# How to pass a linker flag through the compiler. 12366wl=$lt_lt_prog_compiler_wl_CXX 12367 12368# Object file suffix (normally "o"). 12369objext="$ac_objext" 12370 12371# Old archive suffix (normally "a"). 12372libext="$libext" 12373 12374# Shared library suffix (normally ".so"). 12375shrext_cmds='$shrext_cmds' 12376 12377# Executable file suffix (normally ""). 12378exeext="$exeext" 12379 12380# Additional compiler flags for building library objects. 12381pic_flag=$lt_lt_prog_compiler_pic_CXX 12382pic_mode=$pic_mode 12383 12384# What is the maximum length of a command? 12385max_cmd_len=$lt_cv_sys_max_cmd_len 12386 12387# Does compiler simultaneously support -c and -o options? 12388compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12389 12390# Must we lock files when doing compilation ? 12391need_locks=$lt_need_locks 12392 12393# Do we need the lib prefix for modules? 12394need_lib_prefix=$need_lib_prefix 12395 12396# Do we need a version for libraries? 12397need_version=$need_version 12398 12399# Whether dlopen is supported. 12400dlopen_support=$enable_dlopen 12401 12402# Whether dlopen of programs is supported. 12403dlopen_self=$enable_dlopen_self 12404 12405# Whether dlopen of statically linked programs is supported. 12406dlopen_self_static=$enable_dlopen_self_static 12407 12408# Compiler flag to prevent dynamic linking. 12409link_static_flag=$lt_lt_prog_compiler_static_CXX 12410 12411# Compiler flag to turn off builtin functions. 12412no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12413 12414# Compiler flag to allow reflexive dlopens. 12415export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12416 12417# Compiler flag to generate shared objects directly from archives. 12418whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12419 12420# Compiler flag to generate thread-safe objects. 12421thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12422 12423# Library versioning type. 12424version_type=$version_type 12425 12426# Format of library name prefix. 12427libname_spec=$lt_libname_spec 12428 12429# List of archive names. First name is the real one, the rest are links. 12430# The last name is the one that the linker finds with -lNAME. 12431library_names_spec=$lt_library_names_spec 12432 12433# The coded name of the library, if different from the real name. 12434soname_spec=$lt_soname_spec 12435 12436# Commands used to build and install an old-style archive. 12437RANLIB=$lt_RANLIB 12438old_archive_cmds=$lt_old_archive_cmds_CXX 12439old_postinstall_cmds=$lt_old_postinstall_cmds 12440old_postuninstall_cmds=$lt_old_postuninstall_cmds 12441 12442# Create an old-style archive from a shared archive. 12443old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12444 12445# Create a temporary old-style archive to link instead of a shared archive. 12446old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12447 12448# Commands used to build and install a shared archive. 12449archive_cmds=$lt_archive_cmds_CXX 12450archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12451postinstall_cmds=$lt_postinstall_cmds 12452postuninstall_cmds=$lt_postuninstall_cmds 12453 12454# Commands used to build a loadable module (assumed same as above if empty) 12455module_cmds=$lt_module_cmds_CXX 12456module_expsym_cmds=$lt_module_expsym_cmds_CXX 12457 12458# Commands to strip libraries. 12459old_striplib=$lt_old_striplib 12460striplib=$lt_striplib 12461 12462# Dependencies to place before the objects being linked to create a 12463# shared library. 12464predep_objects=$lt_predep_objects_CXX 12465 12466# Dependencies to place after the objects being linked to create a 12467# shared library. 12468postdep_objects=$lt_postdep_objects_CXX 12469 12470# Dependencies to place before the objects being linked to create a 12471# shared library. 12472predeps=$lt_predeps_CXX 12473 12474# Dependencies to place after the objects being linked to create a 12475# shared library. 12476postdeps=$lt_postdeps_CXX 12477 12478# The library search path used internally by the compiler when linking 12479# a shared library. 12480compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12481 12482# Method to check whether dependent libraries are shared objects. 12483deplibs_check_method=$lt_deplibs_check_method 12484 12485# Command to use when deplibs_check_method == file_magic. 12486file_magic_cmd=$lt_file_magic_cmd 12487 12488# Flag that allows shared libraries with undefined symbols to be built. 12489allow_undefined_flag=$lt_allow_undefined_flag_CXX 12490 12491# Flag that forces no undefined symbols. 12492no_undefined_flag=$lt_no_undefined_flag_CXX 12493 12494# Commands used to finish a libtool library installation in a directory. 12495finish_cmds=$lt_finish_cmds 12496 12497# Same as above, but a single script fragment to be evaled but not shown. 12498finish_eval=$lt_finish_eval 12499 12500# Take the output of nm and produce a listing of raw symbols and C names. 12501global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12502 12503# Transform the output of nm in a proper C declaration 12504global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12505 12506# Transform the output of nm in a C name address pair 12507global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12508 12509# This is the shared library runtime path variable. 12510runpath_var=$runpath_var 12511 12512# This is the shared library path variable. 12513shlibpath_var=$shlibpath_var 12514 12515# Is shlibpath searched before the hard-coded library search path? 12516shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12517 12518# How to hardcode a shared library path into an executable. 12519hardcode_action=$hardcode_action_CXX 12520 12521# Whether we should hardcode library paths into libraries. 12522hardcode_into_libs=$hardcode_into_libs 12523 12524# Flag to hardcode \$libdir into a binary during linking. 12525# This must work even if \$libdir does not exist. 12526hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12527 12528# If ld is used when linking, flag to hardcode \$libdir into 12529# a binary during linking. This must work even if \$libdir does 12530# not exist. 12531hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12532 12533# Whether we need a single -rpath flag with a separated argument. 12534hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12535 12536# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12537# resulting binary. 12538hardcode_direct=$hardcode_direct_CXX 12539 12540# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12541# resulting binary. 12542hardcode_minus_L=$hardcode_minus_L_CXX 12543 12544# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12545# the resulting binary. 12546hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12547 12548# Set to yes if building a shared library automatically hardcodes DIR into the library 12549# and all subsequent libraries and executables linked against it. 12550hardcode_automatic=$hardcode_automatic_CXX 12551 12552# Variables whose values should be saved in libtool wrapper scripts and 12553# restored at relink time. 12554variables_saved_for_relink="$variables_saved_for_relink" 12555 12556# Whether libtool must link a program against all its dependency libraries. 12557link_all_deplibs=$link_all_deplibs_CXX 12558 12559# Compile-time system search path for libraries 12560sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12561 12562# Run-time system search path for libraries 12563sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12564 12565# Fix the shell variable \$srcfile for the compiler. 12566fix_srcfile_path="$fix_srcfile_path_CXX" 12567 12568# Set to yes if exported symbols are required. 12569always_export_symbols=$always_export_symbols_CXX 12570 12571# The commands to list exported symbols. 12572export_symbols_cmds=$lt_export_symbols_cmds_CXX 12573 12574# The commands to extract the exported symbol list from a shared archive. 12575extract_expsyms_cmds=$lt_extract_expsyms_cmds 12576 12577# Symbols that should not be listed in the preloaded symbols. 12578exclude_expsyms=$lt_exclude_expsyms_CXX 12579 12580# Symbols that must always be exported. 12581include_expsyms=$lt_include_expsyms_CXX 12582 12583# ### END LIBTOOL TAG CONFIG: $tagname 12584 12585__EOF__ 12586 12587 12588else 12589 # If there is no Makefile yet, we rely on a make rule to execute 12590 # `config.status --recheck' to rerun these tests and create the 12591 # libtool script then. 12592 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12593 if test -f "$ltmain_in"; then 12594 test -f Makefile && make "$ltmain" 12595 fi 12596fi 12597 12598 12599ac_ext=c 12600ac_cpp='$CPP $CPPFLAGS' 12601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12603ac_compiler_gnu=$ac_cv_c_compiler_gnu 12604 12605CC=$lt_save_CC 12606LDCXX=$LD 12607LD=$lt_save_LD 12608GCC=$lt_save_GCC 12609with_gnu_ldcxx=$with_gnu_ld 12610with_gnu_ld=$lt_save_with_gnu_ld 12611lt_cv_path_LDCXX=$lt_cv_path_LD 12612lt_cv_path_LD=$lt_save_path_LD 12613lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12614lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12615 12616 else 12617 tagname="" 12618 fi 12619 ;; 12620 12621 F77) 12622 if test -n "$F77" && test "X$F77" != "Xno"; then 12623 12624ac_ext=f 12625ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12626ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12627ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12628 12629 12630archive_cmds_need_lc_F77=no 12631allow_undefined_flag_F77= 12632always_export_symbols_F77=no 12633archive_expsym_cmds_F77= 12634export_dynamic_flag_spec_F77= 12635hardcode_direct_F77=no 12636hardcode_libdir_flag_spec_F77= 12637hardcode_libdir_flag_spec_ld_F77= 12638hardcode_libdir_separator_F77= 12639hardcode_minus_L_F77=no 12640hardcode_automatic_F77=no 12641module_cmds_F77= 12642module_expsym_cmds_F77= 12643link_all_deplibs_F77=unknown 12644old_archive_cmds_F77=$old_archive_cmds 12645no_undefined_flag_F77= 12646whole_archive_flag_spec_F77= 12647enable_shared_with_static_runtimes_F77=no 12648 12649# Source file extension for f77 test sources. 12650ac_ext=f 12651 12652# Object file extension for compiled f77 test sources. 12653objext=o 12654objext_F77=$objext 12655 12656# Code to be used in simple compile tests 12657lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12658 12659# Code to be used in simple link tests 12660lt_simple_link_test_code=" program t\n end\n" 12661 12662# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12663 12664# If no C compiler was specified, use CC. 12665LTCC=${LTCC-"$CC"} 12666 12667# Allow CC to be a program name with arguments. 12668compiler=$CC 12669 12670 12671# Allow CC to be a program name with arguments. 12672lt_save_CC="$CC" 12673CC=${F77-"f77"} 12674compiler=$CC 12675compiler_F77=$CC 12676cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 12677 12678echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12679echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12680echo "$as_me:$LINENO: result: $can_build_shared" >&5 12681echo "${ECHO_T}$can_build_shared" >&6 12682 12683echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12684echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12685test "$can_build_shared" = "no" && enable_shared=no 12686 12687# On AIX, shared libraries and static libraries use the same namespace, and 12688# are all built from PIC. 12689case "$host_os" in 12690aix3*) 12691 test "$enable_shared" = yes && enable_static=no 12692 if test -n "$RANLIB"; then 12693 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12694 postinstall_cmds='$RANLIB $lib' 12695 fi 12696 ;; 12697aix4* | aix5*) 12698 test "$enable_shared" = yes && enable_static=no 12699 ;; 12700esac 12701echo "$as_me:$LINENO: result: $enable_shared" >&5 12702echo "${ECHO_T}$enable_shared" >&6 12703 12704echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12705echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 12706# Make sure either enable_shared or enable_static is yes. 12707test "$enable_shared" = yes || enable_static=yes 12708echo "$as_me:$LINENO: result: $enable_static" >&5 12709echo "${ECHO_T}$enable_static" >&6 12710 12711test "$ld_shlibs_F77" = no && can_build_shared=no 12712 12713GCC_F77="$G77" 12714LD_F77="$LD" 12715 12716lt_prog_compiler_wl_F77= 12717lt_prog_compiler_pic_F77= 12718lt_prog_compiler_static_F77= 12719 12720echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12721echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12722 12723 if test "$GCC" = yes; then 12724 lt_prog_compiler_wl_F77='-Wl,' 12725 lt_prog_compiler_static_F77='-static' 12726 12727 case $host_os in 12728 aix*) 12729 # All AIX code is PIC. 12730 if test "$host_cpu" = ia64; then 12731 # AIX 5 now supports IA64 processor 12732 lt_prog_compiler_static_F77='-Bstatic' 12733 fi 12734 ;; 12735 12736 amigaos*) 12737 # FIXME: we need at least 68020 code to build shared libraries, but 12738 # adding the `-m68020' flag to GCC prevents building anything better, 12739 # like `-m68040'. 12740 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 12741 ;; 12742 12743 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12744 # PIC is the default for these OSes. 12745 ;; 12746 12747 mingw* | pw32* | os2*) 12748 # This hack is so that the source file can tell whether it is being 12749 # built for inclusion in a dll (and should export symbols for example). 12750 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12751 ;; 12752 12753 darwin* | rhapsody*) 12754 # PIC is the default on this platform 12755 # Common symbols not allowed in MH_DYLIB files 12756 lt_prog_compiler_pic_F77='-fno-common' 12757 ;; 12758 12759 msdosdjgpp*) 12760 # Just because we use GCC doesn't mean we suddenly get shared libraries 12761 # on systems that don't support them. 12762 lt_prog_compiler_can_build_shared_F77=no 12763 enable_shared=no 12764 ;; 12765 12766 sysv4*MP*) 12767 if test -d /usr/nec; then 12768 lt_prog_compiler_pic_F77=-Kconform_pic 12769 fi 12770 ;; 12771 12772 hpux*) 12773 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12774 # not for PA HP-UX. 12775 case "$host_cpu" in 12776 hppa*64*|ia64*) 12777 # +Z the default 12778 ;; 12779 *) 12780 lt_prog_compiler_pic_F77='-fPIC' 12781 ;; 12782 esac 12783 ;; 12784 12785 *) 12786 lt_prog_compiler_pic_F77='-fPIC' 12787 ;; 12788 esac 12789 else 12790 # PORTME Check for flag to pass linker flags through the system compiler. 12791 case $host_os in 12792 aix*) 12793 lt_prog_compiler_wl_F77='-Wl,' 12794 if test "$host_cpu" = ia64; then 12795 # AIX 5 now supports IA64 processor 12796 lt_prog_compiler_static_F77='-Bstatic' 12797 else 12798 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 12799 fi 12800 ;; 12801 12802 mingw* | pw32* | os2*) 12803 # This hack is so that the source file can tell whether it is being 12804 # built for inclusion in a dll (and should export symbols for example). 12805 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12806 ;; 12807 12808 hpux9* | hpux10* | hpux11*) 12809 lt_prog_compiler_wl_F77='-Wl,' 12810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12811 # not for PA HP-UX. 12812 case "$host_cpu" in 12813 hppa*64*|ia64*) 12814 # +Z the default 12815 ;; 12816 *) 12817 lt_prog_compiler_pic_F77='+Z' 12818 ;; 12819 esac 12820 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12821 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 12822 ;; 12823 12824 irix5* | irix6* | nonstopux*) 12825 lt_prog_compiler_wl_F77='-Wl,' 12826 # PIC (with -KPIC) is the default. 12827 lt_prog_compiler_static_F77='-non_shared' 12828 ;; 12829 12830 newsos6) 12831 lt_prog_compiler_pic_F77='-KPIC' 12832 lt_prog_compiler_static_F77='-Bstatic' 12833 ;; 12834 12835 linux*) 12836 case $CC in 12837 icc* | ecc*) 12838 lt_prog_compiler_wl_F77='-Wl,' 12839 lt_prog_compiler_pic_F77='-KPIC' 12840 lt_prog_compiler_static_F77='-static' 12841 ;; 12842 ccc*) 12843 lt_prog_compiler_wl_F77='-Wl,' 12844 # All Alpha code is PIC. 12845 lt_prog_compiler_static_F77='-non_shared' 12846 ;; 12847 esac 12848 ;; 12849 12850 osf3* | osf4* | osf5*) 12851 lt_prog_compiler_wl_F77='-Wl,' 12852 # All OSF/1 code is PIC. 12853 lt_prog_compiler_static_F77='-non_shared' 12854 ;; 12855 12856 sco3.2v5*) 12857 lt_prog_compiler_pic_F77='-Kpic' 12858 lt_prog_compiler_static_F77='-dn' 12859 ;; 12860 12861 solaris*) 12862 lt_prog_compiler_wl_F77='-Wl,' 12863 lt_prog_compiler_pic_F77='-KPIC' 12864 lt_prog_compiler_static_F77='-Bstatic' 12865 ;; 12866 12867 sunos4*) 12868 lt_prog_compiler_wl_F77='-Qoption ld ' 12869 lt_prog_compiler_pic_F77='-PIC' 12870 lt_prog_compiler_static_F77='-Bstatic' 12871 ;; 12872 12873 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12874 lt_prog_compiler_wl_F77='-Wl,' 12875 lt_prog_compiler_pic_F77='-KPIC' 12876 lt_prog_compiler_static_F77='-Bstatic' 12877 ;; 12878 12879 sysv4*MP*) 12880 if test -d /usr/nec ;then 12881 lt_prog_compiler_pic_F77='-Kconform_pic' 12882 lt_prog_compiler_static_F77='-Bstatic' 12883 fi 12884 ;; 12885 12886 uts4*) 12887 lt_prog_compiler_pic_F77='-pic' 12888 lt_prog_compiler_static_F77='-Bstatic' 12889 ;; 12890 12891 *) 12892 lt_prog_compiler_can_build_shared_F77=no 12893 ;; 12894 esac 12895 fi 12896 12897echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 12898echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 12899 12900# 12901# Check to make sure the PIC flag actually works. 12902# 12903if test -n "$lt_prog_compiler_pic_F77"; then 12904 12905echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 12906echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 12907if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 12908 echo $ECHO_N "(cached) $ECHO_C" >&6 12909else 12910 lt_prog_compiler_pic_works_F77=no 12911 ac_outfile=conftest.$ac_objext 12912 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12913 lt_compiler_flag="$lt_prog_compiler_pic_F77" 12914 # Insert the option either (1) after the last *FLAGS variable, or 12915 # (2) before a word containing "conftest.", or (3) at the end. 12916 # Note that $ac_compile itself does not contain backslashes and begins 12917 # with a dollar sign (not a hyphen), so the echo should work correctly. 12918 # The option is referenced via a variable to avoid confusing sed. 12919 lt_compile=`echo "$ac_compile" | $SED \ 12920 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12922 -e 's:$: $lt_compiler_flag:'` 12923 (eval echo "\"\$as_me:12923: $lt_compile\"" >&5) 12924 (eval "$lt_compile" 2>conftest.err) 12925 ac_status=$? 12926 cat conftest.err >&5 12927 echo "$as_me:12927: \$? = $ac_status" >&5 12928 if (exit $ac_status) && test -s "$ac_outfile"; then 12929 # The compiler can only warn and ignore the option if not recognized 12930 # So say no if there are warnings 12931 if test ! -s conftest.err; then 12932 lt_prog_compiler_pic_works_F77=yes 12933 fi 12934 fi 12935 $rm conftest* 12936 12937fi 12938echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 12939echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 12940 12941if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 12942 case $lt_prog_compiler_pic_F77 in 12943 "" | " "*) ;; 12944 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 12945 esac 12946else 12947 lt_prog_compiler_pic_F77= 12948 lt_prog_compiler_can_build_shared_F77=no 12949fi 12950 12951fi 12952case "$host_os" in 12953 # For platforms which do not support PIC, -DPIC is meaningless: 12954 *djgpp*) 12955 lt_prog_compiler_pic_F77= 12956 ;; 12957 *) 12958 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 12959 ;; 12960esac 12961 12962echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12963echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12964if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 12965 echo $ECHO_N "(cached) $ECHO_C" >&6 12966else 12967 lt_cv_prog_compiler_c_o_F77=no 12968 $rm -r conftest 2>/dev/null 12969 mkdir conftest 12970 cd conftest 12971 mkdir out 12972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12973 12974 lt_compiler_flag="-o out/conftest2.$ac_objext" 12975 # Insert the option either (1) after the last *FLAGS variable, or 12976 # (2) before a word containing "conftest.", or (3) at the end. 12977 # Note that $ac_compile itself does not contain backslashes and begins 12978 # with a dollar sign (not a hyphen), so the echo should work correctly. 12979 lt_compile=`echo "$ac_compile" | $SED \ 12980 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12982 -e 's:$: $lt_compiler_flag:'` 12983 (eval echo "\"\$as_me:12983: $lt_compile\"" >&5) 12984 (eval "$lt_compile" 2>out/conftest.err) 12985 ac_status=$? 12986 cat out/conftest.err >&5 12987 echo "$as_me:12987: \$? = $ac_status" >&5 12988 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12989 then 12990 # The compiler can only warn and ignore the option if not recognized 12991 # So say no if there are warnings 12992 if test ! -s out/conftest.err; then 12993 lt_cv_prog_compiler_c_o_F77=yes 12994 fi 12995 fi 12996 chmod u+w . 12997 $rm conftest* 12998 # SGI C++ compiler will create directory out/ii_files/ for 12999 # template instantiation 13000 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13001 $rm out/* && rmdir out 13002 cd .. 13003 rmdir conftest 13004 $rm conftest* 13005 13006fi 13007echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13008echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13009 13010 13011hard_links="nottested" 13012if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13013 # do not overwrite the value of need_locks provided by the user 13014 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13015echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13016 hard_links=yes 13017 $rm conftest* 13018 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13019 touch conftest.a 13020 ln conftest.a conftest.b 2>&5 || hard_links=no 13021 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13022 echo "$as_me:$LINENO: result: $hard_links" >&5 13023echo "${ECHO_T}$hard_links" >&6 13024 if test "$hard_links" = no; then 13025 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13026echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13027 need_locks=warn 13028 fi 13029else 13030 need_locks=no 13031fi 13032 13033echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13034echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13035 13036 runpath_var= 13037 allow_undefined_flag_F77= 13038 enable_shared_with_static_runtimes_F77=no 13039 archive_cmds_F77= 13040 archive_expsym_cmds_F77= 13041 old_archive_From_new_cmds_F77= 13042 old_archive_from_expsyms_cmds_F77= 13043 export_dynamic_flag_spec_F77= 13044 whole_archive_flag_spec_F77= 13045 thread_safe_flag_spec_F77= 13046 hardcode_libdir_flag_spec_F77= 13047 hardcode_libdir_flag_spec_ld_F77= 13048 hardcode_libdir_separator_F77= 13049 hardcode_direct_F77=no 13050 hardcode_minus_L_F77=no 13051 hardcode_shlibpath_var_F77=unsupported 13052 link_all_deplibs_F77=unknown 13053 hardcode_automatic_F77=no 13054 module_cmds_F77= 13055 module_expsym_cmds_F77= 13056 always_export_symbols_F77=no 13057 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13058 # include_expsyms should be a list of space-separated symbols to be *always* 13059 # included in the symbol list 13060 include_expsyms_F77= 13061 # exclude_expsyms can be an extended regexp of symbols to exclude 13062 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13063 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13064 # as well as any symbol that contains `d'. 13065 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13067 # platforms (ab)use it in PIC code, but their linkers get confused if 13068 # the symbol is explicitly referenced. Since portable code cannot 13069 # rely on this symbol name, it's probably fine to never include it in 13070 # preloaded symbol tables. 13071 extract_expsyms_cmds= 13072 13073 case $host_os in 13074 cygwin* | mingw* | pw32*) 13075 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13076 # When not using gcc, we currently assume that we are using 13077 # Microsoft Visual C++. 13078 if test "$GCC" != yes; then 13079 with_gnu_ld=no 13080 fi 13081 ;; 13082 openbsd*) 13083 with_gnu_ld=no 13084 ;; 13085 esac 13086 13087 ld_shlibs_F77=yes 13088 if test "$with_gnu_ld" = yes; then 13089 # If archive_cmds runs LD, not CC, wlarc should be empty 13090 wlarc='${wl}' 13091 13092 # See if GNU ld supports shared libraries. 13093 case $host_os in 13094 aix3* | aix4* | aix5*) 13095 # On AIX/PPC, the GNU linker is very broken 13096 if test "$host_cpu" != ia64; then 13097 ld_shlibs_F77=no 13098 cat <<EOF 1>&2 13099 13100*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13101*** to be unable to reliably create shared libraries on AIX. 13102*** Therefore, libtool is disabling shared libraries support. If you 13103*** really care for shared libraries, you may want to modify your PATH 13104*** so that a non-GNU linker is found, and then restart. 13105 13106EOF 13107 fi 13108 ;; 13109 13110 amigaos*) 13111 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)' 13112 hardcode_libdir_flag_spec_F77='-L$libdir' 13113 hardcode_minus_L_F77=yes 13114 13115 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13116 # that the semantics of dynamic libraries on AmigaOS, at least up 13117 # to version 4, is to share data among multiple programs linked 13118 # with the same dynamic library. Since this doesn't match the 13119 # behavior of shared libraries on other platforms, we can't use 13120 # them. 13121 ld_shlibs_F77=no 13122 ;; 13123 13124 beos*) 13125 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13126 allow_undefined_flag_F77=unsupported 13127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13128 # support --undefined. This deserves some investigation. FIXME 13129 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13130 else 13131 ld_shlibs_F77=no 13132 fi 13133 ;; 13134 13135 cygwin* | mingw* | pw32*) 13136 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13137 # as there is no search path for DLLs. 13138 hardcode_libdir_flag_spec_F77='-L$libdir' 13139 allow_undefined_flag_F77=unsupported 13140 always_export_symbols_F77=no 13141 enable_shared_with_static_runtimes_F77=yes 13142 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13143 13144 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13145 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13146 # If the export-symbols file already is a .def file (1st line 13147 # is EXPORTS), use it as is; otherwise, prepend... 13148 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13149 cp $export_symbols $output_objdir/$soname.def; 13150 else 13151 echo EXPORTS > $output_objdir/$soname.def; 13152 cat $export_symbols >> $output_objdir/$soname.def; 13153 fi~ 13154 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13155 else 13156 ld_shlibs=no 13157 fi 13158 ;; 13159 13160 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 13161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13162 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13163 wlarc= 13164 else 13165 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13166 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13167 fi 13168 ;; 13169 13170 solaris* | sysv5*) 13171 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13172 ld_shlibs_F77=no 13173 cat <<EOF 1>&2 13174 13175*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13176*** create shared libraries on Solaris systems. Therefore, libtool 13177*** is disabling shared libraries support. We urge you to upgrade GNU 13178*** binutils to release 2.9.1 or newer. Another option is to modify 13179*** your PATH or compiler configuration so that the native linker is 13180*** used, and then restart. 13181 13182EOF 13183 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13184 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13185 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13186 else 13187 ld_shlibs_F77=no 13188 fi 13189 ;; 13190 13191 sunos4*) 13192 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13193 wlarc= 13194 hardcode_direct_F77=yes 13195 hardcode_shlibpath_var_F77=no 13196 ;; 13197 13198 linux*) 13199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13200 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13201 archive_cmds_F77="$tmp_archive_cmds" 13202 supports_anon_versioning=no 13203 case `$LD -v 2>/dev/null` in 13204 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13205 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13206 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13207 *\ 2.11.*) ;; # other 2.11 versions 13208 *) supports_anon_versioning=yes ;; 13209 esac 13210 if test $supports_anon_versioning = yes; then 13211 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13212cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13213$echo "local: *; };" >> $output_objdir/$libname.ver~ 13214 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13215 else 13216 archive_expsym_cmds_F77="$tmp_archive_cmds" 13217 fi 13218 link_all_deplibs_F77=no 13219 else 13220 ld_shlibs_F77=no 13221 fi 13222 ;; 13223 13224 *) 13225 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13226 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13227 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13228 else 13229 ld_shlibs_F77=no 13230 fi 13231 ;; 13232 esac 13233 13234 if test "$ld_shlibs_F77" = yes; then 13235 runpath_var=LD_RUN_PATH 13236 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13237 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13238 # ancient GNU ld didn't support --whole-archive et. al. 13239 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13240 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13241 else 13242 whole_archive_flag_spec_F77= 13243 fi 13244 fi 13245 else 13246 # PORTME fill in a description of your system's linker (not GNU ld) 13247 case $host_os in 13248 aix3*) 13249 allow_undefined_flag_F77=unsupported 13250 always_export_symbols_F77=yes 13251 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' 13252 # Note: this linker hardcodes the directories in LIBPATH if there 13253 # are no directories specified by -L. 13254 hardcode_minus_L_F77=yes 13255 if test "$GCC" = yes && test -z "$link_static_flag"; then 13256 # Neither direct hardcoding nor static linking is supported with a 13257 # broken collect2. 13258 hardcode_direct_F77=unsupported 13259 fi 13260 ;; 13261 13262 aix4* | aix5*) 13263 if test "$host_cpu" = ia64; then 13264 # On IA64, the linker does run time linking by default, so we don't 13265 # have to do anything special. 13266 aix_use_runtimelinking=no 13267 exp_sym_flag='-Bexport' 13268 no_entry_flag="" 13269 else 13270 # If we're using GNU nm, then we don't want the "-C" option. 13271 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13272 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13273 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' 13274 else 13275 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' 13276 fi 13277 aix_use_runtimelinking=no 13278 13279 # Test if we are trying to use run time linking or normal 13280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13281 # need to do runtime linking. 13282 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13283 for ld_flag in $LDFLAGS; do 13284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13285 aix_use_runtimelinking=yes 13286 break 13287 fi 13288 done 13289 esac 13290 13291 exp_sym_flag='-bexport' 13292 no_entry_flag='-bnoentry' 13293 fi 13294 13295 # When large executables or shared objects are built, AIX ld can 13296 # have problems creating the table of contents. If linking a library 13297 # or program results in "error TOC overflow" add -mminimal-toc to 13298 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13299 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13300 13301 archive_cmds_F77='' 13302 hardcode_direct_F77=yes 13303 hardcode_libdir_separator_F77=':' 13304 link_all_deplibs_F77=yes 13305 13306 if test "$GCC" = yes; then 13307 case $host_os in aix4.012|aix4.012.*) 13308 # We only want to do this on AIX 4.2 and lower, the check 13309 # below for broken collect2 doesn't work under 4.3+ 13310 collect2name=`${CC} -print-prog-name=collect2` 13311 if test -f "$collect2name" && \ 13312 strings "$collect2name" | grep resolve_lib_name >/dev/null 13313 then 13314 # We have reworked collect2 13315 hardcode_direct_F77=yes 13316 else 13317 # We have old collect2 13318 hardcode_direct_F77=unsupported 13319 # It fails to find uninstalled libraries when the uninstalled 13320 # path is not listed in the libpath. Setting hardcode_minus_L 13321 # to unsupported forces relinking 13322 hardcode_minus_L_F77=yes 13323 hardcode_libdir_flag_spec_F77='-L$libdir' 13324 hardcode_libdir_separator_F77= 13325 fi 13326 esac 13327 shared_flag='-shared' 13328 else 13329 # not using gcc 13330 if test "$host_cpu" = ia64; then 13331 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13332 # chokes on -Wl,-G. The following line is correct: 13333 shared_flag='-G' 13334 else 13335 if test "$aix_use_runtimelinking" = yes; then 13336 shared_flag='${wl}-G' 13337 else 13338 shared_flag='${wl}-bM:SRE' 13339 fi 13340 fi 13341 fi 13342 13343 # It seems that -bexpall does not export symbols beginning with 13344 # underscore (_), so it is better to generate a list of symbols to export. 13345 always_export_symbols_F77=yes 13346 if test "$aix_use_runtimelinking" = yes; then 13347 # Warning - without using the other runtime loading flags (-brtl), 13348 # -berok will link without error, but may produce a broken library. 13349 allow_undefined_flag_F77='-berok' 13350 # Determine the default libpath from the value encoded in an empty executable. 13351 cat >conftest.$ac_ext <<_ACEOF 13352 program main 13353 13354 end 13355_ACEOF 13356rm -f conftest.$ac_objext conftest$ac_exeext 13357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13358 (eval $ac_link) 2>conftest.er1 13359 ac_status=$? 13360 grep -v '^ *+' conftest.er1 >conftest.err 13361 rm -f conftest.er1 13362 cat conftest.err >&5 13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13364 (exit $ac_status); } && 13365 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13367 (eval $ac_try) 2>&5 13368 ac_status=$? 13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13370 (exit $ac_status); }; } && 13371 { ac_try='test -s conftest$ac_exeext' 13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13373 (eval $ac_try) 2>&5 13374 ac_status=$? 13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13376 (exit $ac_status); }; }; then 13377 13378aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13379}'` 13380# Check for a 64-bit object if we didn't find anything. 13381if 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; } 13382}'`; fi 13383else 13384 echo "$as_me: failed program was:" >&5 13385sed 's/^/| /' conftest.$ac_ext >&5 13386 13387fi 13388rm -f conftest.err conftest.$ac_objext \ 13389 conftest$ac_exeext conftest.$ac_ext 13390if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13391 13392 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13393 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" 13394 else 13395 if test "$host_cpu" = ia64; then 13396 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13397 allow_undefined_flag_F77="-z nodefs" 13398 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" 13399 else 13400 # Determine the default libpath from the value encoded in an empty executable. 13401 cat >conftest.$ac_ext <<_ACEOF 13402 program main 13403 13404 end 13405_ACEOF 13406rm -f conftest.$ac_objext conftest$ac_exeext 13407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13408 (eval $ac_link) 2>conftest.er1 13409 ac_status=$? 13410 grep -v '^ *+' conftest.er1 >conftest.err 13411 rm -f conftest.er1 13412 cat conftest.err >&5 13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13414 (exit $ac_status); } && 13415 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13417 (eval $ac_try) 2>&5 13418 ac_status=$? 13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13420 (exit $ac_status); }; } && 13421 { ac_try='test -s conftest$ac_exeext' 13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13423 (eval $ac_try) 2>&5 13424 ac_status=$? 13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13426 (exit $ac_status); }; }; then 13427 13428aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13429}'` 13430# Check for a 64-bit object if we didn't find anything. 13431if 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; } 13432}'`; fi 13433else 13434 echo "$as_me: failed program was:" >&5 13435sed 's/^/| /' conftest.$ac_ext >&5 13436 13437fi 13438rm -f conftest.err conftest.$ac_objext \ 13439 conftest$ac_exeext conftest.$ac_ext 13440if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13441 13442 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13443 # Warning - without using the other run time loading flags, 13444 # -berok will link without error, but may produce a broken library. 13445 no_undefined_flag_F77=' ${wl}-bernotok' 13446 allow_undefined_flag_F77=' ${wl}-berok' 13447 # -bexpall does not export symbols beginning with underscore (_) 13448 always_export_symbols_F77=yes 13449 # Exported symbols can be pulled into shared objects from archives 13450 whole_archive_flag_spec_F77=' ' 13451 archive_cmds_need_lc_F77=yes 13452 # This is similar to how AIX traditionally builds it's shared libraries. 13453 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' 13454 fi 13455 fi 13456 ;; 13457 13458 amigaos*) 13459 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)' 13460 hardcode_libdir_flag_spec_F77='-L$libdir' 13461 hardcode_minus_L_F77=yes 13462 # see comment about different semantics on the GNU ld section 13463 ld_shlibs_F77=no 13464 ;; 13465 13466 bsdi4*) 13467 export_dynamic_flag_spec_F77=-rdynamic 13468 ;; 13469 13470 cygwin* | mingw* | pw32*) 13471 # When not using gcc, we currently assume that we are using 13472 # Microsoft Visual C++. 13473 # hardcode_libdir_flag_spec is actually meaningless, as there is 13474 # no search path for DLLs. 13475 hardcode_libdir_flag_spec_F77=' ' 13476 allow_undefined_flag_F77=unsupported 13477 # Tell ltmain to make .lib files, not .a files. 13478 libext=lib 13479 # Tell ltmain to make .dll files, not .so files. 13480 shrext_cmds=".dll" 13481 # FIXME: Setting linknames here is a bad hack. 13482 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13483 # The linker will automatically build a .lib file if we build a DLL. 13484 old_archive_From_new_cmds_F77='true' 13485 # FIXME: Should let the user specify the lib program. 13486 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13487 fix_srcfile_path='`cygpath -w "$srcfile"`' 13488 enable_shared_with_static_runtimes_F77=yes 13489 ;; 13490 13491 darwin* | rhapsody*) 13492 if test "$GXX" = yes ; then 13493 archive_cmds_need_lc_F77=no 13494 case "$host_os" in 13495 rhapsody* | darwin1.[012]) 13496 allow_undefined_flag_F77='-undefined suppress' 13497 ;; 13498 *) # Darwin 1.3 on 13499 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13500 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 13501 else 13502 case ${MACOSX_DEPLOYMENT_TARGET} in 13503 10.[012]) 13504 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 13505 ;; 13506 10.*) 13507 allow_undefined_flag_F77='-undefined dynamic_lookup' 13508 ;; 13509 esac 13510 fi 13511 ;; 13512 esac 13513 lt_int_apple_cc_single_mod=no 13514 output_verbose_link_cmd='echo' 13515 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 13516 lt_int_apple_cc_single_mod=yes 13517 fi 13518 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13519 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13520 else 13521 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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' 13522 fi 13523 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13524 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 13525 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13526 archive_expsym_cmds_F77='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}' 13527 else 13528 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 13529 fi 13530 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}' 13531 hardcode_direct_F77=no 13532 hardcode_automatic_F77=yes 13533 hardcode_shlibpath_var_F77=unsupported 13534 whole_archive_flag_spec_F77='-all_load $convenience' 13535 link_all_deplibs_F77=yes 13536 else 13537 ld_shlibs_F77=no 13538 fi 13539 ;; 13540 13541 dgux*) 13542 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13543 hardcode_libdir_flag_spec_F77='-L$libdir' 13544 hardcode_shlibpath_var_F77=no 13545 ;; 13546 13547 freebsd1*) 13548 ld_shlibs_F77=no 13549 ;; 13550 13551 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13552 # support. Future versions do this automatically, but an explicit c++rt0.o 13553 # does not break anything, and helps significantly (at the cost of a little 13554 # extra space). 13555 freebsd2.2*) 13556 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13557 hardcode_libdir_flag_spec_F77='-R$libdir' 13558 hardcode_direct_F77=yes 13559 hardcode_shlibpath_var_F77=no 13560 ;; 13561 13562 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13563 freebsd2*) 13564 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13565 hardcode_direct_F77=yes 13566 hardcode_minus_L_F77=yes 13567 hardcode_shlibpath_var_F77=no 13568 ;; 13569 13570 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13571 freebsd* | kfreebsd*-gnu) 13572 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13573 hardcode_libdir_flag_spec_F77='-R$libdir' 13574 hardcode_direct_F77=yes 13575 hardcode_shlibpath_var_F77=no 13576 ;; 13577 13578 hpux9*) 13579 if test "$GCC" = yes; then 13580 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' 13581 else 13582 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' 13583 fi 13584 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13585 hardcode_libdir_separator_F77=: 13586 hardcode_direct_F77=yes 13587 13588 # hardcode_minus_L: Not really in the search PATH, 13589 # but as the default location of the library. 13590 hardcode_minus_L_F77=yes 13591 export_dynamic_flag_spec_F77='${wl}-E' 13592 ;; 13593 13594 hpux10* | hpux11*) 13595 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13596 case "$host_cpu" in 13597 hppa*64*|ia64*) 13598 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13599 ;; 13600 *) 13601 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13602 ;; 13603 esac 13604 else 13605 case "$host_cpu" in 13606 hppa*64*|ia64*) 13607 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 13608 ;; 13609 *) 13610 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13611 ;; 13612 esac 13613 fi 13614 if test "$with_gnu_ld" = no; then 13615 case "$host_cpu" in 13616 hppa*64*) 13617 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13618 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 13619 hardcode_libdir_separator_F77=: 13620 hardcode_direct_F77=no 13621 hardcode_shlibpath_var_F77=no 13622 ;; 13623 ia64*) 13624 hardcode_libdir_flag_spec_F77='-L$libdir' 13625 hardcode_direct_F77=no 13626 hardcode_shlibpath_var_F77=no 13627 13628 # hardcode_minus_L: Not really in the search PATH, 13629 # but as the default location of the library. 13630 hardcode_minus_L_F77=yes 13631 ;; 13632 *) 13633 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13634 hardcode_libdir_separator_F77=: 13635 hardcode_direct_F77=yes 13636 export_dynamic_flag_spec_F77='${wl}-E' 13637 13638 # hardcode_minus_L: Not really in the search PATH, 13639 # but as the default location of the library. 13640 hardcode_minus_L_F77=yes 13641 ;; 13642 esac 13643 fi 13644 ;; 13645 13646 irix5* | irix6* | nonstopux*) 13647 if test "$GCC" = yes; then 13648 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' 13649 else 13650 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' 13651 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 13652 fi 13653 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13654 hardcode_libdir_separator_F77=: 13655 link_all_deplibs_F77=yes 13656 ;; 13657 13658 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 13659 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13660 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13661 else 13662 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13663 fi 13664 hardcode_libdir_flag_spec_F77='-R$libdir' 13665 hardcode_direct_F77=yes 13666 hardcode_shlibpath_var_F77=no 13667 ;; 13668 13669 newsos6) 13670 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13671 hardcode_direct_F77=yes 13672 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13673 hardcode_libdir_separator_F77=: 13674 hardcode_shlibpath_var_F77=no 13675 ;; 13676 13677 openbsd*) 13678 hardcode_direct_F77=yes 13679 hardcode_shlibpath_var_F77=no 13680 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13681 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13682 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13683 export_dynamic_flag_spec_F77='${wl}-E' 13684 else 13685 case $host_os in 13686 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13687 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13688 hardcode_libdir_flag_spec_F77='-R$libdir' 13689 ;; 13690 *) 13691 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13692 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13693 ;; 13694 esac 13695 fi 13696 ;; 13697 13698 os2*) 13699 hardcode_libdir_flag_spec_F77='-L$libdir' 13700 hardcode_minus_L_F77=yes 13701 allow_undefined_flag_F77=unsupported 13702 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' 13703 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13704 ;; 13705 13706 osf3*) 13707 if test "$GCC" = yes; then 13708 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13709 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' 13710 else 13711 allow_undefined_flag_F77=' -expect_unresolved \*' 13712 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' 13713 fi 13714 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13715 hardcode_libdir_separator_F77=: 13716 ;; 13717 13718 osf4* | osf5*) # as osf3* with the addition of -msym flag 13719 if test "$GCC" = yes; then 13720 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13721 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' 13722 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13723 else 13724 allow_undefined_flag_F77=' -expect_unresolved \*' 13725 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' 13726 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~ 13727 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 13728 13729 # Both c and cxx compiler support -rpath directly 13730 hardcode_libdir_flag_spec_F77='-rpath $libdir' 13731 fi 13732 hardcode_libdir_separator_F77=: 13733 ;; 13734 13735 sco3.2v5*) 13736 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13737 hardcode_shlibpath_var_F77=no 13738 export_dynamic_flag_spec_F77='${wl}-Bexport' 13739 runpath_var=LD_RUN_PATH 13740 hardcode_runpath_var=yes 13741 ;; 13742 13743 solaris*) 13744 no_undefined_flag_F77=' -z text' 13745 if test "$GCC" = yes; then 13746 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13747 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13748 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 13749 else 13750 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13751 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13752 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13753 fi 13754 hardcode_libdir_flag_spec_F77='-R$libdir' 13755 hardcode_shlibpath_var_F77=no 13756 case $host_os in 13757 solaris2.[0-5] | solaris2.[0-5].*) ;; 13758 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 13759 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 13760 esac 13761 link_all_deplibs_F77=yes 13762 ;; 13763 13764 sunos4*) 13765 if test "x$host_vendor" = xsequent; then 13766 # Use $CC to link under sequent, because it throws in some extra .o 13767 # files that make .init and .fini sections work. 13768 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13769 else 13770 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13771 fi 13772 hardcode_libdir_flag_spec_F77='-L$libdir' 13773 hardcode_direct_F77=yes 13774 hardcode_minus_L_F77=yes 13775 hardcode_shlibpath_var_F77=no 13776 ;; 13777 13778 sysv4) 13779 case $host_vendor in 13780 sni) 13781 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13782 hardcode_direct_F77=yes # is this really true??? 13783 ;; 13784 siemens) 13785 ## LD is ld it makes a PLAMLIB 13786 ## CC just makes a GrossModule. 13787 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13788 reload_cmds_F77='$CC -r -o $output$reload_objs' 13789 hardcode_direct_F77=no 13790 ;; 13791 motorola) 13792 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13793 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 13794 ;; 13795 esac 13796 runpath_var='LD_RUN_PATH' 13797 hardcode_shlibpath_var_F77=no 13798 ;; 13799 13800 sysv4.3*) 13801 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13802 hardcode_shlibpath_var_F77=no 13803 export_dynamic_flag_spec_F77='-Bexport' 13804 ;; 13805 13806 sysv4*MP*) 13807 if test -d /usr/nec; then 13808 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13809 hardcode_shlibpath_var_F77=no 13810 runpath_var=LD_RUN_PATH 13811 hardcode_runpath_var=yes 13812 ld_shlibs_F77=yes 13813 fi 13814 ;; 13815 13816 sysv4.2uw2*) 13817 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13818 hardcode_direct_F77=yes 13819 hardcode_minus_L_F77=no 13820 hardcode_shlibpath_var_F77=no 13821 hardcode_runpath_var=yes 13822 runpath_var=LD_RUN_PATH 13823 ;; 13824 13825 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 13826 no_undefined_flag_F77='${wl}-z ${wl}text' 13827 if test "$GCC" = yes; then 13828 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13829 else 13830 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13831 fi 13832 runpath_var='LD_RUN_PATH' 13833 hardcode_shlibpath_var_F77=no 13834 ;; 13835 13836 sysv5*) 13837 no_undefined_flag_F77=' -z text' 13838 # $CC -shared without GNU ld will not create a library from C++ 13839 # object files and a static libstdc++, better avoid it by now 13840 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13841 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13842 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13843 hardcode_libdir_flag_spec_F77= 13844 hardcode_shlibpath_var_F77=no 13845 runpath_var='LD_RUN_PATH' 13846 ;; 13847 13848 uts4*) 13849 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13850 hardcode_libdir_flag_spec_F77='-L$libdir' 13851 hardcode_shlibpath_var_F77=no 13852 ;; 13853 13854 *) 13855 ld_shlibs_F77=no 13856 ;; 13857 esac 13858 fi 13859 13860echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 13861echo "${ECHO_T}$ld_shlibs_F77" >&6 13862test "$ld_shlibs_F77" = no && can_build_shared=no 13863 13864variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13865if test "$GCC" = yes; then 13866 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13867fi 13868 13869# 13870# Do we need to explicitly link libc? 13871# 13872case "x$archive_cmds_need_lc_F77" in 13873x|xyes) 13874 # Assume -lc should be added 13875 archive_cmds_need_lc_F77=yes 13876 13877 if test "$enable_shared" = yes && test "$GCC" = yes; then 13878 case $archive_cmds_F77 in 13879 *'~'*) 13880 # FIXME: we may have to deal with multi-command sequences. 13881 ;; 13882 '$CC '*) 13883 # Test whether the compiler implicitly links with -lc since on some 13884 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13885 # to ld, don't add -lc before -lgcc. 13886 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13887echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13888 $rm conftest* 13889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13890 13891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13892 (eval $ac_compile) 2>&5 13893 ac_status=$? 13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13895 (exit $ac_status); } 2>conftest.err; then 13896 soname=conftest 13897 lib=conftest 13898 libobjs=conftest.$ac_objext 13899 deplibs= 13900 wl=$lt_prog_compiler_wl_F77 13901 compiler_flags=-v 13902 linker_flags=-v 13903 verstring= 13904 output_objdir=. 13905 libname=conftest 13906 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 13907 allow_undefined_flag_F77= 13908 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13909 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13910 ac_status=$? 13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13912 (exit $ac_status); } 13913 then 13914 archive_cmds_need_lc_F77=no 13915 else 13916 archive_cmds_need_lc_F77=yes 13917 fi 13918 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 13919 else 13920 cat conftest.err 1>&5 13921 fi 13922 $rm conftest* 13923 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 13924echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 13925 ;; 13926 esac 13927 fi 13928 ;; 13929esac 13930 13931echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13932echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13933library_names_spec= 13934libname_spec='lib$name' 13935soname_spec= 13936shrext_cmds=".so" 13937postinstall_cmds= 13938postuninstall_cmds= 13939finish_cmds= 13940finish_eval= 13941shlibpath_var= 13942shlibpath_overrides_runpath=unknown 13943version_type=none 13944dynamic_linker="$host_os ld.so" 13945sys_lib_dlsearch_path_spec="/lib /usr/lib" 13946if test "$GCC" = yes; then 13947 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13948 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13949 # if the path contains ";" then we assume it to be the separator 13950 # otherwise default to the standard path separator (i.e. ":") - it is 13951 # assumed that no part of a normal pathname contains ";" but that should 13952 # okay in the real world where ";" in dirpaths is itself problematic. 13953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13954 else 13955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13956 fi 13957else 13958 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13959fi 13960need_lib_prefix=unknown 13961hardcode_into_libs=no 13962 13963# when you set need_version to no, make sure it does not cause -set_version 13964# flags to be left without arguments 13965need_version=unknown 13966 13967case $host_os in 13968aix3*) 13969 version_type=linux 13970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13971 shlibpath_var=LIBPATH 13972 13973 # AIX 3 has no versioning support, so we append a major version to the name. 13974 soname_spec='${libname}${release}${shared_ext}$major' 13975 ;; 13976 13977aix4* | aix5*) 13978 version_type=linux 13979 need_lib_prefix=no 13980 need_version=no 13981 hardcode_into_libs=yes 13982 if test "$host_cpu" = ia64; then 13983 # AIX 5 supports IA64 13984 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13985 shlibpath_var=LD_LIBRARY_PATH 13986 else 13987 # With GCC up to 2.95.x, collect2 would create an import file 13988 # for dependence libraries. The import file would start with 13989 # the line `#! .'. This would cause the generated library to 13990 # depend on `.', always an invalid library. This was fixed in 13991 # development snapshots of GCC prior to 3.0. 13992 case $host_os in 13993 aix4 | aix4.[01] | aix4.[01].*) 13994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13995 echo ' yes ' 13996 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13997 : 13998 else 13999 can_build_shared=no 14000 fi 14001 ;; 14002 esac 14003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14004 # soname into executable. Probably we can add versioning support to 14005 # collect2, so additional links can be useful in future. 14006 if test "$aix_use_runtimelinking" = yes; then 14007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14008 # instead of lib<name>.a to let people know that these are not 14009 # typical AIX shared libraries. 14010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14011 else 14012 # We preserve .a as extension for shared libraries through AIX4.2 14013 # and later when we are not doing run time linking. 14014 library_names_spec='${libname}${release}.a $libname.a' 14015 soname_spec='${libname}${release}${shared_ext}$major' 14016 fi 14017 shlibpath_var=LIBPATH 14018 fi 14019 ;; 14020 14021amigaos*) 14022 library_names_spec='$libname.ixlibrary $libname.a' 14023 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14024 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' 14025 ;; 14026 14027beos*) 14028 library_names_spec='${libname}${shared_ext}' 14029 dynamic_linker="$host_os ld.so" 14030 shlibpath_var=LIBRARY_PATH 14031 ;; 14032 14033bsdi4*) 14034 version_type=linux 14035 need_version=no 14036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14037 soname_spec='${libname}${release}${shared_ext}$major' 14038 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14039 shlibpath_var=LD_LIBRARY_PATH 14040 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14041 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14042 # the default ld.so.conf also contains /usr/contrib/lib and 14043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14044 # libtool to hard-code these into programs 14045 ;; 14046 14047cygwin* | mingw* | pw32*) 14048 version_type=windows 14049 shrext_cmds=".dll" 14050 need_version=no 14051 need_lib_prefix=no 14052 14053 case $GCC,$host_os in 14054 yes,cygwin* | yes,mingw* | yes,pw32*) 14055 library_names_spec='$libname.dll.a' 14056 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14057 postinstall_cmds='base_file=`basename \${file}`~ 14058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14059 dldir=$destdir/`dirname \$dlpath`~ 14060 test -d \$dldir || mkdir -p \$dldir~ 14061 $install_prog $dir/$dlname \$dldir/$dlname' 14062 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14063 dlpath=$dir/\$dldll~ 14064 $rm \$dlpath' 14065 shlibpath_overrides_runpath=yes 14066 14067 case $host_os in 14068 cygwin*) 14069 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14070 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14071 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14072 ;; 14073 mingw*) 14074 # MinGW DLLs use traditional 'lib' prefix 14075 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14076 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14077 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14078 # It is most probably a Windows format PATH printed by 14079 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14080 # path with ; separators, and with drive letters. We can handle the 14081 # drive letters (cygwin fileutils understands them), so leave them, 14082 # especially as we might pass files found there to a mingw objdump, 14083 # which wouldn't understand a cygwinified path. Ahh. 14084 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14085 else 14086 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14087 fi 14088 ;; 14089 pw32*) 14090 # pw32 DLLs use 'pw' prefix rather than 'lib' 14091 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 14092 ;; 14093 esac 14094 ;; 14095 14096 *) 14097 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14098 ;; 14099 esac 14100 dynamic_linker='Win32 ld.exe' 14101 # FIXME: first we should search . and the directory the executable is in 14102 shlibpath_var=PATH 14103 ;; 14104 14105darwin* | rhapsody*) 14106 dynamic_linker="$host_os dyld" 14107 version_type=darwin 14108 need_lib_prefix=no 14109 need_version=no 14110 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14111 soname_spec='${libname}${release}${major}$shared_ext' 14112 shlibpath_overrides_runpath=yes 14113 shlibpath_var=DYLD_LIBRARY_PATH 14114 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 14115 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14116 if test "$GCC" = yes; then 14117 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"` 14118 else 14119 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14120 fi 14121 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14122 ;; 14123 14124dgux*) 14125 version_type=linux 14126 need_lib_prefix=no 14127 need_version=no 14128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14129 soname_spec='${libname}${release}${shared_ext}$major' 14130 shlibpath_var=LD_LIBRARY_PATH 14131 ;; 14132 14133freebsd1*) 14134 dynamic_linker=no 14135 ;; 14136 14137kfreebsd*-gnu) 14138 version_type=linux 14139 need_lib_prefix=no 14140 need_version=no 14141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14142 soname_spec='${libname}${release}${shared_ext}$major' 14143 shlibpath_var=LD_LIBRARY_PATH 14144 shlibpath_overrides_runpath=no 14145 hardcode_into_libs=yes 14146 dynamic_linker='GNU ld.so' 14147 ;; 14148 14149freebsd*) 14150 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 14151 version_type=freebsd-$objformat 14152 case $version_type in 14153 freebsd-elf*) 14154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14155 need_version=no 14156 need_lib_prefix=no 14157 ;; 14158 freebsd-*) 14159 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14160 need_version=yes 14161 ;; 14162 esac 14163 shlibpath_var=LD_LIBRARY_PATH 14164 case $host_os in 14165 freebsd2*) 14166 shlibpath_overrides_runpath=yes 14167 ;; 14168 freebsd3.01* | freebsdelf3.01*) 14169 shlibpath_overrides_runpath=yes 14170 hardcode_into_libs=yes 14171 ;; 14172 *) # from 3.2 on 14173 shlibpath_overrides_runpath=no 14174 hardcode_into_libs=yes 14175 ;; 14176 esac 14177 ;; 14178 14179gnu*) 14180 version_type=linux 14181 need_lib_prefix=no 14182 need_version=no 14183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14184 soname_spec='${libname}${release}${shared_ext}$major' 14185 shlibpath_var=LD_LIBRARY_PATH 14186 hardcode_into_libs=yes 14187 ;; 14188 14189hpux9* | hpux10* | hpux11*) 14190 # Give a soname corresponding to the major version so that dld.sl refuses to 14191 # link against other versions. 14192 version_type=sunos 14193 need_lib_prefix=no 14194 need_version=no 14195 case "$host_cpu" in 14196 ia64*) 14197 shrext_cmds='.so' 14198 hardcode_into_libs=yes 14199 dynamic_linker="$host_os dld.so" 14200 shlibpath_var=LD_LIBRARY_PATH 14201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14203 soname_spec='${libname}${release}${shared_ext}$major' 14204 if test "X$HPUX_IA64_MODE" = X32; then 14205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14206 else 14207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14208 fi 14209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14210 ;; 14211 hppa*64*) 14212 shrext_cmds='.sl' 14213 hardcode_into_libs=yes 14214 dynamic_linker="$host_os dld.sl" 14215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14218 soname_spec='${libname}${release}${shared_ext}$major' 14219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14221 ;; 14222 *) 14223 shrext_cmds='.sl' 14224 dynamic_linker="$host_os dld.sl" 14225 shlibpath_var=SHLIB_PATH 14226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14228 soname_spec='${libname}${release}${shared_ext}$major' 14229 ;; 14230 esac 14231 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14232 postinstall_cmds='chmod 555 $lib' 14233 ;; 14234 14235irix5* | irix6* | nonstopux*) 14236 case $host_os in 14237 nonstopux*) version_type=nonstopux ;; 14238 *) 14239 if test "$lt_cv_prog_gnu_ld" = yes; then 14240 version_type=linux 14241 else 14242 version_type=irix 14243 fi ;; 14244 esac 14245 need_lib_prefix=no 14246 need_version=no 14247 soname_spec='${libname}${release}${shared_ext}$major' 14248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14249 case $host_os in 14250 irix5* | nonstopux*) 14251 libsuff= shlibsuff= 14252 ;; 14253 *) 14254 case $LD in # libtool.m4 will add one of these switches to LD 14255 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14256 libsuff= shlibsuff= libmagic=32-bit;; 14257 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14258 libsuff=32 shlibsuff=N32 libmagic=N32;; 14259 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14260 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14261 *) libsuff= shlibsuff= libmagic=never-match;; 14262 esac 14263 ;; 14264 esac 14265 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14266 shlibpath_overrides_runpath=no 14267 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14268 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14269 hardcode_into_libs=yes 14270 ;; 14271 14272# No shared lib support for Linux oldld, aout, or coff. 14273linux*oldld* | linux*aout* | linux*coff*) 14274 dynamic_linker=no 14275 ;; 14276 14277# This must be Linux ELF. 14278linux*) 14279 version_type=linux 14280 need_lib_prefix=no 14281 need_version=no 14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14283 soname_spec='${libname}${release}${shared_ext}$major' 14284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14285 shlibpath_var=LD_LIBRARY_PATH 14286 shlibpath_overrides_runpath=no 14287 # This implies no fast_install, which is unacceptable. 14288 # Some rework will be needed to allow for fast_install 14289 # before this can be enabled. 14290 hardcode_into_libs=yes 14291 14292 # Append ld.so.conf contents to the search path 14293 if test -f /etc/ld.so.conf; then 14294 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 14295 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14296 fi 14297 14298 # We used to test for /lib/ld.so.1 and disable shared libraries on 14299 # powerpc, because MkLinux only supported shared libraries with the 14300 # GNU dynamic linker. Since this was broken with cross compilers, 14301 # most powerpc-linux boxes support dynamic linking these days and 14302 # people can always --disable-shared, the test was removed, and we 14303 # assume the GNU/Linux dynamic linker is in use. 14304 dynamic_linker='GNU/Linux ld.so' 14305 ;; 14306 14307netbsdelf*-gnu) 14308 version_type=linux 14309 need_lib_prefix=no 14310 need_version=no 14311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14312 soname_spec='${libname}${release}${shared_ext}$major' 14313 shlibpath_var=LD_LIBRARY_PATH 14314 shlibpath_overrides_runpath=no 14315 hardcode_into_libs=yes 14316 dynamic_linker='NetBSD ld.elf_so' 14317 ;; 14318 14319knetbsd*-gnu) 14320 version_type=linux 14321 need_lib_prefix=no 14322 need_version=no 14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14324 soname_spec='${libname}${release}${shared_ext}$major' 14325 shlibpath_var=LD_LIBRARY_PATH 14326 shlibpath_overrides_runpath=no 14327 hardcode_into_libs=yes 14328 dynamic_linker='GNU ld.so' 14329 ;; 14330 14331netbsd*) 14332 version_type=sunos 14333 need_lib_prefix=no 14334 need_version=no 14335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14338 dynamic_linker='NetBSD (a.out) ld.so' 14339 else 14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14341 soname_spec='${libname}${release}${shared_ext}$major' 14342 dynamic_linker='NetBSD ld.elf_so' 14343 fi 14344 shlibpath_var=LD_LIBRARY_PATH 14345 shlibpath_overrides_runpath=yes 14346 hardcode_into_libs=yes 14347 ;; 14348 14349newsos6) 14350 version_type=linux 14351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14352 shlibpath_var=LD_LIBRARY_PATH 14353 shlibpath_overrides_runpath=yes 14354 ;; 14355 14356nto-qnx*) 14357 version_type=linux 14358 need_lib_prefix=no 14359 need_version=no 14360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14361 soname_spec='${libname}${release}${shared_ext}$major' 14362 shlibpath_var=LD_LIBRARY_PATH 14363 shlibpath_overrides_runpath=yes 14364 ;; 14365 14366openbsd*) 14367 version_type=sunos 14368 need_lib_prefix=no 14369 need_version=yes 14370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14372 shlibpath_var=LD_LIBRARY_PATH 14373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14374 case $host_os in 14375 openbsd2.[89] | openbsd2.[89].*) 14376 shlibpath_overrides_runpath=no 14377 ;; 14378 *) 14379 shlibpath_overrides_runpath=yes 14380 ;; 14381 esac 14382 else 14383 shlibpath_overrides_runpath=yes 14384 fi 14385 ;; 14386 14387os2*) 14388 libname_spec='$name' 14389 shrext_cmds=".dll" 14390 need_lib_prefix=no 14391 library_names_spec='$libname${shared_ext} $libname.a' 14392 dynamic_linker='OS/2 ld.exe' 14393 shlibpath_var=LIBPATH 14394 ;; 14395 14396osf3* | osf4* | osf5*) 14397 version_type=osf 14398 need_lib_prefix=no 14399 need_version=no 14400 soname_spec='${libname}${release}${shared_ext}$major' 14401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14402 shlibpath_var=LD_LIBRARY_PATH 14403 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14404 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14405 ;; 14406 14407sco3.2v5*) 14408 version_type=osf 14409 soname_spec='${libname}${release}${shared_ext}$major' 14410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14411 shlibpath_var=LD_LIBRARY_PATH 14412 ;; 14413 14414solaris*) 14415 version_type=linux 14416 need_lib_prefix=no 14417 need_version=no 14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14419 soname_spec='${libname}${release}${shared_ext}$major' 14420 shlibpath_var=LD_LIBRARY_PATH 14421 shlibpath_overrides_runpath=yes 14422 hardcode_into_libs=yes 14423 # ldd complains unless libraries are executable 14424 postinstall_cmds='chmod +x $lib' 14425 ;; 14426 14427sunos4*) 14428 version_type=sunos 14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14431 shlibpath_var=LD_LIBRARY_PATH 14432 shlibpath_overrides_runpath=yes 14433 if test "$with_gnu_ld" = yes; then 14434 need_lib_prefix=no 14435 fi 14436 need_version=yes 14437 ;; 14438 14439sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14440 version_type=linux 14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14442 soname_spec='${libname}${release}${shared_ext}$major' 14443 shlibpath_var=LD_LIBRARY_PATH 14444 case $host_vendor in 14445 sni) 14446 shlibpath_overrides_runpath=no 14447 need_lib_prefix=no 14448 export_dynamic_flag_spec='${wl}-Blargedynsym' 14449 runpath_var=LD_RUN_PATH 14450 ;; 14451 siemens) 14452 need_lib_prefix=no 14453 ;; 14454 motorola) 14455 need_lib_prefix=no 14456 need_version=no 14457 shlibpath_overrides_runpath=no 14458 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14459 ;; 14460 esac 14461 ;; 14462 14463sysv4*MP*) 14464 if test -d /usr/nec ;then 14465 version_type=linux 14466 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14467 soname_spec='$libname${shared_ext}.$major' 14468 shlibpath_var=LD_LIBRARY_PATH 14469 fi 14470 ;; 14471 14472uts4*) 14473 version_type=linux 14474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14475 soname_spec='${libname}${release}${shared_ext}$major' 14476 shlibpath_var=LD_LIBRARY_PATH 14477 ;; 14478 14479*) 14480 dynamic_linker=no 14481 ;; 14482esac 14483echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14484echo "${ECHO_T}$dynamic_linker" >&6 14485test "$dynamic_linker" = no && can_build_shared=no 14486 14487echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14488echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14489hardcode_action_F77= 14490if test -n "$hardcode_libdir_flag_spec_F77" || \ 14491 test -n "$runpath_var F77" || \ 14492 test "X$hardcode_automatic_F77"="Xyes" ; then 14493 14494 # We can hardcode non-existant directories. 14495 if test "$hardcode_direct_F77" != no && 14496 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14497 # have to relink, otherwise we might link with an installed library 14498 # when we should be linking with a yet-to-be-installed one 14499 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 14500 test "$hardcode_minus_L_F77" != no; then 14501 # Linking always hardcodes the temporary library directory. 14502 hardcode_action_F77=relink 14503 else 14504 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14505 hardcode_action_F77=immediate 14506 fi 14507else 14508 # We cannot hardcode anything, or else we can only hardcode existing 14509 # directories. 14510 hardcode_action_F77=unsupported 14511fi 14512echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 14513echo "${ECHO_T}$hardcode_action_F77" >&6 14514 14515if test "$hardcode_action_F77" = relink; then 14516 # Fast installation is not supported 14517 enable_fast_install=no 14518elif test "$shlibpath_overrides_runpath" = yes || 14519 test "$enable_shared" = no; then 14520 # Fast installation is not necessary 14521 enable_fast_install=needless 14522fi 14523 14524striplib= 14525old_striplib= 14526echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 14527echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 14528if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 14529 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14530 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14531 echo "$as_me:$LINENO: result: yes" >&5 14532echo "${ECHO_T}yes" >&6 14533else 14534# FIXME - insert some real tests, host_os isn't really good enough 14535 case $host_os in 14536 darwin*) 14537 if test -n "$STRIP" ; then 14538 striplib="$STRIP -x" 14539 echo "$as_me:$LINENO: result: yes" >&5 14540echo "${ECHO_T}yes" >&6 14541 else 14542 echo "$as_me:$LINENO: result: no" >&5 14543echo "${ECHO_T}no" >&6 14544fi 14545 ;; 14546 *) 14547 echo "$as_me:$LINENO: result: no" >&5 14548echo "${ECHO_T}no" >&6 14549 ;; 14550 esac 14551fi 14552 14553 14554 14555# The else clause should only fire when bootstrapping the 14556# libtool distribution, otherwise you forgot to ship ltmain.sh 14557# with your package, and you will get complaints that there are 14558# no rules to generate ltmain.sh. 14559if test -f "$ltmain"; then 14560 # See if we are running on zsh, and set the options which allow our commands through 14561 # without removal of \ escapes. 14562 if test -n "${ZSH_VERSION+set}" ; then 14563 setopt NO_GLOB_SUBST 14564 fi 14565 # Now quote all the things that may contain metacharacters while being 14566 # careful not to overquote the AC_SUBSTed values. We take copies of the 14567 # variables and quote the copies for generation of the libtool script. 14568 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 14569 SED SHELL STRIP \ 14570 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14571 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14572 deplibs_check_method reload_flag reload_cmds need_locks \ 14573 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14574 lt_cv_sys_global_symbol_to_c_name_address \ 14575 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14576 old_postinstall_cmds old_postuninstall_cmds \ 14577 compiler_F77 \ 14578 CC_F77 \ 14579 LD_F77 \ 14580 lt_prog_compiler_wl_F77 \ 14581 lt_prog_compiler_pic_F77 \ 14582 lt_prog_compiler_static_F77 \ 14583 lt_prog_compiler_no_builtin_flag_F77 \ 14584 export_dynamic_flag_spec_F77 \ 14585 thread_safe_flag_spec_F77 \ 14586 whole_archive_flag_spec_F77 \ 14587 enable_shared_with_static_runtimes_F77 \ 14588 old_archive_cmds_F77 \ 14589 old_archive_from_new_cmds_F77 \ 14590 predep_objects_F77 \ 14591 postdep_objects_F77 \ 14592 predeps_F77 \ 14593 postdeps_F77 \ 14594 compiler_lib_search_path_F77 \ 14595 archive_cmds_F77 \ 14596 archive_expsym_cmds_F77 \ 14597 postinstall_cmds_F77 \ 14598 postuninstall_cmds_F77 \ 14599 old_archive_from_expsyms_cmds_F77 \ 14600 allow_undefined_flag_F77 \ 14601 no_undefined_flag_F77 \ 14602 export_symbols_cmds_F77 \ 14603 hardcode_libdir_flag_spec_F77 \ 14604 hardcode_libdir_flag_spec_ld_F77 \ 14605 hardcode_libdir_separator_F77 \ 14606 hardcode_automatic_F77 \ 14607 module_cmds_F77 \ 14608 module_expsym_cmds_F77 \ 14609 lt_cv_prog_compiler_c_o_F77 \ 14610 exclude_expsyms_F77 \ 14611 include_expsyms_F77; do 14612 14613 case $var in 14614 old_archive_cmds_F77 | \ 14615 old_archive_from_new_cmds_F77 | \ 14616 archive_cmds_F77 | \ 14617 archive_expsym_cmds_F77 | \ 14618 module_cmds_F77 | \ 14619 module_expsym_cmds_F77 | \ 14620 old_archive_from_expsyms_cmds_F77 | \ 14621 export_symbols_cmds_F77 | \ 14622 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14623 postinstall_cmds | postuninstall_cmds | \ 14624 old_postinstall_cmds | old_postuninstall_cmds | \ 14625 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14626 # Double-quote double-evaled strings. 14627 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14628 ;; 14629 *) 14630 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14631 ;; 14632 esac 14633 done 14634 14635 case $lt_echo in 14636 *'\$0 --fallback-echo"') 14637 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14638 ;; 14639 esac 14640 14641cfgfile="$ofile" 14642 14643 cat <<__EOF__ >> "$cfgfile" 14644# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14645 14646# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14647 14648# Shell to use when invoking shell scripts. 14649SHELL=$lt_SHELL 14650 14651# Whether or not to build shared libraries. 14652build_libtool_libs=$enable_shared 14653 14654# Whether or not to build static libraries. 14655build_old_libs=$enable_static 14656 14657# Whether or not to add -lc for building shared libraries. 14658build_libtool_need_lc=$archive_cmds_need_lc_F77 14659 14660# Whether or not to disallow shared libs when runtime libs are static 14661allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 14662 14663# Whether or not to optimize for fast installation. 14664fast_install=$enable_fast_install 14665 14666# The host system. 14667host_alias=$host_alias 14668host=$host 14669 14670# An echo program that does not interpret backslashes. 14671echo=$lt_echo 14672 14673# The archiver. 14674AR=$lt_AR 14675AR_FLAGS=$lt_AR_FLAGS 14676 14677# A C compiler. 14678LTCC=$lt_LTCC 14679 14680# A language-specific compiler. 14681CC=$lt_compiler_F77 14682 14683# Is the compiler the GNU C compiler? 14684with_gcc=$GCC_F77 14685 14686# An ERE matcher. 14687EGREP=$lt_EGREP 14688 14689# The linker used to build libraries. 14690LD=$lt_LD_F77 14691 14692# Whether we need hard or soft links. 14693LN_S=$lt_LN_S 14694 14695# A BSD-compatible nm program. 14696NM=$lt_NM 14697 14698# A symbol stripping program 14699STRIP=$lt_STRIP 14700 14701# Used to examine libraries when file_magic_cmd begins "file" 14702MAGIC_CMD=$MAGIC_CMD 14703 14704# Used on cygwin: DLL creation program. 14705DLLTOOL="$DLLTOOL" 14706 14707# Used on cygwin: object dumper. 14708OBJDUMP="$OBJDUMP" 14709 14710# Used on cygwin: assembler. 14711AS="$AS" 14712 14713# The name of the directory that contains temporary libtool files. 14714objdir=$objdir 14715 14716# How to create reloadable object files. 14717reload_flag=$lt_reload_flag 14718reload_cmds=$lt_reload_cmds 14719 14720# How to pass a linker flag through the compiler. 14721wl=$lt_lt_prog_compiler_wl_F77 14722 14723# Object file suffix (normally "o"). 14724objext="$ac_objext" 14725 14726# Old archive suffix (normally "a"). 14727libext="$libext" 14728 14729# Shared library suffix (normally ".so"). 14730shrext_cmds='$shrext_cmds' 14731 14732# Executable file suffix (normally ""). 14733exeext="$exeext" 14734 14735# Additional compiler flags for building library objects. 14736pic_flag=$lt_lt_prog_compiler_pic_F77 14737pic_mode=$pic_mode 14738 14739# What is the maximum length of a command? 14740max_cmd_len=$lt_cv_sys_max_cmd_len 14741 14742# Does compiler simultaneously support -c and -o options? 14743compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 14744 14745# Must we lock files when doing compilation ? 14746need_locks=$lt_need_locks 14747 14748# Do we need the lib prefix for modules? 14749need_lib_prefix=$need_lib_prefix 14750 14751# Do we need a version for libraries? 14752need_version=$need_version 14753 14754# Whether dlopen is supported. 14755dlopen_support=$enable_dlopen 14756 14757# Whether dlopen of programs is supported. 14758dlopen_self=$enable_dlopen_self 14759 14760# Whether dlopen of statically linked programs is supported. 14761dlopen_self_static=$enable_dlopen_self_static 14762 14763# Compiler flag to prevent dynamic linking. 14764link_static_flag=$lt_lt_prog_compiler_static_F77 14765 14766# Compiler flag to turn off builtin functions. 14767no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 14768 14769# Compiler flag to allow reflexive dlopens. 14770export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 14771 14772# Compiler flag to generate shared objects directly from archives. 14773whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 14774 14775# Compiler flag to generate thread-safe objects. 14776thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 14777 14778# Library versioning type. 14779version_type=$version_type 14780 14781# Format of library name prefix. 14782libname_spec=$lt_libname_spec 14783 14784# List of archive names. First name is the real one, the rest are links. 14785# The last name is the one that the linker finds with -lNAME. 14786library_names_spec=$lt_library_names_spec 14787 14788# The coded name of the library, if different from the real name. 14789soname_spec=$lt_soname_spec 14790 14791# Commands used to build and install an old-style archive. 14792RANLIB=$lt_RANLIB 14793old_archive_cmds=$lt_old_archive_cmds_F77 14794old_postinstall_cmds=$lt_old_postinstall_cmds 14795old_postuninstall_cmds=$lt_old_postuninstall_cmds 14796 14797# Create an old-style archive from a shared archive. 14798old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 14799 14800# Create a temporary old-style archive to link instead of a shared archive. 14801old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 14802 14803# Commands used to build and install a shared archive. 14804archive_cmds=$lt_archive_cmds_F77 14805archive_expsym_cmds=$lt_archive_expsym_cmds_F77 14806postinstall_cmds=$lt_postinstall_cmds 14807postuninstall_cmds=$lt_postuninstall_cmds 14808 14809# Commands used to build a loadable module (assumed same as above if empty) 14810module_cmds=$lt_module_cmds_F77 14811module_expsym_cmds=$lt_module_expsym_cmds_F77 14812 14813# Commands to strip libraries. 14814old_striplib=$lt_old_striplib 14815striplib=$lt_striplib 14816 14817# Dependencies to place before the objects being linked to create a 14818# shared library. 14819predep_objects=$lt_predep_objects_F77 14820 14821# Dependencies to place after the objects being linked to create a 14822# shared library. 14823postdep_objects=$lt_postdep_objects_F77 14824 14825# Dependencies to place before the objects being linked to create a 14826# shared library. 14827predeps=$lt_predeps_F77 14828 14829# Dependencies to place after the objects being linked to create a 14830# shared library. 14831postdeps=$lt_postdeps_F77 14832 14833# The library search path used internally by the compiler when linking 14834# a shared library. 14835compiler_lib_search_path=$lt_compiler_lib_search_path_F77 14836 14837# Method to check whether dependent libraries are shared objects. 14838deplibs_check_method=$lt_deplibs_check_method 14839 14840# Command to use when deplibs_check_method == file_magic. 14841file_magic_cmd=$lt_file_magic_cmd 14842 14843# Flag that allows shared libraries with undefined symbols to be built. 14844allow_undefined_flag=$lt_allow_undefined_flag_F77 14845 14846# Flag that forces no undefined symbols. 14847no_undefined_flag=$lt_no_undefined_flag_F77 14848 14849# Commands used to finish a libtool library installation in a directory. 14850finish_cmds=$lt_finish_cmds 14851 14852# Same as above, but a single script fragment to be evaled but not shown. 14853finish_eval=$lt_finish_eval 14854 14855# Take the output of nm and produce a listing of raw symbols and C names. 14856global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14857 14858# Transform the output of nm in a proper C declaration 14859global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14860 14861# Transform the output of nm in a C name address pair 14862global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14863 14864# This is the shared library runtime path variable. 14865runpath_var=$runpath_var 14866 14867# This is the shared library path variable. 14868shlibpath_var=$shlibpath_var 14869 14870# Is shlibpath searched before the hard-coded library search path? 14871shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14872 14873# How to hardcode a shared library path into an executable. 14874hardcode_action=$hardcode_action_F77 14875 14876# Whether we should hardcode library paths into libraries. 14877hardcode_into_libs=$hardcode_into_libs 14878 14879# Flag to hardcode \$libdir into a binary during linking. 14880# This must work even if \$libdir does not exist. 14881hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 14882 14883# If ld is used when linking, flag to hardcode \$libdir into 14884# a binary during linking. This must work even if \$libdir does 14885# not exist. 14886hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 14887 14888# Whether we need a single -rpath flag with a separated argument. 14889hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 14890 14891# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14892# resulting binary. 14893hardcode_direct=$hardcode_direct_F77 14894 14895# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14896# resulting binary. 14897hardcode_minus_L=$hardcode_minus_L_F77 14898 14899# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14900# the resulting binary. 14901hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 14902 14903# Set to yes if building a shared library automatically hardcodes DIR into the library 14904# and all subsequent libraries and executables linked against it. 14905hardcode_automatic=$hardcode_automatic_F77 14906 14907# Variables whose values should be saved in libtool wrapper scripts and 14908# restored at relink time. 14909variables_saved_for_relink="$variables_saved_for_relink" 14910 14911# Whether libtool must link a program against all its dependency libraries. 14912link_all_deplibs=$link_all_deplibs_F77 14913 14914# Compile-time system search path for libraries 14915sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14916 14917# Run-time system search path for libraries 14918sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14919 14920# Fix the shell variable \$srcfile for the compiler. 14921fix_srcfile_path="$fix_srcfile_path_F77" 14922 14923# Set to yes if exported symbols are required. 14924always_export_symbols=$always_export_symbols_F77 14925 14926# The commands to list exported symbols. 14927export_symbols_cmds=$lt_export_symbols_cmds_F77 14928 14929# The commands to extract the exported symbol list from a shared archive. 14930extract_expsyms_cmds=$lt_extract_expsyms_cmds 14931 14932# Symbols that should not be listed in the preloaded symbols. 14933exclude_expsyms=$lt_exclude_expsyms_F77 14934 14935# Symbols that must always be exported. 14936include_expsyms=$lt_include_expsyms_F77 14937 14938# ### END LIBTOOL TAG CONFIG: $tagname 14939 14940__EOF__ 14941 14942 14943else 14944 # If there is no Makefile yet, we rely on a make rule to execute 14945 # `config.status --recheck' to rerun these tests and create the 14946 # libtool script then. 14947 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14948 if test -f "$ltmain_in"; then 14949 test -f Makefile && make "$ltmain" 14950 fi 14951fi 14952 14953 14954ac_ext=c 14955ac_cpp='$CPP $CPPFLAGS' 14956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14958ac_compiler_gnu=$ac_cv_c_compiler_gnu 14959 14960CC="$lt_save_CC" 14961 14962 else 14963 tagname="" 14964 fi 14965 ;; 14966 14967 GCJ) 14968 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 14969 14970 14971 14972# Source file extension for Java test sources. 14973ac_ext=java 14974 14975# Object file extension for compiled Java test sources. 14976objext=o 14977objext_GCJ=$objext 14978 14979# Code to be used in simple compile tests 14980lt_simple_compile_test_code="class foo {}\n" 14981 14982# Code to be used in simple link tests 14983lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 14984 14985# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14986 14987# If no C compiler was specified, use CC. 14988LTCC=${LTCC-"$CC"} 14989 14990# Allow CC to be a program name with arguments. 14991compiler=$CC 14992 14993 14994# Allow CC to be a program name with arguments. 14995lt_save_CC="$CC" 14996CC=${GCJ-"gcj"} 14997compiler=$CC 14998compiler_GCJ=$CC 14999 15000# GCJ did not exist at the time GCC didn't implicitly link libc in. 15001archive_cmds_need_lc_GCJ=no 15002 15003 15004lt_prog_compiler_no_builtin_flag_GCJ= 15005 15006if test "$GCC" = yes; then 15007 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15008 15009 15010echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15011echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15012if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15013 echo $ECHO_N "(cached) $ECHO_C" >&6 15014else 15015 lt_cv_prog_compiler_rtti_exceptions=no 15016 ac_outfile=conftest.$ac_objext 15017 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15018 lt_compiler_flag="-fno-rtti -fno-exceptions" 15019 # Insert the option either (1) after the last *FLAGS variable, or 15020 # (2) before a word containing "conftest.", or (3) at the end. 15021 # Note that $ac_compile itself does not contain backslashes and begins 15022 # with a dollar sign (not a hyphen), so the echo should work correctly. 15023 # The option is referenced via a variable to avoid confusing sed. 15024 lt_compile=`echo "$ac_compile" | $SED \ 15025 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15027 -e 's:$: $lt_compiler_flag:'` 15028 (eval echo "\"\$as_me:15028: $lt_compile\"" >&5) 15029 (eval "$lt_compile" 2>conftest.err) 15030 ac_status=$? 15031 cat conftest.err >&5 15032 echo "$as_me:15032: \$? = $ac_status" >&5 15033 if (exit $ac_status) && test -s "$ac_outfile"; then 15034 # The compiler can only warn and ignore the option if not recognized 15035 # So say no if there are warnings 15036 if test ! -s conftest.err; then 15037 lt_cv_prog_compiler_rtti_exceptions=yes 15038 fi 15039 fi 15040 $rm conftest* 15041 15042fi 15043echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15044echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15045 15046if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15047 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15048else 15049 : 15050fi 15051 15052fi 15053 15054lt_prog_compiler_wl_GCJ= 15055lt_prog_compiler_pic_GCJ= 15056lt_prog_compiler_static_GCJ= 15057 15058echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15059echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15060 15061 if test "$GCC" = yes; then 15062 lt_prog_compiler_wl_GCJ='-Wl,' 15063 lt_prog_compiler_static_GCJ='-static' 15064 15065 case $host_os in 15066 aix*) 15067 # All AIX code is PIC. 15068 if test "$host_cpu" = ia64; then 15069 # AIX 5 now supports IA64 processor 15070 lt_prog_compiler_static_GCJ='-Bstatic' 15071 fi 15072 ;; 15073 15074 amigaos*) 15075 # FIXME: we need at least 68020 code to build shared libraries, but 15076 # adding the `-m68020' flag to GCC prevents building anything better, 15077 # like `-m68040'. 15078 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15079 ;; 15080 15081 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15082 # PIC is the default for these OSes. 15083 ;; 15084 15085 mingw* | pw32* | os2*) 15086 # This hack is so that the source file can tell whether it is being 15087 # built for inclusion in a dll (and should export symbols for example). 15088 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15089 ;; 15090 15091 darwin* | rhapsody*) 15092 # PIC is the default on this platform 15093 # Common symbols not allowed in MH_DYLIB files 15094 lt_prog_compiler_pic_GCJ='-fno-common' 15095 ;; 15096 15097 msdosdjgpp*) 15098 # Just because we use GCC doesn't mean we suddenly get shared libraries 15099 # on systems that don't support them. 15100 lt_prog_compiler_can_build_shared_GCJ=no 15101 enable_shared=no 15102 ;; 15103 15104 sysv4*MP*) 15105 if test -d /usr/nec; then 15106 lt_prog_compiler_pic_GCJ=-Kconform_pic 15107 fi 15108 ;; 15109 15110 hpux*) 15111 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15112 # not for PA HP-UX. 15113 case "$host_cpu" in 15114 hppa*64*|ia64*) 15115 # +Z the default 15116 ;; 15117 *) 15118 lt_prog_compiler_pic_GCJ='-fPIC' 15119 ;; 15120 esac 15121 ;; 15122 15123 *) 15124 lt_prog_compiler_pic_GCJ='-fPIC' 15125 ;; 15126 esac 15127 else 15128 # PORTME Check for flag to pass linker flags through the system compiler. 15129 case $host_os in 15130 aix*) 15131 lt_prog_compiler_wl_GCJ='-Wl,' 15132 if test "$host_cpu" = ia64; then 15133 # AIX 5 now supports IA64 processor 15134 lt_prog_compiler_static_GCJ='-Bstatic' 15135 else 15136 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15137 fi 15138 ;; 15139 15140 mingw* | pw32* | os2*) 15141 # This hack is so that the source file can tell whether it is being 15142 # built for inclusion in a dll (and should export symbols for example). 15143 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15144 ;; 15145 15146 hpux9* | hpux10* | hpux11*) 15147 lt_prog_compiler_wl_GCJ='-Wl,' 15148 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15149 # not for PA HP-UX. 15150 case "$host_cpu" in 15151 hppa*64*|ia64*) 15152 # +Z the default 15153 ;; 15154 *) 15155 lt_prog_compiler_pic_GCJ='+Z' 15156 ;; 15157 esac 15158 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15159 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15160 ;; 15161 15162 irix5* | irix6* | nonstopux*) 15163 lt_prog_compiler_wl_GCJ='-Wl,' 15164 # PIC (with -KPIC) is the default. 15165 lt_prog_compiler_static_GCJ='-non_shared' 15166 ;; 15167 15168 newsos6) 15169 lt_prog_compiler_pic_GCJ='-KPIC' 15170 lt_prog_compiler_static_GCJ='-Bstatic' 15171 ;; 15172 15173 linux*) 15174 case $CC in 15175 icc* | ecc*) 15176 lt_prog_compiler_wl_GCJ='-Wl,' 15177 lt_prog_compiler_pic_GCJ='-KPIC' 15178 lt_prog_compiler_static_GCJ='-static' 15179 ;; 15180 ccc*) 15181 lt_prog_compiler_wl_GCJ='-Wl,' 15182 # All Alpha code is PIC. 15183 lt_prog_compiler_static_GCJ='-non_shared' 15184 ;; 15185 esac 15186 ;; 15187 15188 osf3* | osf4* | osf5*) 15189 lt_prog_compiler_wl_GCJ='-Wl,' 15190 # All OSF/1 code is PIC. 15191 lt_prog_compiler_static_GCJ='-non_shared' 15192 ;; 15193 15194 sco3.2v5*) 15195 lt_prog_compiler_pic_GCJ='-Kpic' 15196 lt_prog_compiler_static_GCJ='-dn' 15197 ;; 15198 15199 solaris*) 15200 lt_prog_compiler_wl_GCJ='-Wl,' 15201 lt_prog_compiler_pic_GCJ='-KPIC' 15202 lt_prog_compiler_static_GCJ='-Bstatic' 15203 ;; 15204 15205 sunos4*) 15206 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15207 lt_prog_compiler_pic_GCJ='-PIC' 15208 lt_prog_compiler_static_GCJ='-Bstatic' 15209 ;; 15210 15211 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15212 lt_prog_compiler_wl_GCJ='-Wl,' 15213 lt_prog_compiler_pic_GCJ='-KPIC' 15214 lt_prog_compiler_static_GCJ='-Bstatic' 15215 ;; 15216 15217 sysv4*MP*) 15218 if test -d /usr/nec ;then 15219 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15220 lt_prog_compiler_static_GCJ='-Bstatic' 15221 fi 15222 ;; 15223 15224 uts4*) 15225 lt_prog_compiler_pic_GCJ='-pic' 15226 lt_prog_compiler_static_GCJ='-Bstatic' 15227 ;; 15228 15229 *) 15230 lt_prog_compiler_can_build_shared_GCJ=no 15231 ;; 15232 esac 15233 fi 15234 15235echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15236echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15237 15238# 15239# Check to make sure the PIC flag actually works. 15240# 15241if test -n "$lt_prog_compiler_pic_GCJ"; then 15242 15243echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15244echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15245if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15246 echo $ECHO_N "(cached) $ECHO_C" >&6 15247else 15248 lt_prog_compiler_pic_works_GCJ=no 15249 ac_outfile=conftest.$ac_objext 15250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15251 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15252 # Insert the option either (1) after the last *FLAGS variable, or 15253 # (2) before a word containing "conftest.", or (3) at the end. 15254 # Note that $ac_compile itself does not contain backslashes and begins 15255 # with a dollar sign (not a hyphen), so the echo should work correctly. 15256 # The option is referenced via a variable to avoid confusing sed. 15257 lt_compile=`echo "$ac_compile" | $SED \ 15258 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15260 -e 's:$: $lt_compiler_flag:'` 15261 (eval echo "\"\$as_me:15261: $lt_compile\"" >&5) 15262 (eval "$lt_compile" 2>conftest.err) 15263 ac_status=$? 15264 cat conftest.err >&5 15265 echo "$as_me:15265: \$? = $ac_status" >&5 15266 if (exit $ac_status) && test -s "$ac_outfile"; then 15267 # The compiler can only warn and ignore the option if not recognized 15268 # So say no if there are warnings 15269 if test ! -s conftest.err; then 15270 lt_prog_compiler_pic_works_GCJ=yes 15271 fi 15272 fi 15273 $rm conftest* 15274 15275fi 15276echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15277echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15278 15279if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15280 case $lt_prog_compiler_pic_GCJ in 15281 "" | " "*) ;; 15282 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15283 esac 15284else 15285 lt_prog_compiler_pic_GCJ= 15286 lt_prog_compiler_can_build_shared_GCJ=no 15287fi 15288 15289fi 15290case "$host_os" in 15291 # For platforms which do not support PIC, -DPIC is meaningless: 15292 *djgpp*) 15293 lt_prog_compiler_pic_GCJ= 15294 ;; 15295 *) 15296 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15297 ;; 15298esac 15299 15300echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15301echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15302if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15303 echo $ECHO_N "(cached) $ECHO_C" >&6 15304else 15305 lt_cv_prog_compiler_c_o_GCJ=no 15306 $rm -r conftest 2>/dev/null 15307 mkdir conftest 15308 cd conftest 15309 mkdir out 15310 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15311 15312 lt_compiler_flag="-o out/conftest2.$ac_objext" 15313 # Insert the option either (1) after the last *FLAGS variable, or 15314 # (2) before a word containing "conftest.", or (3) at the end. 15315 # Note that $ac_compile itself does not contain backslashes and begins 15316 # with a dollar sign (not a hyphen), so the echo should work correctly. 15317 lt_compile=`echo "$ac_compile" | $SED \ 15318 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15320 -e 's:$: $lt_compiler_flag:'` 15321 (eval echo "\"\$as_me:15321: $lt_compile\"" >&5) 15322 (eval "$lt_compile" 2>out/conftest.err) 15323 ac_status=$? 15324 cat out/conftest.err >&5 15325 echo "$as_me:15325: \$? = $ac_status" >&5 15326 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15327 then 15328 # The compiler can only warn and ignore the option if not recognized 15329 # So say no if there are warnings 15330 if test ! -s out/conftest.err; then 15331 lt_cv_prog_compiler_c_o_GCJ=yes 15332 fi 15333 fi 15334 chmod u+w . 15335 $rm conftest* 15336 # SGI C++ compiler will create directory out/ii_files/ for 15337 # template instantiation 15338 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15339 $rm out/* && rmdir out 15340 cd .. 15341 rmdir conftest 15342 $rm conftest* 15343 15344fi 15345echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15346echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15347 15348 15349hard_links="nottested" 15350if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15351 # do not overwrite the value of need_locks provided by the user 15352 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15353echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15354 hard_links=yes 15355 $rm conftest* 15356 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15357 touch conftest.a 15358 ln conftest.a conftest.b 2>&5 || hard_links=no 15359 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15360 echo "$as_me:$LINENO: result: $hard_links" >&5 15361echo "${ECHO_T}$hard_links" >&6 15362 if test "$hard_links" = no; then 15363 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15364echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15365 need_locks=warn 15366 fi 15367else 15368 need_locks=no 15369fi 15370 15371echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15372echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15373 15374 runpath_var= 15375 allow_undefined_flag_GCJ= 15376 enable_shared_with_static_runtimes_GCJ=no 15377 archive_cmds_GCJ= 15378 archive_expsym_cmds_GCJ= 15379 old_archive_From_new_cmds_GCJ= 15380 old_archive_from_expsyms_cmds_GCJ= 15381 export_dynamic_flag_spec_GCJ= 15382 whole_archive_flag_spec_GCJ= 15383 thread_safe_flag_spec_GCJ= 15384 hardcode_libdir_flag_spec_GCJ= 15385 hardcode_libdir_flag_spec_ld_GCJ= 15386 hardcode_libdir_separator_GCJ= 15387 hardcode_direct_GCJ=no 15388 hardcode_minus_L_GCJ=no 15389 hardcode_shlibpath_var_GCJ=unsupported 15390 link_all_deplibs_GCJ=unknown 15391 hardcode_automatic_GCJ=no 15392 module_cmds_GCJ= 15393 module_expsym_cmds_GCJ= 15394 always_export_symbols_GCJ=no 15395 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15396 # include_expsyms should be a list of space-separated symbols to be *always* 15397 # included in the symbol list 15398 include_expsyms_GCJ= 15399 # exclude_expsyms can be an extended regexp of symbols to exclude 15400 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15401 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15402 # as well as any symbol that contains `d'. 15403 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15404 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15405 # platforms (ab)use it in PIC code, but their linkers get confused if 15406 # the symbol is explicitly referenced. Since portable code cannot 15407 # rely on this symbol name, it's probably fine to never include it in 15408 # preloaded symbol tables. 15409 extract_expsyms_cmds= 15410 15411 case $host_os in 15412 cygwin* | mingw* | pw32*) 15413 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15414 # When not using gcc, we currently assume that we are using 15415 # Microsoft Visual C++. 15416 if test "$GCC" != yes; then 15417 with_gnu_ld=no 15418 fi 15419 ;; 15420 openbsd*) 15421 with_gnu_ld=no 15422 ;; 15423 esac 15424 15425 ld_shlibs_GCJ=yes 15426 if test "$with_gnu_ld" = yes; then 15427 # If archive_cmds runs LD, not CC, wlarc should be empty 15428 wlarc='${wl}' 15429 15430 # See if GNU ld supports shared libraries. 15431 case $host_os in 15432 aix3* | aix4* | aix5*) 15433 # On AIX/PPC, the GNU linker is very broken 15434 if test "$host_cpu" != ia64; then 15435 ld_shlibs_GCJ=no 15436 cat <<EOF 1>&2 15437 15438*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15439*** to be unable to reliably create shared libraries on AIX. 15440*** Therefore, libtool is disabling shared libraries support. If you 15441*** really care for shared libraries, you may want to modify your PATH 15442*** so that a non-GNU linker is found, and then restart. 15443 15444EOF 15445 fi 15446 ;; 15447 15448 amigaos*) 15449 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)' 15450 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15451 hardcode_minus_L_GCJ=yes 15452 15453 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15454 # that the semantics of dynamic libraries on AmigaOS, at least up 15455 # to version 4, is to share data among multiple programs linked 15456 # with the same dynamic library. Since this doesn't match the 15457 # behavior of shared libraries on other platforms, we can't use 15458 # them. 15459 ld_shlibs_GCJ=no 15460 ;; 15461 15462 beos*) 15463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15464 allow_undefined_flag_GCJ=unsupported 15465 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15466 # support --undefined. This deserves some investigation. FIXME 15467 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15468 else 15469 ld_shlibs_GCJ=no 15470 fi 15471 ;; 15472 15473 cygwin* | mingw* | pw32*) 15474 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 15475 # as there is no search path for DLLs. 15476 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15477 allow_undefined_flag_GCJ=unsupported 15478 always_export_symbols_GCJ=no 15479 enable_shared_with_static_runtimes_GCJ=yes 15480 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15481 15482 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15483 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15484 # If the export-symbols file already is a .def file (1st line 15485 # is EXPORTS), use it as is; otherwise, prepend... 15486 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15487 cp $export_symbols $output_objdir/$soname.def; 15488 else 15489 echo EXPORTS > $output_objdir/$soname.def; 15490 cat $export_symbols >> $output_objdir/$soname.def; 15491 fi~ 15492 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15493 else 15494 ld_shlibs=no 15495 fi 15496 ;; 15497 15498 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 15499 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15500 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15501 wlarc= 15502 else 15503 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15504 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15505 fi 15506 ;; 15507 15508 solaris* | sysv5*) 15509 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15510 ld_shlibs_GCJ=no 15511 cat <<EOF 1>&2 15512 15513*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15514*** create shared libraries on Solaris systems. Therefore, libtool 15515*** is disabling shared libraries support. We urge you to upgrade GNU 15516*** binutils to release 2.9.1 or newer. Another option is to modify 15517*** your PATH or compiler configuration so that the native linker is 15518*** used, and then restart. 15519 15520EOF 15521 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15522 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15523 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15524 else 15525 ld_shlibs_GCJ=no 15526 fi 15527 ;; 15528 15529 sunos4*) 15530 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15531 wlarc= 15532 hardcode_direct_GCJ=yes 15533 hardcode_shlibpath_var_GCJ=no 15534 ;; 15535 15536 linux*) 15537 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15538 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15539 archive_cmds_GCJ="$tmp_archive_cmds" 15540 supports_anon_versioning=no 15541 case `$LD -v 2>/dev/null` in 15542 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15543 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15544 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15545 *\ 2.11.*) ;; # other 2.11 versions 15546 *) supports_anon_versioning=yes ;; 15547 esac 15548 if test $supports_anon_versioning = yes; then 15549 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 15550cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15551$echo "local: *; };" >> $output_objdir/$libname.ver~ 15552 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15553 else 15554 archive_expsym_cmds_GCJ="$tmp_archive_cmds" 15555 fi 15556 link_all_deplibs_GCJ=no 15557 else 15558 ld_shlibs_GCJ=no 15559 fi 15560 ;; 15561 15562 *) 15563 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15564 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15565 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15566 else 15567 ld_shlibs_GCJ=no 15568 fi 15569 ;; 15570 esac 15571 15572 if test "$ld_shlibs_GCJ" = yes; then 15573 runpath_var=LD_RUN_PATH 15574 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 15575 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 15576 # ancient GNU ld didn't support --whole-archive et. al. 15577 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15578 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15579 else 15580 whole_archive_flag_spec_GCJ= 15581 fi 15582 fi 15583 else 15584 # PORTME fill in a description of your system's linker (not GNU ld) 15585 case $host_os in 15586 aix3*) 15587 allow_undefined_flag_GCJ=unsupported 15588 always_export_symbols_GCJ=yes 15589 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' 15590 # Note: this linker hardcodes the directories in LIBPATH if there 15591 # are no directories specified by -L. 15592 hardcode_minus_L_GCJ=yes 15593 if test "$GCC" = yes && test -z "$link_static_flag"; then 15594 # Neither direct hardcoding nor static linking is supported with a 15595 # broken collect2. 15596 hardcode_direct_GCJ=unsupported 15597 fi 15598 ;; 15599 15600 aix4* | aix5*) 15601 if test "$host_cpu" = ia64; then 15602 # On IA64, the linker does run time linking by default, so we don't 15603 # have to do anything special. 15604 aix_use_runtimelinking=no 15605 exp_sym_flag='-Bexport' 15606 no_entry_flag="" 15607 else 15608 # If we're using GNU nm, then we don't want the "-C" option. 15609 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15610 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15611 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' 15612 else 15613 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' 15614 fi 15615 aix_use_runtimelinking=no 15616 15617 # Test if we are trying to use run time linking or normal 15618 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15619 # need to do runtime linking. 15620 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15621 for ld_flag in $LDFLAGS; do 15622 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15623 aix_use_runtimelinking=yes 15624 break 15625 fi 15626 done 15627 esac 15628 15629 exp_sym_flag='-bexport' 15630 no_entry_flag='-bnoentry' 15631 fi 15632 15633 # When large executables or shared objects are built, AIX ld can 15634 # have problems creating the table of contents. If linking a library 15635 # or program results in "error TOC overflow" add -mminimal-toc to 15636 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15637 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15638 15639 archive_cmds_GCJ='' 15640 hardcode_direct_GCJ=yes 15641 hardcode_libdir_separator_GCJ=':' 15642 link_all_deplibs_GCJ=yes 15643 15644 if test "$GCC" = yes; then 15645 case $host_os in aix4.012|aix4.012.*) 15646 # We only want to do this on AIX 4.2 and lower, the check 15647 # below for broken collect2 doesn't work under 4.3+ 15648 collect2name=`${CC} -print-prog-name=collect2` 15649 if test -f "$collect2name" && \ 15650 strings "$collect2name" | grep resolve_lib_name >/dev/null 15651 then 15652 # We have reworked collect2 15653 hardcode_direct_GCJ=yes 15654 else 15655 # We have old collect2 15656 hardcode_direct_GCJ=unsupported 15657 # It fails to find uninstalled libraries when the uninstalled 15658 # path is not listed in the libpath. Setting hardcode_minus_L 15659 # to unsupported forces relinking 15660 hardcode_minus_L_GCJ=yes 15661 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15662 hardcode_libdir_separator_GCJ= 15663 fi 15664 esac 15665 shared_flag='-shared' 15666 else 15667 # not using gcc 15668 if test "$host_cpu" = ia64; then 15669 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15670 # chokes on -Wl,-G. The following line is correct: 15671 shared_flag='-G' 15672 else 15673 if test "$aix_use_runtimelinking" = yes; then 15674 shared_flag='${wl}-G' 15675 else 15676 shared_flag='${wl}-bM:SRE' 15677 fi 15678 fi 15679 fi 15680 15681 # It seems that -bexpall does not export symbols beginning with 15682 # underscore (_), so it is better to generate a list of symbols to export. 15683 always_export_symbols_GCJ=yes 15684 if test "$aix_use_runtimelinking" = yes; then 15685 # Warning - without using the other runtime loading flags (-brtl), 15686 # -berok will link without error, but may produce a broken library. 15687 allow_undefined_flag_GCJ='-berok' 15688 # Determine the default libpath from the value encoded in an empty executable. 15689 cat >conftest.$ac_ext <<_ACEOF 15690/* confdefs.h. */ 15691_ACEOF 15692cat confdefs.h >>conftest.$ac_ext 15693cat >>conftest.$ac_ext <<_ACEOF 15694/* end confdefs.h. */ 15695 15696int 15697main () 15698{ 15699 15700 ; 15701 return 0; 15702} 15703_ACEOF 15704rm -f conftest.$ac_objext conftest$ac_exeext 15705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15706 (eval $ac_link) 2>conftest.er1 15707 ac_status=$? 15708 grep -v '^ *+' conftest.er1 >conftest.err 15709 rm -f conftest.er1 15710 cat conftest.err >&5 15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15712 (exit $ac_status); } && 15713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15715 (eval $ac_try) 2>&5 15716 ac_status=$? 15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15718 (exit $ac_status); }; } && 15719 { ac_try='test -s conftest$ac_exeext' 15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15721 (eval $ac_try) 2>&5 15722 ac_status=$? 15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15724 (exit $ac_status); }; }; then 15725 15726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15727}'` 15728# Check for a 64-bit object if we didn't find anything. 15729if 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; } 15730}'`; fi 15731else 15732 echo "$as_me: failed program was:" >&5 15733sed 's/^/| /' conftest.$ac_ext >&5 15734 15735fi 15736rm -f conftest.err conftest.$ac_objext \ 15737 conftest$ac_exeext conftest.$ac_ext 15738if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15739 15740 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15741 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" 15742 else 15743 if test "$host_cpu" = ia64; then 15744 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 15745 allow_undefined_flag_GCJ="-z nodefs" 15746 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" 15747 else 15748 # Determine the default libpath from the value encoded in an empty executable. 15749 cat >conftest.$ac_ext <<_ACEOF 15750/* confdefs.h. */ 15751_ACEOF 15752cat confdefs.h >>conftest.$ac_ext 15753cat >>conftest.$ac_ext <<_ACEOF 15754/* end confdefs.h. */ 15755 15756int 15757main () 15758{ 15759 15760 ; 15761 return 0; 15762} 15763_ACEOF 15764rm -f conftest.$ac_objext conftest$ac_exeext 15765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15766 (eval $ac_link) 2>conftest.er1 15767 ac_status=$? 15768 grep -v '^ *+' conftest.er1 >conftest.err 15769 rm -f conftest.er1 15770 cat conftest.err >&5 15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15772 (exit $ac_status); } && 15773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15775 (eval $ac_try) 2>&5 15776 ac_status=$? 15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15778 (exit $ac_status); }; } && 15779 { ac_try='test -s conftest$ac_exeext' 15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15781 (eval $ac_try) 2>&5 15782 ac_status=$? 15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15784 (exit $ac_status); }; }; then 15785 15786aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15787}'` 15788# Check for a 64-bit object if we didn't find anything. 15789if 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; } 15790}'`; fi 15791else 15792 echo "$as_me: failed program was:" >&5 15793sed 's/^/| /' conftest.$ac_ext >&5 15794 15795fi 15796rm -f conftest.err conftest.$ac_objext \ 15797 conftest$ac_exeext conftest.$ac_ext 15798if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15799 15800 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15801 # Warning - without using the other run time loading flags, 15802 # -berok will link without error, but may produce a broken library. 15803 no_undefined_flag_GCJ=' ${wl}-bernotok' 15804 allow_undefined_flag_GCJ=' ${wl}-berok' 15805 # -bexpall does not export symbols beginning with underscore (_) 15806 always_export_symbols_GCJ=yes 15807 # Exported symbols can be pulled into shared objects from archives 15808 whole_archive_flag_spec_GCJ=' ' 15809 archive_cmds_need_lc_GCJ=yes 15810 # This is similar to how AIX traditionally builds it's shared libraries. 15811 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' 15812 fi 15813 fi 15814 ;; 15815 15816 amigaos*) 15817 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)' 15818 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15819 hardcode_minus_L_GCJ=yes 15820 # see comment about different semantics on the GNU ld section 15821 ld_shlibs_GCJ=no 15822 ;; 15823 15824 bsdi4*) 15825 export_dynamic_flag_spec_GCJ=-rdynamic 15826 ;; 15827 15828 cygwin* | mingw* | pw32*) 15829 # When not using gcc, we currently assume that we are using 15830 # Microsoft Visual C++. 15831 # hardcode_libdir_flag_spec is actually meaningless, as there is 15832 # no search path for DLLs. 15833 hardcode_libdir_flag_spec_GCJ=' ' 15834 allow_undefined_flag_GCJ=unsupported 15835 # Tell ltmain to make .lib files, not .a files. 15836 libext=lib 15837 # Tell ltmain to make .dll files, not .so files. 15838 shrext_cmds=".dll" 15839 # FIXME: Setting linknames here is a bad hack. 15840 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15841 # The linker will automatically build a .lib file if we build a DLL. 15842 old_archive_From_new_cmds_GCJ='true' 15843 # FIXME: Should let the user specify the lib program. 15844 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 15845 fix_srcfile_path='`cygpath -w "$srcfile"`' 15846 enable_shared_with_static_runtimes_GCJ=yes 15847 ;; 15848 15849 darwin* | rhapsody*) 15850 if test "$GXX" = yes ; then 15851 archive_cmds_need_lc_GCJ=no 15852 case "$host_os" in 15853 rhapsody* | darwin1.[012]) 15854 allow_undefined_flag_GCJ='-undefined suppress' 15855 ;; 15856 *) # Darwin 1.3 on 15857 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15858 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 15859 else 15860 case ${MACOSX_DEPLOYMENT_TARGET} in 15861 10.[012]) 15862 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 15863 ;; 15864 10.*) 15865 allow_undefined_flag_GCJ='-undefined dynamic_lookup' 15866 ;; 15867 esac 15868 fi 15869 ;; 15870 esac 15871 lt_int_apple_cc_single_mod=no 15872 output_verbose_link_cmd='echo' 15873 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 15874 lt_int_apple_cc_single_mod=yes 15875 fi 15876 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15877 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15878 else 15879 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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' 15880 fi 15881 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15882 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 15883 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15884 archive_expsym_cmds_GCJ='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}' 15885 else 15886 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 15887 fi 15888 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}' 15889 hardcode_direct_GCJ=no 15890 hardcode_automatic_GCJ=yes 15891 hardcode_shlibpath_var_GCJ=unsupported 15892 whole_archive_flag_spec_GCJ='-all_load $convenience' 15893 link_all_deplibs_GCJ=yes 15894 else 15895 ld_shlibs_GCJ=no 15896 fi 15897 ;; 15898 15899 dgux*) 15900 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15901 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15902 hardcode_shlibpath_var_GCJ=no 15903 ;; 15904 15905 freebsd1*) 15906 ld_shlibs_GCJ=no 15907 ;; 15908 15909 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15910 # support. Future versions do this automatically, but an explicit c++rt0.o 15911 # does not break anything, and helps significantly (at the cost of a little 15912 # extra space). 15913 freebsd2.2*) 15914 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15915 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15916 hardcode_direct_GCJ=yes 15917 hardcode_shlibpath_var_GCJ=no 15918 ;; 15919 15920 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15921 freebsd2*) 15922 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15923 hardcode_direct_GCJ=yes 15924 hardcode_minus_L_GCJ=yes 15925 hardcode_shlibpath_var_GCJ=no 15926 ;; 15927 15928 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15929 freebsd* | kfreebsd*-gnu) 15930 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15931 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15932 hardcode_direct_GCJ=yes 15933 hardcode_shlibpath_var_GCJ=no 15934 ;; 15935 15936 hpux9*) 15937 if test "$GCC" = yes; then 15938 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' 15939 else 15940 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' 15941 fi 15942 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15943 hardcode_libdir_separator_GCJ=: 15944 hardcode_direct_GCJ=yes 15945 15946 # hardcode_minus_L: Not really in the search PATH, 15947 # but as the default location of the library. 15948 hardcode_minus_L_GCJ=yes 15949 export_dynamic_flag_spec_GCJ='${wl}-E' 15950 ;; 15951 15952 hpux10* | hpux11*) 15953 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15954 case "$host_cpu" in 15955 hppa*64*|ia64*) 15956 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15957 ;; 15958 *) 15959 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15960 ;; 15961 esac 15962 else 15963 case "$host_cpu" in 15964 hppa*64*|ia64*) 15965 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 15966 ;; 15967 *) 15968 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15969 ;; 15970 esac 15971 fi 15972 if test "$with_gnu_ld" = no; then 15973 case "$host_cpu" in 15974 hppa*64*) 15975 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15976 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 15977 hardcode_libdir_separator_GCJ=: 15978 hardcode_direct_GCJ=no 15979 hardcode_shlibpath_var_GCJ=no 15980 ;; 15981 ia64*) 15982 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15983 hardcode_direct_GCJ=no 15984 hardcode_shlibpath_var_GCJ=no 15985 15986 # hardcode_minus_L: Not really in the search PATH, 15987 # but as the default location of the library. 15988 hardcode_minus_L_GCJ=yes 15989 ;; 15990 *) 15991 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15992 hardcode_libdir_separator_GCJ=: 15993 hardcode_direct_GCJ=yes 15994 export_dynamic_flag_spec_GCJ='${wl}-E' 15995 15996 # hardcode_minus_L: Not really in the search PATH, 15997 # but as the default location of the library. 15998 hardcode_minus_L_GCJ=yes 15999 ;; 16000 esac 16001 fi 16002 ;; 16003 16004 irix5* | irix6* | nonstopux*) 16005 if test "$GCC" = yes; then 16006 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' 16007 else 16008 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' 16009 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16010 fi 16011 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16012 hardcode_libdir_separator_GCJ=: 16013 link_all_deplibs_GCJ=yes 16014 ;; 16015 16016 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 16017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16018 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16019 else 16020 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16021 fi 16022 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16023 hardcode_direct_GCJ=yes 16024 hardcode_shlibpath_var_GCJ=no 16025 ;; 16026 16027 newsos6) 16028 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16029 hardcode_direct_GCJ=yes 16030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16031 hardcode_libdir_separator_GCJ=: 16032 hardcode_shlibpath_var_GCJ=no 16033 ;; 16034 16035 openbsd*) 16036 hardcode_direct_GCJ=yes 16037 hardcode_shlibpath_var_GCJ=no 16038 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16039 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16040 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16041 export_dynamic_flag_spec_GCJ='${wl}-E' 16042 else 16043 case $host_os in 16044 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16045 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16046 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16047 ;; 16048 *) 16049 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16050 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16051 ;; 16052 esac 16053 fi 16054 ;; 16055 16056 os2*) 16057 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16058 hardcode_minus_L_GCJ=yes 16059 allow_undefined_flag_GCJ=unsupported 16060 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' 16061 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16062 ;; 16063 16064 osf3*) 16065 if test "$GCC" = yes; then 16066 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16067 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' 16068 else 16069 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16070 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' 16071 fi 16072 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16073 hardcode_libdir_separator_GCJ=: 16074 ;; 16075 16076 osf4* | osf5*) # as osf3* with the addition of -msym flag 16077 if test "$GCC" = yes; then 16078 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16079 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' 16080 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16081 else 16082 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16083 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' 16084 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~ 16085 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 16086 16087 # Both c and cxx compiler support -rpath directly 16088 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16089 fi 16090 hardcode_libdir_separator_GCJ=: 16091 ;; 16092 16093 sco3.2v5*) 16094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16095 hardcode_shlibpath_var_GCJ=no 16096 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16097 runpath_var=LD_RUN_PATH 16098 hardcode_runpath_var=yes 16099 ;; 16100 16101 solaris*) 16102 no_undefined_flag_GCJ=' -z text' 16103 if test "$GCC" = yes; then 16104 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16105 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16106 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16107 else 16108 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16109 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16110 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16111 fi 16112 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16113 hardcode_shlibpath_var_GCJ=no 16114 case $host_os in 16115 solaris2.[0-5] | solaris2.[0-5].*) ;; 16116 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 16117 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16118 esac 16119 link_all_deplibs_GCJ=yes 16120 ;; 16121 16122 sunos4*) 16123 if test "x$host_vendor" = xsequent; then 16124 # Use $CC to link under sequent, because it throws in some extra .o 16125 # files that make .init and .fini sections work. 16126 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16127 else 16128 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16129 fi 16130 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16131 hardcode_direct_GCJ=yes 16132 hardcode_minus_L_GCJ=yes 16133 hardcode_shlibpath_var_GCJ=no 16134 ;; 16135 16136 sysv4) 16137 case $host_vendor in 16138 sni) 16139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16140 hardcode_direct_GCJ=yes # is this really true??? 16141 ;; 16142 siemens) 16143 ## LD is ld it makes a PLAMLIB 16144 ## CC just makes a GrossModule. 16145 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16146 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16147 hardcode_direct_GCJ=no 16148 ;; 16149 motorola) 16150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16151 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16152 ;; 16153 esac 16154 runpath_var='LD_RUN_PATH' 16155 hardcode_shlibpath_var_GCJ=no 16156 ;; 16157 16158 sysv4.3*) 16159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16160 hardcode_shlibpath_var_GCJ=no 16161 export_dynamic_flag_spec_GCJ='-Bexport' 16162 ;; 16163 16164 sysv4*MP*) 16165 if test -d /usr/nec; then 16166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16167 hardcode_shlibpath_var_GCJ=no 16168 runpath_var=LD_RUN_PATH 16169 hardcode_runpath_var=yes 16170 ld_shlibs_GCJ=yes 16171 fi 16172 ;; 16173 16174 sysv4.2uw2*) 16175 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16176 hardcode_direct_GCJ=yes 16177 hardcode_minus_L_GCJ=no 16178 hardcode_shlibpath_var_GCJ=no 16179 hardcode_runpath_var=yes 16180 runpath_var=LD_RUN_PATH 16181 ;; 16182 16183 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16184 no_undefined_flag_GCJ='${wl}-z ${wl}text' 16185 if test "$GCC" = yes; then 16186 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16187 else 16188 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16189 fi 16190 runpath_var='LD_RUN_PATH' 16191 hardcode_shlibpath_var_GCJ=no 16192 ;; 16193 16194 sysv5*) 16195 no_undefined_flag_GCJ=' -z text' 16196 # $CC -shared without GNU ld will not create a library from C++ 16197 # object files and a static libstdc++, better avoid it by now 16198 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16199 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16200 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16201 hardcode_libdir_flag_spec_GCJ= 16202 hardcode_shlibpath_var_GCJ=no 16203 runpath_var='LD_RUN_PATH' 16204 ;; 16205 16206 uts4*) 16207 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16208 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16209 hardcode_shlibpath_var_GCJ=no 16210 ;; 16211 16212 *) 16213 ld_shlibs_GCJ=no 16214 ;; 16215 esac 16216 fi 16217 16218echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16219echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16220test "$ld_shlibs_GCJ" = no && can_build_shared=no 16221 16222variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16223if test "$GCC" = yes; then 16224 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16225fi 16226 16227# 16228# Do we need to explicitly link libc? 16229# 16230case "x$archive_cmds_need_lc_GCJ" in 16231x|xyes) 16232 # Assume -lc should be added 16233 archive_cmds_need_lc_GCJ=yes 16234 16235 if test "$enable_shared" = yes && test "$GCC" = yes; then 16236 case $archive_cmds_GCJ in 16237 *'~'*) 16238 # FIXME: we may have to deal with multi-command sequences. 16239 ;; 16240 '$CC '*) 16241 # Test whether the compiler implicitly links with -lc since on some 16242 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16243 # to ld, don't add -lc before -lgcc. 16244 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16245echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16246 $rm conftest* 16247 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16248 16249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16250 (eval $ac_compile) 2>&5 16251 ac_status=$? 16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16253 (exit $ac_status); } 2>conftest.err; then 16254 soname=conftest 16255 lib=conftest 16256 libobjs=conftest.$ac_objext 16257 deplibs= 16258 wl=$lt_prog_compiler_wl_GCJ 16259 compiler_flags=-v 16260 linker_flags=-v 16261 verstring= 16262 output_objdir=. 16263 libname=conftest 16264 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16265 allow_undefined_flag_GCJ= 16266 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16267 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16268 ac_status=$? 16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16270 (exit $ac_status); } 16271 then 16272 archive_cmds_need_lc_GCJ=no 16273 else 16274 archive_cmds_need_lc_GCJ=yes 16275 fi 16276 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16277 else 16278 cat conftest.err 1>&5 16279 fi 16280 $rm conftest* 16281 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16282echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16283 ;; 16284 esac 16285 fi 16286 ;; 16287esac 16288 16289echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16290echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16291library_names_spec= 16292libname_spec='lib$name' 16293soname_spec= 16294shrext_cmds=".so" 16295postinstall_cmds= 16296postuninstall_cmds= 16297finish_cmds= 16298finish_eval= 16299shlibpath_var= 16300shlibpath_overrides_runpath=unknown 16301version_type=none 16302dynamic_linker="$host_os ld.so" 16303sys_lib_dlsearch_path_spec="/lib /usr/lib" 16304if test "$GCC" = yes; then 16305 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16306 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16307 # if the path contains ";" then we assume it to be the separator 16308 # otherwise default to the standard path separator (i.e. ":") - it is 16309 # assumed that no part of a normal pathname contains ";" but that should 16310 # okay in the real world where ";" in dirpaths is itself problematic. 16311 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16312 else 16313 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16314 fi 16315else 16316 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16317fi 16318need_lib_prefix=unknown 16319hardcode_into_libs=no 16320 16321# when you set need_version to no, make sure it does not cause -set_version 16322# flags to be left without arguments 16323need_version=unknown 16324 16325case $host_os in 16326aix3*) 16327 version_type=linux 16328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16329 shlibpath_var=LIBPATH 16330 16331 # AIX 3 has no versioning support, so we append a major version to the name. 16332 soname_spec='${libname}${release}${shared_ext}$major' 16333 ;; 16334 16335aix4* | aix5*) 16336 version_type=linux 16337 need_lib_prefix=no 16338 need_version=no 16339 hardcode_into_libs=yes 16340 if test "$host_cpu" = ia64; then 16341 # AIX 5 supports IA64 16342 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16343 shlibpath_var=LD_LIBRARY_PATH 16344 else 16345 # With GCC up to 2.95.x, collect2 would create an import file 16346 # for dependence libraries. The import file would start with 16347 # the line `#! .'. This would cause the generated library to 16348 # depend on `.', always an invalid library. This was fixed in 16349 # development snapshots of GCC prior to 3.0. 16350 case $host_os in 16351 aix4 | aix4.[01] | aix4.[01].*) 16352 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16353 echo ' yes ' 16354 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16355 : 16356 else 16357 can_build_shared=no 16358 fi 16359 ;; 16360 esac 16361 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16362 # soname into executable. Probably we can add versioning support to 16363 # collect2, so additional links can be useful in future. 16364 if test "$aix_use_runtimelinking" = yes; then 16365 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16366 # instead of lib<name>.a to let people know that these are not 16367 # typical AIX shared libraries. 16368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16369 else 16370 # We preserve .a as extension for shared libraries through AIX4.2 16371 # and later when we are not doing run time linking. 16372 library_names_spec='${libname}${release}.a $libname.a' 16373 soname_spec='${libname}${release}${shared_ext}$major' 16374 fi 16375 shlibpath_var=LIBPATH 16376 fi 16377 ;; 16378 16379amigaos*) 16380 library_names_spec='$libname.ixlibrary $libname.a' 16381 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16382 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' 16383 ;; 16384 16385beos*) 16386 library_names_spec='${libname}${shared_ext}' 16387 dynamic_linker="$host_os ld.so" 16388 shlibpath_var=LIBRARY_PATH 16389 ;; 16390 16391bsdi4*) 16392 version_type=linux 16393 need_version=no 16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16395 soname_spec='${libname}${release}${shared_ext}$major' 16396 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16397 shlibpath_var=LD_LIBRARY_PATH 16398 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16399 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16400 # the default ld.so.conf also contains /usr/contrib/lib and 16401 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16402 # libtool to hard-code these into programs 16403 ;; 16404 16405cygwin* | mingw* | pw32*) 16406 version_type=windows 16407 shrext_cmds=".dll" 16408 need_version=no 16409 need_lib_prefix=no 16410 16411 case $GCC,$host_os in 16412 yes,cygwin* | yes,mingw* | yes,pw32*) 16413 library_names_spec='$libname.dll.a' 16414 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16415 postinstall_cmds='base_file=`basename \${file}`~ 16416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16417 dldir=$destdir/`dirname \$dlpath`~ 16418 test -d \$dldir || mkdir -p \$dldir~ 16419 $install_prog $dir/$dlname \$dldir/$dlname' 16420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16421 dlpath=$dir/\$dldll~ 16422 $rm \$dlpath' 16423 shlibpath_overrides_runpath=yes 16424 16425 case $host_os in 16426 cygwin*) 16427 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16429 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16430 ;; 16431 mingw*) 16432 # MinGW DLLs use traditional 'lib' prefix 16433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16434 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16435 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16436 # It is most probably a Windows format PATH printed by 16437 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16438 # path with ; separators, and with drive letters. We can handle the 16439 # drive letters (cygwin fileutils understands them), so leave them, 16440 # especially as we might pass files found there to a mingw objdump, 16441 # which wouldn't understand a cygwinified path. Ahh. 16442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16443 else 16444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16445 fi 16446 ;; 16447 pw32*) 16448 # pw32 DLLs use 'pw' prefix rather than 'lib' 16449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 16450 ;; 16451 esac 16452 ;; 16453 16454 *) 16455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16456 ;; 16457 esac 16458 dynamic_linker='Win32 ld.exe' 16459 # FIXME: first we should search . and the directory the executable is in 16460 shlibpath_var=PATH 16461 ;; 16462 16463darwin* | rhapsody*) 16464 dynamic_linker="$host_os dyld" 16465 version_type=darwin 16466 need_lib_prefix=no 16467 need_version=no 16468 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16469 soname_spec='${libname}${release}${major}$shared_ext' 16470 shlibpath_overrides_runpath=yes 16471 shlibpath_var=DYLD_LIBRARY_PATH 16472 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 16473 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16474 if test "$GCC" = yes; then 16475 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"` 16476 else 16477 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16478 fi 16479 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16480 ;; 16481 16482dgux*) 16483 version_type=linux 16484 need_lib_prefix=no 16485 need_version=no 16486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16487 soname_spec='${libname}${release}${shared_ext}$major' 16488 shlibpath_var=LD_LIBRARY_PATH 16489 ;; 16490 16491freebsd1*) 16492 dynamic_linker=no 16493 ;; 16494 16495kfreebsd*-gnu) 16496 version_type=linux 16497 need_lib_prefix=no 16498 need_version=no 16499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16500 soname_spec='${libname}${release}${shared_ext}$major' 16501 shlibpath_var=LD_LIBRARY_PATH 16502 shlibpath_overrides_runpath=no 16503 hardcode_into_libs=yes 16504 dynamic_linker='GNU ld.so' 16505 ;; 16506 16507freebsd*) 16508 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 16509 version_type=freebsd-$objformat 16510 case $version_type in 16511 freebsd-elf*) 16512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16513 need_version=no 16514 need_lib_prefix=no 16515 ;; 16516 freebsd-*) 16517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16518 need_version=yes 16519 ;; 16520 esac 16521 shlibpath_var=LD_LIBRARY_PATH 16522 case $host_os in 16523 freebsd2*) 16524 shlibpath_overrides_runpath=yes 16525 ;; 16526 freebsd3.01* | freebsdelf3.01*) 16527 shlibpath_overrides_runpath=yes 16528 hardcode_into_libs=yes 16529 ;; 16530 *) # from 3.2 on 16531 shlibpath_overrides_runpath=no 16532 hardcode_into_libs=yes 16533 ;; 16534 esac 16535 ;; 16536 16537gnu*) 16538 version_type=linux 16539 need_lib_prefix=no 16540 need_version=no 16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16542 soname_spec='${libname}${release}${shared_ext}$major' 16543 shlibpath_var=LD_LIBRARY_PATH 16544 hardcode_into_libs=yes 16545 ;; 16546 16547hpux9* | hpux10* | hpux11*) 16548 # Give a soname corresponding to the major version so that dld.sl refuses to 16549 # link against other versions. 16550 version_type=sunos 16551 need_lib_prefix=no 16552 need_version=no 16553 case "$host_cpu" in 16554 ia64*) 16555 shrext_cmds='.so' 16556 hardcode_into_libs=yes 16557 dynamic_linker="$host_os dld.so" 16558 shlibpath_var=LD_LIBRARY_PATH 16559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16561 soname_spec='${libname}${release}${shared_ext}$major' 16562 if test "X$HPUX_IA64_MODE" = X32; then 16563 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16564 else 16565 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16566 fi 16567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16568 ;; 16569 hppa*64*) 16570 shrext_cmds='.sl' 16571 hardcode_into_libs=yes 16572 dynamic_linker="$host_os dld.sl" 16573 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16576 soname_spec='${libname}${release}${shared_ext}$major' 16577 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16579 ;; 16580 *) 16581 shrext_cmds='.sl' 16582 dynamic_linker="$host_os dld.sl" 16583 shlibpath_var=SHLIB_PATH 16584 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16586 soname_spec='${libname}${release}${shared_ext}$major' 16587 ;; 16588 esac 16589 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16590 postinstall_cmds='chmod 555 $lib' 16591 ;; 16592 16593irix5* | irix6* | nonstopux*) 16594 case $host_os in 16595 nonstopux*) version_type=nonstopux ;; 16596 *) 16597 if test "$lt_cv_prog_gnu_ld" = yes; then 16598 version_type=linux 16599 else 16600 version_type=irix 16601 fi ;; 16602 esac 16603 need_lib_prefix=no 16604 need_version=no 16605 soname_spec='${libname}${release}${shared_ext}$major' 16606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16607 case $host_os in 16608 irix5* | nonstopux*) 16609 libsuff= shlibsuff= 16610 ;; 16611 *) 16612 case $LD in # libtool.m4 will add one of these switches to LD 16613 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16614 libsuff= shlibsuff= libmagic=32-bit;; 16615 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16616 libsuff=32 shlibsuff=N32 libmagic=N32;; 16617 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16618 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16619 *) libsuff= shlibsuff= libmagic=never-match;; 16620 esac 16621 ;; 16622 esac 16623 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16624 shlibpath_overrides_runpath=no 16625 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16626 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16627 hardcode_into_libs=yes 16628 ;; 16629 16630# No shared lib support for Linux oldld, aout, or coff. 16631linux*oldld* | linux*aout* | linux*coff*) 16632 dynamic_linker=no 16633 ;; 16634 16635# This must be Linux ELF. 16636linux*) 16637 version_type=linux 16638 need_lib_prefix=no 16639 need_version=no 16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16641 soname_spec='${libname}${release}${shared_ext}$major' 16642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16643 shlibpath_var=LD_LIBRARY_PATH 16644 shlibpath_overrides_runpath=no 16645 # This implies no fast_install, which is unacceptable. 16646 # Some rework will be needed to allow for fast_install 16647 # before this can be enabled. 16648 hardcode_into_libs=yes 16649 16650 # Append ld.so.conf contents to the search path 16651 if test -f /etc/ld.so.conf; then 16652 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 16653 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16654 fi 16655 16656 # We used to test for /lib/ld.so.1 and disable shared libraries on 16657 # powerpc, because MkLinux only supported shared libraries with the 16658 # GNU dynamic linker. Since this was broken with cross compilers, 16659 # most powerpc-linux boxes support dynamic linking these days and 16660 # people can always --disable-shared, the test was removed, and we 16661 # assume the GNU/Linux dynamic linker is in use. 16662 dynamic_linker='GNU/Linux ld.so' 16663 ;; 16664 16665netbsdelf*-gnu) 16666 version_type=linux 16667 need_lib_prefix=no 16668 need_version=no 16669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16670 soname_spec='${libname}${release}${shared_ext}$major' 16671 shlibpath_var=LD_LIBRARY_PATH 16672 shlibpath_overrides_runpath=no 16673 hardcode_into_libs=yes 16674 dynamic_linker='NetBSD ld.elf_so' 16675 ;; 16676 16677knetbsd*-gnu) 16678 version_type=linux 16679 need_lib_prefix=no 16680 need_version=no 16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16682 soname_spec='${libname}${release}${shared_ext}$major' 16683 shlibpath_var=LD_LIBRARY_PATH 16684 shlibpath_overrides_runpath=no 16685 hardcode_into_libs=yes 16686 dynamic_linker='GNU ld.so' 16687 ;; 16688 16689netbsd*) 16690 version_type=sunos 16691 need_lib_prefix=no 16692 need_version=no 16693 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16696 dynamic_linker='NetBSD (a.out) ld.so' 16697 else 16698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16699 soname_spec='${libname}${release}${shared_ext}$major' 16700 dynamic_linker='NetBSD ld.elf_so' 16701 fi 16702 shlibpath_var=LD_LIBRARY_PATH 16703 shlibpath_overrides_runpath=yes 16704 hardcode_into_libs=yes 16705 ;; 16706 16707newsos6) 16708 version_type=linux 16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16710 shlibpath_var=LD_LIBRARY_PATH 16711 shlibpath_overrides_runpath=yes 16712 ;; 16713 16714nto-qnx*) 16715 version_type=linux 16716 need_lib_prefix=no 16717 need_version=no 16718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16719 soname_spec='${libname}${release}${shared_ext}$major' 16720 shlibpath_var=LD_LIBRARY_PATH 16721 shlibpath_overrides_runpath=yes 16722 ;; 16723 16724openbsd*) 16725 version_type=sunos 16726 need_lib_prefix=no 16727 need_version=yes 16728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16730 shlibpath_var=LD_LIBRARY_PATH 16731 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16732 case $host_os in 16733 openbsd2.[89] | openbsd2.[89].*) 16734 shlibpath_overrides_runpath=no 16735 ;; 16736 *) 16737 shlibpath_overrides_runpath=yes 16738 ;; 16739 esac 16740 else 16741 shlibpath_overrides_runpath=yes 16742 fi 16743 ;; 16744 16745os2*) 16746 libname_spec='$name' 16747 shrext_cmds=".dll" 16748 need_lib_prefix=no 16749 library_names_spec='$libname${shared_ext} $libname.a' 16750 dynamic_linker='OS/2 ld.exe' 16751 shlibpath_var=LIBPATH 16752 ;; 16753 16754osf3* | osf4* | osf5*) 16755 version_type=osf 16756 need_lib_prefix=no 16757 need_version=no 16758 soname_spec='${libname}${release}${shared_ext}$major' 16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16760 shlibpath_var=LD_LIBRARY_PATH 16761 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16762 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16763 ;; 16764 16765sco3.2v5*) 16766 version_type=osf 16767 soname_spec='${libname}${release}${shared_ext}$major' 16768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16769 shlibpath_var=LD_LIBRARY_PATH 16770 ;; 16771 16772solaris*) 16773 version_type=linux 16774 need_lib_prefix=no 16775 need_version=no 16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16777 soname_spec='${libname}${release}${shared_ext}$major' 16778 shlibpath_var=LD_LIBRARY_PATH 16779 shlibpath_overrides_runpath=yes 16780 hardcode_into_libs=yes 16781 # ldd complains unless libraries are executable 16782 postinstall_cmds='chmod +x $lib' 16783 ;; 16784 16785sunos4*) 16786 version_type=sunos 16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16788 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16789 shlibpath_var=LD_LIBRARY_PATH 16790 shlibpath_overrides_runpath=yes 16791 if test "$with_gnu_ld" = yes; then 16792 need_lib_prefix=no 16793 fi 16794 need_version=yes 16795 ;; 16796 16797sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16798 version_type=linux 16799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16800 soname_spec='${libname}${release}${shared_ext}$major' 16801 shlibpath_var=LD_LIBRARY_PATH 16802 case $host_vendor in 16803 sni) 16804 shlibpath_overrides_runpath=no 16805 need_lib_prefix=no 16806 export_dynamic_flag_spec='${wl}-Blargedynsym' 16807 runpath_var=LD_RUN_PATH 16808 ;; 16809 siemens) 16810 need_lib_prefix=no 16811 ;; 16812 motorola) 16813 need_lib_prefix=no 16814 need_version=no 16815 shlibpath_overrides_runpath=no 16816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16817 ;; 16818 esac 16819 ;; 16820 16821sysv4*MP*) 16822 if test -d /usr/nec ;then 16823 version_type=linux 16824 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16825 soname_spec='$libname${shared_ext}.$major' 16826 shlibpath_var=LD_LIBRARY_PATH 16827 fi 16828 ;; 16829 16830uts4*) 16831 version_type=linux 16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16833 soname_spec='${libname}${release}${shared_ext}$major' 16834 shlibpath_var=LD_LIBRARY_PATH 16835 ;; 16836 16837*) 16838 dynamic_linker=no 16839 ;; 16840esac 16841echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16842echo "${ECHO_T}$dynamic_linker" >&6 16843test "$dynamic_linker" = no && can_build_shared=no 16844 16845echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16846echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16847hardcode_action_GCJ= 16848if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 16849 test -n "$runpath_var GCJ" || \ 16850 test "X$hardcode_automatic_GCJ"="Xyes" ; then 16851 16852 # We can hardcode non-existant directories. 16853 if test "$hardcode_direct_GCJ" != no && 16854 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16855 # have to relink, otherwise we might link with an installed library 16856 # when we should be linking with a yet-to-be-installed one 16857 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 16858 test "$hardcode_minus_L_GCJ" != no; then 16859 # Linking always hardcodes the temporary library directory. 16860 hardcode_action_GCJ=relink 16861 else 16862 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16863 hardcode_action_GCJ=immediate 16864 fi 16865else 16866 # We cannot hardcode anything, or else we can only hardcode existing 16867 # directories. 16868 hardcode_action_GCJ=unsupported 16869fi 16870echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 16871echo "${ECHO_T}$hardcode_action_GCJ" >&6 16872 16873if test "$hardcode_action_GCJ" = relink; then 16874 # Fast installation is not supported 16875 enable_fast_install=no 16876elif test "$shlibpath_overrides_runpath" = yes || 16877 test "$enable_shared" = no; then 16878 # Fast installation is not necessary 16879 enable_fast_install=needless 16880fi 16881 16882striplib= 16883old_striplib= 16884echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 16885echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 16886if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 16887 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 16888 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 16889 echo "$as_me:$LINENO: result: yes" >&5 16890echo "${ECHO_T}yes" >&6 16891else 16892# FIXME - insert some real tests, host_os isn't really good enough 16893 case $host_os in 16894 darwin*) 16895 if test -n "$STRIP" ; then 16896 striplib="$STRIP -x" 16897 echo "$as_me:$LINENO: result: yes" >&5 16898echo "${ECHO_T}yes" >&6 16899 else 16900 echo "$as_me:$LINENO: result: no" >&5 16901echo "${ECHO_T}no" >&6 16902fi 16903 ;; 16904 *) 16905 echo "$as_me:$LINENO: result: no" >&5 16906echo "${ECHO_T}no" >&6 16907 ;; 16908 esac 16909fi 16910 16911if test "x$enable_dlopen" != xyes; then 16912 enable_dlopen=unknown 16913 enable_dlopen_self=unknown 16914 enable_dlopen_self_static=unknown 16915else 16916 lt_cv_dlopen=no 16917 lt_cv_dlopen_libs= 16918 16919 case $host_os in 16920 beos*) 16921 lt_cv_dlopen="load_add_on" 16922 lt_cv_dlopen_libs= 16923 lt_cv_dlopen_self=yes 16924 ;; 16925 16926 mingw* | pw32*) 16927 lt_cv_dlopen="LoadLibrary" 16928 lt_cv_dlopen_libs= 16929 ;; 16930 16931 cygwin*) 16932 lt_cv_dlopen="dlopen" 16933 lt_cv_dlopen_libs= 16934 ;; 16935 16936 darwin*) 16937 # if libdl is installed we need to link against it 16938 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16939echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16940if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16941 echo $ECHO_N "(cached) $ECHO_C" >&6 16942else 16943 ac_check_lib_save_LIBS=$LIBS 16944LIBS="-ldl $LIBS" 16945cat >conftest.$ac_ext <<_ACEOF 16946/* confdefs.h. */ 16947_ACEOF 16948cat confdefs.h >>conftest.$ac_ext 16949cat >>conftest.$ac_ext <<_ACEOF 16950/* end confdefs.h. */ 16951 16952/* Override any gcc2 internal prototype to avoid an error. */ 16953#ifdef __cplusplus 16954extern "C" 16955#endif 16956/* We use char because int might match the return type of a gcc2 16957 builtin and then its argument prototype would still apply. */ 16958char dlopen (); 16959int 16960main () 16961{ 16962dlopen (); 16963 ; 16964 return 0; 16965} 16966_ACEOF 16967rm -f conftest.$ac_objext conftest$ac_exeext 16968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16969 (eval $ac_link) 2>conftest.er1 16970 ac_status=$? 16971 grep -v '^ *+' conftest.er1 >conftest.err 16972 rm -f conftest.er1 16973 cat conftest.err >&5 16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16975 (exit $ac_status); } && 16976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16978 (eval $ac_try) 2>&5 16979 ac_status=$? 16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16981 (exit $ac_status); }; } && 16982 { ac_try='test -s conftest$ac_exeext' 16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16984 (eval $ac_try) 2>&5 16985 ac_status=$? 16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16987 (exit $ac_status); }; }; then 16988 ac_cv_lib_dl_dlopen=yes 16989else 16990 echo "$as_me: failed program was:" >&5 16991sed 's/^/| /' conftest.$ac_ext >&5 16992 16993ac_cv_lib_dl_dlopen=no 16994fi 16995rm -f conftest.err conftest.$ac_objext \ 16996 conftest$ac_exeext conftest.$ac_ext 16997LIBS=$ac_check_lib_save_LIBS 16998fi 16999echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17000echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17001if test $ac_cv_lib_dl_dlopen = yes; then 17002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17003else 17004 17005 lt_cv_dlopen="dyld" 17006 lt_cv_dlopen_libs= 17007 lt_cv_dlopen_self=yes 17008 17009fi 17010 17011 ;; 17012 17013 *) 17014 echo "$as_me:$LINENO: checking for shl_load" >&5 17015echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 17016if test "${ac_cv_func_shl_load+set}" = set; then 17017 echo $ECHO_N "(cached) $ECHO_C" >&6 17018else 17019 cat >conftest.$ac_ext <<_ACEOF 17020/* confdefs.h. */ 17021_ACEOF 17022cat confdefs.h >>conftest.$ac_ext 17023cat >>conftest.$ac_ext <<_ACEOF 17024/* end confdefs.h. */ 17025/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 17026 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17027#define shl_load innocuous_shl_load 17028 17029/* System header to define __stub macros and hopefully few prototypes, 17030 which can conflict with char shl_load (); below. 17031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17032 <limits.h> exists even on freestanding compilers. */ 17033 17034#ifdef __STDC__ 17035# include <limits.h> 17036#else 17037# include <assert.h> 17038#endif 17039 17040#undef shl_load 17041 17042/* Override any gcc2 internal prototype to avoid an error. */ 17043#ifdef __cplusplus 17044extern "C" 17045{ 17046#endif 17047/* We use char because int might match the return type of a gcc2 17048 builtin and then its argument prototype would still apply. */ 17049char shl_load (); 17050/* The GNU C library defines this for functions which it implements 17051 to always fail with ENOSYS. Some functions are actually named 17052 something starting with __ and the normal name is an alias. */ 17053#if defined (__stub_shl_load) || defined (__stub___shl_load) 17054choke me 17055#else 17056char (*f) () = shl_load; 17057#endif 17058#ifdef __cplusplus 17059} 17060#endif 17061 17062int 17063main () 17064{ 17065return f != shl_load; 17066 ; 17067 return 0; 17068} 17069_ACEOF 17070rm -f conftest.$ac_objext conftest$ac_exeext 17071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17072 (eval $ac_link) 2>conftest.er1 17073 ac_status=$? 17074 grep -v '^ *+' conftest.er1 >conftest.err 17075 rm -f conftest.er1 17076 cat conftest.err >&5 17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17078 (exit $ac_status); } && 17079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17081 (eval $ac_try) 2>&5 17082 ac_status=$? 17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17084 (exit $ac_status); }; } && 17085 { ac_try='test -s conftest$ac_exeext' 17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17087 (eval $ac_try) 2>&5 17088 ac_status=$? 17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17090 (exit $ac_status); }; }; then 17091 ac_cv_func_shl_load=yes 17092else 17093 echo "$as_me: failed program was:" >&5 17094sed 's/^/| /' conftest.$ac_ext >&5 17095 17096ac_cv_func_shl_load=no 17097fi 17098rm -f conftest.err conftest.$ac_objext \ 17099 conftest$ac_exeext conftest.$ac_ext 17100fi 17101echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 17102echo "${ECHO_T}$ac_cv_func_shl_load" >&6 17103if test $ac_cv_func_shl_load = yes; then 17104 lt_cv_dlopen="shl_load" 17105else 17106 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 17107echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 17108if test "${ac_cv_lib_dld_shl_load+set}" = set; then 17109 echo $ECHO_N "(cached) $ECHO_C" >&6 17110else 17111 ac_check_lib_save_LIBS=$LIBS 17112LIBS="-ldld $LIBS" 17113cat >conftest.$ac_ext <<_ACEOF 17114/* confdefs.h. */ 17115_ACEOF 17116cat confdefs.h >>conftest.$ac_ext 17117cat >>conftest.$ac_ext <<_ACEOF 17118/* end confdefs.h. */ 17119 17120/* Override any gcc2 internal prototype to avoid an error. */ 17121#ifdef __cplusplus 17122extern "C" 17123#endif 17124/* We use char because int might match the return type of a gcc2 17125 builtin and then its argument prototype would still apply. */ 17126char shl_load (); 17127int 17128main () 17129{ 17130shl_load (); 17131 ; 17132 return 0; 17133} 17134_ACEOF 17135rm -f conftest.$ac_objext conftest$ac_exeext 17136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17137 (eval $ac_link) 2>conftest.er1 17138 ac_status=$? 17139 grep -v '^ *+' conftest.er1 >conftest.err 17140 rm -f conftest.er1 17141 cat conftest.err >&5 17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17143 (exit $ac_status); } && 17144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17146 (eval $ac_try) 2>&5 17147 ac_status=$? 17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17149 (exit $ac_status); }; } && 17150 { ac_try='test -s conftest$ac_exeext' 17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17152 (eval $ac_try) 2>&5 17153 ac_status=$? 17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17155 (exit $ac_status); }; }; then 17156 ac_cv_lib_dld_shl_load=yes 17157else 17158 echo "$as_me: failed program was:" >&5 17159sed 's/^/| /' conftest.$ac_ext >&5 17160 17161ac_cv_lib_dld_shl_load=no 17162fi 17163rm -f conftest.err conftest.$ac_objext \ 17164 conftest$ac_exeext conftest.$ac_ext 17165LIBS=$ac_check_lib_save_LIBS 17166fi 17167echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 17168echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 17169if test $ac_cv_lib_dld_shl_load = yes; then 17170 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 17171else 17172 echo "$as_me:$LINENO: checking for dlopen" >&5 17173echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 17174if test "${ac_cv_func_dlopen+set}" = set; then 17175 echo $ECHO_N "(cached) $ECHO_C" >&6 17176else 17177 cat >conftest.$ac_ext <<_ACEOF 17178/* confdefs.h. */ 17179_ACEOF 17180cat confdefs.h >>conftest.$ac_ext 17181cat >>conftest.$ac_ext <<_ACEOF 17182/* end confdefs.h. */ 17183/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 17184 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17185#define dlopen innocuous_dlopen 17186 17187/* System header to define __stub macros and hopefully few prototypes, 17188 which can conflict with char dlopen (); below. 17189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17190 <limits.h> exists even on freestanding compilers. */ 17191 17192#ifdef __STDC__ 17193# include <limits.h> 17194#else 17195# include <assert.h> 17196#endif 17197 17198#undef dlopen 17199 17200/* Override any gcc2 internal prototype to avoid an error. */ 17201#ifdef __cplusplus 17202extern "C" 17203{ 17204#endif 17205/* We use char because int might match the return type of a gcc2 17206 builtin and then its argument prototype would still apply. */ 17207char dlopen (); 17208/* The GNU C library defines this for functions which it implements 17209 to always fail with ENOSYS. Some functions are actually named 17210 something starting with __ and the normal name is an alias. */ 17211#if defined (__stub_dlopen) || defined (__stub___dlopen) 17212choke me 17213#else 17214char (*f) () = dlopen; 17215#endif 17216#ifdef __cplusplus 17217} 17218#endif 17219 17220int 17221main () 17222{ 17223return f != dlopen; 17224 ; 17225 return 0; 17226} 17227_ACEOF 17228rm -f conftest.$ac_objext conftest$ac_exeext 17229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17230 (eval $ac_link) 2>conftest.er1 17231 ac_status=$? 17232 grep -v '^ *+' conftest.er1 >conftest.err 17233 rm -f conftest.er1 17234 cat conftest.err >&5 17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17236 (exit $ac_status); } && 17237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17239 (eval $ac_try) 2>&5 17240 ac_status=$? 17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17242 (exit $ac_status); }; } && 17243 { ac_try='test -s conftest$ac_exeext' 17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17245 (eval $ac_try) 2>&5 17246 ac_status=$? 17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17248 (exit $ac_status); }; }; then 17249 ac_cv_func_dlopen=yes 17250else 17251 echo "$as_me: failed program was:" >&5 17252sed 's/^/| /' conftest.$ac_ext >&5 17253 17254ac_cv_func_dlopen=no 17255fi 17256rm -f conftest.err conftest.$ac_objext \ 17257 conftest$ac_exeext conftest.$ac_ext 17258fi 17259echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 17260echo "${ECHO_T}$ac_cv_func_dlopen" >&6 17261if test $ac_cv_func_dlopen = yes; then 17262 lt_cv_dlopen="dlopen" 17263else 17264 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17265echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17266if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17267 echo $ECHO_N "(cached) $ECHO_C" >&6 17268else 17269 ac_check_lib_save_LIBS=$LIBS 17270LIBS="-ldl $LIBS" 17271cat >conftest.$ac_ext <<_ACEOF 17272/* confdefs.h. */ 17273_ACEOF 17274cat confdefs.h >>conftest.$ac_ext 17275cat >>conftest.$ac_ext <<_ACEOF 17276/* end confdefs.h. */ 17277 17278/* Override any gcc2 internal prototype to avoid an error. */ 17279#ifdef __cplusplus 17280extern "C" 17281#endif 17282/* We use char because int might match the return type of a gcc2 17283 builtin and then its argument prototype would still apply. */ 17284char dlopen (); 17285int 17286main () 17287{ 17288dlopen (); 17289 ; 17290 return 0; 17291} 17292_ACEOF 17293rm -f conftest.$ac_objext conftest$ac_exeext 17294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17295 (eval $ac_link) 2>conftest.er1 17296 ac_status=$? 17297 grep -v '^ *+' conftest.er1 >conftest.err 17298 rm -f conftest.er1 17299 cat conftest.err >&5 17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17301 (exit $ac_status); } && 17302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17304 (eval $ac_try) 2>&5 17305 ac_status=$? 17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17307 (exit $ac_status); }; } && 17308 { ac_try='test -s conftest$ac_exeext' 17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17310 (eval $ac_try) 2>&5 17311 ac_status=$? 17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17313 (exit $ac_status); }; }; then 17314 ac_cv_lib_dl_dlopen=yes 17315else 17316 echo "$as_me: failed program was:" >&5 17317sed 's/^/| /' conftest.$ac_ext >&5 17318 17319ac_cv_lib_dl_dlopen=no 17320fi 17321rm -f conftest.err conftest.$ac_objext \ 17322 conftest$ac_exeext conftest.$ac_ext 17323LIBS=$ac_check_lib_save_LIBS 17324fi 17325echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17326echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17327if test $ac_cv_lib_dl_dlopen = yes; then 17328 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17329else 17330 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 17331echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 17332if test "${ac_cv_lib_svld_dlopen+set}" = set; then 17333 echo $ECHO_N "(cached) $ECHO_C" >&6 17334else 17335 ac_check_lib_save_LIBS=$LIBS 17336LIBS="-lsvld $LIBS" 17337cat >conftest.$ac_ext <<_ACEOF 17338/* confdefs.h. */ 17339_ACEOF 17340cat confdefs.h >>conftest.$ac_ext 17341cat >>conftest.$ac_ext <<_ACEOF 17342/* end confdefs.h. */ 17343 17344/* Override any gcc2 internal prototype to avoid an error. */ 17345#ifdef __cplusplus 17346extern "C" 17347#endif 17348/* We use char because int might match the return type of a gcc2 17349 builtin and then its argument prototype would still apply. */ 17350char dlopen (); 17351int 17352main () 17353{ 17354dlopen (); 17355 ; 17356 return 0; 17357} 17358_ACEOF 17359rm -f conftest.$ac_objext conftest$ac_exeext 17360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17361 (eval $ac_link) 2>conftest.er1 17362 ac_status=$? 17363 grep -v '^ *+' conftest.er1 >conftest.err 17364 rm -f conftest.er1 17365 cat conftest.err >&5 17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17367 (exit $ac_status); } && 17368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17370 (eval $ac_try) 2>&5 17371 ac_status=$? 17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17373 (exit $ac_status); }; } && 17374 { ac_try='test -s conftest$ac_exeext' 17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17376 (eval $ac_try) 2>&5 17377 ac_status=$? 17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17379 (exit $ac_status); }; }; then 17380 ac_cv_lib_svld_dlopen=yes 17381else 17382 echo "$as_me: failed program was:" >&5 17383sed 's/^/| /' conftest.$ac_ext >&5 17384 17385ac_cv_lib_svld_dlopen=no 17386fi 17387rm -f conftest.err conftest.$ac_objext \ 17388 conftest$ac_exeext conftest.$ac_ext 17389LIBS=$ac_check_lib_save_LIBS 17390fi 17391echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 17392echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 17393if test $ac_cv_lib_svld_dlopen = yes; then 17394 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17395else 17396 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 17397echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 17398if test "${ac_cv_lib_dld_dld_link+set}" = set; then 17399 echo $ECHO_N "(cached) $ECHO_C" >&6 17400else 17401 ac_check_lib_save_LIBS=$LIBS 17402LIBS="-ldld $LIBS" 17403cat >conftest.$ac_ext <<_ACEOF 17404/* confdefs.h. */ 17405_ACEOF 17406cat confdefs.h >>conftest.$ac_ext 17407cat >>conftest.$ac_ext <<_ACEOF 17408/* end confdefs.h. */ 17409 17410/* Override any gcc2 internal prototype to avoid an error. */ 17411#ifdef __cplusplus 17412extern "C" 17413#endif 17414/* We use char because int might match the return type of a gcc2 17415 builtin and then its argument prototype would still apply. */ 17416char dld_link (); 17417int 17418main () 17419{ 17420dld_link (); 17421 ; 17422 return 0; 17423} 17424_ACEOF 17425rm -f conftest.$ac_objext conftest$ac_exeext 17426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17427 (eval $ac_link) 2>conftest.er1 17428 ac_status=$? 17429 grep -v '^ *+' conftest.er1 >conftest.err 17430 rm -f conftest.er1 17431 cat conftest.err >&5 17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17433 (exit $ac_status); } && 17434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17436 (eval $ac_try) 2>&5 17437 ac_status=$? 17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17439 (exit $ac_status); }; } && 17440 { ac_try='test -s conftest$ac_exeext' 17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17442 (eval $ac_try) 2>&5 17443 ac_status=$? 17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17445 (exit $ac_status); }; }; then 17446 ac_cv_lib_dld_dld_link=yes 17447else 17448 echo "$as_me: failed program was:" >&5 17449sed 's/^/| /' conftest.$ac_ext >&5 17450 17451ac_cv_lib_dld_dld_link=no 17452fi 17453rm -f conftest.err conftest.$ac_objext \ 17454 conftest$ac_exeext conftest.$ac_ext 17455LIBS=$ac_check_lib_save_LIBS 17456fi 17457echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 17458echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 17459if test $ac_cv_lib_dld_dld_link = yes; then 17460 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 17461fi 17462 17463 17464fi 17465 17466 17467fi 17468 17469 17470fi 17471 17472 17473fi 17474 17475 17476fi 17477 17478 ;; 17479 esac 17480 17481 if test "x$lt_cv_dlopen" != xno; then 17482 enable_dlopen=yes 17483 else 17484 enable_dlopen=no 17485 fi 17486 17487 case $lt_cv_dlopen in 17488 dlopen) 17489 save_CPPFLAGS="$CPPFLAGS" 17490 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17491 17492 save_LDFLAGS="$LDFLAGS" 17493 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17494 17495 save_LIBS="$LIBS" 17496 LIBS="$lt_cv_dlopen_libs $LIBS" 17497 17498 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 17499echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 17500if test "${lt_cv_dlopen_self+set}" = set; then 17501 echo $ECHO_N "(cached) $ECHO_C" >&6 17502else 17503 if test "$cross_compiling" = yes; then : 17504 lt_cv_dlopen_self=cross 17505else 17506 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17507 lt_status=$lt_dlunknown 17508 cat > conftest.$ac_ext <<EOF 17509#line 17509 "configure" 17510#include "confdefs.h" 17511 17512#if HAVE_DLFCN_H 17513#include <dlfcn.h> 17514#endif 17515 17516#include <stdio.h> 17517 17518#ifdef RTLD_GLOBAL 17519# define LT_DLGLOBAL RTLD_GLOBAL 17520#else 17521# ifdef DL_GLOBAL 17522# define LT_DLGLOBAL DL_GLOBAL 17523# else 17524# define LT_DLGLOBAL 0 17525# endif 17526#endif 17527 17528/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17529 find out it does not work in some platform. */ 17530#ifndef LT_DLLAZY_OR_NOW 17531# ifdef RTLD_LAZY 17532# define LT_DLLAZY_OR_NOW RTLD_LAZY 17533# else 17534# ifdef DL_LAZY 17535# define LT_DLLAZY_OR_NOW DL_LAZY 17536# else 17537# ifdef RTLD_NOW 17538# define LT_DLLAZY_OR_NOW RTLD_NOW 17539# else 17540# ifdef DL_NOW 17541# define LT_DLLAZY_OR_NOW DL_NOW 17542# else 17543# define LT_DLLAZY_OR_NOW 0 17544# endif 17545# endif 17546# endif 17547# endif 17548#endif 17549 17550#ifdef __cplusplus 17551extern "C" void exit (int); 17552#endif 17553 17554void fnord() { int i=42;} 17555int main () 17556{ 17557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17558 int status = $lt_dlunknown; 17559 17560 if (self) 17561 { 17562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17563 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17564 /* dlclose (self); */ 17565 } 17566 17567 exit (status); 17568} 17569EOF 17570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17571 (eval $ac_link) 2>&5 17572 ac_status=$? 17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17574 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17575 (./conftest; exit; ) 2>/dev/null 17576 lt_status=$? 17577 case x$lt_status in 17578 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17579 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17580 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 17581 esac 17582 else : 17583 # compilation failed 17584 lt_cv_dlopen_self=no 17585 fi 17586fi 17587rm -fr conftest* 17588 17589 17590fi 17591echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 17592echo "${ECHO_T}$lt_cv_dlopen_self" >&6 17593 17594 if test "x$lt_cv_dlopen_self" = xyes; then 17595 LDFLAGS="$LDFLAGS $link_static_flag" 17596 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 17597echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 17598if test "${lt_cv_dlopen_self_static+set}" = set; then 17599 echo $ECHO_N "(cached) $ECHO_C" >&6 17600else 17601 if test "$cross_compiling" = yes; then : 17602 lt_cv_dlopen_self_static=cross 17603else 17604 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17605 lt_status=$lt_dlunknown 17606 cat > conftest.$ac_ext <<EOF 17607#line 17607 "configure" 17608#include "confdefs.h" 17609 17610#if HAVE_DLFCN_H 17611#include <dlfcn.h> 17612#endif 17613 17614#include <stdio.h> 17615 17616#ifdef RTLD_GLOBAL 17617# define LT_DLGLOBAL RTLD_GLOBAL 17618#else 17619# ifdef DL_GLOBAL 17620# define LT_DLGLOBAL DL_GLOBAL 17621# else 17622# define LT_DLGLOBAL 0 17623# endif 17624#endif 17625 17626/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17627 find out it does not work in some platform. */ 17628#ifndef LT_DLLAZY_OR_NOW 17629# ifdef RTLD_LAZY 17630# define LT_DLLAZY_OR_NOW RTLD_LAZY 17631# else 17632# ifdef DL_LAZY 17633# define LT_DLLAZY_OR_NOW DL_LAZY 17634# else 17635# ifdef RTLD_NOW 17636# define LT_DLLAZY_OR_NOW RTLD_NOW 17637# else 17638# ifdef DL_NOW 17639# define LT_DLLAZY_OR_NOW DL_NOW 17640# else 17641# define LT_DLLAZY_OR_NOW 0 17642# endif 17643# endif 17644# endif 17645# endif 17646#endif 17647 17648#ifdef __cplusplus 17649extern "C" void exit (int); 17650#endif 17651 17652void fnord() { int i=42;} 17653int main () 17654{ 17655 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17656 int status = $lt_dlunknown; 17657 17658 if (self) 17659 { 17660 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17661 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17662 /* dlclose (self); */ 17663 } 17664 17665 exit (status); 17666} 17667EOF 17668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17669 (eval $ac_link) 2>&5 17670 ac_status=$? 17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17672 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17673 (./conftest; exit; ) 2>/dev/null 17674 lt_status=$? 17675 case x$lt_status in 17676 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17677 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17678 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 17679 esac 17680 else : 17681 # compilation failed 17682 lt_cv_dlopen_self_static=no 17683 fi 17684fi 17685rm -fr conftest* 17686 17687 17688fi 17689echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 17690echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 17691 fi 17692 17693 CPPFLAGS="$save_CPPFLAGS" 17694 LDFLAGS="$save_LDFLAGS" 17695 LIBS="$save_LIBS" 17696 ;; 17697 esac 17698 17699 case $lt_cv_dlopen_self in 17700 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17701 *) enable_dlopen_self=unknown ;; 17702 esac 17703 17704 case $lt_cv_dlopen_self_static in 17705 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17706 *) enable_dlopen_self_static=unknown ;; 17707 esac 17708fi 17709 17710 17711# The else clause should only fire when bootstrapping the 17712# libtool distribution, otherwise you forgot to ship ltmain.sh 17713# with your package, and you will get complaints that there are 17714# no rules to generate ltmain.sh. 17715if test -f "$ltmain"; then 17716 # See if we are running on zsh, and set the options which allow our commands through 17717 # without removal of \ escapes. 17718 if test -n "${ZSH_VERSION+set}" ; then 17719 setopt NO_GLOB_SUBST 17720 fi 17721 # Now quote all the things that may contain metacharacters while being 17722 # careful not to overquote the AC_SUBSTed values. We take copies of the 17723 # variables and quote the copies for generation of the libtool script. 17724 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 17725 SED SHELL STRIP \ 17726 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17727 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17728 deplibs_check_method reload_flag reload_cmds need_locks \ 17729 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17730 lt_cv_sys_global_symbol_to_c_name_address \ 17731 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17732 old_postinstall_cmds old_postuninstall_cmds \ 17733 compiler_GCJ \ 17734 CC_GCJ \ 17735 LD_GCJ \ 17736 lt_prog_compiler_wl_GCJ \ 17737 lt_prog_compiler_pic_GCJ \ 17738 lt_prog_compiler_static_GCJ \ 17739 lt_prog_compiler_no_builtin_flag_GCJ \ 17740 export_dynamic_flag_spec_GCJ \ 17741 thread_safe_flag_spec_GCJ \ 17742 whole_archive_flag_spec_GCJ \ 17743 enable_shared_with_static_runtimes_GCJ \ 17744 old_archive_cmds_GCJ \ 17745 old_archive_from_new_cmds_GCJ \ 17746 predep_objects_GCJ \ 17747 postdep_objects_GCJ \ 17748 predeps_GCJ \ 17749 postdeps_GCJ \ 17750 compiler_lib_search_path_GCJ \ 17751 archive_cmds_GCJ \ 17752 archive_expsym_cmds_GCJ \ 17753 postinstall_cmds_GCJ \ 17754 postuninstall_cmds_GCJ \ 17755 old_archive_from_expsyms_cmds_GCJ \ 17756 allow_undefined_flag_GCJ \ 17757 no_undefined_flag_GCJ \ 17758 export_symbols_cmds_GCJ \ 17759 hardcode_libdir_flag_spec_GCJ \ 17760 hardcode_libdir_flag_spec_ld_GCJ \ 17761 hardcode_libdir_separator_GCJ \ 17762 hardcode_automatic_GCJ \ 17763 module_cmds_GCJ \ 17764 module_expsym_cmds_GCJ \ 17765 lt_cv_prog_compiler_c_o_GCJ \ 17766 exclude_expsyms_GCJ \ 17767 include_expsyms_GCJ; do 17768 17769 case $var in 17770 old_archive_cmds_GCJ | \ 17771 old_archive_from_new_cmds_GCJ | \ 17772 archive_cmds_GCJ | \ 17773 archive_expsym_cmds_GCJ | \ 17774 module_cmds_GCJ | \ 17775 module_expsym_cmds_GCJ | \ 17776 old_archive_from_expsyms_cmds_GCJ | \ 17777 export_symbols_cmds_GCJ | \ 17778 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17779 postinstall_cmds | postuninstall_cmds | \ 17780 old_postinstall_cmds | old_postuninstall_cmds | \ 17781 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17782 # Double-quote double-evaled strings. 17783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17784 ;; 17785 *) 17786 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17787 ;; 17788 esac 17789 done 17790 17791 case $lt_echo in 17792 *'\$0 --fallback-echo"') 17793 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17794 ;; 17795 esac 17796 17797cfgfile="$ofile" 17798 17799 cat <<__EOF__ >> "$cfgfile" 17800# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17801 17802# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17803 17804# Shell to use when invoking shell scripts. 17805SHELL=$lt_SHELL 17806 17807# Whether or not to build shared libraries. 17808build_libtool_libs=$enable_shared 17809 17810# Whether or not to build static libraries. 17811build_old_libs=$enable_static 17812 17813# Whether or not to add -lc for building shared libraries. 17814build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17815 17816# Whether or not to disallow shared libs when runtime libs are static 17817allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17818 17819# Whether or not to optimize for fast installation. 17820fast_install=$enable_fast_install 17821 17822# The host system. 17823host_alias=$host_alias 17824host=$host 17825 17826# An echo program that does not interpret backslashes. 17827echo=$lt_echo 17828 17829# The archiver. 17830AR=$lt_AR 17831AR_FLAGS=$lt_AR_FLAGS 17832 17833# A C compiler. 17834LTCC=$lt_LTCC 17835 17836# A language-specific compiler. 17837CC=$lt_compiler_GCJ 17838 17839# Is the compiler the GNU C compiler? 17840with_gcc=$GCC_GCJ 17841 17842# An ERE matcher. 17843EGREP=$lt_EGREP 17844 17845# The linker used to build libraries. 17846LD=$lt_LD_GCJ 17847 17848# Whether we need hard or soft links. 17849LN_S=$lt_LN_S 17850 17851# A BSD-compatible nm program. 17852NM=$lt_NM 17853 17854# A symbol stripping program 17855STRIP=$lt_STRIP 17856 17857# Used to examine libraries when file_magic_cmd begins "file" 17858MAGIC_CMD=$MAGIC_CMD 17859 17860# Used on cygwin: DLL creation program. 17861DLLTOOL="$DLLTOOL" 17862 17863# Used on cygwin: object dumper. 17864OBJDUMP="$OBJDUMP" 17865 17866# Used on cygwin: assembler. 17867AS="$AS" 17868 17869# The name of the directory that contains temporary libtool files. 17870objdir=$objdir 17871 17872# How to create reloadable object files. 17873reload_flag=$lt_reload_flag 17874reload_cmds=$lt_reload_cmds 17875 17876# How to pass a linker flag through the compiler. 17877wl=$lt_lt_prog_compiler_wl_GCJ 17878 17879# Object file suffix (normally "o"). 17880objext="$ac_objext" 17881 17882# Old archive suffix (normally "a"). 17883libext="$libext" 17884 17885# Shared library suffix (normally ".so"). 17886shrext_cmds='$shrext_cmds' 17887 17888# Executable file suffix (normally ""). 17889exeext="$exeext" 17890 17891# Additional compiler flags for building library objects. 17892pic_flag=$lt_lt_prog_compiler_pic_GCJ 17893pic_mode=$pic_mode 17894 17895# What is the maximum length of a command? 17896max_cmd_len=$lt_cv_sys_max_cmd_len 17897 17898# Does compiler simultaneously support -c and -o options? 17899compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17900 17901# Must we lock files when doing compilation ? 17902need_locks=$lt_need_locks 17903 17904# Do we need the lib prefix for modules? 17905need_lib_prefix=$need_lib_prefix 17906 17907# Do we need a version for libraries? 17908need_version=$need_version 17909 17910# Whether dlopen is supported. 17911dlopen_support=$enable_dlopen 17912 17913# Whether dlopen of programs is supported. 17914dlopen_self=$enable_dlopen_self 17915 17916# Whether dlopen of statically linked programs is supported. 17917dlopen_self_static=$enable_dlopen_self_static 17918 17919# Compiler flag to prevent dynamic linking. 17920link_static_flag=$lt_lt_prog_compiler_static_GCJ 17921 17922# Compiler flag to turn off builtin functions. 17923no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17924 17925# Compiler flag to allow reflexive dlopens. 17926export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17927 17928# Compiler flag to generate shared objects directly from archives. 17929whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17930 17931# Compiler flag to generate thread-safe objects. 17932thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17933 17934# Library versioning type. 17935version_type=$version_type 17936 17937# Format of library name prefix. 17938libname_spec=$lt_libname_spec 17939 17940# List of archive names. First name is the real one, the rest are links. 17941# The last name is the one that the linker finds with -lNAME. 17942library_names_spec=$lt_library_names_spec 17943 17944# The coded name of the library, if different from the real name. 17945soname_spec=$lt_soname_spec 17946 17947# Commands used to build and install an old-style archive. 17948RANLIB=$lt_RANLIB 17949old_archive_cmds=$lt_old_archive_cmds_GCJ 17950old_postinstall_cmds=$lt_old_postinstall_cmds 17951old_postuninstall_cmds=$lt_old_postuninstall_cmds 17952 17953# Create an old-style archive from a shared archive. 17954old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17955 17956# Create a temporary old-style archive to link instead of a shared archive. 17957old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17958 17959# Commands used to build and install a shared archive. 17960archive_cmds=$lt_archive_cmds_GCJ 17961archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17962postinstall_cmds=$lt_postinstall_cmds 17963postuninstall_cmds=$lt_postuninstall_cmds 17964 17965# Commands used to build a loadable module (assumed same as above if empty) 17966module_cmds=$lt_module_cmds_GCJ 17967module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17968 17969# Commands to strip libraries. 17970old_striplib=$lt_old_striplib 17971striplib=$lt_striplib 17972 17973# Dependencies to place before the objects being linked to create a 17974# shared library. 17975predep_objects=$lt_predep_objects_GCJ 17976 17977# Dependencies to place after the objects being linked to create a 17978# shared library. 17979postdep_objects=$lt_postdep_objects_GCJ 17980 17981# Dependencies to place before the objects being linked to create a 17982# shared library. 17983predeps=$lt_predeps_GCJ 17984 17985# Dependencies to place after the objects being linked to create a 17986# shared library. 17987postdeps=$lt_postdeps_GCJ 17988 17989# The library search path used internally by the compiler when linking 17990# a shared library. 17991compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17992 17993# Method to check whether dependent libraries are shared objects. 17994deplibs_check_method=$lt_deplibs_check_method 17995 17996# Command to use when deplibs_check_method == file_magic. 17997file_magic_cmd=$lt_file_magic_cmd 17998 17999# Flag that allows shared libraries with undefined symbols to be built. 18000allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18001 18002# Flag that forces no undefined symbols. 18003no_undefined_flag=$lt_no_undefined_flag_GCJ 18004 18005# Commands used to finish a libtool library installation in a directory. 18006finish_cmds=$lt_finish_cmds 18007 18008# Same as above, but a single script fragment to be evaled but not shown. 18009finish_eval=$lt_finish_eval 18010 18011# Take the output of nm and produce a listing of raw symbols and C names. 18012global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18013 18014# Transform the output of nm in a proper C declaration 18015global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18016 18017# Transform the output of nm in a C name address pair 18018global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18019 18020# This is the shared library runtime path variable. 18021runpath_var=$runpath_var 18022 18023# This is the shared library path variable. 18024shlibpath_var=$shlibpath_var 18025 18026# Is shlibpath searched before the hard-coded library search path? 18027shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18028 18029# How to hardcode a shared library path into an executable. 18030hardcode_action=$hardcode_action_GCJ 18031 18032# Whether we should hardcode library paths into libraries. 18033hardcode_into_libs=$hardcode_into_libs 18034 18035# Flag to hardcode \$libdir into a binary during linking. 18036# This must work even if \$libdir does not exist. 18037hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18038 18039# If ld is used when linking, flag to hardcode \$libdir into 18040# a binary during linking. This must work even if \$libdir does 18041# not exist. 18042hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18043 18044# Whether we need a single -rpath flag with a separated argument. 18045hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18046 18047# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18048# resulting binary. 18049hardcode_direct=$hardcode_direct_GCJ 18050 18051# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18052# resulting binary. 18053hardcode_minus_L=$hardcode_minus_L_GCJ 18054 18055# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18056# the resulting binary. 18057hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18058 18059# Set to yes if building a shared library automatically hardcodes DIR into the library 18060# and all subsequent libraries and executables linked against it. 18061hardcode_automatic=$hardcode_automatic_GCJ 18062 18063# Variables whose values should be saved in libtool wrapper scripts and 18064# restored at relink time. 18065variables_saved_for_relink="$variables_saved_for_relink" 18066 18067# Whether libtool must link a program against all its dependency libraries. 18068link_all_deplibs=$link_all_deplibs_GCJ 18069 18070# Compile-time system search path for libraries 18071sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18072 18073# Run-time system search path for libraries 18074sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18075 18076# Fix the shell variable \$srcfile for the compiler. 18077fix_srcfile_path="$fix_srcfile_path_GCJ" 18078 18079# Set to yes if exported symbols are required. 18080always_export_symbols=$always_export_symbols_GCJ 18081 18082# The commands to list exported symbols. 18083export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18084 18085# The commands to extract the exported symbol list from a shared archive. 18086extract_expsyms_cmds=$lt_extract_expsyms_cmds 18087 18088# Symbols that should not be listed in the preloaded symbols. 18089exclude_expsyms=$lt_exclude_expsyms_GCJ 18090 18091# Symbols that must always be exported. 18092include_expsyms=$lt_include_expsyms_GCJ 18093 18094# ### END LIBTOOL TAG CONFIG: $tagname 18095 18096__EOF__ 18097 18098 18099else 18100 # If there is no Makefile yet, we rely on a make rule to execute 18101 # `config.status --recheck' to rerun these tests and create the 18102 # libtool script then. 18103 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18104 if test -f "$ltmain_in"; then 18105 test -f Makefile && make "$ltmain" 18106 fi 18107fi 18108 18109 18110ac_ext=c 18111ac_cpp='$CPP $CPPFLAGS' 18112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18114ac_compiler_gnu=$ac_cv_c_compiler_gnu 18115 18116CC="$lt_save_CC" 18117 18118 else 18119 tagname="" 18120 fi 18121 ;; 18122 18123 RC) 18124 18125 18126 18127# Source file extension for RC test sources. 18128ac_ext=rc 18129 18130# Object file extension for compiled RC test sources. 18131objext=o 18132objext_RC=$objext 18133 18134# Code to be used in simple compile tests 18135lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18136 18137# Code to be used in simple link tests 18138lt_simple_link_test_code="$lt_simple_compile_test_code" 18139 18140# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18141 18142# If no C compiler was specified, use CC. 18143LTCC=${LTCC-"$CC"} 18144 18145# Allow CC to be a program name with arguments. 18146compiler=$CC 18147 18148 18149# Allow CC to be a program name with arguments. 18150lt_save_CC="$CC" 18151CC=${RC-"windres"} 18152compiler=$CC 18153compiler_RC=$CC 18154lt_cv_prog_compiler_c_o_RC=yes 18155 18156# The else clause should only fire when bootstrapping the 18157# libtool distribution, otherwise you forgot to ship ltmain.sh 18158# with your package, and you will get complaints that there are 18159# no rules to generate ltmain.sh. 18160if test -f "$ltmain"; then 18161 # See if we are running on zsh, and set the options which allow our commands through 18162 # without removal of \ escapes. 18163 if test -n "${ZSH_VERSION+set}" ; then 18164 setopt NO_GLOB_SUBST 18165 fi 18166 # Now quote all the things that may contain metacharacters while being 18167 # careful not to overquote the AC_SUBSTed values. We take copies of the 18168 # variables and quote the copies for generation of the libtool script. 18169 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18170 SED SHELL STRIP \ 18171 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18172 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18173 deplibs_check_method reload_flag reload_cmds need_locks \ 18174 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18175 lt_cv_sys_global_symbol_to_c_name_address \ 18176 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18177 old_postinstall_cmds old_postuninstall_cmds \ 18178 compiler_RC \ 18179 CC_RC \ 18180 LD_RC \ 18181 lt_prog_compiler_wl_RC \ 18182 lt_prog_compiler_pic_RC \ 18183 lt_prog_compiler_static_RC \ 18184 lt_prog_compiler_no_builtin_flag_RC \ 18185 export_dynamic_flag_spec_RC \ 18186 thread_safe_flag_spec_RC \ 18187 whole_archive_flag_spec_RC \ 18188 enable_shared_with_static_runtimes_RC \ 18189 old_archive_cmds_RC \ 18190 old_archive_from_new_cmds_RC \ 18191 predep_objects_RC \ 18192 postdep_objects_RC \ 18193 predeps_RC \ 18194 postdeps_RC \ 18195 compiler_lib_search_path_RC \ 18196 archive_cmds_RC \ 18197 archive_expsym_cmds_RC \ 18198 postinstall_cmds_RC \ 18199 postuninstall_cmds_RC \ 18200 old_archive_from_expsyms_cmds_RC \ 18201 allow_undefined_flag_RC \ 18202 no_undefined_flag_RC \ 18203 export_symbols_cmds_RC \ 18204 hardcode_libdir_flag_spec_RC \ 18205 hardcode_libdir_flag_spec_ld_RC \ 18206 hardcode_libdir_separator_RC \ 18207 hardcode_automatic_RC \ 18208 module_cmds_RC \ 18209 module_expsym_cmds_RC \ 18210 lt_cv_prog_compiler_c_o_RC \ 18211 exclude_expsyms_RC \ 18212 include_expsyms_RC; do 18213 18214 case $var in 18215 old_archive_cmds_RC | \ 18216 old_archive_from_new_cmds_RC | \ 18217 archive_cmds_RC | \ 18218 archive_expsym_cmds_RC | \ 18219 module_cmds_RC | \ 18220 module_expsym_cmds_RC | \ 18221 old_archive_from_expsyms_cmds_RC | \ 18222 export_symbols_cmds_RC | \ 18223 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18224 postinstall_cmds | postuninstall_cmds | \ 18225 old_postinstall_cmds | old_postuninstall_cmds | \ 18226 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18227 # Double-quote double-evaled strings. 18228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18229 ;; 18230 *) 18231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18232 ;; 18233 esac 18234 done 18235 18236 case $lt_echo in 18237 *'\$0 --fallback-echo"') 18238 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18239 ;; 18240 esac 18241 18242cfgfile="$ofile" 18243 18244 cat <<__EOF__ >> "$cfgfile" 18245# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18246 18247# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18248 18249# Shell to use when invoking shell scripts. 18250SHELL=$lt_SHELL 18251 18252# Whether or not to build shared libraries. 18253build_libtool_libs=$enable_shared 18254 18255# Whether or not to build static libraries. 18256build_old_libs=$enable_static 18257 18258# Whether or not to add -lc for building shared libraries. 18259build_libtool_need_lc=$archive_cmds_need_lc_RC 18260 18261# Whether or not to disallow shared libs when runtime libs are static 18262allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18263 18264# Whether or not to optimize for fast installation. 18265fast_install=$enable_fast_install 18266 18267# The host system. 18268host_alias=$host_alias 18269host=$host 18270 18271# An echo program that does not interpret backslashes. 18272echo=$lt_echo 18273 18274# The archiver. 18275AR=$lt_AR 18276AR_FLAGS=$lt_AR_FLAGS 18277 18278# A C compiler. 18279LTCC=$lt_LTCC 18280 18281# A language-specific compiler. 18282CC=$lt_compiler_RC 18283 18284# Is the compiler the GNU C compiler? 18285with_gcc=$GCC_RC 18286 18287# An ERE matcher. 18288EGREP=$lt_EGREP 18289 18290# The linker used to build libraries. 18291LD=$lt_LD_RC 18292 18293# Whether we need hard or soft links. 18294LN_S=$lt_LN_S 18295 18296# A BSD-compatible nm program. 18297NM=$lt_NM 18298 18299# A symbol stripping program 18300STRIP=$lt_STRIP 18301 18302# Used to examine libraries when file_magic_cmd begins "file" 18303MAGIC_CMD=$MAGIC_CMD 18304 18305# Used on cygwin: DLL creation program. 18306DLLTOOL="$DLLTOOL" 18307 18308# Used on cygwin: object dumper. 18309OBJDUMP="$OBJDUMP" 18310 18311# Used on cygwin: assembler. 18312AS="$AS" 18313 18314# The name of the directory that contains temporary libtool files. 18315objdir=$objdir 18316 18317# How to create reloadable object files. 18318reload_flag=$lt_reload_flag 18319reload_cmds=$lt_reload_cmds 18320 18321# How to pass a linker flag through the compiler. 18322wl=$lt_lt_prog_compiler_wl_RC 18323 18324# Object file suffix (normally "o"). 18325objext="$ac_objext" 18326 18327# Old archive suffix (normally "a"). 18328libext="$libext" 18329 18330# Shared library suffix (normally ".so"). 18331shrext_cmds='$shrext_cmds' 18332 18333# Executable file suffix (normally ""). 18334exeext="$exeext" 18335 18336# Additional compiler flags for building library objects. 18337pic_flag=$lt_lt_prog_compiler_pic_RC 18338pic_mode=$pic_mode 18339 18340# What is the maximum length of a command? 18341max_cmd_len=$lt_cv_sys_max_cmd_len 18342 18343# Does compiler simultaneously support -c and -o options? 18344compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18345 18346# Must we lock files when doing compilation ? 18347need_locks=$lt_need_locks 18348 18349# Do we need the lib prefix for modules? 18350need_lib_prefix=$need_lib_prefix 18351 18352# Do we need a version for libraries? 18353need_version=$need_version 18354 18355# Whether dlopen is supported. 18356dlopen_support=$enable_dlopen 18357 18358# Whether dlopen of programs is supported. 18359dlopen_self=$enable_dlopen_self 18360 18361# Whether dlopen of statically linked programs is supported. 18362dlopen_self_static=$enable_dlopen_self_static 18363 18364# Compiler flag to prevent dynamic linking. 18365link_static_flag=$lt_lt_prog_compiler_static_RC 18366 18367# Compiler flag to turn off builtin functions. 18368no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18369 18370# Compiler flag to allow reflexive dlopens. 18371export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18372 18373# Compiler flag to generate shared objects directly from archives. 18374whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18375 18376# Compiler flag to generate thread-safe objects. 18377thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18378 18379# Library versioning type. 18380version_type=$version_type 18381 18382# Format of library name prefix. 18383libname_spec=$lt_libname_spec 18384 18385# List of archive names. First name is the real one, the rest are links. 18386# The last name is the one that the linker finds with -lNAME. 18387library_names_spec=$lt_library_names_spec 18388 18389# The coded name of the library, if different from the real name. 18390soname_spec=$lt_soname_spec 18391 18392# Commands used to build and install an old-style archive. 18393RANLIB=$lt_RANLIB 18394old_archive_cmds=$lt_old_archive_cmds_RC 18395old_postinstall_cmds=$lt_old_postinstall_cmds 18396old_postuninstall_cmds=$lt_old_postuninstall_cmds 18397 18398# Create an old-style archive from a shared archive. 18399old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18400 18401# Create a temporary old-style archive to link instead of a shared archive. 18402old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18403 18404# Commands used to build and install a shared archive. 18405archive_cmds=$lt_archive_cmds_RC 18406archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18407postinstall_cmds=$lt_postinstall_cmds 18408postuninstall_cmds=$lt_postuninstall_cmds 18409 18410# Commands used to build a loadable module (assumed same as above if empty) 18411module_cmds=$lt_module_cmds_RC 18412module_expsym_cmds=$lt_module_expsym_cmds_RC 18413 18414# Commands to strip libraries. 18415old_striplib=$lt_old_striplib 18416striplib=$lt_striplib 18417 18418# Dependencies to place before the objects being linked to create a 18419# shared library. 18420predep_objects=$lt_predep_objects_RC 18421 18422# Dependencies to place after the objects being linked to create a 18423# shared library. 18424postdep_objects=$lt_postdep_objects_RC 18425 18426# Dependencies to place before the objects being linked to create a 18427# shared library. 18428predeps=$lt_predeps_RC 18429 18430# Dependencies to place after the objects being linked to create a 18431# shared library. 18432postdeps=$lt_postdeps_RC 18433 18434# The library search path used internally by the compiler when linking 18435# a shared library. 18436compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18437 18438# Method to check whether dependent libraries are shared objects. 18439deplibs_check_method=$lt_deplibs_check_method 18440 18441# Command to use when deplibs_check_method == file_magic. 18442file_magic_cmd=$lt_file_magic_cmd 18443 18444# Flag that allows shared libraries with undefined symbols to be built. 18445allow_undefined_flag=$lt_allow_undefined_flag_RC 18446 18447# Flag that forces no undefined symbols. 18448no_undefined_flag=$lt_no_undefined_flag_RC 18449 18450# Commands used to finish a libtool library installation in a directory. 18451finish_cmds=$lt_finish_cmds 18452 18453# Same as above, but a single script fragment to be evaled but not shown. 18454finish_eval=$lt_finish_eval 18455 18456# Take the output of nm and produce a listing of raw symbols and C names. 18457global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18458 18459# Transform the output of nm in a proper C declaration 18460global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18461 18462# Transform the output of nm in a C name address pair 18463global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18464 18465# This is the shared library runtime path variable. 18466runpath_var=$runpath_var 18467 18468# This is the shared library path variable. 18469shlibpath_var=$shlibpath_var 18470 18471# Is shlibpath searched before the hard-coded library search path? 18472shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18473 18474# How to hardcode a shared library path into an executable. 18475hardcode_action=$hardcode_action_RC 18476 18477# Whether we should hardcode library paths into libraries. 18478hardcode_into_libs=$hardcode_into_libs 18479 18480# Flag to hardcode \$libdir into a binary during linking. 18481# This must work even if \$libdir does not exist. 18482hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18483 18484# If ld is used when linking, flag to hardcode \$libdir into 18485# a binary during linking. This must work even if \$libdir does 18486# not exist. 18487hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18488 18489# Whether we need a single -rpath flag with a separated argument. 18490hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18491 18492# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18493# resulting binary. 18494hardcode_direct=$hardcode_direct_RC 18495 18496# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18497# resulting binary. 18498hardcode_minus_L=$hardcode_minus_L_RC 18499 18500# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18501# the resulting binary. 18502hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18503 18504# Set to yes if building a shared library automatically hardcodes DIR into the library 18505# and all subsequent libraries and executables linked against it. 18506hardcode_automatic=$hardcode_automatic_RC 18507 18508# Variables whose values should be saved in libtool wrapper scripts and 18509# restored at relink time. 18510variables_saved_for_relink="$variables_saved_for_relink" 18511 18512# Whether libtool must link a program against all its dependency libraries. 18513link_all_deplibs=$link_all_deplibs_RC 18514 18515# Compile-time system search path for libraries 18516sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18517 18518# Run-time system search path for libraries 18519sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18520 18521# Fix the shell variable \$srcfile for the compiler. 18522fix_srcfile_path="$fix_srcfile_path_RC" 18523 18524# Set to yes if exported symbols are required. 18525always_export_symbols=$always_export_symbols_RC 18526 18527# The commands to list exported symbols. 18528export_symbols_cmds=$lt_export_symbols_cmds_RC 18529 18530# The commands to extract the exported symbol list from a shared archive. 18531extract_expsyms_cmds=$lt_extract_expsyms_cmds 18532 18533# Symbols that should not be listed in the preloaded symbols. 18534exclude_expsyms=$lt_exclude_expsyms_RC 18535 18536# Symbols that must always be exported. 18537include_expsyms=$lt_include_expsyms_RC 18538 18539# ### END LIBTOOL TAG CONFIG: $tagname 18540 18541__EOF__ 18542 18543 18544else 18545 # If there is no Makefile yet, we rely on a make rule to execute 18546 # `config.status --recheck' to rerun these tests and create the 18547 # libtool script then. 18548 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18549 if test -f "$ltmain_in"; then 18550 test -f Makefile && make "$ltmain" 18551 fi 18552fi 18553 18554 18555ac_ext=c 18556ac_cpp='$CPP $CPPFLAGS' 18557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18559ac_compiler_gnu=$ac_cv_c_compiler_gnu 18560 18561CC="$lt_save_CC" 18562 18563 ;; 18564 18565 *) 18566 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18567echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18568 { (exit 1); exit 1; }; } 18569 ;; 18570 esac 18571 18572 # Append the new tag name to the list of available tags. 18573 if test -n "$tagname" ; then 18574 available_tags="$available_tags $tagname" 18575 fi 18576 fi 18577 done 18578 IFS="$lt_save_ifs" 18579 18580 # Now substitute the updated list of available tags. 18581 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18582 mv "${ofile}T" "$ofile" 18583 chmod +x "$ofile" 18584 else 18585 rm -f "${ofile}T" 18586 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18587echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18588 { (exit 1); exit 1; }; } 18589 fi 18590fi 18591 18592 18593 18594# This can be used to rebuild libtool when needed 18595LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18596 18597# Always use our own libtool. 18598LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18599 18600# Prevent multiple expansion 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623ac_ext=c 18624ac_cpp='$CPP $CPPFLAGS' 18625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18627ac_compiler_gnu=$ac_cv_c_compiler_gnu 18628if test -n "$ac_tool_prefix"; then 18629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 18630set dummy ${ac_tool_prefix}gcc; ac_word=$2 18631echo "$as_me:$LINENO: checking for $ac_word" >&5 18632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18633if test "${ac_cv_prog_CC+set}" = set; then 18634 echo $ECHO_N "(cached) $ECHO_C" >&6 18635else 18636 if test -n "$CC"; then 18637 ac_cv_prog_CC="$CC" # Let the user override the test. 18638else 18639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18640for as_dir in $PATH 18641do 18642 IFS=$as_save_IFS 18643 test -z "$as_dir" && as_dir=. 18644 for ac_exec_ext in '' $ac_executable_extensions; do 18645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18646 ac_cv_prog_CC="${ac_tool_prefix}gcc" 18647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18648 break 2 18649 fi 18650done 18651done 18652 18653fi 18654fi 18655CC=$ac_cv_prog_CC 18656if test -n "$CC"; then 18657 echo "$as_me:$LINENO: result: $CC" >&5 18658echo "${ECHO_T}$CC" >&6 18659else 18660 echo "$as_me:$LINENO: result: no" >&5 18661echo "${ECHO_T}no" >&6 18662fi 18663 18664fi 18665if test -z "$ac_cv_prog_CC"; then 18666 ac_ct_CC=$CC 18667 # Extract the first word of "gcc", so it can be a program name with args. 18668set dummy gcc; ac_word=$2 18669echo "$as_me:$LINENO: checking for $ac_word" >&5 18670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18671if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18672 echo $ECHO_N "(cached) $ECHO_C" >&6 18673else 18674 if test -n "$ac_ct_CC"; then 18675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18676else 18677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18678for as_dir in $PATH 18679do 18680 IFS=$as_save_IFS 18681 test -z "$as_dir" && as_dir=. 18682 for ac_exec_ext in '' $ac_executable_extensions; do 18683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18684 ac_cv_prog_ac_ct_CC="gcc" 18685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18686 break 2 18687 fi 18688done 18689done 18690 18691fi 18692fi 18693ac_ct_CC=$ac_cv_prog_ac_ct_CC 18694if test -n "$ac_ct_CC"; then 18695 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18696echo "${ECHO_T}$ac_ct_CC" >&6 18697else 18698 echo "$as_me:$LINENO: result: no" >&5 18699echo "${ECHO_T}no" >&6 18700fi 18701 18702 CC=$ac_ct_CC 18703else 18704 CC="$ac_cv_prog_CC" 18705fi 18706 18707if test -z "$CC"; then 18708 if test -n "$ac_tool_prefix"; then 18709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 18710set dummy ${ac_tool_prefix}cc; ac_word=$2 18711echo "$as_me:$LINENO: checking for $ac_word" >&5 18712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18713if test "${ac_cv_prog_CC+set}" = set; then 18714 echo $ECHO_N "(cached) $ECHO_C" >&6 18715else 18716 if test -n "$CC"; then 18717 ac_cv_prog_CC="$CC" # Let the user override the test. 18718else 18719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18720for as_dir in $PATH 18721do 18722 IFS=$as_save_IFS 18723 test -z "$as_dir" && as_dir=. 18724 for ac_exec_ext in '' $ac_executable_extensions; do 18725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18726 ac_cv_prog_CC="${ac_tool_prefix}cc" 18727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18728 break 2 18729 fi 18730done 18731done 18732 18733fi 18734fi 18735CC=$ac_cv_prog_CC 18736if test -n "$CC"; then 18737 echo "$as_me:$LINENO: result: $CC" >&5 18738echo "${ECHO_T}$CC" >&6 18739else 18740 echo "$as_me:$LINENO: result: no" >&5 18741echo "${ECHO_T}no" >&6 18742fi 18743 18744fi 18745if test -z "$ac_cv_prog_CC"; then 18746 ac_ct_CC=$CC 18747 # Extract the first word of "cc", so it can be a program name with args. 18748set dummy cc; ac_word=$2 18749echo "$as_me:$LINENO: checking for $ac_word" >&5 18750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18751if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18752 echo $ECHO_N "(cached) $ECHO_C" >&6 18753else 18754 if test -n "$ac_ct_CC"; then 18755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18756else 18757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18758for as_dir in $PATH 18759do 18760 IFS=$as_save_IFS 18761 test -z "$as_dir" && as_dir=. 18762 for ac_exec_ext in '' $ac_executable_extensions; do 18763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18764 ac_cv_prog_ac_ct_CC="cc" 18765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18766 break 2 18767 fi 18768done 18769done 18770 18771fi 18772fi 18773ac_ct_CC=$ac_cv_prog_ac_ct_CC 18774if test -n "$ac_ct_CC"; then 18775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18776echo "${ECHO_T}$ac_ct_CC" >&6 18777else 18778 echo "$as_me:$LINENO: result: no" >&5 18779echo "${ECHO_T}no" >&6 18780fi 18781 18782 CC=$ac_ct_CC 18783else 18784 CC="$ac_cv_prog_CC" 18785fi 18786 18787fi 18788if test -z "$CC"; then 18789 # Extract the first word of "cc", so it can be a program name with args. 18790set dummy cc; ac_word=$2 18791echo "$as_me:$LINENO: checking for $ac_word" >&5 18792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18793if test "${ac_cv_prog_CC+set}" = set; then 18794 echo $ECHO_N "(cached) $ECHO_C" >&6 18795else 18796 if test -n "$CC"; then 18797 ac_cv_prog_CC="$CC" # Let the user override the test. 18798else 18799 ac_prog_rejected=no 18800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18801for as_dir in $PATH 18802do 18803 IFS=$as_save_IFS 18804 test -z "$as_dir" && as_dir=. 18805 for ac_exec_ext in '' $ac_executable_extensions; do 18806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 18808 ac_prog_rejected=yes 18809 continue 18810 fi 18811 ac_cv_prog_CC="cc" 18812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18813 break 2 18814 fi 18815done 18816done 18817 18818if test $ac_prog_rejected = yes; then 18819 # We found a bogon in the path, so make sure we never use it. 18820 set dummy $ac_cv_prog_CC 18821 shift 18822 if test $# != 0; then 18823 # We chose a different compiler from the bogus one. 18824 # However, it has the same basename, so the bogon will be chosen 18825 # first if we set CC to just the basename; use the full file name. 18826 shift 18827 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 18828 fi 18829fi 18830fi 18831fi 18832CC=$ac_cv_prog_CC 18833if test -n "$CC"; then 18834 echo "$as_me:$LINENO: result: $CC" >&5 18835echo "${ECHO_T}$CC" >&6 18836else 18837 echo "$as_me:$LINENO: result: no" >&5 18838echo "${ECHO_T}no" >&6 18839fi 18840 18841fi 18842if test -z "$CC"; then 18843 if test -n "$ac_tool_prefix"; then 18844 for ac_prog in cl 18845 do 18846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 18847set dummy $ac_tool_prefix$ac_prog; ac_word=$2 18848echo "$as_me:$LINENO: checking for $ac_word" >&5 18849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18850if test "${ac_cv_prog_CC+set}" = set; then 18851 echo $ECHO_N "(cached) $ECHO_C" >&6 18852else 18853 if test -n "$CC"; then 18854 ac_cv_prog_CC="$CC" # Let the user override the test. 18855else 18856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18857for as_dir in $PATH 18858do 18859 IFS=$as_save_IFS 18860 test -z "$as_dir" && as_dir=. 18861 for ac_exec_ext in '' $ac_executable_extensions; do 18862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18863 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 18864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18865 break 2 18866 fi 18867done 18868done 18869 18870fi 18871fi 18872CC=$ac_cv_prog_CC 18873if test -n "$CC"; then 18874 echo "$as_me:$LINENO: result: $CC" >&5 18875echo "${ECHO_T}$CC" >&6 18876else 18877 echo "$as_me:$LINENO: result: no" >&5 18878echo "${ECHO_T}no" >&6 18879fi 18880 18881 test -n "$CC" && break 18882 done 18883fi 18884if test -z "$CC"; then 18885 ac_ct_CC=$CC 18886 for ac_prog in cl 18887do 18888 # Extract the first word of "$ac_prog", so it can be a program name with args. 18889set dummy $ac_prog; ac_word=$2 18890echo "$as_me:$LINENO: checking for $ac_word" >&5 18891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18892if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18893 echo $ECHO_N "(cached) $ECHO_C" >&6 18894else 18895 if test -n "$ac_ct_CC"; then 18896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18897else 18898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18899for as_dir in $PATH 18900do 18901 IFS=$as_save_IFS 18902 test -z "$as_dir" && as_dir=. 18903 for ac_exec_ext in '' $ac_executable_extensions; do 18904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18905 ac_cv_prog_ac_ct_CC="$ac_prog" 18906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18907 break 2 18908 fi 18909done 18910done 18911 18912fi 18913fi 18914ac_ct_CC=$ac_cv_prog_ac_ct_CC 18915if test -n "$ac_ct_CC"; then 18916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18917echo "${ECHO_T}$ac_ct_CC" >&6 18918else 18919 echo "$as_me:$LINENO: result: no" >&5 18920echo "${ECHO_T}no" >&6 18921fi 18922 18923 test -n "$ac_ct_CC" && break 18924done 18925 18926 CC=$ac_ct_CC 18927fi 18928 18929fi 18930 18931 18932test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 18933See \`config.log' for more details." >&5 18934echo "$as_me: error: no acceptable C compiler found in \$PATH 18935See \`config.log' for more details." >&2;} 18936 { (exit 1); exit 1; }; } 18937 18938# Provide some information about the compiler. 18939echo "$as_me:$LINENO:" \ 18940 "checking for C compiler version" >&5 18941ac_compiler=`set X $ac_compile; echo $2` 18942{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 18943 (eval $ac_compiler --version </dev/null >&5) 2>&5 18944 ac_status=$? 18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18946 (exit $ac_status); } 18947{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 18948 (eval $ac_compiler -v </dev/null >&5) 2>&5 18949 ac_status=$? 18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18951 (exit $ac_status); } 18952{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 18953 (eval $ac_compiler -V </dev/null >&5) 2>&5 18954 ac_status=$? 18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18956 (exit $ac_status); } 18957 18958echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 18959echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 18960if test "${ac_cv_c_compiler_gnu+set}" = set; then 18961 echo $ECHO_N "(cached) $ECHO_C" >&6 18962else 18963 cat >conftest.$ac_ext <<_ACEOF 18964/* confdefs.h. */ 18965_ACEOF 18966cat confdefs.h >>conftest.$ac_ext 18967cat >>conftest.$ac_ext <<_ACEOF 18968/* end confdefs.h. */ 18969 18970int 18971main () 18972{ 18973#ifndef __GNUC__ 18974 choke me 18975#endif 18976 18977 ; 18978 return 0; 18979} 18980_ACEOF 18981rm -f conftest.$ac_objext 18982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18983 (eval $ac_compile) 2>conftest.er1 18984 ac_status=$? 18985 grep -v '^ *+' conftest.er1 >conftest.err 18986 rm -f conftest.er1 18987 cat conftest.err >&5 18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18989 (exit $ac_status); } && 18990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18992 (eval $ac_try) 2>&5 18993 ac_status=$? 18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18995 (exit $ac_status); }; } && 18996 { ac_try='test -s conftest.$ac_objext' 18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18998 (eval $ac_try) 2>&5 18999 ac_status=$? 19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19001 (exit $ac_status); }; }; then 19002 ac_compiler_gnu=yes 19003else 19004 echo "$as_me: failed program was:" >&5 19005sed 's/^/| /' conftest.$ac_ext >&5 19006 19007ac_compiler_gnu=no 19008fi 19009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19010ac_cv_c_compiler_gnu=$ac_compiler_gnu 19011 19012fi 19013echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19014echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 19015GCC=`test $ac_compiler_gnu = yes && echo yes` 19016ac_test_CFLAGS=${CFLAGS+set} 19017ac_save_CFLAGS=$CFLAGS 19018CFLAGS="-g" 19019echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19020echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 19021if test "${ac_cv_prog_cc_g+set}" = set; then 19022 echo $ECHO_N "(cached) $ECHO_C" >&6 19023else 19024 cat >conftest.$ac_ext <<_ACEOF 19025/* confdefs.h. */ 19026_ACEOF 19027cat confdefs.h >>conftest.$ac_ext 19028cat >>conftest.$ac_ext <<_ACEOF 19029/* end confdefs.h. */ 19030 19031int 19032main () 19033{ 19034 19035 ; 19036 return 0; 19037} 19038_ACEOF 19039rm -f conftest.$ac_objext 19040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19041 (eval $ac_compile) 2>conftest.er1 19042 ac_status=$? 19043 grep -v '^ *+' conftest.er1 >conftest.err 19044 rm -f conftest.er1 19045 cat conftest.err >&5 19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19047 (exit $ac_status); } && 19048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19050 (eval $ac_try) 2>&5 19051 ac_status=$? 19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19053 (exit $ac_status); }; } && 19054 { ac_try='test -s conftest.$ac_objext' 19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19056 (eval $ac_try) 2>&5 19057 ac_status=$? 19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19059 (exit $ac_status); }; }; then 19060 ac_cv_prog_cc_g=yes 19061else 19062 echo "$as_me: failed program was:" >&5 19063sed 's/^/| /' conftest.$ac_ext >&5 19064 19065ac_cv_prog_cc_g=no 19066fi 19067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19068fi 19069echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19070echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 19071if test "$ac_test_CFLAGS" = set; then 19072 CFLAGS=$ac_save_CFLAGS 19073elif test $ac_cv_prog_cc_g = yes; then 19074 if test "$GCC" = yes; then 19075 CFLAGS="-g -O2" 19076 else 19077 CFLAGS="-g" 19078 fi 19079else 19080 if test "$GCC" = yes; then 19081 CFLAGS="-O2" 19082 else 19083 CFLAGS= 19084 fi 19085fi 19086echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 19087echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 19088if test "${ac_cv_prog_cc_stdc+set}" = set; then 19089 echo $ECHO_N "(cached) $ECHO_C" >&6 19090else 19091 ac_cv_prog_cc_stdc=no 19092ac_save_CC=$CC 19093cat >conftest.$ac_ext <<_ACEOF 19094/* confdefs.h. */ 19095_ACEOF 19096cat confdefs.h >>conftest.$ac_ext 19097cat >>conftest.$ac_ext <<_ACEOF 19098/* end confdefs.h. */ 19099#include <stdarg.h> 19100#include <stdio.h> 19101#include <sys/types.h> 19102#include <sys/stat.h> 19103/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19104struct buf { int x; }; 19105FILE * (*rcsopen) (struct buf *, struct stat *, int); 19106static char *e (p, i) 19107 char **p; 19108 int i; 19109{ 19110 return p[i]; 19111} 19112static char *f (char * (*g) (char **, int), char **p, ...) 19113{ 19114 char *s; 19115 va_list v; 19116 va_start (v,p); 19117 s = g (p, va_arg (v,int)); 19118 va_end (v); 19119 return s; 19120} 19121 19122/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19123 function prototypes and stuff, but not '\xHH' hex character constants. 19124 These don't provoke an error unfortunately, instead are silently treated 19125 as 'x'. The following induces an error, until -std1 is added to get 19126 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19127 array size at least. It's necessary to write '\x00'==0 to get something 19128 that's true only with -std1. */ 19129int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19130 19131int test (int i, double x); 19132struct s1 {int (*f) (int a);}; 19133struct s2 {int (*f) (double a);}; 19134int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19135int argc; 19136char **argv; 19137int 19138main () 19139{ 19140return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19141 ; 19142 return 0; 19143} 19144_ACEOF 19145# Don't try gcc -ansi; that turns off useful extensions and 19146# breaks some systems' header files. 19147# AIX -qlanglvl=ansi 19148# Ultrix and OSF/1 -std1 19149# HP-UX 10.20 and later -Ae 19150# HP-UX older versions -Aa -D_HPUX_SOURCE 19151# SVR4 -Xc -D__EXTENSIONS__ 19152for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19153do 19154 CC="$ac_save_CC $ac_arg" 19155 rm -f conftest.$ac_objext 19156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19157 (eval $ac_compile) 2>conftest.er1 19158 ac_status=$? 19159 grep -v '^ *+' conftest.er1 >conftest.err 19160 rm -f conftest.er1 19161 cat conftest.err >&5 19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19163 (exit $ac_status); } && 19164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19166 (eval $ac_try) 2>&5 19167 ac_status=$? 19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19169 (exit $ac_status); }; } && 19170 { ac_try='test -s conftest.$ac_objext' 19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19172 (eval $ac_try) 2>&5 19173 ac_status=$? 19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19175 (exit $ac_status); }; }; then 19176 ac_cv_prog_cc_stdc=$ac_arg 19177break 19178else 19179 echo "$as_me: failed program was:" >&5 19180sed 's/^/| /' conftest.$ac_ext >&5 19181 19182fi 19183rm -f conftest.err conftest.$ac_objext 19184done 19185rm -f conftest.$ac_ext conftest.$ac_objext 19186CC=$ac_save_CC 19187 19188fi 19189 19190case "x$ac_cv_prog_cc_stdc" in 19191 x|xno) 19192 echo "$as_me:$LINENO: result: none needed" >&5 19193echo "${ECHO_T}none needed" >&6 ;; 19194 *) 19195 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 19196echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 19197 CC="$CC $ac_cv_prog_cc_stdc" ;; 19198esac 19199 19200# Some people use a C++ compiler to compile C. Since we use `exit', 19201# in C++ we need to declare it. In case someone uses the same compiler 19202# for both compiling C and C++ we need to have the C++ compiler decide 19203# the declaration of exit, since it's the most demanding environment. 19204cat >conftest.$ac_ext <<_ACEOF 19205#ifndef __cplusplus 19206 choke me 19207#endif 19208_ACEOF 19209rm -f conftest.$ac_objext 19210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19211 (eval $ac_compile) 2>conftest.er1 19212 ac_status=$? 19213 grep -v '^ *+' conftest.er1 >conftest.err 19214 rm -f conftest.er1 19215 cat conftest.err >&5 19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19217 (exit $ac_status); } && 19218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19220 (eval $ac_try) 2>&5 19221 ac_status=$? 19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19223 (exit $ac_status); }; } && 19224 { ac_try='test -s conftest.$ac_objext' 19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19226 (eval $ac_try) 2>&5 19227 ac_status=$? 19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19229 (exit $ac_status); }; }; then 19230 for ac_declaration in \ 19231 '' \ 19232 'extern "C" void std::exit (int) throw (); using std::exit;' \ 19233 'extern "C" void std::exit (int); using std::exit;' \ 19234 'extern "C" void exit (int) throw ();' \ 19235 'extern "C" void exit (int);' \ 19236 'void exit (int);' 19237do 19238 cat >conftest.$ac_ext <<_ACEOF 19239/* confdefs.h. */ 19240_ACEOF 19241cat confdefs.h >>conftest.$ac_ext 19242cat >>conftest.$ac_ext <<_ACEOF 19243/* end confdefs.h. */ 19244$ac_declaration 19245#include <stdlib.h> 19246int 19247main () 19248{ 19249exit (42); 19250 ; 19251 return 0; 19252} 19253_ACEOF 19254rm -f conftest.$ac_objext 19255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19256 (eval $ac_compile) 2>conftest.er1 19257 ac_status=$? 19258 grep -v '^ *+' conftest.er1 >conftest.err 19259 rm -f conftest.er1 19260 cat conftest.err >&5 19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19262 (exit $ac_status); } && 19263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19265 (eval $ac_try) 2>&5 19266 ac_status=$? 19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19268 (exit $ac_status); }; } && 19269 { ac_try='test -s conftest.$ac_objext' 19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19271 (eval $ac_try) 2>&5 19272 ac_status=$? 19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19274 (exit $ac_status); }; }; then 19275 : 19276else 19277 echo "$as_me: failed program was:" >&5 19278sed 's/^/| /' conftest.$ac_ext >&5 19279 19280continue 19281fi 19282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19283 cat >conftest.$ac_ext <<_ACEOF 19284/* confdefs.h. */ 19285_ACEOF 19286cat confdefs.h >>conftest.$ac_ext 19287cat >>conftest.$ac_ext <<_ACEOF 19288/* end confdefs.h. */ 19289$ac_declaration 19290int 19291main () 19292{ 19293exit (42); 19294 ; 19295 return 0; 19296} 19297_ACEOF 19298rm -f conftest.$ac_objext 19299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19300 (eval $ac_compile) 2>conftest.er1 19301 ac_status=$? 19302 grep -v '^ *+' conftest.er1 >conftest.err 19303 rm -f conftest.er1 19304 cat conftest.err >&5 19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19306 (exit $ac_status); } && 19307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 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); }; } && 19313 { ac_try='test -s conftest.$ac_objext' 19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19315 (eval $ac_try) 2>&5 19316 ac_status=$? 19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19318 (exit $ac_status); }; }; then 19319 break 19320else 19321 echo "$as_me: failed program was:" >&5 19322sed 's/^/| /' conftest.$ac_ext >&5 19323 19324fi 19325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19326done 19327rm -f conftest* 19328if test -n "$ac_declaration"; then 19329 echo '#ifdef __cplusplus' >>confdefs.h 19330 echo $ac_declaration >>confdefs.h 19331 echo '#endif' >>confdefs.h 19332fi 19333 19334else 19335 echo "$as_me: failed program was:" >&5 19336sed 's/^/| /' conftest.$ac_ext >&5 19337 19338fi 19339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19340ac_ext=c 19341ac_cpp='$CPP $CPPFLAGS' 19342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19344ac_compiler_gnu=$ac_cv_c_compiler_gnu 19345 19346if test -n "$ac_tool_prefix"; then 19347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 19348set dummy ${ac_tool_prefix}ranlib; ac_word=$2 19349echo "$as_me:$LINENO: checking for $ac_word" >&5 19350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19351if test "${ac_cv_prog_RANLIB+set}" = set; then 19352 echo $ECHO_N "(cached) $ECHO_C" >&6 19353else 19354 if test -n "$RANLIB"; then 19355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 19356else 19357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19358for as_dir in $PATH 19359do 19360 IFS=$as_save_IFS 19361 test -z "$as_dir" && as_dir=. 19362 for ac_exec_ext in '' $ac_executable_extensions; do 19363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 19365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19366 break 2 19367 fi 19368done 19369done 19370 19371fi 19372fi 19373RANLIB=$ac_cv_prog_RANLIB 19374if test -n "$RANLIB"; then 19375 echo "$as_me:$LINENO: result: $RANLIB" >&5 19376echo "${ECHO_T}$RANLIB" >&6 19377else 19378 echo "$as_me:$LINENO: result: no" >&5 19379echo "${ECHO_T}no" >&6 19380fi 19381 19382fi 19383if test -z "$ac_cv_prog_RANLIB"; then 19384 ac_ct_RANLIB=$RANLIB 19385 # Extract the first word of "ranlib", so it can be a program name with args. 19386set dummy ranlib; ac_word=$2 19387echo "$as_me:$LINENO: checking for $ac_word" >&5 19388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19389if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 19390 echo $ECHO_N "(cached) $ECHO_C" >&6 19391else 19392 if test -n "$ac_ct_RANLIB"; then 19393 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 19394else 19395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19396for as_dir in $PATH 19397do 19398 IFS=$as_save_IFS 19399 test -z "$as_dir" && as_dir=. 19400 for ac_exec_ext in '' $ac_executable_extensions; do 19401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19402 ac_cv_prog_ac_ct_RANLIB="ranlib" 19403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19404 break 2 19405 fi 19406done 19407done 19408 19409 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 19410fi 19411fi 19412ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 19413if test -n "$ac_ct_RANLIB"; then 19414 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 19415echo "${ECHO_T}$ac_ct_RANLIB" >&6 19416else 19417 echo "$as_me:$LINENO: result: no" >&5 19418echo "${ECHO_T}no" >&6 19419fi 19420 19421 RANLIB=$ac_ct_RANLIB 19422else 19423 RANLIB="$ac_cv_prog_RANLIB" 19424fi 19425 19426# Find a good install program. We prefer a C program (faster), 19427# so one script is as good as another. But avoid the broken or 19428# incompatible versions: 19429# SysV /etc/install, /usr/sbin/install 19430# SunOS /usr/etc/install 19431# IRIX /sbin/install 19432# AIX /bin/install 19433# AmigaOS /C/install, which installs bootblocks on floppy discs 19434# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 19435# AFS /usr/afsws/bin/install, which mishandles nonexistent args 19436# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 19437# OS/2's system install, which has a completely different semantic 19438# ./install, which can be erroneously created by make from ./install.sh. 19439echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 19440echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 19441if test -z "$INSTALL"; then 19442if test "${ac_cv_path_install+set}" = set; then 19443 echo $ECHO_N "(cached) $ECHO_C" >&6 19444else 19445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19446for as_dir in $PATH 19447do 19448 IFS=$as_save_IFS 19449 test -z "$as_dir" && as_dir=. 19450 # Account for people who put trailing slashes in PATH elements. 19451case $as_dir/ in 19452 ./ | .// | /cC/* | \ 19453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 19454 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 19455 /usr/ucb/* ) ;; 19456 *) 19457 # OSF1 and SCO ODT 3.0 have their own names for install. 19458 # Don't use installbsd from OSF since it installs stuff as root 19459 # by default. 19460 for ac_prog in ginstall scoinst install; do 19461 for ac_exec_ext in '' $ac_executable_extensions; do 19462 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 19463 if test $ac_prog = install && 19464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19465 # AIX install. It has an incompatible calling convention. 19466 : 19467 elif test $ac_prog = install && 19468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19469 # program-specific install script used by HP pwplus--don't use. 19470 : 19471 else 19472 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 19473 break 3 19474 fi 19475 fi 19476 done 19477 done 19478 ;; 19479esac 19480done 19481 19482 19483fi 19484 if test "${ac_cv_path_install+set}" = set; then 19485 INSTALL=$ac_cv_path_install 19486 else 19487 # As a last resort, use the slow shell script. We don't cache a 19488 # path for INSTALL within a source directory, because that will 19489 # break other packages using the cache if that directory is 19490 # removed, or if the path is relative. 19491 INSTALL=$ac_install_sh 19492 fi 19493fi 19494echo "$as_me:$LINENO: result: $INSTALL" >&5 19495echo "${ECHO_T}$INSTALL" >&6 19496 19497# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 19498# It thinks the first close brace ends the variable substitution. 19499test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 19500 19501test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 19502 19503test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 19504 19505echo "$as_me:$LINENO: checking whether ln -s works" >&5 19506echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 19507LN_S=$as_ln_s 19508if test "$LN_S" = "ln -s"; then 19509 echo "$as_me:$LINENO: result: yes" >&5 19510echo "${ECHO_T}yes" >&6 19511else 19512 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 19513echo "${ECHO_T}no, using $LN_S" >&6 19514fi 19515 19516 19517 19518 19519echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 19520echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 19521if test "${ac_cv_lib_socket_socket+set}" = set; then 19522 echo $ECHO_N "(cached) $ECHO_C" >&6 19523else 19524 ac_check_lib_save_LIBS=$LIBS 19525LIBS="-lsocket $LIBS" 19526cat >conftest.$ac_ext <<_ACEOF 19527/* confdefs.h. */ 19528_ACEOF 19529cat confdefs.h >>conftest.$ac_ext 19530cat >>conftest.$ac_ext <<_ACEOF 19531/* end confdefs.h. */ 19532 19533/* Override any gcc2 internal prototype to avoid an error. */ 19534#ifdef __cplusplus 19535extern "C" 19536#endif 19537/* We use char because int might match the return type of a gcc2 19538 builtin and then its argument prototype would still apply. */ 19539char socket (); 19540int 19541main () 19542{ 19543socket (); 19544 ; 19545 return 0; 19546} 19547_ACEOF 19548rm -f conftest.$ac_objext conftest$ac_exeext 19549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19550 (eval $ac_link) 2>conftest.er1 19551 ac_status=$? 19552 grep -v '^ *+' conftest.er1 >conftest.err 19553 rm -f conftest.er1 19554 cat conftest.err >&5 19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19556 (exit $ac_status); } && 19557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19559 (eval $ac_try) 2>&5 19560 ac_status=$? 19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19562 (exit $ac_status); }; } && 19563 { ac_try='test -s conftest$ac_exeext' 19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19565 (eval $ac_try) 2>&5 19566 ac_status=$? 19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19568 (exit $ac_status); }; }; then 19569 ac_cv_lib_socket_socket=yes 19570else 19571 echo "$as_me: failed program was:" >&5 19572sed 's/^/| /' conftest.$ac_ext >&5 19573 19574ac_cv_lib_socket_socket=no 19575fi 19576rm -f conftest.err conftest.$ac_objext \ 19577 conftest$ac_exeext conftest.$ac_ext 19578LIBS=$ac_check_lib_save_LIBS 19579fi 19580echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 19581echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 19582if test $ac_cv_lib_socket_socket = yes; then 19583 cat >>confdefs.h <<_ACEOF 19584#define HAVE_LIBSOCKET 1 19585_ACEOF 19586 19587 LIBS="-lsocket $LIBS" 19588 19589fi 19590 19591 19592for ac_func in gethostbyname 19593do 19594as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19595echo "$as_me:$LINENO: checking for $ac_func" >&5 19596echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19597if eval "test \"\${$as_ac_var+set}\" = set"; then 19598 echo $ECHO_N "(cached) $ECHO_C" >&6 19599else 19600 cat >conftest.$ac_ext <<_ACEOF 19601/* confdefs.h. */ 19602_ACEOF 19603cat confdefs.h >>conftest.$ac_ext 19604cat >>conftest.$ac_ext <<_ACEOF 19605/* end confdefs.h. */ 19606/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19607 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19608#define $ac_func innocuous_$ac_func 19609 19610/* System header to define __stub macros and hopefully few prototypes, 19611 which can conflict with char $ac_func (); below. 19612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19613 <limits.h> exists even on freestanding compilers. */ 19614 19615#ifdef __STDC__ 19616# include <limits.h> 19617#else 19618# include <assert.h> 19619#endif 19620 19621#undef $ac_func 19622 19623/* Override any gcc2 internal prototype to avoid an error. */ 19624#ifdef __cplusplus 19625extern "C" 19626{ 19627#endif 19628/* We use char because int might match the return type of a gcc2 19629 builtin and then its argument prototype would still apply. */ 19630char $ac_func (); 19631/* The GNU C library defines this for functions which it implements 19632 to always fail with ENOSYS. Some functions are actually named 19633 something starting with __ and the normal name is an alias. */ 19634#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19635choke me 19636#else 19637char (*f) () = $ac_func; 19638#endif 19639#ifdef __cplusplus 19640} 19641#endif 19642 19643int 19644main () 19645{ 19646return f != $ac_func; 19647 ; 19648 return 0; 19649} 19650_ACEOF 19651rm -f conftest.$ac_objext conftest$ac_exeext 19652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19653 (eval $ac_link) 2>conftest.er1 19654 ac_status=$? 19655 grep -v '^ *+' conftest.er1 >conftest.err 19656 rm -f conftest.er1 19657 cat conftest.err >&5 19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19659 (exit $ac_status); } && 19660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19662 (eval $ac_try) 2>&5 19663 ac_status=$? 19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19665 (exit $ac_status); }; } && 19666 { ac_try='test -s conftest$ac_exeext' 19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19668 (eval $ac_try) 2>&5 19669 ac_status=$? 19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19671 (exit $ac_status); }; }; then 19672 eval "$as_ac_var=yes" 19673else 19674 echo "$as_me: failed program was:" >&5 19675sed 's/^/| /' conftest.$ac_ext >&5 19676 19677eval "$as_ac_var=no" 19678fi 19679rm -f conftest.err conftest.$ac_objext \ 19680 conftest$ac_exeext conftest.$ac_ext 19681fi 19682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 19683echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19684if test `eval echo '${'$as_ac_var'}'` = yes; then 19685 cat >>confdefs.h <<_ACEOF 19686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19687_ACEOF 19688 19689else 19690 19691echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 19692echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 19693if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 19694 echo $ECHO_N "(cached) $ECHO_C" >&6 19695else 19696 ac_check_lib_save_LIBS=$LIBS 19697LIBS="-lnsl $LIBS" 19698cat >conftest.$ac_ext <<_ACEOF 19699/* confdefs.h. */ 19700_ACEOF 19701cat confdefs.h >>conftest.$ac_ext 19702cat >>conftest.$ac_ext <<_ACEOF 19703/* end confdefs.h. */ 19704 19705/* Override any gcc2 internal prototype to avoid an error. */ 19706#ifdef __cplusplus 19707extern "C" 19708#endif 19709/* We use char because int might match the return type of a gcc2 19710 builtin and then its argument prototype would still apply. */ 19711char gethostbyname (); 19712int 19713main () 19714{ 19715gethostbyname (); 19716 ; 19717 return 0; 19718} 19719_ACEOF 19720rm -f conftest.$ac_objext conftest$ac_exeext 19721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19722 (eval $ac_link) 2>conftest.er1 19723 ac_status=$? 19724 grep -v '^ *+' conftest.er1 >conftest.err 19725 rm -f conftest.er1 19726 cat conftest.err >&5 19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19728 (exit $ac_status); } && 19729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19731 (eval $ac_try) 2>&5 19732 ac_status=$? 19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19734 (exit $ac_status); }; } && 19735 { ac_try='test -s conftest$ac_exeext' 19736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19737 (eval $ac_try) 2>&5 19738 ac_status=$? 19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19740 (exit $ac_status); }; }; then 19741 ac_cv_lib_nsl_gethostbyname=yes 19742else 19743 echo "$as_me: failed program was:" >&5 19744sed 's/^/| /' conftest.$ac_ext >&5 19745 19746ac_cv_lib_nsl_gethostbyname=no 19747fi 19748rm -f conftest.err conftest.$ac_objext \ 19749 conftest$ac_exeext conftest.$ac_ext 19750LIBS=$ac_check_lib_save_LIBS 19751fi 19752echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 19753echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 19754if test $ac_cv_lib_nsl_gethostbyname = yes; then 19755 cat >>confdefs.h <<_ACEOF 19756#define HAVE_LIBNSL 1 19757_ACEOF 19758 19759 LIBS="-lnsl $LIBS" 19760 19761fi 19762 19763fi 19764done 19765 19766 19767for ac_func in inet_aton 19768do 19769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19770echo "$as_me:$LINENO: checking for $ac_func" >&5 19771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19772if eval "test \"\${$as_ac_var+set}\" = set"; then 19773 echo $ECHO_N "(cached) $ECHO_C" >&6 19774else 19775 cat >conftest.$ac_ext <<_ACEOF 19776/* confdefs.h. */ 19777_ACEOF 19778cat confdefs.h >>conftest.$ac_ext 19779cat >>conftest.$ac_ext <<_ACEOF 19780/* end confdefs.h. */ 19781/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19782 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19783#define $ac_func innocuous_$ac_func 19784 19785/* System header to define __stub macros and hopefully few prototypes, 19786 which can conflict with char $ac_func (); below. 19787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19788 <limits.h> exists even on freestanding compilers. */ 19789 19790#ifdef __STDC__ 19791# include <limits.h> 19792#else 19793# include <assert.h> 19794#endif 19795 19796#undef $ac_func 19797 19798/* Override any gcc2 internal prototype to avoid an error. */ 19799#ifdef __cplusplus 19800extern "C" 19801{ 19802#endif 19803/* We use char because int might match the return type of a gcc2 19804 builtin and then its argument prototype would still apply. */ 19805char $ac_func (); 19806/* The GNU C library defines this for functions which it implements 19807 to always fail with ENOSYS. Some functions are actually named 19808 something starting with __ and the normal name is an alias. */ 19809#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19810choke me 19811#else 19812char (*f) () = $ac_func; 19813#endif 19814#ifdef __cplusplus 19815} 19816#endif 19817 19818int 19819main () 19820{ 19821return f != $ac_func; 19822 ; 19823 return 0; 19824} 19825_ACEOF 19826rm -f conftest.$ac_objext conftest$ac_exeext 19827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19828 (eval $ac_link) 2>conftest.er1 19829 ac_status=$? 19830 grep -v '^ *+' conftest.er1 >conftest.err 19831 rm -f conftest.er1 19832 cat conftest.err >&5 19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19834 (exit $ac_status); } && 19835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19837 (eval $ac_try) 2>&5 19838 ac_status=$? 19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19840 (exit $ac_status); }; } && 19841 { ac_try='test -s conftest$ac_exeext' 19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19843 (eval $ac_try) 2>&5 19844 ac_status=$? 19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19846 (exit $ac_status); }; }; then 19847 eval "$as_ac_var=yes" 19848else 19849 echo "$as_me: failed program was:" >&5 19850sed 's/^/| /' conftest.$ac_ext >&5 19851 19852eval "$as_ac_var=no" 19853fi 19854rm -f conftest.err conftest.$ac_objext \ 19855 conftest$ac_exeext conftest.$ac_ext 19856fi 19857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 19858echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19859if test `eval echo '${'$as_ac_var'}'` = yes; then 19860 cat >>confdefs.h <<_ACEOF 19861#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19862_ACEOF 19863 19864else 19865 19866echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 19867echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 19868if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then 19869 echo $ECHO_N "(cached) $ECHO_C" >&6 19870else 19871 ac_check_lib_save_LIBS=$LIBS 19872LIBS="-lresolv $LIBS" 19873cat >conftest.$ac_ext <<_ACEOF 19874/* confdefs.h. */ 19875_ACEOF 19876cat confdefs.h >>conftest.$ac_ext 19877cat >>conftest.$ac_ext <<_ACEOF 19878/* end confdefs.h. */ 19879 19880/* Override any gcc2 internal prototype to avoid an error. */ 19881#ifdef __cplusplus 19882extern "C" 19883#endif 19884/* We use char because int might match the return type of a gcc2 19885 builtin and then its argument prototype would still apply. */ 19886char inet_aton (); 19887int 19888main () 19889{ 19890inet_aton (); 19891 ; 19892 return 0; 19893} 19894_ACEOF 19895rm -f conftest.$ac_objext conftest$ac_exeext 19896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19897 (eval $ac_link) 2>conftest.er1 19898 ac_status=$? 19899 grep -v '^ *+' conftest.er1 >conftest.err 19900 rm -f conftest.er1 19901 cat conftest.err >&5 19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19903 (exit $ac_status); } && 19904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19906 (eval $ac_try) 2>&5 19907 ac_status=$? 19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19909 (exit $ac_status); }; } && 19910 { ac_try='test -s conftest$ac_exeext' 19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19912 (eval $ac_try) 2>&5 19913 ac_status=$? 19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19915 (exit $ac_status); }; }; then 19916 ac_cv_lib_resolv_inet_aton=yes 19917else 19918 echo "$as_me: failed program was:" >&5 19919sed 's/^/| /' conftest.$ac_ext >&5 19920 19921ac_cv_lib_resolv_inet_aton=no 19922fi 19923rm -f conftest.err conftest.$ac_objext \ 19924 conftest$ac_exeext conftest.$ac_ext 19925LIBS=$ac_check_lib_save_LIBS 19926fi 19927echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 19928echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 19929if test $ac_cv_lib_resolv_inet_aton = yes; then 19930 cat >>confdefs.h <<_ACEOF 19931#define HAVE_LIBRESOLV 1 19932_ACEOF 19933 19934 LIBS="-lresolv $LIBS" 19935 19936fi 19937 19938fi 19939done 19940 19941 19942 19943 19944 19945 19946 19947 19948ac_header_dirent=no 19949for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 19950 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 19951echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 19952echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 19953if eval "test \"\${$as_ac_Header+set}\" = set"; then 19954 echo $ECHO_N "(cached) $ECHO_C" >&6 19955else 19956 cat >conftest.$ac_ext <<_ACEOF 19957/* confdefs.h. */ 19958_ACEOF 19959cat confdefs.h >>conftest.$ac_ext 19960cat >>conftest.$ac_ext <<_ACEOF 19961/* end confdefs.h. */ 19962#include <sys/types.h> 19963#include <$ac_hdr> 19964 19965int 19966main () 19967{ 19968if ((DIR *) 0) 19969return 0; 19970 ; 19971 return 0; 19972} 19973_ACEOF 19974rm -f conftest.$ac_objext 19975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19976 (eval $ac_compile) 2>conftest.er1 19977 ac_status=$? 19978 grep -v '^ *+' conftest.er1 >conftest.err 19979 rm -f conftest.er1 19980 cat conftest.err >&5 19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19982 (exit $ac_status); } && 19983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19985 (eval $ac_try) 2>&5 19986 ac_status=$? 19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19988 (exit $ac_status); }; } && 19989 { ac_try='test -s conftest.$ac_objext' 19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19991 (eval $ac_try) 2>&5 19992 ac_status=$? 19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19994 (exit $ac_status); }; }; then 19995 eval "$as_ac_Header=yes" 19996else 19997 echo "$as_me: failed program was:" >&5 19998sed 's/^/| /' conftest.$ac_ext >&5 19999 20000eval "$as_ac_Header=no" 20001fi 20002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20003fi 20004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20006if test `eval echo '${'$as_ac_Header'}'` = yes; then 20007 cat >>confdefs.h <<_ACEOF 20008#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 20009_ACEOF 20010 20011ac_header_dirent=$ac_hdr; break 20012fi 20013 20014done 20015# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 20016if test $ac_header_dirent = dirent.h; then 20017 echo "$as_me:$LINENO: checking for library containing opendir" >&5 20018echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 20019if test "${ac_cv_search_opendir+set}" = set; then 20020 echo $ECHO_N "(cached) $ECHO_C" >&6 20021else 20022 ac_func_search_save_LIBS=$LIBS 20023ac_cv_search_opendir=no 20024cat >conftest.$ac_ext <<_ACEOF 20025/* confdefs.h. */ 20026_ACEOF 20027cat confdefs.h >>conftest.$ac_ext 20028cat >>conftest.$ac_ext <<_ACEOF 20029/* end confdefs.h. */ 20030 20031/* Override any gcc2 internal prototype to avoid an error. */ 20032#ifdef __cplusplus 20033extern "C" 20034#endif 20035/* We use char because int might match the return type of a gcc2 20036 builtin and then its argument prototype would still apply. */ 20037char opendir (); 20038int 20039main () 20040{ 20041opendir (); 20042 ; 20043 return 0; 20044} 20045_ACEOF 20046rm -f conftest.$ac_objext conftest$ac_exeext 20047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20048 (eval $ac_link) 2>conftest.er1 20049 ac_status=$? 20050 grep -v '^ *+' conftest.er1 >conftest.err 20051 rm -f conftest.er1 20052 cat conftest.err >&5 20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20054 (exit $ac_status); } && 20055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20057 (eval $ac_try) 2>&5 20058 ac_status=$? 20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20060 (exit $ac_status); }; } && 20061 { ac_try='test -s conftest$ac_exeext' 20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20063 (eval $ac_try) 2>&5 20064 ac_status=$? 20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20066 (exit $ac_status); }; }; then 20067 ac_cv_search_opendir="none required" 20068else 20069 echo "$as_me: failed program was:" >&5 20070sed 's/^/| /' conftest.$ac_ext >&5 20071 20072fi 20073rm -f conftest.err conftest.$ac_objext \ 20074 conftest$ac_exeext conftest.$ac_ext 20075if test "$ac_cv_search_opendir" = no; then 20076 for ac_lib in dir; do 20077 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20078 cat >conftest.$ac_ext <<_ACEOF 20079/* confdefs.h. */ 20080_ACEOF 20081cat confdefs.h >>conftest.$ac_ext 20082cat >>conftest.$ac_ext <<_ACEOF 20083/* end confdefs.h. */ 20084 20085/* Override any gcc2 internal prototype to avoid an error. */ 20086#ifdef __cplusplus 20087extern "C" 20088#endif 20089/* We use char because int might match the return type of a gcc2 20090 builtin and then its argument prototype would still apply. */ 20091char opendir (); 20092int 20093main () 20094{ 20095opendir (); 20096 ; 20097 return 0; 20098} 20099_ACEOF 20100rm -f conftest.$ac_objext conftest$ac_exeext 20101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20102 (eval $ac_link) 2>conftest.er1 20103 ac_status=$? 20104 grep -v '^ *+' conftest.er1 >conftest.err 20105 rm -f conftest.er1 20106 cat conftest.err >&5 20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20108 (exit $ac_status); } && 20109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20111 (eval $ac_try) 2>&5 20112 ac_status=$? 20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20114 (exit $ac_status); }; } && 20115 { ac_try='test -s conftest$ac_exeext' 20116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20117 (eval $ac_try) 2>&5 20118 ac_status=$? 20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20120 (exit $ac_status); }; }; then 20121 ac_cv_search_opendir="-l$ac_lib" 20122break 20123else 20124 echo "$as_me: failed program was:" >&5 20125sed 's/^/| /' conftest.$ac_ext >&5 20126 20127fi 20128rm -f conftest.err conftest.$ac_objext \ 20129 conftest$ac_exeext conftest.$ac_ext 20130 done 20131fi 20132LIBS=$ac_func_search_save_LIBS 20133fi 20134echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 20135echo "${ECHO_T}$ac_cv_search_opendir" >&6 20136if test "$ac_cv_search_opendir" != no; then 20137 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 20138 20139fi 20140 20141else 20142 echo "$as_me:$LINENO: checking for library containing opendir" >&5 20143echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 20144if test "${ac_cv_search_opendir+set}" = set; then 20145 echo $ECHO_N "(cached) $ECHO_C" >&6 20146else 20147 ac_func_search_save_LIBS=$LIBS 20148ac_cv_search_opendir=no 20149cat >conftest.$ac_ext <<_ACEOF 20150/* confdefs.h. */ 20151_ACEOF 20152cat confdefs.h >>conftest.$ac_ext 20153cat >>conftest.$ac_ext <<_ACEOF 20154/* end confdefs.h. */ 20155 20156/* Override any gcc2 internal prototype to avoid an error. */ 20157#ifdef __cplusplus 20158extern "C" 20159#endif 20160/* We use char because int might match the return type of a gcc2 20161 builtin and then its argument prototype would still apply. */ 20162char opendir (); 20163int 20164main () 20165{ 20166opendir (); 20167 ; 20168 return 0; 20169} 20170_ACEOF 20171rm -f conftest.$ac_objext conftest$ac_exeext 20172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20173 (eval $ac_link) 2>conftest.er1 20174 ac_status=$? 20175 grep -v '^ *+' conftest.er1 >conftest.err 20176 rm -f conftest.er1 20177 cat conftest.err >&5 20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20179 (exit $ac_status); } && 20180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20182 (eval $ac_try) 2>&5 20183 ac_status=$? 20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20185 (exit $ac_status); }; } && 20186 { ac_try='test -s conftest$ac_exeext' 20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20188 (eval $ac_try) 2>&5 20189 ac_status=$? 20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20191 (exit $ac_status); }; }; then 20192 ac_cv_search_opendir="none required" 20193else 20194 echo "$as_me: failed program was:" >&5 20195sed 's/^/| /' conftest.$ac_ext >&5 20196 20197fi 20198rm -f conftest.err conftest.$ac_objext \ 20199 conftest$ac_exeext conftest.$ac_ext 20200if test "$ac_cv_search_opendir" = no; then 20201 for ac_lib in x; do 20202 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20203 cat >conftest.$ac_ext <<_ACEOF 20204/* confdefs.h. */ 20205_ACEOF 20206cat confdefs.h >>conftest.$ac_ext 20207cat >>conftest.$ac_ext <<_ACEOF 20208/* end confdefs.h. */ 20209 20210/* Override any gcc2 internal prototype to avoid an error. */ 20211#ifdef __cplusplus 20212extern "C" 20213#endif 20214/* We use char because int might match the return type of a gcc2 20215 builtin and then its argument prototype would still apply. */ 20216char opendir (); 20217int 20218main () 20219{ 20220opendir (); 20221 ; 20222 return 0; 20223} 20224_ACEOF 20225rm -f conftest.$ac_objext conftest$ac_exeext 20226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20227 (eval $ac_link) 2>conftest.er1 20228 ac_status=$? 20229 grep -v '^ *+' conftest.er1 >conftest.err 20230 rm -f conftest.er1 20231 cat conftest.err >&5 20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20233 (exit $ac_status); } && 20234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20236 (eval $ac_try) 2>&5 20237 ac_status=$? 20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20239 (exit $ac_status); }; } && 20240 { ac_try='test -s conftest$ac_exeext' 20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20242 (eval $ac_try) 2>&5 20243 ac_status=$? 20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20245 (exit $ac_status); }; }; then 20246 ac_cv_search_opendir="-l$ac_lib" 20247break 20248else 20249 echo "$as_me: failed program was:" >&5 20250sed 's/^/| /' conftest.$ac_ext >&5 20251 20252fi 20253rm -f conftest.err conftest.$ac_objext \ 20254 conftest$ac_exeext conftest.$ac_ext 20255 done 20256fi 20257LIBS=$ac_func_search_save_LIBS 20258fi 20259echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 20260echo "${ECHO_T}$ac_cv_search_opendir" >&6 20261if test "$ac_cv_search_opendir" != no; then 20262 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 20263 20264fi 20265 20266fi 20267 20268echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20269echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 20270if test "${ac_cv_header_stdc+set}" = set; then 20271 echo $ECHO_N "(cached) $ECHO_C" >&6 20272else 20273 cat >conftest.$ac_ext <<_ACEOF 20274/* confdefs.h. */ 20275_ACEOF 20276cat confdefs.h >>conftest.$ac_ext 20277cat >>conftest.$ac_ext <<_ACEOF 20278/* end confdefs.h. */ 20279#include <stdlib.h> 20280#include <stdarg.h> 20281#include <string.h> 20282#include <float.h> 20283 20284int 20285main () 20286{ 20287 20288 ; 20289 return 0; 20290} 20291_ACEOF 20292rm -f conftest.$ac_objext 20293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20294 (eval $ac_compile) 2>conftest.er1 20295 ac_status=$? 20296 grep -v '^ *+' conftest.er1 >conftest.err 20297 rm -f conftest.er1 20298 cat conftest.err >&5 20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20300 (exit $ac_status); } && 20301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20303 (eval $ac_try) 2>&5 20304 ac_status=$? 20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20306 (exit $ac_status); }; } && 20307 { ac_try='test -s conftest.$ac_objext' 20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20309 (eval $ac_try) 2>&5 20310 ac_status=$? 20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20312 (exit $ac_status); }; }; then 20313 ac_cv_header_stdc=yes 20314else 20315 echo "$as_me: failed program was:" >&5 20316sed 's/^/| /' conftest.$ac_ext >&5 20317 20318ac_cv_header_stdc=no 20319fi 20320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20321 20322if test $ac_cv_header_stdc = yes; then 20323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20324 cat >conftest.$ac_ext <<_ACEOF 20325/* confdefs.h. */ 20326_ACEOF 20327cat confdefs.h >>conftest.$ac_ext 20328cat >>conftest.$ac_ext <<_ACEOF 20329/* end confdefs.h. */ 20330#include <string.h> 20331 20332_ACEOF 20333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20334 $EGREP "memchr" >/dev/null 2>&1; then 20335 : 20336else 20337 ac_cv_header_stdc=no 20338fi 20339rm -f conftest* 20340 20341fi 20342 20343if test $ac_cv_header_stdc = yes; then 20344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20345 cat >conftest.$ac_ext <<_ACEOF 20346/* confdefs.h. */ 20347_ACEOF 20348cat confdefs.h >>conftest.$ac_ext 20349cat >>conftest.$ac_ext <<_ACEOF 20350/* end confdefs.h. */ 20351#include <stdlib.h> 20352 20353_ACEOF 20354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20355 $EGREP "free" >/dev/null 2>&1; then 20356 : 20357else 20358 ac_cv_header_stdc=no 20359fi 20360rm -f conftest* 20361 20362fi 20363 20364if test $ac_cv_header_stdc = yes; then 20365 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20366 if test "$cross_compiling" = yes; then 20367 : 20368else 20369 cat >conftest.$ac_ext <<_ACEOF 20370/* confdefs.h. */ 20371_ACEOF 20372cat confdefs.h >>conftest.$ac_ext 20373cat >>conftest.$ac_ext <<_ACEOF 20374/* end confdefs.h. */ 20375#include <ctype.h> 20376#if ((' ' & 0x0FF) == 0x020) 20377# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20378# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20379#else 20380# define ISLOWER(c) \ 20381 (('a' <= (c) && (c) <= 'i') \ 20382 || ('j' <= (c) && (c) <= 'r') \ 20383 || ('s' <= (c) && (c) <= 'z')) 20384# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20385#endif 20386 20387#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20388int 20389main () 20390{ 20391 int i; 20392 for (i = 0; i < 256; i++) 20393 if (XOR (islower (i), ISLOWER (i)) 20394 || toupper (i) != TOUPPER (i)) 20395 exit(2); 20396 exit (0); 20397} 20398_ACEOF 20399rm -f conftest$ac_exeext 20400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20401 (eval $ac_link) 2>&5 20402 ac_status=$? 20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20406 (eval $ac_try) 2>&5 20407 ac_status=$? 20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20409 (exit $ac_status); }; }; then 20410 : 20411else 20412 echo "$as_me: program exited with status $ac_status" >&5 20413echo "$as_me: failed program was:" >&5 20414sed 's/^/| /' conftest.$ac_ext >&5 20415 20416( exit $ac_status ) 20417ac_cv_header_stdc=no 20418fi 20419rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20420fi 20421fi 20422fi 20423echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20424echo "${ECHO_T}$ac_cv_header_stdc" >&6 20425if test $ac_cv_header_stdc = yes; then 20426 20427cat >>confdefs.h <<\_ACEOF 20428#define STDC_HEADERS 1 20429_ACEOF 20430 20431fi 20432 20433echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 20434echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 20435if test "${ac_cv_header_sys_wait_h+set}" = set; then 20436 echo $ECHO_N "(cached) $ECHO_C" >&6 20437else 20438 cat >conftest.$ac_ext <<_ACEOF 20439/* confdefs.h. */ 20440_ACEOF 20441cat confdefs.h >>conftest.$ac_ext 20442cat >>conftest.$ac_ext <<_ACEOF 20443/* end confdefs.h. */ 20444#include <sys/types.h> 20445#include <sys/wait.h> 20446#ifndef WEXITSTATUS 20447# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 20448#endif 20449#ifndef WIFEXITED 20450# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 20451#endif 20452 20453int 20454main () 20455{ 20456 int s; 20457 wait (&s); 20458 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 20459 ; 20460 return 0; 20461} 20462_ACEOF 20463rm -f conftest.$ac_objext 20464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20465 (eval $ac_compile) 2>conftest.er1 20466 ac_status=$? 20467 grep -v '^ *+' conftest.er1 >conftest.err 20468 rm -f conftest.er1 20469 cat conftest.err >&5 20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20471 (exit $ac_status); } && 20472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20474 (eval $ac_try) 2>&5 20475 ac_status=$? 20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20477 (exit $ac_status); }; } && 20478 { ac_try='test -s conftest.$ac_objext' 20479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20480 (eval $ac_try) 2>&5 20481 ac_status=$? 20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20483 (exit $ac_status); }; }; then 20484 ac_cv_header_sys_wait_h=yes 20485else 20486 echo "$as_me: failed program was:" >&5 20487sed 's/^/| /' conftest.$ac_ext >&5 20488 20489ac_cv_header_sys_wait_h=no 20490fi 20491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20492fi 20493echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 20494echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 20495if test $ac_cv_header_sys_wait_h = yes; then 20496 20497cat >>confdefs.h <<\_ACEOF 20498#define HAVE_SYS_WAIT_H 1 20499_ACEOF 20500 20501fi 20502 20503 20504 20505 20506 20507for ac_header in fcntl.h limits.h sys/time.h unistd.h 20508do 20509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20510if eval "test \"\${$as_ac_Header+set}\" = set"; then 20511 echo "$as_me:$LINENO: checking for $ac_header" >&5 20512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20513if eval "test \"\${$as_ac_Header+set}\" = set"; then 20514 echo $ECHO_N "(cached) $ECHO_C" >&6 20515fi 20516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20518else 20519 # Is the header compilable? 20520echo "$as_me:$LINENO: checking $ac_header usability" >&5 20521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 20522cat >conftest.$ac_ext <<_ACEOF 20523/* confdefs.h. */ 20524_ACEOF 20525cat confdefs.h >>conftest.$ac_ext 20526cat >>conftest.$ac_ext <<_ACEOF 20527/* end confdefs.h. */ 20528$ac_includes_default 20529#include <$ac_header> 20530_ACEOF 20531rm -f conftest.$ac_objext 20532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20533 (eval $ac_compile) 2>conftest.er1 20534 ac_status=$? 20535 grep -v '^ *+' conftest.er1 >conftest.err 20536 rm -f conftest.er1 20537 cat conftest.err >&5 20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20539 (exit $ac_status); } && 20540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20542 (eval $ac_try) 2>&5 20543 ac_status=$? 20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20545 (exit $ac_status); }; } && 20546 { ac_try='test -s conftest.$ac_objext' 20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20548 (eval $ac_try) 2>&5 20549 ac_status=$? 20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20551 (exit $ac_status); }; }; then 20552 ac_header_compiler=yes 20553else 20554 echo "$as_me: failed program was:" >&5 20555sed 's/^/| /' conftest.$ac_ext >&5 20556 20557ac_header_compiler=no 20558fi 20559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20561echo "${ECHO_T}$ac_header_compiler" >&6 20562 20563# Is the header present? 20564echo "$as_me:$LINENO: checking $ac_header presence" >&5 20565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 20566cat >conftest.$ac_ext <<_ACEOF 20567/* confdefs.h. */ 20568_ACEOF 20569cat confdefs.h >>conftest.$ac_ext 20570cat >>conftest.$ac_ext <<_ACEOF 20571/* end confdefs.h. */ 20572#include <$ac_header> 20573_ACEOF 20574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20576 ac_status=$? 20577 grep -v '^ *+' conftest.er1 >conftest.err 20578 rm -f conftest.er1 20579 cat conftest.err >&5 20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20581 (exit $ac_status); } >/dev/null; then 20582 if test -s conftest.err; then 20583 ac_cpp_err=$ac_c_preproc_warn_flag 20584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20585 else 20586 ac_cpp_err= 20587 fi 20588else 20589 ac_cpp_err=yes 20590fi 20591if test -z "$ac_cpp_err"; then 20592 ac_header_preproc=yes 20593else 20594 echo "$as_me: failed program was:" >&5 20595sed 's/^/| /' conftest.$ac_ext >&5 20596 20597 ac_header_preproc=no 20598fi 20599rm -f conftest.err conftest.$ac_ext 20600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20601echo "${ECHO_T}$ac_header_preproc" >&6 20602 20603# So? What about this header? 20604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20605 yes:no: ) 20606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20610 ac_header_preproc=yes 20611 ;; 20612 no:yes:* ) 20613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20620echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20625 ( 20626 cat <<\_ASBOX 20627## ------------------------------------------ ## 20628## Report this to the AC_PACKAGE_NAME lists. ## 20629## ------------------------------------------ ## 20630_ASBOX 20631 ) | 20632 sed "s/^/$as_me: WARNING: /" >&2 20633 ;; 20634esac 20635echo "$as_me:$LINENO: checking for $ac_header" >&5 20636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20637if eval "test \"\${$as_ac_Header+set}\" = set"; then 20638 echo $ECHO_N "(cached) $ECHO_C" >&6 20639else 20640 eval "$as_ac_Header=\$ac_header_preproc" 20641fi 20642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20644 20645fi 20646if test `eval echo '${'$as_ac_Header'}'` = yes; then 20647 cat >>confdefs.h <<_ACEOF 20648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20649_ACEOF 20650 20651fi 20652 20653done 20654 20655 20656 20657echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 20658echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 20659if test "${ac_cv_c_const+set}" = set; then 20660 echo $ECHO_N "(cached) $ECHO_C" >&6 20661else 20662 cat >conftest.$ac_ext <<_ACEOF 20663/* confdefs.h. */ 20664_ACEOF 20665cat confdefs.h >>conftest.$ac_ext 20666cat >>conftest.$ac_ext <<_ACEOF 20667/* end confdefs.h. */ 20668 20669int 20670main () 20671{ 20672/* FIXME: Include the comments suggested by Paul. */ 20673#ifndef __cplusplus 20674 /* Ultrix mips cc rejects this. */ 20675 typedef int charset[2]; 20676 const charset x; 20677 /* SunOS 4.1.1 cc rejects this. */ 20678 char const *const *ccp; 20679 char **p; 20680 /* NEC SVR4.0.2 mips cc rejects this. */ 20681 struct point {int x, y;}; 20682 static struct point const zero = {0,0}; 20683 /* AIX XL C 1.02.0.0 rejects this. 20684 It does not let you subtract one const X* pointer from another in 20685 an arm of an if-expression whose if-part is not a constant 20686 expression */ 20687 const char *g = "string"; 20688 ccp = &g + (g ? g-g : 0); 20689 /* HPUX 7.0 cc rejects these. */ 20690 ++ccp; 20691 p = (char**) ccp; 20692 ccp = (char const *const *) p; 20693 { /* SCO 3.2v4 cc rejects this. */ 20694 char *t; 20695 char const *s = 0 ? (char *) 0 : (char const *) 0; 20696 20697 *t++ = 0; 20698 } 20699 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20700 int x[] = {25, 17}; 20701 const int *foo = &x[0]; 20702 ++foo; 20703 } 20704 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20705 typedef const int *iptr; 20706 iptr p = 0; 20707 ++p; 20708 } 20709 { /* AIX XL C 1.02.0.0 rejects this saying 20710 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20711 struct s { int j; const int *ap[3]; }; 20712 struct s *b; b->j = 5; 20713 } 20714 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20715 const int foo = 10; 20716 } 20717#endif 20718 20719 ; 20720 return 0; 20721} 20722_ACEOF 20723rm -f conftest.$ac_objext 20724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20725 (eval $ac_compile) 2>conftest.er1 20726 ac_status=$? 20727 grep -v '^ *+' conftest.er1 >conftest.err 20728 rm -f conftest.er1 20729 cat conftest.err >&5 20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20731 (exit $ac_status); } && 20732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20734 (eval $ac_try) 2>&5 20735 ac_status=$? 20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20737 (exit $ac_status); }; } && 20738 { ac_try='test -s conftest.$ac_objext' 20739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20740 (eval $ac_try) 2>&5 20741 ac_status=$? 20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20743 (exit $ac_status); }; }; then 20744 ac_cv_c_const=yes 20745else 20746 echo "$as_me: failed program was:" >&5 20747sed 's/^/| /' conftest.$ac_ext >&5 20748 20749ac_cv_c_const=no 20750fi 20751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20752fi 20753echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 20754echo "${ECHO_T}$ac_cv_c_const" >&6 20755if test $ac_cv_c_const = no; then 20756 20757cat >>confdefs.h <<\_ACEOF 20758#define const 20759_ACEOF 20760 20761fi 20762 20763echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 20764echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 20765if test "${ac_cv_type_uid_t+set}" = set; then 20766 echo $ECHO_N "(cached) $ECHO_C" >&6 20767else 20768 cat >conftest.$ac_ext <<_ACEOF 20769/* confdefs.h. */ 20770_ACEOF 20771cat confdefs.h >>conftest.$ac_ext 20772cat >>conftest.$ac_ext <<_ACEOF 20773/* end confdefs.h. */ 20774#include <sys/types.h> 20775 20776_ACEOF 20777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20778 $EGREP "uid_t" >/dev/null 2>&1; then 20779 ac_cv_type_uid_t=yes 20780else 20781 ac_cv_type_uid_t=no 20782fi 20783rm -f conftest* 20784 20785fi 20786echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 20787echo "${ECHO_T}$ac_cv_type_uid_t" >&6 20788if test $ac_cv_type_uid_t = no; then 20789 20790cat >>confdefs.h <<\_ACEOF 20791#define uid_t int 20792_ACEOF 20793 20794 20795cat >>confdefs.h <<\_ACEOF 20796#define gid_t int 20797_ACEOF 20798 20799fi 20800 20801echo "$as_me:$LINENO: checking for mode_t" >&5 20802echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 20803if test "${ac_cv_type_mode_t+set}" = set; then 20804 echo $ECHO_N "(cached) $ECHO_C" >&6 20805else 20806 cat >conftest.$ac_ext <<_ACEOF 20807/* confdefs.h. */ 20808_ACEOF 20809cat confdefs.h >>conftest.$ac_ext 20810cat >>conftest.$ac_ext <<_ACEOF 20811/* end confdefs.h. */ 20812$ac_includes_default 20813int 20814main () 20815{ 20816if ((mode_t *) 0) 20817 return 0; 20818if (sizeof (mode_t)) 20819 return 0; 20820 ; 20821 return 0; 20822} 20823_ACEOF 20824rm -f conftest.$ac_objext 20825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20826 (eval $ac_compile) 2>conftest.er1 20827 ac_status=$? 20828 grep -v '^ *+' conftest.er1 >conftest.err 20829 rm -f conftest.er1 20830 cat conftest.err >&5 20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20832 (exit $ac_status); } && 20833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20835 (eval $ac_try) 2>&5 20836 ac_status=$? 20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20838 (exit $ac_status); }; } && 20839 { ac_try='test -s conftest.$ac_objext' 20840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20841 (eval $ac_try) 2>&5 20842 ac_status=$? 20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20844 (exit $ac_status); }; }; then 20845 ac_cv_type_mode_t=yes 20846else 20847 echo "$as_me: failed program was:" >&5 20848sed 's/^/| /' conftest.$ac_ext >&5 20849 20850ac_cv_type_mode_t=no 20851fi 20852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20853fi 20854echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 20855echo "${ECHO_T}$ac_cv_type_mode_t" >&6 20856if test $ac_cv_type_mode_t = yes; then 20857 : 20858else 20859 20860cat >>confdefs.h <<_ACEOF 20861#define mode_t int 20862_ACEOF 20863 20864fi 20865 20866echo "$as_me:$LINENO: checking for pid_t" >&5 20867echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 20868if test "${ac_cv_type_pid_t+set}" = set; then 20869 echo $ECHO_N "(cached) $ECHO_C" >&6 20870else 20871 cat >conftest.$ac_ext <<_ACEOF 20872/* confdefs.h. */ 20873_ACEOF 20874cat confdefs.h >>conftest.$ac_ext 20875cat >>conftest.$ac_ext <<_ACEOF 20876/* end confdefs.h. */ 20877$ac_includes_default 20878int 20879main () 20880{ 20881if ((pid_t *) 0) 20882 return 0; 20883if (sizeof (pid_t)) 20884 return 0; 20885 ; 20886 return 0; 20887} 20888_ACEOF 20889rm -f conftest.$ac_objext 20890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20891 (eval $ac_compile) 2>conftest.er1 20892 ac_status=$? 20893 grep -v '^ *+' conftest.er1 >conftest.err 20894 rm -f conftest.er1 20895 cat conftest.err >&5 20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20897 (exit $ac_status); } && 20898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20900 (eval $ac_try) 2>&5 20901 ac_status=$? 20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20903 (exit $ac_status); }; } && 20904 { ac_try='test -s conftest.$ac_objext' 20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20906 (eval $ac_try) 2>&5 20907 ac_status=$? 20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20909 (exit $ac_status); }; }; then 20910 ac_cv_type_pid_t=yes 20911else 20912 echo "$as_me: failed program was:" >&5 20913sed 's/^/| /' conftest.$ac_ext >&5 20914 20915ac_cv_type_pid_t=no 20916fi 20917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20918fi 20919echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 20920echo "${ECHO_T}$ac_cv_type_pid_t" >&6 20921if test $ac_cv_type_pid_t = yes; then 20922 : 20923else 20924 20925cat >>confdefs.h <<_ACEOF 20926#define pid_t int 20927_ACEOF 20928 20929fi 20930 20931echo "$as_me:$LINENO: checking for size_t" >&5 20932echo $ECHO_N "checking for size_t... $ECHO_C" >&6 20933if test "${ac_cv_type_size_t+set}" = set; then 20934 echo $ECHO_N "(cached) $ECHO_C" >&6 20935else 20936 cat >conftest.$ac_ext <<_ACEOF 20937/* confdefs.h. */ 20938_ACEOF 20939cat confdefs.h >>conftest.$ac_ext 20940cat >>conftest.$ac_ext <<_ACEOF 20941/* end confdefs.h. */ 20942$ac_includes_default 20943int 20944main () 20945{ 20946if ((size_t *) 0) 20947 return 0; 20948if (sizeof (size_t)) 20949 return 0; 20950 ; 20951 return 0; 20952} 20953_ACEOF 20954rm -f conftest.$ac_objext 20955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20956 (eval $ac_compile) 2>conftest.er1 20957 ac_status=$? 20958 grep -v '^ *+' conftest.er1 >conftest.err 20959 rm -f conftest.er1 20960 cat conftest.err >&5 20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20962 (exit $ac_status); } && 20963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20965 (eval $ac_try) 2>&5 20966 ac_status=$? 20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20968 (exit $ac_status); }; } && 20969 { ac_try='test -s conftest.$ac_objext' 20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20971 (eval $ac_try) 2>&5 20972 ac_status=$? 20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20974 (exit $ac_status); }; }; then 20975 ac_cv_type_size_t=yes 20976else 20977 echo "$as_me: failed program was:" >&5 20978sed 's/^/| /' conftest.$ac_ext >&5 20979 20980ac_cv_type_size_t=no 20981fi 20982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20983fi 20984echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 20985echo "${ECHO_T}$ac_cv_type_size_t" >&6 20986if test $ac_cv_type_size_t = yes; then 20987 : 20988else 20989 20990cat >>confdefs.h <<_ACEOF 20991#define size_t unsigned 20992_ACEOF 20993 20994fi 20995 20996echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 20997echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 20998if test "${ac_cv_header_time+set}" = set; then 20999 echo $ECHO_N "(cached) $ECHO_C" >&6 21000else 21001 cat >conftest.$ac_ext <<_ACEOF 21002/* confdefs.h. */ 21003_ACEOF 21004cat confdefs.h >>conftest.$ac_ext 21005cat >>conftest.$ac_ext <<_ACEOF 21006/* end confdefs.h. */ 21007#include <sys/types.h> 21008#include <sys/time.h> 21009#include <time.h> 21010 21011int 21012main () 21013{ 21014if ((struct tm *) 0) 21015return 0; 21016 ; 21017 return 0; 21018} 21019_ACEOF 21020rm -f conftest.$ac_objext 21021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21022 (eval $ac_compile) 2>conftest.er1 21023 ac_status=$? 21024 grep -v '^ *+' conftest.er1 >conftest.err 21025 rm -f conftest.er1 21026 cat conftest.err >&5 21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21028 (exit $ac_status); } && 21029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21031 (eval $ac_try) 2>&5 21032 ac_status=$? 21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21034 (exit $ac_status); }; } && 21035 { ac_try='test -s conftest.$ac_objext' 21036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21037 (eval $ac_try) 2>&5 21038 ac_status=$? 21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21040 (exit $ac_status); }; }; then 21041 ac_cv_header_time=yes 21042else 21043 echo "$as_me: failed program was:" >&5 21044sed 's/^/| /' conftest.$ac_ext >&5 21045 21046ac_cv_header_time=no 21047fi 21048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21049fi 21050echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 21051echo "${ECHO_T}$ac_cv_header_time" >&6 21052if test $ac_cv_header_time = yes; then 21053 21054cat >>confdefs.h <<\_ACEOF 21055#define TIME_WITH_SYS_TIME 1 21056_ACEOF 21057 21058fi 21059 21060echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 21061echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 21062if test "${ac_cv_struct_tm+set}" = set; then 21063 echo $ECHO_N "(cached) $ECHO_C" >&6 21064else 21065 cat >conftest.$ac_ext <<_ACEOF 21066/* confdefs.h. */ 21067_ACEOF 21068cat confdefs.h >>conftest.$ac_ext 21069cat >>conftest.$ac_ext <<_ACEOF 21070/* end confdefs.h. */ 21071#include <sys/types.h> 21072#include <time.h> 21073 21074int 21075main () 21076{ 21077struct tm *tp; tp->tm_sec; 21078 ; 21079 return 0; 21080} 21081_ACEOF 21082rm -f conftest.$ac_objext 21083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21084 (eval $ac_compile) 2>conftest.er1 21085 ac_status=$? 21086 grep -v '^ *+' conftest.er1 >conftest.err 21087 rm -f conftest.er1 21088 cat conftest.err >&5 21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21090 (exit $ac_status); } && 21091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21093 (eval $ac_try) 2>&5 21094 ac_status=$? 21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21096 (exit $ac_status); }; } && 21097 { ac_try='test -s conftest.$ac_objext' 21098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21099 (eval $ac_try) 2>&5 21100 ac_status=$? 21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21102 (exit $ac_status); }; }; then 21103 ac_cv_struct_tm=time.h 21104else 21105 echo "$as_me: failed program was:" >&5 21106sed 's/^/| /' conftest.$ac_ext >&5 21107 21108ac_cv_struct_tm=sys/time.h 21109fi 21110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21111fi 21112echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 21113echo "${ECHO_T}$ac_cv_struct_tm" >&6 21114if test $ac_cv_struct_tm = sys/time.h; then 21115 21116cat >>confdefs.h <<\_ACEOF 21117#define TM_IN_SYS_TIME 1 21118_ACEOF 21119 21120fi 21121 21122 21123 21124 21125 21126for ac_header in stdlib.h unistd.h 21127do 21128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21129if eval "test \"\${$as_ac_Header+set}\" = set"; then 21130 echo "$as_me:$LINENO: checking for $ac_header" >&5 21131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21132if eval "test \"\${$as_ac_Header+set}\" = set"; then 21133 echo $ECHO_N "(cached) $ECHO_C" >&6 21134fi 21135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21137else 21138 # Is the header compilable? 21139echo "$as_me:$LINENO: checking $ac_header usability" >&5 21140echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21141cat >conftest.$ac_ext <<_ACEOF 21142/* confdefs.h. */ 21143_ACEOF 21144cat confdefs.h >>conftest.$ac_ext 21145cat >>conftest.$ac_ext <<_ACEOF 21146/* end confdefs.h. */ 21147$ac_includes_default 21148#include <$ac_header> 21149_ACEOF 21150rm -f conftest.$ac_objext 21151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21152 (eval $ac_compile) 2>conftest.er1 21153 ac_status=$? 21154 grep -v '^ *+' conftest.er1 >conftest.err 21155 rm -f conftest.er1 21156 cat conftest.err >&5 21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21158 (exit $ac_status); } && 21159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21161 (eval $ac_try) 2>&5 21162 ac_status=$? 21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21164 (exit $ac_status); }; } && 21165 { ac_try='test -s conftest.$ac_objext' 21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21167 (eval $ac_try) 2>&5 21168 ac_status=$? 21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21170 (exit $ac_status); }; }; then 21171 ac_header_compiler=yes 21172else 21173 echo "$as_me: failed program was:" >&5 21174sed 's/^/| /' conftest.$ac_ext >&5 21175 21176ac_header_compiler=no 21177fi 21178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21179echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21180echo "${ECHO_T}$ac_header_compiler" >&6 21181 21182# Is the header present? 21183echo "$as_me:$LINENO: checking $ac_header presence" >&5 21184echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21185cat >conftest.$ac_ext <<_ACEOF 21186/* confdefs.h. */ 21187_ACEOF 21188cat confdefs.h >>conftest.$ac_ext 21189cat >>conftest.$ac_ext <<_ACEOF 21190/* end confdefs.h. */ 21191#include <$ac_header> 21192_ACEOF 21193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21195 ac_status=$? 21196 grep -v '^ *+' conftest.er1 >conftest.err 21197 rm -f conftest.er1 21198 cat conftest.err >&5 21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21200 (exit $ac_status); } >/dev/null; then 21201 if test -s conftest.err; then 21202 ac_cpp_err=$ac_c_preproc_warn_flag 21203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21204 else 21205 ac_cpp_err= 21206 fi 21207else 21208 ac_cpp_err=yes 21209fi 21210if test -z "$ac_cpp_err"; then 21211 ac_header_preproc=yes 21212else 21213 echo "$as_me: failed program was:" >&5 21214sed 's/^/| /' conftest.$ac_ext >&5 21215 21216 ac_header_preproc=no 21217fi 21218rm -f conftest.err conftest.$ac_ext 21219echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21220echo "${ECHO_T}$ac_header_preproc" >&6 21221 21222# So? What about this header? 21223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21224 yes:no: ) 21225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21229 ac_header_preproc=yes 21230 ;; 21231 no:yes:* ) 21232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21239echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21244 ( 21245 cat <<\_ASBOX 21246## ------------------------------------------ ## 21247## Report this to the AC_PACKAGE_NAME lists. ## 21248## ------------------------------------------ ## 21249_ASBOX 21250 ) | 21251 sed "s/^/$as_me: WARNING: /" >&2 21252 ;; 21253esac 21254echo "$as_me:$LINENO: checking for $ac_header" >&5 21255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21256if eval "test \"\${$as_ac_Header+set}\" = set"; then 21257 echo $ECHO_N "(cached) $ECHO_C" >&6 21258else 21259 eval "$as_ac_Header=\$ac_header_preproc" 21260fi 21261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21263 21264fi 21265if test `eval echo '${'$as_ac_Header'}'` = yes; then 21266 cat >>confdefs.h <<_ACEOF 21267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21268_ACEOF 21269 21270fi 21271 21272done 21273 21274 21275for ac_func in getpagesize 21276do 21277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21278echo "$as_me:$LINENO: checking for $ac_func" >&5 21279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21280if eval "test \"\${$as_ac_var+set}\" = set"; then 21281 echo $ECHO_N "(cached) $ECHO_C" >&6 21282else 21283 cat >conftest.$ac_ext <<_ACEOF 21284/* confdefs.h. */ 21285_ACEOF 21286cat confdefs.h >>conftest.$ac_ext 21287cat >>conftest.$ac_ext <<_ACEOF 21288/* end confdefs.h. */ 21289/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21290 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21291#define $ac_func innocuous_$ac_func 21292 21293/* System header to define __stub macros and hopefully few prototypes, 21294 which can conflict with char $ac_func (); below. 21295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21296 <limits.h> exists even on freestanding compilers. */ 21297 21298#ifdef __STDC__ 21299# include <limits.h> 21300#else 21301# include <assert.h> 21302#endif 21303 21304#undef $ac_func 21305 21306/* Override any gcc2 internal prototype to avoid an error. */ 21307#ifdef __cplusplus 21308extern "C" 21309{ 21310#endif 21311/* We use char because int might match the return type of a gcc2 21312 builtin and then its argument prototype would still apply. */ 21313char $ac_func (); 21314/* The GNU C library defines this for functions which it implements 21315 to always fail with ENOSYS. Some functions are actually named 21316 something starting with __ and the normal name is an alias. */ 21317#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21318choke me 21319#else 21320char (*f) () = $ac_func; 21321#endif 21322#ifdef __cplusplus 21323} 21324#endif 21325 21326int 21327main () 21328{ 21329return f != $ac_func; 21330 ; 21331 return 0; 21332} 21333_ACEOF 21334rm -f conftest.$ac_objext conftest$ac_exeext 21335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21336 (eval $ac_link) 2>conftest.er1 21337 ac_status=$? 21338 grep -v '^ *+' conftest.er1 >conftest.err 21339 rm -f conftest.er1 21340 cat conftest.err >&5 21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21342 (exit $ac_status); } && 21343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21345 (eval $ac_try) 2>&5 21346 ac_status=$? 21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21348 (exit $ac_status); }; } && 21349 { ac_try='test -s conftest$ac_exeext' 21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21351 (eval $ac_try) 2>&5 21352 ac_status=$? 21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21354 (exit $ac_status); }; }; then 21355 eval "$as_ac_var=yes" 21356else 21357 echo "$as_me: failed program was:" >&5 21358sed 's/^/| /' conftest.$ac_ext >&5 21359 21360eval "$as_ac_var=no" 21361fi 21362rm -f conftest.err conftest.$ac_objext \ 21363 conftest$ac_exeext conftest.$ac_ext 21364fi 21365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21366echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21367if test `eval echo '${'$as_ac_var'}'` = yes; then 21368 cat >>confdefs.h <<_ACEOF 21369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21370_ACEOF 21371 21372fi 21373done 21374 21375echo "$as_me:$LINENO: checking for working mmap" >&5 21376echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 21377if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 21378 echo $ECHO_N "(cached) $ECHO_C" >&6 21379else 21380 if test "$cross_compiling" = yes; then 21381 ac_cv_func_mmap_fixed_mapped=no 21382else 21383 cat >conftest.$ac_ext <<_ACEOF 21384/* confdefs.h. */ 21385_ACEOF 21386cat confdefs.h >>conftest.$ac_ext 21387cat >>conftest.$ac_ext <<_ACEOF 21388/* end confdefs.h. */ 21389$ac_includes_default 21390/* malloc might have been renamed as rpl_malloc. */ 21391#undef malloc 21392 21393/* Thanks to Mike Haertel and Jim Avera for this test. 21394 Here is a matrix of mmap possibilities: 21395 mmap private not fixed 21396 mmap private fixed at somewhere currently unmapped 21397 mmap private fixed at somewhere already mapped 21398 mmap shared not fixed 21399 mmap shared fixed at somewhere currently unmapped 21400 mmap shared fixed at somewhere already mapped 21401 For private mappings, we should verify that changes cannot be read() 21402 back from the file, nor mmap's back from the file at a different 21403 address. (There have been systems where private was not correctly 21404 implemented like the infamous i386 svr4.0, and systems where the 21405 VM page cache was not coherent with the file system buffer cache 21406 like early versions of FreeBSD and possibly contemporary NetBSD.) 21407 For shared mappings, we should conversely verify that changes get 21408 propagated back to all the places they're supposed to be. 21409 21410 Grep wants private fixed already mapped. 21411 The main things grep needs to know about mmap are: 21412 * does it exist and is it safe to write into the mmap'd area 21413 * how to use it (BSD variants) */ 21414 21415#include <fcntl.h> 21416#include <sys/mman.h> 21417 21418#if !STDC_HEADERS && !HAVE_STDLIB_H 21419char *malloc (); 21420#endif 21421 21422/* This mess was copied from the GNU getpagesize.h. */ 21423#if !HAVE_GETPAGESIZE 21424/* Assume that all systems that can run configure have sys/param.h. */ 21425# if !HAVE_SYS_PARAM_H 21426# define HAVE_SYS_PARAM_H 1 21427# endif 21428 21429# ifdef _SC_PAGESIZE 21430# define getpagesize() sysconf(_SC_PAGESIZE) 21431# else /* no _SC_PAGESIZE */ 21432# if HAVE_SYS_PARAM_H 21433# include <sys/param.h> 21434# ifdef EXEC_PAGESIZE 21435# define getpagesize() EXEC_PAGESIZE 21436# else /* no EXEC_PAGESIZE */ 21437# ifdef NBPG 21438# define getpagesize() NBPG * CLSIZE 21439# ifndef CLSIZE 21440# define CLSIZE 1 21441# endif /* no CLSIZE */ 21442# else /* no NBPG */ 21443# ifdef NBPC 21444# define getpagesize() NBPC 21445# else /* no NBPC */ 21446# ifdef PAGESIZE 21447# define getpagesize() PAGESIZE 21448# endif /* PAGESIZE */ 21449# endif /* no NBPC */ 21450# endif /* no NBPG */ 21451# endif /* no EXEC_PAGESIZE */ 21452# else /* no HAVE_SYS_PARAM_H */ 21453# define getpagesize() 8192 /* punt totally */ 21454# endif /* no HAVE_SYS_PARAM_H */ 21455# endif /* no _SC_PAGESIZE */ 21456 21457#endif /* no HAVE_GETPAGESIZE */ 21458 21459int 21460main () 21461{ 21462 char *data, *data2, *data3; 21463 int i, pagesize; 21464 int fd; 21465 21466 pagesize = getpagesize (); 21467 21468 /* First, make a file with some known garbage in it. */ 21469 data = (char *) malloc (pagesize); 21470 if (!data) 21471 exit (1); 21472 for (i = 0; i < pagesize; ++i) 21473 *(data + i) = rand (); 21474 umask (0); 21475 fd = creat ("conftest.mmap", 0600); 21476 if (fd < 0) 21477 exit (1); 21478 if (write (fd, data, pagesize) != pagesize) 21479 exit (1); 21480 close (fd); 21481 21482 /* Next, try to mmap the file at a fixed address which already has 21483 something else allocated at it. If we can, also make sure that 21484 we see the same garbage. */ 21485 fd = open ("conftest.mmap", O_RDWR); 21486 if (fd < 0) 21487 exit (1); 21488 data2 = (char *) malloc (2 * pagesize); 21489 if (!data2) 21490 exit (1); 21491 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 21492 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 21493 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 21494 exit (1); 21495 for (i = 0; i < pagesize; ++i) 21496 if (*(data + i) != *(data2 + i)) 21497 exit (1); 21498 21499 /* Finally, make sure that changes to the mapped area do not 21500 percolate back to the file as seen by read(). (This is a bug on 21501 some variants of i386 svr4.0.) */ 21502 for (i = 0; i < pagesize; ++i) 21503 *(data2 + i) = *(data2 + i) + 1; 21504 data3 = (char *) malloc (pagesize); 21505 if (!data3) 21506 exit (1); 21507 if (read (fd, data3, pagesize) != pagesize) 21508 exit (1); 21509 for (i = 0; i < pagesize; ++i) 21510 if (*(data + i) != *(data3 + i)) 21511 exit (1); 21512 close (fd); 21513 exit (0); 21514} 21515_ACEOF 21516rm -f conftest$ac_exeext 21517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21518 (eval $ac_link) 2>&5 21519 ac_status=$? 21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21523 (eval $ac_try) 2>&5 21524 ac_status=$? 21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21526 (exit $ac_status); }; }; then 21527 ac_cv_func_mmap_fixed_mapped=yes 21528else 21529 echo "$as_me: program exited with status $ac_status" >&5 21530echo "$as_me: failed program was:" >&5 21531sed 's/^/| /' conftest.$ac_ext >&5 21532 21533( exit $ac_status ) 21534ac_cv_func_mmap_fixed_mapped=no 21535fi 21536rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21537fi 21538fi 21539echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 21540echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 21541if test $ac_cv_func_mmap_fixed_mapped = yes; then 21542 21543cat >>confdefs.h <<\_ACEOF 21544#define HAVE_MMAP 1 21545_ACEOF 21546 21547fi 21548rm -f conftest.mmap 21549 21550 21551 21552for ac_func in strlcat 21553do 21554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21555echo "$as_me:$LINENO: checking for $ac_func" >&5 21556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21557if eval "test \"\${$as_ac_var+set}\" = set"; then 21558 echo $ECHO_N "(cached) $ECHO_C" >&6 21559else 21560 cat >conftest.$ac_ext <<_ACEOF 21561/* confdefs.h. */ 21562_ACEOF 21563cat confdefs.h >>conftest.$ac_ext 21564cat >>conftest.$ac_ext <<_ACEOF 21565/* end confdefs.h. */ 21566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21567 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21568#define $ac_func innocuous_$ac_func 21569 21570/* System header to define __stub macros and hopefully few prototypes, 21571 which can conflict with char $ac_func (); below. 21572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21573 <limits.h> exists even on freestanding compilers. */ 21574 21575#ifdef __STDC__ 21576# include <limits.h> 21577#else 21578# include <assert.h> 21579#endif 21580 21581#undef $ac_func 21582 21583/* Override any gcc2 internal prototype to avoid an error. */ 21584#ifdef __cplusplus 21585extern "C" 21586{ 21587#endif 21588/* We use char because int might match the return type of a gcc2 21589 builtin and then its argument prototype would still apply. */ 21590char $ac_func (); 21591/* The GNU C library defines this for functions which it implements 21592 to always fail with ENOSYS. Some functions are actually named 21593 something starting with __ and the normal name is an alias. */ 21594#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21595choke me 21596#else 21597char (*f) () = $ac_func; 21598#endif 21599#ifdef __cplusplus 21600} 21601#endif 21602 21603int 21604main () 21605{ 21606return f != $ac_func; 21607 ; 21608 return 0; 21609} 21610_ACEOF 21611rm -f conftest.$ac_objext conftest$ac_exeext 21612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21613 (eval $ac_link) 2>conftest.er1 21614 ac_status=$? 21615 grep -v '^ *+' conftest.er1 >conftest.err 21616 rm -f conftest.er1 21617 cat conftest.err >&5 21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21619 (exit $ac_status); } && 21620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21622 (eval $ac_try) 2>&5 21623 ac_status=$? 21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21625 (exit $ac_status); }; } && 21626 { ac_try='test -s conftest$ac_exeext' 21627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21628 (eval $ac_try) 2>&5 21629 ac_status=$? 21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21631 (exit $ac_status); }; }; then 21632 eval "$as_ac_var=yes" 21633else 21634 echo "$as_me: failed program was:" >&5 21635sed 's/^/| /' conftest.$ac_ext >&5 21636 21637eval "$as_ac_var=no" 21638fi 21639rm -f conftest.err conftest.$ac_objext \ 21640 conftest$ac_exeext conftest.$ac_ext 21641fi 21642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21644if test `eval echo '${'$as_ac_var'}'` = yes; then 21645 cat >>confdefs.h <<_ACEOF 21646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21647_ACEOF 21648 have_strlcat=yes 21649else 21650 have_strlcat=no 21651fi 21652done 21653 21654 21655 21656if test "$have_strlcat" = "yes"; then 21657 HAVE_STRLCAT_TRUE= 21658 HAVE_STRLCAT_FALSE='#' 21659else 21660 HAVE_STRLCAT_TRUE='#' 21661 HAVE_STRLCAT_FALSE= 21662fi 21663 21664 21665for ac_func in getopt_long 21666do 21667as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21668echo "$as_me:$LINENO: checking for $ac_func" >&5 21669echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21670if eval "test \"\${$as_ac_var+set}\" = set"; then 21671 echo $ECHO_N "(cached) $ECHO_C" >&6 21672else 21673 cat >conftest.$ac_ext <<_ACEOF 21674/* confdefs.h. */ 21675_ACEOF 21676cat confdefs.h >>conftest.$ac_ext 21677cat >>conftest.$ac_ext <<_ACEOF 21678/* end confdefs.h. */ 21679/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21680 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21681#define $ac_func innocuous_$ac_func 21682 21683/* System header to define __stub macros and hopefully few prototypes, 21684 which can conflict with char $ac_func (); below. 21685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21686 <limits.h> exists even on freestanding compilers. */ 21687 21688#ifdef __STDC__ 21689# include <limits.h> 21690#else 21691# include <assert.h> 21692#endif 21693 21694#undef $ac_func 21695 21696/* Override any gcc2 internal prototype to avoid an error. */ 21697#ifdef __cplusplus 21698extern "C" 21699{ 21700#endif 21701/* We use char because int might match the return type of a gcc2 21702 builtin and then its argument prototype would still apply. */ 21703char $ac_func (); 21704/* The GNU C library defines this for functions which it implements 21705 to always fail with ENOSYS. Some functions are actually named 21706 something starting with __ and the normal name is an alias. */ 21707#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21708choke me 21709#else 21710char (*f) () = $ac_func; 21711#endif 21712#ifdef __cplusplus 21713} 21714#endif 21715 21716int 21717main () 21718{ 21719return f != $ac_func; 21720 ; 21721 return 0; 21722} 21723_ACEOF 21724rm -f conftest.$ac_objext conftest$ac_exeext 21725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21726 (eval $ac_link) 2>conftest.er1 21727 ac_status=$? 21728 grep -v '^ *+' conftest.er1 >conftest.err 21729 rm -f conftest.er1 21730 cat conftest.err >&5 21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21732 (exit $ac_status); } && 21733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21735 (eval $ac_try) 2>&5 21736 ac_status=$? 21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21738 (exit $ac_status); }; } && 21739 { ac_try='test -s conftest$ac_exeext' 21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21741 (eval $ac_try) 2>&5 21742 ac_status=$? 21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21744 (exit $ac_status); }; }; then 21745 eval "$as_ac_var=yes" 21746else 21747 echo "$as_me: failed program was:" >&5 21748sed 's/^/| /' conftest.$ac_ext >&5 21749 21750eval "$as_ac_var=no" 21751fi 21752rm -f conftest.err conftest.$ac_objext \ 21753 conftest$ac_exeext conftest.$ac_ext 21754fi 21755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21756echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21757if test `eval echo '${'$as_ac_var'}'` = yes; then 21758 cat >>confdefs.h <<_ACEOF 21759#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21760_ACEOF 21761 have_getopt=yes 21762else 21763 have_getopt=no 21764fi 21765done 21766 21767 21768 21769if test "$have_getopt" = "yes"; then 21770 HAVE_GETOPT_TRUE= 21771 HAVE_GETOPT_FALSE='#' 21772else 21773 HAVE_GETOPT_TRUE='#' 21774 HAVE_GETOPT_FALSE= 21775fi 21776 21777 21778echo "$as_me:$LINENO: checking for /proc/loadavg" >&5 21779echo $ECHO_N "checking for /proc/loadavg... $ECHO_C" >&6 21780if test "${ac_cv_file__proc_loadavg+set}" = set; then 21781 echo $ECHO_N "(cached) $ECHO_C" >&6 21782else 21783 test "$cross_compiling" = yes && 21784 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 21785echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 21786 { (exit 1); exit 1; }; } 21787if test -r "/proc/loadavg"; then 21788 ac_cv_file__proc_loadavg=yes 21789else 21790 ac_cv_file__proc_loadavg=no 21791fi 21792fi 21793echo "$as_me:$LINENO: result: $ac_cv_file__proc_loadavg" >&5 21794echo "${ECHO_T}$ac_cv_file__proc_loadavg" >&6 21795if test $ac_cv_file__proc_loadavg = yes; then 21796 21797cat >>confdefs.h <<_ACEOF 21798#define LOADAVG_FILE "/proc/loadavg" 21799_ACEOF 21800 21801fi 21802 21803 21804 21805echo "$as_me:$LINENO: checking for db_open in -ldb2" >&5 21806echo $ECHO_N "checking for db_open in -ldb2... $ECHO_C" >&6 21807if test "${ac_cv_lib_db2_db_open+set}" = set; then 21808 echo $ECHO_N "(cached) $ECHO_C" >&6 21809else 21810 ac_check_lib_save_LIBS=$LIBS 21811LIBS="-ldb2 $LIBS" 21812cat >conftest.$ac_ext <<_ACEOF 21813/* confdefs.h. */ 21814_ACEOF 21815cat confdefs.h >>conftest.$ac_ext 21816cat >>conftest.$ac_ext <<_ACEOF 21817/* end confdefs.h. */ 21818 21819/* Override any gcc2 internal prototype to avoid an error. */ 21820#ifdef __cplusplus 21821extern "C" 21822#endif 21823/* We use char because int might match the return type of a gcc2 21824 builtin and then its argument prototype would still apply. */ 21825char db_open (); 21826int 21827main () 21828{ 21829db_open (); 21830 ; 21831 return 0; 21832} 21833_ACEOF 21834rm -f conftest.$ac_objext conftest$ac_exeext 21835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21836 (eval $ac_link) 2>conftest.er1 21837 ac_status=$? 21838 grep -v '^ *+' conftest.er1 >conftest.err 21839 rm -f conftest.er1 21840 cat conftest.err >&5 21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21842 (exit $ac_status); } && 21843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21845 (eval $ac_try) 2>&5 21846 ac_status=$? 21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21848 (exit $ac_status); }; } && 21849 { ac_try='test -s conftest$ac_exeext' 21850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21851 (eval $ac_try) 2>&5 21852 ac_status=$? 21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21854 (exit $ac_status); }; }; then 21855 ac_cv_lib_db2_db_open=yes 21856else 21857 echo "$as_me: failed program was:" >&5 21858sed 's/^/| /' conftest.$ac_ext >&5 21859 21860ac_cv_lib_db2_db_open=no 21861fi 21862rm -f conftest.err conftest.$ac_objext \ 21863 conftest$ac_exeext conftest.$ac_ext 21864LIBS=$ac_check_lib_save_LIBS 21865fi 21866echo "$as_me:$LINENO: result: $ac_cv_lib_db2_db_open" >&5 21867echo "${ECHO_T}$ac_cv_lib_db2_db_open" >&6 21868if test $ac_cv_lib_db2_db_open = yes; then 21869 LIB_DB2=db2 21870else 21871 echo "$as_me:$LINENO: checking for db_open in -ldb" >&5 21872echo $ECHO_N "checking for db_open in -ldb... $ECHO_C" >&6 21873if test "${ac_cv_lib_db_db_open+set}" = set; then 21874 echo $ECHO_N "(cached) $ECHO_C" >&6 21875else 21876 ac_check_lib_save_LIBS=$LIBS 21877LIBS="-ldb $LIBS" 21878cat >conftest.$ac_ext <<_ACEOF 21879/* confdefs.h. */ 21880_ACEOF 21881cat confdefs.h >>conftest.$ac_ext 21882cat >>conftest.$ac_ext <<_ACEOF 21883/* end confdefs.h. */ 21884 21885/* Override any gcc2 internal prototype to avoid an error. */ 21886#ifdef __cplusplus 21887extern "C" 21888#endif 21889/* We use char because int might match the return type of a gcc2 21890 builtin and then its argument prototype would still apply. */ 21891char db_open (); 21892int 21893main () 21894{ 21895db_open (); 21896 ; 21897 return 0; 21898} 21899_ACEOF 21900rm -f conftest.$ac_objext conftest$ac_exeext 21901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21902 (eval $ac_link) 2>conftest.er1 21903 ac_status=$? 21904 grep -v '^ *+' conftest.er1 >conftest.err 21905 rm -f conftest.er1 21906 cat conftest.err >&5 21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21908 (exit $ac_status); } && 21909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21911 (eval $ac_try) 2>&5 21912 ac_status=$? 21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21914 (exit $ac_status); }; } && 21915 { ac_try='test -s conftest$ac_exeext' 21916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21917 (eval $ac_try) 2>&5 21918 ac_status=$? 21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21920 (exit $ac_status); }; }; then 21921 ac_cv_lib_db_db_open=yes 21922else 21923 echo "$as_me: failed program was:" >&5 21924sed 's/^/| /' conftest.$ac_ext >&5 21925 21926ac_cv_lib_db_db_open=no 21927fi 21928rm -f conftest.err conftest.$ac_objext \ 21929 conftest$ac_exeext conftest.$ac_ext 21930LIBS=$ac_check_lib_save_LIBS 21931fi 21932echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5 21933echo "${ECHO_T}$ac_cv_lib_db_db_open" >&6 21934if test $ac_cv_lib_db_db_open = yes; then 21935 LIB_DB2=db 21936else 21937 LIB_DB2="" 21938fi 21939 21940fi 21941 21942if test "${ac_cv_header_db2_db_h+set}" = set; then 21943 echo "$as_me:$LINENO: checking for db2/db.h" >&5 21944echo $ECHO_N "checking for db2/db.h... $ECHO_C" >&6 21945if test "${ac_cv_header_db2_db_h+set}" = set; then 21946 echo $ECHO_N "(cached) $ECHO_C" >&6 21947fi 21948echo "$as_me:$LINENO: result: $ac_cv_header_db2_db_h" >&5 21949echo "${ECHO_T}$ac_cv_header_db2_db_h" >&6 21950else 21951 # Is the header compilable? 21952echo "$as_me:$LINENO: checking db2/db.h usability" >&5 21953echo $ECHO_N "checking db2/db.h usability... $ECHO_C" >&6 21954cat >conftest.$ac_ext <<_ACEOF 21955/* confdefs.h. */ 21956_ACEOF 21957cat confdefs.h >>conftest.$ac_ext 21958cat >>conftest.$ac_ext <<_ACEOF 21959/* end confdefs.h. */ 21960$ac_includes_default 21961#include <db2/db.h> 21962_ACEOF 21963rm -f conftest.$ac_objext 21964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21965 (eval $ac_compile) 2>conftest.er1 21966 ac_status=$? 21967 grep -v '^ *+' conftest.er1 >conftest.err 21968 rm -f conftest.er1 21969 cat conftest.err >&5 21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21971 (exit $ac_status); } && 21972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21974 (eval $ac_try) 2>&5 21975 ac_status=$? 21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21977 (exit $ac_status); }; } && 21978 { ac_try='test -s conftest.$ac_objext' 21979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21980 (eval $ac_try) 2>&5 21981 ac_status=$? 21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21983 (exit $ac_status); }; }; then 21984 ac_header_compiler=yes 21985else 21986 echo "$as_me: failed program was:" >&5 21987sed 's/^/| /' conftest.$ac_ext >&5 21988 21989ac_header_compiler=no 21990fi 21991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21992echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21993echo "${ECHO_T}$ac_header_compiler" >&6 21994 21995# Is the header present? 21996echo "$as_me:$LINENO: checking db2/db.h presence" >&5 21997echo $ECHO_N "checking db2/db.h presence... $ECHO_C" >&6 21998cat >conftest.$ac_ext <<_ACEOF 21999/* confdefs.h. */ 22000_ACEOF 22001cat confdefs.h >>conftest.$ac_ext 22002cat >>conftest.$ac_ext <<_ACEOF 22003/* end confdefs.h. */ 22004#include <db2/db.h> 22005_ACEOF 22006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 22007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 22008 ac_status=$? 22009 grep -v '^ *+' conftest.er1 >conftest.err 22010 rm -f conftest.er1 22011 cat conftest.err >&5 22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22013 (exit $ac_status); } >/dev/null; then 22014 if test -s conftest.err; then 22015 ac_cpp_err=$ac_c_preproc_warn_flag 22016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 22017 else 22018 ac_cpp_err= 22019 fi 22020else 22021 ac_cpp_err=yes 22022fi 22023if test -z "$ac_cpp_err"; then 22024 ac_header_preproc=yes 22025else 22026 echo "$as_me: failed program was:" >&5 22027sed 's/^/| /' conftest.$ac_ext >&5 22028 22029 ac_header_preproc=no 22030fi 22031rm -f conftest.err conftest.$ac_ext 22032echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22033echo "${ECHO_T}$ac_header_preproc" >&6 22034 22035# So? What about this header? 22036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22037 yes:no: ) 22038 { echo "$as_me:$LINENO: WARNING: db2/db.h: accepted by the compiler, rejected by the preprocessor!" >&5 22039echo "$as_me: WARNING: db2/db.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 22040 { echo "$as_me:$LINENO: WARNING: db2/db.h: proceeding with the compiler's result" >&5 22041echo "$as_me: WARNING: db2/db.h: proceeding with the compiler's result" >&2;} 22042 ac_header_preproc=yes 22043 ;; 22044 no:yes:* ) 22045 { echo "$as_me:$LINENO: WARNING: db2/db.h: present but cannot be compiled" >&5 22046echo "$as_me: WARNING: db2/db.h: present but cannot be compiled" >&2;} 22047 { echo "$as_me:$LINENO: WARNING: db2/db.h: check for missing prerequisite headers?" >&5 22048echo "$as_me: WARNING: db2/db.h: check for missing prerequisite headers?" >&2;} 22049 { echo "$as_me:$LINENO: WARNING: db2/db.h: see the Autoconf documentation" >&5 22050echo "$as_me: WARNING: db2/db.h: see the Autoconf documentation" >&2;} 22051 { echo "$as_me:$LINENO: WARNING: db2/db.h: section \"Present But Cannot Be Compiled\"" >&5 22052echo "$as_me: WARNING: db2/db.h: section \"Present But Cannot Be Compiled\"" >&2;} 22053 { echo "$as_me:$LINENO: WARNING: db2/db.h: proceeding with the preprocessor's result" >&5 22054echo "$as_me: WARNING: db2/db.h: proceeding with the preprocessor's result" >&2;} 22055 { echo "$as_me:$LINENO: WARNING: db2/db.h: in the future, the compiler will take precedence" >&5 22056echo "$as_me: WARNING: db2/db.h: in the future, the compiler will take precedence" >&2;} 22057 ( 22058 cat <<\_ASBOX 22059## ------------------------------------------ ## 22060## Report this to the AC_PACKAGE_NAME lists. ## 22061## ------------------------------------------ ## 22062_ASBOX 22063 ) | 22064 sed "s/^/$as_me: WARNING: /" >&2 22065 ;; 22066esac 22067echo "$as_me:$LINENO: checking for db2/db.h" >&5 22068echo $ECHO_N "checking for db2/db.h... $ECHO_C" >&6 22069if test "${ac_cv_header_db2_db_h+set}" = set; then 22070 echo $ECHO_N "(cached) $ECHO_C" >&6 22071else 22072 ac_cv_header_db2_db_h=$ac_header_preproc 22073fi 22074echo "$as_me:$LINENO: result: $ac_cv_header_db2_db_h" >&5 22075echo "${ECHO_T}$ac_cv_header_db2_db_h" >&6 22076 22077fi 22078if test $ac_cv_header_db2_db_h = yes; then 22079 22080cat >>confdefs.h <<\_ACEOF 22081#define HAVE_DB2_HEADER 22082_ACEOF 22083 22084fi 22085 22086 22087 22088 22089echo "$as_me:$LINENO: checking for db_create in -ldb-3.3" >&5 22090echo $ECHO_N "checking for db_create in -ldb-3.3... $ECHO_C" >&6 22091if test "${ac_cv_lib_db_3_3_db_create+set}" = set; then 22092 echo $ECHO_N "(cached) $ECHO_C" >&6 22093else 22094 ac_check_lib_save_LIBS=$LIBS 22095LIBS="-ldb-3.3 $LIBS" 22096cat >conftest.$ac_ext <<_ACEOF 22097/* confdefs.h. */ 22098_ACEOF 22099cat confdefs.h >>conftest.$ac_ext 22100cat >>conftest.$ac_ext <<_ACEOF 22101/* end confdefs.h. */ 22102 22103/* Override any gcc2 internal prototype to avoid an error. */ 22104#ifdef __cplusplus 22105extern "C" 22106#endif 22107/* We use char because int might match the return type of a gcc2 22108 builtin and then its argument prototype would still apply. */ 22109char db_create (); 22110int 22111main () 22112{ 22113db_create (); 22114 ; 22115 return 0; 22116} 22117_ACEOF 22118rm -f conftest.$ac_objext conftest$ac_exeext 22119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22120 (eval $ac_link) 2>conftest.er1 22121 ac_status=$? 22122 grep -v '^ *+' conftest.er1 >conftest.err 22123 rm -f conftest.er1 22124 cat conftest.err >&5 22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22126 (exit $ac_status); } && 22127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22129 (eval $ac_try) 2>&5 22130 ac_status=$? 22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22132 (exit $ac_status); }; } && 22133 { ac_try='test -s conftest$ac_exeext' 22134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22135 (eval $ac_try) 2>&5 22136 ac_status=$? 22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22138 (exit $ac_status); }; }; then 22139 ac_cv_lib_db_3_3_db_create=yes 22140else 22141 echo "$as_me: failed program was:" >&5 22142sed 's/^/| /' conftest.$ac_ext >&5 22143 22144ac_cv_lib_db_3_3_db_create=no 22145fi 22146rm -f conftest.err conftest.$ac_objext \ 22147 conftest$ac_exeext conftest.$ac_ext 22148LIBS=$ac_check_lib_save_LIBS 22149fi 22150echo "$as_me:$LINENO: result: $ac_cv_lib_db_3_3_db_create" >&5 22151echo "${ECHO_T}$ac_cv_lib_db_3_3_db_create" >&6 22152if test $ac_cv_lib_db_3_3_db_create = yes; then 22153 LIB_DB3=db-3.3 22154else 22155 LIB_DB3="" 22156fi 22157 22158 22159 22160echo "$as_me:$LINENO: checking for db_create in -ldb4" >&5 22161echo $ECHO_N "checking for db_create in -ldb4... $ECHO_C" >&6 22162if test "${ac_cv_lib_db_4_0_db_create+set}" = set; then 22163 echo $ECHO_N "(cached) $ECHO_C" >&6 22164else 22165 ac_check_lib_save_LIBS=$LIBS 22166LIBS="-ldb4 $LIBS" 22167cat >conftest.$ac_ext <<_ACEOF 22168/* confdefs.h. */ 22169_ACEOF 22170cat confdefs.h >>conftest.$ac_ext 22171cat >>conftest.$ac_ext <<_ACEOF 22172/* end confdefs.h. */ 22173 22174/* Override any gcc2 internal prototype to avoid an error. */ 22175#ifdef __cplusplus 22176extern "C" 22177#endif 22178/* We use char because int might match the return type of a gcc2 22179 builtin and then its argument prototype would still apply. */ 22180char db_create (); 22181int 22182main () 22183{ 22184db_create (); 22185 ; 22186 return 0; 22187} 22188_ACEOF 22189rm -f conftest.$ac_objext conftest$ac_exeext 22190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22191 (eval $ac_link) 2>conftest.er1 22192 ac_status=$? 22193 grep -v '^ *+' conftest.er1 >conftest.err 22194 rm -f conftest.er1 22195 cat conftest.err >&5 22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22197 (exit $ac_status); } && 22198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22200 (eval $ac_try) 2>&5 22201 ac_status=$? 22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22203 (exit $ac_status); }; } && 22204 { ac_try='test -s conftest$ac_exeext' 22205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22206 (eval $ac_try) 2>&5 22207 ac_status=$? 22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22209 (exit $ac_status); }; }; then 22210 ac_cv_lib_db_4_0_db_create=yes 22211else 22212 echo "$as_me: failed program was:" >&5 22213sed 's/^/| /' conftest.$ac_ext >&5 22214 22215ac_cv_lib_db_4_0_db_create=no 22216fi 22217rm -f conftest.err conftest.$ac_objext \ 22218 conftest$ac_exeext conftest.$ac_ext 22219LIBS=$ac_check_lib_save_LIBS 22220fi 22221echo "$as_me:$LINENO: result: $ac_cv_lib_db_4_0_db_create" >&5 22222echo "${ECHO_T}$ac_cv_lib_db_4_0_db_create" >&6 22223if test $ac_cv_lib_db_4_0_db_create = yes; then 22224 LIB_DB40=db4 22225else 22226 LIB_DB40="" 22227fi 22228 22229 22230 22231echo "$as_me:$LINENO: checking for db_create in -ldb-4.1" >&5 22232echo $ECHO_N "checking for db_create in -ldb-4.1... $ECHO_C" >&6 22233if test "${ac_cv_lib_db_4_1_db_create+set}" = set; then 22234 echo $ECHO_N "(cached) $ECHO_C" >&6 22235else 22236 ac_check_lib_save_LIBS=$LIBS 22237LIBS="-ldb-4.1 $LIBS" 22238cat >conftest.$ac_ext <<_ACEOF 22239/* confdefs.h. */ 22240_ACEOF 22241cat confdefs.h >>conftest.$ac_ext 22242cat >>conftest.$ac_ext <<_ACEOF 22243/* end confdefs.h. */ 22244 22245/* Override any gcc2 internal prototype to avoid an error. */ 22246#ifdef __cplusplus 22247extern "C" 22248#endif 22249/* We use char because int might match the return type of a gcc2 22250 builtin and then its argument prototype would still apply. */ 22251char db_create (); 22252int 22253main () 22254{ 22255db_create (); 22256 ; 22257 return 0; 22258} 22259_ACEOF 22260rm -f conftest.$ac_objext conftest$ac_exeext 22261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22262 (eval $ac_link) 2>conftest.er1 22263 ac_status=$? 22264 grep -v '^ *+' conftest.er1 >conftest.err 22265 rm -f conftest.er1 22266 cat conftest.err >&5 22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22268 (exit $ac_status); } && 22269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22271 (eval $ac_try) 2>&5 22272 ac_status=$? 22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22274 (exit $ac_status); }; } && 22275 { ac_try='test -s conftest$ac_exeext' 22276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22277 (eval $ac_try) 2>&5 22278 ac_status=$? 22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22280 (exit $ac_status); }; }; then 22281 ac_cv_lib_db_4_1_db_create=yes 22282else 22283 echo "$as_me: failed program was:" >&5 22284sed 's/^/| /' conftest.$ac_ext >&5 22285 22286ac_cv_lib_db_4_1_db_create=no 22287fi 22288rm -f conftest.err conftest.$ac_objext \ 22289 conftest$ac_exeext conftest.$ac_ext 22290LIBS=$ac_check_lib_save_LIBS 22291fi 22292echo "$as_me:$LINENO: result: $ac_cv_lib_db_4_1_db_create" >&5 22293echo "${ECHO_T}$ac_cv_lib_db_4_1_db_create" >&6 22294if test $ac_cv_lib_db_4_1_db_create = yes; then 22295 LIB_DB41=db-4.1 22296else 22297 LIB_DB41="" 22298fi 22299 22300 22301 22302echo "$as_me:$LINENO: checking whether to include bdb support" >&5 22303echo $ECHO_N "checking whether to include bdb support... $ECHO_C" >&6 22304 22305# Check whether --with-bdb or --without-bdb was given. 22306if test "${with_bdb+set}" = set; then 22307 withval="$with_bdb" 22308 ac_bdbversion="$withval" 22309else 22310 ac_bdbversion="yes" 22311fi; 22312if test "$ac_bdbversion" = "no" ; then 22313 echo "$as_me:$LINENO: result: no" >&5 22314echo "${ECHO_T}no" >&6 22315 USE_BDB="" 22316 BDB_VERSION="" 22317else 22318 if test "$ac_bdbversion" = "yes" ; then 22319 echo "$as_me:$LINENO: result: yes" >&5 22320echo "${ECHO_T}yes" >&6 22321 USE_BDB=1 22322 BDB_VERSION="" 22323 else 22324 echo "$as_me:$LINENO: result: yes - version $ac_bdbversion" >&5 22325echo "${ECHO_T}yes - version $ac_bdbversion" >&6 22326 USE_BDB=1 22327 BDB_VERSION="-$ac_bdbversion" 22328 fi 22329fi 22330 22331 22332 22333 22334echo "$as_me:$LINENO: checking whether to build test programs" >&5 22335echo $ECHO_N "checking whether to build test programs... $ECHO_C" >&6 22336# Check whether --enable-test or --disable-test was given. 22337if test "${enable_test+set}" = set; then 22338 enableval="$enable_test" 22339 22340 if test "$enableval" = "no"; then 22341 MAKE_TEST="" 22342 echo "$as_me:$LINENO: result: no" >&5 22343echo "${ECHO_T}no" >&6 22344 else 22345 MAKE_TEST="test" 22346 echo "$as_me:$LINENO: result: yes" >&5 22347echo "${ECHO_T}yes" >&6 22348 fi 22349 22350 22351else 22352 echo "$as_me:$LINENO: result: no" >&5 22353echo "${ECHO_T}no" >&6 22354fi; 22355 22356 22357echo "$as_me:$LINENO: checking whether to use readline" >&5 22358echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6 22359# Check whether --enable-readline or --disable-readline was given. 22360if test "${enable_readline+set}" = set; then 22361 enableval="$enable_readline" 22362 22363 if test "$enableval" = "no"; then 22364 LIB_READLINE="" 22365 echo "$as_me:$LINENO: result: no" >&5 22366echo "${ECHO_T}no" >&6 22367 else 22368 LIB_READLINE="-lreadline -lcurses" 22369 echo "$as_me:$LINENO: result: yes" >&5 22370echo "${ECHO_T}yes" >&6 22371 22372cat >>confdefs.h <<\_ACEOF 22373#define USE_READLINE 22374_ACEOF 22375 22376 fi 22377 22378 22379else 22380 echo "$as_me:$LINENO: result: yes" >&5 22381echo "${ECHO_T}yes" >&6 22382fi; 22383 22384 22385echo "$as_me:$LINENO: checking whether to support SSL/TLS" >&5 22386echo $ECHO_N "checking whether to support SSL/TLS... $ECHO_C" >&6 22387# Check whether --enable-ssl or --disable-ssl was given. 22388if test "${enable_ssl+set}" = set; then 22389 enableval="$enable_ssl" 22390 22391 SSL_LIBS="" 22392 SSL_INCL="" 22393 if test "$enableval" = "no"; then 22394 echo "$as_me:$LINENO: result: no" >&5 22395echo "${ECHO_T}no" >&6 22396 else 22397 if test "$enableval" = "yes"; then 22398 ssldir="/usr" 22399 test -f /usr/local/ssl/include/openssl/ssl.h && ssldir="/usr/local/ssl" 22400 else 22401 ssldir="$enableval" 22402 fi 22403 if test -f "$ssldir/include/openssl/ssl.h"; then 22404 SSL_INCL="-I$ssldir/include" 22405 SSL_LIBS="-L$ssldir/lib -lssl -lcrypto" 22406 22407cat >>confdefs.h <<\_ACEOF 22408#define USE_TLS 1 22409_ACEOF 22410 22411 echo "$as_me:$LINENO: result: yes" >&5 22412echo "${ECHO_T}yes" >&6 22413 else 22414 echo "$as_me:$LINENO: result: no" >&5 22415echo "${ECHO_T}no" >&6 22416 fi 22417 fi 22418 22419 22420 22421else 22422 echo "$as_me:$LINENO: result: no" >&5 22423echo "${ECHO_T}no" >&6 22424fi; 22425 22426 22427echo "$as_me:$LINENO: checking whether to include cdb support" >&5 22428echo $ECHO_N "checking whether to include cdb support... $ECHO_C" >&6 22429 22430# Check whether --with-cdb or --without-cdb was given. 22431if test "${with_cdb+set}" = set; then 22432 withval="$with_cdb" 22433 ac_cdbdir="$withval" 22434else 22435 ac_cdbdir="" 22436fi; 22437if test -z "$ac_cdbdir"; then 22438 echo "$as_me:$LINENO: result: no" >&5 22439echo "${ECHO_T}no" >&6 22440 CDBDIR="" 22441else 22442 echo "$as_me:$LINENO: result: yes" >&5 22443echo "${ECHO_T}yes" >&6 22444 CDBDIR="$ac_cdbdir" 22445 if test ! -f "$ac_cdbdir/cdb.a"; then 22446 echo "cdb directory is wrong" 22447 CDBDIR="" 22448 fi 22449fi 22450 22451 22452 22453echo "$as_me:$LINENO: checking which PDM modules to build" >&5 22454echo $ECHO_N "checking which PDM modules to build... $ECHO_C" >&6 22455 22456# Check whether --with-pdm or --without-pdm was given. 22457if test "${with_pdm+set}" = set; then 22458 withval="$with_pdm" 22459 ac_pdm_list="$withval" 22460else 22461 ac_pdm_list="" 22462fi; 22463if test -z "$ac_pdm_list"; then 22464 ac_pdm_list="any master db2 db3 db4 bdb cdb" 22465fi 22466echo "$as_me:$LINENO: result: $ac_pdm_list" >&5 22467echo "${ECHO_T}$ac_pdm_list" >&6 22468 22469if test -z "$USE_BDB"; then 22470 echo "not using Berkeley DB...removing 'bdb' from PDM list" 22471 ac_pdm_list1=`echo $ac_pdm_list | sed -e 's/bdb//' | sed -e 's/ / /'` 22472 ac_pdm_list="$ac_pdm_list1" 22473fi 22474 22475if test -z "$LIB_DB2"; then 22476 echo "can't find Berkeley DB version 2 libs...removing 'db2' from PDM list" 22477 ac_pdm_list1=`echo $ac_pdm_list | sed -e 's/db2//' | sed -e 's/ / /'` 22478 ac_pdm_list="$ac_pdm_list1" 22479fi 22480 22481if test -z "$LIB_DB3"; then 22482 echo "can't find Berkeley DB version 3 libs...removing 'db3' from PDM list" 22483 ac_pdm_list1=`echo $ac_pdm_list | sed -e 's/db3//' | sed -e 's/ / /'` 22484 ac_pdm_list="$ac_pdm_list1" 22485fi 22486 22487if test -z "$LIB_DB40"; then 22488 echo "can't find Berkeley DB version 4.0 libs...removing 'db4' from PDM list" 22489 ac_pdm_list1=`echo $ac_pdm_list | sed -e 's/db4//' | sed -e 's/ / /'` 22490 ac_pdm_list="$ac_pdm_list1" 22491fi 22492 22493if test -z "$CDBDIR"; then 22494 echo "can't find cdb...removing 'cdb' from PDM list" 22495 ac_pdm_list1=`echo $ac_pdm_list | sed -e 's/cdb//' | sed -e 's/ / /'` 22496 ac_pdm_list="$ac_pdm_list1" 22497fi 22498 22499PDMLIST="$ac_pdm_list" 22500echo "final list of PDM modules to build: $PDMLIST" 22501 22502 22503 22504echo "$as_me:$LINENO: checking where the config directory is" >&5 22505echo $ECHO_N "checking where the config directory is... $ECHO_C" >&6 22506 22507# Check whether --with-confdir or --without-confdir was given. 22508if test "${with_confdir+set}" = set; then 22509 withval="$with_confdir" 22510 ac_conf_dir=$withval 22511else 22512 ac_conf_dir=/etc/popular 22513fi; 22514echo "$as_me:$LINENO: result: $ac_conf_dir" >&5 22515echo "${ECHO_T}$ac_conf_dir" >&6 22516 22517cat >>confdefs.h <<_ACEOF 22518#define CONF_DIR "$ac_conf_dir" 22519_ACEOF 22520 22521 22522 22523# Extract the first word of "perl", so it can be a program name with args. 22524set dummy perl; ac_word=$2 22525echo "$as_me:$LINENO: checking for $ac_word" >&5 22526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 22527if test "${ac_cv_path_PERL_PATH+set}" = set; then 22528 echo $ECHO_N "(cached) $ECHO_C" >&6 22529else 22530 case $PERL_PATH in 22531 [\\/]* | ?:[\\/]*) 22532 ac_cv_path_PERL_PATH="$PERL_PATH" # Let the user override the test with a path. 22533 ;; 22534 *) 22535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22536for as_dir in $PATH 22537do 22538 IFS=$as_save_IFS 22539 test -z "$as_dir" && as_dir=. 22540 for ac_exec_ext in '' $ac_executable_extensions; do 22541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22542 ac_cv_path_PERL_PATH="$as_dir/$ac_word$ac_exec_ext" 22543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22544 break 2 22545 fi 22546done 22547done 22548 22549 test -z "$ac_cv_path_PERL_PATH" && ac_cv_path_PERL_PATH=""unknown"" 22550 ;; 22551esac 22552fi 22553PERL_PATH=$ac_cv_path_PERL_PATH 22554 22555if test -n "$PERL_PATH"; then 22556 echo "$as_me:$LINENO: result: $PERL_PATH" >&5 22557echo "${ECHO_T}$PERL_PATH" >&6 22558else 22559 echo "$as_me:$LINENO: result: no" >&5 22560echo "${ECHO_T}no" >&6 22561fi 22562 22563 22564 22565 22566echo "$as_me:$LINENO: checking whether you have docbook" >&5 22567echo $ECHO_N "checking whether you have docbook... $ECHO_C" >&6 22568# Check whether --enable-docbook or --disable-docbook was given. 22569if test "${enable_docbook+set}" = set; then 22570 enableval="$enable_docbook" 22571 22572 if test "$enableval" = "no"; then 22573 have_sgml="no" 22574 else 22575 # Extract the first word of "sgmltools", so it can be a program name with args. 22576set dummy sgmltools; ac_word=$2 22577echo "$as_me:$LINENO: checking for $ac_word" >&5 22578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 22579if test "${ac_cv_prog_have_sgml+set}" = set; then 22580 echo $ECHO_N "(cached) $ECHO_C" >&6 22581else 22582 if test -n "$have_sgml"; then 22583 ac_cv_prog_have_sgml="$have_sgml" # Let the user override the test. 22584else 22585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22586for as_dir in $PATH 22587do 22588 IFS=$as_save_IFS 22589 test -z "$as_dir" && as_dir=. 22590 for ac_exec_ext in '' $ac_executable_extensions; do 22591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22592 ac_cv_prog_have_sgml="yes" 22593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22594 break 2 22595 fi 22596done 22597done 22598 22599 test -z "$ac_cv_prog_have_sgml" && ac_cv_prog_have_sgml="no" 22600fi 22601fi 22602have_sgml=$ac_cv_prog_have_sgml 22603if test -n "$have_sgml"; then 22604 echo "$as_me:$LINENO: result: $have_sgml" >&5 22605echo "${ECHO_T}$have_sgml" >&6 22606else 22607 echo "$as_me:$LINENO: result: no" >&5 22608echo "${ECHO_T}no" >&6 22609fi 22610 22611 fi 22612 22613 echo "$as_me:$LINENO: result: $have_sgml" >&5 22614echo "${ECHO_T}$have_sgml" >&6 22615 22616else 22617 echo "$as_me:$LINENO: result: no" >&5 22618echo "${ECHO_T}no" >&6 22619fi; 22620 22621 22622if test "$have_sgml" = "yes"; then 22623 MAKE_SGML_TRUE= 22624 MAKE_SGML_FALSE='#' 22625else 22626 MAKE_SGML_TRUE='#' 22627 MAKE_SGML_FALSE= 22628fi 22629 22630 22631echo "$as_me:$LINENO: checking for msg_control (member of msghdr)" >&5 22632echo $ECHO_N "checking for msg_control (member of msghdr)... $ECHO_C" >&6 22633 cat >conftest.$ac_ext <<_ACEOF 22634/* confdefs.h. */ 22635_ACEOF 22636cat confdefs.h >>conftest.$ac_ext 22637cat >>conftest.$ac_ext <<_ACEOF 22638/* end confdefs.h. */ 22639#include <sys/socket.h> 22640 22641_ACEOF 22642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22643 $EGREP "msg_control" >/dev/null 2>&1; then 22644 22645cat >>confdefs.h <<\_ACEOF 22646#define HAVE_MSG_CONTROL 22647_ACEOF 22648 22649 have_msg_control=yes 22650else 22651 have_msg_control="no (msg_accrights?)" 22652fi 22653rm -f conftest* 22654 22655 echo "$as_me:$LINENO: result: $have_msg_control" >&5 22656echo "${ECHO_T}$have_msg_control" >&6 22657 22658 22659if test "$prefix" = "NONE" ; then 22660 22661cat >>confdefs.h <<_ACEOF 22662#define INSTALL_PREFIX "/usr/local" 22663_ACEOF 22664 22665else 22666 22667cat >>confdefs.h <<_ACEOF 22668#define INSTALL_PREFIX "$prefix" 22669_ACEOF 22670 22671fi 22672 22673 22674 22675 22676 22677test "$have_strlcat" = "no" && LIB_STRL="\$(top_builddir)/lib/libstrl.la" 22678test "$have_getopt" = "no" && LIB_GETOPT="\$(top_builddir)/lib/libgetopt.la" 22679 22680 22681 22682 22683 ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile test/Makefile pdm/Makefile pdm/any/Makefile pdm/master/Makefile pdm/db2/Makefile pdm/db3/Makefile pdm/db4/Makefile pdm/bdb/Makefile pdm/cdb/Makefile pdm/skel/Makefile doc/Makefile doc/log/Makefile doc/man/Makefile redhat/Makefile" 22684cat >confcache <<\_ACEOF 22685# This file is a shell script that caches the results of configure 22686# tests run on this system so they can be shared between configure 22687# scripts and configure runs, see configure's option --config-cache. 22688# It is not useful on other systems. If it contains results you don't 22689# want to keep, you may remove or edit it. 22690# 22691# config.status only pays attention to the cache file if you give it 22692# the --recheck option to rerun configure. 22693# 22694# `ac_cv_env_foo' variables (set or unset) will be overridden when 22695# loading this file, other *unset* `ac_cv_foo' will be assigned the 22696# following values. 22697 22698_ACEOF 22699 22700# The following way of writing the cache mishandles newlines in values, 22701# but we know of no workaround that is simple, portable, and efficient. 22702# So, don't put newlines in cache variables' values. 22703# Ultrix sh set writes to stderr and can't be redirected directly, 22704# and sets the high bit in the cache file unless we assign to the vars. 22705{ 22706 (set) 2>&1 | 22707 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22708 *ac_space=\ *) 22709 # `set' does not quote correctly, so add quotes (double-quote 22710 # substitution turns \\\\ into \\, and sed turns \\ into \). 22711 sed -n \ 22712 "s/'/'\\\\''/g; 22713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22714 ;; 22715 *) 22716 # `set' quotes correctly as required by POSIX, so do not add quotes. 22717 sed -n \ 22718 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22719 ;; 22720 esac; 22721} | 22722 sed ' 22723 t clear 22724 : clear 22725 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22726 t end 22727 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22728 : end' >>confcache 22729if diff $cache_file confcache >/dev/null 2>&1; then :; else 22730 if test -w $cache_file; then 22731 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22732 cat confcache >$cache_file 22733 else 22734 echo "not updating unwritable cache $cache_file" 22735 fi 22736fi 22737rm -f confcache 22738 22739test "x$prefix" = xNONE && prefix=$ac_default_prefix 22740# Let make expand exec_prefix. 22741test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22742 22743# VPATH may cause trouble with some makes, so we remove $(srcdir), 22744# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22745# trailing colons and then remove the whole line if VPATH becomes empty 22746# (actually we leave an empty line to preserve line numbers). 22747if test "x$srcdir" = x.; then 22748 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22749s/:*\$(srcdir):*/:/; 22750s/:*\${srcdir}:*/:/; 22751s/:*@srcdir@:*/:/; 22752s/^\([^=]*=[ ]*\):*/\1/; 22753s/:*$//; 22754s/^[^=]*=[ ]*$//; 22755}' 22756fi 22757 22758DEFS=-DHAVE_CONFIG_H 22759 22760ac_libobjs= 22761ac_ltlibobjs= 22762for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22763 # 1. Remove the extension, and $U if already installed. 22764 ac_i=`echo "$ac_i" | 22765 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22766 # 2. Add them. 22767 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 22768 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 22769done 22770LIBOBJS=$ac_libobjs 22771 22772LTLIBOBJS=$ac_ltlibobjs 22773 22774 22775 22776: ${CONFIG_STATUS=./config.status} 22777ac_clean_files_save=$ac_clean_files 22778ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22779{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22780echo "$as_me: creating $CONFIG_STATUS" >&6;} 22781cat >$CONFIG_STATUS <<_ACEOF 22782#! $SHELL 22783# Generated by $as_me. 22784# Run this file to recreate the current configuration. 22785# Compiler output produced by configure, useful for debugging 22786# configure, is in config.log if it exists. 22787 22788debug=false 22789ac_cs_recheck=false 22790ac_cs_silent=false 22791SHELL=\${CONFIG_SHELL-$SHELL} 22792_ACEOF 22793 22794cat >>$CONFIG_STATUS <<\_ACEOF 22795## --------------------- ## 22796## M4sh Initialization. ## 22797## --------------------- ## 22798 22799# Be Bourne compatible 22800if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22801 emulate sh 22802 NULLCMD=: 22803 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22804 # is contrary to our usage. Disable this feature. 22805 alias -g '${1+"$@"}'='"$@"' 22806elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22807 set -o posix 22808fi 22809DUALCASE=1; export DUALCASE # for MKS sh 22810 22811# Support unset when possible. 22812if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22813 as_unset=unset 22814else 22815 as_unset=false 22816fi 22817 22818 22819# Work around bugs in pre-3.0 UWIN ksh. 22820$as_unset ENV MAIL MAILPATH 22821PS1='$ ' 22822PS2='> ' 22823PS4='+ ' 22824 22825# NLS nuisances. 22826for as_var in \ 22827 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22828 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22829 LC_TELEPHONE LC_TIME 22830do 22831 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22832 eval $as_var=C; export $as_var 22833 else 22834 $as_unset $as_var 22835 fi 22836done 22837 22838# Required to use basename. 22839if expr a : '\(a\)' >/dev/null 2>&1; then 22840 as_expr=expr 22841else 22842 as_expr=false 22843fi 22844 22845if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 22846 as_basename=basename 22847else 22848 as_basename=false 22849fi 22850 22851 22852# Name of the executable. 22853as_me=`$as_basename "$0" || 22854$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22855 X"$0" : 'X\(//\)$' \| \ 22856 X"$0" : 'X\(/\)$' \| \ 22857 . : '\(.\)' 2>/dev/null || 22858echo X/"$0" | 22859 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 22860 /^X\/\(\/\/\)$/{ s//\1/; q; } 22861 /^X\/\(\/\).*/{ s//\1/; q; } 22862 s/.*/./; q'` 22863 22864 22865# PATH needs CR, and LINENO needs CR and PATH. 22866# Avoid depending upon Character Ranges. 22867as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22868as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22869as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22870as_cr_digits='0123456789' 22871as_cr_alnum=$as_cr_Letters$as_cr_digits 22872 22873# The user is always right. 22874if test "${PATH_SEPARATOR+set}" != set; then 22875 echo "#! /bin/sh" >conf$$.sh 22876 echo "exit 0" >>conf$$.sh 22877 chmod +x conf$$.sh 22878 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22879 PATH_SEPARATOR=';' 22880 else 22881 PATH_SEPARATOR=: 22882 fi 22883 rm -f conf$$.sh 22884fi 22885 22886 22887 as_lineno_1=$LINENO 22888 as_lineno_2=$LINENO 22889 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22890 test "x$as_lineno_1" != "x$as_lineno_2" && 22891 test "x$as_lineno_3" = "x$as_lineno_2" || { 22892 # Find who we are. Look in the path if we contain no path at all 22893 # relative or not. 22894 case $0 in 22895 *[\\/]* ) as_myself=$0 ;; 22896 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22897for as_dir in $PATH 22898do 22899 IFS=$as_save_IFS 22900 test -z "$as_dir" && as_dir=. 22901 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22902done 22903 22904 ;; 22905 esac 22906 # We did not find ourselves, most probably we were run as `sh COMMAND' 22907 # in which case we are not to be found in the path. 22908 if test "x$as_myself" = x; then 22909 as_myself=$0 22910 fi 22911 if test ! -f "$as_myself"; then 22912 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 22913echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 22914 { (exit 1); exit 1; }; } 22915 fi 22916 case $CONFIG_SHELL in 22917 '') 22918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22919for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 22920do 22921 IFS=$as_save_IFS 22922 test -z "$as_dir" && as_dir=. 22923 for as_base in sh bash ksh sh5; do 22924 case $as_dir in 22925 /*) 22926 if ("$as_dir/$as_base" -c ' 22927 as_lineno_1=$LINENO 22928 as_lineno_2=$LINENO 22929 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22930 test "x$as_lineno_1" != "x$as_lineno_2" && 22931 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 22932 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 22933 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 22934 CONFIG_SHELL=$as_dir/$as_base 22935 export CONFIG_SHELL 22936 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 22937 fi;; 22938 esac 22939 done 22940done 22941;; 22942 esac 22943 22944 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22945 # uniformly replaced by the line number. The first 'sed' inserts a 22946 # line-number line before each line; the second 'sed' does the real 22947 # work. The second script uses 'N' to pair each line-number line 22948 # with the numbered line, and appends trailing '-' during 22949 # substitution so that $LINENO is not a special case at line end. 22950 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22951 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 22952 sed '=' <$as_myself | 22953 sed ' 22954 N 22955 s,$,-, 22956 : loop 22957 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 22958 t loop 22959 s,-$,, 22960 s,^['$as_cr_digits']*\n,, 22961 ' >$as_me.lineno && 22962 chmod +x $as_me.lineno || 22963 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 22964echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 22965 { (exit 1); exit 1; }; } 22966 22967 # Don't try to exec as it changes $[0], causing all sort of problems 22968 # (the dirname of $[0] is not the place where we might find the 22969 # original and so on. Autoconf is especially sensible to this). 22970 . ./$as_me.lineno 22971 # Exit status is that of the last command. 22972 exit 22973} 22974 22975 22976case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 22977 *c*,-n*) ECHO_N= ECHO_C=' 22978' ECHO_T=' ' ;; 22979 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 22980 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 22981esac 22982 22983if expr a : '\(a\)' >/dev/null 2>&1; then 22984 as_expr=expr 22985else 22986 as_expr=false 22987fi 22988 22989rm -f conf$$ conf$$.exe conf$$.file 22990echo >conf$$.file 22991if ln -s conf$$.file conf$$ 2>/dev/null; then 22992 # We could just check for DJGPP; but this test a) works b) is more generic 22993 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 22994 if test -f conf$$.exe; then 22995 # Don't use ln at all; we don't have any links 22996 as_ln_s='cp -p' 22997 else 22998 as_ln_s='ln -s' 22999 fi 23000elif ln conf$$.file conf$$ 2>/dev/null; then 23001 as_ln_s=ln 23002else 23003 as_ln_s='cp -p' 23004fi 23005rm -f conf$$ conf$$.exe conf$$.file 23006 23007if mkdir -p . 2>/dev/null; then 23008 as_mkdir_p=: 23009else 23010 test -d ./-p && rmdir ./-p 23011 as_mkdir_p=false 23012fi 23013 23014as_executable_p="test -f" 23015 23016# Sed expression to map a string onto a valid CPP name. 23017as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23018 23019# Sed expression to map a string onto a valid variable name. 23020as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23021 23022 23023# IFS 23024# We need space, tab and new line, in precisely that order. 23025as_nl=' 23026' 23027IFS=" $as_nl" 23028 23029# CDPATH. 23030$as_unset CDPATH 23031 23032exec 6>&1 23033 23034# Open the log real soon, to keep \$[0] and so on meaningful, and to 23035# report actual input values of CONFIG_FILES etc. instead of their 23036# values after options handling. Logging --version etc. is OK. 23037exec 5>>config.log 23038{ 23039 echo 23040 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23041## Running $as_me. ## 23042_ASBOX 23043} >&5 23044cat >&5 <<_CSEOF 23045 23046This file was extended by $as_me, which was 23047generated by GNU Autoconf 2.59. Invocation command line was 23048 23049 CONFIG_FILES = $CONFIG_FILES 23050 CONFIG_HEADERS = $CONFIG_HEADERS 23051 CONFIG_LINKS = $CONFIG_LINKS 23052 CONFIG_COMMANDS = $CONFIG_COMMANDS 23053 $ $0 $@ 23054 23055_CSEOF 23056echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 23057echo >&5 23058_ACEOF 23059 23060# Files that config.status was made for. 23061if test -n "$ac_config_files"; then 23062 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 23063fi 23064 23065if test -n "$ac_config_headers"; then 23066 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 23067fi 23068 23069if test -n "$ac_config_links"; then 23070 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 23071fi 23072 23073if test -n "$ac_config_commands"; then 23074 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 23075fi 23076 23077cat >>$CONFIG_STATUS <<\_ACEOF 23078 23079ac_cs_usage="\ 23080\`$as_me' instantiates files from templates according to the 23081current configuration. 23082 23083Usage: $0 [OPTIONS] [FILE]... 23084 23085 -h, --help print this help, then exit 23086 -V, --version print version number, then exit 23087 -q, --quiet do not print progress messages 23088 -d, --debug don't remove temporary files 23089 --recheck update $as_me by reconfiguring in the same conditions 23090 --file=FILE[:TEMPLATE] 23091 instantiate the configuration file FILE 23092 --header=FILE[:TEMPLATE] 23093 instantiate the configuration header FILE 23094 23095Configuration files: 23096$config_files 23097 23098Configuration headers: 23099$config_headers 23100 23101Configuration commands: 23102$config_commands 23103 23104Report bugs to <bug-autoconf@gnu.org>." 23105_ACEOF 23106 23107cat >>$CONFIG_STATUS <<_ACEOF 23108ac_cs_version="\\ 23109config.status 23110configured by $0, generated by GNU Autoconf 2.59, 23111 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 23112 23113Copyright (C) 2003 Free Software Foundation, Inc. 23114This config.status script is free software; the Free Software Foundation 23115gives unlimited permission to copy, distribute and modify it." 23116srcdir=$srcdir 23117INSTALL="$INSTALL" 23118_ACEOF 23119 23120cat >>$CONFIG_STATUS <<\_ACEOF 23121# If no file are specified by the user, then we need to provide default 23122# value. By we need to know if files were specified by the user. 23123ac_need_defaults=: 23124while test $# != 0 23125do 23126 case $1 in 23127 --*=*) 23128 ac_option=`expr "x$1" : 'x\([^=]*\)='` 23129 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 23130 ac_shift=: 23131 ;; 23132 -*) 23133 ac_option=$1 23134 ac_optarg=$2 23135 ac_shift=shift 23136 ;; 23137 *) # This is not an option, so the user has probably given explicit 23138 # arguments. 23139 ac_option=$1 23140 ac_need_defaults=false;; 23141 esac 23142 23143 case $ac_option in 23144 # Handling of the options. 23145_ACEOF 23146cat >>$CONFIG_STATUS <<\_ACEOF 23147 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23148 ac_cs_recheck=: ;; 23149 --version | --vers* | -V ) 23150 echo "$ac_cs_version"; exit 0 ;; 23151 --he | --h) 23152 # Conflict between --help and --header 23153 { { echo "$as_me:$LINENO: error: ambiguous option: $1 23154Try \`$0 --help' for more information." >&5 23155echo "$as_me: error: ambiguous option: $1 23156Try \`$0 --help' for more information." >&2;} 23157 { (exit 1); exit 1; }; };; 23158 --help | --hel | -h ) 23159 echo "$ac_cs_usage"; exit 0 ;; 23160 --debug | --d* | -d ) 23161 debug=: ;; 23162 --file | --fil | --fi | --f ) 23163 $ac_shift 23164 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23165 ac_need_defaults=false;; 23166 --header | --heade | --head | --hea ) 23167 $ac_shift 23168 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23169 ac_need_defaults=false;; 23170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23171 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23172 ac_cs_silent=: ;; 23173 23174 # This is an error. 23175 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 23176Try \`$0 --help' for more information." >&5 23177echo "$as_me: error: unrecognized option: $1 23178Try \`$0 --help' for more information." >&2;} 23179 { (exit 1); exit 1; }; } ;; 23180 23181 *) ac_config_targets="$ac_config_targets $1" ;; 23182 23183 esac 23184 shift 23185done 23186 23187ac_configure_extra_args= 23188 23189if $ac_cs_silent; then 23190 exec 6>/dev/null 23191 ac_configure_extra_args="$ac_configure_extra_args --silent" 23192fi 23193 23194_ACEOF 23195cat >>$CONFIG_STATUS <<_ACEOF 23196if \$ac_cs_recheck; then 23197 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23198 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23199fi 23200 23201_ACEOF 23202 23203cat >>$CONFIG_STATUS <<_ACEOF 23204# 23205# INIT-COMMANDS section. 23206# 23207 23208 23209 23210_ACEOF 23211 23212 23213 23214cat >>$CONFIG_STATUS <<\_ACEOF 23215for ac_config_target in $ac_config_targets 23216do 23217 case "$ac_config_target" in 23218 # Handling of arguments. 23219 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23220 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 23221 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23222 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 23223 "pdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES pdm/Makefile" ;; 23224 "pdm/any/Makefile" ) CONFIG_FILES="$CONFIG_FILES pdm/any/Makefile" ;; 23225 "pdm/master/Makefile" ) CONFIG_FILES="$CONFIG_FILES pdm/master/Makefile" ;; 23226 "pdm/db2/Makefile" ) CONFIG_FILES="$CONFIG_FILES pdm/db2/Makefile" ;; 23227 "pdm/db3/Makefile" ) CONFIG_FILES="$CONFIG_FILES pdm/db3/Makefile" ;; 23228 "pdm/db4/Makefile" ) CONFIG_FILES="$CONFIG_FILES pdm/db4/Makefile" ;; 23229 "pdm/bdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES pdm/bdb/Makefile" ;; 23230 "pdm/cdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES pdm/cdb/Makefile" ;; 23231 "pdm/skel/Makefile" ) CONFIG_FILES="$CONFIG_FILES pdm/skel/Makefile" ;; 23232 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 23233 "doc/log/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/log/Makefile" ;; 23234 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 23235 "redhat/Makefile" ) CONFIG_FILES="$CONFIG_FILES redhat/Makefile" ;; 23236 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 23237 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23238 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23239echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23240 { (exit 1); exit 1; }; };; 23241 esac 23242done 23243 23244# If the user did not use the arguments to specify the items to instantiate, 23245# then the envvar interface is used. Set only those that are not. 23246# We use the long form for the default assignment because of an extremely 23247# bizarre bug on SunOS 4.1.3. 23248if $ac_need_defaults; then 23249 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23250 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23251 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23252fi 23253 23254# Have a temporary directory for convenience. Make it in the build tree 23255# simply because there is no reason to put it here, and in addition, 23256# creating and moving files from /tmp can sometimes cause problems. 23257# Create a temporary directory, and hook for its removal unless debugging. 23258$debug || 23259{ 23260 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 23261 trap '{ (exit 1); exit 1; }' 1 2 13 15 23262} 23263 23264# Create a (secure) tmp directory for tmp files. 23265 23266{ 23267 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 23268 test -n "$tmp" && test -d "$tmp" 23269} || 23270{ 23271 tmp=./confstat$$-$RANDOM 23272 (umask 077 && mkdir $tmp) 23273} || 23274{ 23275 echo "$me: cannot create a temporary directory in ." >&2 23276 { (exit 1); exit 1; } 23277} 23278 23279_ACEOF 23280 23281cat >>$CONFIG_STATUS <<_ACEOF 23282 23283# 23284# CONFIG_FILES section. 23285# 23286 23287# No need to generate the scripts if there are no CONFIG_FILES. 23288# This happens for instance when ./config.status config.h 23289if test -n "\$CONFIG_FILES"; then 23290 # Protect against being on the right side of a sed subst in config.status. 23291 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 23292 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 23293s,@SHELL@,$SHELL,;t t 23294s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 23295s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 23296s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 23297s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 23298s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 23299s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 23300s,@exec_prefix@,$exec_prefix,;t t 23301s,@prefix@,$prefix,;t t 23302s,@program_transform_name@,$program_transform_name,;t t 23303s,@bindir@,$bindir,;t t 23304s,@sbindir@,$sbindir,;t t 23305s,@libexecdir@,$libexecdir,;t t 23306s,@datadir@,$datadir,;t t 23307s,@sysconfdir@,$sysconfdir,;t t 23308s,@sharedstatedir@,$sharedstatedir,;t t 23309s,@localstatedir@,$localstatedir,;t t 23310s,@libdir@,$libdir,;t t 23311s,@includedir@,$includedir,;t t 23312s,@oldincludedir@,$oldincludedir,;t t 23313s,@infodir@,$infodir,;t t 23314s,@mandir@,$mandir,;t t 23315s,@build_alias@,$build_alias,;t t 23316s,@host_alias@,$host_alias,;t t 23317s,@target_alias@,$target_alias,;t t 23318s,@DEFS@,$DEFS,;t t 23319s,@ECHO_C@,$ECHO_C,;t t 23320s,@ECHO_N@,$ECHO_N,;t t 23321s,@ECHO_T@,$ECHO_T,;t t 23322s,@LIBS@,$LIBS,;t t 23323s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 23324s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 23325s,@INSTALL_DATA@,$INSTALL_DATA,;t t 23326s,@PACKAGE@,$PACKAGE,;t t 23327s,@VERSION@,$VERSION,;t t 23328s,@ACLOCAL@,$ACLOCAL,;t t 23329s,@AUTOCONF@,$AUTOCONF,;t t 23330s,@AUTOMAKE@,$AUTOMAKE,;t t 23331s,@AUTOHEADER@,$AUTOHEADER,;t t 23332s,@MAKEINFO@,$MAKEINFO,;t t 23333s,@SET_MAKE@,$SET_MAKE,;t t 23334s,@build@,$build,;t t 23335s,@build_cpu@,$build_cpu,;t t 23336s,@build_vendor@,$build_vendor,;t t 23337s,@build_os@,$build_os,;t t 23338s,@host@,$host,;t t 23339s,@host_cpu@,$host_cpu,;t t 23340s,@host_vendor@,$host_vendor,;t t 23341s,@host_os@,$host_os,;t t 23342s,@CC@,$CC,;t t 23343s,@CFLAGS@,$CFLAGS,;t t 23344s,@LDFLAGS@,$LDFLAGS,;t t 23345s,@CPPFLAGS@,$CPPFLAGS,;t t 23346s,@ac_ct_CC@,$ac_ct_CC,;t t 23347s,@EXEEXT@,$EXEEXT,;t t 23348s,@OBJEXT@,$OBJEXT,;t t 23349s,@EGREP@,$EGREP,;t t 23350s,@LN_S@,$LN_S,;t t 23351s,@ECHO@,$ECHO,;t t 23352s,@AR@,$AR,;t t 23353s,@ac_ct_AR@,$ac_ct_AR,;t t 23354s,@RANLIB@,$RANLIB,;t t 23355s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 23356s,@STRIP@,$STRIP,;t t 23357s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 23358s,@CPP@,$CPP,;t t 23359s,@CXX@,$CXX,;t t 23360s,@CXXFLAGS@,$CXXFLAGS,;t t 23361s,@ac_ct_CXX@,$ac_ct_CXX,;t t 23362s,@CXXCPP@,$CXXCPP,;t t 23363s,@F77@,$F77,;t t 23364s,@FFLAGS@,$FFLAGS,;t t 23365s,@ac_ct_F77@,$ac_ct_F77,;t t 23366s,@LIBTOOL@,$LIBTOOL,;t t 23367s,@HAVE_STRLCAT_TRUE@,$HAVE_STRLCAT_TRUE,;t t 23368s,@HAVE_STRLCAT_FALSE@,$HAVE_STRLCAT_FALSE,;t t 23369s,@HAVE_GETOPT_TRUE@,$HAVE_GETOPT_TRUE,;t t 23370s,@HAVE_GETOPT_FALSE@,$HAVE_GETOPT_FALSE,;t t 23371s,@LIB_DB2@,$LIB_DB2,;t t 23372s,@LIB_DB3@,$LIB_DB3,;t t 23373s,@LIB_DB40@,$LIB_DB40,;t t 23374s,@LIB_DB41@,$LIB_DB41,;t t 23375s,@USE_BDB@,$USE_BDB,;t t 23376s,@BDB_VERSION@,$BDB_VERSION,;t t 23377s,@MAKE_TEST@,$MAKE_TEST,;t t 23378s,@LIB_READLINE@,$LIB_READLINE,;t t 23379s,@SSL_LIBS@,$SSL_LIBS,;t t 23380s,@SSL_INCL@,$SSL_INCL,;t t 23381s,@CDBDIR@,$CDBDIR,;t t 23382s,@PDMLIST@,$PDMLIST,;t t 23383s,@PERL_PATH@,$PERL_PATH,;t t 23384s,@have_sgml@,$have_sgml,;t t 23385s,@MAKE_SGML_TRUE@,$MAKE_SGML_TRUE,;t t 23386s,@MAKE_SGML_FALSE@,$MAKE_SGML_FALSE,;t t 23387s,@LIB_STRL@,$LIB_STRL,;t t 23388s,@LIB_GETOPT@,$LIB_GETOPT,;t t 23389s,@LIBOBJS@,$LIBOBJS,;t t 23390s,@LTLIBOBJS@,$LTLIBOBJS,;t t 23391CEOF 23392 23393_ACEOF 23394 23395 cat >>$CONFIG_STATUS <<\_ACEOF 23396 # Split the substitutions into bite-sized pieces for seds with 23397 # small command number limits, like on Digital OSF/1 and HP-UX. 23398 ac_max_sed_lines=48 23399 ac_sed_frag=1 # Number of current file. 23400 ac_beg=1 # First line for current file. 23401 ac_end=$ac_max_sed_lines # Line after last line for current file. 23402 ac_more_lines=: 23403 ac_sed_cmds= 23404 while $ac_more_lines; do 23405 if test $ac_beg -gt 1; then 23406 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23407 else 23408 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23409 fi 23410 if test ! -s $tmp/subs.frag; then 23411 ac_more_lines=false 23412 else 23413 # The purpose of the label and of the branching condition is to 23414 # speed up the sed processing (if there are no `@' at all, there 23415 # is no need to browse any of the substitutions). 23416 # These are the two extra sed commands mentioned above. 23417 (echo ':t 23418 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 23419 if test -z "$ac_sed_cmds"; then 23420 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 23421 else 23422 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 23423 fi 23424 ac_sed_frag=`expr $ac_sed_frag + 1` 23425 ac_beg=$ac_end 23426 ac_end=`expr $ac_end + $ac_max_sed_lines` 23427 fi 23428 done 23429 if test -z "$ac_sed_cmds"; then 23430 ac_sed_cmds=cat 23431 fi 23432fi # test -n "$CONFIG_FILES" 23433 23434_ACEOF 23435cat >>$CONFIG_STATUS <<\_ACEOF 23436for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 23437 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23438 case $ac_file in 23439 - | *:- | *:-:* ) # input from stdin 23440 cat >$tmp/stdin 23441 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23442 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23443 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23444 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23445 * ) ac_file_in=$ac_file.in ;; 23446 esac 23447 23448 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 23449 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23450$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23451 X"$ac_file" : 'X\(//\)[^/]' \| \ 23452 X"$ac_file" : 'X\(//\)$' \| \ 23453 X"$ac_file" : 'X\(/\)' \| \ 23454 . : '\(.\)' 2>/dev/null || 23455echo X"$ac_file" | 23456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23457 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23458 /^X\(\/\/\)$/{ s//\1/; q; } 23459 /^X\(\/\).*/{ s//\1/; q; } 23460 s/.*/./; q'` 23461 { if $as_mkdir_p; then 23462 mkdir -p "$ac_dir" 23463 else 23464 as_dir="$ac_dir" 23465 as_dirs= 23466 while test ! -d "$as_dir"; do 23467 as_dirs="$as_dir $as_dirs" 23468 as_dir=`(dirname "$as_dir") 2>/dev/null || 23469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23470 X"$as_dir" : 'X\(//\)[^/]' \| \ 23471 X"$as_dir" : 'X\(//\)$' \| \ 23472 X"$as_dir" : 'X\(/\)' \| \ 23473 . : '\(.\)' 2>/dev/null || 23474echo X"$as_dir" | 23475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23476 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23477 /^X\(\/\/\)$/{ s//\1/; q; } 23478 /^X\(\/\).*/{ s//\1/; q; } 23479 s/.*/./; q'` 23480 done 23481 test ! -n "$as_dirs" || mkdir $as_dirs 23482 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23483echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23484 { (exit 1); exit 1; }; }; } 23485 23486 ac_builddir=. 23487 23488if test "$ac_dir" != .; then 23489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23490 # A "../" for each directory in $ac_dir_suffix. 23491 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23492else 23493 ac_dir_suffix= ac_top_builddir= 23494fi 23495 23496case $srcdir in 23497 .) # No --srcdir option. We are building in place. 23498 ac_srcdir=. 23499 if test -z "$ac_top_builddir"; then 23500 ac_top_srcdir=. 23501 else 23502 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23503 fi ;; 23504 [\\/]* | ?:[\\/]* ) # Absolute path. 23505 ac_srcdir=$srcdir$ac_dir_suffix; 23506 ac_top_srcdir=$srcdir ;; 23507 *) # Relative path. 23508 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23509 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23510esac 23511 23512# Do not use `cd foo && pwd` to compute absolute paths, because 23513# the directories may not exist. 23514case `pwd` in 23515.) ac_abs_builddir="$ac_dir";; 23516*) 23517 case "$ac_dir" in 23518 .) ac_abs_builddir=`pwd`;; 23519 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23520 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23521 esac;; 23522esac 23523case $ac_abs_builddir in 23524.) ac_abs_top_builddir=${ac_top_builddir}.;; 23525*) 23526 case ${ac_top_builddir}. in 23527 .) ac_abs_top_builddir=$ac_abs_builddir;; 23528 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23529 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23530 esac;; 23531esac 23532case $ac_abs_builddir in 23533.) ac_abs_srcdir=$ac_srcdir;; 23534*) 23535 case $ac_srcdir in 23536 .) ac_abs_srcdir=$ac_abs_builddir;; 23537 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23538 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23539 esac;; 23540esac 23541case $ac_abs_builddir in 23542.) ac_abs_top_srcdir=$ac_top_srcdir;; 23543*) 23544 case $ac_top_srcdir in 23545 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23546 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23547 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23548 esac;; 23549esac 23550 23551 23552 case $INSTALL in 23553 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23554 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 23555 esac 23556 23557 # Let's still pretend it is `configure' which instantiates (i.e., don't 23558 # use $as_me), people would be surprised to read: 23559 # /* config.h. Generated by config.status. */ 23560 if test x"$ac_file" = x-; then 23561 configure_input= 23562 else 23563 configure_input="$ac_file. " 23564 fi 23565 configure_input=$configure_input"Generated from `echo $ac_file_in | 23566 sed 's,.*/,,'` by configure." 23567 23568 # First look for the input files in the build tree, otherwise in the 23569 # src tree. 23570 ac_file_inputs=`IFS=: 23571 for f in $ac_file_in; do 23572 case $f in 23573 -) echo $tmp/stdin ;; 23574 [\\/$]*) 23575 # Absolute (can't be DOS-style, as IFS=:) 23576 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23577echo "$as_me: error: cannot find input file: $f" >&2;} 23578 { (exit 1); exit 1; }; } 23579 echo "$f";; 23580 *) # Relative 23581 if test -f "$f"; then 23582 # Build tree 23583 echo "$f" 23584 elif test -f "$srcdir/$f"; then 23585 # Source tree 23586 echo "$srcdir/$f" 23587 else 23588 # /dev/null tree 23589 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23590echo "$as_me: error: cannot find input file: $f" >&2;} 23591 { (exit 1); exit 1; }; } 23592 fi;; 23593 esac 23594 done` || { (exit 1); exit 1; } 23595 23596 if test x"$ac_file" != x-; then 23597 { echo "$as_me:$LINENO: creating $ac_file" >&5 23598echo "$as_me: creating $ac_file" >&6;} 23599 rm -f "$ac_file" 23600 fi 23601_ACEOF 23602cat >>$CONFIG_STATUS <<_ACEOF 23603 sed "$ac_vpsub 23604$extrasub 23605_ACEOF 23606cat >>$CONFIG_STATUS <<\_ACEOF 23607:t 23608/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23609s,@configure_input@,$configure_input,;t t 23610s,@srcdir@,$ac_srcdir,;t t 23611s,@abs_srcdir@,$ac_abs_srcdir,;t t 23612s,@top_srcdir@,$ac_top_srcdir,;t t 23613s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23614s,@builddir@,$ac_builddir,;t t 23615s,@abs_builddir@,$ac_abs_builddir,;t t 23616s,@top_builddir@,$ac_top_builddir,;t t 23617s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23618s,@INSTALL@,$ac_INSTALL,;t t 23619" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23620 rm -f $tmp/stdin 23621 if test x"$ac_file" != x-; then 23622 mv $tmp/out $ac_file 23623 else 23624 cat $tmp/out 23625 rm -f $tmp/out 23626 fi 23627 23628done 23629_ACEOF 23630cat >>$CONFIG_STATUS <<\_ACEOF 23631 23632# 23633# CONFIG_HEADER section. 23634# 23635 23636# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 23637# NAME is the cpp macro being defined and VALUE is the value it is being given. 23638# 23639# ac_d sets the value in "#define NAME VALUE" lines. 23640ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 23641ac_dB='[ ].*$,\1#\2' 23642ac_dC=' ' 23643ac_dD=',;t' 23644# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 23645ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 23646ac_uB='$,\1#\2define\3' 23647ac_uC=' ' 23648ac_uD=',;t' 23649 23650for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 23651 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23652 case $ac_file in 23653 - | *:- | *:-:* ) # input from stdin 23654 cat >$tmp/stdin 23655 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23656 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23657 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23658 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23659 * ) ac_file_in=$ac_file.in ;; 23660 esac 23661 23662 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 23663echo "$as_me: creating $ac_file" >&6;} 23664 23665 # First look for the input files in the build tree, otherwise in the 23666 # src tree. 23667 ac_file_inputs=`IFS=: 23668 for f in $ac_file_in; do 23669 case $f in 23670 -) echo $tmp/stdin ;; 23671 [\\/$]*) 23672 # Absolute (can't be DOS-style, as IFS=:) 23673 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23674echo "$as_me: error: cannot find input file: $f" >&2;} 23675 { (exit 1); exit 1; }; } 23676 # Do quote $f, to prevent DOS paths from being IFS'd. 23677 echo "$f";; 23678 *) # Relative 23679 if test -f "$f"; then 23680 # Build tree 23681 echo "$f" 23682 elif test -f "$srcdir/$f"; then 23683 # Source tree 23684 echo "$srcdir/$f" 23685 else 23686 # /dev/null tree 23687 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23688echo "$as_me: error: cannot find input file: $f" >&2;} 23689 { (exit 1); exit 1; }; } 23690 fi;; 23691 esac 23692 done` || { (exit 1); exit 1; } 23693 # Remove the trailing spaces. 23694 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 23695 23696_ACEOF 23697 23698# Transform confdefs.h into two sed scripts, `conftest.defines' and 23699# `conftest.undefs', that substitutes the proper values into 23700# config.h.in to produce config.h. The first handles `#define' 23701# templates, and the second `#undef' templates. 23702# And first: Protect against being on the right side of a sed subst in 23703# config.status. Protect against being in an unquoted here document 23704# in config.status. 23705rm -f conftest.defines conftest.undefs 23706# Using a here document instead of a string reduces the quoting nightmare. 23707# Putting comments in sed scripts is not portable. 23708# 23709# `end' is used to avoid that the second main sed command (meant for 23710# 0-ary CPP macros) applies to n-ary macro definitions. 23711# See the Autoconf documentation for `clear'. 23712cat >confdef2sed.sed <<\_ACEOF 23713s/[\\&,]/\\&/g 23714s,[\\$`],\\&,g 23715t clear 23716: clear 23717s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 23718t end 23719s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 23720: end 23721_ACEOF 23722# If some macros were called several times there might be several times 23723# the same #defines, which is useless. Nevertheless, we may not want to 23724# sort them, since we want the *last* AC-DEFINE to be honored. 23725uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 23726sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 23727rm -f confdef2sed.sed 23728 23729# This sed command replaces #undef with comments. This is necessary, for 23730# example, in the case of _POSIX_SOURCE, which is predefined and required 23731# on some systems where configure will not decide to define it. 23732cat >>conftest.undefs <<\_ACEOF 23733s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 23734_ACEOF 23735 23736# Break up conftest.defines because some shells have a limit on the size 23737# of here documents, and old seds have small limits too (100 cmds). 23738echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 23739echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 23740echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 23741echo ' :' >>$CONFIG_STATUS 23742rm -f conftest.tail 23743while grep . conftest.defines >/dev/null 23744do 23745 # Write a limited-size here document to $tmp/defines.sed. 23746 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 23747 # Speed up: don't consider the non `#define' lines. 23748 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 23749 # Work around the forget-to-reset-the-flag bug. 23750 echo 't clr' >>$CONFIG_STATUS 23751 echo ': clr' >>$CONFIG_STATUS 23752 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 23753 echo 'CEOF 23754 sed -f $tmp/defines.sed $tmp/in >$tmp/out 23755 rm -f $tmp/in 23756 mv $tmp/out $tmp/in 23757' >>$CONFIG_STATUS 23758 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 23759 rm -f conftest.defines 23760 mv conftest.tail conftest.defines 23761done 23762rm -f conftest.defines 23763echo ' fi # grep' >>$CONFIG_STATUS 23764echo >>$CONFIG_STATUS 23765 23766# Break up conftest.undefs because some shells have a limit on the size 23767# of here documents, and old seds have small limits too (100 cmds). 23768echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 23769rm -f conftest.tail 23770while grep . conftest.undefs >/dev/null 23771do 23772 # Write a limited-size here document to $tmp/undefs.sed. 23773 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 23774 # Speed up: don't consider the non `#undef' 23775 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 23776 # Work around the forget-to-reset-the-flag bug. 23777 echo 't clr' >>$CONFIG_STATUS 23778 echo ': clr' >>$CONFIG_STATUS 23779 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 23780 echo 'CEOF 23781 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 23782 rm -f $tmp/in 23783 mv $tmp/out $tmp/in 23784' >>$CONFIG_STATUS 23785 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 23786 rm -f conftest.undefs 23787 mv conftest.tail conftest.undefs 23788done 23789rm -f conftest.undefs 23790 23791cat >>$CONFIG_STATUS <<\_ACEOF 23792 # Let's still pretend it is `configure' which instantiates (i.e., don't 23793 # use $as_me), people would be surprised to read: 23794 # /* config.h. Generated by config.status. */ 23795 if test x"$ac_file" = x-; then 23796 echo "/* Generated by configure. */" >$tmp/config.h 23797 else 23798 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 23799 fi 23800 cat $tmp/in >>$tmp/config.h 23801 rm -f $tmp/in 23802 if test x"$ac_file" != x-; then 23803 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 23804 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23805echo "$as_me: $ac_file is unchanged" >&6;} 23806 else 23807 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23808$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23809 X"$ac_file" : 'X\(//\)[^/]' \| \ 23810 X"$ac_file" : 'X\(//\)$' \| \ 23811 X"$ac_file" : 'X\(/\)' \| \ 23812 . : '\(.\)' 2>/dev/null || 23813echo X"$ac_file" | 23814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23815 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23816 /^X\(\/\/\)$/{ s//\1/; q; } 23817 /^X\(\/\).*/{ s//\1/; q; } 23818 s/.*/./; q'` 23819 { if $as_mkdir_p; then 23820 mkdir -p "$ac_dir" 23821 else 23822 as_dir="$ac_dir" 23823 as_dirs= 23824 while test ! -d "$as_dir"; do 23825 as_dirs="$as_dir $as_dirs" 23826 as_dir=`(dirname "$as_dir") 2>/dev/null || 23827$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23828 X"$as_dir" : 'X\(//\)[^/]' \| \ 23829 X"$as_dir" : 'X\(//\)$' \| \ 23830 X"$as_dir" : 'X\(/\)' \| \ 23831 . : '\(.\)' 2>/dev/null || 23832echo X"$as_dir" | 23833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23834 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23835 /^X\(\/\/\)$/{ s//\1/; q; } 23836 /^X\(\/\).*/{ s//\1/; q; } 23837 s/.*/./; q'` 23838 done 23839 test ! -n "$as_dirs" || mkdir $as_dirs 23840 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23841echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23842 { (exit 1); exit 1; }; }; } 23843 23844 rm -f $ac_file 23845 mv $tmp/config.h $ac_file 23846 fi 23847 else 23848 cat $tmp/config.h 23849 rm -f $tmp/config.h 23850 fi 23851done 23852_ACEOF 23853cat >>$CONFIG_STATUS <<\_ACEOF 23854 23855# 23856# CONFIG_COMMANDS section. 23857# 23858for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 23859 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23860 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23861 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 23862$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23863 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23864 X"$ac_dest" : 'X\(//\)$' \| \ 23865 X"$ac_dest" : 'X\(/\)' \| \ 23866 . : '\(.\)' 2>/dev/null || 23867echo X"$ac_dest" | 23868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23869 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23870 /^X\(\/\/\)$/{ s//\1/; q; } 23871 /^X\(\/\).*/{ s//\1/; q; } 23872 s/.*/./; q'` 23873 { if $as_mkdir_p; then 23874 mkdir -p "$ac_dir" 23875 else 23876 as_dir="$ac_dir" 23877 as_dirs= 23878 while test ! -d "$as_dir"; do 23879 as_dirs="$as_dir $as_dirs" 23880 as_dir=`(dirname "$as_dir") 2>/dev/null || 23881$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23882 X"$as_dir" : 'X\(//\)[^/]' \| \ 23883 X"$as_dir" : 'X\(//\)$' \| \ 23884 X"$as_dir" : 'X\(/\)' \| \ 23885 . : '\(.\)' 2>/dev/null || 23886echo X"$as_dir" | 23887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23888 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23889 /^X\(\/\/\)$/{ s//\1/; q; } 23890 /^X\(\/\).*/{ s//\1/; q; } 23891 s/.*/./; q'` 23892 done 23893 test ! -n "$as_dirs" || mkdir $as_dirs 23894 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23895echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23896 { (exit 1); exit 1; }; }; } 23897 23898 ac_builddir=. 23899 23900if test "$ac_dir" != .; then 23901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23902 # A "../" for each directory in $ac_dir_suffix. 23903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23904else 23905 ac_dir_suffix= ac_top_builddir= 23906fi 23907 23908case $srcdir in 23909 .) # No --srcdir option. We are building in place. 23910 ac_srcdir=. 23911 if test -z "$ac_top_builddir"; then 23912 ac_top_srcdir=. 23913 else 23914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23915 fi ;; 23916 [\\/]* | ?:[\\/]* ) # Absolute path. 23917 ac_srcdir=$srcdir$ac_dir_suffix; 23918 ac_top_srcdir=$srcdir ;; 23919 *) # Relative path. 23920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23921 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23922esac 23923 23924# Do not use `cd foo && pwd` to compute absolute paths, because 23925# the directories may not exist. 23926case `pwd` in 23927.) ac_abs_builddir="$ac_dir";; 23928*) 23929 case "$ac_dir" in 23930 .) ac_abs_builddir=`pwd`;; 23931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23932 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23933 esac;; 23934esac 23935case $ac_abs_builddir in 23936.) ac_abs_top_builddir=${ac_top_builddir}.;; 23937*) 23938 case ${ac_top_builddir}. in 23939 .) ac_abs_top_builddir=$ac_abs_builddir;; 23940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23942 esac;; 23943esac 23944case $ac_abs_builddir in 23945.) ac_abs_srcdir=$ac_srcdir;; 23946*) 23947 case $ac_srcdir in 23948 .) ac_abs_srcdir=$ac_abs_builddir;; 23949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23951 esac;; 23952esac 23953case $ac_abs_builddir in 23954.) ac_abs_top_srcdir=$ac_top_srcdir;; 23955*) 23956 case $ac_top_srcdir in 23957 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23960 esac;; 23961esac 23962 23963 23964 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 23965echo "$as_me: executing $ac_dest commands" >&6;} 23966 case $ac_dest in 23967 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 23968 esac 23969done 23970_ACEOF 23971 23972cat >>$CONFIG_STATUS <<\_ACEOF 23973 23974{ (exit 0); exit 0; } 23975_ACEOF 23976chmod +x $CONFIG_STATUS 23977ac_clean_files=$ac_clean_files_save 23978 23979 23980# configure is writing to config.log, and then calls config.status. 23981# config.status does its own redirection, appending to config.log. 23982# Unfortunately, on DOS this fails, as config.log is still kept open 23983# by configure, so config.status won't be able to write to it; its 23984# output is simply discarded. So we exec the FD to /dev/null, 23985# effectively closing config.log, so it can be properly (re)opened and 23986# appended to by config.status. When coming back to configure, we 23987# need to make the FD available again. 23988if test "$no_create" != yes; then 23989 ac_cs_success=: 23990 ac_config_status_args= 23991 test "$silent" = yes && 23992 ac_config_status_args="$ac_config_status_args --quiet" 23993 exec 5>/dev/null 23994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23995 exec 5>>config.log 23996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23997 # would make configure fail if this is the last instruction. 23998 $ac_cs_success || { (exit 1); exit 1; } 23999fi 24000 24001 24002 24003