configure revision 966bf024
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for libXTrap 1.0.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246 247# Check that we are running under the correct shell. 248SHELL=${CONFIG_SHELL-/bin/sh} 249 250case X$ECHO in 251X*--fallback-echo) 252 # Remove one level of quotation (which was required for Make). 253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 254 ;; 255esac 256 257echo=${ECHO-echo} 258if test "X$1" = X--no-reexec; then 259 # Discard the --no-reexec flag, and continue. 260 shift 261elif test "X$1" = X--fallback-echo; then 262 # Avoid inline document here, it may be left over 263 : 264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 265 # Yippee, $echo works! 266 : 267else 268 # Restart under the correct shell. 269 exec $SHELL "$0" --no-reexec ${1+"$@"} 270fi 271 272if test "X$1" = X--fallback-echo; then 273 # used as fallback echo 274 shift 275 cat <<EOF 276$* 277EOF 278 exit 0 279fi 280 281# The HP-UX ksh and POSIX shell print the target directory to stdout 282# if CDPATH is set. 283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 284 285if test -z "$ECHO"; then 286if test "X${echo_test_string+set}" != Xset; then 287# find a string as large as possible, as long as the shell can cope with it 288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 290 if (echo_test_string="`eval $cmd`") 2>/dev/null && 291 echo_test_string="`eval $cmd`" && 292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 293 then 294 break 295 fi 296 done 297fi 298 299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 301 test "X$echo_testing_string" = "X$echo_test_string"; then 302 : 303else 304 # The Solaris, AIX, and Digital Unix default echo programs unquote 305 # backslashes. This makes it impossible to quote backslashes using 306 # echo "$something" | sed 's/\\/\\\\/g' 307 # 308 # So, first we look for a working echo in the user's PATH. 309 310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 311 for dir in $PATH /usr/ucb; do 312 IFS="$lt_save_ifs" 313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 316 test "X$echo_testing_string" = "X$echo_test_string"; then 317 echo="$dir/echo" 318 break 319 fi 320 done 321 IFS="$lt_save_ifs" 322 323 if test "X$echo" = Xecho; then 324 # We didn't find a better echo, so look for alternatives. 325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 327 test "X$echo_testing_string" = "X$echo_test_string"; then 328 # This shell has a builtin print -r that does the trick. 329 echo='print -r' 330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 331 test "X$CONFIG_SHELL" != X/bin/ksh; then 332 # If we have ksh, try running configure again with it. 333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 334 export ORIGINAL_CONFIG_SHELL 335 CONFIG_SHELL=/bin/ksh 336 export CONFIG_SHELL 337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 338 else 339 # Try using printf. 340 echo='printf %s\n' 341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 343 test "X$echo_testing_string" = "X$echo_test_string"; then 344 # Cool, printf works 345 : 346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 347 test "X$echo_testing_string" = 'X\t' && 348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 351 export CONFIG_SHELL 352 SHELL="$CONFIG_SHELL" 353 export SHELL 354 echo="$CONFIG_SHELL $0 --fallback-echo" 355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 356 test "X$echo_testing_string" = 'X\t' && 357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 358 test "X$echo_testing_string" = "X$echo_test_string"; then 359 echo="$CONFIG_SHELL $0 --fallback-echo" 360 else 361 # maybe with a smaller string... 362 prev=: 363 364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 366 then 367 break 368 fi 369 prev="$cmd" 370 done 371 372 if test "$prev" != 'sed 50q "$0"'; then 373 echo_test_string=`eval $prev` 374 export echo_test_string 375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 376 else 377 # Oops. We lost completely, so just stick with echo. 378 echo=echo 379 fi 380 fi 381 fi 382 fi 383fi 384fi 385 386# Copy echo and quote the copy suitably for passing to libtool from 387# the Makefile, instead of quoting the original, which is used later. 388ECHO=$echo 389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 391fi 392 393 394 395 396tagnames=${tagnames+${tagnames},}CXX 397 398tagnames=${tagnames+${tagnames},}F77 399 400# Name of the host. 401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 402# so uname gets run too. 403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 404 405exec 6>&1 406 407# 408# Initializations. 409# 410ac_default_prefix=/usr/local 411ac_config_libobj_dir=. 412cross_compiling=no 413subdirs= 414MFLAGS= 415MAKEFLAGS= 416SHELL=${CONFIG_SHELL-/bin/sh} 417 418# Maximum number of lines to put in a shell here document. 419# This variable seems obsolete. It should probably be removed, and 420# only ac_max_sed_lines should be used. 421: ${ac_max_here_lines=38} 422 423# Identity of this package. 424PACKAGE_NAME='libXTrap' 425PACKAGE_TARNAME='libXTrap' 426PACKAGE_VERSION='1.0.0' 427PACKAGE_STRING='libXTrap 1.0.0' 428PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 429 430# Factoring default headers for most tests. 431ac_includes_default="\ 432#include <stdio.h> 433#if HAVE_SYS_TYPES_H 434# include <sys/types.h> 435#endif 436#if HAVE_SYS_STAT_H 437# include <sys/stat.h> 438#endif 439#if STDC_HEADERS 440# include <stdlib.h> 441# include <stddef.h> 442#else 443# if HAVE_STDLIB_H 444# include <stdlib.h> 445# endif 446#endif 447#if HAVE_STRING_H 448# if !STDC_HEADERS && HAVE_MEMORY_H 449# include <memory.h> 450# endif 451# include <string.h> 452#endif 453#if HAVE_STRINGS_H 454# include <strings.h> 455#endif 456#if HAVE_INTTYPES_H 457# include <inttypes.h> 458#else 459# if HAVE_STDINT_H 460# include <stdint.h> 461# endif 462#endif 463#if HAVE_UNISTD_H 464# include <unistd.h> 465#endif" 466 467ac_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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XTRAP_CFLAGS XTRAP_LIBS LIBOBJS LTLIBOBJS' 468ac_subst_files='' 469 470# Initialize some variables set by options. 471ac_init_help= 472ac_init_version=false 473# The variables have the same names as the options, with 474# dashes changed to underlines. 475cache_file=/dev/null 476exec_prefix=NONE 477no_create= 478no_recursion= 479prefix=NONE 480program_prefix=NONE 481program_suffix=NONE 482program_transform_name=s,x,x, 483silent= 484site= 485srcdir= 486verbose= 487x_includes=NONE 488x_libraries=NONE 489 490# Installation directory options. 491# These are left unexpanded so users can "make install exec_prefix=/foo" 492# and all the variables that are supposed to be based on exec_prefix 493# by default will actually change. 494# Use braces instead of parens because sh, perl, etc. also accept them. 495bindir='${exec_prefix}/bin' 496sbindir='${exec_prefix}/sbin' 497libexecdir='${exec_prefix}/libexec' 498datadir='${prefix}/share' 499sysconfdir='${prefix}/etc' 500sharedstatedir='${prefix}/com' 501localstatedir='${prefix}/var' 502libdir='${exec_prefix}/lib' 503includedir='${prefix}/include' 504oldincludedir='/usr/include' 505infodir='${prefix}/info' 506mandir='${prefix}/man' 507 508ac_prev= 509for ac_option 510do 511 # If the previous option needs an argument, assign it. 512 if test -n "$ac_prev"; then 513 eval "$ac_prev=\$ac_option" 514 ac_prev= 515 continue 516 fi 517 518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 519 520 # Accept the important Cygnus configure options, so we can diagnose typos. 521 522 case $ac_option in 523 524 -bindir | --bindir | --bindi | --bind | --bin | --bi) 525 ac_prev=bindir ;; 526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 527 bindir=$ac_optarg ;; 528 529 -build | --build | --buil | --bui | --bu) 530 ac_prev=build_alias ;; 531 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 532 build_alias=$ac_optarg ;; 533 534 -cache-file | --cache-file | --cache-fil | --cache-fi \ 535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 536 ac_prev=cache_file ;; 537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 539 cache_file=$ac_optarg ;; 540 541 --config-cache | -C) 542 cache_file=config.cache ;; 543 544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 545 ac_prev=datadir ;; 546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 547 | --da=*) 548 datadir=$ac_optarg ;; 549 550 -disable-* | --disable-*) 551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 552 # Reject names that are not valid shell variable names. 553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 555 { (exit 1); exit 1; }; } 556 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 557 eval "enable_$ac_feature=no" ;; 558 559 -enable-* | --enable-*) 560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 561 # Reject names that are not valid shell variable names. 562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 564 { (exit 1); exit 1; }; } 565 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 566 case $ac_option in 567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 568 *) ac_optarg=yes ;; 569 esac 570 eval "enable_$ac_feature='$ac_optarg'" ;; 571 572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 574 | --exec | --exe | --ex) 575 ac_prev=exec_prefix ;; 576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 578 | --exec=* | --exe=* | --ex=*) 579 exec_prefix=$ac_optarg ;; 580 581 -gas | --gas | --ga | --g) 582 # Obsolete; use --with-gas. 583 with_gas=yes ;; 584 585 -help | --help | --hel | --he | -h) 586 ac_init_help=long ;; 587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 588 ac_init_help=recursive ;; 589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 590 ac_init_help=short ;; 591 592 -host | --host | --hos | --ho) 593 ac_prev=host_alias ;; 594 -host=* | --host=* | --hos=* | --ho=*) 595 host_alias=$ac_optarg ;; 596 597 -includedir | --includedir | --includedi | --included | --include \ 598 | --includ | --inclu | --incl | --inc) 599 ac_prev=includedir ;; 600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 601 | --includ=* | --inclu=* | --incl=* | --inc=*) 602 includedir=$ac_optarg ;; 603 604 -infodir | --infodir | --infodi | --infod | --info | --inf) 605 ac_prev=infodir ;; 606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 607 infodir=$ac_optarg ;; 608 609 -libdir | --libdir | --libdi | --libd) 610 ac_prev=libdir ;; 611 -libdir=* | --libdir=* | --libdi=* | --libd=*) 612 libdir=$ac_optarg ;; 613 614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 615 | --libexe | --libex | --libe) 616 ac_prev=libexecdir ;; 617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 618 | --libexe=* | --libex=* | --libe=*) 619 libexecdir=$ac_optarg ;; 620 621 -localstatedir | --localstatedir | --localstatedi | --localstated \ 622 | --localstate | --localstat | --localsta | --localst \ 623 | --locals | --local | --loca | --loc | --lo) 624 ac_prev=localstatedir ;; 625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 628 localstatedir=$ac_optarg ;; 629 630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 631 ac_prev=mandir ;; 632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 633 mandir=$ac_optarg ;; 634 635 -nfp | --nfp | --nf) 636 # Obsolete; use --without-fp. 637 with_fp=no ;; 638 639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 640 | --no-cr | --no-c | -n) 641 no_create=yes ;; 642 643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 645 no_recursion=yes ;; 646 647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 649 | --oldin | --oldi | --old | --ol | --o) 650 ac_prev=oldincludedir ;; 651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 654 oldincludedir=$ac_optarg ;; 655 656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 657 ac_prev=prefix ;; 658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 659 prefix=$ac_optarg ;; 660 661 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 662 | --program-pre | --program-pr | --program-p) 663 ac_prev=program_prefix ;; 664 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 666 program_prefix=$ac_optarg ;; 667 668 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 669 | --program-suf | --program-su | --program-s) 670 ac_prev=program_suffix ;; 671 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 673 program_suffix=$ac_optarg ;; 674 675 -program-transform-name | --program-transform-name \ 676 | --program-transform-nam | --program-transform-na \ 677 | --program-transform-n | --program-transform- \ 678 | --program-transform | --program-transfor \ 679 | --program-transfo | --program-transf \ 680 | --program-trans | --program-tran \ 681 | --progr-tra | --program-tr | --program-t) 682 ac_prev=program_transform_name ;; 683 -program-transform-name=* | --program-transform-name=* \ 684 | --program-transform-nam=* | --program-transform-na=* \ 685 | --program-transform-n=* | --program-transform-=* \ 686 | --program-transform=* | --program-transfor=* \ 687 | --program-transfo=* | --program-transf=* \ 688 | --program-trans=* | --program-tran=* \ 689 | --progr-tra=* | --program-tr=* | --program-t=*) 690 program_transform_name=$ac_optarg ;; 691 692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 693 | -silent | --silent | --silen | --sile | --sil) 694 silent=yes ;; 695 696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 697 ac_prev=sbindir ;; 698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 699 | --sbi=* | --sb=*) 700 sbindir=$ac_optarg ;; 701 702 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 704 | --sharedst | --shareds | --shared | --share | --shar \ 705 | --sha | --sh) 706 ac_prev=sharedstatedir ;; 707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 710 | --sha=* | --sh=*) 711 sharedstatedir=$ac_optarg ;; 712 713 -site | --site | --sit) 714 ac_prev=site ;; 715 -site=* | --site=* | --sit=*) 716 site=$ac_optarg ;; 717 718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 719 ac_prev=srcdir ;; 720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 721 srcdir=$ac_optarg ;; 722 723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 724 | --syscon | --sysco | --sysc | --sys | --sy) 725 ac_prev=sysconfdir ;; 726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 728 sysconfdir=$ac_optarg ;; 729 730 -target | --target | --targe | --targ | --tar | --ta | --t) 731 ac_prev=target_alias ;; 732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 733 target_alias=$ac_optarg ;; 734 735 -v | -verbose | --verbose | --verbos | --verbo | --verb) 736 verbose=yes ;; 737 738 -version | --version | --versio | --versi | --vers | -V) 739 ac_init_version=: ;; 740 741 -with-* | --with-*) 742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 743 # Reject names that are not valid shell variable names. 744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 745 { echo "$as_me: error: invalid package name: $ac_package" >&2 746 { (exit 1); exit 1; }; } 747 ac_package=`echo $ac_package| sed 's/-/_/g'` 748 case $ac_option in 749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 750 *) ac_optarg=yes ;; 751 esac 752 eval "with_$ac_package='$ac_optarg'" ;; 753 754 -without-* | --without-*) 755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 756 # Reject names that are not valid shell variable names. 757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 758 { echo "$as_me: error: invalid package name: $ac_package" >&2 759 { (exit 1); exit 1; }; } 760 ac_package=`echo $ac_package | sed 's/-/_/g'` 761 eval "with_$ac_package=no" ;; 762 763 --x) 764 # Obsolete; use --with-x. 765 with_x=yes ;; 766 767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 768 | --x-incl | --x-inc | --x-in | --x-i) 769 ac_prev=x_includes ;; 770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 772 x_includes=$ac_optarg ;; 773 774 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 776 ac_prev=x_libraries ;; 777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 779 x_libraries=$ac_optarg ;; 780 781 -*) { echo "$as_me: error: unrecognized option: $ac_option 782Try \`$0 --help' for more information." >&2 783 { (exit 1); exit 1; }; } 784 ;; 785 786 *=*) 787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 788 # Reject names that are not valid shell variable names. 789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 791 { (exit 1); exit 1; }; } 792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 793 eval "$ac_envvar='$ac_optarg'" 794 export $ac_envvar ;; 795 796 *) 797 # FIXME: should be removed in autoconf 3.0. 798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 802 ;; 803 804 esac 805done 806 807if test -n "$ac_prev"; then 808 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 809 { echo "$as_me: error: missing argument to $ac_option" >&2 810 { (exit 1); exit 1; }; } 811fi 812 813# Be sure to have absolute paths. 814for ac_var in exec_prefix prefix 815do 816 eval ac_val=$`echo $ac_var` 817 case $ac_val in 818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 820 { (exit 1); exit 1; }; };; 821 esac 822done 823 824# Be sure to have absolute paths. 825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 826 localstatedir libdir includedir oldincludedir infodir mandir 827do 828 eval ac_val=$`echo $ac_var` 829 case $ac_val in 830 [\\/$]* | ?:[\\/]* ) ;; 831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 832 { (exit 1); exit 1; }; };; 833 esac 834done 835 836# There might be people who depend on the old broken behavior: `$host' 837# used to hold the argument of --host etc. 838# FIXME: To remove some day. 839build=$build_alias 840host=$host_alias 841target=$target_alias 842 843# FIXME: To remove some day. 844if test "x$host_alias" != x; then 845 if test "x$build_alias" = x; then 846 cross_compiling=maybe 847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 848 If a cross compiler is detected then cross compile mode will be used." >&2 849 elif test "x$build_alias" != "x$host_alias"; then 850 cross_compiling=yes 851 fi 852fi 853 854ac_tool_prefix= 855test -n "$host_alias" && ac_tool_prefix=$host_alias- 856 857test "$silent" = yes && exec 6>/dev/null 858 859 860# Find the source files, if location was not specified. 861if test -z "$srcdir"; then 862 ac_srcdir_defaulted=yes 863 # Try the directory containing this script, then its parent. 864 ac_confdir=`(dirname "$0") 2>/dev/null || 865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 866 X"$0" : 'X\(//\)[^/]' \| \ 867 X"$0" : 'X\(//\)$' \| \ 868 X"$0" : 'X\(/\)' \| \ 869 . : '\(.\)' 2>/dev/null || 870echo X"$0" | 871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 872 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 873 /^X\(\/\/\)$/{ s//\1/; q; } 874 /^X\(\/\).*/{ s//\1/; q; } 875 s/.*/./; q'` 876 srcdir=$ac_confdir 877 if test ! -r $srcdir/$ac_unique_file; then 878 srcdir=.. 879 fi 880else 881 ac_srcdir_defaulted=no 882fi 883if test ! -r $srcdir/$ac_unique_file; then 884 if test "$ac_srcdir_defaulted" = yes; then 885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 886 { (exit 1); exit 1; }; } 887 else 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 889 { (exit 1); exit 1; }; } 890 fi 891fi 892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 894 { (exit 1); exit 1; }; } 895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 896ac_env_build_alias_set=${build_alias+set} 897ac_env_build_alias_value=$build_alias 898ac_cv_env_build_alias_set=${build_alias+set} 899ac_cv_env_build_alias_value=$build_alias 900ac_env_host_alias_set=${host_alias+set} 901ac_env_host_alias_value=$host_alias 902ac_cv_env_host_alias_set=${host_alias+set} 903ac_cv_env_host_alias_value=$host_alias 904ac_env_target_alias_set=${target_alias+set} 905ac_env_target_alias_value=$target_alias 906ac_cv_env_target_alias_set=${target_alias+set} 907ac_cv_env_target_alias_value=$target_alias 908ac_env_CC_set=${CC+set} 909ac_env_CC_value=$CC 910ac_cv_env_CC_set=${CC+set} 911ac_cv_env_CC_value=$CC 912ac_env_CFLAGS_set=${CFLAGS+set} 913ac_env_CFLAGS_value=$CFLAGS 914ac_cv_env_CFLAGS_set=${CFLAGS+set} 915ac_cv_env_CFLAGS_value=$CFLAGS 916ac_env_LDFLAGS_set=${LDFLAGS+set} 917ac_env_LDFLAGS_value=$LDFLAGS 918ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 919ac_cv_env_LDFLAGS_value=$LDFLAGS 920ac_env_CPPFLAGS_set=${CPPFLAGS+set} 921ac_env_CPPFLAGS_value=$CPPFLAGS 922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 923ac_cv_env_CPPFLAGS_value=$CPPFLAGS 924ac_env_CPP_set=${CPP+set} 925ac_env_CPP_value=$CPP 926ac_cv_env_CPP_set=${CPP+set} 927ac_cv_env_CPP_value=$CPP 928ac_env_CXX_set=${CXX+set} 929ac_env_CXX_value=$CXX 930ac_cv_env_CXX_set=${CXX+set} 931ac_cv_env_CXX_value=$CXX 932ac_env_CXXFLAGS_set=${CXXFLAGS+set} 933ac_env_CXXFLAGS_value=$CXXFLAGS 934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 935ac_cv_env_CXXFLAGS_value=$CXXFLAGS 936ac_env_CXXCPP_set=${CXXCPP+set} 937ac_env_CXXCPP_value=$CXXCPP 938ac_cv_env_CXXCPP_set=${CXXCPP+set} 939ac_cv_env_CXXCPP_value=$CXXCPP 940ac_env_F77_set=${F77+set} 941ac_env_F77_value=$F77 942ac_cv_env_F77_set=${F77+set} 943ac_cv_env_F77_value=$F77 944ac_env_FFLAGS_set=${FFLAGS+set} 945ac_env_FFLAGS_value=$FFLAGS 946ac_cv_env_FFLAGS_set=${FFLAGS+set} 947ac_cv_env_FFLAGS_value=$FFLAGS 948ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} 949ac_env_PKG_CONFIG_value=$PKG_CONFIG 950ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} 951ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG 952ac_env_XTRAP_CFLAGS_set=${XTRAP_CFLAGS+set} 953ac_env_XTRAP_CFLAGS_value=$XTRAP_CFLAGS 954ac_cv_env_XTRAP_CFLAGS_set=${XTRAP_CFLAGS+set} 955ac_cv_env_XTRAP_CFLAGS_value=$XTRAP_CFLAGS 956ac_env_XTRAP_LIBS_set=${XTRAP_LIBS+set} 957ac_env_XTRAP_LIBS_value=$XTRAP_LIBS 958ac_cv_env_XTRAP_LIBS_set=${XTRAP_LIBS+set} 959ac_cv_env_XTRAP_LIBS_value=$XTRAP_LIBS 960 961# 962# Report the --help message. 963# 964if test "$ac_init_help" = "long"; then 965 # Omit some internal or obsolete options to make the list less imposing. 966 # This message is too long to be a string in the A/UX 3.1 sh. 967 cat <<_ACEOF 968\`configure' configures libXTrap 1.0.0 to adapt to many kinds of systems. 969 970Usage: $0 [OPTION]... [VAR=VALUE]... 971 972To assign environment variables (e.g., CC, CFLAGS...), specify them as 973VAR=VALUE. See below for descriptions of some of the useful variables. 974 975Defaults for the options are specified in brackets. 976 977Configuration: 978 -h, --help display this help and exit 979 --help=short display options specific to this package 980 --help=recursive display the short help of all the included packages 981 -V, --version display version information and exit 982 -q, --quiet, --silent do not print \`checking...' messages 983 --cache-file=FILE cache test results in FILE [disabled] 984 -C, --config-cache alias for \`--cache-file=config.cache' 985 -n, --no-create do not create output files 986 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 987 988_ACEOF 989 990 cat <<_ACEOF 991Installation directories: 992 --prefix=PREFIX install architecture-independent files in PREFIX 993 [$ac_default_prefix] 994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 995 [PREFIX] 996 997By default, \`make install' will install all the files in 998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 999an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1000for instance \`--prefix=\$HOME'. 1001 1002For better control, use the options below. 1003 1004Fine tuning of the installation directories: 1005 --bindir=DIR user executables [EPREFIX/bin] 1006 --sbindir=DIR system admin executables [EPREFIX/sbin] 1007 --libexecdir=DIR program executables [EPREFIX/libexec] 1008 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1012 --libdir=DIR object code libraries [EPREFIX/lib] 1013 --includedir=DIR C header files [PREFIX/include] 1014 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1015 --infodir=DIR info documentation [PREFIX/info] 1016 --mandir=DIR man documentation [PREFIX/man] 1017_ACEOF 1018 1019 cat <<\_ACEOF 1020 1021Program names: 1022 --program-prefix=PREFIX prepend PREFIX to installed program names 1023 --program-suffix=SUFFIX append SUFFIX to installed program names 1024 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1025 1026System types: 1027 --build=BUILD configure for building on BUILD [guessed] 1028 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1029_ACEOF 1030fi 1031 1032if test -n "$ac_init_help"; then 1033 case $ac_init_help in 1034 short | recursive ) echo "Configuration of libXTrap 1.0.0:";; 1035 esac 1036 cat <<\_ACEOF 1037 1038Optional Features: 1039 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1040 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1041 --enable-maintainer-mode enable make rules and dependencies not useful 1042 (and sometimes confusing) to the casual installer 1043 --disable-dependency-tracking Speeds up one-time builds 1044 --enable-dependency-tracking Do not reject slow dependency extractors 1045 --enable-shared[=PKGS] 1046 build shared libraries [default=yes] 1047 --enable-static[=PKGS] 1048 build static libraries [default=yes] 1049 --enable-fast-install[=PKGS] 1050 optimize for fast installation [default=yes] 1051 --disable-libtool-lock avoid locking (might break parallel builds) 1052 1053Optional Packages: 1054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1056 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1057 --with-pic try to use only PIC/non-PIC objects [default=use 1058 both] 1059 --with-tags[=TAGS] 1060 include additional configurations [automatic] 1061 --with-release-version=STRING 1062 Use release version string in package name 1063 1064Some influential environment variables: 1065 CC C compiler command 1066 CFLAGS C compiler flags 1067 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1068 nonstandard directory <lib dir> 1069 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1070 headers in a nonstandard directory <include dir> 1071 CPP C preprocessor 1072 CXX C++ compiler command 1073 CXXFLAGS C++ compiler flags 1074 CXXCPP C++ preprocessor 1075 F77 Fortran 77 compiler command 1076 FFLAGS Fortran 77 compiler flags 1077 PKG_CONFIG path to pkg-config utility 1078 XTRAP_CFLAGS 1079 C compiler flags for XTRAP, overriding pkg-config 1080 XTRAP_LIBS linker flags for XTRAP, overriding pkg-config 1081 1082Use these variables to override the choices made by `configure' or to help 1083it to find libraries and programs with nonstandard names/locations. 1084 1085Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1086_ACEOF 1087fi 1088 1089if test "$ac_init_help" = "recursive"; then 1090 # If there are subdirs, report their specific --help. 1091 ac_popdir=`pwd` 1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1093 test -d $ac_dir || continue 1094 ac_builddir=. 1095 1096if test "$ac_dir" != .; then 1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1098 # A "../" for each directory in $ac_dir_suffix. 1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1100else 1101 ac_dir_suffix= ac_top_builddir= 1102fi 1103 1104case $srcdir in 1105 .) # No --srcdir option. We are building in place. 1106 ac_srcdir=. 1107 if test -z "$ac_top_builddir"; then 1108 ac_top_srcdir=. 1109 else 1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1111 fi ;; 1112 [\\/]* | ?:[\\/]* ) # Absolute path. 1113 ac_srcdir=$srcdir$ac_dir_suffix; 1114 ac_top_srcdir=$srcdir ;; 1115 *) # Relative path. 1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1117 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1118esac 1119 1120# Do not use `cd foo && pwd` to compute absolute paths, because 1121# the directories may not exist. 1122case `pwd` in 1123.) ac_abs_builddir="$ac_dir";; 1124*) 1125 case "$ac_dir" in 1126 .) ac_abs_builddir=`pwd`;; 1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1128 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1129 esac;; 1130esac 1131case $ac_abs_builddir in 1132.) ac_abs_top_builddir=${ac_top_builddir}.;; 1133*) 1134 case ${ac_top_builddir}. in 1135 .) ac_abs_top_builddir=$ac_abs_builddir;; 1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1138 esac;; 1139esac 1140case $ac_abs_builddir in 1141.) ac_abs_srcdir=$ac_srcdir;; 1142*) 1143 case $ac_srcdir in 1144 .) ac_abs_srcdir=$ac_abs_builddir;; 1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1147 esac;; 1148esac 1149case $ac_abs_builddir in 1150.) ac_abs_top_srcdir=$ac_top_srcdir;; 1151*) 1152 case $ac_top_srcdir in 1153 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1156 esac;; 1157esac 1158 1159 cd $ac_dir 1160 # Check for guested configure; otherwise get Cygnus style configure. 1161 if test -f $ac_srcdir/configure.gnu; then 1162 echo 1163 $SHELL $ac_srcdir/configure.gnu --help=recursive 1164 elif test -f $ac_srcdir/configure; then 1165 echo 1166 $SHELL $ac_srcdir/configure --help=recursive 1167 elif test -f $ac_srcdir/configure.ac || 1168 test -f $ac_srcdir/configure.in; then 1169 echo 1170 $ac_configure --help 1171 else 1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1173 fi 1174 cd $ac_popdir 1175 done 1176fi 1177 1178test -n "$ac_init_help" && exit 0 1179if $ac_init_version; then 1180 cat <<\_ACEOF 1181libXTrap configure 1.0.0 1182generated by GNU Autoconf 2.59 1183 1184Copyright (C) 2003 Free Software Foundation, Inc. 1185This configure script is free software; the Free Software Foundation 1186gives unlimited permission to copy, distribute and modify it. 1187_ACEOF 1188 exit 0 1189fi 1190exec 5>config.log 1191cat >&5 <<_ACEOF 1192This file contains any messages produced by compilers while 1193running configure, to aid debugging if configure makes a mistake. 1194 1195It was created by libXTrap $as_me 1.0.0, which was 1196generated by GNU Autoconf 2.59. Invocation command line was 1197 1198 $ $0 $@ 1199 1200_ACEOF 1201{ 1202cat <<_ASUNAME 1203## --------- ## 1204## Platform. ## 1205## --------- ## 1206 1207hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1208uname -m = `(uname -m) 2>/dev/null || echo unknown` 1209uname -r = `(uname -r) 2>/dev/null || echo unknown` 1210uname -s = `(uname -s) 2>/dev/null || echo unknown` 1211uname -v = `(uname -v) 2>/dev/null || echo unknown` 1212 1213/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1214/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1215 1216/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1217/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1218/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1219hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1220/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1221/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1222/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1223 1224_ASUNAME 1225 1226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1227for as_dir in $PATH 1228do 1229 IFS=$as_save_IFS 1230 test -z "$as_dir" && as_dir=. 1231 echo "PATH: $as_dir" 1232done 1233 1234} >&5 1235 1236cat >&5 <<_ACEOF 1237 1238 1239## ----------- ## 1240## Core tests. ## 1241## ----------- ## 1242 1243_ACEOF 1244 1245 1246# Keep a trace of the command line. 1247# Strip out --no-create and --no-recursion so they do not pile up. 1248# Strip out --silent because we don't want to record it for future runs. 1249# Also quote any args containing shell meta-characters. 1250# Make two passes to allow for proper duplicate-argument suppression. 1251ac_configure_args= 1252ac_configure_args0= 1253ac_configure_args1= 1254ac_sep= 1255ac_must_keep_next=false 1256for ac_pass in 1 2 1257do 1258 for ac_arg 1259 do 1260 case $ac_arg in 1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1263 | -silent | --silent | --silen | --sile | --sil) 1264 continue ;; 1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1267 esac 1268 case $ac_pass in 1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1270 2) 1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1272 if test $ac_must_keep_next = true; then 1273 ac_must_keep_next=false # Got value, back to normal. 1274 else 1275 case $ac_arg in 1276 *=* | --config-cache | -C | -disable-* | --disable-* \ 1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1279 | -with-* | --with-* | -without-* | --without-* | --x) 1280 case "$ac_configure_args0 " in 1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1282 esac 1283 ;; 1284 -* ) ac_must_keep_next=true ;; 1285 esac 1286 fi 1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1288 # Get rid of the leading space. 1289 ac_sep=" " 1290 ;; 1291 esac 1292 done 1293done 1294$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1295$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1296 1297# When interrupted or exit'd, cleanup temporary files, and complete 1298# config.log. We remove comments because anyway the quotes in there 1299# would cause problems or look ugly. 1300# WARNING: Be sure not to use single quotes in there, as some shells, 1301# such as our DU 5.0 friend, will then `close' the trap. 1302trap 'exit_status=$? 1303 # Save into config.log some information that might help in debugging. 1304 { 1305 echo 1306 1307 cat <<\_ASBOX 1308## ---------------- ## 1309## Cache variables. ## 1310## ---------------- ## 1311_ASBOX 1312 echo 1313 # The following way of writing the cache mishandles newlines in values, 1314{ 1315 (set) 2>&1 | 1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1317 *ac_space=\ *) 1318 sed -n \ 1319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1321 ;; 1322 *) 1323 sed -n \ 1324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1325 ;; 1326 esac; 1327} 1328 echo 1329 1330 cat <<\_ASBOX 1331## ----------------- ## 1332## Output variables. ## 1333## ----------------- ## 1334_ASBOX 1335 echo 1336 for ac_var in $ac_subst_vars 1337 do 1338 eval ac_val=$`echo $ac_var` 1339 echo "$ac_var='"'"'$ac_val'"'"'" 1340 done | sort 1341 echo 1342 1343 if test -n "$ac_subst_files"; then 1344 cat <<\_ASBOX 1345## ------------- ## 1346## Output files. ## 1347## ------------- ## 1348_ASBOX 1349 echo 1350 for ac_var in $ac_subst_files 1351 do 1352 eval ac_val=$`echo $ac_var` 1353 echo "$ac_var='"'"'$ac_val'"'"'" 1354 done | sort 1355 echo 1356 fi 1357 1358 if test -s confdefs.h; then 1359 cat <<\_ASBOX 1360## ----------- ## 1361## confdefs.h. ## 1362## ----------- ## 1363_ASBOX 1364 echo 1365 sed "/^$/d" confdefs.h | sort 1366 echo 1367 fi 1368 test "$ac_signal" != 0 && 1369 echo "$as_me: caught signal $ac_signal" 1370 echo "$as_me: exit $exit_status" 1371 } >&5 1372 rm -f core *.core && 1373 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1374 exit $exit_status 1375 ' 0 1376for ac_signal in 1 2 13 15; do 1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1378done 1379ac_signal=0 1380 1381# confdefs.h avoids OS command line length limits that DEFS can exceed. 1382rm -rf conftest* confdefs.h 1383# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1384echo >confdefs.h 1385 1386# Predefined preprocessor variables. 1387 1388cat >>confdefs.h <<_ACEOF 1389#define PACKAGE_NAME "$PACKAGE_NAME" 1390_ACEOF 1391 1392 1393cat >>confdefs.h <<_ACEOF 1394#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1395_ACEOF 1396 1397 1398cat >>confdefs.h <<_ACEOF 1399#define PACKAGE_VERSION "$PACKAGE_VERSION" 1400_ACEOF 1401 1402 1403cat >>confdefs.h <<_ACEOF 1404#define PACKAGE_STRING "$PACKAGE_STRING" 1405_ACEOF 1406 1407 1408cat >>confdefs.h <<_ACEOF 1409#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1410_ACEOF 1411 1412 1413# Let the site file select an alternate cache file if it wants to. 1414# Prefer explicitly selected file to automatically selected ones. 1415if test -z "$CONFIG_SITE"; then 1416 if test "x$prefix" != xNONE; then 1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1418 else 1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1420 fi 1421fi 1422for ac_site_file in $CONFIG_SITE; do 1423 if test -r "$ac_site_file"; then 1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1425echo "$as_me: loading site script $ac_site_file" >&6;} 1426 sed 's/^/| /' "$ac_site_file" >&5 1427 . "$ac_site_file" 1428 fi 1429done 1430 1431if test -r "$cache_file"; then 1432 # Some versions of bash will fail to source /dev/null (special 1433 # files actually), so we avoid doing that. 1434 if test -f "$cache_file"; then 1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1436echo "$as_me: loading cache $cache_file" >&6;} 1437 case $cache_file in 1438 [\\/]* | ?:[\\/]* ) . $cache_file;; 1439 *) . ./$cache_file;; 1440 esac 1441 fi 1442else 1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1444echo "$as_me: creating cache $cache_file" >&6;} 1445 >$cache_file 1446fi 1447 1448# Check that the precious variables saved in the cache have kept the same 1449# value. 1450ac_cache_corrupted=false 1451for ac_var in `(set) 2>&1 | 1452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1453 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1454 eval ac_new_set=\$ac_env_${ac_var}_set 1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1456 eval ac_new_val="\$ac_env_${ac_var}_value" 1457 case $ac_old_set,$ac_new_set in 1458 set,) 1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1460echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1461 ac_cache_corrupted=: ;; 1462 ,set) 1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1464echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1465 ac_cache_corrupted=: ;; 1466 ,);; 1467 *) 1468 if test "x$ac_old_val" != "x$ac_new_val"; then 1469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1470echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1472echo "$as_me: former value: $ac_old_val" >&2;} 1473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1474echo "$as_me: current value: $ac_new_val" >&2;} 1475 ac_cache_corrupted=: 1476 fi;; 1477 esac 1478 # Pass precious variables to config.status. 1479 if test "$ac_new_set" = set; then 1480 case $ac_new_val in 1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1483 *) ac_arg=$ac_var=$ac_new_val ;; 1484 esac 1485 case " $ac_configure_args " in 1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1488 esac 1489 fi 1490done 1491if $ac_cache_corrupted; then 1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1493echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1495echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1496 { (exit 1); exit 1; }; } 1497fi 1498 1499ac_ext=c 1500ac_cpp='$CPP $CPPFLAGS' 1501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1503ac_compiler_gnu=$ac_cv_c_compiler_gnu 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531am__api_version="1.7" 1532ac_aux_dir= 1533for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1534 if test -f $ac_dir/install-sh; then 1535 ac_aux_dir=$ac_dir 1536 ac_install_sh="$ac_aux_dir/install-sh -c" 1537 break 1538 elif test -f $ac_dir/install.sh; then 1539 ac_aux_dir=$ac_dir 1540 ac_install_sh="$ac_aux_dir/install.sh -c" 1541 break 1542 elif test -f $ac_dir/shtool; then 1543 ac_aux_dir=$ac_dir 1544 ac_install_sh="$ac_aux_dir/shtool install -c" 1545 break 1546 fi 1547done 1548if test -z "$ac_aux_dir"; then 1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1550echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1551 { (exit 1); exit 1; }; } 1552fi 1553ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1554ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1555ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1556 1557# Find a good install program. We prefer a C program (faster), 1558# so one script is as good as another. But avoid the broken or 1559# incompatible versions: 1560# SysV /etc/install, /usr/sbin/install 1561# SunOS /usr/etc/install 1562# IRIX /sbin/install 1563# AIX /bin/install 1564# AmigaOS /C/install, which installs bootblocks on floppy discs 1565# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1566# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1567# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1568# OS/2's system install, which has a completely different semantic 1569# ./install, which can be erroneously created by make from ./install.sh. 1570echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1571echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1572if test -z "$INSTALL"; then 1573if test "${ac_cv_path_install+set}" = set; then 1574 echo $ECHO_N "(cached) $ECHO_C" >&6 1575else 1576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1577for as_dir in $PATH 1578do 1579 IFS=$as_save_IFS 1580 test -z "$as_dir" && as_dir=. 1581 # Account for people who put trailing slashes in PATH elements. 1582case $as_dir/ in 1583 ./ | .// | /cC/* | \ 1584 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1585 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1586 /usr/ucb/* ) ;; 1587 *) 1588 # OSF1 and SCO ODT 3.0 have their own names for install. 1589 # Don't use installbsd from OSF since it installs stuff as root 1590 # by default. 1591 for ac_prog in ginstall scoinst install; do 1592 for ac_exec_ext in '' $ac_executable_extensions; do 1593 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1594 if test $ac_prog = install && 1595 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1596 # AIX install. It has an incompatible calling convention. 1597 : 1598 elif test $ac_prog = install && 1599 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1600 # program-specific install script used by HP pwplus--don't use. 1601 : 1602 else 1603 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1604 break 3 1605 fi 1606 fi 1607 done 1608 done 1609 ;; 1610esac 1611done 1612 1613 1614fi 1615 if test "${ac_cv_path_install+set}" = set; then 1616 INSTALL=$ac_cv_path_install 1617 else 1618 # As a last resort, use the slow shell script. We don't cache a 1619 # path for INSTALL within a source directory, because that will 1620 # break other packages using the cache if that directory is 1621 # removed, or if the path is relative. 1622 INSTALL=$ac_install_sh 1623 fi 1624fi 1625echo "$as_me:$LINENO: result: $INSTALL" >&5 1626echo "${ECHO_T}$INSTALL" >&6 1627 1628# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1629# It thinks the first close brace ends the variable substitution. 1630test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1631 1632test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1633 1634test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1635 1636echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1637echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1638# Just in case 1639sleep 1 1640echo timestamp > conftest.file 1641# Do `set' in a subshell so we don't clobber the current shell's 1642# arguments. Must try -L first in case configure is actually a 1643# symlink; some systems play weird games with the mod time of symlinks 1644# (eg FreeBSD returns the mod time of the symlink's containing 1645# directory). 1646if ( 1647 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1648 if test "$*" = "X"; then 1649 # -L didn't work. 1650 set X `ls -t $srcdir/configure conftest.file` 1651 fi 1652 rm -f conftest.file 1653 if test "$*" != "X $srcdir/configure conftest.file" \ 1654 && test "$*" != "X conftest.file $srcdir/configure"; then 1655 1656 # If neither matched, then we have a broken ls. This can happen 1657 # if, for instance, CONFIG_SHELL is bash and it inherits a 1658 # broken ls alias from the environment. This has actually 1659 # happened. Such a system could not be considered "sane". 1660 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1661alias in your environment" >&5 1662echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1663alias in your environment" >&2;} 1664 { (exit 1); exit 1; }; } 1665 fi 1666 1667 test "$2" = conftest.file 1668 ) 1669then 1670 # Ok. 1671 : 1672else 1673 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1674Check your system clock" >&5 1675echo "$as_me: error: newly created file is older than distributed files! 1676Check your system clock" >&2;} 1677 { (exit 1); exit 1; }; } 1678fi 1679echo "$as_me:$LINENO: result: yes" >&5 1680echo "${ECHO_T}yes" >&6 1681test "$program_prefix" != NONE && 1682 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1683# Use a double $ so make ignores it. 1684test "$program_suffix" != NONE && 1685 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1686# Double any \ or $. echo might interpret backslashes. 1687# By default was `s,x,x', remove it if useless. 1688cat <<\_ACEOF >conftest.sed 1689s/[\\$]/&&/g;s/;s,x,x,$// 1690_ACEOF 1691program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1692rm conftest.sed 1693 1694 1695# expand $ac_aux_dir to an absolute path 1696am_aux_dir=`cd $ac_aux_dir && pwd` 1697 1698test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1699# Use eval to expand $SHELL 1700if eval "$MISSING --run true"; then 1701 am_missing_run="$MISSING --run " 1702else 1703 am_missing_run= 1704 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1705echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1706fi 1707 1708for ac_prog in gawk mawk nawk awk 1709do 1710 # Extract the first word of "$ac_prog", so it can be a program name with args. 1711set dummy $ac_prog; ac_word=$2 1712echo "$as_me:$LINENO: checking for $ac_word" >&5 1713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1714if test "${ac_cv_prog_AWK+set}" = set; then 1715 echo $ECHO_N "(cached) $ECHO_C" >&6 1716else 1717 if test -n "$AWK"; then 1718 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1719else 1720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1721for as_dir in $PATH 1722do 1723 IFS=$as_save_IFS 1724 test -z "$as_dir" && as_dir=. 1725 for ac_exec_ext in '' $ac_executable_extensions; do 1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1727 ac_cv_prog_AWK="$ac_prog" 1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1729 break 2 1730 fi 1731done 1732done 1733 1734fi 1735fi 1736AWK=$ac_cv_prog_AWK 1737if test -n "$AWK"; then 1738 echo "$as_me:$LINENO: result: $AWK" >&5 1739echo "${ECHO_T}$AWK" >&6 1740else 1741 echo "$as_me:$LINENO: result: no" >&5 1742echo "${ECHO_T}no" >&6 1743fi 1744 1745 test -n "$AWK" && break 1746done 1747 1748echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1749echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1750set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1751if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1752 echo $ECHO_N "(cached) $ECHO_C" >&6 1753else 1754 cat >conftest.make <<\_ACEOF 1755all: 1756 @echo 'ac_maketemp="$(MAKE)"' 1757_ACEOF 1758# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1759eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1760if test -n "$ac_maketemp"; then 1761 eval ac_cv_prog_make_${ac_make}_set=yes 1762else 1763 eval ac_cv_prog_make_${ac_make}_set=no 1764fi 1765rm -f conftest.make 1766fi 1767if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1768 echo "$as_me:$LINENO: result: yes" >&5 1769echo "${ECHO_T}yes" >&6 1770 SET_MAKE= 1771else 1772 echo "$as_me:$LINENO: result: no" >&5 1773echo "${ECHO_T}no" >&6 1774 SET_MAKE="MAKE=${MAKE-make}" 1775fi 1776 1777rm -rf .tst 2>/dev/null 1778mkdir .tst 2>/dev/null 1779if test -d .tst; then 1780 am__leading_dot=. 1781else 1782 am__leading_dot=_ 1783fi 1784rmdir .tst 2>/dev/null 1785 1786 # test to see if srcdir already configured 1787if test "`cd $srcdir && pwd`" != "`pwd`" && 1788 test -f $srcdir/config.status; then 1789 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1790echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1791 { (exit 1); exit 1; }; } 1792fi 1793 1794# test whether we have cygpath 1795if test -z "$CYGPATH_W"; then 1796 if (cygpath --version) >/dev/null 2>/dev/null; then 1797 CYGPATH_W='cygpath -w' 1798 else 1799 CYGPATH_W=echo 1800 fi 1801fi 1802 1803 1804# Define the identity of the package. 1805 PACKAGE='libXTrap' 1806 VERSION='1.0.0' 1807 1808 1809cat >>confdefs.h <<_ACEOF 1810#define PACKAGE "$PACKAGE" 1811_ACEOF 1812 1813 1814cat >>confdefs.h <<_ACEOF 1815#define VERSION "$VERSION" 1816_ACEOF 1817 1818# Some tools Automake needs. 1819 1820ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1821 1822 1823AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1824 1825 1826AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1827 1828 1829AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1830 1831 1832MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1833 1834 1835AMTAR=${AMTAR-"${am_missing_run}tar"} 1836 1837install_sh=${install_sh-"$am_aux_dir/install-sh"} 1838 1839# Installed binaries are usually stripped using `strip' when the user 1840# run `make install-strip'. However `strip' might not be the right 1841# tool to use in cross-compilation environments, therefore Automake 1842# will honor the `STRIP' environment variable to overrule this program. 1843if test "$cross_compiling" != no; then 1844 if test -n "$ac_tool_prefix"; then 1845 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1846set dummy ${ac_tool_prefix}strip; ac_word=$2 1847echo "$as_me:$LINENO: checking for $ac_word" >&5 1848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1849if test "${ac_cv_prog_STRIP+set}" = set; then 1850 echo $ECHO_N "(cached) $ECHO_C" >&6 1851else 1852 if test -n "$STRIP"; then 1853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1854else 1855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1856for as_dir in $PATH 1857do 1858 IFS=$as_save_IFS 1859 test -z "$as_dir" && as_dir=. 1860 for ac_exec_ext in '' $ac_executable_extensions; do 1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1862 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1864 break 2 1865 fi 1866done 1867done 1868 1869fi 1870fi 1871STRIP=$ac_cv_prog_STRIP 1872if test -n "$STRIP"; then 1873 echo "$as_me:$LINENO: result: $STRIP" >&5 1874echo "${ECHO_T}$STRIP" >&6 1875else 1876 echo "$as_me:$LINENO: result: no" >&5 1877echo "${ECHO_T}no" >&6 1878fi 1879 1880fi 1881if test -z "$ac_cv_prog_STRIP"; then 1882 ac_ct_STRIP=$STRIP 1883 # Extract the first word of "strip", so it can be a program name with args. 1884set dummy strip; ac_word=$2 1885echo "$as_me:$LINENO: checking for $ac_word" >&5 1886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1887if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1888 echo $ECHO_N "(cached) $ECHO_C" >&6 1889else 1890 if test -n "$ac_ct_STRIP"; then 1891 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1892else 1893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1894for as_dir in $PATH 1895do 1896 IFS=$as_save_IFS 1897 test -z "$as_dir" && as_dir=. 1898 for ac_exec_ext in '' $ac_executable_extensions; do 1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1900 ac_cv_prog_ac_ct_STRIP="strip" 1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1902 break 2 1903 fi 1904done 1905done 1906 1907 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1908fi 1909fi 1910ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1911if test -n "$ac_ct_STRIP"; then 1912 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1913echo "${ECHO_T}$ac_ct_STRIP" >&6 1914else 1915 echo "$as_me:$LINENO: result: no" >&5 1916echo "${ECHO_T}no" >&6 1917fi 1918 1919 STRIP=$ac_ct_STRIP 1920else 1921 STRIP="$ac_cv_prog_STRIP" 1922fi 1923 1924fi 1925INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1926 1927# We need awk for the "check" target. The system "awk" is bad on 1928# some platforms. 1929 1930 1931 1932echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1933echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1934 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1935if test "${enable_maintainer_mode+set}" = set; then 1936 enableval="$enable_maintainer_mode" 1937 USE_MAINTAINER_MODE=$enableval 1938else 1939 USE_MAINTAINER_MODE=no 1940fi; 1941 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1942echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1943 1944 1945if test $USE_MAINTAINER_MODE = yes; then 1946 MAINTAINER_MODE_TRUE= 1947 MAINTAINER_MODE_FALSE='#' 1948else 1949 MAINTAINER_MODE_TRUE='#' 1950 MAINTAINER_MODE_FALSE= 1951fi 1952 1953 MAINT=$MAINTAINER_MODE_TRUE 1954 1955 1956 1957 ac_config_headers="$ac_config_headers config.h" 1958 1959 1960# Check for progs 1961ac_ext=c 1962ac_cpp='$CPP $CPPFLAGS' 1963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1965ac_compiler_gnu=$ac_cv_c_compiler_gnu 1966if test -n "$ac_tool_prefix"; then 1967 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1968set dummy ${ac_tool_prefix}gcc; ac_word=$2 1969echo "$as_me:$LINENO: checking for $ac_word" >&5 1970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1971if test "${ac_cv_prog_CC+set}" = set; then 1972 echo $ECHO_N "(cached) $ECHO_C" >&6 1973else 1974 if test -n "$CC"; then 1975 ac_cv_prog_CC="$CC" # Let the user override the test. 1976else 1977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1978for as_dir in $PATH 1979do 1980 IFS=$as_save_IFS 1981 test -z "$as_dir" && as_dir=. 1982 for ac_exec_ext in '' $ac_executable_extensions; do 1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1984 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1986 break 2 1987 fi 1988done 1989done 1990 1991fi 1992fi 1993CC=$ac_cv_prog_CC 1994if test -n "$CC"; then 1995 echo "$as_me:$LINENO: result: $CC" >&5 1996echo "${ECHO_T}$CC" >&6 1997else 1998 echo "$as_me:$LINENO: result: no" >&5 1999echo "${ECHO_T}no" >&6 2000fi 2001 2002fi 2003if test -z "$ac_cv_prog_CC"; then 2004 ac_ct_CC=$CC 2005 # Extract the first word of "gcc", so it can be a program name with args. 2006set dummy gcc; ac_word=$2 2007echo "$as_me:$LINENO: checking for $ac_word" >&5 2008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2009if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2010 echo $ECHO_N "(cached) $ECHO_C" >&6 2011else 2012 if test -n "$ac_ct_CC"; then 2013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2014else 2015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2016for as_dir in $PATH 2017do 2018 IFS=$as_save_IFS 2019 test -z "$as_dir" && as_dir=. 2020 for ac_exec_ext in '' $ac_executable_extensions; do 2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2022 ac_cv_prog_ac_ct_CC="gcc" 2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2024 break 2 2025 fi 2026done 2027done 2028 2029fi 2030fi 2031ac_ct_CC=$ac_cv_prog_ac_ct_CC 2032if test -n "$ac_ct_CC"; then 2033 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2034echo "${ECHO_T}$ac_ct_CC" >&6 2035else 2036 echo "$as_me:$LINENO: result: no" >&5 2037echo "${ECHO_T}no" >&6 2038fi 2039 2040 CC=$ac_ct_CC 2041else 2042 CC="$ac_cv_prog_CC" 2043fi 2044 2045if test -z "$CC"; then 2046 if test -n "$ac_tool_prefix"; then 2047 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2048set dummy ${ac_tool_prefix}cc; ac_word=$2 2049echo "$as_me:$LINENO: checking for $ac_word" >&5 2050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2051if test "${ac_cv_prog_CC+set}" = set; then 2052 echo $ECHO_N "(cached) $ECHO_C" >&6 2053else 2054 if test -n "$CC"; then 2055 ac_cv_prog_CC="$CC" # Let the user override the test. 2056else 2057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2058for as_dir in $PATH 2059do 2060 IFS=$as_save_IFS 2061 test -z "$as_dir" && as_dir=. 2062 for ac_exec_ext in '' $ac_executable_extensions; do 2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2064 ac_cv_prog_CC="${ac_tool_prefix}cc" 2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2066 break 2 2067 fi 2068done 2069done 2070 2071fi 2072fi 2073CC=$ac_cv_prog_CC 2074if test -n "$CC"; then 2075 echo "$as_me:$LINENO: result: $CC" >&5 2076echo "${ECHO_T}$CC" >&6 2077else 2078 echo "$as_me:$LINENO: result: no" >&5 2079echo "${ECHO_T}no" >&6 2080fi 2081 2082fi 2083if test -z "$ac_cv_prog_CC"; then 2084 ac_ct_CC=$CC 2085 # Extract the first word of "cc", so it can be a program name with args. 2086set dummy cc; ac_word=$2 2087echo "$as_me:$LINENO: checking for $ac_word" >&5 2088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2089if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2090 echo $ECHO_N "(cached) $ECHO_C" >&6 2091else 2092 if test -n "$ac_ct_CC"; then 2093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2094else 2095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2096for as_dir in $PATH 2097do 2098 IFS=$as_save_IFS 2099 test -z "$as_dir" && as_dir=. 2100 for ac_exec_ext in '' $ac_executable_extensions; do 2101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2102 ac_cv_prog_ac_ct_CC="cc" 2103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2104 break 2 2105 fi 2106done 2107done 2108 2109fi 2110fi 2111ac_ct_CC=$ac_cv_prog_ac_ct_CC 2112if test -n "$ac_ct_CC"; then 2113 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2114echo "${ECHO_T}$ac_ct_CC" >&6 2115else 2116 echo "$as_me:$LINENO: result: no" >&5 2117echo "${ECHO_T}no" >&6 2118fi 2119 2120 CC=$ac_ct_CC 2121else 2122 CC="$ac_cv_prog_CC" 2123fi 2124 2125fi 2126if test -z "$CC"; then 2127 # Extract the first word of "cc", so it can be a program name with args. 2128set dummy cc; ac_word=$2 2129echo "$as_me:$LINENO: checking for $ac_word" >&5 2130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2131if test "${ac_cv_prog_CC+set}" = set; then 2132 echo $ECHO_N "(cached) $ECHO_C" >&6 2133else 2134 if test -n "$CC"; then 2135 ac_cv_prog_CC="$CC" # Let the user override the test. 2136else 2137 ac_prog_rejected=no 2138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2139for as_dir in $PATH 2140do 2141 IFS=$as_save_IFS 2142 test -z "$as_dir" && as_dir=. 2143 for ac_exec_ext in '' $ac_executable_extensions; do 2144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2145 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2146 ac_prog_rejected=yes 2147 continue 2148 fi 2149 ac_cv_prog_CC="cc" 2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2151 break 2 2152 fi 2153done 2154done 2155 2156if test $ac_prog_rejected = yes; then 2157 # We found a bogon in the path, so make sure we never use it. 2158 set dummy $ac_cv_prog_CC 2159 shift 2160 if test $# != 0; then 2161 # We chose a different compiler from the bogus one. 2162 # However, it has the same basename, so the bogon will be chosen 2163 # first if we set CC to just the basename; use the full file name. 2164 shift 2165 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2166 fi 2167fi 2168fi 2169fi 2170CC=$ac_cv_prog_CC 2171if test -n "$CC"; then 2172 echo "$as_me:$LINENO: result: $CC" >&5 2173echo "${ECHO_T}$CC" >&6 2174else 2175 echo "$as_me:$LINENO: result: no" >&5 2176echo "${ECHO_T}no" >&6 2177fi 2178 2179fi 2180if test -z "$CC"; then 2181 if test -n "$ac_tool_prefix"; then 2182 for ac_prog in cl 2183 do 2184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2185set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2186echo "$as_me:$LINENO: checking for $ac_word" >&5 2187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2188if test "${ac_cv_prog_CC+set}" = set; then 2189 echo $ECHO_N "(cached) $ECHO_C" >&6 2190else 2191 if test -n "$CC"; then 2192 ac_cv_prog_CC="$CC" # Let the user override the test. 2193else 2194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2195for as_dir in $PATH 2196do 2197 IFS=$as_save_IFS 2198 test -z "$as_dir" && as_dir=. 2199 for ac_exec_ext in '' $ac_executable_extensions; do 2200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2201 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2203 break 2 2204 fi 2205done 2206done 2207 2208fi 2209fi 2210CC=$ac_cv_prog_CC 2211if test -n "$CC"; then 2212 echo "$as_me:$LINENO: result: $CC" >&5 2213echo "${ECHO_T}$CC" >&6 2214else 2215 echo "$as_me:$LINENO: result: no" >&5 2216echo "${ECHO_T}no" >&6 2217fi 2218 2219 test -n "$CC" && break 2220 done 2221fi 2222if test -z "$CC"; then 2223 ac_ct_CC=$CC 2224 for ac_prog in cl 2225do 2226 # Extract the first word of "$ac_prog", so it can be a program name with args. 2227set dummy $ac_prog; ac_word=$2 2228echo "$as_me:$LINENO: checking for $ac_word" >&5 2229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2230if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2231 echo $ECHO_N "(cached) $ECHO_C" >&6 2232else 2233 if test -n "$ac_ct_CC"; then 2234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2235else 2236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2237for as_dir in $PATH 2238do 2239 IFS=$as_save_IFS 2240 test -z "$as_dir" && as_dir=. 2241 for ac_exec_ext in '' $ac_executable_extensions; do 2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2243 ac_cv_prog_ac_ct_CC="$ac_prog" 2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2245 break 2 2246 fi 2247done 2248done 2249 2250fi 2251fi 2252ac_ct_CC=$ac_cv_prog_ac_ct_CC 2253if test -n "$ac_ct_CC"; then 2254 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2255echo "${ECHO_T}$ac_ct_CC" >&6 2256else 2257 echo "$as_me:$LINENO: result: no" >&5 2258echo "${ECHO_T}no" >&6 2259fi 2260 2261 test -n "$ac_ct_CC" && break 2262done 2263 2264 CC=$ac_ct_CC 2265fi 2266 2267fi 2268 2269 2270test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2271See \`config.log' for more details." >&5 2272echo "$as_me: error: no acceptable C compiler found in \$PATH 2273See \`config.log' for more details." >&2;} 2274 { (exit 1); exit 1; }; } 2275 2276# Provide some information about the compiler. 2277echo "$as_me:$LINENO:" \ 2278 "checking for C compiler version" >&5 2279ac_compiler=`set X $ac_compile; echo $2` 2280{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2281 (eval $ac_compiler --version </dev/null >&5) 2>&5 2282 ac_status=$? 2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2284 (exit $ac_status); } 2285{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2286 (eval $ac_compiler -v </dev/null >&5) 2>&5 2287 ac_status=$? 2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2289 (exit $ac_status); } 2290{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2291 (eval $ac_compiler -V </dev/null >&5) 2>&5 2292 ac_status=$? 2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2294 (exit $ac_status); } 2295 2296cat >conftest.$ac_ext <<_ACEOF 2297/* confdefs.h. */ 2298_ACEOF 2299cat confdefs.h >>conftest.$ac_ext 2300cat >>conftest.$ac_ext <<_ACEOF 2301/* end confdefs.h. */ 2302 2303int 2304main () 2305{ 2306 2307 ; 2308 return 0; 2309} 2310_ACEOF 2311ac_clean_files_save=$ac_clean_files 2312ac_clean_files="$ac_clean_files a.out a.exe b.out" 2313# Try to create an executable without -o first, disregard a.out. 2314# It will help us diagnose broken compilers, and finding out an intuition 2315# of exeext. 2316echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2317echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2318ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2319if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2320 (eval $ac_link_default) 2>&5 2321 ac_status=$? 2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2323 (exit $ac_status); }; then 2324 # Find the output, starting from the most likely. This scheme is 2325# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2326# resort. 2327 2328# Be careful to initialize this variable, since it used to be cached. 2329# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2330ac_cv_exeext= 2331# b.out is created by i960 compilers. 2332for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2333do 2334 test -f "$ac_file" || continue 2335 case $ac_file in 2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2337 ;; 2338 conftest.$ac_ext ) 2339 # This is the source file. 2340 ;; 2341 [ab].out ) 2342 # We found the default executable, but exeext='' is most 2343 # certainly right. 2344 break;; 2345 *.* ) 2346 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2347 # FIXME: I believe we export ac_cv_exeext for Libtool, 2348 # but it would be cool to find out if it's true. Does anybody 2349 # maintain Libtool? --akim. 2350 export ac_cv_exeext 2351 break;; 2352 * ) 2353 break;; 2354 esac 2355done 2356else 2357 echo "$as_me: failed program was:" >&5 2358sed 's/^/| /' conftest.$ac_ext >&5 2359 2360{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2361See \`config.log' for more details." >&5 2362echo "$as_me: error: C compiler cannot create executables 2363See \`config.log' for more details." >&2;} 2364 { (exit 77); exit 77; }; } 2365fi 2366 2367ac_exeext=$ac_cv_exeext 2368echo "$as_me:$LINENO: result: $ac_file" >&5 2369echo "${ECHO_T}$ac_file" >&6 2370 2371# Check the compiler produces executables we can run. If not, either 2372# the compiler is broken, or we cross compile. 2373echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2374echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2375# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2376# If not cross compiling, check that we can run a simple program. 2377if test "$cross_compiling" != yes; then 2378 if { ac_try='./$ac_file' 2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2380 (eval $ac_try) 2>&5 2381 ac_status=$? 2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2383 (exit $ac_status); }; }; then 2384 cross_compiling=no 2385 else 2386 if test "$cross_compiling" = maybe; then 2387 cross_compiling=yes 2388 else 2389 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2390If you meant to cross compile, use \`--host'. 2391See \`config.log' for more details." >&5 2392echo "$as_me: error: cannot run C compiled programs. 2393If you meant to cross compile, use \`--host'. 2394See \`config.log' for more details." >&2;} 2395 { (exit 1); exit 1; }; } 2396 fi 2397 fi 2398fi 2399echo "$as_me:$LINENO: result: yes" >&5 2400echo "${ECHO_T}yes" >&6 2401 2402rm -f a.out a.exe conftest$ac_cv_exeext b.out 2403ac_clean_files=$ac_clean_files_save 2404# Check the compiler produces executables we can run. If not, either 2405# the compiler is broken, or we cross compile. 2406echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2407echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2408echo "$as_me:$LINENO: result: $cross_compiling" >&5 2409echo "${ECHO_T}$cross_compiling" >&6 2410 2411echo "$as_me:$LINENO: checking for suffix of executables" >&5 2412echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2414 (eval $ac_link) 2>&5 2415 ac_status=$? 2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2417 (exit $ac_status); }; then 2418 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2419# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2420# work properly (i.e., refer to `conftest.exe'), while it won't with 2421# `rm'. 2422for ac_file in conftest.exe conftest conftest.*; do 2423 test -f "$ac_file" || continue 2424 case $ac_file in 2425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2426 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2427 export ac_cv_exeext 2428 break;; 2429 * ) break;; 2430 esac 2431done 2432else 2433 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2434See \`config.log' for more details." >&5 2435echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2436See \`config.log' for more details." >&2;} 2437 { (exit 1); exit 1; }; } 2438fi 2439 2440rm -f conftest$ac_cv_exeext 2441echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2442echo "${ECHO_T}$ac_cv_exeext" >&6 2443 2444rm -f conftest.$ac_ext 2445EXEEXT=$ac_cv_exeext 2446ac_exeext=$EXEEXT 2447echo "$as_me:$LINENO: checking for suffix of object files" >&5 2448echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2449if test "${ac_cv_objext+set}" = set; then 2450 echo $ECHO_N "(cached) $ECHO_C" >&6 2451else 2452 cat >conftest.$ac_ext <<_ACEOF 2453/* confdefs.h. */ 2454_ACEOF 2455cat confdefs.h >>conftest.$ac_ext 2456cat >>conftest.$ac_ext <<_ACEOF 2457/* end confdefs.h. */ 2458 2459int 2460main () 2461{ 2462 2463 ; 2464 return 0; 2465} 2466_ACEOF 2467rm -f conftest.o conftest.obj 2468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2469 (eval $ac_compile) 2>&5 2470 ac_status=$? 2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2472 (exit $ac_status); }; then 2473 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2474 case $ac_file in 2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2477 break;; 2478 esac 2479done 2480else 2481 echo "$as_me: failed program was:" >&5 2482sed 's/^/| /' conftest.$ac_ext >&5 2483 2484{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2485See \`config.log' for more details." >&5 2486echo "$as_me: error: cannot compute suffix of object files: cannot compile 2487See \`config.log' for more details." >&2;} 2488 { (exit 1); exit 1; }; } 2489fi 2490 2491rm -f conftest.$ac_cv_objext conftest.$ac_ext 2492fi 2493echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2494echo "${ECHO_T}$ac_cv_objext" >&6 2495OBJEXT=$ac_cv_objext 2496ac_objext=$OBJEXT 2497echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2498echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2499if test "${ac_cv_c_compiler_gnu+set}" = set; then 2500 echo $ECHO_N "(cached) $ECHO_C" >&6 2501else 2502 cat >conftest.$ac_ext <<_ACEOF 2503/* confdefs.h. */ 2504_ACEOF 2505cat confdefs.h >>conftest.$ac_ext 2506cat >>conftest.$ac_ext <<_ACEOF 2507/* end confdefs.h. */ 2508 2509int 2510main () 2511{ 2512#ifndef __GNUC__ 2513 choke me 2514#endif 2515 2516 ; 2517 return 0; 2518} 2519_ACEOF 2520rm -f conftest.$ac_objext 2521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2522 (eval $ac_compile) 2>conftest.er1 2523 ac_status=$? 2524 grep -v '^ *+' conftest.er1 >conftest.err 2525 rm -f conftest.er1 2526 cat conftest.err >&5 2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2528 (exit $ac_status); } && 2529 { ac_try='test -z "$ac_c_werror_flag" 2530 || test ! -s conftest.err' 2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2532 (eval $ac_try) 2>&5 2533 ac_status=$? 2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2535 (exit $ac_status); }; } && 2536 { ac_try='test -s conftest.$ac_objext' 2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2538 (eval $ac_try) 2>&5 2539 ac_status=$? 2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2541 (exit $ac_status); }; }; then 2542 ac_compiler_gnu=yes 2543else 2544 echo "$as_me: failed program was:" >&5 2545sed 's/^/| /' conftest.$ac_ext >&5 2546 2547ac_compiler_gnu=no 2548fi 2549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2550ac_cv_c_compiler_gnu=$ac_compiler_gnu 2551 2552fi 2553echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2554echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2555GCC=`test $ac_compiler_gnu = yes && echo yes` 2556ac_test_CFLAGS=${CFLAGS+set} 2557ac_save_CFLAGS=$CFLAGS 2558CFLAGS="-g" 2559echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2560echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2561if test "${ac_cv_prog_cc_g+set}" = set; then 2562 echo $ECHO_N "(cached) $ECHO_C" >&6 2563else 2564 cat >conftest.$ac_ext <<_ACEOF 2565/* confdefs.h. */ 2566_ACEOF 2567cat confdefs.h >>conftest.$ac_ext 2568cat >>conftest.$ac_ext <<_ACEOF 2569/* end confdefs.h. */ 2570 2571int 2572main () 2573{ 2574 2575 ; 2576 return 0; 2577} 2578_ACEOF 2579rm -f conftest.$ac_objext 2580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2581 (eval $ac_compile) 2>conftest.er1 2582 ac_status=$? 2583 grep -v '^ *+' conftest.er1 >conftest.err 2584 rm -f conftest.er1 2585 cat conftest.err >&5 2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2587 (exit $ac_status); } && 2588 { ac_try='test -z "$ac_c_werror_flag" 2589 || test ! -s conftest.err' 2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2591 (eval $ac_try) 2>&5 2592 ac_status=$? 2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2594 (exit $ac_status); }; } && 2595 { ac_try='test -s conftest.$ac_objext' 2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2597 (eval $ac_try) 2>&5 2598 ac_status=$? 2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2600 (exit $ac_status); }; }; then 2601 ac_cv_prog_cc_g=yes 2602else 2603 echo "$as_me: failed program was:" >&5 2604sed 's/^/| /' conftest.$ac_ext >&5 2605 2606ac_cv_prog_cc_g=no 2607fi 2608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2609fi 2610echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2611echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2612if test "$ac_test_CFLAGS" = set; then 2613 CFLAGS=$ac_save_CFLAGS 2614elif test $ac_cv_prog_cc_g = yes; then 2615 if test "$GCC" = yes; then 2616 CFLAGS="-g -O2" 2617 else 2618 CFLAGS="-g" 2619 fi 2620else 2621 if test "$GCC" = yes; then 2622 CFLAGS="-O2" 2623 else 2624 CFLAGS= 2625 fi 2626fi 2627echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2628echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2629if test "${ac_cv_prog_cc_stdc+set}" = set; then 2630 echo $ECHO_N "(cached) $ECHO_C" >&6 2631else 2632 ac_cv_prog_cc_stdc=no 2633ac_save_CC=$CC 2634cat >conftest.$ac_ext <<_ACEOF 2635/* confdefs.h. */ 2636_ACEOF 2637cat confdefs.h >>conftest.$ac_ext 2638cat >>conftest.$ac_ext <<_ACEOF 2639/* end confdefs.h. */ 2640#include <stdarg.h> 2641#include <stdio.h> 2642#include <sys/types.h> 2643#include <sys/stat.h> 2644/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2645struct buf { int x; }; 2646FILE * (*rcsopen) (struct buf *, struct stat *, int); 2647static char *e (p, i) 2648 char **p; 2649 int i; 2650{ 2651 return p[i]; 2652} 2653static char *f (char * (*g) (char **, int), char **p, ...) 2654{ 2655 char *s; 2656 va_list v; 2657 va_start (v,p); 2658 s = g (p, va_arg (v,int)); 2659 va_end (v); 2660 return s; 2661} 2662 2663/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2664 function prototypes and stuff, but not '\xHH' hex character constants. 2665 These don't provoke an error unfortunately, instead are silently treated 2666 as 'x'. The following induces an error, until -std1 is added to get 2667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2668 array size at least. It's necessary to write '\x00'==0 to get something 2669 that's true only with -std1. */ 2670int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2671 2672int test (int i, double x); 2673struct s1 {int (*f) (int a);}; 2674struct s2 {int (*f) (double a);}; 2675int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2676int argc; 2677char **argv; 2678int 2679main () 2680{ 2681return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2682 ; 2683 return 0; 2684} 2685_ACEOF 2686# Don't try gcc -ansi; that turns off useful extensions and 2687# breaks some systems' header files. 2688# AIX -qlanglvl=ansi 2689# Ultrix and OSF/1 -std1 2690# HP-UX 10.20 and later -Ae 2691# HP-UX older versions -Aa -D_HPUX_SOURCE 2692# SVR4 -Xc -D__EXTENSIONS__ 2693for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2694do 2695 CC="$ac_save_CC $ac_arg" 2696 rm -f conftest.$ac_objext 2697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2698 (eval $ac_compile) 2>conftest.er1 2699 ac_status=$? 2700 grep -v '^ *+' conftest.er1 >conftest.err 2701 rm -f conftest.er1 2702 cat conftest.err >&5 2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2704 (exit $ac_status); } && 2705 { ac_try='test -z "$ac_c_werror_flag" 2706 || test ! -s conftest.err' 2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2708 (eval $ac_try) 2>&5 2709 ac_status=$? 2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2711 (exit $ac_status); }; } && 2712 { ac_try='test -s conftest.$ac_objext' 2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2714 (eval $ac_try) 2>&5 2715 ac_status=$? 2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2717 (exit $ac_status); }; }; then 2718 ac_cv_prog_cc_stdc=$ac_arg 2719break 2720else 2721 echo "$as_me: failed program was:" >&5 2722sed 's/^/| /' conftest.$ac_ext >&5 2723 2724fi 2725rm -f conftest.err conftest.$ac_objext 2726done 2727rm -f conftest.$ac_ext conftest.$ac_objext 2728CC=$ac_save_CC 2729 2730fi 2731 2732case "x$ac_cv_prog_cc_stdc" in 2733 x|xno) 2734 echo "$as_me:$LINENO: result: none needed" >&5 2735echo "${ECHO_T}none needed" >&6 ;; 2736 *) 2737 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2738echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2739 CC="$CC $ac_cv_prog_cc_stdc" ;; 2740esac 2741 2742# Some people use a C++ compiler to compile C. Since we use `exit', 2743# in C++ we need to declare it. In case someone uses the same compiler 2744# for both compiling C and C++ we need to have the C++ compiler decide 2745# the declaration of exit, since it's the most demanding environment. 2746cat >conftest.$ac_ext <<_ACEOF 2747#ifndef __cplusplus 2748 choke me 2749#endif 2750_ACEOF 2751rm -f conftest.$ac_objext 2752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2753 (eval $ac_compile) 2>conftest.er1 2754 ac_status=$? 2755 grep -v '^ *+' conftest.er1 >conftest.err 2756 rm -f conftest.er1 2757 cat conftest.err >&5 2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2759 (exit $ac_status); } && 2760 { ac_try='test -z "$ac_c_werror_flag" 2761 || test ! -s conftest.err' 2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2763 (eval $ac_try) 2>&5 2764 ac_status=$? 2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2766 (exit $ac_status); }; } && 2767 { ac_try='test -s conftest.$ac_objext' 2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2769 (eval $ac_try) 2>&5 2770 ac_status=$? 2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2772 (exit $ac_status); }; }; then 2773 for ac_declaration in \ 2774 '' \ 2775 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2776 'extern "C" void std::exit (int); using std::exit;' \ 2777 'extern "C" void exit (int) throw ();' \ 2778 'extern "C" void exit (int);' \ 2779 'void exit (int);' 2780do 2781 cat >conftest.$ac_ext <<_ACEOF 2782/* confdefs.h. */ 2783_ACEOF 2784cat confdefs.h >>conftest.$ac_ext 2785cat >>conftest.$ac_ext <<_ACEOF 2786/* end confdefs.h. */ 2787$ac_declaration 2788#include <stdlib.h> 2789int 2790main () 2791{ 2792exit (42); 2793 ; 2794 return 0; 2795} 2796_ACEOF 2797rm -f conftest.$ac_objext 2798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2799 (eval $ac_compile) 2>conftest.er1 2800 ac_status=$? 2801 grep -v '^ *+' conftest.er1 >conftest.err 2802 rm -f conftest.er1 2803 cat conftest.err >&5 2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2805 (exit $ac_status); } && 2806 { ac_try='test -z "$ac_c_werror_flag" 2807 || test ! -s conftest.err' 2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2809 (eval $ac_try) 2>&5 2810 ac_status=$? 2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2812 (exit $ac_status); }; } && 2813 { ac_try='test -s conftest.$ac_objext' 2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2815 (eval $ac_try) 2>&5 2816 ac_status=$? 2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2818 (exit $ac_status); }; }; then 2819 : 2820else 2821 echo "$as_me: failed program was:" >&5 2822sed 's/^/| /' conftest.$ac_ext >&5 2823 2824continue 2825fi 2826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2827 cat >conftest.$ac_ext <<_ACEOF 2828/* confdefs.h. */ 2829_ACEOF 2830cat confdefs.h >>conftest.$ac_ext 2831cat >>conftest.$ac_ext <<_ACEOF 2832/* end confdefs.h. */ 2833$ac_declaration 2834int 2835main () 2836{ 2837exit (42); 2838 ; 2839 return 0; 2840} 2841_ACEOF 2842rm -f conftest.$ac_objext 2843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2844 (eval $ac_compile) 2>conftest.er1 2845 ac_status=$? 2846 grep -v '^ *+' conftest.er1 >conftest.err 2847 rm -f conftest.er1 2848 cat conftest.err >&5 2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2850 (exit $ac_status); } && 2851 { ac_try='test -z "$ac_c_werror_flag" 2852 || test ! -s conftest.err' 2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2854 (eval $ac_try) 2>&5 2855 ac_status=$? 2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2857 (exit $ac_status); }; } && 2858 { ac_try='test -s conftest.$ac_objext' 2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2860 (eval $ac_try) 2>&5 2861 ac_status=$? 2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2863 (exit $ac_status); }; }; then 2864 break 2865else 2866 echo "$as_me: failed program was:" >&5 2867sed 's/^/| /' conftest.$ac_ext >&5 2868 2869fi 2870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2871done 2872rm -f conftest* 2873if test -n "$ac_declaration"; then 2874 echo '#ifdef __cplusplus' >>confdefs.h 2875 echo $ac_declaration >>confdefs.h 2876 echo '#endif' >>confdefs.h 2877fi 2878 2879else 2880 echo "$as_me: failed program was:" >&5 2881sed 's/^/| /' conftest.$ac_ext >&5 2882 2883fi 2884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2885ac_ext=c 2886ac_cpp='$CPP $CPPFLAGS' 2887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2889ac_compiler_gnu=$ac_cv_c_compiler_gnu 2890DEPDIR="${am__leading_dot}deps" 2891 2892 ac_config_commands="$ac_config_commands depfiles" 2893 2894 2895am_make=${MAKE-make} 2896cat > confinc << 'END' 2897am__doit: 2898 @echo done 2899.PHONY: am__doit 2900END 2901# If we don't find an include directive, just comment out the code. 2902echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2903echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2904am__include="#" 2905am__quote= 2906_am_result=none 2907# First try GNU make style include. 2908echo "include confinc" > confmf 2909# We grep out `Entering directory' and `Leaving directory' 2910# messages which can occur if `w' ends up in MAKEFLAGS. 2911# In particular we don't look at `^make:' because GNU make might 2912# be invoked under some other name (usually "gmake"), in which 2913# case it prints its new name instead of `make'. 2914if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2915 am__include=include 2916 am__quote= 2917 _am_result=GNU 2918fi 2919# Now try BSD make style include. 2920if test "$am__include" = "#"; then 2921 echo '.include "confinc"' > confmf 2922 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2923 am__include=.include 2924 am__quote="\"" 2925 _am_result=BSD 2926 fi 2927fi 2928 2929 2930echo "$as_me:$LINENO: result: $_am_result" >&5 2931echo "${ECHO_T}$_am_result" >&6 2932rm -f confinc confmf 2933 2934# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2935if test "${enable_dependency_tracking+set}" = set; then 2936 enableval="$enable_dependency_tracking" 2937 2938fi; 2939if test "x$enable_dependency_tracking" != xno; then 2940 am_depcomp="$ac_aux_dir/depcomp" 2941 AMDEPBACKSLASH='\' 2942fi 2943 2944 2945if test "x$enable_dependency_tracking" != xno; then 2946 AMDEP_TRUE= 2947 AMDEP_FALSE='#' 2948else 2949 AMDEP_TRUE='#' 2950 AMDEP_FALSE= 2951fi 2952 2953 2954 2955 2956depcc="$CC" am_compiler_list= 2957 2958echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2959echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2960if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2961 echo $ECHO_N "(cached) $ECHO_C" >&6 2962else 2963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2964 # We make a subdir and do the tests there. Otherwise we can end up 2965 # making bogus files that we don't know about and never remove. For 2966 # instance it was reported that on HP-UX the gcc test will end up 2967 # making a dummy file named `D' -- because `-MD' means `put the output 2968 # in D'. 2969 mkdir conftest.dir 2970 # Copy depcomp to subdir because otherwise we won't find it if we're 2971 # using a relative directory. 2972 cp "$am_depcomp" conftest.dir 2973 cd conftest.dir 2974 # We will build objects and dependencies in a subdirectory because 2975 # it helps to detect inapplicable dependency modes. For instance 2976 # both Tru64's cc and ICC support -MD to output dependencies as a 2977 # side effect of compilation, but ICC will put the dependencies in 2978 # the current directory while Tru64 will put them in the object 2979 # directory. 2980 mkdir sub 2981 2982 am_cv_CC_dependencies_compiler_type=none 2983 if test "$am_compiler_list" = ""; then 2984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2985 fi 2986 for depmode in $am_compiler_list; do 2987 # Setup a source with many dependencies, because some compilers 2988 # like to wrap large dependency lists on column 80 (with \), and 2989 # we should not choose a depcomp mode which is confused by this. 2990 # 2991 # We need to recreate these files for each test, as the compiler may 2992 # overwrite some of them when testing with obscure command lines. 2993 # This happens at least with the AIX C compiler. 2994 : > sub/conftest.c 2995 for i in 1 2 3 4 5 6; do 2996 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2997 : > sub/conftst$i.h 2998 done 2999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3000 3001 case $depmode in 3002 nosideeffect) 3003 # after this tag, mechanisms are not by side-effect, so they'll 3004 # only be used when explicitly requested 3005 if test "x$enable_dependency_tracking" = xyes; then 3006 continue 3007 else 3008 break 3009 fi 3010 ;; 3011 none) break ;; 3012 esac 3013 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3014 # mode. It turns out that the SunPro C++ compiler does not properly 3015 # handle `-M -o', and we need to detect this. 3016 if depmode=$depmode \ 3017 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3019 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3020 >/dev/null 2>conftest.err && 3021 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3022 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3023 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3024 # icc doesn't choke on unknown options, it will just issue warnings 3025 # (even with -Werror). So we grep stderr for any message 3026 # that says an option was ignored. 3027 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3028 am_cv_CC_dependencies_compiler_type=$depmode 3029 break 3030 fi 3031 fi 3032 done 3033 3034 cd .. 3035 rm -rf conftest.dir 3036else 3037 am_cv_CC_dependencies_compiler_type=none 3038fi 3039 3040fi 3041echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3042echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3043CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3044 3045 3046 3047if 3048 test "x$enable_dependency_tracking" != xno \ 3049 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3050 am__fastdepCC_TRUE= 3051 am__fastdepCC_FALSE='#' 3052else 3053 am__fastdepCC_TRUE='#' 3054 am__fastdepCC_FALSE= 3055fi 3056 3057 3058# Check whether --enable-shared or --disable-shared was given. 3059if test "${enable_shared+set}" = set; then 3060 enableval="$enable_shared" 3061 p=${PACKAGE-default} 3062 case $enableval in 3063 yes) enable_shared=yes ;; 3064 no) enable_shared=no ;; 3065 *) 3066 enable_shared=no 3067 # Look at the argument we got. We use all the common list separators. 3068 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3069 for pkg in $enableval; do 3070 IFS="$lt_save_ifs" 3071 if test "X$pkg" = "X$p"; then 3072 enable_shared=yes 3073 fi 3074 done 3075 IFS="$lt_save_ifs" 3076 ;; 3077 esac 3078else 3079 enable_shared=yes 3080fi; 3081 3082# Check whether --enable-static or --disable-static was given. 3083if test "${enable_static+set}" = set; then 3084 enableval="$enable_static" 3085 p=${PACKAGE-default} 3086 case $enableval in 3087 yes) enable_static=yes ;; 3088 no) enable_static=no ;; 3089 *) 3090 enable_static=no 3091 # Look at the argument we got. We use all the common list separators. 3092 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3093 for pkg in $enableval; do 3094 IFS="$lt_save_ifs" 3095 if test "X$pkg" = "X$p"; then 3096 enable_static=yes 3097 fi 3098 done 3099 IFS="$lt_save_ifs" 3100 ;; 3101 esac 3102else 3103 enable_static=yes 3104fi; 3105 3106# Check whether --enable-fast-install or --disable-fast-install was given. 3107if test "${enable_fast_install+set}" = set; then 3108 enableval="$enable_fast_install" 3109 p=${PACKAGE-default} 3110 case $enableval in 3111 yes) enable_fast_install=yes ;; 3112 no) enable_fast_install=no ;; 3113 *) 3114 enable_fast_install=no 3115 # Look at the argument we got. We use all the common list separators. 3116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3117 for pkg in $enableval; do 3118 IFS="$lt_save_ifs" 3119 if test "X$pkg" = "X$p"; then 3120 enable_fast_install=yes 3121 fi 3122 done 3123 IFS="$lt_save_ifs" 3124 ;; 3125 esac 3126else 3127 enable_fast_install=yes 3128fi; 3129 3130# Make sure we can run config.sub. 3131$ac_config_sub sun4 >/dev/null 2>&1 || 3132 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3133echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3134 { (exit 1); exit 1; }; } 3135 3136echo "$as_me:$LINENO: checking build system type" >&5 3137echo $ECHO_N "checking build system type... $ECHO_C" >&6 3138if test "${ac_cv_build+set}" = set; then 3139 echo $ECHO_N "(cached) $ECHO_C" >&6 3140else 3141 ac_cv_build_alias=$build_alias 3142test -z "$ac_cv_build_alias" && 3143 ac_cv_build_alias=`$ac_config_guess` 3144test -z "$ac_cv_build_alias" && 3145 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3146echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3147 { (exit 1); exit 1; }; } 3148ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3149 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3150echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3151 { (exit 1); exit 1; }; } 3152 3153fi 3154echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3155echo "${ECHO_T}$ac_cv_build" >&6 3156build=$ac_cv_build 3157build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3158build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3159build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3160 3161 3162echo "$as_me:$LINENO: checking host system type" >&5 3163echo $ECHO_N "checking host system type... $ECHO_C" >&6 3164if test "${ac_cv_host+set}" = set; then 3165 echo $ECHO_N "(cached) $ECHO_C" >&6 3166else 3167 ac_cv_host_alias=$host_alias 3168test -z "$ac_cv_host_alias" && 3169 ac_cv_host_alias=$ac_cv_build_alias 3170ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3171 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3172echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3173 { (exit 1); exit 1; }; } 3174 3175fi 3176echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3177echo "${ECHO_T}$ac_cv_host" >&6 3178host=$ac_cv_host 3179host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3180host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3181host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3182 3183 3184echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3185echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3186if test "${lt_cv_path_SED+set}" = set; then 3187 echo $ECHO_N "(cached) $ECHO_C" >&6 3188else 3189 # Loop through the user's path and test for sed and gsed. 3190# Then use that list of sed's as ones to test for truncation. 3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3192for as_dir in $PATH 3193do 3194 IFS=$as_save_IFS 3195 test -z "$as_dir" && as_dir=. 3196 for lt_ac_prog in sed gsed; do 3197 for ac_exec_ext in '' $ac_executable_extensions; do 3198 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3199 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3200 fi 3201 done 3202 done 3203done 3204lt_ac_max=0 3205lt_ac_count=0 3206# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3207# along with /bin/sed that truncates output. 3208for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3209 test ! -f $lt_ac_sed && break 3210 cat /dev/null > conftest.in 3211 lt_ac_count=0 3212 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3213 # Check for GNU sed and select it if it is found. 3214 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3215 lt_cv_path_SED=$lt_ac_sed 3216 break 3217 fi 3218 while true; do 3219 cat conftest.in conftest.in >conftest.tmp 3220 mv conftest.tmp conftest.in 3221 cp conftest.in conftest.nl 3222 echo >>conftest.nl 3223 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3224 cmp -s conftest.out conftest.nl || break 3225 # 10000 chars as input seems more than enough 3226 test $lt_ac_count -gt 10 && break 3227 lt_ac_count=`expr $lt_ac_count + 1` 3228 if test $lt_ac_count -gt $lt_ac_max; then 3229 lt_ac_max=$lt_ac_count 3230 lt_cv_path_SED=$lt_ac_sed 3231 fi 3232 done 3233done 3234SED=$lt_cv_path_SED 3235 3236fi 3237 3238echo "$as_me:$LINENO: result: $SED" >&5 3239echo "${ECHO_T}$SED" >&6 3240 3241echo "$as_me:$LINENO: checking for egrep" >&5 3242echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3243if test "${ac_cv_prog_egrep+set}" = set; then 3244 echo $ECHO_N "(cached) $ECHO_C" >&6 3245else 3246 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3247 then ac_cv_prog_egrep='grep -E' 3248 else ac_cv_prog_egrep='egrep' 3249 fi 3250fi 3251echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3252echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3253 EGREP=$ac_cv_prog_egrep 3254 3255 3256 3257# Check whether --with-gnu-ld or --without-gnu-ld was given. 3258if test "${with_gnu_ld+set}" = set; then 3259 withval="$with_gnu_ld" 3260 test "$withval" = no || with_gnu_ld=yes 3261else 3262 with_gnu_ld=no 3263fi; 3264ac_prog=ld 3265if test "$GCC" = yes; then 3266 # Check if gcc -print-prog-name=ld gives a path. 3267 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3268echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3269 case $host in 3270 *-*-mingw*) 3271 # gcc leaves a trailing carriage return which upsets mingw 3272 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3273 *) 3274 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3275 esac 3276 case $ac_prog in 3277 # Accept absolute paths. 3278 [\\/]* | ?:[\\/]*) 3279 re_direlt='/[^/][^/]*/\.\./' 3280 # Canonicalize the pathname of ld 3281 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3282 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3283 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3284 done 3285 test -z "$LD" && LD="$ac_prog" 3286 ;; 3287 "") 3288 # If it fails, then pretend we aren't using GCC. 3289 ac_prog=ld 3290 ;; 3291 *) 3292 # If it is relative, then search for the first ld in PATH. 3293 with_gnu_ld=unknown 3294 ;; 3295 esac 3296elif test "$with_gnu_ld" = yes; then 3297 echo "$as_me:$LINENO: checking for GNU ld" >&5 3298echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3299else 3300 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3301echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3302fi 3303if test "${lt_cv_path_LD+set}" = set; then 3304 echo $ECHO_N "(cached) $ECHO_C" >&6 3305else 3306 if test -z "$LD"; then 3307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3308 for ac_dir in $PATH; do 3309 IFS="$lt_save_ifs" 3310 test -z "$ac_dir" && ac_dir=. 3311 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3312 lt_cv_path_LD="$ac_dir/$ac_prog" 3313 # Check to see if the program is GNU ld. I'd rather use --version, 3314 # but apparently some GNU ld's only accept -v. 3315 # Break only if it was the GNU/non-GNU ld that we prefer. 3316 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3317 *GNU* | *'with BFD'*) 3318 test "$with_gnu_ld" != no && break 3319 ;; 3320 *) 3321 test "$with_gnu_ld" != yes && break 3322 ;; 3323 esac 3324 fi 3325 done 3326 IFS="$lt_save_ifs" 3327else 3328 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3329fi 3330fi 3331 3332LD="$lt_cv_path_LD" 3333if test -n "$LD"; then 3334 echo "$as_me:$LINENO: result: $LD" >&5 3335echo "${ECHO_T}$LD" >&6 3336else 3337 echo "$as_me:$LINENO: result: no" >&5 3338echo "${ECHO_T}no" >&6 3339fi 3340test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3341echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3342 { (exit 1); exit 1; }; } 3343echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3344echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3345if test "${lt_cv_prog_gnu_ld+set}" = set; then 3346 echo $ECHO_N "(cached) $ECHO_C" >&6 3347else 3348 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3349case `$LD -v 2>&1 </dev/null` in 3350*GNU* | *'with BFD'*) 3351 lt_cv_prog_gnu_ld=yes 3352 ;; 3353*) 3354 lt_cv_prog_gnu_ld=no 3355 ;; 3356esac 3357fi 3358echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3359echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3360with_gnu_ld=$lt_cv_prog_gnu_ld 3361 3362 3363echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3364echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3365if test "${lt_cv_ld_reload_flag+set}" = set; then 3366 echo $ECHO_N "(cached) $ECHO_C" >&6 3367else 3368 lt_cv_ld_reload_flag='-r' 3369fi 3370echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3371echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3372reload_flag=$lt_cv_ld_reload_flag 3373case $reload_flag in 3374"" | " "*) ;; 3375*) reload_flag=" $reload_flag" ;; 3376esac 3377reload_cmds='$LD$reload_flag -o $output$reload_objs' 3378 3379echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3380echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3381if test "${lt_cv_path_NM+set}" = set; then 3382 echo $ECHO_N "(cached) $ECHO_C" >&6 3383else 3384 if test -n "$NM"; then 3385 # Let the user override the test. 3386 lt_cv_path_NM="$NM" 3387else 3388 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3389 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3390 IFS="$lt_save_ifs" 3391 test -z "$ac_dir" && ac_dir=. 3392 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3393 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3394 # Check to see if the nm accepts a BSD-compat flag. 3395 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3396 # nm: unknown option "B" ignored 3397 # Tru64's nm complains that /dev/null is an invalid object file 3398 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3399 */dev/null* | *'Invalid file or object type'*) 3400 lt_cv_path_NM="$tmp_nm -B" 3401 break 3402 ;; 3403 *) 3404 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3405 */dev/null*) 3406 lt_cv_path_NM="$tmp_nm -p" 3407 break 3408 ;; 3409 *) 3410 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3411 continue # so that we can try to find one that supports BSD flags 3412 ;; 3413 esac 3414 esac 3415 fi 3416 done 3417 IFS="$lt_save_ifs" 3418 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3419fi 3420fi 3421echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3422echo "${ECHO_T}$lt_cv_path_NM" >&6 3423NM="$lt_cv_path_NM" 3424 3425echo "$as_me:$LINENO: checking whether ln -s works" >&5 3426echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3427LN_S=$as_ln_s 3428if test "$LN_S" = "ln -s"; then 3429 echo "$as_me:$LINENO: result: yes" >&5 3430echo "${ECHO_T}yes" >&6 3431else 3432 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3433echo "${ECHO_T}no, using $LN_S" >&6 3434fi 3435 3436echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3437echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3438if test "${lt_cv_deplibs_check_method+set}" = set; then 3439 echo $ECHO_N "(cached) $ECHO_C" >&6 3440else 3441 lt_cv_file_magic_cmd='$MAGIC_CMD' 3442lt_cv_file_magic_test_file= 3443lt_cv_deplibs_check_method='unknown' 3444# Need to set the preceding variable on all platforms that support 3445# interlibrary dependencies. 3446# 'none' -- dependencies not supported. 3447# `unknown' -- same as none, but documents that we really don't know. 3448# 'pass_all' -- all dependencies passed with no checks. 3449# 'test_compile' -- check by making test program. 3450# 'file_magic [[regex]]' -- check by looking for files in library path 3451# which responds to the $file_magic_cmd with a given extended regex. 3452# If you have `file' or equivalent on your system and you're not sure 3453# whether `pass_all' will *always* work, you probably want this one. 3454 3455case $host_os in 3456aix4* | aix5*) 3457 lt_cv_deplibs_check_method=pass_all 3458 ;; 3459 3460beos*) 3461 lt_cv_deplibs_check_method=pass_all 3462 ;; 3463 3464bsdi4*) 3465 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3466 lt_cv_file_magic_cmd='/usr/bin/file -L' 3467 lt_cv_file_magic_test_file=/shlib/libc.so 3468 ;; 3469 3470cygwin*) 3471 # func_win32_libid is a shell function defined in ltmain.sh 3472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3473 lt_cv_file_magic_cmd='func_win32_libid' 3474 ;; 3475 3476mingw* | pw32*) 3477 # Base MSYS/MinGW do not provide the 'file' command needed by 3478 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3479 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3480 lt_cv_file_magic_cmd='$OBJDUMP -f' 3481 ;; 3482 3483darwin* | rhapsody*) 3484 lt_cv_deplibs_check_method=pass_all 3485 ;; 3486 3487freebsd* | kfreebsd*-gnu) 3488 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3489 case $host_cpu in 3490 i*86 ) 3491 # Not sure whether the presence of OpenBSD here was a mistake. 3492 # Let's accept both of them until this is cleared up. 3493 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3494 lt_cv_file_magic_cmd=/usr/bin/file 3495 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3496 ;; 3497 esac 3498 else 3499 lt_cv_deplibs_check_method=pass_all 3500 fi 3501 ;; 3502 3503gnu*) 3504 lt_cv_deplibs_check_method=pass_all 3505 ;; 3506 3507hpux10.20* | hpux11*) 3508 lt_cv_file_magic_cmd=/usr/bin/file 3509 case "$host_cpu" in 3510 ia64*) 3511 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3512 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3513 ;; 3514 hppa*64*) 3515 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]' 3516 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3517 ;; 3518 *) 3519 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3520 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3521 ;; 3522 esac 3523 ;; 3524 3525irix5* | irix6* | nonstopux*) 3526 case $LD in 3527 *-32|*"-32 ") libmagic=32-bit;; 3528 *-n32|*"-n32 ") libmagic=N32;; 3529 *-64|*"-64 ") libmagic=64-bit;; 3530 *) libmagic=never-match;; 3531 esac 3532 lt_cv_deplibs_check_method=pass_all 3533 ;; 3534 3535# This must be Linux ELF. 3536linux*) 3537 case $host_cpu in 3538 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*) 3539 lt_cv_deplibs_check_method=pass_all ;; 3540 *) 3541 # glibc up to 2.1.1 does not perform some relocations on ARM 3542 # this will be overridden with pass_all, but let us keep it just in case 3543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 3544 esac 3545 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3546 lt_cv_deplibs_check_method=pass_all 3547 ;; 3548 3549netbsd*) 3550 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3552 else 3553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3554 fi 3555 ;; 3556 3557newos6*) 3558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3559 lt_cv_file_magic_cmd=/usr/bin/file 3560 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3561 ;; 3562 3563nto-qnx*) 3564 lt_cv_deplibs_check_method=unknown 3565 ;; 3566 3567openbsd*) 3568 lt_cv_file_magic_cmd=/usr/bin/file 3569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3570 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3572 else 3573 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3574 fi 3575 ;; 3576 3577osf3* | osf4* | osf5*) 3578 lt_cv_deplibs_check_method=pass_all 3579 ;; 3580 3581sco3.2v5*) 3582 lt_cv_deplibs_check_method=pass_all 3583 ;; 3584 3585solaris*) 3586 lt_cv_deplibs_check_method=pass_all 3587 ;; 3588 3589sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3590 case $host_vendor in 3591 motorola) 3592 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]' 3593 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3594 ;; 3595 ncr) 3596 lt_cv_deplibs_check_method=pass_all 3597 ;; 3598 sequent) 3599 lt_cv_file_magic_cmd='/bin/file' 3600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3601 ;; 3602 sni) 3603 lt_cv_file_magic_cmd='/bin/file' 3604 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3605 lt_cv_file_magic_test_file=/lib/libc.so 3606 ;; 3607 siemens) 3608 lt_cv_deplibs_check_method=pass_all 3609 ;; 3610 esac 3611 ;; 3612 3613sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3614 lt_cv_deplibs_check_method=pass_all 3615 ;; 3616esac 3617 3618fi 3619echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3620echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3621file_magic_cmd=$lt_cv_file_magic_cmd 3622deplibs_check_method=$lt_cv_deplibs_check_method 3623test -z "$deplibs_check_method" && deplibs_check_method=unknown 3624 3625 3626 3627 3628# If no C compiler was specified, use CC. 3629LTCC=${LTCC-"$CC"} 3630 3631# Allow CC to be a program name with arguments. 3632compiler=$CC 3633 3634 3635# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3636if test "${enable_libtool_lock+set}" = set; then 3637 enableval="$enable_libtool_lock" 3638 3639fi; 3640test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3641 3642# Some flags need to be propagated to the compiler or linker for good 3643# libtool support. 3644case $host in 3645ia64-*-hpux*) 3646 # Find out which ABI we are using. 3647 echo 'int i;' > conftest.$ac_ext 3648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3649 (eval $ac_compile) 2>&5 3650 ac_status=$? 3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3652 (exit $ac_status); }; then 3653 case `/usr/bin/file conftest.$ac_objext` in 3654 *ELF-32*) 3655 HPUX_IA64_MODE="32" 3656 ;; 3657 *ELF-64*) 3658 HPUX_IA64_MODE="64" 3659 ;; 3660 esac 3661 fi 3662 rm -rf conftest* 3663 ;; 3664*-*-irix6*) 3665 # Find out which ABI we are using. 3666 echo '#line 3666 "configure"' > conftest.$ac_ext 3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3668 (eval $ac_compile) 2>&5 3669 ac_status=$? 3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3671 (exit $ac_status); }; then 3672 if test "$lt_cv_prog_gnu_ld" = yes; then 3673 case `/usr/bin/file conftest.$ac_objext` in 3674 *32-bit*) 3675 LD="${LD-ld} -melf32bsmip" 3676 ;; 3677 *N32*) 3678 LD="${LD-ld} -melf32bmipn32" 3679 ;; 3680 *64-bit*) 3681 LD="${LD-ld} -melf64bmip" 3682 ;; 3683 esac 3684 else 3685 case `/usr/bin/file conftest.$ac_objext` in 3686 *32-bit*) 3687 LD="${LD-ld} -32" 3688 ;; 3689 *N32*) 3690 LD="${LD-ld} -n32" 3691 ;; 3692 *64-bit*) 3693 LD="${LD-ld} -64" 3694 ;; 3695 esac 3696 fi 3697 fi 3698 rm -rf conftest* 3699 ;; 3700 3701x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3702 # Find out which ABI we are using. 3703 echo 'int i;' > conftest.$ac_ext 3704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3705 (eval $ac_compile) 2>&5 3706 ac_status=$? 3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3708 (exit $ac_status); }; then 3709 case "`/usr/bin/file conftest.o`" in 3710 *32-bit*) 3711 case $host in 3712 x86_64-*linux*) 3713 LD="${LD-ld} -m elf_i386" 3714 ;; 3715 ppc64-*linux*|powerpc64-*linux*) 3716 LD="${LD-ld} -m elf32ppclinux" 3717 ;; 3718 s390x-*linux*) 3719 LD="${LD-ld} -m elf_s390" 3720 ;; 3721 sparc64-*linux*) 3722 LD="${LD-ld} -m elf32_sparc" 3723 ;; 3724 esac 3725 ;; 3726 *64-bit*) 3727 case $host in 3728 x86_64-*linux*) 3729 LD="${LD-ld} -m elf_x86_64" 3730 ;; 3731 ppc*-*linux*|powerpc*-*linux*) 3732 LD="${LD-ld} -m elf64ppc" 3733 ;; 3734 s390*-*linux*) 3735 LD="${LD-ld} -m elf64_s390" 3736 ;; 3737 sparc*-*linux*) 3738 LD="${LD-ld} -m elf64_sparc" 3739 ;; 3740 esac 3741 ;; 3742 esac 3743 fi 3744 rm -rf conftest* 3745 ;; 3746 3747*-*-sco3.2v5*) 3748 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3749 SAVE_CFLAGS="$CFLAGS" 3750 CFLAGS="$CFLAGS -belf" 3751 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3752echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3753if test "${lt_cv_cc_needs_belf+set}" = set; then 3754 echo $ECHO_N "(cached) $ECHO_C" >&6 3755else 3756 ac_ext=c 3757ac_cpp='$CPP $CPPFLAGS' 3758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3760ac_compiler_gnu=$ac_cv_c_compiler_gnu 3761 3762 cat >conftest.$ac_ext <<_ACEOF 3763/* confdefs.h. */ 3764_ACEOF 3765cat confdefs.h >>conftest.$ac_ext 3766cat >>conftest.$ac_ext <<_ACEOF 3767/* end confdefs.h. */ 3768 3769int 3770main () 3771{ 3772 3773 ; 3774 return 0; 3775} 3776_ACEOF 3777rm -f conftest.$ac_objext conftest$ac_exeext 3778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3779 (eval $ac_link) 2>conftest.er1 3780 ac_status=$? 3781 grep -v '^ *+' conftest.er1 >conftest.err 3782 rm -f conftest.er1 3783 cat conftest.err >&5 3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3785 (exit $ac_status); } && 3786 { ac_try='test -z "$ac_c_werror_flag" 3787 || test ! -s conftest.err' 3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3789 (eval $ac_try) 2>&5 3790 ac_status=$? 3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3792 (exit $ac_status); }; } && 3793 { ac_try='test -s conftest$ac_exeext' 3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3795 (eval $ac_try) 2>&5 3796 ac_status=$? 3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3798 (exit $ac_status); }; }; then 3799 lt_cv_cc_needs_belf=yes 3800else 3801 echo "$as_me: failed program was:" >&5 3802sed 's/^/| /' conftest.$ac_ext >&5 3803 3804lt_cv_cc_needs_belf=no 3805fi 3806rm -f conftest.err conftest.$ac_objext \ 3807 conftest$ac_exeext conftest.$ac_ext 3808 ac_ext=c 3809ac_cpp='$CPP $CPPFLAGS' 3810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3812ac_compiler_gnu=$ac_cv_c_compiler_gnu 3813 3814fi 3815echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3816echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3817 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3818 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3819 CFLAGS="$SAVE_CFLAGS" 3820 fi 3821 ;; 3822 3823esac 3824 3825need_locks="$enable_libtool_lock" 3826 3827 3828ac_ext=c 3829ac_cpp='$CPP $CPPFLAGS' 3830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3832ac_compiler_gnu=$ac_cv_c_compiler_gnu 3833echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3834echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3835# On Suns, sometimes $CPP names a directory. 3836if test -n "$CPP" && test -d "$CPP"; then 3837 CPP= 3838fi 3839if test -z "$CPP"; then 3840 if test "${ac_cv_prog_CPP+set}" = set; then 3841 echo $ECHO_N "(cached) $ECHO_C" >&6 3842else 3843 # Double quotes because CPP needs to be expanded 3844 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3845 do 3846 ac_preproc_ok=false 3847for ac_c_preproc_warn_flag in '' yes 3848do 3849 # Use a header file that comes with gcc, so configuring glibc 3850 # with a fresh cross-compiler works. 3851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3852 # <limits.h> exists even on freestanding compilers. 3853 # On the NeXT, cc -E runs the code through the compiler's parser, 3854 # not just through cpp. "Syntax error" is here to catch this case. 3855 cat >conftest.$ac_ext <<_ACEOF 3856/* confdefs.h. */ 3857_ACEOF 3858cat confdefs.h >>conftest.$ac_ext 3859cat >>conftest.$ac_ext <<_ACEOF 3860/* end confdefs.h. */ 3861#ifdef __STDC__ 3862# include <limits.h> 3863#else 3864# include <assert.h> 3865#endif 3866 Syntax error 3867_ACEOF 3868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3870 ac_status=$? 3871 grep -v '^ *+' conftest.er1 >conftest.err 3872 rm -f conftest.er1 3873 cat conftest.err >&5 3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3875 (exit $ac_status); } >/dev/null; then 3876 if test -s conftest.err; then 3877 ac_cpp_err=$ac_c_preproc_warn_flag 3878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3879 else 3880 ac_cpp_err= 3881 fi 3882else 3883 ac_cpp_err=yes 3884fi 3885if test -z "$ac_cpp_err"; then 3886 : 3887else 3888 echo "$as_me: failed program was:" >&5 3889sed 's/^/| /' conftest.$ac_ext >&5 3890 3891 # Broken: fails on valid input. 3892continue 3893fi 3894rm -f conftest.err conftest.$ac_ext 3895 3896 # OK, works on sane cases. Now check whether non-existent headers 3897 # can be detected and how. 3898 cat >conftest.$ac_ext <<_ACEOF 3899/* confdefs.h. */ 3900_ACEOF 3901cat confdefs.h >>conftest.$ac_ext 3902cat >>conftest.$ac_ext <<_ACEOF 3903/* end confdefs.h. */ 3904#include <ac_nonexistent.h> 3905_ACEOF 3906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3908 ac_status=$? 3909 grep -v '^ *+' conftest.er1 >conftest.err 3910 rm -f conftest.er1 3911 cat conftest.err >&5 3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3913 (exit $ac_status); } >/dev/null; then 3914 if test -s conftest.err; then 3915 ac_cpp_err=$ac_c_preproc_warn_flag 3916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3917 else 3918 ac_cpp_err= 3919 fi 3920else 3921 ac_cpp_err=yes 3922fi 3923if test -z "$ac_cpp_err"; then 3924 # Broken: success on invalid input. 3925continue 3926else 3927 echo "$as_me: failed program was:" >&5 3928sed 's/^/| /' conftest.$ac_ext >&5 3929 3930 # Passes both tests. 3931ac_preproc_ok=: 3932break 3933fi 3934rm -f conftest.err conftest.$ac_ext 3935 3936done 3937# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3938rm -f conftest.err conftest.$ac_ext 3939if $ac_preproc_ok; then 3940 break 3941fi 3942 3943 done 3944 ac_cv_prog_CPP=$CPP 3945 3946fi 3947 CPP=$ac_cv_prog_CPP 3948else 3949 ac_cv_prog_CPP=$CPP 3950fi 3951echo "$as_me:$LINENO: result: $CPP" >&5 3952echo "${ECHO_T}$CPP" >&6 3953ac_preproc_ok=false 3954for ac_c_preproc_warn_flag in '' yes 3955do 3956 # Use a header file that comes with gcc, so configuring glibc 3957 # with a fresh cross-compiler works. 3958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3959 # <limits.h> exists even on freestanding compilers. 3960 # On the NeXT, cc -E runs the code through the compiler's parser, 3961 # not just through cpp. "Syntax error" is here to catch this case. 3962 cat >conftest.$ac_ext <<_ACEOF 3963/* confdefs.h. */ 3964_ACEOF 3965cat confdefs.h >>conftest.$ac_ext 3966cat >>conftest.$ac_ext <<_ACEOF 3967/* end confdefs.h. */ 3968#ifdef __STDC__ 3969# include <limits.h> 3970#else 3971# include <assert.h> 3972#endif 3973 Syntax error 3974_ACEOF 3975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3977 ac_status=$? 3978 grep -v '^ *+' conftest.er1 >conftest.err 3979 rm -f conftest.er1 3980 cat conftest.err >&5 3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3982 (exit $ac_status); } >/dev/null; then 3983 if test -s conftest.err; then 3984 ac_cpp_err=$ac_c_preproc_warn_flag 3985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3986 else 3987 ac_cpp_err= 3988 fi 3989else 3990 ac_cpp_err=yes 3991fi 3992if test -z "$ac_cpp_err"; then 3993 : 3994else 3995 echo "$as_me: failed program was:" >&5 3996sed 's/^/| /' conftest.$ac_ext >&5 3997 3998 # Broken: fails on valid input. 3999continue 4000fi 4001rm -f conftest.err conftest.$ac_ext 4002 4003 # OK, works on sane cases. Now check whether non-existent headers 4004 # can be detected and how. 4005 cat >conftest.$ac_ext <<_ACEOF 4006/* confdefs.h. */ 4007_ACEOF 4008cat confdefs.h >>conftest.$ac_ext 4009cat >>conftest.$ac_ext <<_ACEOF 4010/* end confdefs.h. */ 4011#include <ac_nonexistent.h> 4012_ACEOF 4013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4015 ac_status=$? 4016 grep -v '^ *+' conftest.er1 >conftest.err 4017 rm -f conftest.er1 4018 cat conftest.err >&5 4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4020 (exit $ac_status); } >/dev/null; then 4021 if test -s conftest.err; then 4022 ac_cpp_err=$ac_c_preproc_warn_flag 4023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4024 else 4025 ac_cpp_err= 4026 fi 4027else 4028 ac_cpp_err=yes 4029fi 4030if test -z "$ac_cpp_err"; then 4031 # Broken: success on invalid input. 4032continue 4033else 4034 echo "$as_me: failed program was:" >&5 4035sed 's/^/| /' conftest.$ac_ext >&5 4036 4037 # Passes both tests. 4038ac_preproc_ok=: 4039break 4040fi 4041rm -f conftest.err conftest.$ac_ext 4042 4043done 4044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4045rm -f conftest.err conftest.$ac_ext 4046if $ac_preproc_ok; then 4047 : 4048else 4049 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4050See \`config.log' for more details." >&5 4051echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4052See \`config.log' for more details." >&2;} 4053 { (exit 1); exit 1; }; } 4054fi 4055 4056ac_ext=c 4057ac_cpp='$CPP $CPPFLAGS' 4058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4060ac_compiler_gnu=$ac_cv_c_compiler_gnu 4061 4062 4063echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4064echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4065if test "${ac_cv_header_stdc+set}" = set; then 4066 echo $ECHO_N "(cached) $ECHO_C" >&6 4067else 4068 cat >conftest.$ac_ext <<_ACEOF 4069/* confdefs.h. */ 4070_ACEOF 4071cat confdefs.h >>conftest.$ac_ext 4072cat >>conftest.$ac_ext <<_ACEOF 4073/* end confdefs.h. */ 4074#include <stdlib.h> 4075#include <stdarg.h> 4076#include <string.h> 4077#include <float.h> 4078 4079int 4080main () 4081{ 4082 4083 ; 4084 return 0; 4085} 4086_ACEOF 4087rm -f conftest.$ac_objext 4088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4089 (eval $ac_compile) 2>conftest.er1 4090 ac_status=$? 4091 grep -v '^ *+' conftest.er1 >conftest.err 4092 rm -f conftest.er1 4093 cat conftest.err >&5 4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4095 (exit $ac_status); } && 4096 { ac_try='test -z "$ac_c_werror_flag" 4097 || test ! -s conftest.err' 4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4099 (eval $ac_try) 2>&5 4100 ac_status=$? 4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4102 (exit $ac_status); }; } && 4103 { ac_try='test -s conftest.$ac_objext' 4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4105 (eval $ac_try) 2>&5 4106 ac_status=$? 4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4108 (exit $ac_status); }; }; then 4109 ac_cv_header_stdc=yes 4110else 4111 echo "$as_me: failed program was:" >&5 4112sed 's/^/| /' conftest.$ac_ext >&5 4113 4114ac_cv_header_stdc=no 4115fi 4116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4117 4118if test $ac_cv_header_stdc = yes; then 4119 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4120 cat >conftest.$ac_ext <<_ACEOF 4121/* confdefs.h. */ 4122_ACEOF 4123cat confdefs.h >>conftest.$ac_ext 4124cat >>conftest.$ac_ext <<_ACEOF 4125/* end confdefs.h. */ 4126#include <string.h> 4127 4128_ACEOF 4129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4130 $EGREP "memchr" >/dev/null 2>&1; then 4131 : 4132else 4133 ac_cv_header_stdc=no 4134fi 4135rm -f conftest* 4136 4137fi 4138 4139if test $ac_cv_header_stdc = yes; then 4140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4141 cat >conftest.$ac_ext <<_ACEOF 4142/* confdefs.h. */ 4143_ACEOF 4144cat confdefs.h >>conftest.$ac_ext 4145cat >>conftest.$ac_ext <<_ACEOF 4146/* end confdefs.h. */ 4147#include <stdlib.h> 4148 4149_ACEOF 4150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4151 $EGREP "free" >/dev/null 2>&1; then 4152 : 4153else 4154 ac_cv_header_stdc=no 4155fi 4156rm -f conftest* 4157 4158fi 4159 4160if test $ac_cv_header_stdc = yes; then 4161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4162 if test "$cross_compiling" = yes; then 4163 : 4164else 4165 cat >conftest.$ac_ext <<_ACEOF 4166/* confdefs.h. */ 4167_ACEOF 4168cat confdefs.h >>conftest.$ac_ext 4169cat >>conftest.$ac_ext <<_ACEOF 4170/* end confdefs.h. */ 4171#include <ctype.h> 4172#if ((' ' & 0x0FF) == 0x020) 4173# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4174# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4175#else 4176# define ISLOWER(c) \ 4177 (('a' <= (c) && (c) <= 'i') \ 4178 || ('j' <= (c) && (c) <= 'r') \ 4179 || ('s' <= (c) && (c) <= 'z')) 4180# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4181#endif 4182 4183#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4184int 4185main () 4186{ 4187 int i; 4188 for (i = 0; i < 256; i++) 4189 if (XOR (islower (i), ISLOWER (i)) 4190 || toupper (i) != TOUPPER (i)) 4191 exit(2); 4192 exit (0); 4193} 4194_ACEOF 4195rm -f conftest$ac_exeext 4196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4197 (eval $ac_link) 2>&5 4198 ac_status=$? 4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4202 (eval $ac_try) 2>&5 4203 ac_status=$? 4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4205 (exit $ac_status); }; }; then 4206 : 4207else 4208 echo "$as_me: program exited with status $ac_status" >&5 4209echo "$as_me: failed program was:" >&5 4210sed 's/^/| /' conftest.$ac_ext >&5 4211 4212( exit $ac_status ) 4213ac_cv_header_stdc=no 4214fi 4215rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4216fi 4217fi 4218fi 4219echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4220echo "${ECHO_T}$ac_cv_header_stdc" >&6 4221if test $ac_cv_header_stdc = yes; then 4222 4223cat >>confdefs.h <<\_ACEOF 4224#define STDC_HEADERS 1 4225_ACEOF 4226 4227fi 4228 4229# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4240 inttypes.h stdint.h unistd.h 4241do 4242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4243echo "$as_me:$LINENO: checking for $ac_header" >&5 4244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4245if eval "test \"\${$as_ac_Header+set}\" = set"; then 4246 echo $ECHO_N "(cached) $ECHO_C" >&6 4247else 4248 cat >conftest.$ac_ext <<_ACEOF 4249/* confdefs.h. */ 4250_ACEOF 4251cat confdefs.h >>conftest.$ac_ext 4252cat >>conftest.$ac_ext <<_ACEOF 4253/* end confdefs.h. */ 4254$ac_includes_default 4255 4256#include <$ac_header> 4257_ACEOF 4258rm -f conftest.$ac_objext 4259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4260 (eval $ac_compile) 2>conftest.er1 4261 ac_status=$? 4262 grep -v '^ *+' conftest.er1 >conftest.err 4263 rm -f conftest.er1 4264 cat conftest.err >&5 4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4266 (exit $ac_status); } && 4267 { ac_try='test -z "$ac_c_werror_flag" 4268 || test ! -s conftest.err' 4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4270 (eval $ac_try) 2>&5 4271 ac_status=$? 4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4273 (exit $ac_status); }; } && 4274 { ac_try='test -s conftest.$ac_objext' 4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4276 (eval $ac_try) 2>&5 4277 ac_status=$? 4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4279 (exit $ac_status); }; }; then 4280 eval "$as_ac_Header=yes" 4281else 4282 echo "$as_me: failed program was:" >&5 4283sed 's/^/| /' conftest.$ac_ext >&5 4284 4285eval "$as_ac_Header=no" 4286fi 4287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4288fi 4289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4290echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4291if test `eval echo '${'$as_ac_Header'}'` = yes; then 4292 cat >>confdefs.h <<_ACEOF 4293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4294_ACEOF 4295 4296fi 4297 4298done 4299 4300 4301 4302for ac_header in dlfcn.h 4303do 4304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4305if eval "test \"\${$as_ac_Header+set}\" = set"; then 4306 echo "$as_me:$LINENO: checking for $ac_header" >&5 4307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4308if eval "test \"\${$as_ac_Header+set}\" = set"; then 4309 echo $ECHO_N "(cached) $ECHO_C" >&6 4310fi 4311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4313else 4314 # Is the header compilable? 4315echo "$as_me:$LINENO: checking $ac_header usability" >&5 4316echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4317cat >conftest.$ac_ext <<_ACEOF 4318/* confdefs.h. */ 4319_ACEOF 4320cat confdefs.h >>conftest.$ac_ext 4321cat >>conftest.$ac_ext <<_ACEOF 4322/* end confdefs.h. */ 4323$ac_includes_default 4324#include <$ac_header> 4325_ACEOF 4326rm -f conftest.$ac_objext 4327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4328 (eval $ac_compile) 2>conftest.er1 4329 ac_status=$? 4330 grep -v '^ *+' conftest.er1 >conftest.err 4331 rm -f conftest.er1 4332 cat conftest.err >&5 4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4334 (exit $ac_status); } && 4335 { ac_try='test -z "$ac_c_werror_flag" 4336 || test ! -s conftest.err' 4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4338 (eval $ac_try) 2>&5 4339 ac_status=$? 4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4341 (exit $ac_status); }; } && 4342 { ac_try='test -s conftest.$ac_objext' 4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4344 (eval $ac_try) 2>&5 4345 ac_status=$? 4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4347 (exit $ac_status); }; }; then 4348 ac_header_compiler=yes 4349else 4350 echo "$as_me: failed program was:" >&5 4351sed 's/^/| /' conftest.$ac_ext >&5 4352 4353ac_header_compiler=no 4354fi 4355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4356echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4357echo "${ECHO_T}$ac_header_compiler" >&6 4358 4359# Is the header present? 4360echo "$as_me:$LINENO: checking $ac_header presence" >&5 4361echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4362cat >conftest.$ac_ext <<_ACEOF 4363/* confdefs.h. */ 4364_ACEOF 4365cat confdefs.h >>conftest.$ac_ext 4366cat >>conftest.$ac_ext <<_ACEOF 4367/* end confdefs.h. */ 4368#include <$ac_header> 4369_ACEOF 4370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4372 ac_status=$? 4373 grep -v '^ *+' conftest.er1 >conftest.err 4374 rm -f conftest.er1 4375 cat conftest.err >&5 4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4377 (exit $ac_status); } >/dev/null; then 4378 if test -s conftest.err; then 4379 ac_cpp_err=$ac_c_preproc_warn_flag 4380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4381 else 4382 ac_cpp_err= 4383 fi 4384else 4385 ac_cpp_err=yes 4386fi 4387if test -z "$ac_cpp_err"; then 4388 ac_header_preproc=yes 4389else 4390 echo "$as_me: failed program was:" >&5 4391sed 's/^/| /' conftest.$ac_ext >&5 4392 4393 ac_header_preproc=no 4394fi 4395rm -f conftest.err conftest.$ac_ext 4396echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4397echo "${ECHO_T}$ac_header_preproc" >&6 4398 4399# So? What about this header? 4400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4401 yes:no: ) 4402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4403echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4405echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4406 ac_header_preproc=yes 4407 ;; 4408 no:yes:* ) 4409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4410echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4412echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4414echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4416echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4418echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4420echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4421 ( 4422 cat <<\_ASBOX 4423## ---------------------------------------------------------------------- ## 4424## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 4425## ---------------------------------------------------------------------- ## 4426_ASBOX 4427 ) | 4428 sed "s/^/$as_me: WARNING: /" >&2 4429 ;; 4430esac 4431echo "$as_me:$LINENO: checking for $ac_header" >&5 4432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4433if eval "test \"\${$as_ac_Header+set}\" = set"; then 4434 echo $ECHO_N "(cached) $ECHO_C" >&6 4435else 4436 eval "$as_ac_Header=\$ac_header_preproc" 4437fi 4438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4440 4441fi 4442if test `eval echo '${'$as_ac_Header'}'` = yes; then 4443 cat >>confdefs.h <<_ACEOF 4444#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4445_ACEOF 4446 4447fi 4448 4449done 4450 4451ac_ext=cc 4452ac_cpp='$CXXCPP $CPPFLAGS' 4453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4456if test -n "$ac_tool_prefix"; then 4457 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4458 do 4459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4460set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4461echo "$as_me:$LINENO: checking for $ac_word" >&5 4462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4463if test "${ac_cv_prog_CXX+set}" = set; then 4464 echo $ECHO_N "(cached) $ECHO_C" >&6 4465else 4466 if test -n "$CXX"; then 4467 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4468else 4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4470for as_dir in $PATH 4471do 4472 IFS=$as_save_IFS 4473 test -z "$as_dir" && as_dir=. 4474 for ac_exec_ext in '' $ac_executable_extensions; do 4475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4476 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4478 break 2 4479 fi 4480done 4481done 4482 4483fi 4484fi 4485CXX=$ac_cv_prog_CXX 4486if test -n "$CXX"; then 4487 echo "$as_me:$LINENO: result: $CXX" >&5 4488echo "${ECHO_T}$CXX" >&6 4489else 4490 echo "$as_me:$LINENO: result: no" >&5 4491echo "${ECHO_T}no" >&6 4492fi 4493 4494 test -n "$CXX" && break 4495 done 4496fi 4497if test -z "$CXX"; then 4498 ac_ct_CXX=$CXX 4499 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4500do 4501 # Extract the first word of "$ac_prog", so it can be a program name with args. 4502set dummy $ac_prog; ac_word=$2 4503echo "$as_me:$LINENO: checking for $ac_word" >&5 4504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4505if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4506 echo $ECHO_N "(cached) $ECHO_C" >&6 4507else 4508 if test -n "$ac_ct_CXX"; then 4509 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4510else 4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4512for as_dir in $PATH 4513do 4514 IFS=$as_save_IFS 4515 test -z "$as_dir" && as_dir=. 4516 for ac_exec_ext in '' $ac_executable_extensions; do 4517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4518 ac_cv_prog_ac_ct_CXX="$ac_prog" 4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4520 break 2 4521 fi 4522done 4523done 4524 4525fi 4526fi 4527ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4528if test -n "$ac_ct_CXX"; then 4529 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4530echo "${ECHO_T}$ac_ct_CXX" >&6 4531else 4532 echo "$as_me:$LINENO: result: no" >&5 4533echo "${ECHO_T}no" >&6 4534fi 4535 4536 test -n "$ac_ct_CXX" && break 4537done 4538test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4539 4540 CXX=$ac_ct_CXX 4541fi 4542 4543 4544# Provide some information about the compiler. 4545echo "$as_me:$LINENO:" \ 4546 "checking for C++ compiler version" >&5 4547ac_compiler=`set X $ac_compile; echo $2` 4548{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4549 (eval $ac_compiler --version </dev/null >&5) 2>&5 4550 ac_status=$? 4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4552 (exit $ac_status); } 4553{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4554 (eval $ac_compiler -v </dev/null >&5) 2>&5 4555 ac_status=$? 4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4557 (exit $ac_status); } 4558{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4559 (eval $ac_compiler -V </dev/null >&5) 2>&5 4560 ac_status=$? 4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4562 (exit $ac_status); } 4563 4564echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4565echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4566if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4567 echo $ECHO_N "(cached) $ECHO_C" >&6 4568else 4569 cat >conftest.$ac_ext <<_ACEOF 4570/* confdefs.h. */ 4571_ACEOF 4572cat confdefs.h >>conftest.$ac_ext 4573cat >>conftest.$ac_ext <<_ACEOF 4574/* end confdefs.h. */ 4575 4576int 4577main () 4578{ 4579#ifndef __GNUC__ 4580 choke me 4581#endif 4582 4583 ; 4584 return 0; 4585} 4586_ACEOF 4587rm -f conftest.$ac_objext 4588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4589 (eval $ac_compile) 2>conftest.er1 4590 ac_status=$? 4591 grep -v '^ *+' conftest.er1 >conftest.err 4592 rm -f conftest.er1 4593 cat conftest.err >&5 4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4595 (exit $ac_status); } && 4596 { ac_try='test -z "$ac_cxx_werror_flag" 4597 || test ! -s conftest.err' 4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4599 (eval $ac_try) 2>&5 4600 ac_status=$? 4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4602 (exit $ac_status); }; } && 4603 { ac_try='test -s conftest.$ac_objext' 4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4605 (eval $ac_try) 2>&5 4606 ac_status=$? 4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4608 (exit $ac_status); }; }; then 4609 ac_compiler_gnu=yes 4610else 4611 echo "$as_me: failed program was:" >&5 4612sed 's/^/| /' conftest.$ac_ext >&5 4613 4614ac_compiler_gnu=no 4615fi 4616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4617ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4618 4619fi 4620echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4621echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4622GXX=`test $ac_compiler_gnu = yes && echo yes` 4623ac_test_CXXFLAGS=${CXXFLAGS+set} 4624ac_save_CXXFLAGS=$CXXFLAGS 4625CXXFLAGS="-g" 4626echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4627echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4628if test "${ac_cv_prog_cxx_g+set}" = set; then 4629 echo $ECHO_N "(cached) $ECHO_C" >&6 4630else 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 4638int 4639main () 4640{ 4641 4642 ; 4643 return 0; 4644} 4645_ACEOF 4646rm -f conftest.$ac_objext 4647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4648 (eval $ac_compile) 2>conftest.er1 4649 ac_status=$? 4650 grep -v '^ *+' conftest.er1 >conftest.err 4651 rm -f conftest.er1 4652 cat conftest.err >&5 4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4654 (exit $ac_status); } && 4655 { ac_try='test -z "$ac_cxx_werror_flag" 4656 || test ! -s conftest.err' 4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4658 (eval $ac_try) 2>&5 4659 ac_status=$? 4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4661 (exit $ac_status); }; } && 4662 { ac_try='test -s conftest.$ac_objext' 4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4664 (eval $ac_try) 2>&5 4665 ac_status=$? 4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4667 (exit $ac_status); }; }; then 4668 ac_cv_prog_cxx_g=yes 4669else 4670 echo "$as_me: failed program was:" >&5 4671sed 's/^/| /' conftest.$ac_ext >&5 4672 4673ac_cv_prog_cxx_g=no 4674fi 4675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4676fi 4677echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4678echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4679if test "$ac_test_CXXFLAGS" = set; then 4680 CXXFLAGS=$ac_save_CXXFLAGS 4681elif test $ac_cv_prog_cxx_g = yes; then 4682 if test "$GXX" = yes; then 4683 CXXFLAGS="-g -O2" 4684 else 4685 CXXFLAGS="-g" 4686 fi 4687else 4688 if test "$GXX" = yes; then 4689 CXXFLAGS="-O2" 4690 else 4691 CXXFLAGS= 4692 fi 4693fi 4694for ac_declaration in \ 4695 '' \ 4696 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4697 'extern "C" void std::exit (int); using std::exit;' \ 4698 'extern "C" void exit (int) throw ();' \ 4699 'extern "C" void exit (int);' \ 4700 'void exit (int);' 4701do 4702 cat >conftest.$ac_ext <<_ACEOF 4703/* confdefs.h. */ 4704_ACEOF 4705cat confdefs.h >>conftest.$ac_ext 4706cat >>conftest.$ac_ext <<_ACEOF 4707/* end confdefs.h. */ 4708$ac_declaration 4709#include <stdlib.h> 4710int 4711main () 4712{ 4713exit (42); 4714 ; 4715 return 0; 4716} 4717_ACEOF 4718rm -f conftest.$ac_objext 4719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4720 (eval $ac_compile) 2>conftest.er1 4721 ac_status=$? 4722 grep -v '^ *+' conftest.er1 >conftest.err 4723 rm -f conftest.er1 4724 cat conftest.err >&5 4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4726 (exit $ac_status); } && 4727 { ac_try='test -z "$ac_cxx_werror_flag" 4728 || test ! -s conftest.err' 4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4730 (eval $ac_try) 2>&5 4731 ac_status=$? 4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4733 (exit $ac_status); }; } && 4734 { ac_try='test -s conftest.$ac_objext' 4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4736 (eval $ac_try) 2>&5 4737 ac_status=$? 4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4739 (exit $ac_status); }; }; then 4740 : 4741else 4742 echo "$as_me: failed program was:" >&5 4743sed 's/^/| /' conftest.$ac_ext >&5 4744 4745continue 4746fi 4747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4748 cat >conftest.$ac_ext <<_ACEOF 4749/* confdefs.h. */ 4750_ACEOF 4751cat confdefs.h >>conftest.$ac_ext 4752cat >>conftest.$ac_ext <<_ACEOF 4753/* end confdefs.h. */ 4754$ac_declaration 4755int 4756main () 4757{ 4758exit (42); 4759 ; 4760 return 0; 4761} 4762_ACEOF 4763rm -f conftest.$ac_objext 4764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4765 (eval $ac_compile) 2>conftest.er1 4766 ac_status=$? 4767 grep -v '^ *+' conftest.er1 >conftest.err 4768 rm -f conftest.er1 4769 cat conftest.err >&5 4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4771 (exit $ac_status); } && 4772 { ac_try='test -z "$ac_cxx_werror_flag" 4773 || test ! -s conftest.err' 4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4775 (eval $ac_try) 2>&5 4776 ac_status=$? 4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4778 (exit $ac_status); }; } && 4779 { ac_try='test -s conftest.$ac_objext' 4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4781 (eval $ac_try) 2>&5 4782 ac_status=$? 4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4784 (exit $ac_status); }; }; then 4785 break 4786else 4787 echo "$as_me: failed program was:" >&5 4788sed 's/^/| /' conftest.$ac_ext >&5 4789 4790fi 4791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4792done 4793rm -f conftest* 4794if test -n "$ac_declaration"; then 4795 echo '#ifdef __cplusplus' >>confdefs.h 4796 echo $ac_declaration >>confdefs.h 4797 echo '#endif' >>confdefs.h 4798fi 4799 4800ac_ext=cc 4801ac_cpp='$CXXCPP $CPPFLAGS' 4802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4805 4806depcc="$CXX" am_compiler_list= 4807 4808echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4809echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4810if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4811 echo $ECHO_N "(cached) $ECHO_C" >&6 4812else 4813 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4814 # We make a subdir and do the tests there. Otherwise we can end up 4815 # making bogus files that we don't know about and never remove. For 4816 # instance it was reported that on HP-UX the gcc test will end up 4817 # making a dummy file named `D' -- because `-MD' means `put the output 4818 # in D'. 4819 mkdir conftest.dir 4820 # Copy depcomp to subdir because otherwise we won't find it if we're 4821 # using a relative directory. 4822 cp "$am_depcomp" conftest.dir 4823 cd conftest.dir 4824 # We will build objects and dependencies in a subdirectory because 4825 # it helps to detect inapplicable dependency modes. For instance 4826 # both Tru64's cc and ICC support -MD to output dependencies as a 4827 # side effect of compilation, but ICC will put the dependencies in 4828 # the current directory while Tru64 will put them in the object 4829 # directory. 4830 mkdir sub 4831 4832 am_cv_CXX_dependencies_compiler_type=none 4833 if test "$am_compiler_list" = ""; then 4834 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4835 fi 4836 for depmode in $am_compiler_list; do 4837 # Setup a source with many dependencies, because some compilers 4838 # like to wrap large dependency lists on column 80 (with \), and 4839 # we should not choose a depcomp mode which is confused by this. 4840 # 4841 # We need to recreate these files for each test, as the compiler may 4842 # overwrite some of them when testing with obscure command lines. 4843 # This happens at least with the AIX C compiler. 4844 : > sub/conftest.c 4845 for i in 1 2 3 4 5 6; do 4846 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4847 : > sub/conftst$i.h 4848 done 4849 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4850 4851 case $depmode in 4852 nosideeffect) 4853 # after this tag, mechanisms are not by side-effect, so they'll 4854 # only be used when explicitly requested 4855 if test "x$enable_dependency_tracking" = xyes; then 4856 continue 4857 else 4858 break 4859 fi 4860 ;; 4861 none) break ;; 4862 esac 4863 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4864 # mode. It turns out that the SunPro C++ compiler does not properly 4865 # handle `-M -o', and we need to detect this. 4866 if depmode=$depmode \ 4867 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4868 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4869 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4870 >/dev/null 2>conftest.err && 4871 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4872 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4873 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4874 # icc doesn't choke on unknown options, it will just issue warnings 4875 # (even with -Werror). So we grep stderr for any message 4876 # that says an option was ignored. 4877 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 4878 am_cv_CXX_dependencies_compiler_type=$depmode 4879 break 4880 fi 4881 fi 4882 done 4883 4884 cd .. 4885 rm -rf conftest.dir 4886else 4887 am_cv_CXX_dependencies_compiler_type=none 4888fi 4889 4890fi 4891echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4892echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4893CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4894 4895 4896 4897if 4898 test "x$enable_dependency_tracking" != xno \ 4899 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4900 am__fastdepCXX_TRUE= 4901 am__fastdepCXX_FALSE='#' 4902else 4903 am__fastdepCXX_TRUE='#' 4904 am__fastdepCXX_FALSE= 4905fi 4906 4907 4908ac_ext=cc 4909ac_cpp='$CXXCPP $CPPFLAGS' 4910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4913echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4914echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4915if test -z "$CXXCPP"; then 4916 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4917 echo $ECHO_N "(cached) $ECHO_C" >&6 4918else 4919 # Double quotes because CXXCPP needs to be expanded 4920 for CXXCPP in "$CXX -E" "/lib/cpp" 4921 do 4922 ac_preproc_ok=false 4923for ac_cxx_preproc_warn_flag in '' yes 4924do 4925 # Use a header file that comes with gcc, so configuring glibc 4926 # with a fresh cross-compiler works. 4927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4928 # <limits.h> exists even on freestanding compilers. 4929 # On the NeXT, cc -E runs the code through the compiler's parser, 4930 # not just through cpp. "Syntax error" is here to catch this case. 4931 cat >conftest.$ac_ext <<_ACEOF 4932/* confdefs.h. */ 4933_ACEOF 4934cat confdefs.h >>conftest.$ac_ext 4935cat >>conftest.$ac_ext <<_ACEOF 4936/* end confdefs.h. */ 4937#ifdef __STDC__ 4938# include <limits.h> 4939#else 4940# include <assert.h> 4941#endif 4942 Syntax error 4943_ACEOF 4944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4946 ac_status=$? 4947 grep -v '^ *+' conftest.er1 >conftest.err 4948 rm -f conftest.er1 4949 cat conftest.err >&5 4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4951 (exit $ac_status); } >/dev/null; then 4952 if test -s conftest.err; then 4953 ac_cpp_err=$ac_cxx_preproc_warn_flag 4954 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4955 else 4956 ac_cpp_err= 4957 fi 4958else 4959 ac_cpp_err=yes 4960fi 4961if test -z "$ac_cpp_err"; then 4962 : 4963else 4964 echo "$as_me: failed program was:" >&5 4965sed 's/^/| /' conftest.$ac_ext >&5 4966 4967 # Broken: fails on valid input. 4968continue 4969fi 4970rm -f conftest.err conftest.$ac_ext 4971 4972 # OK, works on sane cases. Now check whether non-existent headers 4973 # can be detected and how. 4974 cat >conftest.$ac_ext <<_ACEOF 4975/* confdefs.h. */ 4976_ACEOF 4977cat confdefs.h >>conftest.$ac_ext 4978cat >>conftest.$ac_ext <<_ACEOF 4979/* end confdefs.h. */ 4980#include <ac_nonexistent.h> 4981_ACEOF 4982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4984 ac_status=$? 4985 grep -v '^ *+' conftest.er1 >conftest.err 4986 rm -f conftest.er1 4987 cat conftest.err >&5 4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4989 (exit $ac_status); } >/dev/null; then 4990 if test -s conftest.err; then 4991 ac_cpp_err=$ac_cxx_preproc_warn_flag 4992 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4993 else 4994 ac_cpp_err= 4995 fi 4996else 4997 ac_cpp_err=yes 4998fi 4999if test -z "$ac_cpp_err"; then 5000 # Broken: success on invalid input. 5001continue 5002else 5003 echo "$as_me: failed program was:" >&5 5004sed 's/^/| /' conftest.$ac_ext >&5 5005 5006 # Passes both tests. 5007ac_preproc_ok=: 5008break 5009fi 5010rm -f conftest.err conftest.$ac_ext 5011 5012done 5013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5014rm -f conftest.err conftest.$ac_ext 5015if $ac_preproc_ok; then 5016 break 5017fi 5018 5019 done 5020 ac_cv_prog_CXXCPP=$CXXCPP 5021 5022fi 5023 CXXCPP=$ac_cv_prog_CXXCPP 5024else 5025 ac_cv_prog_CXXCPP=$CXXCPP 5026fi 5027echo "$as_me:$LINENO: result: $CXXCPP" >&5 5028echo "${ECHO_T}$CXXCPP" >&6 5029ac_preproc_ok=false 5030for ac_cxx_preproc_warn_flag in '' yes 5031do 5032 # Use a header file that comes with gcc, so configuring glibc 5033 # with a fresh cross-compiler works. 5034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5035 # <limits.h> exists even on freestanding compilers. 5036 # On the NeXT, cc -E runs the code through the compiler's parser, 5037 # not just through cpp. "Syntax error" is here to catch this case. 5038 cat >conftest.$ac_ext <<_ACEOF 5039/* confdefs.h. */ 5040_ACEOF 5041cat confdefs.h >>conftest.$ac_ext 5042cat >>conftest.$ac_ext <<_ACEOF 5043/* end confdefs.h. */ 5044#ifdef __STDC__ 5045# include <limits.h> 5046#else 5047# include <assert.h> 5048#endif 5049 Syntax error 5050_ACEOF 5051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5053 ac_status=$? 5054 grep -v '^ *+' conftest.er1 >conftest.err 5055 rm -f conftest.er1 5056 cat conftest.err >&5 5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5058 (exit $ac_status); } >/dev/null; then 5059 if test -s conftest.err; then 5060 ac_cpp_err=$ac_cxx_preproc_warn_flag 5061 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5062 else 5063 ac_cpp_err= 5064 fi 5065else 5066 ac_cpp_err=yes 5067fi 5068if test -z "$ac_cpp_err"; then 5069 : 5070else 5071 echo "$as_me: failed program was:" >&5 5072sed 's/^/| /' conftest.$ac_ext >&5 5073 5074 # Broken: fails on valid input. 5075continue 5076fi 5077rm -f conftest.err conftest.$ac_ext 5078 5079 # OK, works on sane cases. Now check whether non-existent headers 5080 # can be detected and how. 5081 cat >conftest.$ac_ext <<_ACEOF 5082/* confdefs.h. */ 5083_ACEOF 5084cat confdefs.h >>conftest.$ac_ext 5085cat >>conftest.$ac_ext <<_ACEOF 5086/* end confdefs.h. */ 5087#include <ac_nonexistent.h> 5088_ACEOF 5089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5091 ac_status=$? 5092 grep -v '^ *+' conftest.er1 >conftest.err 5093 rm -f conftest.er1 5094 cat conftest.err >&5 5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5096 (exit $ac_status); } >/dev/null; then 5097 if test -s conftest.err; then 5098 ac_cpp_err=$ac_cxx_preproc_warn_flag 5099 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5100 else 5101 ac_cpp_err= 5102 fi 5103else 5104 ac_cpp_err=yes 5105fi 5106if test -z "$ac_cpp_err"; then 5107 # Broken: success on invalid input. 5108continue 5109else 5110 echo "$as_me: failed program was:" >&5 5111sed 's/^/| /' conftest.$ac_ext >&5 5112 5113 # Passes both tests. 5114ac_preproc_ok=: 5115break 5116fi 5117rm -f conftest.err conftest.$ac_ext 5118 5119done 5120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5121rm -f conftest.err conftest.$ac_ext 5122if $ac_preproc_ok; then 5123 : 5124else 5125 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5126See \`config.log' for more details." >&5 5127echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5128See \`config.log' for more details." >&2;} 5129 { (exit 1); exit 1; }; } 5130fi 5131 5132ac_ext=cc 5133ac_cpp='$CXXCPP $CPPFLAGS' 5134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5137 5138 5139ac_ext=f 5140ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5141ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5142ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5143if test -n "$ac_tool_prefix"; then 5144 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5145 do 5146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5147set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5148echo "$as_me:$LINENO: checking for $ac_word" >&5 5149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5150if test "${ac_cv_prog_F77+set}" = set; then 5151 echo $ECHO_N "(cached) $ECHO_C" >&6 5152else 5153 if test -n "$F77"; then 5154 ac_cv_prog_F77="$F77" # Let the user override the test. 5155else 5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5157for as_dir in $PATH 5158do 5159 IFS=$as_save_IFS 5160 test -z "$as_dir" && as_dir=. 5161 for ac_exec_ext in '' $ac_executable_extensions; do 5162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5163 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5165 break 2 5166 fi 5167done 5168done 5169 5170fi 5171fi 5172F77=$ac_cv_prog_F77 5173if test -n "$F77"; then 5174 echo "$as_me:$LINENO: result: $F77" >&5 5175echo "${ECHO_T}$F77" >&6 5176else 5177 echo "$as_me:$LINENO: result: no" >&5 5178echo "${ECHO_T}no" >&6 5179fi 5180 5181 test -n "$F77" && break 5182 done 5183fi 5184if test -z "$F77"; then 5185 ac_ct_F77=$F77 5186 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5187do 5188 # Extract the first word of "$ac_prog", so it can be a program name with args. 5189set dummy $ac_prog; ac_word=$2 5190echo "$as_me:$LINENO: checking for $ac_word" >&5 5191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5192if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5193 echo $ECHO_N "(cached) $ECHO_C" >&6 5194else 5195 if test -n "$ac_ct_F77"; then 5196 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5197else 5198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5199for as_dir in $PATH 5200do 5201 IFS=$as_save_IFS 5202 test -z "$as_dir" && as_dir=. 5203 for ac_exec_ext in '' $ac_executable_extensions; do 5204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5205 ac_cv_prog_ac_ct_F77="$ac_prog" 5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5207 break 2 5208 fi 5209done 5210done 5211 5212fi 5213fi 5214ac_ct_F77=$ac_cv_prog_ac_ct_F77 5215if test -n "$ac_ct_F77"; then 5216 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5217echo "${ECHO_T}$ac_ct_F77" >&6 5218else 5219 echo "$as_me:$LINENO: result: no" >&5 5220echo "${ECHO_T}no" >&6 5221fi 5222 5223 test -n "$ac_ct_F77" && break 5224done 5225 5226 F77=$ac_ct_F77 5227fi 5228 5229 5230# Provide some information about the compiler. 5231echo "$as_me:5231:" \ 5232 "checking for Fortran 77 compiler version" >&5 5233ac_compiler=`set X $ac_compile; echo $2` 5234{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5235 (eval $ac_compiler --version </dev/null >&5) 2>&5 5236 ac_status=$? 5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5238 (exit $ac_status); } 5239{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5240 (eval $ac_compiler -v </dev/null >&5) 2>&5 5241 ac_status=$? 5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5243 (exit $ac_status); } 5244{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5245 (eval $ac_compiler -V </dev/null >&5) 2>&5 5246 ac_status=$? 5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5248 (exit $ac_status); } 5249rm -f a.out 5250 5251# If we don't use `.F' as extension, the preprocessor is not run on the 5252# input file. (Note that this only needs to work for GNU compilers.) 5253ac_save_ext=$ac_ext 5254ac_ext=F 5255echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5256echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5257if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5258 echo $ECHO_N "(cached) $ECHO_C" >&6 5259else 5260 cat >conftest.$ac_ext <<_ACEOF 5261 program main 5262#ifndef __GNUC__ 5263 choke me 5264#endif 5265 5266 end 5267_ACEOF 5268rm -f conftest.$ac_objext 5269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5270 (eval $ac_compile) 2>conftest.er1 5271 ac_status=$? 5272 grep -v '^ *+' conftest.er1 >conftest.err 5273 rm -f conftest.er1 5274 cat conftest.err >&5 5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5276 (exit $ac_status); } && 5277 { ac_try='test -z "$ac_f77_werror_flag" 5278 || test ! -s conftest.err' 5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5280 (eval $ac_try) 2>&5 5281 ac_status=$? 5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5283 (exit $ac_status); }; } && 5284 { ac_try='test -s conftest.$ac_objext' 5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5286 (eval $ac_try) 2>&5 5287 ac_status=$? 5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5289 (exit $ac_status); }; }; then 5290 ac_compiler_gnu=yes 5291else 5292 echo "$as_me: failed program was:" >&5 5293sed 's/^/| /' conftest.$ac_ext >&5 5294 5295ac_compiler_gnu=no 5296fi 5297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5298ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5299 5300fi 5301echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5302echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5303ac_ext=$ac_save_ext 5304ac_test_FFLAGS=${FFLAGS+set} 5305ac_save_FFLAGS=$FFLAGS 5306FFLAGS= 5307echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5308echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5309if test "${ac_cv_prog_f77_g+set}" = set; then 5310 echo $ECHO_N "(cached) $ECHO_C" >&6 5311else 5312 FFLAGS=-g 5313cat >conftest.$ac_ext <<_ACEOF 5314 program main 5315 5316 end 5317_ACEOF 5318rm -f conftest.$ac_objext 5319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5320 (eval $ac_compile) 2>conftest.er1 5321 ac_status=$? 5322 grep -v '^ *+' conftest.er1 >conftest.err 5323 rm -f conftest.er1 5324 cat conftest.err >&5 5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5326 (exit $ac_status); } && 5327 { ac_try='test -z "$ac_f77_werror_flag" 5328 || test ! -s conftest.err' 5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5330 (eval $ac_try) 2>&5 5331 ac_status=$? 5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5333 (exit $ac_status); }; } && 5334 { ac_try='test -s conftest.$ac_objext' 5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5336 (eval $ac_try) 2>&5 5337 ac_status=$? 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5339 (exit $ac_status); }; }; then 5340 ac_cv_prog_f77_g=yes 5341else 5342 echo "$as_me: failed program was:" >&5 5343sed 's/^/| /' conftest.$ac_ext >&5 5344 5345ac_cv_prog_f77_g=no 5346fi 5347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5348 5349fi 5350echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5351echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5352if test "$ac_test_FFLAGS" = set; then 5353 FFLAGS=$ac_save_FFLAGS 5354elif test $ac_cv_prog_f77_g = yes; then 5355 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5356 FFLAGS="-g -O2" 5357 else 5358 FFLAGS="-g" 5359 fi 5360else 5361 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5362 FFLAGS="-O2" 5363 else 5364 FFLAGS= 5365 fi 5366fi 5367 5368G77=`test $ac_compiler_gnu = yes && echo yes` 5369ac_ext=c 5370ac_cpp='$CPP $CPPFLAGS' 5371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5373ac_compiler_gnu=$ac_cv_c_compiler_gnu 5374 5375 5376 5377# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5378 5379# find the maximum length of command line arguments 5380echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5381echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5382if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5383 echo $ECHO_N "(cached) $ECHO_C" >&6 5384else 5385 i=0 5386 teststring="ABCD" 5387 5388 case $build_os in 5389 msdosdjgpp*) 5390 # On DJGPP, this test can blow up pretty badly due to problems in libc 5391 # (any single argument exceeding 2000 bytes causes a buffer overrun 5392 # during glob expansion). Even if it were fixed, the result of this 5393 # check would be larger than it should be. 5394 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5395 ;; 5396 5397 gnu*) 5398 # Under GNU Hurd, this test is not required because there is 5399 # no limit to the length of command line arguments. 5400 # Libtool will interpret -1 as no limit whatsoever 5401 lt_cv_sys_max_cmd_len=-1; 5402 ;; 5403 5404 cygwin* | mingw*) 5405 # On Win9x/ME, this test blows up -- it succeeds, but takes 5406 # about 5 minutes as the teststring grows exponentially. 5407 # Worse, since 9x/ME are not pre-emptively multitasking, 5408 # you end up with a "frozen" computer, even though with patience 5409 # the test eventually succeeds (with a max line length of 256k). 5410 # Instead, let's just punt: use the minimum linelength reported by 5411 # all of the supported platforms: 8192 (on NT/2K/XP). 5412 lt_cv_sys_max_cmd_len=8192; 5413 ;; 5414 5415 amigaos*) 5416 # On AmigaOS with pdksh, this test takes hours, literally. 5417 # So we just punt and use a minimum line length of 8192. 5418 lt_cv_sys_max_cmd_len=8192; 5419 ;; 5420 5421 *) 5422 # If test is not a shell built-in, we'll probably end up computing a 5423 # maximum length that is only half of the actual maximum length, but 5424 # we can't tell. 5425 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5426 = "XX$teststring") >/dev/null 2>&1 && 5427 new_result=`expr "X$teststring" : ".*" 2>&1` && 5428 lt_cv_sys_max_cmd_len=$new_result && 5429 test $i != 17 # 1/2 MB should be enough 5430 do 5431 i=`expr $i + 1` 5432 teststring=$teststring$teststring 5433 done 5434 teststring= 5435 # Add a significant safety factor because C++ compilers can tack on massive 5436 # amounts of additional arguments before passing them to the linker. 5437 # It appears as though 1/2 is a usable value. 5438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5439 ;; 5440 esac 5441 5442fi 5443 5444if test -n $lt_cv_sys_max_cmd_len ; then 5445 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5446echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5447else 5448 echo "$as_me:$LINENO: result: none" >&5 5449echo "${ECHO_T}none" >&6 5450fi 5451 5452 5453 5454 5455# Check for command to grab the raw symbol name followed by C symbol from nm. 5456echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5457echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5458if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5459 echo $ECHO_N "(cached) $ECHO_C" >&6 5460else 5461 5462# These are sane defaults that work on at least a few old systems. 5463# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5464 5465# Character class describing NM global symbol codes. 5466symcode='[BCDEGRST]' 5467 5468# Regexp to match symbols that can be accessed directly from C. 5469sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5470 5471# Transform the above into a raw symbol and a C symbol. 5472symxfrm='\1 \2\3 \3' 5473 5474# Transform an extracted symbol line into a proper C declaration 5475lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5476 5477# Transform an extracted symbol line into symbol name and symbol address 5478lt_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'" 5479 5480# Define system-specific variables. 5481case $host_os in 5482aix*) 5483 symcode='[BCDT]' 5484 ;; 5485cygwin* | mingw* | pw32*) 5486 symcode='[ABCDGISTW]' 5487 ;; 5488hpux*) # Its linker distinguishes data from code symbols 5489 if test "$host_cpu" = ia64; then 5490 symcode='[ABCDEGRST]' 5491 fi 5492 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5493 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'" 5494 ;; 5495irix* | nonstopux*) 5496 symcode='[BCDEGRST]' 5497 ;; 5498osf*) 5499 symcode='[BCDEGQRST]' 5500 ;; 5501solaris* | sysv5*) 5502 symcode='[BDRT]' 5503 ;; 5504sysv4) 5505 symcode='[DFNSTU]' 5506 ;; 5507esac 5508 5509# Handle CRLF in mingw tool chain 5510opt_cr= 5511case $build_os in 5512mingw*) 5513 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5514 ;; 5515esac 5516 5517# If we're using GNU nm, then use its standard symbol codes. 5518case `$NM -V 2>&1` in 5519*GNU* | *'with BFD'*) 5520 symcode='[ABCDGIRSTW]' ;; 5521esac 5522 5523# Try without a prefix undercore, then with it. 5524for ac_symprfx in "" "_"; do 5525 5526 # Write the raw and C identifiers. 5527 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5528 5529 # Check to see that the pipe works correctly. 5530 pipe_works=no 5531 5532 rm -f conftest* 5533 cat > conftest.$ac_ext <<EOF 5534#ifdef __cplusplus 5535extern "C" { 5536#endif 5537char nm_test_var; 5538void nm_test_func(){} 5539#ifdef __cplusplus 5540} 5541#endif 5542int main(){nm_test_var='a';nm_test_func();return(0);} 5543EOF 5544 5545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5546 (eval $ac_compile) 2>&5 5547 ac_status=$? 5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5549 (exit $ac_status); }; then 5550 # Now try to grab the symbols. 5551 nlist=conftest.nm 5552 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5553 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5554 ac_status=$? 5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5556 (exit $ac_status); } && test -s "$nlist"; then 5557 # Try sorting and uniquifying the output. 5558 if sort "$nlist" | uniq > "$nlist"T; then 5559 mv -f "$nlist"T "$nlist" 5560 else 5561 rm -f "$nlist"T 5562 fi 5563 5564 # Make sure that we snagged all the symbols we need. 5565 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5566 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5567 cat <<EOF > conftest.$ac_ext 5568#ifdef __cplusplus 5569extern "C" { 5570#endif 5571 5572EOF 5573 # Now generate the symbol file. 5574 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5575 5576 cat <<EOF >> conftest.$ac_ext 5577#if defined (__STDC__) && __STDC__ 5578# define lt_ptr_t void * 5579#else 5580# define lt_ptr_t char * 5581# define const 5582#endif 5583 5584/* The mapping between symbol names and symbols. */ 5585const struct { 5586 const char *name; 5587 lt_ptr_t address; 5588} 5589lt_preloaded_symbols[] = 5590{ 5591EOF 5592 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5593 cat <<\EOF >> conftest.$ac_ext 5594 {0, (lt_ptr_t) 0} 5595}; 5596 5597#ifdef __cplusplus 5598} 5599#endif 5600EOF 5601 # Now try linking the two files. 5602 mv conftest.$ac_objext conftstm.$ac_objext 5603 lt_save_LIBS="$LIBS" 5604 lt_save_CFLAGS="$CFLAGS" 5605 LIBS="conftstm.$ac_objext" 5606 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5608 (eval $ac_link) 2>&5 5609 ac_status=$? 5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5611 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5612 pipe_works=yes 5613 fi 5614 LIBS="$lt_save_LIBS" 5615 CFLAGS="$lt_save_CFLAGS" 5616 else 5617 echo "cannot find nm_test_func in $nlist" >&5 5618 fi 5619 else 5620 echo "cannot find nm_test_var in $nlist" >&5 5621 fi 5622 else 5623 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5624 fi 5625 else 5626 echo "$progname: failed program was:" >&5 5627 cat conftest.$ac_ext >&5 5628 fi 5629 rm -f conftest* conftst* 5630 5631 # Do not use the global_symbol_pipe unless it works. 5632 if test "$pipe_works" = yes; then 5633 break 5634 else 5635 lt_cv_sys_global_symbol_pipe= 5636 fi 5637done 5638 5639fi 5640 5641if test -z "$lt_cv_sys_global_symbol_pipe"; then 5642 lt_cv_sys_global_symbol_to_cdecl= 5643fi 5644if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5645 echo "$as_me:$LINENO: result: failed" >&5 5646echo "${ECHO_T}failed" >&6 5647else 5648 echo "$as_me:$LINENO: result: ok" >&5 5649echo "${ECHO_T}ok" >&6 5650fi 5651 5652echo "$as_me:$LINENO: checking for objdir" >&5 5653echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5654if test "${lt_cv_objdir+set}" = set; then 5655 echo $ECHO_N "(cached) $ECHO_C" >&6 5656else 5657 rm -f .libs 2>/dev/null 5658mkdir .libs 2>/dev/null 5659if test -d .libs; then 5660 lt_cv_objdir=.libs 5661else 5662 # MS-DOS does not allow filenames that begin with a dot. 5663 lt_cv_objdir=_libs 5664fi 5665rmdir .libs 2>/dev/null 5666fi 5667echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5668echo "${ECHO_T}$lt_cv_objdir" >&6 5669objdir=$lt_cv_objdir 5670 5671 5672 5673 5674 5675case $host_os in 5676aix3*) 5677 # AIX sometimes has problems with the GCC collect2 program. For some 5678 # reason, if we set the COLLECT_NAMES environment variable, the problems 5679 # vanish in a puff of smoke. 5680 if test "X${COLLECT_NAMES+set}" != Xset; then 5681 COLLECT_NAMES= 5682 export COLLECT_NAMES 5683 fi 5684 ;; 5685esac 5686 5687# Sed substitution that helps us do robust quoting. It backslashifies 5688# metacharacters that are still active within double-quoted strings. 5689Xsed='sed -e s/^X//' 5690sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5691 5692# Same as above, but do not quote variable references. 5693double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5694 5695# Sed substitution to delay expansion of an escaped shell variable in a 5696# double_quote_subst'ed string. 5697delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5698 5699# Sed substitution to avoid accidental globbing in evaled expressions 5700no_glob_subst='s/\*/\\\*/g' 5701 5702# Constants: 5703rm="rm -f" 5704 5705# Global variables: 5706default_ofile=libtool 5707can_build_shared=yes 5708 5709# All known linkers require a `.a' archive for static linking (except M$VC, 5710# which needs '.lib'). 5711libext=a 5712ltmain="$ac_aux_dir/ltmain.sh" 5713ofile="$default_ofile" 5714with_gnu_ld="$lt_cv_prog_gnu_ld" 5715 5716if test -n "$ac_tool_prefix"; then 5717 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5718set dummy ${ac_tool_prefix}ar; ac_word=$2 5719echo "$as_me:$LINENO: checking for $ac_word" >&5 5720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5721if test "${ac_cv_prog_AR+set}" = set; then 5722 echo $ECHO_N "(cached) $ECHO_C" >&6 5723else 5724 if test -n "$AR"; then 5725 ac_cv_prog_AR="$AR" # Let the user override the test. 5726else 5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5728for as_dir in $PATH 5729do 5730 IFS=$as_save_IFS 5731 test -z "$as_dir" && as_dir=. 5732 for ac_exec_ext in '' $ac_executable_extensions; do 5733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5734 ac_cv_prog_AR="${ac_tool_prefix}ar" 5735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5736 break 2 5737 fi 5738done 5739done 5740 5741fi 5742fi 5743AR=$ac_cv_prog_AR 5744if test -n "$AR"; then 5745 echo "$as_me:$LINENO: result: $AR" >&5 5746echo "${ECHO_T}$AR" >&6 5747else 5748 echo "$as_me:$LINENO: result: no" >&5 5749echo "${ECHO_T}no" >&6 5750fi 5751 5752fi 5753if test -z "$ac_cv_prog_AR"; then 5754 ac_ct_AR=$AR 5755 # Extract the first word of "ar", so it can be a program name with args. 5756set dummy ar; ac_word=$2 5757echo "$as_me:$LINENO: checking for $ac_word" >&5 5758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5759if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5760 echo $ECHO_N "(cached) $ECHO_C" >&6 5761else 5762 if test -n "$ac_ct_AR"; then 5763 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5764else 5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5766for as_dir in $PATH 5767do 5768 IFS=$as_save_IFS 5769 test -z "$as_dir" && as_dir=. 5770 for ac_exec_ext in '' $ac_executable_extensions; do 5771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5772 ac_cv_prog_ac_ct_AR="ar" 5773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5774 break 2 5775 fi 5776done 5777done 5778 5779 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5780fi 5781fi 5782ac_ct_AR=$ac_cv_prog_ac_ct_AR 5783if test -n "$ac_ct_AR"; then 5784 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5785echo "${ECHO_T}$ac_ct_AR" >&6 5786else 5787 echo "$as_me:$LINENO: result: no" >&5 5788echo "${ECHO_T}no" >&6 5789fi 5790 5791 AR=$ac_ct_AR 5792else 5793 AR="$ac_cv_prog_AR" 5794fi 5795 5796if test -n "$ac_tool_prefix"; then 5797 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5798set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5799echo "$as_me:$LINENO: checking for $ac_word" >&5 5800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5801if test "${ac_cv_prog_RANLIB+set}" = set; then 5802 echo $ECHO_N "(cached) $ECHO_C" >&6 5803else 5804 if test -n "$RANLIB"; then 5805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5806else 5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5808for as_dir in $PATH 5809do 5810 IFS=$as_save_IFS 5811 test -z "$as_dir" && as_dir=. 5812 for ac_exec_ext in '' $ac_executable_extensions; do 5813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5814 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5816 break 2 5817 fi 5818done 5819done 5820 5821fi 5822fi 5823RANLIB=$ac_cv_prog_RANLIB 5824if test -n "$RANLIB"; then 5825 echo "$as_me:$LINENO: result: $RANLIB" >&5 5826echo "${ECHO_T}$RANLIB" >&6 5827else 5828 echo "$as_me:$LINENO: result: no" >&5 5829echo "${ECHO_T}no" >&6 5830fi 5831 5832fi 5833if test -z "$ac_cv_prog_RANLIB"; then 5834 ac_ct_RANLIB=$RANLIB 5835 # Extract the first word of "ranlib", so it can be a program name with args. 5836set dummy ranlib; ac_word=$2 5837echo "$as_me:$LINENO: checking for $ac_word" >&5 5838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5839if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5840 echo $ECHO_N "(cached) $ECHO_C" >&6 5841else 5842 if test -n "$ac_ct_RANLIB"; then 5843 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5844else 5845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5846for as_dir in $PATH 5847do 5848 IFS=$as_save_IFS 5849 test -z "$as_dir" && as_dir=. 5850 for ac_exec_ext in '' $ac_executable_extensions; do 5851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5852 ac_cv_prog_ac_ct_RANLIB="ranlib" 5853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5854 break 2 5855 fi 5856done 5857done 5858 5859 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5860fi 5861fi 5862ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5863if test -n "$ac_ct_RANLIB"; then 5864 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5865echo "${ECHO_T}$ac_ct_RANLIB" >&6 5866else 5867 echo "$as_me:$LINENO: result: no" >&5 5868echo "${ECHO_T}no" >&6 5869fi 5870 5871 RANLIB=$ac_ct_RANLIB 5872else 5873 RANLIB="$ac_cv_prog_RANLIB" 5874fi 5875 5876if test -n "$ac_tool_prefix"; then 5877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5878set dummy ${ac_tool_prefix}strip; ac_word=$2 5879echo "$as_me:$LINENO: checking for $ac_word" >&5 5880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5881if test "${ac_cv_prog_STRIP+set}" = set; then 5882 echo $ECHO_N "(cached) $ECHO_C" >&6 5883else 5884 if test -n "$STRIP"; then 5885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5886else 5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5888for as_dir in $PATH 5889do 5890 IFS=$as_save_IFS 5891 test -z "$as_dir" && as_dir=. 5892 for ac_exec_ext in '' $ac_executable_extensions; do 5893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5894 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5896 break 2 5897 fi 5898done 5899done 5900 5901fi 5902fi 5903STRIP=$ac_cv_prog_STRIP 5904if test -n "$STRIP"; then 5905 echo "$as_me:$LINENO: result: $STRIP" >&5 5906echo "${ECHO_T}$STRIP" >&6 5907else 5908 echo "$as_me:$LINENO: result: no" >&5 5909echo "${ECHO_T}no" >&6 5910fi 5911 5912fi 5913if test -z "$ac_cv_prog_STRIP"; then 5914 ac_ct_STRIP=$STRIP 5915 # Extract the first word of "strip", so it can be a program name with args. 5916set dummy strip; ac_word=$2 5917echo "$as_me:$LINENO: checking for $ac_word" >&5 5918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5919if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5920 echo $ECHO_N "(cached) $ECHO_C" >&6 5921else 5922 if test -n "$ac_ct_STRIP"; then 5923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5924else 5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5926for as_dir in $PATH 5927do 5928 IFS=$as_save_IFS 5929 test -z "$as_dir" && as_dir=. 5930 for ac_exec_ext in '' $ac_executable_extensions; do 5931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5932 ac_cv_prog_ac_ct_STRIP="strip" 5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5934 break 2 5935 fi 5936done 5937done 5938 5939 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5940fi 5941fi 5942ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5943if test -n "$ac_ct_STRIP"; then 5944 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5945echo "${ECHO_T}$ac_ct_STRIP" >&6 5946else 5947 echo "$as_me:$LINENO: result: no" >&5 5948echo "${ECHO_T}no" >&6 5949fi 5950 5951 STRIP=$ac_ct_STRIP 5952else 5953 STRIP="$ac_cv_prog_STRIP" 5954fi 5955 5956 5957old_CC="$CC" 5958old_CFLAGS="$CFLAGS" 5959 5960# Set sane defaults for various variables 5961test -z "$AR" && AR=ar 5962test -z "$AR_FLAGS" && AR_FLAGS=cru 5963test -z "$AS" && AS=as 5964test -z "$CC" && CC=cc 5965test -z "$LTCC" && LTCC=$CC 5966test -z "$DLLTOOL" && DLLTOOL=dlltool 5967test -z "$LD" && LD=ld 5968test -z "$LN_S" && LN_S="ln -s" 5969test -z "$MAGIC_CMD" && MAGIC_CMD=file 5970test -z "$NM" && NM=nm 5971test -z "$SED" && SED=sed 5972test -z "$OBJDUMP" && OBJDUMP=objdump 5973test -z "$RANLIB" && RANLIB=: 5974test -z "$STRIP" && STRIP=: 5975test -z "$ac_objext" && ac_objext=o 5976 5977# Determine commands to create old-style static archives. 5978old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5979old_postinstall_cmds='chmod 644 $oldlib' 5980old_postuninstall_cmds= 5981 5982if test -n "$RANLIB"; then 5983 case $host_os in 5984 openbsd*) 5985 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 5986 ;; 5987 *) 5988 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 5989 ;; 5990 esac 5991 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5992fi 5993 5994# Only perform the check for file, if the check method requires it 5995case $deplibs_check_method in 5996file_magic*) 5997 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5998 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5999echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6000if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6001 echo $ECHO_N "(cached) $ECHO_C" >&6 6002else 6003 case $MAGIC_CMD in 6004[\\/*] | ?:[\\/]*) 6005 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6006 ;; 6007*) 6008 lt_save_MAGIC_CMD="$MAGIC_CMD" 6009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6010 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6011 for ac_dir in $ac_dummy; do 6012 IFS="$lt_save_ifs" 6013 test -z "$ac_dir" && ac_dir=. 6014 if test -f $ac_dir/${ac_tool_prefix}file; then 6015 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6016 if test -n "$file_magic_test_file"; then 6017 case $deplibs_check_method in 6018 "file_magic "*) 6019 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6022 $EGREP "$file_magic_regex" > /dev/null; then 6023 : 6024 else 6025 cat <<EOF 1>&2 6026 6027*** Warning: the command libtool uses to detect shared libraries, 6028*** $file_magic_cmd, produces output that libtool cannot recognize. 6029*** The result is that libtool may fail to recognize shared libraries 6030*** as such. This will affect the creation of libtool libraries that 6031*** depend on shared libraries, but programs linked with such libtool 6032*** libraries will work regardless of this problem. Nevertheless, you 6033*** may want to report the problem to your system manager and/or to 6034*** bug-libtool@gnu.org 6035 6036EOF 6037 fi ;; 6038 esac 6039 fi 6040 break 6041 fi 6042 done 6043 IFS="$lt_save_ifs" 6044 MAGIC_CMD="$lt_save_MAGIC_CMD" 6045 ;; 6046esac 6047fi 6048 6049MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6050if test -n "$MAGIC_CMD"; then 6051 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6052echo "${ECHO_T}$MAGIC_CMD" >&6 6053else 6054 echo "$as_me:$LINENO: result: no" >&5 6055echo "${ECHO_T}no" >&6 6056fi 6057 6058if test -z "$lt_cv_path_MAGIC_CMD"; then 6059 if test -n "$ac_tool_prefix"; then 6060 echo "$as_me:$LINENO: checking for file" >&5 6061echo $ECHO_N "checking for file... $ECHO_C" >&6 6062if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6063 echo $ECHO_N "(cached) $ECHO_C" >&6 6064else 6065 case $MAGIC_CMD in 6066[\\/*] | ?:[\\/]*) 6067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6068 ;; 6069*) 6070 lt_save_MAGIC_CMD="$MAGIC_CMD" 6071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6073 for ac_dir in $ac_dummy; do 6074 IFS="$lt_save_ifs" 6075 test -z "$ac_dir" && ac_dir=. 6076 if test -f $ac_dir/file; then 6077 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6078 if test -n "$file_magic_test_file"; then 6079 case $deplibs_check_method in 6080 "file_magic "*) 6081 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6084 $EGREP "$file_magic_regex" > /dev/null; then 6085 : 6086 else 6087 cat <<EOF 1>&2 6088 6089*** Warning: the command libtool uses to detect shared libraries, 6090*** $file_magic_cmd, produces output that libtool cannot recognize. 6091*** The result is that libtool may fail to recognize shared libraries 6092*** as such. This will affect the creation of libtool libraries that 6093*** depend on shared libraries, but programs linked with such libtool 6094*** libraries will work regardless of this problem. Nevertheless, you 6095*** may want to report the problem to your system manager and/or to 6096*** bug-libtool@gnu.org 6097 6098EOF 6099 fi ;; 6100 esac 6101 fi 6102 break 6103 fi 6104 done 6105 IFS="$lt_save_ifs" 6106 MAGIC_CMD="$lt_save_MAGIC_CMD" 6107 ;; 6108esac 6109fi 6110 6111MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6112if test -n "$MAGIC_CMD"; then 6113 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6114echo "${ECHO_T}$MAGIC_CMD" >&6 6115else 6116 echo "$as_me:$LINENO: result: no" >&5 6117echo "${ECHO_T}no" >&6 6118fi 6119 6120 else 6121 MAGIC_CMD=: 6122 fi 6123fi 6124 6125 fi 6126 ;; 6127esac 6128 6129enable_dlopen=no 6130enable_win32_dll=no 6131 6132# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6133if test "${enable_libtool_lock+set}" = set; then 6134 enableval="$enable_libtool_lock" 6135 6136fi; 6137test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6138 6139 6140# Check whether --with-pic or --without-pic was given. 6141if test "${with_pic+set}" = set; then 6142 withval="$with_pic" 6143 pic_mode="$withval" 6144else 6145 pic_mode=default 6146fi; 6147test -z "$pic_mode" && pic_mode=default 6148 6149# Use C for the default configuration in the libtool script 6150tagname= 6151lt_save_CC="$CC" 6152ac_ext=c 6153ac_cpp='$CPP $CPPFLAGS' 6154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6156ac_compiler_gnu=$ac_cv_c_compiler_gnu 6157 6158 6159# Source file extension for C test sources. 6160ac_ext=c 6161 6162# Object file extension for compiled C test sources. 6163objext=o 6164objext=$objext 6165 6166# Code to be used in simple compile tests 6167lt_simple_compile_test_code="int some_variable = 0;\n" 6168 6169# Code to be used in simple link tests 6170lt_simple_link_test_code='int main(){return(0);}\n' 6171 6172 6173# If no C compiler was specified, use CC. 6174LTCC=${LTCC-"$CC"} 6175 6176# Allow CC to be a program name with arguments. 6177compiler=$CC 6178 6179 6180# 6181# Check for any special shared library compilation flags. 6182# 6183lt_prog_cc_shlib= 6184if test "$GCC" = no; then 6185 case $host_os in 6186 sco3.2v5*) 6187 lt_prog_cc_shlib='-belf' 6188 ;; 6189 esac 6190fi 6191if test -n "$lt_prog_cc_shlib"; then 6192 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6193echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6194 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6195 else 6196 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6197echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6198 lt_cv_prog_cc_can_build_shared=no 6199 fi 6200fi 6201 6202 6203# 6204# Check to make sure the static flag actually works. 6205# 6206echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6207echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6208if test "${lt_prog_compiler_static_works+set}" = set; then 6209 echo $ECHO_N "(cached) $ECHO_C" >&6 6210else 6211 lt_prog_compiler_static_works=no 6212 save_LDFLAGS="$LDFLAGS" 6213 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6214 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6215 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6216 # The compiler can only warn and ignore the option if not recognized 6217 # So say no if there are warnings 6218 if test -s conftest.err; then 6219 # Append any errors to the config.log. 6220 cat conftest.err 1>&5 6221 else 6222 lt_prog_compiler_static_works=yes 6223 fi 6224 fi 6225 $rm conftest* 6226 LDFLAGS="$save_LDFLAGS" 6227 6228fi 6229echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6230echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6231 6232if test x"$lt_prog_compiler_static_works" = xyes; then 6233 : 6234else 6235 lt_prog_compiler_static= 6236fi 6237 6238 6239 6240 6241lt_prog_compiler_no_builtin_flag= 6242 6243if test "$GCC" = yes; then 6244 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6245 6246 6247echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6248echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6249if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6250 echo $ECHO_N "(cached) $ECHO_C" >&6 6251else 6252 lt_cv_prog_compiler_rtti_exceptions=no 6253 ac_outfile=conftest.$ac_objext 6254 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6255 lt_compiler_flag="-fno-rtti -fno-exceptions" 6256 # Insert the option either (1) after the last *FLAGS variable, or 6257 # (2) before a word containing "conftest.", or (3) at the end. 6258 # Note that $ac_compile itself does not contain backslashes and begins 6259 # with a dollar sign (not a hyphen), so the echo should work correctly. 6260 # The option is referenced via a variable to avoid confusing sed. 6261 lt_compile=`echo "$ac_compile" | $SED \ 6262 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6264 -e 's:$: $lt_compiler_flag:'` 6265 (eval echo "\"\$as_me:6265: $lt_compile\"" >&5) 6266 (eval "$lt_compile" 2>conftest.err) 6267 ac_status=$? 6268 cat conftest.err >&5 6269 echo "$as_me:6269: \$? = $ac_status" >&5 6270 if (exit $ac_status) && test -s "$ac_outfile"; then 6271 # The compiler can only warn and ignore the option if not recognized 6272 # So say no if there are warnings 6273 if test ! -s conftest.err; then 6274 lt_cv_prog_compiler_rtti_exceptions=yes 6275 fi 6276 fi 6277 $rm conftest* 6278 6279fi 6280echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6281echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6282 6283if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6284 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6285else 6286 : 6287fi 6288 6289fi 6290 6291lt_prog_compiler_wl= 6292lt_prog_compiler_pic= 6293lt_prog_compiler_static= 6294 6295echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6296echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6297 6298 if test "$GCC" = yes; then 6299 lt_prog_compiler_wl='-Wl,' 6300 lt_prog_compiler_static='-static' 6301 6302 case $host_os in 6303 aix*) 6304 # All AIX code is PIC. 6305 if test "$host_cpu" = ia64; then 6306 # AIX 5 now supports IA64 processor 6307 lt_prog_compiler_static='-Bstatic' 6308 fi 6309 ;; 6310 6311 amigaos*) 6312 # FIXME: we need at least 68020 code to build shared libraries, but 6313 # adding the `-m68020' flag to GCC prevents building anything better, 6314 # like `-m68040'. 6315 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6316 ;; 6317 6318 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6319 # PIC is the default for these OSes. 6320 ;; 6321 6322 mingw* | pw32* | os2*) 6323 # This hack is so that the source file can tell whether it is being 6324 # built for inclusion in a dll (and should export symbols for example). 6325 lt_prog_compiler_pic='-DDLL_EXPORT' 6326 ;; 6327 6328 darwin* | rhapsody*) 6329 # PIC is the default on this platform 6330 # Common symbols not allowed in MH_DYLIB files 6331 lt_prog_compiler_pic='-fno-common' 6332 ;; 6333 6334 msdosdjgpp*) 6335 # Just because we use GCC doesn't mean we suddenly get shared libraries 6336 # on systems that don't support them. 6337 lt_prog_compiler_can_build_shared=no 6338 enable_shared=no 6339 ;; 6340 6341 sysv4*MP*) 6342 if test -d /usr/nec; then 6343 lt_prog_compiler_pic=-Kconform_pic 6344 fi 6345 ;; 6346 6347 hpux*) 6348 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6349 # not for PA HP-UX. 6350 case "$host_cpu" in 6351 hppa*64*|ia64*) 6352 # +Z the default 6353 ;; 6354 *) 6355 lt_prog_compiler_pic='-fPIC' 6356 ;; 6357 esac 6358 ;; 6359 6360 *) 6361 lt_prog_compiler_pic='-fPIC' 6362 ;; 6363 esac 6364 else 6365 # PORTME Check for flag to pass linker flags through the system compiler. 6366 case $host_os in 6367 aix*) 6368 lt_prog_compiler_wl='-Wl,' 6369 if test "$host_cpu" = ia64; then 6370 # AIX 5 now supports IA64 processor 6371 lt_prog_compiler_static='-Bstatic' 6372 else 6373 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6374 fi 6375 ;; 6376 6377 mingw* | pw32* | os2*) 6378 # This hack is so that the source file can tell whether it is being 6379 # built for inclusion in a dll (and should export symbols for example). 6380 lt_prog_compiler_pic='-DDLL_EXPORT' 6381 ;; 6382 6383 hpux9* | hpux10* | hpux11*) 6384 lt_prog_compiler_wl='-Wl,' 6385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6386 # not for PA HP-UX. 6387 case "$host_cpu" in 6388 hppa*64*|ia64*) 6389 # +Z the default 6390 ;; 6391 *) 6392 lt_prog_compiler_pic='+Z' 6393 ;; 6394 esac 6395 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6396 lt_prog_compiler_static='${wl}-a ${wl}archive' 6397 ;; 6398 6399 irix5* | irix6* | nonstopux*) 6400 lt_prog_compiler_wl='-Wl,' 6401 # PIC (with -KPIC) is the default. 6402 lt_prog_compiler_static='-non_shared' 6403 ;; 6404 6405 newsos6) 6406 lt_prog_compiler_pic='-KPIC' 6407 lt_prog_compiler_static='-Bstatic' 6408 ;; 6409 6410 linux*) 6411 case $CC in 6412 icc* | ecc*) 6413 lt_prog_compiler_wl='-Wl,' 6414 lt_prog_compiler_pic='-KPIC' 6415 lt_prog_compiler_static='-static' 6416 ;; 6417 ccc*) 6418 lt_prog_compiler_wl='-Wl,' 6419 # All Alpha code is PIC. 6420 lt_prog_compiler_static='-non_shared' 6421 ;; 6422 esac 6423 ;; 6424 6425 osf3* | osf4* | osf5*) 6426 lt_prog_compiler_wl='-Wl,' 6427 # All OSF/1 code is PIC. 6428 lt_prog_compiler_static='-non_shared' 6429 ;; 6430 6431 sco3.2v5*) 6432 lt_prog_compiler_pic='-Kpic' 6433 lt_prog_compiler_static='-dn' 6434 ;; 6435 6436 solaris*) 6437 lt_prog_compiler_wl='-Wl,' 6438 lt_prog_compiler_pic='-KPIC' 6439 lt_prog_compiler_static='-Bstatic' 6440 ;; 6441 6442 sunos4*) 6443 lt_prog_compiler_wl='-Qoption ld ' 6444 lt_prog_compiler_pic='-PIC' 6445 lt_prog_compiler_static='-Bstatic' 6446 ;; 6447 6448 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6449 lt_prog_compiler_wl='-Wl,' 6450 lt_prog_compiler_pic='-KPIC' 6451 lt_prog_compiler_static='-Bstatic' 6452 ;; 6453 6454 sysv4*MP*) 6455 if test -d /usr/nec ;then 6456 lt_prog_compiler_pic='-Kconform_pic' 6457 lt_prog_compiler_static='-Bstatic' 6458 fi 6459 ;; 6460 6461 uts4*) 6462 lt_prog_compiler_pic='-pic' 6463 lt_prog_compiler_static='-Bstatic' 6464 ;; 6465 6466 *) 6467 lt_prog_compiler_can_build_shared=no 6468 ;; 6469 esac 6470 fi 6471 6472echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6473echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6474 6475# 6476# Check to make sure the PIC flag actually works. 6477# 6478if test -n "$lt_prog_compiler_pic"; then 6479 6480echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6481echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6482if test "${lt_prog_compiler_pic_works+set}" = set; then 6483 echo $ECHO_N "(cached) $ECHO_C" >&6 6484else 6485 lt_prog_compiler_pic_works=no 6486 ac_outfile=conftest.$ac_objext 6487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6488 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6489 # Insert the option either (1) after the last *FLAGS variable, or 6490 # (2) before a word containing "conftest.", or (3) at the end. 6491 # Note that $ac_compile itself does not contain backslashes and begins 6492 # with a dollar sign (not a hyphen), so the echo should work correctly. 6493 # The option is referenced via a variable to avoid confusing sed. 6494 lt_compile=`echo "$ac_compile" | $SED \ 6495 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6497 -e 's:$: $lt_compiler_flag:'` 6498 (eval echo "\"\$as_me:6498: $lt_compile\"" >&5) 6499 (eval "$lt_compile" 2>conftest.err) 6500 ac_status=$? 6501 cat conftest.err >&5 6502 echo "$as_me:6502: \$? = $ac_status" >&5 6503 if (exit $ac_status) && test -s "$ac_outfile"; then 6504 # The compiler can only warn and ignore the option if not recognized 6505 # So say no if there are warnings 6506 if test ! -s conftest.err; then 6507 lt_prog_compiler_pic_works=yes 6508 fi 6509 fi 6510 $rm conftest* 6511 6512fi 6513echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6514echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6515 6516if test x"$lt_prog_compiler_pic_works" = xyes; then 6517 case $lt_prog_compiler_pic in 6518 "" | " "*) ;; 6519 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6520 esac 6521else 6522 lt_prog_compiler_pic= 6523 lt_prog_compiler_can_build_shared=no 6524fi 6525 6526fi 6527case "$host_os" in 6528 # For platforms which do not support PIC, -DPIC is meaningless: 6529 *djgpp*) 6530 lt_prog_compiler_pic= 6531 ;; 6532 *) 6533 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6534 ;; 6535esac 6536 6537echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6538echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6539if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6540 echo $ECHO_N "(cached) $ECHO_C" >&6 6541else 6542 lt_cv_prog_compiler_c_o=no 6543 $rm -r conftest 2>/dev/null 6544 mkdir conftest 6545 cd conftest 6546 mkdir out 6547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6548 6549 lt_compiler_flag="-o out/conftest2.$ac_objext" 6550 # Insert the option either (1) after the last *FLAGS variable, or 6551 # (2) before a word containing "conftest.", or (3) at the end. 6552 # Note that $ac_compile itself does not contain backslashes and begins 6553 # with a dollar sign (not a hyphen), so the echo should work correctly. 6554 lt_compile=`echo "$ac_compile" | $SED \ 6555 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6557 -e 's:$: $lt_compiler_flag:'` 6558 (eval echo "\"\$as_me:6558: $lt_compile\"" >&5) 6559 (eval "$lt_compile" 2>out/conftest.err) 6560 ac_status=$? 6561 cat out/conftest.err >&5 6562 echo "$as_me:6562: \$? = $ac_status" >&5 6563 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6564 then 6565 # The compiler can only warn and ignore the option if not recognized 6566 # So say no if there are warnings 6567 if test ! -s out/conftest.err; then 6568 lt_cv_prog_compiler_c_o=yes 6569 fi 6570 fi 6571 chmod u+w . 6572 $rm conftest* 6573 # SGI C++ compiler will create directory out/ii_files/ for 6574 # template instantiation 6575 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6576 $rm out/* && rmdir out 6577 cd .. 6578 rmdir conftest 6579 $rm conftest* 6580 6581fi 6582echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6583echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6584 6585 6586hard_links="nottested" 6587if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6588 # do not overwrite the value of need_locks provided by the user 6589 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6590echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6591 hard_links=yes 6592 $rm conftest* 6593 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6594 touch conftest.a 6595 ln conftest.a conftest.b 2>&5 || hard_links=no 6596 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6597 echo "$as_me:$LINENO: result: $hard_links" >&5 6598echo "${ECHO_T}$hard_links" >&6 6599 if test "$hard_links" = no; then 6600 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6601echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6602 need_locks=warn 6603 fi 6604else 6605 need_locks=no 6606fi 6607 6608echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6609echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6610 6611 runpath_var= 6612 allow_undefined_flag= 6613 enable_shared_with_static_runtimes=no 6614 archive_cmds= 6615 archive_expsym_cmds= 6616 old_archive_From_new_cmds= 6617 old_archive_from_expsyms_cmds= 6618 export_dynamic_flag_spec= 6619 whole_archive_flag_spec= 6620 thread_safe_flag_spec= 6621 hardcode_libdir_flag_spec= 6622 hardcode_libdir_flag_spec_ld= 6623 hardcode_libdir_separator= 6624 hardcode_direct=no 6625 hardcode_minus_L=no 6626 hardcode_shlibpath_var=unsupported 6627 link_all_deplibs=unknown 6628 hardcode_automatic=no 6629 module_cmds= 6630 module_expsym_cmds= 6631 always_export_symbols=no 6632 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6633 # include_expsyms should be a list of space-separated symbols to be *always* 6634 # included in the symbol list 6635 include_expsyms= 6636 # exclude_expsyms can be an extended regexp of symbols to exclude 6637 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6638 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6639 # as well as any symbol that contains `d'. 6640 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6641 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6642 # platforms (ab)use it in PIC code, but their linkers get confused if 6643 # the symbol is explicitly referenced. Since portable code cannot 6644 # rely on this symbol name, it's probably fine to never include it in 6645 # preloaded symbol tables. 6646 extract_expsyms_cmds= 6647 6648 case $host_os in 6649 cygwin* | mingw* | pw32*) 6650 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6651 # When not using gcc, we currently assume that we are using 6652 # Microsoft Visual C++. 6653 if test "$GCC" != yes; then 6654 with_gnu_ld=no 6655 fi 6656 ;; 6657 openbsd*) 6658 with_gnu_ld=no 6659 ;; 6660 esac 6661 6662 ld_shlibs=yes 6663 if test "$with_gnu_ld" = yes; then 6664 # If archive_cmds runs LD, not CC, wlarc should be empty 6665 wlarc='${wl}' 6666 6667 # See if GNU ld supports shared libraries. 6668 case $host_os in 6669 aix3* | aix4* | aix5*) 6670 # On AIX/PPC, the GNU linker is very broken 6671 if test "$host_cpu" != ia64; then 6672 ld_shlibs=no 6673 cat <<EOF 1>&2 6674 6675*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6676*** to be unable to reliably create shared libraries on AIX. 6677*** Therefore, libtool is disabling shared libraries support. If you 6678*** really care for shared libraries, you may want to modify your PATH 6679*** so that a non-GNU linker is found, and then restart. 6680 6681EOF 6682 fi 6683 ;; 6684 6685 amigaos*) 6686 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)' 6687 hardcode_libdir_flag_spec='-L$libdir' 6688 hardcode_minus_L=yes 6689 6690 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6691 # that the semantics of dynamic libraries on AmigaOS, at least up 6692 # to version 4, is to share data among multiple programs linked 6693 # with the same dynamic library. Since this doesn't match the 6694 # behavior of shared libraries on other platforms, we can't use 6695 # them. 6696 ld_shlibs=no 6697 ;; 6698 6699 beos*) 6700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6701 allow_undefined_flag=unsupported 6702 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6703 # support --undefined. This deserves some investigation. FIXME 6704 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6705 else 6706 ld_shlibs=no 6707 fi 6708 ;; 6709 6710 cygwin* | mingw* | pw32*) 6711 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6712 # as there is no search path for DLLs. 6713 hardcode_libdir_flag_spec='-L$libdir' 6714 allow_undefined_flag=unsupported 6715 always_export_symbols=no 6716 enable_shared_with_static_runtimes=yes 6717 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6718 6719 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6721 # If the export-symbols file already is a .def file (1st line 6722 # is EXPORTS), use it as is; otherwise, prepend... 6723 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6724 cp $export_symbols $output_objdir/$soname.def; 6725 else 6726 echo EXPORTS > $output_objdir/$soname.def; 6727 cat $export_symbols >> $output_objdir/$soname.def; 6728 fi~ 6729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6730 else 6731 ld_shlibs=no 6732 fi 6733 ;; 6734 6735 netbsd*) 6736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6737 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6738 wlarc= 6739 else 6740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6742 fi 6743 ;; 6744 6745 solaris* | sysv5*) 6746 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6747 ld_shlibs=no 6748 cat <<EOF 1>&2 6749 6750*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6751*** create shared libraries on Solaris systems. Therefore, libtool 6752*** is disabling shared libraries support. We urge you to upgrade GNU 6753*** binutils to release 2.9.1 or newer. Another option is to modify 6754*** your PATH or compiler configuration so that the native linker is 6755*** used, and then restart. 6756 6757EOF 6758 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6761 else 6762 ld_shlibs=no 6763 fi 6764 ;; 6765 6766 sunos4*) 6767 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6768 wlarc= 6769 hardcode_direct=yes 6770 hardcode_shlibpath_var=no 6771 ;; 6772 6773 linux*) 6774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6775 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6776 archive_cmds="$tmp_archive_cmds" 6777 supports_anon_versioning=no 6778 case `$LD -v 2>/dev/null` in 6779 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6780 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6781 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6782 *\ 2.11.*) ;; # other 2.11 versions 6783 *) supports_anon_versioning=yes ;; 6784 esac 6785 if test $supports_anon_versioning = yes; then 6786 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6787cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6788$echo "local: *; };" >> $output_objdir/$libname.ver~ 6789 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6790 else 6791 archive_expsym_cmds="$tmp_archive_cmds" 6792 fi 6793 else 6794 ld_shlibs=no 6795 fi 6796 ;; 6797 6798 *) 6799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6802 else 6803 ld_shlibs=no 6804 fi 6805 ;; 6806 esac 6807 6808 if test "$ld_shlibs" = yes; then 6809 runpath_var=LD_RUN_PATH 6810 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6811 export_dynamic_flag_spec='${wl}--export-dynamic' 6812 # ancient GNU ld didn't support --whole-archive et. al. 6813 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6814 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6815 else 6816 whole_archive_flag_spec= 6817 fi 6818 fi 6819 else 6820 # PORTME fill in a description of your system's linker (not GNU ld) 6821 case $host_os in 6822 aix3*) 6823 allow_undefined_flag=unsupported 6824 always_export_symbols=yes 6825 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' 6826 # Note: this linker hardcodes the directories in LIBPATH if there 6827 # are no directories specified by -L. 6828 hardcode_minus_L=yes 6829 if test "$GCC" = yes && test -z "$link_static_flag"; then 6830 # Neither direct hardcoding nor static linking is supported with a 6831 # broken collect2. 6832 hardcode_direct=unsupported 6833 fi 6834 ;; 6835 6836 aix4* | aix5*) 6837 if test "$host_cpu" = ia64; then 6838 # On IA64, the linker does run time linking by default, so we don't 6839 # have to do anything special. 6840 aix_use_runtimelinking=no 6841 exp_sym_flag='-Bexport' 6842 no_entry_flag="" 6843 else 6844 # If we're using GNU nm, then we don't want the "-C" option. 6845 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6846 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6847 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' 6848 else 6849 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' 6850 fi 6851 aix_use_runtimelinking=no 6852 6853 # Test if we are trying to use run time linking or normal 6854 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6855 # need to do runtime linking. 6856 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6857 for ld_flag in $LDFLAGS; do 6858 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6859 aix_use_runtimelinking=yes 6860 break 6861 fi 6862 done 6863 esac 6864 6865 exp_sym_flag='-bexport' 6866 no_entry_flag='-bnoentry' 6867 fi 6868 6869 # When large executables or shared objects are built, AIX ld can 6870 # have problems creating the table of contents. If linking a library 6871 # or program results in "error TOC overflow" add -mminimal-toc to 6872 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6873 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6874 6875 archive_cmds='' 6876 hardcode_direct=yes 6877 hardcode_libdir_separator=':' 6878 link_all_deplibs=yes 6879 6880 if test "$GCC" = yes; then 6881 case $host_os in aix4.012|aix4.012.*) 6882 # We only want to do this on AIX 4.2 and lower, the check 6883 # below for broken collect2 doesn't work under 4.3+ 6884 collect2name=`${CC} -print-prog-name=collect2` 6885 if test -f "$collect2name" && \ 6886 strings "$collect2name" | grep resolve_lib_name >/dev/null 6887 then 6888 # We have reworked collect2 6889 hardcode_direct=yes 6890 else 6891 # We have old collect2 6892 hardcode_direct=unsupported 6893 # It fails to find uninstalled libraries when the uninstalled 6894 # path is not listed in the libpath. Setting hardcode_minus_L 6895 # to unsupported forces relinking 6896 hardcode_minus_L=yes 6897 hardcode_libdir_flag_spec='-L$libdir' 6898 hardcode_libdir_separator= 6899 fi 6900 esac 6901 shared_flag='-shared' 6902 else 6903 # not using gcc 6904 if test "$host_cpu" = ia64; then 6905 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6906 # chokes on -Wl,-G. The following line is correct: 6907 shared_flag='-G' 6908 else 6909 if test "$aix_use_runtimelinking" = yes; then 6910 shared_flag='${wl}-G' 6911 else 6912 shared_flag='${wl}-bM:SRE' 6913 fi 6914 fi 6915 fi 6916 6917 # It seems that -bexpall does not export symbols beginning with 6918 # underscore (_), so it is better to generate a list of symbols to export. 6919 always_export_symbols=yes 6920 if test "$aix_use_runtimelinking" = yes; then 6921 # Warning - without using the other runtime loading flags (-brtl), 6922 # -berok will link without error, but may produce a broken library. 6923 allow_undefined_flag='-berok' 6924 # Determine the default libpath from the value encoded in an empty executable. 6925 cat >conftest.$ac_ext <<_ACEOF 6926/* confdefs.h. */ 6927_ACEOF 6928cat confdefs.h >>conftest.$ac_ext 6929cat >>conftest.$ac_ext <<_ACEOF 6930/* end confdefs.h. */ 6931 6932int 6933main () 6934{ 6935 6936 ; 6937 return 0; 6938} 6939_ACEOF 6940rm -f conftest.$ac_objext conftest$ac_exeext 6941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6942 (eval $ac_link) 2>conftest.er1 6943 ac_status=$? 6944 grep -v '^ *+' conftest.er1 >conftest.err 6945 rm -f conftest.er1 6946 cat conftest.err >&5 6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6948 (exit $ac_status); } && 6949 { ac_try='test -z "$ac_c_werror_flag" 6950 || test ! -s conftest.err' 6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6952 (eval $ac_try) 2>&5 6953 ac_status=$? 6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6955 (exit $ac_status); }; } && 6956 { ac_try='test -s conftest$ac_exeext' 6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6958 (eval $ac_try) 2>&5 6959 ac_status=$? 6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6961 (exit $ac_status); }; }; then 6962 6963aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6964}'` 6965# Check for a 64-bit object if we didn't find anything. 6966if 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; } 6967}'`; fi 6968else 6969 echo "$as_me: failed program was:" >&5 6970sed 's/^/| /' conftest.$ac_ext >&5 6971 6972fi 6973rm -f conftest.err conftest.$ac_objext \ 6974 conftest$ac_exeext conftest.$ac_ext 6975if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6976 6977 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6978 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" 6979 else 6980 if test "$host_cpu" = ia64; then 6981 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6982 allow_undefined_flag="-z nodefs" 6983 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" 6984 else 6985 # Determine the default libpath from the value encoded in an empty executable. 6986 cat >conftest.$ac_ext <<_ACEOF 6987/* confdefs.h. */ 6988_ACEOF 6989cat confdefs.h >>conftest.$ac_ext 6990cat >>conftest.$ac_ext <<_ACEOF 6991/* end confdefs.h. */ 6992 6993int 6994main () 6995{ 6996 6997 ; 6998 return 0; 6999} 7000_ACEOF 7001rm -f conftest.$ac_objext conftest$ac_exeext 7002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7003 (eval $ac_link) 2>conftest.er1 7004 ac_status=$? 7005 grep -v '^ *+' conftest.er1 >conftest.err 7006 rm -f conftest.er1 7007 cat conftest.err >&5 7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7009 (exit $ac_status); } && 7010 { ac_try='test -z "$ac_c_werror_flag" 7011 || test ! -s conftest.err' 7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7013 (eval $ac_try) 2>&5 7014 ac_status=$? 7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7016 (exit $ac_status); }; } && 7017 { ac_try='test -s conftest$ac_exeext' 7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7019 (eval $ac_try) 2>&5 7020 ac_status=$? 7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7022 (exit $ac_status); }; }; then 7023 7024aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7025}'` 7026# Check for a 64-bit object if we didn't find anything. 7027if 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; } 7028}'`; fi 7029else 7030 echo "$as_me: failed program was:" >&5 7031sed 's/^/| /' conftest.$ac_ext >&5 7032 7033fi 7034rm -f conftest.err conftest.$ac_objext \ 7035 conftest$ac_exeext conftest.$ac_ext 7036if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7037 7038 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7039 # Warning - without using the other run time loading flags, 7040 # -berok will link without error, but may produce a broken library. 7041 no_undefined_flag=' ${wl}-bernotok' 7042 allow_undefined_flag=' ${wl}-berok' 7043 # -bexpall does not export symbols beginning with underscore (_) 7044 always_export_symbols=yes 7045 # Exported symbols can be pulled into shared objects from archives 7046 whole_archive_flag_spec=' ' 7047 archive_cmds_need_lc=yes 7048 # This is similar to how AIX traditionally builds it's shared libraries. 7049 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' 7050 fi 7051 fi 7052 ;; 7053 7054 amigaos*) 7055 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)' 7056 hardcode_libdir_flag_spec='-L$libdir' 7057 hardcode_minus_L=yes 7058 # see comment about different semantics on the GNU ld section 7059 ld_shlibs=no 7060 ;; 7061 7062 bsdi4*) 7063 export_dynamic_flag_spec=-rdynamic 7064 ;; 7065 7066 cygwin* | mingw* | pw32*) 7067 # When not using gcc, we currently assume that we are using 7068 # Microsoft Visual C++. 7069 # hardcode_libdir_flag_spec is actually meaningless, as there is 7070 # no search path for DLLs. 7071 hardcode_libdir_flag_spec=' ' 7072 allow_undefined_flag=unsupported 7073 # Tell ltmain to make .lib files, not .a files. 7074 libext=lib 7075 # Tell ltmain to make .dll files, not .so files. 7076 shrext_cmds=".dll" 7077 # FIXME: Setting linknames here is a bad hack. 7078 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7079 # The linker will automatically build a .lib file if we build a DLL. 7080 old_archive_From_new_cmds='true' 7081 # FIXME: Should let the user specify the lib program. 7082 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7083 fix_srcfile_path='`cygpath -w "$srcfile"`' 7084 enable_shared_with_static_runtimes=yes 7085 ;; 7086 7087 darwin* | rhapsody*) 7088 if test "$GXX" = yes ; then 7089 archive_cmds_need_lc=no 7090 case "$host_os" in 7091 rhapsody* | darwin1.[012]) 7092 allow_undefined_flag='-undefined suppress' 7093 ;; 7094 *) # Darwin 1.3 on 7095 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7096 allow_undefined_flag='-flat_namespace -undefined suppress' 7097 else 7098 case ${MACOSX_DEPLOYMENT_TARGET} in 7099 10.[012]) 7100 allow_undefined_flag='-flat_namespace -undefined suppress' 7101 ;; 7102 10.*) 7103 allow_undefined_flag='-undefined dynamic_lookup' 7104 ;; 7105 esac 7106 fi 7107 ;; 7108 esac 7109 lt_int_apple_cc_single_mod=no 7110 output_verbose_link_cmd='echo' 7111 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 7112 lt_int_apple_cc_single_mod=yes 7113 fi 7114 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7115 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7116 else 7117 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' 7118 fi 7119 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7120 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7121 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7122 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}' 7123 else 7124 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}' 7125 fi 7126 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}' 7127 hardcode_direct=no 7128 hardcode_automatic=yes 7129 hardcode_shlibpath_var=unsupported 7130 whole_archive_flag_spec='-all_load $convenience' 7131 link_all_deplibs=yes 7132 else 7133 ld_shlibs=no 7134 fi 7135 ;; 7136 7137 dgux*) 7138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7139 hardcode_libdir_flag_spec='-L$libdir' 7140 hardcode_shlibpath_var=no 7141 ;; 7142 7143 freebsd1*) 7144 ld_shlibs=no 7145 ;; 7146 7147 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7148 # support. Future versions do this automatically, but an explicit c++rt0.o 7149 # does not break anything, and helps significantly (at the cost of a little 7150 # extra space). 7151 freebsd2.2*) 7152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7153 hardcode_libdir_flag_spec='-R$libdir' 7154 hardcode_direct=yes 7155 hardcode_shlibpath_var=no 7156 ;; 7157 7158 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7159 freebsd2*) 7160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7161 hardcode_direct=yes 7162 hardcode_minus_L=yes 7163 hardcode_shlibpath_var=no 7164 ;; 7165 7166 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7167 freebsd* | kfreebsd*-gnu) 7168 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7169 hardcode_libdir_flag_spec='-R$libdir' 7170 hardcode_direct=yes 7171 hardcode_shlibpath_var=no 7172 ;; 7173 7174 hpux9*) 7175 if test "$GCC" = yes; then 7176 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' 7177 else 7178 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' 7179 fi 7180 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7181 hardcode_libdir_separator=: 7182 hardcode_direct=yes 7183 7184 # hardcode_minus_L: Not really in the search PATH, 7185 # but as the default location of the library. 7186 hardcode_minus_L=yes 7187 export_dynamic_flag_spec='${wl}-E' 7188 ;; 7189 7190 hpux10* | hpux11*) 7191 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7192 case "$host_cpu" in 7193 hppa*64*|ia64*) 7194 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7195 ;; 7196 *) 7197 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7198 ;; 7199 esac 7200 else 7201 case "$host_cpu" in 7202 hppa*64*|ia64*) 7203 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7204 ;; 7205 *) 7206 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7207 ;; 7208 esac 7209 fi 7210 if test "$with_gnu_ld" = no; then 7211 case "$host_cpu" in 7212 hppa*64*) 7213 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7214 hardcode_libdir_flag_spec_ld='+b $libdir' 7215 hardcode_libdir_separator=: 7216 hardcode_direct=no 7217 hardcode_shlibpath_var=no 7218 ;; 7219 ia64*) 7220 hardcode_libdir_flag_spec='-L$libdir' 7221 hardcode_direct=no 7222 hardcode_shlibpath_var=no 7223 7224 # hardcode_minus_L: Not really in the search PATH, 7225 # but as the default location of the library. 7226 hardcode_minus_L=yes 7227 ;; 7228 *) 7229 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7230 hardcode_libdir_separator=: 7231 hardcode_direct=yes 7232 export_dynamic_flag_spec='${wl}-E' 7233 7234 # hardcode_minus_L: Not really in the search PATH, 7235 # but as the default location of the library. 7236 hardcode_minus_L=yes 7237 ;; 7238 esac 7239 fi 7240 ;; 7241 7242 irix5* | irix6* | nonstopux*) 7243 if test "$GCC" = yes; then 7244 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' 7245 else 7246 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' 7247 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7248 fi 7249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7250 hardcode_libdir_separator=: 7251 link_all_deplibs=yes 7252 ;; 7253 7254 netbsd*) 7255 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7257 else 7258 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7259 fi 7260 hardcode_libdir_flag_spec='-R$libdir' 7261 hardcode_direct=yes 7262 hardcode_shlibpath_var=no 7263 ;; 7264 7265 newsos6) 7266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7267 hardcode_direct=yes 7268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7269 hardcode_libdir_separator=: 7270 hardcode_shlibpath_var=no 7271 ;; 7272 7273 openbsd*) 7274 hardcode_direct=yes 7275 hardcode_shlibpath_var=no 7276 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7278 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7279 export_dynamic_flag_spec='${wl}-E' 7280 else 7281 case $host_os in 7282 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7284 hardcode_libdir_flag_spec='-R$libdir' 7285 ;; 7286 *) 7287 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7288 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7289 ;; 7290 esac 7291 fi 7292 ;; 7293 7294 os2*) 7295 hardcode_libdir_flag_spec='-L$libdir' 7296 hardcode_minus_L=yes 7297 allow_undefined_flag=unsupported 7298 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' 7299 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7300 ;; 7301 7302 osf3*) 7303 if test "$GCC" = yes; then 7304 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7305 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' 7306 else 7307 allow_undefined_flag=' -expect_unresolved \*' 7308 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' 7309 fi 7310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7311 hardcode_libdir_separator=: 7312 ;; 7313 7314 osf4* | osf5*) # as osf3* with the addition of -msym flag 7315 if test "$GCC" = yes; then 7316 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7317 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' 7318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7319 else 7320 allow_undefined_flag=' -expect_unresolved \*' 7321 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' 7322 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7323 $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' 7324 7325 # Both c and cxx compiler support -rpath directly 7326 hardcode_libdir_flag_spec='-rpath $libdir' 7327 fi 7328 hardcode_libdir_separator=: 7329 ;; 7330 7331 sco3.2v5*) 7332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7333 hardcode_shlibpath_var=no 7334 export_dynamic_flag_spec='${wl}-Bexport' 7335 runpath_var=LD_RUN_PATH 7336 hardcode_runpath_var=yes 7337 ;; 7338 7339 solaris*) 7340 no_undefined_flag=' -z text' 7341 if test "$GCC" = yes; then 7342 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7343 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7344 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7345 else 7346 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7347 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7348 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7349 fi 7350 hardcode_libdir_flag_spec='-R$libdir' 7351 hardcode_shlibpath_var=no 7352 case $host_os in 7353 solaris2.[0-5] | solaris2.[0-5].*) ;; 7354 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 7355 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7356 esac 7357 link_all_deplibs=yes 7358 ;; 7359 7360 sunos4*) 7361 if test "x$host_vendor" = xsequent; then 7362 # Use $CC to link under sequent, because it throws in some extra .o 7363 # files that make .init and .fini sections work. 7364 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7365 else 7366 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7367 fi 7368 hardcode_libdir_flag_spec='-L$libdir' 7369 hardcode_direct=yes 7370 hardcode_minus_L=yes 7371 hardcode_shlibpath_var=no 7372 ;; 7373 7374 sysv4) 7375 case $host_vendor in 7376 sni) 7377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7378 hardcode_direct=yes # is this really true??? 7379 ;; 7380 siemens) 7381 ## LD is ld it makes a PLAMLIB 7382 ## CC just makes a GrossModule. 7383 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7384 reload_cmds='$CC -r -o $output$reload_objs' 7385 hardcode_direct=no 7386 ;; 7387 motorola) 7388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7389 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7390 ;; 7391 esac 7392 runpath_var='LD_RUN_PATH' 7393 hardcode_shlibpath_var=no 7394 ;; 7395 7396 sysv4.3*) 7397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7398 hardcode_shlibpath_var=no 7399 export_dynamic_flag_spec='-Bexport' 7400 ;; 7401 7402 sysv4*MP*) 7403 if test -d /usr/nec; then 7404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7405 hardcode_shlibpath_var=no 7406 runpath_var=LD_RUN_PATH 7407 hardcode_runpath_var=yes 7408 ld_shlibs=yes 7409 fi 7410 ;; 7411 7412 sysv4.2uw2*) 7413 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7414 hardcode_direct=yes 7415 hardcode_minus_L=no 7416 hardcode_shlibpath_var=no 7417 hardcode_runpath_var=yes 7418 runpath_var=LD_RUN_PATH 7419 ;; 7420 7421 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7422 no_undefined_flag='${wl}-z ${wl}text' 7423 if test "$GCC" = yes; then 7424 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7425 else 7426 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7427 fi 7428 runpath_var='LD_RUN_PATH' 7429 hardcode_shlibpath_var=no 7430 ;; 7431 7432 sysv5*) 7433 no_undefined_flag=' -z text' 7434 # $CC -shared without GNU ld will not create a library from C++ 7435 # object files and a static libstdc++, better avoid it by now 7436 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7437 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7438 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7439 hardcode_libdir_flag_spec= 7440 hardcode_shlibpath_var=no 7441 runpath_var='LD_RUN_PATH' 7442 ;; 7443 7444 uts4*) 7445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7446 hardcode_libdir_flag_spec='-L$libdir' 7447 hardcode_shlibpath_var=no 7448 ;; 7449 7450 *) 7451 ld_shlibs=no 7452 ;; 7453 esac 7454 fi 7455 7456echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7457echo "${ECHO_T}$ld_shlibs" >&6 7458test "$ld_shlibs" = no && can_build_shared=no 7459 7460variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7461if test "$GCC" = yes; then 7462 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7463fi 7464 7465# 7466# Do we need to explicitly link libc? 7467# 7468case "x$archive_cmds_need_lc" in 7469x|xyes) 7470 # Assume -lc should be added 7471 archive_cmds_need_lc=yes 7472 7473 if test "$enable_shared" = yes && test "$GCC" = yes; then 7474 case $archive_cmds in 7475 *'~'*) 7476 # FIXME: we may have to deal with multi-command sequences. 7477 ;; 7478 '$CC '*) 7479 # Test whether the compiler implicitly links with -lc since on some 7480 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7481 # to ld, don't add -lc before -lgcc. 7482 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7483echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7484 $rm conftest* 7485 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7486 7487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7488 (eval $ac_compile) 2>&5 7489 ac_status=$? 7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7491 (exit $ac_status); } 2>conftest.err; then 7492 soname=conftest 7493 lib=conftest 7494 libobjs=conftest.$ac_objext 7495 deplibs= 7496 wl=$lt_prog_compiler_wl 7497 compiler_flags=-v 7498 linker_flags=-v 7499 verstring= 7500 output_objdir=. 7501 libname=conftest 7502 lt_save_allow_undefined_flag=$allow_undefined_flag 7503 allow_undefined_flag= 7504 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7505 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7506 ac_status=$? 7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7508 (exit $ac_status); } 7509 then 7510 archive_cmds_need_lc=no 7511 else 7512 archive_cmds_need_lc=yes 7513 fi 7514 allow_undefined_flag=$lt_save_allow_undefined_flag 7515 else 7516 cat conftest.err 1>&5 7517 fi 7518 $rm conftest* 7519 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7520echo "${ECHO_T}$archive_cmds_need_lc" >&6 7521 ;; 7522 esac 7523 fi 7524 ;; 7525esac 7526 7527echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7528echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7529library_names_spec= 7530libname_spec='lib$name' 7531soname_spec= 7532shrext_cmds=".so" 7533postinstall_cmds= 7534postuninstall_cmds= 7535finish_cmds= 7536finish_eval= 7537shlibpath_var= 7538shlibpath_overrides_runpath=unknown 7539version_type=none 7540dynamic_linker="$host_os ld.so" 7541sys_lib_dlsearch_path_spec="/lib /usr/lib" 7542if test "$GCC" = yes; then 7543 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7544 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7545 # if the path contains ";" then we assume it to be the separator 7546 # otherwise default to the standard path separator (i.e. ":") - it is 7547 # assumed that no part of a normal pathname contains ";" but that should 7548 # okay in the real world where ";" in dirpaths is itself problematic. 7549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7550 else 7551 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7552 fi 7553else 7554 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7555fi 7556need_lib_prefix=unknown 7557hardcode_into_libs=no 7558 7559# when you set need_version to no, make sure it does not cause -set_version 7560# flags to be left without arguments 7561need_version=unknown 7562 7563case $host_os in 7564aix3*) 7565 version_type=linux 7566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7567 shlibpath_var=LIBPATH 7568 7569 # AIX 3 has no versioning support, so we append a major version to the name. 7570 soname_spec='${libname}${release}${shared_ext}$major' 7571 ;; 7572 7573aix4* | aix5*) 7574 version_type=linux 7575 need_lib_prefix=no 7576 need_version=no 7577 hardcode_into_libs=yes 7578 if test "$host_cpu" = ia64; then 7579 # AIX 5 supports IA64 7580 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7581 shlibpath_var=LD_LIBRARY_PATH 7582 else 7583 # With GCC up to 2.95.x, collect2 would create an import file 7584 # for dependence libraries. The import file would start with 7585 # the line `#! .'. This would cause the generated library to 7586 # depend on `.', always an invalid library. This was fixed in 7587 # development snapshots of GCC prior to 3.0. 7588 case $host_os in 7589 aix4 | aix4.[01] | aix4.[01].*) 7590 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7591 echo ' yes ' 7592 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7593 : 7594 else 7595 can_build_shared=no 7596 fi 7597 ;; 7598 esac 7599 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7600 # soname into executable. Probably we can add versioning support to 7601 # collect2, so additional links can be useful in future. 7602 if test "$aix_use_runtimelinking" = yes; then 7603 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7604 # instead of lib<name>.a to let people know that these are not 7605 # typical AIX shared libraries. 7606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7607 else 7608 # We preserve .a as extension for shared libraries through AIX4.2 7609 # and later when we are not doing run time linking. 7610 library_names_spec='${libname}${release}.a $libname.a' 7611 soname_spec='${libname}${release}${shared_ext}$major' 7612 fi 7613 shlibpath_var=LIBPATH 7614 fi 7615 ;; 7616 7617amigaos*) 7618 library_names_spec='$libname.ixlibrary $libname.a' 7619 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7620 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' 7621 ;; 7622 7623beos*) 7624 library_names_spec='${libname}${shared_ext}' 7625 dynamic_linker="$host_os ld.so" 7626 shlibpath_var=LIBRARY_PATH 7627 ;; 7628 7629bsdi4*) 7630 version_type=linux 7631 need_version=no 7632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7633 soname_spec='${libname}${release}${shared_ext}$major' 7634 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7635 shlibpath_var=LD_LIBRARY_PATH 7636 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7637 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7638 # the default ld.so.conf also contains /usr/contrib/lib and 7639 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7640 # libtool to hard-code these into programs 7641 ;; 7642 7643cygwin* | mingw* | pw32*) 7644 version_type=windows 7645 shrext_cmds=".dll" 7646 need_version=no 7647 need_lib_prefix=no 7648 7649 case $GCC,$host_os in 7650 yes,cygwin* | yes,mingw* | yes,pw32*) 7651 library_names_spec='$libname.dll.a' 7652 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7653 postinstall_cmds='base_file=`basename \${file}`~ 7654 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7655 dldir=$destdir/`dirname \$dlpath`~ 7656 test -d \$dldir || mkdir -p \$dldir~ 7657 $install_prog $dir/$dlname \$dldir/$dlname' 7658 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7659 dlpath=$dir/\$dldll~ 7660 $rm \$dlpath' 7661 shlibpath_overrides_runpath=yes 7662 7663 case $host_os in 7664 cygwin*) 7665 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7666 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7667 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7668 ;; 7669 mingw*) 7670 # MinGW DLLs use traditional 'lib' prefix 7671 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7672 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7673 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7674 # It is most probably a Windows format PATH printed by 7675 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7676 # path with ; separators, and with drive letters. We can handle the 7677 # drive letters (cygwin fileutils understands them), so leave them, 7678 # especially as we might pass files found there to a mingw objdump, 7679 # which wouldn't understand a cygwinified path. Ahh. 7680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7681 else 7682 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7683 fi 7684 ;; 7685 pw32*) 7686 # pw32 DLLs use 'pw' prefix rather than 'lib' 7687 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7688 ;; 7689 esac 7690 ;; 7691 7692 *) 7693 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7694 ;; 7695 esac 7696 dynamic_linker='Win32 ld.exe' 7697 # FIXME: first we should search . and the directory the executable is in 7698 shlibpath_var=PATH 7699 ;; 7700 7701darwin* | rhapsody*) 7702 dynamic_linker="$host_os dyld" 7703 version_type=darwin 7704 need_lib_prefix=no 7705 need_version=no 7706 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7707 soname_spec='${libname}${release}${major}$shared_ext' 7708 shlibpath_overrides_runpath=yes 7709 shlibpath_var=DYLD_LIBRARY_PATH 7710 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7711 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7712 if test "$GCC" = yes; then 7713 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"` 7714 else 7715 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7716 fi 7717 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7718 ;; 7719 7720dgux*) 7721 version_type=linux 7722 need_lib_prefix=no 7723 need_version=no 7724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7725 soname_spec='${libname}${release}${shared_ext}$major' 7726 shlibpath_var=LD_LIBRARY_PATH 7727 ;; 7728 7729freebsd1*) 7730 dynamic_linker=no 7731 ;; 7732 7733kfreebsd*-gnu) 7734 version_type=linux 7735 need_lib_prefix=no 7736 need_version=no 7737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7738 soname_spec='${libname}${release}${shared_ext}$major' 7739 shlibpath_var=LD_LIBRARY_PATH 7740 shlibpath_overrides_runpath=no 7741 hardcode_into_libs=yes 7742 dynamic_linker='GNU ld.so' 7743 ;; 7744 7745freebsd*) 7746 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7747 version_type=freebsd-$objformat 7748 case $version_type in 7749 freebsd-elf*) 7750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7751 need_version=no 7752 need_lib_prefix=no 7753 ;; 7754 freebsd-*) 7755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7756 need_version=yes 7757 ;; 7758 esac 7759 shlibpath_var=LD_LIBRARY_PATH 7760 case $host_os in 7761 freebsd2*) 7762 shlibpath_overrides_runpath=yes 7763 ;; 7764 freebsd3.01* | freebsdelf3.01*) 7765 shlibpath_overrides_runpath=yes 7766 hardcode_into_libs=yes 7767 ;; 7768 *) # from 3.2 on 7769 shlibpath_overrides_runpath=no 7770 hardcode_into_libs=yes 7771 ;; 7772 esac 7773 ;; 7774 7775gnu*) 7776 version_type=linux 7777 need_lib_prefix=no 7778 need_version=no 7779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7780 soname_spec='${libname}${release}${shared_ext}$major' 7781 shlibpath_var=LD_LIBRARY_PATH 7782 hardcode_into_libs=yes 7783 ;; 7784 7785hpux9* | hpux10* | hpux11*) 7786 # Give a soname corresponding to the major version so that dld.sl refuses to 7787 # link against other versions. 7788 version_type=sunos 7789 need_lib_prefix=no 7790 need_version=no 7791 case "$host_cpu" in 7792 ia64*) 7793 shrext_cmds='.so' 7794 hardcode_into_libs=yes 7795 dynamic_linker="$host_os dld.so" 7796 shlibpath_var=LD_LIBRARY_PATH 7797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7799 soname_spec='${libname}${release}${shared_ext}$major' 7800 if test "X$HPUX_IA64_MODE" = X32; then 7801 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7802 else 7803 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7804 fi 7805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7806 ;; 7807 hppa*64*) 7808 shrext_cmds='.sl' 7809 hardcode_into_libs=yes 7810 dynamic_linker="$host_os dld.sl" 7811 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7814 soname_spec='${libname}${release}${shared_ext}$major' 7815 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7817 ;; 7818 *) 7819 shrext_cmds='.sl' 7820 dynamic_linker="$host_os dld.sl" 7821 shlibpath_var=SHLIB_PATH 7822 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7824 soname_spec='${libname}${release}${shared_ext}$major' 7825 ;; 7826 esac 7827 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7828 postinstall_cmds='chmod 555 $lib' 7829 ;; 7830 7831irix5* | irix6* | nonstopux*) 7832 case $host_os in 7833 nonstopux*) version_type=nonstopux ;; 7834 *) 7835 if test "$lt_cv_prog_gnu_ld" = yes; then 7836 version_type=linux 7837 else 7838 version_type=irix 7839 fi ;; 7840 esac 7841 need_lib_prefix=no 7842 need_version=no 7843 soname_spec='${libname}${release}${shared_ext}$major' 7844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7845 case $host_os in 7846 irix5* | nonstopux*) 7847 libsuff= shlibsuff= 7848 ;; 7849 *) 7850 case $LD in # libtool.m4 will add one of these switches to LD 7851 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7852 libsuff= shlibsuff= libmagic=32-bit;; 7853 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7854 libsuff=32 shlibsuff=N32 libmagic=N32;; 7855 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7856 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7857 *) libsuff= shlibsuff= libmagic=never-match;; 7858 esac 7859 ;; 7860 esac 7861 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7862 shlibpath_overrides_runpath=no 7863 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7864 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7865 hardcode_into_libs=yes 7866 ;; 7867 7868# No shared lib support for Linux oldld, aout, or coff. 7869linux*oldld* | linux*aout* | linux*coff*) 7870 dynamic_linker=no 7871 ;; 7872 7873# This must be Linux ELF. 7874linux*) 7875 version_type=linux 7876 need_lib_prefix=no 7877 need_version=no 7878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7879 soname_spec='${libname}${release}${shared_ext}$major' 7880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7881 shlibpath_var=LD_LIBRARY_PATH 7882 shlibpath_overrides_runpath=no 7883 # This implies no fast_install, which is unacceptable. 7884 # Some rework will be needed to allow for fast_install 7885 # before this can be enabled. 7886 hardcode_into_libs=yes 7887 7888 # find out which ABI we are using 7889 libsuff= 7890 case "$host_cpu" in 7891 x86_64*|s390x*|powerpc64*) 7892 echo '#line 7892 "configure"' > conftest.$ac_ext 7893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7894 (eval $ac_compile) 2>&5 7895 ac_status=$? 7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7897 (exit $ac_status); }; then 7898 case `/usr/bin/file conftest.$ac_objext` in 7899 *64-bit*) 7900 libsuff=64 7901 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 7902 ;; 7903 esac 7904 fi 7905 rm -rf conftest* 7906 ;; 7907 esac 7908 7909 # Append ld.so.conf contents to the search path 7910 if test -f /etc/ld.so.conf; then 7911 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 7912 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 7913 fi 7914 7915 # We used to test for /lib/ld.so.1 and disable shared libraries on 7916 # powerpc, because MkLinux only supported shared libraries with the 7917 # GNU dynamic linker. Since this was broken with cross compilers, 7918 # most powerpc-linux boxes support dynamic linking these days and 7919 # people can always --disable-shared, the test was removed, and we 7920 # assume the GNU/Linux dynamic linker is in use. 7921 dynamic_linker='GNU/Linux ld.so' 7922 ;; 7923 7924knetbsd*-gnu) 7925 version_type=linux 7926 need_lib_prefix=no 7927 need_version=no 7928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7929 soname_spec='${libname}${release}${shared_ext}$major' 7930 shlibpath_var=LD_LIBRARY_PATH 7931 shlibpath_overrides_runpath=no 7932 hardcode_into_libs=yes 7933 dynamic_linker='GNU ld.so' 7934 ;; 7935 7936netbsd*) 7937 version_type=sunos 7938 need_lib_prefix=no 7939 need_version=no 7940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7943 dynamic_linker='NetBSD (a.out) ld.so' 7944 else 7945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7946 soname_spec='${libname}${release}${shared_ext}$major' 7947 dynamic_linker='NetBSD ld.elf_so' 7948 fi 7949 shlibpath_var=LD_LIBRARY_PATH 7950 shlibpath_overrides_runpath=yes 7951 hardcode_into_libs=yes 7952 ;; 7953 7954newsos6) 7955 version_type=linux 7956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7957 shlibpath_var=LD_LIBRARY_PATH 7958 shlibpath_overrides_runpath=yes 7959 ;; 7960 7961nto-qnx*) 7962 version_type=linux 7963 need_lib_prefix=no 7964 need_version=no 7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7966 soname_spec='${libname}${release}${shared_ext}$major' 7967 shlibpath_var=LD_LIBRARY_PATH 7968 shlibpath_overrides_runpath=yes 7969 ;; 7970 7971openbsd*) 7972 version_type=sunos 7973 need_lib_prefix=no 7974 need_version=yes 7975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7977 shlibpath_var=LD_LIBRARY_PATH 7978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7979 case $host_os in 7980 openbsd2.[89] | openbsd2.[89].*) 7981 shlibpath_overrides_runpath=no 7982 ;; 7983 *) 7984 shlibpath_overrides_runpath=yes 7985 ;; 7986 esac 7987 else 7988 shlibpath_overrides_runpath=yes 7989 fi 7990 ;; 7991 7992os2*) 7993 libname_spec='$name' 7994 shrext_cmds=".dll" 7995 need_lib_prefix=no 7996 library_names_spec='$libname${shared_ext} $libname.a' 7997 dynamic_linker='OS/2 ld.exe' 7998 shlibpath_var=LIBPATH 7999 ;; 8000 8001osf3* | osf4* | osf5*) 8002 version_type=osf 8003 need_lib_prefix=no 8004 need_version=no 8005 soname_spec='${libname}${release}${shared_ext}$major' 8006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8007 shlibpath_var=LD_LIBRARY_PATH 8008 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8009 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8010 ;; 8011 8012sco3.2v5*) 8013 version_type=osf 8014 soname_spec='${libname}${release}${shared_ext}$major' 8015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8016 shlibpath_var=LD_LIBRARY_PATH 8017 ;; 8018 8019solaris*) 8020 version_type=linux 8021 need_lib_prefix=no 8022 need_version=no 8023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8024 soname_spec='${libname}${release}${shared_ext}$major' 8025 shlibpath_var=LD_LIBRARY_PATH 8026 shlibpath_overrides_runpath=yes 8027 hardcode_into_libs=yes 8028 # ldd complains unless libraries are executable 8029 postinstall_cmds='chmod +x $lib' 8030 ;; 8031 8032sunos4*) 8033 version_type=sunos 8034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8036 shlibpath_var=LD_LIBRARY_PATH 8037 shlibpath_overrides_runpath=yes 8038 if test "$with_gnu_ld" = yes; then 8039 need_lib_prefix=no 8040 fi 8041 need_version=yes 8042 ;; 8043 8044sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8045 version_type=linux 8046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8047 soname_spec='${libname}${release}${shared_ext}$major' 8048 shlibpath_var=LD_LIBRARY_PATH 8049 case $host_vendor in 8050 sni) 8051 shlibpath_overrides_runpath=no 8052 need_lib_prefix=no 8053 export_dynamic_flag_spec='${wl}-Blargedynsym' 8054 runpath_var=LD_RUN_PATH 8055 ;; 8056 siemens) 8057 need_lib_prefix=no 8058 ;; 8059 motorola) 8060 need_lib_prefix=no 8061 need_version=no 8062 shlibpath_overrides_runpath=no 8063 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8064 ;; 8065 esac 8066 ;; 8067 8068sysv4*MP*) 8069 if test -d /usr/nec ;then 8070 version_type=linux 8071 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8072 soname_spec='$libname${shared_ext}.$major' 8073 shlibpath_var=LD_LIBRARY_PATH 8074 fi 8075 ;; 8076 8077uts4*) 8078 version_type=linux 8079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8080 soname_spec='${libname}${release}${shared_ext}$major' 8081 shlibpath_var=LD_LIBRARY_PATH 8082 ;; 8083 8084*) 8085 dynamic_linker=no 8086 ;; 8087esac 8088echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8089echo "${ECHO_T}$dynamic_linker" >&6 8090test "$dynamic_linker" = no && can_build_shared=no 8091 8092echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8093echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8094hardcode_action= 8095if test -n "$hardcode_libdir_flag_spec" || \ 8096 test -n "$runpath_var " || \ 8097 test "X$hardcode_automatic"="Xyes" ; then 8098 8099 # We can hardcode non-existant directories. 8100 if test "$hardcode_direct" != no && 8101 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8102 # have to relink, otherwise we might link with an installed library 8103 # when we should be linking with a yet-to-be-installed one 8104 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8105 test "$hardcode_minus_L" != no; then 8106 # Linking always hardcodes the temporary library directory. 8107 hardcode_action=relink 8108 else 8109 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8110 hardcode_action=immediate 8111 fi 8112else 8113 # We cannot hardcode anything, or else we can only hardcode existing 8114 # directories. 8115 hardcode_action=unsupported 8116fi 8117echo "$as_me:$LINENO: result: $hardcode_action" >&5 8118echo "${ECHO_T}$hardcode_action" >&6 8119 8120if test "$hardcode_action" = relink; then 8121 # Fast installation is not supported 8122 enable_fast_install=no 8123elif test "$shlibpath_overrides_runpath" = yes || 8124 test "$enable_shared" = no; then 8125 # Fast installation is not necessary 8126 enable_fast_install=needless 8127fi 8128 8129striplib= 8130old_striplib= 8131echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8132echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8133if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8135 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8136 echo "$as_me:$LINENO: result: yes" >&5 8137echo "${ECHO_T}yes" >&6 8138else 8139# FIXME - insert some real tests, host_os isn't really good enough 8140 case $host_os in 8141 darwin*) 8142 if test -n "$STRIP" ; then 8143 striplib="$STRIP -x" 8144 echo "$as_me:$LINENO: result: yes" >&5 8145echo "${ECHO_T}yes" >&6 8146 else 8147 echo "$as_me:$LINENO: result: no" >&5 8148echo "${ECHO_T}no" >&6 8149fi 8150 ;; 8151 *) 8152 echo "$as_me:$LINENO: result: no" >&5 8153echo "${ECHO_T}no" >&6 8154 ;; 8155 esac 8156fi 8157 8158if test "x$enable_dlopen" != xyes; then 8159 enable_dlopen=unknown 8160 enable_dlopen_self=unknown 8161 enable_dlopen_self_static=unknown 8162else 8163 lt_cv_dlopen=no 8164 lt_cv_dlopen_libs= 8165 8166 case $host_os in 8167 beos*) 8168 lt_cv_dlopen="load_add_on" 8169 lt_cv_dlopen_libs= 8170 lt_cv_dlopen_self=yes 8171 ;; 8172 8173 mingw* | pw32*) 8174 lt_cv_dlopen="LoadLibrary" 8175 lt_cv_dlopen_libs= 8176 ;; 8177 8178 cygwin*) 8179 lt_cv_dlopen="dlopen" 8180 lt_cv_dlopen_libs= 8181 ;; 8182 8183 darwin*) 8184 # if libdl is installed we need to link against it 8185 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8186echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8187if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8188 echo $ECHO_N "(cached) $ECHO_C" >&6 8189else 8190 ac_check_lib_save_LIBS=$LIBS 8191LIBS="-ldl $LIBS" 8192cat >conftest.$ac_ext <<_ACEOF 8193/* confdefs.h. */ 8194_ACEOF 8195cat confdefs.h >>conftest.$ac_ext 8196cat >>conftest.$ac_ext <<_ACEOF 8197/* end confdefs.h. */ 8198 8199/* Override any gcc2 internal prototype to avoid an error. */ 8200#ifdef __cplusplus 8201extern "C" 8202#endif 8203/* We use char because int might match the return type of a gcc2 8204 builtin and then its argument prototype would still apply. */ 8205char dlopen (); 8206int 8207main () 8208{ 8209dlopen (); 8210 ; 8211 return 0; 8212} 8213_ACEOF 8214rm -f conftest.$ac_objext conftest$ac_exeext 8215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8216 (eval $ac_link) 2>conftest.er1 8217 ac_status=$? 8218 grep -v '^ *+' conftest.er1 >conftest.err 8219 rm -f conftest.er1 8220 cat conftest.err >&5 8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8222 (exit $ac_status); } && 8223 { ac_try='test -z "$ac_c_werror_flag" 8224 || test ! -s conftest.err' 8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8226 (eval $ac_try) 2>&5 8227 ac_status=$? 8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8229 (exit $ac_status); }; } && 8230 { ac_try='test -s conftest$ac_exeext' 8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8232 (eval $ac_try) 2>&5 8233 ac_status=$? 8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8235 (exit $ac_status); }; }; then 8236 ac_cv_lib_dl_dlopen=yes 8237else 8238 echo "$as_me: failed program was:" >&5 8239sed 's/^/| /' conftest.$ac_ext >&5 8240 8241ac_cv_lib_dl_dlopen=no 8242fi 8243rm -f conftest.err conftest.$ac_objext \ 8244 conftest$ac_exeext conftest.$ac_ext 8245LIBS=$ac_check_lib_save_LIBS 8246fi 8247echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8248echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8249if test $ac_cv_lib_dl_dlopen = yes; then 8250 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8251else 8252 8253 lt_cv_dlopen="dyld" 8254 lt_cv_dlopen_libs= 8255 lt_cv_dlopen_self=yes 8256 8257fi 8258 8259 ;; 8260 8261 *) 8262 echo "$as_me:$LINENO: checking for shl_load" >&5 8263echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8264if test "${ac_cv_func_shl_load+set}" = set; then 8265 echo $ECHO_N "(cached) $ECHO_C" >&6 8266else 8267 cat >conftest.$ac_ext <<_ACEOF 8268/* confdefs.h. */ 8269_ACEOF 8270cat confdefs.h >>conftest.$ac_ext 8271cat >>conftest.$ac_ext <<_ACEOF 8272/* end confdefs.h. */ 8273/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8274 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8275#define shl_load innocuous_shl_load 8276 8277/* System header to define __stub macros and hopefully few prototypes, 8278 which can conflict with char shl_load (); below. 8279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8280 <limits.h> exists even on freestanding compilers. */ 8281 8282#ifdef __STDC__ 8283# include <limits.h> 8284#else 8285# include <assert.h> 8286#endif 8287 8288#undef shl_load 8289 8290/* Override any gcc2 internal prototype to avoid an error. */ 8291#ifdef __cplusplus 8292extern "C" 8293{ 8294#endif 8295/* We use char because int might match the return type of a gcc2 8296 builtin and then its argument prototype would still apply. */ 8297char shl_load (); 8298/* The GNU C library defines this for functions which it implements 8299 to always fail with ENOSYS. Some functions are actually named 8300 something starting with __ and the normal name is an alias. */ 8301#if defined (__stub_shl_load) || defined (__stub___shl_load) 8302choke me 8303#else 8304char (*f) () = shl_load; 8305#endif 8306#ifdef __cplusplus 8307} 8308#endif 8309 8310int 8311main () 8312{ 8313return f != shl_load; 8314 ; 8315 return 0; 8316} 8317_ACEOF 8318rm -f conftest.$ac_objext conftest$ac_exeext 8319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8320 (eval $ac_link) 2>conftest.er1 8321 ac_status=$? 8322 grep -v '^ *+' conftest.er1 >conftest.err 8323 rm -f conftest.er1 8324 cat conftest.err >&5 8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8326 (exit $ac_status); } && 8327 { ac_try='test -z "$ac_c_werror_flag" 8328 || test ! -s conftest.err' 8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8330 (eval $ac_try) 2>&5 8331 ac_status=$? 8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8333 (exit $ac_status); }; } && 8334 { ac_try='test -s conftest$ac_exeext' 8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8336 (eval $ac_try) 2>&5 8337 ac_status=$? 8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8339 (exit $ac_status); }; }; then 8340 ac_cv_func_shl_load=yes 8341else 8342 echo "$as_me: failed program was:" >&5 8343sed 's/^/| /' conftest.$ac_ext >&5 8344 8345ac_cv_func_shl_load=no 8346fi 8347rm -f conftest.err conftest.$ac_objext \ 8348 conftest$ac_exeext conftest.$ac_ext 8349fi 8350echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8351echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8352if test $ac_cv_func_shl_load = yes; then 8353 lt_cv_dlopen="shl_load" 8354else 8355 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8356echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8357if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8358 echo $ECHO_N "(cached) $ECHO_C" >&6 8359else 8360 ac_check_lib_save_LIBS=$LIBS 8361LIBS="-ldld $LIBS" 8362cat >conftest.$ac_ext <<_ACEOF 8363/* confdefs.h. */ 8364_ACEOF 8365cat confdefs.h >>conftest.$ac_ext 8366cat >>conftest.$ac_ext <<_ACEOF 8367/* end confdefs.h. */ 8368 8369/* Override any gcc2 internal prototype to avoid an error. */ 8370#ifdef __cplusplus 8371extern "C" 8372#endif 8373/* We use char because int might match the return type of a gcc2 8374 builtin and then its argument prototype would still apply. */ 8375char shl_load (); 8376int 8377main () 8378{ 8379shl_load (); 8380 ; 8381 return 0; 8382} 8383_ACEOF 8384rm -f conftest.$ac_objext conftest$ac_exeext 8385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8386 (eval $ac_link) 2>conftest.er1 8387 ac_status=$? 8388 grep -v '^ *+' conftest.er1 >conftest.err 8389 rm -f conftest.er1 8390 cat conftest.err >&5 8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8392 (exit $ac_status); } && 8393 { ac_try='test -z "$ac_c_werror_flag" 8394 || test ! -s conftest.err' 8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8396 (eval $ac_try) 2>&5 8397 ac_status=$? 8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8399 (exit $ac_status); }; } && 8400 { ac_try='test -s conftest$ac_exeext' 8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8402 (eval $ac_try) 2>&5 8403 ac_status=$? 8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8405 (exit $ac_status); }; }; then 8406 ac_cv_lib_dld_shl_load=yes 8407else 8408 echo "$as_me: failed program was:" >&5 8409sed 's/^/| /' conftest.$ac_ext >&5 8410 8411ac_cv_lib_dld_shl_load=no 8412fi 8413rm -f conftest.err conftest.$ac_objext \ 8414 conftest$ac_exeext conftest.$ac_ext 8415LIBS=$ac_check_lib_save_LIBS 8416fi 8417echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8418echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8419if test $ac_cv_lib_dld_shl_load = yes; then 8420 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8421else 8422 echo "$as_me:$LINENO: checking for dlopen" >&5 8423echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8424if test "${ac_cv_func_dlopen+set}" = set; then 8425 echo $ECHO_N "(cached) $ECHO_C" >&6 8426else 8427 cat >conftest.$ac_ext <<_ACEOF 8428/* confdefs.h. */ 8429_ACEOF 8430cat confdefs.h >>conftest.$ac_ext 8431cat >>conftest.$ac_ext <<_ACEOF 8432/* end confdefs.h. */ 8433/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8434 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8435#define dlopen innocuous_dlopen 8436 8437/* System header to define __stub macros and hopefully few prototypes, 8438 which can conflict with char dlopen (); below. 8439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8440 <limits.h> exists even on freestanding compilers. */ 8441 8442#ifdef __STDC__ 8443# include <limits.h> 8444#else 8445# include <assert.h> 8446#endif 8447 8448#undef dlopen 8449 8450/* Override any gcc2 internal prototype to avoid an error. */ 8451#ifdef __cplusplus 8452extern "C" 8453{ 8454#endif 8455/* We use char because int might match the return type of a gcc2 8456 builtin and then its argument prototype would still apply. */ 8457char dlopen (); 8458/* The GNU C library defines this for functions which it implements 8459 to always fail with ENOSYS. Some functions are actually named 8460 something starting with __ and the normal name is an alias. */ 8461#if defined (__stub_dlopen) || defined (__stub___dlopen) 8462choke me 8463#else 8464char (*f) () = dlopen; 8465#endif 8466#ifdef __cplusplus 8467} 8468#endif 8469 8470int 8471main () 8472{ 8473return f != dlopen; 8474 ; 8475 return 0; 8476} 8477_ACEOF 8478rm -f conftest.$ac_objext conftest$ac_exeext 8479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8480 (eval $ac_link) 2>conftest.er1 8481 ac_status=$? 8482 grep -v '^ *+' conftest.er1 >conftest.err 8483 rm -f conftest.er1 8484 cat conftest.err >&5 8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8486 (exit $ac_status); } && 8487 { ac_try='test -z "$ac_c_werror_flag" 8488 || test ! -s conftest.err' 8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8490 (eval $ac_try) 2>&5 8491 ac_status=$? 8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8493 (exit $ac_status); }; } && 8494 { ac_try='test -s conftest$ac_exeext' 8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8496 (eval $ac_try) 2>&5 8497 ac_status=$? 8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8499 (exit $ac_status); }; }; then 8500 ac_cv_func_dlopen=yes 8501else 8502 echo "$as_me: failed program was:" >&5 8503sed 's/^/| /' conftest.$ac_ext >&5 8504 8505ac_cv_func_dlopen=no 8506fi 8507rm -f conftest.err conftest.$ac_objext \ 8508 conftest$ac_exeext conftest.$ac_ext 8509fi 8510echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8511echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8512if test $ac_cv_func_dlopen = yes; then 8513 lt_cv_dlopen="dlopen" 8514else 8515 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8516echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8517if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8518 echo $ECHO_N "(cached) $ECHO_C" >&6 8519else 8520 ac_check_lib_save_LIBS=$LIBS 8521LIBS="-ldl $LIBS" 8522cat >conftest.$ac_ext <<_ACEOF 8523/* confdefs.h. */ 8524_ACEOF 8525cat confdefs.h >>conftest.$ac_ext 8526cat >>conftest.$ac_ext <<_ACEOF 8527/* end confdefs.h. */ 8528 8529/* Override any gcc2 internal prototype to avoid an error. */ 8530#ifdef __cplusplus 8531extern "C" 8532#endif 8533/* We use char because int might match the return type of a gcc2 8534 builtin and then its argument prototype would still apply. */ 8535char dlopen (); 8536int 8537main () 8538{ 8539dlopen (); 8540 ; 8541 return 0; 8542} 8543_ACEOF 8544rm -f conftest.$ac_objext conftest$ac_exeext 8545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8546 (eval $ac_link) 2>conftest.er1 8547 ac_status=$? 8548 grep -v '^ *+' conftest.er1 >conftest.err 8549 rm -f conftest.er1 8550 cat conftest.err >&5 8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8552 (exit $ac_status); } && 8553 { ac_try='test -z "$ac_c_werror_flag" 8554 || test ! -s conftest.err' 8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8556 (eval $ac_try) 2>&5 8557 ac_status=$? 8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8559 (exit $ac_status); }; } && 8560 { ac_try='test -s conftest$ac_exeext' 8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8562 (eval $ac_try) 2>&5 8563 ac_status=$? 8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8565 (exit $ac_status); }; }; then 8566 ac_cv_lib_dl_dlopen=yes 8567else 8568 echo "$as_me: failed program was:" >&5 8569sed 's/^/| /' conftest.$ac_ext >&5 8570 8571ac_cv_lib_dl_dlopen=no 8572fi 8573rm -f conftest.err conftest.$ac_objext \ 8574 conftest$ac_exeext conftest.$ac_ext 8575LIBS=$ac_check_lib_save_LIBS 8576fi 8577echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8578echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8579if test $ac_cv_lib_dl_dlopen = yes; then 8580 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8581else 8582 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8583echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8584if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8585 echo $ECHO_N "(cached) $ECHO_C" >&6 8586else 8587 ac_check_lib_save_LIBS=$LIBS 8588LIBS="-lsvld $LIBS" 8589cat >conftest.$ac_ext <<_ACEOF 8590/* confdefs.h. */ 8591_ACEOF 8592cat confdefs.h >>conftest.$ac_ext 8593cat >>conftest.$ac_ext <<_ACEOF 8594/* end confdefs.h. */ 8595 8596/* Override any gcc2 internal prototype to avoid an error. */ 8597#ifdef __cplusplus 8598extern "C" 8599#endif 8600/* We use char because int might match the return type of a gcc2 8601 builtin and then its argument prototype would still apply. */ 8602char dlopen (); 8603int 8604main () 8605{ 8606dlopen (); 8607 ; 8608 return 0; 8609} 8610_ACEOF 8611rm -f conftest.$ac_objext conftest$ac_exeext 8612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8613 (eval $ac_link) 2>conftest.er1 8614 ac_status=$? 8615 grep -v '^ *+' conftest.er1 >conftest.err 8616 rm -f conftest.er1 8617 cat conftest.err >&5 8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8619 (exit $ac_status); } && 8620 { ac_try='test -z "$ac_c_werror_flag" 8621 || test ! -s conftest.err' 8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8623 (eval $ac_try) 2>&5 8624 ac_status=$? 8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8626 (exit $ac_status); }; } && 8627 { ac_try='test -s conftest$ac_exeext' 8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8629 (eval $ac_try) 2>&5 8630 ac_status=$? 8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8632 (exit $ac_status); }; }; then 8633 ac_cv_lib_svld_dlopen=yes 8634else 8635 echo "$as_me: failed program was:" >&5 8636sed 's/^/| /' conftest.$ac_ext >&5 8637 8638ac_cv_lib_svld_dlopen=no 8639fi 8640rm -f conftest.err conftest.$ac_objext \ 8641 conftest$ac_exeext conftest.$ac_ext 8642LIBS=$ac_check_lib_save_LIBS 8643fi 8644echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8645echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8646if test $ac_cv_lib_svld_dlopen = yes; then 8647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8648else 8649 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8650echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8651if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8652 echo $ECHO_N "(cached) $ECHO_C" >&6 8653else 8654 ac_check_lib_save_LIBS=$LIBS 8655LIBS="-ldld $LIBS" 8656cat >conftest.$ac_ext <<_ACEOF 8657/* confdefs.h. */ 8658_ACEOF 8659cat confdefs.h >>conftest.$ac_ext 8660cat >>conftest.$ac_ext <<_ACEOF 8661/* end confdefs.h. */ 8662 8663/* Override any gcc2 internal prototype to avoid an error. */ 8664#ifdef __cplusplus 8665extern "C" 8666#endif 8667/* We use char because int might match the return type of a gcc2 8668 builtin and then its argument prototype would still apply. */ 8669char dld_link (); 8670int 8671main () 8672{ 8673dld_link (); 8674 ; 8675 return 0; 8676} 8677_ACEOF 8678rm -f conftest.$ac_objext conftest$ac_exeext 8679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8680 (eval $ac_link) 2>conftest.er1 8681 ac_status=$? 8682 grep -v '^ *+' conftest.er1 >conftest.err 8683 rm -f conftest.er1 8684 cat conftest.err >&5 8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8686 (exit $ac_status); } && 8687 { ac_try='test -z "$ac_c_werror_flag" 8688 || test ! -s conftest.err' 8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8690 (eval $ac_try) 2>&5 8691 ac_status=$? 8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8693 (exit $ac_status); }; } && 8694 { ac_try='test -s conftest$ac_exeext' 8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8696 (eval $ac_try) 2>&5 8697 ac_status=$? 8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8699 (exit $ac_status); }; }; then 8700 ac_cv_lib_dld_dld_link=yes 8701else 8702 echo "$as_me: failed program was:" >&5 8703sed 's/^/| /' conftest.$ac_ext >&5 8704 8705ac_cv_lib_dld_dld_link=no 8706fi 8707rm -f conftest.err conftest.$ac_objext \ 8708 conftest$ac_exeext conftest.$ac_ext 8709LIBS=$ac_check_lib_save_LIBS 8710fi 8711echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8712echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8713if test $ac_cv_lib_dld_dld_link = yes; then 8714 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8715fi 8716 8717 8718fi 8719 8720 8721fi 8722 8723 8724fi 8725 8726 8727fi 8728 8729 8730fi 8731 8732 ;; 8733 esac 8734 8735 if test "x$lt_cv_dlopen" != xno; then 8736 enable_dlopen=yes 8737 else 8738 enable_dlopen=no 8739 fi 8740 8741 case $lt_cv_dlopen in 8742 dlopen) 8743 save_CPPFLAGS="$CPPFLAGS" 8744 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8745 8746 save_LDFLAGS="$LDFLAGS" 8747 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8748 8749 save_LIBS="$LIBS" 8750 LIBS="$lt_cv_dlopen_libs $LIBS" 8751 8752 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8753echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8754if test "${lt_cv_dlopen_self+set}" = set; then 8755 echo $ECHO_N "(cached) $ECHO_C" >&6 8756else 8757 if test "$cross_compiling" = yes; then : 8758 lt_cv_dlopen_self=cross 8759else 8760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8761 lt_status=$lt_dlunknown 8762 cat > conftest.$ac_ext <<EOF 8763#line 8763 "configure" 8764#include "confdefs.h" 8765 8766#if HAVE_DLFCN_H 8767#include <dlfcn.h> 8768#endif 8769 8770#include <stdio.h> 8771 8772#ifdef RTLD_GLOBAL 8773# define LT_DLGLOBAL RTLD_GLOBAL 8774#else 8775# ifdef DL_GLOBAL 8776# define LT_DLGLOBAL DL_GLOBAL 8777# else 8778# define LT_DLGLOBAL 0 8779# endif 8780#endif 8781 8782/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8783 find out it does not work in some platform. */ 8784#ifndef LT_DLLAZY_OR_NOW 8785# ifdef RTLD_LAZY 8786# define LT_DLLAZY_OR_NOW RTLD_LAZY 8787# else 8788# ifdef DL_LAZY 8789# define LT_DLLAZY_OR_NOW DL_LAZY 8790# else 8791# ifdef RTLD_NOW 8792# define LT_DLLAZY_OR_NOW RTLD_NOW 8793# else 8794# ifdef DL_NOW 8795# define LT_DLLAZY_OR_NOW DL_NOW 8796# else 8797# define LT_DLLAZY_OR_NOW 0 8798# endif 8799# endif 8800# endif 8801# endif 8802#endif 8803 8804#ifdef __cplusplus 8805extern "C" void exit (int); 8806#endif 8807 8808void fnord() { int i=42;} 8809int main () 8810{ 8811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8812 int status = $lt_dlunknown; 8813 8814 if (self) 8815 { 8816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8817 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8818 /* dlclose (self); */ 8819 } 8820 8821 exit (status); 8822} 8823EOF 8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8825 (eval $ac_link) 2>&5 8826 ac_status=$? 8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8828 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8829 (./conftest; exit; ) 2>/dev/null 8830 lt_status=$? 8831 case x$lt_status in 8832 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8833 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8834 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 8835 esac 8836 else : 8837 # compilation failed 8838 lt_cv_dlopen_self=no 8839 fi 8840fi 8841rm -fr conftest* 8842 8843 8844fi 8845echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8846echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8847 8848 if test "x$lt_cv_dlopen_self" = xyes; then 8849 LDFLAGS="$LDFLAGS $link_static_flag" 8850 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8851echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8852if test "${lt_cv_dlopen_self_static+set}" = set; then 8853 echo $ECHO_N "(cached) $ECHO_C" >&6 8854else 8855 if test "$cross_compiling" = yes; then : 8856 lt_cv_dlopen_self_static=cross 8857else 8858 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8859 lt_status=$lt_dlunknown 8860 cat > conftest.$ac_ext <<EOF 8861#line 8861 "configure" 8862#include "confdefs.h" 8863 8864#if HAVE_DLFCN_H 8865#include <dlfcn.h> 8866#endif 8867 8868#include <stdio.h> 8869 8870#ifdef RTLD_GLOBAL 8871# define LT_DLGLOBAL RTLD_GLOBAL 8872#else 8873# ifdef DL_GLOBAL 8874# define LT_DLGLOBAL DL_GLOBAL 8875# else 8876# define LT_DLGLOBAL 0 8877# endif 8878#endif 8879 8880/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8881 find out it does not work in some platform. */ 8882#ifndef LT_DLLAZY_OR_NOW 8883# ifdef RTLD_LAZY 8884# define LT_DLLAZY_OR_NOW RTLD_LAZY 8885# else 8886# ifdef DL_LAZY 8887# define LT_DLLAZY_OR_NOW DL_LAZY 8888# else 8889# ifdef RTLD_NOW 8890# define LT_DLLAZY_OR_NOW RTLD_NOW 8891# else 8892# ifdef DL_NOW 8893# define LT_DLLAZY_OR_NOW DL_NOW 8894# else 8895# define LT_DLLAZY_OR_NOW 0 8896# endif 8897# endif 8898# endif 8899# endif 8900#endif 8901 8902#ifdef __cplusplus 8903extern "C" void exit (int); 8904#endif 8905 8906void fnord() { int i=42;} 8907int main () 8908{ 8909 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8910 int status = $lt_dlunknown; 8911 8912 if (self) 8913 { 8914 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8915 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8916 /* dlclose (self); */ 8917 } 8918 8919 exit (status); 8920} 8921EOF 8922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8923 (eval $ac_link) 2>&5 8924 ac_status=$? 8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8926 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8927 (./conftest; exit; ) 2>/dev/null 8928 lt_status=$? 8929 case x$lt_status in 8930 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8931 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8932 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 8933 esac 8934 else : 8935 # compilation failed 8936 lt_cv_dlopen_self_static=no 8937 fi 8938fi 8939rm -fr conftest* 8940 8941 8942fi 8943echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8944echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 8945 fi 8946 8947 CPPFLAGS="$save_CPPFLAGS" 8948 LDFLAGS="$save_LDFLAGS" 8949 LIBS="$save_LIBS" 8950 ;; 8951 esac 8952 8953 case $lt_cv_dlopen_self in 8954 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8955 *) enable_dlopen_self=unknown ;; 8956 esac 8957 8958 case $lt_cv_dlopen_self_static in 8959 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8960 *) enable_dlopen_self_static=unknown ;; 8961 esac 8962fi 8963 8964 8965# Report which librarie types wil actually be built 8966echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8967echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8968echo "$as_me:$LINENO: result: $can_build_shared" >&5 8969echo "${ECHO_T}$can_build_shared" >&6 8970 8971echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8972echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8973test "$can_build_shared" = "no" && enable_shared=no 8974 8975# On AIX, shared libraries and static libraries use the same namespace, and 8976# are all built from PIC. 8977case "$host_os" in 8978aix3*) 8979 test "$enable_shared" = yes && enable_static=no 8980 if test -n "$RANLIB"; then 8981 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8982 postinstall_cmds='$RANLIB $lib' 8983 fi 8984 ;; 8985 8986aix4* | aix5*) 8987 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8988 test "$enable_shared" = yes && enable_static=no 8989 fi 8990 ;; 8991 darwin* | rhapsody*) 8992 if test "$GCC" = yes; then 8993 archive_cmds_need_lc=no 8994 case "$host_os" in 8995 rhapsody* | darwin1.[012]) 8996 allow_undefined_flag='-undefined suppress' 8997 ;; 8998 *) # Darwin 1.3 on 8999 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9000 allow_undefined_flag='-flat_namespace -undefined suppress' 9001 else 9002 case ${MACOSX_DEPLOYMENT_TARGET} in 9003 10.[012]) 9004 allow_undefined_flag='-flat_namespace -undefined suppress' 9005 ;; 9006 10.*) 9007 allow_undefined_flag='-undefined dynamic_lookup' 9008 ;; 9009 esac 9010 fi 9011 ;; 9012 esac 9013 output_verbose_link_cmd='echo' 9014 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 9015 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9016 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9017 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}' 9018 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}' 9019 hardcode_direct=no 9020 hardcode_automatic=yes 9021 hardcode_shlibpath_var=unsupported 9022 whole_archive_flag_spec='-all_load $convenience' 9023 link_all_deplibs=yes 9024 else 9025 ld_shlibs=no 9026 fi 9027 ;; 9028esac 9029echo "$as_me:$LINENO: result: $enable_shared" >&5 9030echo "${ECHO_T}$enable_shared" >&6 9031 9032echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9033echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9034# Make sure either enable_shared or enable_static is yes. 9035test "$enable_shared" = yes || enable_static=yes 9036echo "$as_me:$LINENO: result: $enable_static" >&5 9037echo "${ECHO_T}$enable_static" >&6 9038 9039# The else clause should only fire when bootstrapping the 9040# libtool distribution, otherwise you forgot to ship ltmain.sh 9041# with your package, and you will get complaints that there are 9042# no rules to generate ltmain.sh. 9043if test -f "$ltmain"; then 9044 # See if we are running on zsh, and set the options which allow our commands through 9045 # without removal of \ escapes. 9046 if test -n "${ZSH_VERSION+set}" ; then 9047 setopt NO_GLOB_SUBST 9048 fi 9049 # Now quote all the things that may contain metacharacters while being 9050 # careful not to overquote the AC_SUBSTed values. We take copies of the 9051 # variables and quote the copies for generation of the libtool script. 9052 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9053 SED SHELL STRIP \ 9054 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9055 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9056 deplibs_check_method reload_flag reload_cmds need_locks \ 9057 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9058 lt_cv_sys_global_symbol_to_c_name_address \ 9059 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9060 old_postinstall_cmds old_postuninstall_cmds \ 9061 compiler \ 9062 CC \ 9063 LD \ 9064 lt_prog_compiler_wl \ 9065 lt_prog_compiler_pic \ 9066 lt_prog_compiler_static \ 9067 lt_prog_compiler_no_builtin_flag \ 9068 export_dynamic_flag_spec \ 9069 thread_safe_flag_spec \ 9070 whole_archive_flag_spec \ 9071 enable_shared_with_static_runtimes \ 9072 old_archive_cmds \ 9073 old_archive_from_new_cmds \ 9074 predep_objects \ 9075 postdep_objects \ 9076 predeps \ 9077 postdeps \ 9078 compiler_lib_search_path \ 9079 archive_cmds \ 9080 archive_expsym_cmds \ 9081 postinstall_cmds \ 9082 postuninstall_cmds \ 9083 old_archive_from_expsyms_cmds \ 9084 allow_undefined_flag \ 9085 no_undefined_flag \ 9086 export_symbols_cmds \ 9087 hardcode_libdir_flag_spec \ 9088 hardcode_libdir_flag_spec_ld \ 9089 hardcode_libdir_separator \ 9090 hardcode_automatic \ 9091 module_cmds \ 9092 module_expsym_cmds \ 9093 lt_cv_prog_compiler_c_o \ 9094 exclude_expsyms \ 9095 include_expsyms; do 9096 9097 case $var in 9098 old_archive_cmds | \ 9099 old_archive_from_new_cmds | \ 9100 archive_cmds | \ 9101 archive_expsym_cmds | \ 9102 module_cmds | \ 9103 module_expsym_cmds | \ 9104 old_archive_from_expsyms_cmds | \ 9105 export_symbols_cmds | \ 9106 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9107 postinstall_cmds | postuninstall_cmds | \ 9108 old_postinstall_cmds | old_postuninstall_cmds | \ 9109 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9110 # Double-quote double-evaled strings. 9111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9112 ;; 9113 *) 9114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9115 ;; 9116 esac 9117 done 9118 9119 case $lt_echo in 9120 *'\$0 --fallback-echo"') 9121 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9122 ;; 9123 esac 9124 9125cfgfile="${ofile}T" 9126 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9127 $rm -f "$cfgfile" 9128 { echo "$as_me:$LINENO: creating $ofile" >&5 9129echo "$as_me: creating $ofile" >&6;} 9130 9131 cat <<__EOF__ >> "$cfgfile" 9132#! $SHELL 9133 9134# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9135# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9136# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9137# 9138# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9139# Free Software Foundation, Inc. 9140# 9141# This file is part of GNU Libtool: 9142# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9143# 9144# This program is free software; you can redistribute it and/or modify 9145# it under the terms of the GNU General Public License as published by 9146# the Free Software Foundation; either version 2 of the License, or 9147# (at your option) any later version. 9148# 9149# This program is distributed in the hope that it will be useful, but 9150# WITHOUT ANY WARRANTY; without even the implied warranty of 9151# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9152# General Public License for more details. 9153# 9154# You should have received a copy of the GNU General Public License 9155# along with this program; if not, write to the Free Software 9156# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 9157# 9158# As a special exception to the GNU General Public License, if you 9159# distribute this file as part of a program that contains a 9160# configuration script generated by Autoconf, you may include it under 9161# the same distribution terms that you use for the rest of that program. 9162 9163# A sed program that does not truncate output. 9164SED=$lt_SED 9165 9166# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9167Xsed="$SED -e s/^X//" 9168 9169# The HP-UX ksh and POSIX shell print the target directory to stdout 9170# if CDPATH is set. 9171if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 9172 9173# The names of the tagged configurations supported by this script. 9174available_tags= 9175 9176# ### BEGIN LIBTOOL CONFIG 9177 9178# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9179 9180# Shell to use when invoking shell scripts. 9181SHELL=$lt_SHELL 9182 9183# Whether or not to build shared libraries. 9184build_libtool_libs=$enable_shared 9185 9186# Whether or not to build static libraries. 9187build_old_libs=$enable_static 9188 9189# Whether or not to add -lc for building shared libraries. 9190build_libtool_need_lc=$archive_cmds_need_lc 9191 9192# Whether or not to disallow shared libs when runtime libs are static 9193allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9194 9195# Whether or not to optimize for fast installation. 9196fast_install=$enable_fast_install 9197 9198# The host system. 9199host_alias=$host_alias 9200host=$host 9201 9202# An echo program that does not interpret backslashes. 9203echo=$lt_echo 9204 9205# The archiver. 9206AR=$lt_AR 9207AR_FLAGS=$lt_AR_FLAGS 9208 9209# A C compiler. 9210LTCC=$lt_LTCC 9211 9212# A language-specific compiler. 9213CC=$lt_compiler 9214 9215# Is the compiler the GNU C compiler? 9216with_gcc=$GCC 9217 9218# An ERE matcher. 9219EGREP=$lt_EGREP 9220 9221# The linker used to build libraries. 9222LD=$lt_LD 9223 9224# Whether we need hard or soft links. 9225LN_S=$lt_LN_S 9226 9227# A BSD-compatible nm program. 9228NM=$lt_NM 9229 9230# A symbol stripping program 9231STRIP=$lt_STRIP 9232 9233# Used to examine libraries when file_magic_cmd begins "file" 9234MAGIC_CMD=$MAGIC_CMD 9235 9236# Used on cygwin: DLL creation program. 9237DLLTOOL="$DLLTOOL" 9238 9239# Used on cygwin: object dumper. 9240OBJDUMP="$OBJDUMP" 9241 9242# Used on cygwin: assembler. 9243AS="$AS" 9244 9245# The name of the directory that contains temporary libtool files. 9246objdir=$objdir 9247 9248# How to create reloadable object files. 9249reload_flag=$lt_reload_flag 9250reload_cmds=$lt_reload_cmds 9251 9252# How to pass a linker flag through the compiler. 9253wl=$lt_lt_prog_compiler_wl 9254 9255# Object file suffix (normally "o"). 9256objext="$ac_objext" 9257 9258# Old archive suffix (normally "a"). 9259libext="$libext" 9260 9261# Shared library suffix (normally ".so"). 9262shrext_cmds='$shrext_cmds' 9263 9264# Executable file suffix (normally ""). 9265exeext="$exeext" 9266 9267# Additional compiler flags for building library objects. 9268pic_flag=$lt_lt_prog_compiler_pic 9269pic_mode=$pic_mode 9270 9271# What is the maximum length of a command? 9272max_cmd_len=$lt_cv_sys_max_cmd_len 9273 9274# Does compiler simultaneously support -c and -o options? 9275compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9276 9277# Must we lock files when doing compilation ? 9278need_locks=$lt_need_locks 9279 9280# Do we need the lib prefix for modules? 9281need_lib_prefix=$need_lib_prefix 9282 9283# Do we need a version for libraries? 9284need_version=$need_version 9285 9286# Whether dlopen is supported. 9287dlopen_support=$enable_dlopen 9288 9289# Whether dlopen of programs is supported. 9290dlopen_self=$enable_dlopen_self 9291 9292# Whether dlopen of statically linked programs is supported. 9293dlopen_self_static=$enable_dlopen_self_static 9294 9295# Compiler flag to prevent dynamic linking. 9296link_static_flag=$lt_lt_prog_compiler_static 9297 9298# Compiler flag to turn off builtin functions. 9299no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9300 9301# Compiler flag to allow reflexive dlopens. 9302export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9303 9304# Compiler flag to generate shared objects directly from archives. 9305whole_archive_flag_spec=$lt_whole_archive_flag_spec 9306 9307# Compiler flag to generate thread-safe objects. 9308thread_safe_flag_spec=$lt_thread_safe_flag_spec 9309 9310# Library versioning type. 9311version_type=$version_type 9312 9313# Format of library name prefix. 9314libname_spec=$lt_libname_spec 9315 9316# List of archive names. First name is the real one, the rest are links. 9317# The last name is the one that the linker finds with -lNAME. 9318library_names_spec=$lt_library_names_spec 9319 9320# The coded name of the library, if different from the real name. 9321soname_spec=$lt_soname_spec 9322 9323# Commands used to build and install an old-style archive. 9324RANLIB=$lt_RANLIB 9325old_archive_cmds=$lt_old_archive_cmds 9326old_postinstall_cmds=$lt_old_postinstall_cmds 9327old_postuninstall_cmds=$lt_old_postuninstall_cmds 9328 9329# Create an old-style archive from a shared archive. 9330old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9331 9332# Create a temporary old-style archive to link instead of a shared archive. 9333old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9334 9335# Commands used to build and install a shared archive. 9336archive_cmds=$lt_archive_cmds 9337archive_expsym_cmds=$lt_archive_expsym_cmds 9338postinstall_cmds=$lt_postinstall_cmds 9339postuninstall_cmds=$lt_postuninstall_cmds 9340 9341# Commands used to build a loadable module (assumed same as above if empty) 9342module_cmds=$lt_module_cmds 9343module_expsym_cmds=$lt_module_expsym_cmds 9344 9345# Commands to strip libraries. 9346old_striplib=$lt_old_striplib 9347striplib=$lt_striplib 9348 9349# Dependencies to place before the objects being linked to create a 9350# shared library. 9351predep_objects=$lt_predep_objects 9352 9353# Dependencies to place after the objects being linked to create a 9354# shared library. 9355postdep_objects=$lt_postdep_objects 9356 9357# Dependencies to place before the objects being linked to create a 9358# shared library. 9359predeps=$lt_predeps 9360 9361# Dependencies to place after the objects being linked to create a 9362# shared library. 9363postdeps=$lt_postdeps 9364 9365# The library search path used internally by the compiler when linking 9366# a shared library. 9367compiler_lib_search_path=$lt_compiler_lib_search_path 9368 9369# Method to check whether dependent libraries are shared objects. 9370deplibs_check_method=$lt_deplibs_check_method 9371 9372# Command to use when deplibs_check_method == file_magic. 9373file_magic_cmd=$lt_file_magic_cmd 9374 9375# Flag that allows shared libraries with undefined symbols to be built. 9376allow_undefined_flag=$lt_allow_undefined_flag 9377 9378# Flag that forces no undefined symbols. 9379no_undefined_flag=$lt_no_undefined_flag 9380 9381# Commands used to finish a libtool library installation in a directory. 9382finish_cmds=$lt_finish_cmds 9383 9384# Same as above, but a single script fragment to be evaled but not shown. 9385finish_eval=$lt_finish_eval 9386 9387# Take the output of nm and produce a listing of raw symbols and C names. 9388global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9389 9390# Transform the output of nm in a proper C declaration 9391global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9392 9393# Transform the output of nm in a C name address pair 9394global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9395 9396# This is the shared library runtime path variable. 9397runpath_var=$runpath_var 9398 9399# This is the shared library path variable. 9400shlibpath_var=$shlibpath_var 9401 9402# Is shlibpath searched before the hard-coded library search path? 9403shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9404 9405# How to hardcode a shared library path into an executable. 9406hardcode_action=$hardcode_action 9407 9408# Whether we should hardcode library paths into libraries. 9409hardcode_into_libs=$hardcode_into_libs 9410 9411# Flag to hardcode \$libdir into a binary during linking. 9412# This must work even if \$libdir does not exist. 9413hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9414 9415# If ld is used when linking, flag to hardcode \$libdir into 9416# a binary during linking. This must work even if \$libdir does 9417# not exist. 9418hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9419 9420# Whether we need a single -rpath flag with a separated argument. 9421hardcode_libdir_separator=$lt_hardcode_libdir_separator 9422 9423# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9424# resulting binary. 9425hardcode_direct=$hardcode_direct 9426 9427# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9428# resulting binary. 9429hardcode_minus_L=$hardcode_minus_L 9430 9431# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9432# the resulting binary. 9433hardcode_shlibpath_var=$hardcode_shlibpath_var 9434 9435# Set to yes if building a shared library automatically hardcodes DIR into the library 9436# and all subsequent libraries and executables linked against it. 9437hardcode_automatic=$hardcode_automatic 9438 9439# Variables whose values should be saved in libtool wrapper scripts and 9440# restored at relink time. 9441variables_saved_for_relink="$variables_saved_for_relink" 9442 9443# Whether libtool must link a program against all its dependency libraries. 9444link_all_deplibs=$link_all_deplibs 9445 9446# Compile-time system search path for libraries 9447sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9448 9449# Run-time system search path for libraries 9450sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9451 9452# Fix the shell variable \$srcfile for the compiler. 9453fix_srcfile_path="$fix_srcfile_path" 9454 9455# Set to yes if exported symbols are required. 9456always_export_symbols=$always_export_symbols 9457 9458# The commands to list exported symbols. 9459export_symbols_cmds=$lt_export_symbols_cmds 9460 9461# The commands to extract the exported symbol list from a shared archive. 9462extract_expsyms_cmds=$lt_extract_expsyms_cmds 9463 9464# Symbols that should not be listed in the preloaded symbols. 9465exclude_expsyms=$lt_exclude_expsyms 9466 9467# Symbols that must always be exported. 9468include_expsyms=$lt_include_expsyms 9469 9470# ### END LIBTOOL CONFIG 9471 9472__EOF__ 9473 9474 9475 case $host_os in 9476 aix3*) 9477 cat <<\EOF >> "$cfgfile" 9478 9479# AIX sometimes has problems with the GCC collect2 program. For some 9480# reason, if we set the COLLECT_NAMES environment variable, the problems 9481# vanish in a puff of smoke. 9482if test "X${COLLECT_NAMES+set}" != Xset; then 9483 COLLECT_NAMES= 9484 export COLLECT_NAMES 9485fi 9486EOF 9487 ;; 9488 esac 9489 9490 # We use sed instead of cat because bash on DJGPP gets confused if 9491 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9492 # text mode, it properly converts lines to CR/LF. This bash problem 9493 # is reportedly fixed, but why not run on old versions too? 9494 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9495 9496 mv -f "$cfgfile" "$ofile" || \ 9497 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9498 chmod +x "$ofile" 9499 9500else 9501 # If there is no Makefile yet, we rely on a make rule to execute 9502 # `config.status --recheck' to rerun these tests and create the 9503 # libtool script then. 9504 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9505 if test -f "$ltmain_in"; then 9506 test -f Makefile && make "$ltmain" 9507 fi 9508fi 9509 9510 9511ac_ext=c 9512ac_cpp='$CPP $CPPFLAGS' 9513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9515ac_compiler_gnu=$ac_cv_c_compiler_gnu 9516 9517CC="$lt_save_CC" 9518 9519 9520# Check whether --with-tags or --without-tags was given. 9521if test "${with_tags+set}" = set; then 9522 withval="$with_tags" 9523 tagnames="$withval" 9524fi; 9525 9526if test -f "$ltmain" && test -n "$tagnames"; then 9527 if test ! -f "${ofile}"; then 9528 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9529echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9530 fi 9531 9532 if test -z "$LTCC"; then 9533 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9534 if test -z "$LTCC"; then 9535 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9536echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9537 else 9538 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9539echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9540 fi 9541 fi 9542 9543 # Extract list of available tagged configurations in $ofile. 9544 # Note that this assumes the entire list is on one line. 9545 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9546 9547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9548 for tagname in $tagnames; do 9549 IFS="$lt_save_ifs" 9550 # Check whether tagname contains only valid characters 9551 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9552 "") ;; 9553 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9554echo "$as_me: error: invalid tag name: $tagname" >&2;} 9555 { (exit 1); exit 1; }; } 9556 ;; 9557 esac 9558 9559 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9560 then 9561 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9562echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9563 { (exit 1); exit 1; }; } 9564 fi 9565 9566 # Update the list of available tags. 9567 if test -n "$tagname"; then 9568 echo appending configuration tag \"$tagname\" to $ofile 9569 9570 case $tagname in 9571 CXX) 9572 if test -n "$CXX" && test "X$CXX" != "Xno"; then 9573 ac_ext=cc 9574ac_cpp='$CXXCPP $CPPFLAGS' 9575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9578 9579 9580 9581 9582archive_cmds_need_lc_CXX=no 9583allow_undefined_flag_CXX= 9584always_export_symbols_CXX=no 9585archive_expsym_cmds_CXX= 9586export_dynamic_flag_spec_CXX= 9587hardcode_direct_CXX=no 9588hardcode_libdir_flag_spec_CXX= 9589hardcode_libdir_flag_spec_ld_CXX= 9590hardcode_libdir_separator_CXX= 9591hardcode_minus_L_CXX=no 9592hardcode_automatic_CXX=no 9593module_cmds_CXX= 9594module_expsym_cmds_CXX= 9595link_all_deplibs_CXX=unknown 9596old_archive_cmds_CXX=$old_archive_cmds 9597no_undefined_flag_CXX= 9598whole_archive_flag_spec_CXX= 9599enable_shared_with_static_runtimes_CXX=no 9600 9601# Dependencies to place before and after the object being linked: 9602predep_objects_CXX= 9603postdep_objects_CXX= 9604predeps_CXX= 9605postdeps_CXX= 9606compiler_lib_search_path_CXX= 9607 9608# Source file extension for C++ test sources. 9609ac_ext=cc 9610 9611# Object file extension for compiled C++ test sources. 9612objext=o 9613objext_CXX=$objext 9614 9615# Code to be used in simple compile tests 9616lt_simple_compile_test_code="int some_variable = 0;\n" 9617 9618# Code to be used in simple link tests 9619lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9620 9621# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9622 9623# If no C compiler was specified, use CC. 9624LTCC=${LTCC-"$CC"} 9625 9626# Allow CC to be a program name with arguments. 9627compiler=$CC 9628 9629 9630# Allow CC to be a program name with arguments. 9631lt_save_CC=$CC 9632lt_save_LD=$LD 9633lt_save_GCC=$GCC 9634GCC=$GXX 9635lt_save_with_gnu_ld=$with_gnu_ld 9636lt_save_path_LD=$lt_cv_path_LD 9637if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9638 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9639else 9640 unset lt_cv_prog_gnu_ld 9641fi 9642if test -n "${lt_cv_path_LDCXX+set}"; then 9643 lt_cv_path_LD=$lt_cv_path_LDCXX 9644else 9645 unset lt_cv_path_LD 9646fi 9647test -z "${LDCXX+set}" || LD=$LDCXX 9648CC=${CXX-"c++"} 9649compiler=$CC 9650compiler_CXX=$CC 9651cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 9652 9653# We don't want -fno-exception wen compiling C++ code, so set the 9654# no_builtin_flag separately 9655if test "$GXX" = yes; then 9656 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9657else 9658 lt_prog_compiler_no_builtin_flag_CXX= 9659fi 9660 9661if test "$GXX" = yes; then 9662 # Set up default GNU C++ configuration 9663 9664 9665# Check whether --with-gnu-ld or --without-gnu-ld was given. 9666if test "${with_gnu_ld+set}" = set; then 9667 withval="$with_gnu_ld" 9668 test "$withval" = no || with_gnu_ld=yes 9669else 9670 with_gnu_ld=no 9671fi; 9672ac_prog=ld 9673if test "$GCC" = yes; then 9674 # Check if gcc -print-prog-name=ld gives a path. 9675 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9676echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9677 case $host in 9678 *-*-mingw*) 9679 # gcc leaves a trailing carriage return which upsets mingw 9680 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9681 *) 9682 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9683 esac 9684 case $ac_prog in 9685 # Accept absolute paths. 9686 [\\/]* | ?:[\\/]*) 9687 re_direlt='/[^/][^/]*/\.\./' 9688 # Canonicalize the pathname of ld 9689 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9690 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9691 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9692 done 9693 test -z "$LD" && LD="$ac_prog" 9694 ;; 9695 "") 9696 # If it fails, then pretend we aren't using GCC. 9697 ac_prog=ld 9698 ;; 9699 *) 9700 # If it is relative, then search for the first ld in PATH. 9701 with_gnu_ld=unknown 9702 ;; 9703 esac 9704elif test "$with_gnu_ld" = yes; then 9705 echo "$as_me:$LINENO: checking for GNU ld" >&5 9706echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9707else 9708 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9709echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9710fi 9711if test "${lt_cv_path_LD+set}" = set; then 9712 echo $ECHO_N "(cached) $ECHO_C" >&6 9713else 9714 if test -z "$LD"; then 9715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9716 for ac_dir in $PATH; do 9717 IFS="$lt_save_ifs" 9718 test -z "$ac_dir" && ac_dir=. 9719 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9720 lt_cv_path_LD="$ac_dir/$ac_prog" 9721 # Check to see if the program is GNU ld. I'd rather use --version, 9722 # but apparently some GNU ld's only accept -v. 9723 # Break only if it was the GNU/non-GNU ld that we prefer. 9724 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9725 *GNU* | *'with BFD'*) 9726 test "$with_gnu_ld" != no && break 9727 ;; 9728 *) 9729 test "$with_gnu_ld" != yes && break 9730 ;; 9731 esac 9732 fi 9733 done 9734 IFS="$lt_save_ifs" 9735else 9736 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9737fi 9738fi 9739 9740LD="$lt_cv_path_LD" 9741if test -n "$LD"; then 9742 echo "$as_me:$LINENO: result: $LD" >&5 9743echo "${ECHO_T}$LD" >&6 9744else 9745 echo "$as_me:$LINENO: result: no" >&5 9746echo "${ECHO_T}no" >&6 9747fi 9748test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9749echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9750 { (exit 1); exit 1; }; } 9751echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9752echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9753if test "${lt_cv_prog_gnu_ld+set}" = set; then 9754 echo $ECHO_N "(cached) $ECHO_C" >&6 9755else 9756 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9757case `$LD -v 2>&1 </dev/null` in 9758*GNU* | *'with BFD'*) 9759 lt_cv_prog_gnu_ld=yes 9760 ;; 9761*) 9762 lt_cv_prog_gnu_ld=no 9763 ;; 9764esac 9765fi 9766echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9767echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9768with_gnu_ld=$lt_cv_prog_gnu_ld 9769 9770 9771 9772 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9773 # archiving commands below assume that GNU ld is being used. 9774 if test "$with_gnu_ld" = yes; then 9775 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9776 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' 9777 9778 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9779 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9780 9781 # If archive_cmds runs LD, not CC, wlarc should be empty 9782 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9783 # investigate it a little bit more. (MM) 9784 wlarc='${wl}' 9785 9786 # ancient GNU ld didn't support --whole-archive et. al. 9787 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9788 grep 'no-whole-archive' > /dev/null; then 9789 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9790 else 9791 whole_archive_flag_spec_CXX= 9792 fi 9793 else 9794 with_gnu_ld=no 9795 wlarc= 9796 9797 # A generic and very simple default shared library creation 9798 # command for GNU C++ for the case where it uses the native 9799 # linker, instead of GNU ld. If possible, this setting should 9800 # overridden to take advantage of the native linker features on 9801 # the platform it is being used on. 9802 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9803 fi 9804 9805 # Commands to make compiler produce verbose output that lists 9806 # what "hidden" libraries, object files and flags are used when 9807 # linking a shared library. 9808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9809 9810else 9811 GXX=no 9812 with_gnu_ld=no 9813 wlarc= 9814fi 9815 9816# PORTME: fill in a description of your system's C++ link characteristics 9817echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9818echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9819ld_shlibs_CXX=yes 9820case $host_os in 9821 aix3*) 9822 # FIXME: insert proper C++ library support 9823 ld_shlibs_CXX=no 9824 ;; 9825 aix4* | aix5*) 9826 if test "$host_cpu" = ia64; then 9827 # On IA64, the linker does run time linking by default, so we don't 9828 # have to do anything special. 9829 aix_use_runtimelinking=no 9830 exp_sym_flag='-Bexport' 9831 no_entry_flag="" 9832 else 9833 aix_use_runtimelinking=no 9834 9835 # Test if we are trying to use run time linking or normal 9836 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9837 # need to do runtime linking. 9838 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9839 for ld_flag in $LDFLAGS; do 9840 case $ld_flag in 9841 *-brtl*) 9842 aix_use_runtimelinking=yes 9843 break 9844 ;; 9845 esac 9846 done 9847 esac 9848 9849 exp_sym_flag='-bexport' 9850 no_entry_flag='-bnoentry' 9851 fi 9852 9853 # When large executables or shared objects are built, AIX ld can 9854 # have problems creating the table of contents. If linking a library 9855 # or program results in "error TOC overflow" add -mminimal-toc to 9856 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9857 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9858 9859 archive_cmds_CXX='' 9860 hardcode_direct_CXX=yes 9861 hardcode_libdir_separator_CXX=':' 9862 link_all_deplibs_CXX=yes 9863 9864 if test "$GXX" = yes; then 9865 case $host_os in aix4.012|aix4.012.*) 9866 # We only want to do this on AIX 4.2 and lower, the check 9867 # below for broken collect2 doesn't work under 4.3+ 9868 collect2name=`${CC} -print-prog-name=collect2` 9869 if test -f "$collect2name" && \ 9870 strings "$collect2name" | grep resolve_lib_name >/dev/null 9871 then 9872 # We have reworked collect2 9873 hardcode_direct_CXX=yes 9874 else 9875 # We have old collect2 9876 hardcode_direct_CXX=unsupported 9877 # It fails to find uninstalled libraries when the uninstalled 9878 # path is not listed in the libpath. Setting hardcode_minus_L 9879 # to unsupported forces relinking 9880 hardcode_minus_L_CXX=yes 9881 hardcode_libdir_flag_spec_CXX='-L$libdir' 9882 hardcode_libdir_separator_CXX= 9883 fi 9884 esac 9885 shared_flag='-shared' 9886 else 9887 # not using gcc 9888 if test "$host_cpu" = ia64; then 9889 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9890 # chokes on -Wl,-G. The following line is correct: 9891 shared_flag='-G' 9892 else 9893 if test "$aix_use_runtimelinking" = yes; then 9894 shared_flag='${wl}-G' 9895 else 9896 shared_flag='${wl}-bM:SRE' 9897 fi 9898 fi 9899 fi 9900 9901 # It seems that -bexpall does not export symbols beginning with 9902 # underscore (_), so it is better to generate a list of symbols to export. 9903 always_export_symbols_CXX=yes 9904 if test "$aix_use_runtimelinking" = yes; then 9905 # Warning - without using the other runtime loading flags (-brtl), 9906 # -berok will link without error, but may produce a broken library. 9907 allow_undefined_flag_CXX='-berok' 9908 # Determine the default libpath from the value encoded in an empty executable. 9909 cat >conftest.$ac_ext <<_ACEOF 9910/* confdefs.h. */ 9911_ACEOF 9912cat confdefs.h >>conftest.$ac_ext 9913cat >>conftest.$ac_ext <<_ACEOF 9914/* end confdefs.h. */ 9915 9916int 9917main () 9918{ 9919 9920 ; 9921 return 0; 9922} 9923_ACEOF 9924rm -f conftest.$ac_objext conftest$ac_exeext 9925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9926 (eval $ac_link) 2>conftest.er1 9927 ac_status=$? 9928 grep -v '^ *+' conftest.er1 >conftest.err 9929 rm -f conftest.er1 9930 cat conftest.err >&5 9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9932 (exit $ac_status); } && 9933 { ac_try='test -z "$ac_cxx_werror_flag" 9934 || test ! -s conftest.err' 9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9936 (eval $ac_try) 2>&5 9937 ac_status=$? 9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9939 (exit $ac_status); }; } && 9940 { ac_try='test -s conftest$ac_exeext' 9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9942 (eval $ac_try) 2>&5 9943 ac_status=$? 9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9945 (exit $ac_status); }; }; then 9946 9947aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9948}'` 9949# Check for a 64-bit object if we didn't find anything. 9950if 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; } 9951}'`; fi 9952else 9953 echo "$as_me: failed program was:" >&5 9954sed 's/^/| /' conftest.$ac_ext >&5 9955 9956fi 9957rm -f conftest.err conftest.$ac_objext \ 9958 conftest$ac_exeext conftest.$ac_ext 9959if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9960 9961 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9962 9963 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" 9964 else 9965 if test "$host_cpu" = ia64; then 9966 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 9967 allow_undefined_flag_CXX="-z nodefs" 9968 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" 9969 else 9970 # Determine the default libpath from the value encoded in an empty executable. 9971 cat >conftest.$ac_ext <<_ACEOF 9972/* confdefs.h. */ 9973_ACEOF 9974cat confdefs.h >>conftest.$ac_ext 9975cat >>conftest.$ac_ext <<_ACEOF 9976/* end confdefs.h. */ 9977 9978int 9979main () 9980{ 9981 9982 ; 9983 return 0; 9984} 9985_ACEOF 9986rm -f conftest.$ac_objext conftest$ac_exeext 9987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9988 (eval $ac_link) 2>conftest.er1 9989 ac_status=$? 9990 grep -v '^ *+' conftest.er1 >conftest.err 9991 rm -f conftest.er1 9992 cat conftest.err >&5 9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9994 (exit $ac_status); } && 9995 { ac_try='test -z "$ac_cxx_werror_flag" 9996 || test ! -s conftest.err' 9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9998 (eval $ac_try) 2>&5 9999 ac_status=$? 10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10001 (exit $ac_status); }; } && 10002 { ac_try='test -s conftest$ac_exeext' 10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10004 (eval $ac_try) 2>&5 10005 ac_status=$? 10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10007 (exit $ac_status); }; }; then 10008 10009aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10010}'` 10011# Check for a 64-bit object if we didn't find anything. 10012if 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; } 10013}'`; fi 10014else 10015 echo "$as_me: failed program was:" >&5 10016sed 's/^/| /' conftest.$ac_ext >&5 10017 10018fi 10019rm -f conftest.err conftest.$ac_objext \ 10020 conftest$ac_exeext conftest.$ac_ext 10021if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10022 10023 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10024 # Warning - without using the other run time loading flags, 10025 # -berok will link without error, but may produce a broken library. 10026 no_undefined_flag_CXX=' ${wl}-bernotok' 10027 allow_undefined_flag_CXX=' ${wl}-berok' 10028 # -bexpall does not export symbols beginning with underscore (_) 10029 always_export_symbols_CXX=yes 10030 # Exported symbols can be pulled into shared objects from archives 10031 whole_archive_flag_spec_CXX=' ' 10032 archive_cmds_need_lc_CXX=yes 10033 # This is similar to how AIX traditionally builds it's shared libraries. 10034 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' 10035 fi 10036 fi 10037 ;; 10038 chorus*) 10039 case $cc_basename in 10040 *) 10041 # FIXME: insert proper C++ library support 10042 ld_shlibs_CXX=no 10043 ;; 10044 esac 10045 ;; 10046 10047 cygwin* | mingw* | pw32*) 10048 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10049 # as there is no search path for DLLs. 10050 hardcode_libdir_flag_spec_CXX='-L$libdir' 10051 allow_undefined_flag_CXX=unsupported 10052 always_export_symbols_CXX=no 10053 enable_shared_with_static_runtimes_CXX=yes 10054 10055 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10056 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' 10057 # If the export-symbols file already is a .def file (1st line 10058 # is EXPORTS), use it as is; otherwise, prepend... 10059 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10060 cp $export_symbols $output_objdir/$soname.def; 10061 else 10062 echo EXPORTS > $output_objdir/$soname.def; 10063 cat $export_symbols >> $output_objdir/$soname.def; 10064 fi~ 10065 $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' 10066 else 10067 ld_shlibs_CXX=no 10068 fi 10069 ;; 10070 10071 darwin* | rhapsody*) 10072 if test "$GXX" = yes; then 10073 archive_cmds_need_lc_CXX=no 10074 case "$host_os" in 10075 rhapsody* | darwin1.[012]) 10076 allow_undefined_flag_CXX='-undefined suppress' 10077 ;; 10078 *) # Darwin 1.3 on 10079 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10080 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 10081 else 10082 case ${MACOSX_DEPLOYMENT_TARGET} in 10083 10.[012]) 10084 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 10085 ;; 10086 10.*) 10087 allow_undefined_flag_CXX='-undefined dynamic_lookup' 10088 ;; 10089 esac 10090 fi 10091 ;; 10092 esac 10093 lt_int_apple_cc_single_mod=no 10094 output_verbose_link_cmd='echo' 10095 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 10096 lt_int_apple_cc_single_mod=yes 10097 fi 10098 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10099 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10100 else 10101 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' 10102 fi 10103 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10104 10105 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10106 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10107 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}' 10108 else 10109 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}' 10110 fi 10111 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}' 10112 hardcode_direct_CXX=no 10113 hardcode_automatic_CXX=yes 10114 hardcode_shlibpath_var_CXX=unsupported 10115 whole_archive_flag_spec_CXX='-all_load $convenience' 10116 link_all_deplibs_CXX=yes 10117 else 10118 ld_shlibs_CXX=no 10119 fi 10120 ;; 10121 10122 dgux*) 10123 case $cc_basename in 10124 ec++) 10125 # FIXME: insert proper C++ library support 10126 ld_shlibs_CXX=no 10127 ;; 10128 ghcx) 10129 # Green Hills C++ Compiler 10130 # FIXME: insert proper C++ library support 10131 ld_shlibs_CXX=no 10132 ;; 10133 *) 10134 # FIXME: insert proper C++ library support 10135 ld_shlibs_CXX=no 10136 ;; 10137 esac 10138 ;; 10139 freebsd12*) 10140 # C++ shared libraries reported to be fairly broken before switch to ELF 10141 ld_shlibs_CXX=no 10142 ;; 10143 freebsd-elf*) 10144 archive_cmds_need_lc_CXX=no 10145 ;; 10146 freebsd* | kfreebsd*-gnu) 10147 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10148 # conventions 10149 ld_shlibs_CXX=yes 10150 ;; 10151 gnu*) 10152 ;; 10153 hpux9*) 10154 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10155 hardcode_libdir_separator_CXX=: 10156 export_dynamic_flag_spec_CXX='${wl}-E' 10157 hardcode_direct_CXX=yes 10158 hardcode_minus_L_CXX=yes # Not in the search PATH, 10159 # but as the default 10160 # location of the library. 10161 10162 case $cc_basename in 10163 CC) 10164 # FIXME: insert proper C++ library support 10165 ld_shlibs_CXX=no 10166 ;; 10167 aCC) 10168 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' 10169 # Commands to make compiler produce verbose output that lists 10170 # what "hidden" libraries, object files and flags are used when 10171 # linking a shared library. 10172 # 10173 # There doesn't appear to be a way to prevent this compiler from 10174 # explicitly linking system object files so we need to strip them 10175 # from the output so that they don't get included in the library 10176 # dependencies. 10177 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' 10178 ;; 10179 *) 10180 if test "$GXX" = yes; then 10181 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' 10182 else 10183 # FIXME: insert proper C++ library support 10184 ld_shlibs_CXX=no 10185 fi 10186 ;; 10187 esac 10188 ;; 10189 hpux10*|hpux11*) 10190 if test $with_gnu_ld = no; then 10191 case "$host_cpu" in 10192 hppa*64*) 10193 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10194 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10195 hardcode_libdir_separator_CXX=: 10196 ;; 10197 ia64*) 10198 hardcode_libdir_flag_spec_CXX='-L$libdir' 10199 ;; 10200 *) 10201 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10202 hardcode_libdir_separator_CXX=: 10203 export_dynamic_flag_spec_CXX='${wl}-E' 10204 ;; 10205 esac 10206 fi 10207 case "$host_cpu" in 10208 hppa*64*) 10209 hardcode_direct_CXX=no 10210 hardcode_shlibpath_var_CXX=no 10211 ;; 10212 ia64*) 10213 hardcode_direct_CXX=no 10214 hardcode_shlibpath_var_CXX=no 10215 hardcode_minus_L_CXX=yes # Not in the search PATH, 10216 # but as the default 10217 # location of the library. 10218 ;; 10219 *) 10220 hardcode_direct_CXX=yes 10221 hardcode_minus_L_CXX=yes # Not in the search PATH, 10222 # but as the default 10223 # location of the library. 10224 ;; 10225 esac 10226 10227 case $cc_basename in 10228 CC) 10229 # FIXME: insert proper C++ library support 10230 ld_shlibs_CXX=no 10231 ;; 10232 aCC) 10233 case "$host_cpu" in 10234 hppa*64*|ia64*) 10235 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10236 ;; 10237 *) 10238 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10239 ;; 10240 esac 10241 # Commands to make compiler produce verbose output that lists 10242 # what "hidden" libraries, object files and flags are used when 10243 # linking a shared library. 10244 # 10245 # There doesn't appear to be a way to prevent this compiler from 10246 # explicitly linking system object files so we need to strip them 10247 # from the output so that they don't get included in the library 10248 # dependencies. 10249 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' 10250 ;; 10251 *) 10252 if test "$GXX" = yes; then 10253 if test $with_gnu_ld = no; then 10254 case "$host_cpu" in 10255 ia64*|hppa*64*) 10256 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10257 ;; 10258 *) 10259 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' 10260 ;; 10261 esac 10262 fi 10263 else 10264 # FIXME: insert proper C++ library support 10265 ld_shlibs_CXX=no 10266 fi 10267 ;; 10268 esac 10269 ;; 10270 irix5* | irix6*) 10271 case $cc_basename in 10272 CC) 10273 # SGI C++ 10274 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' 10275 10276 # Archives containing C++ object files must be created using 10277 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10278 # necessary to make sure instantiated templates are included 10279 # in the archive. 10280 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10281 ;; 10282 *) 10283 if test "$GXX" = yes; then 10284 if test "$with_gnu_ld" = no; then 10285 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' 10286 else 10287 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' 10288 fi 10289 fi 10290 link_all_deplibs_CXX=yes 10291 ;; 10292 esac 10293 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10294 hardcode_libdir_separator_CXX=: 10295 ;; 10296 linux*) 10297 case $cc_basename in 10298 KCC) 10299 # Kuck and Associates, Inc. (KAI) C++ Compiler 10300 10301 # KCC will only create a shared library if the output file 10302 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10303 # to its proper name (with version) after linking. 10304 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' 10305 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' 10306 # Commands to make compiler produce verbose output that lists 10307 # what "hidden" libraries, object files and flags are used when 10308 # linking a shared library. 10309 # 10310 # There doesn't appear to be a way to prevent this compiler from 10311 # explicitly linking system object files so we need to strip them 10312 # from the output so that they don't get included in the library 10313 # dependencies. 10314 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' 10315 10316 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10317 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10318 10319 # Archives containing C++ object files must be created using 10320 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10321 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10322 ;; 10323 icpc) 10324 # Intel C++ 10325 with_gnu_ld=yes 10326 archive_cmds_need_lc_CXX=no 10327 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10328 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' 10329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10331 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10332 ;; 10333 cxx) 10334 # Compaq C++ 10335 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10336 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' 10337 10338 runpath_var=LD_RUN_PATH 10339 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10340 hardcode_libdir_separator_CXX=: 10341 10342 # Commands to make compiler produce verbose output that lists 10343 # what "hidden" libraries, object files and flags are used when 10344 # linking a shared library. 10345 # 10346 # There doesn't appear to be a way to prevent this compiler from 10347 # explicitly linking system object files so we need to strip them 10348 # from the output so that they don't get included in the library 10349 # dependencies. 10350 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' 10351 ;; 10352 esac 10353 ;; 10354 lynxos*) 10355 # FIXME: insert proper C++ library support 10356 ld_shlibs_CXX=no 10357 ;; 10358 m88k*) 10359 # FIXME: insert proper C++ library support 10360 ld_shlibs_CXX=no 10361 ;; 10362 mvs*) 10363 case $cc_basename in 10364 cxx) 10365 # FIXME: insert proper C++ library support 10366 ld_shlibs_CXX=no 10367 ;; 10368 *) 10369 # FIXME: insert proper C++ library support 10370 ld_shlibs_CXX=no 10371 ;; 10372 esac 10373 ;; 10374 netbsd*) 10375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10376 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10377 wlarc= 10378 hardcode_libdir_flag_spec_CXX='-R$libdir' 10379 hardcode_direct_CXX=yes 10380 hardcode_shlibpath_var_CXX=no 10381 fi 10382 # Workaround some broken pre-1.5 toolchains 10383 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10384 ;; 10385 osf3*) 10386 case $cc_basename in 10387 KCC) 10388 # Kuck and Associates, Inc. (KAI) C++ Compiler 10389 10390 # KCC will only create a shared library if the output file 10391 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10392 # to its proper name (with version) after linking. 10393 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' 10394 10395 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10396 hardcode_libdir_separator_CXX=: 10397 10398 # Archives containing C++ object files must be created using 10399 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10400 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10401 10402 ;; 10403 RCC) 10404 # Rational C++ 2.4.1 10405 # FIXME: insert proper C++ library support 10406 ld_shlibs_CXX=no 10407 ;; 10408 cxx) 10409 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10410 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' 10411 10412 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10413 hardcode_libdir_separator_CXX=: 10414 10415 # Commands to make compiler produce verbose output that lists 10416 # what "hidden" libraries, object files and flags are used when 10417 # linking a shared library. 10418 # 10419 # There doesn't appear to be a way to prevent this compiler from 10420 # explicitly linking system object files so we need to strip them 10421 # from the output so that they don't get included in the library 10422 # dependencies. 10423 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' 10424 ;; 10425 *) 10426 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10427 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10428 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' 10429 10430 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10431 hardcode_libdir_separator_CXX=: 10432 10433 # Commands to make compiler produce verbose output that lists 10434 # what "hidden" libraries, object files and flags are used when 10435 # linking a shared library. 10436 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10437 10438 else 10439 # FIXME: insert proper C++ library support 10440 ld_shlibs_CXX=no 10441 fi 10442 ;; 10443 esac 10444 ;; 10445 osf4* | osf5*) 10446 case $cc_basename in 10447 KCC) 10448 # Kuck and Associates, Inc. (KAI) C++ Compiler 10449 10450 # KCC will only create a shared library if the output file 10451 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10452 # to its proper name (with version) after linking. 10453 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' 10454 10455 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10456 hardcode_libdir_separator_CXX=: 10457 10458 # Archives containing C++ object files must be created using 10459 # the KAI C++ compiler. 10460 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10461 ;; 10462 RCC) 10463 # Rational C++ 2.4.1 10464 # FIXME: insert proper C++ library support 10465 ld_shlibs_CXX=no 10466 ;; 10467 cxx) 10468 allow_undefined_flag_CXX=' -expect_unresolved \*' 10469 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' 10470 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10471 echo "-hidden">> $lib.exp~ 10472 $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~ 10473 $rm $lib.exp' 10474 10475 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10476 hardcode_libdir_separator_CXX=: 10477 10478 # Commands to make compiler produce verbose output that lists 10479 # what "hidden" libraries, object files and flags are used when 10480 # linking a shared library. 10481 # 10482 # There doesn't appear to be a way to prevent this compiler from 10483 # explicitly linking system object files so we need to strip them 10484 # from the output so that they don't get included in the library 10485 # dependencies. 10486 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' 10487 ;; 10488 *) 10489 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10490 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10491 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' 10492 10493 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10494 hardcode_libdir_separator_CXX=: 10495 10496 # Commands to make compiler produce verbose output that lists 10497 # what "hidden" libraries, object files and flags are used when 10498 # linking a shared library. 10499 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10500 10501 else 10502 # FIXME: insert proper C++ library support 10503 ld_shlibs_CXX=no 10504 fi 10505 ;; 10506 esac 10507 ;; 10508 psos*) 10509 # FIXME: insert proper C++ library support 10510 ld_shlibs_CXX=no 10511 ;; 10512 sco*) 10513 archive_cmds_need_lc_CXX=no 10514 case $cc_basename in 10515 CC) 10516 # FIXME: insert proper C++ library support 10517 ld_shlibs_CXX=no 10518 ;; 10519 *) 10520 # FIXME: insert proper C++ library support 10521 ld_shlibs_CXX=no 10522 ;; 10523 esac 10524 ;; 10525 sunos4*) 10526 case $cc_basename in 10527 CC) 10528 # Sun C++ 4.x 10529 # FIXME: insert proper C++ library support 10530 ld_shlibs_CXX=no 10531 ;; 10532 lcc) 10533 # Lucid 10534 # FIXME: insert proper C++ library support 10535 ld_shlibs_CXX=no 10536 ;; 10537 *) 10538 # FIXME: insert proper C++ library support 10539 ld_shlibs_CXX=no 10540 ;; 10541 esac 10542 ;; 10543 solaris*) 10544 case $cc_basename in 10545 CC) 10546 # Sun C++ 4.2, 5.x and Centerline C++ 10547 no_undefined_flag_CXX=' -zdefs' 10548 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10549 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10550 $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' 10551 10552 hardcode_libdir_flag_spec_CXX='-R$libdir' 10553 hardcode_shlibpath_var_CXX=no 10554 case $host_os in 10555 solaris2.0-5 | solaris2.0-5.*) ;; 10556 *) 10557 # The C++ compiler is used as linker so we must use $wl 10558 # flag to pass the commands to the underlying system 10559 # linker. 10560 # Supported since Solaris 2.6 (maybe 2.5.1?) 10561 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10562 ;; 10563 esac 10564 link_all_deplibs_CXX=yes 10565 10566 # Commands to make compiler produce verbose output that lists 10567 # what "hidden" libraries, object files and flags are used when 10568 # linking a shared library. 10569 # 10570 # There doesn't appear to be a way to prevent this compiler from 10571 # explicitly linking system object files so we need to strip them 10572 # from the output so that they don't get included in the library 10573 # dependencies. 10574 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' 10575 10576 # Archives containing C++ object files must be created using 10577 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10578 # necessary to make sure instantiated templates are included 10579 # in the archive. 10580 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10581 ;; 10582 gcx) 10583 # Green Hills C++ Compiler 10584 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10585 10586 # The C++ compiler must be used to create the archive. 10587 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10588 ;; 10589 *) 10590 # GNU C++ compiler with Solaris linker 10591 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10592 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10593 if $CC --version | grep -v '^2\.7' > /dev/null; then 10594 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10595 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10596 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10597 10598 # Commands to make compiler produce verbose output that lists 10599 # what "hidden" libraries, object files and flags are used when 10600 # linking a shared library. 10601 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10602 else 10603 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10604 # platform. 10605 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10606 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10607 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10608 10609 # Commands to make compiler produce verbose output that lists 10610 # what "hidden" libraries, object files and flags are used when 10611 # linking a shared library. 10612 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10613 fi 10614 10615 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10616 fi 10617 ;; 10618 esac 10619 ;; 10620 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10621 archive_cmds_need_lc_CXX=no 10622 ;; 10623 tandem*) 10624 case $cc_basename in 10625 NCC) 10626 # NonStop-UX NCC 3.20 10627 # FIXME: insert proper C++ library support 10628 ld_shlibs_CXX=no 10629 ;; 10630 *) 10631 # FIXME: insert proper C++ library support 10632 ld_shlibs_CXX=no 10633 ;; 10634 esac 10635 ;; 10636 vxworks*) 10637 # FIXME: insert proper C++ library support 10638 ld_shlibs_CXX=no 10639 ;; 10640 *) 10641 # FIXME: insert proper C++ library support 10642 ld_shlibs_CXX=no 10643 ;; 10644esac 10645echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10646echo "${ECHO_T}$ld_shlibs_CXX" >&6 10647test "$ld_shlibs_CXX" = no && can_build_shared=no 10648 10649GCC_CXX="$GXX" 10650LD_CXX="$LD" 10651 10652 10653cat > conftest.$ac_ext <<EOF 10654class Foo 10655{ 10656public: 10657 Foo (void) { a = 0; } 10658private: 10659 int a; 10660}; 10661EOF 10662 10663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10664 (eval $ac_compile) 2>&5 10665 ac_status=$? 10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10667 (exit $ac_status); }; then 10668 # Parse the compiler output and extract the necessary 10669 # objects, libraries and library flags. 10670 10671 # Sentinel used to keep track of whether or not we are before 10672 # the conftest object file. 10673 pre_test_object_deps_done=no 10674 10675 # The `*' in the case matches for architectures that use `case' in 10676 # $output_verbose_cmd can trigger glob expansion during the loop 10677 # eval without this substitution. 10678 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10679 10680 for p in `eval $output_verbose_link_cmd`; do 10681 case $p in 10682 10683 -L* | -R* | -l*) 10684 # Some compilers place space between "-{L,R}" and the path. 10685 # Remove the space. 10686 if test $p = "-L" \ 10687 || test $p = "-R"; then 10688 prev=$p 10689 continue 10690 else 10691 prev= 10692 fi 10693 10694 if test "$pre_test_object_deps_done" = no; then 10695 case $p in 10696 -L* | -R*) 10697 # Internal compiler library paths should come after those 10698 # provided the user. The postdeps already come after the 10699 # user supplied libs so there is no need to process them. 10700 if test -z "$compiler_lib_search_path_CXX"; then 10701 compiler_lib_search_path_CXX="${prev}${p}" 10702 else 10703 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10704 fi 10705 ;; 10706 # The "-l" case would never come before the object being 10707 # linked, so don't bother handling this case. 10708 esac 10709 else 10710 if test -z "$postdeps_CXX"; then 10711 postdeps_CXX="${prev}${p}" 10712 else 10713 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10714 fi 10715 fi 10716 ;; 10717 10718 *.$objext) 10719 # This assumes that the test object file only shows up 10720 # once in the compiler output. 10721 if test "$p" = "conftest.$objext"; then 10722 pre_test_object_deps_done=yes 10723 continue 10724 fi 10725 10726 if test "$pre_test_object_deps_done" = no; then 10727 if test -z "$predep_objects_CXX"; then 10728 predep_objects_CXX="$p" 10729 else 10730 predep_objects_CXX="$predep_objects_CXX $p" 10731 fi 10732 else 10733 if test -z "$postdep_objects_CXX"; then 10734 postdep_objects_CXX="$p" 10735 else 10736 postdep_objects_CXX="$postdep_objects_CXX $p" 10737 fi 10738 fi 10739 ;; 10740 10741 *) ;; # Ignore the rest. 10742 10743 esac 10744 done 10745 10746 # Clean up. 10747 rm -f a.out a.exe 10748else 10749 echo "libtool.m4: error: problem compiling CXX test program" 10750fi 10751 10752$rm -f confest.$objext 10753 10754case " $postdeps_CXX " in 10755*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10756esac 10757 10758lt_prog_compiler_wl_CXX= 10759lt_prog_compiler_pic_CXX= 10760lt_prog_compiler_static_CXX= 10761 10762echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10763echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10764 10765 # C++ specific cases for pic, static, wl, etc. 10766 if test "$GXX" = yes; then 10767 lt_prog_compiler_wl_CXX='-Wl,' 10768 lt_prog_compiler_static_CXX='-static' 10769 10770 case $host_os in 10771 aix*) 10772 # All AIX code is PIC. 10773 if test "$host_cpu" = ia64; then 10774 # AIX 5 now supports IA64 processor 10775 lt_prog_compiler_static_CXX='-Bstatic' 10776 fi 10777 ;; 10778 amigaos*) 10779 # FIXME: we need at least 68020 code to build shared libraries, but 10780 # adding the `-m68020' flag to GCC prevents building anything better, 10781 # like `-m68040'. 10782 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10783 ;; 10784 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10785 # PIC is the default for these OSes. 10786 ;; 10787 mingw* | os2* | pw32*) 10788 # This hack is so that the source file can tell whether it is being 10789 # built for inclusion in a dll (and should export symbols for example). 10790 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10791 ;; 10792 darwin* | rhapsody*) 10793 # PIC is the default on this platform 10794 # Common symbols not allowed in MH_DYLIB files 10795 lt_prog_compiler_pic_CXX='-fno-common' 10796 ;; 10797 *djgpp*) 10798 # DJGPP does not support shared libraries at all 10799 lt_prog_compiler_pic_CXX= 10800 ;; 10801 sysv4*MP*) 10802 if test -d /usr/nec; then 10803 lt_prog_compiler_pic_CXX=-Kconform_pic 10804 fi 10805 ;; 10806 hpux*) 10807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10808 # not for PA HP-UX. 10809 case "$host_cpu" in 10810 hppa*64*|ia64*) 10811 ;; 10812 *) 10813 lt_prog_compiler_pic_CXX='-fPIC' 10814 ;; 10815 esac 10816 ;; 10817 *) 10818 lt_prog_compiler_pic_CXX='-fPIC' 10819 ;; 10820 esac 10821 else 10822 case $host_os in 10823 aix4* | aix5*) 10824 # All AIX code is PIC. 10825 if test "$host_cpu" = ia64; then 10826 # AIX 5 now supports IA64 processor 10827 lt_prog_compiler_static_CXX='-Bstatic' 10828 else 10829 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10830 fi 10831 ;; 10832 chorus*) 10833 case $cc_basename in 10834 cxch68) 10835 # Green Hills C++ Compiler 10836 # _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" 10837 ;; 10838 esac 10839 ;; 10840 dgux*) 10841 case $cc_basename in 10842 ec++) 10843 lt_prog_compiler_pic_CXX='-KPIC' 10844 ;; 10845 ghcx) 10846 # Green Hills C++ Compiler 10847 lt_prog_compiler_pic_CXX='-pic' 10848 ;; 10849 *) 10850 ;; 10851 esac 10852 ;; 10853 freebsd* | kfreebsd*-gnu) 10854 # FreeBSD uses GNU C++ 10855 ;; 10856 hpux9* | hpux10* | hpux11*) 10857 case $cc_basename in 10858 CC) 10859 lt_prog_compiler_wl_CXX='-Wl,' 10860 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10861 if test "$host_cpu" != ia64; then 10862 lt_prog_compiler_pic_CXX='+Z' 10863 fi 10864 ;; 10865 aCC) 10866 lt_prog_compiler_wl_CXX='-Wl,' 10867 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10868 case "$host_cpu" in 10869 hppa*64*|ia64*) 10870 # +Z the default 10871 ;; 10872 *) 10873 lt_prog_compiler_pic_CXX='+Z' 10874 ;; 10875 esac 10876 ;; 10877 *) 10878 ;; 10879 esac 10880 ;; 10881 irix5* | irix6* | nonstopux*) 10882 case $cc_basename in 10883 CC) 10884 lt_prog_compiler_wl_CXX='-Wl,' 10885 lt_prog_compiler_static_CXX='-non_shared' 10886 # CC pic flag -KPIC is the default. 10887 ;; 10888 *) 10889 ;; 10890 esac 10891 ;; 10892 linux*) 10893 case $cc_basename in 10894 KCC) 10895 # KAI C++ Compiler 10896 lt_prog_compiler_wl_CXX='--backend -Wl,' 10897 lt_prog_compiler_pic_CXX='-fPIC' 10898 ;; 10899 icpc) 10900 # Intel C++ 10901 lt_prog_compiler_wl_CXX='-Wl,' 10902 lt_prog_compiler_pic_CXX='-KPIC' 10903 lt_prog_compiler_static_CXX='-static' 10904 ;; 10905 cxx) 10906 # Compaq C++ 10907 # Make sure the PIC flag is empty. It appears that all Alpha 10908 # Linux and Compaq Tru64 Unix objects are PIC. 10909 lt_prog_compiler_pic_CXX= 10910 lt_prog_compiler_static_CXX='-non_shared' 10911 ;; 10912 *) 10913 ;; 10914 esac 10915 ;; 10916 lynxos*) 10917 ;; 10918 m88k*) 10919 ;; 10920 mvs*) 10921 case $cc_basename in 10922 cxx) 10923 lt_prog_compiler_pic_CXX='-W c,exportall' 10924 ;; 10925 *) 10926 ;; 10927 esac 10928 ;; 10929 netbsd*) 10930 ;; 10931 osf3* | osf4* | osf5*) 10932 case $cc_basename in 10933 KCC) 10934 lt_prog_compiler_wl_CXX='--backend -Wl,' 10935 ;; 10936 RCC) 10937 # Rational C++ 2.4.1 10938 lt_prog_compiler_pic_CXX='-pic' 10939 ;; 10940 cxx) 10941 # Digital/Compaq C++ 10942 lt_prog_compiler_wl_CXX='-Wl,' 10943 # Make sure the PIC flag is empty. It appears that all Alpha 10944 # Linux and Compaq Tru64 Unix objects are PIC. 10945 lt_prog_compiler_pic_CXX= 10946 lt_prog_compiler_static_CXX='-non_shared' 10947 ;; 10948 *) 10949 ;; 10950 esac 10951 ;; 10952 psos*) 10953 ;; 10954 sco*) 10955 case $cc_basename in 10956 CC) 10957 lt_prog_compiler_pic_CXX='-fPIC' 10958 ;; 10959 *) 10960 ;; 10961 esac 10962 ;; 10963 solaris*) 10964 case $cc_basename in 10965 CC) 10966 # Sun C++ 4.2, 5.x and Centerline C++ 10967 lt_prog_compiler_pic_CXX='-KPIC' 10968 lt_prog_compiler_static_CXX='-Bstatic' 10969 lt_prog_compiler_wl_CXX='-Qoption ld ' 10970 ;; 10971 gcx) 10972 # Green Hills C++ Compiler 10973 lt_prog_compiler_pic_CXX='-PIC' 10974 ;; 10975 *) 10976 ;; 10977 esac 10978 ;; 10979 sunos4*) 10980 case $cc_basename in 10981 CC) 10982 # Sun C++ 4.x 10983 lt_prog_compiler_pic_CXX='-pic' 10984 lt_prog_compiler_static_CXX='-Bstatic' 10985 ;; 10986 lcc) 10987 # Lucid 10988 lt_prog_compiler_pic_CXX='-pic' 10989 ;; 10990 *) 10991 ;; 10992 esac 10993 ;; 10994 tandem*) 10995 case $cc_basename in 10996 NCC) 10997 # NonStop-UX NCC 3.20 10998 lt_prog_compiler_pic_CXX='-KPIC' 10999 ;; 11000 *) 11001 ;; 11002 esac 11003 ;; 11004 unixware*) 11005 ;; 11006 vxworks*) 11007 ;; 11008 *) 11009 lt_prog_compiler_can_build_shared_CXX=no 11010 ;; 11011 esac 11012 fi 11013 11014echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11015echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11016 11017# 11018# Check to make sure the PIC flag actually works. 11019# 11020if test -n "$lt_prog_compiler_pic_CXX"; then 11021 11022echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11023echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11024if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11025 echo $ECHO_N "(cached) $ECHO_C" >&6 11026else 11027 lt_prog_compiler_pic_works_CXX=no 11028 ac_outfile=conftest.$ac_objext 11029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11030 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11031 # Insert the option either (1) after the last *FLAGS variable, or 11032 # (2) before a word containing "conftest.", or (3) at the end. 11033 # Note that $ac_compile itself does not contain backslashes and begins 11034 # with a dollar sign (not a hyphen), so the echo should work correctly. 11035 # The option is referenced via a variable to avoid confusing sed. 11036 lt_compile=`echo "$ac_compile" | $SED \ 11037 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11039 -e 's:$: $lt_compiler_flag:'` 11040 (eval echo "\"\$as_me:11040: $lt_compile\"" >&5) 11041 (eval "$lt_compile" 2>conftest.err) 11042 ac_status=$? 11043 cat conftest.err >&5 11044 echo "$as_me:11044: \$? = $ac_status" >&5 11045 if (exit $ac_status) && test -s "$ac_outfile"; then 11046 # The compiler can only warn and ignore the option if not recognized 11047 # So say no if there are warnings 11048 if test ! -s conftest.err; then 11049 lt_prog_compiler_pic_works_CXX=yes 11050 fi 11051 fi 11052 $rm conftest* 11053 11054fi 11055echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11056echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11057 11058if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11059 case $lt_prog_compiler_pic_CXX in 11060 "" | " "*) ;; 11061 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11062 esac 11063else 11064 lt_prog_compiler_pic_CXX= 11065 lt_prog_compiler_can_build_shared_CXX=no 11066fi 11067 11068fi 11069case "$host_os" in 11070 # For platforms which do not support PIC, -DPIC is meaningless: 11071 *djgpp*) 11072 lt_prog_compiler_pic_CXX= 11073 ;; 11074 *) 11075 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11076 ;; 11077esac 11078 11079echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11080echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11081if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11082 echo $ECHO_N "(cached) $ECHO_C" >&6 11083else 11084 lt_cv_prog_compiler_c_o_CXX=no 11085 $rm -r conftest 2>/dev/null 11086 mkdir conftest 11087 cd conftest 11088 mkdir out 11089 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11090 11091 lt_compiler_flag="-o out/conftest2.$ac_objext" 11092 # Insert the option either (1) after the last *FLAGS variable, or 11093 # (2) before a word containing "conftest.", or (3) at the end. 11094 # Note that $ac_compile itself does not contain backslashes and begins 11095 # with a dollar sign (not a hyphen), so the echo should work correctly. 11096 lt_compile=`echo "$ac_compile" | $SED \ 11097 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11099 -e 's:$: $lt_compiler_flag:'` 11100 (eval echo "\"\$as_me:11100: $lt_compile\"" >&5) 11101 (eval "$lt_compile" 2>out/conftest.err) 11102 ac_status=$? 11103 cat out/conftest.err >&5 11104 echo "$as_me:11104: \$? = $ac_status" >&5 11105 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11106 then 11107 # The compiler can only warn and ignore the option if not recognized 11108 # So say no if there are warnings 11109 if test ! -s out/conftest.err; then 11110 lt_cv_prog_compiler_c_o_CXX=yes 11111 fi 11112 fi 11113 chmod u+w . 11114 $rm conftest* 11115 # SGI C++ compiler will create directory out/ii_files/ for 11116 # template instantiation 11117 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11118 $rm out/* && rmdir out 11119 cd .. 11120 rmdir conftest 11121 $rm conftest* 11122 11123fi 11124echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11125echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11126 11127 11128hard_links="nottested" 11129if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11130 # do not overwrite the value of need_locks provided by the user 11131 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11132echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11133 hard_links=yes 11134 $rm conftest* 11135 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11136 touch conftest.a 11137 ln conftest.a conftest.b 2>&5 || hard_links=no 11138 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11139 echo "$as_me:$LINENO: result: $hard_links" >&5 11140echo "${ECHO_T}$hard_links" >&6 11141 if test "$hard_links" = no; then 11142 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11143echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11144 need_locks=warn 11145 fi 11146else 11147 need_locks=no 11148fi 11149 11150echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11151echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11152 11153 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11154 case $host_os in 11155 aix4* | aix5*) 11156 # If we're using GNU nm, then we don't want the "-C" option. 11157 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11158 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11159 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' 11160 else 11161 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' 11162 fi 11163 ;; 11164 pw32*) 11165 export_symbols_cmds_CXX="$ltdll_cmds" 11166 ;; 11167 cygwin* | mingw*) 11168 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11169 ;; 11170 *) 11171 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11172 ;; 11173 esac 11174 11175echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11176echo "${ECHO_T}$ld_shlibs_CXX" >&6 11177test "$ld_shlibs_CXX" = no && can_build_shared=no 11178 11179variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11180if test "$GCC" = yes; then 11181 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11182fi 11183 11184# 11185# Do we need to explicitly link libc? 11186# 11187case "x$archive_cmds_need_lc_CXX" in 11188x|xyes) 11189 # Assume -lc should be added 11190 archive_cmds_need_lc_CXX=yes 11191 11192 if test "$enable_shared" = yes && test "$GCC" = yes; then 11193 case $archive_cmds_CXX in 11194 *'~'*) 11195 # FIXME: we may have to deal with multi-command sequences. 11196 ;; 11197 '$CC '*) 11198 # Test whether the compiler implicitly links with -lc since on some 11199 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11200 # to ld, don't add -lc before -lgcc. 11201 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11202echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11203 $rm conftest* 11204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11205 11206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11207 (eval $ac_compile) 2>&5 11208 ac_status=$? 11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11210 (exit $ac_status); } 2>conftest.err; then 11211 soname=conftest 11212 lib=conftest 11213 libobjs=conftest.$ac_objext 11214 deplibs= 11215 wl=$lt_prog_compiler_wl_CXX 11216 compiler_flags=-v 11217 linker_flags=-v 11218 verstring= 11219 output_objdir=. 11220 libname=conftest 11221 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11222 allow_undefined_flag_CXX= 11223 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11224 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11225 ac_status=$? 11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11227 (exit $ac_status); } 11228 then 11229 archive_cmds_need_lc_CXX=no 11230 else 11231 archive_cmds_need_lc_CXX=yes 11232 fi 11233 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11234 else 11235 cat conftest.err 1>&5 11236 fi 11237 $rm conftest* 11238 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11239echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11240 ;; 11241 esac 11242 fi 11243 ;; 11244esac 11245 11246echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11247echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11248library_names_spec= 11249libname_spec='lib$name' 11250soname_spec= 11251shrext_cmds=".so" 11252postinstall_cmds= 11253postuninstall_cmds= 11254finish_cmds= 11255finish_eval= 11256shlibpath_var= 11257shlibpath_overrides_runpath=unknown 11258version_type=none 11259dynamic_linker="$host_os ld.so" 11260sys_lib_dlsearch_path_spec="/lib /usr/lib" 11261if test "$GCC" = yes; then 11262 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11263 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11264 # if the path contains ";" then we assume it to be the separator 11265 # otherwise default to the standard path separator (i.e. ":") - it is 11266 # assumed that no part of a normal pathname contains ";" but that should 11267 # okay in the real world where ";" in dirpaths is itself problematic. 11268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11269 else 11270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11271 fi 11272else 11273 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11274fi 11275need_lib_prefix=unknown 11276hardcode_into_libs=no 11277 11278# when you set need_version to no, make sure it does not cause -set_version 11279# flags to be left without arguments 11280need_version=unknown 11281 11282case $host_os in 11283aix3*) 11284 version_type=linux 11285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11286 shlibpath_var=LIBPATH 11287 11288 # AIX 3 has no versioning support, so we append a major version to the name. 11289 soname_spec='${libname}${release}${shared_ext}$major' 11290 ;; 11291 11292aix4* | aix5*) 11293 version_type=linux 11294 need_lib_prefix=no 11295 need_version=no 11296 hardcode_into_libs=yes 11297 if test "$host_cpu" = ia64; then 11298 # AIX 5 supports IA64 11299 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11300 shlibpath_var=LD_LIBRARY_PATH 11301 else 11302 # With GCC up to 2.95.x, collect2 would create an import file 11303 # for dependence libraries. The import file would start with 11304 # the line `#! .'. This would cause the generated library to 11305 # depend on `.', always an invalid library. This was fixed in 11306 # development snapshots of GCC prior to 3.0. 11307 case $host_os in 11308 aix4 | aix4.[01] | aix4.[01].*) 11309 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11310 echo ' yes ' 11311 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11312 : 11313 else 11314 can_build_shared=no 11315 fi 11316 ;; 11317 esac 11318 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11319 # soname into executable. Probably we can add versioning support to 11320 # collect2, so additional links can be useful in future. 11321 if test "$aix_use_runtimelinking" = yes; then 11322 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11323 # instead of lib<name>.a to let people know that these are not 11324 # typical AIX shared libraries. 11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11326 else 11327 # We preserve .a as extension for shared libraries through AIX4.2 11328 # and later when we are not doing run time linking. 11329 library_names_spec='${libname}${release}.a $libname.a' 11330 soname_spec='${libname}${release}${shared_ext}$major' 11331 fi 11332 shlibpath_var=LIBPATH 11333 fi 11334 ;; 11335 11336amigaos*) 11337 library_names_spec='$libname.ixlibrary $libname.a' 11338 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11339 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' 11340 ;; 11341 11342beos*) 11343 library_names_spec='${libname}${shared_ext}' 11344 dynamic_linker="$host_os ld.so" 11345 shlibpath_var=LIBRARY_PATH 11346 ;; 11347 11348bsdi4*) 11349 version_type=linux 11350 need_version=no 11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11352 soname_spec='${libname}${release}${shared_ext}$major' 11353 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11354 shlibpath_var=LD_LIBRARY_PATH 11355 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11356 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11357 # the default ld.so.conf also contains /usr/contrib/lib and 11358 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11359 # libtool to hard-code these into programs 11360 ;; 11361 11362cygwin* | mingw* | pw32*) 11363 version_type=windows 11364 shrext_cmds=".dll" 11365 need_version=no 11366 need_lib_prefix=no 11367 11368 case $GCC,$host_os in 11369 yes,cygwin* | yes,mingw* | yes,pw32*) 11370 library_names_spec='$libname.dll.a' 11371 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11372 postinstall_cmds='base_file=`basename \${file}`~ 11373 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11374 dldir=$destdir/`dirname \$dlpath`~ 11375 test -d \$dldir || mkdir -p \$dldir~ 11376 $install_prog $dir/$dlname \$dldir/$dlname' 11377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11378 dlpath=$dir/\$dldll~ 11379 $rm \$dlpath' 11380 shlibpath_overrides_runpath=yes 11381 11382 case $host_os in 11383 cygwin*) 11384 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11385 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11386 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11387 ;; 11388 mingw*) 11389 # MinGW DLLs use traditional 'lib' prefix 11390 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11391 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11392 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11393 # It is most probably a Windows format PATH printed by 11394 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11395 # path with ; separators, and with drive letters. We can handle the 11396 # drive letters (cygwin fileutils understands them), so leave them, 11397 # especially as we might pass files found there to a mingw objdump, 11398 # which wouldn't understand a cygwinified path. Ahh. 11399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11400 else 11401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11402 fi 11403 ;; 11404 pw32*) 11405 # pw32 DLLs use 'pw' prefix rather than 'lib' 11406 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 11407 ;; 11408 esac 11409 ;; 11410 11411 *) 11412 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11413 ;; 11414 esac 11415 dynamic_linker='Win32 ld.exe' 11416 # FIXME: first we should search . and the directory the executable is in 11417 shlibpath_var=PATH 11418 ;; 11419 11420darwin* | rhapsody*) 11421 dynamic_linker="$host_os dyld" 11422 version_type=darwin 11423 need_lib_prefix=no 11424 need_version=no 11425 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11426 soname_spec='${libname}${release}${major}$shared_ext' 11427 shlibpath_overrides_runpath=yes 11428 shlibpath_var=DYLD_LIBRARY_PATH 11429 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 11430 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11431 if test "$GCC" = yes; then 11432 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"` 11433 else 11434 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11435 fi 11436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11437 ;; 11438 11439dgux*) 11440 version_type=linux 11441 need_lib_prefix=no 11442 need_version=no 11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11444 soname_spec='${libname}${release}${shared_ext}$major' 11445 shlibpath_var=LD_LIBRARY_PATH 11446 ;; 11447 11448freebsd1*) 11449 dynamic_linker=no 11450 ;; 11451 11452kfreebsd*-gnu) 11453 version_type=linux 11454 need_lib_prefix=no 11455 need_version=no 11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11457 soname_spec='${libname}${release}${shared_ext}$major' 11458 shlibpath_var=LD_LIBRARY_PATH 11459 shlibpath_overrides_runpath=no 11460 hardcode_into_libs=yes 11461 dynamic_linker='GNU ld.so' 11462 ;; 11463 11464freebsd*) 11465 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 11466 version_type=freebsd-$objformat 11467 case $version_type in 11468 freebsd-elf*) 11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11470 need_version=no 11471 need_lib_prefix=no 11472 ;; 11473 freebsd-*) 11474 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11475 need_version=yes 11476 ;; 11477 esac 11478 shlibpath_var=LD_LIBRARY_PATH 11479 case $host_os in 11480 freebsd2*) 11481 shlibpath_overrides_runpath=yes 11482 ;; 11483 freebsd3.01* | freebsdelf3.01*) 11484 shlibpath_overrides_runpath=yes 11485 hardcode_into_libs=yes 11486 ;; 11487 *) # from 3.2 on 11488 shlibpath_overrides_runpath=no 11489 hardcode_into_libs=yes 11490 ;; 11491 esac 11492 ;; 11493 11494gnu*) 11495 version_type=linux 11496 need_lib_prefix=no 11497 need_version=no 11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11499 soname_spec='${libname}${release}${shared_ext}$major' 11500 shlibpath_var=LD_LIBRARY_PATH 11501 hardcode_into_libs=yes 11502 ;; 11503 11504hpux9* | hpux10* | hpux11*) 11505 # Give a soname corresponding to the major version so that dld.sl refuses to 11506 # link against other versions. 11507 version_type=sunos 11508 need_lib_prefix=no 11509 need_version=no 11510 case "$host_cpu" in 11511 ia64*) 11512 shrext_cmds='.so' 11513 hardcode_into_libs=yes 11514 dynamic_linker="$host_os dld.so" 11515 shlibpath_var=LD_LIBRARY_PATH 11516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11518 soname_spec='${libname}${release}${shared_ext}$major' 11519 if test "X$HPUX_IA64_MODE" = X32; then 11520 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11521 else 11522 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11523 fi 11524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11525 ;; 11526 hppa*64*) 11527 shrext_cmds='.sl' 11528 hardcode_into_libs=yes 11529 dynamic_linker="$host_os dld.sl" 11530 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11533 soname_spec='${libname}${release}${shared_ext}$major' 11534 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11536 ;; 11537 *) 11538 shrext_cmds='.sl' 11539 dynamic_linker="$host_os dld.sl" 11540 shlibpath_var=SHLIB_PATH 11541 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11543 soname_spec='${libname}${release}${shared_ext}$major' 11544 ;; 11545 esac 11546 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11547 postinstall_cmds='chmod 555 $lib' 11548 ;; 11549 11550irix5* | irix6* | nonstopux*) 11551 case $host_os in 11552 nonstopux*) version_type=nonstopux ;; 11553 *) 11554 if test "$lt_cv_prog_gnu_ld" = yes; then 11555 version_type=linux 11556 else 11557 version_type=irix 11558 fi ;; 11559 esac 11560 need_lib_prefix=no 11561 need_version=no 11562 soname_spec='${libname}${release}${shared_ext}$major' 11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11564 case $host_os in 11565 irix5* | nonstopux*) 11566 libsuff= shlibsuff= 11567 ;; 11568 *) 11569 case $LD in # libtool.m4 will add one of these switches to LD 11570 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11571 libsuff= shlibsuff= libmagic=32-bit;; 11572 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11573 libsuff=32 shlibsuff=N32 libmagic=N32;; 11574 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11575 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11576 *) libsuff= shlibsuff= libmagic=never-match;; 11577 esac 11578 ;; 11579 esac 11580 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11581 shlibpath_overrides_runpath=no 11582 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11583 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11584 hardcode_into_libs=yes 11585 ;; 11586 11587# No shared lib support for Linux oldld, aout, or coff. 11588linux*oldld* | linux*aout* | linux*coff*) 11589 dynamic_linker=no 11590 ;; 11591 11592# This must be Linux ELF. 11593linux*) 11594 version_type=linux 11595 need_lib_prefix=no 11596 need_version=no 11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11598 soname_spec='${libname}${release}${shared_ext}$major' 11599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11600 shlibpath_var=LD_LIBRARY_PATH 11601 shlibpath_overrides_runpath=no 11602 # This implies no fast_install, which is unacceptable. 11603 # Some rework will be needed to allow for fast_install 11604 # before this can be enabled. 11605 hardcode_into_libs=yes 11606 11607 # find out which ABI we are using 11608 libsuff= 11609 case "$host_cpu" in 11610 x86_64*|s390x*|powerpc64*) 11611 echo '#line 11611 "configure"' > conftest.$ac_ext 11612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11613 (eval $ac_compile) 2>&5 11614 ac_status=$? 11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11616 (exit $ac_status); }; then 11617 case `/usr/bin/file conftest.$ac_objext` in 11618 *64-bit*) 11619 libsuff=64 11620 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 11621 ;; 11622 esac 11623 fi 11624 rm -rf conftest* 11625 ;; 11626 esac 11627 11628 # Append ld.so.conf contents to the search path 11629 if test -f /etc/ld.so.conf; then 11630 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 11631 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 11632 fi 11633 11634 # We used to test for /lib/ld.so.1 and disable shared libraries on 11635 # powerpc, because MkLinux only supported shared libraries with the 11636 # GNU dynamic linker. Since this was broken with cross compilers, 11637 # most powerpc-linux boxes support dynamic linking these days and 11638 # people can always --disable-shared, the test was removed, and we 11639 # assume the GNU/Linux dynamic linker is in use. 11640 dynamic_linker='GNU/Linux ld.so' 11641 ;; 11642 11643knetbsd*-gnu) 11644 version_type=linux 11645 need_lib_prefix=no 11646 need_version=no 11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11648 soname_spec='${libname}${release}${shared_ext}$major' 11649 shlibpath_var=LD_LIBRARY_PATH 11650 shlibpath_overrides_runpath=no 11651 hardcode_into_libs=yes 11652 dynamic_linker='GNU ld.so' 11653 ;; 11654 11655netbsd*) 11656 version_type=sunos 11657 need_lib_prefix=no 11658 need_version=no 11659 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11662 dynamic_linker='NetBSD (a.out) ld.so' 11663 else 11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11665 soname_spec='${libname}${release}${shared_ext}$major' 11666 dynamic_linker='NetBSD ld.elf_so' 11667 fi 11668 shlibpath_var=LD_LIBRARY_PATH 11669 shlibpath_overrides_runpath=yes 11670 hardcode_into_libs=yes 11671 ;; 11672 11673newsos6) 11674 version_type=linux 11675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11676 shlibpath_var=LD_LIBRARY_PATH 11677 shlibpath_overrides_runpath=yes 11678 ;; 11679 11680nto-qnx*) 11681 version_type=linux 11682 need_lib_prefix=no 11683 need_version=no 11684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11685 soname_spec='${libname}${release}${shared_ext}$major' 11686 shlibpath_var=LD_LIBRARY_PATH 11687 shlibpath_overrides_runpath=yes 11688 ;; 11689 11690openbsd*) 11691 version_type=sunos 11692 need_lib_prefix=no 11693 need_version=yes 11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11696 shlibpath_var=LD_LIBRARY_PATH 11697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11698 case $host_os in 11699 openbsd2.[89] | openbsd2.[89].*) 11700 shlibpath_overrides_runpath=no 11701 ;; 11702 *) 11703 shlibpath_overrides_runpath=yes 11704 ;; 11705 esac 11706 else 11707 shlibpath_overrides_runpath=yes 11708 fi 11709 ;; 11710 11711os2*) 11712 libname_spec='$name' 11713 shrext_cmds=".dll" 11714 need_lib_prefix=no 11715 library_names_spec='$libname${shared_ext} $libname.a' 11716 dynamic_linker='OS/2 ld.exe' 11717 shlibpath_var=LIBPATH 11718 ;; 11719 11720osf3* | osf4* | osf5*) 11721 version_type=osf 11722 need_lib_prefix=no 11723 need_version=no 11724 soname_spec='${libname}${release}${shared_ext}$major' 11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11726 shlibpath_var=LD_LIBRARY_PATH 11727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11728 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11729 ;; 11730 11731sco3.2v5*) 11732 version_type=osf 11733 soname_spec='${libname}${release}${shared_ext}$major' 11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11735 shlibpath_var=LD_LIBRARY_PATH 11736 ;; 11737 11738solaris*) 11739 version_type=linux 11740 need_lib_prefix=no 11741 need_version=no 11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11743 soname_spec='${libname}${release}${shared_ext}$major' 11744 shlibpath_var=LD_LIBRARY_PATH 11745 shlibpath_overrides_runpath=yes 11746 hardcode_into_libs=yes 11747 # ldd complains unless libraries are executable 11748 postinstall_cmds='chmod +x $lib' 11749 ;; 11750 11751sunos4*) 11752 version_type=sunos 11753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11755 shlibpath_var=LD_LIBRARY_PATH 11756 shlibpath_overrides_runpath=yes 11757 if test "$with_gnu_ld" = yes; then 11758 need_lib_prefix=no 11759 fi 11760 need_version=yes 11761 ;; 11762 11763sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11764 version_type=linux 11765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11766 soname_spec='${libname}${release}${shared_ext}$major' 11767 shlibpath_var=LD_LIBRARY_PATH 11768 case $host_vendor in 11769 sni) 11770 shlibpath_overrides_runpath=no 11771 need_lib_prefix=no 11772 export_dynamic_flag_spec='${wl}-Blargedynsym' 11773 runpath_var=LD_RUN_PATH 11774 ;; 11775 siemens) 11776 need_lib_prefix=no 11777 ;; 11778 motorola) 11779 need_lib_prefix=no 11780 need_version=no 11781 shlibpath_overrides_runpath=no 11782 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11783 ;; 11784 esac 11785 ;; 11786 11787sysv4*MP*) 11788 if test -d /usr/nec ;then 11789 version_type=linux 11790 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11791 soname_spec='$libname${shared_ext}.$major' 11792 shlibpath_var=LD_LIBRARY_PATH 11793 fi 11794 ;; 11795 11796uts4*) 11797 version_type=linux 11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11799 soname_spec='${libname}${release}${shared_ext}$major' 11800 shlibpath_var=LD_LIBRARY_PATH 11801 ;; 11802 11803*) 11804 dynamic_linker=no 11805 ;; 11806esac 11807echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11808echo "${ECHO_T}$dynamic_linker" >&6 11809test "$dynamic_linker" = no && can_build_shared=no 11810 11811echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11812echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 11813hardcode_action_CXX= 11814if test -n "$hardcode_libdir_flag_spec_CXX" || \ 11815 test -n "$runpath_var CXX" || \ 11816 test "X$hardcode_automatic_CXX"="Xyes" ; then 11817 11818 # We can hardcode non-existant directories. 11819 if test "$hardcode_direct_CXX" != no && 11820 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11821 # have to relink, otherwise we might link with an installed library 11822 # when we should be linking with a yet-to-be-installed one 11823 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 11824 test "$hardcode_minus_L_CXX" != no; then 11825 # Linking always hardcodes the temporary library directory. 11826 hardcode_action_CXX=relink 11827 else 11828 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11829 hardcode_action_CXX=immediate 11830 fi 11831else 11832 # We cannot hardcode anything, or else we can only hardcode existing 11833 # directories. 11834 hardcode_action_CXX=unsupported 11835fi 11836echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 11837echo "${ECHO_T}$hardcode_action_CXX" >&6 11838 11839if test "$hardcode_action_CXX" = relink; then 11840 # Fast installation is not supported 11841 enable_fast_install=no 11842elif test "$shlibpath_overrides_runpath" = yes || 11843 test "$enable_shared" = no; then 11844 # Fast installation is not necessary 11845 enable_fast_install=needless 11846fi 11847 11848striplib= 11849old_striplib= 11850echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11851echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 11852if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 11853 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11854 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11855 echo "$as_me:$LINENO: result: yes" >&5 11856echo "${ECHO_T}yes" >&6 11857else 11858# FIXME - insert some real tests, host_os isn't really good enough 11859 case $host_os in 11860 darwin*) 11861 if test -n "$STRIP" ; then 11862 striplib="$STRIP -x" 11863 echo "$as_me:$LINENO: result: yes" >&5 11864echo "${ECHO_T}yes" >&6 11865 else 11866 echo "$as_me:$LINENO: result: no" >&5 11867echo "${ECHO_T}no" >&6 11868fi 11869 ;; 11870 *) 11871 echo "$as_me:$LINENO: result: no" >&5 11872echo "${ECHO_T}no" >&6 11873 ;; 11874 esac 11875fi 11876 11877if test "x$enable_dlopen" != xyes; then 11878 enable_dlopen=unknown 11879 enable_dlopen_self=unknown 11880 enable_dlopen_self_static=unknown 11881else 11882 lt_cv_dlopen=no 11883 lt_cv_dlopen_libs= 11884 11885 case $host_os in 11886 beos*) 11887 lt_cv_dlopen="load_add_on" 11888 lt_cv_dlopen_libs= 11889 lt_cv_dlopen_self=yes 11890 ;; 11891 11892 mingw* | pw32*) 11893 lt_cv_dlopen="LoadLibrary" 11894 lt_cv_dlopen_libs= 11895 ;; 11896 11897 cygwin*) 11898 lt_cv_dlopen="dlopen" 11899 lt_cv_dlopen_libs= 11900 ;; 11901 11902 darwin*) 11903 # if libdl is installed we need to link against it 11904 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11905echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11906if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11907 echo $ECHO_N "(cached) $ECHO_C" >&6 11908else 11909 ac_check_lib_save_LIBS=$LIBS 11910LIBS="-ldl $LIBS" 11911cat >conftest.$ac_ext <<_ACEOF 11912/* confdefs.h. */ 11913_ACEOF 11914cat confdefs.h >>conftest.$ac_ext 11915cat >>conftest.$ac_ext <<_ACEOF 11916/* end confdefs.h. */ 11917 11918/* Override any gcc2 internal prototype to avoid an error. */ 11919#ifdef __cplusplus 11920extern "C" 11921#endif 11922/* We use char because int might match the return type of a gcc2 11923 builtin and then its argument prototype would still apply. */ 11924char dlopen (); 11925int 11926main () 11927{ 11928dlopen (); 11929 ; 11930 return 0; 11931} 11932_ACEOF 11933rm -f conftest.$ac_objext conftest$ac_exeext 11934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11935 (eval $ac_link) 2>conftest.er1 11936 ac_status=$? 11937 grep -v '^ *+' conftest.er1 >conftest.err 11938 rm -f conftest.er1 11939 cat conftest.err >&5 11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11941 (exit $ac_status); } && 11942 { ac_try='test -z "$ac_cxx_werror_flag" 11943 || test ! -s conftest.err' 11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11945 (eval $ac_try) 2>&5 11946 ac_status=$? 11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11948 (exit $ac_status); }; } && 11949 { ac_try='test -s conftest$ac_exeext' 11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11951 (eval $ac_try) 2>&5 11952 ac_status=$? 11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11954 (exit $ac_status); }; }; then 11955 ac_cv_lib_dl_dlopen=yes 11956else 11957 echo "$as_me: failed program was:" >&5 11958sed 's/^/| /' conftest.$ac_ext >&5 11959 11960ac_cv_lib_dl_dlopen=no 11961fi 11962rm -f conftest.err conftest.$ac_objext \ 11963 conftest$ac_exeext conftest.$ac_ext 11964LIBS=$ac_check_lib_save_LIBS 11965fi 11966echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11967echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11968if test $ac_cv_lib_dl_dlopen = yes; then 11969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11970else 11971 11972 lt_cv_dlopen="dyld" 11973 lt_cv_dlopen_libs= 11974 lt_cv_dlopen_self=yes 11975 11976fi 11977 11978 ;; 11979 11980 *) 11981 echo "$as_me:$LINENO: checking for shl_load" >&5 11982echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 11983if test "${ac_cv_func_shl_load+set}" = set; then 11984 echo $ECHO_N "(cached) $ECHO_C" >&6 11985else 11986 cat >conftest.$ac_ext <<_ACEOF 11987/* confdefs.h. */ 11988_ACEOF 11989cat confdefs.h >>conftest.$ac_ext 11990cat >>conftest.$ac_ext <<_ACEOF 11991/* end confdefs.h. */ 11992/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11993 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11994#define shl_load innocuous_shl_load 11995 11996/* System header to define __stub macros and hopefully few prototypes, 11997 which can conflict with char shl_load (); below. 11998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11999 <limits.h> exists even on freestanding compilers. */ 12000 12001#ifdef __STDC__ 12002# include <limits.h> 12003#else 12004# include <assert.h> 12005#endif 12006 12007#undef shl_load 12008 12009/* Override any gcc2 internal prototype to avoid an error. */ 12010#ifdef __cplusplus 12011extern "C" 12012{ 12013#endif 12014/* We use char because int might match the return type of a gcc2 12015 builtin and then its argument prototype would still apply. */ 12016char shl_load (); 12017/* The GNU C library defines this for functions which it implements 12018 to always fail with ENOSYS. Some functions are actually named 12019 something starting with __ and the normal name is an alias. */ 12020#if defined (__stub_shl_load) || defined (__stub___shl_load) 12021choke me 12022#else 12023char (*f) () = shl_load; 12024#endif 12025#ifdef __cplusplus 12026} 12027#endif 12028 12029int 12030main () 12031{ 12032return f != shl_load; 12033 ; 12034 return 0; 12035} 12036_ACEOF 12037rm -f conftest.$ac_objext conftest$ac_exeext 12038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12039 (eval $ac_link) 2>conftest.er1 12040 ac_status=$? 12041 grep -v '^ *+' conftest.er1 >conftest.err 12042 rm -f conftest.er1 12043 cat conftest.err >&5 12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12045 (exit $ac_status); } && 12046 { ac_try='test -z "$ac_cxx_werror_flag" 12047 || test ! -s conftest.err' 12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12049 (eval $ac_try) 2>&5 12050 ac_status=$? 12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12052 (exit $ac_status); }; } && 12053 { ac_try='test -s conftest$ac_exeext' 12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12055 (eval $ac_try) 2>&5 12056 ac_status=$? 12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12058 (exit $ac_status); }; }; then 12059 ac_cv_func_shl_load=yes 12060else 12061 echo "$as_me: failed program was:" >&5 12062sed 's/^/| /' conftest.$ac_ext >&5 12063 12064ac_cv_func_shl_load=no 12065fi 12066rm -f conftest.err conftest.$ac_objext \ 12067 conftest$ac_exeext conftest.$ac_ext 12068fi 12069echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12070echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12071if test $ac_cv_func_shl_load = yes; then 12072 lt_cv_dlopen="shl_load" 12073else 12074 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12075echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12076if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12077 echo $ECHO_N "(cached) $ECHO_C" >&6 12078else 12079 ac_check_lib_save_LIBS=$LIBS 12080LIBS="-ldld $LIBS" 12081cat >conftest.$ac_ext <<_ACEOF 12082/* confdefs.h. */ 12083_ACEOF 12084cat confdefs.h >>conftest.$ac_ext 12085cat >>conftest.$ac_ext <<_ACEOF 12086/* end confdefs.h. */ 12087 12088/* Override any gcc2 internal prototype to avoid an error. */ 12089#ifdef __cplusplus 12090extern "C" 12091#endif 12092/* We use char because int might match the return type of a gcc2 12093 builtin and then its argument prototype would still apply. */ 12094char shl_load (); 12095int 12096main () 12097{ 12098shl_load (); 12099 ; 12100 return 0; 12101} 12102_ACEOF 12103rm -f conftest.$ac_objext conftest$ac_exeext 12104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12105 (eval $ac_link) 2>conftest.er1 12106 ac_status=$? 12107 grep -v '^ *+' conftest.er1 >conftest.err 12108 rm -f conftest.er1 12109 cat conftest.err >&5 12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12111 (exit $ac_status); } && 12112 { ac_try='test -z "$ac_cxx_werror_flag" 12113 || test ! -s conftest.err' 12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12115 (eval $ac_try) 2>&5 12116 ac_status=$? 12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12118 (exit $ac_status); }; } && 12119 { ac_try='test -s conftest$ac_exeext' 12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12121 (eval $ac_try) 2>&5 12122 ac_status=$? 12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12124 (exit $ac_status); }; }; then 12125 ac_cv_lib_dld_shl_load=yes 12126else 12127 echo "$as_me: failed program was:" >&5 12128sed 's/^/| /' conftest.$ac_ext >&5 12129 12130ac_cv_lib_dld_shl_load=no 12131fi 12132rm -f conftest.err conftest.$ac_objext \ 12133 conftest$ac_exeext conftest.$ac_ext 12134LIBS=$ac_check_lib_save_LIBS 12135fi 12136echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12137echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12138if test $ac_cv_lib_dld_shl_load = yes; then 12139 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12140else 12141 echo "$as_me:$LINENO: checking for dlopen" >&5 12142echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12143if test "${ac_cv_func_dlopen+set}" = set; then 12144 echo $ECHO_N "(cached) $ECHO_C" >&6 12145else 12146 cat >conftest.$ac_ext <<_ACEOF 12147/* confdefs.h. */ 12148_ACEOF 12149cat confdefs.h >>conftest.$ac_ext 12150cat >>conftest.$ac_ext <<_ACEOF 12151/* end confdefs.h. */ 12152/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12153 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12154#define dlopen innocuous_dlopen 12155 12156/* System header to define __stub macros and hopefully few prototypes, 12157 which can conflict with char dlopen (); below. 12158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12159 <limits.h> exists even on freestanding compilers. */ 12160 12161#ifdef __STDC__ 12162# include <limits.h> 12163#else 12164# include <assert.h> 12165#endif 12166 12167#undef dlopen 12168 12169/* Override any gcc2 internal prototype to avoid an error. */ 12170#ifdef __cplusplus 12171extern "C" 12172{ 12173#endif 12174/* We use char because int might match the return type of a gcc2 12175 builtin and then its argument prototype would still apply. */ 12176char dlopen (); 12177/* The GNU C library defines this for functions which it implements 12178 to always fail with ENOSYS. Some functions are actually named 12179 something starting with __ and the normal name is an alias. */ 12180#if defined (__stub_dlopen) || defined (__stub___dlopen) 12181choke me 12182#else 12183char (*f) () = dlopen; 12184#endif 12185#ifdef __cplusplus 12186} 12187#endif 12188 12189int 12190main () 12191{ 12192return f != dlopen; 12193 ; 12194 return 0; 12195} 12196_ACEOF 12197rm -f conftest.$ac_objext conftest$ac_exeext 12198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12199 (eval $ac_link) 2>conftest.er1 12200 ac_status=$? 12201 grep -v '^ *+' conftest.er1 >conftest.err 12202 rm -f conftest.er1 12203 cat conftest.err >&5 12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12205 (exit $ac_status); } && 12206 { ac_try='test -z "$ac_cxx_werror_flag" 12207 || test ! -s conftest.err' 12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12209 (eval $ac_try) 2>&5 12210 ac_status=$? 12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12212 (exit $ac_status); }; } && 12213 { ac_try='test -s conftest$ac_exeext' 12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12215 (eval $ac_try) 2>&5 12216 ac_status=$? 12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12218 (exit $ac_status); }; }; then 12219 ac_cv_func_dlopen=yes 12220else 12221 echo "$as_me: failed program was:" >&5 12222sed 's/^/| /' conftest.$ac_ext >&5 12223 12224ac_cv_func_dlopen=no 12225fi 12226rm -f conftest.err conftest.$ac_objext \ 12227 conftest$ac_exeext conftest.$ac_ext 12228fi 12229echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12230echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12231if test $ac_cv_func_dlopen = yes; then 12232 lt_cv_dlopen="dlopen" 12233else 12234 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12235echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12236if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12237 echo $ECHO_N "(cached) $ECHO_C" >&6 12238else 12239 ac_check_lib_save_LIBS=$LIBS 12240LIBS="-ldl $LIBS" 12241cat >conftest.$ac_ext <<_ACEOF 12242/* confdefs.h. */ 12243_ACEOF 12244cat confdefs.h >>conftest.$ac_ext 12245cat >>conftest.$ac_ext <<_ACEOF 12246/* end confdefs.h. */ 12247 12248/* Override any gcc2 internal prototype to avoid an error. */ 12249#ifdef __cplusplus 12250extern "C" 12251#endif 12252/* We use char because int might match the return type of a gcc2 12253 builtin and then its argument prototype would still apply. */ 12254char dlopen (); 12255int 12256main () 12257{ 12258dlopen (); 12259 ; 12260 return 0; 12261} 12262_ACEOF 12263rm -f conftest.$ac_objext conftest$ac_exeext 12264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12265 (eval $ac_link) 2>conftest.er1 12266 ac_status=$? 12267 grep -v '^ *+' conftest.er1 >conftest.err 12268 rm -f conftest.er1 12269 cat conftest.err >&5 12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12271 (exit $ac_status); } && 12272 { ac_try='test -z "$ac_cxx_werror_flag" 12273 || test ! -s conftest.err' 12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12275 (eval $ac_try) 2>&5 12276 ac_status=$? 12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12278 (exit $ac_status); }; } && 12279 { ac_try='test -s conftest$ac_exeext' 12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12281 (eval $ac_try) 2>&5 12282 ac_status=$? 12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12284 (exit $ac_status); }; }; then 12285 ac_cv_lib_dl_dlopen=yes 12286else 12287 echo "$as_me: failed program was:" >&5 12288sed 's/^/| /' conftest.$ac_ext >&5 12289 12290ac_cv_lib_dl_dlopen=no 12291fi 12292rm -f conftest.err conftest.$ac_objext \ 12293 conftest$ac_exeext conftest.$ac_ext 12294LIBS=$ac_check_lib_save_LIBS 12295fi 12296echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12297echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12298if test $ac_cv_lib_dl_dlopen = yes; then 12299 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12300else 12301 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12302echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12303if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12304 echo $ECHO_N "(cached) $ECHO_C" >&6 12305else 12306 ac_check_lib_save_LIBS=$LIBS 12307LIBS="-lsvld $LIBS" 12308cat >conftest.$ac_ext <<_ACEOF 12309/* confdefs.h. */ 12310_ACEOF 12311cat confdefs.h >>conftest.$ac_ext 12312cat >>conftest.$ac_ext <<_ACEOF 12313/* end confdefs.h. */ 12314 12315/* Override any gcc2 internal prototype to avoid an error. */ 12316#ifdef __cplusplus 12317extern "C" 12318#endif 12319/* We use char because int might match the return type of a gcc2 12320 builtin and then its argument prototype would still apply. */ 12321char dlopen (); 12322int 12323main () 12324{ 12325dlopen (); 12326 ; 12327 return 0; 12328} 12329_ACEOF 12330rm -f conftest.$ac_objext conftest$ac_exeext 12331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12332 (eval $ac_link) 2>conftest.er1 12333 ac_status=$? 12334 grep -v '^ *+' conftest.er1 >conftest.err 12335 rm -f conftest.er1 12336 cat conftest.err >&5 12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12338 (exit $ac_status); } && 12339 { ac_try='test -z "$ac_cxx_werror_flag" 12340 || test ! -s conftest.err' 12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12342 (eval $ac_try) 2>&5 12343 ac_status=$? 12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12345 (exit $ac_status); }; } && 12346 { ac_try='test -s conftest$ac_exeext' 12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12348 (eval $ac_try) 2>&5 12349 ac_status=$? 12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12351 (exit $ac_status); }; }; then 12352 ac_cv_lib_svld_dlopen=yes 12353else 12354 echo "$as_me: failed program was:" >&5 12355sed 's/^/| /' conftest.$ac_ext >&5 12356 12357ac_cv_lib_svld_dlopen=no 12358fi 12359rm -f conftest.err conftest.$ac_objext \ 12360 conftest$ac_exeext conftest.$ac_ext 12361LIBS=$ac_check_lib_save_LIBS 12362fi 12363echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12364echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12365if test $ac_cv_lib_svld_dlopen = yes; then 12366 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12367else 12368 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12369echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12370if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12371 echo $ECHO_N "(cached) $ECHO_C" >&6 12372else 12373 ac_check_lib_save_LIBS=$LIBS 12374LIBS="-ldld $LIBS" 12375cat >conftest.$ac_ext <<_ACEOF 12376/* confdefs.h. */ 12377_ACEOF 12378cat confdefs.h >>conftest.$ac_ext 12379cat >>conftest.$ac_ext <<_ACEOF 12380/* end confdefs.h. */ 12381 12382/* Override any gcc2 internal prototype to avoid an error. */ 12383#ifdef __cplusplus 12384extern "C" 12385#endif 12386/* We use char because int might match the return type of a gcc2 12387 builtin and then its argument prototype would still apply. */ 12388char dld_link (); 12389int 12390main () 12391{ 12392dld_link (); 12393 ; 12394 return 0; 12395} 12396_ACEOF 12397rm -f conftest.$ac_objext conftest$ac_exeext 12398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12399 (eval $ac_link) 2>conftest.er1 12400 ac_status=$? 12401 grep -v '^ *+' conftest.er1 >conftest.err 12402 rm -f conftest.er1 12403 cat conftest.err >&5 12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12405 (exit $ac_status); } && 12406 { ac_try='test -z "$ac_cxx_werror_flag" 12407 || test ! -s conftest.err' 12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12409 (eval $ac_try) 2>&5 12410 ac_status=$? 12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12412 (exit $ac_status); }; } && 12413 { ac_try='test -s conftest$ac_exeext' 12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12415 (eval $ac_try) 2>&5 12416 ac_status=$? 12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12418 (exit $ac_status); }; }; then 12419 ac_cv_lib_dld_dld_link=yes 12420else 12421 echo "$as_me: failed program was:" >&5 12422sed 's/^/| /' conftest.$ac_ext >&5 12423 12424ac_cv_lib_dld_dld_link=no 12425fi 12426rm -f conftest.err conftest.$ac_objext \ 12427 conftest$ac_exeext conftest.$ac_ext 12428LIBS=$ac_check_lib_save_LIBS 12429fi 12430echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12431echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12432if test $ac_cv_lib_dld_dld_link = yes; then 12433 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12434fi 12435 12436 12437fi 12438 12439 12440fi 12441 12442 12443fi 12444 12445 12446fi 12447 12448 12449fi 12450 12451 ;; 12452 esac 12453 12454 if test "x$lt_cv_dlopen" != xno; then 12455 enable_dlopen=yes 12456 else 12457 enable_dlopen=no 12458 fi 12459 12460 case $lt_cv_dlopen in 12461 dlopen) 12462 save_CPPFLAGS="$CPPFLAGS" 12463 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12464 12465 save_LDFLAGS="$LDFLAGS" 12466 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12467 12468 save_LIBS="$LIBS" 12469 LIBS="$lt_cv_dlopen_libs $LIBS" 12470 12471 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12472echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12473if test "${lt_cv_dlopen_self+set}" = set; then 12474 echo $ECHO_N "(cached) $ECHO_C" >&6 12475else 12476 if test "$cross_compiling" = yes; then : 12477 lt_cv_dlopen_self=cross 12478else 12479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12480 lt_status=$lt_dlunknown 12481 cat > conftest.$ac_ext <<EOF 12482#line 12482 "configure" 12483#include "confdefs.h" 12484 12485#if HAVE_DLFCN_H 12486#include <dlfcn.h> 12487#endif 12488 12489#include <stdio.h> 12490 12491#ifdef RTLD_GLOBAL 12492# define LT_DLGLOBAL RTLD_GLOBAL 12493#else 12494# ifdef DL_GLOBAL 12495# define LT_DLGLOBAL DL_GLOBAL 12496# else 12497# define LT_DLGLOBAL 0 12498# endif 12499#endif 12500 12501/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12502 find out it does not work in some platform. */ 12503#ifndef LT_DLLAZY_OR_NOW 12504# ifdef RTLD_LAZY 12505# define LT_DLLAZY_OR_NOW RTLD_LAZY 12506# else 12507# ifdef DL_LAZY 12508# define LT_DLLAZY_OR_NOW DL_LAZY 12509# else 12510# ifdef RTLD_NOW 12511# define LT_DLLAZY_OR_NOW RTLD_NOW 12512# else 12513# ifdef DL_NOW 12514# define LT_DLLAZY_OR_NOW DL_NOW 12515# else 12516# define LT_DLLAZY_OR_NOW 0 12517# endif 12518# endif 12519# endif 12520# endif 12521#endif 12522 12523#ifdef __cplusplus 12524extern "C" void exit (int); 12525#endif 12526 12527void fnord() { int i=42;} 12528int main () 12529{ 12530 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12531 int status = $lt_dlunknown; 12532 12533 if (self) 12534 { 12535 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12536 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12537 /* dlclose (self); */ 12538 } 12539 12540 exit (status); 12541} 12542EOF 12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12544 (eval $ac_link) 2>&5 12545 ac_status=$? 12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12547 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12548 (./conftest; exit; ) 2>/dev/null 12549 lt_status=$? 12550 case x$lt_status in 12551 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12552 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12553 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12554 esac 12555 else : 12556 # compilation failed 12557 lt_cv_dlopen_self=no 12558 fi 12559fi 12560rm -fr conftest* 12561 12562 12563fi 12564echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12565echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12566 12567 if test "x$lt_cv_dlopen_self" = xyes; then 12568 LDFLAGS="$LDFLAGS $link_static_flag" 12569 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12570echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12571if test "${lt_cv_dlopen_self_static+set}" = set; then 12572 echo $ECHO_N "(cached) $ECHO_C" >&6 12573else 12574 if test "$cross_compiling" = yes; then : 12575 lt_cv_dlopen_self_static=cross 12576else 12577 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12578 lt_status=$lt_dlunknown 12579 cat > conftest.$ac_ext <<EOF 12580#line 12580 "configure" 12581#include "confdefs.h" 12582 12583#if HAVE_DLFCN_H 12584#include <dlfcn.h> 12585#endif 12586 12587#include <stdio.h> 12588 12589#ifdef RTLD_GLOBAL 12590# define LT_DLGLOBAL RTLD_GLOBAL 12591#else 12592# ifdef DL_GLOBAL 12593# define LT_DLGLOBAL DL_GLOBAL 12594# else 12595# define LT_DLGLOBAL 0 12596# endif 12597#endif 12598 12599/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12600 find out it does not work in some platform. */ 12601#ifndef LT_DLLAZY_OR_NOW 12602# ifdef RTLD_LAZY 12603# define LT_DLLAZY_OR_NOW RTLD_LAZY 12604# else 12605# ifdef DL_LAZY 12606# define LT_DLLAZY_OR_NOW DL_LAZY 12607# else 12608# ifdef RTLD_NOW 12609# define LT_DLLAZY_OR_NOW RTLD_NOW 12610# else 12611# ifdef DL_NOW 12612# define LT_DLLAZY_OR_NOW DL_NOW 12613# else 12614# define LT_DLLAZY_OR_NOW 0 12615# endif 12616# endif 12617# endif 12618# endif 12619#endif 12620 12621#ifdef __cplusplus 12622extern "C" void exit (int); 12623#endif 12624 12625void fnord() { int i=42;} 12626int main () 12627{ 12628 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12629 int status = $lt_dlunknown; 12630 12631 if (self) 12632 { 12633 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12634 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12635 /* dlclose (self); */ 12636 } 12637 12638 exit (status); 12639} 12640EOF 12641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12642 (eval $ac_link) 2>&5 12643 ac_status=$? 12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12645 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12646 (./conftest; exit; ) 2>/dev/null 12647 lt_status=$? 12648 case x$lt_status in 12649 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12650 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12651 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12652 esac 12653 else : 12654 # compilation failed 12655 lt_cv_dlopen_self_static=no 12656 fi 12657fi 12658rm -fr conftest* 12659 12660 12661fi 12662echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12663echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 12664 fi 12665 12666 CPPFLAGS="$save_CPPFLAGS" 12667 LDFLAGS="$save_LDFLAGS" 12668 LIBS="$save_LIBS" 12669 ;; 12670 esac 12671 12672 case $lt_cv_dlopen_self in 12673 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12674 *) enable_dlopen_self=unknown ;; 12675 esac 12676 12677 case $lt_cv_dlopen_self_static in 12678 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12679 *) enable_dlopen_self_static=unknown ;; 12680 esac 12681fi 12682 12683 12684# The else clause should only fire when bootstrapping the 12685# libtool distribution, otherwise you forgot to ship ltmain.sh 12686# with your package, and you will get complaints that there are 12687# no rules to generate ltmain.sh. 12688if test -f "$ltmain"; then 12689 # See if we are running on zsh, and set the options which allow our commands through 12690 # without removal of \ escapes. 12691 if test -n "${ZSH_VERSION+set}" ; then 12692 setopt NO_GLOB_SUBST 12693 fi 12694 # Now quote all the things that may contain metacharacters while being 12695 # careful not to overquote the AC_SUBSTed values. We take copies of the 12696 # variables and quote the copies for generation of the libtool script. 12697 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 12698 SED SHELL STRIP \ 12699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12701 deplibs_check_method reload_flag reload_cmds need_locks \ 12702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12703 lt_cv_sys_global_symbol_to_c_name_address \ 12704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12705 old_postinstall_cmds old_postuninstall_cmds \ 12706 compiler_CXX \ 12707 CC_CXX \ 12708 LD_CXX \ 12709 lt_prog_compiler_wl_CXX \ 12710 lt_prog_compiler_pic_CXX \ 12711 lt_prog_compiler_static_CXX \ 12712 lt_prog_compiler_no_builtin_flag_CXX \ 12713 export_dynamic_flag_spec_CXX \ 12714 thread_safe_flag_spec_CXX \ 12715 whole_archive_flag_spec_CXX \ 12716 enable_shared_with_static_runtimes_CXX \ 12717 old_archive_cmds_CXX \ 12718 old_archive_from_new_cmds_CXX \ 12719 predep_objects_CXX \ 12720 postdep_objects_CXX \ 12721 predeps_CXX \ 12722 postdeps_CXX \ 12723 compiler_lib_search_path_CXX \ 12724 archive_cmds_CXX \ 12725 archive_expsym_cmds_CXX \ 12726 postinstall_cmds_CXX \ 12727 postuninstall_cmds_CXX \ 12728 old_archive_from_expsyms_cmds_CXX \ 12729 allow_undefined_flag_CXX \ 12730 no_undefined_flag_CXX \ 12731 export_symbols_cmds_CXX \ 12732 hardcode_libdir_flag_spec_CXX \ 12733 hardcode_libdir_flag_spec_ld_CXX \ 12734 hardcode_libdir_separator_CXX \ 12735 hardcode_automatic_CXX \ 12736 module_cmds_CXX \ 12737 module_expsym_cmds_CXX \ 12738 lt_cv_prog_compiler_c_o_CXX \ 12739 exclude_expsyms_CXX \ 12740 include_expsyms_CXX; do 12741 12742 case $var in 12743 old_archive_cmds_CXX | \ 12744 old_archive_from_new_cmds_CXX | \ 12745 archive_cmds_CXX | \ 12746 archive_expsym_cmds_CXX | \ 12747 module_cmds_CXX | \ 12748 module_expsym_cmds_CXX | \ 12749 old_archive_from_expsyms_cmds_CXX | \ 12750 export_symbols_cmds_CXX | \ 12751 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12752 postinstall_cmds | postuninstall_cmds | \ 12753 old_postinstall_cmds | old_postuninstall_cmds | \ 12754 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12755 # Double-quote double-evaled strings. 12756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12757 ;; 12758 *) 12759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12760 ;; 12761 esac 12762 done 12763 12764 case $lt_echo in 12765 *'\$0 --fallback-echo"') 12766 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12767 ;; 12768 esac 12769 12770cfgfile="$ofile" 12771 12772 cat <<__EOF__ >> "$cfgfile" 12773# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12774 12775# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12776 12777# Shell to use when invoking shell scripts. 12778SHELL=$lt_SHELL 12779 12780# Whether or not to build shared libraries. 12781build_libtool_libs=$enable_shared 12782 12783# Whether or not to build static libraries. 12784build_old_libs=$enable_static 12785 12786# Whether or not to add -lc for building shared libraries. 12787build_libtool_need_lc=$archive_cmds_need_lc_CXX 12788 12789# Whether or not to disallow shared libs when runtime libs are static 12790allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12791 12792# Whether or not to optimize for fast installation. 12793fast_install=$enable_fast_install 12794 12795# The host system. 12796host_alias=$host_alias 12797host=$host 12798 12799# An echo program that does not interpret backslashes. 12800echo=$lt_echo 12801 12802# The archiver. 12803AR=$lt_AR 12804AR_FLAGS=$lt_AR_FLAGS 12805 12806# A C compiler. 12807LTCC=$lt_LTCC 12808 12809# A language-specific compiler. 12810CC=$lt_compiler_CXX 12811 12812# Is the compiler the GNU C compiler? 12813with_gcc=$GCC_CXX 12814 12815# An ERE matcher. 12816EGREP=$lt_EGREP 12817 12818# The linker used to build libraries. 12819LD=$lt_LD_CXX 12820 12821# Whether we need hard or soft links. 12822LN_S=$lt_LN_S 12823 12824# A BSD-compatible nm program. 12825NM=$lt_NM 12826 12827# A symbol stripping program 12828STRIP=$lt_STRIP 12829 12830# Used to examine libraries when file_magic_cmd begins "file" 12831MAGIC_CMD=$MAGIC_CMD 12832 12833# Used on cygwin: DLL creation program. 12834DLLTOOL="$DLLTOOL" 12835 12836# Used on cygwin: object dumper. 12837OBJDUMP="$OBJDUMP" 12838 12839# Used on cygwin: assembler. 12840AS="$AS" 12841 12842# The name of the directory that contains temporary libtool files. 12843objdir=$objdir 12844 12845# How to create reloadable object files. 12846reload_flag=$lt_reload_flag 12847reload_cmds=$lt_reload_cmds 12848 12849# How to pass a linker flag through the compiler. 12850wl=$lt_lt_prog_compiler_wl_CXX 12851 12852# Object file suffix (normally "o"). 12853objext="$ac_objext" 12854 12855# Old archive suffix (normally "a"). 12856libext="$libext" 12857 12858# Shared library suffix (normally ".so"). 12859shrext_cmds='$shrext_cmds' 12860 12861# Executable file suffix (normally ""). 12862exeext="$exeext" 12863 12864# Additional compiler flags for building library objects. 12865pic_flag=$lt_lt_prog_compiler_pic_CXX 12866pic_mode=$pic_mode 12867 12868# What is the maximum length of a command? 12869max_cmd_len=$lt_cv_sys_max_cmd_len 12870 12871# Does compiler simultaneously support -c and -o options? 12872compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12873 12874# Must we lock files when doing compilation ? 12875need_locks=$lt_need_locks 12876 12877# Do we need the lib prefix for modules? 12878need_lib_prefix=$need_lib_prefix 12879 12880# Do we need a version for libraries? 12881need_version=$need_version 12882 12883# Whether dlopen is supported. 12884dlopen_support=$enable_dlopen 12885 12886# Whether dlopen of programs is supported. 12887dlopen_self=$enable_dlopen_self 12888 12889# Whether dlopen of statically linked programs is supported. 12890dlopen_self_static=$enable_dlopen_self_static 12891 12892# Compiler flag to prevent dynamic linking. 12893link_static_flag=$lt_lt_prog_compiler_static_CXX 12894 12895# Compiler flag to turn off builtin functions. 12896no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12897 12898# Compiler flag to allow reflexive dlopens. 12899export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12900 12901# Compiler flag to generate shared objects directly from archives. 12902whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12903 12904# Compiler flag to generate thread-safe objects. 12905thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12906 12907# Library versioning type. 12908version_type=$version_type 12909 12910# Format of library name prefix. 12911libname_spec=$lt_libname_spec 12912 12913# List of archive names. First name is the real one, the rest are links. 12914# The last name is the one that the linker finds with -lNAME. 12915library_names_spec=$lt_library_names_spec 12916 12917# The coded name of the library, if different from the real name. 12918soname_spec=$lt_soname_spec 12919 12920# Commands used to build and install an old-style archive. 12921RANLIB=$lt_RANLIB 12922old_archive_cmds=$lt_old_archive_cmds_CXX 12923old_postinstall_cmds=$lt_old_postinstall_cmds 12924old_postuninstall_cmds=$lt_old_postuninstall_cmds 12925 12926# Create an old-style archive from a shared archive. 12927old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12928 12929# Create a temporary old-style archive to link instead of a shared archive. 12930old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12931 12932# Commands used to build and install a shared archive. 12933archive_cmds=$lt_archive_cmds_CXX 12934archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12935postinstall_cmds=$lt_postinstall_cmds 12936postuninstall_cmds=$lt_postuninstall_cmds 12937 12938# Commands used to build a loadable module (assumed same as above if empty) 12939module_cmds=$lt_module_cmds_CXX 12940module_expsym_cmds=$lt_module_expsym_cmds_CXX 12941 12942# Commands to strip libraries. 12943old_striplib=$lt_old_striplib 12944striplib=$lt_striplib 12945 12946# Dependencies to place before the objects being linked to create a 12947# shared library. 12948predep_objects=$lt_predep_objects_CXX 12949 12950# Dependencies to place after the objects being linked to create a 12951# shared library. 12952postdep_objects=$lt_postdep_objects_CXX 12953 12954# Dependencies to place before the objects being linked to create a 12955# shared library. 12956predeps=$lt_predeps_CXX 12957 12958# Dependencies to place after the objects being linked to create a 12959# shared library. 12960postdeps=$lt_postdeps_CXX 12961 12962# The library search path used internally by the compiler when linking 12963# a shared library. 12964compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12965 12966# Method to check whether dependent libraries are shared objects. 12967deplibs_check_method=$lt_deplibs_check_method 12968 12969# Command to use when deplibs_check_method == file_magic. 12970file_magic_cmd=$lt_file_magic_cmd 12971 12972# Flag that allows shared libraries with undefined symbols to be built. 12973allow_undefined_flag=$lt_allow_undefined_flag_CXX 12974 12975# Flag that forces no undefined symbols. 12976no_undefined_flag=$lt_no_undefined_flag_CXX 12977 12978# Commands used to finish a libtool library installation in a directory. 12979finish_cmds=$lt_finish_cmds 12980 12981# Same as above, but a single script fragment to be evaled but not shown. 12982finish_eval=$lt_finish_eval 12983 12984# Take the output of nm and produce a listing of raw symbols and C names. 12985global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12986 12987# Transform the output of nm in a proper C declaration 12988global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12989 12990# Transform the output of nm in a C name address pair 12991global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12992 12993# This is the shared library runtime path variable. 12994runpath_var=$runpath_var 12995 12996# This is the shared library path variable. 12997shlibpath_var=$shlibpath_var 12998 12999# Is shlibpath searched before the hard-coded library search path? 13000shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13001 13002# How to hardcode a shared library path into an executable. 13003hardcode_action=$hardcode_action_CXX 13004 13005# Whether we should hardcode library paths into libraries. 13006hardcode_into_libs=$hardcode_into_libs 13007 13008# Flag to hardcode \$libdir into a binary during linking. 13009# This must work even if \$libdir does not exist. 13010hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13011 13012# If ld is used when linking, flag to hardcode \$libdir into 13013# a binary during linking. This must work even if \$libdir does 13014# not exist. 13015hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13016 13017# Whether we need a single -rpath flag with a separated argument. 13018hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13019 13020# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13021# resulting binary. 13022hardcode_direct=$hardcode_direct_CXX 13023 13024# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13025# resulting binary. 13026hardcode_minus_L=$hardcode_minus_L_CXX 13027 13028# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13029# the resulting binary. 13030hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13031 13032# Set to yes if building a shared library automatically hardcodes DIR into the library 13033# and all subsequent libraries and executables linked against it. 13034hardcode_automatic=$hardcode_automatic_CXX 13035 13036# Variables whose values should be saved in libtool wrapper scripts and 13037# restored at relink time. 13038variables_saved_for_relink="$variables_saved_for_relink" 13039 13040# Whether libtool must link a program against all its dependency libraries. 13041link_all_deplibs=$link_all_deplibs_CXX 13042 13043# Compile-time system search path for libraries 13044sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13045 13046# Run-time system search path for libraries 13047sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13048 13049# Fix the shell variable \$srcfile for the compiler. 13050fix_srcfile_path="$fix_srcfile_path_CXX" 13051 13052# Set to yes if exported symbols are required. 13053always_export_symbols=$always_export_symbols_CXX 13054 13055# The commands to list exported symbols. 13056export_symbols_cmds=$lt_export_symbols_cmds_CXX 13057 13058# The commands to extract the exported symbol list from a shared archive. 13059extract_expsyms_cmds=$lt_extract_expsyms_cmds 13060 13061# Symbols that should not be listed in the preloaded symbols. 13062exclude_expsyms=$lt_exclude_expsyms_CXX 13063 13064# Symbols that must always be exported. 13065include_expsyms=$lt_include_expsyms_CXX 13066 13067# ### END LIBTOOL TAG CONFIG: $tagname 13068 13069__EOF__ 13070 13071 13072else 13073 # If there is no Makefile yet, we rely on a make rule to execute 13074 # `config.status --recheck' to rerun these tests and create the 13075 # libtool script then. 13076 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13077 if test -f "$ltmain_in"; then 13078 test -f Makefile && make "$ltmain" 13079 fi 13080fi 13081 13082 13083ac_ext=c 13084ac_cpp='$CPP $CPPFLAGS' 13085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13087ac_compiler_gnu=$ac_cv_c_compiler_gnu 13088 13089CC=$lt_save_CC 13090LDCXX=$LD 13091LD=$lt_save_LD 13092GCC=$lt_save_GCC 13093with_gnu_ldcxx=$with_gnu_ld 13094with_gnu_ld=$lt_save_with_gnu_ld 13095lt_cv_path_LDCXX=$lt_cv_path_LD 13096lt_cv_path_LD=$lt_save_path_LD 13097lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13098lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13099 13100 else 13101 tagname="" 13102 fi 13103 ;; 13104 13105 F77) 13106 if test -n "$F77" && test "X$F77" != "Xno"; then 13107 13108ac_ext=f 13109ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13110ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13111ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13112 13113 13114archive_cmds_need_lc_F77=no 13115allow_undefined_flag_F77= 13116always_export_symbols_F77=no 13117archive_expsym_cmds_F77= 13118export_dynamic_flag_spec_F77= 13119hardcode_direct_F77=no 13120hardcode_libdir_flag_spec_F77= 13121hardcode_libdir_flag_spec_ld_F77= 13122hardcode_libdir_separator_F77= 13123hardcode_minus_L_F77=no 13124hardcode_automatic_F77=no 13125module_cmds_F77= 13126module_expsym_cmds_F77= 13127link_all_deplibs_F77=unknown 13128old_archive_cmds_F77=$old_archive_cmds 13129no_undefined_flag_F77= 13130whole_archive_flag_spec_F77= 13131enable_shared_with_static_runtimes_F77=no 13132 13133# Source file extension for f77 test sources. 13134ac_ext=f 13135 13136# Object file extension for compiled f77 test sources. 13137objext=o 13138objext_F77=$objext 13139 13140# Code to be used in simple compile tests 13141lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13142 13143# Code to be used in simple link tests 13144lt_simple_link_test_code=" program t\n end\n" 13145 13146# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13147 13148# If no C compiler was specified, use CC. 13149LTCC=${LTCC-"$CC"} 13150 13151# Allow CC to be a program name with arguments. 13152compiler=$CC 13153 13154 13155# Allow CC to be a program name with arguments. 13156lt_save_CC="$CC" 13157CC=${F77-"f77"} 13158compiler=$CC 13159compiler_F77=$CC 13160cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 13161 13162echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13163echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13164echo "$as_me:$LINENO: result: $can_build_shared" >&5 13165echo "${ECHO_T}$can_build_shared" >&6 13166 13167echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13168echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13169test "$can_build_shared" = "no" && enable_shared=no 13170 13171# On AIX, shared libraries and static libraries use the same namespace, and 13172# are all built from PIC. 13173case "$host_os" in 13174aix3*) 13175 test "$enable_shared" = yes && enable_static=no 13176 if test -n "$RANLIB"; then 13177 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13178 postinstall_cmds='$RANLIB $lib' 13179 fi 13180 ;; 13181aix4* | aix5*) 13182 test "$enable_shared" = yes && enable_static=no 13183 ;; 13184esac 13185echo "$as_me:$LINENO: result: $enable_shared" >&5 13186echo "${ECHO_T}$enable_shared" >&6 13187 13188echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13189echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13190# Make sure either enable_shared or enable_static is yes. 13191test "$enable_shared" = yes || enable_static=yes 13192echo "$as_me:$LINENO: result: $enable_static" >&5 13193echo "${ECHO_T}$enable_static" >&6 13194 13195test "$ld_shlibs_F77" = no && can_build_shared=no 13196 13197GCC_F77="$G77" 13198LD_F77="$LD" 13199 13200lt_prog_compiler_wl_F77= 13201lt_prog_compiler_pic_F77= 13202lt_prog_compiler_static_F77= 13203 13204echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13205echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13206 13207 if test "$GCC" = yes; then 13208 lt_prog_compiler_wl_F77='-Wl,' 13209 lt_prog_compiler_static_F77='-static' 13210 13211 case $host_os in 13212 aix*) 13213 # All AIX code is PIC. 13214 if test "$host_cpu" = ia64; then 13215 # AIX 5 now supports IA64 processor 13216 lt_prog_compiler_static_F77='-Bstatic' 13217 fi 13218 ;; 13219 13220 amigaos*) 13221 # FIXME: we need at least 68020 code to build shared libraries, but 13222 # adding the `-m68020' flag to GCC prevents building anything better, 13223 # like `-m68040'. 13224 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13225 ;; 13226 13227 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13228 # PIC is the default for these OSes. 13229 ;; 13230 13231 mingw* | pw32* | os2*) 13232 # This hack is so that the source file can tell whether it is being 13233 # built for inclusion in a dll (and should export symbols for example). 13234 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13235 ;; 13236 13237 darwin* | rhapsody*) 13238 # PIC is the default on this platform 13239 # Common symbols not allowed in MH_DYLIB files 13240 lt_prog_compiler_pic_F77='-fno-common' 13241 ;; 13242 13243 msdosdjgpp*) 13244 # Just because we use GCC doesn't mean we suddenly get shared libraries 13245 # on systems that don't support them. 13246 lt_prog_compiler_can_build_shared_F77=no 13247 enable_shared=no 13248 ;; 13249 13250 sysv4*MP*) 13251 if test -d /usr/nec; then 13252 lt_prog_compiler_pic_F77=-Kconform_pic 13253 fi 13254 ;; 13255 13256 hpux*) 13257 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13258 # not for PA HP-UX. 13259 case "$host_cpu" in 13260 hppa*64*|ia64*) 13261 # +Z the default 13262 ;; 13263 *) 13264 lt_prog_compiler_pic_F77='-fPIC' 13265 ;; 13266 esac 13267 ;; 13268 13269 *) 13270 lt_prog_compiler_pic_F77='-fPIC' 13271 ;; 13272 esac 13273 else 13274 # PORTME Check for flag to pass linker flags through the system compiler. 13275 case $host_os in 13276 aix*) 13277 lt_prog_compiler_wl_F77='-Wl,' 13278 if test "$host_cpu" = ia64; then 13279 # AIX 5 now supports IA64 processor 13280 lt_prog_compiler_static_F77='-Bstatic' 13281 else 13282 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13283 fi 13284 ;; 13285 13286 mingw* | pw32* | os2*) 13287 # This hack is so that the source file can tell whether it is being 13288 # built for inclusion in a dll (and should export symbols for example). 13289 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13290 ;; 13291 13292 hpux9* | hpux10* | hpux11*) 13293 lt_prog_compiler_wl_F77='-Wl,' 13294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13295 # not for PA HP-UX. 13296 case "$host_cpu" in 13297 hppa*64*|ia64*) 13298 # +Z the default 13299 ;; 13300 *) 13301 lt_prog_compiler_pic_F77='+Z' 13302 ;; 13303 esac 13304 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13305 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13306 ;; 13307 13308 irix5* | irix6* | nonstopux*) 13309 lt_prog_compiler_wl_F77='-Wl,' 13310 # PIC (with -KPIC) is the default. 13311 lt_prog_compiler_static_F77='-non_shared' 13312 ;; 13313 13314 newsos6) 13315 lt_prog_compiler_pic_F77='-KPIC' 13316 lt_prog_compiler_static_F77='-Bstatic' 13317 ;; 13318 13319 linux*) 13320 case $CC in 13321 icc* | ecc*) 13322 lt_prog_compiler_wl_F77='-Wl,' 13323 lt_prog_compiler_pic_F77='-KPIC' 13324 lt_prog_compiler_static_F77='-static' 13325 ;; 13326 ccc*) 13327 lt_prog_compiler_wl_F77='-Wl,' 13328 # All Alpha code is PIC. 13329 lt_prog_compiler_static_F77='-non_shared' 13330 ;; 13331 esac 13332 ;; 13333 13334 osf3* | osf4* | osf5*) 13335 lt_prog_compiler_wl_F77='-Wl,' 13336 # All OSF/1 code is PIC. 13337 lt_prog_compiler_static_F77='-non_shared' 13338 ;; 13339 13340 sco3.2v5*) 13341 lt_prog_compiler_pic_F77='-Kpic' 13342 lt_prog_compiler_static_F77='-dn' 13343 ;; 13344 13345 solaris*) 13346 lt_prog_compiler_wl_F77='-Wl,' 13347 lt_prog_compiler_pic_F77='-KPIC' 13348 lt_prog_compiler_static_F77='-Bstatic' 13349 ;; 13350 13351 sunos4*) 13352 lt_prog_compiler_wl_F77='-Qoption ld ' 13353 lt_prog_compiler_pic_F77='-PIC' 13354 lt_prog_compiler_static_F77='-Bstatic' 13355 ;; 13356 13357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13358 lt_prog_compiler_wl_F77='-Wl,' 13359 lt_prog_compiler_pic_F77='-KPIC' 13360 lt_prog_compiler_static_F77='-Bstatic' 13361 ;; 13362 13363 sysv4*MP*) 13364 if test -d /usr/nec ;then 13365 lt_prog_compiler_pic_F77='-Kconform_pic' 13366 lt_prog_compiler_static_F77='-Bstatic' 13367 fi 13368 ;; 13369 13370 uts4*) 13371 lt_prog_compiler_pic_F77='-pic' 13372 lt_prog_compiler_static_F77='-Bstatic' 13373 ;; 13374 13375 *) 13376 lt_prog_compiler_can_build_shared_F77=no 13377 ;; 13378 esac 13379 fi 13380 13381echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13382echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13383 13384# 13385# Check to make sure the PIC flag actually works. 13386# 13387if test -n "$lt_prog_compiler_pic_F77"; then 13388 13389echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13390echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13391if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13392 echo $ECHO_N "(cached) $ECHO_C" >&6 13393else 13394 lt_prog_compiler_pic_works_F77=no 13395 ac_outfile=conftest.$ac_objext 13396 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13397 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13398 # Insert the option either (1) after the last *FLAGS variable, or 13399 # (2) before a word containing "conftest.", or (3) at the end. 13400 # Note that $ac_compile itself does not contain backslashes and begins 13401 # with a dollar sign (not a hyphen), so the echo should work correctly. 13402 # The option is referenced via a variable to avoid confusing sed. 13403 lt_compile=`echo "$ac_compile" | $SED \ 13404 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13406 -e 's:$: $lt_compiler_flag:'` 13407 (eval echo "\"\$as_me:13407: $lt_compile\"" >&5) 13408 (eval "$lt_compile" 2>conftest.err) 13409 ac_status=$? 13410 cat conftest.err >&5 13411 echo "$as_me:13411: \$? = $ac_status" >&5 13412 if (exit $ac_status) && test -s "$ac_outfile"; then 13413 # The compiler can only warn and ignore the option if not recognized 13414 # So say no if there are warnings 13415 if test ! -s conftest.err; then 13416 lt_prog_compiler_pic_works_F77=yes 13417 fi 13418 fi 13419 $rm conftest* 13420 13421fi 13422echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13423echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13424 13425if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13426 case $lt_prog_compiler_pic_F77 in 13427 "" | " "*) ;; 13428 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13429 esac 13430else 13431 lt_prog_compiler_pic_F77= 13432 lt_prog_compiler_can_build_shared_F77=no 13433fi 13434 13435fi 13436case "$host_os" in 13437 # For platforms which do not support PIC, -DPIC is meaningless: 13438 *djgpp*) 13439 lt_prog_compiler_pic_F77= 13440 ;; 13441 *) 13442 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13443 ;; 13444esac 13445 13446echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13447echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13448if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13449 echo $ECHO_N "(cached) $ECHO_C" >&6 13450else 13451 lt_cv_prog_compiler_c_o_F77=no 13452 $rm -r conftest 2>/dev/null 13453 mkdir conftest 13454 cd conftest 13455 mkdir out 13456 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13457 13458 lt_compiler_flag="-o out/conftest2.$ac_objext" 13459 # Insert the option either (1) after the last *FLAGS variable, or 13460 # (2) before a word containing "conftest.", or (3) at the end. 13461 # Note that $ac_compile itself does not contain backslashes and begins 13462 # with a dollar sign (not a hyphen), so the echo should work correctly. 13463 lt_compile=`echo "$ac_compile" | $SED \ 13464 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13466 -e 's:$: $lt_compiler_flag:'` 13467 (eval echo "\"\$as_me:13467: $lt_compile\"" >&5) 13468 (eval "$lt_compile" 2>out/conftest.err) 13469 ac_status=$? 13470 cat out/conftest.err >&5 13471 echo "$as_me:13471: \$? = $ac_status" >&5 13472 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13473 then 13474 # The compiler can only warn and ignore the option if not recognized 13475 # So say no if there are warnings 13476 if test ! -s out/conftest.err; then 13477 lt_cv_prog_compiler_c_o_F77=yes 13478 fi 13479 fi 13480 chmod u+w . 13481 $rm conftest* 13482 # SGI C++ compiler will create directory out/ii_files/ for 13483 # template instantiation 13484 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13485 $rm out/* && rmdir out 13486 cd .. 13487 rmdir conftest 13488 $rm conftest* 13489 13490fi 13491echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13492echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13493 13494 13495hard_links="nottested" 13496if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13497 # do not overwrite the value of need_locks provided by the user 13498 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13499echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13500 hard_links=yes 13501 $rm conftest* 13502 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13503 touch conftest.a 13504 ln conftest.a conftest.b 2>&5 || hard_links=no 13505 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13506 echo "$as_me:$LINENO: result: $hard_links" >&5 13507echo "${ECHO_T}$hard_links" >&6 13508 if test "$hard_links" = no; then 13509 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13510echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13511 need_locks=warn 13512 fi 13513else 13514 need_locks=no 13515fi 13516 13517echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13518echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13519 13520 runpath_var= 13521 allow_undefined_flag_F77= 13522 enable_shared_with_static_runtimes_F77=no 13523 archive_cmds_F77= 13524 archive_expsym_cmds_F77= 13525 old_archive_From_new_cmds_F77= 13526 old_archive_from_expsyms_cmds_F77= 13527 export_dynamic_flag_spec_F77= 13528 whole_archive_flag_spec_F77= 13529 thread_safe_flag_spec_F77= 13530 hardcode_libdir_flag_spec_F77= 13531 hardcode_libdir_flag_spec_ld_F77= 13532 hardcode_libdir_separator_F77= 13533 hardcode_direct_F77=no 13534 hardcode_minus_L_F77=no 13535 hardcode_shlibpath_var_F77=unsupported 13536 link_all_deplibs_F77=unknown 13537 hardcode_automatic_F77=no 13538 module_cmds_F77= 13539 module_expsym_cmds_F77= 13540 always_export_symbols_F77=no 13541 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13542 # include_expsyms should be a list of space-separated symbols to be *always* 13543 # included in the symbol list 13544 include_expsyms_F77= 13545 # exclude_expsyms can be an extended regexp of symbols to exclude 13546 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13547 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13548 # as well as any symbol that contains `d'. 13549 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13550 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13551 # platforms (ab)use it in PIC code, but their linkers get confused if 13552 # the symbol is explicitly referenced. Since portable code cannot 13553 # rely on this symbol name, it's probably fine to never include it in 13554 # preloaded symbol tables. 13555 extract_expsyms_cmds= 13556 13557 case $host_os in 13558 cygwin* | mingw* | pw32*) 13559 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13560 # When not using gcc, we currently assume that we are using 13561 # Microsoft Visual C++. 13562 if test "$GCC" != yes; then 13563 with_gnu_ld=no 13564 fi 13565 ;; 13566 openbsd*) 13567 with_gnu_ld=no 13568 ;; 13569 esac 13570 13571 ld_shlibs_F77=yes 13572 if test "$with_gnu_ld" = yes; then 13573 # If archive_cmds runs LD, not CC, wlarc should be empty 13574 wlarc='${wl}' 13575 13576 # See if GNU ld supports shared libraries. 13577 case $host_os in 13578 aix3* | aix4* | aix5*) 13579 # On AIX/PPC, the GNU linker is very broken 13580 if test "$host_cpu" != ia64; then 13581 ld_shlibs_F77=no 13582 cat <<EOF 1>&2 13583 13584*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13585*** to be unable to reliably create shared libraries on AIX. 13586*** Therefore, libtool is disabling shared libraries support. If you 13587*** really care for shared libraries, you may want to modify your PATH 13588*** so that a non-GNU linker is found, and then restart. 13589 13590EOF 13591 fi 13592 ;; 13593 13594 amigaos*) 13595 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)' 13596 hardcode_libdir_flag_spec_F77='-L$libdir' 13597 hardcode_minus_L_F77=yes 13598 13599 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13600 # that the semantics of dynamic libraries on AmigaOS, at least up 13601 # to version 4, is to share data among multiple programs linked 13602 # with the same dynamic library. Since this doesn't match the 13603 # behavior of shared libraries on other platforms, we can't use 13604 # them. 13605 ld_shlibs_F77=no 13606 ;; 13607 13608 beos*) 13609 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13610 allow_undefined_flag_F77=unsupported 13611 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13612 # support --undefined. This deserves some investigation. FIXME 13613 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13614 else 13615 ld_shlibs_F77=no 13616 fi 13617 ;; 13618 13619 cygwin* | mingw* | pw32*) 13620 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13621 # as there is no search path for DLLs. 13622 hardcode_libdir_flag_spec_F77='-L$libdir' 13623 allow_undefined_flag_F77=unsupported 13624 always_export_symbols_F77=no 13625 enable_shared_with_static_runtimes_F77=yes 13626 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13627 13628 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13629 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13630 # If the export-symbols file already is a .def file (1st line 13631 # is EXPORTS), use it as is; otherwise, prepend... 13632 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13633 cp $export_symbols $output_objdir/$soname.def; 13634 else 13635 echo EXPORTS > $output_objdir/$soname.def; 13636 cat $export_symbols >> $output_objdir/$soname.def; 13637 fi~ 13638 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13639 else 13640 ld_shlibs=no 13641 fi 13642 ;; 13643 13644 netbsd*) 13645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13646 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13647 wlarc= 13648 else 13649 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13650 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13651 fi 13652 ;; 13653 13654 solaris* | sysv5*) 13655 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13656 ld_shlibs_F77=no 13657 cat <<EOF 1>&2 13658 13659*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13660*** create shared libraries on Solaris systems. Therefore, libtool 13661*** is disabling shared libraries support. We urge you to upgrade GNU 13662*** binutils to release 2.9.1 or newer. Another option is to modify 13663*** your PATH or compiler configuration so that the native linker is 13664*** used, and then restart. 13665 13666EOF 13667 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13668 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13669 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13670 else 13671 ld_shlibs_F77=no 13672 fi 13673 ;; 13674 13675 sunos4*) 13676 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13677 wlarc= 13678 hardcode_direct_F77=yes 13679 hardcode_shlibpath_var_F77=no 13680 ;; 13681 13682 linux*) 13683 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13684 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13685 archive_cmds_F77="$tmp_archive_cmds" 13686 supports_anon_versioning=no 13687 case `$LD -v 2>/dev/null` in 13688 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13689 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13690 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13691 *\ 2.11.*) ;; # other 2.11 versions 13692 *) supports_anon_versioning=yes ;; 13693 esac 13694 if test $supports_anon_versioning = yes; then 13695 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13696cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13697$echo "local: *; };" >> $output_objdir/$libname.ver~ 13698 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13699 else 13700 archive_expsym_cmds_F77="$tmp_archive_cmds" 13701 fi 13702 else 13703 ld_shlibs_F77=no 13704 fi 13705 ;; 13706 13707 *) 13708 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13709 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13710 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13711 else 13712 ld_shlibs_F77=no 13713 fi 13714 ;; 13715 esac 13716 13717 if test "$ld_shlibs_F77" = yes; then 13718 runpath_var=LD_RUN_PATH 13719 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13720 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13721 # ancient GNU ld didn't support --whole-archive et. al. 13722 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13723 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13724 else 13725 whole_archive_flag_spec_F77= 13726 fi 13727 fi 13728 else 13729 # PORTME fill in a description of your system's linker (not GNU ld) 13730 case $host_os in 13731 aix3*) 13732 allow_undefined_flag_F77=unsupported 13733 always_export_symbols_F77=yes 13734 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' 13735 # Note: this linker hardcodes the directories in LIBPATH if there 13736 # are no directories specified by -L. 13737 hardcode_minus_L_F77=yes 13738 if test "$GCC" = yes && test -z "$link_static_flag"; then 13739 # Neither direct hardcoding nor static linking is supported with a 13740 # broken collect2. 13741 hardcode_direct_F77=unsupported 13742 fi 13743 ;; 13744 13745 aix4* | aix5*) 13746 if test "$host_cpu" = ia64; then 13747 # On IA64, the linker does run time linking by default, so we don't 13748 # have to do anything special. 13749 aix_use_runtimelinking=no 13750 exp_sym_flag='-Bexport' 13751 no_entry_flag="" 13752 else 13753 # If we're using GNU nm, then we don't want the "-C" option. 13754 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13755 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13756 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' 13757 else 13758 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' 13759 fi 13760 aix_use_runtimelinking=no 13761 13762 # Test if we are trying to use run time linking or normal 13763 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13764 # need to do runtime linking. 13765 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13766 for ld_flag in $LDFLAGS; do 13767 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13768 aix_use_runtimelinking=yes 13769 break 13770 fi 13771 done 13772 esac 13773 13774 exp_sym_flag='-bexport' 13775 no_entry_flag='-bnoentry' 13776 fi 13777 13778 # When large executables or shared objects are built, AIX ld can 13779 # have problems creating the table of contents. If linking a library 13780 # or program results in "error TOC overflow" add -mminimal-toc to 13781 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13782 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13783 13784 archive_cmds_F77='' 13785 hardcode_direct_F77=yes 13786 hardcode_libdir_separator_F77=':' 13787 link_all_deplibs_F77=yes 13788 13789 if test "$GCC" = yes; then 13790 case $host_os in aix4.012|aix4.012.*) 13791 # We only want to do this on AIX 4.2 and lower, the check 13792 # below for broken collect2 doesn't work under 4.3+ 13793 collect2name=`${CC} -print-prog-name=collect2` 13794 if test -f "$collect2name" && \ 13795 strings "$collect2name" | grep resolve_lib_name >/dev/null 13796 then 13797 # We have reworked collect2 13798 hardcode_direct_F77=yes 13799 else 13800 # We have old collect2 13801 hardcode_direct_F77=unsupported 13802 # It fails to find uninstalled libraries when the uninstalled 13803 # path is not listed in the libpath. Setting hardcode_minus_L 13804 # to unsupported forces relinking 13805 hardcode_minus_L_F77=yes 13806 hardcode_libdir_flag_spec_F77='-L$libdir' 13807 hardcode_libdir_separator_F77= 13808 fi 13809 esac 13810 shared_flag='-shared' 13811 else 13812 # not using gcc 13813 if test "$host_cpu" = ia64; then 13814 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13815 # chokes on -Wl,-G. The following line is correct: 13816 shared_flag='-G' 13817 else 13818 if test "$aix_use_runtimelinking" = yes; then 13819 shared_flag='${wl}-G' 13820 else 13821 shared_flag='${wl}-bM:SRE' 13822 fi 13823 fi 13824 fi 13825 13826 # It seems that -bexpall does not export symbols beginning with 13827 # underscore (_), so it is better to generate a list of symbols to export. 13828 always_export_symbols_F77=yes 13829 if test "$aix_use_runtimelinking" = yes; then 13830 # Warning - without using the other runtime loading flags (-brtl), 13831 # -berok will link without error, but may produce a broken library. 13832 allow_undefined_flag_F77='-berok' 13833 # Determine the default libpath from the value encoded in an empty executable. 13834 cat >conftest.$ac_ext <<_ACEOF 13835 program main 13836 13837 end 13838_ACEOF 13839rm -f conftest.$ac_objext conftest$ac_exeext 13840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13841 (eval $ac_link) 2>conftest.er1 13842 ac_status=$? 13843 grep -v '^ *+' conftest.er1 >conftest.err 13844 rm -f conftest.er1 13845 cat conftest.err >&5 13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13847 (exit $ac_status); } && 13848 { ac_try='test -z "$ac_f77_werror_flag" 13849 || test ! -s conftest.err' 13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13851 (eval $ac_try) 2>&5 13852 ac_status=$? 13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13854 (exit $ac_status); }; } && 13855 { ac_try='test -s conftest$ac_exeext' 13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13857 (eval $ac_try) 2>&5 13858 ac_status=$? 13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13860 (exit $ac_status); }; }; then 13861 13862aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13863}'` 13864# Check for a 64-bit object if we didn't find anything. 13865if 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; } 13866}'`; fi 13867else 13868 echo "$as_me: failed program was:" >&5 13869sed 's/^/| /' conftest.$ac_ext >&5 13870 13871fi 13872rm -f conftest.err conftest.$ac_objext \ 13873 conftest$ac_exeext conftest.$ac_ext 13874if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13875 13876 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13877 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" 13878 else 13879 if test "$host_cpu" = ia64; then 13880 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13881 allow_undefined_flag_F77="-z nodefs" 13882 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" 13883 else 13884 # Determine the default libpath from the value encoded in an empty executable. 13885 cat >conftest.$ac_ext <<_ACEOF 13886 program main 13887 13888 end 13889_ACEOF 13890rm -f conftest.$ac_objext conftest$ac_exeext 13891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13892 (eval $ac_link) 2>conftest.er1 13893 ac_status=$? 13894 grep -v '^ *+' conftest.er1 >conftest.err 13895 rm -f conftest.er1 13896 cat conftest.err >&5 13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13898 (exit $ac_status); } && 13899 { ac_try='test -z "$ac_f77_werror_flag" 13900 || test ! -s conftest.err' 13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13902 (eval $ac_try) 2>&5 13903 ac_status=$? 13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13905 (exit $ac_status); }; } && 13906 { ac_try='test -s conftest$ac_exeext' 13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13908 (eval $ac_try) 2>&5 13909 ac_status=$? 13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13911 (exit $ac_status); }; }; then 13912 13913aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13914}'` 13915# Check for a 64-bit object if we didn't find anything. 13916if 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; } 13917}'`; fi 13918else 13919 echo "$as_me: failed program was:" >&5 13920sed 's/^/| /' conftest.$ac_ext >&5 13921 13922fi 13923rm -f conftest.err conftest.$ac_objext \ 13924 conftest$ac_exeext conftest.$ac_ext 13925if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13926 13927 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13928 # Warning - without using the other run time loading flags, 13929 # -berok will link without error, but may produce a broken library. 13930 no_undefined_flag_F77=' ${wl}-bernotok' 13931 allow_undefined_flag_F77=' ${wl}-berok' 13932 # -bexpall does not export symbols beginning with underscore (_) 13933 always_export_symbols_F77=yes 13934 # Exported symbols can be pulled into shared objects from archives 13935 whole_archive_flag_spec_F77=' ' 13936 archive_cmds_need_lc_F77=yes 13937 # This is similar to how AIX traditionally builds it's shared libraries. 13938 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' 13939 fi 13940 fi 13941 ;; 13942 13943 amigaos*) 13944 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)' 13945 hardcode_libdir_flag_spec_F77='-L$libdir' 13946 hardcode_minus_L_F77=yes 13947 # see comment about different semantics on the GNU ld section 13948 ld_shlibs_F77=no 13949 ;; 13950 13951 bsdi4*) 13952 export_dynamic_flag_spec_F77=-rdynamic 13953 ;; 13954 13955 cygwin* | mingw* | pw32*) 13956 # When not using gcc, we currently assume that we are using 13957 # Microsoft Visual C++. 13958 # hardcode_libdir_flag_spec is actually meaningless, as there is 13959 # no search path for DLLs. 13960 hardcode_libdir_flag_spec_F77=' ' 13961 allow_undefined_flag_F77=unsupported 13962 # Tell ltmain to make .lib files, not .a files. 13963 libext=lib 13964 # Tell ltmain to make .dll files, not .so files. 13965 shrext_cmds=".dll" 13966 # FIXME: Setting linknames here is a bad hack. 13967 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13968 # The linker will automatically build a .lib file if we build a DLL. 13969 old_archive_From_new_cmds_F77='true' 13970 # FIXME: Should let the user specify the lib program. 13971 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13972 fix_srcfile_path='`cygpath -w "$srcfile"`' 13973 enable_shared_with_static_runtimes_F77=yes 13974 ;; 13975 13976 darwin* | rhapsody*) 13977 if test "$GXX" = yes ; then 13978 archive_cmds_need_lc_F77=no 13979 case "$host_os" in 13980 rhapsody* | darwin1.[012]) 13981 allow_undefined_flag_F77='-undefined suppress' 13982 ;; 13983 *) # Darwin 1.3 on 13984 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13985 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 13986 else 13987 case ${MACOSX_DEPLOYMENT_TARGET} in 13988 10.[012]) 13989 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 13990 ;; 13991 10.*) 13992 allow_undefined_flag_F77='-undefined dynamic_lookup' 13993 ;; 13994 esac 13995 fi 13996 ;; 13997 esac 13998 lt_int_apple_cc_single_mod=no 13999 output_verbose_link_cmd='echo' 14000 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 14001 lt_int_apple_cc_single_mod=yes 14002 fi 14003 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14004 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14005 else 14006 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' 14007 fi 14008 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14009 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14010 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14011 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}' 14012 else 14013 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}' 14014 fi 14015 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}' 14016 hardcode_direct_F77=no 14017 hardcode_automatic_F77=yes 14018 hardcode_shlibpath_var_F77=unsupported 14019 whole_archive_flag_spec_F77='-all_load $convenience' 14020 link_all_deplibs_F77=yes 14021 else 14022 ld_shlibs_F77=no 14023 fi 14024 ;; 14025 14026 dgux*) 14027 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14028 hardcode_libdir_flag_spec_F77='-L$libdir' 14029 hardcode_shlibpath_var_F77=no 14030 ;; 14031 14032 freebsd1*) 14033 ld_shlibs_F77=no 14034 ;; 14035 14036 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14037 # support. Future versions do this automatically, but an explicit c++rt0.o 14038 # does not break anything, and helps significantly (at the cost of a little 14039 # extra space). 14040 freebsd2.2*) 14041 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14042 hardcode_libdir_flag_spec_F77='-R$libdir' 14043 hardcode_direct_F77=yes 14044 hardcode_shlibpath_var_F77=no 14045 ;; 14046 14047 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14048 freebsd2*) 14049 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14050 hardcode_direct_F77=yes 14051 hardcode_minus_L_F77=yes 14052 hardcode_shlibpath_var_F77=no 14053 ;; 14054 14055 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14056 freebsd* | kfreebsd*-gnu) 14057 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14058 hardcode_libdir_flag_spec_F77='-R$libdir' 14059 hardcode_direct_F77=yes 14060 hardcode_shlibpath_var_F77=no 14061 ;; 14062 14063 hpux9*) 14064 if test "$GCC" = yes; then 14065 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' 14066 else 14067 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' 14068 fi 14069 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14070 hardcode_libdir_separator_F77=: 14071 hardcode_direct_F77=yes 14072 14073 # hardcode_minus_L: Not really in the search PATH, 14074 # but as the default location of the library. 14075 hardcode_minus_L_F77=yes 14076 export_dynamic_flag_spec_F77='${wl}-E' 14077 ;; 14078 14079 hpux10* | hpux11*) 14080 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14081 case "$host_cpu" in 14082 hppa*64*|ia64*) 14083 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14084 ;; 14085 *) 14086 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14087 ;; 14088 esac 14089 else 14090 case "$host_cpu" in 14091 hppa*64*|ia64*) 14092 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14093 ;; 14094 *) 14095 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14096 ;; 14097 esac 14098 fi 14099 if test "$with_gnu_ld" = no; then 14100 case "$host_cpu" in 14101 hppa*64*) 14102 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14103 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14104 hardcode_libdir_separator_F77=: 14105 hardcode_direct_F77=no 14106 hardcode_shlibpath_var_F77=no 14107 ;; 14108 ia64*) 14109 hardcode_libdir_flag_spec_F77='-L$libdir' 14110 hardcode_direct_F77=no 14111 hardcode_shlibpath_var_F77=no 14112 14113 # hardcode_minus_L: Not really in the search PATH, 14114 # but as the default location of the library. 14115 hardcode_minus_L_F77=yes 14116 ;; 14117 *) 14118 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14119 hardcode_libdir_separator_F77=: 14120 hardcode_direct_F77=yes 14121 export_dynamic_flag_spec_F77='${wl}-E' 14122 14123 # hardcode_minus_L: Not really in the search PATH, 14124 # but as the default location of the library. 14125 hardcode_minus_L_F77=yes 14126 ;; 14127 esac 14128 fi 14129 ;; 14130 14131 irix5* | irix6* | nonstopux*) 14132 if test "$GCC" = yes; then 14133 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' 14134 else 14135 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' 14136 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14137 fi 14138 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14139 hardcode_libdir_separator_F77=: 14140 link_all_deplibs_F77=yes 14141 ;; 14142 14143 netbsd*) 14144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14145 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14146 else 14147 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14148 fi 14149 hardcode_libdir_flag_spec_F77='-R$libdir' 14150 hardcode_direct_F77=yes 14151 hardcode_shlibpath_var_F77=no 14152 ;; 14153 14154 newsos6) 14155 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14156 hardcode_direct_F77=yes 14157 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14158 hardcode_libdir_separator_F77=: 14159 hardcode_shlibpath_var_F77=no 14160 ;; 14161 14162 openbsd*) 14163 hardcode_direct_F77=yes 14164 hardcode_shlibpath_var_F77=no 14165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14166 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14167 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14168 export_dynamic_flag_spec_F77='${wl}-E' 14169 else 14170 case $host_os in 14171 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14172 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14173 hardcode_libdir_flag_spec_F77='-R$libdir' 14174 ;; 14175 *) 14176 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14177 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14178 ;; 14179 esac 14180 fi 14181 ;; 14182 14183 os2*) 14184 hardcode_libdir_flag_spec_F77='-L$libdir' 14185 hardcode_minus_L_F77=yes 14186 allow_undefined_flag_F77=unsupported 14187 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' 14188 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14189 ;; 14190 14191 osf3*) 14192 if test "$GCC" = yes; then 14193 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14194 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' 14195 else 14196 allow_undefined_flag_F77=' -expect_unresolved \*' 14197 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' 14198 fi 14199 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14200 hardcode_libdir_separator_F77=: 14201 ;; 14202 14203 osf4* | osf5*) # as osf3* with the addition of -msym flag 14204 if test "$GCC" = yes; then 14205 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14206 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' 14207 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14208 else 14209 allow_undefined_flag_F77=' -expect_unresolved \*' 14210 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' 14211 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~ 14212 $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' 14213 14214 # Both c and cxx compiler support -rpath directly 14215 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14216 fi 14217 hardcode_libdir_separator_F77=: 14218 ;; 14219 14220 sco3.2v5*) 14221 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14222 hardcode_shlibpath_var_F77=no 14223 export_dynamic_flag_spec_F77='${wl}-Bexport' 14224 runpath_var=LD_RUN_PATH 14225 hardcode_runpath_var=yes 14226 ;; 14227 14228 solaris*) 14229 no_undefined_flag_F77=' -z text' 14230 if test "$GCC" = yes; then 14231 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14232 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14233 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14234 else 14235 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14236 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14237 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14238 fi 14239 hardcode_libdir_flag_spec_F77='-R$libdir' 14240 hardcode_shlibpath_var_F77=no 14241 case $host_os in 14242 solaris2.[0-5] | solaris2.[0-5].*) ;; 14243 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 14244 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14245 esac 14246 link_all_deplibs_F77=yes 14247 ;; 14248 14249 sunos4*) 14250 if test "x$host_vendor" = xsequent; then 14251 # Use $CC to link under sequent, because it throws in some extra .o 14252 # files that make .init and .fini sections work. 14253 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14254 else 14255 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14256 fi 14257 hardcode_libdir_flag_spec_F77='-L$libdir' 14258 hardcode_direct_F77=yes 14259 hardcode_minus_L_F77=yes 14260 hardcode_shlibpath_var_F77=no 14261 ;; 14262 14263 sysv4) 14264 case $host_vendor in 14265 sni) 14266 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14267 hardcode_direct_F77=yes # is this really true??? 14268 ;; 14269 siemens) 14270 ## LD is ld it makes a PLAMLIB 14271 ## CC just makes a GrossModule. 14272 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14273 reload_cmds_F77='$CC -r -o $output$reload_objs' 14274 hardcode_direct_F77=no 14275 ;; 14276 motorola) 14277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14278 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14279 ;; 14280 esac 14281 runpath_var='LD_RUN_PATH' 14282 hardcode_shlibpath_var_F77=no 14283 ;; 14284 14285 sysv4.3*) 14286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14287 hardcode_shlibpath_var_F77=no 14288 export_dynamic_flag_spec_F77='-Bexport' 14289 ;; 14290 14291 sysv4*MP*) 14292 if test -d /usr/nec; then 14293 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14294 hardcode_shlibpath_var_F77=no 14295 runpath_var=LD_RUN_PATH 14296 hardcode_runpath_var=yes 14297 ld_shlibs_F77=yes 14298 fi 14299 ;; 14300 14301 sysv4.2uw2*) 14302 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14303 hardcode_direct_F77=yes 14304 hardcode_minus_L_F77=no 14305 hardcode_shlibpath_var_F77=no 14306 hardcode_runpath_var=yes 14307 runpath_var=LD_RUN_PATH 14308 ;; 14309 14310 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14311 no_undefined_flag_F77='${wl}-z ${wl}text' 14312 if test "$GCC" = yes; then 14313 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14314 else 14315 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14316 fi 14317 runpath_var='LD_RUN_PATH' 14318 hardcode_shlibpath_var_F77=no 14319 ;; 14320 14321 sysv5*) 14322 no_undefined_flag_F77=' -z text' 14323 # $CC -shared without GNU ld will not create a library from C++ 14324 # object files and a static libstdc++, better avoid it by now 14325 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14326 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14327 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14328 hardcode_libdir_flag_spec_F77= 14329 hardcode_shlibpath_var_F77=no 14330 runpath_var='LD_RUN_PATH' 14331 ;; 14332 14333 uts4*) 14334 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14335 hardcode_libdir_flag_spec_F77='-L$libdir' 14336 hardcode_shlibpath_var_F77=no 14337 ;; 14338 14339 *) 14340 ld_shlibs_F77=no 14341 ;; 14342 esac 14343 fi 14344 14345echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14346echo "${ECHO_T}$ld_shlibs_F77" >&6 14347test "$ld_shlibs_F77" = no && can_build_shared=no 14348 14349variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14350if test "$GCC" = yes; then 14351 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14352fi 14353 14354# 14355# Do we need to explicitly link libc? 14356# 14357case "x$archive_cmds_need_lc_F77" in 14358x|xyes) 14359 # Assume -lc should be added 14360 archive_cmds_need_lc_F77=yes 14361 14362 if test "$enable_shared" = yes && test "$GCC" = yes; then 14363 case $archive_cmds_F77 in 14364 *'~'*) 14365 # FIXME: we may have to deal with multi-command sequences. 14366 ;; 14367 '$CC '*) 14368 # Test whether the compiler implicitly links with -lc since on some 14369 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14370 # to ld, don't add -lc before -lgcc. 14371 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14372echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14373 $rm conftest* 14374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14375 14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14377 (eval $ac_compile) 2>&5 14378 ac_status=$? 14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14380 (exit $ac_status); } 2>conftest.err; then 14381 soname=conftest 14382 lib=conftest 14383 libobjs=conftest.$ac_objext 14384 deplibs= 14385 wl=$lt_prog_compiler_wl_F77 14386 compiler_flags=-v 14387 linker_flags=-v 14388 verstring= 14389 output_objdir=. 14390 libname=conftest 14391 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14392 allow_undefined_flag_F77= 14393 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14394 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14395 ac_status=$? 14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14397 (exit $ac_status); } 14398 then 14399 archive_cmds_need_lc_F77=no 14400 else 14401 archive_cmds_need_lc_F77=yes 14402 fi 14403 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14404 else 14405 cat conftest.err 1>&5 14406 fi 14407 $rm conftest* 14408 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14409echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14410 ;; 14411 esac 14412 fi 14413 ;; 14414esac 14415 14416echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14417echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14418library_names_spec= 14419libname_spec='lib$name' 14420soname_spec= 14421shrext_cmds=".so" 14422postinstall_cmds= 14423postuninstall_cmds= 14424finish_cmds= 14425finish_eval= 14426shlibpath_var= 14427shlibpath_overrides_runpath=unknown 14428version_type=none 14429dynamic_linker="$host_os ld.so" 14430sys_lib_dlsearch_path_spec="/lib /usr/lib" 14431if test "$GCC" = yes; then 14432 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14433 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14434 # if the path contains ";" then we assume it to be the separator 14435 # otherwise default to the standard path separator (i.e. ":") - it is 14436 # assumed that no part of a normal pathname contains ";" but that should 14437 # okay in the real world where ";" in dirpaths is itself problematic. 14438 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14439 else 14440 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14441 fi 14442else 14443 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14444fi 14445need_lib_prefix=unknown 14446hardcode_into_libs=no 14447 14448# when you set need_version to no, make sure it does not cause -set_version 14449# flags to be left without arguments 14450need_version=unknown 14451 14452case $host_os in 14453aix3*) 14454 version_type=linux 14455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14456 shlibpath_var=LIBPATH 14457 14458 # AIX 3 has no versioning support, so we append a major version to the name. 14459 soname_spec='${libname}${release}${shared_ext}$major' 14460 ;; 14461 14462aix4* | aix5*) 14463 version_type=linux 14464 need_lib_prefix=no 14465 need_version=no 14466 hardcode_into_libs=yes 14467 if test "$host_cpu" = ia64; then 14468 # AIX 5 supports IA64 14469 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14470 shlibpath_var=LD_LIBRARY_PATH 14471 else 14472 # With GCC up to 2.95.x, collect2 would create an import file 14473 # for dependence libraries. The import file would start with 14474 # the line `#! .'. This would cause the generated library to 14475 # depend on `.', always an invalid library. This was fixed in 14476 # development snapshots of GCC prior to 3.0. 14477 case $host_os in 14478 aix4 | aix4.[01] | aix4.[01].*) 14479 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14480 echo ' yes ' 14481 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14482 : 14483 else 14484 can_build_shared=no 14485 fi 14486 ;; 14487 esac 14488 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14489 # soname into executable. Probably we can add versioning support to 14490 # collect2, so additional links can be useful in future. 14491 if test "$aix_use_runtimelinking" = yes; then 14492 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14493 # instead of lib<name>.a to let people know that these are not 14494 # typical AIX shared libraries. 14495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14496 else 14497 # We preserve .a as extension for shared libraries through AIX4.2 14498 # and later when we are not doing run time linking. 14499 library_names_spec='${libname}${release}.a $libname.a' 14500 soname_spec='${libname}${release}${shared_ext}$major' 14501 fi 14502 shlibpath_var=LIBPATH 14503 fi 14504 ;; 14505 14506amigaos*) 14507 library_names_spec='$libname.ixlibrary $libname.a' 14508 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14509 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' 14510 ;; 14511 14512beos*) 14513 library_names_spec='${libname}${shared_ext}' 14514 dynamic_linker="$host_os ld.so" 14515 shlibpath_var=LIBRARY_PATH 14516 ;; 14517 14518bsdi4*) 14519 version_type=linux 14520 need_version=no 14521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14522 soname_spec='${libname}${release}${shared_ext}$major' 14523 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14524 shlibpath_var=LD_LIBRARY_PATH 14525 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14526 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14527 # the default ld.so.conf also contains /usr/contrib/lib and 14528 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14529 # libtool to hard-code these into programs 14530 ;; 14531 14532cygwin* | mingw* | pw32*) 14533 version_type=windows 14534 shrext_cmds=".dll" 14535 need_version=no 14536 need_lib_prefix=no 14537 14538 case $GCC,$host_os in 14539 yes,cygwin* | yes,mingw* | yes,pw32*) 14540 library_names_spec='$libname.dll.a' 14541 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14542 postinstall_cmds='base_file=`basename \${file}`~ 14543 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14544 dldir=$destdir/`dirname \$dlpath`~ 14545 test -d \$dldir || mkdir -p \$dldir~ 14546 $install_prog $dir/$dlname \$dldir/$dlname' 14547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14548 dlpath=$dir/\$dldll~ 14549 $rm \$dlpath' 14550 shlibpath_overrides_runpath=yes 14551 14552 case $host_os in 14553 cygwin*) 14554 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14555 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14556 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14557 ;; 14558 mingw*) 14559 # MinGW DLLs use traditional 'lib' prefix 14560 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14561 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14562 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14563 # It is most probably a Windows format PATH printed by 14564 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14565 # path with ; separators, and with drive letters. We can handle the 14566 # drive letters (cygwin fileutils understands them), so leave them, 14567 # especially as we might pass files found there to a mingw objdump, 14568 # which wouldn't understand a cygwinified path. Ahh. 14569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14570 else 14571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14572 fi 14573 ;; 14574 pw32*) 14575 # pw32 DLLs use 'pw' prefix rather than 'lib' 14576 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 14577 ;; 14578 esac 14579 ;; 14580 14581 *) 14582 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14583 ;; 14584 esac 14585 dynamic_linker='Win32 ld.exe' 14586 # FIXME: first we should search . and the directory the executable is in 14587 shlibpath_var=PATH 14588 ;; 14589 14590darwin* | rhapsody*) 14591 dynamic_linker="$host_os dyld" 14592 version_type=darwin 14593 need_lib_prefix=no 14594 need_version=no 14595 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14596 soname_spec='${libname}${release}${major}$shared_ext' 14597 shlibpath_overrides_runpath=yes 14598 shlibpath_var=DYLD_LIBRARY_PATH 14599 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 14600 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14601 if test "$GCC" = yes; then 14602 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"` 14603 else 14604 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14605 fi 14606 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14607 ;; 14608 14609dgux*) 14610 version_type=linux 14611 need_lib_prefix=no 14612 need_version=no 14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14614 soname_spec='${libname}${release}${shared_ext}$major' 14615 shlibpath_var=LD_LIBRARY_PATH 14616 ;; 14617 14618freebsd1*) 14619 dynamic_linker=no 14620 ;; 14621 14622kfreebsd*-gnu) 14623 version_type=linux 14624 need_lib_prefix=no 14625 need_version=no 14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14627 soname_spec='${libname}${release}${shared_ext}$major' 14628 shlibpath_var=LD_LIBRARY_PATH 14629 shlibpath_overrides_runpath=no 14630 hardcode_into_libs=yes 14631 dynamic_linker='GNU ld.so' 14632 ;; 14633 14634freebsd*) 14635 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 14636 version_type=freebsd-$objformat 14637 case $version_type in 14638 freebsd-elf*) 14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14640 need_version=no 14641 need_lib_prefix=no 14642 ;; 14643 freebsd-*) 14644 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14645 need_version=yes 14646 ;; 14647 esac 14648 shlibpath_var=LD_LIBRARY_PATH 14649 case $host_os in 14650 freebsd2*) 14651 shlibpath_overrides_runpath=yes 14652 ;; 14653 freebsd3.01* | freebsdelf3.01*) 14654 shlibpath_overrides_runpath=yes 14655 hardcode_into_libs=yes 14656 ;; 14657 *) # from 3.2 on 14658 shlibpath_overrides_runpath=no 14659 hardcode_into_libs=yes 14660 ;; 14661 esac 14662 ;; 14663 14664gnu*) 14665 version_type=linux 14666 need_lib_prefix=no 14667 need_version=no 14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14669 soname_spec='${libname}${release}${shared_ext}$major' 14670 shlibpath_var=LD_LIBRARY_PATH 14671 hardcode_into_libs=yes 14672 ;; 14673 14674hpux9* | hpux10* | hpux11*) 14675 # Give a soname corresponding to the major version so that dld.sl refuses to 14676 # link against other versions. 14677 version_type=sunos 14678 need_lib_prefix=no 14679 need_version=no 14680 case "$host_cpu" in 14681 ia64*) 14682 shrext_cmds='.so' 14683 hardcode_into_libs=yes 14684 dynamic_linker="$host_os dld.so" 14685 shlibpath_var=LD_LIBRARY_PATH 14686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14688 soname_spec='${libname}${release}${shared_ext}$major' 14689 if test "X$HPUX_IA64_MODE" = X32; then 14690 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14691 else 14692 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14693 fi 14694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14695 ;; 14696 hppa*64*) 14697 shrext_cmds='.sl' 14698 hardcode_into_libs=yes 14699 dynamic_linker="$host_os dld.sl" 14700 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14703 soname_spec='${libname}${release}${shared_ext}$major' 14704 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14706 ;; 14707 *) 14708 shrext_cmds='.sl' 14709 dynamic_linker="$host_os dld.sl" 14710 shlibpath_var=SHLIB_PATH 14711 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14713 soname_spec='${libname}${release}${shared_ext}$major' 14714 ;; 14715 esac 14716 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14717 postinstall_cmds='chmod 555 $lib' 14718 ;; 14719 14720irix5* | irix6* | nonstopux*) 14721 case $host_os in 14722 nonstopux*) version_type=nonstopux ;; 14723 *) 14724 if test "$lt_cv_prog_gnu_ld" = yes; then 14725 version_type=linux 14726 else 14727 version_type=irix 14728 fi ;; 14729 esac 14730 need_lib_prefix=no 14731 need_version=no 14732 soname_spec='${libname}${release}${shared_ext}$major' 14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14734 case $host_os in 14735 irix5* | nonstopux*) 14736 libsuff= shlibsuff= 14737 ;; 14738 *) 14739 case $LD in # libtool.m4 will add one of these switches to LD 14740 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14741 libsuff= shlibsuff= libmagic=32-bit;; 14742 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14743 libsuff=32 shlibsuff=N32 libmagic=N32;; 14744 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14745 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14746 *) libsuff= shlibsuff= libmagic=never-match;; 14747 esac 14748 ;; 14749 esac 14750 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14751 shlibpath_overrides_runpath=no 14752 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14753 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14754 hardcode_into_libs=yes 14755 ;; 14756 14757# No shared lib support for Linux oldld, aout, or coff. 14758linux*oldld* | linux*aout* | linux*coff*) 14759 dynamic_linker=no 14760 ;; 14761 14762# This must be Linux ELF. 14763linux*) 14764 version_type=linux 14765 need_lib_prefix=no 14766 need_version=no 14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14768 soname_spec='${libname}${release}${shared_ext}$major' 14769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14770 shlibpath_var=LD_LIBRARY_PATH 14771 shlibpath_overrides_runpath=no 14772 # This implies no fast_install, which is unacceptable. 14773 # Some rework will be needed to allow for fast_install 14774 # before this can be enabled. 14775 hardcode_into_libs=yes 14776 14777 # find out which ABI we are using 14778 libsuff= 14779 case "$host_cpu" in 14780 x86_64*|s390x*|powerpc64*) 14781 echo '#line 14781 "configure"' > conftest.$ac_ext 14782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14783 (eval $ac_compile) 2>&5 14784 ac_status=$? 14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14786 (exit $ac_status); }; then 14787 case `/usr/bin/file conftest.$ac_objext` in 14788 *64-bit*) 14789 libsuff=64 14790 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 14791 ;; 14792 esac 14793 fi 14794 rm -rf conftest* 14795 ;; 14796 esac 14797 14798 # Append ld.so.conf contents to the search path 14799 if test -f /etc/ld.so.conf; then 14800 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 14801 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 14802 fi 14803 14804 # We used to test for /lib/ld.so.1 and disable shared libraries on 14805 # powerpc, because MkLinux only supported shared libraries with the 14806 # GNU dynamic linker. Since this was broken with cross compilers, 14807 # most powerpc-linux boxes support dynamic linking these days and 14808 # people can always --disable-shared, the test was removed, and we 14809 # assume the GNU/Linux dynamic linker is in use. 14810 dynamic_linker='GNU/Linux ld.so' 14811 ;; 14812 14813knetbsd*-gnu) 14814 version_type=linux 14815 need_lib_prefix=no 14816 need_version=no 14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14818 soname_spec='${libname}${release}${shared_ext}$major' 14819 shlibpath_var=LD_LIBRARY_PATH 14820 shlibpath_overrides_runpath=no 14821 hardcode_into_libs=yes 14822 dynamic_linker='GNU ld.so' 14823 ;; 14824 14825netbsd*) 14826 version_type=sunos 14827 need_lib_prefix=no 14828 need_version=no 14829 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14832 dynamic_linker='NetBSD (a.out) ld.so' 14833 else 14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14835 soname_spec='${libname}${release}${shared_ext}$major' 14836 dynamic_linker='NetBSD ld.elf_so' 14837 fi 14838 shlibpath_var=LD_LIBRARY_PATH 14839 shlibpath_overrides_runpath=yes 14840 hardcode_into_libs=yes 14841 ;; 14842 14843newsos6) 14844 version_type=linux 14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14846 shlibpath_var=LD_LIBRARY_PATH 14847 shlibpath_overrides_runpath=yes 14848 ;; 14849 14850nto-qnx*) 14851 version_type=linux 14852 need_lib_prefix=no 14853 need_version=no 14854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14855 soname_spec='${libname}${release}${shared_ext}$major' 14856 shlibpath_var=LD_LIBRARY_PATH 14857 shlibpath_overrides_runpath=yes 14858 ;; 14859 14860openbsd*) 14861 version_type=sunos 14862 need_lib_prefix=no 14863 need_version=yes 14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14866 shlibpath_var=LD_LIBRARY_PATH 14867 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14868 case $host_os in 14869 openbsd2.[89] | openbsd2.[89].*) 14870 shlibpath_overrides_runpath=no 14871 ;; 14872 *) 14873 shlibpath_overrides_runpath=yes 14874 ;; 14875 esac 14876 else 14877 shlibpath_overrides_runpath=yes 14878 fi 14879 ;; 14880 14881os2*) 14882 libname_spec='$name' 14883 shrext_cmds=".dll" 14884 need_lib_prefix=no 14885 library_names_spec='$libname${shared_ext} $libname.a' 14886 dynamic_linker='OS/2 ld.exe' 14887 shlibpath_var=LIBPATH 14888 ;; 14889 14890osf3* | osf4* | osf5*) 14891 version_type=osf 14892 need_lib_prefix=no 14893 need_version=no 14894 soname_spec='${libname}${release}${shared_ext}$major' 14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14896 shlibpath_var=LD_LIBRARY_PATH 14897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14898 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14899 ;; 14900 14901sco3.2v5*) 14902 version_type=osf 14903 soname_spec='${libname}${release}${shared_ext}$major' 14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14905 shlibpath_var=LD_LIBRARY_PATH 14906 ;; 14907 14908solaris*) 14909 version_type=linux 14910 need_lib_prefix=no 14911 need_version=no 14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14913 soname_spec='${libname}${release}${shared_ext}$major' 14914 shlibpath_var=LD_LIBRARY_PATH 14915 shlibpath_overrides_runpath=yes 14916 hardcode_into_libs=yes 14917 # ldd complains unless libraries are executable 14918 postinstall_cmds='chmod +x $lib' 14919 ;; 14920 14921sunos4*) 14922 version_type=sunos 14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14924 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14925 shlibpath_var=LD_LIBRARY_PATH 14926 shlibpath_overrides_runpath=yes 14927 if test "$with_gnu_ld" = yes; then 14928 need_lib_prefix=no 14929 fi 14930 need_version=yes 14931 ;; 14932 14933sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14934 version_type=linux 14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14936 soname_spec='${libname}${release}${shared_ext}$major' 14937 shlibpath_var=LD_LIBRARY_PATH 14938 case $host_vendor in 14939 sni) 14940 shlibpath_overrides_runpath=no 14941 need_lib_prefix=no 14942 export_dynamic_flag_spec='${wl}-Blargedynsym' 14943 runpath_var=LD_RUN_PATH 14944 ;; 14945 siemens) 14946 need_lib_prefix=no 14947 ;; 14948 motorola) 14949 need_lib_prefix=no 14950 need_version=no 14951 shlibpath_overrides_runpath=no 14952 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14953 ;; 14954 esac 14955 ;; 14956 14957sysv4*MP*) 14958 if test -d /usr/nec ;then 14959 version_type=linux 14960 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14961 soname_spec='$libname${shared_ext}.$major' 14962 shlibpath_var=LD_LIBRARY_PATH 14963 fi 14964 ;; 14965 14966uts4*) 14967 version_type=linux 14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14969 soname_spec='${libname}${release}${shared_ext}$major' 14970 shlibpath_var=LD_LIBRARY_PATH 14971 ;; 14972 14973*) 14974 dynamic_linker=no 14975 ;; 14976esac 14977echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14978echo "${ECHO_T}$dynamic_linker" >&6 14979test "$dynamic_linker" = no && can_build_shared=no 14980 14981echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14982echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14983hardcode_action_F77= 14984if test -n "$hardcode_libdir_flag_spec_F77" || \ 14985 test -n "$runpath_var F77" || \ 14986 test "X$hardcode_automatic_F77"="Xyes" ; then 14987 14988 # We can hardcode non-existant directories. 14989 if test "$hardcode_direct_F77" != no && 14990 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14991 # have to relink, otherwise we might link with an installed library 14992 # when we should be linking with a yet-to-be-installed one 14993 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 14994 test "$hardcode_minus_L_F77" != no; then 14995 # Linking always hardcodes the temporary library directory. 14996 hardcode_action_F77=relink 14997 else 14998 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14999 hardcode_action_F77=immediate 15000 fi 15001else 15002 # We cannot hardcode anything, or else we can only hardcode existing 15003 # directories. 15004 hardcode_action_F77=unsupported 15005fi 15006echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15007echo "${ECHO_T}$hardcode_action_F77" >&6 15008 15009if test "$hardcode_action_F77" = relink; then 15010 # Fast installation is not supported 15011 enable_fast_install=no 15012elif test "$shlibpath_overrides_runpath" = yes || 15013 test "$enable_shared" = no; then 15014 # Fast installation is not necessary 15015 enable_fast_install=needless 15016fi 15017 15018striplib= 15019old_striplib= 15020echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15021echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15022if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15023 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15024 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15025 echo "$as_me:$LINENO: result: yes" >&5 15026echo "${ECHO_T}yes" >&6 15027else 15028# FIXME - insert some real tests, host_os isn't really good enough 15029 case $host_os in 15030 darwin*) 15031 if test -n "$STRIP" ; then 15032 striplib="$STRIP -x" 15033 echo "$as_me:$LINENO: result: yes" >&5 15034echo "${ECHO_T}yes" >&6 15035 else 15036 echo "$as_me:$LINENO: result: no" >&5 15037echo "${ECHO_T}no" >&6 15038fi 15039 ;; 15040 *) 15041 echo "$as_me:$LINENO: result: no" >&5 15042echo "${ECHO_T}no" >&6 15043 ;; 15044 esac 15045fi 15046 15047 15048 15049# The else clause should only fire when bootstrapping the 15050# libtool distribution, otherwise you forgot to ship ltmain.sh 15051# with your package, and you will get complaints that there are 15052# no rules to generate ltmain.sh. 15053if test -f "$ltmain"; then 15054 # See if we are running on zsh, and set the options which allow our commands through 15055 # without removal of \ escapes. 15056 if test -n "${ZSH_VERSION+set}" ; then 15057 setopt NO_GLOB_SUBST 15058 fi 15059 # Now quote all the things that may contain metacharacters while being 15060 # careful not to overquote the AC_SUBSTed values. We take copies of the 15061 # variables and quote the copies for generation of the libtool script. 15062 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15063 SED SHELL STRIP \ 15064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15066 deplibs_check_method reload_flag reload_cmds need_locks \ 15067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15068 lt_cv_sys_global_symbol_to_c_name_address \ 15069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15070 old_postinstall_cmds old_postuninstall_cmds \ 15071 compiler_F77 \ 15072 CC_F77 \ 15073 LD_F77 \ 15074 lt_prog_compiler_wl_F77 \ 15075 lt_prog_compiler_pic_F77 \ 15076 lt_prog_compiler_static_F77 \ 15077 lt_prog_compiler_no_builtin_flag_F77 \ 15078 export_dynamic_flag_spec_F77 \ 15079 thread_safe_flag_spec_F77 \ 15080 whole_archive_flag_spec_F77 \ 15081 enable_shared_with_static_runtimes_F77 \ 15082 old_archive_cmds_F77 \ 15083 old_archive_from_new_cmds_F77 \ 15084 predep_objects_F77 \ 15085 postdep_objects_F77 \ 15086 predeps_F77 \ 15087 postdeps_F77 \ 15088 compiler_lib_search_path_F77 \ 15089 archive_cmds_F77 \ 15090 archive_expsym_cmds_F77 \ 15091 postinstall_cmds_F77 \ 15092 postuninstall_cmds_F77 \ 15093 old_archive_from_expsyms_cmds_F77 \ 15094 allow_undefined_flag_F77 \ 15095 no_undefined_flag_F77 \ 15096 export_symbols_cmds_F77 \ 15097 hardcode_libdir_flag_spec_F77 \ 15098 hardcode_libdir_flag_spec_ld_F77 \ 15099 hardcode_libdir_separator_F77 \ 15100 hardcode_automatic_F77 \ 15101 module_cmds_F77 \ 15102 module_expsym_cmds_F77 \ 15103 lt_cv_prog_compiler_c_o_F77 \ 15104 exclude_expsyms_F77 \ 15105 include_expsyms_F77; do 15106 15107 case $var in 15108 old_archive_cmds_F77 | \ 15109 old_archive_from_new_cmds_F77 | \ 15110 archive_cmds_F77 | \ 15111 archive_expsym_cmds_F77 | \ 15112 module_cmds_F77 | \ 15113 module_expsym_cmds_F77 | \ 15114 old_archive_from_expsyms_cmds_F77 | \ 15115 export_symbols_cmds_F77 | \ 15116 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15117 postinstall_cmds | postuninstall_cmds | \ 15118 old_postinstall_cmds | old_postuninstall_cmds | \ 15119 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15120 # Double-quote double-evaled strings. 15121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15122 ;; 15123 *) 15124 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15125 ;; 15126 esac 15127 done 15128 15129 case $lt_echo in 15130 *'\$0 --fallback-echo"') 15131 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15132 ;; 15133 esac 15134 15135cfgfile="$ofile" 15136 15137 cat <<__EOF__ >> "$cfgfile" 15138# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15139 15140# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15141 15142# Shell to use when invoking shell scripts. 15143SHELL=$lt_SHELL 15144 15145# Whether or not to build shared libraries. 15146build_libtool_libs=$enable_shared 15147 15148# Whether or not to build static libraries. 15149build_old_libs=$enable_static 15150 15151# Whether or not to add -lc for building shared libraries. 15152build_libtool_need_lc=$archive_cmds_need_lc_F77 15153 15154# Whether or not to disallow shared libs when runtime libs are static 15155allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15156 15157# Whether or not to optimize for fast installation. 15158fast_install=$enable_fast_install 15159 15160# The host system. 15161host_alias=$host_alias 15162host=$host 15163 15164# An echo program that does not interpret backslashes. 15165echo=$lt_echo 15166 15167# The archiver. 15168AR=$lt_AR 15169AR_FLAGS=$lt_AR_FLAGS 15170 15171# A C compiler. 15172LTCC=$lt_LTCC 15173 15174# A language-specific compiler. 15175CC=$lt_compiler_F77 15176 15177# Is the compiler the GNU C compiler? 15178with_gcc=$GCC_F77 15179 15180# An ERE matcher. 15181EGREP=$lt_EGREP 15182 15183# The linker used to build libraries. 15184LD=$lt_LD_F77 15185 15186# Whether we need hard or soft links. 15187LN_S=$lt_LN_S 15188 15189# A BSD-compatible nm program. 15190NM=$lt_NM 15191 15192# A symbol stripping program 15193STRIP=$lt_STRIP 15194 15195# Used to examine libraries when file_magic_cmd begins "file" 15196MAGIC_CMD=$MAGIC_CMD 15197 15198# Used on cygwin: DLL creation program. 15199DLLTOOL="$DLLTOOL" 15200 15201# Used on cygwin: object dumper. 15202OBJDUMP="$OBJDUMP" 15203 15204# Used on cygwin: assembler. 15205AS="$AS" 15206 15207# The name of the directory that contains temporary libtool files. 15208objdir=$objdir 15209 15210# How to create reloadable object files. 15211reload_flag=$lt_reload_flag 15212reload_cmds=$lt_reload_cmds 15213 15214# How to pass a linker flag through the compiler. 15215wl=$lt_lt_prog_compiler_wl_F77 15216 15217# Object file suffix (normally "o"). 15218objext="$ac_objext" 15219 15220# Old archive suffix (normally "a"). 15221libext="$libext" 15222 15223# Shared library suffix (normally ".so"). 15224shrext_cmds='$shrext_cmds' 15225 15226# Executable file suffix (normally ""). 15227exeext="$exeext" 15228 15229# Additional compiler flags for building library objects. 15230pic_flag=$lt_lt_prog_compiler_pic_F77 15231pic_mode=$pic_mode 15232 15233# What is the maximum length of a command? 15234max_cmd_len=$lt_cv_sys_max_cmd_len 15235 15236# Does compiler simultaneously support -c and -o options? 15237compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15238 15239# Must we lock files when doing compilation ? 15240need_locks=$lt_need_locks 15241 15242# Do we need the lib prefix for modules? 15243need_lib_prefix=$need_lib_prefix 15244 15245# Do we need a version for libraries? 15246need_version=$need_version 15247 15248# Whether dlopen is supported. 15249dlopen_support=$enable_dlopen 15250 15251# Whether dlopen of programs is supported. 15252dlopen_self=$enable_dlopen_self 15253 15254# Whether dlopen of statically linked programs is supported. 15255dlopen_self_static=$enable_dlopen_self_static 15256 15257# Compiler flag to prevent dynamic linking. 15258link_static_flag=$lt_lt_prog_compiler_static_F77 15259 15260# Compiler flag to turn off builtin functions. 15261no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15262 15263# Compiler flag to allow reflexive dlopens. 15264export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15265 15266# Compiler flag to generate shared objects directly from archives. 15267whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15268 15269# Compiler flag to generate thread-safe objects. 15270thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15271 15272# Library versioning type. 15273version_type=$version_type 15274 15275# Format of library name prefix. 15276libname_spec=$lt_libname_spec 15277 15278# List of archive names. First name is the real one, the rest are links. 15279# The last name is the one that the linker finds with -lNAME. 15280library_names_spec=$lt_library_names_spec 15281 15282# The coded name of the library, if different from the real name. 15283soname_spec=$lt_soname_spec 15284 15285# Commands used to build and install an old-style archive. 15286RANLIB=$lt_RANLIB 15287old_archive_cmds=$lt_old_archive_cmds_F77 15288old_postinstall_cmds=$lt_old_postinstall_cmds 15289old_postuninstall_cmds=$lt_old_postuninstall_cmds 15290 15291# Create an old-style archive from a shared archive. 15292old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15293 15294# Create a temporary old-style archive to link instead of a shared archive. 15295old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15296 15297# Commands used to build and install a shared archive. 15298archive_cmds=$lt_archive_cmds_F77 15299archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15300postinstall_cmds=$lt_postinstall_cmds 15301postuninstall_cmds=$lt_postuninstall_cmds 15302 15303# Commands used to build a loadable module (assumed same as above if empty) 15304module_cmds=$lt_module_cmds_F77 15305module_expsym_cmds=$lt_module_expsym_cmds_F77 15306 15307# Commands to strip libraries. 15308old_striplib=$lt_old_striplib 15309striplib=$lt_striplib 15310 15311# Dependencies to place before the objects being linked to create a 15312# shared library. 15313predep_objects=$lt_predep_objects_F77 15314 15315# Dependencies to place after the objects being linked to create a 15316# shared library. 15317postdep_objects=$lt_postdep_objects_F77 15318 15319# Dependencies to place before the objects being linked to create a 15320# shared library. 15321predeps=$lt_predeps_F77 15322 15323# Dependencies to place after the objects being linked to create a 15324# shared library. 15325postdeps=$lt_postdeps_F77 15326 15327# The library search path used internally by the compiler when linking 15328# a shared library. 15329compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15330 15331# Method to check whether dependent libraries are shared objects. 15332deplibs_check_method=$lt_deplibs_check_method 15333 15334# Command to use when deplibs_check_method == file_magic. 15335file_magic_cmd=$lt_file_magic_cmd 15336 15337# Flag that allows shared libraries with undefined symbols to be built. 15338allow_undefined_flag=$lt_allow_undefined_flag_F77 15339 15340# Flag that forces no undefined symbols. 15341no_undefined_flag=$lt_no_undefined_flag_F77 15342 15343# Commands used to finish a libtool library installation in a directory. 15344finish_cmds=$lt_finish_cmds 15345 15346# Same as above, but a single script fragment to be evaled but not shown. 15347finish_eval=$lt_finish_eval 15348 15349# Take the output of nm and produce a listing of raw symbols and C names. 15350global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15351 15352# Transform the output of nm in a proper C declaration 15353global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15354 15355# Transform the output of nm in a C name address pair 15356global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15357 15358# This is the shared library runtime path variable. 15359runpath_var=$runpath_var 15360 15361# This is the shared library path variable. 15362shlibpath_var=$shlibpath_var 15363 15364# Is shlibpath searched before the hard-coded library search path? 15365shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15366 15367# How to hardcode a shared library path into an executable. 15368hardcode_action=$hardcode_action_F77 15369 15370# Whether we should hardcode library paths into libraries. 15371hardcode_into_libs=$hardcode_into_libs 15372 15373# Flag to hardcode \$libdir into a binary during linking. 15374# This must work even if \$libdir does not exist. 15375hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15376 15377# If ld is used when linking, flag to hardcode \$libdir into 15378# a binary during linking. This must work even if \$libdir does 15379# not exist. 15380hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15381 15382# Whether we need a single -rpath flag with a separated argument. 15383hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15384 15385# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15386# resulting binary. 15387hardcode_direct=$hardcode_direct_F77 15388 15389# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15390# resulting binary. 15391hardcode_minus_L=$hardcode_minus_L_F77 15392 15393# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15394# the resulting binary. 15395hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15396 15397# Set to yes if building a shared library automatically hardcodes DIR into the library 15398# and all subsequent libraries and executables linked against it. 15399hardcode_automatic=$hardcode_automatic_F77 15400 15401# Variables whose values should be saved in libtool wrapper scripts and 15402# restored at relink time. 15403variables_saved_for_relink="$variables_saved_for_relink" 15404 15405# Whether libtool must link a program against all its dependency libraries. 15406link_all_deplibs=$link_all_deplibs_F77 15407 15408# Compile-time system search path for libraries 15409sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15410 15411# Run-time system search path for libraries 15412sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15413 15414# Fix the shell variable \$srcfile for the compiler. 15415fix_srcfile_path="$fix_srcfile_path_F77" 15416 15417# Set to yes if exported symbols are required. 15418always_export_symbols=$always_export_symbols_F77 15419 15420# The commands to list exported symbols. 15421export_symbols_cmds=$lt_export_symbols_cmds_F77 15422 15423# The commands to extract the exported symbol list from a shared archive. 15424extract_expsyms_cmds=$lt_extract_expsyms_cmds 15425 15426# Symbols that should not be listed in the preloaded symbols. 15427exclude_expsyms=$lt_exclude_expsyms_F77 15428 15429# Symbols that must always be exported. 15430include_expsyms=$lt_include_expsyms_F77 15431 15432# ### END LIBTOOL TAG CONFIG: $tagname 15433 15434__EOF__ 15435 15436 15437else 15438 # If there is no Makefile yet, we rely on a make rule to execute 15439 # `config.status --recheck' to rerun these tests and create the 15440 # libtool script then. 15441 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15442 if test -f "$ltmain_in"; then 15443 test -f Makefile && make "$ltmain" 15444 fi 15445fi 15446 15447 15448ac_ext=c 15449ac_cpp='$CPP $CPPFLAGS' 15450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15452ac_compiler_gnu=$ac_cv_c_compiler_gnu 15453 15454CC="$lt_save_CC" 15455 15456 else 15457 tagname="" 15458 fi 15459 ;; 15460 15461 GCJ) 15462 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15463 15464 15465 15466# Source file extension for Java test sources. 15467ac_ext=java 15468 15469# Object file extension for compiled Java test sources. 15470objext=o 15471objext_GCJ=$objext 15472 15473# Code to be used in simple compile tests 15474lt_simple_compile_test_code="class foo {}\n" 15475 15476# Code to be used in simple link tests 15477lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 15478 15479# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15480 15481# If no C compiler was specified, use CC. 15482LTCC=${LTCC-"$CC"} 15483 15484# Allow CC to be a program name with arguments. 15485compiler=$CC 15486 15487 15488# Allow CC to be a program name with arguments. 15489lt_save_CC="$CC" 15490CC=${GCJ-"gcj"} 15491compiler=$CC 15492compiler_GCJ=$CC 15493 15494# GCJ did not exist at the time GCC didn't implicitly link libc in. 15495archive_cmds_need_lc_GCJ=no 15496 15497 15498lt_prog_compiler_no_builtin_flag_GCJ= 15499 15500if test "$GCC" = yes; then 15501 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15502 15503 15504echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15505echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15506if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15507 echo $ECHO_N "(cached) $ECHO_C" >&6 15508else 15509 lt_cv_prog_compiler_rtti_exceptions=no 15510 ac_outfile=conftest.$ac_objext 15511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15512 lt_compiler_flag="-fno-rtti -fno-exceptions" 15513 # Insert the option either (1) after the last *FLAGS variable, or 15514 # (2) before a word containing "conftest.", or (3) at the end. 15515 # Note that $ac_compile itself does not contain backslashes and begins 15516 # with a dollar sign (not a hyphen), so the echo should work correctly. 15517 # The option is referenced via a variable to avoid confusing sed. 15518 lt_compile=`echo "$ac_compile" | $SED \ 15519 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15521 -e 's:$: $lt_compiler_flag:'` 15522 (eval echo "\"\$as_me:15522: $lt_compile\"" >&5) 15523 (eval "$lt_compile" 2>conftest.err) 15524 ac_status=$? 15525 cat conftest.err >&5 15526 echo "$as_me:15526: \$? = $ac_status" >&5 15527 if (exit $ac_status) && test -s "$ac_outfile"; then 15528 # The compiler can only warn and ignore the option if not recognized 15529 # So say no if there are warnings 15530 if test ! -s conftest.err; then 15531 lt_cv_prog_compiler_rtti_exceptions=yes 15532 fi 15533 fi 15534 $rm conftest* 15535 15536fi 15537echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15538echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15539 15540if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15541 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15542else 15543 : 15544fi 15545 15546fi 15547 15548lt_prog_compiler_wl_GCJ= 15549lt_prog_compiler_pic_GCJ= 15550lt_prog_compiler_static_GCJ= 15551 15552echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15553echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15554 15555 if test "$GCC" = yes; then 15556 lt_prog_compiler_wl_GCJ='-Wl,' 15557 lt_prog_compiler_static_GCJ='-static' 15558 15559 case $host_os in 15560 aix*) 15561 # All AIX code is PIC. 15562 if test "$host_cpu" = ia64; then 15563 # AIX 5 now supports IA64 processor 15564 lt_prog_compiler_static_GCJ='-Bstatic' 15565 fi 15566 ;; 15567 15568 amigaos*) 15569 # FIXME: we need at least 68020 code to build shared libraries, but 15570 # adding the `-m68020' flag to GCC prevents building anything better, 15571 # like `-m68040'. 15572 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15573 ;; 15574 15575 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15576 # PIC is the default for these OSes. 15577 ;; 15578 15579 mingw* | pw32* | os2*) 15580 # This hack is so that the source file can tell whether it is being 15581 # built for inclusion in a dll (and should export symbols for example). 15582 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15583 ;; 15584 15585 darwin* | rhapsody*) 15586 # PIC is the default on this platform 15587 # Common symbols not allowed in MH_DYLIB files 15588 lt_prog_compiler_pic_GCJ='-fno-common' 15589 ;; 15590 15591 msdosdjgpp*) 15592 # Just because we use GCC doesn't mean we suddenly get shared libraries 15593 # on systems that don't support them. 15594 lt_prog_compiler_can_build_shared_GCJ=no 15595 enable_shared=no 15596 ;; 15597 15598 sysv4*MP*) 15599 if test -d /usr/nec; then 15600 lt_prog_compiler_pic_GCJ=-Kconform_pic 15601 fi 15602 ;; 15603 15604 hpux*) 15605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15606 # not for PA HP-UX. 15607 case "$host_cpu" in 15608 hppa*64*|ia64*) 15609 # +Z the default 15610 ;; 15611 *) 15612 lt_prog_compiler_pic_GCJ='-fPIC' 15613 ;; 15614 esac 15615 ;; 15616 15617 *) 15618 lt_prog_compiler_pic_GCJ='-fPIC' 15619 ;; 15620 esac 15621 else 15622 # PORTME Check for flag to pass linker flags through the system compiler. 15623 case $host_os in 15624 aix*) 15625 lt_prog_compiler_wl_GCJ='-Wl,' 15626 if test "$host_cpu" = ia64; then 15627 # AIX 5 now supports IA64 processor 15628 lt_prog_compiler_static_GCJ='-Bstatic' 15629 else 15630 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15631 fi 15632 ;; 15633 15634 mingw* | pw32* | os2*) 15635 # This hack is so that the source file can tell whether it is being 15636 # built for inclusion in a dll (and should export symbols for example). 15637 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15638 ;; 15639 15640 hpux9* | hpux10* | hpux11*) 15641 lt_prog_compiler_wl_GCJ='-Wl,' 15642 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15643 # not for PA HP-UX. 15644 case "$host_cpu" in 15645 hppa*64*|ia64*) 15646 # +Z the default 15647 ;; 15648 *) 15649 lt_prog_compiler_pic_GCJ='+Z' 15650 ;; 15651 esac 15652 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15653 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15654 ;; 15655 15656 irix5* | irix6* | nonstopux*) 15657 lt_prog_compiler_wl_GCJ='-Wl,' 15658 # PIC (with -KPIC) is the default. 15659 lt_prog_compiler_static_GCJ='-non_shared' 15660 ;; 15661 15662 newsos6) 15663 lt_prog_compiler_pic_GCJ='-KPIC' 15664 lt_prog_compiler_static_GCJ='-Bstatic' 15665 ;; 15666 15667 linux*) 15668 case $CC in 15669 icc* | ecc*) 15670 lt_prog_compiler_wl_GCJ='-Wl,' 15671 lt_prog_compiler_pic_GCJ='-KPIC' 15672 lt_prog_compiler_static_GCJ='-static' 15673 ;; 15674 ccc*) 15675 lt_prog_compiler_wl_GCJ='-Wl,' 15676 # All Alpha code is PIC. 15677 lt_prog_compiler_static_GCJ='-non_shared' 15678 ;; 15679 esac 15680 ;; 15681 15682 osf3* | osf4* | osf5*) 15683 lt_prog_compiler_wl_GCJ='-Wl,' 15684 # All OSF/1 code is PIC. 15685 lt_prog_compiler_static_GCJ='-non_shared' 15686 ;; 15687 15688 sco3.2v5*) 15689 lt_prog_compiler_pic_GCJ='-Kpic' 15690 lt_prog_compiler_static_GCJ='-dn' 15691 ;; 15692 15693 solaris*) 15694 lt_prog_compiler_wl_GCJ='-Wl,' 15695 lt_prog_compiler_pic_GCJ='-KPIC' 15696 lt_prog_compiler_static_GCJ='-Bstatic' 15697 ;; 15698 15699 sunos4*) 15700 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15701 lt_prog_compiler_pic_GCJ='-PIC' 15702 lt_prog_compiler_static_GCJ='-Bstatic' 15703 ;; 15704 15705 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15706 lt_prog_compiler_wl_GCJ='-Wl,' 15707 lt_prog_compiler_pic_GCJ='-KPIC' 15708 lt_prog_compiler_static_GCJ='-Bstatic' 15709 ;; 15710 15711 sysv4*MP*) 15712 if test -d /usr/nec ;then 15713 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15714 lt_prog_compiler_static_GCJ='-Bstatic' 15715 fi 15716 ;; 15717 15718 uts4*) 15719 lt_prog_compiler_pic_GCJ='-pic' 15720 lt_prog_compiler_static_GCJ='-Bstatic' 15721 ;; 15722 15723 *) 15724 lt_prog_compiler_can_build_shared_GCJ=no 15725 ;; 15726 esac 15727 fi 15728 15729echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15730echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15731 15732# 15733# Check to make sure the PIC flag actually works. 15734# 15735if test -n "$lt_prog_compiler_pic_GCJ"; then 15736 15737echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15738echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15739if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15740 echo $ECHO_N "(cached) $ECHO_C" >&6 15741else 15742 lt_prog_compiler_pic_works_GCJ=no 15743 ac_outfile=conftest.$ac_objext 15744 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15745 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15746 # Insert the option either (1) after the last *FLAGS variable, or 15747 # (2) before a word containing "conftest.", or (3) at the end. 15748 # Note that $ac_compile itself does not contain backslashes and begins 15749 # with a dollar sign (not a hyphen), so the echo should work correctly. 15750 # The option is referenced via a variable to avoid confusing sed. 15751 lt_compile=`echo "$ac_compile" | $SED \ 15752 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15754 -e 's:$: $lt_compiler_flag:'` 15755 (eval echo "\"\$as_me:15755: $lt_compile\"" >&5) 15756 (eval "$lt_compile" 2>conftest.err) 15757 ac_status=$? 15758 cat conftest.err >&5 15759 echo "$as_me:15759: \$? = $ac_status" >&5 15760 if (exit $ac_status) && test -s "$ac_outfile"; then 15761 # The compiler can only warn and ignore the option if not recognized 15762 # So say no if there are warnings 15763 if test ! -s conftest.err; then 15764 lt_prog_compiler_pic_works_GCJ=yes 15765 fi 15766 fi 15767 $rm conftest* 15768 15769fi 15770echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15771echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15772 15773if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15774 case $lt_prog_compiler_pic_GCJ in 15775 "" | " "*) ;; 15776 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15777 esac 15778else 15779 lt_prog_compiler_pic_GCJ= 15780 lt_prog_compiler_can_build_shared_GCJ=no 15781fi 15782 15783fi 15784case "$host_os" in 15785 # For platforms which do not support PIC, -DPIC is meaningless: 15786 *djgpp*) 15787 lt_prog_compiler_pic_GCJ= 15788 ;; 15789 *) 15790 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15791 ;; 15792esac 15793 15794echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15795echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15796if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15797 echo $ECHO_N "(cached) $ECHO_C" >&6 15798else 15799 lt_cv_prog_compiler_c_o_GCJ=no 15800 $rm -r conftest 2>/dev/null 15801 mkdir conftest 15802 cd conftest 15803 mkdir out 15804 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15805 15806 lt_compiler_flag="-o out/conftest2.$ac_objext" 15807 # Insert the option either (1) after the last *FLAGS variable, or 15808 # (2) before a word containing "conftest.", or (3) at the end. 15809 # Note that $ac_compile itself does not contain backslashes and begins 15810 # with a dollar sign (not a hyphen), so the echo should work correctly. 15811 lt_compile=`echo "$ac_compile" | $SED \ 15812 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15814 -e 's:$: $lt_compiler_flag:'` 15815 (eval echo "\"\$as_me:15815: $lt_compile\"" >&5) 15816 (eval "$lt_compile" 2>out/conftest.err) 15817 ac_status=$? 15818 cat out/conftest.err >&5 15819 echo "$as_me:15819: \$? = $ac_status" >&5 15820 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15821 then 15822 # The compiler can only warn and ignore the option if not recognized 15823 # So say no if there are warnings 15824 if test ! -s out/conftest.err; then 15825 lt_cv_prog_compiler_c_o_GCJ=yes 15826 fi 15827 fi 15828 chmod u+w . 15829 $rm conftest* 15830 # SGI C++ compiler will create directory out/ii_files/ for 15831 # template instantiation 15832 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15833 $rm out/* && rmdir out 15834 cd .. 15835 rmdir conftest 15836 $rm conftest* 15837 15838fi 15839echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15840echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15841 15842 15843hard_links="nottested" 15844if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15845 # do not overwrite the value of need_locks provided by the user 15846 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15847echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15848 hard_links=yes 15849 $rm conftest* 15850 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15851 touch conftest.a 15852 ln conftest.a conftest.b 2>&5 || hard_links=no 15853 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15854 echo "$as_me:$LINENO: result: $hard_links" >&5 15855echo "${ECHO_T}$hard_links" >&6 15856 if test "$hard_links" = no; then 15857 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15858echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15859 need_locks=warn 15860 fi 15861else 15862 need_locks=no 15863fi 15864 15865echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15866echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15867 15868 runpath_var= 15869 allow_undefined_flag_GCJ= 15870 enable_shared_with_static_runtimes_GCJ=no 15871 archive_cmds_GCJ= 15872 archive_expsym_cmds_GCJ= 15873 old_archive_From_new_cmds_GCJ= 15874 old_archive_from_expsyms_cmds_GCJ= 15875 export_dynamic_flag_spec_GCJ= 15876 whole_archive_flag_spec_GCJ= 15877 thread_safe_flag_spec_GCJ= 15878 hardcode_libdir_flag_spec_GCJ= 15879 hardcode_libdir_flag_spec_ld_GCJ= 15880 hardcode_libdir_separator_GCJ= 15881 hardcode_direct_GCJ=no 15882 hardcode_minus_L_GCJ=no 15883 hardcode_shlibpath_var_GCJ=unsupported 15884 link_all_deplibs_GCJ=unknown 15885 hardcode_automatic_GCJ=no 15886 module_cmds_GCJ= 15887 module_expsym_cmds_GCJ= 15888 always_export_symbols_GCJ=no 15889 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15890 # include_expsyms should be a list of space-separated symbols to be *always* 15891 # included in the symbol list 15892 include_expsyms_GCJ= 15893 # exclude_expsyms can be an extended regexp of symbols to exclude 15894 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15895 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15896 # as well as any symbol that contains `d'. 15897 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15898 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15899 # platforms (ab)use it in PIC code, but their linkers get confused if 15900 # the symbol is explicitly referenced. Since portable code cannot 15901 # rely on this symbol name, it's probably fine to never include it in 15902 # preloaded symbol tables. 15903 extract_expsyms_cmds= 15904 15905 case $host_os in 15906 cygwin* | mingw* | pw32*) 15907 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15908 # When not using gcc, we currently assume that we are using 15909 # Microsoft Visual C++. 15910 if test "$GCC" != yes; then 15911 with_gnu_ld=no 15912 fi 15913 ;; 15914 openbsd*) 15915 with_gnu_ld=no 15916 ;; 15917 esac 15918 15919 ld_shlibs_GCJ=yes 15920 if test "$with_gnu_ld" = yes; then 15921 # If archive_cmds runs LD, not CC, wlarc should be empty 15922 wlarc='${wl}' 15923 15924 # See if GNU ld supports shared libraries. 15925 case $host_os in 15926 aix3* | aix4* | aix5*) 15927 # On AIX/PPC, the GNU linker is very broken 15928 if test "$host_cpu" != ia64; then 15929 ld_shlibs_GCJ=no 15930 cat <<EOF 1>&2 15931 15932*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15933*** to be unable to reliably create shared libraries on AIX. 15934*** Therefore, libtool is disabling shared libraries support. If you 15935*** really care for shared libraries, you may want to modify your PATH 15936*** so that a non-GNU linker is found, and then restart. 15937 15938EOF 15939 fi 15940 ;; 15941 15942 amigaos*) 15943 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)' 15944 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15945 hardcode_minus_L_GCJ=yes 15946 15947 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15948 # that the semantics of dynamic libraries on AmigaOS, at least up 15949 # to version 4, is to share data among multiple programs linked 15950 # with the same dynamic library. Since this doesn't match the 15951 # behavior of shared libraries on other platforms, we can't use 15952 # them. 15953 ld_shlibs_GCJ=no 15954 ;; 15955 15956 beos*) 15957 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15958 allow_undefined_flag_GCJ=unsupported 15959 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15960 # support --undefined. This deserves some investigation. FIXME 15961 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15962 else 15963 ld_shlibs_GCJ=no 15964 fi 15965 ;; 15966 15967 cygwin* | mingw* | pw32*) 15968 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 15969 # as there is no search path for DLLs. 15970 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15971 allow_undefined_flag_GCJ=unsupported 15972 always_export_symbols_GCJ=no 15973 enable_shared_with_static_runtimes_GCJ=yes 15974 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15975 15976 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15977 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15978 # If the export-symbols file already is a .def file (1st line 15979 # is EXPORTS), use it as is; otherwise, prepend... 15980 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15981 cp $export_symbols $output_objdir/$soname.def; 15982 else 15983 echo EXPORTS > $output_objdir/$soname.def; 15984 cat $export_symbols >> $output_objdir/$soname.def; 15985 fi~ 15986 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15987 else 15988 ld_shlibs=no 15989 fi 15990 ;; 15991 15992 netbsd*) 15993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15994 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15995 wlarc= 15996 else 15997 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15998 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15999 fi 16000 ;; 16001 16002 solaris* | sysv5*) 16003 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16004 ld_shlibs_GCJ=no 16005 cat <<EOF 1>&2 16006 16007*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16008*** create shared libraries on Solaris systems. Therefore, libtool 16009*** is disabling shared libraries support. We urge you to upgrade GNU 16010*** binutils to release 2.9.1 or newer. Another option is to modify 16011*** your PATH or compiler configuration so that the native linker is 16012*** used, and then restart. 16013 16014EOF 16015 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16016 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16017 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16018 else 16019 ld_shlibs_GCJ=no 16020 fi 16021 ;; 16022 16023 sunos4*) 16024 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16025 wlarc= 16026 hardcode_direct_GCJ=yes 16027 hardcode_shlibpath_var_GCJ=no 16028 ;; 16029 16030 linux*) 16031 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16032 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16033 archive_cmds_GCJ="$tmp_archive_cmds" 16034 supports_anon_versioning=no 16035 case `$LD -v 2>/dev/null` in 16036 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16037 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16038 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16039 *\ 2.11.*) ;; # other 2.11 versions 16040 *) supports_anon_versioning=yes ;; 16041 esac 16042 if test $supports_anon_versioning = yes; then 16043 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16044cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16045$echo "local: *; };" >> $output_objdir/$libname.ver~ 16046 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16047 else 16048 archive_expsym_cmds_GCJ="$tmp_archive_cmds" 16049 fi 16050 else 16051 ld_shlibs_GCJ=no 16052 fi 16053 ;; 16054 16055 *) 16056 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16057 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16058 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16059 else 16060 ld_shlibs_GCJ=no 16061 fi 16062 ;; 16063 esac 16064 16065 if test "$ld_shlibs_GCJ" = yes; then 16066 runpath_var=LD_RUN_PATH 16067 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16068 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16069 # ancient GNU ld didn't support --whole-archive et. al. 16070 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16071 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16072 else 16073 whole_archive_flag_spec_GCJ= 16074 fi 16075 fi 16076 else 16077 # PORTME fill in a description of your system's linker (not GNU ld) 16078 case $host_os in 16079 aix3*) 16080 allow_undefined_flag_GCJ=unsupported 16081 always_export_symbols_GCJ=yes 16082 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' 16083 # Note: this linker hardcodes the directories in LIBPATH if there 16084 # are no directories specified by -L. 16085 hardcode_minus_L_GCJ=yes 16086 if test "$GCC" = yes && test -z "$link_static_flag"; then 16087 # Neither direct hardcoding nor static linking is supported with a 16088 # broken collect2. 16089 hardcode_direct_GCJ=unsupported 16090 fi 16091 ;; 16092 16093 aix4* | aix5*) 16094 if test "$host_cpu" = ia64; then 16095 # On IA64, the linker does run time linking by default, so we don't 16096 # have to do anything special. 16097 aix_use_runtimelinking=no 16098 exp_sym_flag='-Bexport' 16099 no_entry_flag="" 16100 else 16101 # If we're using GNU nm, then we don't want the "-C" option. 16102 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16103 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16104 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' 16105 else 16106 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' 16107 fi 16108 aix_use_runtimelinking=no 16109 16110 # Test if we are trying to use run time linking or normal 16111 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16112 # need to do runtime linking. 16113 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16114 for ld_flag in $LDFLAGS; do 16115 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16116 aix_use_runtimelinking=yes 16117 break 16118 fi 16119 done 16120 esac 16121 16122 exp_sym_flag='-bexport' 16123 no_entry_flag='-bnoentry' 16124 fi 16125 16126 # When large executables or shared objects are built, AIX ld can 16127 # have problems creating the table of contents. If linking a library 16128 # or program results in "error TOC overflow" add -mminimal-toc to 16129 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16130 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16131 16132 archive_cmds_GCJ='' 16133 hardcode_direct_GCJ=yes 16134 hardcode_libdir_separator_GCJ=':' 16135 link_all_deplibs_GCJ=yes 16136 16137 if test "$GCC" = yes; then 16138 case $host_os in aix4.012|aix4.012.*) 16139 # We only want to do this on AIX 4.2 and lower, the check 16140 # below for broken collect2 doesn't work under 4.3+ 16141 collect2name=`${CC} -print-prog-name=collect2` 16142 if test -f "$collect2name" && \ 16143 strings "$collect2name" | grep resolve_lib_name >/dev/null 16144 then 16145 # We have reworked collect2 16146 hardcode_direct_GCJ=yes 16147 else 16148 # We have old collect2 16149 hardcode_direct_GCJ=unsupported 16150 # It fails to find uninstalled libraries when the uninstalled 16151 # path is not listed in the libpath. Setting hardcode_minus_L 16152 # to unsupported forces relinking 16153 hardcode_minus_L_GCJ=yes 16154 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16155 hardcode_libdir_separator_GCJ= 16156 fi 16157 esac 16158 shared_flag='-shared' 16159 else 16160 # not using gcc 16161 if test "$host_cpu" = ia64; then 16162 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16163 # chokes on -Wl,-G. The following line is correct: 16164 shared_flag='-G' 16165 else 16166 if test "$aix_use_runtimelinking" = yes; then 16167 shared_flag='${wl}-G' 16168 else 16169 shared_flag='${wl}-bM:SRE' 16170 fi 16171 fi 16172 fi 16173 16174 # It seems that -bexpall does not export symbols beginning with 16175 # underscore (_), so it is better to generate a list of symbols to export. 16176 always_export_symbols_GCJ=yes 16177 if test "$aix_use_runtimelinking" = yes; then 16178 # Warning - without using the other runtime loading flags (-brtl), 16179 # -berok will link without error, but may produce a broken library. 16180 allow_undefined_flag_GCJ='-berok' 16181 # Determine the default libpath from the value encoded in an empty executable. 16182 cat >conftest.$ac_ext <<_ACEOF 16183/* confdefs.h. */ 16184_ACEOF 16185cat confdefs.h >>conftest.$ac_ext 16186cat >>conftest.$ac_ext <<_ACEOF 16187/* end confdefs.h. */ 16188 16189int 16190main () 16191{ 16192 16193 ; 16194 return 0; 16195} 16196_ACEOF 16197rm -f conftest.$ac_objext conftest$ac_exeext 16198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16199 (eval $ac_link) 2>conftest.er1 16200 ac_status=$? 16201 grep -v '^ *+' conftest.er1 >conftest.err 16202 rm -f conftest.er1 16203 cat conftest.err >&5 16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16205 (exit $ac_status); } && 16206 { ac_try='test -z "$ac_c_werror_flag" 16207 || test ! -s conftest.err' 16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16209 (eval $ac_try) 2>&5 16210 ac_status=$? 16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16212 (exit $ac_status); }; } && 16213 { ac_try='test -s conftest$ac_exeext' 16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16215 (eval $ac_try) 2>&5 16216 ac_status=$? 16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16218 (exit $ac_status); }; }; then 16219 16220aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16221}'` 16222# Check for a 64-bit object if we didn't find anything. 16223if 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; } 16224}'`; fi 16225else 16226 echo "$as_me: failed program was:" >&5 16227sed 's/^/| /' conftest.$ac_ext >&5 16228 16229fi 16230rm -f conftest.err conftest.$ac_objext \ 16231 conftest$ac_exeext conftest.$ac_ext 16232if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16233 16234 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16235 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" 16236 else 16237 if test "$host_cpu" = ia64; then 16238 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16239 allow_undefined_flag_GCJ="-z nodefs" 16240 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" 16241 else 16242 # Determine the default libpath from the value encoded in an empty executable. 16243 cat >conftest.$ac_ext <<_ACEOF 16244/* confdefs.h. */ 16245_ACEOF 16246cat confdefs.h >>conftest.$ac_ext 16247cat >>conftest.$ac_ext <<_ACEOF 16248/* end confdefs.h. */ 16249 16250int 16251main () 16252{ 16253 16254 ; 16255 return 0; 16256} 16257_ACEOF 16258rm -f conftest.$ac_objext conftest$ac_exeext 16259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16260 (eval $ac_link) 2>conftest.er1 16261 ac_status=$? 16262 grep -v '^ *+' conftest.er1 >conftest.err 16263 rm -f conftest.er1 16264 cat conftest.err >&5 16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16266 (exit $ac_status); } && 16267 { ac_try='test -z "$ac_c_werror_flag" 16268 || test ! -s conftest.err' 16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16270 (eval $ac_try) 2>&5 16271 ac_status=$? 16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16273 (exit $ac_status); }; } && 16274 { ac_try='test -s conftest$ac_exeext' 16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16276 (eval $ac_try) 2>&5 16277 ac_status=$? 16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16279 (exit $ac_status); }; }; then 16280 16281aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16282}'` 16283# Check for a 64-bit object if we didn't find anything. 16284if 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; } 16285}'`; fi 16286else 16287 echo "$as_me: failed program was:" >&5 16288sed 's/^/| /' conftest.$ac_ext >&5 16289 16290fi 16291rm -f conftest.err conftest.$ac_objext \ 16292 conftest$ac_exeext conftest.$ac_ext 16293if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16294 16295 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16296 # Warning - without using the other run time loading flags, 16297 # -berok will link without error, but may produce a broken library. 16298 no_undefined_flag_GCJ=' ${wl}-bernotok' 16299 allow_undefined_flag_GCJ=' ${wl}-berok' 16300 # -bexpall does not export symbols beginning with underscore (_) 16301 always_export_symbols_GCJ=yes 16302 # Exported symbols can be pulled into shared objects from archives 16303 whole_archive_flag_spec_GCJ=' ' 16304 archive_cmds_need_lc_GCJ=yes 16305 # This is similar to how AIX traditionally builds it's shared libraries. 16306 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' 16307 fi 16308 fi 16309 ;; 16310 16311 amigaos*) 16312 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)' 16313 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16314 hardcode_minus_L_GCJ=yes 16315 # see comment about different semantics on the GNU ld section 16316 ld_shlibs_GCJ=no 16317 ;; 16318 16319 bsdi4*) 16320 export_dynamic_flag_spec_GCJ=-rdynamic 16321 ;; 16322 16323 cygwin* | mingw* | pw32*) 16324 # When not using gcc, we currently assume that we are using 16325 # Microsoft Visual C++. 16326 # hardcode_libdir_flag_spec is actually meaningless, as there is 16327 # no search path for DLLs. 16328 hardcode_libdir_flag_spec_GCJ=' ' 16329 allow_undefined_flag_GCJ=unsupported 16330 # Tell ltmain to make .lib files, not .a files. 16331 libext=lib 16332 # Tell ltmain to make .dll files, not .so files. 16333 shrext_cmds=".dll" 16334 # FIXME: Setting linknames here is a bad hack. 16335 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16336 # The linker will automatically build a .lib file if we build a DLL. 16337 old_archive_From_new_cmds_GCJ='true' 16338 # FIXME: Should let the user specify the lib program. 16339 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16340 fix_srcfile_path='`cygpath -w "$srcfile"`' 16341 enable_shared_with_static_runtimes_GCJ=yes 16342 ;; 16343 16344 darwin* | rhapsody*) 16345 if test "$GXX" = yes ; then 16346 archive_cmds_need_lc_GCJ=no 16347 case "$host_os" in 16348 rhapsody* | darwin1.[012]) 16349 allow_undefined_flag_GCJ='-undefined suppress' 16350 ;; 16351 *) # Darwin 1.3 on 16352 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16353 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 16354 else 16355 case ${MACOSX_DEPLOYMENT_TARGET} in 16356 10.[012]) 16357 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 16358 ;; 16359 10.*) 16360 allow_undefined_flag_GCJ='-undefined dynamic_lookup' 16361 ;; 16362 esac 16363 fi 16364 ;; 16365 esac 16366 lt_int_apple_cc_single_mod=no 16367 output_verbose_link_cmd='echo' 16368 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 16369 lt_int_apple_cc_single_mod=yes 16370 fi 16371 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16372 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16373 else 16374 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' 16375 fi 16376 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16377 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16378 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16379 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}' 16380 else 16381 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}' 16382 fi 16383 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}' 16384 hardcode_direct_GCJ=no 16385 hardcode_automatic_GCJ=yes 16386 hardcode_shlibpath_var_GCJ=unsupported 16387 whole_archive_flag_spec_GCJ='-all_load $convenience' 16388 link_all_deplibs_GCJ=yes 16389 else 16390 ld_shlibs_GCJ=no 16391 fi 16392 ;; 16393 16394 dgux*) 16395 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16396 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16397 hardcode_shlibpath_var_GCJ=no 16398 ;; 16399 16400 freebsd1*) 16401 ld_shlibs_GCJ=no 16402 ;; 16403 16404 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16405 # support. Future versions do this automatically, but an explicit c++rt0.o 16406 # does not break anything, and helps significantly (at the cost of a little 16407 # extra space). 16408 freebsd2.2*) 16409 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16410 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16411 hardcode_direct_GCJ=yes 16412 hardcode_shlibpath_var_GCJ=no 16413 ;; 16414 16415 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16416 freebsd2*) 16417 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16418 hardcode_direct_GCJ=yes 16419 hardcode_minus_L_GCJ=yes 16420 hardcode_shlibpath_var_GCJ=no 16421 ;; 16422 16423 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16424 freebsd* | kfreebsd*-gnu) 16425 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16426 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16427 hardcode_direct_GCJ=yes 16428 hardcode_shlibpath_var_GCJ=no 16429 ;; 16430 16431 hpux9*) 16432 if test "$GCC" = yes; then 16433 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' 16434 else 16435 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' 16436 fi 16437 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16438 hardcode_libdir_separator_GCJ=: 16439 hardcode_direct_GCJ=yes 16440 16441 # hardcode_minus_L: Not really in the search PATH, 16442 # but as the default location of the library. 16443 hardcode_minus_L_GCJ=yes 16444 export_dynamic_flag_spec_GCJ='${wl}-E' 16445 ;; 16446 16447 hpux10* | hpux11*) 16448 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16449 case "$host_cpu" in 16450 hppa*64*|ia64*) 16451 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16452 ;; 16453 *) 16454 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16455 ;; 16456 esac 16457 else 16458 case "$host_cpu" in 16459 hppa*64*|ia64*) 16460 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 16461 ;; 16462 *) 16463 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16464 ;; 16465 esac 16466 fi 16467 if test "$with_gnu_ld" = no; then 16468 case "$host_cpu" in 16469 hppa*64*) 16470 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16471 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16472 hardcode_libdir_separator_GCJ=: 16473 hardcode_direct_GCJ=no 16474 hardcode_shlibpath_var_GCJ=no 16475 ;; 16476 ia64*) 16477 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16478 hardcode_direct_GCJ=no 16479 hardcode_shlibpath_var_GCJ=no 16480 16481 # hardcode_minus_L: Not really in the search PATH, 16482 # but as the default location of the library. 16483 hardcode_minus_L_GCJ=yes 16484 ;; 16485 *) 16486 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16487 hardcode_libdir_separator_GCJ=: 16488 hardcode_direct_GCJ=yes 16489 export_dynamic_flag_spec_GCJ='${wl}-E' 16490 16491 # hardcode_minus_L: Not really in the search PATH, 16492 # but as the default location of the library. 16493 hardcode_minus_L_GCJ=yes 16494 ;; 16495 esac 16496 fi 16497 ;; 16498 16499 irix5* | irix6* | nonstopux*) 16500 if test "$GCC" = yes; then 16501 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' 16502 else 16503 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' 16504 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16505 fi 16506 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16507 hardcode_libdir_separator_GCJ=: 16508 link_all_deplibs_GCJ=yes 16509 ;; 16510 16511 netbsd*) 16512 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16513 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16514 else 16515 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16516 fi 16517 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16518 hardcode_direct_GCJ=yes 16519 hardcode_shlibpath_var_GCJ=no 16520 ;; 16521 16522 newsos6) 16523 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16524 hardcode_direct_GCJ=yes 16525 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16526 hardcode_libdir_separator_GCJ=: 16527 hardcode_shlibpath_var_GCJ=no 16528 ;; 16529 16530 openbsd*) 16531 hardcode_direct_GCJ=yes 16532 hardcode_shlibpath_var_GCJ=no 16533 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16534 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16535 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16536 export_dynamic_flag_spec_GCJ='${wl}-E' 16537 else 16538 case $host_os in 16539 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16540 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16541 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16542 ;; 16543 *) 16544 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16545 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16546 ;; 16547 esac 16548 fi 16549 ;; 16550 16551 os2*) 16552 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16553 hardcode_minus_L_GCJ=yes 16554 allow_undefined_flag_GCJ=unsupported 16555 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' 16556 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16557 ;; 16558 16559 osf3*) 16560 if test "$GCC" = yes; then 16561 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16562 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' 16563 else 16564 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16565 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' 16566 fi 16567 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16568 hardcode_libdir_separator_GCJ=: 16569 ;; 16570 16571 osf4* | osf5*) # as osf3* with the addition of -msym flag 16572 if test "$GCC" = yes; then 16573 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16574 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' 16575 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16576 else 16577 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16578 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' 16579 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~ 16580 $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' 16581 16582 # Both c and cxx compiler support -rpath directly 16583 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16584 fi 16585 hardcode_libdir_separator_GCJ=: 16586 ;; 16587 16588 sco3.2v5*) 16589 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16590 hardcode_shlibpath_var_GCJ=no 16591 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16592 runpath_var=LD_RUN_PATH 16593 hardcode_runpath_var=yes 16594 ;; 16595 16596 solaris*) 16597 no_undefined_flag_GCJ=' -z text' 16598 if test "$GCC" = yes; then 16599 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16600 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16601 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16602 else 16603 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16604 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16606 fi 16607 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16608 hardcode_shlibpath_var_GCJ=no 16609 case $host_os in 16610 solaris2.[0-5] | solaris2.[0-5].*) ;; 16611 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 16612 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16613 esac 16614 link_all_deplibs_GCJ=yes 16615 ;; 16616 16617 sunos4*) 16618 if test "x$host_vendor" = xsequent; then 16619 # Use $CC to link under sequent, because it throws in some extra .o 16620 # files that make .init and .fini sections work. 16621 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16622 else 16623 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16624 fi 16625 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16626 hardcode_direct_GCJ=yes 16627 hardcode_minus_L_GCJ=yes 16628 hardcode_shlibpath_var_GCJ=no 16629 ;; 16630 16631 sysv4) 16632 case $host_vendor in 16633 sni) 16634 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16635 hardcode_direct_GCJ=yes # is this really true??? 16636 ;; 16637 siemens) 16638 ## LD is ld it makes a PLAMLIB 16639 ## CC just makes a GrossModule. 16640 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16641 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16642 hardcode_direct_GCJ=no 16643 ;; 16644 motorola) 16645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16646 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16647 ;; 16648 esac 16649 runpath_var='LD_RUN_PATH' 16650 hardcode_shlibpath_var_GCJ=no 16651 ;; 16652 16653 sysv4.3*) 16654 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16655 hardcode_shlibpath_var_GCJ=no 16656 export_dynamic_flag_spec_GCJ='-Bexport' 16657 ;; 16658 16659 sysv4*MP*) 16660 if test -d /usr/nec; then 16661 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16662 hardcode_shlibpath_var_GCJ=no 16663 runpath_var=LD_RUN_PATH 16664 hardcode_runpath_var=yes 16665 ld_shlibs_GCJ=yes 16666 fi 16667 ;; 16668 16669 sysv4.2uw2*) 16670 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16671 hardcode_direct_GCJ=yes 16672 hardcode_minus_L_GCJ=no 16673 hardcode_shlibpath_var_GCJ=no 16674 hardcode_runpath_var=yes 16675 runpath_var=LD_RUN_PATH 16676 ;; 16677 16678 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16679 no_undefined_flag_GCJ='${wl}-z ${wl}text' 16680 if test "$GCC" = yes; then 16681 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16682 else 16683 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16684 fi 16685 runpath_var='LD_RUN_PATH' 16686 hardcode_shlibpath_var_GCJ=no 16687 ;; 16688 16689 sysv5*) 16690 no_undefined_flag_GCJ=' -z text' 16691 # $CC -shared without GNU ld will not create a library from C++ 16692 # object files and a static libstdc++, better avoid it by now 16693 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16694 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16695 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16696 hardcode_libdir_flag_spec_GCJ= 16697 hardcode_shlibpath_var_GCJ=no 16698 runpath_var='LD_RUN_PATH' 16699 ;; 16700 16701 uts4*) 16702 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16703 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16704 hardcode_shlibpath_var_GCJ=no 16705 ;; 16706 16707 *) 16708 ld_shlibs_GCJ=no 16709 ;; 16710 esac 16711 fi 16712 16713echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16714echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16715test "$ld_shlibs_GCJ" = no && can_build_shared=no 16716 16717variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16718if test "$GCC" = yes; then 16719 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16720fi 16721 16722# 16723# Do we need to explicitly link libc? 16724# 16725case "x$archive_cmds_need_lc_GCJ" in 16726x|xyes) 16727 # Assume -lc should be added 16728 archive_cmds_need_lc_GCJ=yes 16729 16730 if test "$enable_shared" = yes && test "$GCC" = yes; then 16731 case $archive_cmds_GCJ in 16732 *'~'*) 16733 # FIXME: we may have to deal with multi-command sequences. 16734 ;; 16735 '$CC '*) 16736 # Test whether the compiler implicitly links with -lc since on some 16737 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16738 # to ld, don't add -lc before -lgcc. 16739 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16740echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16741 $rm conftest* 16742 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16743 16744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16745 (eval $ac_compile) 2>&5 16746 ac_status=$? 16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16748 (exit $ac_status); } 2>conftest.err; then 16749 soname=conftest 16750 lib=conftest 16751 libobjs=conftest.$ac_objext 16752 deplibs= 16753 wl=$lt_prog_compiler_wl_GCJ 16754 compiler_flags=-v 16755 linker_flags=-v 16756 verstring= 16757 output_objdir=. 16758 libname=conftest 16759 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16760 allow_undefined_flag_GCJ= 16761 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16762 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16763 ac_status=$? 16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16765 (exit $ac_status); } 16766 then 16767 archive_cmds_need_lc_GCJ=no 16768 else 16769 archive_cmds_need_lc_GCJ=yes 16770 fi 16771 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16772 else 16773 cat conftest.err 1>&5 16774 fi 16775 $rm conftest* 16776 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16777echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16778 ;; 16779 esac 16780 fi 16781 ;; 16782esac 16783 16784echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16785echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16786library_names_spec= 16787libname_spec='lib$name' 16788soname_spec= 16789shrext_cmds=".so" 16790postinstall_cmds= 16791postuninstall_cmds= 16792finish_cmds= 16793finish_eval= 16794shlibpath_var= 16795shlibpath_overrides_runpath=unknown 16796version_type=none 16797dynamic_linker="$host_os ld.so" 16798sys_lib_dlsearch_path_spec="/lib /usr/lib" 16799if test "$GCC" = yes; then 16800 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16801 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16802 # if the path contains ";" then we assume it to be the separator 16803 # otherwise default to the standard path separator (i.e. ":") - it is 16804 # assumed that no part of a normal pathname contains ";" but that should 16805 # okay in the real world where ";" in dirpaths is itself problematic. 16806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16807 else 16808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16809 fi 16810else 16811 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16812fi 16813need_lib_prefix=unknown 16814hardcode_into_libs=no 16815 16816# when you set need_version to no, make sure it does not cause -set_version 16817# flags to be left without arguments 16818need_version=unknown 16819 16820case $host_os in 16821aix3*) 16822 version_type=linux 16823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16824 shlibpath_var=LIBPATH 16825 16826 # AIX 3 has no versioning support, so we append a major version to the name. 16827 soname_spec='${libname}${release}${shared_ext}$major' 16828 ;; 16829 16830aix4* | aix5*) 16831 version_type=linux 16832 need_lib_prefix=no 16833 need_version=no 16834 hardcode_into_libs=yes 16835 if test "$host_cpu" = ia64; then 16836 # AIX 5 supports IA64 16837 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16838 shlibpath_var=LD_LIBRARY_PATH 16839 else 16840 # With GCC up to 2.95.x, collect2 would create an import file 16841 # for dependence libraries. The import file would start with 16842 # the line `#! .'. This would cause the generated library to 16843 # depend on `.', always an invalid library. This was fixed in 16844 # development snapshots of GCC prior to 3.0. 16845 case $host_os in 16846 aix4 | aix4.[01] | aix4.[01].*) 16847 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16848 echo ' yes ' 16849 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16850 : 16851 else 16852 can_build_shared=no 16853 fi 16854 ;; 16855 esac 16856 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16857 # soname into executable. Probably we can add versioning support to 16858 # collect2, so additional links can be useful in future. 16859 if test "$aix_use_runtimelinking" = yes; then 16860 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16861 # instead of lib<name>.a to let people know that these are not 16862 # typical AIX shared libraries. 16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16864 else 16865 # We preserve .a as extension for shared libraries through AIX4.2 16866 # and later when we are not doing run time linking. 16867 library_names_spec='${libname}${release}.a $libname.a' 16868 soname_spec='${libname}${release}${shared_ext}$major' 16869 fi 16870 shlibpath_var=LIBPATH 16871 fi 16872 ;; 16873 16874amigaos*) 16875 library_names_spec='$libname.ixlibrary $libname.a' 16876 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16877 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' 16878 ;; 16879 16880beos*) 16881 library_names_spec='${libname}${shared_ext}' 16882 dynamic_linker="$host_os ld.so" 16883 shlibpath_var=LIBRARY_PATH 16884 ;; 16885 16886bsdi4*) 16887 version_type=linux 16888 need_version=no 16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16890 soname_spec='${libname}${release}${shared_ext}$major' 16891 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16892 shlibpath_var=LD_LIBRARY_PATH 16893 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16894 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16895 # the default ld.so.conf also contains /usr/contrib/lib and 16896 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16897 # libtool to hard-code these into programs 16898 ;; 16899 16900cygwin* | mingw* | pw32*) 16901 version_type=windows 16902 shrext_cmds=".dll" 16903 need_version=no 16904 need_lib_prefix=no 16905 16906 case $GCC,$host_os in 16907 yes,cygwin* | yes,mingw* | yes,pw32*) 16908 library_names_spec='$libname.dll.a' 16909 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16910 postinstall_cmds='base_file=`basename \${file}`~ 16911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16912 dldir=$destdir/`dirname \$dlpath`~ 16913 test -d \$dldir || mkdir -p \$dldir~ 16914 $install_prog $dir/$dlname \$dldir/$dlname' 16915 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16916 dlpath=$dir/\$dldll~ 16917 $rm \$dlpath' 16918 shlibpath_overrides_runpath=yes 16919 16920 case $host_os in 16921 cygwin*) 16922 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16923 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16924 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16925 ;; 16926 mingw*) 16927 # MinGW DLLs use traditional 'lib' prefix 16928 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16929 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16930 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16931 # It is most probably a Windows format PATH printed by 16932 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16933 # path with ; separators, and with drive letters. We can handle the 16934 # drive letters (cygwin fileutils understands them), so leave them, 16935 # especially as we might pass files found there to a mingw objdump, 16936 # which wouldn't understand a cygwinified path. Ahh. 16937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16938 else 16939 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16940 fi 16941 ;; 16942 pw32*) 16943 # pw32 DLLs use 'pw' prefix rather than 'lib' 16944 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 16945 ;; 16946 esac 16947 ;; 16948 16949 *) 16950 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16951 ;; 16952 esac 16953 dynamic_linker='Win32 ld.exe' 16954 # FIXME: first we should search . and the directory the executable is in 16955 shlibpath_var=PATH 16956 ;; 16957 16958darwin* | rhapsody*) 16959 dynamic_linker="$host_os dyld" 16960 version_type=darwin 16961 need_lib_prefix=no 16962 need_version=no 16963 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16964 soname_spec='${libname}${release}${major}$shared_ext' 16965 shlibpath_overrides_runpath=yes 16966 shlibpath_var=DYLD_LIBRARY_PATH 16967 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 16968 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16969 if test "$GCC" = yes; then 16970 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"` 16971 else 16972 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16973 fi 16974 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16975 ;; 16976 16977dgux*) 16978 version_type=linux 16979 need_lib_prefix=no 16980 need_version=no 16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16982 soname_spec='${libname}${release}${shared_ext}$major' 16983 shlibpath_var=LD_LIBRARY_PATH 16984 ;; 16985 16986freebsd1*) 16987 dynamic_linker=no 16988 ;; 16989 16990kfreebsd*-gnu) 16991 version_type=linux 16992 need_lib_prefix=no 16993 need_version=no 16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16995 soname_spec='${libname}${release}${shared_ext}$major' 16996 shlibpath_var=LD_LIBRARY_PATH 16997 shlibpath_overrides_runpath=no 16998 hardcode_into_libs=yes 16999 dynamic_linker='GNU ld.so' 17000 ;; 17001 17002freebsd*) 17003 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 17004 version_type=freebsd-$objformat 17005 case $version_type in 17006 freebsd-elf*) 17007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17008 need_version=no 17009 need_lib_prefix=no 17010 ;; 17011 freebsd-*) 17012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17013 need_version=yes 17014 ;; 17015 esac 17016 shlibpath_var=LD_LIBRARY_PATH 17017 case $host_os in 17018 freebsd2*) 17019 shlibpath_overrides_runpath=yes 17020 ;; 17021 freebsd3.01* | freebsdelf3.01*) 17022 shlibpath_overrides_runpath=yes 17023 hardcode_into_libs=yes 17024 ;; 17025 *) # from 3.2 on 17026 shlibpath_overrides_runpath=no 17027 hardcode_into_libs=yes 17028 ;; 17029 esac 17030 ;; 17031 17032gnu*) 17033 version_type=linux 17034 need_lib_prefix=no 17035 need_version=no 17036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17037 soname_spec='${libname}${release}${shared_ext}$major' 17038 shlibpath_var=LD_LIBRARY_PATH 17039 hardcode_into_libs=yes 17040 ;; 17041 17042hpux9* | hpux10* | hpux11*) 17043 # Give a soname corresponding to the major version so that dld.sl refuses to 17044 # link against other versions. 17045 version_type=sunos 17046 need_lib_prefix=no 17047 need_version=no 17048 case "$host_cpu" in 17049 ia64*) 17050 shrext_cmds='.so' 17051 hardcode_into_libs=yes 17052 dynamic_linker="$host_os dld.so" 17053 shlibpath_var=LD_LIBRARY_PATH 17054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17056 soname_spec='${libname}${release}${shared_ext}$major' 17057 if test "X$HPUX_IA64_MODE" = X32; then 17058 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17059 else 17060 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17061 fi 17062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17063 ;; 17064 hppa*64*) 17065 shrext_cmds='.sl' 17066 hardcode_into_libs=yes 17067 dynamic_linker="$host_os dld.sl" 17068 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17071 soname_spec='${libname}${release}${shared_ext}$major' 17072 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17074 ;; 17075 *) 17076 shrext_cmds='.sl' 17077 dynamic_linker="$host_os dld.sl" 17078 shlibpath_var=SHLIB_PATH 17079 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17081 soname_spec='${libname}${release}${shared_ext}$major' 17082 ;; 17083 esac 17084 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17085 postinstall_cmds='chmod 555 $lib' 17086 ;; 17087 17088irix5* | irix6* | nonstopux*) 17089 case $host_os in 17090 nonstopux*) version_type=nonstopux ;; 17091 *) 17092 if test "$lt_cv_prog_gnu_ld" = yes; then 17093 version_type=linux 17094 else 17095 version_type=irix 17096 fi ;; 17097 esac 17098 need_lib_prefix=no 17099 need_version=no 17100 soname_spec='${libname}${release}${shared_ext}$major' 17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17102 case $host_os in 17103 irix5* | nonstopux*) 17104 libsuff= shlibsuff= 17105 ;; 17106 *) 17107 case $LD in # libtool.m4 will add one of these switches to LD 17108 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17109 libsuff= shlibsuff= libmagic=32-bit;; 17110 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17111 libsuff=32 shlibsuff=N32 libmagic=N32;; 17112 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17113 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17114 *) libsuff= shlibsuff= libmagic=never-match;; 17115 esac 17116 ;; 17117 esac 17118 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17119 shlibpath_overrides_runpath=no 17120 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17121 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17122 hardcode_into_libs=yes 17123 ;; 17124 17125# No shared lib support for Linux oldld, aout, or coff. 17126linux*oldld* | linux*aout* | linux*coff*) 17127 dynamic_linker=no 17128 ;; 17129 17130# This must be Linux ELF. 17131linux*) 17132 version_type=linux 17133 need_lib_prefix=no 17134 need_version=no 17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17136 soname_spec='${libname}${release}${shared_ext}$major' 17137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17138 shlibpath_var=LD_LIBRARY_PATH 17139 shlibpath_overrides_runpath=no 17140 # This implies no fast_install, which is unacceptable. 17141 # Some rework will be needed to allow for fast_install 17142 # before this can be enabled. 17143 hardcode_into_libs=yes 17144 17145 # find out which ABI we are using 17146 libsuff= 17147 case "$host_cpu" in 17148 x86_64*|s390x*|powerpc64*) 17149 echo '#line 17149 "configure"' > conftest.$ac_ext 17150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17151 (eval $ac_compile) 2>&5 17152 ac_status=$? 17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17154 (exit $ac_status); }; then 17155 case `/usr/bin/file conftest.$ac_objext` in 17156 *64-bit*) 17157 libsuff=64 17158 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17159 ;; 17160 esac 17161 fi 17162 rm -rf conftest* 17163 ;; 17164 esac 17165 17166 # Append ld.so.conf contents to the search path 17167 if test -f /etc/ld.so.conf; then 17168 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 17169 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 17170 fi 17171 17172 # We used to test for /lib/ld.so.1 and disable shared libraries on 17173 # powerpc, because MkLinux only supported shared libraries with the 17174 # GNU dynamic linker. Since this was broken with cross compilers, 17175 # most powerpc-linux boxes support dynamic linking these days and 17176 # people can always --disable-shared, the test was removed, and we 17177 # assume the GNU/Linux dynamic linker is in use. 17178 dynamic_linker='GNU/Linux ld.so' 17179 ;; 17180 17181knetbsd*-gnu) 17182 version_type=linux 17183 need_lib_prefix=no 17184 need_version=no 17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17186 soname_spec='${libname}${release}${shared_ext}$major' 17187 shlibpath_var=LD_LIBRARY_PATH 17188 shlibpath_overrides_runpath=no 17189 hardcode_into_libs=yes 17190 dynamic_linker='GNU ld.so' 17191 ;; 17192 17193netbsd*) 17194 version_type=sunos 17195 need_lib_prefix=no 17196 need_version=no 17197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17200 dynamic_linker='NetBSD (a.out) ld.so' 17201 else 17202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17203 soname_spec='${libname}${release}${shared_ext}$major' 17204 dynamic_linker='NetBSD ld.elf_so' 17205 fi 17206 shlibpath_var=LD_LIBRARY_PATH 17207 shlibpath_overrides_runpath=yes 17208 hardcode_into_libs=yes 17209 ;; 17210 17211newsos6) 17212 version_type=linux 17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17214 shlibpath_var=LD_LIBRARY_PATH 17215 shlibpath_overrides_runpath=yes 17216 ;; 17217 17218nto-qnx*) 17219 version_type=linux 17220 need_lib_prefix=no 17221 need_version=no 17222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17223 soname_spec='${libname}${release}${shared_ext}$major' 17224 shlibpath_var=LD_LIBRARY_PATH 17225 shlibpath_overrides_runpath=yes 17226 ;; 17227 17228openbsd*) 17229 version_type=sunos 17230 need_lib_prefix=no 17231 need_version=yes 17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17234 shlibpath_var=LD_LIBRARY_PATH 17235 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17236 case $host_os in 17237 openbsd2.[89] | openbsd2.[89].*) 17238 shlibpath_overrides_runpath=no 17239 ;; 17240 *) 17241 shlibpath_overrides_runpath=yes 17242 ;; 17243 esac 17244 else 17245 shlibpath_overrides_runpath=yes 17246 fi 17247 ;; 17248 17249os2*) 17250 libname_spec='$name' 17251 shrext_cmds=".dll" 17252 need_lib_prefix=no 17253 library_names_spec='$libname${shared_ext} $libname.a' 17254 dynamic_linker='OS/2 ld.exe' 17255 shlibpath_var=LIBPATH 17256 ;; 17257 17258osf3* | osf4* | osf5*) 17259 version_type=osf 17260 need_lib_prefix=no 17261 need_version=no 17262 soname_spec='${libname}${release}${shared_ext}$major' 17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17264 shlibpath_var=LD_LIBRARY_PATH 17265 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17266 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17267 ;; 17268 17269sco3.2v5*) 17270 version_type=osf 17271 soname_spec='${libname}${release}${shared_ext}$major' 17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17273 shlibpath_var=LD_LIBRARY_PATH 17274 ;; 17275 17276solaris*) 17277 version_type=linux 17278 need_lib_prefix=no 17279 need_version=no 17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17281 soname_spec='${libname}${release}${shared_ext}$major' 17282 shlibpath_var=LD_LIBRARY_PATH 17283 shlibpath_overrides_runpath=yes 17284 hardcode_into_libs=yes 17285 # ldd complains unless libraries are executable 17286 postinstall_cmds='chmod +x $lib' 17287 ;; 17288 17289sunos4*) 17290 version_type=sunos 17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17293 shlibpath_var=LD_LIBRARY_PATH 17294 shlibpath_overrides_runpath=yes 17295 if test "$with_gnu_ld" = yes; then 17296 need_lib_prefix=no 17297 fi 17298 need_version=yes 17299 ;; 17300 17301sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17302 version_type=linux 17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17304 soname_spec='${libname}${release}${shared_ext}$major' 17305 shlibpath_var=LD_LIBRARY_PATH 17306 case $host_vendor in 17307 sni) 17308 shlibpath_overrides_runpath=no 17309 need_lib_prefix=no 17310 export_dynamic_flag_spec='${wl}-Blargedynsym' 17311 runpath_var=LD_RUN_PATH 17312 ;; 17313 siemens) 17314 need_lib_prefix=no 17315 ;; 17316 motorola) 17317 need_lib_prefix=no 17318 need_version=no 17319 shlibpath_overrides_runpath=no 17320 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17321 ;; 17322 esac 17323 ;; 17324 17325sysv4*MP*) 17326 if test -d /usr/nec ;then 17327 version_type=linux 17328 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17329 soname_spec='$libname${shared_ext}.$major' 17330 shlibpath_var=LD_LIBRARY_PATH 17331 fi 17332 ;; 17333 17334uts4*) 17335 version_type=linux 17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17337 soname_spec='${libname}${release}${shared_ext}$major' 17338 shlibpath_var=LD_LIBRARY_PATH 17339 ;; 17340 17341*) 17342 dynamic_linker=no 17343 ;; 17344esac 17345echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17346echo "${ECHO_T}$dynamic_linker" >&6 17347test "$dynamic_linker" = no && can_build_shared=no 17348 17349echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17350echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17351hardcode_action_GCJ= 17352if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17353 test -n "$runpath_var GCJ" || \ 17354 test "X$hardcode_automatic_GCJ"="Xyes" ; then 17355 17356 # We can hardcode non-existant directories. 17357 if test "$hardcode_direct_GCJ" != no && 17358 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17359 # have to relink, otherwise we might link with an installed library 17360 # when we should be linking with a yet-to-be-installed one 17361 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17362 test "$hardcode_minus_L_GCJ" != no; then 17363 # Linking always hardcodes the temporary library directory. 17364 hardcode_action_GCJ=relink 17365 else 17366 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17367 hardcode_action_GCJ=immediate 17368 fi 17369else 17370 # We cannot hardcode anything, or else we can only hardcode existing 17371 # directories. 17372 hardcode_action_GCJ=unsupported 17373fi 17374echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17375echo "${ECHO_T}$hardcode_action_GCJ" >&6 17376 17377if test "$hardcode_action_GCJ" = relink; then 17378 # Fast installation is not supported 17379 enable_fast_install=no 17380elif test "$shlibpath_overrides_runpath" = yes || 17381 test "$enable_shared" = no; then 17382 # Fast installation is not necessary 17383 enable_fast_install=needless 17384fi 17385 17386striplib= 17387old_striplib= 17388echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 17389echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 17390if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 17391 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17392 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17393 echo "$as_me:$LINENO: result: yes" >&5 17394echo "${ECHO_T}yes" >&6 17395else 17396# FIXME - insert some real tests, host_os isn't really good enough 17397 case $host_os in 17398 darwin*) 17399 if test -n "$STRIP" ; then 17400 striplib="$STRIP -x" 17401 echo "$as_me:$LINENO: result: yes" >&5 17402echo "${ECHO_T}yes" >&6 17403 else 17404 echo "$as_me:$LINENO: result: no" >&5 17405echo "${ECHO_T}no" >&6 17406fi 17407 ;; 17408 *) 17409 echo "$as_me:$LINENO: result: no" >&5 17410echo "${ECHO_T}no" >&6 17411 ;; 17412 esac 17413fi 17414 17415if test "x$enable_dlopen" != xyes; then 17416 enable_dlopen=unknown 17417 enable_dlopen_self=unknown 17418 enable_dlopen_self_static=unknown 17419else 17420 lt_cv_dlopen=no 17421 lt_cv_dlopen_libs= 17422 17423 case $host_os in 17424 beos*) 17425 lt_cv_dlopen="load_add_on" 17426 lt_cv_dlopen_libs= 17427 lt_cv_dlopen_self=yes 17428 ;; 17429 17430 mingw* | pw32*) 17431 lt_cv_dlopen="LoadLibrary" 17432 lt_cv_dlopen_libs= 17433 ;; 17434 17435 cygwin*) 17436 lt_cv_dlopen="dlopen" 17437 lt_cv_dlopen_libs= 17438 ;; 17439 17440 darwin*) 17441 # if libdl is installed we need to link against it 17442 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17443echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17444if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17445 echo $ECHO_N "(cached) $ECHO_C" >&6 17446else 17447 ac_check_lib_save_LIBS=$LIBS 17448LIBS="-ldl $LIBS" 17449cat >conftest.$ac_ext <<_ACEOF 17450/* confdefs.h. */ 17451_ACEOF 17452cat confdefs.h >>conftest.$ac_ext 17453cat >>conftest.$ac_ext <<_ACEOF 17454/* end confdefs.h. */ 17455 17456/* Override any gcc2 internal prototype to avoid an error. */ 17457#ifdef __cplusplus 17458extern "C" 17459#endif 17460/* We use char because int might match the return type of a gcc2 17461 builtin and then its argument prototype would still apply. */ 17462char dlopen (); 17463int 17464main () 17465{ 17466dlopen (); 17467 ; 17468 return 0; 17469} 17470_ACEOF 17471rm -f conftest.$ac_objext conftest$ac_exeext 17472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17473 (eval $ac_link) 2>conftest.er1 17474 ac_status=$? 17475 grep -v '^ *+' conftest.er1 >conftest.err 17476 rm -f conftest.er1 17477 cat conftest.err >&5 17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17479 (exit $ac_status); } && 17480 { ac_try='test -z "$ac_c_werror_flag" 17481 || test ! -s conftest.err' 17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17483 (eval $ac_try) 2>&5 17484 ac_status=$? 17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17486 (exit $ac_status); }; } && 17487 { ac_try='test -s conftest$ac_exeext' 17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17489 (eval $ac_try) 2>&5 17490 ac_status=$? 17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17492 (exit $ac_status); }; }; then 17493 ac_cv_lib_dl_dlopen=yes 17494else 17495 echo "$as_me: failed program was:" >&5 17496sed 's/^/| /' conftest.$ac_ext >&5 17497 17498ac_cv_lib_dl_dlopen=no 17499fi 17500rm -f conftest.err conftest.$ac_objext \ 17501 conftest$ac_exeext conftest.$ac_ext 17502LIBS=$ac_check_lib_save_LIBS 17503fi 17504echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17505echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17506if test $ac_cv_lib_dl_dlopen = yes; then 17507 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17508else 17509 17510 lt_cv_dlopen="dyld" 17511 lt_cv_dlopen_libs= 17512 lt_cv_dlopen_self=yes 17513 17514fi 17515 17516 ;; 17517 17518 *) 17519 echo "$as_me:$LINENO: checking for shl_load" >&5 17520echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 17521if test "${ac_cv_func_shl_load+set}" = set; then 17522 echo $ECHO_N "(cached) $ECHO_C" >&6 17523else 17524 cat >conftest.$ac_ext <<_ACEOF 17525/* confdefs.h. */ 17526_ACEOF 17527cat confdefs.h >>conftest.$ac_ext 17528cat >>conftest.$ac_ext <<_ACEOF 17529/* end confdefs.h. */ 17530/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 17531 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17532#define shl_load innocuous_shl_load 17533 17534/* System header to define __stub macros and hopefully few prototypes, 17535 which can conflict with char shl_load (); below. 17536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17537 <limits.h> exists even on freestanding compilers. */ 17538 17539#ifdef __STDC__ 17540# include <limits.h> 17541#else 17542# include <assert.h> 17543#endif 17544 17545#undef shl_load 17546 17547/* Override any gcc2 internal prototype to avoid an error. */ 17548#ifdef __cplusplus 17549extern "C" 17550{ 17551#endif 17552/* We use char because int might match the return type of a gcc2 17553 builtin and then its argument prototype would still apply. */ 17554char shl_load (); 17555/* The GNU C library defines this for functions which it implements 17556 to always fail with ENOSYS. Some functions are actually named 17557 something starting with __ and the normal name is an alias. */ 17558#if defined (__stub_shl_load) || defined (__stub___shl_load) 17559choke me 17560#else 17561char (*f) () = shl_load; 17562#endif 17563#ifdef __cplusplus 17564} 17565#endif 17566 17567int 17568main () 17569{ 17570return f != shl_load; 17571 ; 17572 return 0; 17573} 17574_ACEOF 17575rm -f conftest.$ac_objext conftest$ac_exeext 17576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17577 (eval $ac_link) 2>conftest.er1 17578 ac_status=$? 17579 grep -v '^ *+' conftest.er1 >conftest.err 17580 rm -f conftest.er1 17581 cat conftest.err >&5 17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17583 (exit $ac_status); } && 17584 { ac_try='test -z "$ac_c_werror_flag" 17585 || test ! -s conftest.err' 17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17587 (eval $ac_try) 2>&5 17588 ac_status=$? 17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17590 (exit $ac_status); }; } && 17591 { ac_try='test -s conftest$ac_exeext' 17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17593 (eval $ac_try) 2>&5 17594 ac_status=$? 17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17596 (exit $ac_status); }; }; then 17597 ac_cv_func_shl_load=yes 17598else 17599 echo "$as_me: failed program was:" >&5 17600sed 's/^/| /' conftest.$ac_ext >&5 17601 17602ac_cv_func_shl_load=no 17603fi 17604rm -f conftest.err conftest.$ac_objext \ 17605 conftest$ac_exeext conftest.$ac_ext 17606fi 17607echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 17608echo "${ECHO_T}$ac_cv_func_shl_load" >&6 17609if test $ac_cv_func_shl_load = yes; then 17610 lt_cv_dlopen="shl_load" 17611else 17612 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 17613echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 17614if test "${ac_cv_lib_dld_shl_load+set}" = set; then 17615 echo $ECHO_N "(cached) $ECHO_C" >&6 17616else 17617 ac_check_lib_save_LIBS=$LIBS 17618LIBS="-ldld $LIBS" 17619cat >conftest.$ac_ext <<_ACEOF 17620/* confdefs.h. */ 17621_ACEOF 17622cat confdefs.h >>conftest.$ac_ext 17623cat >>conftest.$ac_ext <<_ACEOF 17624/* end confdefs.h. */ 17625 17626/* Override any gcc2 internal prototype to avoid an error. */ 17627#ifdef __cplusplus 17628extern "C" 17629#endif 17630/* We use char because int might match the return type of a gcc2 17631 builtin and then its argument prototype would still apply. */ 17632char shl_load (); 17633int 17634main () 17635{ 17636shl_load (); 17637 ; 17638 return 0; 17639} 17640_ACEOF 17641rm -f conftest.$ac_objext conftest$ac_exeext 17642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17643 (eval $ac_link) 2>conftest.er1 17644 ac_status=$? 17645 grep -v '^ *+' conftest.er1 >conftest.err 17646 rm -f conftest.er1 17647 cat conftest.err >&5 17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17649 (exit $ac_status); } && 17650 { ac_try='test -z "$ac_c_werror_flag" 17651 || test ! -s conftest.err' 17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17653 (eval $ac_try) 2>&5 17654 ac_status=$? 17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17656 (exit $ac_status); }; } && 17657 { ac_try='test -s conftest$ac_exeext' 17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17659 (eval $ac_try) 2>&5 17660 ac_status=$? 17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17662 (exit $ac_status); }; }; then 17663 ac_cv_lib_dld_shl_load=yes 17664else 17665 echo "$as_me: failed program was:" >&5 17666sed 's/^/| /' conftest.$ac_ext >&5 17667 17668ac_cv_lib_dld_shl_load=no 17669fi 17670rm -f conftest.err conftest.$ac_objext \ 17671 conftest$ac_exeext conftest.$ac_ext 17672LIBS=$ac_check_lib_save_LIBS 17673fi 17674echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 17675echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 17676if test $ac_cv_lib_dld_shl_load = yes; then 17677 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 17678else 17679 echo "$as_me:$LINENO: checking for dlopen" >&5 17680echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 17681if test "${ac_cv_func_dlopen+set}" = set; then 17682 echo $ECHO_N "(cached) $ECHO_C" >&6 17683else 17684 cat >conftest.$ac_ext <<_ACEOF 17685/* confdefs.h. */ 17686_ACEOF 17687cat confdefs.h >>conftest.$ac_ext 17688cat >>conftest.$ac_ext <<_ACEOF 17689/* end confdefs.h. */ 17690/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 17691 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17692#define dlopen innocuous_dlopen 17693 17694/* System header to define __stub macros and hopefully few prototypes, 17695 which can conflict with char dlopen (); below. 17696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17697 <limits.h> exists even on freestanding compilers. */ 17698 17699#ifdef __STDC__ 17700# include <limits.h> 17701#else 17702# include <assert.h> 17703#endif 17704 17705#undef dlopen 17706 17707/* Override any gcc2 internal prototype to avoid an error. */ 17708#ifdef __cplusplus 17709extern "C" 17710{ 17711#endif 17712/* We use char because int might match the return type of a gcc2 17713 builtin and then its argument prototype would still apply. */ 17714char dlopen (); 17715/* The GNU C library defines this for functions which it implements 17716 to always fail with ENOSYS. Some functions are actually named 17717 something starting with __ and the normal name is an alias. */ 17718#if defined (__stub_dlopen) || defined (__stub___dlopen) 17719choke me 17720#else 17721char (*f) () = dlopen; 17722#endif 17723#ifdef __cplusplus 17724} 17725#endif 17726 17727int 17728main () 17729{ 17730return f != dlopen; 17731 ; 17732 return 0; 17733} 17734_ACEOF 17735rm -f conftest.$ac_objext conftest$ac_exeext 17736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17737 (eval $ac_link) 2>conftest.er1 17738 ac_status=$? 17739 grep -v '^ *+' conftest.er1 >conftest.err 17740 rm -f conftest.er1 17741 cat conftest.err >&5 17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17743 (exit $ac_status); } && 17744 { ac_try='test -z "$ac_c_werror_flag" 17745 || test ! -s conftest.err' 17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17747 (eval $ac_try) 2>&5 17748 ac_status=$? 17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17750 (exit $ac_status); }; } && 17751 { ac_try='test -s conftest$ac_exeext' 17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17753 (eval $ac_try) 2>&5 17754 ac_status=$? 17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17756 (exit $ac_status); }; }; then 17757 ac_cv_func_dlopen=yes 17758else 17759 echo "$as_me: failed program was:" >&5 17760sed 's/^/| /' conftest.$ac_ext >&5 17761 17762ac_cv_func_dlopen=no 17763fi 17764rm -f conftest.err conftest.$ac_objext \ 17765 conftest$ac_exeext conftest.$ac_ext 17766fi 17767echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 17768echo "${ECHO_T}$ac_cv_func_dlopen" >&6 17769if test $ac_cv_func_dlopen = yes; then 17770 lt_cv_dlopen="dlopen" 17771else 17772 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17773echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17774if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17775 echo $ECHO_N "(cached) $ECHO_C" >&6 17776else 17777 ac_check_lib_save_LIBS=$LIBS 17778LIBS="-ldl $LIBS" 17779cat >conftest.$ac_ext <<_ACEOF 17780/* confdefs.h. */ 17781_ACEOF 17782cat confdefs.h >>conftest.$ac_ext 17783cat >>conftest.$ac_ext <<_ACEOF 17784/* end confdefs.h. */ 17785 17786/* Override any gcc2 internal prototype to avoid an error. */ 17787#ifdef __cplusplus 17788extern "C" 17789#endif 17790/* We use char because int might match the return type of a gcc2 17791 builtin and then its argument prototype would still apply. */ 17792char dlopen (); 17793int 17794main () 17795{ 17796dlopen (); 17797 ; 17798 return 0; 17799} 17800_ACEOF 17801rm -f conftest.$ac_objext conftest$ac_exeext 17802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17803 (eval $ac_link) 2>conftest.er1 17804 ac_status=$? 17805 grep -v '^ *+' conftest.er1 >conftest.err 17806 rm -f conftest.er1 17807 cat conftest.err >&5 17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17809 (exit $ac_status); } && 17810 { ac_try='test -z "$ac_c_werror_flag" 17811 || test ! -s conftest.err' 17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17813 (eval $ac_try) 2>&5 17814 ac_status=$? 17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17816 (exit $ac_status); }; } && 17817 { ac_try='test -s conftest$ac_exeext' 17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17819 (eval $ac_try) 2>&5 17820 ac_status=$? 17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17822 (exit $ac_status); }; }; then 17823 ac_cv_lib_dl_dlopen=yes 17824else 17825 echo "$as_me: failed program was:" >&5 17826sed 's/^/| /' conftest.$ac_ext >&5 17827 17828ac_cv_lib_dl_dlopen=no 17829fi 17830rm -f conftest.err conftest.$ac_objext \ 17831 conftest$ac_exeext conftest.$ac_ext 17832LIBS=$ac_check_lib_save_LIBS 17833fi 17834echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17835echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17836if test $ac_cv_lib_dl_dlopen = yes; then 17837 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17838else 17839 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 17840echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 17841if test "${ac_cv_lib_svld_dlopen+set}" = set; then 17842 echo $ECHO_N "(cached) $ECHO_C" >&6 17843else 17844 ac_check_lib_save_LIBS=$LIBS 17845LIBS="-lsvld $LIBS" 17846cat >conftest.$ac_ext <<_ACEOF 17847/* confdefs.h. */ 17848_ACEOF 17849cat confdefs.h >>conftest.$ac_ext 17850cat >>conftest.$ac_ext <<_ACEOF 17851/* end confdefs.h. */ 17852 17853/* Override any gcc2 internal prototype to avoid an error. */ 17854#ifdef __cplusplus 17855extern "C" 17856#endif 17857/* We use char because int might match the return type of a gcc2 17858 builtin and then its argument prototype would still apply. */ 17859char dlopen (); 17860int 17861main () 17862{ 17863dlopen (); 17864 ; 17865 return 0; 17866} 17867_ACEOF 17868rm -f conftest.$ac_objext conftest$ac_exeext 17869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17870 (eval $ac_link) 2>conftest.er1 17871 ac_status=$? 17872 grep -v '^ *+' conftest.er1 >conftest.err 17873 rm -f conftest.er1 17874 cat conftest.err >&5 17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17876 (exit $ac_status); } && 17877 { ac_try='test -z "$ac_c_werror_flag" 17878 || test ! -s conftest.err' 17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17880 (eval $ac_try) 2>&5 17881 ac_status=$? 17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17883 (exit $ac_status); }; } && 17884 { ac_try='test -s conftest$ac_exeext' 17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17886 (eval $ac_try) 2>&5 17887 ac_status=$? 17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17889 (exit $ac_status); }; }; then 17890 ac_cv_lib_svld_dlopen=yes 17891else 17892 echo "$as_me: failed program was:" >&5 17893sed 's/^/| /' conftest.$ac_ext >&5 17894 17895ac_cv_lib_svld_dlopen=no 17896fi 17897rm -f conftest.err conftest.$ac_objext \ 17898 conftest$ac_exeext conftest.$ac_ext 17899LIBS=$ac_check_lib_save_LIBS 17900fi 17901echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 17902echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 17903if test $ac_cv_lib_svld_dlopen = yes; then 17904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17905else 17906 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 17907echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 17908if test "${ac_cv_lib_dld_dld_link+set}" = set; then 17909 echo $ECHO_N "(cached) $ECHO_C" >&6 17910else 17911 ac_check_lib_save_LIBS=$LIBS 17912LIBS="-ldld $LIBS" 17913cat >conftest.$ac_ext <<_ACEOF 17914/* confdefs.h. */ 17915_ACEOF 17916cat confdefs.h >>conftest.$ac_ext 17917cat >>conftest.$ac_ext <<_ACEOF 17918/* end confdefs.h. */ 17919 17920/* Override any gcc2 internal prototype to avoid an error. */ 17921#ifdef __cplusplus 17922extern "C" 17923#endif 17924/* We use char because int might match the return type of a gcc2 17925 builtin and then its argument prototype would still apply. */ 17926char dld_link (); 17927int 17928main () 17929{ 17930dld_link (); 17931 ; 17932 return 0; 17933} 17934_ACEOF 17935rm -f conftest.$ac_objext conftest$ac_exeext 17936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17937 (eval $ac_link) 2>conftest.er1 17938 ac_status=$? 17939 grep -v '^ *+' conftest.er1 >conftest.err 17940 rm -f conftest.er1 17941 cat conftest.err >&5 17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17943 (exit $ac_status); } && 17944 { ac_try='test -z "$ac_c_werror_flag" 17945 || test ! -s conftest.err' 17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17947 (eval $ac_try) 2>&5 17948 ac_status=$? 17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17950 (exit $ac_status); }; } && 17951 { ac_try='test -s conftest$ac_exeext' 17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17953 (eval $ac_try) 2>&5 17954 ac_status=$? 17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17956 (exit $ac_status); }; }; then 17957 ac_cv_lib_dld_dld_link=yes 17958else 17959 echo "$as_me: failed program was:" >&5 17960sed 's/^/| /' conftest.$ac_ext >&5 17961 17962ac_cv_lib_dld_dld_link=no 17963fi 17964rm -f conftest.err conftest.$ac_objext \ 17965 conftest$ac_exeext conftest.$ac_ext 17966LIBS=$ac_check_lib_save_LIBS 17967fi 17968echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 17969echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 17970if test $ac_cv_lib_dld_dld_link = yes; then 17971 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 17972fi 17973 17974 17975fi 17976 17977 17978fi 17979 17980 17981fi 17982 17983 17984fi 17985 17986 17987fi 17988 17989 ;; 17990 esac 17991 17992 if test "x$lt_cv_dlopen" != xno; then 17993 enable_dlopen=yes 17994 else 17995 enable_dlopen=no 17996 fi 17997 17998 case $lt_cv_dlopen in 17999 dlopen) 18000 save_CPPFLAGS="$CPPFLAGS" 18001 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18002 18003 save_LDFLAGS="$LDFLAGS" 18004 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18005 18006 save_LIBS="$LIBS" 18007 LIBS="$lt_cv_dlopen_libs $LIBS" 18008 18009 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18010echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18011if test "${lt_cv_dlopen_self+set}" = set; then 18012 echo $ECHO_N "(cached) $ECHO_C" >&6 18013else 18014 if test "$cross_compiling" = yes; then : 18015 lt_cv_dlopen_self=cross 18016else 18017 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18018 lt_status=$lt_dlunknown 18019 cat > conftest.$ac_ext <<EOF 18020#line 18020 "configure" 18021#include "confdefs.h" 18022 18023#if HAVE_DLFCN_H 18024#include <dlfcn.h> 18025#endif 18026 18027#include <stdio.h> 18028 18029#ifdef RTLD_GLOBAL 18030# define LT_DLGLOBAL RTLD_GLOBAL 18031#else 18032# ifdef DL_GLOBAL 18033# define LT_DLGLOBAL DL_GLOBAL 18034# else 18035# define LT_DLGLOBAL 0 18036# endif 18037#endif 18038 18039/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18040 find out it does not work in some platform. */ 18041#ifndef LT_DLLAZY_OR_NOW 18042# ifdef RTLD_LAZY 18043# define LT_DLLAZY_OR_NOW RTLD_LAZY 18044# else 18045# ifdef DL_LAZY 18046# define LT_DLLAZY_OR_NOW DL_LAZY 18047# else 18048# ifdef RTLD_NOW 18049# define LT_DLLAZY_OR_NOW RTLD_NOW 18050# else 18051# ifdef DL_NOW 18052# define LT_DLLAZY_OR_NOW DL_NOW 18053# else 18054# define LT_DLLAZY_OR_NOW 0 18055# endif 18056# endif 18057# endif 18058# endif 18059#endif 18060 18061#ifdef __cplusplus 18062extern "C" void exit (int); 18063#endif 18064 18065void fnord() { int i=42;} 18066int main () 18067{ 18068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18069 int status = $lt_dlunknown; 18070 18071 if (self) 18072 { 18073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18074 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18075 /* dlclose (self); */ 18076 } 18077 18078 exit (status); 18079} 18080EOF 18081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18082 (eval $ac_link) 2>&5 18083 ac_status=$? 18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18085 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18086 (./conftest; exit; ) 2>/dev/null 18087 lt_status=$? 18088 case x$lt_status in 18089 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18090 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18091 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18092 esac 18093 else : 18094 # compilation failed 18095 lt_cv_dlopen_self=no 18096 fi 18097fi 18098rm -fr conftest* 18099 18100 18101fi 18102echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18103echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18104 18105 if test "x$lt_cv_dlopen_self" = xyes; then 18106 LDFLAGS="$LDFLAGS $link_static_flag" 18107 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18108echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18109if test "${lt_cv_dlopen_self_static+set}" = set; then 18110 echo $ECHO_N "(cached) $ECHO_C" >&6 18111else 18112 if test "$cross_compiling" = yes; then : 18113 lt_cv_dlopen_self_static=cross 18114else 18115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18116 lt_status=$lt_dlunknown 18117 cat > conftest.$ac_ext <<EOF 18118#line 18118 "configure" 18119#include "confdefs.h" 18120 18121#if HAVE_DLFCN_H 18122#include <dlfcn.h> 18123#endif 18124 18125#include <stdio.h> 18126 18127#ifdef RTLD_GLOBAL 18128# define LT_DLGLOBAL RTLD_GLOBAL 18129#else 18130# ifdef DL_GLOBAL 18131# define LT_DLGLOBAL DL_GLOBAL 18132# else 18133# define LT_DLGLOBAL 0 18134# endif 18135#endif 18136 18137/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18138 find out it does not work in some platform. */ 18139#ifndef LT_DLLAZY_OR_NOW 18140# ifdef RTLD_LAZY 18141# define LT_DLLAZY_OR_NOW RTLD_LAZY 18142# else 18143# ifdef DL_LAZY 18144# define LT_DLLAZY_OR_NOW DL_LAZY 18145# else 18146# ifdef RTLD_NOW 18147# define LT_DLLAZY_OR_NOW RTLD_NOW 18148# else 18149# ifdef DL_NOW 18150# define LT_DLLAZY_OR_NOW DL_NOW 18151# else 18152# define LT_DLLAZY_OR_NOW 0 18153# endif 18154# endif 18155# endif 18156# endif 18157#endif 18158 18159#ifdef __cplusplus 18160extern "C" void exit (int); 18161#endif 18162 18163void fnord() { int i=42;} 18164int main () 18165{ 18166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18167 int status = $lt_dlunknown; 18168 18169 if (self) 18170 { 18171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18172 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18173 /* dlclose (self); */ 18174 } 18175 18176 exit (status); 18177} 18178EOF 18179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18180 (eval $ac_link) 2>&5 18181 ac_status=$? 18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18183 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18184 (./conftest; exit; ) 2>/dev/null 18185 lt_status=$? 18186 case x$lt_status in 18187 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18188 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18189 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18190 esac 18191 else : 18192 # compilation failed 18193 lt_cv_dlopen_self_static=no 18194 fi 18195fi 18196rm -fr conftest* 18197 18198 18199fi 18200echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18201echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18202 fi 18203 18204 CPPFLAGS="$save_CPPFLAGS" 18205 LDFLAGS="$save_LDFLAGS" 18206 LIBS="$save_LIBS" 18207 ;; 18208 esac 18209 18210 case $lt_cv_dlopen_self in 18211 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18212 *) enable_dlopen_self=unknown ;; 18213 esac 18214 18215 case $lt_cv_dlopen_self_static in 18216 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18217 *) enable_dlopen_self_static=unknown ;; 18218 esac 18219fi 18220 18221 18222# The else clause should only fire when bootstrapping the 18223# libtool distribution, otherwise you forgot to ship ltmain.sh 18224# with your package, and you will get complaints that there are 18225# no rules to generate ltmain.sh. 18226if test -f "$ltmain"; then 18227 # See if we are running on zsh, and set the options which allow our commands through 18228 # without removal of \ escapes. 18229 if test -n "${ZSH_VERSION+set}" ; then 18230 setopt NO_GLOB_SUBST 18231 fi 18232 # Now quote all the things that may contain metacharacters while being 18233 # careful not to overquote the AC_SUBSTed values. We take copies of the 18234 # variables and quote the copies for generation of the libtool script. 18235 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18236 SED SHELL STRIP \ 18237 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18238 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18239 deplibs_check_method reload_flag reload_cmds need_locks \ 18240 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18241 lt_cv_sys_global_symbol_to_c_name_address \ 18242 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18243 old_postinstall_cmds old_postuninstall_cmds \ 18244 compiler_GCJ \ 18245 CC_GCJ \ 18246 LD_GCJ \ 18247 lt_prog_compiler_wl_GCJ \ 18248 lt_prog_compiler_pic_GCJ \ 18249 lt_prog_compiler_static_GCJ \ 18250 lt_prog_compiler_no_builtin_flag_GCJ \ 18251 export_dynamic_flag_spec_GCJ \ 18252 thread_safe_flag_spec_GCJ \ 18253 whole_archive_flag_spec_GCJ \ 18254 enable_shared_with_static_runtimes_GCJ \ 18255 old_archive_cmds_GCJ \ 18256 old_archive_from_new_cmds_GCJ \ 18257 predep_objects_GCJ \ 18258 postdep_objects_GCJ \ 18259 predeps_GCJ \ 18260 postdeps_GCJ \ 18261 compiler_lib_search_path_GCJ \ 18262 archive_cmds_GCJ \ 18263 archive_expsym_cmds_GCJ \ 18264 postinstall_cmds_GCJ \ 18265 postuninstall_cmds_GCJ \ 18266 old_archive_from_expsyms_cmds_GCJ \ 18267 allow_undefined_flag_GCJ \ 18268 no_undefined_flag_GCJ \ 18269 export_symbols_cmds_GCJ \ 18270 hardcode_libdir_flag_spec_GCJ \ 18271 hardcode_libdir_flag_spec_ld_GCJ \ 18272 hardcode_libdir_separator_GCJ \ 18273 hardcode_automatic_GCJ \ 18274 module_cmds_GCJ \ 18275 module_expsym_cmds_GCJ \ 18276 lt_cv_prog_compiler_c_o_GCJ \ 18277 exclude_expsyms_GCJ \ 18278 include_expsyms_GCJ; do 18279 18280 case $var in 18281 old_archive_cmds_GCJ | \ 18282 old_archive_from_new_cmds_GCJ | \ 18283 archive_cmds_GCJ | \ 18284 archive_expsym_cmds_GCJ | \ 18285 module_cmds_GCJ | \ 18286 module_expsym_cmds_GCJ | \ 18287 old_archive_from_expsyms_cmds_GCJ | \ 18288 export_symbols_cmds_GCJ | \ 18289 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18290 postinstall_cmds | postuninstall_cmds | \ 18291 old_postinstall_cmds | old_postuninstall_cmds | \ 18292 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18293 # Double-quote double-evaled strings. 18294 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18295 ;; 18296 *) 18297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18298 ;; 18299 esac 18300 done 18301 18302 case $lt_echo in 18303 *'\$0 --fallback-echo"') 18304 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18305 ;; 18306 esac 18307 18308cfgfile="$ofile" 18309 18310 cat <<__EOF__ >> "$cfgfile" 18311# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18312 18313# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18314 18315# Shell to use when invoking shell scripts. 18316SHELL=$lt_SHELL 18317 18318# Whether or not to build shared libraries. 18319build_libtool_libs=$enable_shared 18320 18321# Whether or not to build static libraries. 18322build_old_libs=$enable_static 18323 18324# Whether or not to add -lc for building shared libraries. 18325build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18326 18327# Whether or not to disallow shared libs when runtime libs are static 18328allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18329 18330# Whether or not to optimize for fast installation. 18331fast_install=$enable_fast_install 18332 18333# The host system. 18334host_alias=$host_alias 18335host=$host 18336 18337# An echo program that does not interpret backslashes. 18338echo=$lt_echo 18339 18340# The archiver. 18341AR=$lt_AR 18342AR_FLAGS=$lt_AR_FLAGS 18343 18344# A C compiler. 18345LTCC=$lt_LTCC 18346 18347# A language-specific compiler. 18348CC=$lt_compiler_GCJ 18349 18350# Is the compiler the GNU C compiler? 18351with_gcc=$GCC_GCJ 18352 18353# An ERE matcher. 18354EGREP=$lt_EGREP 18355 18356# The linker used to build libraries. 18357LD=$lt_LD_GCJ 18358 18359# Whether we need hard or soft links. 18360LN_S=$lt_LN_S 18361 18362# A BSD-compatible nm program. 18363NM=$lt_NM 18364 18365# A symbol stripping program 18366STRIP=$lt_STRIP 18367 18368# Used to examine libraries when file_magic_cmd begins "file" 18369MAGIC_CMD=$MAGIC_CMD 18370 18371# Used on cygwin: DLL creation program. 18372DLLTOOL="$DLLTOOL" 18373 18374# Used on cygwin: object dumper. 18375OBJDUMP="$OBJDUMP" 18376 18377# Used on cygwin: assembler. 18378AS="$AS" 18379 18380# The name of the directory that contains temporary libtool files. 18381objdir=$objdir 18382 18383# How to create reloadable object files. 18384reload_flag=$lt_reload_flag 18385reload_cmds=$lt_reload_cmds 18386 18387# How to pass a linker flag through the compiler. 18388wl=$lt_lt_prog_compiler_wl_GCJ 18389 18390# Object file suffix (normally "o"). 18391objext="$ac_objext" 18392 18393# Old archive suffix (normally "a"). 18394libext="$libext" 18395 18396# Shared library suffix (normally ".so"). 18397shrext_cmds='$shrext_cmds' 18398 18399# Executable file suffix (normally ""). 18400exeext="$exeext" 18401 18402# Additional compiler flags for building library objects. 18403pic_flag=$lt_lt_prog_compiler_pic_GCJ 18404pic_mode=$pic_mode 18405 18406# What is the maximum length of a command? 18407max_cmd_len=$lt_cv_sys_max_cmd_len 18408 18409# Does compiler simultaneously support -c and -o options? 18410compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18411 18412# Must we lock files when doing compilation ? 18413need_locks=$lt_need_locks 18414 18415# Do we need the lib prefix for modules? 18416need_lib_prefix=$need_lib_prefix 18417 18418# Do we need a version for libraries? 18419need_version=$need_version 18420 18421# Whether dlopen is supported. 18422dlopen_support=$enable_dlopen 18423 18424# Whether dlopen of programs is supported. 18425dlopen_self=$enable_dlopen_self 18426 18427# Whether dlopen of statically linked programs is supported. 18428dlopen_self_static=$enable_dlopen_self_static 18429 18430# Compiler flag to prevent dynamic linking. 18431link_static_flag=$lt_lt_prog_compiler_static_GCJ 18432 18433# Compiler flag to turn off builtin functions. 18434no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18435 18436# Compiler flag to allow reflexive dlopens. 18437export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18438 18439# Compiler flag to generate shared objects directly from archives. 18440whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18441 18442# Compiler flag to generate thread-safe objects. 18443thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18444 18445# Library versioning type. 18446version_type=$version_type 18447 18448# Format of library name prefix. 18449libname_spec=$lt_libname_spec 18450 18451# List of archive names. First name is the real one, the rest are links. 18452# The last name is the one that the linker finds with -lNAME. 18453library_names_spec=$lt_library_names_spec 18454 18455# The coded name of the library, if different from the real name. 18456soname_spec=$lt_soname_spec 18457 18458# Commands used to build and install an old-style archive. 18459RANLIB=$lt_RANLIB 18460old_archive_cmds=$lt_old_archive_cmds_GCJ 18461old_postinstall_cmds=$lt_old_postinstall_cmds 18462old_postuninstall_cmds=$lt_old_postuninstall_cmds 18463 18464# Create an old-style archive from a shared archive. 18465old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18466 18467# Create a temporary old-style archive to link instead of a shared archive. 18468old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18469 18470# Commands used to build and install a shared archive. 18471archive_cmds=$lt_archive_cmds_GCJ 18472archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18473postinstall_cmds=$lt_postinstall_cmds 18474postuninstall_cmds=$lt_postuninstall_cmds 18475 18476# Commands used to build a loadable module (assumed same as above if empty) 18477module_cmds=$lt_module_cmds_GCJ 18478module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18479 18480# Commands to strip libraries. 18481old_striplib=$lt_old_striplib 18482striplib=$lt_striplib 18483 18484# Dependencies to place before the objects being linked to create a 18485# shared library. 18486predep_objects=$lt_predep_objects_GCJ 18487 18488# Dependencies to place after the objects being linked to create a 18489# shared library. 18490postdep_objects=$lt_postdep_objects_GCJ 18491 18492# Dependencies to place before the objects being linked to create a 18493# shared library. 18494predeps=$lt_predeps_GCJ 18495 18496# Dependencies to place after the objects being linked to create a 18497# shared library. 18498postdeps=$lt_postdeps_GCJ 18499 18500# The library search path used internally by the compiler when linking 18501# a shared library. 18502compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18503 18504# Method to check whether dependent libraries are shared objects. 18505deplibs_check_method=$lt_deplibs_check_method 18506 18507# Command to use when deplibs_check_method == file_magic. 18508file_magic_cmd=$lt_file_magic_cmd 18509 18510# Flag that allows shared libraries with undefined symbols to be built. 18511allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18512 18513# Flag that forces no undefined symbols. 18514no_undefined_flag=$lt_no_undefined_flag_GCJ 18515 18516# Commands used to finish a libtool library installation in a directory. 18517finish_cmds=$lt_finish_cmds 18518 18519# Same as above, but a single script fragment to be evaled but not shown. 18520finish_eval=$lt_finish_eval 18521 18522# Take the output of nm and produce a listing of raw symbols and C names. 18523global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18524 18525# Transform the output of nm in a proper C declaration 18526global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18527 18528# Transform the output of nm in a C name address pair 18529global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18530 18531# This is the shared library runtime path variable. 18532runpath_var=$runpath_var 18533 18534# This is the shared library path variable. 18535shlibpath_var=$shlibpath_var 18536 18537# Is shlibpath searched before the hard-coded library search path? 18538shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18539 18540# How to hardcode a shared library path into an executable. 18541hardcode_action=$hardcode_action_GCJ 18542 18543# Whether we should hardcode library paths into libraries. 18544hardcode_into_libs=$hardcode_into_libs 18545 18546# Flag to hardcode \$libdir into a binary during linking. 18547# This must work even if \$libdir does not exist. 18548hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18549 18550# If ld is used when linking, flag to hardcode \$libdir into 18551# a binary during linking. This must work even if \$libdir does 18552# not exist. 18553hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18554 18555# Whether we need a single -rpath flag with a separated argument. 18556hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18557 18558# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18559# resulting binary. 18560hardcode_direct=$hardcode_direct_GCJ 18561 18562# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18563# resulting binary. 18564hardcode_minus_L=$hardcode_minus_L_GCJ 18565 18566# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18567# the resulting binary. 18568hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18569 18570# Set to yes if building a shared library automatically hardcodes DIR into the library 18571# and all subsequent libraries and executables linked against it. 18572hardcode_automatic=$hardcode_automatic_GCJ 18573 18574# Variables whose values should be saved in libtool wrapper scripts and 18575# restored at relink time. 18576variables_saved_for_relink="$variables_saved_for_relink" 18577 18578# Whether libtool must link a program against all its dependency libraries. 18579link_all_deplibs=$link_all_deplibs_GCJ 18580 18581# Compile-time system search path for libraries 18582sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18583 18584# Run-time system search path for libraries 18585sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18586 18587# Fix the shell variable \$srcfile for the compiler. 18588fix_srcfile_path="$fix_srcfile_path_GCJ" 18589 18590# Set to yes if exported symbols are required. 18591always_export_symbols=$always_export_symbols_GCJ 18592 18593# The commands to list exported symbols. 18594export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18595 18596# The commands to extract the exported symbol list from a shared archive. 18597extract_expsyms_cmds=$lt_extract_expsyms_cmds 18598 18599# Symbols that should not be listed in the preloaded symbols. 18600exclude_expsyms=$lt_exclude_expsyms_GCJ 18601 18602# Symbols that must always be exported. 18603include_expsyms=$lt_include_expsyms_GCJ 18604 18605# ### END LIBTOOL TAG CONFIG: $tagname 18606 18607__EOF__ 18608 18609 18610else 18611 # If there is no Makefile yet, we rely on a make rule to execute 18612 # `config.status --recheck' to rerun these tests and create the 18613 # libtool script then. 18614 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18615 if test -f "$ltmain_in"; then 18616 test -f Makefile && make "$ltmain" 18617 fi 18618fi 18619 18620 18621ac_ext=c 18622ac_cpp='$CPP $CPPFLAGS' 18623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18625ac_compiler_gnu=$ac_cv_c_compiler_gnu 18626 18627CC="$lt_save_CC" 18628 18629 else 18630 tagname="" 18631 fi 18632 ;; 18633 18634 RC) 18635 18636 18637 18638# Source file extension for RC test sources. 18639ac_ext=rc 18640 18641# Object file extension for compiled RC test sources. 18642objext=o 18643objext_RC=$objext 18644 18645# Code to be used in simple compile tests 18646lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18647 18648# Code to be used in simple link tests 18649lt_simple_link_test_code="$lt_simple_compile_test_code" 18650 18651# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18652 18653# If no C compiler was specified, use CC. 18654LTCC=${LTCC-"$CC"} 18655 18656# Allow CC to be a program name with arguments. 18657compiler=$CC 18658 18659 18660# Allow CC to be a program name with arguments. 18661lt_save_CC="$CC" 18662CC=${RC-"windres"} 18663compiler=$CC 18664compiler_RC=$CC 18665lt_cv_prog_compiler_c_o_RC=yes 18666 18667# The else clause should only fire when bootstrapping the 18668# libtool distribution, otherwise you forgot to ship ltmain.sh 18669# with your package, and you will get complaints that there are 18670# no rules to generate ltmain.sh. 18671if test -f "$ltmain"; then 18672 # See if we are running on zsh, and set the options which allow our commands through 18673 # without removal of \ escapes. 18674 if test -n "${ZSH_VERSION+set}" ; then 18675 setopt NO_GLOB_SUBST 18676 fi 18677 # Now quote all the things that may contain metacharacters while being 18678 # careful not to overquote the AC_SUBSTed values. We take copies of the 18679 # variables and quote the copies for generation of the libtool script. 18680 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18681 SED SHELL STRIP \ 18682 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18683 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18684 deplibs_check_method reload_flag reload_cmds need_locks \ 18685 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18686 lt_cv_sys_global_symbol_to_c_name_address \ 18687 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18688 old_postinstall_cmds old_postuninstall_cmds \ 18689 compiler_RC \ 18690 CC_RC \ 18691 LD_RC \ 18692 lt_prog_compiler_wl_RC \ 18693 lt_prog_compiler_pic_RC \ 18694 lt_prog_compiler_static_RC \ 18695 lt_prog_compiler_no_builtin_flag_RC \ 18696 export_dynamic_flag_spec_RC \ 18697 thread_safe_flag_spec_RC \ 18698 whole_archive_flag_spec_RC \ 18699 enable_shared_with_static_runtimes_RC \ 18700 old_archive_cmds_RC \ 18701 old_archive_from_new_cmds_RC \ 18702 predep_objects_RC \ 18703 postdep_objects_RC \ 18704 predeps_RC \ 18705 postdeps_RC \ 18706 compiler_lib_search_path_RC \ 18707 archive_cmds_RC \ 18708 archive_expsym_cmds_RC \ 18709 postinstall_cmds_RC \ 18710 postuninstall_cmds_RC \ 18711 old_archive_from_expsyms_cmds_RC \ 18712 allow_undefined_flag_RC \ 18713 no_undefined_flag_RC \ 18714 export_symbols_cmds_RC \ 18715 hardcode_libdir_flag_spec_RC \ 18716 hardcode_libdir_flag_spec_ld_RC \ 18717 hardcode_libdir_separator_RC \ 18718 hardcode_automatic_RC \ 18719 module_cmds_RC \ 18720 module_expsym_cmds_RC \ 18721 lt_cv_prog_compiler_c_o_RC \ 18722 exclude_expsyms_RC \ 18723 include_expsyms_RC; do 18724 18725 case $var in 18726 old_archive_cmds_RC | \ 18727 old_archive_from_new_cmds_RC | \ 18728 archive_cmds_RC | \ 18729 archive_expsym_cmds_RC | \ 18730 module_cmds_RC | \ 18731 module_expsym_cmds_RC | \ 18732 old_archive_from_expsyms_cmds_RC | \ 18733 export_symbols_cmds_RC | \ 18734 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18735 postinstall_cmds | postuninstall_cmds | \ 18736 old_postinstall_cmds | old_postuninstall_cmds | \ 18737 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18738 # Double-quote double-evaled strings. 18739 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18740 ;; 18741 *) 18742 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18743 ;; 18744 esac 18745 done 18746 18747 case $lt_echo in 18748 *'\$0 --fallback-echo"') 18749 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18750 ;; 18751 esac 18752 18753cfgfile="$ofile" 18754 18755 cat <<__EOF__ >> "$cfgfile" 18756# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18757 18758# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18759 18760# Shell to use when invoking shell scripts. 18761SHELL=$lt_SHELL 18762 18763# Whether or not to build shared libraries. 18764build_libtool_libs=$enable_shared 18765 18766# Whether or not to build static libraries. 18767build_old_libs=$enable_static 18768 18769# Whether or not to add -lc for building shared libraries. 18770build_libtool_need_lc=$archive_cmds_need_lc_RC 18771 18772# Whether or not to disallow shared libs when runtime libs are static 18773allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18774 18775# Whether or not to optimize for fast installation. 18776fast_install=$enable_fast_install 18777 18778# The host system. 18779host_alias=$host_alias 18780host=$host 18781 18782# An echo program that does not interpret backslashes. 18783echo=$lt_echo 18784 18785# The archiver. 18786AR=$lt_AR 18787AR_FLAGS=$lt_AR_FLAGS 18788 18789# A C compiler. 18790LTCC=$lt_LTCC 18791 18792# A language-specific compiler. 18793CC=$lt_compiler_RC 18794 18795# Is the compiler the GNU C compiler? 18796with_gcc=$GCC_RC 18797 18798# An ERE matcher. 18799EGREP=$lt_EGREP 18800 18801# The linker used to build libraries. 18802LD=$lt_LD_RC 18803 18804# Whether we need hard or soft links. 18805LN_S=$lt_LN_S 18806 18807# A BSD-compatible nm program. 18808NM=$lt_NM 18809 18810# A symbol stripping program 18811STRIP=$lt_STRIP 18812 18813# Used to examine libraries when file_magic_cmd begins "file" 18814MAGIC_CMD=$MAGIC_CMD 18815 18816# Used on cygwin: DLL creation program. 18817DLLTOOL="$DLLTOOL" 18818 18819# Used on cygwin: object dumper. 18820OBJDUMP="$OBJDUMP" 18821 18822# Used on cygwin: assembler. 18823AS="$AS" 18824 18825# The name of the directory that contains temporary libtool files. 18826objdir=$objdir 18827 18828# How to create reloadable object files. 18829reload_flag=$lt_reload_flag 18830reload_cmds=$lt_reload_cmds 18831 18832# How to pass a linker flag through the compiler. 18833wl=$lt_lt_prog_compiler_wl_RC 18834 18835# Object file suffix (normally "o"). 18836objext="$ac_objext" 18837 18838# Old archive suffix (normally "a"). 18839libext="$libext" 18840 18841# Shared library suffix (normally ".so"). 18842shrext_cmds='$shrext_cmds' 18843 18844# Executable file suffix (normally ""). 18845exeext="$exeext" 18846 18847# Additional compiler flags for building library objects. 18848pic_flag=$lt_lt_prog_compiler_pic_RC 18849pic_mode=$pic_mode 18850 18851# What is the maximum length of a command? 18852max_cmd_len=$lt_cv_sys_max_cmd_len 18853 18854# Does compiler simultaneously support -c and -o options? 18855compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18856 18857# Must we lock files when doing compilation ? 18858need_locks=$lt_need_locks 18859 18860# Do we need the lib prefix for modules? 18861need_lib_prefix=$need_lib_prefix 18862 18863# Do we need a version for libraries? 18864need_version=$need_version 18865 18866# Whether dlopen is supported. 18867dlopen_support=$enable_dlopen 18868 18869# Whether dlopen of programs is supported. 18870dlopen_self=$enable_dlopen_self 18871 18872# Whether dlopen of statically linked programs is supported. 18873dlopen_self_static=$enable_dlopen_self_static 18874 18875# Compiler flag to prevent dynamic linking. 18876link_static_flag=$lt_lt_prog_compiler_static_RC 18877 18878# Compiler flag to turn off builtin functions. 18879no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18880 18881# Compiler flag to allow reflexive dlopens. 18882export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18883 18884# Compiler flag to generate shared objects directly from archives. 18885whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18886 18887# Compiler flag to generate thread-safe objects. 18888thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18889 18890# Library versioning type. 18891version_type=$version_type 18892 18893# Format of library name prefix. 18894libname_spec=$lt_libname_spec 18895 18896# List of archive names. First name is the real one, the rest are links. 18897# The last name is the one that the linker finds with -lNAME. 18898library_names_spec=$lt_library_names_spec 18899 18900# The coded name of the library, if different from the real name. 18901soname_spec=$lt_soname_spec 18902 18903# Commands used to build and install an old-style archive. 18904RANLIB=$lt_RANLIB 18905old_archive_cmds=$lt_old_archive_cmds_RC 18906old_postinstall_cmds=$lt_old_postinstall_cmds 18907old_postuninstall_cmds=$lt_old_postuninstall_cmds 18908 18909# Create an old-style archive from a shared archive. 18910old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18911 18912# Create a temporary old-style archive to link instead of a shared archive. 18913old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18914 18915# Commands used to build and install a shared archive. 18916archive_cmds=$lt_archive_cmds_RC 18917archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18918postinstall_cmds=$lt_postinstall_cmds 18919postuninstall_cmds=$lt_postuninstall_cmds 18920 18921# Commands used to build a loadable module (assumed same as above if empty) 18922module_cmds=$lt_module_cmds_RC 18923module_expsym_cmds=$lt_module_expsym_cmds_RC 18924 18925# Commands to strip libraries. 18926old_striplib=$lt_old_striplib 18927striplib=$lt_striplib 18928 18929# Dependencies to place before the objects being linked to create a 18930# shared library. 18931predep_objects=$lt_predep_objects_RC 18932 18933# Dependencies to place after the objects being linked to create a 18934# shared library. 18935postdep_objects=$lt_postdep_objects_RC 18936 18937# Dependencies to place before the objects being linked to create a 18938# shared library. 18939predeps=$lt_predeps_RC 18940 18941# Dependencies to place after the objects being linked to create a 18942# shared library. 18943postdeps=$lt_postdeps_RC 18944 18945# The library search path used internally by the compiler when linking 18946# a shared library. 18947compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18948 18949# Method to check whether dependent libraries are shared objects. 18950deplibs_check_method=$lt_deplibs_check_method 18951 18952# Command to use when deplibs_check_method == file_magic. 18953file_magic_cmd=$lt_file_magic_cmd 18954 18955# Flag that allows shared libraries with undefined symbols to be built. 18956allow_undefined_flag=$lt_allow_undefined_flag_RC 18957 18958# Flag that forces no undefined symbols. 18959no_undefined_flag=$lt_no_undefined_flag_RC 18960 18961# Commands used to finish a libtool library installation in a directory. 18962finish_cmds=$lt_finish_cmds 18963 18964# Same as above, but a single script fragment to be evaled but not shown. 18965finish_eval=$lt_finish_eval 18966 18967# Take the output of nm and produce a listing of raw symbols and C names. 18968global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18969 18970# Transform the output of nm in a proper C declaration 18971global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18972 18973# Transform the output of nm in a C name address pair 18974global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18975 18976# This is the shared library runtime path variable. 18977runpath_var=$runpath_var 18978 18979# This is the shared library path variable. 18980shlibpath_var=$shlibpath_var 18981 18982# Is shlibpath searched before the hard-coded library search path? 18983shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18984 18985# How to hardcode a shared library path into an executable. 18986hardcode_action=$hardcode_action_RC 18987 18988# Whether we should hardcode library paths into libraries. 18989hardcode_into_libs=$hardcode_into_libs 18990 18991# Flag to hardcode \$libdir into a binary during linking. 18992# This must work even if \$libdir does not exist. 18993hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18994 18995# If ld is used when linking, flag to hardcode \$libdir into 18996# a binary during linking. This must work even if \$libdir does 18997# not exist. 18998hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18999 19000# Whether we need a single -rpath flag with a separated argument. 19001hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19002 19003# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19004# resulting binary. 19005hardcode_direct=$hardcode_direct_RC 19006 19007# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19008# resulting binary. 19009hardcode_minus_L=$hardcode_minus_L_RC 19010 19011# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19012# the resulting binary. 19013hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19014 19015# Set to yes if building a shared library automatically hardcodes DIR into the library 19016# and all subsequent libraries and executables linked against it. 19017hardcode_automatic=$hardcode_automatic_RC 19018 19019# Variables whose values should be saved in libtool wrapper scripts and 19020# restored at relink time. 19021variables_saved_for_relink="$variables_saved_for_relink" 19022 19023# Whether libtool must link a program against all its dependency libraries. 19024link_all_deplibs=$link_all_deplibs_RC 19025 19026# Compile-time system search path for libraries 19027sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19028 19029# Run-time system search path for libraries 19030sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19031 19032# Fix the shell variable \$srcfile for the compiler. 19033fix_srcfile_path="$fix_srcfile_path_RC" 19034 19035# Set to yes if exported symbols are required. 19036always_export_symbols=$always_export_symbols_RC 19037 19038# The commands to list exported symbols. 19039export_symbols_cmds=$lt_export_symbols_cmds_RC 19040 19041# The commands to extract the exported symbol list from a shared archive. 19042extract_expsyms_cmds=$lt_extract_expsyms_cmds 19043 19044# Symbols that should not be listed in the preloaded symbols. 19045exclude_expsyms=$lt_exclude_expsyms_RC 19046 19047# Symbols that must always be exported. 19048include_expsyms=$lt_include_expsyms_RC 19049 19050# ### END LIBTOOL TAG CONFIG: $tagname 19051 19052__EOF__ 19053 19054 19055else 19056 # If there is no Makefile yet, we rely on a make rule to execute 19057 # `config.status --recheck' to rerun these tests and create the 19058 # libtool script then. 19059 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19060 if test -f "$ltmain_in"; then 19061 test -f Makefile && make "$ltmain" 19062 fi 19063fi 19064 19065 19066ac_ext=c 19067ac_cpp='$CPP $CPPFLAGS' 19068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19070ac_compiler_gnu=$ac_cv_c_compiler_gnu 19071 19072CC="$lt_save_CC" 19073 19074 ;; 19075 19076 *) 19077 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19078echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19079 { (exit 1); exit 1; }; } 19080 ;; 19081 esac 19082 19083 # Append the new tag name to the list of available tags. 19084 if test -n "$tagname" ; then 19085 available_tags="$available_tags $tagname" 19086 fi 19087 fi 19088 done 19089 IFS="$lt_save_ifs" 19090 19091 # Now substitute the updated list of available tags. 19092 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19093 mv "${ofile}T" "$ofile" 19094 chmod +x "$ofile" 19095 else 19096 rm -f "${ofile}T" 19097 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19098echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19099 { (exit 1); exit 1; }; } 19100 fi 19101fi 19102 19103 19104 19105# This can be used to rebuild libtool when needed 19106LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19107 19108# Always use our own libtool. 19109LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19110 19111# Prevent multiple expansion 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133# Check for dependencies 19134 19135 19136if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19137 if test -n "$ac_tool_prefix"; then 19138 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19139set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19140echo "$as_me:$LINENO: checking for $ac_word" >&5 19141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19142if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19143 echo $ECHO_N "(cached) $ECHO_C" >&6 19144else 19145 case $PKG_CONFIG in 19146 [\\/]* | ?:[\\/]*) 19147 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19148 ;; 19149 *) 19150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19151for as_dir in $PATH 19152do 19153 IFS=$as_save_IFS 19154 test -z "$as_dir" && as_dir=. 19155 for ac_exec_ext in '' $ac_executable_extensions; do 19156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19157 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19159 break 2 19160 fi 19161done 19162done 19163 19164 ;; 19165esac 19166fi 19167PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19168 19169if test -n "$PKG_CONFIG"; then 19170 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19171echo "${ECHO_T}$PKG_CONFIG" >&6 19172else 19173 echo "$as_me:$LINENO: result: no" >&5 19174echo "${ECHO_T}no" >&6 19175fi 19176 19177fi 19178if test -z "$ac_cv_path_PKG_CONFIG"; then 19179 ac_pt_PKG_CONFIG=$PKG_CONFIG 19180 # Extract the first word of "pkg-config", so it can be a program name with args. 19181set dummy pkg-config; ac_word=$2 19182echo "$as_me:$LINENO: checking for $ac_word" >&5 19183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19184if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19185 echo $ECHO_N "(cached) $ECHO_C" >&6 19186else 19187 case $ac_pt_PKG_CONFIG in 19188 [\\/]* | ?:[\\/]*) 19189 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19190 ;; 19191 *) 19192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19193for as_dir in $PATH 19194do 19195 IFS=$as_save_IFS 19196 test -z "$as_dir" && as_dir=. 19197 for ac_exec_ext in '' $ac_executable_extensions; do 19198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19199 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19201 break 2 19202 fi 19203done 19204done 19205 19206 ;; 19207esac 19208fi 19209ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19210 19211if test -n "$ac_pt_PKG_CONFIG"; then 19212 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19213echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 19214else 19215 echo "$as_me:$LINENO: result: no" >&5 19216echo "${ECHO_T}no" >&6 19217fi 19218 19219 PKG_CONFIG=$ac_pt_PKG_CONFIG 19220else 19221 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19222fi 19223 19224fi 19225if test -n "$PKG_CONFIG"; then 19226 _pkg_min_version=0.9.0 19227 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19228echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 19229 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19230 echo "$as_me:$LINENO: result: yes" >&5 19231echo "${ECHO_T}yes" >&6 19232 else 19233 echo "$as_me:$LINENO: result: no" >&5 19234echo "${ECHO_T}no" >&6 19235 PKG_CONFIG="" 19236 fi 19237 19238fi 19239 19240pkg_failed=no 19241echo "$as_me:$LINENO: checking for XTRAP" >&5 19242echo $ECHO_N "checking for XTRAP... $ECHO_C" >&6 19243 19244if test -n "$PKG_CONFIG"; then 19245 if test -n "$XTRAP_CFLAGS"; then 19246 pkg_cv_XTRAP_CFLAGS="$XTRAP_CFLAGS" 19247 else 19248 if test -n "$PKG_CONFIG" && \ 19249 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xt trapproto xext xextproto\"") >&5 19250 ($PKG_CONFIG --exists --print-errors "x11 xt trapproto xext xextproto") 2>&5 19251 ac_status=$? 19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19253 (exit $ac_status); }; then 19254 pkg_cv_XTRAP_CFLAGS=`$PKG_CONFIG --cflags "x11 xt trapproto xext xextproto" 2>/dev/null` 19255else 19256 pkg_failed=yes 19257fi 19258 fi 19259else 19260 pkg_failed=untried 19261fi 19262if test -n "$PKG_CONFIG"; then 19263 if test -n "$XTRAP_LIBS"; then 19264 pkg_cv_XTRAP_LIBS="$XTRAP_LIBS" 19265 else 19266 if test -n "$PKG_CONFIG" && \ 19267 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xt trapproto xext xextproto\"") >&5 19268 ($PKG_CONFIG --exists --print-errors "x11 xt trapproto xext xextproto") 2>&5 19269 ac_status=$? 19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19271 (exit $ac_status); }; then 19272 pkg_cv_XTRAP_LIBS=`$PKG_CONFIG --libs "x11 xt trapproto xext xextproto" 2>/dev/null` 19273else 19274 pkg_failed=yes 19275fi 19276 fi 19277else 19278 pkg_failed=untried 19279fi 19280 19281 19282 19283if test $pkg_failed = yes; then 19284 19285if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19286 _pkg_short_errors_supported=yes 19287else 19288 _pkg_short_errors_supported=no 19289fi 19290 if test $_pkg_short_errors_supported = yes; then 19291 XTRAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xt trapproto xext xextproto"` 19292 else 19293 XTRAP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xt trapproto xext xextproto"` 19294 fi 19295 # Put the nasty error message in config.log where it belongs 19296 echo "$XTRAP_PKG_ERRORS" >&5 19297 19298 { { echo "$as_me:$LINENO: error: Package requirements (x11 xt trapproto xext xextproto) were not met: 19299 19300$XTRAP_PKG_ERRORS 19301 19302Consider adjusting the PKG_CONFIG_PATH environment variable if you 19303installed software in a non-standard prefix. 19304 19305Alternatively, you may set the environment variables XTRAP_CFLAGS 19306and XTRAP_LIBS to avoid the need to call pkg-config. 19307See the pkg-config man page for more details. 19308" >&5 19309echo "$as_me: error: Package requirements (x11 xt trapproto xext xextproto) were not met: 19310 19311$XTRAP_PKG_ERRORS 19312 19313Consider adjusting the PKG_CONFIG_PATH environment variable if you 19314installed software in a non-standard prefix. 19315 19316Alternatively, you may set the environment variables XTRAP_CFLAGS 19317and XTRAP_LIBS to avoid the need to call pkg-config. 19318See the pkg-config man page for more details. 19319" >&2;} 19320 { (exit 1); exit 1; }; } 19321elif test $pkg_failed = untried; then 19322 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 19323is in your PATH or set the PKG_CONFIG environment variable to the full 19324path to pkg-config. 19325 19326Alternatively, you may set the environment variables XTRAP_CFLAGS 19327and XTRAP_LIBS to avoid the need to call pkg-config. 19328See the pkg-config man page for more details. 19329 19330To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19331See \`config.log' for more details." >&5 19332echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 19333is in your PATH or set the PKG_CONFIG environment variable to the full 19334path to pkg-config. 19335 19336Alternatively, you may set the environment variables XTRAP_CFLAGS 19337and XTRAP_LIBS to avoid the need to call pkg-config. 19338See the pkg-config man page for more details. 19339 19340To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19341See \`config.log' for more details." >&2;} 19342 { (exit 1); exit 1; }; } 19343else 19344 XTRAP_CFLAGS=$pkg_cv_XTRAP_CFLAGS 19345 XTRAP_LIBS=$pkg_cv_XTRAP_LIBS 19346 echo "$as_me:$LINENO: result: yes" >&5 19347echo "${ECHO_T}yes" >&6 19348 : 19349fi 19350 19351 19352 19353 19354 19355# Check whether --with-release-version or --without-release-version was given. 19356if test "${with_release_version+set}" = set; then 19357 withval="$with_release_version" 19358 RELEASE_VERSION="$withval" 19359else 19360 RELEASE_VERSION="" 19361fi; 19362 if test "x$RELEASE_VERSION" != "x"; then 19363 PACKAGE="$PACKAGE-$RELEASE_VERSION" 19364 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 19365 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 19366echo "$as_me: Building with package name set to $PACKAGE" >&6;} 19367 fi 19368 19369 19370 ac_config_files="$ac_config_files Makefile src/Makefile xtrap.pc" 19371cat >confcache <<\_ACEOF 19372# This file is a shell script that caches the results of configure 19373# tests run on this system so they can be shared between configure 19374# scripts and configure runs, see configure's option --config-cache. 19375# It is not useful on other systems. If it contains results you don't 19376# want to keep, you may remove or edit it. 19377# 19378# config.status only pays attention to the cache file if you give it 19379# the --recheck option to rerun configure. 19380# 19381# `ac_cv_env_foo' variables (set or unset) will be overridden when 19382# loading this file, other *unset* `ac_cv_foo' will be assigned the 19383# following values. 19384 19385_ACEOF 19386 19387# The following way of writing the cache mishandles newlines in values, 19388# but we know of no workaround that is simple, portable, and efficient. 19389# So, don't put newlines in cache variables' values. 19390# Ultrix sh set writes to stderr and can't be redirected directly, 19391# and sets the high bit in the cache file unless we assign to the vars. 19392{ 19393 (set) 2>&1 | 19394 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19395 *ac_space=\ *) 19396 # `set' does not quote correctly, so add quotes (double-quote 19397 # substitution turns \\\\ into \\, and sed turns \\ into \). 19398 sed -n \ 19399 "s/'/'\\\\''/g; 19400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19401 ;; 19402 *) 19403 # `set' quotes correctly as required by POSIX, so do not add quotes. 19404 sed -n \ 19405 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19406 ;; 19407 esac; 19408} | 19409 sed ' 19410 t clear 19411 : clear 19412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19413 t end 19414 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19415 : end' >>confcache 19416if diff $cache_file confcache >/dev/null 2>&1; then :; else 19417 if test -w $cache_file; then 19418 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 19419 cat confcache >$cache_file 19420 else 19421 echo "not updating unwritable cache $cache_file" 19422 fi 19423fi 19424rm -f confcache 19425 19426test "x$prefix" = xNONE && prefix=$ac_default_prefix 19427# Let make expand exec_prefix. 19428test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19429 19430# VPATH may cause trouble with some makes, so we remove $(srcdir), 19431# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19432# trailing colons and then remove the whole line if VPATH becomes empty 19433# (actually we leave an empty line to preserve line numbers). 19434if test "x$srcdir" = x.; then 19435 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19436s/:*\$(srcdir):*/:/; 19437s/:*\${srcdir}:*/:/; 19438s/:*@srcdir@:*/:/; 19439s/^\([^=]*=[ ]*\):*/\1/; 19440s/:*$//; 19441s/^[^=]*=[ ]*$//; 19442}' 19443fi 19444 19445DEFS=-DHAVE_CONFIG_H 19446 19447ac_libobjs= 19448ac_ltlibobjs= 19449for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19450 # 1. Remove the extension, and $U if already installed. 19451 ac_i=`echo "$ac_i" | 19452 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 19453 # 2. Add them. 19454 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 19455 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 19456done 19457LIBOBJS=$ac_libobjs 19458 19459LTLIBOBJS=$ac_ltlibobjs 19460 19461 19462if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19463 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 19464Usually this means the macro was only invoked conditionally." >&5 19465echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 19466Usually this means the macro was only invoked conditionally." >&2;} 19467 { (exit 1); exit 1; }; } 19468fi 19469if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19470 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19471Usually this means the macro was only invoked conditionally." >&5 19472echo "$as_me: error: conditional \"AMDEP\" was never defined. 19473Usually this means the macro was only invoked conditionally." >&2;} 19474 { (exit 1); exit 1; }; } 19475fi 19476if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19477 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19478Usually this means the macro was only invoked conditionally." >&5 19479echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19480Usually this means the macro was only invoked conditionally." >&2;} 19481 { (exit 1); exit 1; }; } 19482fi 19483if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19484 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 19485Usually this means the macro was only invoked conditionally." >&5 19486echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 19487Usually this means the macro was only invoked conditionally." >&2;} 19488 { (exit 1); exit 1; }; } 19489fi 19490 19491: ${CONFIG_STATUS=./config.status} 19492ac_clean_files_save=$ac_clean_files 19493ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19494{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19495echo "$as_me: creating $CONFIG_STATUS" >&6;} 19496cat >$CONFIG_STATUS <<_ACEOF 19497#! $SHELL 19498# Generated by $as_me. 19499# Run this file to recreate the current configuration. 19500# Compiler output produced by configure, useful for debugging 19501# configure, is in config.log if it exists. 19502 19503debug=false 19504ac_cs_recheck=false 19505ac_cs_silent=false 19506SHELL=\${CONFIG_SHELL-$SHELL} 19507_ACEOF 19508 19509cat >>$CONFIG_STATUS <<\_ACEOF 19510## --------------------- ## 19511## M4sh Initialization. ## 19512## --------------------- ## 19513 19514# Be Bourne compatible 19515if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19516 emulate sh 19517 NULLCMD=: 19518 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19519 # is contrary to our usage. Disable this feature. 19520 alias -g '${1+"$@"}'='"$@"' 19521elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19522 set -o posix 19523fi 19524DUALCASE=1; export DUALCASE # for MKS sh 19525 19526# Support unset when possible. 19527if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19528 as_unset=unset 19529else 19530 as_unset=false 19531fi 19532 19533 19534# Work around bugs in pre-3.0 UWIN ksh. 19535$as_unset ENV MAIL MAILPATH 19536PS1='$ ' 19537PS2='> ' 19538PS4='+ ' 19539 19540# NLS nuisances. 19541for as_var in \ 19542 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 19543 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 19544 LC_TELEPHONE LC_TIME 19545do 19546 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 19547 eval $as_var=C; export $as_var 19548 else 19549 $as_unset $as_var 19550 fi 19551done 19552 19553# Required to use basename. 19554if expr a : '\(a\)' >/dev/null 2>&1; then 19555 as_expr=expr 19556else 19557 as_expr=false 19558fi 19559 19560if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 19561 as_basename=basename 19562else 19563 as_basename=false 19564fi 19565 19566 19567# Name of the executable. 19568as_me=`$as_basename "$0" || 19569$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19570 X"$0" : 'X\(//\)$' \| \ 19571 X"$0" : 'X\(/\)$' \| \ 19572 . : '\(.\)' 2>/dev/null || 19573echo X/"$0" | 19574 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 19575 /^X\/\(\/\/\)$/{ s//\1/; q; } 19576 /^X\/\(\/\).*/{ s//\1/; q; } 19577 s/.*/./; q'` 19578 19579 19580# PATH needs CR, and LINENO needs CR and PATH. 19581# Avoid depending upon Character Ranges. 19582as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19583as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19584as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19585as_cr_digits='0123456789' 19586as_cr_alnum=$as_cr_Letters$as_cr_digits 19587 19588# The user is always right. 19589if test "${PATH_SEPARATOR+set}" != set; then 19590 echo "#! /bin/sh" >conf$$.sh 19591 echo "exit 0" >>conf$$.sh 19592 chmod +x conf$$.sh 19593 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19594 PATH_SEPARATOR=';' 19595 else 19596 PATH_SEPARATOR=: 19597 fi 19598 rm -f conf$$.sh 19599fi 19600 19601 19602 as_lineno_1=$LINENO 19603 as_lineno_2=$LINENO 19604 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19605 test "x$as_lineno_1" != "x$as_lineno_2" && 19606 test "x$as_lineno_3" = "x$as_lineno_2" || { 19607 # Find who we are. Look in the path if we contain no path at all 19608 # relative or not. 19609 case $0 in 19610 *[\\/]* ) as_myself=$0 ;; 19611 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19612for as_dir in $PATH 19613do 19614 IFS=$as_save_IFS 19615 test -z "$as_dir" && as_dir=. 19616 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19617done 19618 19619 ;; 19620 esac 19621 # We did not find ourselves, most probably we were run as `sh COMMAND' 19622 # in which case we are not to be found in the path. 19623 if test "x$as_myself" = x; then 19624 as_myself=$0 19625 fi 19626 if test ! -f "$as_myself"; then 19627 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 19628echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 19629 { (exit 1); exit 1; }; } 19630 fi 19631 case $CONFIG_SHELL in 19632 '') 19633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19634for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 19635do 19636 IFS=$as_save_IFS 19637 test -z "$as_dir" && as_dir=. 19638 for as_base in sh bash ksh sh5; do 19639 case $as_dir in 19640 /*) 19641 if ("$as_dir/$as_base" -c ' 19642 as_lineno_1=$LINENO 19643 as_lineno_2=$LINENO 19644 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19645 test "x$as_lineno_1" != "x$as_lineno_2" && 19646 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 19647 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 19648 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 19649 CONFIG_SHELL=$as_dir/$as_base 19650 export CONFIG_SHELL 19651 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 19652 fi;; 19653 esac 19654 done 19655done 19656;; 19657 esac 19658 19659 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 19660 # uniformly replaced by the line number. The first 'sed' inserts a 19661 # line-number line before each line; the second 'sed' does the real 19662 # work. The second script uses 'N' to pair each line-number line 19663 # with the numbered line, and appends trailing '-' during 19664 # substitution so that $LINENO is not a special case at line end. 19665 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 19666 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 19667 sed '=' <$as_myself | 19668 sed ' 19669 N 19670 s,$,-, 19671 : loop 19672 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 19673 t loop 19674 s,-$,, 19675 s,^['$as_cr_digits']*\n,, 19676 ' >$as_me.lineno && 19677 chmod +x $as_me.lineno || 19678 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 19679echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 19680 { (exit 1); exit 1; }; } 19681 19682 # Don't try to exec as it changes $[0], causing all sort of problems 19683 # (the dirname of $[0] is not the place where we might find the 19684 # original and so on. Autoconf is especially sensible to this). 19685 . ./$as_me.lineno 19686 # Exit status is that of the last command. 19687 exit 19688} 19689 19690 19691case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 19692 *c*,-n*) ECHO_N= ECHO_C=' 19693' ECHO_T=' ' ;; 19694 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 19695 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 19696esac 19697 19698if expr a : '\(a\)' >/dev/null 2>&1; then 19699 as_expr=expr 19700else 19701 as_expr=false 19702fi 19703 19704rm -f conf$$ conf$$.exe conf$$.file 19705echo >conf$$.file 19706if ln -s conf$$.file conf$$ 2>/dev/null; then 19707 # We could just check for DJGPP; but this test a) works b) is more generic 19708 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 19709 if test -f conf$$.exe; then 19710 # Don't use ln at all; we don't have any links 19711 as_ln_s='cp -p' 19712 else 19713 as_ln_s='ln -s' 19714 fi 19715elif ln conf$$.file conf$$ 2>/dev/null; then 19716 as_ln_s=ln 19717else 19718 as_ln_s='cp -p' 19719fi 19720rm -f conf$$ conf$$.exe conf$$.file 19721 19722if mkdir -p . 2>/dev/null; then 19723 as_mkdir_p=: 19724else 19725 test -d ./-p && rmdir ./-p 19726 as_mkdir_p=false 19727fi 19728 19729as_executable_p="test -f" 19730 19731# Sed expression to map a string onto a valid CPP name. 19732as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19733 19734# Sed expression to map a string onto a valid variable name. 19735as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19736 19737 19738# IFS 19739# We need space, tab and new line, in precisely that order. 19740as_nl=' 19741' 19742IFS=" $as_nl" 19743 19744# CDPATH. 19745$as_unset CDPATH 19746 19747exec 6>&1 19748 19749# Open the log real soon, to keep \$[0] and so on meaningful, and to 19750# report actual input values of CONFIG_FILES etc. instead of their 19751# values after options handling. Logging --version etc. is OK. 19752exec 5>>config.log 19753{ 19754 echo 19755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19756## Running $as_me. ## 19757_ASBOX 19758} >&5 19759cat >&5 <<_CSEOF 19760 19761This file was extended by libXTrap $as_me 1.0.0, which was 19762generated by GNU Autoconf 2.59. Invocation command line was 19763 19764 CONFIG_FILES = $CONFIG_FILES 19765 CONFIG_HEADERS = $CONFIG_HEADERS 19766 CONFIG_LINKS = $CONFIG_LINKS 19767 CONFIG_COMMANDS = $CONFIG_COMMANDS 19768 $ $0 $@ 19769 19770_CSEOF 19771echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 19772echo >&5 19773_ACEOF 19774 19775# Files that config.status was made for. 19776if test -n "$ac_config_files"; then 19777 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 19778fi 19779 19780if test -n "$ac_config_headers"; then 19781 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 19782fi 19783 19784if test -n "$ac_config_links"; then 19785 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 19786fi 19787 19788if test -n "$ac_config_commands"; then 19789 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 19790fi 19791 19792cat >>$CONFIG_STATUS <<\_ACEOF 19793 19794ac_cs_usage="\ 19795\`$as_me' instantiates files from templates according to the 19796current configuration. 19797 19798Usage: $0 [OPTIONS] [FILE]... 19799 19800 -h, --help print this help, then exit 19801 -V, --version print version number, then exit 19802 -q, --quiet do not print progress messages 19803 -d, --debug don't remove temporary files 19804 --recheck update $as_me by reconfiguring in the same conditions 19805 --file=FILE[:TEMPLATE] 19806 instantiate the configuration file FILE 19807 --header=FILE[:TEMPLATE] 19808 instantiate the configuration header FILE 19809 19810Configuration files: 19811$config_files 19812 19813Configuration headers: 19814$config_headers 19815 19816Configuration commands: 19817$config_commands 19818 19819Report bugs to <bug-autoconf@gnu.org>." 19820_ACEOF 19821 19822cat >>$CONFIG_STATUS <<_ACEOF 19823ac_cs_version="\\ 19824libXTrap config.status 1.0.0 19825configured by $0, generated by GNU Autoconf 2.59, 19826 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 19827 19828Copyright (C) 2003 Free Software Foundation, Inc. 19829This config.status script is free software; the Free Software Foundation 19830gives unlimited permission to copy, distribute and modify it." 19831srcdir=$srcdir 19832INSTALL="$INSTALL" 19833_ACEOF 19834 19835cat >>$CONFIG_STATUS <<\_ACEOF 19836# If no file are specified by the user, then we need to provide default 19837# value. By we need to know if files were specified by the user. 19838ac_need_defaults=: 19839while test $# != 0 19840do 19841 case $1 in 19842 --*=*) 19843 ac_option=`expr "x$1" : 'x\([^=]*\)='` 19844 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 19845 ac_shift=: 19846 ;; 19847 -*) 19848 ac_option=$1 19849 ac_optarg=$2 19850 ac_shift=shift 19851 ;; 19852 *) # This is not an option, so the user has probably given explicit 19853 # arguments. 19854 ac_option=$1 19855 ac_need_defaults=false;; 19856 esac 19857 19858 case $ac_option in 19859 # Handling of the options. 19860_ACEOF 19861cat >>$CONFIG_STATUS <<\_ACEOF 19862 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19863 ac_cs_recheck=: ;; 19864 --version | --vers* | -V ) 19865 echo "$ac_cs_version"; exit 0 ;; 19866 --he | --h) 19867 # Conflict between --help and --header 19868 { { echo "$as_me:$LINENO: error: ambiguous option: $1 19869Try \`$0 --help' for more information." >&5 19870echo "$as_me: error: ambiguous option: $1 19871Try \`$0 --help' for more information." >&2;} 19872 { (exit 1); exit 1; }; };; 19873 --help | --hel | -h ) 19874 echo "$ac_cs_usage"; exit 0 ;; 19875 --debug | --d* | -d ) 19876 debug=: ;; 19877 --file | --fil | --fi | --f ) 19878 $ac_shift 19879 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 19880 ac_need_defaults=false;; 19881 --header | --heade | --head | --hea ) 19882 $ac_shift 19883 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 19884 ac_need_defaults=false;; 19885 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19886 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19887 ac_cs_silent=: ;; 19888 19889 # This is an error. 19890 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 19891Try \`$0 --help' for more information." >&5 19892echo "$as_me: error: unrecognized option: $1 19893Try \`$0 --help' for more information." >&2;} 19894 { (exit 1); exit 1; }; } ;; 19895 19896 *) ac_config_targets="$ac_config_targets $1" ;; 19897 19898 esac 19899 shift 19900done 19901 19902ac_configure_extra_args= 19903 19904if $ac_cs_silent; then 19905 exec 6>/dev/null 19906 ac_configure_extra_args="$ac_configure_extra_args --silent" 19907fi 19908 19909_ACEOF 19910cat >>$CONFIG_STATUS <<_ACEOF 19911if \$ac_cs_recheck; then 19912 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 19913 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19914fi 19915 19916_ACEOF 19917 19918cat >>$CONFIG_STATUS <<_ACEOF 19919# 19920# INIT-COMMANDS section. 19921# 19922 19923AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19924 19925_ACEOF 19926 19927 19928 19929cat >>$CONFIG_STATUS <<\_ACEOF 19930for ac_config_target in $ac_config_targets 19931do 19932 case "$ac_config_target" in 19933 # Handling of arguments. 19934 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19935 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19936 "xtrap.pc" ) CONFIG_FILES="$CONFIG_FILES xtrap.pc" ;; 19937 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19938 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19939 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 19940echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 19941 { (exit 1); exit 1; }; };; 19942 esac 19943done 19944 19945# If the user did not use the arguments to specify the items to instantiate, 19946# then the envvar interface is used. Set only those that are not. 19947# We use the long form for the default assignment because of an extremely 19948# bizarre bug on SunOS 4.1.3. 19949if $ac_need_defaults; then 19950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19951 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19952 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19953fi 19954 19955# Have a temporary directory for convenience. Make it in the build tree 19956# simply because there is no reason to put it here, and in addition, 19957# creating and moving files from /tmp can sometimes cause problems. 19958# Create a temporary directory, and hook for its removal unless debugging. 19959$debug || 19960{ 19961 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 19962 trap '{ (exit 1); exit 1; }' 1 2 13 15 19963} 19964 19965# Create a (secure) tmp directory for tmp files. 19966 19967{ 19968 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 19969 test -n "$tmp" && test -d "$tmp" 19970} || 19971{ 19972 tmp=./confstat$$-$RANDOM 19973 (umask 077 && mkdir $tmp) 19974} || 19975{ 19976 echo "$me: cannot create a temporary directory in ." >&2 19977 { (exit 1); exit 1; } 19978} 19979 19980_ACEOF 19981 19982cat >>$CONFIG_STATUS <<_ACEOF 19983 19984# 19985# CONFIG_FILES section. 19986# 19987 19988# No need to generate the scripts if there are no CONFIG_FILES. 19989# This happens for instance when ./config.status config.h 19990if test -n "\$CONFIG_FILES"; then 19991 # Protect against being on the right side of a sed subst in config.status. 19992 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 19993 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 19994s,@SHELL@,$SHELL,;t t 19995s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 19996s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 19997s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 19998s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 19999s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 20000s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 20001s,@exec_prefix@,$exec_prefix,;t t 20002s,@prefix@,$prefix,;t t 20003s,@program_transform_name@,$program_transform_name,;t t 20004s,@bindir@,$bindir,;t t 20005s,@sbindir@,$sbindir,;t t 20006s,@libexecdir@,$libexecdir,;t t 20007s,@datadir@,$datadir,;t t 20008s,@sysconfdir@,$sysconfdir,;t t 20009s,@sharedstatedir@,$sharedstatedir,;t t 20010s,@localstatedir@,$localstatedir,;t t 20011s,@libdir@,$libdir,;t t 20012s,@includedir@,$includedir,;t t 20013s,@oldincludedir@,$oldincludedir,;t t 20014s,@infodir@,$infodir,;t t 20015s,@mandir@,$mandir,;t t 20016s,@build_alias@,$build_alias,;t t 20017s,@host_alias@,$host_alias,;t t 20018s,@target_alias@,$target_alias,;t t 20019s,@DEFS@,$DEFS,;t t 20020s,@ECHO_C@,$ECHO_C,;t t 20021s,@ECHO_N@,$ECHO_N,;t t 20022s,@ECHO_T@,$ECHO_T,;t t 20023s,@LIBS@,$LIBS,;t t 20024s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 20025s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 20026s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20027s,@CYGPATH_W@,$CYGPATH_W,;t t 20028s,@PACKAGE@,$PACKAGE,;t t 20029s,@VERSION@,$VERSION,;t t 20030s,@ACLOCAL@,$ACLOCAL,;t t 20031s,@AUTOCONF@,$AUTOCONF,;t t 20032s,@AUTOMAKE@,$AUTOMAKE,;t t 20033s,@AUTOHEADER@,$AUTOHEADER,;t t 20034s,@MAKEINFO@,$MAKEINFO,;t t 20035s,@AMTAR@,$AMTAR,;t t 20036s,@install_sh@,$install_sh,;t t 20037s,@STRIP@,$STRIP,;t t 20038s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 20039s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 20040s,@AWK@,$AWK,;t t 20041s,@SET_MAKE@,$SET_MAKE,;t t 20042s,@am__leading_dot@,$am__leading_dot,;t t 20043s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 20044s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 20045s,@MAINT@,$MAINT,;t t 20046s,@CC@,$CC,;t t 20047s,@CFLAGS@,$CFLAGS,;t t 20048s,@LDFLAGS@,$LDFLAGS,;t t 20049s,@CPPFLAGS@,$CPPFLAGS,;t t 20050s,@ac_ct_CC@,$ac_ct_CC,;t t 20051s,@EXEEXT@,$EXEEXT,;t t 20052s,@OBJEXT@,$OBJEXT,;t t 20053s,@DEPDIR@,$DEPDIR,;t t 20054s,@am__include@,$am__include,;t t 20055s,@am__quote@,$am__quote,;t t 20056s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 20057s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 20058s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 20059s,@CCDEPMODE@,$CCDEPMODE,;t t 20060s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 20061s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 20062s,@build@,$build,;t t 20063s,@build_cpu@,$build_cpu,;t t 20064s,@build_vendor@,$build_vendor,;t t 20065s,@build_os@,$build_os,;t t 20066s,@host@,$host,;t t 20067s,@host_cpu@,$host_cpu,;t t 20068s,@host_vendor@,$host_vendor,;t t 20069s,@host_os@,$host_os,;t t 20070s,@EGREP@,$EGREP,;t t 20071s,@LN_S@,$LN_S,;t t 20072s,@ECHO@,$ECHO,;t t 20073s,@AR@,$AR,;t t 20074s,@ac_ct_AR@,$ac_ct_AR,;t t 20075s,@RANLIB@,$RANLIB,;t t 20076s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 20077s,@CPP@,$CPP,;t t 20078s,@CXX@,$CXX,;t t 20079s,@CXXFLAGS@,$CXXFLAGS,;t t 20080s,@ac_ct_CXX@,$ac_ct_CXX,;t t 20081s,@CXXDEPMODE@,$CXXDEPMODE,;t t 20082s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 20083s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 20084s,@CXXCPP@,$CXXCPP,;t t 20085s,@F77@,$F77,;t t 20086s,@FFLAGS@,$FFLAGS,;t t 20087s,@ac_ct_F77@,$ac_ct_F77,;t t 20088s,@LIBTOOL@,$LIBTOOL,;t t 20089s,@PKG_CONFIG@,$PKG_CONFIG,;t t 20090s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 20091s,@XTRAP_CFLAGS@,$XTRAP_CFLAGS,;t t 20092s,@XTRAP_LIBS@,$XTRAP_LIBS,;t t 20093s,@LIBOBJS@,$LIBOBJS,;t t 20094s,@LTLIBOBJS@,$LTLIBOBJS,;t t 20095CEOF 20096 20097_ACEOF 20098 20099 cat >>$CONFIG_STATUS <<\_ACEOF 20100 # Split the substitutions into bite-sized pieces for seds with 20101 # small command number limits, like on Digital OSF/1 and HP-UX. 20102 ac_max_sed_lines=48 20103 ac_sed_frag=1 # Number of current file. 20104 ac_beg=1 # First line for current file. 20105 ac_end=$ac_max_sed_lines # Line after last line for current file. 20106 ac_more_lines=: 20107 ac_sed_cmds= 20108 while $ac_more_lines; do 20109 if test $ac_beg -gt 1; then 20110 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20111 else 20112 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20113 fi 20114 if test ! -s $tmp/subs.frag; then 20115 ac_more_lines=false 20116 else 20117 # The purpose of the label and of the branching condition is to 20118 # speed up the sed processing (if there are no `@' at all, there 20119 # is no need to browse any of the substitutions). 20120 # These are the two extra sed commands mentioned above. 20121 (echo ':t 20122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 20123 if test -z "$ac_sed_cmds"; then 20124 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 20125 else 20126 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 20127 fi 20128 ac_sed_frag=`expr $ac_sed_frag + 1` 20129 ac_beg=$ac_end 20130 ac_end=`expr $ac_end + $ac_max_sed_lines` 20131 fi 20132 done 20133 if test -z "$ac_sed_cmds"; then 20134 ac_sed_cmds=cat 20135 fi 20136fi # test -n "$CONFIG_FILES" 20137 20138_ACEOF 20139cat >>$CONFIG_STATUS <<\_ACEOF 20140for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 20141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20142 case $ac_file in 20143 - | *:- | *:-:* ) # input from stdin 20144 cat >$tmp/stdin 20145 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20147 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20148 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20149 * ) ac_file_in=$ac_file.in ;; 20150 esac 20151 20152 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 20153 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20154$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20155 X"$ac_file" : 'X\(//\)[^/]' \| \ 20156 X"$ac_file" : 'X\(//\)$' \| \ 20157 X"$ac_file" : 'X\(/\)' \| \ 20158 . : '\(.\)' 2>/dev/null || 20159echo X"$ac_file" | 20160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20161 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20162 /^X\(\/\/\)$/{ s//\1/; q; } 20163 /^X\(\/\).*/{ s//\1/; q; } 20164 s/.*/./; q'` 20165 { if $as_mkdir_p; then 20166 mkdir -p "$ac_dir" 20167 else 20168 as_dir="$ac_dir" 20169 as_dirs= 20170 while test ! -d "$as_dir"; do 20171 as_dirs="$as_dir $as_dirs" 20172 as_dir=`(dirname "$as_dir") 2>/dev/null || 20173$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20174 X"$as_dir" : 'X\(//\)[^/]' \| \ 20175 X"$as_dir" : 'X\(//\)$' \| \ 20176 X"$as_dir" : 'X\(/\)' \| \ 20177 . : '\(.\)' 2>/dev/null || 20178echo X"$as_dir" | 20179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20180 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20181 /^X\(\/\/\)$/{ s//\1/; q; } 20182 /^X\(\/\).*/{ s//\1/; q; } 20183 s/.*/./; q'` 20184 done 20185 test ! -n "$as_dirs" || mkdir $as_dirs 20186 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20187echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20188 { (exit 1); exit 1; }; }; } 20189 20190 ac_builddir=. 20191 20192if test "$ac_dir" != .; then 20193 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20194 # A "../" for each directory in $ac_dir_suffix. 20195 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20196else 20197 ac_dir_suffix= ac_top_builddir= 20198fi 20199 20200case $srcdir in 20201 .) # No --srcdir option. We are building in place. 20202 ac_srcdir=. 20203 if test -z "$ac_top_builddir"; then 20204 ac_top_srcdir=. 20205 else 20206 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20207 fi ;; 20208 [\\/]* | ?:[\\/]* ) # Absolute path. 20209 ac_srcdir=$srcdir$ac_dir_suffix; 20210 ac_top_srcdir=$srcdir ;; 20211 *) # Relative path. 20212 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20213 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20214esac 20215 20216# Do not use `cd foo && pwd` to compute absolute paths, because 20217# the directories may not exist. 20218case `pwd` in 20219.) ac_abs_builddir="$ac_dir";; 20220*) 20221 case "$ac_dir" in 20222 .) ac_abs_builddir=`pwd`;; 20223 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20224 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20225 esac;; 20226esac 20227case $ac_abs_builddir in 20228.) ac_abs_top_builddir=${ac_top_builddir}.;; 20229*) 20230 case ${ac_top_builddir}. in 20231 .) ac_abs_top_builddir=$ac_abs_builddir;; 20232 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20233 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20234 esac;; 20235esac 20236case $ac_abs_builddir in 20237.) ac_abs_srcdir=$ac_srcdir;; 20238*) 20239 case $ac_srcdir in 20240 .) ac_abs_srcdir=$ac_abs_builddir;; 20241 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20242 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20243 esac;; 20244esac 20245case $ac_abs_builddir in 20246.) ac_abs_top_srcdir=$ac_top_srcdir;; 20247*) 20248 case $ac_top_srcdir in 20249 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20250 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20251 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20252 esac;; 20253esac 20254 20255 20256 case $INSTALL in 20257 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20258 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 20259 esac 20260 20261 if test x"$ac_file" != x-; then 20262 { echo "$as_me:$LINENO: creating $ac_file" >&5 20263echo "$as_me: creating $ac_file" >&6;} 20264 rm -f "$ac_file" 20265 fi 20266 # Let's still pretend it is `configure' which instantiates (i.e., don't 20267 # use $as_me), people would be surprised to read: 20268 # /* config.h. Generated by config.status. */ 20269 if test x"$ac_file" = x-; then 20270 configure_input= 20271 else 20272 configure_input="$ac_file. " 20273 fi 20274 configure_input=$configure_input"Generated from `echo $ac_file_in | 20275 sed 's,.*/,,'` by configure." 20276 20277 # First look for the input files in the build tree, otherwise in the 20278 # src tree. 20279 ac_file_inputs=`IFS=: 20280 for f in $ac_file_in; do 20281 case $f in 20282 -) echo $tmp/stdin ;; 20283 [\\/$]*) 20284 # Absolute (can't be DOS-style, as IFS=:) 20285 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20286echo "$as_me: error: cannot find input file: $f" >&2;} 20287 { (exit 1); exit 1; }; } 20288 echo "$f";; 20289 *) # Relative 20290 if test -f "$f"; then 20291 # Build tree 20292 echo "$f" 20293 elif test -f "$srcdir/$f"; then 20294 # Source tree 20295 echo "$srcdir/$f" 20296 else 20297 # /dev/null tree 20298 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20299echo "$as_me: error: cannot find input file: $f" >&2;} 20300 { (exit 1); exit 1; }; } 20301 fi;; 20302 esac 20303 done` || { (exit 1); exit 1; } 20304_ACEOF 20305cat >>$CONFIG_STATUS <<_ACEOF 20306 sed "$ac_vpsub 20307$extrasub 20308_ACEOF 20309cat >>$CONFIG_STATUS <<\_ACEOF 20310:t 20311/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20312s,@configure_input@,$configure_input,;t t 20313s,@srcdir@,$ac_srcdir,;t t 20314s,@abs_srcdir@,$ac_abs_srcdir,;t t 20315s,@top_srcdir@,$ac_top_srcdir,;t t 20316s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 20317s,@builddir@,$ac_builddir,;t t 20318s,@abs_builddir@,$ac_abs_builddir,;t t 20319s,@top_builddir@,$ac_top_builddir,;t t 20320s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 20321s,@INSTALL@,$ac_INSTALL,;t t 20322" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 20323 rm -f $tmp/stdin 20324 if test x"$ac_file" != x-; then 20325 mv $tmp/out $ac_file 20326 else 20327 cat $tmp/out 20328 rm -f $tmp/out 20329 fi 20330 20331done 20332_ACEOF 20333cat >>$CONFIG_STATUS <<\_ACEOF 20334 20335# 20336# CONFIG_HEADER section. 20337# 20338 20339# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 20340# NAME is the cpp macro being defined and VALUE is the value it is being given. 20341# 20342# ac_d sets the value in "#define NAME VALUE" lines. 20343ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 20344ac_dB='[ ].*$,\1#\2' 20345ac_dC=' ' 20346ac_dD=',;t' 20347# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 20348ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 20349ac_uB='$,\1#\2define\3' 20350ac_uC=' ' 20351ac_uD=',;t' 20352 20353for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 20354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20355 case $ac_file in 20356 - | *:- | *:-:* ) # input from stdin 20357 cat >$tmp/stdin 20358 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20360 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20361 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20362 * ) ac_file_in=$ac_file.in ;; 20363 esac 20364 20365 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 20366echo "$as_me: creating $ac_file" >&6;} 20367 20368 # First look for the input files in the build tree, otherwise in the 20369 # src tree. 20370 ac_file_inputs=`IFS=: 20371 for f in $ac_file_in; do 20372 case $f in 20373 -) echo $tmp/stdin ;; 20374 [\\/$]*) 20375 # Absolute (can't be DOS-style, as IFS=:) 20376 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20377echo "$as_me: error: cannot find input file: $f" >&2;} 20378 { (exit 1); exit 1; }; } 20379 # Do quote $f, to prevent DOS paths from being IFS'd. 20380 echo "$f";; 20381 *) # Relative 20382 if test -f "$f"; then 20383 # Build tree 20384 echo "$f" 20385 elif test -f "$srcdir/$f"; then 20386 # Source tree 20387 echo "$srcdir/$f" 20388 else 20389 # /dev/null tree 20390 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20391echo "$as_me: error: cannot find input file: $f" >&2;} 20392 { (exit 1); exit 1; }; } 20393 fi;; 20394 esac 20395 done` || { (exit 1); exit 1; } 20396 # Remove the trailing spaces. 20397 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 20398 20399_ACEOF 20400 20401# Transform confdefs.h into two sed scripts, `conftest.defines' and 20402# `conftest.undefs', that substitutes the proper values into 20403# config.h.in to produce config.h. The first handles `#define' 20404# templates, and the second `#undef' templates. 20405# And first: Protect against being on the right side of a sed subst in 20406# config.status. Protect against being in an unquoted here document 20407# in config.status. 20408rm -f conftest.defines conftest.undefs 20409# Using a here document instead of a string reduces the quoting nightmare. 20410# Putting comments in sed scripts is not portable. 20411# 20412# `end' is used to avoid that the second main sed command (meant for 20413# 0-ary CPP macros) applies to n-ary macro definitions. 20414# See the Autoconf documentation for `clear'. 20415cat >confdef2sed.sed <<\_ACEOF 20416s/[\\&,]/\\&/g 20417s,[\\$`],\\&,g 20418t clear 20419: clear 20420s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 20421t end 20422s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 20423: end 20424_ACEOF 20425# If some macros were called several times there might be several times 20426# the same #defines, which is useless. Nevertheless, we may not want to 20427# sort them, since we want the *last* AC-DEFINE to be honored. 20428uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 20429sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 20430rm -f confdef2sed.sed 20431 20432# This sed command replaces #undef with comments. This is necessary, for 20433# example, in the case of _POSIX_SOURCE, which is predefined and required 20434# on some systems where configure will not decide to define it. 20435cat >>conftest.undefs <<\_ACEOF 20436s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 20437_ACEOF 20438 20439# Break up conftest.defines because some shells have a limit on the size 20440# of here documents, and old seds have small limits too (100 cmds). 20441echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 20442echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 20443echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 20444echo ' :' >>$CONFIG_STATUS 20445rm -f conftest.tail 20446while grep . conftest.defines >/dev/null 20447do 20448 # Write a limited-size here document to $tmp/defines.sed. 20449 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 20450 # Speed up: don't consider the non `#define' lines. 20451 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 20452 # Work around the forget-to-reset-the-flag bug. 20453 echo 't clr' >>$CONFIG_STATUS 20454 echo ': clr' >>$CONFIG_STATUS 20455 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 20456 echo 'CEOF 20457 sed -f $tmp/defines.sed $tmp/in >$tmp/out 20458 rm -f $tmp/in 20459 mv $tmp/out $tmp/in 20460' >>$CONFIG_STATUS 20461 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 20462 rm -f conftest.defines 20463 mv conftest.tail conftest.defines 20464done 20465rm -f conftest.defines 20466echo ' fi # grep' >>$CONFIG_STATUS 20467echo >>$CONFIG_STATUS 20468 20469# Break up conftest.undefs because some shells have a limit on the size 20470# of here documents, and old seds have small limits too (100 cmds). 20471echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 20472rm -f conftest.tail 20473while grep . conftest.undefs >/dev/null 20474do 20475 # Write a limited-size here document to $tmp/undefs.sed. 20476 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 20477 # Speed up: don't consider the non `#undef' 20478 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 20479 # Work around the forget-to-reset-the-flag bug. 20480 echo 't clr' >>$CONFIG_STATUS 20481 echo ': clr' >>$CONFIG_STATUS 20482 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 20483 echo 'CEOF 20484 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 20485 rm -f $tmp/in 20486 mv $tmp/out $tmp/in 20487' >>$CONFIG_STATUS 20488 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 20489 rm -f conftest.undefs 20490 mv conftest.tail conftest.undefs 20491done 20492rm -f conftest.undefs 20493 20494cat >>$CONFIG_STATUS <<\_ACEOF 20495 # Let's still pretend it is `configure' which instantiates (i.e., don't 20496 # use $as_me), people would be surprised to read: 20497 # /* config.h. Generated by config.status. */ 20498 if test x"$ac_file" = x-; then 20499 echo "/* Generated by configure. */" >$tmp/config.h 20500 else 20501 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 20502 fi 20503 cat $tmp/in >>$tmp/config.h 20504 rm -f $tmp/in 20505 if test x"$ac_file" != x-; then 20506 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 20507 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 20508echo "$as_me: $ac_file is unchanged" >&6;} 20509 else 20510 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20511$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20512 X"$ac_file" : 'X\(//\)[^/]' \| \ 20513 X"$ac_file" : 'X\(//\)$' \| \ 20514 X"$ac_file" : 'X\(/\)' \| \ 20515 . : '\(.\)' 2>/dev/null || 20516echo X"$ac_file" | 20517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20518 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20519 /^X\(\/\/\)$/{ s//\1/; q; } 20520 /^X\(\/\).*/{ s//\1/; q; } 20521 s/.*/./; q'` 20522 { if $as_mkdir_p; then 20523 mkdir -p "$ac_dir" 20524 else 20525 as_dir="$ac_dir" 20526 as_dirs= 20527 while test ! -d "$as_dir"; do 20528 as_dirs="$as_dir $as_dirs" 20529 as_dir=`(dirname "$as_dir") 2>/dev/null || 20530$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20531 X"$as_dir" : 'X\(//\)[^/]' \| \ 20532 X"$as_dir" : 'X\(//\)$' \| \ 20533 X"$as_dir" : 'X\(/\)' \| \ 20534 . : '\(.\)' 2>/dev/null || 20535echo X"$as_dir" | 20536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20537 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20538 /^X\(\/\/\)$/{ s//\1/; q; } 20539 /^X\(\/\).*/{ s//\1/; q; } 20540 s/.*/./; q'` 20541 done 20542 test ! -n "$as_dirs" || mkdir $as_dirs 20543 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20544echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20545 { (exit 1); exit 1; }; }; } 20546 20547 rm -f $ac_file 20548 mv $tmp/config.h $ac_file 20549 fi 20550 else 20551 cat $tmp/config.h 20552 rm -f $tmp/config.h 20553 fi 20554# Compute $ac_file's index in $config_headers. 20555_am_stamp_count=1 20556for _am_header in $config_headers :; do 20557 case $_am_header in 20558 $ac_file | $ac_file:* ) 20559 break ;; 20560 * ) 20561 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20562 esac 20563done 20564echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 20565$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20566 X$ac_file : 'X\(//\)[^/]' \| \ 20567 X$ac_file : 'X\(//\)$' \| \ 20568 X$ac_file : 'X\(/\)' \| \ 20569 . : '\(.\)' 2>/dev/null || 20570echo X$ac_file | 20571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20572 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20573 /^X\(\/\/\)$/{ s//\1/; q; } 20574 /^X\(\/\).*/{ s//\1/; q; } 20575 s/.*/./; q'`/stamp-h$_am_stamp_count 20576done 20577_ACEOF 20578cat >>$CONFIG_STATUS <<\_ACEOF 20579 20580# 20581# CONFIG_COMMANDS section. 20582# 20583for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 20584 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 20585 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 20586 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 20587$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20588 X"$ac_dest" : 'X\(//\)[^/]' \| \ 20589 X"$ac_dest" : 'X\(//\)$' \| \ 20590 X"$ac_dest" : 'X\(/\)' \| \ 20591 . : '\(.\)' 2>/dev/null || 20592echo X"$ac_dest" | 20593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20594 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20595 /^X\(\/\/\)$/{ s//\1/; q; } 20596 /^X\(\/\).*/{ s//\1/; q; } 20597 s/.*/./; q'` 20598 { if $as_mkdir_p; then 20599 mkdir -p "$ac_dir" 20600 else 20601 as_dir="$ac_dir" 20602 as_dirs= 20603 while test ! -d "$as_dir"; do 20604 as_dirs="$as_dir $as_dirs" 20605 as_dir=`(dirname "$as_dir") 2>/dev/null || 20606$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20607 X"$as_dir" : 'X\(//\)[^/]' \| \ 20608 X"$as_dir" : 'X\(//\)$' \| \ 20609 X"$as_dir" : 'X\(/\)' \| \ 20610 . : '\(.\)' 2>/dev/null || 20611echo X"$as_dir" | 20612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20613 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20614 /^X\(\/\/\)$/{ s//\1/; q; } 20615 /^X\(\/\).*/{ s//\1/; q; } 20616 s/.*/./; q'` 20617 done 20618 test ! -n "$as_dirs" || mkdir $as_dirs 20619 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20620echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20621 { (exit 1); exit 1; }; }; } 20622 20623 ac_builddir=. 20624 20625if test "$ac_dir" != .; then 20626 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20627 # A "../" for each directory in $ac_dir_suffix. 20628 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20629else 20630 ac_dir_suffix= ac_top_builddir= 20631fi 20632 20633case $srcdir in 20634 .) # No --srcdir option. We are building in place. 20635 ac_srcdir=. 20636 if test -z "$ac_top_builddir"; then 20637 ac_top_srcdir=. 20638 else 20639 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20640 fi ;; 20641 [\\/]* | ?:[\\/]* ) # Absolute path. 20642 ac_srcdir=$srcdir$ac_dir_suffix; 20643 ac_top_srcdir=$srcdir ;; 20644 *) # Relative path. 20645 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20646 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20647esac 20648 20649# Do not use `cd foo && pwd` to compute absolute paths, because 20650# the directories may not exist. 20651case `pwd` in 20652.) ac_abs_builddir="$ac_dir";; 20653*) 20654 case "$ac_dir" in 20655 .) ac_abs_builddir=`pwd`;; 20656 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20657 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20658 esac;; 20659esac 20660case $ac_abs_builddir in 20661.) ac_abs_top_builddir=${ac_top_builddir}.;; 20662*) 20663 case ${ac_top_builddir}. in 20664 .) ac_abs_top_builddir=$ac_abs_builddir;; 20665 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20666 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20667 esac;; 20668esac 20669case $ac_abs_builddir in 20670.) ac_abs_srcdir=$ac_srcdir;; 20671*) 20672 case $ac_srcdir in 20673 .) ac_abs_srcdir=$ac_abs_builddir;; 20674 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20675 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20676 esac;; 20677esac 20678case $ac_abs_builddir in 20679.) ac_abs_top_srcdir=$ac_top_srcdir;; 20680*) 20681 case $ac_top_srcdir in 20682 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20683 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20684 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20685 esac;; 20686esac 20687 20688 20689 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 20690echo "$as_me: executing $ac_dest commands" >&6;} 20691 case $ac_dest in 20692 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 20693 # Strip MF so we end up with the name of the file. 20694 mf=`echo "$mf" | sed -e 's/:.*$//'` 20695 # Check whether this is an Automake generated Makefile or not. 20696 # We used to match only the files named `Makefile.in', but 20697 # some people rename them; so instead we look at the file content. 20698 # Grep'ing the first line is not enough: some people post-process 20699 # each Makefile.in and add a new line on top of each file to say so. 20700 # So let's grep whole file. 20701 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 20702 dirpart=`(dirname "$mf") 2>/dev/null || 20703$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20704 X"$mf" : 'X\(//\)[^/]' \| \ 20705 X"$mf" : 'X\(//\)$' \| \ 20706 X"$mf" : 'X\(/\)' \| \ 20707 . : '\(.\)' 2>/dev/null || 20708echo X"$mf" | 20709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20710 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20711 /^X\(\/\/\)$/{ s//\1/; q; } 20712 /^X\(\/\).*/{ s//\1/; q; } 20713 s/.*/./; q'` 20714 else 20715 continue 20716 fi 20717 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 20718 # Extract the definition of DEP_FILES from the Makefile without 20719 # running `make'. 20720 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 20721 test -z "$DEPDIR" && continue 20722 # When using ansi2knr, U may be empty or an underscore; expand it 20723 U=`sed -n -e '/^U = / s///p' < "$mf"` 20724 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 20725 # We invoke sed twice because it is the simplest approach to 20726 # changing $(DEPDIR) to its actual value in the expansion. 20727 for file in `sed -n -e ' 20728 /^DEP_FILES = .*\\\\$/ { 20729 s/^DEP_FILES = // 20730 :loop 20731 s/\\\\$// 20732 p 20733 n 20734 /\\\\$/ b loop 20735 p 20736 } 20737 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 20738 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20739 # Make sure the directory exists. 20740 test -f "$dirpart/$file" && continue 20741 fdir=`(dirname "$file") 2>/dev/null || 20742$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20743 X"$file" : 'X\(//\)[^/]' \| \ 20744 X"$file" : 'X\(//\)$' \| \ 20745 X"$file" : 'X\(/\)' \| \ 20746 . : '\(.\)' 2>/dev/null || 20747echo X"$file" | 20748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20749 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20750 /^X\(\/\/\)$/{ s//\1/; q; } 20751 /^X\(\/\).*/{ s//\1/; q; } 20752 s/.*/./; q'` 20753 { if $as_mkdir_p; then 20754 mkdir -p $dirpart/$fdir 20755 else 20756 as_dir=$dirpart/$fdir 20757 as_dirs= 20758 while test ! -d "$as_dir"; do 20759 as_dirs="$as_dir $as_dirs" 20760 as_dir=`(dirname "$as_dir") 2>/dev/null || 20761$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20762 X"$as_dir" : 'X\(//\)[^/]' \| \ 20763 X"$as_dir" : 'X\(//\)$' \| \ 20764 X"$as_dir" : 'X\(/\)' \| \ 20765 . : '\(.\)' 2>/dev/null || 20766echo X"$as_dir" | 20767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20768 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20769 /^X\(\/\/\)$/{ s//\1/; q; } 20770 /^X\(\/\).*/{ s//\1/; q; } 20771 s/.*/./; q'` 20772 done 20773 test ! -n "$as_dirs" || mkdir $as_dirs 20774 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 20775echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 20776 { (exit 1); exit 1; }; }; } 20777 20778 # echo "creating $dirpart/$file" 20779 echo '# dummy' > "$dirpart/$file" 20780 done 20781done 20782 ;; 20783 esac 20784done 20785_ACEOF 20786 20787cat >>$CONFIG_STATUS <<\_ACEOF 20788 20789{ (exit 0); exit 0; } 20790_ACEOF 20791chmod +x $CONFIG_STATUS 20792ac_clean_files=$ac_clean_files_save 20793 20794 20795# configure is writing to config.log, and then calls config.status. 20796# config.status does its own redirection, appending to config.log. 20797# Unfortunately, on DOS this fails, as config.log is still kept open 20798# by configure, so config.status won't be able to write to it; its 20799# output is simply discarded. So we exec the FD to /dev/null, 20800# effectively closing config.log, so it can be properly (re)opened and 20801# appended to by config.status. When coming back to configure, we 20802# need to make the FD available again. 20803if test "$no_create" != yes; then 20804 ac_cs_success=: 20805 ac_config_status_args= 20806 test "$silent" = yes && 20807 ac_config_status_args="$ac_config_status_args --quiet" 20808 exec 5>/dev/null 20809 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20810 exec 5>>config.log 20811 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20812 # would make configure fail if this is the last instruction. 20813 $ac_cs_success || { (exit 1); exit 1; } 20814fi 20815 20816 20817