1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for sage 0.2.0. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255echo=${ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274$* 275EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 282 283if test -z "$ECHO"; then 284if test "X${echo_test_string+set}" != Xset; then 285# find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if (echo_test_string=`eval $cmd`) 2>/dev/null && 289 echo_test_string=`eval $cmd` && 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 291 then 292 break 293 fi 294 done 295fi 296 297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 299 test "X$echo_testing_string" = "X$echo_test_string"; then 300 : 301else 302 # The Solaris, AIX, and Digital Unix default echo programs unquote 303 # backslashes. This makes it impossible to quote backslashes using 304 # echo "$something" | sed 's/\\/\\\\/g' 305 # 306 # So, first we look for a working echo in the user's PATH. 307 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 echo="$dir/echo" 316 break 317 fi 318 done 319 IFS="$lt_save_ifs" 320 321 if test "X$echo" = Xecho; then 322 # We didn't find a better echo, so look for alternatives. 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 325 test "X$echo_testing_string" = "X$echo_test_string"; then 326 # This shell has a builtin print -r that does the trick. 327 echo='print -r' 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 329 test "X$CONFIG_SHELL" != X/bin/ksh; then 330 # If we have ksh, try running configure again with it. 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 332 export ORIGINAL_CONFIG_SHELL 333 CONFIG_SHELL=/bin/ksh 334 export CONFIG_SHELL 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 336 else 337 # Try using printf. 338 echo='printf %s\n' 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 341 test "X$echo_testing_string" = "X$echo_test_string"; then 342 # Cool, printf works 343 : 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 345 test "X$echo_testing_string" = 'X\t' && 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 347 test "X$echo_testing_string" = "X$echo_test_string"; then 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 349 export CONFIG_SHELL 350 SHELL="$CONFIG_SHELL" 351 export SHELL 352 echo="$CONFIG_SHELL $0 --fallback-echo" 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 echo="$CONFIG_SHELL $0 --fallback-echo" 358 else 359 # maybe with a smaller string... 360 prev=: 361 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 364 then 365 break 366 fi 367 prev="$cmd" 368 done 369 370 if test "$prev" != 'sed 50q "$0"'; then 371 echo_test_string=`eval $prev` 372 export echo_test_string 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 374 else 375 # Oops. We lost completely, so just stick with echo. 376 echo=echo 377 fi 378 fi 379 fi 380 fi 381fi 382fi 383 384# Copy echo and quote the copy suitably for passing to libtool from 385# the Makefile, instead of quoting the original, which is used later. 386ECHO=$echo 387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389fi 390 391 392 393 394tagnames=${tagnames+${tagnames},}CXX 395 396tagnames=${tagnames+${tagnames},}F77 397 398# Name of the host. 399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 400# so uname gets run too. 401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403exec 6>&1 404 405# 406# Initializations. 407# 408ac_default_prefix=/usr/local 409ac_config_libobj_dir=. 410cross_compiling=no 411subdirs= 412MFLAGS= 413MAKEFLAGS= 414SHELL=${CONFIG_SHELL-/bin/sh} 415 416# Maximum number of lines to put in a shell here document. 417# This variable seems obsolete. It should probably be removed, and 418# only ac_max_sed_lines should be used. 419: ${ac_max_here_lines=38} 420 421# Identity of this package. 422PACKAGE_NAME='sage' 423PACKAGE_TARNAME='sage' 424PACKAGE_VERSION='0.2.0' 425PACKAGE_STRING='sage 0.2.0' 426PACKAGE_BUGREPORT='' 427 428# Factoring default headers for most tests. 429ac_includes_default="\ 430#include <stdio.h> 431#if HAVE_SYS_TYPES_H 432# include <sys/types.h> 433#endif 434#if HAVE_SYS_STAT_H 435# include <sys/stat.h> 436#endif 437#if STDC_HEADERS 438# include <stdlib.h> 439# include <stddef.h> 440#else 441# if HAVE_STDLIB_H 442# include <stdlib.h> 443# endif 444#endif 445#if HAVE_STRING_H 446# if !STDC_HEADERS && HAVE_MEMORY_H 447# include <memory.h> 448# endif 449# include <string.h> 450#endif 451#if HAVE_STRINGS_H 452# include <strings.h> 453#endif 454#if HAVE_INTTYPES_H 455# include <inttypes.h> 456#else 457# if HAVE_STDINT_H 458# include <stdint.h> 459# endif 460#endif 461#if HAVE_UNISTD_H 462# include <unistd.h> 463#endif" 464 465ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SAGE_VERSION_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS SAGE_DLL DLLWRAP ac_ct_DLLWRAP BUILD_DLL_TRUE BUILD_DLL_FALSE BUILD_IT SDL_VERSION SDL_CONFIG SDL_CFLAGS SDL_LIBS BUILD_WGL_TRUE BUILD_WGL_FALSE BUILD_GLX_TRUE BUILD_GLX_FALSE SAGE_REQUIRES SAGE_LIBS SAGE_CFLAGS PREFIX LIBOBJS LTLIBOBJS' 466ac_subst_files='' 467 468# Initialize some variables set by options. 469ac_init_help= 470ac_init_version=false 471# The variables have the same names as the options, with 472# dashes changed to underlines. 473cache_file=/dev/null 474exec_prefix=NONE 475no_create= 476no_recursion= 477prefix=NONE 478program_prefix=NONE 479program_suffix=NONE 480program_transform_name=s,x,x, 481silent= 482site= 483srcdir= 484verbose= 485x_includes=NONE 486x_libraries=NONE 487 488# Installation directory options. 489# These are left unexpanded so users can "make install exec_prefix=/foo" 490# and all the variables that are supposed to be based on exec_prefix 491# by default will actually change. 492# Use braces instead of parens because sh, perl, etc. also accept them. 493bindir='${exec_prefix}/bin' 494sbindir='${exec_prefix}/sbin' 495libexecdir='${exec_prefix}/libexec' 496datadir='${prefix}/share' 497sysconfdir='${prefix}/etc' 498sharedstatedir='${prefix}/com' 499localstatedir='${prefix}/var' 500libdir='${exec_prefix}/lib' 501includedir='${prefix}/include' 502oldincludedir='/usr/include' 503infodir='${prefix}/info' 504mandir='${prefix}/man' 505 506ac_prev= 507for ac_option 508do 509 # If the previous option needs an argument, assign it. 510 if test -n "$ac_prev"; then 511 eval "$ac_prev=\$ac_option" 512 ac_prev= 513 continue 514 fi 515 516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 517 518 # Accept the important Cygnus configure options, so we can diagnose typos. 519 520 case $ac_option in 521 522 -bindir | --bindir | --bindi | --bind | --bin | --bi) 523 ac_prev=bindir ;; 524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 525 bindir=$ac_optarg ;; 526 527 -build | --build | --buil | --bui | --bu) 528 ac_prev=build_alias ;; 529 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 530 build_alias=$ac_optarg ;; 531 532 -cache-file | --cache-file | --cache-fil | --cache-fi \ 533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 534 ac_prev=cache_file ;; 535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 537 cache_file=$ac_optarg ;; 538 539 --config-cache | -C) 540 cache_file=config.cache ;; 541 542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 543 ac_prev=datadir ;; 544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 545 | --da=*) 546 datadir=$ac_optarg ;; 547 548 -disable-* | --disable-*) 549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 550 # Reject names that are not valid shell variable names. 551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 553 { (exit 1); exit 1; }; } 554 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 555 eval "enable_$ac_feature=no" ;; 556 557 -enable-* | --enable-*) 558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 559 # Reject names that are not valid shell variable names. 560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 562 { (exit 1); exit 1; }; } 563 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 564 case $ac_option in 565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 566 *) ac_optarg=yes ;; 567 esac 568 eval "enable_$ac_feature='$ac_optarg'" ;; 569 570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 572 | --exec | --exe | --ex) 573 ac_prev=exec_prefix ;; 574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 576 | --exec=* | --exe=* | --ex=*) 577 exec_prefix=$ac_optarg ;; 578 579 -gas | --gas | --ga | --g) 580 # Obsolete; use --with-gas. 581 with_gas=yes ;; 582 583 -help | --help | --hel | --he | -h) 584 ac_init_help=long ;; 585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 586 ac_init_help=recursive ;; 587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 588 ac_init_help=short ;; 589 590 -host | --host | --hos | --ho) 591 ac_prev=host_alias ;; 592 -host=* | --host=* | --hos=* | --ho=*) 593 host_alias=$ac_optarg ;; 594 595 -includedir | --includedir | --includedi | --included | --include \ 596 | --includ | --inclu | --incl | --inc) 597 ac_prev=includedir ;; 598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 599 | --includ=* | --inclu=* | --incl=* | --inc=*) 600 includedir=$ac_optarg ;; 601 602 -infodir | --infodir | --infodi | --infod | --info | --inf) 603 ac_prev=infodir ;; 604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 605 infodir=$ac_optarg ;; 606 607 -libdir | --libdir | --libdi | --libd) 608 ac_prev=libdir ;; 609 -libdir=* | --libdir=* | --libdi=* | --libd=*) 610 libdir=$ac_optarg ;; 611 612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 613 | --libexe | --libex | --libe) 614 ac_prev=libexecdir ;; 615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 616 | --libexe=* | --libex=* | --libe=*) 617 libexecdir=$ac_optarg ;; 618 619 -localstatedir | --localstatedir | --localstatedi | --localstated \ 620 | --localstate | --localstat | --localsta | --localst \ 621 | --locals | --local | --loca | --loc | --lo) 622 ac_prev=localstatedir ;; 623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 626 localstatedir=$ac_optarg ;; 627 628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 629 ac_prev=mandir ;; 630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 631 mandir=$ac_optarg ;; 632 633 -nfp | --nfp | --nf) 634 # Obsolete; use --without-fp. 635 with_fp=no ;; 636 637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 638 | --no-cr | --no-c | -n) 639 no_create=yes ;; 640 641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 643 no_recursion=yes ;; 644 645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 647 | --oldin | --oldi | --old | --ol | --o) 648 ac_prev=oldincludedir ;; 649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 652 oldincludedir=$ac_optarg ;; 653 654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 655 ac_prev=prefix ;; 656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 657 prefix=$ac_optarg ;; 658 659 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 660 | --program-pre | --program-pr | --program-p) 661 ac_prev=program_prefix ;; 662 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 664 program_prefix=$ac_optarg ;; 665 666 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 667 | --program-suf | --program-su | --program-s) 668 ac_prev=program_suffix ;; 669 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 671 program_suffix=$ac_optarg ;; 672 673 -program-transform-name | --program-transform-name \ 674 | --program-transform-nam | --program-transform-na \ 675 | --program-transform-n | --program-transform- \ 676 | --program-transform | --program-transfor \ 677 | --program-transfo | --program-transf \ 678 | --program-trans | --program-tran \ 679 | --progr-tra | --program-tr | --program-t) 680 ac_prev=program_transform_name ;; 681 -program-transform-name=* | --program-transform-name=* \ 682 | --program-transform-nam=* | --program-transform-na=* \ 683 | --program-transform-n=* | --program-transform-=* \ 684 | --program-transform=* | --program-transfor=* \ 685 | --program-transfo=* | --program-transf=* \ 686 | --program-trans=* | --program-tran=* \ 687 | --progr-tra=* | --program-tr=* | --program-t=*) 688 program_transform_name=$ac_optarg ;; 689 690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 691 | -silent | --silent | --silen | --sile | --sil) 692 silent=yes ;; 693 694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 695 ac_prev=sbindir ;; 696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 697 | --sbi=* | --sb=*) 698 sbindir=$ac_optarg ;; 699 700 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 702 | --sharedst | --shareds | --shared | --share | --shar \ 703 | --sha | --sh) 704 ac_prev=sharedstatedir ;; 705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 708 | --sha=* | --sh=*) 709 sharedstatedir=$ac_optarg ;; 710 711 -site | --site | --sit) 712 ac_prev=site ;; 713 -site=* | --site=* | --sit=*) 714 site=$ac_optarg ;; 715 716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 717 ac_prev=srcdir ;; 718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 719 srcdir=$ac_optarg ;; 720 721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 722 | --syscon | --sysco | --sysc | --sys | --sy) 723 ac_prev=sysconfdir ;; 724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 726 sysconfdir=$ac_optarg ;; 727 728 -target | --target | --targe | --targ | --tar | --ta | --t) 729 ac_prev=target_alias ;; 730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 731 target_alias=$ac_optarg ;; 732 733 -v | -verbose | --verbose | --verbos | --verbo | --verb) 734 verbose=yes ;; 735 736 -version | --version | --versio | --versi | --vers | -V) 737 ac_init_version=: ;; 738 739 -with-* | --with-*) 740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 741 # Reject names that are not valid shell variable names. 742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 743 { echo "$as_me: error: invalid package name: $ac_package" >&2 744 { (exit 1); exit 1; }; } 745 ac_package=`echo $ac_package| sed 's/-/_/g'` 746 case $ac_option in 747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 748 *) ac_optarg=yes ;; 749 esac 750 eval "with_$ac_package='$ac_optarg'" ;; 751 752 -without-* | --without-*) 753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 754 # Reject names that are not valid shell variable names. 755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 756 { echo "$as_me: error: invalid package name: $ac_package" >&2 757 { (exit 1); exit 1; }; } 758 ac_package=`echo $ac_package | sed 's/-/_/g'` 759 eval "with_$ac_package=no" ;; 760 761 --x) 762 # Obsolete; use --with-x. 763 with_x=yes ;; 764 765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 766 | --x-incl | --x-inc | --x-in | --x-i) 767 ac_prev=x_includes ;; 768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 770 x_includes=$ac_optarg ;; 771 772 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 774 ac_prev=x_libraries ;; 775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 777 x_libraries=$ac_optarg ;; 778 779 -*) { echo "$as_me: error: unrecognized option: $ac_option 780Try \`$0 --help' for more information." >&2 781 { (exit 1); exit 1; }; } 782 ;; 783 784 *=*) 785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 786 # Reject names that are not valid shell variable names. 787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 789 { (exit 1); exit 1; }; } 790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 791 eval "$ac_envvar='$ac_optarg'" 792 export $ac_envvar ;; 793 794 *) 795 # FIXME: should be removed in autoconf 3.0. 796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 800 ;; 801 802 esac 803done 804 805if test -n "$ac_prev"; then 806 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 807 { echo "$as_me: error: missing argument to $ac_option" >&2 808 { (exit 1); exit 1; }; } 809fi 810 811# Be sure to have absolute paths. 812for ac_var in exec_prefix prefix 813do 814 eval ac_val=$`echo $ac_var` 815 case $ac_val in 816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 818 { (exit 1); exit 1; }; };; 819 esac 820done 821 822# Be sure to have absolute paths. 823for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 824 localstatedir libdir includedir oldincludedir infodir mandir 825do 826 eval ac_val=$`echo $ac_var` 827 case $ac_val in 828 [\\/$]* | ?:[\\/]* ) ;; 829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 830 { (exit 1); exit 1; }; };; 831 esac 832done 833 834# There might be people who depend on the old broken behavior: `$host' 835# used to hold the argument of --host etc. 836# FIXME: To remove some day. 837build=$build_alias 838host=$host_alias 839target=$target_alias 840 841# FIXME: To remove some day. 842if test "x$host_alias" != x; then 843 if test "x$build_alias" = x; then 844 cross_compiling=maybe 845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 846 If a cross compiler is detected then cross compile mode will be used." >&2 847 elif test "x$build_alias" != "x$host_alias"; then 848 cross_compiling=yes 849 fi 850fi 851 852ac_tool_prefix= 853test -n "$host_alias" && ac_tool_prefix=$host_alias- 854 855test "$silent" = yes && exec 6>/dev/null 856 857 858# Find the source files, if location was not specified. 859if test -z "$srcdir"; then 860 ac_srcdir_defaulted=yes 861 # Try the directory containing this script, then its parent. 862 ac_confdir=`(dirname "$0") 2>/dev/null || 863$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 864 X"$0" : 'X\(//\)[^/]' \| \ 865 X"$0" : 'X\(//\)$' \| \ 866 X"$0" : 'X\(/\)' \| \ 867 . : '\(.\)' 2>/dev/null || 868echo X"$0" | 869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 870 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 871 /^X\(\/\/\)$/{ s//\1/; q; } 872 /^X\(\/\).*/{ s//\1/; q; } 873 s/.*/./; q'` 874 srcdir=$ac_confdir 875 if test ! -r $srcdir/$ac_unique_file; then 876 srcdir=.. 877 fi 878else 879 ac_srcdir_defaulted=no 880fi 881if test ! -r $srcdir/$ac_unique_file; then 882 if test "$ac_srcdir_defaulted" = yes; then 883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 884 { (exit 1); exit 1; }; } 885 else 886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 887 { (exit 1); exit 1; }; } 888 fi 889fi 890(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 892 { (exit 1); exit 1; }; } 893srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 894ac_env_build_alias_set=${build_alias+set} 895ac_env_build_alias_value=$build_alias 896ac_cv_env_build_alias_set=${build_alias+set} 897ac_cv_env_build_alias_value=$build_alias 898ac_env_host_alias_set=${host_alias+set} 899ac_env_host_alias_value=$host_alias 900ac_cv_env_host_alias_set=${host_alias+set} 901ac_cv_env_host_alias_value=$host_alias 902ac_env_target_alias_set=${target_alias+set} 903ac_env_target_alias_value=$target_alias 904ac_cv_env_target_alias_set=${target_alias+set} 905ac_cv_env_target_alias_value=$target_alias 906ac_env_CC_set=${CC+set} 907ac_env_CC_value=$CC 908ac_cv_env_CC_set=${CC+set} 909ac_cv_env_CC_value=$CC 910ac_env_CFLAGS_set=${CFLAGS+set} 911ac_env_CFLAGS_value=$CFLAGS 912ac_cv_env_CFLAGS_set=${CFLAGS+set} 913ac_cv_env_CFLAGS_value=$CFLAGS 914ac_env_LDFLAGS_set=${LDFLAGS+set} 915ac_env_LDFLAGS_value=$LDFLAGS 916ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 917ac_cv_env_LDFLAGS_value=$LDFLAGS 918ac_env_CPPFLAGS_set=${CPPFLAGS+set} 919ac_env_CPPFLAGS_value=$CPPFLAGS 920ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 921ac_cv_env_CPPFLAGS_value=$CPPFLAGS 922ac_env_CPP_set=${CPP+set} 923ac_env_CPP_value=$CPP 924ac_cv_env_CPP_set=${CPP+set} 925ac_cv_env_CPP_value=$CPP 926ac_env_CXX_set=${CXX+set} 927ac_env_CXX_value=$CXX 928ac_cv_env_CXX_set=${CXX+set} 929ac_cv_env_CXX_value=$CXX 930ac_env_CXXFLAGS_set=${CXXFLAGS+set} 931ac_env_CXXFLAGS_value=$CXXFLAGS 932ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 933ac_cv_env_CXXFLAGS_value=$CXXFLAGS 934ac_env_CXXCPP_set=${CXXCPP+set} 935ac_env_CXXCPP_value=$CXXCPP 936ac_cv_env_CXXCPP_set=${CXXCPP+set} 937ac_cv_env_CXXCPP_value=$CXXCPP 938ac_env_F77_set=${F77+set} 939ac_env_F77_value=$F77 940ac_cv_env_F77_set=${F77+set} 941ac_cv_env_F77_value=$F77 942ac_env_FFLAGS_set=${FFLAGS+set} 943ac_env_FFLAGS_value=$FFLAGS 944ac_cv_env_FFLAGS_set=${FFLAGS+set} 945ac_cv_env_FFLAGS_value=$FFLAGS 946 947# 948# Report the --help message. 949# 950if test "$ac_init_help" = "long"; then 951 # Omit some internal or obsolete options to make the list less imposing. 952 # This message is too long to be a string in the A/UX 3.1 sh. 953 cat <<_ACEOF 954\`configure' configures sage 0.2.0 to adapt to many kinds of systems. 955 956Usage: $0 [OPTION]... [VAR=VALUE]... 957 958To assign environment variables (e.g., CC, CFLAGS...), specify them as 959VAR=VALUE. See below for descriptions of some of the useful variables. 960 961Defaults for the options are specified in brackets. 962 963Configuration: 964 -h, --help display this help and exit 965 --help=short display options specific to this package 966 --help=recursive display the short help of all the included packages 967 -V, --version display version information and exit 968 -q, --quiet, --silent do not print \`checking...' messages 969 --cache-file=FILE cache test results in FILE [disabled] 970 -C, --config-cache alias for \`--cache-file=config.cache' 971 -n, --no-create do not create output files 972 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 973 974_ACEOF 975 976 cat <<_ACEOF 977Installation directories: 978 --prefix=PREFIX install architecture-independent files in PREFIX 979 [$ac_default_prefix] 980 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 981 [PREFIX] 982 983By default, \`make install' will install all the files in 984\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 985an installation prefix other than \`$ac_default_prefix' using \`--prefix', 986for instance \`--prefix=\$HOME'. 987 988For better control, use the options below. 989 990Fine tuning of the installation directories: 991 --bindir=DIR user executables [EPREFIX/bin] 992 --sbindir=DIR system admin executables [EPREFIX/sbin] 993 --libexecdir=DIR program executables [EPREFIX/libexec] 994 --datadir=DIR read-only architecture-independent data [PREFIX/share] 995 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 996 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 997 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 998 --libdir=DIR object code libraries [EPREFIX/lib] 999 --includedir=DIR C header files [PREFIX/include] 1000 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1001 --infodir=DIR info documentation [PREFIX/info] 1002 --mandir=DIR man documentation [PREFIX/man] 1003_ACEOF 1004 1005 cat <<\_ACEOF 1006 1007Program names: 1008 --program-prefix=PREFIX prepend PREFIX to installed program names 1009 --program-suffix=SUFFIX append SUFFIX to installed program names 1010 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1011 1012X features: 1013 --x-includes=DIR X include files are in DIR 1014 --x-libraries=DIR X library files are in DIR 1015 1016System types: 1017 --build=BUILD configure for building on BUILD [guessed] 1018 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1019 --target=TARGET configure for building compilers for TARGET [HOST] 1020_ACEOF 1021fi 1022 1023if test -n "$ac_init_help"; then 1024 case $ac_init_help in 1025 short | recursive ) echo "Configuration of sage 0.2.0:";; 1026 esac 1027 cat <<\_ACEOF 1028 1029Optional Features: 1030 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1031 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1032 --enable-shared[=PKGS] 1033 build shared libraries [default=yes] 1034 --enable-static[=PKGS] 1035 build static libraries [default=yes] 1036 --enable-fast-install[=PKGS] 1037 optimize for fast installation [default=yes] 1038 --disable-dependency-tracking speeds up one-time build 1039 --enable-dependency-tracking do not reject slow dependency extractors 1040 --disable-libtool-lock avoid locking (might break parallel builds) 1041 --enable-debug enable debug information default=no 1042 --disable-sdltest Do not try to compile and run a test SDL program 1043 1044Optional Packages: 1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1048 --with-pic try to use only PIC/non-PIC objects [default=use 1049 both] 1050 --with-tags[=TAGS] 1051 include additional configurations [automatic] 1052 --with-x use the X Window System 1053 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 1054 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 1055 1056Some influential environment variables: 1057 CC C compiler command 1058 CFLAGS C compiler flags 1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1060 nonstandard directory <lib dir> 1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1062 headers in a nonstandard directory <include dir> 1063 CPP C preprocessor 1064 CXX C++ compiler command 1065 CXXFLAGS C++ compiler flags 1066 CXXCPP C++ preprocessor 1067 F77 Fortran 77 compiler command 1068 FFLAGS Fortran 77 compiler flags 1069 1070Use these variables to override the choices made by `configure' or to help 1071it to find libraries and programs with nonstandard names/locations. 1072 1073_ACEOF 1074fi 1075 1076if test "$ac_init_help" = "recursive"; then 1077 # If there are subdirs, report their specific --help. 1078 ac_popdir=`pwd` 1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1080 test -d $ac_dir || continue 1081 ac_builddir=. 1082 1083if test "$ac_dir" != .; then 1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1085 # A "../" for each directory in $ac_dir_suffix. 1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1087else 1088 ac_dir_suffix= ac_top_builddir= 1089fi 1090 1091case $srcdir in 1092 .) # No --srcdir option. We are building in place. 1093 ac_srcdir=. 1094 if test -z "$ac_top_builddir"; then 1095 ac_top_srcdir=. 1096 else 1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1098 fi ;; 1099 [\\/]* | ?:[\\/]* ) # Absolute path. 1100 ac_srcdir=$srcdir$ac_dir_suffix; 1101 ac_top_srcdir=$srcdir ;; 1102 *) # Relative path. 1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1104 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1105esac 1106 1107# Do not use `cd foo && pwd` to compute absolute paths, because 1108# the directories may not exist. 1109case `pwd` in 1110.) ac_abs_builddir="$ac_dir";; 1111*) 1112 case "$ac_dir" in 1113 .) ac_abs_builddir=`pwd`;; 1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1115 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1116 esac;; 1117esac 1118case $ac_abs_builddir in 1119.) ac_abs_top_builddir=${ac_top_builddir}.;; 1120*) 1121 case ${ac_top_builddir}. in 1122 .) ac_abs_top_builddir=$ac_abs_builddir;; 1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1125 esac;; 1126esac 1127case $ac_abs_builddir in 1128.) ac_abs_srcdir=$ac_srcdir;; 1129*) 1130 case $ac_srcdir in 1131 .) ac_abs_srcdir=$ac_abs_builddir;; 1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1134 esac;; 1135esac 1136case $ac_abs_builddir in 1137.) ac_abs_top_srcdir=$ac_top_srcdir;; 1138*) 1139 case $ac_top_srcdir in 1140 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1143 esac;; 1144esac 1145 1146 cd $ac_dir 1147 # Check for guested configure; otherwise get Cygnus style configure. 1148 if test -f $ac_srcdir/configure.gnu; then 1149 echo 1150 $SHELL $ac_srcdir/configure.gnu --help=recursive 1151 elif test -f $ac_srcdir/configure; then 1152 echo 1153 $SHELL $ac_srcdir/configure --help=recursive 1154 elif test -f $ac_srcdir/configure.ac || 1155 test -f $ac_srcdir/configure.in; then 1156 echo 1157 $ac_configure --help 1158 else 1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1160 fi 1161 cd $ac_popdir 1162 done 1163fi 1164 1165test -n "$ac_init_help" && exit 0 1166if $ac_init_version; then 1167 cat <<\_ACEOF 1168sage configure 0.2.0 1169generated by GNU Autoconf 2.59 1170 1171Copyright (C) 2003 Free Software Foundation, Inc. 1172This configure script is free software; the Free Software Foundation 1173gives unlimited permission to copy, distribute and modify it. 1174_ACEOF 1175 exit 0 1176fi 1177exec 5>config.log 1178cat >&5 <<_ACEOF 1179This file contains any messages produced by compilers while 1180running configure, to aid debugging if configure makes a mistake. 1181 1182It was created by sage $as_me 0.2.0, which was 1183generated by GNU Autoconf 2.59. Invocation command line was 1184 1185 $ $0 $@ 1186 1187_ACEOF 1188{ 1189cat <<_ASUNAME 1190## --------- ## 1191## Platform. ## 1192## --------- ## 1193 1194hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1195uname -m = `(uname -m) 2>/dev/null || echo unknown` 1196uname -r = `(uname -r) 2>/dev/null || echo unknown` 1197uname -s = `(uname -s) 2>/dev/null || echo unknown` 1198uname -v = `(uname -v) 2>/dev/null || echo unknown` 1199 1200/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1201/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1202 1203/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1204/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1205/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1206hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1207/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1208/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1209/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1210 1211_ASUNAME 1212 1213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1214for as_dir in $PATH 1215do 1216 IFS=$as_save_IFS 1217 test -z "$as_dir" && as_dir=. 1218 echo "PATH: $as_dir" 1219done 1220 1221} >&5 1222 1223cat >&5 <<_ACEOF 1224 1225 1226## ----------- ## 1227## Core tests. ## 1228## ----------- ## 1229 1230_ACEOF 1231 1232 1233# Keep a trace of the command line. 1234# Strip out --no-create and --no-recursion so they do not pile up. 1235# Strip out --silent because we don't want to record it for future runs. 1236# Also quote any args containing shell meta-characters. 1237# Make two passes to allow for proper duplicate-argument suppression. 1238ac_configure_args= 1239ac_configure_args0= 1240ac_configure_args1= 1241ac_sep= 1242ac_must_keep_next=false 1243for ac_pass in 1 2 1244do 1245 for ac_arg 1246 do 1247 case $ac_arg in 1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1250 | -silent | --silent | --silen | --sile | --sil) 1251 continue ;; 1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1254 esac 1255 case $ac_pass in 1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1257 2) 1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1259 if test $ac_must_keep_next = true; then 1260 ac_must_keep_next=false # Got value, back to normal. 1261 else 1262 case $ac_arg in 1263 *=* | --config-cache | -C | -disable-* | --disable-* \ 1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1266 | -with-* | --with-* | -without-* | --without-* | --x) 1267 case "$ac_configure_args0 " in 1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1269 esac 1270 ;; 1271 -* ) ac_must_keep_next=true ;; 1272 esac 1273 fi 1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1275 # Get rid of the leading space. 1276 ac_sep=" " 1277 ;; 1278 esac 1279 done 1280done 1281$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1282$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1283 1284# When interrupted or exit'd, cleanup temporary files, and complete 1285# config.log. We remove comments because anyway the quotes in there 1286# would cause problems or look ugly. 1287# WARNING: Be sure not to use single quotes in there, as some shells, 1288# such as our DU 5.0 friend, will then `close' the trap. 1289trap 'exit_status=$? 1290 # Save into config.log some information that might help in debugging. 1291 { 1292 echo 1293 1294 cat <<\_ASBOX 1295## ---------------- ## 1296## Cache variables. ## 1297## ---------------- ## 1298_ASBOX 1299 echo 1300 # The following way of writing the cache mishandles newlines in values, 1301{ 1302 (set) 2>&1 | 1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1304 *ac_space=\ *) 1305 sed -n \ 1306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1308 ;; 1309 *) 1310 sed -n \ 1311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1312 ;; 1313 esac; 1314} 1315 echo 1316 1317 cat <<\_ASBOX 1318## ----------------- ## 1319## Output variables. ## 1320## ----------------- ## 1321_ASBOX 1322 echo 1323 for ac_var in $ac_subst_vars 1324 do 1325 eval ac_val=$`echo $ac_var` 1326 echo "$ac_var='"'"'$ac_val'"'"'" 1327 done | sort 1328 echo 1329 1330 if test -n "$ac_subst_files"; then 1331 cat <<\_ASBOX 1332## ------------- ## 1333## Output files. ## 1334## ------------- ## 1335_ASBOX 1336 echo 1337 for ac_var in $ac_subst_files 1338 do 1339 eval ac_val=$`echo $ac_var` 1340 echo "$ac_var='"'"'$ac_val'"'"'" 1341 done | sort 1342 echo 1343 fi 1344 1345 if test -s confdefs.h; then 1346 cat <<\_ASBOX 1347## ----------- ## 1348## confdefs.h. ## 1349## ----------- ## 1350_ASBOX 1351 echo 1352 sed "/^$/d" confdefs.h | sort 1353 echo 1354 fi 1355 test "$ac_signal" != 0 && 1356 echo "$as_me: caught signal $ac_signal" 1357 echo "$as_me: exit $exit_status" 1358 } >&5 1359 rm -f core *.core && 1360 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1361 exit $exit_status 1362 ' 0 1363for ac_signal in 1 2 13 15; do 1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1365done 1366ac_signal=0 1367 1368# confdefs.h avoids OS command line length limits that DEFS can exceed. 1369rm -rf conftest* confdefs.h 1370# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1371echo >confdefs.h 1372 1373# Predefined preprocessor variables. 1374 1375cat >>confdefs.h <<_ACEOF 1376#define PACKAGE_NAME "$PACKAGE_NAME" 1377_ACEOF 1378 1379 1380cat >>confdefs.h <<_ACEOF 1381#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1382_ACEOF 1383 1384 1385cat >>confdefs.h <<_ACEOF 1386#define PACKAGE_VERSION "$PACKAGE_VERSION" 1387_ACEOF 1388 1389 1390cat >>confdefs.h <<_ACEOF 1391#define PACKAGE_STRING "$PACKAGE_STRING" 1392_ACEOF 1393 1394 1395cat >>confdefs.h <<_ACEOF 1396#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1397_ACEOF 1398 1399 1400# Let the site file select an alternate cache file if it wants to. 1401# Prefer explicitly selected file to automatically selected ones. 1402if test -z "$CONFIG_SITE"; then 1403 if test "x$prefix" != xNONE; then 1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1405 else 1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1407 fi 1408fi 1409for ac_site_file in $CONFIG_SITE; do 1410 if test -r "$ac_site_file"; then 1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1412echo "$as_me: loading site script $ac_site_file" >&6;} 1413 sed 's/^/| /' "$ac_site_file" >&5 1414 . "$ac_site_file" 1415 fi 1416done 1417 1418if test -r "$cache_file"; then 1419 # Some versions of bash will fail to source /dev/null (special 1420 # files actually), so we avoid doing that. 1421 if test -f "$cache_file"; then 1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1423echo "$as_me: loading cache $cache_file" >&6;} 1424 case $cache_file in 1425 [\\/]* | ?:[\\/]* ) . $cache_file;; 1426 *) . ./$cache_file;; 1427 esac 1428 fi 1429else 1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1431echo "$as_me: creating cache $cache_file" >&6;} 1432 >$cache_file 1433fi 1434 1435# Check that the precious variables saved in the cache have kept the same 1436# value. 1437ac_cache_corrupted=false 1438for ac_var in `(set) 2>&1 | 1439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1440 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1441 eval ac_new_set=\$ac_env_${ac_var}_set 1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1443 eval ac_new_val="\$ac_env_${ac_var}_value" 1444 case $ac_old_set,$ac_new_set in 1445 set,) 1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1447echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1448 ac_cache_corrupted=: ;; 1449 ,set) 1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1451echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1452 ac_cache_corrupted=: ;; 1453 ,);; 1454 *) 1455 if test "x$ac_old_val" != "x$ac_new_val"; then 1456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1457echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1459echo "$as_me: former value: $ac_old_val" >&2;} 1460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1461echo "$as_me: current value: $ac_new_val" >&2;} 1462 ac_cache_corrupted=: 1463 fi;; 1464 esac 1465 # Pass precious variables to config.status. 1466 if test "$ac_new_set" = set; then 1467 case $ac_new_val in 1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1470 *) ac_arg=$ac_var=$ac_new_val ;; 1471 esac 1472 case " $ac_configure_args " in 1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1475 esac 1476 fi 1477done 1478if $ac_cache_corrupted; then 1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1480echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1482echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1483 { (exit 1); exit 1; }; } 1484fi 1485 1486ac_ext=c 1487ac_cpp='$CPP $CPPFLAGS' 1488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1490ac_compiler_gnu=$ac_cv_c_compiler_gnu 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 ac_config_headers="$ac_config_headers config.h" 1519 1520 1521ac_aux_dir= 1522for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1523 if test -f $ac_dir/install-sh; then 1524 ac_aux_dir=$ac_dir 1525 ac_install_sh="$ac_aux_dir/install-sh -c" 1526 break 1527 elif test -f $ac_dir/install.sh; then 1528 ac_aux_dir=$ac_dir 1529 ac_install_sh="$ac_aux_dir/install.sh -c" 1530 break 1531 elif test -f $ac_dir/shtool; then 1532 ac_aux_dir=$ac_dir 1533 ac_install_sh="$ac_aux_dir/shtool install -c" 1534 break 1535 fi 1536done 1537if test -z "$ac_aux_dir"; then 1538 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1539echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1540 { (exit 1); exit 1; }; } 1541fi 1542ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1543ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1544ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1545 1546# Make sure we can run config.sub. 1547$ac_config_sub sun4 >/dev/null 2>&1 || 1548 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1549echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1550 { (exit 1); exit 1; }; } 1551 1552echo "$as_me:$LINENO: checking build system type" >&5 1553echo $ECHO_N "checking build system type... $ECHO_C" >&6 1554if test "${ac_cv_build+set}" = set; then 1555 echo $ECHO_N "(cached) $ECHO_C" >&6 1556else 1557 ac_cv_build_alias=$build_alias 1558test -z "$ac_cv_build_alias" && 1559 ac_cv_build_alias=`$ac_config_guess` 1560test -z "$ac_cv_build_alias" && 1561 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1562echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1563 { (exit 1); exit 1; }; } 1564ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1566echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1567 { (exit 1); exit 1; }; } 1568 1569fi 1570echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1571echo "${ECHO_T}$ac_cv_build" >&6 1572build=$ac_cv_build 1573build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1574build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1575build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1576 1577 1578echo "$as_me:$LINENO: checking host system type" >&5 1579echo $ECHO_N "checking host system type... $ECHO_C" >&6 1580if test "${ac_cv_host+set}" = set; then 1581 echo $ECHO_N "(cached) $ECHO_C" >&6 1582else 1583 ac_cv_host_alias=$host_alias 1584test -z "$ac_cv_host_alias" && 1585 ac_cv_host_alias=$ac_cv_build_alias 1586ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1588echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1589 { (exit 1); exit 1; }; } 1590 1591fi 1592echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1593echo "${ECHO_T}$ac_cv_host" >&6 1594host=$ac_cv_host 1595host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1596host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1597host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1598 1599 1600echo "$as_me:$LINENO: checking target system type" >&5 1601echo $ECHO_N "checking target system type... $ECHO_C" >&6 1602if test "${ac_cv_target+set}" = set; then 1603 echo $ECHO_N "(cached) $ECHO_C" >&6 1604else 1605 ac_cv_target_alias=$target_alias 1606test "x$ac_cv_target_alias" = "x" && 1607 ac_cv_target_alias=$ac_cv_host_alias 1608ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1610echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1611 { (exit 1); exit 1; }; } 1612 1613fi 1614echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1615echo "${ECHO_T}$ac_cv_target" >&6 1616target=$ac_cv_target 1617target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1618target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1619target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1620 1621 1622# The aliases save the names the user supplied, while $host etc. 1623# will get canonicalized. 1624test -n "$target_alias" && 1625 test "$program_prefix$program_suffix$program_transform_name" = \ 1626 NONENONEs,x,x, && 1627 program_prefix=${target_alias}- 1628 1629SAGE_CURRENT=2 1630SAGE_REVISION=0 1631SAGE_AGE=0 1632SAGE_VERSION_INFO=$SAGE_CURRENT:$SAGE_REVISION:$SAGE_AGE 1633 1634 1635 1636SAGE_REQUIRES="" 1637 1638am__api_version="1.9" 1639# Find a good install program. We prefer a C program (faster), 1640# so one script is as good as another. But avoid the broken or 1641# incompatible versions: 1642# SysV /etc/install, /usr/sbin/install 1643# SunOS /usr/etc/install 1644# IRIX /sbin/install 1645# AIX /bin/install 1646# AmigaOS /C/install, which installs bootblocks on floppy discs 1647# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1648# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1649# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1650# OS/2's system install, which has a completely different semantic 1651# ./install, which can be erroneously created by make from ./install.sh. 1652echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1653echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1654if test -z "$INSTALL"; then 1655if test "${ac_cv_path_install+set}" = set; then 1656 echo $ECHO_N "(cached) $ECHO_C" >&6 1657else 1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1659for as_dir in $PATH 1660do 1661 IFS=$as_save_IFS 1662 test -z "$as_dir" && as_dir=. 1663 # Account for people who put trailing slashes in PATH elements. 1664case $as_dir/ in 1665 ./ | .// | /cC/* | \ 1666 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1667 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1668 /usr/ucb/* ) ;; 1669 *) 1670 # OSF1 and SCO ODT 3.0 have their own names for install. 1671 # Don't use installbsd from OSF since it installs stuff as root 1672 # by default. 1673 for ac_prog in ginstall scoinst install; do 1674 for ac_exec_ext in '' $ac_executable_extensions; do 1675 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1676 if test $ac_prog = install && 1677 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1678 # AIX install. It has an incompatible calling convention. 1679 : 1680 elif test $ac_prog = install && 1681 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1682 # program-specific install script used by HP pwplus--don't use. 1683 : 1684 else 1685 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1686 break 3 1687 fi 1688 fi 1689 done 1690 done 1691 ;; 1692esac 1693done 1694 1695 1696fi 1697 if test "${ac_cv_path_install+set}" = set; then 1698 INSTALL=$ac_cv_path_install 1699 else 1700 # As a last resort, use the slow shell script. We don't cache a 1701 # path for INSTALL within a source directory, because that will 1702 # break other packages using the cache if that directory is 1703 # removed, or if the path is relative. 1704 INSTALL=$ac_install_sh 1705 fi 1706fi 1707echo "$as_me:$LINENO: result: $INSTALL" >&5 1708echo "${ECHO_T}$INSTALL" >&6 1709 1710# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1711# It thinks the first close brace ends the variable substitution. 1712test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1713 1714test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1715 1716test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1717 1718echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1719echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1720# Just in case 1721sleep 1 1722echo timestamp > conftest.file 1723# Do `set' in a subshell so we don't clobber the current shell's 1724# arguments. Must try -L first in case configure is actually a 1725# symlink; some systems play weird games with the mod time of symlinks 1726# (eg FreeBSD returns the mod time of the symlink's containing 1727# directory). 1728if ( 1729 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1730 if test "$*" = "X"; then 1731 # -L didn't work. 1732 set X `ls -t $srcdir/configure conftest.file` 1733 fi 1734 rm -f conftest.file 1735 if test "$*" != "X $srcdir/configure conftest.file" \ 1736 && test "$*" != "X conftest.file $srcdir/configure"; then 1737 1738 # If neither matched, then we have a broken ls. This can happen 1739 # if, for instance, CONFIG_SHELL is bash and it inherits a 1740 # broken ls alias from the environment. This has actually 1741 # happened. Such a system could not be considered "sane". 1742 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1743alias in your environment" >&5 1744echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1745alias in your environment" >&2;} 1746 { (exit 1); exit 1; }; } 1747 fi 1748 1749 test "$2" = conftest.file 1750 ) 1751then 1752 # Ok. 1753 : 1754else 1755 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1756Check your system clock" >&5 1757echo "$as_me: error: newly created file is older than distributed files! 1758Check your system clock" >&2;} 1759 { (exit 1); exit 1; }; } 1760fi 1761echo "$as_me:$LINENO: result: yes" >&5 1762echo "${ECHO_T}yes" >&6 1763test "$program_prefix" != NONE && 1764 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1765# Use a double $ so make ignores it. 1766test "$program_suffix" != NONE && 1767 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1768# Double any \ or $. echo might interpret backslashes. 1769# By default was `s,x,x', remove it if useless. 1770cat <<\_ACEOF >conftest.sed 1771s/[\\$]/&&/g;s/;s,x,x,$// 1772_ACEOF 1773program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1774rm conftest.sed 1775 1776# expand $ac_aux_dir to an absolute path 1777am_aux_dir=`cd $ac_aux_dir && pwd` 1778 1779test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1780# Use eval to expand $SHELL 1781if eval "$MISSING --run true"; then 1782 am_missing_run="$MISSING --run " 1783else 1784 am_missing_run= 1785 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1786echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1787fi 1788 1789if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1790 # We used to keeping the `.' as first argument, in order to 1791 # allow $(mkdir_p) to be used without argument. As in 1792 # $(mkdir_p) $(somedir) 1793 # where $(somedir) is conditionally defined. However this is wrong 1794 # for two reasons: 1795 # 1. if the package is installed by a user who cannot write `.' 1796 # make install will fail, 1797 # 2. the above comment should most certainly read 1798 # $(mkdir_p) $(DESTDIR)$(somedir) 1799 # so it does not work when $(somedir) is undefined and 1800 # $(DESTDIR) is not. 1801 # To support the latter case, we have to write 1802 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1803 # so the `.' trick is pointless. 1804 mkdir_p='mkdir -p --' 1805else 1806 # On NextStep and OpenStep, the `mkdir' command does not 1807 # recognize any option. It will interpret all options as 1808 # directories to create, and then abort because `.' already 1809 # exists. 1810 for d in ./-p ./--version; 1811 do 1812 test -d $d && rmdir $d 1813 done 1814 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1815 if test -f "$ac_aux_dir/mkinstalldirs"; then 1816 mkdir_p='$(mkinstalldirs)' 1817 else 1818 mkdir_p='$(install_sh) -d' 1819 fi 1820fi 1821 1822for ac_prog in gawk mawk nawk awk 1823do 1824 # Extract the first word of "$ac_prog", so it can be a program name with args. 1825set dummy $ac_prog; ac_word=$2 1826echo "$as_me:$LINENO: checking for $ac_word" >&5 1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1828if test "${ac_cv_prog_AWK+set}" = set; then 1829 echo $ECHO_N "(cached) $ECHO_C" >&6 1830else 1831 if test -n "$AWK"; then 1832 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1833else 1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1835for as_dir in $PATH 1836do 1837 IFS=$as_save_IFS 1838 test -z "$as_dir" && as_dir=. 1839 for ac_exec_ext in '' $ac_executable_extensions; do 1840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1841 ac_cv_prog_AWK="$ac_prog" 1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1843 break 2 1844 fi 1845done 1846done 1847 1848fi 1849fi 1850AWK=$ac_cv_prog_AWK 1851if test -n "$AWK"; then 1852 echo "$as_me:$LINENO: result: $AWK" >&5 1853echo "${ECHO_T}$AWK" >&6 1854else 1855 echo "$as_me:$LINENO: result: no" >&5 1856echo "${ECHO_T}no" >&6 1857fi 1858 1859 test -n "$AWK" && break 1860done 1861 1862echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1863echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1864set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1865if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1866 echo $ECHO_N "(cached) $ECHO_C" >&6 1867else 1868 cat >conftest.make <<\_ACEOF 1869all: 1870 @echo 'ac_maketemp="$(MAKE)"' 1871_ACEOF 1872# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1873eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1874if test -n "$ac_maketemp"; then 1875 eval ac_cv_prog_make_${ac_make}_set=yes 1876else 1877 eval ac_cv_prog_make_${ac_make}_set=no 1878fi 1879rm -f conftest.make 1880fi 1881if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1882 echo "$as_me:$LINENO: result: yes" >&5 1883echo "${ECHO_T}yes" >&6 1884 SET_MAKE= 1885else 1886 echo "$as_me:$LINENO: result: no" >&5 1887echo "${ECHO_T}no" >&6 1888 SET_MAKE="MAKE=${MAKE-make}" 1889fi 1890 1891rm -rf .tst 2>/dev/null 1892mkdir .tst 2>/dev/null 1893if test -d .tst; then 1894 am__leading_dot=. 1895else 1896 am__leading_dot=_ 1897fi 1898rmdir .tst 2>/dev/null 1899 1900# test to see if srcdir already configured 1901if test "`cd $srcdir && pwd`" != "`pwd`" && 1902 test -f $srcdir/config.status; then 1903 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1904echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1905 { (exit 1); exit 1; }; } 1906fi 1907 1908# test whether we have cygpath 1909if test -z "$CYGPATH_W"; then 1910 if (cygpath --version) >/dev/null 2>/dev/null; then 1911 CYGPATH_W='cygpath -w' 1912 else 1913 CYGPATH_W=echo 1914 fi 1915fi 1916 1917 1918# Define the identity of the package. 1919 PACKAGE='sage' 1920 VERSION='0.2.0' 1921 1922 1923cat >>confdefs.h <<_ACEOF 1924#define PACKAGE "$PACKAGE" 1925_ACEOF 1926 1927 1928cat >>confdefs.h <<_ACEOF 1929#define VERSION "$VERSION" 1930_ACEOF 1931 1932# Some tools Automake needs. 1933 1934ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1935 1936 1937AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1938 1939 1940AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1941 1942 1943AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1944 1945 1946MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1947 1948install_sh=${install_sh-"$am_aux_dir/install-sh"} 1949 1950# Installed binaries are usually stripped using `strip' when the user 1951# run `make install-strip'. However `strip' might not be the right 1952# tool to use in cross-compilation environments, therefore Automake 1953# will honor the `STRIP' environment variable to overrule this program. 1954if test "$cross_compiling" != no; then 1955 if test -n "$ac_tool_prefix"; then 1956 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1957set dummy ${ac_tool_prefix}strip; ac_word=$2 1958echo "$as_me:$LINENO: checking for $ac_word" >&5 1959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1960if test "${ac_cv_prog_STRIP+set}" = set; then 1961 echo $ECHO_N "(cached) $ECHO_C" >&6 1962else 1963 if test -n "$STRIP"; then 1964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1965else 1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1967for as_dir in $PATH 1968do 1969 IFS=$as_save_IFS 1970 test -z "$as_dir" && as_dir=. 1971 for ac_exec_ext in '' $ac_executable_extensions; do 1972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1973 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1975 break 2 1976 fi 1977done 1978done 1979 1980fi 1981fi 1982STRIP=$ac_cv_prog_STRIP 1983if test -n "$STRIP"; then 1984 echo "$as_me:$LINENO: result: $STRIP" >&5 1985echo "${ECHO_T}$STRIP" >&6 1986else 1987 echo "$as_me:$LINENO: result: no" >&5 1988echo "${ECHO_T}no" >&6 1989fi 1990 1991fi 1992if test -z "$ac_cv_prog_STRIP"; then 1993 ac_ct_STRIP=$STRIP 1994 # Extract the first word of "strip", so it can be a program name with args. 1995set dummy strip; ac_word=$2 1996echo "$as_me:$LINENO: checking for $ac_word" >&5 1997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1998if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1999 echo $ECHO_N "(cached) $ECHO_C" >&6 2000else 2001 if test -n "$ac_ct_STRIP"; then 2002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2003else 2004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2005for as_dir in $PATH 2006do 2007 IFS=$as_save_IFS 2008 test -z "$as_dir" && as_dir=. 2009 for ac_exec_ext in '' $ac_executable_extensions; do 2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2011 ac_cv_prog_ac_ct_STRIP="strip" 2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2013 break 2 2014 fi 2015done 2016done 2017 2018 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 2019fi 2020fi 2021ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2022if test -n "$ac_ct_STRIP"; then 2023 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2024echo "${ECHO_T}$ac_ct_STRIP" >&6 2025else 2026 echo "$as_me:$LINENO: result: no" >&5 2027echo "${ECHO_T}no" >&6 2028fi 2029 2030 STRIP=$ac_ct_STRIP 2031else 2032 STRIP="$ac_cv_prog_STRIP" 2033fi 2034 2035fi 2036INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2037 2038# We need awk for the "check" target. The system "awk" is bad on 2039# some platforms. 2040# Always define AMTAR for backward compatibility. 2041 2042AMTAR=${AMTAR-"${am_missing_run}tar"} 2043 2044am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2045 2046 2047 2048 2049 2050 2051 2052 2053# Check whether --enable-shared or --disable-shared was given. 2054if test "${enable_shared+set}" = set; then 2055 enableval="$enable_shared" 2056 p=${PACKAGE-default} 2057 case $enableval in 2058 yes) enable_shared=yes ;; 2059 no) enable_shared=no ;; 2060 *) 2061 enable_shared=no 2062 # Look at the argument we got. We use all the common list separators. 2063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2064 for pkg in $enableval; do 2065 IFS="$lt_save_ifs" 2066 if test "X$pkg" = "X$p"; then 2067 enable_shared=yes 2068 fi 2069 done 2070 IFS="$lt_save_ifs" 2071 ;; 2072 esac 2073else 2074 enable_shared=yes 2075fi; 2076 2077# Check whether --enable-static or --disable-static was given. 2078if test "${enable_static+set}" = set; then 2079 enableval="$enable_static" 2080 p=${PACKAGE-default} 2081 case $enableval in 2082 yes) enable_static=yes ;; 2083 no) enable_static=no ;; 2084 *) 2085 enable_static=no 2086 # Look at the argument we got. We use all the common list separators. 2087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2088 for pkg in $enableval; do 2089 IFS="$lt_save_ifs" 2090 if test "X$pkg" = "X$p"; then 2091 enable_static=yes 2092 fi 2093 done 2094 IFS="$lt_save_ifs" 2095 ;; 2096 esac 2097else 2098 enable_static=yes 2099fi; 2100 2101# Check whether --enable-fast-install or --disable-fast-install was given. 2102if test "${enable_fast_install+set}" = set; then 2103 enableval="$enable_fast_install" 2104 p=${PACKAGE-default} 2105 case $enableval in 2106 yes) enable_fast_install=yes ;; 2107 no) enable_fast_install=no ;; 2108 *) 2109 enable_fast_install=no 2110 # Look at the argument we got. We use all the common list separators. 2111 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2112 for pkg in $enableval; do 2113 IFS="$lt_save_ifs" 2114 if test "X$pkg" = "X$p"; then 2115 enable_fast_install=yes 2116 fi 2117 done 2118 IFS="$lt_save_ifs" 2119 ;; 2120 esac 2121else 2122 enable_fast_install=yes 2123fi; 2124 2125DEPDIR="${am__leading_dot}deps" 2126 2127 ac_config_commands="$ac_config_commands depfiles" 2128 2129 2130am_make=${MAKE-make} 2131cat > confinc << 'END' 2132am__doit: 2133 @echo done 2134.PHONY: am__doit 2135END 2136# If we don't find an include directive, just comment out the code. 2137echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2138echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2139am__include="#" 2140am__quote= 2141_am_result=none 2142# First try GNU make style include. 2143echo "include confinc" > confmf 2144# We grep out `Entering directory' and `Leaving directory' 2145# messages which can occur if `w' ends up in MAKEFLAGS. 2146# In particular we don't look at `^make:' because GNU make might 2147# be invoked under some other name (usually "gmake"), in which 2148# case it prints its new name instead of `make'. 2149if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2150 am__include=include 2151 am__quote= 2152 _am_result=GNU 2153fi 2154# Now try BSD make style include. 2155if test "$am__include" = "#"; then 2156 echo '.include "confinc"' > confmf 2157 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2158 am__include=.include 2159 am__quote="\"" 2160 _am_result=BSD 2161 fi 2162fi 2163 2164 2165echo "$as_me:$LINENO: result: $_am_result" >&5 2166echo "${ECHO_T}$_am_result" >&6 2167rm -f confinc confmf 2168 2169# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2170if test "${enable_dependency_tracking+set}" = set; then 2171 enableval="$enable_dependency_tracking" 2172 2173fi; 2174if test "x$enable_dependency_tracking" != xno; then 2175 am_depcomp="$ac_aux_dir/depcomp" 2176 AMDEPBACKSLASH='\' 2177fi 2178 2179 2180if test "x$enable_dependency_tracking" != xno; then 2181 AMDEP_TRUE= 2182 AMDEP_FALSE='#' 2183else 2184 AMDEP_TRUE='#' 2185 AMDEP_FALSE= 2186fi 2187 2188 2189 2190ac_ext=c 2191ac_cpp='$CPP $CPPFLAGS' 2192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2194ac_compiler_gnu=$ac_cv_c_compiler_gnu 2195if test -n "$ac_tool_prefix"; then 2196 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2197set dummy ${ac_tool_prefix}gcc; ac_word=$2 2198echo "$as_me:$LINENO: checking for $ac_word" >&5 2199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2200if test "${ac_cv_prog_CC+set}" = set; then 2201 echo $ECHO_N "(cached) $ECHO_C" >&6 2202else 2203 if test -n "$CC"; then 2204 ac_cv_prog_CC="$CC" # Let the user override the test. 2205else 2206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2207for as_dir in $PATH 2208do 2209 IFS=$as_save_IFS 2210 test -z "$as_dir" && as_dir=. 2211 for ac_exec_ext in '' $ac_executable_extensions; do 2212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2213 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2215 break 2 2216 fi 2217done 2218done 2219 2220fi 2221fi 2222CC=$ac_cv_prog_CC 2223if test -n "$CC"; then 2224 echo "$as_me:$LINENO: result: $CC" >&5 2225echo "${ECHO_T}$CC" >&6 2226else 2227 echo "$as_me:$LINENO: result: no" >&5 2228echo "${ECHO_T}no" >&6 2229fi 2230 2231fi 2232if test -z "$ac_cv_prog_CC"; then 2233 ac_ct_CC=$CC 2234 # Extract the first word of "gcc", so it can be a program name with args. 2235set dummy gcc; ac_word=$2 2236echo "$as_me:$LINENO: checking for $ac_word" >&5 2237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2238if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2239 echo $ECHO_N "(cached) $ECHO_C" >&6 2240else 2241 if test -n "$ac_ct_CC"; then 2242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2243else 2244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2245for as_dir in $PATH 2246do 2247 IFS=$as_save_IFS 2248 test -z "$as_dir" && as_dir=. 2249 for ac_exec_ext in '' $ac_executable_extensions; do 2250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2251 ac_cv_prog_ac_ct_CC="gcc" 2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2253 break 2 2254 fi 2255done 2256done 2257 2258fi 2259fi 2260ac_ct_CC=$ac_cv_prog_ac_ct_CC 2261if test -n "$ac_ct_CC"; then 2262 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2263echo "${ECHO_T}$ac_ct_CC" >&6 2264else 2265 echo "$as_me:$LINENO: result: no" >&5 2266echo "${ECHO_T}no" >&6 2267fi 2268 2269 CC=$ac_ct_CC 2270else 2271 CC="$ac_cv_prog_CC" 2272fi 2273 2274if test -z "$CC"; then 2275 if test -n "$ac_tool_prefix"; then 2276 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2277set dummy ${ac_tool_prefix}cc; ac_word=$2 2278echo "$as_me:$LINENO: checking for $ac_word" >&5 2279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2280if test "${ac_cv_prog_CC+set}" = set; then 2281 echo $ECHO_N "(cached) $ECHO_C" >&6 2282else 2283 if test -n "$CC"; then 2284 ac_cv_prog_CC="$CC" # Let the user override the test. 2285else 2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2287for as_dir in $PATH 2288do 2289 IFS=$as_save_IFS 2290 test -z "$as_dir" && as_dir=. 2291 for ac_exec_ext in '' $ac_executable_extensions; do 2292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2293 ac_cv_prog_CC="${ac_tool_prefix}cc" 2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2295 break 2 2296 fi 2297done 2298done 2299 2300fi 2301fi 2302CC=$ac_cv_prog_CC 2303if test -n "$CC"; then 2304 echo "$as_me:$LINENO: result: $CC" >&5 2305echo "${ECHO_T}$CC" >&6 2306else 2307 echo "$as_me:$LINENO: result: no" >&5 2308echo "${ECHO_T}no" >&6 2309fi 2310 2311fi 2312if test -z "$ac_cv_prog_CC"; then 2313 ac_ct_CC=$CC 2314 # Extract the first word of "cc", so it can be a program name with args. 2315set dummy cc; ac_word=$2 2316echo "$as_me:$LINENO: checking for $ac_word" >&5 2317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2318if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2319 echo $ECHO_N "(cached) $ECHO_C" >&6 2320else 2321 if test -n "$ac_ct_CC"; then 2322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2323else 2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2325for as_dir in $PATH 2326do 2327 IFS=$as_save_IFS 2328 test -z "$as_dir" && as_dir=. 2329 for ac_exec_ext in '' $ac_executable_extensions; do 2330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2331 ac_cv_prog_ac_ct_CC="cc" 2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2333 break 2 2334 fi 2335done 2336done 2337 2338fi 2339fi 2340ac_ct_CC=$ac_cv_prog_ac_ct_CC 2341if test -n "$ac_ct_CC"; then 2342 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2343echo "${ECHO_T}$ac_ct_CC" >&6 2344else 2345 echo "$as_me:$LINENO: result: no" >&5 2346echo "${ECHO_T}no" >&6 2347fi 2348 2349 CC=$ac_ct_CC 2350else 2351 CC="$ac_cv_prog_CC" 2352fi 2353 2354fi 2355if test -z "$CC"; then 2356 # Extract the first word of "cc", so it can be a program name with args. 2357set dummy cc; ac_word=$2 2358echo "$as_me:$LINENO: checking for $ac_word" >&5 2359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2360if test "${ac_cv_prog_CC+set}" = set; then 2361 echo $ECHO_N "(cached) $ECHO_C" >&6 2362else 2363 if test -n "$CC"; then 2364 ac_cv_prog_CC="$CC" # Let the user override the test. 2365else 2366 ac_prog_rejected=no 2367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2368for as_dir in $PATH 2369do 2370 IFS=$as_save_IFS 2371 test -z "$as_dir" && as_dir=. 2372 for ac_exec_ext in '' $ac_executable_extensions; do 2373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2374 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2375 ac_prog_rejected=yes 2376 continue 2377 fi 2378 ac_cv_prog_CC="cc" 2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2380 break 2 2381 fi 2382done 2383done 2384 2385if test $ac_prog_rejected = yes; then 2386 # We found a bogon in the path, so make sure we never use it. 2387 set dummy $ac_cv_prog_CC 2388 shift 2389 if test $# != 0; then 2390 # We chose a different compiler from the bogus one. 2391 # However, it has the same basename, so the bogon will be chosen 2392 # first if we set CC to just the basename; use the full file name. 2393 shift 2394 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2395 fi 2396fi 2397fi 2398fi 2399CC=$ac_cv_prog_CC 2400if test -n "$CC"; then 2401 echo "$as_me:$LINENO: result: $CC" >&5 2402echo "${ECHO_T}$CC" >&6 2403else 2404 echo "$as_me:$LINENO: result: no" >&5 2405echo "${ECHO_T}no" >&6 2406fi 2407 2408fi 2409if test -z "$CC"; then 2410 if test -n "$ac_tool_prefix"; then 2411 for ac_prog in cl 2412 do 2413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2414set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2415echo "$as_me:$LINENO: checking for $ac_word" >&5 2416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2417if test "${ac_cv_prog_CC+set}" = set; then 2418 echo $ECHO_N "(cached) $ECHO_C" >&6 2419else 2420 if test -n "$CC"; then 2421 ac_cv_prog_CC="$CC" # Let the user override the test. 2422else 2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2424for as_dir in $PATH 2425do 2426 IFS=$as_save_IFS 2427 test -z "$as_dir" && as_dir=. 2428 for ac_exec_ext in '' $ac_executable_extensions; do 2429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2430 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2432 break 2 2433 fi 2434done 2435done 2436 2437fi 2438fi 2439CC=$ac_cv_prog_CC 2440if test -n "$CC"; then 2441 echo "$as_me:$LINENO: result: $CC" >&5 2442echo "${ECHO_T}$CC" >&6 2443else 2444 echo "$as_me:$LINENO: result: no" >&5 2445echo "${ECHO_T}no" >&6 2446fi 2447 2448 test -n "$CC" && break 2449 done 2450fi 2451if test -z "$CC"; then 2452 ac_ct_CC=$CC 2453 for ac_prog in cl 2454do 2455 # Extract the first word of "$ac_prog", so it can be a program name with args. 2456set dummy $ac_prog; ac_word=$2 2457echo "$as_me:$LINENO: checking for $ac_word" >&5 2458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2459if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2460 echo $ECHO_N "(cached) $ECHO_C" >&6 2461else 2462 if test -n "$ac_ct_CC"; then 2463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2464else 2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2466for as_dir in $PATH 2467do 2468 IFS=$as_save_IFS 2469 test -z "$as_dir" && as_dir=. 2470 for ac_exec_ext in '' $ac_executable_extensions; do 2471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2472 ac_cv_prog_ac_ct_CC="$ac_prog" 2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2474 break 2 2475 fi 2476done 2477done 2478 2479fi 2480fi 2481ac_ct_CC=$ac_cv_prog_ac_ct_CC 2482if test -n "$ac_ct_CC"; then 2483 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2484echo "${ECHO_T}$ac_ct_CC" >&6 2485else 2486 echo "$as_me:$LINENO: result: no" >&5 2487echo "${ECHO_T}no" >&6 2488fi 2489 2490 test -n "$ac_ct_CC" && break 2491done 2492 2493 CC=$ac_ct_CC 2494fi 2495 2496fi 2497 2498 2499test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2500See \`config.log' for more details." >&5 2501echo "$as_me: error: no acceptable C compiler found in \$PATH 2502See \`config.log' for more details." >&2;} 2503 { (exit 1); exit 1; }; } 2504 2505# Provide some information about the compiler. 2506echo "$as_me:$LINENO:" \ 2507 "checking for C compiler version" >&5 2508ac_compiler=`set X $ac_compile; echo $2` 2509{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2510 (eval $ac_compiler --version </dev/null >&5) 2>&5 2511 ac_status=$? 2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2513 (exit $ac_status); } 2514{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2515 (eval $ac_compiler -v </dev/null >&5) 2>&5 2516 ac_status=$? 2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2518 (exit $ac_status); } 2519{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2520 (eval $ac_compiler -V </dev/null >&5) 2>&5 2521 ac_status=$? 2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2523 (exit $ac_status); } 2524 2525cat >conftest.$ac_ext <<_ACEOF 2526/* confdefs.h. */ 2527_ACEOF 2528cat confdefs.h >>conftest.$ac_ext 2529cat >>conftest.$ac_ext <<_ACEOF 2530/* end confdefs.h. */ 2531 2532int 2533main () 2534{ 2535 2536 ; 2537 return 0; 2538} 2539_ACEOF 2540ac_clean_files_save=$ac_clean_files 2541ac_clean_files="$ac_clean_files a.out a.exe b.out" 2542# Try to create an executable without -o first, disregard a.out. 2543# It will help us diagnose broken compilers, and finding out an intuition 2544# of exeext. 2545echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2546echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2547ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2548if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2549 (eval $ac_link_default) 2>&5 2550 ac_status=$? 2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2552 (exit $ac_status); }; then 2553 # Find the output, starting from the most likely. This scheme is 2554# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2555# resort. 2556 2557# Be careful to initialize this variable, since it used to be cached. 2558# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2559ac_cv_exeext= 2560# b.out is created by i960 compilers. 2561for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2562do 2563 test -f "$ac_file" || continue 2564 case $ac_file in 2565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2566 ;; 2567 conftest.$ac_ext ) 2568 # This is the source file. 2569 ;; 2570 [ab].out ) 2571 # We found the default executable, but exeext='' is most 2572 # certainly right. 2573 break;; 2574 *.* ) 2575 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2576 # FIXME: I believe we export ac_cv_exeext for Libtool, 2577 # but it would be cool to find out if it's true. Does anybody 2578 # maintain Libtool? --akim. 2579 export ac_cv_exeext 2580 break;; 2581 * ) 2582 break;; 2583 esac 2584done 2585else 2586 echo "$as_me: failed program was:" >&5 2587sed 's/^/| /' conftest.$ac_ext >&5 2588 2589{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2590See \`config.log' for more details." >&5 2591echo "$as_me: error: C compiler cannot create executables 2592See \`config.log' for more details." >&2;} 2593 { (exit 77); exit 77; }; } 2594fi 2595 2596ac_exeext=$ac_cv_exeext 2597echo "$as_me:$LINENO: result: $ac_file" >&5 2598echo "${ECHO_T}$ac_file" >&6 2599 2600# Check the compiler produces executables we can run. If not, either 2601# the compiler is broken, or we cross compile. 2602echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2603echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2604# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2605# If not cross compiling, check that we can run a simple program. 2606if test "$cross_compiling" != yes; then 2607 if { ac_try='./$ac_file' 2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2609 (eval $ac_try) 2>&5 2610 ac_status=$? 2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2612 (exit $ac_status); }; }; then 2613 cross_compiling=no 2614 else 2615 if test "$cross_compiling" = maybe; then 2616 cross_compiling=yes 2617 else 2618 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2619If you meant to cross compile, use \`--host'. 2620See \`config.log' for more details." >&5 2621echo "$as_me: error: cannot run C compiled programs. 2622If you meant to cross compile, use \`--host'. 2623See \`config.log' for more details." >&2;} 2624 { (exit 1); exit 1; }; } 2625 fi 2626 fi 2627fi 2628echo "$as_me:$LINENO: result: yes" >&5 2629echo "${ECHO_T}yes" >&6 2630 2631rm -f a.out a.exe conftest$ac_cv_exeext b.out 2632ac_clean_files=$ac_clean_files_save 2633# Check the compiler produces executables we can run. If not, either 2634# the compiler is broken, or we cross compile. 2635echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2636echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2637echo "$as_me:$LINENO: result: $cross_compiling" >&5 2638echo "${ECHO_T}$cross_compiling" >&6 2639 2640echo "$as_me:$LINENO: checking for suffix of executables" >&5 2641echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2643 (eval $ac_link) 2>&5 2644 ac_status=$? 2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 (exit $ac_status); }; then 2647 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2648# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2649# work properly (i.e., refer to `conftest.exe'), while it won't with 2650# `rm'. 2651for ac_file in conftest.exe conftest conftest.*; do 2652 test -f "$ac_file" || continue 2653 case $ac_file in 2654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2655 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2656 export ac_cv_exeext 2657 break;; 2658 * ) break;; 2659 esac 2660done 2661else 2662 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2663See \`config.log' for more details." >&5 2664echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2665See \`config.log' for more details." >&2;} 2666 { (exit 1); exit 1; }; } 2667fi 2668 2669rm -f conftest$ac_cv_exeext 2670echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2671echo "${ECHO_T}$ac_cv_exeext" >&6 2672 2673rm -f conftest.$ac_ext 2674EXEEXT=$ac_cv_exeext 2675ac_exeext=$EXEEXT 2676echo "$as_me:$LINENO: checking for suffix of object files" >&5 2677echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2678if test "${ac_cv_objext+set}" = set; then 2679 echo $ECHO_N "(cached) $ECHO_C" >&6 2680else 2681 cat >conftest.$ac_ext <<_ACEOF 2682/* confdefs.h. */ 2683_ACEOF 2684cat confdefs.h >>conftest.$ac_ext 2685cat >>conftest.$ac_ext <<_ACEOF 2686/* end confdefs.h. */ 2687 2688int 2689main () 2690{ 2691 2692 ; 2693 return 0; 2694} 2695_ACEOF 2696rm -f conftest.o conftest.obj 2697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2698 (eval $ac_compile) 2>&5 2699 ac_status=$? 2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2701 (exit $ac_status); }; then 2702 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2703 case $ac_file in 2704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2705 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2706 break;; 2707 esac 2708done 2709else 2710 echo "$as_me: failed program was:" >&5 2711sed 's/^/| /' conftest.$ac_ext >&5 2712 2713{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2714See \`config.log' for more details." >&5 2715echo "$as_me: error: cannot compute suffix of object files: cannot compile 2716See \`config.log' for more details." >&2;} 2717 { (exit 1); exit 1; }; } 2718fi 2719 2720rm -f conftest.$ac_cv_objext conftest.$ac_ext 2721fi 2722echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2723echo "${ECHO_T}$ac_cv_objext" >&6 2724OBJEXT=$ac_cv_objext 2725ac_objext=$OBJEXT 2726echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2727echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2728if test "${ac_cv_c_compiler_gnu+set}" = set; then 2729 echo $ECHO_N "(cached) $ECHO_C" >&6 2730else 2731 cat >conftest.$ac_ext <<_ACEOF 2732/* confdefs.h. */ 2733_ACEOF 2734cat confdefs.h >>conftest.$ac_ext 2735cat >>conftest.$ac_ext <<_ACEOF 2736/* end confdefs.h. */ 2737 2738int 2739main () 2740{ 2741#ifndef __GNUC__ 2742 choke me 2743#endif 2744 2745 ; 2746 return 0; 2747} 2748_ACEOF 2749rm -f conftest.$ac_objext 2750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2751 (eval $ac_compile) 2>conftest.er1 2752 ac_status=$? 2753 grep -v '^ *+' conftest.er1 >conftest.err 2754 rm -f conftest.er1 2755 cat conftest.err >&5 2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2757 (exit $ac_status); } && 2758 { ac_try='test -z "$ac_c_werror_flag" 2759 || test ! -s conftest.err' 2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2761 (eval $ac_try) 2>&5 2762 ac_status=$? 2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2764 (exit $ac_status); }; } && 2765 { ac_try='test -s conftest.$ac_objext' 2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2767 (eval $ac_try) 2>&5 2768 ac_status=$? 2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2770 (exit $ac_status); }; }; then 2771 ac_compiler_gnu=yes 2772else 2773 echo "$as_me: failed program was:" >&5 2774sed 's/^/| /' conftest.$ac_ext >&5 2775 2776ac_compiler_gnu=no 2777fi 2778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2779ac_cv_c_compiler_gnu=$ac_compiler_gnu 2780 2781fi 2782echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2783echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2784GCC=`test $ac_compiler_gnu = yes && echo yes` 2785ac_test_CFLAGS=${CFLAGS+set} 2786ac_save_CFLAGS=$CFLAGS 2787CFLAGS="-g" 2788echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2789echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2790if test "${ac_cv_prog_cc_g+set}" = set; then 2791 echo $ECHO_N "(cached) $ECHO_C" >&6 2792else 2793 cat >conftest.$ac_ext <<_ACEOF 2794/* confdefs.h. */ 2795_ACEOF 2796cat confdefs.h >>conftest.$ac_ext 2797cat >>conftest.$ac_ext <<_ACEOF 2798/* end confdefs.h. */ 2799 2800int 2801main () 2802{ 2803 2804 ; 2805 return 0; 2806} 2807_ACEOF 2808rm -f conftest.$ac_objext 2809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2810 (eval $ac_compile) 2>conftest.er1 2811 ac_status=$? 2812 grep -v '^ *+' conftest.er1 >conftest.err 2813 rm -f conftest.er1 2814 cat conftest.err >&5 2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2816 (exit $ac_status); } && 2817 { ac_try='test -z "$ac_c_werror_flag" 2818 || test ! -s conftest.err' 2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2820 (eval $ac_try) 2>&5 2821 ac_status=$? 2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2823 (exit $ac_status); }; } && 2824 { ac_try='test -s conftest.$ac_objext' 2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2826 (eval $ac_try) 2>&5 2827 ac_status=$? 2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2829 (exit $ac_status); }; }; then 2830 ac_cv_prog_cc_g=yes 2831else 2832 echo "$as_me: failed program was:" >&5 2833sed 's/^/| /' conftest.$ac_ext >&5 2834 2835ac_cv_prog_cc_g=no 2836fi 2837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2838fi 2839echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2840echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2841if test "$ac_test_CFLAGS" = set; then 2842 CFLAGS=$ac_save_CFLAGS 2843elif test $ac_cv_prog_cc_g = yes; then 2844 if test "$GCC" = yes; then 2845 CFLAGS="-g -O2" 2846 else 2847 CFLAGS="-g" 2848 fi 2849else 2850 if test "$GCC" = yes; then 2851 CFLAGS="-O2" 2852 else 2853 CFLAGS= 2854 fi 2855fi 2856echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2857echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2858if test "${ac_cv_prog_cc_stdc+set}" = set; then 2859 echo $ECHO_N "(cached) $ECHO_C" >&6 2860else 2861 ac_cv_prog_cc_stdc=no 2862ac_save_CC=$CC 2863cat >conftest.$ac_ext <<_ACEOF 2864/* confdefs.h. */ 2865_ACEOF 2866cat confdefs.h >>conftest.$ac_ext 2867cat >>conftest.$ac_ext <<_ACEOF 2868/* end confdefs.h. */ 2869#include <stdarg.h> 2870#include <stdio.h> 2871#include <sys/types.h> 2872#include <sys/stat.h> 2873/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2874struct buf { int x; }; 2875FILE * (*rcsopen) (struct buf *, struct stat *, int); 2876static char *e (p, i) 2877 char **p; 2878 int i; 2879{ 2880 return p[i]; 2881} 2882static char *f (char * (*g) (char **, int), char **p, ...) 2883{ 2884 char *s; 2885 va_list v; 2886 va_start (v,p); 2887 s = g (p, va_arg (v,int)); 2888 va_end (v); 2889 return s; 2890} 2891 2892/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2893 function prototypes and stuff, but not '\xHH' hex character constants. 2894 These don't provoke an error unfortunately, instead are silently treated 2895 as 'x'. The following induces an error, until -std1 is added to get 2896 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2897 array size at least. It's necessary to write '\x00'==0 to get something 2898 that's true only with -std1. */ 2899int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2900 2901int test (int i, double x); 2902struct s1 {int (*f) (int a);}; 2903struct s2 {int (*f) (double a);}; 2904int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2905int argc; 2906char **argv; 2907int 2908main () 2909{ 2910return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2911 ; 2912 return 0; 2913} 2914_ACEOF 2915# Don't try gcc -ansi; that turns off useful extensions and 2916# breaks some systems' header files. 2917# AIX -qlanglvl=ansi 2918# Ultrix and OSF/1 -std1 2919# HP-UX 10.20 and later -Ae 2920# HP-UX older versions -Aa -D_HPUX_SOURCE 2921# SVR4 -Xc -D__EXTENSIONS__ 2922for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2923do 2924 CC="$ac_save_CC $ac_arg" 2925 rm -f conftest.$ac_objext 2926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2927 (eval $ac_compile) 2>conftest.er1 2928 ac_status=$? 2929 grep -v '^ *+' conftest.er1 >conftest.err 2930 rm -f conftest.er1 2931 cat conftest.err >&5 2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2933 (exit $ac_status); } && 2934 { ac_try='test -z "$ac_c_werror_flag" 2935 || test ! -s conftest.err' 2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2937 (eval $ac_try) 2>&5 2938 ac_status=$? 2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2940 (exit $ac_status); }; } && 2941 { ac_try='test -s conftest.$ac_objext' 2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2943 (eval $ac_try) 2>&5 2944 ac_status=$? 2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2946 (exit $ac_status); }; }; then 2947 ac_cv_prog_cc_stdc=$ac_arg 2948break 2949else 2950 echo "$as_me: failed program was:" >&5 2951sed 's/^/| /' conftest.$ac_ext >&5 2952 2953fi 2954rm -f conftest.err conftest.$ac_objext 2955done 2956rm -f conftest.$ac_ext conftest.$ac_objext 2957CC=$ac_save_CC 2958 2959fi 2960 2961case "x$ac_cv_prog_cc_stdc" in 2962 x|xno) 2963 echo "$as_me:$LINENO: result: none needed" >&5 2964echo "${ECHO_T}none needed" >&6 ;; 2965 *) 2966 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2967echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2968 CC="$CC $ac_cv_prog_cc_stdc" ;; 2969esac 2970 2971# Some people use a C++ compiler to compile C. Since we use `exit', 2972# in C++ we need to declare it. In case someone uses the same compiler 2973# for both compiling C and C++ we need to have the C++ compiler decide 2974# the declaration of exit, since it's the most demanding environment. 2975cat >conftest.$ac_ext <<_ACEOF 2976#ifndef __cplusplus 2977 choke me 2978#endif 2979_ACEOF 2980rm -f conftest.$ac_objext 2981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2982 (eval $ac_compile) 2>conftest.er1 2983 ac_status=$? 2984 grep -v '^ *+' conftest.er1 >conftest.err 2985 rm -f conftest.er1 2986 cat conftest.err >&5 2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2988 (exit $ac_status); } && 2989 { ac_try='test -z "$ac_c_werror_flag" 2990 || test ! -s conftest.err' 2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2992 (eval $ac_try) 2>&5 2993 ac_status=$? 2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2995 (exit $ac_status); }; } && 2996 { ac_try='test -s conftest.$ac_objext' 2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2998 (eval $ac_try) 2>&5 2999 ac_status=$? 3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3001 (exit $ac_status); }; }; then 3002 for ac_declaration in \ 3003 '' \ 3004 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3005 'extern "C" void std::exit (int); using std::exit;' \ 3006 'extern "C" void exit (int) throw ();' \ 3007 'extern "C" void exit (int);' \ 3008 'void exit (int);' 3009do 3010 cat >conftest.$ac_ext <<_ACEOF 3011/* confdefs.h. */ 3012_ACEOF 3013cat confdefs.h >>conftest.$ac_ext 3014cat >>conftest.$ac_ext <<_ACEOF 3015/* end confdefs.h. */ 3016$ac_declaration 3017#include <stdlib.h> 3018int 3019main () 3020{ 3021exit (42); 3022 ; 3023 return 0; 3024} 3025_ACEOF 3026rm -f conftest.$ac_objext 3027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3028 (eval $ac_compile) 2>conftest.er1 3029 ac_status=$? 3030 grep -v '^ *+' conftest.er1 >conftest.err 3031 rm -f conftest.er1 3032 cat conftest.err >&5 3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3034 (exit $ac_status); } && 3035 { ac_try='test -z "$ac_c_werror_flag" 3036 || test ! -s conftest.err' 3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3038 (eval $ac_try) 2>&5 3039 ac_status=$? 3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3041 (exit $ac_status); }; } && 3042 { ac_try='test -s conftest.$ac_objext' 3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3044 (eval $ac_try) 2>&5 3045 ac_status=$? 3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3047 (exit $ac_status); }; }; then 3048 : 3049else 3050 echo "$as_me: failed program was:" >&5 3051sed 's/^/| /' conftest.$ac_ext >&5 3052 3053continue 3054fi 3055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3056 cat >conftest.$ac_ext <<_ACEOF 3057/* confdefs.h. */ 3058_ACEOF 3059cat confdefs.h >>conftest.$ac_ext 3060cat >>conftest.$ac_ext <<_ACEOF 3061/* end confdefs.h. */ 3062$ac_declaration 3063int 3064main () 3065{ 3066exit (42); 3067 ; 3068 return 0; 3069} 3070_ACEOF 3071rm -f conftest.$ac_objext 3072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3073 (eval $ac_compile) 2>conftest.er1 3074 ac_status=$? 3075 grep -v '^ *+' conftest.er1 >conftest.err 3076 rm -f conftest.er1 3077 cat conftest.err >&5 3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3079 (exit $ac_status); } && 3080 { ac_try='test -z "$ac_c_werror_flag" 3081 || test ! -s conftest.err' 3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3083 (eval $ac_try) 2>&5 3084 ac_status=$? 3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3086 (exit $ac_status); }; } && 3087 { ac_try='test -s conftest.$ac_objext' 3088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3089 (eval $ac_try) 2>&5 3090 ac_status=$? 3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3092 (exit $ac_status); }; }; then 3093 break 3094else 3095 echo "$as_me: failed program was:" >&5 3096sed 's/^/| /' conftest.$ac_ext >&5 3097 3098fi 3099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3100done 3101rm -f conftest* 3102if test -n "$ac_declaration"; then 3103 echo '#ifdef __cplusplus' >>confdefs.h 3104 echo $ac_declaration >>confdefs.h 3105 echo '#endif' >>confdefs.h 3106fi 3107 3108else 3109 echo "$as_me: failed program was:" >&5 3110sed 's/^/| /' conftest.$ac_ext >&5 3111 3112fi 3113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3114ac_ext=c 3115ac_cpp='$CPP $CPPFLAGS' 3116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3118ac_compiler_gnu=$ac_cv_c_compiler_gnu 3119 3120depcc="$CC" am_compiler_list= 3121 3122echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3123echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3124if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3125 echo $ECHO_N "(cached) $ECHO_C" >&6 3126else 3127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3128 # We make a subdir and do the tests there. Otherwise we can end up 3129 # making bogus files that we don't know about and never remove. For 3130 # instance it was reported that on HP-UX the gcc test will end up 3131 # making a dummy file named `D' -- because `-MD' means `put the output 3132 # in D'. 3133 mkdir conftest.dir 3134 # Copy depcomp to subdir because otherwise we won't find it if we're 3135 # using a relative directory. 3136 cp "$am_depcomp" conftest.dir 3137 cd conftest.dir 3138 # We will build objects and dependencies in a subdirectory because 3139 # it helps to detect inapplicable dependency modes. For instance 3140 # both Tru64's cc and ICC support -MD to output dependencies as a 3141 # side effect of compilation, but ICC will put the dependencies in 3142 # the current directory while Tru64 will put them in the object 3143 # directory. 3144 mkdir sub 3145 3146 am_cv_CC_dependencies_compiler_type=none 3147 if test "$am_compiler_list" = ""; then 3148 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3149 fi 3150 for depmode in $am_compiler_list; do 3151 # Setup a source with many dependencies, because some compilers 3152 # like to wrap large dependency lists on column 80 (with \), and 3153 # we should not choose a depcomp mode which is confused by this. 3154 # 3155 # We need to recreate these files for each test, as the compiler may 3156 # overwrite some of them when testing with obscure command lines. 3157 # This happens at least with the AIX C compiler. 3158 : > sub/conftest.c 3159 for i in 1 2 3 4 5 6; do 3160 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3161 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3162 # Solaris 8's {/usr,}/bin/sh. 3163 touch sub/conftst$i.h 3164 done 3165 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3166 3167 case $depmode in 3168 nosideeffect) 3169 # after this tag, mechanisms are not by side-effect, so they'll 3170 # only be used when explicitly requested 3171 if test "x$enable_dependency_tracking" = xyes; then 3172 continue 3173 else 3174 break 3175 fi 3176 ;; 3177 none) break ;; 3178 esac 3179 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3180 # mode. It turns out that the SunPro C++ compiler does not properly 3181 # handle `-M -o', and we need to detect this. 3182 if depmode=$depmode \ 3183 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3184 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3185 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3186 >/dev/null 2>conftest.err && 3187 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3188 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3189 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3190 # icc doesn't choke on unknown options, it will just issue warnings 3191 # or remarks (even with -Werror). So we grep stderr for any message 3192 # that says an option was ignored or not supported. 3193 # When given -MP, icc 7.0 and 7.1 complain thusly: 3194 # icc: Command line warning: ignoring option '-M'; no argument required 3195 # The diagnosis changed in icc 8.0: 3196 # icc: Command line remark: option '-MP' not supported 3197 if (grep 'ignoring option' conftest.err || 3198 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3199 am_cv_CC_dependencies_compiler_type=$depmode 3200 break 3201 fi 3202 fi 3203 done 3204 3205 cd .. 3206 rm -rf conftest.dir 3207else 3208 am_cv_CC_dependencies_compiler_type=none 3209fi 3210 3211fi 3212echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3213echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3214CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3215 3216 3217 3218if 3219 test "x$enable_dependency_tracking" != xno \ 3220 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3221 am__fastdepCC_TRUE= 3222 am__fastdepCC_FALSE='#' 3223else 3224 am__fastdepCC_TRUE='#' 3225 am__fastdepCC_FALSE= 3226fi 3227 3228 3229echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3230echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3231if test "${lt_cv_path_SED+set}" = set; then 3232 echo $ECHO_N "(cached) $ECHO_C" >&6 3233else 3234 # Loop through the user's path and test for sed and gsed. 3235# Then use that list of sed's as ones to test for truncation. 3236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3237for as_dir in $PATH 3238do 3239 IFS=$as_save_IFS 3240 test -z "$as_dir" && as_dir=. 3241 for lt_ac_prog in sed gsed; do 3242 for ac_exec_ext in '' $ac_executable_extensions; do 3243 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3244 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3245 fi 3246 done 3247 done 3248done 3249IFS=$as_save_IFS 3250lt_ac_max=0 3251lt_ac_count=0 3252# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3253# along with /bin/sed that truncates output. 3254for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3255 test ! -f $lt_ac_sed && continue 3256 cat /dev/null > conftest.in 3257 lt_ac_count=0 3258 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3259 # Check for GNU sed and select it if it is found. 3260 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3261 lt_cv_path_SED=$lt_ac_sed 3262 break 3263 fi 3264 while true; do 3265 cat conftest.in conftest.in >conftest.tmp 3266 mv conftest.tmp conftest.in 3267 cp conftest.in conftest.nl 3268 echo >>conftest.nl 3269 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3270 cmp -s conftest.out conftest.nl || break 3271 # 10000 chars as input seems more than enough 3272 test $lt_ac_count -gt 10 && break 3273 lt_ac_count=`expr $lt_ac_count + 1` 3274 if test $lt_ac_count -gt $lt_ac_max; then 3275 lt_ac_max=$lt_ac_count 3276 lt_cv_path_SED=$lt_ac_sed 3277 fi 3278 done 3279done 3280 3281fi 3282 3283SED=$lt_cv_path_SED 3284 3285echo "$as_me:$LINENO: result: $SED" >&5 3286echo "${ECHO_T}$SED" >&6 3287 3288echo "$as_me:$LINENO: checking for egrep" >&5 3289echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3290if test "${ac_cv_prog_egrep+set}" = set; then 3291 echo $ECHO_N "(cached) $ECHO_C" >&6 3292else 3293 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3294 then ac_cv_prog_egrep='grep -E' 3295 else ac_cv_prog_egrep='egrep' 3296 fi 3297fi 3298echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3299echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3300 EGREP=$ac_cv_prog_egrep 3301 3302 3303 3304# Check whether --with-gnu-ld or --without-gnu-ld was given. 3305if test "${with_gnu_ld+set}" = set; then 3306 withval="$with_gnu_ld" 3307 test "$withval" = no || with_gnu_ld=yes 3308else 3309 with_gnu_ld=no 3310fi; 3311ac_prog=ld 3312if test "$GCC" = yes; then 3313 # Check if gcc -print-prog-name=ld gives a path. 3314 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3315echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3316 case $host in 3317 *-*-mingw*) 3318 # gcc leaves a trailing carriage return which upsets mingw 3319 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3320 *) 3321 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3322 esac 3323 case $ac_prog in 3324 # Accept absolute paths. 3325 [\\/]* | ?:[\\/]*) 3326 re_direlt='/[^/][^/]*/\.\./' 3327 # Canonicalize the pathname of ld 3328 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3329 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3330 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3331 done 3332 test -z "$LD" && LD="$ac_prog" 3333 ;; 3334 "") 3335 # If it fails, then pretend we aren't using GCC. 3336 ac_prog=ld 3337 ;; 3338 *) 3339 # If it is relative, then search for the first ld in PATH. 3340 with_gnu_ld=unknown 3341 ;; 3342 esac 3343elif test "$with_gnu_ld" = yes; then 3344 echo "$as_me:$LINENO: checking for GNU ld" >&5 3345echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3346else 3347 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3348echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3349fi 3350if test "${lt_cv_path_LD+set}" = set; then 3351 echo $ECHO_N "(cached) $ECHO_C" >&6 3352else 3353 if test -z "$LD"; then 3354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3355 for ac_dir in $PATH; do 3356 IFS="$lt_save_ifs" 3357 test -z "$ac_dir" && ac_dir=. 3358 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3359 lt_cv_path_LD="$ac_dir/$ac_prog" 3360 # Check to see if the program is GNU ld. I'd rather use --version, 3361 # but apparently some variants of GNU ld only accept -v. 3362 # Break only if it was the GNU/non-GNU ld that we prefer. 3363 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3364 *GNU* | *'with BFD'*) 3365 test "$with_gnu_ld" != no && break 3366 ;; 3367 *) 3368 test "$with_gnu_ld" != yes && break 3369 ;; 3370 esac 3371 fi 3372 done 3373 IFS="$lt_save_ifs" 3374else 3375 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3376fi 3377fi 3378 3379LD="$lt_cv_path_LD" 3380if test -n "$LD"; then 3381 echo "$as_me:$LINENO: result: $LD" >&5 3382echo "${ECHO_T}$LD" >&6 3383else 3384 echo "$as_me:$LINENO: result: no" >&5 3385echo "${ECHO_T}no" >&6 3386fi 3387test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3388echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3389 { (exit 1); exit 1; }; } 3390echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3391echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3392if test "${lt_cv_prog_gnu_ld+set}" = set; then 3393 echo $ECHO_N "(cached) $ECHO_C" >&6 3394else 3395 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3396case `$LD -v 2>&1 </dev/null` in 3397*GNU* | *'with BFD'*) 3398 lt_cv_prog_gnu_ld=yes 3399 ;; 3400*) 3401 lt_cv_prog_gnu_ld=no 3402 ;; 3403esac 3404fi 3405echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3406echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3407with_gnu_ld=$lt_cv_prog_gnu_ld 3408 3409 3410echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3411echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3412if test "${lt_cv_ld_reload_flag+set}" = set; then 3413 echo $ECHO_N "(cached) $ECHO_C" >&6 3414else 3415 lt_cv_ld_reload_flag='-r' 3416fi 3417echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3418echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3419reload_flag=$lt_cv_ld_reload_flag 3420case $reload_flag in 3421"" | " "*) ;; 3422*) reload_flag=" $reload_flag" ;; 3423esac 3424reload_cmds='$LD$reload_flag -o $output$reload_objs' 3425case $host_os in 3426 darwin*) 3427 if test "$GCC" = yes; then 3428 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3429 else 3430 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3431 fi 3432 ;; 3433esac 3434 3435echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3436echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3437if test "${lt_cv_path_NM+set}" = set; then 3438 echo $ECHO_N "(cached) $ECHO_C" >&6 3439else 3440 if test -n "$NM"; then 3441 # Let the user override the test. 3442 lt_cv_path_NM="$NM" 3443else 3444 lt_nm_to_check="${ac_tool_prefix}nm" 3445 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3446 lt_nm_to_check="$lt_nm_to_check nm" 3447 fi 3448 for lt_tmp_nm in $lt_nm_to_check; do 3449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3450 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3451 IFS="$lt_save_ifs" 3452 test -z "$ac_dir" && ac_dir=. 3453 tmp_nm="$ac_dir/$lt_tmp_nm" 3454 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3455 # Check to see if the nm accepts a BSD-compat flag. 3456 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3457 # nm: unknown option "B" ignored 3458 # Tru64's nm complains that /dev/null is an invalid object file 3459 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3460 */dev/null* | *'Invalid file or object type'*) 3461 lt_cv_path_NM="$tmp_nm -B" 3462 break 3463 ;; 3464 *) 3465 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3466 */dev/null*) 3467 lt_cv_path_NM="$tmp_nm -p" 3468 break 3469 ;; 3470 *) 3471 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3472 continue # so that we can try to find one that supports BSD flags 3473 ;; 3474 esac 3475 ;; 3476 esac 3477 fi 3478 done 3479 IFS="$lt_save_ifs" 3480 done 3481 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3482fi 3483fi 3484echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3485echo "${ECHO_T}$lt_cv_path_NM" >&6 3486NM="$lt_cv_path_NM" 3487 3488echo "$as_me:$LINENO: checking whether ln -s works" >&5 3489echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3490LN_S=$as_ln_s 3491if test "$LN_S" = "ln -s"; then 3492 echo "$as_me:$LINENO: result: yes" >&5 3493echo "${ECHO_T}yes" >&6 3494else 3495 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3496echo "${ECHO_T}no, using $LN_S" >&6 3497fi 3498 3499echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3500echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3501if test "${lt_cv_deplibs_check_method+set}" = set; then 3502 echo $ECHO_N "(cached) $ECHO_C" >&6 3503else 3504 lt_cv_file_magic_cmd='$MAGIC_CMD' 3505lt_cv_file_magic_test_file= 3506lt_cv_deplibs_check_method='unknown' 3507# Need to set the preceding variable on all platforms that support 3508# interlibrary dependencies. 3509# 'none' -- dependencies not supported. 3510# `unknown' -- same as none, but documents that we really don't know. 3511# 'pass_all' -- all dependencies passed with no checks. 3512# 'test_compile' -- check by making test program. 3513# 'file_magic [[regex]]' -- check by looking for files in library path 3514# which responds to the $file_magic_cmd with a given extended regex. 3515# If you have `file' or equivalent on your system and you're not sure 3516# whether `pass_all' will *always* work, you probably want this one. 3517 3518case $host_os in 3519aix4* | aix5*) 3520 lt_cv_deplibs_check_method=pass_all 3521 ;; 3522 3523beos*) 3524 lt_cv_deplibs_check_method=pass_all 3525 ;; 3526 3527bsdi[45]*) 3528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3529 lt_cv_file_magic_cmd='/usr/bin/file -L' 3530 lt_cv_file_magic_test_file=/shlib/libc.so 3531 ;; 3532 3533cygwin*) 3534 # func_win32_libid is a shell function defined in ltmain.sh 3535 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3536 lt_cv_file_magic_cmd='func_win32_libid' 3537 ;; 3538 3539mingw* | pw32*) 3540 # Base MSYS/MinGW do not provide the 'file' command needed by 3541 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3542 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3543 lt_cv_file_magic_cmd='$OBJDUMP -f' 3544 ;; 3545 3546darwin* | rhapsody*) 3547 lt_cv_deplibs_check_method=pass_all 3548 ;; 3549 3550freebsd* | kfreebsd*-gnu | dragonfly*) 3551 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3552 case $host_cpu in 3553 i*86 ) 3554 # Not sure whether the presence of OpenBSD here was a mistake. 3555 # Let's accept both of them until this is cleared up. 3556 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3557 lt_cv_file_magic_cmd=/usr/bin/file 3558 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3559 ;; 3560 esac 3561 else 3562 lt_cv_deplibs_check_method=pass_all 3563 fi 3564 ;; 3565 3566gnu*) 3567 lt_cv_deplibs_check_method=pass_all 3568 ;; 3569 3570hpux10.20* | hpux11*) 3571 lt_cv_file_magic_cmd=/usr/bin/file 3572 case $host_cpu in 3573 ia64*) 3574 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3575 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3576 ;; 3577 hppa*64*) 3578 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]' 3579 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3580 ;; 3581 *) 3582 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3583 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3584 ;; 3585 esac 3586 ;; 3587 3588interix3*) 3589 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 3591 ;; 3592 3593irix5* | irix6* | nonstopux*) 3594 case $LD in 3595 *-32|*"-32 ") libmagic=32-bit;; 3596 *-n32|*"-n32 ") libmagic=N32;; 3597 *-64|*"-64 ") libmagic=64-bit;; 3598 *) libmagic=never-match;; 3599 esac 3600 lt_cv_deplibs_check_method=pass_all 3601 ;; 3602 3603# This must be Linux ELF. 3604linux*) 3605 lt_cv_deplibs_check_method=pass_all 3606 ;; 3607 3608netbsd*) 3609 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3611 else 3612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3613 fi 3614 ;; 3615 3616newos6*) 3617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3618 lt_cv_file_magic_cmd=/usr/bin/file 3619 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3620 ;; 3621 3622nto-qnx*) 3623 lt_cv_deplibs_check_method=unknown 3624 ;; 3625 3626openbsd*) 3627 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3629 else 3630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3631 fi 3632 ;; 3633 3634osf3* | osf4* | osf5*) 3635 lt_cv_deplibs_check_method=pass_all 3636 ;; 3637 3638solaris*) 3639 lt_cv_deplibs_check_method=pass_all 3640 ;; 3641 3642sysv4 | sysv4.3*) 3643 case $host_vendor in 3644 motorola) 3645 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]' 3646 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3647 ;; 3648 ncr) 3649 lt_cv_deplibs_check_method=pass_all 3650 ;; 3651 sequent) 3652 lt_cv_file_magic_cmd='/bin/file' 3653 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3654 ;; 3655 sni) 3656 lt_cv_file_magic_cmd='/bin/file' 3657 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3658 lt_cv_file_magic_test_file=/lib/libc.so 3659 ;; 3660 siemens) 3661 lt_cv_deplibs_check_method=pass_all 3662 ;; 3663 pc) 3664 lt_cv_deplibs_check_method=pass_all 3665 ;; 3666 esac 3667 ;; 3668 3669sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3670 lt_cv_deplibs_check_method=pass_all 3671 ;; 3672esac 3673 3674fi 3675echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3676echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3677file_magic_cmd=$lt_cv_file_magic_cmd 3678deplibs_check_method=$lt_cv_deplibs_check_method 3679test -z "$deplibs_check_method" && deplibs_check_method=unknown 3680 3681 3682 3683 3684# If no C compiler was specified, use CC. 3685LTCC=${LTCC-"$CC"} 3686 3687# If no C compiler flags were specified, use CFLAGS. 3688LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3689 3690# Allow CC to be a program name with arguments. 3691compiler=$CC 3692 3693 3694# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3695if test "${enable_libtool_lock+set}" = set; then 3696 enableval="$enable_libtool_lock" 3697 3698fi; 3699test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3700 3701# Some flags need to be propagated to the compiler or linker for good 3702# libtool support. 3703case $host in 3704ia64-*-hpux*) 3705 # Find out which ABI we are using. 3706 echo 'int i;' > conftest.$ac_ext 3707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3708 (eval $ac_compile) 2>&5 3709 ac_status=$? 3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3711 (exit $ac_status); }; then 3712 case `/usr/bin/file conftest.$ac_objext` in 3713 *ELF-32*) 3714 HPUX_IA64_MODE="32" 3715 ;; 3716 *ELF-64*) 3717 HPUX_IA64_MODE="64" 3718 ;; 3719 esac 3720 fi 3721 rm -rf conftest* 3722 ;; 3723*-*-irix6*) 3724 # Find out which ABI we are using. 3725 echo '#line 3725 "configure"' > conftest.$ac_ext 3726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3727 (eval $ac_compile) 2>&5 3728 ac_status=$? 3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3730 (exit $ac_status); }; then 3731 if test "$lt_cv_prog_gnu_ld" = yes; then 3732 case `/usr/bin/file conftest.$ac_objext` in 3733 *32-bit*) 3734 LD="${LD-ld} -melf32bsmip" 3735 ;; 3736 *N32*) 3737 LD="${LD-ld} -melf32bmipn32" 3738 ;; 3739 *64-bit*) 3740 LD="${LD-ld} -melf64bmip" 3741 ;; 3742 esac 3743 else 3744 case `/usr/bin/file conftest.$ac_objext` in 3745 *32-bit*) 3746 LD="${LD-ld} -32" 3747 ;; 3748 *N32*) 3749 LD="${LD-ld} -n32" 3750 ;; 3751 *64-bit*) 3752 LD="${LD-ld} -64" 3753 ;; 3754 esac 3755 fi 3756 fi 3757 rm -rf conftest* 3758 ;; 3759 3760x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3761 # Find out which ABI we are using. 3762 echo 'int i;' > conftest.$ac_ext 3763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3764 (eval $ac_compile) 2>&5 3765 ac_status=$? 3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3767 (exit $ac_status); }; then 3768 case `/usr/bin/file conftest.o` in 3769 *32-bit*) 3770 case $host in 3771 x86_64-*linux*) 3772 LD="${LD-ld} -m elf_i386" 3773 ;; 3774 ppc64-*linux*|powerpc64-*linux*) 3775 LD="${LD-ld} -m elf32ppclinux" 3776 ;; 3777 s390x-*linux*) 3778 LD="${LD-ld} -m elf_s390" 3779 ;; 3780 sparc64-*linux*) 3781 LD="${LD-ld} -m elf32_sparc" 3782 ;; 3783 esac 3784 ;; 3785 *64-bit*) 3786 case $host in 3787 x86_64-*linux*) 3788 LD="${LD-ld} -m elf_x86_64" 3789 ;; 3790 ppc*-*linux*|powerpc*-*linux*) 3791 LD="${LD-ld} -m elf64ppc" 3792 ;; 3793 s390*-*linux*) 3794 LD="${LD-ld} -m elf64_s390" 3795 ;; 3796 sparc*-*linux*) 3797 LD="${LD-ld} -m elf64_sparc" 3798 ;; 3799 esac 3800 ;; 3801 esac 3802 fi 3803 rm -rf conftest* 3804 ;; 3805 3806*-*-sco3.2v5*) 3807 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3808 SAVE_CFLAGS="$CFLAGS" 3809 CFLAGS="$CFLAGS -belf" 3810 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3811echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3812if test "${lt_cv_cc_needs_belf+set}" = set; then 3813 echo $ECHO_N "(cached) $ECHO_C" >&6 3814else 3815 ac_ext=c 3816ac_cpp='$CPP $CPPFLAGS' 3817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3819ac_compiler_gnu=$ac_cv_c_compiler_gnu 3820 3821 cat >conftest.$ac_ext <<_ACEOF 3822/* confdefs.h. */ 3823_ACEOF 3824cat confdefs.h >>conftest.$ac_ext 3825cat >>conftest.$ac_ext <<_ACEOF 3826/* end confdefs.h. */ 3827 3828int 3829main () 3830{ 3831 3832 ; 3833 return 0; 3834} 3835_ACEOF 3836rm -f conftest.$ac_objext conftest$ac_exeext 3837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3838 (eval $ac_link) 2>conftest.er1 3839 ac_status=$? 3840 grep -v '^ *+' conftest.er1 >conftest.err 3841 rm -f conftest.er1 3842 cat conftest.err >&5 3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3844 (exit $ac_status); } && 3845 { ac_try='test -z "$ac_c_werror_flag" 3846 || test ! -s conftest.err' 3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3848 (eval $ac_try) 2>&5 3849 ac_status=$? 3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3851 (exit $ac_status); }; } && 3852 { ac_try='test -s conftest$ac_exeext' 3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3854 (eval $ac_try) 2>&5 3855 ac_status=$? 3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3857 (exit $ac_status); }; }; then 3858 lt_cv_cc_needs_belf=yes 3859else 3860 echo "$as_me: failed program was:" >&5 3861sed 's/^/| /' conftest.$ac_ext >&5 3862 3863lt_cv_cc_needs_belf=no 3864fi 3865rm -f conftest.err conftest.$ac_objext \ 3866 conftest$ac_exeext conftest.$ac_ext 3867 ac_ext=c 3868ac_cpp='$CPP $CPPFLAGS' 3869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3871ac_compiler_gnu=$ac_cv_c_compiler_gnu 3872 3873fi 3874echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3875echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3876 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3877 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3878 CFLAGS="$SAVE_CFLAGS" 3879 fi 3880 ;; 3881sparc*-*solaris*) 3882 # Find out which ABI we are using. 3883 echo 'int i;' > conftest.$ac_ext 3884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3885 (eval $ac_compile) 2>&5 3886 ac_status=$? 3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3888 (exit $ac_status); }; then 3889 case `/usr/bin/file conftest.o` in 3890 *64-bit*) 3891 case $lt_cv_prog_gnu_ld in 3892 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3893 *) LD="${LD-ld} -64" ;; 3894 esac 3895 ;; 3896 esac 3897 fi 3898 rm -rf conftest* 3899 ;; 3900 3901*-*-cygwin* | *-*-mingw* | *-*-pw32*) 3902 if test -n "$ac_tool_prefix"; then 3903 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 3904set dummy ${ac_tool_prefix}dlltool; ac_word=$2 3905echo "$as_me:$LINENO: checking for $ac_word" >&5 3906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3907if test "${ac_cv_prog_DLLTOOL+set}" = set; then 3908 echo $ECHO_N "(cached) $ECHO_C" >&6 3909else 3910 if test -n "$DLLTOOL"; then 3911 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 3912else 3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3914for as_dir in $PATH 3915do 3916 IFS=$as_save_IFS 3917 test -z "$as_dir" && as_dir=. 3918 for ac_exec_ext in '' $ac_executable_extensions; do 3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3920 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3922 break 2 3923 fi 3924done 3925done 3926 3927fi 3928fi 3929DLLTOOL=$ac_cv_prog_DLLTOOL 3930if test -n "$DLLTOOL"; then 3931 echo "$as_me:$LINENO: result: $DLLTOOL" >&5 3932echo "${ECHO_T}$DLLTOOL" >&6 3933else 3934 echo "$as_me:$LINENO: result: no" >&5 3935echo "${ECHO_T}no" >&6 3936fi 3937 3938fi 3939if test -z "$ac_cv_prog_DLLTOOL"; then 3940 ac_ct_DLLTOOL=$DLLTOOL 3941 # Extract the first word of "dlltool", so it can be a program name with args. 3942set dummy dlltool; ac_word=$2 3943echo "$as_me:$LINENO: checking for $ac_word" >&5 3944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3945if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 3946 echo $ECHO_N "(cached) $ECHO_C" >&6 3947else 3948 if test -n "$ac_ct_DLLTOOL"; then 3949 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 3950else 3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3952for as_dir in $PATH 3953do 3954 IFS=$as_save_IFS 3955 test -z "$as_dir" && as_dir=. 3956 for ac_exec_ext in '' $ac_executable_extensions; do 3957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3958 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 3959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3960 break 2 3961 fi 3962done 3963done 3964 3965 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" 3966fi 3967fi 3968ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 3969if test -n "$ac_ct_DLLTOOL"; then 3970 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 3971echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 3972else 3973 echo "$as_me:$LINENO: result: no" >&5 3974echo "${ECHO_T}no" >&6 3975fi 3976 3977 DLLTOOL=$ac_ct_DLLTOOL 3978else 3979 DLLTOOL="$ac_cv_prog_DLLTOOL" 3980fi 3981 3982 if test -n "$ac_tool_prefix"; then 3983 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 3984set dummy ${ac_tool_prefix}as; ac_word=$2 3985echo "$as_me:$LINENO: checking for $ac_word" >&5 3986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3987if test "${ac_cv_prog_AS+set}" = set; then 3988 echo $ECHO_N "(cached) $ECHO_C" >&6 3989else 3990 if test -n "$AS"; then 3991 ac_cv_prog_AS="$AS" # Let the user override the test. 3992else 3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3994for as_dir in $PATH 3995do 3996 IFS=$as_save_IFS 3997 test -z "$as_dir" && as_dir=. 3998 for ac_exec_ext in '' $ac_executable_extensions; do 3999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4000 ac_cv_prog_AS="${ac_tool_prefix}as" 4001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4002 break 2 4003 fi 4004done 4005done 4006 4007fi 4008fi 4009AS=$ac_cv_prog_AS 4010if test -n "$AS"; then 4011 echo "$as_me:$LINENO: result: $AS" >&5 4012echo "${ECHO_T}$AS" >&6 4013else 4014 echo "$as_me:$LINENO: result: no" >&5 4015echo "${ECHO_T}no" >&6 4016fi 4017 4018fi 4019if test -z "$ac_cv_prog_AS"; then 4020 ac_ct_AS=$AS 4021 # Extract the first word of "as", so it can be a program name with args. 4022set dummy as; ac_word=$2 4023echo "$as_me:$LINENO: checking for $ac_word" >&5 4024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4025if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 4026 echo $ECHO_N "(cached) $ECHO_C" >&6 4027else 4028 if test -n "$ac_ct_AS"; then 4029 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4030else 4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4032for as_dir in $PATH 4033do 4034 IFS=$as_save_IFS 4035 test -z "$as_dir" && as_dir=. 4036 for ac_exec_ext in '' $ac_executable_extensions; do 4037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4038 ac_cv_prog_ac_ct_AS="as" 4039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4040 break 2 4041 fi 4042done 4043done 4044 4045 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false" 4046fi 4047fi 4048ac_ct_AS=$ac_cv_prog_ac_ct_AS 4049if test -n "$ac_ct_AS"; then 4050 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 4051echo "${ECHO_T}$ac_ct_AS" >&6 4052else 4053 echo "$as_me:$LINENO: result: no" >&5 4054echo "${ECHO_T}no" >&6 4055fi 4056 4057 AS=$ac_ct_AS 4058else 4059 AS="$ac_cv_prog_AS" 4060fi 4061 4062 if test -n "$ac_tool_prefix"; then 4063 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4064set dummy ${ac_tool_prefix}objdump; ac_word=$2 4065echo "$as_me:$LINENO: checking for $ac_word" >&5 4066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4067if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4068 echo $ECHO_N "(cached) $ECHO_C" >&6 4069else 4070 if test -n "$OBJDUMP"; then 4071 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4072else 4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4074for as_dir in $PATH 4075do 4076 IFS=$as_save_IFS 4077 test -z "$as_dir" && as_dir=. 4078 for ac_exec_ext in '' $ac_executable_extensions; do 4079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4080 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4082 break 2 4083 fi 4084done 4085done 4086 4087fi 4088fi 4089OBJDUMP=$ac_cv_prog_OBJDUMP 4090if test -n "$OBJDUMP"; then 4091 echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4092echo "${ECHO_T}$OBJDUMP" >&6 4093else 4094 echo "$as_me:$LINENO: result: no" >&5 4095echo "${ECHO_T}no" >&6 4096fi 4097 4098fi 4099if test -z "$ac_cv_prog_OBJDUMP"; then 4100 ac_ct_OBJDUMP=$OBJDUMP 4101 # Extract the first word of "objdump", so it can be a program name with args. 4102set dummy objdump; ac_word=$2 4103echo "$as_me:$LINENO: checking for $ac_word" >&5 4104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4105if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4106 echo $ECHO_N "(cached) $ECHO_C" >&6 4107else 4108 if test -n "$ac_ct_OBJDUMP"; then 4109 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4110else 4111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4112for as_dir in $PATH 4113do 4114 IFS=$as_save_IFS 4115 test -z "$as_dir" && as_dir=. 4116 for ac_exec_ext in '' $ac_executable_extensions; do 4117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4118 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4120 break 2 4121 fi 4122done 4123done 4124 4125 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" 4126fi 4127fi 4128ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4129if test -n "$ac_ct_OBJDUMP"; then 4130 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4131echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 4132else 4133 echo "$as_me:$LINENO: result: no" >&5 4134echo "${ECHO_T}no" >&6 4135fi 4136 4137 OBJDUMP=$ac_ct_OBJDUMP 4138else 4139 OBJDUMP="$ac_cv_prog_OBJDUMP" 4140fi 4141 4142 ;; 4143 4144esac 4145 4146need_locks="$enable_libtool_lock" 4147 4148 4149ac_ext=c 4150ac_cpp='$CPP $CPPFLAGS' 4151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4153ac_compiler_gnu=$ac_cv_c_compiler_gnu 4154echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4155echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 4156# On Suns, sometimes $CPP names a directory. 4157if test -n "$CPP" && test -d "$CPP"; then 4158 CPP= 4159fi 4160if test -z "$CPP"; then 4161 if test "${ac_cv_prog_CPP+set}" = set; then 4162 echo $ECHO_N "(cached) $ECHO_C" >&6 4163else 4164 # Double quotes because CPP needs to be expanded 4165 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4166 do 4167 ac_preproc_ok=false 4168for ac_c_preproc_warn_flag in '' yes 4169do 4170 # Use a header file that comes with gcc, so configuring glibc 4171 # with a fresh cross-compiler works. 4172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4173 # <limits.h> exists even on freestanding compilers. 4174 # On the NeXT, cc -E runs the code through the compiler's parser, 4175 # not just through cpp. "Syntax error" is here to catch this case. 4176 cat >conftest.$ac_ext <<_ACEOF 4177/* confdefs.h. */ 4178_ACEOF 4179cat confdefs.h >>conftest.$ac_ext 4180cat >>conftest.$ac_ext <<_ACEOF 4181/* end confdefs.h. */ 4182#ifdef __STDC__ 4183# include <limits.h> 4184#else 4185# include <assert.h> 4186#endif 4187 Syntax error 4188_ACEOF 4189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4191 ac_status=$? 4192 grep -v '^ *+' conftest.er1 >conftest.err 4193 rm -f conftest.er1 4194 cat conftest.err >&5 4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4196 (exit $ac_status); } >/dev/null; then 4197 if test -s conftest.err; then 4198 ac_cpp_err=$ac_c_preproc_warn_flag 4199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4200 else 4201 ac_cpp_err= 4202 fi 4203else 4204 ac_cpp_err=yes 4205fi 4206if test -z "$ac_cpp_err"; then 4207 : 4208else 4209 echo "$as_me: failed program was:" >&5 4210sed 's/^/| /' conftest.$ac_ext >&5 4211 4212 # Broken: fails on valid input. 4213continue 4214fi 4215rm -f conftest.err conftest.$ac_ext 4216 4217 # OK, works on sane cases. Now check whether non-existent headers 4218 # can be detected and how. 4219 cat >conftest.$ac_ext <<_ACEOF 4220/* confdefs.h. */ 4221_ACEOF 4222cat confdefs.h >>conftest.$ac_ext 4223cat >>conftest.$ac_ext <<_ACEOF 4224/* end confdefs.h. */ 4225#include <ac_nonexistent.h> 4226_ACEOF 4227if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4229 ac_status=$? 4230 grep -v '^ *+' conftest.er1 >conftest.err 4231 rm -f conftest.er1 4232 cat conftest.err >&5 4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4234 (exit $ac_status); } >/dev/null; then 4235 if test -s conftest.err; then 4236 ac_cpp_err=$ac_c_preproc_warn_flag 4237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4238 else 4239 ac_cpp_err= 4240 fi 4241else 4242 ac_cpp_err=yes 4243fi 4244if test -z "$ac_cpp_err"; then 4245 # Broken: success on invalid input. 4246continue 4247else 4248 echo "$as_me: failed program was:" >&5 4249sed 's/^/| /' conftest.$ac_ext >&5 4250 4251 # Passes both tests. 4252ac_preproc_ok=: 4253break 4254fi 4255rm -f conftest.err conftest.$ac_ext 4256 4257done 4258# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4259rm -f conftest.err conftest.$ac_ext 4260if $ac_preproc_ok; then 4261 break 4262fi 4263 4264 done 4265 ac_cv_prog_CPP=$CPP 4266 4267fi 4268 CPP=$ac_cv_prog_CPP 4269else 4270 ac_cv_prog_CPP=$CPP 4271fi 4272echo "$as_me:$LINENO: result: $CPP" >&5 4273echo "${ECHO_T}$CPP" >&6 4274ac_preproc_ok=false 4275for ac_c_preproc_warn_flag in '' yes 4276do 4277 # Use a header file that comes with gcc, so configuring glibc 4278 # with a fresh cross-compiler works. 4279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4280 # <limits.h> exists even on freestanding compilers. 4281 # On the NeXT, cc -E runs the code through the compiler's parser, 4282 # not just through cpp. "Syntax error" is here to catch this case. 4283 cat >conftest.$ac_ext <<_ACEOF 4284/* confdefs.h. */ 4285_ACEOF 4286cat confdefs.h >>conftest.$ac_ext 4287cat >>conftest.$ac_ext <<_ACEOF 4288/* end confdefs.h. */ 4289#ifdef __STDC__ 4290# include <limits.h> 4291#else 4292# include <assert.h> 4293#endif 4294 Syntax error 4295_ACEOF 4296if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4298 ac_status=$? 4299 grep -v '^ *+' conftest.er1 >conftest.err 4300 rm -f conftest.er1 4301 cat conftest.err >&5 4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4303 (exit $ac_status); } >/dev/null; then 4304 if test -s conftest.err; then 4305 ac_cpp_err=$ac_c_preproc_warn_flag 4306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4307 else 4308 ac_cpp_err= 4309 fi 4310else 4311 ac_cpp_err=yes 4312fi 4313if test -z "$ac_cpp_err"; then 4314 : 4315else 4316 echo "$as_me: failed program was:" >&5 4317sed 's/^/| /' conftest.$ac_ext >&5 4318 4319 # Broken: fails on valid input. 4320continue 4321fi 4322rm -f conftest.err conftest.$ac_ext 4323 4324 # OK, works on sane cases. Now check whether non-existent headers 4325 # can be detected and how. 4326 cat >conftest.$ac_ext <<_ACEOF 4327/* confdefs.h. */ 4328_ACEOF 4329cat confdefs.h >>conftest.$ac_ext 4330cat >>conftest.$ac_ext <<_ACEOF 4331/* end confdefs.h. */ 4332#include <ac_nonexistent.h> 4333_ACEOF 4334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4336 ac_status=$? 4337 grep -v '^ *+' conftest.er1 >conftest.err 4338 rm -f conftest.er1 4339 cat conftest.err >&5 4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4341 (exit $ac_status); } >/dev/null; then 4342 if test -s conftest.err; then 4343 ac_cpp_err=$ac_c_preproc_warn_flag 4344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4345 else 4346 ac_cpp_err= 4347 fi 4348else 4349 ac_cpp_err=yes 4350fi 4351if test -z "$ac_cpp_err"; then 4352 # Broken: success on invalid input. 4353continue 4354else 4355 echo "$as_me: failed program was:" >&5 4356sed 's/^/| /' conftest.$ac_ext >&5 4357 4358 # Passes both tests. 4359ac_preproc_ok=: 4360break 4361fi 4362rm -f conftest.err conftest.$ac_ext 4363 4364done 4365# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4366rm -f conftest.err conftest.$ac_ext 4367if $ac_preproc_ok; then 4368 : 4369else 4370 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4371See \`config.log' for more details." >&5 4372echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4373See \`config.log' for more details." >&2;} 4374 { (exit 1); exit 1; }; } 4375fi 4376 4377ac_ext=c 4378ac_cpp='$CPP $CPPFLAGS' 4379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4381ac_compiler_gnu=$ac_cv_c_compiler_gnu 4382 4383 4384echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4385echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4386if test "${ac_cv_header_stdc+set}" = set; then 4387 echo $ECHO_N "(cached) $ECHO_C" >&6 4388else 4389 cat >conftest.$ac_ext <<_ACEOF 4390/* confdefs.h. */ 4391_ACEOF 4392cat confdefs.h >>conftest.$ac_ext 4393cat >>conftest.$ac_ext <<_ACEOF 4394/* end confdefs.h. */ 4395#include <stdlib.h> 4396#include <stdarg.h> 4397#include <string.h> 4398#include <float.h> 4399 4400int 4401main () 4402{ 4403 4404 ; 4405 return 0; 4406} 4407_ACEOF 4408rm -f conftest.$ac_objext 4409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4410 (eval $ac_compile) 2>conftest.er1 4411 ac_status=$? 4412 grep -v '^ *+' conftest.er1 >conftest.err 4413 rm -f conftest.er1 4414 cat conftest.err >&5 4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4416 (exit $ac_status); } && 4417 { ac_try='test -z "$ac_c_werror_flag" 4418 || test ! -s conftest.err' 4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4420 (eval $ac_try) 2>&5 4421 ac_status=$? 4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4423 (exit $ac_status); }; } && 4424 { ac_try='test -s conftest.$ac_objext' 4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4426 (eval $ac_try) 2>&5 4427 ac_status=$? 4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4429 (exit $ac_status); }; }; then 4430 ac_cv_header_stdc=yes 4431else 4432 echo "$as_me: failed program was:" >&5 4433sed 's/^/| /' conftest.$ac_ext >&5 4434 4435ac_cv_header_stdc=no 4436fi 4437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4438 4439if test $ac_cv_header_stdc = yes; then 4440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4441 cat >conftest.$ac_ext <<_ACEOF 4442/* confdefs.h. */ 4443_ACEOF 4444cat confdefs.h >>conftest.$ac_ext 4445cat >>conftest.$ac_ext <<_ACEOF 4446/* end confdefs.h. */ 4447#include <string.h> 4448 4449_ACEOF 4450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4451 $EGREP "memchr" >/dev/null 2>&1; then 4452 : 4453else 4454 ac_cv_header_stdc=no 4455fi 4456rm -f conftest* 4457 4458fi 4459 4460if test $ac_cv_header_stdc = yes; then 4461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4462 cat >conftest.$ac_ext <<_ACEOF 4463/* confdefs.h. */ 4464_ACEOF 4465cat confdefs.h >>conftest.$ac_ext 4466cat >>conftest.$ac_ext <<_ACEOF 4467/* end confdefs.h. */ 4468#include <stdlib.h> 4469 4470_ACEOF 4471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4472 $EGREP "free" >/dev/null 2>&1; then 4473 : 4474else 4475 ac_cv_header_stdc=no 4476fi 4477rm -f conftest* 4478 4479fi 4480 4481if test $ac_cv_header_stdc = yes; then 4482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4483 if test "$cross_compiling" = yes; then 4484 : 4485else 4486 cat >conftest.$ac_ext <<_ACEOF 4487/* confdefs.h. */ 4488_ACEOF 4489cat confdefs.h >>conftest.$ac_ext 4490cat >>conftest.$ac_ext <<_ACEOF 4491/* end confdefs.h. */ 4492#include <ctype.h> 4493#if ((' ' & 0x0FF) == 0x020) 4494# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4495# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4496#else 4497# define ISLOWER(c) \ 4498 (('a' <= (c) && (c) <= 'i') \ 4499 || ('j' <= (c) && (c) <= 'r') \ 4500 || ('s' <= (c) && (c) <= 'z')) 4501# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4502#endif 4503 4504#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4505int 4506main () 4507{ 4508 int i; 4509 for (i = 0; i < 256; i++) 4510 if (XOR (islower (i), ISLOWER (i)) 4511 || toupper (i) != TOUPPER (i)) 4512 exit(2); 4513 exit (0); 4514} 4515_ACEOF 4516rm -f conftest$ac_exeext 4517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4518 (eval $ac_link) 2>&5 4519 ac_status=$? 4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4523 (eval $ac_try) 2>&5 4524 ac_status=$? 4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4526 (exit $ac_status); }; }; then 4527 : 4528else 4529 echo "$as_me: program exited with status $ac_status" >&5 4530echo "$as_me: failed program was:" >&5 4531sed 's/^/| /' conftest.$ac_ext >&5 4532 4533( exit $ac_status ) 4534ac_cv_header_stdc=no 4535fi 4536rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4537fi 4538fi 4539fi 4540echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4541echo "${ECHO_T}$ac_cv_header_stdc" >&6 4542if test $ac_cv_header_stdc = yes; then 4543 4544cat >>confdefs.h <<\_ACEOF 4545#define STDC_HEADERS 1 4546_ACEOF 4547 4548fi 4549 4550# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4561 inttypes.h stdint.h unistd.h 4562do 4563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4564echo "$as_me:$LINENO: checking for $ac_header" >&5 4565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4566if eval "test \"\${$as_ac_Header+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$ac_includes_default 4576 4577#include <$ac_header> 4578_ACEOF 4579rm -f conftest.$ac_objext 4580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4581 (eval $ac_compile) 2>conftest.er1 4582 ac_status=$? 4583 grep -v '^ *+' conftest.er1 >conftest.err 4584 rm -f conftest.er1 4585 cat conftest.err >&5 4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4587 (exit $ac_status); } && 4588 { ac_try='test -z "$ac_c_werror_flag" 4589 || test ! -s conftest.err' 4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4591 (eval $ac_try) 2>&5 4592 ac_status=$? 4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4594 (exit $ac_status); }; } && 4595 { ac_try='test -s conftest.$ac_objext' 4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4597 (eval $ac_try) 2>&5 4598 ac_status=$? 4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4600 (exit $ac_status); }; }; then 4601 eval "$as_ac_Header=yes" 4602else 4603 echo "$as_me: failed program was:" >&5 4604sed 's/^/| /' conftest.$ac_ext >&5 4605 4606eval "$as_ac_Header=no" 4607fi 4608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4609fi 4610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4612if test `eval echo '${'$as_ac_Header'}'` = yes; then 4613 cat >>confdefs.h <<_ACEOF 4614#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4615_ACEOF 4616 4617fi 4618 4619done 4620 4621 4622 4623for ac_header in dlfcn.h 4624do 4625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4626if eval "test \"\${$as_ac_Header+set}\" = set"; then 4627 echo "$as_me:$LINENO: checking for $ac_header" >&5 4628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4629if eval "test \"\${$as_ac_Header+set}\" = set"; then 4630 echo $ECHO_N "(cached) $ECHO_C" >&6 4631fi 4632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4633echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4634else 4635 # Is the header compilable? 4636echo "$as_me:$LINENO: checking $ac_header usability" >&5 4637echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4638cat >conftest.$ac_ext <<_ACEOF 4639/* confdefs.h. */ 4640_ACEOF 4641cat confdefs.h >>conftest.$ac_ext 4642cat >>conftest.$ac_ext <<_ACEOF 4643/* end confdefs.h. */ 4644$ac_includes_default 4645#include <$ac_header> 4646_ACEOF 4647rm -f conftest.$ac_objext 4648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4649 (eval $ac_compile) 2>conftest.er1 4650 ac_status=$? 4651 grep -v '^ *+' conftest.er1 >conftest.err 4652 rm -f conftest.er1 4653 cat conftest.err >&5 4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4655 (exit $ac_status); } && 4656 { ac_try='test -z "$ac_c_werror_flag" 4657 || test ! -s conftest.err' 4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4659 (eval $ac_try) 2>&5 4660 ac_status=$? 4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4662 (exit $ac_status); }; } && 4663 { ac_try='test -s conftest.$ac_objext' 4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4665 (eval $ac_try) 2>&5 4666 ac_status=$? 4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4668 (exit $ac_status); }; }; then 4669 ac_header_compiler=yes 4670else 4671 echo "$as_me: failed program was:" >&5 4672sed 's/^/| /' conftest.$ac_ext >&5 4673 4674ac_header_compiler=no 4675fi 4676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4677echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4678echo "${ECHO_T}$ac_header_compiler" >&6 4679 4680# Is the header present? 4681echo "$as_me:$LINENO: checking $ac_header presence" >&5 4682echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4683cat >conftest.$ac_ext <<_ACEOF 4684/* confdefs.h. */ 4685_ACEOF 4686cat confdefs.h >>conftest.$ac_ext 4687cat >>conftest.$ac_ext <<_ACEOF 4688/* end confdefs.h. */ 4689#include <$ac_header> 4690_ACEOF 4691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4693 ac_status=$? 4694 grep -v '^ *+' conftest.er1 >conftest.err 4695 rm -f conftest.er1 4696 cat conftest.err >&5 4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4698 (exit $ac_status); } >/dev/null; then 4699 if test -s conftest.err; then 4700 ac_cpp_err=$ac_c_preproc_warn_flag 4701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4702 else 4703 ac_cpp_err= 4704 fi 4705else 4706 ac_cpp_err=yes 4707fi 4708if test -z "$ac_cpp_err"; then 4709 ac_header_preproc=yes 4710else 4711 echo "$as_me: failed program was:" >&5 4712sed 's/^/| /' conftest.$ac_ext >&5 4713 4714 ac_header_preproc=no 4715fi 4716rm -f conftest.err conftest.$ac_ext 4717echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4718echo "${ECHO_T}$ac_header_preproc" >&6 4719 4720# So? What about this header? 4721case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4722 yes:no: ) 4723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4724echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4726echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4727 ac_header_preproc=yes 4728 ;; 4729 no:yes:* ) 4730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4731echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4733echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4735echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4737echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4739echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4741echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4742 ( 4743 cat <<\_ASBOX 4744## ------------------------------- ## 4745## Report this to the sage lists. ## 4746## ------------------------------- ## 4747_ASBOX 4748 ) | 4749 sed "s/^/$as_me: WARNING: /" >&2 4750 ;; 4751esac 4752echo "$as_me:$LINENO: checking for $ac_header" >&5 4753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4754if eval "test \"\${$as_ac_Header+set}\" = set"; then 4755 echo $ECHO_N "(cached) $ECHO_C" >&6 4756else 4757 eval "$as_ac_Header=\$ac_header_preproc" 4758fi 4759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4760echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4761 4762fi 4763if test `eval echo '${'$as_ac_Header'}'` = yes; then 4764 cat >>confdefs.h <<_ACEOF 4765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4766_ACEOF 4767 4768fi 4769 4770done 4771 4772ac_ext=cc 4773ac_cpp='$CXXCPP $CPPFLAGS' 4774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4777if test -n "$ac_tool_prefix"; then 4778 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4779 do 4780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4781set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4782echo "$as_me:$LINENO: checking for $ac_word" >&5 4783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4784if test "${ac_cv_prog_CXX+set}" = set; then 4785 echo $ECHO_N "(cached) $ECHO_C" >&6 4786else 4787 if test -n "$CXX"; then 4788 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4789else 4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4791for as_dir in $PATH 4792do 4793 IFS=$as_save_IFS 4794 test -z "$as_dir" && as_dir=. 4795 for ac_exec_ext in '' $ac_executable_extensions; do 4796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4797 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4799 break 2 4800 fi 4801done 4802done 4803 4804fi 4805fi 4806CXX=$ac_cv_prog_CXX 4807if test -n "$CXX"; then 4808 echo "$as_me:$LINENO: result: $CXX" >&5 4809echo "${ECHO_T}$CXX" >&6 4810else 4811 echo "$as_me:$LINENO: result: no" >&5 4812echo "${ECHO_T}no" >&6 4813fi 4814 4815 test -n "$CXX" && break 4816 done 4817fi 4818if test -z "$CXX"; then 4819 ac_ct_CXX=$CXX 4820 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4821do 4822 # Extract the first word of "$ac_prog", so it can be a program name with args. 4823set dummy $ac_prog; ac_word=$2 4824echo "$as_me:$LINENO: checking for $ac_word" >&5 4825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4826if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4827 echo $ECHO_N "(cached) $ECHO_C" >&6 4828else 4829 if test -n "$ac_ct_CXX"; then 4830 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4831else 4832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4833for as_dir in $PATH 4834do 4835 IFS=$as_save_IFS 4836 test -z "$as_dir" && as_dir=. 4837 for ac_exec_ext in '' $ac_executable_extensions; do 4838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4839 ac_cv_prog_ac_ct_CXX="$ac_prog" 4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4841 break 2 4842 fi 4843done 4844done 4845 4846fi 4847fi 4848ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4849if test -n "$ac_ct_CXX"; then 4850 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4851echo "${ECHO_T}$ac_ct_CXX" >&6 4852else 4853 echo "$as_me:$LINENO: result: no" >&5 4854echo "${ECHO_T}no" >&6 4855fi 4856 4857 test -n "$ac_ct_CXX" && break 4858done 4859test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4860 4861 CXX=$ac_ct_CXX 4862fi 4863 4864 4865# Provide some information about the compiler. 4866echo "$as_me:$LINENO:" \ 4867 "checking for C++ compiler version" >&5 4868ac_compiler=`set X $ac_compile; echo $2` 4869{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4870 (eval $ac_compiler --version </dev/null >&5) 2>&5 4871 ac_status=$? 4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4873 (exit $ac_status); } 4874{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4875 (eval $ac_compiler -v </dev/null >&5) 2>&5 4876 ac_status=$? 4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4878 (exit $ac_status); } 4879{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4880 (eval $ac_compiler -V </dev/null >&5) 2>&5 4881 ac_status=$? 4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4883 (exit $ac_status); } 4884 4885echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4886echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4887if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4888 echo $ECHO_N "(cached) $ECHO_C" >&6 4889else 4890 cat >conftest.$ac_ext <<_ACEOF 4891/* confdefs.h. */ 4892_ACEOF 4893cat confdefs.h >>conftest.$ac_ext 4894cat >>conftest.$ac_ext <<_ACEOF 4895/* end confdefs.h. */ 4896 4897int 4898main () 4899{ 4900#ifndef __GNUC__ 4901 choke me 4902#endif 4903 4904 ; 4905 return 0; 4906} 4907_ACEOF 4908rm -f conftest.$ac_objext 4909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4910 (eval $ac_compile) 2>conftest.er1 4911 ac_status=$? 4912 grep -v '^ *+' conftest.er1 >conftest.err 4913 rm -f conftest.er1 4914 cat conftest.err >&5 4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4916 (exit $ac_status); } && 4917 { ac_try='test -z "$ac_cxx_werror_flag" 4918 || test ! -s conftest.err' 4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4920 (eval $ac_try) 2>&5 4921 ac_status=$? 4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4923 (exit $ac_status); }; } && 4924 { ac_try='test -s conftest.$ac_objext' 4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4926 (eval $ac_try) 2>&5 4927 ac_status=$? 4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4929 (exit $ac_status); }; }; then 4930 ac_compiler_gnu=yes 4931else 4932 echo "$as_me: failed program was:" >&5 4933sed 's/^/| /' conftest.$ac_ext >&5 4934 4935ac_compiler_gnu=no 4936fi 4937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4938ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4939 4940fi 4941echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4942echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4943GXX=`test $ac_compiler_gnu = yes && echo yes` 4944ac_test_CXXFLAGS=${CXXFLAGS+set} 4945ac_save_CXXFLAGS=$CXXFLAGS 4946CXXFLAGS="-g" 4947echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4948echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4949if test "${ac_cv_prog_cxx_g+set}" = set; then 4950 echo $ECHO_N "(cached) $ECHO_C" >&6 4951else 4952 cat >conftest.$ac_ext <<_ACEOF 4953/* confdefs.h. */ 4954_ACEOF 4955cat confdefs.h >>conftest.$ac_ext 4956cat >>conftest.$ac_ext <<_ACEOF 4957/* end confdefs.h. */ 4958 4959int 4960main () 4961{ 4962 4963 ; 4964 return 0; 4965} 4966_ACEOF 4967rm -f conftest.$ac_objext 4968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4969 (eval $ac_compile) 2>conftest.er1 4970 ac_status=$? 4971 grep -v '^ *+' conftest.er1 >conftest.err 4972 rm -f conftest.er1 4973 cat conftest.err >&5 4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4975 (exit $ac_status); } && 4976 { ac_try='test -z "$ac_cxx_werror_flag" 4977 || test ! -s conftest.err' 4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4979 (eval $ac_try) 2>&5 4980 ac_status=$? 4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4982 (exit $ac_status); }; } && 4983 { ac_try='test -s conftest.$ac_objext' 4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4985 (eval $ac_try) 2>&5 4986 ac_status=$? 4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4988 (exit $ac_status); }; }; then 4989 ac_cv_prog_cxx_g=yes 4990else 4991 echo "$as_me: failed program was:" >&5 4992sed 's/^/| /' conftest.$ac_ext >&5 4993 4994ac_cv_prog_cxx_g=no 4995fi 4996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4997fi 4998echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4999echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 5000if test "$ac_test_CXXFLAGS" = set; then 5001 CXXFLAGS=$ac_save_CXXFLAGS 5002elif test $ac_cv_prog_cxx_g = yes; then 5003 if test "$GXX" = yes; then 5004 CXXFLAGS="-g -O2" 5005 else 5006 CXXFLAGS="-g" 5007 fi 5008else 5009 if test "$GXX" = yes; then 5010 CXXFLAGS="-O2" 5011 else 5012 CXXFLAGS= 5013 fi 5014fi 5015for ac_declaration in \ 5016 '' \ 5017 'extern "C" void std::exit (int) throw (); using std::exit;' \ 5018 'extern "C" void std::exit (int); using std::exit;' \ 5019 'extern "C" void exit (int) throw ();' \ 5020 'extern "C" void exit (int);' \ 5021 'void exit (int);' 5022do 5023 cat >conftest.$ac_ext <<_ACEOF 5024/* confdefs.h. */ 5025_ACEOF 5026cat confdefs.h >>conftest.$ac_ext 5027cat >>conftest.$ac_ext <<_ACEOF 5028/* end confdefs.h. */ 5029$ac_declaration 5030#include <stdlib.h> 5031int 5032main () 5033{ 5034exit (42); 5035 ; 5036 return 0; 5037} 5038_ACEOF 5039rm -f conftest.$ac_objext 5040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5041 (eval $ac_compile) 2>conftest.er1 5042 ac_status=$? 5043 grep -v '^ *+' conftest.er1 >conftest.err 5044 rm -f conftest.er1 5045 cat conftest.err >&5 5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5047 (exit $ac_status); } && 5048 { ac_try='test -z "$ac_cxx_werror_flag" 5049 || test ! -s conftest.err' 5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5051 (eval $ac_try) 2>&5 5052 ac_status=$? 5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5054 (exit $ac_status); }; } && 5055 { ac_try='test -s conftest.$ac_objext' 5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5057 (eval $ac_try) 2>&5 5058 ac_status=$? 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5060 (exit $ac_status); }; }; then 5061 : 5062else 5063 echo "$as_me: failed program was:" >&5 5064sed 's/^/| /' conftest.$ac_ext >&5 5065 5066continue 5067fi 5068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5069 cat >conftest.$ac_ext <<_ACEOF 5070/* confdefs.h. */ 5071_ACEOF 5072cat confdefs.h >>conftest.$ac_ext 5073cat >>conftest.$ac_ext <<_ACEOF 5074/* end confdefs.h. */ 5075$ac_declaration 5076int 5077main () 5078{ 5079exit (42); 5080 ; 5081 return 0; 5082} 5083_ACEOF 5084rm -f conftest.$ac_objext 5085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5086 (eval $ac_compile) 2>conftest.er1 5087 ac_status=$? 5088 grep -v '^ *+' conftest.er1 >conftest.err 5089 rm -f conftest.er1 5090 cat conftest.err >&5 5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5092 (exit $ac_status); } && 5093 { ac_try='test -z "$ac_cxx_werror_flag" 5094 || test ! -s conftest.err' 5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5096 (eval $ac_try) 2>&5 5097 ac_status=$? 5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5099 (exit $ac_status); }; } && 5100 { ac_try='test -s conftest.$ac_objext' 5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5102 (eval $ac_try) 2>&5 5103 ac_status=$? 5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5105 (exit $ac_status); }; }; then 5106 break 5107else 5108 echo "$as_me: failed program was:" >&5 5109sed 's/^/| /' conftest.$ac_ext >&5 5110 5111fi 5112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5113done 5114rm -f conftest* 5115if test -n "$ac_declaration"; then 5116 echo '#ifdef __cplusplus' >>confdefs.h 5117 echo $ac_declaration >>confdefs.h 5118 echo '#endif' >>confdefs.h 5119fi 5120 5121ac_ext=cc 5122ac_cpp='$CXXCPP $CPPFLAGS' 5123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5126 5127depcc="$CXX" am_compiler_list= 5128 5129echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5130echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5131if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5132 echo $ECHO_N "(cached) $ECHO_C" >&6 5133else 5134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5135 # We make a subdir and do the tests there. Otherwise we can end up 5136 # making bogus files that we don't know about and never remove. For 5137 # instance it was reported that on HP-UX the gcc test will end up 5138 # making a dummy file named `D' -- because `-MD' means `put the output 5139 # in D'. 5140 mkdir conftest.dir 5141 # Copy depcomp to subdir because otherwise we won't find it if we're 5142 # using a relative directory. 5143 cp "$am_depcomp" conftest.dir 5144 cd conftest.dir 5145 # We will build objects and dependencies in a subdirectory because 5146 # it helps to detect inapplicable dependency modes. For instance 5147 # both Tru64's cc and ICC support -MD to output dependencies as a 5148 # side effect of compilation, but ICC will put the dependencies in 5149 # the current directory while Tru64 will put them in the object 5150 # directory. 5151 mkdir sub 5152 5153 am_cv_CXX_dependencies_compiler_type=none 5154 if test "$am_compiler_list" = ""; then 5155 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5156 fi 5157 for depmode in $am_compiler_list; do 5158 # Setup a source with many dependencies, because some compilers 5159 # like to wrap large dependency lists on column 80 (with \), and 5160 # we should not choose a depcomp mode which is confused by this. 5161 # 5162 # We need to recreate these files for each test, as the compiler may 5163 # overwrite some of them when testing with obscure command lines. 5164 # This happens at least with the AIX C compiler. 5165 : > sub/conftest.c 5166 for i in 1 2 3 4 5 6; do 5167 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5168 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5169 # Solaris 8's {/usr,}/bin/sh. 5170 touch sub/conftst$i.h 5171 done 5172 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5173 5174 case $depmode in 5175 nosideeffect) 5176 # after this tag, mechanisms are not by side-effect, so they'll 5177 # only be used when explicitly requested 5178 if test "x$enable_dependency_tracking" = xyes; then 5179 continue 5180 else 5181 break 5182 fi 5183 ;; 5184 none) break ;; 5185 esac 5186 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5187 # mode. It turns out that the SunPro C++ compiler does not properly 5188 # handle `-M -o', and we need to detect this. 5189 if depmode=$depmode \ 5190 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5191 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5192 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5193 >/dev/null 2>conftest.err && 5194 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5195 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5196 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5197 # icc doesn't choke on unknown options, it will just issue warnings 5198 # or remarks (even with -Werror). So we grep stderr for any message 5199 # that says an option was ignored or not supported. 5200 # When given -MP, icc 7.0 and 7.1 complain thusly: 5201 # icc: Command line warning: ignoring option '-M'; no argument required 5202 # The diagnosis changed in icc 8.0: 5203 # icc: Command line remark: option '-MP' not supported 5204 if (grep 'ignoring option' conftest.err || 5205 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5206 am_cv_CXX_dependencies_compiler_type=$depmode 5207 break 5208 fi 5209 fi 5210 done 5211 5212 cd .. 5213 rm -rf conftest.dir 5214else 5215 am_cv_CXX_dependencies_compiler_type=none 5216fi 5217 5218fi 5219echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5220echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5221CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5222 5223 5224 5225if 5226 test "x$enable_dependency_tracking" != xno \ 5227 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5228 am__fastdepCXX_TRUE= 5229 am__fastdepCXX_FALSE='#' 5230else 5231 am__fastdepCXX_TRUE='#' 5232 am__fastdepCXX_FALSE= 5233fi 5234 5235 5236 5237 5238if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5239 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5240 (test "X$CXX" != "Xg++"))) ; then 5241 ac_ext=cc 5242ac_cpp='$CXXCPP $CPPFLAGS' 5243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5246echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5247echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5248if test -z "$CXXCPP"; then 5249 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5250 echo $ECHO_N "(cached) $ECHO_C" >&6 5251else 5252 # Double quotes because CXXCPP needs to be expanded 5253 for CXXCPP in "$CXX -E" "/lib/cpp" 5254 do 5255 ac_preproc_ok=false 5256for ac_cxx_preproc_warn_flag in '' yes 5257do 5258 # Use a header file that comes with gcc, so configuring glibc 5259 # with a fresh cross-compiler works. 5260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5261 # <limits.h> exists even on freestanding compilers. 5262 # On the NeXT, cc -E runs the code through the compiler's parser, 5263 # not just through cpp. "Syntax error" is here to catch this case. 5264 cat >conftest.$ac_ext <<_ACEOF 5265/* confdefs.h. */ 5266_ACEOF 5267cat confdefs.h >>conftest.$ac_ext 5268cat >>conftest.$ac_ext <<_ACEOF 5269/* end confdefs.h. */ 5270#ifdef __STDC__ 5271# include <limits.h> 5272#else 5273# include <assert.h> 5274#endif 5275 Syntax error 5276_ACEOF 5277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5279 ac_status=$? 5280 grep -v '^ *+' conftest.er1 >conftest.err 5281 rm -f conftest.er1 5282 cat conftest.err >&5 5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5284 (exit $ac_status); } >/dev/null; then 5285 if test -s conftest.err; then 5286 ac_cpp_err=$ac_cxx_preproc_warn_flag 5287 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5288 else 5289 ac_cpp_err= 5290 fi 5291else 5292 ac_cpp_err=yes 5293fi 5294if test -z "$ac_cpp_err"; then 5295 : 5296else 5297 echo "$as_me: failed program was:" >&5 5298sed 's/^/| /' conftest.$ac_ext >&5 5299 5300 # Broken: fails on valid input. 5301continue 5302fi 5303rm -f conftest.err conftest.$ac_ext 5304 5305 # OK, works on sane cases. Now check whether non-existent headers 5306 # can be detected and how. 5307 cat >conftest.$ac_ext <<_ACEOF 5308/* confdefs.h. */ 5309_ACEOF 5310cat confdefs.h >>conftest.$ac_ext 5311cat >>conftest.$ac_ext <<_ACEOF 5312/* end confdefs.h. */ 5313#include <ac_nonexistent.h> 5314_ACEOF 5315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5317 ac_status=$? 5318 grep -v '^ *+' conftest.er1 >conftest.err 5319 rm -f conftest.er1 5320 cat conftest.err >&5 5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5322 (exit $ac_status); } >/dev/null; then 5323 if test -s conftest.err; then 5324 ac_cpp_err=$ac_cxx_preproc_warn_flag 5325 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5326 else 5327 ac_cpp_err= 5328 fi 5329else 5330 ac_cpp_err=yes 5331fi 5332if test -z "$ac_cpp_err"; then 5333 # Broken: success on invalid input. 5334continue 5335else 5336 echo "$as_me: failed program was:" >&5 5337sed 's/^/| /' conftest.$ac_ext >&5 5338 5339 # Passes both tests. 5340ac_preproc_ok=: 5341break 5342fi 5343rm -f conftest.err conftest.$ac_ext 5344 5345done 5346# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5347rm -f conftest.err conftest.$ac_ext 5348if $ac_preproc_ok; then 5349 break 5350fi 5351 5352 done 5353 ac_cv_prog_CXXCPP=$CXXCPP 5354 5355fi 5356 CXXCPP=$ac_cv_prog_CXXCPP 5357else 5358 ac_cv_prog_CXXCPP=$CXXCPP 5359fi 5360echo "$as_me:$LINENO: result: $CXXCPP" >&5 5361echo "${ECHO_T}$CXXCPP" >&6 5362ac_preproc_ok=false 5363for ac_cxx_preproc_warn_flag in '' yes 5364do 5365 # Use a header file that comes with gcc, so configuring glibc 5366 # with a fresh cross-compiler works. 5367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5368 # <limits.h> exists even on freestanding compilers. 5369 # On the NeXT, cc -E runs the code through the compiler's parser, 5370 # not just through cpp. "Syntax error" is here to catch this case. 5371 cat >conftest.$ac_ext <<_ACEOF 5372/* confdefs.h. */ 5373_ACEOF 5374cat confdefs.h >>conftest.$ac_ext 5375cat >>conftest.$ac_ext <<_ACEOF 5376/* end confdefs.h. */ 5377#ifdef __STDC__ 5378# include <limits.h> 5379#else 5380# include <assert.h> 5381#endif 5382 Syntax error 5383_ACEOF 5384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5386 ac_status=$? 5387 grep -v '^ *+' conftest.er1 >conftest.err 5388 rm -f conftest.er1 5389 cat conftest.err >&5 5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5391 (exit $ac_status); } >/dev/null; then 5392 if test -s conftest.err; then 5393 ac_cpp_err=$ac_cxx_preproc_warn_flag 5394 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5395 else 5396 ac_cpp_err= 5397 fi 5398else 5399 ac_cpp_err=yes 5400fi 5401if test -z "$ac_cpp_err"; then 5402 : 5403else 5404 echo "$as_me: failed program was:" >&5 5405sed 's/^/| /' conftest.$ac_ext >&5 5406 5407 # Broken: fails on valid input. 5408continue 5409fi 5410rm -f conftest.err conftest.$ac_ext 5411 5412 # OK, works on sane cases. Now check whether non-existent headers 5413 # can be detected and how. 5414 cat >conftest.$ac_ext <<_ACEOF 5415/* confdefs.h. */ 5416_ACEOF 5417cat confdefs.h >>conftest.$ac_ext 5418cat >>conftest.$ac_ext <<_ACEOF 5419/* end confdefs.h. */ 5420#include <ac_nonexistent.h> 5421_ACEOF 5422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5424 ac_status=$? 5425 grep -v '^ *+' conftest.er1 >conftest.err 5426 rm -f conftest.er1 5427 cat conftest.err >&5 5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5429 (exit $ac_status); } >/dev/null; then 5430 if test -s conftest.err; then 5431 ac_cpp_err=$ac_cxx_preproc_warn_flag 5432 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5433 else 5434 ac_cpp_err= 5435 fi 5436else 5437 ac_cpp_err=yes 5438fi 5439if test -z "$ac_cpp_err"; then 5440 # Broken: success on invalid input. 5441continue 5442else 5443 echo "$as_me: failed program was:" >&5 5444sed 's/^/| /' conftest.$ac_ext >&5 5445 5446 # Passes both tests. 5447ac_preproc_ok=: 5448break 5449fi 5450rm -f conftest.err conftest.$ac_ext 5451 5452done 5453# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5454rm -f conftest.err conftest.$ac_ext 5455if $ac_preproc_ok; then 5456 : 5457else 5458 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5459See \`config.log' for more details." >&5 5460echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5461See \`config.log' for more details." >&2;} 5462 { (exit 1); exit 1; }; } 5463fi 5464 5465ac_ext=cc 5466ac_cpp='$CXXCPP $CPPFLAGS' 5467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5470 5471fi 5472 5473 5474ac_ext=f 5475ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5476ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5477ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5478if test -n "$ac_tool_prefix"; then 5479 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5480 do 5481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5482set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5483echo "$as_me:$LINENO: checking for $ac_word" >&5 5484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5485if test "${ac_cv_prog_F77+set}" = set; then 5486 echo $ECHO_N "(cached) $ECHO_C" >&6 5487else 5488 if test -n "$F77"; then 5489 ac_cv_prog_F77="$F77" # Let the user override the test. 5490else 5491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5492for as_dir in $PATH 5493do 5494 IFS=$as_save_IFS 5495 test -z "$as_dir" && as_dir=. 5496 for ac_exec_ext in '' $ac_executable_extensions; do 5497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5498 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5500 break 2 5501 fi 5502done 5503done 5504 5505fi 5506fi 5507F77=$ac_cv_prog_F77 5508if test -n "$F77"; then 5509 echo "$as_me:$LINENO: result: $F77" >&5 5510echo "${ECHO_T}$F77" >&6 5511else 5512 echo "$as_me:$LINENO: result: no" >&5 5513echo "${ECHO_T}no" >&6 5514fi 5515 5516 test -n "$F77" && break 5517 done 5518fi 5519if test -z "$F77"; then 5520 ac_ct_F77=$F77 5521 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5522do 5523 # Extract the first word of "$ac_prog", so it can be a program name with args. 5524set dummy $ac_prog; ac_word=$2 5525echo "$as_me:$LINENO: checking for $ac_word" >&5 5526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5527if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5528 echo $ECHO_N "(cached) $ECHO_C" >&6 5529else 5530 if test -n "$ac_ct_F77"; then 5531 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5532else 5533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5534for as_dir in $PATH 5535do 5536 IFS=$as_save_IFS 5537 test -z "$as_dir" && as_dir=. 5538 for ac_exec_ext in '' $ac_executable_extensions; do 5539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5540 ac_cv_prog_ac_ct_F77="$ac_prog" 5541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5542 break 2 5543 fi 5544done 5545done 5546 5547fi 5548fi 5549ac_ct_F77=$ac_cv_prog_ac_ct_F77 5550if test -n "$ac_ct_F77"; then 5551 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5552echo "${ECHO_T}$ac_ct_F77" >&6 5553else 5554 echo "$as_me:$LINENO: result: no" >&5 5555echo "${ECHO_T}no" >&6 5556fi 5557 5558 test -n "$ac_ct_F77" && break 5559done 5560 5561 F77=$ac_ct_F77 5562fi 5563 5564 5565# Provide some information about the compiler. 5566echo "$as_me:5566:" \ 5567 "checking for Fortran 77 compiler version" >&5 5568ac_compiler=`set X $ac_compile; echo $2` 5569{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5570 (eval $ac_compiler --version </dev/null >&5) 2>&5 5571 ac_status=$? 5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5573 (exit $ac_status); } 5574{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5575 (eval $ac_compiler -v </dev/null >&5) 2>&5 5576 ac_status=$? 5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5578 (exit $ac_status); } 5579{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5580 (eval $ac_compiler -V </dev/null >&5) 2>&5 5581 ac_status=$? 5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5583 (exit $ac_status); } 5584rm -f a.out 5585 5586# If we don't use `.F' as extension, the preprocessor is not run on the 5587# input file. (Note that this only needs to work for GNU compilers.) 5588ac_save_ext=$ac_ext 5589ac_ext=F 5590echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5591echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5592if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5593 echo $ECHO_N "(cached) $ECHO_C" >&6 5594else 5595 cat >conftest.$ac_ext <<_ACEOF 5596 program main 5597#ifndef __GNUC__ 5598 choke me 5599#endif 5600 5601 end 5602_ACEOF 5603rm -f conftest.$ac_objext 5604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5605 (eval $ac_compile) 2>conftest.er1 5606 ac_status=$? 5607 grep -v '^ *+' conftest.er1 >conftest.err 5608 rm -f conftest.er1 5609 cat conftest.err >&5 5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5611 (exit $ac_status); } && 5612 { ac_try='test -z "$ac_f77_werror_flag" 5613 || test ! -s conftest.err' 5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5615 (eval $ac_try) 2>&5 5616 ac_status=$? 5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5618 (exit $ac_status); }; } && 5619 { ac_try='test -s conftest.$ac_objext' 5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5621 (eval $ac_try) 2>&5 5622 ac_status=$? 5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5624 (exit $ac_status); }; }; then 5625 ac_compiler_gnu=yes 5626else 5627 echo "$as_me: failed program was:" >&5 5628sed 's/^/| /' conftest.$ac_ext >&5 5629 5630ac_compiler_gnu=no 5631fi 5632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5633ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5634 5635fi 5636echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5637echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5638ac_ext=$ac_save_ext 5639ac_test_FFLAGS=${FFLAGS+set} 5640ac_save_FFLAGS=$FFLAGS 5641FFLAGS= 5642echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5643echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5644if test "${ac_cv_prog_f77_g+set}" = set; then 5645 echo $ECHO_N "(cached) $ECHO_C" >&6 5646else 5647 FFLAGS=-g 5648cat >conftest.$ac_ext <<_ACEOF 5649 program main 5650 5651 end 5652_ACEOF 5653rm -f conftest.$ac_objext 5654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5655 (eval $ac_compile) 2>conftest.er1 5656 ac_status=$? 5657 grep -v '^ *+' conftest.er1 >conftest.err 5658 rm -f conftest.er1 5659 cat conftest.err >&5 5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5661 (exit $ac_status); } && 5662 { ac_try='test -z "$ac_f77_werror_flag" 5663 || test ! -s conftest.err' 5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5665 (eval $ac_try) 2>&5 5666 ac_status=$? 5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5668 (exit $ac_status); }; } && 5669 { ac_try='test -s conftest.$ac_objext' 5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5671 (eval $ac_try) 2>&5 5672 ac_status=$? 5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5674 (exit $ac_status); }; }; then 5675 ac_cv_prog_f77_g=yes 5676else 5677 echo "$as_me: failed program was:" >&5 5678sed 's/^/| /' conftest.$ac_ext >&5 5679 5680ac_cv_prog_f77_g=no 5681fi 5682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5683 5684fi 5685echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5686echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5687if test "$ac_test_FFLAGS" = set; then 5688 FFLAGS=$ac_save_FFLAGS 5689elif test $ac_cv_prog_f77_g = yes; then 5690 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5691 FFLAGS="-g -O2" 5692 else 5693 FFLAGS="-g" 5694 fi 5695else 5696 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5697 FFLAGS="-O2" 5698 else 5699 FFLAGS= 5700 fi 5701fi 5702 5703G77=`test $ac_compiler_gnu = yes && echo yes` 5704ac_ext=c 5705ac_cpp='$CPP $CPPFLAGS' 5706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5708ac_compiler_gnu=$ac_cv_c_compiler_gnu 5709 5710 5711 5712# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5713 5714# find the maximum length of command line arguments 5715echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5716echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5717if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5718 echo $ECHO_N "(cached) $ECHO_C" >&6 5719else 5720 i=0 5721 teststring="ABCD" 5722 5723 case $build_os in 5724 msdosdjgpp*) 5725 # On DJGPP, this test can blow up pretty badly due to problems in libc 5726 # (any single argument exceeding 2000 bytes causes a buffer overrun 5727 # during glob expansion). Even if it were fixed, the result of this 5728 # check would be larger than it should be. 5729 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5730 ;; 5731 5732 gnu*) 5733 # Under GNU Hurd, this test is not required because there is 5734 # no limit to the length of command line arguments. 5735 # Libtool will interpret -1 as no limit whatsoever 5736 lt_cv_sys_max_cmd_len=-1; 5737 ;; 5738 5739 cygwin* | mingw*) 5740 # On Win9x/ME, this test blows up -- it succeeds, but takes 5741 # about 5 minutes as the teststring grows exponentially. 5742 # Worse, since 9x/ME are not pre-emptively multitasking, 5743 # you end up with a "frozen" computer, even though with patience 5744 # the test eventually succeeds (with a max line length of 256k). 5745 # Instead, let's just punt: use the minimum linelength reported by 5746 # all of the supported platforms: 8192 (on NT/2K/XP). 5747 lt_cv_sys_max_cmd_len=8192; 5748 ;; 5749 5750 amigaos*) 5751 # On AmigaOS with pdksh, this test takes hours, literally. 5752 # So we just punt and use a minimum line length of 8192. 5753 lt_cv_sys_max_cmd_len=8192; 5754 ;; 5755 5756 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5757 # This has been around since 386BSD, at least. Likely further. 5758 if test -x /sbin/sysctl; then 5759 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5760 elif test -x /usr/sbin/sysctl; then 5761 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5762 else 5763 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5764 fi 5765 # And add a safety zone 5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5768 ;; 5769 5770 interix*) 5771 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5772 lt_cv_sys_max_cmd_len=196608 5773 ;; 5774 5775 osf*) 5776 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5777 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5778 # nice to cause kernel panics so lets avoid the loop below. 5779 # First set a reasonable default. 5780 lt_cv_sys_max_cmd_len=16384 5781 # 5782 if test -x /sbin/sysconfig; then 5783 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5784 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5785 esac 5786 fi 5787 ;; 5788 sco3.2v5*) 5789 lt_cv_sys_max_cmd_len=102400 5790 ;; 5791 sysv5* | sco5v6* | sysv4.2uw2*) 5792 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5793 if test -n "$kargmax"; then 5794 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5795 else 5796 lt_cv_sys_max_cmd_len=32768 5797 fi 5798 ;; 5799 *) 5800 # If test is not a shell built-in, we'll probably end up computing a 5801 # maximum length that is only half of the actual maximum length, but 5802 # we can't tell. 5803 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5804 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5805 = "XX$teststring") >/dev/null 2>&1 && 5806 new_result=`expr "X$teststring" : ".*" 2>&1` && 5807 lt_cv_sys_max_cmd_len=$new_result && 5808 test $i != 17 # 1/2 MB should be enough 5809 do 5810 i=`expr $i + 1` 5811 teststring=$teststring$teststring 5812 done 5813 teststring= 5814 # Add a significant safety factor because C++ compilers can tack on massive 5815 # amounts of additional arguments before passing them to the linker. 5816 # It appears as though 1/2 is a usable value. 5817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5818 ;; 5819 esac 5820 5821fi 5822 5823if test -n $lt_cv_sys_max_cmd_len ; then 5824 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5825echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5826else 5827 echo "$as_me:$LINENO: result: none" >&5 5828echo "${ECHO_T}none" >&6 5829fi 5830 5831 5832 5833 5834# Check for command to grab the raw symbol name followed by C symbol from nm. 5835echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5836echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5837if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5838 echo $ECHO_N "(cached) $ECHO_C" >&6 5839else 5840 5841# These are sane defaults that work on at least a few old systems. 5842# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5843 5844# Character class describing NM global symbol codes. 5845symcode='[BCDEGRST]' 5846 5847# Regexp to match symbols that can be accessed directly from C. 5848sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5849 5850# Transform an extracted symbol line into a proper C declaration 5851lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5852 5853# Transform an extracted symbol line into symbol name and symbol address 5854lt_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'" 5855 5856# Define system-specific variables. 5857case $host_os in 5858aix*) 5859 symcode='[BCDT]' 5860 ;; 5861cygwin* | mingw* | pw32*) 5862 symcode='[ABCDGISTW]' 5863 ;; 5864hpux*) # Its linker distinguishes data from code symbols 5865 if test "$host_cpu" = ia64; then 5866 symcode='[ABCDEGRST]' 5867 fi 5868 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5869 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'" 5870 ;; 5871linux*) 5872 if test "$host_cpu" = ia64; then 5873 symcode='[ABCDGIRSTW]' 5874 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5875 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'" 5876 fi 5877 ;; 5878irix* | nonstopux*) 5879 symcode='[BCDEGRST]' 5880 ;; 5881osf*) 5882 symcode='[BCDEGQRST]' 5883 ;; 5884solaris*) 5885 symcode='[BDRT]' 5886 ;; 5887sco3.2v5*) 5888 symcode='[DT]' 5889 ;; 5890sysv4.2uw2*) 5891 symcode='[DT]' 5892 ;; 5893sysv5* | sco5v6* | unixware* | OpenUNIX*) 5894 symcode='[ABDT]' 5895 ;; 5896sysv4) 5897 symcode='[DFNSTU]' 5898 ;; 5899esac 5900 5901# Handle CRLF in mingw tool chain 5902opt_cr= 5903case $build_os in 5904mingw*) 5905 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5906 ;; 5907esac 5908 5909# If we're using GNU nm, then use its standard symbol codes. 5910case `$NM -V 2>&1` in 5911*GNU* | *'with BFD'*) 5912 symcode='[ABCDGIRSTW]' ;; 5913esac 5914 5915# Try without a prefix undercore, then with it. 5916for ac_symprfx in "" "_"; do 5917 5918 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5919 symxfrm="\\1 $ac_symprfx\\2 \\2" 5920 5921 # Write the raw and C identifiers. 5922 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5923 5924 # Check to see that the pipe works correctly. 5925 pipe_works=no 5926 5927 rm -f conftest* 5928 cat > conftest.$ac_ext <<EOF 5929#ifdef __cplusplus 5930extern "C" { 5931#endif 5932char nm_test_var; 5933void nm_test_func(){} 5934#ifdef __cplusplus 5935} 5936#endif 5937int main(){nm_test_var='a';nm_test_func();return(0);} 5938EOF 5939 5940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5941 (eval $ac_compile) 2>&5 5942 ac_status=$? 5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5944 (exit $ac_status); }; then 5945 # Now try to grab the symbols. 5946 nlist=conftest.nm 5947 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5948 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5949 ac_status=$? 5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5951 (exit $ac_status); } && test -s "$nlist"; then 5952 # Try sorting and uniquifying the output. 5953 if sort "$nlist" | uniq > "$nlist"T; then 5954 mv -f "$nlist"T "$nlist" 5955 else 5956 rm -f "$nlist"T 5957 fi 5958 5959 # Make sure that we snagged all the symbols we need. 5960 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5961 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5962 cat <<EOF > conftest.$ac_ext 5963#ifdef __cplusplus 5964extern "C" { 5965#endif 5966 5967EOF 5968 # Now generate the symbol file. 5969 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5970 5971 cat <<EOF >> conftest.$ac_ext 5972#if defined (__STDC__) && __STDC__ 5973# define lt_ptr_t void * 5974#else 5975# define lt_ptr_t char * 5976# define const 5977#endif 5978 5979/* The mapping between symbol names and symbols. */ 5980const struct { 5981 const char *name; 5982 lt_ptr_t address; 5983} 5984lt_preloaded_symbols[] = 5985{ 5986EOF 5987 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5988 cat <<\EOF >> conftest.$ac_ext 5989 {0, (lt_ptr_t) 0} 5990}; 5991 5992#ifdef __cplusplus 5993} 5994#endif 5995EOF 5996 # Now try linking the two files. 5997 mv conftest.$ac_objext conftstm.$ac_objext 5998 lt_save_LIBS="$LIBS" 5999 lt_save_CFLAGS="$CFLAGS" 6000 LIBS="conftstm.$ac_objext" 6001 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6003 (eval $ac_link) 2>&5 6004 ac_status=$? 6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6006 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6007 pipe_works=yes 6008 fi 6009 LIBS="$lt_save_LIBS" 6010 CFLAGS="$lt_save_CFLAGS" 6011 else 6012 echo "cannot find nm_test_func in $nlist" >&5 6013 fi 6014 else 6015 echo "cannot find nm_test_var in $nlist" >&5 6016 fi 6017 else 6018 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6019 fi 6020 else 6021 echo "$progname: failed program was:" >&5 6022 cat conftest.$ac_ext >&5 6023 fi 6024 rm -f conftest* conftst* 6025 6026 # Do not use the global_symbol_pipe unless it works. 6027 if test "$pipe_works" = yes; then 6028 break 6029 else 6030 lt_cv_sys_global_symbol_pipe= 6031 fi 6032done 6033 6034fi 6035 6036if test -z "$lt_cv_sys_global_symbol_pipe"; then 6037 lt_cv_sys_global_symbol_to_cdecl= 6038fi 6039if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6040 echo "$as_me:$LINENO: result: failed" >&5 6041echo "${ECHO_T}failed" >&6 6042else 6043 echo "$as_me:$LINENO: result: ok" >&5 6044echo "${ECHO_T}ok" >&6 6045fi 6046 6047echo "$as_me:$LINENO: checking for objdir" >&5 6048echo $ECHO_N "checking for objdir... $ECHO_C" >&6 6049if test "${lt_cv_objdir+set}" = set; then 6050 echo $ECHO_N "(cached) $ECHO_C" >&6 6051else 6052 rm -f .libs 2>/dev/null 6053mkdir .libs 2>/dev/null 6054if test -d .libs; then 6055 lt_cv_objdir=.libs 6056else 6057 # MS-DOS does not allow filenames that begin with a dot. 6058 lt_cv_objdir=_libs 6059fi 6060rmdir .libs 2>/dev/null 6061fi 6062echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6063echo "${ECHO_T}$lt_cv_objdir" >&6 6064objdir=$lt_cv_objdir 6065 6066 6067 6068 6069 6070case $host_os in 6071aix3*) 6072 # AIX sometimes has problems with the GCC collect2 program. For some 6073 # reason, if we set the COLLECT_NAMES environment variable, the problems 6074 # vanish in a puff of smoke. 6075 if test "X${COLLECT_NAMES+set}" != Xset; then 6076 COLLECT_NAMES= 6077 export COLLECT_NAMES 6078 fi 6079 ;; 6080esac 6081 6082# Sed substitution that helps us do robust quoting. It backslashifies 6083# metacharacters that are still active within double-quoted strings. 6084Xsed='sed -e 1s/^X//' 6085sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6086 6087# Same as above, but do not quote variable references. 6088double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6089 6090# Sed substitution to delay expansion of an escaped shell variable in a 6091# double_quote_subst'ed string. 6092delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6093 6094# Sed substitution to avoid accidental globbing in evaled expressions 6095no_glob_subst='s/\*/\\\*/g' 6096 6097# Constants: 6098rm="rm -f" 6099 6100# Global variables: 6101default_ofile=libtool 6102can_build_shared=yes 6103 6104# All known linkers require a `.a' archive for static linking (except MSVC, 6105# which needs '.lib'). 6106libext=a 6107ltmain="$ac_aux_dir/ltmain.sh" 6108ofile="$default_ofile" 6109with_gnu_ld="$lt_cv_prog_gnu_ld" 6110 6111if test -n "$ac_tool_prefix"; then 6112 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6113set dummy ${ac_tool_prefix}ar; ac_word=$2 6114echo "$as_me:$LINENO: checking for $ac_word" >&5 6115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6116if test "${ac_cv_prog_AR+set}" = set; then 6117 echo $ECHO_N "(cached) $ECHO_C" >&6 6118else 6119 if test -n "$AR"; then 6120 ac_cv_prog_AR="$AR" # Let the user override the test. 6121else 6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6123for as_dir in $PATH 6124do 6125 IFS=$as_save_IFS 6126 test -z "$as_dir" && as_dir=. 6127 for ac_exec_ext in '' $ac_executable_extensions; do 6128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6129 ac_cv_prog_AR="${ac_tool_prefix}ar" 6130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6131 break 2 6132 fi 6133done 6134done 6135 6136fi 6137fi 6138AR=$ac_cv_prog_AR 6139if test -n "$AR"; then 6140 echo "$as_me:$LINENO: result: $AR" >&5 6141echo "${ECHO_T}$AR" >&6 6142else 6143 echo "$as_me:$LINENO: result: no" >&5 6144echo "${ECHO_T}no" >&6 6145fi 6146 6147fi 6148if test -z "$ac_cv_prog_AR"; then 6149 ac_ct_AR=$AR 6150 # Extract the first word of "ar", so it can be a program name with args. 6151set dummy ar; ac_word=$2 6152echo "$as_me:$LINENO: checking for $ac_word" >&5 6153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6154if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6155 echo $ECHO_N "(cached) $ECHO_C" >&6 6156else 6157 if test -n "$ac_ct_AR"; then 6158 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6159else 6160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6161for as_dir in $PATH 6162do 6163 IFS=$as_save_IFS 6164 test -z "$as_dir" && as_dir=. 6165 for ac_exec_ext in '' $ac_executable_extensions; do 6166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6167 ac_cv_prog_ac_ct_AR="ar" 6168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6169 break 2 6170 fi 6171done 6172done 6173 6174 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6175fi 6176fi 6177ac_ct_AR=$ac_cv_prog_ac_ct_AR 6178if test -n "$ac_ct_AR"; then 6179 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6180echo "${ECHO_T}$ac_ct_AR" >&6 6181else 6182 echo "$as_me:$LINENO: result: no" >&5 6183echo "${ECHO_T}no" >&6 6184fi 6185 6186 AR=$ac_ct_AR 6187else 6188 AR="$ac_cv_prog_AR" 6189fi 6190 6191if test -n "$ac_tool_prefix"; then 6192 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6193set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6194echo "$as_me:$LINENO: checking for $ac_word" >&5 6195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6196if test "${ac_cv_prog_RANLIB+set}" = set; then 6197 echo $ECHO_N "(cached) $ECHO_C" >&6 6198else 6199 if test -n "$RANLIB"; then 6200 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6201else 6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6203for as_dir in $PATH 6204do 6205 IFS=$as_save_IFS 6206 test -z "$as_dir" && as_dir=. 6207 for ac_exec_ext in '' $ac_executable_extensions; do 6208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6209 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6211 break 2 6212 fi 6213done 6214done 6215 6216fi 6217fi 6218RANLIB=$ac_cv_prog_RANLIB 6219if test -n "$RANLIB"; then 6220 echo "$as_me:$LINENO: result: $RANLIB" >&5 6221echo "${ECHO_T}$RANLIB" >&6 6222else 6223 echo "$as_me:$LINENO: result: no" >&5 6224echo "${ECHO_T}no" >&6 6225fi 6226 6227fi 6228if test -z "$ac_cv_prog_RANLIB"; then 6229 ac_ct_RANLIB=$RANLIB 6230 # Extract the first word of "ranlib", so it can be a program name with args. 6231set dummy ranlib; ac_word=$2 6232echo "$as_me:$LINENO: checking for $ac_word" >&5 6233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6234if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6235 echo $ECHO_N "(cached) $ECHO_C" >&6 6236else 6237 if test -n "$ac_ct_RANLIB"; then 6238 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6239else 6240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6241for as_dir in $PATH 6242do 6243 IFS=$as_save_IFS 6244 test -z "$as_dir" && as_dir=. 6245 for ac_exec_ext in '' $ac_executable_extensions; do 6246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6247 ac_cv_prog_ac_ct_RANLIB="ranlib" 6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6249 break 2 6250 fi 6251done 6252done 6253 6254 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6255fi 6256fi 6257ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6258if test -n "$ac_ct_RANLIB"; then 6259 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6260echo "${ECHO_T}$ac_ct_RANLIB" >&6 6261else 6262 echo "$as_me:$LINENO: result: no" >&5 6263echo "${ECHO_T}no" >&6 6264fi 6265 6266 RANLIB=$ac_ct_RANLIB 6267else 6268 RANLIB="$ac_cv_prog_RANLIB" 6269fi 6270 6271if test -n "$ac_tool_prefix"; then 6272 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6273set dummy ${ac_tool_prefix}strip; ac_word=$2 6274echo "$as_me:$LINENO: checking for $ac_word" >&5 6275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6276if test "${ac_cv_prog_STRIP+set}" = set; then 6277 echo $ECHO_N "(cached) $ECHO_C" >&6 6278else 6279 if test -n "$STRIP"; then 6280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6281else 6282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6283for as_dir in $PATH 6284do 6285 IFS=$as_save_IFS 6286 test -z "$as_dir" && as_dir=. 6287 for ac_exec_ext in '' $ac_executable_extensions; do 6288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6289 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6291 break 2 6292 fi 6293done 6294done 6295 6296fi 6297fi 6298STRIP=$ac_cv_prog_STRIP 6299if test -n "$STRIP"; then 6300 echo "$as_me:$LINENO: result: $STRIP" >&5 6301echo "${ECHO_T}$STRIP" >&6 6302else 6303 echo "$as_me:$LINENO: result: no" >&5 6304echo "${ECHO_T}no" >&6 6305fi 6306 6307fi 6308if test -z "$ac_cv_prog_STRIP"; then 6309 ac_ct_STRIP=$STRIP 6310 # Extract the first word of "strip", so it can be a program name with args. 6311set dummy strip; ac_word=$2 6312echo "$as_me:$LINENO: checking for $ac_word" >&5 6313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6314if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6315 echo $ECHO_N "(cached) $ECHO_C" >&6 6316else 6317 if test -n "$ac_ct_STRIP"; then 6318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6319else 6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6321for as_dir in $PATH 6322do 6323 IFS=$as_save_IFS 6324 test -z "$as_dir" && as_dir=. 6325 for ac_exec_ext in '' $ac_executable_extensions; do 6326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6327 ac_cv_prog_ac_ct_STRIP="strip" 6328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6329 break 2 6330 fi 6331done 6332done 6333 6334 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6335fi 6336fi 6337ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6338if test -n "$ac_ct_STRIP"; then 6339 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6340echo "${ECHO_T}$ac_ct_STRIP" >&6 6341else 6342 echo "$as_me:$LINENO: result: no" >&5 6343echo "${ECHO_T}no" >&6 6344fi 6345 6346 STRIP=$ac_ct_STRIP 6347else 6348 STRIP="$ac_cv_prog_STRIP" 6349fi 6350 6351 6352old_CC="$CC" 6353old_CFLAGS="$CFLAGS" 6354 6355# Set sane defaults for various variables 6356test -z "$AR" && AR=ar 6357test -z "$AR_FLAGS" && AR_FLAGS=cru 6358test -z "$AS" && AS=as 6359test -z "$CC" && CC=cc 6360test -z "$LTCC" && LTCC=$CC 6361test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6362test -z "$DLLTOOL" && DLLTOOL=dlltool 6363test -z "$LD" && LD=ld 6364test -z "$LN_S" && LN_S="ln -s" 6365test -z "$MAGIC_CMD" && MAGIC_CMD=file 6366test -z "$NM" && NM=nm 6367test -z "$SED" && SED=sed 6368test -z "$OBJDUMP" && OBJDUMP=objdump 6369test -z "$RANLIB" && RANLIB=: 6370test -z "$STRIP" && STRIP=: 6371test -z "$ac_objext" && ac_objext=o 6372 6373# Determine commands to create old-style static archives. 6374old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6375old_postinstall_cmds='chmod 644 $oldlib' 6376old_postuninstall_cmds= 6377 6378if test -n "$RANLIB"; then 6379 case $host_os in 6380 openbsd*) 6381 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6382 ;; 6383 *) 6384 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6385 ;; 6386 esac 6387 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6388fi 6389 6390for cc_temp in $compiler""; do 6391 case $cc_temp in 6392 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6393 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6394 \-*) ;; 6395 *) break;; 6396 esac 6397done 6398cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6399 6400 6401# Only perform the check for file, if the check method requires it 6402case $deplibs_check_method in 6403file_magic*) 6404 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6405 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6406echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6407if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6408 echo $ECHO_N "(cached) $ECHO_C" >&6 6409else 6410 case $MAGIC_CMD in 6411[\\/*] | ?:[\\/]*) 6412 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6413 ;; 6414*) 6415 lt_save_MAGIC_CMD="$MAGIC_CMD" 6416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6417 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6418 for ac_dir in $ac_dummy; do 6419 IFS="$lt_save_ifs" 6420 test -z "$ac_dir" && ac_dir=. 6421 if test -f $ac_dir/${ac_tool_prefix}file; then 6422 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6423 if test -n "$file_magic_test_file"; then 6424 case $deplibs_check_method in 6425 "file_magic "*) 6426 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6427 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6428 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6429 $EGREP "$file_magic_regex" > /dev/null; then 6430 : 6431 else 6432 cat <<EOF 1>&2 6433 6434*** Warning: the command libtool uses to detect shared libraries, 6435*** $file_magic_cmd, produces output that libtool cannot recognize. 6436*** The result is that libtool may fail to recognize shared libraries 6437*** as such. This will affect the creation of libtool libraries that 6438*** depend on shared libraries, but programs linked with such libtool 6439*** libraries will work regardless of this problem. Nevertheless, you 6440*** may want to report the problem to your system manager and/or to 6441*** bug-libtool@gnu.org 6442 6443EOF 6444 fi ;; 6445 esac 6446 fi 6447 break 6448 fi 6449 done 6450 IFS="$lt_save_ifs" 6451 MAGIC_CMD="$lt_save_MAGIC_CMD" 6452 ;; 6453esac 6454fi 6455 6456MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6457if test -n "$MAGIC_CMD"; then 6458 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6459echo "${ECHO_T}$MAGIC_CMD" >&6 6460else 6461 echo "$as_me:$LINENO: result: no" >&5 6462echo "${ECHO_T}no" >&6 6463fi 6464 6465if test -z "$lt_cv_path_MAGIC_CMD"; then 6466 if test -n "$ac_tool_prefix"; then 6467 echo "$as_me:$LINENO: checking for file" >&5 6468echo $ECHO_N "checking for file... $ECHO_C" >&6 6469if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6470 echo $ECHO_N "(cached) $ECHO_C" >&6 6471else 6472 case $MAGIC_CMD in 6473[\\/*] | ?:[\\/]*) 6474 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6475 ;; 6476*) 6477 lt_save_MAGIC_CMD="$MAGIC_CMD" 6478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6479 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6480 for ac_dir in $ac_dummy; do 6481 IFS="$lt_save_ifs" 6482 test -z "$ac_dir" && ac_dir=. 6483 if test -f $ac_dir/file; then 6484 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6485 if test -n "$file_magic_test_file"; then 6486 case $deplibs_check_method in 6487 "file_magic "*) 6488 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6490 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6491 $EGREP "$file_magic_regex" > /dev/null; then 6492 : 6493 else 6494 cat <<EOF 1>&2 6495 6496*** Warning: the command libtool uses to detect shared libraries, 6497*** $file_magic_cmd, produces output that libtool cannot recognize. 6498*** The result is that libtool may fail to recognize shared libraries 6499*** as such. This will affect the creation of libtool libraries that 6500*** depend on shared libraries, but programs linked with such libtool 6501*** libraries will work regardless of this problem. Nevertheless, you 6502*** may want to report the problem to your system manager and/or to 6503*** bug-libtool@gnu.org 6504 6505EOF 6506 fi ;; 6507 esac 6508 fi 6509 break 6510 fi 6511 done 6512 IFS="$lt_save_ifs" 6513 MAGIC_CMD="$lt_save_MAGIC_CMD" 6514 ;; 6515esac 6516fi 6517 6518MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6519if test -n "$MAGIC_CMD"; then 6520 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6521echo "${ECHO_T}$MAGIC_CMD" >&6 6522else 6523 echo "$as_me:$LINENO: result: no" >&5 6524echo "${ECHO_T}no" >&6 6525fi 6526 6527 else 6528 MAGIC_CMD=: 6529 fi 6530fi 6531 6532 fi 6533 ;; 6534esac 6535 6536enable_dlopen=no 6537enable_win32_dll=yes 6538 6539# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6540if test "${enable_libtool_lock+set}" = set; then 6541 enableval="$enable_libtool_lock" 6542 6543fi; 6544test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6545 6546 6547# Check whether --with-pic or --without-pic was given. 6548if test "${with_pic+set}" = set; then 6549 withval="$with_pic" 6550 pic_mode="$withval" 6551else 6552 pic_mode=default 6553fi; 6554test -z "$pic_mode" && pic_mode=default 6555 6556# Use C for the default configuration in the libtool script 6557tagname= 6558lt_save_CC="$CC" 6559ac_ext=c 6560ac_cpp='$CPP $CPPFLAGS' 6561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6563ac_compiler_gnu=$ac_cv_c_compiler_gnu 6564 6565 6566# Source file extension for C test sources. 6567ac_ext=c 6568 6569# Object file extension for compiled C test sources. 6570objext=o 6571objext=$objext 6572 6573# Code to be used in simple compile tests 6574lt_simple_compile_test_code="int some_variable = 0;\n" 6575 6576# Code to be used in simple link tests 6577lt_simple_link_test_code='int main(){return(0);}\n' 6578 6579 6580# If no C compiler was specified, use CC. 6581LTCC=${LTCC-"$CC"} 6582 6583# If no C compiler flags were specified, use CFLAGS. 6584LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6585 6586# Allow CC to be a program name with arguments. 6587compiler=$CC 6588 6589 6590# save warnings/boilerplate of simple test code 6591ac_outfile=conftest.$ac_objext 6592printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6593eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6594_lt_compiler_boilerplate=`cat conftest.err` 6595$rm conftest* 6596 6597ac_outfile=conftest.$ac_objext 6598printf "$lt_simple_link_test_code" >conftest.$ac_ext 6599eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6600_lt_linker_boilerplate=`cat conftest.err` 6601$rm conftest* 6602 6603 6604 6605lt_prog_compiler_no_builtin_flag= 6606 6607if test "$GCC" = yes; then 6608 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6609 6610 6611echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6612echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6613if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6614 echo $ECHO_N "(cached) $ECHO_C" >&6 6615else 6616 lt_cv_prog_compiler_rtti_exceptions=no 6617 ac_outfile=conftest.$ac_objext 6618 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6619 lt_compiler_flag="-fno-rtti -fno-exceptions" 6620 # Insert the option either (1) after the last *FLAGS variable, or 6621 # (2) before a word containing "conftest.", or (3) at the end. 6622 # Note that $ac_compile itself does not contain backslashes and begins 6623 # with a dollar sign (not a hyphen), so the echo should work correctly. 6624 # The option is referenced via a variable to avoid confusing sed. 6625 lt_compile=`echo "$ac_compile" | $SED \ 6626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6628 -e 's:$: $lt_compiler_flag:'` 6629 (eval echo "\"\$as_me:6629: $lt_compile\"" >&5) 6630 (eval "$lt_compile" 2>conftest.err) 6631 ac_status=$? 6632 cat conftest.err >&5 6633 echo "$as_me:6633: \$? = $ac_status" >&5 6634 if (exit $ac_status) && test -s "$ac_outfile"; then 6635 # The compiler can only warn and ignore the option if not recognized 6636 # So say no if there are warnings other than the usual output. 6637 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6639 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6640 lt_cv_prog_compiler_rtti_exceptions=yes 6641 fi 6642 fi 6643 $rm conftest* 6644 6645fi 6646echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6647echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6648 6649if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6650 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6651else 6652 : 6653fi 6654 6655fi 6656 6657lt_prog_compiler_wl= 6658lt_prog_compiler_pic= 6659lt_prog_compiler_static= 6660 6661echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6662echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6663 6664 if test "$GCC" = yes; then 6665 lt_prog_compiler_wl='-Wl,' 6666 lt_prog_compiler_static='-static' 6667 6668 case $host_os in 6669 aix*) 6670 # All AIX code is PIC. 6671 if test "$host_cpu" = ia64; then 6672 # AIX 5 now supports IA64 processor 6673 lt_prog_compiler_static='-Bstatic' 6674 fi 6675 ;; 6676 6677 amigaos*) 6678 # FIXME: we need at least 68020 code to build shared libraries, but 6679 # adding the `-m68020' flag to GCC prevents building anything better, 6680 # like `-m68040'. 6681 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6682 ;; 6683 6684 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6685 # PIC is the default for these OSes. 6686 ;; 6687 6688 mingw* | pw32* | os2*) 6689 # This hack is so that the source file can tell whether it is being 6690 # built for inclusion in a dll (and should export symbols for example). 6691 lt_prog_compiler_pic='-DDLL_EXPORT' 6692 ;; 6693 6694 darwin* | rhapsody*) 6695 # PIC is the default on this platform 6696 # Common symbols not allowed in MH_DYLIB files 6697 lt_prog_compiler_pic='-fno-common' 6698 ;; 6699 6700 interix3*) 6701 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6702 # Instead, we relocate shared libraries at runtime. 6703 ;; 6704 6705 msdosdjgpp*) 6706 # Just because we use GCC doesn't mean we suddenly get shared libraries 6707 # on systems that don't support them. 6708 lt_prog_compiler_can_build_shared=no 6709 enable_shared=no 6710 ;; 6711 6712 sysv4*MP*) 6713 if test -d /usr/nec; then 6714 lt_prog_compiler_pic=-Kconform_pic 6715 fi 6716 ;; 6717 6718 hpux*) 6719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6720 # not for PA HP-UX. 6721 case $host_cpu in 6722 hppa*64*|ia64*) 6723 # +Z the default 6724 ;; 6725 *) 6726 lt_prog_compiler_pic='-fPIC' 6727 ;; 6728 esac 6729 ;; 6730 6731 *) 6732 lt_prog_compiler_pic='-fPIC' 6733 ;; 6734 esac 6735 else 6736 # PORTME Check for flag to pass linker flags through the system compiler. 6737 case $host_os in 6738 aix*) 6739 lt_prog_compiler_wl='-Wl,' 6740 if test "$host_cpu" = ia64; then 6741 # AIX 5 now supports IA64 processor 6742 lt_prog_compiler_static='-Bstatic' 6743 else 6744 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6745 fi 6746 ;; 6747 darwin*) 6748 # PIC is the default on this platform 6749 # Common symbols not allowed in MH_DYLIB files 6750 case $cc_basename in 6751 xlc*) 6752 lt_prog_compiler_pic='-qnocommon' 6753 lt_prog_compiler_wl='-Wl,' 6754 ;; 6755 esac 6756 ;; 6757 6758 mingw* | pw32* | os2*) 6759 # This hack is so that the source file can tell whether it is being 6760 # built for inclusion in a dll (and should export symbols for example). 6761 lt_prog_compiler_pic='-DDLL_EXPORT' 6762 ;; 6763 6764 hpux9* | hpux10* | hpux11*) 6765 lt_prog_compiler_wl='-Wl,' 6766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6767 # not for PA HP-UX. 6768 case $host_cpu in 6769 hppa*64*|ia64*) 6770 # +Z the default 6771 ;; 6772 *) 6773 lt_prog_compiler_pic='+Z' 6774 ;; 6775 esac 6776 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6777 lt_prog_compiler_static='${wl}-a ${wl}archive' 6778 ;; 6779 6780 irix5* | irix6* | nonstopux*) 6781 lt_prog_compiler_wl='-Wl,' 6782 # PIC (with -KPIC) is the default. 6783 lt_prog_compiler_static='-non_shared' 6784 ;; 6785 6786 newsos6) 6787 lt_prog_compiler_pic='-KPIC' 6788 lt_prog_compiler_static='-Bstatic' 6789 ;; 6790 6791 linux*) 6792 case $cc_basename in 6793 icc* | ecc*) 6794 lt_prog_compiler_wl='-Wl,' 6795 lt_prog_compiler_pic='-KPIC' 6796 lt_prog_compiler_static='-static' 6797 ;; 6798 pgcc* | pgf77* | pgf90* | pgf95*) 6799 # Portland Group compilers (*not* the Pentium gcc compiler, 6800 # which looks to be a dead project) 6801 lt_prog_compiler_wl='-Wl,' 6802 lt_prog_compiler_pic='-fpic' 6803 lt_prog_compiler_static='-Bstatic' 6804 ;; 6805 ccc*) 6806 lt_prog_compiler_wl='-Wl,' 6807 # All Alpha code is PIC. 6808 lt_prog_compiler_static='-non_shared' 6809 ;; 6810 esac 6811 ;; 6812 6813 osf3* | osf4* | osf5*) 6814 lt_prog_compiler_wl='-Wl,' 6815 # All OSF/1 code is PIC. 6816 lt_prog_compiler_static='-non_shared' 6817 ;; 6818 6819 solaris*) 6820 lt_prog_compiler_pic='-KPIC' 6821 lt_prog_compiler_static='-Bstatic' 6822 case $cc_basename in 6823 f77* | f90* | f95*) 6824 lt_prog_compiler_wl='-Qoption ld ';; 6825 *) 6826 lt_prog_compiler_wl='-Wl,';; 6827 esac 6828 ;; 6829 6830 sunos4*) 6831 lt_prog_compiler_wl='-Qoption ld ' 6832 lt_prog_compiler_pic='-PIC' 6833 lt_prog_compiler_static='-Bstatic' 6834 ;; 6835 6836 sysv4 | sysv4.2uw2* | sysv4.3*) 6837 lt_prog_compiler_wl='-Wl,' 6838 lt_prog_compiler_pic='-KPIC' 6839 lt_prog_compiler_static='-Bstatic' 6840 ;; 6841 6842 sysv4*MP*) 6843 if test -d /usr/nec ;then 6844 lt_prog_compiler_pic='-Kconform_pic' 6845 lt_prog_compiler_static='-Bstatic' 6846 fi 6847 ;; 6848 6849 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6850 lt_prog_compiler_wl='-Wl,' 6851 lt_prog_compiler_pic='-KPIC' 6852 lt_prog_compiler_static='-Bstatic' 6853 ;; 6854 6855 unicos*) 6856 lt_prog_compiler_wl='-Wl,' 6857 lt_prog_compiler_can_build_shared=no 6858 ;; 6859 6860 uts4*) 6861 lt_prog_compiler_pic='-pic' 6862 lt_prog_compiler_static='-Bstatic' 6863 ;; 6864 6865 *) 6866 lt_prog_compiler_can_build_shared=no 6867 ;; 6868 esac 6869 fi 6870 6871echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6872echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6873 6874# 6875# Check to make sure the PIC flag actually works. 6876# 6877if test -n "$lt_prog_compiler_pic"; then 6878 6879echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6880echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6881if test "${lt_prog_compiler_pic_works+set}" = set; then 6882 echo $ECHO_N "(cached) $ECHO_C" >&6 6883else 6884 lt_prog_compiler_pic_works=no 6885 ac_outfile=conftest.$ac_objext 6886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6887 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6888 # Insert the option either (1) after the last *FLAGS variable, or 6889 # (2) before a word containing "conftest.", or (3) at the end. 6890 # Note that $ac_compile itself does not contain backslashes and begins 6891 # with a dollar sign (not a hyphen), so the echo should work correctly. 6892 # The option is referenced via a variable to avoid confusing sed. 6893 lt_compile=`echo "$ac_compile" | $SED \ 6894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6896 -e 's:$: $lt_compiler_flag:'` 6897 (eval echo "\"\$as_me:6897: $lt_compile\"" >&5) 6898 (eval "$lt_compile" 2>conftest.err) 6899 ac_status=$? 6900 cat conftest.err >&5 6901 echo "$as_me:6901: \$? = $ac_status" >&5 6902 if (exit $ac_status) && test -s "$ac_outfile"; then 6903 # The compiler can only warn and ignore the option if not recognized 6904 # So say no if there are warnings other than the usual output. 6905 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6907 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6908 lt_prog_compiler_pic_works=yes 6909 fi 6910 fi 6911 $rm conftest* 6912 6913fi 6914echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6915echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6916 6917if test x"$lt_prog_compiler_pic_works" = xyes; then 6918 case $lt_prog_compiler_pic in 6919 "" | " "*) ;; 6920 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6921 esac 6922else 6923 lt_prog_compiler_pic= 6924 lt_prog_compiler_can_build_shared=no 6925fi 6926 6927fi 6928case $host_os in 6929 # For platforms which do not support PIC, -DPIC is meaningless: 6930 *djgpp*) 6931 lt_prog_compiler_pic= 6932 ;; 6933 *) 6934 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6935 ;; 6936esac 6937 6938# 6939# Check to make sure the static flag actually works. 6940# 6941wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6942echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6943echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6944if test "${lt_prog_compiler_static_works+set}" = set; then 6945 echo $ECHO_N "(cached) $ECHO_C" >&6 6946else 6947 lt_prog_compiler_static_works=no 6948 save_LDFLAGS="$LDFLAGS" 6949 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6950 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6951 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6952 # The linker can only warn and ignore the option if not recognized 6953 # So say no if there are warnings 6954 if test -s conftest.err; then 6955 # Append any errors to the config.log. 6956 cat conftest.err 1>&5 6957 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6959 if diff conftest.exp conftest.er2 >/dev/null; then 6960 lt_prog_compiler_static_works=yes 6961 fi 6962 else 6963 lt_prog_compiler_static_works=yes 6964 fi 6965 fi 6966 $rm conftest* 6967 LDFLAGS="$save_LDFLAGS" 6968 6969fi 6970echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6971echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6972 6973if test x"$lt_prog_compiler_static_works" = xyes; then 6974 : 6975else 6976 lt_prog_compiler_static= 6977fi 6978 6979 6980echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6981echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6982if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6983 echo $ECHO_N "(cached) $ECHO_C" >&6 6984else 6985 lt_cv_prog_compiler_c_o=no 6986 $rm -r conftest 2>/dev/null 6987 mkdir conftest 6988 cd conftest 6989 mkdir out 6990 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6991 6992 lt_compiler_flag="-o out/conftest2.$ac_objext" 6993 # Insert the option either (1) after the last *FLAGS variable, or 6994 # (2) before a word containing "conftest.", or (3) at the end. 6995 # Note that $ac_compile itself does not contain backslashes and begins 6996 # with a dollar sign (not a hyphen), so the echo should work correctly. 6997 lt_compile=`echo "$ac_compile" | $SED \ 6998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7000 -e 's:$: $lt_compiler_flag:'` 7001 (eval echo "\"\$as_me:7001: $lt_compile\"" >&5) 7002 (eval "$lt_compile" 2>out/conftest.err) 7003 ac_status=$? 7004 cat out/conftest.err >&5 7005 echo "$as_me:7005: \$? = $ac_status" >&5 7006 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7007 then 7008 # The compiler can only warn and ignore the option if not recognized 7009 # So say no if there are warnings 7010 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7011 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7012 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7013 lt_cv_prog_compiler_c_o=yes 7014 fi 7015 fi 7016 chmod u+w . 2>&5 7017 $rm conftest* 7018 # SGI C++ compiler will create directory out/ii_files/ for 7019 # template instantiation 7020 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7021 $rm out/* && rmdir out 7022 cd .. 7023 rmdir conftest 7024 $rm conftest* 7025 7026fi 7027echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7028echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 7029 7030 7031hard_links="nottested" 7032if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7033 # do not overwrite the value of need_locks provided by the user 7034 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7035echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 7036 hard_links=yes 7037 $rm conftest* 7038 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7039 touch conftest.a 7040 ln conftest.a conftest.b 2>&5 || hard_links=no 7041 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7042 echo "$as_me:$LINENO: result: $hard_links" >&5 7043echo "${ECHO_T}$hard_links" >&6 7044 if test "$hard_links" = no; then 7045 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7046echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7047 need_locks=warn 7048 fi 7049else 7050 need_locks=no 7051fi 7052 7053echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7054echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 7055 7056 runpath_var= 7057 allow_undefined_flag= 7058 enable_shared_with_static_runtimes=no 7059 archive_cmds= 7060 archive_expsym_cmds= 7061 old_archive_From_new_cmds= 7062 old_archive_from_expsyms_cmds= 7063 export_dynamic_flag_spec= 7064 whole_archive_flag_spec= 7065 thread_safe_flag_spec= 7066 hardcode_libdir_flag_spec= 7067 hardcode_libdir_flag_spec_ld= 7068 hardcode_libdir_separator= 7069 hardcode_direct=no 7070 hardcode_minus_L=no 7071 hardcode_shlibpath_var=unsupported 7072 link_all_deplibs=unknown 7073 hardcode_automatic=no 7074 module_cmds= 7075 module_expsym_cmds= 7076 always_export_symbols=no 7077 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7078 # include_expsyms should be a list of space-separated symbols to be *always* 7079 # included in the symbol list 7080 include_expsyms= 7081 # exclude_expsyms can be an extended regexp of symbols to exclude 7082 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7083 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7084 # as well as any symbol that contains `d'. 7085 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7086 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7087 # platforms (ab)use it in PIC code, but their linkers get confused if 7088 # the symbol is explicitly referenced. Since portable code cannot 7089 # rely on this symbol name, it's probably fine to never include it in 7090 # preloaded symbol tables. 7091 extract_expsyms_cmds= 7092 # Just being paranoid about ensuring that cc_basename is set. 7093 for cc_temp in $compiler""; do 7094 case $cc_temp in 7095 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7096 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7097 \-*) ;; 7098 *) break;; 7099 esac 7100done 7101cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7102 7103 case $host_os in 7104 cygwin* | mingw* | pw32*) 7105 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7106 # When not using gcc, we currently assume that we are using 7107 # Microsoft Visual C++. 7108 if test "$GCC" != yes; then 7109 with_gnu_ld=no 7110 fi 7111 ;; 7112 interix*) 7113 # we just hope/assume this is gcc and not c89 (= MSVC++) 7114 with_gnu_ld=yes 7115 ;; 7116 openbsd*) 7117 with_gnu_ld=no 7118 ;; 7119 esac 7120 7121 ld_shlibs=yes 7122 if test "$with_gnu_ld" = yes; then 7123 # If archive_cmds runs LD, not CC, wlarc should be empty 7124 wlarc='${wl}' 7125 7126 # Set some defaults for GNU ld with shared library support. These 7127 # are reset later if shared libraries are not supported. Putting them 7128 # here allows them to be overridden if necessary. 7129 runpath_var=LD_RUN_PATH 7130 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7131 export_dynamic_flag_spec='${wl}--export-dynamic' 7132 # ancient GNU ld didn't support --whole-archive et. al. 7133 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7134 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7135 else 7136 whole_archive_flag_spec= 7137 fi 7138 supports_anon_versioning=no 7139 case `$LD -v 2>/dev/null` in 7140 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7141 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7142 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7143 *\ 2.11.*) ;; # other 2.11 versions 7144 *) supports_anon_versioning=yes ;; 7145 esac 7146 7147 # See if GNU ld supports shared libraries. 7148 case $host_os in 7149 aix3* | aix4* | aix5*) 7150 # On AIX/PPC, the GNU linker is very broken 7151 if test "$host_cpu" != ia64; then 7152 ld_shlibs=no 7153 cat <<EOF 1>&2 7154 7155*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7156*** to be unable to reliably create shared libraries on AIX. 7157*** Therefore, libtool is disabling shared libraries support. If you 7158*** really care for shared libraries, you may want to modify your PATH 7159*** so that a non-GNU linker is found, and then restart. 7160 7161EOF 7162 fi 7163 ;; 7164 7165 amigaos*) 7166 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)' 7167 hardcode_libdir_flag_spec='-L$libdir' 7168 hardcode_minus_L=yes 7169 7170 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7171 # that the semantics of dynamic libraries on AmigaOS, at least up 7172 # to version 4, is to share data among multiple programs linked 7173 # with the same dynamic library. Since this doesn't match the 7174 # behavior of shared libraries on other platforms, we can't use 7175 # them. 7176 ld_shlibs=no 7177 ;; 7178 7179 beos*) 7180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7181 allow_undefined_flag=unsupported 7182 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7183 # support --undefined. This deserves some investigation. FIXME 7184 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7185 else 7186 ld_shlibs=no 7187 fi 7188 ;; 7189 7190 cygwin* | mingw* | pw32*) 7191 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7192 # as there is no search path for DLLs. 7193 hardcode_libdir_flag_spec='-L$libdir' 7194 allow_undefined_flag=unsupported 7195 always_export_symbols=no 7196 enable_shared_with_static_runtimes=yes 7197 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7198 7199 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7201 # If the export-symbols file already is a .def file (1st line 7202 # is EXPORTS), use it as is; otherwise, prepend... 7203 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7204 cp $export_symbols $output_objdir/$soname.def; 7205 else 7206 echo EXPORTS > $output_objdir/$soname.def; 7207 cat $export_symbols >> $output_objdir/$soname.def; 7208 fi~ 7209 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7210 else 7211 ld_shlibs=no 7212 fi 7213 ;; 7214 7215 interix3*) 7216 hardcode_direct=no 7217 hardcode_shlibpath_var=no 7218 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7219 export_dynamic_flag_spec='${wl}-E' 7220 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7221 # Instead, shared libraries are loaded at an image base (0x10000000 by 7222 # default) and relocated if they conflict, which is a slow very memory 7223 # consuming and fragmenting process. To avoid this, we pick a random, 7224 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7225 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7226 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7227 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7228 ;; 7229 7230 linux*) 7231 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7232 tmp_addflag= 7233 case $cc_basename,$host_cpu in 7234 pgcc*) # Portland Group C compiler 7235 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7236 tmp_addflag=' $pic_flag' 7237 ;; 7238 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7239 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7240 tmp_addflag=' $pic_flag -Mnomain' ;; 7241 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7242 tmp_addflag=' -i_dynamic' ;; 7243 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7244 tmp_addflag=' -i_dynamic -nofor_main' ;; 7245 ifc* | ifort*) # Intel Fortran compiler 7246 tmp_addflag=' -nofor_main' ;; 7247 esac 7248 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7249 7250 if test $supports_anon_versioning = yes; then 7251 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7252 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7253 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7254 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7255 fi 7256 else 7257 ld_shlibs=no 7258 fi 7259 ;; 7260 7261 netbsd*) 7262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7263 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7264 wlarc= 7265 else 7266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7268 fi 7269 ;; 7270 7271 solaris*) 7272 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7273 ld_shlibs=no 7274 cat <<EOF 1>&2 7275 7276*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7277*** create shared libraries on Solaris systems. Therefore, libtool 7278*** is disabling shared libraries support. We urge you to upgrade GNU 7279*** binutils to release 2.9.1 or newer. Another option is to modify 7280*** your PATH or compiler configuration so that the native linker is 7281*** used, and then restart. 7282 7283EOF 7284 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7287 else 7288 ld_shlibs=no 7289 fi 7290 ;; 7291 7292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7293 case `$LD -v 2>&1` in 7294 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7295 ld_shlibs=no 7296 cat <<_LT_EOF 1>&2 7297 7298*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7299*** reliably create shared libraries on SCO systems. Therefore, libtool 7300*** is disabling shared libraries support. We urge you to upgrade GNU 7301*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7302*** your PATH or compiler configuration so that the native linker is 7303*** used, and then restart. 7304 7305_LT_EOF 7306 ;; 7307 *) 7308 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7309 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7312 else 7313 ld_shlibs=no 7314 fi 7315 ;; 7316 esac 7317 ;; 7318 7319 sunos4*) 7320 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7321 wlarc= 7322 hardcode_direct=yes 7323 hardcode_shlibpath_var=no 7324 ;; 7325 7326 *) 7327 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7330 else 7331 ld_shlibs=no 7332 fi 7333 ;; 7334 esac 7335 7336 if test "$ld_shlibs" = no; then 7337 runpath_var= 7338 hardcode_libdir_flag_spec= 7339 export_dynamic_flag_spec= 7340 whole_archive_flag_spec= 7341 fi 7342 else 7343 # PORTME fill in a description of your system's linker (not GNU ld) 7344 case $host_os in 7345 aix3*) 7346 allow_undefined_flag=unsupported 7347 always_export_symbols=yes 7348 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' 7349 # Note: this linker hardcodes the directories in LIBPATH if there 7350 # are no directories specified by -L. 7351 hardcode_minus_L=yes 7352 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7353 # Neither direct hardcoding nor static linking is supported with a 7354 # broken collect2. 7355 hardcode_direct=unsupported 7356 fi 7357 ;; 7358 7359 aix4* | aix5*) 7360 if test "$host_cpu" = ia64; then 7361 # On IA64, the linker does run time linking by default, so we don't 7362 # have to do anything special. 7363 aix_use_runtimelinking=no 7364 exp_sym_flag='-Bexport' 7365 no_entry_flag="" 7366 else 7367 # If we're using GNU nm, then we don't want the "-C" option. 7368 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7369 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7370 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' 7371 else 7372 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' 7373 fi 7374 aix_use_runtimelinking=no 7375 7376 # Test if we are trying to use run time linking or normal 7377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7378 # need to do runtime linking. 7379 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7380 for ld_flag in $LDFLAGS; do 7381 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7382 aix_use_runtimelinking=yes 7383 break 7384 fi 7385 done 7386 ;; 7387 esac 7388 7389 exp_sym_flag='-bexport' 7390 no_entry_flag='-bnoentry' 7391 fi 7392 7393 # When large executables or shared objects are built, AIX ld can 7394 # have problems creating the table of contents. If linking a library 7395 # or program results in "error TOC overflow" add -mminimal-toc to 7396 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7397 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7398 7399 archive_cmds='' 7400 hardcode_direct=yes 7401 hardcode_libdir_separator=':' 7402 link_all_deplibs=yes 7403 7404 if test "$GCC" = yes; then 7405 case $host_os in aix4.[012]|aix4.[012].*) 7406 # We only want to do this on AIX 4.2 and lower, the check 7407 # below for broken collect2 doesn't work under 4.3+ 7408 collect2name=`${CC} -print-prog-name=collect2` 7409 if test -f "$collect2name" && \ 7410 strings "$collect2name" | grep resolve_lib_name >/dev/null 7411 then 7412 # We have reworked collect2 7413 hardcode_direct=yes 7414 else 7415 # We have old collect2 7416 hardcode_direct=unsupported 7417 # It fails to find uninstalled libraries when the uninstalled 7418 # path is not listed in the libpath. Setting hardcode_minus_L 7419 # to unsupported forces relinking 7420 hardcode_minus_L=yes 7421 hardcode_libdir_flag_spec='-L$libdir' 7422 hardcode_libdir_separator= 7423 fi 7424 ;; 7425 esac 7426 shared_flag='-shared' 7427 if test "$aix_use_runtimelinking" = yes; then 7428 shared_flag="$shared_flag "'${wl}-G' 7429 fi 7430 else 7431 # not using gcc 7432 if test "$host_cpu" = ia64; then 7433 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7434 # chokes on -Wl,-G. The following line is correct: 7435 shared_flag='-G' 7436 else 7437 if test "$aix_use_runtimelinking" = yes; then 7438 shared_flag='${wl}-G' 7439 else 7440 shared_flag='${wl}-bM:SRE' 7441 fi 7442 fi 7443 fi 7444 7445 # It seems that -bexpall does not export symbols beginning with 7446 # underscore (_), so it is better to generate a list of symbols to export. 7447 always_export_symbols=yes 7448 if test "$aix_use_runtimelinking" = yes; then 7449 # Warning - without using the other runtime loading flags (-brtl), 7450 # -berok will link without error, but may produce a broken library. 7451 allow_undefined_flag='-berok' 7452 # Determine the default libpath from the value encoded in an empty executable. 7453 cat >conftest.$ac_ext <<_ACEOF 7454/* confdefs.h. */ 7455_ACEOF 7456cat confdefs.h >>conftest.$ac_ext 7457cat >>conftest.$ac_ext <<_ACEOF 7458/* end confdefs.h. */ 7459 7460int 7461main () 7462{ 7463 7464 ; 7465 return 0; 7466} 7467_ACEOF 7468rm -f conftest.$ac_objext conftest$ac_exeext 7469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7470 (eval $ac_link) 2>conftest.er1 7471 ac_status=$? 7472 grep -v '^ *+' conftest.er1 >conftest.err 7473 rm -f conftest.er1 7474 cat conftest.err >&5 7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7476 (exit $ac_status); } && 7477 { ac_try='test -z "$ac_c_werror_flag" 7478 || test ! -s conftest.err' 7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7480 (eval $ac_try) 2>&5 7481 ac_status=$? 7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7483 (exit $ac_status); }; } && 7484 { ac_try='test -s conftest$ac_exeext' 7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7486 (eval $ac_try) 2>&5 7487 ac_status=$? 7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7489 (exit $ac_status); }; }; then 7490 7491aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7492}'` 7493# Check for a 64-bit object if we didn't find anything. 7494if 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; } 7495}'`; fi 7496else 7497 echo "$as_me: failed program was:" >&5 7498sed 's/^/| /' conftest.$ac_ext >&5 7499 7500fi 7501rm -f conftest.err conftest.$ac_objext \ 7502 conftest$ac_exeext conftest.$ac_ext 7503if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7504 7505 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7506 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7507 else 7508 if test "$host_cpu" = ia64; then 7509 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7510 allow_undefined_flag="-z nodefs" 7511 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 7512 else 7513 # Determine the default libpath from the value encoded in an empty executable. 7514 cat >conftest.$ac_ext <<_ACEOF 7515/* confdefs.h. */ 7516_ACEOF 7517cat confdefs.h >>conftest.$ac_ext 7518cat >>conftest.$ac_ext <<_ACEOF 7519/* end confdefs.h. */ 7520 7521int 7522main () 7523{ 7524 7525 ; 7526 return 0; 7527} 7528_ACEOF 7529rm -f conftest.$ac_objext conftest$ac_exeext 7530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7531 (eval $ac_link) 2>conftest.er1 7532 ac_status=$? 7533 grep -v '^ *+' conftest.er1 >conftest.err 7534 rm -f conftest.er1 7535 cat conftest.err >&5 7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7537 (exit $ac_status); } && 7538 { ac_try='test -z "$ac_c_werror_flag" 7539 || test ! -s conftest.err' 7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7541 (eval $ac_try) 2>&5 7542 ac_status=$? 7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7544 (exit $ac_status); }; } && 7545 { ac_try='test -s conftest$ac_exeext' 7546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7547 (eval $ac_try) 2>&5 7548 ac_status=$? 7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7550 (exit $ac_status); }; }; then 7551 7552aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7553}'` 7554# Check for a 64-bit object if we didn't find anything. 7555if 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; } 7556}'`; fi 7557else 7558 echo "$as_me: failed program was:" >&5 7559sed 's/^/| /' conftest.$ac_ext >&5 7560 7561fi 7562rm -f conftest.err conftest.$ac_objext \ 7563 conftest$ac_exeext conftest.$ac_ext 7564if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7565 7566 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7567 # Warning - without using the other run time loading flags, 7568 # -berok will link without error, but may produce a broken library. 7569 no_undefined_flag=' ${wl}-bernotok' 7570 allow_undefined_flag=' ${wl}-berok' 7571 # Exported symbols can be pulled into shared objects from archives 7572 whole_archive_flag_spec='$convenience' 7573 archive_cmds_need_lc=yes 7574 # This is similar to how AIX traditionally builds its shared libraries. 7575 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7576 fi 7577 fi 7578 ;; 7579 7580 amigaos*) 7581 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)' 7582 hardcode_libdir_flag_spec='-L$libdir' 7583 hardcode_minus_L=yes 7584 # see comment about different semantics on the GNU ld section 7585 ld_shlibs=no 7586 ;; 7587 7588 bsdi[45]*) 7589 export_dynamic_flag_spec=-rdynamic 7590 ;; 7591 7592 cygwin* | mingw* | pw32*) 7593 # When not using gcc, we currently assume that we are using 7594 # Microsoft Visual C++. 7595 # hardcode_libdir_flag_spec is actually meaningless, as there is 7596 # no search path for DLLs. 7597 hardcode_libdir_flag_spec=' ' 7598 allow_undefined_flag=unsupported 7599 # Tell ltmain to make .lib files, not .a files. 7600 libext=lib 7601 # Tell ltmain to make .dll files, not .so files. 7602 shrext_cmds=".dll" 7603 # FIXME: Setting linknames here is a bad hack. 7604 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7605 # The linker will automatically build a .lib file if we build a DLL. 7606 old_archive_From_new_cmds='true' 7607 # FIXME: Should let the user specify the lib program. 7608 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7609 fix_srcfile_path='`cygpath -w "$srcfile"`' 7610 enable_shared_with_static_runtimes=yes 7611 ;; 7612 7613 darwin* | rhapsody*) 7614 case $host_os in 7615 rhapsody* | darwin1.[012]) 7616 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7617 ;; 7618 *) # Darwin 1.3 on 7619 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7620 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7621 else 7622 case ${MACOSX_DEPLOYMENT_TARGET} in 7623 10.[012]) 7624 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7625 ;; 7626 10.*) 7627 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7628 ;; 7629 esac 7630 fi 7631 ;; 7632 esac 7633 archive_cmds_need_lc=no 7634 hardcode_direct=no 7635 hardcode_automatic=yes 7636 hardcode_shlibpath_var=unsupported 7637 whole_archive_flag_spec='' 7638 link_all_deplibs=yes 7639 if test "$GCC" = yes ; then 7640 output_verbose_link_cmd='echo' 7641 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7642 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7643 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7644 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}' 7645 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}' 7646 else 7647 case $cc_basename in 7648 xlc*) 7649 output_verbose_link_cmd='echo' 7650 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7651 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7652 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7653 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7654 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}' 7655 ;; 7656 *) 7657 ld_shlibs=no 7658 ;; 7659 esac 7660 fi 7661 ;; 7662 7663 dgux*) 7664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7665 hardcode_libdir_flag_spec='-L$libdir' 7666 hardcode_shlibpath_var=no 7667 ;; 7668 7669 freebsd1*) 7670 ld_shlibs=no 7671 ;; 7672 7673 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7674 # support. Future versions do this automatically, but an explicit c++rt0.o 7675 # does not break anything, and helps significantly (at the cost of a little 7676 # extra space). 7677 freebsd2.2*) 7678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7679 hardcode_libdir_flag_spec='-R$libdir' 7680 hardcode_direct=yes 7681 hardcode_shlibpath_var=no 7682 ;; 7683 7684 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7685 freebsd2*) 7686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7687 hardcode_direct=yes 7688 hardcode_minus_L=yes 7689 hardcode_shlibpath_var=no 7690 ;; 7691 7692 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7693 freebsd* | kfreebsd*-gnu | dragonfly*) 7694 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7695 hardcode_libdir_flag_spec='-R$libdir' 7696 hardcode_direct=yes 7697 hardcode_shlibpath_var=no 7698 ;; 7699 7700 hpux9*) 7701 if test "$GCC" = yes; then 7702 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' 7703 else 7704 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' 7705 fi 7706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7707 hardcode_libdir_separator=: 7708 hardcode_direct=yes 7709 7710 # hardcode_minus_L: Not really in the search PATH, 7711 # but as the default location of the library. 7712 hardcode_minus_L=yes 7713 export_dynamic_flag_spec='${wl}-E' 7714 ;; 7715 7716 hpux10*) 7717 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7718 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7719 else 7720 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7721 fi 7722 if test "$with_gnu_ld" = no; then 7723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7724 hardcode_libdir_separator=: 7725 7726 hardcode_direct=yes 7727 export_dynamic_flag_spec='${wl}-E' 7728 7729 # hardcode_minus_L: Not really in the search PATH, 7730 # but as the default location of the library. 7731 hardcode_minus_L=yes 7732 fi 7733 ;; 7734 7735 hpux11*) 7736 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7737 case $host_cpu in 7738 hppa*64*) 7739 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7740 ;; 7741 ia64*) 7742 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7743 ;; 7744 *) 7745 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7746 ;; 7747 esac 7748 else 7749 case $host_cpu in 7750 hppa*64*) 7751 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7752 ;; 7753 ia64*) 7754 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7755 ;; 7756 *) 7757 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7758 ;; 7759 esac 7760 fi 7761 if test "$with_gnu_ld" = no; then 7762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7763 hardcode_libdir_separator=: 7764 7765 case $host_cpu in 7766 hppa*64*|ia64*) 7767 hardcode_libdir_flag_spec_ld='+b $libdir' 7768 hardcode_direct=no 7769 hardcode_shlibpath_var=no 7770 ;; 7771 *) 7772 hardcode_direct=yes 7773 export_dynamic_flag_spec='${wl}-E' 7774 7775 # hardcode_minus_L: Not really in the search PATH, 7776 # but as the default location of the library. 7777 hardcode_minus_L=yes 7778 ;; 7779 esac 7780 fi 7781 ;; 7782 7783 irix5* | irix6* | nonstopux*) 7784 if test "$GCC" = yes; then 7785 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' 7786 else 7787 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' 7788 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7789 fi 7790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7791 hardcode_libdir_separator=: 7792 link_all_deplibs=yes 7793 ;; 7794 7795 netbsd*) 7796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7798 else 7799 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7800 fi 7801 hardcode_libdir_flag_spec='-R$libdir' 7802 hardcode_direct=yes 7803 hardcode_shlibpath_var=no 7804 ;; 7805 7806 newsos6) 7807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7808 hardcode_direct=yes 7809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7810 hardcode_libdir_separator=: 7811 hardcode_shlibpath_var=no 7812 ;; 7813 7814 openbsd*) 7815 hardcode_direct=yes 7816 hardcode_shlibpath_var=no 7817 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7819 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7821 export_dynamic_flag_spec='${wl}-E' 7822 else 7823 case $host_os in 7824 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7826 hardcode_libdir_flag_spec='-R$libdir' 7827 ;; 7828 *) 7829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7831 ;; 7832 esac 7833 fi 7834 ;; 7835 7836 os2*) 7837 hardcode_libdir_flag_spec='-L$libdir' 7838 hardcode_minus_L=yes 7839 allow_undefined_flag=unsupported 7840 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' 7841 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7842 ;; 7843 7844 osf3*) 7845 if test "$GCC" = yes; then 7846 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7847 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' 7848 else 7849 allow_undefined_flag=' -expect_unresolved \*' 7850 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' 7851 fi 7852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7853 hardcode_libdir_separator=: 7854 ;; 7855 7856 osf4* | osf5*) # as osf3* with the addition of -msym flag 7857 if test "$GCC" = yes; then 7858 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7859 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' 7860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7861 else 7862 allow_undefined_flag=' -expect_unresolved \*' 7863 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' 7864 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7865 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 7866 7867 # Both c and cxx compiler support -rpath directly 7868 hardcode_libdir_flag_spec='-rpath $libdir' 7869 fi 7870 hardcode_libdir_separator=: 7871 ;; 7872 7873 solaris*) 7874 no_undefined_flag=' -z text' 7875 if test "$GCC" = yes; then 7876 wlarc='${wl}' 7877 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7878 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7879 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7880 else 7881 wlarc='' 7882 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7883 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7884 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7885 fi 7886 hardcode_libdir_flag_spec='-R$libdir' 7887 hardcode_shlibpath_var=no 7888 case $host_os in 7889 solaris2.[0-5] | solaris2.[0-5].*) ;; 7890 *) 7891 # The compiler driver will combine linker options so we 7892 # cannot just pass the convience library names through 7893 # without $wl, iff we do not link with $LD. 7894 # Luckily, gcc supports the same syntax we need for Sun Studio. 7895 # Supported since Solaris 2.6 (maybe 2.5.1?) 7896 case $wlarc in 7897 '') 7898 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7899 *) 7900 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 7901 esac ;; 7902 esac 7903 link_all_deplibs=yes 7904 ;; 7905 7906 sunos4*) 7907 if test "x$host_vendor" = xsequent; then 7908 # Use $CC to link under sequent, because it throws in some extra .o 7909 # files that make .init and .fini sections work. 7910 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7911 else 7912 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7913 fi 7914 hardcode_libdir_flag_spec='-L$libdir' 7915 hardcode_direct=yes 7916 hardcode_minus_L=yes 7917 hardcode_shlibpath_var=no 7918 ;; 7919 7920 sysv4) 7921 case $host_vendor in 7922 sni) 7923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7924 hardcode_direct=yes # is this really true??? 7925 ;; 7926 siemens) 7927 ## LD is ld it makes a PLAMLIB 7928 ## CC just makes a GrossModule. 7929 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7930 reload_cmds='$CC -r -o $output$reload_objs' 7931 hardcode_direct=no 7932 ;; 7933 motorola) 7934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7935 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7936 ;; 7937 esac 7938 runpath_var='LD_RUN_PATH' 7939 hardcode_shlibpath_var=no 7940 ;; 7941 7942 sysv4.3*) 7943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7944 hardcode_shlibpath_var=no 7945 export_dynamic_flag_spec='-Bexport' 7946 ;; 7947 7948 sysv4*MP*) 7949 if test -d /usr/nec; then 7950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7951 hardcode_shlibpath_var=no 7952 runpath_var=LD_RUN_PATH 7953 hardcode_runpath_var=yes 7954 ld_shlibs=yes 7955 fi 7956 ;; 7957 7958 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 7959 no_undefined_flag='${wl}-z,text' 7960 archive_cmds_need_lc=no 7961 hardcode_shlibpath_var=no 7962 runpath_var='LD_RUN_PATH' 7963 7964 if test "$GCC" = yes; then 7965 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7966 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7967 else 7968 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7969 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7970 fi 7971 ;; 7972 7973 sysv5* | sco3.2v5* | sco5v6*) 7974 # Note: We can NOT use -z defs as we might desire, because we do not 7975 # link with -lc, and that would cause any symbols used from libc to 7976 # always be unresolved, which means just about no library would 7977 # ever link correctly. If we're not using GNU ld we use -z text 7978 # though, which does catch some bad symbols but isn't as heavy-handed 7979 # as -z defs. 7980 no_undefined_flag='${wl}-z,text' 7981 allow_undefined_flag='${wl}-z,nodefs' 7982 archive_cmds_need_lc=no 7983 hardcode_shlibpath_var=no 7984 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 7985 hardcode_libdir_separator=':' 7986 link_all_deplibs=yes 7987 export_dynamic_flag_spec='${wl}-Bexport' 7988 runpath_var='LD_RUN_PATH' 7989 7990 if test "$GCC" = yes; then 7991 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7992 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7993 else 7994 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7995 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7996 fi 7997 ;; 7998 7999 uts4*) 8000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8001 hardcode_libdir_flag_spec='-L$libdir' 8002 hardcode_shlibpath_var=no 8003 ;; 8004 8005 *) 8006 ld_shlibs=no 8007 ;; 8008 esac 8009 fi 8010 8011echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8012echo "${ECHO_T}$ld_shlibs" >&6 8013test "$ld_shlibs" = no && can_build_shared=no 8014 8015# 8016# Do we need to explicitly link libc? 8017# 8018case "x$archive_cmds_need_lc" in 8019x|xyes) 8020 # Assume -lc should be added 8021 archive_cmds_need_lc=yes 8022 8023 if test "$enable_shared" = yes && test "$GCC" = yes; then 8024 case $archive_cmds in 8025 *'~'*) 8026 # FIXME: we may have to deal with multi-command sequences. 8027 ;; 8028 '$CC '*) 8029 # Test whether the compiler implicitly links with -lc since on some 8030 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8031 # to ld, don't add -lc before -lgcc. 8032 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8033echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 8034 $rm conftest* 8035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8036 8037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8038 (eval $ac_compile) 2>&5 8039 ac_status=$? 8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8041 (exit $ac_status); } 2>conftest.err; then 8042 soname=conftest 8043 lib=conftest 8044 libobjs=conftest.$ac_objext 8045 deplibs= 8046 wl=$lt_prog_compiler_wl 8047 pic_flag=$lt_prog_compiler_pic 8048 compiler_flags=-v 8049 linker_flags=-v 8050 verstring= 8051 output_objdir=. 8052 libname=conftest 8053 lt_save_allow_undefined_flag=$allow_undefined_flag 8054 allow_undefined_flag= 8055 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8056 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8057 ac_status=$? 8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8059 (exit $ac_status); } 8060 then 8061 archive_cmds_need_lc=no 8062 else 8063 archive_cmds_need_lc=yes 8064 fi 8065 allow_undefined_flag=$lt_save_allow_undefined_flag 8066 else 8067 cat conftest.err 1>&5 8068 fi 8069 $rm conftest* 8070 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8071echo "${ECHO_T}$archive_cmds_need_lc" >&6 8072 ;; 8073 esac 8074 fi 8075 ;; 8076esac 8077 8078echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8079echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 8080library_names_spec= 8081libname_spec='lib$name' 8082soname_spec= 8083shrext_cmds=".so" 8084postinstall_cmds= 8085postuninstall_cmds= 8086finish_cmds= 8087finish_eval= 8088shlibpath_var= 8089shlibpath_overrides_runpath=unknown 8090version_type=none 8091dynamic_linker="$host_os ld.so" 8092sys_lib_dlsearch_path_spec="/lib /usr/lib" 8093if test "$GCC" = yes; then 8094 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8095 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8096 # if the path contains ";" then we assume it to be the separator 8097 # otherwise default to the standard path separator (i.e. ":") - it is 8098 # assumed that no part of a normal pathname contains ";" but that should 8099 # okay in the real world where ";" in dirpaths is itself problematic. 8100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8101 else 8102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8103 fi 8104else 8105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8106fi 8107need_lib_prefix=unknown 8108hardcode_into_libs=no 8109 8110# when you set need_version to no, make sure it does not cause -set_version 8111# flags to be left without arguments 8112need_version=unknown 8113 8114case $host_os in 8115aix3*) 8116 version_type=linux 8117 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8118 shlibpath_var=LIBPATH 8119 8120 # AIX 3 has no versioning support, so we append a major version to the name. 8121 soname_spec='${libname}${release}${shared_ext}$major' 8122 ;; 8123 8124aix4* | aix5*) 8125 version_type=linux 8126 need_lib_prefix=no 8127 need_version=no 8128 hardcode_into_libs=yes 8129 if test "$host_cpu" = ia64; then 8130 # AIX 5 supports IA64 8131 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8132 shlibpath_var=LD_LIBRARY_PATH 8133 else 8134 # With GCC up to 2.95.x, collect2 would create an import file 8135 # for dependence libraries. The import file would start with 8136 # the line `#! .'. This would cause the generated library to 8137 # depend on `.', always an invalid library. This was fixed in 8138 # development snapshots of GCC prior to 3.0. 8139 case $host_os in 8140 aix4 | aix4.[01] | aix4.[01].*) 8141 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8142 echo ' yes ' 8143 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8144 : 8145 else 8146 can_build_shared=no 8147 fi 8148 ;; 8149 esac 8150 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8151 # soname into executable. Probably we can add versioning support to 8152 # collect2, so additional links can be useful in future. 8153 if test "$aix_use_runtimelinking" = yes; then 8154 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8155 # instead of lib<name>.a to let people know that these are not 8156 # typical AIX shared libraries. 8157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8158 else 8159 # We preserve .a as extension for shared libraries through AIX4.2 8160 # and later when we are not doing run time linking. 8161 library_names_spec='${libname}${release}.a $libname.a' 8162 soname_spec='${libname}${release}${shared_ext}$major' 8163 fi 8164 shlibpath_var=LIBPATH 8165 fi 8166 ;; 8167 8168amigaos*) 8169 library_names_spec='$libname.ixlibrary $libname.a' 8170 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8171 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' 8172 ;; 8173 8174beos*) 8175 library_names_spec='${libname}${shared_ext}' 8176 dynamic_linker="$host_os ld.so" 8177 shlibpath_var=LIBRARY_PATH 8178 ;; 8179 8180bsdi[45]*) 8181 version_type=linux 8182 need_version=no 8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8184 soname_spec='${libname}${release}${shared_ext}$major' 8185 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8186 shlibpath_var=LD_LIBRARY_PATH 8187 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8188 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8189 # the default ld.so.conf also contains /usr/contrib/lib and 8190 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8191 # libtool to hard-code these into programs 8192 ;; 8193 8194cygwin* | mingw* | pw32*) 8195 version_type=windows 8196 shrext_cmds=".dll" 8197 need_version=no 8198 need_lib_prefix=no 8199 8200 case $GCC,$host_os in 8201 yes,cygwin* | yes,mingw* | yes,pw32*) 8202 library_names_spec='$libname.dll.a' 8203 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8204 postinstall_cmds='base_file=`basename \${file}`~ 8205 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8206 dldir=$destdir/`dirname \$dlpath`~ 8207 test -d \$dldir || mkdir -p \$dldir~ 8208 $install_prog $dir/$dlname \$dldir/$dlname~ 8209 chmod a+x \$dldir/$dlname' 8210 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8211 dlpath=$dir/\$dldll~ 8212 $rm \$dlpath' 8213 shlibpath_overrides_runpath=yes 8214 8215 case $host_os in 8216 cygwin*) 8217 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8218 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8219 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8220 ;; 8221 mingw*) 8222 # MinGW DLLs use traditional 'lib' prefix 8223 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8224 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8225 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8226 # It is most probably a Windows format PATH printed by 8227 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8228 # path with ; separators, and with drive letters. We can handle the 8229 # drive letters (cygwin fileutils understands them), so leave them, 8230 # especially as we might pass files found there to a mingw objdump, 8231 # which wouldn't understand a cygwinified path. Ahh. 8232 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8233 else 8234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8235 fi 8236 ;; 8237 pw32*) 8238 # pw32 DLLs use 'pw' prefix rather than 'lib' 8239 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8240 ;; 8241 esac 8242 ;; 8243 8244 *) 8245 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8246 ;; 8247 esac 8248 dynamic_linker='Win32 ld.exe' 8249 # FIXME: first we should search . and the directory the executable is in 8250 shlibpath_var=PATH 8251 ;; 8252 8253darwin* | rhapsody*) 8254 dynamic_linker="$host_os dyld" 8255 version_type=darwin 8256 need_lib_prefix=no 8257 need_version=no 8258 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8259 soname_spec='${libname}${release}${major}$shared_ext' 8260 shlibpath_overrides_runpath=yes 8261 shlibpath_var=DYLD_LIBRARY_PATH 8262 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8263 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8264 if test "$GCC" = yes; then 8265 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"` 8266 else 8267 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8268 fi 8269 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8270 ;; 8271 8272dgux*) 8273 version_type=linux 8274 need_lib_prefix=no 8275 need_version=no 8276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8277 soname_spec='${libname}${release}${shared_ext}$major' 8278 shlibpath_var=LD_LIBRARY_PATH 8279 ;; 8280 8281freebsd1*) 8282 dynamic_linker=no 8283 ;; 8284 8285kfreebsd*-gnu) 8286 version_type=linux 8287 need_lib_prefix=no 8288 need_version=no 8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8290 soname_spec='${libname}${release}${shared_ext}$major' 8291 shlibpath_var=LD_LIBRARY_PATH 8292 shlibpath_overrides_runpath=no 8293 hardcode_into_libs=yes 8294 dynamic_linker='GNU ld.so' 8295 ;; 8296 8297freebsd* | dragonfly*) 8298 # DragonFly does not have aout. When/if they implement a new 8299 # versioning mechanism, adjust this. 8300 if test -x /usr/bin/objformat; then 8301 objformat=`/usr/bin/objformat` 8302 else 8303 case $host_os in 8304 freebsd[123]*) objformat=aout ;; 8305 *) objformat=elf ;; 8306 esac 8307 fi 8308 version_type=freebsd-$objformat 8309 case $version_type in 8310 freebsd-elf*) 8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8312 need_version=no 8313 need_lib_prefix=no 8314 ;; 8315 freebsd-*) 8316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8317 need_version=yes 8318 ;; 8319 esac 8320 shlibpath_var=LD_LIBRARY_PATH 8321 case $host_os in 8322 freebsd2*) 8323 shlibpath_overrides_runpath=yes 8324 ;; 8325 freebsd3.[01]* | freebsdelf3.[01]*) 8326 shlibpath_overrides_runpath=yes 8327 hardcode_into_libs=yes 8328 ;; 8329 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8330 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8331 shlibpath_overrides_runpath=no 8332 hardcode_into_libs=yes 8333 ;; 8334 freebsd*) # from 4.6 on 8335 shlibpath_overrides_runpath=yes 8336 hardcode_into_libs=yes 8337 ;; 8338 esac 8339 ;; 8340 8341gnu*) 8342 version_type=linux 8343 need_lib_prefix=no 8344 need_version=no 8345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8346 soname_spec='${libname}${release}${shared_ext}$major' 8347 shlibpath_var=LD_LIBRARY_PATH 8348 hardcode_into_libs=yes 8349 ;; 8350 8351hpux9* | hpux10* | hpux11*) 8352 # Give a soname corresponding to the major version so that dld.sl refuses to 8353 # link against other versions. 8354 version_type=sunos 8355 need_lib_prefix=no 8356 need_version=no 8357 case $host_cpu in 8358 ia64*) 8359 shrext_cmds='.so' 8360 hardcode_into_libs=yes 8361 dynamic_linker="$host_os dld.so" 8362 shlibpath_var=LD_LIBRARY_PATH 8363 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8365 soname_spec='${libname}${release}${shared_ext}$major' 8366 if test "X$HPUX_IA64_MODE" = X32; then 8367 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8368 else 8369 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8370 fi 8371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8372 ;; 8373 hppa*64*) 8374 shrext_cmds='.sl' 8375 hardcode_into_libs=yes 8376 dynamic_linker="$host_os dld.sl" 8377 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8380 soname_spec='${libname}${release}${shared_ext}$major' 8381 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8383 ;; 8384 *) 8385 shrext_cmds='.sl' 8386 dynamic_linker="$host_os dld.sl" 8387 shlibpath_var=SHLIB_PATH 8388 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8390 soname_spec='${libname}${release}${shared_ext}$major' 8391 ;; 8392 esac 8393 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8394 postinstall_cmds='chmod 555 $lib' 8395 ;; 8396 8397interix3*) 8398 version_type=linux 8399 need_lib_prefix=no 8400 need_version=no 8401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8402 soname_spec='${libname}${release}${shared_ext}$major' 8403 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8404 shlibpath_var=LD_LIBRARY_PATH 8405 shlibpath_overrides_runpath=no 8406 hardcode_into_libs=yes 8407 ;; 8408 8409irix5* | irix6* | nonstopux*) 8410 case $host_os in 8411 nonstopux*) version_type=nonstopux ;; 8412 *) 8413 if test "$lt_cv_prog_gnu_ld" = yes; then 8414 version_type=linux 8415 else 8416 version_type=irix 8417 fi ;; 8418 esac 8419 need_lib_prefix=no 8420 need_version=no 8421 soname_spec='${libname}${release}${shared_ext}$major' 8422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8423 case $host_os in 8424 irix5* | nonstopux*) 8425 libsuff= shlibsuff= 8426 ;; 8427 *) 8428 case $LD in # libtool.m4 will add one of these switches to LD 8429 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8430 libsuff= shlibsuff= libmagic=32-bit;; 8431 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8432 libsuff=32 shlibsuff=N32 libmagic=N32;; 8433 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8434 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8435 *) libsuff= shlibsuff= libmagic=never-match;; 8436 esac 8437 ;; 8438 esac 8439 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8440 shlibpath_overrides_runpath=no 8441 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8442 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8443 hardcode_into_libs=yes 8444 ;; 8445 8446# No shared lib support for Linux oldld, aout, or coff. 8447linux*oldld* | linux*aout* | linux*coff*) 8448 dynamic_linker=no 8449 ;; 8450 8451# This must be Linux ELF. 8452linux*) 8453 version_type=linux 8454 need_lib_prefix=no 8455 need_version=no 8456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8457 soname_spec='${libname}${release}${shared_ext}$major' 8458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8459 shlibpath_var=LD_LIBRARY_PATH 8460 shlibpath_overrides_runpath=no 8461 # This implies no fast_install, which is unacceptable. 8462 # Some rework will be needed to allow for fast_install 8463 # before this can be enabled. 8464 hardcode_into_libs=yes 8465 8466 # find out which ABI we are using 8467 libsuff= 8468 case "$host_cpu" in 8469 x86_64*|s390x*|powerpc64*) 8470 echo '#line 8470 "configure"' > conftest.$ac_ext 8471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8472 (eval $ac_compile) 2>&5 8473 ac_status=$? 8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8475 (exit $ac_status); }; then 8476 case `/usr/bin/file conftest.$ac_objext` in 8477 *64-bit*) 8478 libsuff=64 8479 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 8480 ;; 8481 esac 8482 fi 8483 rm -rf conftest* 8484 ;; 8485 esac 8486 8487 # Append ld.so.conf contents to the search path 8488 if test -f /etc/ld.so.conf; then 8489 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8490 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 8491 fi 8492 8493 # We used to test for /lib/ld.so.1 and disable shared libraries on 8494 # powerpc, because MkLinux only supported shared libraries with the 8495 # GNU dynamic linker. Since this was broken with cross compilers, 8496 # most powerpc-linux boxes support dynamic linking these days and 8497 # people can always --disable-shared, the test was removed, and we 8498 # assume the GNU/Linux dynamic linker is in use. 8499 dynamic_linker='GNU/Linux ld.so' 8500 ;; 8501 8502knetbsd*-gnu) 8503 version_type=linux 8504 need_lib_prefix=no 8505 need_version=no 8506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8507 soname_spec='${libname}${release}${shared_ext}$major' 8508 shlibpath_var=LD_LIBRARY_PATH 8509 shlibpath_overrides_runpath=no 8510 hardcode_into_libs=yes 8511 dynamic_linker='GNU ld.so' 8512 ;; 8513 8514netbsd*) 8515 version_type=sunos 8516 need_lib_prefix=no 8517 need_version=no 8518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8521 dynamic_linker='NetBSD (a.out) ld.so' 8522 else 8523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8524 soname_spec='${libname}${release}${shared_ext}$major' 8525 dynamic_linker='NetBSD ld.elf_so' 8526 fi 8527 shlibpath_var=LD_LIBRARY_PATH 8528 shlibpath_overrides_runpath=yes 8529 hardcode_into_libs=yes 8530 ;; 8531 8532newsos6) 8533 version_type=linux 8534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8535 shlibpath_var=LD_LIBRARY_PATH 8536 shlibpath_overrides_runpath=yes 8537 ;; 8538 8539nto-qnx*) 8540 version_type=linux 8541 need_lib_prefix=no 8542 need_version=no 8543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8544 soname_spec='${libname}${release}${shared_ext}$major' 8545 shlibpath_var=LD_LIBRARY_PATH 8546 shlibpath_overrides_runpath=yes 8547 ;; 8548 8549openbsd*) 8550 version_type=sunos 8551 sys_lib_dlsearch_path_spec="/usr/lib" 8552 need_lib_prefix=no 8553 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8554 case $host_os in 8555 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8556 *) need_version=no ;; 8557 esac 8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8560 shlibpath_var=LD_LIBRARY_PATH 8561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8562 case $host_os in 8563 openbsd2.[89] | openbsd2.[89].*) 8564 shlibpath_overrides_runpath=no 8565 ;; 8566 *) 8567 shlibpath_overrides_runpath=yes 8568 ;; 8569 esac 8570 else 8571 shlibpath_overrides_runpath=yes 8572 fi 8573 ;; 8574 8575os2*) 8576 libname_spec='$name' 8577 shrext_cmds=".dll" 8578 need_lib_prefix=no 8579 library_names_spec='$libname${shared_ext} $libname.a' 8580 dynamic_linker='OS/2 ld.exe' 8581 shlibpath_var=LIBPATH 8582 ;; 8583 8584osf3* | osf4* | osf5*) 8585 version_type=osf 8586 need_lib_prefix=no 8587 need_version=no 8588 soname_spec='${libname}${release}${shared_ext}$major' 8589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8590 shlibpath_var=LD_LIBRARY_PATH 8591 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8592 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8593 ;; 8594 8595solaris*) 8596 version_type=linux 8597 need_lib_prefix=no 8598 need_version=no 8599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8600 soname_spec='${libname}${release}${shared_ext}$major' 8601 shlibpath_var=LD_LIBRARY_PATH 8602 shlibpath_overrides_runpath=yes 8603 hardcode_into_libs=yes 8604 # ldd complains unless libraries are executable 8605 postinstall_cmds='chmod +x $lib' 8606 ;; 8607 8608sunos4*) 8609 version_type=sunos 8610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8611 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8612 shlibpath_var=LD_LIBRARY_PATH 8613 shlibpath_overrides_runpath=yes 8614 if test "$with_gnu_ld" = yes; then 8615 need_lib_prefix=no 8616 fi 8617 need_version=yes 8618 ;; 8619 8620sysv4 | sysv4.3*) 8621 version_type=linux 8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8623 soname_spec='${libname}${release}${shared_ext}$major' 8624 shlibpath_var=LD_LIBRARY_PATH 8625 case $host_vendor in 8626 sni) 8627 shlibpath_overrides_runpath=no 8628 need_lib_prefix=no 8629 export_dynamic_flag_spec='${wl}-Blargedynsym' 8630 runpath_var=LD_RUN_PATH 8631 ;; 8632 siemens) 8633 need_lib_prefix=no 8634 ;; 8635 motorola) 8636 need_lib_prefix=no 8637 need_version=no 8638 shlibpath_overrides_runpath=no 8639 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8640 ;; 8641 esac 8642 ;; 8643 8644sysv4*MP*) 8645 if test -d /usr/nec ;then 8646 version_type=linux 8647 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8648 soname_spec='$libname${shared_ext}.$major' 8649 shlibpath_var=LD_LIBRARY_PATH 8650 fi 8651 ;; 8652 8653sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8654 version_type=freebsd-elf 8655 need_lib_prefix=no 8656 need_version=no 8657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8658 soname_spec='${libname}${release}${shared_ext}$major' 8659 shlibpath_var=LD_LIBRARY_PATH 8660 hardcode_into_libs=yes 8661 if test "$with_gnu_ld" = yes; then 8662 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8663 shlibpath_overrides_runpath=no 8664 else 8665 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8666 shlibpath_overrides_runpath=yes 8667 case $host_os in 8668 sco3.2v5*) 8669 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8670 ;; 8671 esac 8672 fi 8673 sys_lib_dlsearch_path_spec='/usr/lib' 8674 ;; 8675 8676uts4*) 8677 version_type=linux 8678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8679 soname_spec='${libname}${release}${shared_ext}$major' 8680 shlibpath_var=LD_LIBRARY_PATH 8681 ;; 8682 8683*) 8684 dynamic_linker=no 8685 ;; 8686esac 8687echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8688echo "${ECHO_T}$dynamic_linker" >&6 8689test "$dynamic_linker" = no && can_build_shared=no 8690 8691variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8692if test "$GCC" = yes; then 8693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8694fi 8695 8696echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8697echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8698hardcode_action= 8699if test -n "$hardcode_libdir_flag_spec" || \ 8700 test -n "$runpath_var" || \ 8701 test "X$hardcode_automatic" = "Xyes" ; then 8702 8703 # We can hardcode non-existant directories. 8704 if test "$hardcode_direct" != no && 8705 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8706 # have to relink, otherwise we might link with an installed library 8707 # when we should be linking with a yet-to-be-installed one 8708 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8709 test "$hardcode_minus_L" != no; then 8710 # Linking always hardcodes the temporary library directory. 8711 hardcode_action=relink 8712 else 8713 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8714 hardcode_action=immediate 8715 fi 8716else 8717 # We cannot hardcode anything, or else we can only hardcode existing 8718 # directories. 8719 hardcode_action=unsupported 8720fi 8721echo "$as_me:$LINENO: result: $hardcode_action" >&5 8722echo "${ECHO_T}$hardcode_action" >&6 8723 8724if test "$hardcode_action" = relink; then 8725 # Fast installation is not supported 8726 enable_fast_install=no 8727elif test "$shlibpath_overrides_runpath" = yes || 8728 test "$enable_shared" = no; then 8729 # Fast installation is not necessary 8730 enable_fast_install=needless 8731fi 8732 8733striplib= 8734old_striplib= 8735echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8736echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8737if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8738 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8739 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8740 echo "$as_me:$LINENO: result: yes" >&5 8741echo "${ECHO_T}yes" >&6 8742else 8743# FIXME - insert some real tests, host_os isn't really good enough 8744 case $host_os in 8745 darwin*) 8746 if test -n "$STRIP" ; then 8747 striplib="$STRIP -x" 8748 echo "$as_me:$LINENO: result: yes" >&5 8749echo "${ECHO_T}yes" >&6 8750 else 8751 echo "$as_me:$LINENO: result: no" >&5 8752echo "${ECHO_T}no" >&6 8753fi 8754 ;; 8755 *) 8756 echo "$as_me:$LINENO: result: no" >&5 8757echo "${ECHO_T}no" >&6 8758 ;; 8759 esac 8760fi 8761 8762if test "x$enable_dlopen" != xyes; then 8763 enable_dlopen=unknown 8764 enable_dlopen_self=unknown 8765 enable_dlopen_self_static=unknown 8766else 8767 lt_cv_dlopen=no 8768 lt_cv_dlopen_libs= 8769 8770 case $host_os in 8771 beos*) 8772 lt_cv_dlopen="load_add_on" 8773 lt_cv_dlopen_libs= 8774 lt_cv_dlopen_self=yes 8775 ;; 8776 8777 mingw* | pw32*) 8778 lt_cv_dlopen="LoadLibrary" 8779 lt_cv_dlopen_libs= 8780 ;; 8781 8782 cygwin*) 8783 lt_cv_dlopen="dlopen" 8784 lt_cv_dlopen_libs= 8785 ;; 8786 8787 darwin*) 8788 # if libdl is installed we need to link against it 8789 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8790echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8791if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8792 echo $ECHO_N "(cached) $ECHO_C" >&6 8793else 8794 ac_check_lib_save_LIBS=$LIBS 8795LIBS="-ldl $LIBS" 8796cat >conftest.$ac_ext <<_ACEOF 8797/* confdefs.h. */ 8798_ACEOF 8799cat confdefs.h >>conftest.$ac_ext 8800cat >>conftest.$ac_ext <<_ACEOF 8801/* end confdefs.h. */ 8802 8803/* Override any gcc2 internal prototype to avoid an error. */ 8804#ifdef __cplusplus 8805extern "C" 8806#endif 8807/* We use char because int might match the return type of a gcc2 8808 builtin and then its argument prototype would still apply. */ 8809char dlopen (); 8810int 8811main () 8812{ 8813dlopen (); 8814 ; 8815 return 0; 8816} 8817_ACEOF 8818rm -f conftest.$ac_objext conftest$ac_exeext 8819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8820 (eval $ac_link) 2>conftest.er1 8821 ac_status=$? 8822 grep -v '^ *+' conftest.er1 >conftest.err 8823 rm -f conftest.er1 8824 cat conftest.err >&5 8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8826 (exit $ac_status); } && 8827 { ac_try='test -z "$ac_c_werror_flag" 8828 || test ! -s conftest.err' 8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8830 (eval $ac_try) 2>&5 8831 ac_status=$? 8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8833 (exit $ac_status); }; } && 8834 { ac_try='test -s conftest$ac_exeext' 8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8836 (eval $ac_try) 2>&5 8837 ac_status=$? 8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8839 (exit $ac_status); }; }; then 8840 ac_cv_lib_dl_dlopen=yes 8841else 8842 echo "$as_me: failed program was:" >&5 8843sed 's/^/| /' conftest.$ac_ext >&5 8844 8845ac_cv_lib_dl_dlopen=no 8846fi 8847rm -f conftest.err conftest.$ac_objext \ 8848 conftest$ac_exeext conftest.$ac_ext 8849LIBS=$ac_check_lib_save_LIBS 8850fi 8851echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8852echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8853if test $ac_cv_lib_dl_dlopen = yes; then 8854 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8855else 8856 8857 lt_cv_dlopen="dyld" 8858 lt_cv_dlopen_libs= 8859 lt_cv_dlopen_self=yes 8860 8861fi 8862 8863 ;; 8864 8865 *) 8866 echo "$as_me:$LINENO: checking for shl_load" >&5 8867echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8868if test "${ac_cv_func_shl_load+set}" = set; then 8869 echo $ECHO_N "(cached) $ECHO_C" >&6 8870else 8871 cat >conftest.$ac_ext <<_ACEOF 8872/* confdefs.h. */ 8873_ACEOF 8874cat confdefs.h >>conftest.$ac_ext 8875cat >>conftest.$ac_ext <<_ACEOF 8876/* end confdefs.h. */ 8877/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8878 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8879#define shl_load innocuous_shl_load 8880 8881/* System header to define __stub macros and hopefully few prototypes, 8882 which can conflict with char shl_load (); below. 8883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8884 <limits.h> exists even on freestanding compilers. */ 8885 8886#ifdef __STDC__ 8887# include <limits.h> 8888#else 8889# include <assert.h> 8890#endif 8891 8892#undef shl_load 8893 8894/* Override any gcc2 internal prototype to avoid an error. */ 8895#ifdef __cplusplus 8896extern "C" 8897{ 8898#endif 8899/* We use char because int might match the return type of a gcc2 8900 builtin and then its argument prototype would still apply. */ 8901char shl_load (); 8902/* The GNU C library defines this for functions which it implements 8903 to always fail with ENOSYS. Some functions are actually named 8904 something starting with __ and the normal name is an alias. */ 8905#if defined (__stub_shl_load) || defined (__stub___shl_load) 8906choke me 8907#else 8908char (*f) () = shl_load; 8909#endif 8910#ifdef __cplusplus 8911} 8912#endif 8913 8914int 8915main () 8916{ 8917return f != shl_load; 8918 ; 8919 return 0; 8920} 8921_ACEOF 8922rm -f conftest.$ac_objext conftest$ac_exeext 8923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8924 (eval $ac_link) 2>conftest.er1 8925 ac_status=$? 8926 grep -v '^ *+' conftest.er1 >conftest.err 8927 rm -f conftest.er1 8928 cat conftest.err >&5 8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8930 (exit $ac_status); } && 8931 { ac_try='test -z "$ac_c_werror_flag" 8932 || test ! -s conftest.err' 8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8934 (eval $ac_try) 2>&5 8935 ac_status=$? 8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8937 (exit $ac_status); }; } && 8938 { ac_try='test -s conftest$ac_exeext' 8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8940 (eval $ac_try) 2>&5 8941 ac_status=$? 8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8943 (exit $ac_status); }; }; then 8944 ac_cv_func_shl_load=yes 8945else 8946 echo "$as_me: failed program was:" >&5 8947sed 's/^/| /' conftest.$ac_ext >&5 8948 8949ac_cv_func_shl_load=no 8950fi 8951rm -f conftest.err conftest.$ac_objext \ 8952 conftest$ac_exeext conftest.$ac_ext 8953fi 8954echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8955echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8956if test $ac_cv_func_shl_load = yes; then 8957 lt_cv_dlopen="shl_load" 8958else 8959 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8960echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8961if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8962 echo $ECHO_N "(cached) $ECHO_C" >&6 8963else 8964 ac_check_lib_save_LIBS=$LIBS 8965LIBS="-ldld $LIBS" 8966cat >conftest.$ac_ext <<_ACEOF 8967/* confdefs.h. */ 8968_ACEOF 8969cat confdefs.h >>conftest.$ac_ext 8970cat >>conftest.$ac_ext <<_ACEOF 8971/* end confdefs.h. */ 8972 8973/* Override any gcc2 internal prototype to avoid an error. */ 8974#ifdef __cplusplus 8975extern "C" 8976#endif 8977/* We use char because int might match the return type of a gcc2 8978 builtin and then its argument prototype would still apply. */ 8979char shl_load (); 8980int 8981main () 8982{ 8983shl_load (); 8984 ; 8985 return 0; 8986} 8987_ACEOF 8988rm -f conftest.$ac_objext conftest$ac_exeext 8989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8990 (eval $ac_link) 2>conftest.er1 8991 ac_status=$? 8992 grep -v '^ *+' conftest.er1 >conftest.err 8993 rm -f conftest.er1 8994 cat conftest.err >&5 8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8996 (exit $ac_status); } && 8997 { ac_try='test -z "$ac_c_werror_flag" 8998 || test ! -s conftest.err' 8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9000 (eval $ac_try) 2>&5 9001 ac_status=$? 9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9003 (exit $ac_status); }; } && 9004 { ac_try='test -s conftest$ac_exeext' 9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9006 (eval $ac_try) 2>&5 9007 ac_status=$? 9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9009 (exit $ac_status); }; }; then 9010 ac_cv_lib_dld_shl_load=yes 9011else 9012 echo "$as_me: failed program was:" >&5 9013sed 's/^/| /' conftest.$ac_ext >&5 9014 9015ac_cv_lib_dld_shl_load=no 9016fi 9017rm -f conftest.err conftest.$ac_objext \ 9018 conftest$ac_exeext conftest.$ac_ext 9019LIBS=$ac_check_lib_save_LIBS 9020fi 9021echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9022echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 9023if test $ac_cv_lib_dld_shl_load = yes; then 9024 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9025else 9026 echo "$as_me:$LINENO: checking for dlopen" >&5 9027echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 9028if test "${ac_cv_func_dlopen+set}" = set; then 9029 echo $ECHO_N "(cached) $ECHO_C" >&6 9030else 9031 cat >conftest.$ac_ext <<_ACEOF 9032/* confdefs.h. */ 9033_ACEOF 9034cat confdefs.h >>conftest.$ac_ext 9035cat >>conftest.$ac_ext <<_ACEOF 9036/* end confdefs.h. */ 9037/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9038 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9039#define dlopen innocuous_dlopen 9040 9041/* System header to define __stub macros and hopefully few prototypes, 9042 which can conflict with char dlopen (); below. 9043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9044 <limits.h> exists even on freestanding compilers. */ 9045 9046#ifdef __STDC__ 9047# include <limits.h> 9048#else 9049# include <assert.h> 9050#endif 9051 9052#undef dlopen 9053 9054/* Override any gcc2 internal prototype to avoid an error. */ 9055#ifdef __cplusplus 9056extern "C" 9057{ 9058#endif 9059/* We use char because int might match the return type of a gcc2 9060 builtin and then its argument prototype would still apply. */ 9061char dlopen (); 9062/* The GNU C library defines this for functions which it implements 9063 to always fail with ENOSYS. Some functions are actually named 9064 something starting with __ and the normal name is an alias. */ 9065#if defined (__stub_dlopen) || defined (__stub___dlopen) 9066choke me 9067#else 9068char (*f) () = dlopen; 9069#endif 9070#ifdef __cplusplus 9071} 9072#endif 9073 9074int 9075main () 9076{ 9077return f != dlopen; 9078 ; 9079 return 0; 9080} 9081_ACEOF 9082rm -f conftest.$ac_objext conftest$ac_exeext 9083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9084 (eval $ac_link) 2>conftest.er1 9085 ac_status=$? 9086 grep -v '^ *+' conftest.er1 >conftest.err 9087 rm -f conftest.er1 9088 cat conftest.err >&5 9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9090 (exit $ac_status); } && 9091 { ac_try='test -z "$ac_c_werror_flag" 9092 || test ! -s conftest.err' 9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9094 (eval $ac_try) 2>&5 9095 ac_status=$? 9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9097 (exit $ac_status); }; } && 9098 { ac_try='test -s conftest$ac_exeext' 9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9100 (eval $ac_try) 2>&5 9101 ac_status=$? 9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9103 (exit $ac_status); }; }; then 9104 ac_cv_func_dlopen=yes 9105else 9106 echo "$as_me: failed program was:" >&5 9107sed 's/^/| /' conftest.$ac_ext >&5 9108 9109ac_cv_func_dlopen=no 9110fi 9111rm -f conftest.err conftest.$ac_objext \ 9112 conftest$ac_exeext conftest.$ac_ext 9113fi 9114echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9115echo "${ECHO_T}$ac_cv_func_dlopen" >&6 9116if test $ac_cv_func_dlopen = yes; then 9117 lt_cv_dlopen="dlopen" 9118else 9119 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9120echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9121if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9122 echo $ECHO_N "(cached) $ECHO_C" >&6 9123else 9124 ac_check_lib_save_LIBS=$LIBS 9125LIBS="-ldl $LIBS" 9126cat >conftest.$ac_ext <<_ACEOF 9127/* confdefs.h. */ 9128_ACEOF 9129cat confdefs.h >>conftest.$ac_ext 9130cat >>conftest.$ac_ext <<_ACEOF 9131/* end confdefs.h. */ 9132 9133/* Override any gcc2 internal prototype to avoid an error. */ 9134#ifdef __cplusplus 9135extern "C" 9136#endif 9137/* We use char because int might match the return type of a gcc2 9138 builtin and then its argument prototype would still apply. */ 9139char dlopen (); 9140int 9141main () 9142{ 9143dlopen (); 9144 ; 9145 return 0; 9146} 9147_ACEOF 9148rm -f conftest.$ac_objext conftest$ac_exeext 9149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9150 (eval $ac_link) 2>conftest.er1 9151 ac_status=$? 9152 grep -v '^ *+' conftest.er1 >conftest.err 9153 rm -f conftest.er1 9154 cat conftest.err >&5 9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9156 (exit $ac_status); } && 9157 { ac_try='test -z "$ac_c_werror_flag" 9158 || test ! -s conftest.err' 9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9160 (eval $ac_try) 2>&5 9161 ac_status=$? 9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9163 (exit $ac_status); }; } && 9164 { ac_try='test -s conftest$ac_exeext' 9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9166 (eval $ac_try) 2>&5 9167 ac_status=$? 9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9169 (exit $ac_status); }; }; then 9170 ac_cv_lib_dl_dlopen=yes 9171else 9172 echo "$as_me: failed program was:" >&5 9173sed 's/^/| /' conftest.$ac_ext >&5 9174 9175ac_cv_lib_dl_dlopen=no 9176fi 9177rm -f conftest.err conftest.$ac_objext \ 9178 conftest$ac_exeext conftest.$ac_ext 9179LIBS=$ac_check_lib_save_LIBS 9180fi 9181echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9182echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9183if test $ac_cv_lib_dl_dlopen = yes; then 9184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9185else 9186 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9187echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 9188if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9189 echo $ECHO_N "(cached) $ECHO_C" >&6 9190else 9191 ac_check_lib_save_LIBS=$LIBS 9192LIBS="-lsvld $LIBS" 9193cat >conftest.$ac_ext <<_ACEOF 9194/* confdefs.h. */ 9195_ACEOF 9196cat confdefs.h >>conftest.$ac_ext 9197cat >>conftest.$ac_ext <<_ACEOF 9198/* end confdefs.h. */ 9199 9200/* Override any gcc2 internal prototype to avoid an error. */ 9201#ifdef __cplusplus 9202extern "C" 9203#endif 9204/* We use char because int might match the return type of a gcc2 9205 builtin and then its argument prototype would still apply. */ 9206char dlopen (); 9207int 9208main () 9209{ 9210dlopen (); 9211 ; 9212 return 0; 9213} 9214_ACEOF 9215rm -f conftest.$ac_objext conftest$ac_exeext 9216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9217 (eval $ac_link) 2>conftest.er1 9218 ac_status=$? 9219 grep -v '^ *+' conftest.er1 >conftest.err 9220 rm -f conftest.er1 9221 cat conftest.err >&5 9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9223 (exit $ac_status); } && 9224 { ac_try='test -z "$ac_c_werror_flag" 9225 || test ! -s conftest.err' 9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9227 (eval $ac_try) 2>&5 9228 ac_status=$? 9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9230 (exit $ac_status); }; } && 9231 { ac_try='test -s conftest$ac_exeext' 9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9233 (eval $ac_try) 2>&5 9234 ac_status=$? 9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9236 (exit $ac_status); }; }; then 9237 ac_cv_lib_svld_dlopen=yes 9238else 9239 echo "$as_me: failed program was:" >&5 9240sed 's/^/| /' conftest.$ac_ext >&5 9241 9242ac_cv_lib_svld_dlopen=no 9243fi 9244rm -f conftest.err conftest.$ac_objext \ 9245 conftest$ac_exeext conftest.$ac_ext 9246LIBS=$ac_check_lib_save_LIBS 9247fi 9248echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9249echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9250if test $ac_cv_lib_svld_dlopen = yes; then 9251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9252else 9253 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9254echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9255if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9256 echo $ECHO_N "(cached) $ECHO_C" >&6 9257else 9258 ac_check_lib_save_LIBS=$LIBS 9259LIBS="-ldld $LIBS" 9260cat >conftest.$ac_ext <<_ACEOF 9261/* confdefs.h. */ 9262_ACEOF 9263cat confdefs.h >>conftest.$ac_ext 9264cat >>conftest.$ac_ext <<_ACEOF 9265/* end confdefs.h. */ 9266 9267/* Override any gcc2 internal prototype to avoid an error. */ 9268#ifdef __cplusplus 9269extern "C" 9270#endif 9271/* We use char because int might match the return type of a gcc2 9272 builtin and then its argument prototype would still apply. */ 9273char dld_link (); 9274int 9275main () 9276{ 9277dld_link (); 9278 ; 9279 return 0; 9280} 9281_ACEOF 9282rm -f conftest.$ac_objext conftest$ac_exeext 9283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9284 (eval $ac_link) 2>conftest.er1 9285 ac_status=$? 9286 grep -v '^ *+' conftest.er1 >conftest.err 9287 rm -f conftest.er1 9288 cat conftest.err >&5 9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9290 (exit $ac_status); } && 9291 { ac_try='test -z "$ac_c_werror_flag" 9292 || test ! -s conftest.err' 9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9294 (eval $ac_try) 2>&5 9295 ac_status=$? 9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9297 (exit $ac_status); }; } && 9298 { ac_try='test -s conftest$ac_exeext' 9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9300 (eval $ac_try) 2>&5 9301 ac_status=$? 9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9303 (exit $ac_status); }; }; then 9304 ac_cv_lib_dld_dld_link=yes 9305else 9306 echo "$as_me: failed program was:" >&5 9307sed 's/^/| /' conftest.$ac_ext >&5 9308 9309ac_cv_lib_dld_dld_link=no 9310fi 9311rm -f conftest.err conftest.$ac_objext \ 9312 conftest$ac_exeext conftest.$ac_ext 9313LIBS=$ac_check_lib_save_LIBS 9314fi 9315echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9316echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9317if test $ac_cv_lib_dld_dld_link = yes; then 9318 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9319fi 9320 9321 9322fi 9323 9324 9325fi 9326 9327 9328fi 9329 9330 9331fi 9332 9333 9334fi 9335 9336 ;; 9337 esac 9338 9339 if test "x$lt_cv_dlopen" != xno; then 9340 enable_dlopen=yes 9341 else 9342 enable_dlopen=no 9343 fi 9344 9345 case $lt_cv_dlopen in 9346 dlopen) 9347 save_CPPFLAGS="$CPPFLAGS" 9348 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9349 9350 save_LDFLAGS="$LDFLAGS" 9351 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9352 9353 save_LIBS="$LIBS" 9354 LIBS="$lt_cv_dlopen_libs $LIBS" 9355 9356 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9357echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9358if test "${lt_cv_dlopen_self+set}" = set; then 9359 echo $ECHO_N "(cached) $ECHO_C" >&6 9360else 9361 if test "$cross_compiling" = yes; then : 9362 lt_cv_dlopen_self=cross 9363else 9364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9365 lt_status=$lt_dlunknown 9366 cat > conftest.$ac_ext <<EOF 9367#line 9367 "configure" 9368#include "confdefs.h" 9369 9370#if HAVE_DLFCN_H 9371#include <dlfcn.h> 9372#endif 9373 9374#include <stdio.h> 9375 9376#ifdef RTLD_GLOBAL 9377# define LT_DLGLOBAL RTLD_GLOBAL 9378#else 9379# ifdef DL_GLOBAL 9380# define LT_DLGLOBAL DL_GLOBAL 9381# else 9382# define LT_DLGLOBAL 0 9383# endif 9384#endif 9385 9386/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9387 find out it does not work in some platform. */ 9388#ifndef LT_DLLAZY_OR_NOW 9389# ifdef RTLD_LAZY 9390# define LT_DLLAZY_OR_NOW RTLD_LAZY 9391# else 9392# ifdef DL_LAZY 9393# define LT_DLLAZY_OR_NOW DL_LAZY 9394# else 9395# ifdef RTLD_NOW 9396# define LT_DLLAZY_OR_NOW RTLD_NOW 9397# else 9398# ifdef DL_NOW 9399# define LT_DLLAZY_OR_NOW DL_NOW 9400# else 9401# define LT_DLLAZY_OR_NOW 0 9402# endif 9403# endif 9404# endif 9405# endif 9406#endif 9407 9408#ifdef __cplusplus 9409extern "C" void exit (int); 9410#endif 9411 9412void fnord() { int i=42;} 9413int main () 9414{ 9415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9416 int status = $lt_dlunknown; 9417 9418 if (self) 9419 { 9420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9421 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9422 /* dlclose (self); */ 9423 } 9424 else 9425 puts (dlerror ()); 9426 9427 exit (status); 9428} 9429EOF 9430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9431 (eval $ac_link) 2>&5 9432 ac_status=$? 9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9434 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9435 (./conftest; exit; ) >&5 2>/dev/null 9436 lt_status=$? 9437 case x$lt_status in 9438 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9439 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9440 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9441 esac 9442 else : 9443 # compilation failed 9444 lt_cv_dlopen_self=no 9445 fi 9446fi 9447rm -fr conftest* 9448 9449 9450fi 9451echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9452echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9453 9454 if test "x$lt_cv_dlopen_self" = xyes; then 9455 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9456 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9457echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9458if test "${lt_cv_dlopen_self_static+set}" = set; then 9459 echo $ECHO_N "(cached) $ECHO_C" >&6 9460else 9461 if test "$cross_compiling" = yes; then : 9462 lt_cv_dlopen_self_static=cross 9463else 9464 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9465 lt_status=$lt_dlunknown 9466 cat > conftest.$ac_ext <<EOF 9467#line 9467 "configure" 9468#include "confdefs.h" 9469 9470#if HAVE_DLFCN_H 9471#include <dlfcn.h> 9472#endif 9473 9474#include <stdio.h> 9475 9476#ifdef RTLD_GLOBAL 9477# define LT_DLGLOBAL RTLD_GLOBAL 9478#else 9479# ifdef DL_GLOBAL 9480# define LT_DLGLOBAL DL_GLOBAL 9481# else 9482# define LT_DLGLOBAL 0 9483# endif 9484#endif 9485 9486/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9487 find out it does not work in some platform. */ 9488#ifndef LT_DLLAZY_OR_NOW 9489# ifdef RTLD_LAZY 9490# define LT_DLLAZY_OR_NOW RTLD_LAZY 9491# else 9492# ifdef DL_LAZY 9493# define LT_DLLAZY_OR_NOW DL_LAZY 9494# else 9495# ifdef RTLD_NOW 9496# define LT_DLLAZY_OR_NOW RTLD_NOW 9497# else 9498# ifdef DL_NOW 9499# define LT_DLLAZY_OR_NOW DL_NOW 9500# else 9501# define LT_DLLAZY_OR_NOW 0 9502# endif 9503# endif 9504# endif 9505# endif 9506#endif 9507 9508#ifdef __cplusplus 9509extern "C" void exit (int); 9510#endif 9511 9512void fnord() { int i=42;} 9513int main () 9514{ 9515 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9516 int status = $lt_dlunknown; 9517 9518 if (self) 9519 { 9520 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9521 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9522 /* dlclose (self); */ 9523 } 9524 else 9525 puts (dlerror ()); 9526 9527 exit (status); 9528} 9529EOF 9530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9531 (eval $ac_link) 2>&5 9532 ac_status=$? 9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9534 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9535 (./conftest; exit; ) >&5 2>/dev/null 9536 lt_status=$? 9537 case x$lt_status in 9538 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9539 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9540 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9541 esac 9542 else : 9543 # compilation failed 9544 lt_cv_dlopen_self_static=no 9545 fi 9546fi 9547rm -fr conftest* 9548 9549 9550fi 9551echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9552echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9553 fi 9554 9555 CPPFLAGS="$save_CPPFLAGS" 9556 LDFLAGS="$save_LDFLAGS" 9557 LIBS="$save_LIBS" 9558 ;; 9559 esac 9560 9561 case $lt_cv_dlopen_self in 9562 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9563 *) enable_dlopen_self=unknown ;; 9564 esac 9565 9566 case $lt_cv_dlopen_self_static in 9567 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9568 *) enable_dlopen_self_static=unknown ;; 9569 esac 9570fi 9571 9572 9573# Report which library types will actually be built 9574echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9575echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9576echo "$as_me:$LINENO: result: $can_build_shared" >&5 9577echo "${ECHO_T}$can_build_shared" >&6 9578 9579echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9580echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9581test "$can_build_shared" = "no" && enable_shared=no 9582 9583# On AIX, shared libraries and static libraries use the same namespace, and 9584# are all built from PIC. 9585case $host_os in 9586aix3*) 9587 test "$enable_shared" = yes && enable_static=no 9588 if test -n "$RANLIB"; then 9589 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9590 postinstall_cmds='$RANLIB $lib' 9591 fi 9592 ;; 9593 9594aix4* | aix5*) 9595 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9596 test "$enable_shared" = yes && enable_static=no 9597 fi 9598 ;; 9599esac 9600echo "$as_me:$LINENO: result: $enable_shared" >&5 9601echo "${ECHO_T}$enable_shared" >&6 9602 9603echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9604echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9605# Make sure either enable_shared or enable_static is yes. 9606test "$enable_shared" = yes || enable_static=yes 9607echo "$as_me:$LINENO: result: $enable_static" >&5 9608echo "${ECHO_T}$enable_static" >&6 9609 9610# The else clause should only fire when bootstrapping the 9611# libtool distribution, otherwise you forgot to ship ltmain.sh 9612# with your package, and you will get complaints that there are 9613# no rules to generate ltmain.sh. 9614if test -f "$ltmain"; then 9615 # See if we are running on zsh, and set the options which allow our commands through 9616 # without removal of \ escapes. 9617 if test -n "${ZSH_VERSION+set}" ; then 9618 setopt NO_GLOB_SUBST 9619 fi 9620 # Now quote all the things that may contain metacharacters while being 9621 # careful not to overquote the AC_SUBSTed values. We take copies of the 9622 # variables and quote the copies for generation of the libtool script. 9623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9624 SED SHELL STRIP \ 9625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9627 deplibs_check_method reload_flag reload_cmds need_locks \ 9628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9629 lt_cv_sys_global_symbol_to_c_name_address \ 9630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9631 old_postinstall_cmds old_postuninstall_cmds \ 9632 compiler \ 9633 CC \ 9634 LD \ 9635 lt_prog_compiler_wl \ 9636 lt_prog_compiler_pic \ 9637 lt_prog_compiler_static \ 9638 lt_prog_compiler_no_builtin_flag \ 9639 export_dynamic_flag_spec \ 9640 thread_safe_flag_spec \ 9641 whole_archive_flag_spec \ 9642 enable_shared_with_static_runtimes \ 9643 old_archive_cmds \ 9644 old_archive_from_new_cmds \ 9645 predep_objects \ 9646 postdep_objects \ 9647 predeps \ 9648 postdeps \ 9649 compiler_lib_search_path \ 9650 archive_cmds \ 9651 archive_expsym_cmds \ 9652 postinstall_cmds \ 9653 postuninstall_cmds \ 9654 old_archive_from_expsyms_cmds \ 9655 allow_undefined_flag \ 9656 no_undefined_flag \ 9657 export_symbols_cmds \ 9658 hardcode_libdir_flag_spec \ 9659 hardcode_libdir_flag_spec_ld \ 9660 hardcode_libdir_separator \ 9661 hardcode_automatic \ 9662 module_cmds \ 9663 module_expsym_cmds \ 9664 lt_cv_prog_compiler_c_o \ 9665 exclude_expsyms \ 9666 include_expsyms; do 9667 9668 case $var in 9669 old_archive_cmds | \ 9670 old_archive_from_new_cmds | \ 9671 archive_cmds | \ 9672 archive_expsym_cmds | \ 9673 module_cmds | \ 9674 module_expsym_cmds | \ 9675 old_archive_from_expsyms_cmds | \ 9676 export_symbols_cmds | \ 9677 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9678 postinstall_cmds | postuninstall_cmds | \ 9679 old_postinstall_cmds | old_postuninstall_cmds | \ 9680 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9681 # Double-quote double-evaled strings. 9682 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9683 ;; 9684 *) 9685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9686 ;; 9687 esac 9688 done 9689 9690 case $lt_echo in 9691 *'\$0 --fallback-echo"') 9692 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9693 ;; 9694 esac 9695 9696cfgfile="${ofile}T" 9697 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9698 $rm -f "$cfgfile" 9699 { echo "$as_me:$LINENO: creating $ofile" >&5 9700echo "$as_me: creating $ofile" >&6;} 9701 9702 cat <<__EOF__ >> "$cfgfile" 9703#! $SHELL 9704 9705# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9706# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9707# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9708# 9709# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9710# Free Software Foundation, Inc. 9711# 9712# This file is part of GNU Libtool: 9713# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9714# 9715# This program is free software; you can redistribute it and/or modify 9716# it under the terms of the GNU General Public License as published by 9717# the Free Software Foundation; either version 2 of the License, or 9718# (at your option) any later version. 9719# 9720# This program is distributed in the hope that it will be useful, but 9721# WITHOUT ANY WARRANTY; without even the implied warranty of 9722# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9723# General Public License for more details. 9724# 9725# You should have received a copy of the GNU General Public License 9726# along with this program; if not, write to the Free Software 9727# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9728# 9729# As a special exception to the GNU General Public License, if you 9730# distribute this file as part of a program that contains a 9731# configuration script generated by Autoconf, you may include it under 9732# the same distribution terms that you use for the rest of that program. 9733 9734# A sed program that does not truncate output. 9735SED=$lt_SED 9736 9737# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9738Xsed="$SED -e 1s/^X//" 9739 9740# The HP-UX ksh and POSIX shell print the target directory to stdout 9741# if CDPATH is set. 9742(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9743 9744# The names of the tagged configurations supported by this script. 9745available_tags= 9746 9747# ### BEGIN LIBTOOL CONFIG 9748 9749# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9750 9751# Shell to use when invoking shell scripts. 9752SHELL=$lt_SHELL 9753 9754# Whether or not to build shared libraries. 9755build_libtool_libs=$enable_shared 9756 9757# Whether or not to build static libraries. 9758build_old_libs=$enable_static 9759 9760# Whether or not to add -lc for building shared libraries. 9761build_libtool_need_lc=$archive_cmds_need_lc 9762 9763# Whether or not to disallow shared libs when runtime libs are static 9764allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9765 9766# Whether or not to optimize for fast installation. 9767fast_install=$enable_fast_install 9768 9769# The host system. 9770host_alias=$host_alias 9771host=$host 9772host_os=$host_os 9773 9774# The build system. 9775build_alias=$build_alias 9776build=$build 9777build_os=$build_os 9778 9779# An echo program that does not interpret backslashes. 9780echo=$lt_echo 9781 9782# The archiver. 9783AR=$lt_AR 9784AR_FLAGS=$lt_AR_FLAGS 9785 9786# A C compiler. 9787LTCC=$lt_LTCC 9788 9789# LTCC compiler flags. 9790LTCFLAGS=$lt_LTCFLAGS 9791 9792# A language-specific compiler. 9793CC=$lt_compiler 9794 9795# Is the compiler the GNU C compiler? 9796with_gcc=$GCC 9797 9798gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 9799gcc_ver=\`gcc -dumpversion\` 9800 9801# An ERE matcher. 9802EGREP=$lt_EGREP 9803 9804# The linker used to build libraries. 9805LD=$lt_LD 9806 9807# Whether we need hard or soft links. 9808LN_S=$lt_LN_S 9809 9810# A BSD-compatible nm program. 9811NM=$lt_NM 9812 9813# A symbol stripping program 9814STRIP=$lt_STRIP 9815 9816# Used to examine libraries when file_magic_cmd begins "file" 9817MAGIC_CMD=$MAGIC_CMD 9818 9819# Used on cygwin: DLL creation program. 9820DLLTOOL="$DLLTOOL" 9821 9822# Used on cygwin: object dumper. 9823OBJDUMP="$OBJDUMP" 9824 9825# Used on cygwin: assembler. 9826AS="$AS" 9827 9828# The name of the directory that contains temporary libtool files. 9829objdir=$objdir 9830 9831# How to create reloadable object files. 9832reload_flag=$lt_reload_flag 9833reload_cmds=$lt_reload_cmds 9834 9835# How to pass a linker flag through the compiler. 9836wl=$lt_lt_prog_compiler_wl 9837 9838# Object file suffix (normally "o"). 9839objext="$ac_objext" 9840 9841# Old archive suffix (normally "a"). 9842libext="$libext" 9843 9844# Shared library suffix (normally ".so"). 9845shrext_cmds='$shrext_cmds' 9846 9847# Executable file suffix (normally ""). 9848exeext="$exeext" 9849 9850# Additional compiler flags for building library objects. 9851pic_flag=$lt_lt_prog_compiler_pic 9852pic_mode=$pic_mode 9853 9854# What is the maximum length of a command? 9855max_cmd_len=$lt_cv_sys_max_cmd_len 9856 9857# Does compiler simultaneously support -c and -o options? 9858compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9859 9860# Must we lock files when doing compilation? 9861need_locks=$lt_need_locks 9862 9863# Do we need the lib prefix for modules? 9864need_lib_prefix=$need_lib_prefix 9865 9866# Do we need a version for libraries? 9867need_version=$need_version 9868 9869# Whether dlopen is supported. 9870dlopen_support=$enable_dlopen 9871 9872# Whether dlopen of programs is supported. 9873dlopen_self=$enable_dlopen_self 9874 9875# Whether dlopen of statically linked programs is supported. 9876dlopen_self_static=$enable_dlopen_self_static 9877 9878# Compiler flag to prevent dynamic linking. 9879link_static_flag=$lt_lt_prog_compiler_static 9880 9881# Compiler flag to turn off builtin functions. 9882no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9883 9884# Compiler flag to allow reflexive dlopens. 9885export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9886 9887# Compiler flag to generate shared objects directly from archives. 9888whole_archive_flag_spec=$lt_whole_archive_flag_spec 9889 9890# Compiler flag to generate thread-safe objects. 9891thread_safe_flag_spec=$lt_thread_safe_flag_spec 9892 9893# Library versioning type. 9894version_type=$version_type 9895 9896# Format of library name prefix. 9897libname_spec=$lt_libname_spec 9898 9899# List of archive names. First name is the real one, the rest are links. 9900# The last name is the one that the linker finds with -lNAME. 9901library_names_spec=$lt_library_names_spec 9902 9903# The coded name of the library, if different from the real name. 9904soname_spec=$lt_soname_spec 9905 9906# Commands used to build and install an old-style archive. 9907RANLIB=$lt_RANLIB 9908old_archive_cmds=$lt_old_archive_cmds 9909old_postinstall_cmds=$lt_old_postinstall_cmds 9910old_postuninstall_cmds=$lt_old_postuninstall_cmds 9911 9912# Create an old-style archive from a shared archive. 9913old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9914 9915# Create a temporary old-style archive to link instead of a shared archive. 9916old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9917 9918# Commands used to build and install a shared archive. 9919archive_cmds=$lt_archive_cmds 9920archive_expsym_cmds=$lt_archive_expsym_cmds 9921postinstall_cmds=$lt_postinstall_cmds 9922postuninstall_cmds=$lt_postuninstall_cmds 9923 9924# Commands used to build a loadable module (assumed same as above if empty) 9925module_cmds=$lt_module_cmds 9926module_expsym_cmds=$lt_module_expsym_cmds 9927 9928# Commands to strip libraries. 9929old_striplib=$lt_old_striplib 9930striplib=$lt_striplib 9931 9932# Dependencies to place before the objects being linked to create a 9933# shared library. 9934predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9935 9936# Dependencies to place after the objects being linked to create a 9937# shared library. 9938postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9939 9940# Dependencies to place before the objects being linked to create a 9941# shared library. 9942predeps=$lt_predeps 9943 9944# Dependencies to place after the objects being linked to create a 9945# shared library. 9946postdeps=$lt_postdeps 9947 9948# The library search path used internally by the compiler when linking 9949# a shared library. 9950compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9951 9952# Method to check whether dependent libraries are shared objects. 9953deplibs_check_method=$lt_deplibs_check_method 9954 9955# Command to use when deplibs_check_method == file_magic. 9956file_magic_cmd=$lt_file_magic_cmd 9957 9958# Flag that allows shared libraries with undefined symbols to be built. 9959allow_undefined_flag=$lt_allow_undefined_flag 9960 9961# Flag that forces no undefined symbols. 9962no_undefined_flag=$lt_no_undefined_flag 9963 9964# Commands used to finish a libtool library installation in a directory. 9965finish_cmds=$lt_finish_cmds 9966 9967# Same as above, but a single script fragment to be evaled but not shown. 9968finish_eval=$lt_finish_eval 9969 9970# Take the output of nm and produce a listing of raw symbols and C names. 9971global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9972 9973# Transform the output of nm in a proper C declaration 9974global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9975 9976# Transform the output of nm in a C name address pair 9977global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9978 9979# This is the shared library runtime path variable. 9980runpath_var=$runpath_var 9981 9982# This is the shared library path variable. 9983shlibpath_var=$shlibpath_var 9984 9985# Is shlibpath searched before the hard-coded library search path? 9986shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9987 9988# How to hardcode a shared library path into an executable. 9989hardcode_action=$hardcode_action 9990 9991# Whether we should hardcode library paths into libraries. 9992hardcode_into_libs=$hardcode_into_libs 9993 9994# Flag to hardcode \$libdir into a binary during linking. 9995# This must work even if \$libdir does not exist. 9996hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9997 9998# If ld is used when linking, flag to hardcode \$libdir into 9999# a binary during linking. This must work even if \$libdir does 10000# not exist. 10001hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10002 10003# Whether we need a single -rpath flag with a separated argument. 10004hardcode_libdir_separator=$lt_hardcode_libdir_separator 10005 10006# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10007# resulting binary. 10008hardcode_direct=$hardcode_direct 10009 10010# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10011# resulting binary. 10012hardcode_minus_L=$hardcode_minus_L 10013 10014# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10015# the resulting binary. 10016hardcode_shlibpath_var=$hardcode_shlibpath_var 10017 10018# Set to yes if building a shared library automatically hardcodes DIR into the library 10019# and all subsequent libraries and executables linked against it. 10020hardcode_automatic=$hardcode_automatic 10021 10022# Variables whose values should be saved in libtool wrapper scripts and 10023# restored at relink time. 10024variables_saved_for_relink="$variables_saved_for_relink" 10025 10026# Whether libtool must link a program against all its dependency libraries. 10027link_all_deplibs=$link_all_deplibs 10028 10029# Compile-time system search path for libraries 10030sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 10031 10032# Run-time system search path for libraries 10033sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10034 10035# Fix the shell variable \$srcfile for the compiler. 10036fix_srcfile_path="$fix_srcfile_path" 10037 10038# Set to yes if exported symbols are required. 10039always_export_symbols=$always_export_symbols 10040 10041# The commands to list exported symbols. 10042export_symbols_cmds=$lt_export_symbols_cmds 10043 10044# The commands to extract the exported symbol list from a shared archive. 10045extract_expsyms_cmds=$lt_extract_expsyms_cmds 10046 10047# Symbols that should not be listed in the preloaded symbols. 10048exclude_expsyms=$lt_exclude_expsyms 10049 10050# Symbols that must always be exported. 10051include_expsyms=$lt_include_expsyms 10052 10053# ### END LIBTOOL CONFIG 10054 10055__EOF__ 10056 10057 10058 case $host_os in 10059 aix3*) 10060 cat <<\EOF >> "$cfgfile" 10061 10062# AIX sometimes has problems with the GCC collect2 program. For some 10063# reason, if we set the COLLECT_NAMES environment variable, the problems 10064# vanish in a puff of smoke. 10065if test "X${COLLECT_NAMES+set}" != Xset; then 10066 COLLECT_NAMES= 10067 export COLLECT_NAMES 10068fi 10069EOF 10070 ;; 10071 esac 10072 10073 # We use sed instead of cat because bash on DJGPP gets confused if 10074 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10075 # text mode, it properly converts lines to CR/LF. This bash problem 10076 # is reportedly fixed, but why not run on old versions too? 10077 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10078 10079 mv -f "$cfgfile" "$ofile" || \ 10080 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10081 chmod +x "$ofile" 10082 10083else 10084 # If there is no Makefile yet, we rely on a make rule to execute 10085 # `config.status --recheck' to rerun these tests and create the 10086 # libtool script then. 10087 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10088 if test -f "$ltmain_in"; then 10089 test -f Makefile && make "$ltmain" 10090 fi 10091fi 10092 10093 10094ac_ext=c 10095ac_cpp='$CPP $CPPFLAGS' 10096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10098ac_compiler_gnu=$ac_cv_c_compiler_gnu 10099 10100CC="$lt_save_CC" 10101 10102 10103# Check whether --with-tags or --without-tags was given. 10104if test "${with_tags+set}" = set; then 10105 withval="$with_tags" 10106 tagnames="$withval" 10107fi; 10108 10109if test -f "$ltmain" && test -n "$tagnames"; then 10110 if test ! -f "${ofile}"; then 10111 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10112echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10113 fi 10114 10115 if test -z "$LTCC"; then 10116 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10117 if test -z "$LTCC"; then 10118 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10119echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10120 else 10121 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10122echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10123 fi 10124 fi 10125 if test -z "$LTCFLAGS"; then 10126 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10127 fi 10128 10129 # Extract list of available tagged configurations in $ofile. 10130 # Note that this assumes the entire list is on one line. 10131 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10132 10133 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10134 for tagname in $tagnames; do 10135 IFS="$lt_save_ifs" 10136 # Check whether tagname contains only valid characters 10137 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10138 "") ;; 10139 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10140echo "$as_me: error: invalid tag name: $tagname" >&2;} 10141 { (exit 1); exit 1; }; } 10142 ;; 10143 esac 10144 10145 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10146 then 10147 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10148echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10149 { (exit 1); exit 1; }; } 10150 fi 10151 10152 # Update the list of available tags. 10153 if test -n "$tagname"; then 10154 echo appending configuration tag \"$tagname\" to $ofile 10155 10156 case $tagname in 10157 CXX) 10158 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10159 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10160 (test "X$CXX" != "Xg++"))) ; then 10161 ac_ext=cc 10162ac_cpp='$CXXCPP $CPPFLAGS' 10163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10166 10167 10168 10169 10170archive_cmds_need_lc_CXX=no 10171allow_undefined_flag_CXX= 10172always_export_symbols_CXX=no 10173archive_expsym_cmds_CXX= 10174export_dynamic_flag_spec_CXX= 10175hardcode_direct_CXX=no 10176hardcode_libdir_flag_spec_CXX= 10177hardcode_libdir_flag_spec_ld_CXX= 10178hardcode_libdir_separator_CXX= 10179hardcode_minus_L_CXX=no 10180hardcode_shlibpath_var_CXX=unsupported 10181hardcode_automatic_CXX=no 10182module_cmds_CXX= 10183module_expsym_cmds_CXX= 10184link_all_deplibs_CXX=unknown 10185old_archive_cmds_CXX=$old_archive_cmds 10186no_undefined_flag_CXX= 10187whole_archive_flag_spec_CXX= 10188enable_shared_with_static_runtimes_CXX=no 10189 10190# Dependencies to place before and after the object being linked: 10191predep_objects_CXX= 10192postdep_objects_CXX= 10193predeps_CXX= 10194postdeps_CXX= 10195compiler_lib_search_path_CXX= 10196 10197# Source file extension for C++ test sources. 10198ac_ext=cpp 10199 10200# Object file extension for compiled C++ test sources. 10201objext=o 10202objext_CXX=$objext 10203 10204# Code to be used in simple compile tests 10205lt_simple_compile_test_code="int some_variable = 0;\n" 10206 10207# Code to be used in simple link tests 10208lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10209 10210# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10211 10212# If no C compiler was specified, use CC. 10213LTCC=${LTCC-"$CC"} 10214 10215# If no C compiler flags were specified, use CFLAGS. 10216LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10217 10218# Allow CC to be a program name with arguments. 10219compiler=$CC 10220 10221 10222# save warnings/boilerplate of simple test code 10223ac_outfile=conftest.$ac_objext 10224printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10225eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10226_lt_compiler_boilerplate=`cat conftest.err` 10227$rm conftest* 10228 10229ac_outfile=conftest.$ac_objext 10230printf "$lt_simple_link_test_code" >conftest.$ac_ext 10231eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10232_lt_linker_boilerplate=`cat conftest.err` 10233$rm conftest* 10234 10235 10236# Allow CC to be a program name with arguments. 10237lt_save_CC=$CC 10238lt_save_LD=$LD 10239lt_save_GCC=$GCC 10240GCC=$GXX 10241lt_save_with_gnu_ld=$with_gnu_ld 10242lt_save_path_LD=$lt_cv_path_LD 10243if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10244 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10245else 10246 $as_unset lt_cv_prog_gnu_ld 10247fi 10248if test -n "${lt_cv_path_LDCXX+set}"; then 10249 lt_cv_path_LD=$lt_cv_path_LDCXX 10250else 10251 $as_unset lt_cv_path_LD 10252fi 10253test -z "${LDCXX+set}" || LD=$LDCXX 10254CC=${CXX-"c++"} 10255compiler=$CC 10256compiler_CXX=$CC 10257for cc_temp in $compiler""; do 10258 case $cc_temp in 10259 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10260 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10261 \-*) ;; 10262 *) break;; 10263 esac 10264done 10265cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10266 10267 10268# We don't want -fno-exception wen compiling C++ code, so set the 10269# no_builtin_flag separately 10270if test "$GXX" = yes; then 10271 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10272else 10273 lt_prog_compiler_no_builtin_flag_CXX= 10274fi 10275 10276if test "$GXX" = yes; then 10277 # Set up default GNU C++ configuration 10278 10279 10280# Check whether --with-gnu-ld or --without-gnu-ld was given. 10281if test "${with_gnu_ld+set}" = set; then 10282 withval="$with_gnu_ld" 10283 test "$withval" = no || with_gnu_ld=yes 10284else 10285 with_gnu_ld=no 10286fi; 10287ac_prog=ld 10288if test "$GCC" = yes; then 10289 # Check if gcc -print-prog-name=ld gives a path. 10290 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10291echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10292 case $host in 10293 *-*-mingw*) 10294 # gcc leaves a trailing carriage return which upsets mingw 10295 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10296 *) 10297 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10298 esac 10299 case $ac_prog in 10300 # Accept absolute paths. 10301 [\\/]* | ?:[\\/]*) 10302 re_direlt='/[^/][^/]*/\.\./' 10303 # Canonicalize the pathname of ld 10304 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10305 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10306 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10307 done 10308 test -z "$LD" && LD="$ac_prog" 10309 ;; 10310 "") 10311 # If it fails, then pretend we aren't using GCC. 10312 ac_prog=ld 10313 ;; 10314 *) 10315 # If it is relative, then search for the first ld in PATH. 10316 with_gnu_ld=unknown 10317 ;; 10318 esac 10319elif test "$with_gnu_ld" = yes; then 10320 echo "$as_me:$LINENO: checking for GNU ld" >&5 10321echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10322else 10323 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10324echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10325fi 10326if test "${lt_cv_path_LD+set}" = set; then 10327 echo $ECHO_N "(cached) $ECHO_C" >&6 10328else 10329 if test -z "$LD"; then 10330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10331 for ac_dir in $PATH; do 10332 IFS="$lt_save_ifs" 10333 test -z "$ac_dir" && ac_dir=. 10334 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10335 lt_cv_path_LD="$ac_dir/$ac_prog" 10336 # Check to see if the program is GNU ld. I'd rather use --version, 10337 # but apparently some variants of GNU ld only accept -v. 10338 # Break only if it was the GNU/non-GNU ld that we prefer. 10339 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10340 *GNU* | *'with BFD'*) 10341 test "$with_gnu_ld" != no && break 10342 ;; 10343 *) 10344 test "$with_gnu_ld" != yes && break 10345 ;; 10346 esac 10347 fi 10348 done 10349 IFS="$lt_save_ifs" 10350else 10351 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10352fi 10353fi 10354 10355LD="$lt_cv_path_LD" 10356if test -n "$LD"; then 10357 echo "$as_me:$LINENO: result: $LD" >&5 10358echo "${ECHO_T}$LD" >&6 10359else 10360 echo "$as_me:$LINENO: result: no" >&5 10361echo "${ECHO_T}no" >&6 10362fi 10363test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10364echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10365 { (exit 1); exit 1; }; } 10366echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10367echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10368if test "${lt_cv_prog_gnu_ld+set}" = set; then 10369 echo $ECHO_N "(cached) $ECHO_C" >&6 10370else 10371 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10372case `$LD -v 2>&1 </dev/null` in 10373*GNU* | *'with BFD'*) 10374 lt_cv_prog_gnu_ld=yes 10375 ;; 10376*) 10377 lt_cv_prog_gnu_ld=no 10378 ;; 10379esac 10380fi 10381echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10382echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10383with_gnu_ld=$lt_cv_prog_gnu_ld 10384 10385 10386 10387 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10388 # archiving commands below assume that GNU ld is being used. 10389 if test "$with_gnu_ld" = yes; then 10390 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10391 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' 10392 10393 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10394 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10395 10396 # If archive_cmds runs LD, not CC, wlarc should be empty 10397 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10398 # investigate it a little bit more. (MM) 10399 wlarc='${wl}' 10400 10401 # ancient GNU ld didn't support --whole-archive et. al. 10402 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10403 grep 'no-whole-archive' > /dev/null; then 10404 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10405 else 10406 whole_archive_flag_spec_CXX= 10407 fi 10408 else 10409 with_gnu_ld=no 10410 wlarc= 10411 10412 # A generic and very simple default shared library creation 10413 # command for GNU C++ for the case where it uses the native 10414 # linker, instead of GNU ld. If possible, this setting should 10415 # overridden to take advantage of the native linker features on 10416 # the platform it is being used on. 10417 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10418 fi 10419 10420 # Commands to make compiler produce verbose output that lists 10421 # what "hidden" libraries, object files and flags are used when 10422 # linking a shared library. 10423 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10424 10425else 10426 GXX=no 10427 with_gnu_ld=no 10428 wlarc= 10429fi 10430 10431# PORTME: fill in a description of your system's C++ link characteristics 10432echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10433echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10434ld_shlibs_CXX=yes 10435case $host_os in 10436 aix3*) 10437 # FIXME: insert proper C++ library support 10438 ld_shlibs_CXX=no 10439 ;; 10440 aix4* | aix5*) 10441 if test "$host_cpu" = ia64; then 10442 # On IA64, the linker does run time linking by default, so we don't 10443 # have to do anything special. 10444 aix_use_runtimelinking=no 10445 exp_sym_flag='-Bexport' 10446 no_entry_flag="" 10447 else 10448 aix_use_runtimelinking=no 10449 10450 # Test if we are trying to use run time linking or normal 10451 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10452 # need to do runtime linking. 10453 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10454 for ld_flag in $LDFLAGS; do 10455 case $ld_flag in 10456 *-brtl*) 10457 aix_use_runtimelinking=yes 10458 break 10459 ;; 10460 esac 10461 done 10462 ;; 10463 esac 10464 10465 exp_sym_flag='-bexport' 10466 no_entry_flag='-bnoentry' 10467 fi 10468 10469 # When large executables or shared objects are built, AIX ld can 10470 # have problems creating the table of contents. If linking a library 10471 # or program results in "error TOC overflow" add -mminimal-toc to 10472 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10473 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10474 10475 archive_cmds_CXX='' 10476 hardcode_direct_CXX=yes 10477 hardcode_libdir_separator_CXX=':' 10478 link_all_deplibs_CXX=yes 10479 10480 if test "$GXX" = yes; then 10481 case $host_os in aix4.[012]|aix4.[012].*) 10482 # We only want to do this on AIX 4.2 and lower, the check 10483 # below for broken collect2 doesn't work under 4.3+ 10484 collect2name=`${CC} -print-prog-name=collect2` 10485 if test -f "$collect2name" && \ 10486 strings "$collect2name" | grep resolve_lib_name >/dev/null 10487 then 10488 # We have reworked collect2 10489 hardcode_direct_CXX=yes 10490 else 10491 # We have old collect2 10492 hardcode_direct_CXX=unsupported 10493 # It fails to find uninstalled libraries when the uninstalled 10494 # path is not listed in the libpath. Setting hardcode_minus_L 10495 # to unsupported forces relinking 10496 hardcode_minus_L_CXX=yes 10497 hardcode_libdir_flag_spec_CXX='-L$libdir' 10498 hardcode_libdir_separator_CXX= 10499 fi 10500 ;; 10501 esac 10502 shared_flag='-shared' 10503 if test "$aix_use_runtimelinking" = yes; then 10504 shared_flag="$shared_flag "'${wl}-G' 10505 fi 10506 else 10507 # not using gcc 10508 if test "$host_cpu" = ia64; then 10509 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10510 # chokes on -Wl,-G. The following line is correct: 10511 shared_flag='-G' 10512 else 10513 if test "$aix_use_runtimelinking" = yes; then 10514 shared_flag='${wl}-G' 10515 else 10516 shared_flag='${wl}-bM:SRE' 10517 fi 10518 fi 10519 fi 10520 10521 # It seems that -bexpall does not export symbols beginning with 10522 # underscore (_), so it is better to generate a list of symbols to export. 10523 always_export_symbols_CXX=yes 10524 if test "$aix_use_runtimelinking" = yes; then 10525 # Warning - without using the other runtime loading flags (-brtl), 10526 # -berok will link without error, but may produce a broken library. 10527 allow_undefined_flag_CXX='-berok' 10528 # Determine the default libpath from the value encoded in an empty executable. 10529 cat >conftest.$ac_ext <<_ACEOF 10530/* confdefs.h. */ 10531_ACEOF 10532cat confdefs.h >>conftest.$ac_ext 10533cat >>conftest.$ac_ext <<_ACEOF 10534/* end confdefs.h. */ 10535 10536int 10537main () 10538{ 10539 10540 ; 10541 return 0; 10542} 10543_ACEOF 10544rm -f conftest.$ac_objext conftest$ac_exeext 10545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10546 (eval $ac_link) 2>conftest.er1 10547 ac_status=$? 10548 grep -v '^ *+' conftest.er1 >conftest.err 10549 rm -f conftest.er1 10550 cat conftest.err >&5 10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10552 (exit $ac_status); } && 10553 { ac_try='test -z "$ac_cxx_werror_flag" 10554 || test ! -s conftest.err' 10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10556 (eval $ac_try) 2>&5 10557 ac_status=$? 10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10559 (exit $ac_status); }; } && 10560 { ac_try='test -s conftest$ac_exeext' 10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10562 (eval $ac_try) 2>&5 10563 ac_status=$? 10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10565 (exit $ac_status); }; }; then 10566 10567aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10568}'` 10569# Check for a 64-bit object if we didn't find anything. 10570if 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; } 10571}'`; fi 10572else 10573 echo "$as_me: failed program was:" >&5 10574sed 's/^/| /' conftest.$ac_ext >&5 10575 10576fi 10577rm -f conftest.err conftest.$ac_objext \ 10578 conftest$ac_exeext conftest.$ac_ext 10579if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10580 10581 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10582 10583 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10584 else 10585 if test "$host_cpu" = ia64; then 10586 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10587 allow_undefined_flag_CXX="-z nodefs" 10588 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10589 else 10590 # Determine the default libpath from the value encoded in an empty executable. 10591 cat >conftest.$ac_ext <<_ACEOF 10592/* confdefs.h. */ 10593_ACEOF 10594cat confdefs.h >>conftest.$ac_ext 10595cat >>conftest.$ac_ext <<_ACEOF 10596/* end confdefs.h. */ 10597 10598int 10599main () 10600{ 10601 10602 ; 10603 return 0; 10604} 10605_ACEOF 10606rm -f conftest.$ac_objext conftest$ac_exeext 10607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10608 (eval $ac_link) 2>conftest.er1 10609 ac_status=$? 10610 grep -v '^ *+' conftest.er1 >conftest.err 10611 rm -f conftest.er1 10612 cat conftest.err >&5 10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10614 (exit $ac_status); } && 10615 { ac_try='test -z "$ac_cxx_werror_flag" 10616 || test ! -s conftest.err' 10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10618 (eval $ac_try) 2>&5 10619 ac_status=$? 10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10621 (exit $ac_status); }; } && 10622 { ac_try='test -s conftest$ac_exeext' 10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10624 (eval $ac_try) 2>&5 10625 ac_status=$? 10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10627 (exit $ac_status); }; }; then 10628 10629aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10630}'` 10631# Check for a 64-bit object if we didn't find anything. 10632if 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; } 10633}'`; fi 10634else 10635 echo "$as_me: failed program was:" >&5 10636sed 's/^/| /' conftest.$ac_ext >&5 10637 10638fi 10639rm -f conftest.err conftest.$ac_objext \ 10640 conftest$ac_exeext conftest.$ac_ext 10641if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10642 10643 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10644 # Warning - without using the other run time loading flags, 10645 # -berok will link without error, but may produce a broken library. 10646 no_undefined_flag_CXX=' ${wl}-bernotok' 10647 allow_undefined_flag_CXX=' ${wl}-berok' 10648 # Exported symbols can be pulled into shared objects from archives 10649 whole_archive_flag_spec_CXX='$convenience' 10650 archive_cmds_need_lc_CXX=yes 10651 # This is similar to how AIX traditionally builds its shared libraries. 10652 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10653 fi 10654 fi 10655 ;; 10656 10657 beos*) 10658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10659 allow_undefined_flag_CXX=unsupported 10660 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10661 # support --undefined. This deserves some investigation. FIXME 10662 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10663 else 10664 ld_shlibs_CXX=no 10665 fi 10666 ;; 10667 10668 chorus*) 10669 case $cc_basename in 10670 *) 10671 # FIXME: insert proper C++ library support 10672 ld_shlibs_CXX=no 10673 ;; 10674 esac 10675 ;; 10676 10677 cygwin* | mingw* | pw32*) 10678 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10679 # as there is no search path for DLLs. 10680 hardcode_libdir_flag_spec_CXX='-L$libdir' 10681 allow_undefined_flag_CXX=unsupported 10682 always_export_symbols_CXX=no 10683 enable_shared_with_static_runtimes_CXX=yes 10684 10685 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10686 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10687 # If the export-symbols file already is a .def file (1st line 10688 # is EXPORTS), use it as is; otherwise, prepend... 10689 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10690 cp $export_symbols $output_objdir/$soname.def; 10691 else 10692 echo EXPORTS > $output_objdir/$soname.def; 10693 cat $export_symbols >> $output_objdir/$soname.def; 10694 fi~ 10695 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10696 else 10697 ld_shlibs_CXX=no 10698 fi 10699 ;; 10700 darwin* | rhapsody*) 10701 case $host_os in 10702 rhapsody* | darwin1.[012]) 10703 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10704 ;; 10705 *) # Darwin 1.3 on 10706 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10707 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10708 else 10709 case ${MACOSX_DEPLOYMENT_TARGET} in 10710 10.[012]) 10711 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10712 ;; 10713 10.*) 10714 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10715 ;; 10716 esac 10717 fi 10718 ;; 10719 esac 10720 archive_cmds_need_lc_CXX=no 10721 hardcode_direct_CXX=no 10722 hardcode_automatic_CXX=yes 10723 hardcode_shlibpath_var_CXX=unsupported 10724 whole_archive_flag_spec_CXX='' 10725 link_all_deplibs_CXX=yes 10726 10727 if test "$GXX" = yes ; then 10728 lt_int_apple_cc_single_mod=no 10729 output_verbose_link_cmd='echo' 10730 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10731 lt_int_apple_cc_single_mod=yes 10732 fi 10733 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10734 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10735 else 10736 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10737 fi 10738 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10740 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10741 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}' 10742 else 10743 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10744 fi 10745 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}' 10746 else 10747 case $cc_basename in 10748 xlc*) 10749 output_verbose_link_cmd='echo' 10750 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 10751 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10752 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10753 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10754 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}' 10755 ;; 10756 *) 10757 ld_shlibs_CXX=no 10758 ;; 10759 esac 10760 fi 10761 ;; 10762 10763 dgux*) 10764 case $cc_basename in 10765 ec++*) 10766 # FIXME: insert proper C++ library support 10767 ld_shlibs_CXX=no 10768 ;; 10769 ghcx*) 10770 # Green Hills C++ Compiler 10771 # FIXME: insert proper C++ library support 10772 ld_shlibs_CXX=no 10773 ;; 10774 *) 10775 # FIXME: insert proper C++ library support 10776 ld_shlibs_CXX=no 10777 ;; 10778 esac 10779 ;; 10780 freebsd[12]*) 10781 # C++ shared libraries reported to be fairly broken before switch to ELF 10782 ld_shlibs_CXX=no 10783 ;; 10784 freebsd-elf*) 10785 archive_cmds_need_lc_CXX=no 10786 ;; 10787 freebsd* | kfreebsd*-gnu | dragonfly*) 10788 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10789 # conventions 10790 ld_shlibs_CXX=yes 10791 ;; 10792 gnu*) 10793 ;; 10794 hpux9*) 10795 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10796 hardcode_libdir_separator_CXX=: 10797 export_dynamic_flag_spec_CXX='${wl}-E' 10798 hardcode_direct_CXX=yes 10799 hardcode_minus_L_CXX=yes # Not in the search PATH, 10800 # but as the default 10801 # location of the library. 10802 10803 case $cc_basename in 10804 CC*) 10805 # FIXME: insert proper C++ library support 10806 ld_shlibs_CXX=no 10807 ;; 10808 aCC*) 10809 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' 10810 # Commands to make compiler produce verbose output that lists 10811 # what "hidden" libraries, object files and flags are used when 10812 # linking a shared library. 10813 # 10814 # There doesn't appear to be a way to prevent this compiler from 10815 # explicitly linking system object files so we need to strip them 10816 # from the output so that they don't get included in the library 10817 # dependencies. 10818 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' 10819 ;; 10820 *) 10821 if test "$GXX" = yes; then 10822 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' 10823 else 10824 # FIXME: insert proper C++ library support 10825 ld_shlibs_CXX=no 10826 fi 10827 ;; 10828 esac 10829 ;; 10830 hpux10*|hpux11*) 10831 if test $with_gnu_ld = no; then 10832 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10833 hardcode_libdir_separator_CXX=: 10834 10835 case $host_cpu in 10836 hppa*64*|ia64*) 10837 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10838 ;; 10839 *) 10840 export_dynamic_flag_spec_CXX='${wl}-E' 10841 ;; 10842 esac 10843 fi 10844 case $host_cpu in 10845 hppa*64*|ia64*) 10846 hardcode_direct_CXX=no 10847 hardcode_shlibpath_var_CXX=no 10848 ;; 10849 *) 10850 hardcode_direct_CXX=yes 10851 hardcode_minus_L_CXX=yes # Not in the search PATH, 10852 # but as the default 10853 # location of the library. 10854 ;; 10855 esac 10856 10857 case $cc_basename in 10858 CC*) 10859 # FIXME: insert proper C++ library support 10860 ld_shlibs_CXX=no 10861 ;; 10862 aCC*) 10863 case $host_cpu in 10864 hppa*64*) 10865 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10866 ;; 10867 ia64*) 10868 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10869 ;; 10870 *) 10871 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10872 ;; 10873 esac 10874 # Commands to make compiler produce verbose output that lists 10875 # what "hidden" libraries, object files and flags are used when 10876 # linking a shared library. 10877 # 10878 # There doesn't appear to be a way to prevent this compiler from 10879 # explicitly linking system object files so we need to strip them 10880 # from the output so that they don't get included in the library 10881 # dependencies. 10882 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' 10883 ;; 10884 *) 10885 if test "$GXX" = yes; then 10886 if test $with_gnu_ld = no; then 10887 case $host_cpu in 10888 hppa*64*) 10889 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10890 ;; 10891 ia64*) 10892 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10893 ;; 10894 *) 10895 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' 10896 ;; 10897 esac 10898 fi 10899 else 10900 # FIXME: insert proper C++ library support 10901 ld_shlibs_CXX=no 10902 fi 10903 ;; 10904 esac 10905 ;; 10906 interix3*) 10907 hardcode_direct_CXX=no 10908 hardcode_shlibpath_var_CXX=no 10909 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10910 export_dynamic_flag_spec_CXX='${wl}-E' 10911 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10912 # Instead, shared libraries are loaded at an image base (0x10000000 by 10913 # default) and relocated if they conflict, which is a slow very memory 10914 # consuming and fragmenting process. To avoid this, we pick a random, 10915 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10916 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10917 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10918 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10919 ;; 10920 irix5* | irix6*) 10921 case $cc_basename in 10922 CC*) 10923 # SGI C++ 10924 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10925 10926 # Archives containing C++ object files must be created using 10927 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10928 # necessary to make sure instantiated templates are included 10929 # in the archive. 10930 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10931 ;; 10932 *) 10933 if test "$GXX" = yes; then 10934 if test "$with_gnu_ld" = no; then 10935 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10936 else 10937 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' 10938 fi 10939 fi 10940 link_all_deplibs_CXX=yes 10941 ;; 10942 esac 10943 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10944 hardcode_libdir_separator_CXX=: 10945 ;; 10946 linux*) 10947 case $cc_basename in 10948 KCC*) 10949 # Kuck and Associates, Inc. (KAI) C++ Compiler 10950 10951 # KCC will only create a shared library if the output file 10952 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10953 # to its proper name (with version) after linking. 10954 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' 10955 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' 10956 # Commands to make compiler produce verbose output that lists 10957 # what "hidden" libraries, object files and flags are used when 10958 # linking a shared library. 10959 # 10960 # There doesn't appear to be a way to prevent this compiler from 10961 # explicitly linking system object files so we need to strip them 10962 # from the output so that they don't get included in the library 10963 # dependencies. 10964 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' 10965 10966 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10967 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10968 10969 # Archives containing C++ object files must be created using 10970 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10971 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10972 ;; 10973 icpc*) 10974 # Intel C++ 10975 with_gnu_ld=yes 10976 # version 8.0 and above of icpc choke on multiply defined symbols 10977 # if we add $predep_objects and $postdep_objects, however 7.1 and 10978 # earlier do not add the objects themselves. 10979 case `$CC -V 2>&1` in 10980 *"Version 7."*) 10981 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10982 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' 10983 ;; 10984 *) # Version 8.0 or newer 10985 tmp_idyn= 10986 case $host_cpu in 10987 ia64*) tmp_idyn=' -i_dynamic';; 10988 esac 10989 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10990 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10991 ;; 10992 esac 10993 archive_cmds_need_lc_CXX=no 10994 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10995 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10996 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10997 ;; 10998 pgCC*) 10999 # Portland Group C++ compiler 11000 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11001 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 11002 11003 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11004 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11005 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11006 ;; 11007 cxx*) 11008 # Compaq C++ 11009 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11010 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' 11011 11012 runpath_var=LD_RUN_PATH 11013 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11014 hardcode_libdir_separator_CXX=: 11015 11016 # Commands to make compiler produce verbose output that lists 11017 # what "hidden" libraries, object files and flags are used when 11018 # linking a shared library. 11019 # 11020 # There doesn't appear to be a way to prevent this compiler from 11021 # explicitly linking system object files so we need to strip them 11022 # from the output so that they don't get included in the library 11023 # dependencies. 11024 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' 11025 ;; 11026 esac 11027 ;; 11028 lynxos*) 11029 # FIXME: insert proper C++ library support 11030 ld_shlibs_CXX=no 11031 ;; 11032 m88k*) 11033 # FIXME: insert proper C++ library support 11034 ld_shlibs_CXX=no 11035 ;; 11036 mvs*) 11037 case $cc_basename in 11038 cxx*) 11039 # FIXME: insert proper C++ library support 11040 ld_shlibs_CXX=no 11041 ;; 11042 *) 11043 # FIXME: insert proper C++ library support 11044 ld_shlibs_CXX=no 11045 ;; 11046 esac 11047 ;; 11048 netbsd*) 11049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11050 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11051 wlarc= 11052 hardcode_libdir_flag_spec_CXX='-R$libdir' 11053 hardcode_direct_CXX=yes 11054 hardcode_shlibpath_var_CXX=no 11055 fi 11056 # Workaround some broken pre-1.5 toolchains 11057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11058 ;; 11059 openbsd2*) 11060 # C++ shared libraries are fairly broken 11061 ld_shlibs_CXX=no 11062 ;; 11063 openbsd*) 11064 hardcode_direct_CXX=yes 11065 hardcode_shlibpath_var_CXX=no 11066 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11067 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11069 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11070 export_dynamic_flag_spec_CXX='${wl}-E' 11071 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11072 fi 11073 output_verbose_link_cmd='echo' 11074 ;; 11075 osf3*) 11076 case $cc_basename in 11077 KCC*) 11078 # Kuck and Associates, Inc. (KAI) C++ Compiler 11079 11080 # KCC will only create a shared library if the output file 11081 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11082 # to its proper name (with version) after linking. 11083 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' 11084 11085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11086 hardcode_libdir_separator_CXX=: 11087 11088 # Archives containing C++ object files must be created using 11089 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11090 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11091 11092 ;; 11093 RCC*) 11094 # Rational C++ 2.4.1 11095 # FIXME: insert proper C++ library support 11096 ld_shlibs_CXX=no 11097 ;; 11098 cxx*) 11099 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11100 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11101 11102 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11103 hardcode_libdir_separator_CXX=: 11104 11105 # Commands to make compiler produce verbose output that lists 11106 # what "hidden" libraries, object files and flags are used when 11107 # linking a shared library. 11108 # 11109 # There doesn't appear to be a way to prevent this compiler from 11110 # explicitly linking system object files so we need to strip them 11111 # from the output so that they don't get included in the library 11112 # dependencies. 11113 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' 11114 ;; 11115 *) 11116 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11117 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11118 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11119 11120 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11121 hardcode_libdir_separator_CXX=: 11122 11123 # Commands to make compiler produce verbose output that lists 11124 # what "hidden" libraries, object files and flags are used when 11125 # linking a shared library. 11126 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11127 11128 else 11129 # FIXME: insert proper C++ library support 11130 ld_shlibs_CXX=no 11131 fi 11132 ;; 11133 esac 11134 ;; 11135 osf4* | osf5*) 11136 case $cc_basename in 11137 KCC*) 11138 # Kuck and Associates, Inc. (KAI) C++ Compiler 11139 11140 # KCC will only create a shared library if the output file 11141 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11142 # to its proper name (with version) after linking. 11143 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' 11144 11145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11146 hardcode_libdir_separator_CXX=: 11147 11148 # Archives containing C++ object files must be created using 11149 # the KAI C++ compiler. 11150 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11151 ;; 11152 RCC*) 11153 # Rational C++ 2.4.1 11154 # FIXME: insert proper C++ library support 11155 ld_shlibs_CXX=no 11156 ;; 11157 cxx*) 11158 allow_undefined_flag_CXX=' -expect_unresolved \*' 11159 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11160 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11161 echo "-hidden">> $lib.exp~ 11162 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 11163 $rm $lib.exp' 11164 11165 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11166 hardcode_libdir_separator_CXX=: 11167 11168 # Commands to make compiler produce verbose output that lists 11169 # what "hidden" libraries, object files and flags are used when 11170 # linking a shared library. 11171 # 11172 # There doesn't appear to be a way to prevent this compiler from 11173 # explicitly linking system object files so we need to strip them 11174 # from the output so that they don't get included in the library 11175 # dependencies. 11176 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' 11177 ;; 11178 *) 11179 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11180 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11181 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11182 11183 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11184 hardcode_libdir_separator_CXX=: 11185 11186 # Commands to make compiler produce verbose output that lists 11187 # what "hidden" libraries, object files and flags are used when 11188 # linking a shared library. 11189 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11190 11191 else 11192 # FIXME: insert proper C++ library support 11193 ld_shlibs_CXX=no 11194 fi 11195 ;; 11196 esac 11197 ;; 11198 psos*) 11199 # FIXME: insert proper C++ library support 11200 ld_shlibs_CXX=no 11201 ;; 11202 sunos4*) 11203 case $cc_basename in 11204 CC*) 11205 # Sun C++ 4.x 11206 # FIXME: insert proper C++ library support 11207 ld_shlibs_CXX=no 11208 ;; 11209 lcc*) 11210 # Lucid 11211 # FIXME: insert proper C++ library support 11212 ld_shlibs_CXX=no 11213 ;; 11214 *) 11215 # FIXME: insert proper C++ library support 11216 ld_shlibs_CXX=no 11217 ;; 11218 esac 11219 ;; 11220 solaris*) 11221 case $cc_basename in 11222 CC*) 11223 # Sun C++ 4.2, 5.x and Centerline C++ 11224 archive_cmds_need_lc_CXX=yes 11225 no_undefined_flag_CXX=' -zdefs' 11226 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11227 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11228 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11229 11230 hardcode_libdir_flag_spec_CXX='-R$libdir' 11231 hardcode_shlibpath_var_CXX=no 11232 case $host_os in 11233 solaris2.[0-5] | solaris2.[0-5].*) ;; 11234 *) 11235 # The C++ compiler is used as linker so we must use $wl 11236 # flag to pass the commands to the underlying system 11237 # linker. We must also pass each convience library through 11238 # to the system linker between allextract/defaultextract. 11239 # The C++ compiler will combine linker options so we 11240 # cannot just pass the convience library names through 11241 # without $wl. 11242 # Supported since Solaris 2.6 (maybe 2.5.1?) 11243 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 11244 ;; 11245 esac 11246 link_all_deplibs_CXX=yes 11247 11248 output_verbose_link_cmd='echo' 11249 11250 # Archives containing C++ object files must be created using 11251 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11252 # necessary to make sure instantiated templates are included 11253 # in the archive. 11254 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11255 ;; 11256 gcx*) 11257 # Green Hills C++ Compiler 11258 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11259 11260 # The C++ compiler must be used to create the archive. 11261 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11262 ;; 11263 *) 11264 # GNU C++ compiler with Solaris linker 11265 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11266 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11267 if $CC --version | grep -v '^2\.7' > /dev/null; then 11268 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11269 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11270 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11271 11272 # Commands to make compiler produce verbose output that lists 11273 # what "hidden" libraries, object files and flags are used when 11274 # linking a shared library. 11275 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11276 else 11277 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11278 # platform. 11279 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11280 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11281 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11282 11283 # Commands to make compiler produce verbose output that lists 11284 # what "hidden" libraries, object files and flags are used when 11285 # linking a shared library. 11286 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11287 fi 11288 11289 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11290 fi 11291 ;; 11292 esac 11293 ;; 11294 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11295 no_undefined_flag_CXX='${wl}-z,text' 11296 archive_cmds_need_lc_CXX=no 11297 hardcode_shlibpath_var_CXX=no 11298 runpath_var='LD_RUN_PATH' 11299 11300 case $cc_basename in 11301 CC*) 11302 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11303 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11304 ;; 11305 *) 11306 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11307 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11308 ;; 11309 esac 11310 ;; 11311 sysv5* | sco3.2v5* | sco5v6*) 11312 # Note: We can NOT use -z defs as we might desire, because we do not 11313 # link with -lc, and that would cause any symbols used from libc to 11314 # always be unresolved, which means just about no library would 11315 # ever link correctly. If we're not using GNU ld we use -z text 11316 # though, which does catch some bad symbols but isn't as heavy-handed 11317 # as -z defs. 11318 # For security reasons, it is highly recommended that you always 11319 # use absolute paths for naming shared libraries, and exclude the 11320 # DT_RUNPATH tag from executables and libraries. But doing so 11321 # requires that you compile everything twice, which is a pain. 11322 # So that behaviour is only enabled if SCOABSPATH is set to a 11323 # non-empty value in the environment. Most likely only useful for 11324 # creating official distributions of packages. 11325 # This is a hack until libtool officially supports absolute path 11326 # names for shared libraries. 11327 no_undefined_flag_CXX='${wl}-z,text' 11328 allow_undefined_flag_CXX='${wl}-z,nodefs' 11329 archive_cmds_need_lc_CXX=no 11330 hardcode_shlibpath_var_CXX=no 11331 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11332 hardcode_libdir_separator_CXX=':' 11333 link_all_deplibs_CXX=yes 11334 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11335 runpath_var='LD_RUN_PATH' 11336 11337 case $cc_basename in 11338 CC*) 11339 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11340 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11341 ;; 11342 *) 11343 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11344 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11345 ;; 11346 esac 11347 ;; 11348 tandem*) 11349 case $cc_basename in 11350 NCC*) 11351 # NonStop-UX NCC 3.20 11352 # FIXME: insert proper C++ library support 11353 ld_shlibs_CXX=no 11354 ;; 11355 *) 11356 # FIXME: insert proper C++ library support 11357 ld_shlibs_CXX=no 11358 ;; 11359 esac 11360 ;; 11361 vxworks*) 11362 # FIXME: insert proper C++ library support 11363 ld_shlibs_CXX=no 11364 ;; 11365 *) 11366 # FIXME: insert proper C++ library support 11367 ld_shlibs_CXX=no 11368 ;; 11369esac 11370echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11371echo "${ECHO_T}$ld_shlibs_CXX" >&6 11372test "$ld_shlibs_CXX" = no && can_build_shared=no 11373 11374GCC_CXX="$GXX" 11375LD_CXX="$LD" 11376 11377 11378cat > conftest.$ac_ext <<EOF 11379class Foo 11380{ 11381public: 11382 Foo (void) { a = 0; } 11383private: 11384 int a; 11385}; 11386EOF 11387 11388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11389 (eval $ac_compile) 2>&5 11390 ac_status=$? 11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11392 (exit $ac_status); }; then 11393 # Parse the compiler output and extract the necessary 11394 # objects, libraries and library flags. 11395 11396 # Sentinel used to keep track of whether or not we are before 11397 # the conftest object file. 11398 pre_test_object_deps_done=no 11399 11400 # The `*' in the case matches for architectures that use `case' in 11401 # $output_verbose_cmd can trigger glob expansion during the loop 11402 # eval without this substitution. 11403 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11404 11405 for p in `eval $output_verbose_link_cmd`; do 11406 case $p in 11407 11408 -L* | -R* | -l*) 11409 # Some compilers place space between "-{L,R}" and the path. 11410 # Remove the space. 11411 if test $p = "-L" \ 11412 || test $p = "-R"; then 11413 prev=$p 11414 continue 11415 else 11416 prev= 11417 fi 11418 11419 if test "$pre_test_object_deps_done" = no; then 11420 case $p in 11421 -L* | -R*) 11422 # Internal compiler library paths should come after those 11423 # provided the user. The postdeps already come after the 11424 # user supplied libs so there is no need to process them. 11425 if test -z "$compiler_lib_search_path_CXX"; then 11426 compiler_lib_search_path_CXX="${prev}${p}" 11427 else 11428 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11429 fi 11430 ;; 11431 # The "-l" case would never come before the object being 11432 # linked, so don't bother handling this case. 11433 esac 11434 else 11435 if test -z "$postdeps_CXX"; then 11436 postdeps_CXX="${prev}${p}" 11437 else 11438 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11439 fi 11440 fi 11441 ;; 11442 11443 *.$objext) 11444 # This assumes that the test object file only shows up 11445 # once in the compiler output. 11446 if test "$p" = "conftest.$objext"; then 11447 pre_test_object_deps_done=yes 11448 continue 11449 fi 11450 11451 if test "$pre_test_object_deps_done" = no; then 11452 if test -z "$predep_objects_CXX"; then 11453 predep_objects_CXX="$p" 11454 else 11455 predep_objects_CXX="$predep_objects_CXX $p" 11456 fi 11457 else 11458 if test -z "$postdep_objects_CXX"; then 11459 postdep_objects_CXX="$p" 11460 else 11461 postdep_objects_CXX="$postdep_objects_CXX $p" 11462 fi 11463 fi 11464 ;; 11465 11466 *) ;; # Ignore the rest. 11467 11468 esac 11469 done 11470 11471 # Clean up. 11472 rm -f a.out a.exe 11473else 11474 echo "libtool.m4: error: problem compiling CXX test program" 11475fi 11476 11477$rm -f confest.$objext 11478 11479# PORTME: override above test on systems where it is broken 11480case $host_os in 11481interix3*) 11482 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11483 # hack all around it, let's just trust "g++" to DTRT. 11484 predep_objects_CXX= 11485 postdep_objects_CXX= 11486 postdeps_CXX= 11487 ;; 11488 11489solaris*) 11490 case $cc_basename in 11491 CC*) 11492 # Adding this requires a known-good setup of shared libraries for 11493 # Sun compiler versions before 5.6, else PIC objects from an old 11494 # archive will be linked into the output, leading to subtle bugs. 11495 postdeps_CXX='-lCstd -lCrun' 11496 ;; 11497 esac 11498 ;; 11499esac 11500 11501 11502case " $postdeps_CXX " in 11503*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11504esac 11505 11506lt_prog_compiler_wl_CXX= 11507lt_prog_compiler_pic_CXX= 11508lt_prog_compiler_static_CXX= 11509 11510echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11511echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11512 11513 # C++ specific cases for pic, static, wl, etc. 11514 if test "$GXX" = yes; then 11515 lt_prog_compiler_wl_CXX='-Wl,' 11516 lt_prog_compiler_static_CXX='-static' 11517 11518 case $host_os in 11519 aix*) 11520 # All AIX code is PIC. 11521 if test "$host_cpu" = ia64; then 11522 # AIX 5 now supports IA64 processor 11523 lt_prog_compiler_static_CXX='-Bstatic' 11524 fi 11525 ;; 11526 amigaos*) 11527 # FIXME: we need at least 68020 code to build shared libraries, but 11528 # adding the `-m68020' flag to GCC prevents building anything better, 11529 # like `-m68040'. 11530 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11531 ;; 11532 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11533 # PIC is the default for these OSes. 11534 ;; 11535 mingw* | os2* | pw32*) 11536 # This hack is so that the source file can tell whether it is being 11537 # built for inclusion in a dll (and should export symbols for example). 11538 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11539 ;; 11540 darwin* | rhapsody*) 11541 # PIC is the default on this platform 11542 # Common symbols not allowed in MH_DYLIB files 11543 lt_prog_compiler_pic_CXX='-fno-common' 11544 ;; 11545 *djgpp*) 11546 # DJGPP does not support shared libraries at all 11547 lt_prog_compiler_pic_CXX= 11548 ;; 11549 interix3*) 11550 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11551 # Instead, we relocate shared libraries at runtime. 11552 ;; 11553 sysv4*MP*) 11554 if test -d /usr/nec; then 11555 lt_prog_compiler_pic_CXX=-Kconform_pic 11556 fi 11557 ;; 11558 hpux*) 11559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11560 # not for PA HP-UX. 11561 case $host_cpu in 11562 hppa*64*|ia64*) 11563 ;; 11564 *) 11565 lt_prog_compiler_pic_CXX='-fPIC' 11566 ;; 11567 esac 11568 ;; 11569 *) 11570 lt_prog_compiler_pic_CXX='-fPIC' 11571 ;; 11572 esac 11573 else 11574 case $host_os in 11575 aix4* | aix5*) 11576 # All AIX code is PIC. 11577 if test "$host_cpu" = ia64; then 11578 # AIX 5 now supports IA64 processor 11579 lt_prog_compiler_static_CXX='-Bstatic' 11580 else 11581 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11582 fi 11583 ;; 11584 chorus*) 11585 case $cc_basename in 11586 cxch68*) 11587 # Green Hills C++ Compiler 11588 # _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" 11589 ;; 11590 esac 11591 ;; 11592 darwin*) 11593 # PIC is the default on this platform 11594 # Common symbols not allowed in MH_DYLIB files 11595 case $cc_basename in 11596 xlc*) 11597 lt_prog_compiler_pic_CXX='-qnocommon' 11598 lt_prog_compiler_wl_CXX='-Wl,' 11599 ;; 11600 esac 11601 ;; 11602 dgux*) 11603 case $cc_basename in 11604 ec++*) 11605 lt_prog_compiler_pic_CXX='-KPIC' 11606 ;; 11607 ghcx*) 11608 # Green Hills C++ Compiler 11609 lt_prog_compiler_pic_CXX='-pic' 11610 ;; 11611 *) 11612 ;; 11613 esac 11614 ;; 11615 freebsd* | kfreebsd*-gnu | dragonfly*) 11616 # FreeBSD uses GNU C++ 11617 ;; 11618 hpux9* | hpux10* | hpux11*) 11619 case $cc_basename in 11620 CC*) 11621 lt_prog_compiler_wl_CXX='-Wl,' 11622 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11623 if test "$host_cpu" != ia64; then 11624 lt_prog_compiler_pic_CXX='+Z' 11625 fi 11626 ;; 11627 aCC*) 11628 lt_prog_compiler_wl_CXX='-Wl,' 11629 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11630 case $host_cpu in 11631 hppa*64*|ia64*) 11632 # +Z the default 11633 ;; 11634 *) 11635 lt_prog_compiler_pic_CXX='+Z' 11636 ;; 11637 esac 11638 ;; 11639 *) 11640 ;; 11641 esac 11642 ;; 11643 interix*) 11644 # This is c89, which is MS Visual C++ (no shared libs) 11645 # Anyone wants to do a port? 11646 ;; 11647 irix5* | irix6* | nonstopux*) 11648 case $cc_basename in 11649 CC*) 11650 lt_prog_compiler_wl_CXX='-Wl,' 11651 lt_prog_compiler_static_CXX='-non_shared' 11652 # CC pic flag -KPIC is the default. 11653 ;; 11654 *) 11655 ;; 11656 esac 11657 ;; 11658 linux*) 11659 case $cc_basename in 11660 KCC*) 11661 # KAI C++ Compiler 11662 lt_prog_compiler_wl_CXX='--backend -Wl,' 11663 lt_prog_compiler_pic_CXX='-fPIC' 11664 ;; 11665 icpc* | ecpc*) 11666 # Intel C++ 11667 lt_prog_compiler_wl_CXX='-Wl,' 11668 lt_prog_compiler_pic_CXX='-KPIC' 11669 lt_prog_compiler_static_CXX='-static' 11670 ;; 11671 pgCC*) 11672 # Portland Group C++ compiler. 11673 lt_prog_compiler_wl_CXX='-Wl,' 11674 lt_prog_compiler_pic_CXX='-fpic' 11675 lt_prog_compiler_static_CXX='-Bstatic' 11676 ;; 11677 cxx*) 11678 # Compaq C++ 11679 # Make sure the PIC flag is empty. It appears that all Alpha 11680 # Linux and Compaq Tru64 Unix objects are PIC. 11681 lt_prog_compiler_pic_CXX= 11682 lt_prog_compiler_static_CXX='-non_shared' 11683 ;; 11684 *) 11685 ;; 11686 esac 11687 ;; 11688 lynxos*) 11689 ;; 11690 m88k*) 11691 ;; 11692 mvs*) 11693 case $cc_basename in 11694 cxx*) 11695 lt_prog_compiler_pic_CXX='-W c,exportall' 11696 ;; 11697 *) 11698 ;; 11699 esac 11700 ;; 11701 netbsd*) 11702 ;; 11703 osf3* | osf4* | osf5*) 11704 case $cc_basename in 11705 KCC*) 11706 lt_prog_compiler_wl_CXX='--backend -Wl,' 11707 ;; 11708 RCC*) 11709 # Rational C++ 2.4.1 11710 lt_prog_compiler_pic_CXX='-pic' 11711 ;; 11712 cxx*) 11713 # Digital/Compaq C++ 11714 lt_prog_compiler_wl_CXX='-Wl,' 11715 # Make sure the PIC flag is empty. It appears that all Alpha 11716 # Linux and Compaq Tru64 Unix objects are PIC. 11717 lt_prog_compiler_pic_CXX= 11718 lt_prog_compiler_static_CXX='-non_shared' 11719 ;; 11720 *) 11721 ;; 11722 esac 11723 ;; 11724 psos*) 11725 ;; 11726 solaris*) 11727 case $cc_basename in 11728 CC*) 11729 # Sun C++ 4.2, 5.x and Centerline C++ 11730 lt_prog_compiler_pic_CXX='-KPIC' 11731 lt_prog_compiler_static_CXX='-Bstatic' 11732 lt_prog_compiler_wl_CXX='-Qoption ld ' 11733 ;; 11734 gcx*) 11735 # Green Hills C++ Compiler 11736 lt_prog_compiler_pic_CXX='-PIC' 11737 ;; 11738 *) 11739 ;; 11740 esac 11741 ;; 11742 sunos4*) 11743 case $cc_basename in 11744 CC*) 11745 # Sun C++ 4.x 11746 lt_prog_compiler_pic_CXX='-pic' 11747 lt_prog_compiler_static_CXX='-Bstatic' 11748 ;; 11749 lcc*) 11750 # Lucid 11751 lt_prog_compiler_pic_CXX='-pic' 11752 ;; 11753 *) 11754 ;; 11755 esac 11756 ;; 11757 tandem*) 11758 case $cc_basename in 11759 NCC*) 11760 # NonStop-UX NCC 3.20 11761 lt_prog_compiler_pic_CXX='-KPIC' 11762 ;; 11763 *) 11764 ;; 11765 esac 11766 ;; 11767 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11768 case $cc_basename in 11769 CC*) 11770 lt_prog_compiler_wl_CXX='-Wl,' 11771 lt_prog_compiler_pic_CXX='-KPIC' 11772 lt_prog_compiler_static_CXX='-Bstatic' 11773 ;; 11774 esac 11775 ;; 11776 vxworks*) 11777 ;; 11778 *) 11779 lt_prog_compiler_can_build_shared_CXX=no 11780 ;; 11781 esac 11782 fi 11783 11784echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11785echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11786 11787# 11788# Check to make sure the PIC flag actually works. 11789# 11790if test -n "$lt_prog_compiler_pic_CXX"; then 11791 11792echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11793echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11794if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11795 echo $ECHO_N "(cached) $ECHO_C" >&6 11796else 11797 lt_prog_compiler_pic_works_CXX=no 11798 ac_outfile=conftest.$ac_objext 11799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11800 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11801 # Insert the option either (1) after the last *FLAGS variable, or 11802 # (2) before a word containing "conftest.", or (3) at the end. 11803 # Note that $ac_compile itself does not contain backslashes and begins 11804 # with a dollar sign (not a hyphen), so the echo should work correctly. 11805 # The option is referenced via a variable to avoid confusing sed. 11806 lt_compile=`echo "$ac_compile" | $SED \ 11807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11809 -e 's:$: $lt_compiler_flag:'` 11810 (eval echo "\"\$as_me:11810: $lt_compile\"" >&5) 11811 (eval "$lt_compile" 2>conftest.err) 11812 ac_status=$? 11813 cat conftest.err >&5 11814 echo "$as_me:11814: \$? = $ac_status" >&5 11815 if (exit $ac_status) && test -s "$ac_outfile"; then 11816 # The compiler can only warn and ignore the option if not recognized 11817 # So say no if there are warnings other than the usual output. 11818 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11820 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11821 lt_prog_compiler_pic_works_CXX=yes 11822 fi 11823 fi 11824 $rm conftest* 11825 11826fi 11827echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11828echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11829 11830if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11831 case $lt_prog_compiler_pic_CXX in 11832 "" | " "*) ;; 11833 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11834 esac 11835else 11836 lt_prog_compiler_pic_CXX= 11837 lt_prog_compiler_can_build_shared_CXX=no 11838fi 11839 11840fi 11841case $host_os in 11842 # For platforms which do not support PIC, -DPIC is meaningless: 11843 *djgpp*) 11844 lt_prog_compiler_pic_CXX= 11845 ;; 11846 *) 11847 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11848 ;; 11849esac 11850 11851# 11852# Check to make sure the static flag actually works. 11853# 11854wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11855echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11856echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 11857if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 11858 echo $ECHO_N "(cached) $ECHO_C" >&6 11859else 11860 lt_prog_compiler_static_works_CXX=no 11861 save_LDFLAGS="$LDFLAGS" 11862 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11863 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11864 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11865 # The linker can only warn and ignore the option if not recognized 11866 # So say no if there are warnings 11867 if test -s conftest.err; then 11868 # Append any errors to the config.log. 11869 cat conftest.err 1>&5 11870 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11872 if diff conftest.exp conftest.er2 >/dev/null; then 11873 lt_prog_compiler_static_works_CXX=yes 11874 fi 11875 else 11876 lt_prog_compiler_static_works_CXX=yes 11877 fi 11878 fi 11879 $rm conftest* 11880 LDFLAGS="$save_LDFLAGS" 11881 11882fi 11883echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 11884echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 11885 11886if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 11887 : 11888else 11889 lt_prog_compiler_static_CXX= 11890fi 11891 11892 11893echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11894echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11895if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11896 echo $ECHO_N "(cached) $ECHO_C" >&6 11897else 11898 lt_cv_prog_compiler_c_o_CXX=no 11899 $rm -r conftest 2>/dev/null 11900 mkdir conftest 11901 cd conftest 11902 mkdir out 11903 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11904 11905 lt_compiler_flag="-o out/conftest2.$ac_objext" 11906 # Insert the option either (1) after the last *FLAGS variable, or 11907 # (2) before a word containing "conftest.", or (3) at the end. 11908 # Note that $ac_compile itself does not contain backslashes and begins 11909 # with a dollar sign (not a hyphen), so the echo should work correctly. 11910 lt_compile=`echo "$ac_compile" | $SED \ 11911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11913 -e 's:$: $lt_compiler_flag:'` 11914 (eval echo "\"\$as_me:11914: $lt_compile\"" >&5) 11915 (eval "$lt_compile" 2>out/conftest.err) 11916 ac_status=$? 11917 cat out/conftest.err >&5 11918 echo "$as_me:11918: \$? = $ac_status" >&5 11919 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11920 then 11921 # The compiler can only warn and ignore the option if not recognized 11922 # So say no if there are warnings 11923 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11924 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11925 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11926 lt_cv_prog_compiler_c_o_CXX=yes 11927 fi 11928 fi 11929 chmod u+w . 2>&5 11930 $rm conftest* 11931 # SGI C++ compiler will create directory out/ii_files/ for 11932 # template instantiation 11933 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11934 $rm out/* && rmdir out 11935 cd .. 11936 rmdir conftest 11937 $rm conftest* 11938 11939fi 11940echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11941echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11942 11943 11944hard_links="nottested" 11945if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11946 # do not overwrite the value of need_locks provided by the user 11947 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11948echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11949 hard_links=yes 11950 $rm conftest* 11951 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11952 touch conftest.a 11953 ln conftest.a conftest.b 2>&5 || hard_links=no 11954 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11955 echo "$as_me:$LINENO: result: $hard_links" >&5 11956echo "${ECHO_T}$hard_links" >&6 11957 if test "$hard_links" = no; then 11958 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11959echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11960 need_locks=warn 11961 fi 11962else 11963 need_locks=no 11964fi 11965 11966echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11967echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11968 11969 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11970 case $host_os in 11971 aix4* | aix5*) 11972 # If we're using GNU nm, then we don't want the "-C" option. 11973 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11974 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11975 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' 11976 else 11977 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' 11978 fi 11979 ;; 11980 pw32*) 11981 export_symbols_cmds_CXX="$ltdll_cmds" 11982 ;; 11983 cygwin* | mingw*) 11984 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11985 ;; 11986 *) 11987 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11988 ;; 11989 esac 11990 11991echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11992echo "${ECHO_T}$ld_shlibs_CXX" >&6 11993test "$ld_shlibs_CXX" = no && can_build_shared=no 11994 11995# 11996# Do we need to explicitly link libc? 11997# 11998case "x$archive_cmds_need_lc_CXX" in 11999x|xyes) 12000 # Assume -lc should be added 12001 archive_cmds_need_lc_CXX=yes 12002 12003 if test "$enable_shared" = yes && test "$GCC" = yes; then 12004 case $archive_cmds_CXX in 12005 *'~'*) 12006 # FIXME: we may have to deal with multi-command sequences. 12007 ;; 12008 '$CC '*) 12009 # Test whether the compiler implicitly links with -lc since on some 12010 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12011 # to ld, don't add -lc before -lgcc. 12012 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12013echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 12014 $rm conftest* 12015 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12016 12017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12018 (eval $ac_compile) 2>&5 12019 ac_status=$? 12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12021 (exit $ac_status); } 2>conftest.err; then 12022 soname=conftest 12023 lib=conftest 12024 libobjs=conftest.$ac_objext 12025 deplibs= 12026 wl=$lt_prog_compiler_wl_CXX 12027 pic_flag=$lt_prog_compiler_pic_CXX 12028 compiler_flags=-v 12029 linker_flags=-v 12030 verstring= 12031 output_objdir=. 12032 libname=conftest 12033 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12034 allow_undefined_flag_CXX= 12035 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12036 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12037 ac_status=$? 12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12039 (exit $ac_status); } 12040 then 12041 archive_cmds_need_lc_CXX=no 12042 else 12043 archive_cmds_need_lc_CXX=yes 12044 fi 12045 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12046 else 12047 cat conftest.err 1>&5 12048 fi 12049 $rm conftest* 12050 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12051echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 12052 ;; 12053 esac 12054 fi 12055 ;; 12056esac 12057 12058echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12059echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 12060library_names_spec= 12061libname_spec='lib$name' 12062soname_spec= 12063shrext_cmds=".so" 12064postinstall_cmds= 12065postuninstall_cmds= 12066finish_cmds= 12067finish_eval= 12068shlibpath_var= 12069shlibpath_overrides_runpath=unknown 12070version_type=none 12071dynamic_linker="$host_os ld.so" 12072sys_lib_dlsearch_path_spec="/lib /usr/lib" 12073if test "$GCC" = yes; then 12074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12075 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12076 # if the path contains ";" then we assume it to be the separator 12077 # otherwise default to the standard path separator (i.e. ":") - it is 12078 # assumed that no part of a normal pathname contains ";" but that should 12079 # okay in the real world where ";" in dirpaths is itself problematic. 12080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12081 else 12082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12083 fi 12084else 12085 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12086fi 12087need_lib_prefix=unknown 12088hardcode_into_libs=no 12089 12090# when you set need_version to no, make sure it does not cause -set_version 12091# flags to be left without arguments 12092need_version=unknown 12093 12094case $host_os in 12095aix3*) 12096 version_type=linux 12097 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12098 shlibpath_var=LIBPATH 12099 12100 # AIX 3 has no versioning support, so we append a major version to the name. 12101 soname_spec='${libname}${release}${shared_ext}$major' 12102 ;; 12103 12104aix4* | aix5*) 12105 version_type=linux 12106 need_lib_prefix=no 12107 need_version=no 12108 hardcode_into_libs=yes 12109 if test "$host_cpu" = ia64; then 12110 # AIX 5 supports IA64 12111 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12112 shlibpath_var=LD_LIBRARY_PATH 12113 else 12114 # With GCC up to 2.95.x, collect2 would create an import file 12115 # for dependence libraries. The import file would start with 12116 # the line `#! .'. This would cause the generated library to 12117 # depend on `.', always an invalid library. This was fixed in 12118 # development snapshots of GCC prior to 3.0. 12119 case $host_os in 12120 aix4 | aix4.[01] | aix4.[01].*) 12121 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12122 echo ' yes ' 12123 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12124 : 12125 else 12126 can_build_shared=no 12127 fi 12128 ;; 12129 esac 12130 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12131 # soname into executable. Probably we can add versioning support to 12132 # collect2, so additional links can be useful in future. 12133 if test "$aix_use_runtimelinking" = yes; then 12134 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12135 # instead of lib<name>.a to let people know that these are not 12136 # typical AIX shared libraries. 12137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12138 else 12139 # We preserve .a as extension for shared libraries through AIX4.2 12140 # and later when we are not doing run time linking. 12141 library_names_spec='${libname}${release}.a $libname.a' 12142 soname_spec='${libname}${release}${shared_ext}$major' 12143 fi 12144 shlibpath_var=LIBPATH 12145 fi 12146 ;; 12147 12148amigaos*) 12149 library_names_spec='$libname.ixlibrary $libname.a' 12150 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12151 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' 12152 ;; 12153 12154beos*) 12155 library_names_spec='${libname}${shared_ext}' 12156 dynamic_linker="$host_os ld.so" 12157 shlibpath_var=LIBRARY_PATH 12158 ;; 12159 12160bsdi[45]*) 12161 version_type=linux 12162 need_version=no 12163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12164 soname_spec='${libname}${release}${shared_ext}$major' 12165 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12166 shlibpath_var=LD_LIBRARY_PATH 12167 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12168 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12169 # the default ld.so.conf also contains /usr/contrib/lib and 12170 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12171 # libtool to hard-code these into programs 12172 ;; 12173 12174cygwin* | mingw* | pw32*) 12175 version_type=windows 12176 shrext_cmds=".dll" 12177 need_version=no 12178 need_lib_prefix=no 12179 12180 case $GCC,$host_os in 12181 yes,cygwin* | yes,mingw* | yes,pw32*) 12182 library_names_spec='$libname.dll.a' 12183 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12184 postinstall_cmds='base_file=`basename \${file}`~ 12185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12186 dldir=$destdir/`dirname \$dlpath`~ 12187 test -d \$dldir || mkdir -p \$dldir~ 12188 $install_prog $dir/$dlname \$dldir/$dlname~ 12189 chmod a+x \$dldir/$dlname' 12190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12191 dlpath=$dir/\$dldll~ 12192 $rm \$dlpath' 12193 shlibpath_overrides_runpath=yes 12194 12195 case $host_os in 12196 cygwin*) 12197 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12198 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12199 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12200 ;; 12201 mingw*) 12202 # MinGW DLLs use traditional 'lib' prefix 12203 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12204 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12205 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12206 # It is most probably a Windows format PATH printed by 12207 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12208 # path with ; separators, and with drive letters. We can handle the 12209 # drive letters (cygwin fileutils understands them), so leave them, 12210 # especially as we might pass files found there to a mingw objdump, 12211 # which wouldn't understand a cygwinified path. Ahh. 12212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12213 else 12214 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12215 fi 12216 ;; 12217 pw32*) 12218 # pw32 DLLs use 'pw' prefix rather than 'lib' 12219 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12220 ;; 12221 esac 12222 ;; 12223 12224 *) 12225 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12226 ;; 12227 esac 12228 dynamic_linker='Win32 ld.exe' 12229 # FIXME: first we should search . and the directory the executable is in 12230 shlibpath_var=PATH 12231 ;; 12232 12233darwin* | rhapsody*) 12234 dynamic_linker="$host_os dyld" 12235 version_type=darwin 12236 need_lib_prefix=no 12237 need_version=no 12238 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12239 soname_spec='${libname}${release}${major}$shared_ext' 12240 shlibpath_overrides_runpath=yes 12241 shlibpath_var=DYLD_LIBRARY_PATH 12242 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12243 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12244 if test "$GCC" = yes; then 12245 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"` 12246 else 12247 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12248 fi 12249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12250 ;; 12251 12252dgux*) 12253 version_type=linux 12254 need_lib_prefix=no 12255 need_version=no 12256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12257 soname_spec='${libname}${release}${shared_ext}$major' 12258 shlibpath_var=LD_LIBRARY_PATH 12259 ;; 12260 12261freebsd1*) 12262 dynamic_linker=no 12263 ;; 12264 12265kfreebsd*-gnu) 12266 version_type=linux 12267 need_lib_prefix=no 12268 need_version=no 12269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12270 soname_spec='${libname}${release}${shared_ext}$major' 12271 shlibpath_var=LD_LIBRARY_PATH 12272 shlibpath_overrides_runpath=no 12273 hardcode_into_libs=yes 12274 dynamic_linker='GNU ld.so' 12275 ;; 12276 12277freebsd* | dragonfly*) 12278 # DragonFly does not have aout. When/if they implement a new 12279 # versioning mechanism, adjust this. 12280 if test -x /usr/bin/objformat; then 12281 objformat=`/usr/bin/objformat` 12282 else 12283 case $host_os in 12284 freebsd[123]*) objformat=aout ;; 12285 *) objformat=elf ;; 12286 esac 12287 fi 12288 version_type=freebsd-$objformat 12289 case $version_type in 12290 freebsd-elf*) 12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12292 need_version=no 12293 need_lib_prefix=no 12294 ;; 12295 freebsd-*) 12296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12297 need_version=yes 12298 ;; 12299 esac 12300 shlibpath_var=LD_LIBRARY_PATH 12301 case $host_os in 12302 freebsd2*) 12303 shlibpath_overrides_runpath=yes 12304 ;; 12305 freebsd3.[01]* | freebsdelf3.[01]*) 12306 shlibpath_overrides_runpath=yes 12307 hardcode_into_libs=yes 12308 ;; 12309 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12310 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12311 shlibpath_overrides_runpath=no 12312 hardcode_into_libs=yes 12313 ;; 12314 freebsd*) # from 4.6 on 12315 shlibpath_overrides_runpath=yes 12316 hardcode_into_libs=yes 12317 ;; 12318 esac 12319 ;; 12320 12321gnu*) 12322 version_type=linux 12323 need_lib_prefix=no 12324 need_version=no 12325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12326 soname_spec='${libname}${release}${shared_ext}$major' 12327 shlibpath_var=LD_LIBRARY_PATH 12328 hardcode_into_libs=yes 12329 ;; 12330 12331hpux9* | hpux10* | hpux11*) 12332 # Give a soname corresponding to the major version so that dld.sl refuses to 12333 # link against other versions. 12334 version_type=sunos 12335 need_lib_prefix=no 12336 need_version=no 12337 case $host_cpu in 12338 ia64*) 12339 shrext_cmds='.so' 12340 hardcode_into_libs=yes 12341 dynamic_linker="$host_os dld.so" 12342 shlibpath_var=LD_LIBRARY_PATH 12343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12345 soname_spec='${libname}${release}${shared_ext}$major' 12346 if test "X$HPUX_IA64_MODE" = X32; then 12347 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12348 else 12349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12350 fi 12351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12352 ;; 12353 hppa*64*) 12354 shrext_cmds='.sl' 12355 hardcode_into_libs=yes 12356 dynamic_linker="$host_os dld.sl" 12357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12360 soname_spec='${libname}${release}${shared_ext}$major' 12361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12363 ;; 12364 *) 12365 shrext_cmds='.sl' 12366 dynamic_linker="$host_os dld.sl" 12367 shlibpath_var=SHLIB_PATH 12368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12370 soname_spec='${libname}${release}${shared_ext}$major' 12371 ;; 12372 esac 12373 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12374 postinstall_cmds='chmod 555 $lib' 12375 ;; 12376 12377interix3*) 12378 version_type=linux 12379 need_lib_prefix=no 12380 need_version=no 12381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12382 soname_spec='${libname}${release}${shared_ext}$major' 12383 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12384 shlibpath_var=LD_LIBRARY_PATH 12385 shlibpath_overrides_runpath=no 12386 hardcode_into_libs=yes 12387 ;; 12388 12389irix5* | irix6* | nonstopux*) 12390 case $host_os in 12391 nonstopux*) version_type=nonstopux ;; 12392 *) 12393 if test "$lt_cv_prog_gnu_ld" = yes; then 12394 version_type=linux 12395 else 12396 version_type=irix 12397 fi ;; 12398 esac 12399 need_lib_prefix=no 12400 need_version=no 12401 soname_spec='${libname}${release}${shared_ext}$major' 12402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12403 case $host_os in 12404 irix5* | nonstopux*) 12405 libsuff= shlibsuff= 12406 ;; 12407 *) 12408 case $LD in # libtool.m4 will add one of these switches to LD 12409 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12410 libsuff= shlibsuff= libmagic=32-bit;; 12411 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12412 libsuff=32 shlibsuff=N32 libmagic=N32;; 12413 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12414 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12415 *) libsuff= shlibsuff= libmagic=never-match;; 12416 esac 12417 ;; 12418 esac 12419 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12420 shlibpath_overrides_runpath=no 12421 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12422 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12423 hardcode_into_libs=yes 12424 ;; 12425 12426# No shared lib support for Linux oldld, aout, or coff. 12427linux*oldld* | linux*aout* | linux*coff*) 12428 dynamic_linker=no 12429 ;; 12430 12431# This must be Linux ELF. 12432linux*) 12433 version_type=linux 12434 need_lib_prefix=no 12435 need_version=no 12436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12437 soname_spec='${libname}${release}${shared_ext}$major' 12438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12439 shlibpath_var=LD_LIBRARY_PATH 12440 shlibpath_overrides_runpath=no 12441 # This implies no fast_install, which is unacceptable. 12442 # Some rework will be needed to allow for fast_install 12443 # before this can be enabled. 12444 hardcode_into_libs=yes 12445 12446 # find out which ABI we are using 12447 libsuff= 12448 case "$host_cpu" in 12449 x86_64*|s390x*|powerpc64*) 12450 echo '#line 12450 "configure"' > conftest.$ac_ext 12451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12452 (eval $ac_compile) 2>&5 12453 ac_status=$? 12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12455 (exit $ac_status); }; then 12456 case `/usr/bin/file conftest.$ac_objext` in 12457 *64-bit*) 12458 libsuff=64 12459 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 12460 ;; 12461 esac 12462 fi 12463 rm -rf conftest* 12464 ;; 12465 esac 12466 12467 # Append ld.so.conf contents to the search path 12468 if test -f /etc/ld.so.conf; then 12469 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12470 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 12471 fi 12472 12473 # We used to test for /lib/ld.so.1 and disable shared libraries on 12474 # powerpc, because MkLinux only supported shared libraries with the 12475 # GNU dynamic linker. Since this was broken with cross compilers, 12476 # most powerpc-linux boxes support dynamic linking these days and 12477 # people can always --disable-shared, the test was removed, and we 12478 # assume the GNU/Linux dynamic linker is in use. 12479 dynamic_linker='GNU/Linux ld.so' 12480 ;; 12481 12482knetbsd*-gnu) 12483 version_type=linux 12484 need_lib_prefix=no 12485 need_version=no 12486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12487 soname_spec='${libname}${release}${shared_ext}$major' 12488 shlibpath_var=LD_LIBRARY_PATH 12489 shlibpath_overrides_runpath=no 12490 hardcode_into_libs=yes 12491 dynamic_linker='GNU ld.so' 12492 ;; 12493 12494netbsd*) 12495 version_type=sunos 12496 need_lib_prefix=no 12497 need_version=no 12498 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12501 dynamic_linker='NetBSD (a.out) ld.so' 12502 else 12503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12504 soname_spec='${libname}${release}${shared_ext}$major' 12505 dynamic_linker='NetBSD ld.elf_so' 12506 fi 12507 shlibpath_var=LD_LIBRARY_PATH 12508 shlibpath_overrides_runpath=yes 12509 hardcode_into_libs=yes 12510 ;; 12511 12512newsos6) 12513 version_type=linux 12514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12515 shlibpath_var=LD_LIBRARY_PATH 12516 shlibpath_overrides_runpath=yes 12517 ;; 12518 12519nto-qnx*) 12520 version_type=linux 12521 need_lib_prefix=no 12522 need_version=no 12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12524 soname_spec='${libname}${release}${shared_ext}$major' 12525 shlibpath_var=LD_LIBRARY_PATH 12526 shlibpath_overrides_runpath=yes 12527 ;; 12528 12529openbsd*) 12530 version_type=sunos 12531 sys_lib_dlsearch_path_spec="/usr/lib" 12532 need_lib_prefix=no 12533 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12534 case $host_os in 12535 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12536 *) need_version=no ;; 12537 esac 12538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12540 shlibpath_var=LD_LIBRARY_PATH 12541 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12542 case $host_os in 12543 openbsd2.[89] | openbsd2.[89].*) 12544 shlibpath_overrides_runpath=no 12545 ;; 12546 *) 12547 shlibpath_overrides_runpath=yes 12548 ;; 12549 esac 12550 else 12551 shlibpath_overrides_runpath=yes 12552 fi 12553 ;; 12554 12555os2*) 12556 libname_spec='$name' 12557 shrext_cmds=".dll" 12558 need_lib_prefix=no 12559 library_names_spec='$libname${shared_ext} $libname.a' 12560 dynamic_linker='OS/2 ld.exe' 12561 shlibpath_var=LIBPATH 12562 ;; 12563 12564osf3* | osf4* | osf5*) 12565 version_type=osf 12566 need_lib_prefix=no 12567 need_version=no 12568 soname_spec='${libname}${release}${shared_ext}$major' 12569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12570 shlibpath_var=LD_LIBRARY_PATH 12571 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12572 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12573 ;; 12574 12575solaris*) 12576 version_type=linux 12577 need_lib_prefix=no 12578 need_version=no 12579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12580 soname_spec='${libname}${release}${shared_ext}$major' 12581 shlibpath_var=LD_LIBRARY_PATH 12582 shlibpath_overrides_runpath=yes 12583 hardcode_into_libs=yes 12584 # ldd complains unless libraries are executable 12585 postinstall_cmds='chmod +x $lib' 12586 ;; 12587 12588sunos4*) 12589 version_type=sunos 12590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12591 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12592 shlibpath_var=LD_LIBRARY_PATH 12593 shlibpath_overrides_runpath=yes 12594 if test "$with_gnu_ld" = yes; then 12595 need_lib_prefix=no 12596 fi 12597 need_version=yes 12598 ;; 12599 12600sysv4 | sysv4.3*) 12601 version_type=linux 12602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12603 soname_spec='${libname}${release}${shared_ext}$major' 12604 shlibpath_var=LD_LIBRARY_PATH 12605 case $host_vendor in 12606 sni) 12607 shlibpath_overrides_runpath=no 12608 need_lib_prefix=no 12609 export_dynamic_flag_spec='${wl}-Blargedynsym' 12610 runpath_var=LD_RUN_PATH 12611 ;; 12612 siemens) 12613 need_lib_prefix=no 12614 ;; 12615 motorola) 12616 need_lib_prefix=no 12617 need_version=no 12618 shlibpath_overrides_runpath=no 12619 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12620 ;; 12621 esac 12622 ;; 12623 12624sysv4*MP*) 12625 if test -d /usr/nec ;then 12626 version_type=linux 12627 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12628 soname_spec='$libname${shared_ext}.$major' 12629 shlibpath_var=LD_LIBRARY_PATH 12630 fi 12631 ;; 12632 12633sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12634 version_type=freebsd-elf 12635 need_lib_prefix=no 12636 need_version=no 12637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12638 soname_spec='${libname}${release}${shared_ext}$major' 12639 shlibpath_var=LD_LIBRARY_PATH 12640 hardcode_into_libs=yes 12641 if test "$with_gnu_ld" = yes; then 12642 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12643 shlibpath_overrides_runpath=no 12644 else 12645 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12646 shlibpath_overrides_runpath=yes 12647 case $host_os in 12648 sco3.2v5*) 12649 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12650 ;; 12651 esac 12652 fi 12653 sys_lib_dlsearch_path_spec='/usr/lib' 12654 ;; 12655 12656uts4*) 12657 version_type=linux 12658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12659 soname_spec='${libname}${release}${shared_ext}$major' 12660 shlibpath_var=LD_LIBRARY_PATH 12661 ;; 12662 12663*) 12664 dynamic_linker=no 12665 ;; 12666esac 12667echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12668echo "${ECHO_T}$dynamic_linker" >&6 12669test "$dynamic_linker" = no && can_build_shared=no 12670 12671variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12672if test "$GCC" = yes; then 12673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12674fi 12675 12676echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12677echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12678hardcode_action_CXX= 12679if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12680 test -n "$runpath_var_CXX" || \ 12681 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12682 12683 # We can hardcode non-existant directories. 12684 if test "$hardcode_direct_CXX" != no && 12685 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12686 # have to relink, otherwise we might link with an installed library 12687 # when we should be linking with a yet-to-be-installed one 12688 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12689 test "$hardcode_minus_L_CXX" != no; then 12690 # Linking always hardcodes the temporary library directory. 12691 hardcode_action_CXX=relink 12692 else 12693 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12694 hardcode_action_CXX=immediate 12695 fi 12696else 12697 # We cannot hardcode anything, or else we can only hardcode existing 12698 # directories. 12699 hardcode_action_CXX=unsupported 12700fi 12701echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12702echo "${ECHO_T}$hardcode_action_CXX" >&6 12703 12704if test "$hardcode_action_CXX" = relink; then 12705 # Fast installation is not supported 12706 enable_fast_install=no 12707elif test "$shlibpath_overrides_runpath" = yes || 12708 test "$enable_shared" = no; then 12709 # Fast installation is not necessary 12710 enable_fast_install=needless 12711fi 12712 12713 12714# The else clause should only fire when bootstrapping the 12715# libtool distribution, otherwise you forgot to ship ltmain.sh 12716# with your package, and you will get complaints that there are 12717# no rules to generate ltmain.sh. 12718if test -f "$ltmain"; then 12719 # See if we are running on zsh, and set the options which allow our commands through 12720 # without removal of \ escapes. 12721 if test -n "${ZSH_VERSION+set}" ; then 12722 setopt NO_GLOB_SUBST 12723 fi 12724 # Now quote all the things that may contain metacharacters while being 12725 # careful not to overquote the AC_SUBSTed values. We take copies of the 12726 # variables and quote the copies for generation of the libtool script. 12727 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12728 SED SHELL STRIP \ 12729 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12730 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12731 deplibs_check_method reload_flag reload_cmds need_locks \ 12732 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12733 lt_cv_sys_global_symbol_to_c_name_address \ 12734 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12735 old_postinstall_cmds old_postuninstall_cmds \ 12736 compiler_CXX \ 12737 CC_CXX \ 12738 LD_CXX \ 12739 lt_prog_compiler_wl_CXX \ 12740 lt_prog_compiler_pic_CXX \ 12741 lt_prog_compiler_static_CXX \ 12742 lt_prog_compiler_no_builtin_flag_CXX \ 12743 export_dynamic_flag_spec_CXX \ 12744 thread_safe_flag_spec_CXX \ 12745 whole_archive_flag_spec_CXX \ 12746 enable_shared_with_static_runtimes_CXX \ 12747 old_archive_cmds_CXX \ 12748 old_archive_from_new_cmds_CXX \ 12749 predep_objects_CXX \ 12750 postdep_objects_CXX \ 12751 predeps_CXX \ 12752 postdeps_CXX \ 12753 compiler_lib_search_path_CXX \ 12754 archive_cmds_CXX \ 12755 archive_expsym_cmds_CXX \ 12756 postinstall_cmds_CXX \ 12757 postuninstall_cmds_CXX \ 12758 old_archive_from_expsyms_cmds_CXX \ 12759 allow_undefined_flag_CXX \ 12760 no_undefined_flag_CXX \ 12761 export_symbols_cmds_CXX \ 12762 hardcode_libdir_flag_spec_CXX \ 12763 hardcode_libdir_flag_spec_ld_CXX \ 12764 hardcode_libdir_separator_CXX \ 12765 hardcode_automatic_CXX \ 12766 module_cmds_CXX \ 12767 module_expsym_cmds_CXX \ 12768 lt_cv_prog_compiler_c_o_CXX \ 12769 exclude_expsyms_CXX \ 12770 include_expsyms_CXX; do 12771 12772 case $var in 12773 old_archive_cmds_CXX | \ 12774 old_archive_from_new_cmds_CXX | \ 12775 archive_cmds_CXX | \ 12776 archive_expsym_cmds_CXX | \ 12777 module_cmds_CXX | \ 12778 module_expsym_cmds_CXX | \ 12779 old_archive_from_expsyms_cmds_CXX | \ 12780 export_symbols_cmds_CXX | \ 12781 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12782 postinstall_cmds | postuninstall_cmds | \ 12783 old_postinstall_cmds | old_postuninstall_cmds | \ 12784 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12785 # Double-quote double-evaled strings. 12786 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12787 ;; 12788 *) 12789 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12790 ;; 12791 esac 12792 done 12793 12794 case $lt_echo in 12795 *'\$0 --fallback-echo"') 12796 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12797 ;; 12798 esac 12799 12800cfgfile="$ofile" 12801 12802 cat <<__EOF__ >> "$cfgfile" 12803# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12804 12805# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12806 12807# Shell to use when invoking shell scripts. 12808SHELL=$lt_SHELL 12809 12810# Whether or not to build shared libraries. 12811build_libtool_libs=$enable_shared 12812 12813# Whether or not to build static libraries. 12814build_old_libs=$enable_static 12815 12816# Whether or not to add -lc for building shared libraries. 12817build_libtool_need_lc=$archive_cmds_need_lc_CXX 12818 12819# Whether or not to disallow shared libs when runtime libs are static 12820allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12821 12822# Whether or not to optimize for fast installation. 12823fast_install=$enable_fast_install 12824 12825# The host system. 12826host_alias=$host_alias 12827host=$host 12828host_os=$host_os 12829 12830# The build system. 12831build_alias=$build_alias 12832build=$build 12833build_os=$build_os 12834 12835# An echo program that does not interpret backslashes. 12836echo=$lt_echo 12837 12838# The archiver. 12839AR=$lt_AR 12840AR_FLAGS=$lt_AR_FLAGS 12841 12842# A C compiler. 12843LTCC=$lt_LTCC 12844 12845# LTCC compiler flags. 12846LTCFLAGS=$lt_LTCFLAGS 12847 12848# A language-specific compiler. 12849CC=$lt_compiler_CXX 12850 12851# Is the compiler the GNU C compiler? 12852with_gcc=$GCC_CXX 12853 12854gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 12855gcc_ver=\`gcc -dumpversion\` 12856 12857# An ERE matcher. 12858EGREP=$lt_EGREP 12859 12860# The linker used to build libraries. 12861LD=$lt_LD_CXX 12862 12863# Whether we need hard or soft links. 12864LN_S=$lt_LN_S 12865 12866# A BSD-compatible nm program. 12867NM=$lt_NM 12868 12869# A symbol stripping program 12870STRIP=$lt_STRIP 12871 12872# Used to examine libraries when file_magic_cmd begins "file" 12873MAGIC_CMD=$MAGIC_CMD 12874 12875# Used on cygwin: DLL creation program. 12876DLLTOOL="$DLLTOOL" 12877 12878# Used on cygwin: object dumper. 12879OBJDUMP="$OBJDUMP" 12880 12881# Used on cygwin: assembler. 12882AS="$AS" 12883 12884# The name of the directory that contains temporary libtool files. 12885objdir=$objdir 12886 12887# How to create reloadable object files. 12888reload_flag=$lt_reload_flag 12889reload_cmds=$lt_reload_cmds 12890 12891# How to pass a linker flag through the compiler. 12892wl=$lt_lt_prog_compiler_wl_CXX 12893 12894# Object file suffix (normally "o"). 12895objext="$ac_objext" 12896 12897# Old archive suffix (normally "a"). 12898libext="$libext" 12899 12900# Shared library suffix (normally ".so"). 12901shrext_cmds='$shrext_cmds' 12902 12903# Executable file suffix (normally ""). 12904exeext="$exeext" 12905 12906# Additional compiler flags for building library objects. 12907pic_flag=$lt_lt_prog_compiler_pic_CXX 12908pic_mode=$pic_mode 12909 12910# What is the maximum length of a command? 12911max_cmd_len=$lt_cv_sys_max_cmd_len 12912 12913# Does compiler simultaneously support -c and -o options? 12914compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12915 12916# Must we lock files when doing compilation? 12917need_locks=$lt_need_locks 12918 12919# Do we need the lib prefix for modules? 12920need_lib_prefix=$need_lib_prefix 12921 12922# Do we need a version for libraries? 12923need_version=$need_version 12924 12925# Whether dlopen is supported. 12926dlopen_support=$enable_dlopen 12927 12928# Whether dlopen of programs is supported. 12929dlopen_self=$enable_dlopen_self 12930 12931# Whether dlopen of statically linked programs is supported. 12932dlopen_self_static=$enable_dlopen_self_static 12933 12934# Compiler flag to prevent dynamic linking. 12935link_static_flag=$lt_lt_prog_compiler_static_CXX 12936 12937# Compiler flag to turn off builtin functions. 12938no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12939 12940# Compiler flag to allow reflexive dlopens. 12941export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12942 12943# Compiler flag to generate shared objects directly from archives. 12944whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12945 12946# Compiler flag to generate thread-safe objects. 12947thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12948 12949# Library versioning type. 12950version_type=$version_type 12951 12952# Format of library name prefix. 12953libname_spec=$lt_libname_spec 12954 12955# List of archive names. First name is the real one, the rest are links. 12956# The last name is the one that the linker finds with -lNAME. 12957library_names_spec=$lt_library_names_spec 12958 12959# The coded name of the library, if different from the real name. 12960soname_spec=$lt_soname_spec 12961 12962# Commands used to build and install an old-style archive. 12963RANLIB=$lt_RANLIB 12964old_archive_cmds=$lt_old_archive_cmds_CXX 12965old_postinstall_cmds=$lt_old_postinstall_cmds 12966old_postuninstall_cmds=$lt_old_postuninstall_cmds 12967 12968# Create an old-style archive from a shared archive. 12969old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12970 12971# Create a temporary old-style archive to link instead of a shared archive. 12972old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12973 12974# Commands used to build and install a shared archive. 12975archive_cmds=$lt_archive_cmds_CXX 12976archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12977postinstall_cmds=$lt_postinstall_cmds 12978postuninstall_cmds=$lt_postuninstall_cmds 12979 12980# Commands used to build a loadable module (assumed same as above if empty) 12981module_cmds=$lt_module_cmds_CXX 12982module_expsym_cmds=$lt_module_expsym_cmds_CXX 12983 12984# Commands to strip libraries. 12985old_striplib=$lt_old_striplib 12986striplib=$lt_striplib 12987 12988# Dependencies to place before the objects being linked to create a 12989# shared library. 12990predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12991 12992# Dependencies to place after the objects being linked to create a 12993# shared library. 12994postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12995 12996# Dependencies to place before the objects being linked to create a 12997# shared library. 12998predeps=$lt_predeps_CXX 12999 13000# Dependencies to place after the objects being linked to create a 13001# shared library. 13002postdeps=$lt_postdeps_CXX 13003 13004# The library search path used internally by the compiler when linking 13005# a shared library. 13006compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 13007 13008# Method to check whether dependent libraries are shared objects. 13009deplibs_check_method=$lt_deplibs_check_method 13010 13011# Command to use when deplibs_check_method == file_magic. 13012file_magic_cmd=$lt_file_magic_cmd 13013 13014# Flag that allows shared libraries with undefined symbols to be built. 13015allow_undefined_flag=$lt_allow_undefined_flag_CXX 13016 13017# Flag that forces no undefined symbols. 13018no_undefined_flag=$lt_no_undefined_flag_CXX 13019 13020# Commands used to finish a libtool library installation in a directory. 13021finish_cmds=$lt_finish_cmds 13022 13023# Same as above, but a single script fragment to be evaled but not shown. 13024finish_eval=$lt_finish_eval 13025 13026# Take the output of nm and produce a listing of raw symbols and C names. 13027global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13028 13029# Transform the output of nm in a proper C declaration 13030global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13031 13032# Transform the output of nm in a C name address pair 13033global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13034 13035# This is the shared library runtime path variable. 13036runpath_var=$runpath_var 13037 13038# This is the shared library path variable. 13039shlibpath_var=$shlibpath_var 13040 13041# Is shlibpath searched before the hard-coded library search path? 13042shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13043 13044# How to hardcode a shared library path into an executable. 13045hardcode_action=$hardcode_action_CXX 13046 13047# Whether we should hardcode library paths into libraries. 13048hardcode_into_libs=$hardcode_into_libs 13049 13050# Flag to hardcode \$libdir into a binary during linking. 13051# This must work even if \$libdir does not exist. 13052hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13053 13054# If ld is used when linking, flag to hardcode \$libdir into 13055# a binary during linking. This must work even if \$libdir does 13056# not exist. 13057hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13058 13059# Whether we need a single -rpath flag with a separated argument. 13060hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13061 13062# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13063# resulting binary. 13064hardcode_direct=$hardcode_direct_CXX 13065 13066# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13067# resulting binary. 13068hardcode_minus_L=$hardcode_minus_L_CXX 13069 13070# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13071# the resulting binary. 13072hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13073 13074# Set to yes if building a shared library automatically hardcodes DIR into the library 13075# and all subsequent libraries and executables linked against it. 13076hardcode_automatic=$hardcode_automatic_CXX 13077 13078# Variables whose values should be saved in libtool wrapper scripts and 13079# restored at relink time. 13080variables_saved_for_relink="$variables_saved_for_relink" 13081 13082# Whether libtool must link a program against all its dependency libraries. 13083link_all_deplibs=$link_all_deplibs_CXX 13084 13085# Compile-time system search path for libraries 13086sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 13087 13088# Run-time system search path for libraries 13089sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13090 13091# Fix the shell variable \$srcfile for the compiler. 13092fix_srcfile_path="$fix_srcfile_path_CXX" 13093 13094# Set to yes if exported symbols are required. 13095always_export_symbols=$always_export_symbols_CXX 13096 13097# The commands to list exported symbols. 13098export_symbols_cmds=$lt_export_symbols_cmds_CXX 13099 13100# The commands to extract the exported symbol list from a shared archive. 13101extract_expsyms_cmds=$lt_extract_expsyms_cmds 13102 13103# Symbols that should not be listed in the preloaded symbols. 13104exclude_expsyms=$lt_exclude_expsyms_CXX 13105 13106# Symbols that must always be exported. 13107include_expsyms=$lt_include_expsyms_CXX 13108 13109# ### END LIBTOOL TAG CONFIG: $tagname 13110 13111__EOF__ 13112 13113 13114else 13115 # If there is no Makefile yet, we rely on a make rule to execute 13116 # `config.status --recheck' to rerun these tests and create the 13117 # libtool script then. 13118 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13119 if test -f "$ltmain_in"; then 13120 test -f Makefile && make "$ltmain" 13121 fi 13122fi 13123 13124 13125ac_ext=c 13126ac_cpp='$CPP $CPPFLAGS' 13127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13129ac_compiler_gnu=$ac_cv_c_compiler_gnu 13130 13131CC=$lt_save_CC 13132LDCXX=$LD 13133LD=$lt_save_LD 13134GCC=$lt_save_GCC 13135with_gnu_ldcxx=$with_gnu_ld 13136with_gnu_ld=$lt_save_with_gnu_ld 13137lt_cv_path_LDCXX=$lt_cv_path_LD 13138lt_cv_path_LD=$lt_save_path_LD 13139lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13140lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13141 13142 else 13143 tagname="" 13144 fi 13145 ;; 13146 13147 F77) 13148 if test -n "$F77" && test "X$F77" != "Xno"; then 13149 13150ac_ext=f 13151ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13152ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13153ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13154 13155 13156archive_cmds_need_lc_F77=no 13157allow_undefined_flag_F77= 13158always_export_symbols_F77=no 13159archive_expsym_cmds_F77= 13160export_dynamic_flag_spec_F77= 13161hardcode_direct_F77=no 13162hardcode_libdir_flag_spec_F77= 13163hardcode_libdir_flag_spec_ld_F77= 13164hardcode_libdir_separator_F77= 13165hardcode_minus_L_F77=no 13166hardcode_automatic_F77=no 13167module_cmds_F77= 13168module_expsym_cmds_F77= 13169link_all_deplibs_F77=unknown 13170old_archive_cmds_F77=$old_archive_cmds 13171no_undefined_flag_F77= 13172whole_archive_flag_spec_F77= 13173enable_shared_with_static_runtimes_F77=no 13174 13175# Source file extension for f77 test sources. 13176ac_ext=f 13177 13178# Object file extension for compiled f77 test sources. 13179objext=o 13180objext_F77=$objext 13181 13182# Code to be used in simple compile tests 13183lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13184 13185# Code to be used in simple link tests 13186lt_simple_link_test_code=" program t\n end\n" 13187 13188# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13189 13190# If no C compiler was specified, use CC. 13191LTCC=${LTCC-"$CC"} 13192 13193# If no C compiler flags were specified, use CFLAGS. 13194LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13195 13196# Allow CC to be a program name with arguments. 13197compiler=$CC 13198 13199 13200# save warnings/boilerplate of simple test code 13201ac_outfile=conftest.$ac_objext 13202printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13203eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13204_lt_compiler_boilerplate=`cat conftest.err` 13205$rm conftest* 13206 13207ac_outfile=conftest.$ac_objext 13208printf "$lt_simple_link_test_code" >conftest.$ac_ext 13209eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13210_lt_linker_boilerplate=`cat conftest.err` 13211$rm conftest* 13212 13213 13214# Allow CC to be a program name with arguments. 13215lt_save_CC="$CC" 13216CC=${F77-"f77"} 13217compiler=$CC 13218compiler_F77=$CC 13219for cc_temp in $compiler""; do 13220 case $cc_temp in 13221 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13222 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13223 \-*) ;; 13224 *) break;; 13225 esac 13226done 13227cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13228 13229 13230echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13231echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13232echo "$as_me:$LINENO: result: $can_build_shared" >&5 13233echo "${ECHO_T}$can_build_shared" >&6 13234 13235echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13236echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13237test "$can_build_shared" = "no" && enable_shared=no 13238 13239# On AIX, shared libraries and static libraries use the same namespace, and 13240# are all built from PIC. 13241case $host_os in 13242aix3*) 13243 test "$enable_shared" = yes && enable_static=no 13244 if test -n "$RANLIB"; then 13245 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13246 postinstall_cmds='$RANLIB $lib' 13247 fi 13248 ;; 13249aix4* | aix5*) 13250 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13251 test "$enable_shared" = yes && enable_static=no 13252 fi 13253 ;; 13254esac 13255echo "$as_me:$LINENO: result: $enable_shared" >&5 13256echo "${ECHO_T}$enable_shared" >&6 13257 13258echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13259echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13260# Make sure either enable_shared or enable_static is yes. 13261test "$enable_shared" = yes || enable_static=yes 13262echo "$as_me:$LINENO: result: $enable_static" >&5 13263echo "${ECHO_T}$enable_static" >&6 13264 13265GCC_F77="$G77" 13266LD_F77="$LD" 13267 13268lt_prog_compiler_wl_F77= 13269lt_prog_compiler_pic_F77= 13270lt_prog_compiler_static_F77= 13271 13272echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13273echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13274 13275 if test "$GCC" = yes; then 13276 lt_prog_compiler_wl_F77='-Wl,' 13277 lt_prog_compiler_static_F77='-static' 13278 13279 case $host_os in 13280 aix*) 13281 # All AIX code is PIC. 13282 if test "$host_cpu" = ia64; then 13283 # AIX 5 now supports IA64 processor 13284 lt_prog_compiler_static_F77='-Bstatic' 13285 fi 13286 ;; 13287 13288 amigaos*) 13289 # FIXME: we need at least 68020 code to build shared libraries, but 13290 # adding the `-m68020' flag to GCC prevents building anything better, 13291 # like `-m68040'. 13292 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13293 ;; 13294 13295 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13296 # PIC is the default for these OSes. 13297 ;; 13298 13299 mingw* | pw32* | os2*) 13300 # This hack is so that the source file can tell whether it is being 13301 # built for inclusion in a dll (and should export symbols for example). 13302 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13303 ;; 13304 13305 darwin* | rhapsody*) 13306 # PIC is the default on this platform 13307 # Common symbols not allowed in MH_DYLIB files 13308 lt_prog_compiler_pic_F77='-fno-common' 13309 ;; 13310 13311 interix3*) 13312 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13313 # Instead, we relocate shared libraries at runtime. 13314 ;; 13315 13316 msdosdjgpp*) 13317 # Just because we use GCC doesn't mean we suddenly get shared libraries 13318 # on systems that don't support them. 13319 lt_prog_compiler_can_build_shared_F77=no 13320 enable_shared=no 13321 ;; 13322 13323 sysv4*MP*) 13324 if test -d /usr/nec; then 13325 lt_prog_compiler_pic_F77=-Kconform_pic 13326 fi 13327 ;; 13328 13329 hpux*) 13330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13331 # not for PA HP-UX. 13332 case $host_cpu in 13333 hppa*64*|ia64*) 13334 # +Z the default 13335 ;; 13336 *) 13337 lt_prog_compiler_pic_F77='-fPIC' 13338 ;; 13339 esac 13340 ;; 13341 13342 *) 13343 lt_prog_compiler_pic_F77='-fPIC' 13344 ;; 13345 esac 13346 else 13347 # PORTME Check for flag to pass linker flags through the system compiler. 13348 case $host_os in 13349 aix*) 13350 lt_prog_compiler_wl_F77='-Wl,' 13351 if test "$host_cpu" = ia64; then 13352 # AIX 5 now supports IA64 processor 13353 lt_prog_compiler_static_F77='-Bstatic' 13354 else 13355 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13356 fi 13357 ;; 13358 darwin*) 13359 # PIC is the default on this platform 13360 # Common symbols not allowed in MH_DYLIB files 13361 case $cc_basename in 13362 xlc*) 13363 lt_prog_compiler_pic_F77='-qnocommon' 13364 lt_prog_compiler_wl_F77='-Wl,' 13365 ;; 13366 esac 13367 ;; 13368 13369 mingw* | pw32* | os2*) 13370 # This hack is so that the source file can tell whether it is being 13371 # built for inclusion in a dll (and should export symbols for example). 13372 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13373 ;; 13374 13375 hpux9* | hpux10* | hpux11*) 13376 lt_prog_compiler_wl_F77='-Wl,' 13377 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13378 # not for PA HP-UX. 13379 case $host_cpu in 13380 hppa*64*|ia64*) 13381 # +Z the default 13382 ;; 13383 *) 13384 lt_prog_compiler_pic_F77='+Z' 13385 ;; 13386 esac 13387 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13388 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13389 ;; 13390 13391 irix5* | irix6* | nonstopux*) 13392 lt_prog_compiler_wl_F77='-Wl,' 13393 # PIC (with -KPIC) is the default. 13394 lt_prog_compiler_static_F77='-non_shared' 13395 ;; 13396 13397 newsos6) 13398 lt_prog_compiler_pic_F77='-KPIC' 13399 lt_prog_compiler_static_F77='-Bstatic' 13400 ;; 13401 13402 linux*) 13403 case $cc_basename in 13404 icc* | ecc*) 13405 lt_prog_compiler_wl_F77='-Wl,' 13406 lt_prog_compiler_pic_F77='-KPIC' 13407 lt_prog_compiler_static_F77='-static' 13408 ;; 13409 pgcc* | pgf77* | pgf90* | pgf95*) 13410 # Portland Group compilers (*not* the Pentium gcc compiler, 13411 # which looks to be a dead project) 13412 lt_prog_compiler_wl_F77='-Wl,' 13413 lt_prog_compiler_pic_F77='-fpic' 13414 lt_prog_compiler_static_F77='-Bstatic' 13415 ;; 13416 ccc*) 13417 lt_prog_compiler_wl_F77='-Wl,' 13418 # All Alpha code is PIC. 13419 lt_prog_compiler_static_F77='-non_shared' 13420 ;; 13421 esac 13422 ;; 13423 13424 osf3* | osf4* | osf5*) 13425 lt_prog_compiler_wl_F77='-Wl,' 13426 # All OSF/1 code is PIC. 13427 lt_prog_compiler_static_F77='-non_shared' 13428 ;; 13429 13430 solaris*) 13431 lt_prog_compiler_pic_F77='-KPIC' 13432 lt_prog_compiler_static_F77='-Bstatic' 13433 case $cc_basename in 13434 f77* | f90* | f95*) 13435 lt_prog_compiler_wl_F77='-Qoption ld ';; 13436 *) 13437 lt_prog_compiler_wl_F77='-Wl,';; 13438 esac 13439 ;; 13440 13441 sunos4*) 13442 lt_prog_compiler_wl_F77='-Qoption ld ' 13443 lt_prog_compiler_pic_F77='-PIC' 13444 lt_prog_compiler_static_F77='-Bstatic' 13445 ;; 13446 13447 sysv4 | sysv4.2uw2* | sysv4.3*) 13448 lt_prog_compiler_wl_F77='-Wl,' 13449 lt_prog_compiler_pic_F77='-KPIC' 13450 lt_prog_compiler_static_F77='-Bstatic' 13451 ;; 13452 13453 sysv4*MP*) 13454 if test -d /usr/nec ;then 13455 lt_prog_compiler_pic_F77='-Kconform_pic' 13456 lt_prog_compiler_static_F77='-Bstatic' 13457 fi 13458 ;; 13459 13460 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13461 lt_prog_compiler_wl_F77='-Wl,' 13462 lt_prog_compiler_pic_F77='-KPIC' 13463 lt_prog_compiler_static_F77='-Bstatic' 13464 ;; 13465 13466 unicos*) 13467 lt_prog_compiler_wl_F77='-Wl,' 13468 lt_prog_compiler_can_build_shared_F77=no 13469 ;; 13470 13471 uts4*) 13472 lt_prog_compiler_pic_F77='-pic' 13473 lt_prog_compiler_static_F77='-Bstatic' 13474 ;; 13475 13476 *) 13477 lt_prog_compiler_can_build_shared_F77=no 13478 ;; 13479 esac 13480 fi 13481 13482echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13483echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13484 13485# 13486# Check to make sure the PIC flag actually works. 13487# 13488if test -n "$lt_prog_compiler_pic_F77"; then 13489 13490echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13491echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13492if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13493 echo $ECHO_N "(cached) $ECHO_C" >&6 13494else 13495 lt_prog_compiler_pic_works_F77=no 13496 ac_outfile=conftest.$ac_objext 13497 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13498 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13499 # Insert the option either (1) after the last *FLAGS variable, or 13500 # (2) before a word containing "conftest.", or (3) at the end. 13501 # Note that $ac_compile itself does not contain backslashes and begins 13502 # with a dollar sign (not a hyphen), so the echo should work correctly. 13503 # The option is referenced via a variable to avoid confusing sed. 13504 lt_compile=`echo "$ac_compile" | $SED \ 13505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13507 -e 's:$: $lt_compiler_flag:'` 13508 (eval echo "\"\$as_me:13508: $lt_compile\"" >&5) 13509 (eval "$lt_compile" 2>conftest.err) 13510 ac_status=$? 13511 cat conftest.err >&5 13512 echo "$as_me:13512: \$? = $ac_status" >&5 13513 if (exit $ac_status) && test -s "$ac_outfile"; then 13514 # The compiler can only warn and ignore the option if not recognized 13515 # So say no if there are warnings other than the usual output. 13516 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13518 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13519 lt_prog_compiler_pic_works_F77=yes 13520 fi 13521 fi 13522 $rm conftest* 13523 13524fi 13525echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13526echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13527 13528if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13529 case $lt_prog_compiler_pic_F77 in 13530 "" | " "*) ;; 13531 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13532 esac 13533else 13534 lt_prog_compiler_pic_F77= 13535 lt_prog_compiler_can_build_shared_F77=no 13536fi 13537 13538fi 13539case $host_os in 13540 # For platforms which do not support PIC, -DPIC is meaningless: 13541 *djgpp*) 13542 lt_prog_compiler_pic_F77= 13543 ;; 13544 *) 13545 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13546 ;; 13547esac 13548 13549# 13550# Check to make sure the static flag actually works. 13551# 13552wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13553echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13554echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13555if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13556 echo $ECHO_N "(cached) $ECHO_C" >&6 13557else 13558 lt_prog_compiler_static_works_F77=no 13559 save_LDFLAGS="$LDFLAGS" 13560 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13561 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13562 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13563 # The linker can only warn and ignore the option if not recognized 13564 # So say no if there are warnings 13565 if test -s conftest.err; then 13566 # Append any errors to the config.log. 13567 cat conftest.err 1>&5 13568 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13570 if diff conftest.exp conftest.er2 >/dev/null; then 13571 lt_prog_compiler_static_works_F77=yes 13572 fi 13573 else 13574 lt_prog_compiler_static_works_F77=yes 13575 fi 13576 fi 13577 $rm conftest* 13578 LDFLAGS="$save_LDFLAGS" 13579 13580fi 13581echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13582echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 13583 13584if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13585 : 13586else 13587 lt_prog_compiler_static_F77= 13588fi 13589 13590 13591echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13592echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13593if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13594 echo $ECHO_N "(cached) $ECHO_C" >&6 13595else 13596 lt_cv_prog_compiler_c_o_F77=no 13597 $rm -r conftest 2>/dev/null 13598 mkdir conftest 13599 cd conftest 13600 mkdir out 13601 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13602 13603 lt_compiler_flag="-o out/conftest2.$ac_objext" 13604 # Insert the option either (1) after the last *FLAGS variable, or 13605 # (2) before a word containing "conftest.", or (3) at the end. 13606 # Note that $ac_compile itself does not contain backslashes and begins 13607 # with a dollar sign (not a hyphen), so the echo should work correctly. 13608 lt_compile=`echo "$ac_compile" | $SED \ 13609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13611 -e 's:$: $lt_compiler_flag:'` 13612 (eval echo "\"\$as_me:13612: $lt_compile\"" >&5) 13613 (eval "$lt_compile" 2>out/conftest.err) 13614 ac_status=$? 13615 cat out/conftest.err >&5 13616 echo "$as_me:13616: \$? = $ac_status" >&5 13617 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13618 then 13619 # The compiler can only warn and ignore the option if not recognized 13620 # So say no if there are warnings 13621 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13624 lt_cv_prog_compiler_c_o_F77=yes 13625 fi 13626 fi 13627 chmod u+w . 2>&5 13628 $rm conftest* 13629 # SGI C++ compiler will create directory out/ii_files/ for 13630 # template instantiation 13631 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13632 $rm out/* && rmdir out 13633 cd .. 13634 rmdir conftest 13635 $rm conftest* 13636 13637fi 13638echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13639echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13640 13641 13642hard_links="nottested" 13643if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13644 # do not overwrite the value of need_locks provided by the user 13645 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13646echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13647 hard_links=yes 13648 $rm conftest* 13649 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13650 touch conftest.a 13651 ln conftest.a conftest.b 2>&5 || hard_links=no 13652 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13653 echo "$as_me:$LINENO: result: $hard_links" >&5 13654echo "${ECHO_T}$hard_links" >&6 13655 if test "$hard_links" = no; then 13656 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13657echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13658 need_locks=warn 13659 fi 13660else 13661 need_locks=no 13662fi 13663 13664echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13665echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13666 13667 runpath_var= 13668 allow_undefined_flag_F77= 13669 enable_shared_with_static_runtimes_F77=no 13670 archive_cmds_F77= 13671 archive_expsym_cmds_F77= 13672 old_archive_From_new_cmds_F77= 13673 old_archive_from_expsyms_cmds_F77= 13674 export_dynamic_flag_spec_F77= 13675 whole_archive_flag_spec_F77= 13676 thread_safe_flag_spec_F77= 13677 hardcode_libdir_flag_spec_F77= 13678 hardcode_libdir_flag_spec_ld_F77= 13679 hardcode_libdir_separator_F77= 13680 hardcode_direct_F77=no 13681 hardcode_minus_L_F77=no 13682 hardcode_shlibpath_var_F77=unsupported 13683 link_all_deplibs_F77=unknown 13684 hardcode_automatic_F77=no 13685 module_cmds_F77= 13686 module_expsym_cmds_F77= 13687 always_export_symbols_F77=no 13688 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13689 # include_expsyms should be a list of space-separated symbols to be *always* 13690 # included in the symbol list 13691 include_expsyms_F77= 13692 # exclude_expsyms can be an extended regexp of symbols to exclude 13693 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13694 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13695 # as well as any symbol that contains `d'. 13696 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13697 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13698 # platforms (ab)use it in PIC code, but their linkers get confused if 13699 # the symbol is explicitly referenced. Since portable code cannot 13700 # rely on this symbol name, it's probably fine to never include it in 13701 # preloaded symbol tables. 13702 extract_expsyms_cmds= 13703 # Just being paranoid about ensuring that cc_basename is set. 13704 for cc_temp in $compiler""; do 13705 case $cc_temp in 13706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13708 \-*) ;; 13709 *) break;; 13710 esac 13711done 13712cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13713 13714 case $host_os in 13715 cygwin* | mingw* | pw32*) 13716 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13717 # When not using gcc, we currently assume that we are using 13718 # Microsoft Visual C++. 13719 if test "$GCC" != yes; then 13720 with_gnu_ld=no 13721 fi 13722 ;; 13723 interix*) 13724 # we just hope/assume this is gcc and not c89 (= MSVC++) 13725 with_gnu_ld=yes 13726 ;; 13727 openbsd*) 13728 with_gnu_ld=no 13729 ;; 13730 esac 13731 13732 ld_shlibs_F77=yes 13733 if test "$with_gnu_ld" = yes; then 13734 # If archive_cmds runs LD, not CC, wlarc should be empty 13735 wlarc='${wl}' 13736 13737 # Set some defaults for GNU ld with shared library support. These 13738 # are reset later if shared libraries are not supported. Putting them 13739 # here allows them to be overridden if necessary. 13740 runpath_var=LD_RUN_PATH 13741 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13742 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13743 # ancient GNU ld didn't support --whole-archive et. al. 13744 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13745 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13746 else 13747 whole_archive_flag_spec_F77= 13748 fi 13749 supports_anon_versioning=no 13750 case `$LD -v 2>/dev/null` in 13751 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13752 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13753 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13754 *\ 2.11.*) ;; # other 2.11 versions 13755 *) supports_anon_versioning=yes ;; 13756 esac 13757 13758 # See if GNU ld supports shared libraries. 13759 case $host_os in 13760 aix3* | aix4* | aix5*) 13761 # On AIX/PPC, the GNU linker is very broken 13762 if test "$host_cpu" != ia64; then 13763 ld_shlibs_F77=no 13764 cat <<EOF 1>&2 13765 13766*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13767*** to be unable to reliably create shared libraries on AIX. 13768*** Therefore, libtool is disabling shared libraries support. If you 13769*** really care for shared libraries, you may want to modify your PATH 13770*** so that a non-GNU linker is found, and then restart. 13771 13772EOF 13773 fi 13774 ;; 13775 13776 amigaos*) 13777 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)' 13778 hardcode_libdir_flag_spec_F77='-L$libdir' 13779 hardcode_minus_L_F77=yes 13780 13781 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13782 # that the semantics of dynamic libraries on AmigaOS, at least up 13783 # to version 4, is to share data among multiple programs linked 13784 # with the same dynamic library. Since this doesn't match the 13785 # behavior of shared libraries on other platforms, we can't use 13786 # them. 13787 ld_shlibs_F77=no 13788 ;; 13789 13790 beos*) 13791 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13792 allow_undefined_flag_F77=unsupported 13793 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13794 # support --undefined. This deserves some investigation. FIXME 13795 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13796 else 13797 ld_shlibs_F77=no 13798 fi 13799 ;; 13800 13801 cygwin* | mingw* | pw32*) 13802 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13803 # as there is no search path for DLLs. 13804 hardcode_libdir_flag_spec_F77='-L$libdir' 13805 allow_undefined_flag_F77=unsupported 13806 always_export_symbols_F77=no 13807 enable_shared_with_static_runtimes_F77=yes 13808 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13809 13810 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13811 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13812 # If the export-symbols file already is a .def file (1st line 13813 # is EXPORTS), use it as is; otherwise, prepend... 13814 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13815 cp $export_symbols $output_objdir/$soname.def; 13816 else 13817 echo EXPORTS > $output_objdir/$soname.def; 13818 cat $export_symbols >> $output_objdir/$soname.def; 13819 fi~ 13820 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13821 else 13822 ld_shlibs_F77=no 13823 fi 13824 ;; 13825 13826 interix3*) 13827 hardcode_direct_F77=no 13828 hardcode_shlibpath_var_F77=no 13829 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13830 export_dynamic_flag_spec_F77='${wl}-E' 13831 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13832 # Instead, shared libraries are loaded at an image base (0x10000000 by 13833 # default) and relocated if they conflict, which is a slow very memory 13834 # consuming and fragmenting process. To avoid this, we pick a random, 13835 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13836 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13837 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13838 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13839 ;; 13840 13841 linux*) 13842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13843 tmp_addflag= 13844 case $cc_basename,$host_cpu in 13845 pgcc*) # Portland Group C compiler 13846 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13847 tmp_addflag=' $pic_flag' 13848 ;; 13849 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 13850 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13851 tmp_addflag=' $pic_flag -Mnomain' ;; 13852 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13853 tmp_addflag=' -i_dynamic' ;; 13854 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13855 tmp_addflag=' -i_dynamic -nofor_main' ;; 13856 ifc* | ifort*) # Intel Fortran compiler 13857 tmp_addflag=' -nofor_main' ;; 13858 esac 13859 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13860 13861 if test $supports_anon_versioning = yes; then 13862 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13863 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13864 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13865 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13866 fi 13867 else 13868 ld_shlibs_F77=no 13869 fi 13870 ;; 13871 13872 netbsd*) 13873 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13874 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13875 wlarc= 13876 else 13877 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13878 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13879 fi 13880 ;; 13881 13882 solaris*) 13883 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13884 ld_shlibs_F77=no 13885 cat <<EOF 1>&2 13886 13887*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13888*** create shared libraries on Solaris systems. Therefore, libtool 13889*** is disabling shared libraries support. We urge you to upgrade GNU 13890*** binutils to release 2.9.1 or newer. Another option is to modify 13891*** your PATH or compiler configuration so that the native linker is 13892*** used, and then restart. 13893 13894EOF 13895 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13896 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13897 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13898 else 13899 ld_shlibs_F77=no 13900 fi 13901 ;; 13902 13903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13904 case `$LD -v 2>&1` in 13905 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13906 ld_shlibs_F77=no 13907 cat <<_LT_EOF 1>&2 13908 13909*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13910*** reliably create shared libraries on SCO systems. Therefore, libtool 13911*** is disabling shared libraries support. We urge you to upgrade GNU 13912*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13913*** your PATH or compiler configuration so that the native linker is 13914*** used, and then restart. 13915 13916_LT_EOF 13917 ;; 13918 *) 13919 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13920 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 13921 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 13922 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 13923 else 13924 ld_shlibs_F77=no 13925 fi 13926 ;; 13927 esac 13928 ;; 13929 13930 sunos4*) 13931 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13932 wlarc= 13933 hardcode_direct_F77=yes 13934 hardcode_shlibpath_var_F77=no 13935 ;; 13936 13937 *) 13938 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13939 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13940 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13941 else 13942 ld_shlibs_F77=no 13943 fi 13944 ;; 13945 esac 13946 13947 if test "$ld_shlibs_F77" = no; then 13948 runpath_var= 13949 hardcode_libdir_flag_spec_F77= 13950 export_dynamic_flag_spec_F77= 13951 whole_archive_flag_spec_F77= 13952 fi 13953 else 13954 # PORTME fill in a description of your system's linker (not GNU ld) 13955 case $host_os in 13956 aix3*) 13957 allow_undefined_flag_F77=unsupported 13958 always_export_symbols_F77=yes 13959 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' 13960 # Note: this linker hardcodes the directories in LIBPATH if there 13961 # are no directories specified by -L. 13962 hardcode_minus_L_F77=yes 13963 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13964 # Neither direct hardcoding nor static linking is supported with a 13965 # broken collect2. 13966 hardcode_direct_F77=unsupported 13967 fi 13968 ;; 13969 13970 aix4* | aix5*) 13971 if test "$host_cpu" = ia64; then 13972 # On IA64, the linker does run time linking by default, so we don't 13973 # have to do anything special. 13974 aix_use_runtimelinking=no 13975 exp_sym_flag='-Bexport' 13976 no_entry_flag="" 13977 else 13978 # If we're using GNU nm, then we don't want the "-C" option. 13979 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13980 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13981 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' 13982 else 13983 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' 13984 fi 13985 aix_use_runtimelinking=no 13986 13987 # Test if we are trying to use run time linking or normal 13988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13989 # need to do runtime linking. 13990 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13991 for ld_flag in $LDFLAGS; do 13992 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13993 aix_use_runtimelinking=yes 13994 break 13995 fi 13996 done 13997 ;; 13998 esac 13999 14000 exp_sym_flag='-bexport' 14001 no_entry_flag='-bnoentry' 14002 fi 14003 14004 # When large executables or shared objects are built, AIX ld can 14005 # have problems creating the table of contents. If linking a library 14006 # or program results in "error TOC overflow" add -mminimal-toc to 14007 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14008 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14009 14010 archive_cmds_F77='' 14011 hardcode_direct_F77=yes 14012 hardcode_libdir_separator_F77=':' 14013 link_all_deplibs_F77=yes 14014 14015 if test "$GCC" = yes; then 14016 case $host_os in aix4.[012]|aix4.[012].*) 14017 # We only want to do this on AIX 4.2 and lower, the check 14018 # below for broken collect2 doesn't work under 4.3+ 14019 collect2name=`${CC} -print-prog-name=collect2` 14020 if test -f "$collect2name" && \ 14021 strings "$collect2name" | grep resolve_lib_name >/dev/null 14022 then 14023 # We have reworked collect2 14024 hardcode_direct_F77=yes 14025 else 14026 # We have old collect2 14027 hardcode_direct_F77=unsupported 14028 # It fails to find uninstalled libraries when the uninstalled 14029 # path is not listed in the libpath. Setting hardcode_minus_L 14030 # to unsupported forces relinking 14031 hardcode_minus_L_F77=yes 14032 hardcode_libdir_flag_spec_F77='-L$libdir' 14033 hardcode_libdir_separator_F77= 14034 fi 14035 ;; 14036 esac 14037 shared_flag='-shared' 14038 if test "$aix_use_runtimelinking" = yes; then 14039 shared_flag="$shared_flag "'${wl}-G' 14040 fi 14041 else 14042 # not using gcc 14043 if test "$host_cpu" = ia64; then 14044 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14045 # chokes on -Wl,-G. The following line is correct: 14046 shared_flag='-G' 14047 else 14048 if test "$aix_use_runtimelinking" = yes; then 14049 shared_flag='${wl}-G' 14050 else 14051 shared_flag='${wl}-bM:SRE' 14052 fi 14053 fi 14054 fi 14055 14056 # It seems that -bexpall does not export symbols beginning with 14057 # underscore (_), so it is better to generate a list of symbols to export. 14058 always_export_symbols_F77=yes 14059 if test "$aix_use_runtimelinking" = yes; then 14060 # Warning - without using the other runtime loading flags (-brtl), 14061 # -berok will link without error, but may produce a broken library. 14062 allow_undefined_flag_F77='-berok' 14063 # Determine the default libpath from the value encoded in an empty executable. 14064 cat >conftest.$ac_ext <<_ACEOF 14065 program main 14066 14067 end 14068_ACEOF 14069rm -f conftest.$ac_objext conftest$ac_exeext 14070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14071 (eval $ac_link) 2>conftest.er1 14072 ac_status=$? 14073 grep -v '^ *+' conftest.er1 >conftest.err 14074 rm -f conftest.er1 14075 cat conftest.err >&5 14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14077 (exit $ac_status); } && 14078 { ac_try='test -z "$ac_f77_werror_flag" 14079 || test ! -s conftest.err' 14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14081 (eval $ac_try) 2>&5 14082 ac_status=$? 14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14084 (exit $ac_status); }; } && 14085 { ac_try='test -s conftest$ac_exeext' 14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14087 (eval $ac_try) 2>&5 14088 ac_status=$? 14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14090 (exit $ac_status); }; }; then 14091 14092aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14093}'` 14094# Check for a 64-bit object if we didn't find anything. 14095if 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; } 14096}'`; fi 14097else 14098 echo "$as_me: failed program was:" >&5 14099sed 's/^/| /' conftest.$ac_ext >&5 14100 14101fi 14102rm -f conftest.err conftest.$ac_objext \ 14103 conftest$ac_exeext conftest.$ac_ext 14104if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14105 14106 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14107 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14108 else 14109 if test "$host_cpu" = ia64; then 14110 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14111 allow_undefined_flag_F77="-z nodefs" 14112 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 14113 else 14114 # Determine the default libpath from the value encoded in an empty executable. 14115 cat >conftest.$ac_ext <<_ACEOF 14116 program main 14117 14118 end 14119_ACEOF 14120rm -f conftest.$ac_objext conftest$ac_exeext 14121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14122 (eval $ac_link) 2>conftest.er1 14123 ac_status=$? 14124 grep -v '^ *+' conftest.er1 >conftest.err 14125 rm -f conftest.er1 14126 cat conftest.err >&5 14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14128 (exit $ac_status); } && 14129 { ac_try='test -z "$ac_f77_werror_flag" 14130 || test ! -s conftest.err' 14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14132 (eval $ac_try) 2>&5 14133 ac_status=$? 14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14135 (exit $ac_status); }; } && 14136 { ac_try='test -s conftest$ac_exeext' 14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14138 (eval $ac_try) 2>&5 14139 ac_status=$? 14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14141 (exit $ac_status); }; }; then 14142 14143aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14144}'` 14145# Check for a 64-bit object if we didn't find anything. 14146if 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; } 14147}'`; fi 14148else 14149 echo "$as_me: failed program was:" >&5 14150sed 's/^/| /' conftest.$ac_ext >&5 14151 14152fi 14153rm -f conftest.err conftest.$ac_objext \ 14154 conftest$ac_exeext conftest.$ac_ext 14155if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14156 14157 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14158 # Warning - without using the other run time loading flags, 14159 # -berok will link without error, but may produce a broken library. 14160 no_undefined_flag_F77=' ${wl}-bernotok' 14161 allow_undefined_flag_F77=' ${wl}-berok' 14162 # Exported symbols can be pulled into shared objects from archives 14163 whole_archive_flag_spec_F77='$convenience' 14164 archive_cmds_need_lc_F77=yes 14165 # This is similar to how AIX traditionally builds its shared libraries. 14166 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14167 fi 14168 fi 14169 ;; 14170 14171 amigaos*) 14172 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)' 14173 hardcode_libdir_flag_spec_F77='-L$libdir' 14174 hardcode_minus_L_F77=yes 14175 # see comment about different semantics on the GNU ld section 14176 ld_shlibs_F77=no 14177 ;; 14178 14179 bsdi[45]*) 14180 export_dynamic_flag_spec_F77=-rdynamic 14181 ;; 14182 14183 cygwin* | mingw* | pw32*) 14184 # When not using gcc, we currently assume that we are using 14185 # Microsoft Visual C++. 14186 # hardcode_libdir_flag_spec is actually meaningless, as there is 14187 # no search path for DLLs. 14188 hardcode_libdir_flag_spec_F77=' ' 14189 allow_undefined_flag_F77=unsupported 14190 # Tell ltmain to make .lib files, not .a files. 14191 libext=lib 14192 # Tell ltmain to make .dll files, not .so files. 14193 shrext_cmds=".dll" 14194 # FIXME: Setting linknames here is a bad hack. 14195 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14196 # The linker will automatically build a .lib file if we build a DLL. 14197 old_archive_From_new_cmds_F77='true' 14198 # FIXME: Should let the user specify the lib program. 14199 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14200 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14201 enable_shared_with_static_runtimes_F77=yes 14202 ;; 14203 14204 darwin* | rhapsody*) 14205 case $host_os in 14206 rhapsody* | darwin1.[012]) 14207 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14208 ;; 14209 *) # Darwin 1.3 on 14210 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14211 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14212 else 14213 case ${MACOSX_DEPLOYMENT_TARGET} in 14214 10.[012]) 14215 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14216 ;; 14217 10.*) 14218 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14219 ;; 14220 esac 14221 fi 14222 ;; 14223 esac 14224 archive_cmds_need_lc_F77=no 14225 hardcode_direct_F77=no 14226 hardcode_automatic_F77=yes 14227 hardcode_shlibpath_var_F77=unsupported 14228 whole_archive_flag_spec_F77='' 14229 link_all_deplibs_F77=yes 14230 if test "$GCC" = yes ; then 14231 output_verbose_link_cmd='echo' 14232 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14233 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14234 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14235 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14236 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}' 14237 else 14238 case $cc_basename in 14239 xlc*) 14240 output_verbose_link_cmd='echo' 14241 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14242 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14243 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14244 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14245 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}' 14246 ;; 14247 *) 14248 ld_shlibs_F77=no 14249 ;; 14250 esac 14251 fi 14252 ;; 14253 14254 dgux*) 14255 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14256 hardcode_libdir_flag_spec_F77='-L$libdir' 14257 hardcode_shlibpath_var_F77=no 14258 ;; 14259 14260 freebsd1*) 14261 ld_shlibs_F77=no 14262 ;; 14263 14264 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14265 # support. Future versions do this automatically, but an explicit c++rt0.o 14266 # does not break anything, and helps significantly (at the cost of a little 14267 # extra space). 14268 freebsd2.2*) 14269 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14270 hardcode_libdir_flag_spec_F77='-R$libdir' 14271 hardcode_direct_F77=yes 14272 hardcode_shlibpath_var_F77=no 14273 ;; 14274 14275 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14276 freebsd2*) 14277 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14278 hardcode_direct_F77=yes 14279 hardcode_minus_L_F77=yes 14280 hardcode_shlibpath_var_F77=no 14281 ;; 14282 14283 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14284 freebsd* | kfreebsd*-gnu | dragonfly*) 14285 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14286 hardcode_libdir_flag_spec_F77='-R$libdir' 14287 hardcode_direct_F77=yes 14288 hardcode_shlibpath_var_F77=no 14289 ;; 14290 14291 hpux9*) 14292 if test "$GCC" = yes; then 14293 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' 14294 else 14295 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' 14296 fi 14297 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14298 hardcode_libdir_separator_F77=: 14299 hardcode_direct_F77=yes 14300 14301 # hardcode_minus_L: Not really in the search PATH, 14302 # but as the default location of the library. 14303 hardcode_minus_L_F77=yes 14304 export_dynamic_flag_spec_F77='${wl}-E' 14305 ;; 14306 14307 hpux10*) 14308 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14309 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14310 else 14311 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14312 fi 14313 if test "$with_gnu_ld" = no; then 14314 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14315 hardcode_libdir_separator_F77=: 14316 14317 hardcode_direct_F77=yes 14318 export_dynamic_flag_spec_F77='${wl}-E' 14319 14320 # hardcode_minus_L: Not really in the search PATH, 14321 # but as the default location of the library. 14322 hardcode_minus_L_F77=yes 14323 fi 14324 ;; 14325 14326 hpux11*) 14327 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14328 case $host_cpu in 14329 hppa*64*) 14330 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14331 ;; 14332 ia64*) 14333 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14334 ;; 14335 *) 14336 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14337 ;; 14338 esac 14339 else 14340 case $host_cpu in 14341 hppa*64*) 14342 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14343 ;; 14344 ia64*) 14345 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14346 ;; 14347 *) 14348 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14349 ;; 14350 esac 14351 fi 14352 if test "$with_gnu_ld" = no; then 14353 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14354 hardcode_libdir_separator_F77=: 14355 14356 case $host_cpu in 14357 hppa*64*|ia64*) 14358 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14359 hardcode_direct_F77=no 14360 hardcode_shlibpath_var_F77=no 14361 ;; 14362 *) 14363 hardcode_direct_F77=yes 14364 export_dynamic_flag_spec_F77='${wl}-E' 14365 14366 # hardcode_minus_L: Not really in the search PATH, 14367 # but as the default location of the library. 14368 hardcode_minus_L_F77=yes 14369 ;; 14370 esac 14371 fi 14372 ;; 14373 14374 irix5* | irix6* | nonstopux*) 14375 if test "$GCC" = yes; then 14376 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' 14377 else 14378 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' 14379 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14380 fi 14381 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14382 hardcode_libdir_separator_F77=: 14383 link_all_deplibs_F77=yes 14384 ;; 14385 14386 netbsd*) 14387 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14388 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14389 else 14390 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14391 fi 14392 hardcode_libdir_flag_spec_F77='-R$libdir' 14393 hardcode_direct_F77=yes 14394 hardcode_shlibpath_var_F77=no 14395 ;; 14396 14397 newsos6) 14398 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14399 hardcode_direct_F77=yes 14400 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14401 hardcode_libdir_separator_F77=: 14402 hardcode_shlibpath_var_F77=no 14403 ;; 14404 14405 openbsd*) 14406 hardcode_direct_F77=yes 14407 hardcode_shlibpath_var_F77=no 14408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14409 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14410 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14411 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14412 export_dynamic_flag_spec_F77='${wl}-E' 14413 else 14414 case $host_os in 14415 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14416 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14417 hardcode_libdir_flag_spec_F77='-R$libdir' 14418 ;; 14419 *) 14420 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14421 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14422 ;; 14423 esac 14424 fi 14425 ;; 14426 14427 os2*) 14428 hardcode_libdir_flag_spec_F77='-L$libdir' 14429 hardcode_minus_L_F77=yes 14430 allow_undefined_flag_F77=unsupported 14431 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' 14432 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14433 ;; 14434 14435 osf3*) 14436 if test "$GCC" = yes; then 14437 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14438 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' 14439 else 14440 allow_undefined_flag_F77=' -expect_unresolved \*' 14441 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' 14442 fi 14443 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14444 hardcode_libdir_separator_F77=: 14445 ;; 14446 14447 osf4* | osf5*) # as osf3* with the addition of -msym flag 14448 if test "$GCC" = yes; then 14449 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14450 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' 14451 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14452 else 14453 allow_undefined_flag_F77=' -expect_unresolved \*' 14454 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' 14455 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~ 14456 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 14457 14458 # Both c and cxx compiler support -rpath directly 14459 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14460 fi 14461 hardcode_libdir_separator_F77=: 14462 ;; 14463 14464 solaris*) 14465 no_undefined_flag_F77=' -z text' 14466 if test "$GCC" = yes; then 14467 wlarc='${wl}' 14468 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14469 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14470 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14471 else 14472 wlarc='' 14473 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14474 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14476 fi 14477 hardcode_libdir_flag_spec_F77='-R$libdir' 14478 hardcode_shlibpath_var_F77=no 14479 case $host_os in 14480 solaris2.[0-5] | solaris2.[0-5].*) ;; 14481 *) 14482 # The compiler driver will combine linker options so we 14483 # cannot just pass the convience library names through 14484 # without $wl, iff we do not link with $LD. 14485 # Luckily, gcc supports the same syntax we need for Sun Studio. 14486 # Supported since Solaris 2.6 (maybe 2.5.1?) 14487 case $wlarc in 14488 '') 14489 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14490 *) 14491 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14492 esac ;; 14493 esac 14494 link_all_deplibs_F77=yes 14495 ;; 14496 14497 sunos4*) 14498 if test "x$host_vendor" = xsequent; then 14499 # Use $CC to link under sequent, because it throws in some extra .o 14500 # files that make .init and .fini sections work. 14501 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14502 else 14503 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14504 fi 14505 hardcode_libdir_flag_spec_F77='-L$libdir' 14506 hardcode_direct_F77=yes 14507 hardcode_minus_L_F77=yes 14508 hardcode_shlibpath_var_F77=no 14509 ;; 14510 14511 sysv4) 14512 case $host_vendor in 14513 sni) 14514 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14515 hardcode_direct_F77=yes # is this really true??? 14516 ;; 14517 siemens) 14518 ## LD is ld it makes a PLAMLIB 14519 ## CC just makes a GrossModule. 14520 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14521 reload_cmds_F77='$CC -r -o $output$reload_objs' 14522 hardcode_direct_F77=no 14523 ;; 14524 motorola) 14525 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14526 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14527 ;; 14528 esac 14529 runpath_var='LD_RUN_PATH' 14530 hardcode_shlibpath_var_F77=no 14531 ;; 14532 14533 sysv4.3*) 14534 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14535 hardcode_shlibpath_var_F77=no 14536 export_dynamic_flag_spec_F77='-Bexport' 14537 ;; 14538 14539 sysv4*MP*) 14540 if test -d /usr/nec; then 14541 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14542 hardcode_shlibpath_var_F77=no 14543 runpath_var=LD_RUN_PATH 14544 hardcode_runpath_var=yes 14545 ld_shlibs_F77=yes 14546 fi 14547 ;; 14548 14549 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14550 no_undefined_flag_F77='${wl}-z,text' 14551 archive_cmds_need_lc_F77=no 14552 hardcode_shlibpath_var_F77=no 14553 runpath_var='LD_RUN_PATH' 14554 14555 if test "$GCC" = yes; then 14556 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14557 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14558 else 14559 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14560 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14561 fi 14562 ;; 14563 14564 sysv5* | sco3.2v5* | sco5v6*) 14565 # Note: We can NOT use -z defs as we might desire, because we do not 14566 # link with -lc, and that would cause any symbols used from libc to 14567 # always be unresolved, which means just about no library would 14568 # ever link correctly. If we're not using GNU ld we use -z text 14569 # though, which does catch some bad symbols but isn't as heavy-handed 14570 # as -z defs. 14571 no_undefined_flag_F77='${wl}-z,text' 14572 allow_undefined_flag_F77='${wl}-z,nodefs' 14573 archive_cmds_need_lc_F77=no 14574 hardcode_shlibpath_var_F77=no 14575 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14576 hardcode_libdir_separator_F77=':' 14577 link_all_deplibs_F77=yes 14578 export_dynamic_flag_spec_F77='${wl}-Bexport' 14579 runpath_var='LD_RUN_PATH' 14580 14581 if test "$GCC" = yes; then 14582 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14583 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14584 else 14585 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14586 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14587 fi 14588 ;; 14589 14590 uts4*) 14591 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14592 hardcode_libdir_flag_spec_F77='-L$libdir' 14593 hardcode_shlibpath_var_F77=no 14594 ;; 14595 14596 *) 14597 ld_shlibs_F77=no 14598 ;; 14599 esac 14600 fi 14601 14602echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14603echo "${ECHO_T}$ld_shlibs_F77" >&6 14604test "$ld_shlibs_F77" = no && can_build_shared=no 14605 14606# 14607# Do we need to explicitly link libc? 14608# 14609case "x$archive_cmds_need_lc_F77" in 14610x|xyes) 14611 # Assume -lc should be added 14612 archive_cmds_need_lc_F77=yes 14613 14614 if test "$enable_shared" = yes && test "$GCC" = yes; then 14615 case $archive_cmds_F77 in 14616 *'~'*) 14617 # FIXME: we may have to deal with multi-command sequences. 14618 ;; 14619 '$CC '*) 14620 # Test whether the compiler implicitly links with -lc since on some 14621 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14622 # to ld, don't add -lc before -lgcc. 14623 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14624echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14625 $rm conftest* 14626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14627 14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14629 (eval $ac_compile) 2>&5 14630 ac_status=$? 14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14632 (exit $ac_status); } 2>conftest.err; then 14633 soname=conftest 14634 lib=conftest 14635 libobjs=conftest.$ac_objext 14636 deplibs= 14637 wl=$lt_prog_compiler_wl_F77 14638 pic_flag=$lt_prog_compiler_pic_F77 14639 compiler_flags=-v 14640 linker_flags=-v 14641 verstring= 14642 output_objdir=. 14643 libname=conftest 14644 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14645 allow_undefined_flag_F77= 14646 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14647 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14648 ac_status=$? 14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14650 (exit $ac_status); } 14651 then 14652 archive_cmds_need_lc_F77=no 14653 else 14654 archive_cmds_need_lc_F77=yes 14655 fi 14656 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14657 else 14658 cat conftest.err 1>&5 14659 fi 14660 $rm conftest* 14661 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14662echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14663 ;; 14664 esac 14665 fi 14666 ;; 14667esac 14668 14669echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14670echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14671library_names_spec= 14672libname_spec='lib$name' 14673soname_spec= 14674shrext_cmds=".so" 14675postinstall_cmds= 14676postuninstall_cmds= 14677finish_cmds= 14678finish_eval= 14679shlibpath_var= 14680shlibpath_overrides_runpath=unknown 14681version_type=none 14682dynamic_linker="$host_os ld.so" 14683sys_lib_dlsearch_path_spec="/lib /usr/lib" 14684if test "$GCC" = yes; then 14685 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14686 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14687 # if the path contains ";" then we assume it to be the separator 14688 # otherwise default to the standard path separator (i.e. ":") - it is 14689 # assumed that no part of a normal pathname contains ";" but that should 14690 # okay in the real world where ";" in dirpaths is itself problematic. 14691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14692 else 14693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14694 fi 14695else 14696 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14697fi 14698need_lib_prefix=unknown 14699hardcode_into_libs=no 14700 14701# when you set need_version to no, make sure it does not cause -set_version 14702# flags to be left without arguments 14703need_version=unknown 14704 14705case $host_os in 14706aix3*) 14707 version_type=linux 14708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14709 shlibpath_var=LIBPATH 14710 14711 # AIX 3 has no versioning support, so we append a major version to the name. 14712 soname_spec='${libname}${release}${shared_ext}$major' 14713 ;; 14714 14715aix4* | aix5*) 14716 version_type=linux 14717 need_lib_prefix=no 14718 need_version=no 14719 hardcode_into_libs=yes 14720 if test "$host_cpu" = ia64; then 14721 # AIX 5 supports IA64 14722 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14723 shlibpath_var=LD_LIBRARY_PATH 14724 else 14725 # With GCC up to 2.95.x, collect2 would create an import file 14726 # for dependence libraries. The import file would start with 14727 # the line `#! .'. This would cause the generated library to 14728 # depend on `.', always an invalid library. This was fixed in 14729 # development snapshots of GCC prior to 3.0. 14730 case $host_os in 14731 aix4 | aix4.[01] | aix4.[01].*) 14732 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14733 echo ' yes ' 14734 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14735 : 14736 else 14737 can_build_shared=no 14738 fi 14739 ;; 14740 esac 14741 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14742 # soname into executable. Probably we can add versioning support to 14743 # collect2, so additional links can be useful in future. 14744 if test "$aix_use_runtimelinking" = yes; then 14745 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14746 # instead of lib<name>.a to let people know that these are not 14747 # typical AIX shared libraries. 14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14749 else 14750 # We preserve .a as extension for shared libraries through AIX4.2 14751 # and later when we are not doing run time linking. 14752 library_names_spec='${libname}${release}.a $libname.a' 14753 soname_spec='${libname}${release}${shared_ext}$major' 14754 fi 14755 shlibpath_var=LIBPATH 14756 fi 14757 ;; 14758 14759amigaos*) 14760 library_names_spec='$libname.ixlibrary $libname.a' 14761 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14762 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' 14763 ;; 14764 14765beos*) 14766 library_names_spec='${libname}${shared_ext}' 14767 dynamic_linker="$host_os ld.so" 14768 shlibpath_var=LIBRARY_PATH 14769 ;; 14770 14771bsdi[45]*) 14772 version_type=linux 14773 need_version=no 14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14775 soname_spec='${libname}${release}${shared_ext}$major' 14776 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14777 shlibpath_var=LD_LIBRARY_PATH 14778 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14779 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14780 # the default ld.so.conf also contains /usr/contrib/lib and 14781 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14782 # libtool to hard-code these into programs 14783 ;; 14784 14785cygwin* | mingw* | pw32*) 14786 version_type=windows 14787 shrext_cmds=".dll" 14788 need_version=no 14789 need_lib_prefix=no 14790 14791 case $GCC,$host_os in 14792 yes,cygwin* | yes,mingw* | yes,pw32*) 14793 library_names_spec='$libname.dll.a' 14794 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14795 postinstall_cmds='base_file=`basename \${file}`~ 14796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14797 dldir=$destdir/`dirname \$dlpath`~ 14798 test -d \$dldir || mkdir -p \$dldir~ 14799 $install_prog $dir/$dlname \$dldir/$dlname~ 14800 chmod a+x \$dldir/$dlname' 14801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14802 dlpath=$dir/\$dldll~ 14803 $rm \$dlpath' 14804 shlibpath_overrides_runpath=yes 14805 14806 case $host_os in 14807 cygwin*) 14808 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14809 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14810 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14811 ;; 14812 mingw*) 14813 # MinGW DLLs use traditional 'lib' prefix 14814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14816 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14817 # It is most probably a Windows format PATH printed by 14818 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14819 # path with ; separators, and with drive letters. We can handle the 14820 # drive letters (cygwin fileutils understands them), so leave them, 14821 # especially as we might pass files found there to a mingw objdump, 14822 # which wouldn't understand a cygwinified path. Ahh. 14823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14824 else 14825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14826 fi 14827 ;; 14828 pw32*) 14829 # pw32 DLLs use 'pw' prefix rather than 'lib' 14830 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14831 ;; 14832 esac 14833 ;; 14834 14835 *) 14836 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14837 ;; 14838 esac 14839 dynamic_linker='Win32 ld.exe' 14840 # FIXME: first we should search . and the directory the executable is in 14841 shlibpath_var=PATH 14842 ;; 14843 14844darwin* | rhapsody*) 14845 dynamic_linker="$host_os dyld" 14846 version_type=darwin 14847 need_lib_prefix=no 14848 need_version=no 14849 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14850 soname_spec='${libname}${release}${major}$shared_ext' 14851 shlibpath_overrides_runpath=yes 14852 shlibpath_var=DYLD_LIBRARY_PATH 14853 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14854 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14855 if test "$GCC" = yes; then 14856 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"` 14857 else 14858 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14859 fi 14860 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14861 ;; 14862 14863dgux*) 14864 version_type=linux 14865 need_lib_prefix=no 14866 need_version=no 14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14868 soname_spec='${libname}${release}${shared_ext}$major' 14869 shlibpath_var=LD_LIBRARY_PATH 14870 ;; 14871 14872freebsd1*) 14873 dynamic_linker=no 14874 ;; 14875 14876kfreebsd*-gnu) 14877 version_type=linux 14878 need_lib_prefix=no 14879 need_version=no 14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14881 soname_spec='${libname}${release}${shared_ext}$major' 14882 shlibpath_var=LD_LIBRARY_PATH 14883 shlibpath_overrides_runpath=no 14884 hardcode_into_libs=yes 14885 dynamic_linker='GNU ld.so' 14886 ;; 14887 14888freebsd* | dragonfly*) 14889 # DragonFly does not have aout. When/if they implement a new 14890 # versioning mechanism, adjust this. 14891 if test -x /usr/bin/objformat; then 14892 objformat=`/usr/bin/objformat` 14893 else 14894 case $host_os in 14895 freebsd[123]*) objformat=aout ;; 14896 *) objformat=elf ;; 14897 esac 14898 fi 14899 version_type=freebsd-$objformat 14900 case $version_type in 14901 freebsd-elf*) 14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14903 need_version=no 14904 need_lib_prefix=no 14905 ;; 14906 freebsd-*) 14907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14908 need_version=yes 14909 ;; 14910 esac 14911 shlibpath_var=LD_LIBRARY_PATH 14912 case $host_os in 14913 freebsd2*) 14914 shlibpath_overrides_runpath=yes 14915 ;; 14916 freebsd3.[01]* | freebsdelf3.[01]*) 14917 shlibpath_overrides_runpath=yes 14918 hardcode_into_libs=yes 14919 ;; 14920 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14921 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14922 shlibpath_overrides_runpath=no 14923 hardcode_into_libs=yes 14924 ;; 14925 freebsd*) # from 4.6 on 14926 shlibpath_overrides_runpath=yes 14927 hardcode_into_libs=yes 14928 ;; 14929 esac 14930 ;; 14931 14932gnu*) 14933 version_type=linux 14934 need_lib_prefix=no 14935 need_version=no 14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14937 soname_spec='${libname}${release}${shared_ext}$major' 14938 shlibpath_var=LD_LIBRARY_PATH 14939 hardcode_into_libs=yes 14940 ;; 14941 14942hpux9* | hpux10* | hpux11*) 14943 # Give a soname corresponding to the major version so that dld.sl refuses to 14944 # link against other versions. 14945 version_type=sunos 14946 need_lib_prefix=no 14947 need_version=no 14948 case $host_cpu in 14949 ia64*) 14950 shrext_cmds='.so' 14951 hardcode_into_libs=yes 14952 dynamic_linker="$host_os dld.so" 14953 shlibpath_var=LD_LIBRARY_PATH 14954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14956 soname_spec='${libname}${release}${shared_ext}$major' 14957 if test "X$HPUX_IA64_MODE" = X32; then 14958 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14959 else 14960 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14961 fi 14962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14963 ;; 14964 hppa*64*) 14965 shrext_cmds='.sl' 14966 hardcode_into_libs=yes 14967 dynamic_linker="$host_os dld.sl" 14968 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14971 soname_spec='${libname}${release}${shared_ext}$major' 14972 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14974 ;; 14975 *) 14976 shrext_cmds='.sl' 14977 dynamic_linker="$host_os dld.sl" 14978 shlibpath_var=SHLIB_PATH 14979 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14981 soname_spec='${libname}${release}${shared_ext}$major' 14982 ;; 14983 esac 14984 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14985 postinstall_cmds='chmod 555 $lib' 14986 ;; 14987 14988interix3*) 14989 version_type=linux 14990 need_lib_prefix=no 14991 need_version=no 14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14993 soname_spec='${libname}${release}${shared_ext}$major' 14994 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14995 shlibpath_var=LD_LIBRARY_PATH 14996 shlibpath_overrides_runpath=no 14997 hardcode_into_libs=yes 14998 ;; 14999 15000irix5* | irix6* | nonstopux*) 15001 case $host_os in 15002 nonstopux*) version_type=nonstopux ;; 15003 *) 15004 if test "$lt_cv_prog_gnu_ld" = yes; then 15005 version_type=linux 15006 else 15007 version_type=irix 15008 fi ;; 15009 esac 15010 need_lib_prefix=no 15011 need_version=no 15012 soname_spec='${libname}${release}${shared_ext}$major' 15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15014 case $host_os in 15015 irix5* | nonstopux*) 15016 libsuff= shlibsuff= 15017 ;; 15018 *) 15019 case $LD in # libtool.m4 will add one of these switches to LD 15020 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15021 libsuff= shlibsuff= libmagic=32-bit;; 15022 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15023 libsuff=32 shlibsuff=N32 libmagic=N32;; 15024 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15025 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15026 *) libsuff= shlibsuff= libmagic=never-match;; 15027 esac 15028 ;; 15029 esac 15030 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15031 shlibpath_overrides_runpath=no 15032 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15033 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15034 hardcode_into_libs=yes 15035 ;; 15036 15037# No shared lib support for Linux oldld, aout, or coff. 15038linux*oldld* | linux*aout* | linux*coff*) 15039 dynamic_linker=no 15040 ;; 15041 15042# This must be Linux ELF. 15043linux*) 15044 version_type=linux 15045 need_lib_prefix=no 15046 need_version=no 15047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15048 soname_spec='${libname}${release}${shared_ext}$major' 15049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15050 shlibpath_var=LD_LIBRARY_PATH 15051 shlibpath_overrides_runpath=no 15052 # This implies no fast_install, which is unacceptable. 15053 # Some rework will be needed to allow for fast_install 15054 # before this can be enabled. 15055 hardcode_into_libs=yes 15056 15057 # find out which ABI we are using 15058 libsuff= 15059 case "$host_cpu" in 15060 x86_64*|s390x*|powerpc64*) 15061 echo '#line 15061 "configure"' > conftest.$ac_ext 15062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15063 (eval $ac_compile) 2>&5 15064 ac_status=$? 15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15066 (exit $ac_status); }; then 15067 case `/usr/bin/file conftest.$ac_objext` in 15068 *64-bit*) 15069 libsuff=64 15070 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 15071 ;; 15072 esac 15073 fi 15074 rm -rf conftest* 15075 ;; 15076 esac 15077 15078 # Append ld.so.conf contents to the search path 15079 if test -f /etc/ld.so.conf; then 15080 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15081 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 15082 fi 15083 15084 # We used to test for /lib/ld.so.1 and disable shared libraries on 15085 # powerpc, because MkLinux only supported shared libraries with the 15086 # GNU dynamic linker. Since this was broken with cross compilers, 15087 # most powerpc-linux boxes support dynamic linking these days and 15088 # people can always --disable-shared, the test was removed, and we 15089 # assume the GNU/Linux dynamic linker is in use. 15090 dynamic_linker='GNU/Linux ld.so' 15091 ;; 15092 15093knetbsd*-gnu) 15094 version_type=linux 15095 need_lib_prefix=no 15096 need_version=no 15097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15098 soname_spec='${libname}${release}${shared_ext}$major' 15099 shlibpath_var=LD_LIBRARY_PATH 15100 shlibpath_overrides_runpath=no 15101 hardcode_into_libs=yes 15102 dynamic_linker='GNU ld.so' 15103 ;; 15104 15105netbsd*) 15106 version_type=sunos 15107 need_lib_prefix=no 15108 need_version=no 15109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15112 dynamic_linker='NetBSD (a.out) ld.so' 15113 else 15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15115 soname_spec='${libname}${release}${shared_ext}$major' 15116 dynamic_linker='NetBSD ld.elf_so' 15117 fi 15118 shlibpath_var=LD_LIBRARY_PATH 15119 shlibpath_overrides_runpath=yes 15120 hardcode_into_libs=yes 15121 ;; 15122 15123newsos6) 15124 version_type=linux 15125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15126 shlibpath_var=LD_LIBRARY_PATH 15127 shlibpath_overrides_runpath=yes 15128 ;; 15129 15130nto-qnx*) 15131 version_type=linux 15132 need_lib_prefix=no 15133 need_version=no 15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15135 soname_spec='${libname}${release}${shared_ext}$major' 15136 shlibpath_var=LD_LIBRARY_PATH 15137 shlibpath_overrides_runpath=yes 15138 ;; 15139 15140openbsd*) 15141 version_type=sunos 15142 sys_lib_dlsearch_path_spec="/usr/lib" 15143 need_lib_prefix=no 15144 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15145 case $host_os in 15146 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15147 *) need_version=no ;; 15148 esac 15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15151 shlibpath_var=LD_LIBRARY_PATH 15152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15153 case $host_os in 15154 openbsd2.[89] | openbsd2.[89].*) 15155 shlibpath_overrides_runpath=no 15156 ;; 15157 *) 15158 shlibpath_overrides_runpath=yes 15159 ;; 15160 esac 15161 else 15162 shlibpath_overrides_runpath=yes 15163 fi 15164 ;; 15165 15166os2*) 15167 libname_spec='$name' 15168 shrext_cmds=".dll" 15169 need_lib_prefix=no 15170 library_names_spec='$libname${shared_ext} $libname.a' 15171 dynamic_linker='OS/2 ld.exe' 15172 shlibpath_var=LIBPATH 15173 ;; 15174 15175osf3* | osf4* | osf5*) 15176 version_type=osf 15177 need_lib_prefix=no 15178 need_version=no 15179 soname_spec='${libname}${release}${shared_ext}$major' 15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15181 shlibpath_var=LD_LIBRARY_PATH 15182 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15183 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15184 ;; 15185 15186solaris*) 15187 version_type=linux 15188 need_lib_prefix=no 15189 need_version=no 15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15191 soname_spec='${libname}${release}${shared_ext}$major' 15192 shlibpath_var=LD_LIBRARY_PATH 15193 shlibpath_overrides_runpath=yes 15194 hardcode_into_libs=yes 15195 # ldd complains unless libraries are executable 15196 postinstall_cmds='chmod +x $lib' 15197 ;; 15198 15199sunos4*) 15200 version_type=sunos 15201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15202 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15203 shlibpath_var=LD_LIBRARY_PATH 15204 shlibpath_overrides_runpath=yes 15205 if test "$with_gnu_ld" = yes; then 15206 need_lib_prefix=no 15207 fi 15208 need_version=yes 15209 ;; 15210 15211sysv4 | sysv4.3*) 15212 version_type=linux 15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15214 soname_spec='${libname}${release}${shared_ext}$major' 15215 shlibpath_var=LD_LIBRARY_PATH 15216 case $host_vendor in 15217 sni) 15218 shlibpath_overrides_runpath=no 15219 need_lib_prefix=no 15220 export_dynamic_flag_spec='${wl}-Blargedynsym' 15221 runpath_var=LD_RUN_PATH 15222 ;; 15223 siemens) 15224 need_lib_prefix=no 15225 ;; 15226 motorola) 15227 need_lib_prefix=no 15228 need_version=no 15229 shlibpath_overrides_runpath=no 15230 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15231 ;; 15232 esac 15233 ;; 15234 15235sysv4*MP*) 15236 if test -d /usr/nec ;then 15237 version_type=linux 15238 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15239 soname_spec='$libname${shared_ext}.$major' 15240 shlibpath_var=LD_LIBRARY_PATH 15241 fi 15242 ;; 15243 15244sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15245 version_type=freebsd-elf 15246 need_lib_prefix=no 15247 need_version=no 15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15249 soname_spec='${libname}${release}${shared_ext}$major' 15250 shlibpath_var=LD_LIBRARY_PATH 15251 hardcode_into_libs=yes 15252 if test "$with_gnu_ld" = yes; then 15253 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15254 shlibpath_overrides_runpath=no 15255 else 15256 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15257 shlibpath_overrides_runpath=yes 15258 case $host_os in 15259 sco3.2v5*) 15260 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15261 ;; 15262 esac 15263 fi 15264 sys_lib_dlsearch_path_spec='/usr/lib' 15265 ;; 15266 15267uts4*) 15268 version_type=linux 15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15270 soname_spec='${libname}${release}${shared_ext}$major' 15271 shlibpath_var=LD_LIBRARY_PATH 15272 ;; 15273 15274*) 15275 dynamic_linker=no 15276 ;; 15277esac 15278echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15279echo "${ECHO_T}$dynamic_linker" >&6 15280test "$dynamic_linker" = no && can_build_shared=no 15281 15282variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15283if test "$GCC" = yes; then 15284 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15285fi 15286 15287echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15288echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15289hardcode_action_F77= 15290if test -n "$hardcode_libdir_flag_spec_F77" || \ 15291 test -n "$runpath_var_F77" || \ 15292 test "X$hardcode_automatic_F77" = "Xyes" ; then 15293 15294 # We can hardcode non-existant directories. 15295 if test "$hardcode_direct_F77" != no && 15296 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15297 # have to relink, otherwise we might link with an installed library 15298 # when we should be linking with a yet-to-be-installed one 15299 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15300 test "$hardcode_minus_L_F77" != no; then 15301 # Linking always hardcodes the temporary library directory. 15302 hardcode_action_F77=relink 15303 else 15304 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15305 hardcode_action_F77=immediate 15306 fi 15307else 15308 # We cannot hardcode anything, or else we can only hardcode existing 15309 # directories. 15310 hardcode_action_F77=unsupported 15311fi 15312echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15313echo "${ECHO_T}$hardcode_action_F77" >&6 15314 15315if test "$hardcode_action_F77" = relink; then 15316 # Fast installation is not supported 15317 enable_fast_install=no 15318elif test "$shlibpath_overrides_runpath" = yes || 15319 test "$enable_shared" = no; then 15320 # Fast installation is not necessary 15321 enable_fast_install=needless 15322fi 15323 15324 15325# The else clause should only fire when bootstrapping the 15326# libtool distribution, otherwise you forgot to ship ltmain.sh 15327# with your package, and you will get complaints that there are 15328# no rules to generate ltmain.sh. 15329if test -f "$ltmain"; then 15330 # See if we are running on zsh, and set the options which allow our commands through 15331 # without removal of \ escapes. 15332 if test -n "${ZSH_VERSION+set}" ; then 15333 setopt NO_GLOB_SUBST 15334 fi 15335 # Now quote all the things that may contain metacharacters while being 15336 # careful not to overquote the AC_SUBSTed values. We take copies of the 15337 # variables and quote the copies for generation of the libtool script. 15338 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15339 SED SHELL STRIP \ 15340 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15341 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15342 deplibs_check_method reload_flag reload_cmds need_locks \ 15343 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15344 lt_cv_sys_global_symbol_to_c_name_address \ 15345 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15346 old_postinstall_cmds old_postuninstall_cmds \ 15347 compiler_F77 \ 15348 CC_F77 \ 15349 LD_F77 \ 15350 lt_prog_compiler_wl_F77 \ 15351 lt_prog_compiler_pic_F77 \ 15352 lt_prog_compiler_static_F77 \ 15353 lt_prog_compiler_no_builtin_flag_F77 \ 15354 export_dynamic_flag_spec_F77 \ 15355 thread_safe_flag_spec_F77 \ 15356 whole_archive_flag_spec_F77 \ 15357 enable_shared_with_static_runtimes_F77 \ 15358 old_archive_cmds_F77 \ 15359 old_archive_from_new_cmds_F77 \ 15360 predep_objects_F77 \ 15361 postdep_objects_F77 \ 15362 predeps_F77 \ 15363 postdeps_F77 \ 15364 compiler_lib_search_path_F77 \ 15365 archive_cmds_F77 \ 15366 archive_expsym_cmds_F77 \ 15367 postinstall_cmds_F77 \ 15368 postuninstall_cmds_F77 \ 15369 old_archive_from_expsyms_cmds_F77 \ 15370 allow_undefined_flag_F77 \ 15371 no_undefined_flag_F77 \ 15372 export_symbols_cmds_F77 \ 15373 hardcode_libdir_flag_spec_F77 \ 15374 hardcode_libdir_flag_spec_ld_F77 \ 15375 hardcode_libdir_separator_F77 \ 15376 hardcode_automatic_F77 \ 15377 module_cmds_F77 \ 15378 module_expsym_cmds_F77 \ 15379 lt_cv_prog_compiler_c_o_F77 \ 15380 exclude_expsyms_F77 \ 15381 include_expsyms_F77; do 15382 15383 case $var in 15384 old_archive_cmds_F77 | \ 15385 old_archive_from_new_cmds_F77 | \ 15386 archive_cmds_F77 | \ 15387 archive_expsym_cmds_F77 | \ 15388 module_cmds_F77 | \ 15389 module_expsym_cmds_F77 | \ 15390 old_archive_from_expsyms_cmds_F77 | \ 15391 export_symbols_cmds_F77 | \ 15392 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15393 postinstall_cmds | postuninstall_cmds | \ 15394 old_postinstall_cmds | old_postuninstall_cmds | \ 15395 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15396 # Double-quote double-evaled strings. 15397 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15398 ;; 15399 *) 15400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15401 ;; 15402 esac 15403 done 15404 15405 case $lt_echo in 15406 *'\$0 --fallback-echo"') 15407 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15408 ;; 15409 esac 15410 15411cfgfile="$ofile" 15412 15413 cat <<__EOF__ >> "$cfgfile" 15414# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15415 15416# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15417 15418# Shell to use when invoking shell scripts. 15419SHELL=$lt_SHELL 15420 15421# Whether or not to build shared libraries. 15422build_libtool_libs=$enable_shared 15423 15424# Whether or not to build static libraries. 15425build_old_libs=$enable_static 15426 15427# Whether or not to add -lc for building shared libraries. 15428build_libtool_need_lc=$archive_cmds_need_lc_F77 15429 15430# Whether or not to disallow shared libs when runtime libs are static 15431allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15432 15433# Whether or not to optimize for fast installation. 15434fast_install=$enable_fast_install 15435 15436# The host system. 15437host_alias=$host_alias 15438host=$host 15439host_os=$host_os 15440 15441# The build system. 15442build_alias=$build_alias 15443build=$build 15444build_os=$build_os 15445 15446# An echo program that does not interpret backslashes. 15447echo=$lt_echo 15448 15449# The archiver. 15450AR=$lt_AR 15451AR_FLAGS=$lt_AR_FLAGS 15452 15453# A C compiler. 15454LTCC=$lt_LTCC 15455 15456# LTCC compiler flags. 15457LTCFLAGS=$lt_LTCFLAGS 15458 15459# A language-specific compiler. 15460CC=$lt_compiler_F77 15461 15462# Is the compiler the GNU C compiler? 15463with_gcc=$GCC_F77 15464 15465gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 15466gcc_ver=\`gcc -dumpversion\` 15467 15468# An ERE matcher. 15469EGREP=$lt_EGREP 15470 15471# The linker used to build libraries. 15472LD=$lt_LD_F77 15473 15474# Whether we need hard or soft links. 15475LN_S=$lt_LN_S 15476 15477# A BSD-compatible nm program. 15478NM=$lt_NM 15479 15480# A symbol stripping program 15481STRIP=$lt_STRIP 15482 15483# Used to examine libraries when file_magic_cmd begins "file" 15484MAGIC_CMD=$MAGIC_CMD 15485 15486# Used on cygwin: DLL creation program. 15487DLLTOOL="$DLLTOOL" 15488 15489# Used on cygwin: object dumper. 15490OBJDUMP="$OBJDUMP" 15491 15492# Used on cygwin: assembler. 15493AS="$AS" 15494 15495# The name of the directory that contains temporary libtool files. 15496objdir=$objdir 15497 15498# How to create reloadable object files. 15499reload_flag=$lt_reload_flag 15500reload_cmds=$lt_reload_cmds 15501 15502# How to pass a linker flag through the compiler. 15503wl=$lt_lt_prog_compiler_wl_F77 15504 15505# Object file suffix (normally "o"). 15506objext="$ac_objext" 15507 15508# Old archive suffix (normally "a"). 15509libext="$libext" 15510 15511# Shared library suffix (normally ".so"). 15512shrext_cmds='$shrext_cmds' 15513 15514# Executable file suffix (normally ""). 15515exeext="$exeext" 15516 15517# Additional compiler flags for building library objects. 15518pic_flag=$lt_lt_prog_compiler_pic_F77 15519pic_mode=$pic_mode 15520 15521# What is the maximum length of a command? 15522max_cmd_len=$lt_cv_sys_max_cmd_len 15523 15524# Does compiler simultaneously support -c and -o options? 15525compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15526 15527# Must we lock files when doing compilation? 15528need_locks=$lt_need_locks 15529 15530# Do we need the lib prefix for modules? 15531need_lib_prefix=$need_lib_prefix 15532 15533# Do we need a version for libraries? 15534need_version=$need_version 15535 15536# Whether dlopen is supported. 15537dlopen_support=$enable_dlopen 15538 15539# Whether dlopen of programs is supported. 15540dlopen_self=$enable_dlopen_self 15541 15542# Whether dlopen of statically linked programs is supported. 15543dlopen_self_static=$enable_dlopen_self_static 15544 15545# Compiler flag to prevent dynamic linking. 15546link_static_flag=$lt_lt_prog_compiler_static_F77 15547 15548# Compiler flag to turn off builtin functions. 15549no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15550 15551# Compiler flag to allow reflexive dlopens. 15552export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15553 15554# Compiler flag to generate shared objects directly from archives. 15555whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15556 15557# Compiler flag to generate thread-safe objects. 15558thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15559 15560# Library versioning type. 15561version_type=$version_type 15562 15563# Format of library name prefix. 15564libname_spec=$lt_libname_spec 15565 15566# List of archive names. First name is the real one, the rest are links. 15567# The last name is the one that the linker finds with -lNAME. 15568library_names_spec=$lt_library_names_spec 15569 15570# The coded name of the library, if different from the real name. 15571soname_spec=$lt_soname_spec 15572 15573# Commands used to build and install an old-style archive. 15574RANLIB=$lt_RANLIB 15575old_archive_cmds=$lt_old_archive_cmds_F77 15576old_postinstall_cmds=$lt_old_postinstall_cmds 15577old_postuninstall_cmds=$lt_old_postuninstall_cmds 15578 15579# Create an old-style archive from a shared archive. 15580old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15581 15582# Create a temporary old-style archive to link instead of a shared archive. 15583old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15584 15585# Commands used to build and install a shared archive. 15586archive_cmds=$lt_archive_cmds_F77 15587archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15588postinstall_cmds=$lt_postinstall_cmds 15589postuninstall_cmds=$lt_postuninstall_cmds 15590 15591# Commands used to build a loadable module (assumed same as above if empty) 15592module_cmds=$lt_module_cmds_F77 15593module_expsym_cmds=$lt_module_expsym_cmds_F77 15594 15595# Commands to strip libraries. 15596old_striplib=$lt_old_striplib 15597striplib=$lt_striplib 15598 15599# Dependencies to place before the objects being linked to create a 15600# shared library. 15601predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15602 15603# Dependencies to place after the objects being linked to create a 15604# shared library. 15605postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15606 15607# Dependencies to place before the objects being linked to create a 15608# shared library. 15609predeps=$lt_predeps_F77 15610 15611# Dependencies to place after the objects being linked to create a 15612# shared library. 15613postdeps=$lt_postdeps_F77 15614 15615# The library search path used internally by the compiler when linking 15616# a shared library. 15617compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15618 15619# Method to check whether dependent libraries are shared objects. 15620deplibs_check_method=$lt_deplibs_check_method 15621 15622# Command to use when deplibs_check_method == file_magic. 15623file_magic_cmd=$lt_file_magic_cmd 15624 15625# Flag that allows shared libraries with undefined symbols to be built. 15626allow_undefined_flag=$lt_allow_undefined_flag_F77 15627 15628# Flag that forces no undefined symbols. 15629no_undefined_flag=$lt_no_undefined_flag_F77 15630 15631# Commands used to finish a libtool library installation in a directory. 15632finish_cmds=$lt_finish_cmds 15633 15634# Same as above, but a single script fragment to be evaled but not shown. 15635finish_eval=$lt_finish_eval 15636 15637# Take the output of nm and produce a listing of raw symbols and C names. 15638global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15639 15640# Transform the output of nm in a proper C declaration 15641global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15642 15643# Transform the output of nm in a C name address pair 15644global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15645 15646# This is the shared library runtime path variable. 15647runpath_var=$runpath_var 15648 15649# This is the shared library path variable. 15650shlibpath_var=$shlibpath_var 15651 15652# Is shlibpath searched before the hard-coded library search path? 15653shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15654 15655# How to hardcode a shared library path into an executable. 15656hardcode_action=$hardcode_action_F77 15657 15658# Whether we should hardcode library paths into libraries. 15659hardcode_into_libs=$hardcode_into_libs 15660 15661# Flag to hardcode \$libdir into a binary during linking. 15662# This must work even if \$libdir does not exist. 15663hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15664 15665# If ld is used when linking, flag to hardcode \$libdir into 15666# a binary during linking. This must work even if \$libdir does 15667# not exist. 15668hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15669 15670# Whether we need a single -rpath flag with a separated argument. 15671hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15672 15673# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15674# resulting binary. 15675hardcode_direct=$hardcode_direct_F77 15676 15677# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15678# resulting binary. 15679hardcode_minus_L=$hardcode_minus_L_F77 15680 15681# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15682# the resulting binary. 15683hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15684 15685# Set to yes if building a shared library automatically hardcodes DIR into the library 15686# and all subsequent libraries and executables linked against it. 15687hardcode_automatic=$hardcode_automatic_F77 15688 15689# Variables whose values should be saved in libtool wrapper scripts and 15690# restored at relink time. 15691variables_saved_for_relink="$variables_saved_for_relink" 15692 15693# Whether libtool must link a program against all its dependency libraries. 15694link_all_deplibs=$link_all_deplibs_F77 15695 15696# Compile-time system search path for libraries 15697sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15698 15699# Run-time system search path for libraries 15700sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15701 15702# Fix the shell variable \$srcfile for the compiler. 15703fix_srcfile_path="$fix_srcfile_path_F77" 15704 15705# Set to yes if exported symbols are required. 15706always_export_symbols=$always_export_symbols_F77 15707 15708# The commands to list exported symbols. 15709export_symbols_cmds=$lt_export_symbols_cmds_F77 15710 15711# The commands to extract the exported symbol list from a shared archive. 15712extract_expsyms_cmds=$lt_extract_expsyms_cmds 15713 15714# Symbols that should not be listed in the preloaded symbols. 15715exclude_expsyms=$lt_exclude_expsyms_F77 15716 15717# Symbols that must always be exported. 15718include_expsyms=$lt_include_expsyms_F77 15719 15720# ### END LIBTOOL TAG CONFIG: $tagname 15721 15722__EOF__ 15723 15724 15725else 15726 # If there is no Makefile yet, we rely on a make rule to execute 15727 # `config.status --recheck' to rerun these tests and create the 15728 # libtool script then. 15729 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15730 if test -f "$ltmain_in"; then 15731 test -f Makefile && make "$ltmain" 15732 fi 15733fi 15734 15735 15736ac_ext=c 15737ac_cpp='$CPP $CPPFLAGS' 15738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15740ac_compiler_gnu=$ac_cv_c_compiler_gnu 15741 15742CC="$lt_save_CC" 15743 15744 else 15745 tagname="" 15746 fi 15747 ;; 15748 15749 GCJ) 15750 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15751 15752 15753 15754# Source file extension for Java test sources. 15755ac_ext=java 15756 15757# Object file extension for compiled Java test sources. 15758objext=o 15759objext_GCJ=$objext 15760 15761# Code to be used in simple compile tests 15762lt_simple_compile_test_code="class foo {}\n" 15763 15764# Code to be used in simple link tests 15765lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15766 15767# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15768 15769# If no C compiler was specified, use CC. 15770LTCC=${LTCC-"$CC"} 15771 15772# If no C compiler flags were specified, use CFLAGS. 15773LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15774 15775# Allow CC to be a program name with arguments. 15776compiler=$CC 15777 15778 15779# save warnings/boilerplate of simple test code 15780ac_outfile=conftest.$ac_objext 15781printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15782eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15783_lt_compiler_boilerplate=`cat conftest.err` 15784$rm conftest* 15785 15786ac_outfile=conftest.$ac_objext 15787printf "$lt_simple_link_test_code" >conftest.$ac_ext 15788eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15789_lt_linker_boilerplate=`cat conftest.err` 15790$rm conftest* 15791 15792 15793# Allow CC to be a program name with arguments. 15794lt_save_CC="$CC" 15795CC=${GCJ-"gcj"} 15796compiler=$CC 15797compiler_GCJ=$CC 15798for cc_temp in $compiler""; do 15799 case $cc_temp in 15800 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15801 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15802 \-*) ;; 15803 *) break;; 15804 esac 15805done 15806cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15807 15808 15809# GCJ did not exist at the time GCC didn't implicitly link libc in. 15810archive_cmds_need_lc_GCJ=no 15811 15812old_archive_cmds_GCJ=$old_archive_cmds 15813 15814 15815lt_prog_compiler_no_builtin_flag_GCJ= 15816 15817if test "$GCC" = yes; then 15818 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15819 15820 15821echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15822echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15823if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15824 echo $ECHO_N "(cached) $ECHO_C" >&6 15825else 15826 lt_cv_prog_compiler_rtti_exceptions=no 15827 ac_outfile=conftest.$ac_objext 15828 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15829 lt_compiler_flag="-fno-rtti -fno-exceptions" 15830 # Insert the option either (1) after the last *FLAGS variable, or 15831 # (2) before a word containing "conftest.", or (3) at the end. 15832 # Note that $ac_compile itself does not contain backslashes and begins 15833 # with a dollar sign (not a hyphen), so the echo should work correctly. 15834 # The option is referenced via a variable to avoid confusing sed. 15835 lt_compile=`echo "$ac_compile" | $SED \ 15836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15838 -e 's:$: $lt_compiler_flag:'` 15839 (eval echo "\"\$as_me:15839: $lt_compile\"" >&5) 15840 (eval "$lt_compile" 2>conftest.err) 15841 ac_status=$? 15842 cat conftest.err >&5 15843 echo "$as_me:15843: \$? = $ac_status" >&5 15844 if (exit $ac_status) && test -s "$ac_outfile"; then 15845 # The compiler can only warn and ignore the option if not recognized 15846 # So say no if there are warnings other than the usual output. 15847 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15850 lt_cv_prog_compiler_rtti_exceptions=yes 15851 fi 15852 fi 15853 $rm conftest* 15854 15855fi 15856echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15857echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15858 15859if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15860 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15861else 15862 : 15863fi 15864 15865fi 15866 15867lt_prog_compiler_wl_GCJ= 15868lt_prog_compiler_pic_GCJ= 15869lt_prog_compiler_static_GCJ= 15870 15871echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15872echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15873 15874 if test "$GCC" = yes; then 15875 lt_prog_compiler_wl_GCJ='-Wl,' 15876 lt_prog_compiler_static_GCJ='-static' 15877 15878 case $host_os in 15879 aix*) 15880 # All AIX code is PIC. 15881 if test "$host_cpu" = ia64; then 15882 # AIX 5 now supports IA64 processor 15883 lt_prog_compiler_static_GCJ='-Bstatic' 15884 fi 15885 ;; 15886 15887 amigaos*) 15888 # FIXME: we need at least 68020 code to build shared libraries, but 15889 # adding the `-m68020' flag to GCC prevents building anything better, 15890 # like `-m68040'. 15891 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15892 ;; 15893 15894 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15895 # PIC is the default for these OSes. 15896 ;; 15897 15898 mingw* | pw32* | os2*) 15899 # This hack is so that the source file can tell whether it is being 15900 # built for inclusion in a dll (and should export symbols for example). 15901 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15902 ;; 15903 15904 darwin* | rhapsody*) 15905 # PIC is the default on this platform 15906 # Common symbols not allowed in MH_DYLIB files 15907 lt_prog_compiler_pic_GCJ='-fno-common' 15908 ;; 15909 15910 interix3*) 15911 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15912 # Instead, we relocate shared libraries at runtime. 15913 ;; 15914 15915 msdosdjgpp*) 15916 # Just because we use GCC doesn't mean we suddenly get shared libraries 15917 # on systems that don't support them. 15918 lt_prog_compiler_can_build_shared_GCJ=no 15919 enable_shared=no 15920 ;; 15921 15922 sysv4*MP*) 15923 if test -d /usr/nec; then 15924 lt_prog_compiler_pic_GCJ=-Kconform_pic 15925 fi 15926 ;; 15927 15928 hpux*) 15929 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15930 # not for PA HP-UX. 15931 case $host_cpu in 15932 hppa*64*|ia64*) 15933 # +Z the default 15934 ;; 15935 *) 15936 lt_prog_compiler_pic_GCJ='-fPIC' 15937 ;; 15938 esac 15939 ;; 15940 15941 *) 15942 lt_prog_compiler_pic_GCJ='-fPIC' 15943 ;; 15944 esac 15945 else 15946 # PORTME Check for flag to pass linker flags through the system compiler. 15947 case $host_os in 15948 aix*) 15949 lt_prog_compiler_wl_GCJ='-Wl,' 15950 if test "$host_cpu" = ia64; then 15951 # AIX 5 now supports IA64 processor 15952 lt_prog_compiler_static_GCJ='-Bstatic' 15953 else 15954 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15955 fi 15956 ;; 15957 darwin*) 15958 # PIC is the default on this platform 15959 # Common symbols not allowed in MH_DYLIB files 15960 case $cc_basename in 15961 xlc*) 15962 lt_prog_compiler_pic_GCJ='-qnocommon' 15963 lt_prog_compiler_wl_GCJ='-Wl,' 15964 ;; 15965 esac 15966 ;; 15967 15968 mingw* | pw32* | os2*) 15969 # This hack is so that the source file can tell whether it is being 15970 # built for inclusion in a dll (and should export symbols for example). 15971 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15972 ;; 15973 15974 hpux9* | hpux10* | hpux11*) 15975 lt_prog_compiler_wl_GCJ='-Wl,' 15976 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15977 # not for PA HP-UX. 15978 case $host_cpu in 15979 hppa*64*|ia64*) 15980 # +Z the default 15981 ;; 15982 *) 15983 lt_prog_compiler_pic_GCJ='+Z' 15984 ;; 15985 esac 15986 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15987 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15988 ;; 15989 15990 irix5* | irix6* | nonstopux*) 15991 lt_prog_compiler_wl_GCJ='-Wl,' 15992 # PIC (with -KPIC) is the default. 15993 lt_prog_compiler_static_GCJ='-non_shared' 15994 ;; 15995 15996 newsos6) 15997 lt_prog_compiler_pic_GCJ='-KPIC' 15998 lt_prog_compiler_static_GCJ='-Bstatic' 15999 ;; 16000 16001 linux*) 16002 case $cc_basename in 16003 icc* | ecc*) 16004 lt_prog_compiler_wl_GCJ='-Wl,' 16005 lt_prog_compiler_pic_GCJ='-KPIC' 16006 lt_prog_compiler_static_GCJ='-static' 16007 ;; 16008 pgcc* | pgf77* | pgf90* | pgf95*) 16009 # Portland Group compilers (*not* the Pentium gcc compiler, 16010 # which looks to be a dead project) 16011 lt_prog_compiler_wl_GCJ='-Wl,' 16012 lt_prog_compiler_pic_GCJ='-fpic' 16013 lt_prog_compiler_static_GCJ='-Bstatic' 16014 ;; 16015 ccc*) 16016 lt_prog_compiler_wl_GCJ='-Wl,' 16017 # All Alpha code is PIC. 16018 lt_prog_compiler_static_GCJ='-non_shared' 16019 ;; 16020 esac 16021 ;; 16022 16023 osf3* | osf4* | osf5*) 16024 lt_prog_compiler_wl_GCJ='-Wl,' 16025 # All OSF/1 code is PIC. 16026 lt_prog_compiler_static_GCJ='-non_shared' 16027 ;; 16028 16029 solaris*) 16030 lt_prog_compiler_pic_GCJ='-KPIC' 16031 lt_prog_compiler_static_GCJ='-Bstatic' 16032 case $cc_basename in 16033 f77* | f90* | f95*) 16034 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16035 *) 16036 lt_prog_compiler_wl_GCJ='-Wl,';; 16037 esac 16038 ;; 16039 16040 sunos4*) 16041 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16042 lt_prog_compiler_pic_GCJ='-PIC' 16043 lt_prog_compiler_static_GCJ='-Bstatic' 16044 ;; 16045 16046 sysv4 | sysv4.2uw2* | sysv4.3*) 16047 lt_prog_compiler_wl_GCJ='-Wl,' 16048 lt_prog_compiler_pic_GCJ='-KPIC' 16049 lt_prog_compiler_static_GCJ='-Bstatic' 16050 ;; 16051 16052 sysv4*MP*) 16053 if test -d /usr/nec ;then 16054 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16055 lt_prog_compiler_static_GCJ='-Bstatic' 16056 fi 16057 ;; 16058 16059 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16060 lt_prog_compiler_wl_GCJ='-Wl,' 16061 lt_prog_compiler_pic_GCJ='-KPIC' 16062 lt_prog_compiler_static_GCJ='-Bstatic' 16063 ;; 16064 16065 unicos*) 16066 lt_prog_compiler_wl_GCJ='-Wl,' 16067 lt_prog_compiler_can_build_shared_GCJ=no 16068 ;; 16069 16070 uts4*) 16071 lt_prog_compiler_pic_GCJ='-pic' 16072 lt_prog_compiler_static_GCJ='-Bstatic' 16073 ;; 16074 16075 *) 16076 lt_prog_compiler_can_build_shared_GCJ=no 16077 ;; 16078 esac 16079 fi 16080 16081echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16082echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16083 16084# 16085# Check to make sure the PIC flag actually works. 16086# 16087if test -n "$lt_prog_compiler_pic_GCJ"; then 16088 16089echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16090echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16091if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16092 echo $ECHO_N "(cached) $ECHO_C" >&6 16093else 16094 lt_prog_compiler_pic_works_GCJ=no 16095 ac_outfile=conftest.$ac_objext 16096 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16097 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16098 # Insert the option either (1) after the last *FLAGS variable, or 16099 # (2) before a word containing "conftest.", or (3) at the end. 16100 # Note that $ac_compile itself does not contain backslashes and begins 16101 # with a dollar sign (not a hyphen), so the echo should work correctly. 16102 # The option is referenced via a variable to avoid confusing sed. 16103 lt_compile=`echo "$ac_compile" | $SED \ 16104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16106 -e 's:$: $lt_compiler_flag:'` 16107 (eval echo "\"\$as_me:16107: $lt_compile\"" >&5) 16108 (eval "$lt_compile" 2>conftest.err) 16109 ac_status=$? 16110 cat conftest.err >&5 16111 echo "$as_me:16111: \$? = $ac_status" >&5 16112 if (exit $ac_status) && test -s "$ac_outfile"; then 16113 # The compiler can only warn and ignore the option if not recognized 16114 # So say no if there are warnings other than the usual output. 16115 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16117 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16118 lt_prog_compiler_pic_works_GCJ=yes 16119 fi 16120 fi 16121 $rm conftest* 16122 16123fi 16124echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16125echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16126 16127if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16128 case $lt_prog_compiler_pic_GCJ in 16129 "" | " "*) ;; 16130 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16131 esac 16132else 16133 lt_prog_compiler_pic_GCJ= 16134 lt_prog_compiler_can_build_shared_GCJ=no 16135fi 16136 16137fi 16138case $host_os in 16139 # For platforms which do not support PIC, -DPIC is meaningless: 16140 *djgpp*) 16141 lt_prog_compiler_pic_GCJ= 16142 ;; 16143 *) 16144 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16145 ;; 16146esac 16147 16148# 16149# Check to make sure the static flag actually works. 16150# 16151wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16152echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16153echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 16154if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16155 echo $ECHO_N "(cached) $ECHO_C" >&6 16156else 16157 lt_prog_compiler_static_works_GCJ=no 16158 save_LDFLAGS="$LDFLAGS" 16159 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16160 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16161 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16162 # The linker can only warn and ignore the option if not recognized 16163 # So say no if there are warnings 16164 if test -s conftest.err; then 16165 # Append any errors to the config.log. 16166 cat conftest.err 1>&5 16167 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16169 if diff conftest.exp conftest.er2 >/dev/null; then 16170 lt_prog_compiler_static_works_GCJ=yes 16171 fi 16172 else 16173 lt_prog_compiler_static_works_GCJ=yes 16174 fi 16175 fi 16176 $rm conftest* 16177 LDFLAGS="$save_LDFLAGS" 16178 16179fi 16180echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16181echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 16182 16183if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16184 : 16185else 16186 lt_prog_compiler_static_GCJ= 16187fi 16188 16189 16190echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16191echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16192if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16193 echo $ECHO_N "(cached) $ECHO_C" >&6 16194else 16195 lt_cv_prog_compiler_c_o_GCJ=no 16196 $rm -r conftest 2>/dev/null 16197 mkdir conftest 16198 cd conftest 16199 mkdir out 16200 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16201 16202 lt_compiler_flag="-o out/conftest2.$ac_objext" 16203 # Insert the option either (1) after the last *FLAGS variable, or 16204 # (2) before a word containing "conftest.", or (3) at the end. 16205 # Note that $ac_compile itself does not contain backslashes and begins 16206 # with a dollar sign (not a hyphen), so the echo should work correctly. 16207 lt_compile=`echo "$ac_compile" | $SED \ 16208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16210 -e 's:$: $lt_compiler_flag:'` 16211 (eval echo "\"\$as_me:16211: $lt_compile\"" >&5) 16212 (eval "$lt_compile" 2>out/conftest.err) 16213 ac_status=$? 16214 cat out/conftest.err >&5 16215 echo "$as_me:16215: \$? = $ac_status" >&5 16216 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16217 then 16218 # The compiler can only warn and ignore the option if not recognized 16219 # So say no if there are warnings 16220 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16221 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16222 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16223 lt_cv_prog_compiler_c_o_GCJ=yes 16224 fi 16225 fi 16226 chmod u+w . 2>&5 16227 $rm conftest* 16228 # SGI C++ compiler will create directory out/ii_files/ for 16229 # template instantiation 16230 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16231 $rm out/* && rmdir out 16232 cd .. 16233 rmdir conftest 16234 $rm conftest* 16235 16236fi 16237echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16238echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16239 16240 16241hard_links="nottested" 16242if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16243 # do not overwrite the value of need_locks provided by the user 16244 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16245echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16246 hard_links=yes 16247 $rm conftest* 16248 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16249 touch conftest.a 16250 ln conftest.a conftest.b 2>&5 || hard_links=no 16251 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16252 echo "$as_me:$LINENO: result: $hard_links" >&5 16253echo "${ECHO_T}$hard_links" >&6 16254 if test "$hard_links" = no; then 16255 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16256echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16257 need_locks=warn 16258 fi 16259else 16260 need_locks=no 16261fi 16262 16263echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16264echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16265 16266 runpath_var= 16267 allow_undefined_flag_GCJ= 16268 enable_shared_with_static_runtimes_GCJ=no 16269 archive_cmds_GCJ= 16270 archive_expsym_cmds_GCJ= 16271 old_archive_From_new_cmds_GCJ= 16272 old_archive_from_expsyms_cmds_GCJ= 16273 export_dynamic_flag_spec_GCJ= 16274 whole_archive_flag_spec_GCJ= 16275 thread_safe_flag_spec_GCJ= 16276 hardcode_libdir_flag_spec_GCJ= 16277 hardcode_libdir_flag_spec_ld_GCJ= 16278 hardcode_libdir_separator_GCJ= 16279 hardcode_direct_GCJ=no 16280 hardcode_minus_L_GCJ=no 16281 hardcode_shlibpath_var_GCJ=unsupported 16282 link_all_deplibs_GCJ=unknown 16283 hardcode_automatic_GCJ=no 16284 module_cmds_GCJ= 16285 module_expsym_cmds_GCJ= 16286 always_export_symbols_GCJ=no 16287 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16288 # include_expsyms should be a list of space-separated symbols to be *always* 16289 # included in the symbol list 16290 include_expsyms_GCJ= 16291 # exclude_expsyms can be an extended regexp of symbols to exclude 16292 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16293 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16294 # as well as any symbol that contains `d'. 16295 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16296 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16297 # platforms (ab)use it in PIC code, but their linkers get confused if 16298 # the symbol is explicitly referenced. Since portable code cannot 16299 # rely on this symbol name, it's probably fine to never include it in 16300 # preloaded symbol tables. 16301 extract_expsyms_cmds= 16302 # Just being paranoid about ensuring that cc_basename is set. 16303 for cc_temp in $compiler""; do 16304 case $cc_temp in 16305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16307 \-*) ;; 16308 *) break;; 16309 esac 16310done 16311cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16312 16313 case $host_os in 16314 cygwin* | mingw* | pw32*) 16315 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16316 # When not using gcc, we currently assume that we are using 16317 # Microsoft Visual C++. 16318 if test "$GCC" != yes; then 16319 with_gnu_ld=no 16320 fi 16321 ;; 16322 interix*) 16323 # we just hope/assume this is gcc and not c89 (= MSVC++) 16324 with_gnu_ld=yes 16325 ;; 16326 openbsd*) 16327 with_gnu_ld=no 16328 ;; 16329 esac 16330 16331 ld_shlibs_GCJ=yes 16332 if test "$with_gnu_ld" = yes; then 16333 # If archive_cmds runs LD, not CC, wlarc should be empty 16334 wlarc='${wl}' 16335 16336 # Set some defaults for GNU ld with shared library support. These 16337 # are reset later if shared libraries are not supported. Putting them 16338 # here allows them to be overridden if necessary. 16339 runpath_var=LD_RUN_PATH 16340 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16341 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16342 # ancient GNU ld didn't support --whole-archive et. al. 16343 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16344 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16345 else 16346 whole_archive_flag_spec_GCJ= 16347 fi 16348 supports_anon_versioning=no 16349 case `$LD -v 2>/dev/null` in 16350 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16351 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16352 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16353 *\ 2.11.*) ;; # other 2.11 versions 16354 *) supports_anon_versioning=yes ;; 16355 esac 16356 16357 # See if GNU ld supports shared libraries. 16358 case $host_os in 16359 aix3* | aix4* | aix5*) 16360 # On AIX/PPC, the GNU linker is very broken 16361 if test "$host_cpu" != ia64; then 16362 ld_shlibs_GCJ=no 16363 cat <<EOF 1>&2 16364 16365*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16366*** to be unable to reliably create shared libraries on AIX. 16367*** Therefore, libtool is disabling shared libraries support. If you 16368*** really care for shared libraries, you may want to modify your PATH 16369*** so that a non-GNU linker is found, and then restart. 16370 16371EOF 16372 fi 16373 ;; 16374 16375 amigaos*) 16376 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)' 16377 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16378 hardcode_minus_L_GCJ=yes 16379 16380 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16381 # that the semantics of dynamic libraries on AmigaOS, at least up 16382 # to version 4, is to share data among multiple programs linked 16383 # with the same dynamic library. Since this doesn't match the 16384 # behavior of shared libraries on other platforms, we can't use 16385 # them. 16386 ld_shlibs_GCJ=no 16387 ;; 16388 16389 beos*) 16390 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16391 allow_undefined_flag_GCJ=unsupported 16392 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16393 # support --undefined. This deserves some investigation. FIXME 16394 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16395 else 16396 ld_shlibs_GCJ=no 16397 fi 16398 ;; 16399 16400 cygwin* | mingw* | pw32*) 16401 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16402 # as there is no search path for DLLs. 16403 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16404 allow_undefined_flag_GCJ=unsupported 16405 always_export_symbols_GCJ=no 16406 enable_shared_with_static_runtimes_GCJ=yes 16407 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16408 16409 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16410 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16411 # If the export-symbols file already is a .def file (1st line 16412 # is EXPORTS), use it as is; otherwise, prepend... 16413 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16414 cp $export_symbols $output_objdir/$soname.def; 16415 else 16416 echo EXPORTS > $output_objdir/$soname.def; 16417 cat $export_symbols >> $output_objdir/$soname.def; 16418 fi~ 16419 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16420 else 16421 ld_shlibs_GCJ=no 16422 fi 16423 ;; 16424 16425 interix3*) 16426 hardcode_direct_GCJ=no 16427 hardcode_shlibpath_var_GCJ=no 16428 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16429 export_dynamic_flag_spec_GCJ='${wl}-E' 16430 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16431 # Instead, shared libraries are loaded at an image base (0x10000000 by 16432 # default) and relocated if they conflict, which is a slow very memory 16433 # consuming and fragmenting process. To avoid this, we pick a random, 16434 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16435 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16436 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16437 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16438 ;; 16439 16440 linux*) 16441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16442 tmp_addflag= 16443 case $cc_basename,$host_cpu in 16444 pgcc*) # Portland Group C compiler 16445 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16446 tmp_addflag=' $pic_flag' 16447 ;; 16448 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16449 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16450 tmp_addflag=' $pic_flag -Mnomain' ;; 16451 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16452 tmp_addflag=' -i_dynamic' ;; 16453 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16454 tmp_addflag=' -i_dynamic -nofor_main' ;; 16455 ifc* | ifort*) # Intel Fortran compiler 16456 tmp_addflag=' -nofor_main' ;; 16457 esac 16458 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16459 16460 if test $supports_anon_versioning = yes; then 16461 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16462 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16463 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16464 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16465 fi 16466 else 16467 ld_shlibs_GCJ=no 16468 fi 16469 ;; 16470 16471 netbsd*) 16472 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16473 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16474 wlarc= 16475 else 16476 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16477 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16478 fi 16479 ;; 16480 16481 solaris*) 16482 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16483 ld_shlibs_GCJ=no 16484 cat <<EOF 1>&2 16485 16486*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16487*** create shared libraries on Solaris systems. Therefore, libtool 16488*** is disabling shared libraries support. We urge you to upgrade GNU 16489*** binutils to release 2.9.1 or newer. Another option is to modify 16490*** your PATH or compiler configuration so that the native linker is 16491*** used, and then restart. 16492 16493EOF 16494 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16495 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16496 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16497 else 16498 ld_shlibs_GCJ=no 16499 fi 16500 ;; 16501 16502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16503 case `$LD -v 2>&1` in 16504 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16505 ld_shlibs_GCJ=no 16506 cat <<_LT_EOF 1>&2 16507 16508*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16509*** reliably create shared libraries on SCO systems. Therefore, libtool 16510*** is disabling shared libraries support. We urge you to upgrade GNU 16511*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16512*** your PATH or compiler configuration so that the native linker is 16513*** used, and then restart. 16514 16515_LT_EOF 16516 ;; 16517 *) 16518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16519 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16520 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16521 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16522 else 16523 ld_shlibs_GCJ=no 16524 fi 16525 ;; 16526 esac 16527 ;; 16528 16529 sunos4*) 16530 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16531 wlarc= 16532 hardcode_direct_GCJ=yes 16533 hardcode_shlibpath_var_GCJ=no 16534 ;; 16535 16536 *) 16537 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16538 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16539 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16540 else 16541 ld_shlibs_GCJ=no 16542 fi 16543 ;; 16544 esac 16545 16546 if test "$ld_shlibs_GCJ" = no; then 16547 runpath_var= 16548 hardcode_libdir_flag_spec_GCJ= 16549 export_dynamic_flag_spec_GCJ= 16550 whole_archive_flag_spec_GCJ= 16551 fi 16552 else 16553 # PORTME fill in a description of your system's linker (not GNU ld) 16554 case $host_os in 16555 aix3*) 16556 allow_undefined_flag_GCJ=unsupported 16557 always_export_symbols_GCJ=yes 16558 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' 16559 # Note: this linker hardcodes the directories in LIBPATH if there 16560 # are no directories specified by -L. 16561 hardcode_minus_L_GCJ=yes 16562 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16563 # Neither direct hardcoding nor static linking is supported with a 16564 # broken collect2. 16565 hardcode_direct_GCJ=unsupported 16566 fi 16567 ;; 16568 16569 aix4* | aix5*) 16570 if test "$host_cpu" = ia64; then 16571 # On IA64, the linker does run time linking by default, so we don't 16572 # have to do anything special. 16573 aix_use_runtimelinking=no 16574 exp_sym_flag='-Bexport' 16575 no_entry_flag="" 16576 else 16577 # If we're using GNU nm, then we don't want the "-C" option. 16578 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16579 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16580 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' 16581 else 16582 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' 16583 fi 16584 aix_use_runtimelinking=no 16585 16586 # Test if we are trying to use run time linking or normal 16587 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16588 # need to do runtime linking. 16589 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16590 for ld_flag in $LDFLAGS; do 16591 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16592 aix_use_runtimelinking=yes 16593 break 16594 fi 16595 done 16596 ;; 16597 esac 16598 16599 exp_sym_flag='-bexport' 16600 no_entry_flag='-bnoentry' 16601 fi 16602 16603 # When large executables or shared objects are built, AIX ld can 16604 # have problems creating the table of contents. If linking a library 16605 # or program results in "error TOC overflow" add -mminimal-toc to 16606 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16607 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16608 16609 archive_cmds_GCJ='' 16610 hardcode_direct_GCJ=yes 16611 hardcode_libdir_separator_GCJ=':' 16612 link_all_deplibs_GCJ=yes 16613 16614 if test "$GCC" = yes; then 16615 case $host_os in aix4.[012]|aix4.[012].*) 16616 # We only want to do this on AIX 4.2 and lower, the check 16617 # below for broken collect2 doesn't work under 4.3+ 16618 collect2name=`${CC} -print-prog-name=collect2` 16619 if test -f "$collect2name" && \ 16620 strings "$collect2name" | grep resolve_lib_name >/dev/null 16621 then 16622 # We have reworked collect2 16623 hardcode_direct_GCJ=yes 16624 else 16625 # We have old collect2 16626 hardcode_direct_GCJ=unsupported 16627 # It fails to find uninstalled libraries when the uninstalled 16628 # path is not listed in the libpath. Setting hardcode_minus_L 16629 # to unsupported forces relinking 16630 hardcode_minus_L_GCJ=yes 16631 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16632 hardcode_libdir_separator_GCJ= 16633 fi 16634 ;; 16635 esac 16636 shared_flag='-shared' 16637 if test "$aix_use_runtimelinking" = yes; then 16638 shared_flag="$shared_flag "'${wl}-G' 16639 fi 16640 else 16641 # not using gcc 16642 if test "$host_cpu" = ia64; then 16643 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16644 # chokes on -Wl,-G. The following line is correct: 16645 shared_flag='-G' 16646 else 16647 if test "$aix_use_runtimelinking" = yes; then 16648 shared_flag='${wl}-G' 16649 else 16650 shared_flag='${wl}-bM:SRE' 16651 fi 16652 fi 16653 fi 16654 16655 # It seems that -bexpall does not export symbols beginning with 16656 # underscore (_), so it is better to generate a list of symbols to export. 16657 always_export_symbols_GCJ=yes 16658 if test "$aix_use_runtimelinking" = yes; then 16659 # Warning - without using the other runtime loading flags (-brtl), 16660 # -berok will link without error, but may produce a broken library. 16661 allow_undefined_flag_GCJ='-berok' 16662 # Determine the default libpath from the value encoded in an empty executable. 16663 cat >conftest.$ac_ext <<_ACEOF 16664/* confdefs.h. */ 16665_ACEOF 16666cat confdefs.h >>conftest.$ac_ext 16667cat >>conftest.$ac_ext <<_ACEOF 16668/* end confdefs.h. */ 16669 16670int 16671main () 16672{ 16673 16674 ; 16675 return 0; 16676} 16677_ACEOF 16678rm -f conftest.$ac_objext conftest$ac_exeext 16679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16680 (eval $ac_link) 2>conftest.er1 16681 ac_status=$? 16682 grep -v '^ *+' conftest.er1 >conftest.err 16683 rm -f conftest.er1 16684 cat conftest.err >&5 16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16686 (exit $ac_status); } && 16687 { ac_try='test -z "$ac_c_werror_flag" 16688 || test ! -s conftest.err' 16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16690 (eval $ac_try) 2>&5 16691 ac_status=$? 16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16693 (exit $ac_status); }; } && 16694 { ac_try='test -s conftest$ac_exeext' 16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16696 (eval $ac_try) 2>&5 16697 ac_status=$? 16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16699 (exit $ac_status); }; }; then 16700 16701aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16702}'` 16703# Check for a 64-bit object if we didn't find anything. 16704if 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; } 16705}'`; fi 16706else 16707 echo "$as_me: failed program was:" >&5 16708sed 's/^/| /' conftest.$ac_ext >&5 16709 16710fi 16711rm -f conftest.err conftest.$ac_objext \ 16712 conftest$ac_exeext conftest.$ac_ext 16713if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16714 16715 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16716 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16717 else 16718 if test "$host_cpu" = ia64; then 16719 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16720 allow_undefined_flag_GCJ="-z nodefs" 16721 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 16722 else 16723 # Determine the default libpath from the value encoded in an empty executable. 16724 cat >conftest.$ac_ext <<_ACEOF 16725/* confdefs.h. */ 16726_ACEOF 16727cat confdefs.h >>conftest.$ac_ext 16728cat >>conftest.$ac_ext <<_ACEOF 16729/* end confdefs.h. */ 16730 16731int 16732main () 16733{ 16734 16735 ; 16736 return 0; 16737} 16738_ACEOF 16739rm -f conftest.$ac_objext conftest$ac_exeext 16740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16741 (eval $ac_link) 2>conftest.er1 16742 ac_status=$? 16743 grep -v '^ *+' conftest.er1 >conftest.err 16744 rm -f conftest.er1 16745 cat conftest.err >&5 16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16747 (exit $ac_status); } && 16748 { ac_try='test -z "$ac_c_werror_flag" 16749 || test ! -s conftest.err' 16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16751 (eval $ac_try) 2>&5 16752 ac_status=$? 16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16754 (exit $ac_status); }; } && 16755 { ac_try='test -s conftest$ac_exeext' 16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16757 (eval $ac_try) 2>&5 16758 ac_status=$? 16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16760 (exit $ac_status); }; }; then 16761 16762aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16763}'` 16764# Check for a 64-bit object if we didn't find anything. 16765if 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; } 16766}'`; fi 16767else 16768 echo "$as_me: failed program was:" >&5 16769sed 's/^/| /' conftest.$ac_ext >&5 16770 16771fi 16772rm -f conftest.err conftest.$ac_objext \ 16773 conftest$ac_exeext conftest.$ac_ext 16774if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16775 16776 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16777 # Warning - without using the other run time loading flags, 16778 # -berok will link without error, but may produce a broken library. 16779 no_undefined_flag_GCJ=' ${wl}-bernotok' 16780 allow_undefined_flag_GCJ=' ${wl}-berok' 16781 # Exported symbols can be pulled into shared objects from archives 16782 whole_archive_flag_spec_GCJ='$convenience' 16783 archive_cmds_need_lc_GCJ=yes 16784 # This is similar to how AIX traditionally builds its shared libraries. 16785 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16786 fi 16787 fi 16788 ;; 16789 16790 amigaos*) 16791 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)' 16792 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16793 hardcode_minus_L_GCJ=yes 16794 # see comment about different semantics on the GNU ld section 16795 ld_shlibs_GCJ=no 16796 ;; 16797 16798 bsdi[45]*) 16799 export_dynamic_flag_spec_GCJ=-rdynamic 16800 ;; 16801 16802 cygwin* | mingw* | pw32*) 16803 # When not using gcc, we currently assume that we are using 16804 # Microsoft Visual C++. 16805 # hardcode_libdir_flag_spec is actually meaningless, as there is 16806 # no search path for DLLs. 16807 hardcode_libdir_flag_spec_GCJ=' ' 16808 allow_undefined_flag_GCJ=unsupported 16809 # Tell ltmain to make .lib files, not .a files. 16810 libext=lib 16811 # Tell ltmain to make .dll files, not .so files. 16812 shrext_cmds=".dll" 16813 # FIXME: Setting linknames here is a bad hack. 16814 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16815 # The linker will automatically build a .lib file if we build a DLL. 16816 old_archive_From_new_cmds_GCJ='true' 16817 # FIXME: Should let the user specify the lib program. 16818 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16819 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16820 enable_shared_with_static_runtimes_GCJ=yes 16821 ;; 16822 16823 darwin* | rhapsody*) 16824 case $host_os in 16825 rhapsody* | darwin1.[012]) 16826 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16827 ;; 16828 *) # Darwin 1.3 on 16829 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16830 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16831 else 16832 case ${MACOSX_DEPLOYMENT_TARGET} in 16833 10.[012]) 16834 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16835 ;; 16836 10.*) 16837 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16838 ;; 16839 esac 16840 fi 16841 ;; 16842 esac 16843 archive_cmds_need_lc_GCJ=no 16844 hardcode_direct_GCJ=no 16845 hardcode_automatic_GCJ=yes 16846 hardcode_shlibpath_var_GCJ=unsupported 16847 whole_archive_flag_spec_GCJ='' 16848 link_all_deplibs_GCJ=yes 16849 if test "$GCC" = yes ; then 16850 output_verbose_link_cmd='echo' 16851 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16852 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16853 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16854 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16855 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}' 16856 else 16857 case $cc_basename in 16858 xlc*) 16859 output_verbose_link_cmd='echo' 16860 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16861 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16862 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16863 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16864 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}' 16865 ;; 16866 *) 16867 ld_shlibs_GCJ=no 16868 ;; 16869 esac 16870 fi 16871 ;; 16872 16873 dgux*) 16874 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16875 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16876 hardcode_shlibpath_var_GCJ=no 16877 ;; 16878 16879 freebsd1*) 16880 ld_shlibs_GCJ=no 16881 ;; 16882 16883 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16884 # support. Future versions do this automatically, but an explicit c++rt0.o 16885 # does not break anything, and helps significantly (at the cost of a little 16886 # extra space). 16887 freebsd2.2*) 16888 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16889 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16890 hardcode_direct_GCJ=yes 16891 hardcode_shlibpath_var_GCJ=no 16892 ;; 16893 16894 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16895 freebsd2*) 16896 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16897 hardcode_direct_GCJ=yes 16898 hardcode_minus_L_GCJ=yes 16899 hardcode_shlibpath_var_GCJ=no 16900 ;; 16901 16902 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16903 freebsd* | kfreebsd*-gnu | dragonfly*) 16904 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16905 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16906 hardcode_direct_GCJ=yes 16907 hardcode_shlibpath_var_GCJ=no 16908 ;; 16909 16910 hpux9*) 16911 if test "$GCC" = yes; then 16912 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' 16913 else 16914 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' 16915 fi 16916 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16917 hardcode_libdir_separator_GCJ=: 16918 hardcode_direct_GCJ=yes 16919 16920 # hardcode_minus_L: Not really in the search PATH, 16921 # but as the default location of the library. 16922 hardcode_minus_L_GCJ=yes 16923 export_dynamic_flag_spec_GCJ='${wl}-E' 16924 ;; 16925 16926 hpux10*) 16927 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16928 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16929 else 16930 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16931 fi 16932 if test "$with_gnu_ld" = no; then 16933 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16934 hardcode_libdir_separator_GCJ=: 16935 16936 hardcode_direct_GCJ=yes 16937 export_dynamic_flag_spec_GCJ='${wl}-E' 16938 16939 # hardcode_minus_L: Not really in the search PATH, 16940 # but as the default location of the library. 16941 hardcode_minus_L_GCJ=yes 16942 fi 16943 ;; 16944 16945 hpux11*) 16946 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16947 case $host_cpu in 16948 hppa*64*) 16949 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16950 ;; 16951 ia64*) 16952 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16953 ;; 16954 *) 16955 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16956 ;; 16957 esac 16958 else 16959 case $host_cpu in 16960 hppa*64*) 16961 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16962 ;; 16963 ia64*) 16964 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16965 ;; 16966 *) 16967 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16968 ;; 16969 esac 16970 fi 16971 if test "$with_gnu_ld" = no; then 16972 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16973 hardcode_libdir_separator_GCJ=: 16974 16975 case $host_cpu in 16976 hppa*64*|ia64*) 16977 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16978 hardcode_direct_GCJ=no 16979 hardcode_shlibpath_var_GCJ=no 16980 ;; 16981 *) 16982 hardcode_direct_GCJ=yes 16983 export_dynamic_flag_spec_GCJ='${wl}-E' 16984 16985 # hardcode_minus_L: Not really in the search PATH, 16986 # but as the default location of the library. 16987 hardcode_minus_L_GCJ=yes 16988 ;; 16989 esac 16990 fi 16991 ;; 16992 16993 irix5* | irix6* | nonstopux*) 16994 if test "$GCC" = yes; then 16995 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' 16996 else 16997 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' 16998 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16999 fi 17000 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17001 hardcode_libdir_separator_GCJ=: 17002 link_all_deplibs_GCJ=yes 17003 ;; 17004 17005 netbsd*) 17006 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17007 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17008 else 17009 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17010 fi 17011 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17012 hardcode_direct_GCJ=yes 17013 hardcode_shlibpath_var_GCJ=no 17014 ;; 17015 17016 newsos6) 17017 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17018 hardcode_direct_GCJ=yes 17019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17020 hardcode_libdir_separator_GCJ=: 17021 hardcode_shlibpath_var_GCJ=no 17022 ;; 17023 17024 openbsd*) 17025 hardcode_direct_GCJ=yes 17026 hardcode_shlibpath_var_GCJ=no 17027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17028 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17029 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17031 export_dynamic_flag_spec_GCJ='${wl}-E' 17032 else 17033 case $host_os in 17034 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17035 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17036 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17037 ;; 17038 *) 17039 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17040 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17041 ;; 17042 esac 17043 fi 17044 ;; 17045 17046 os2*) 17047 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17048 hardcode_minus_L_GCJ=yes 17049 allow_undefined_flag_GCJ=unsupported 17050 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' 17051 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17052 ;; 17053 17054 osf3*) 17055 if test "$GCC" = yes; then 17056 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17057 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' 17058 else 17059 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17060 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' 17061 fi 17062 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17063 hardcode_libdir_separator_GCJ=: 17064 ;; 17065 17066 osf4* | osf5*) # as osf3* with the addition of -msym flag 17067 if test "$GCC" = yes; then 17068 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17069 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' 17070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17071 else 17072 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17073 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' 17074 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~ 17075 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 17076 17077 # Both c and cxx compiler support -rpath directly 17078 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17079 fi 17080 hardcode_libdir_separator_GCJ=: 17081 ;; 17082 17083 solaris*) 17084 no_undefined_flag_GCJ=' -z text' 17085 if test "$GCC" = yes; then 17086 wlarc='${wl}' 17087 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17088 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17089 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17090 else 17091 wlarc='' 17092 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17093 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17094 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17095 fi 17096 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17097 hardcode_shlibpath_var_GCJ=no 17098 case $host_os in 17099 solaris2.[0-5] | solaris2.[0-5].*) ;; 17100 *) 17101 # The compiler driver will combine linker options so we 17102 # cannot just pass the convience library names through 17103 # without $wl, iff we do not link with $LD. 17104 # Luckily, gcc supports the same syntax we need for Sun Studio. 17105 # Supported since Solaris 2.6 (maybe 2.5.1?) 17106 case $wlarc in 17107 '') 17108 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17109 *) 17110 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17111 esac ;; 17112 esac 17113 link_all_deplibs_GCJ=yes 17114 ;; 17115 17116 sunos4*) 17117 if test "x$host_vendor" = xsequent; then 17118 # Use $CC to link under sequent, because it throws in some extra .o 17119 # files that make .init and .fini sections work. 17120 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17121 else 17122 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17123 fi 17124 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17125 hardcode_direct_GCJ=yes 17126 hardcode_minus_L_GCJ=yes 17127 hardcode_shlibpath_var_GCJ=no 17128 ;; 17129 17130 sysv4) 17131 case $host_vendor in 17132 sni) 17133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17134 hardcode_direct_GCJ=yes # is this really true??? 17135 ;; 17136 siemens) 17137 ## LD is ld it makes a PLAMLIB 17138 ## CC just makes a GrossModule. 17139 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17140 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17141 hardcode_direct_GCJ=no 17142 ;; 17143 motorola) 17144 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17145 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17146 ;; 17147 esac 17148 runpath_var='LD_RUN_PATH' 17149 hardcode_shlibpath_var_GCJ=no 17150 ;; 17151 17152 sysv4.3*) 17153 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17154 hardcode_shlibpath_var_GCJ=no 17155 export_dynamic_flag_spec_GCJ='-Bexport' 17156 ;; 17157 17158 sysv4*MP*) 17159 if test -d /usr/nec; then 17160 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17161 hardcode_shlibpath_var_GCJ=no 17162 runpath_var=LD_RUN_PATH 17163 hardcode_runpath_var=yes 17164 ld_shlibs_GCJ=yes 17165 fi 17166 ;; 17167 17168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17169 no_undefined_flag_GCJ='${wl}-z,text' 17170 archive_cmds_need_lc_GCJ=no 17171 hardcode_shlibpath_var_GCJ=no 17172 runpath_var='LD_RUN_PATH' 17173 17174 if test "$GCC" = yes; then 17175 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17176 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17177 else 17178 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17179 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17180 fi 17181 ;; 17182 17183 sysv5* | sco3.2v5* | sco5v6*) 17184 # Note: We can NOT use -z defs as we might desire, because we do not 17185 # link with -lc, and that would cause any symbols used from libc to 17186 # always be unresolved, which means just about no library would 17187 # ever link correctly. If we're not using GNU ld we use -z text 17188 # though, which does catch some bad symbols but isn't as heavy-handed 17189 # as -z defs. 17190 no_undefined_flag_GCJ='${wl}-z,text' 17191 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17192 archive_cmds_need_lc_GCJ=no 17193 hardcode_shlibpath_var_GCJ=no 17194 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17195 hardcode_libdir_separator_GCJ=':' 17196 link_all_deplibs_GCJ=yes 17197 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17198 runpath_var='LD_RUN_PATH' 17199 17200 if test "$GCC" = yes; then 17201 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17202 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17203 else 17204 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17205 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17206 fi 17207 ;; 17208 17209 uts4*) 17210 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17211 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17212 hardcode_shlibpath_var_GCJ=no 17213 ;; 17214 17215 *) 17216 ld_shlibs_GCJ=no 17217 ;; 17218 esac 17219 fi 17220 17221echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17222echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17223test "$ld_shlibs_GCJ" = no && can_build_shared=no 17224 17225# 17226# Do we need to explicitly link libc? 17227# 17228case "x$archive_cmds_need_lc_GCJ" in 17229x|xyes) 17230 # Assume -lc should be added 17231 archive_cmds_need_lc_GCJ=yes 17232 17233 if test "$enable_shared" = yes && test "$GCC" = yes; then 17234 case $archive_cmds_GCJ in 17235 *'~'*) 17236 # FIXME: we may have to deal with multi-command sequences. 17237 ;; 17238 '$CC '*) 17239 # Test whether the compiler implicitly links with -lc since on some 17240 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17241 # to ld, don't add -lc before -lgcc. 17242 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17243echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17244 $rm conftest* 17245 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17246 17247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17248 (eval $ac_compile) 2>&5 17249 ac_status=$? 17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17251 (exit $ac_status); } 2>conftest.err; then 17252 soname=conftest 17253 lib=conftest 17254 libobjs=conftest.$ac_objext 17255 deplibs= 17256 wl=$lt_prog_compiler_wl_GCJ 17257 pic_flag=$lt_prog_compiler_pic_GCJ 17258 compiler_flags=-v 17259 linker_flags=-v 17260 verstring= 17261 output_objdir=. 17262 libname=conftest 17263 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17264 allow_undefined_flag_GCJ= 17265 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17266 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17267 ac_status=$? 17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17269 (exit $ac_status); } 17270 then 17271 archive_cmds_need_lc_GCJ=no 17272 else 17273 archive_cmds_need_lc_GCJ=yes 17274 fi 17275 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17276 else 17277 cat conftest.err 1>&5 17278 fi 17279 $rm conftest* 17280 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17281echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17282 ;; 17283 esac 17284 fi 17285 ;; 17286esac 17287 17288echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17289echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17290library_names_spec= 17291libname_spec='lib$name' 17292soname_spec= 17293shrext_cmds=".so" 17294postinstall_cmds= 17295postuninstall_cmds= 17296finish_cmds= 17297finish_eval= 17298shlibpath_var= 17299shlibpath_overrides_runpath=unknown 17300version_type=none 17301dynamic_linker="$host_os ld.so" 17302sys_lib_dlsearch_path_spec="/lib /usr/lib" 17303if test "$GCC" = yes; then 17304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17305 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17306 # if the path contains ";" then we assume it to be the separator 17307 # otherwise default to the standard path separator (i.e. ":") - it is 17308 # assumed that no part of a normal pathname contains ";" but that should 17309 # okay in the real world where ";" in dirpaths is itself problematic. 17310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17311 else 17312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17313 fi 17314else 17315 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17316fi 17317need_lib_prefix=unknown 17318hardcode_into_libs=no 17319 17320# when you set need_version to no, make sure it does not cause -set_version 17321# flags to be left without arguments 17322need_version=unknown 17323 17324case $host_os in 17325aix3*) 17326 version_type=linux 17327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17328 shlibpath_var=LIBPATH 17329 17330 # AIX 3 has no versioning support, so we append a major version to the name. 17331 soname_spec='${libname}${release}${shared_ext}$major' 17332 ;; 17333 17334aix4* | aix5*) 17335 version_type=linux 17336 need_lib_prefix=no 17337 need_version=no 17338 hardcode_into_libs=yes 17339 if test "$host_cpu" = ia64; then 17340 # AIX 5 supports IA64 17341 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17342 shlibpath_var=LD_LIBRARY_PATH 17343 else 17344 # With GCC up to 2.95.x, collect2 would create an import file 17345 # for dependence libraries. The import file would start with 17346 # the line `#! .'. This would cause the generated library to 17347 # depend on `.', always an invalid library. This was fixed in 17348 # development snapshots of GCC prior to 3.0. 17349 case $host_os in 17350 aix4 | aix4.[01] | aix4.[01].*) 17351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17352 echo ' yes ' 17353 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17354 : 17355 else 17356 can_build_shared=no 17357 fi 17358 ;; 17359 esac 17360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17361 # soname into executable. Probably we can add versioning support to 17362 # collect2, so additional links can be useful in future. 17363 if test "$aix_use_runtimelinking" = yes; then 17364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17365 # instead of lib<name>.a to let people know that these are not 17366 # typical AIX shared libraries. 17367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17368 else 17369 # We preserve .a as extension for shared libraries through AIX4.2 17370 # and later when we are not doing run time linking. 17371 library_names_spec='${libname}${release}.a $libname.a' 17372 soname_spec='${libname}${release}${shared_ext}$major' 17373 fi 17374 shlibpath_var=LIBPATH 17375 fi 17376 ;; 17377 17378amigaos*) 17379 library_names_spec='$libname.ixlibrary $libname.a' 17380 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17381 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' 17382 ;; 17383 17384beos*) 17385 library_names_spec='${libname}${shared_ext}' 17386 dynamic_linker="$host_os ld.so" 17387 shlibpath_var=LIBRARY_PATH 17388 ;; 17389 17390bsdi[45]*) 17391 version_type=linux 17392 need_version=no 17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17394 soname_spec='${libname}${release}${shared_ext}$major' 17395 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17396 shlibpath_var=LD_LIBRARY_PATH 17397 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17398 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17399 # the default ld.so.conf also contains /usr/contrib/lib and 17400 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17401 # libtool to hard-code these into programs 17402 ;; 17403 17404cygwin* | mingw* | pw32*) 17405 version_type=windows 17406 shrext_cmds=".dll" 17407 need_version=no 17408 need_lib_prefix=no 17409 17410 case $GCC,$host_os in 17411 yes,cygwin* | yes,mingw* | yes,pw32*) 17412 library_names_spec='$libname.dll.a' 17413 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17414 postinstall_cmds='base_file=`basename \${file}`~ 17415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17416 dldir=$destdir/`dirname \$dlpath`~ 17417 test -d \$dldir || mkdir -p \$dldir~ 17418 $install_prog $dir/$dlname \$dldir/$dlname~ 17419 chmod a+x \$dldir/$dlname' 17420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17421 dlpath=$dir/\$dldll~ 17422 $rm \$dlpath' 17423 shlibpath_overrides_runpath=yes 17424 17425 case $host_os in 17426 cygwin*) 17427 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17429 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17430 ;; 17431 mingw*) 17432 # MinGW DLLs use traditional 'lib' prefix 17433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17434 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17435 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17436 # It is most probably a Windows format PATH printed by 17437 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17438 # path with ; separators, and with drive letters. We can handle the 17439 # drive letters (cygwin fileutils understands them), so leave them, 17440 # especially as we might pass files found there to a mingw objdump, 17441 # which wouldn't understand a cygwinified path. Ahh. 17442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17443 else 17444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17445 fi 17446 ;; 17447 pw32*) 17448 # pw32 DLLs use 'pw' prefix rather than 'lib' 17449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17450 ;; 17451 esac 17452 ;; 17453 17454 *) 17455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17456 ;; 17457 esac 17458 dynamic_linker='Win32 ld.exe' 17459 # FIXME: first we should search . and the directory the executable is in 17460 shlibpath_var=PATH 17461 ;; 17462 17463darwin* | rhapsody*) 17464 dynamic_linker="$host_os dyld" 17465 version_type=darwin 17466 need_lib_prefix=no 17467 need_version=no 17468 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17469 soname_spec='${libname}${release}${major}$shared_ext' 17470 shlibpath_overrides_runpath=yes 17471 shlibpath_var=DYLD_LIBRARY_PATH 17472 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17473 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17474 if test "$GCC" = yes; then 17475 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"` 17476 else 17477 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17478 fi 17479 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17480 ;; 17481 17482dgux*) 17483 version_type=linux 17484 need_lib_prefix=no 17485 need_version=no 17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17487 soname_spec='${libname}${release}${shared_ext}$major' 17488 shlibpath_var=LD_LIBRARY_PATH 17489 ;; 17490 17491freebsd1*) 17492 dynamic_linker=no 17493 ;; 17494 17495kfreebsd*-gnu) 17496 version_type=linux 17497 need_lib_prefix=no 17498 need_version=no 17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17500 soname_spec='${libname}${release}${shared_ext}$major' 17501 shlibpath_var=LD_LIBRARY_PATH 17502 shlibpath_overrides_runpath=no 17503 hardcode_into_libs=yes 17504 dynamic_linker='GNU ld.so' 17505 ;; 17506 17507freebsd* | dragonfly*) 17508 # DragonFly does not have aout. When/if they implement a new 17509 # versioning mechanism, adjust this. 17510 if test -x /usr/bin/objformat; then 17511 objformat=`/usr/bin/objformat` 17512 else 17513 case $host_os in 17514 freebsd[123]*) objformat=aout ;; 17515 *) objformat=elf ;; 17516 esac 17517 fi 17518 version_type=freebsd-$objformat 17519 case $version_type in 17520 freebsd-elf*) 17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17522 need_version=no 17523 need_lib_prefix=no 17524 ;; 17525 freebsd-*) 17526 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17527 need_version=yes 17528 ;; 17529 esac 17530 shlibpath_var=LD_LIBRARY_PATH 17531 case $host_os in 17532 freebsd2*) 17533 shlibpath_overrides_runpath=yes 17534 ;; 17535 freebsd3.[01]* | freebsdelf3.[01]*) 17536 shlibpath_overrides_runpath=yes 17537 hardcode_into_libs=yes 17538 ;; 17539 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17540 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17541 shlibpath_overrides_runpath=no 17542 hardcode_into_libs=yes 17543 ;; 17544 freebsd*) # from 4.6 on 17545 shlibpath_overrides_runpath=yes 17546 hardcode_into_libs=yes 17547 ;; 17548 esac 17549 ;; 17550 17551gnu*) 17552 version_type=linux 17553 need_lib_prefix=no 17554 need_version=no 17555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17556 soname_spec='${libname}${release}${shared_ext}$major' 17557 shlibpath_var=LD_LIBRARY_PATH 17558 hardcode_into_libs=yes 17559 ;; 17560 17561hpux9* | hpux10* | hpux11*) 17562 # Give a soname corresponding to the major version so that dld.sl refuses to 17563 # link against other versions. 17564 version_type=sunos 17565 need_lib_prefix=no 17566 need_version=no 17567 case $host_cpu in 17568 ia64*) 17569 shrext_cmds='.so' 17570 hardcode_into_libs=yes 17571 dynamic_linker="$host_os dld.so" 17572 shlibpath_var=LD_LIBRARY_PATH 17573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17575 soname_spec='${libname}${release}${shared_ext}$major' 17576 if test "X$HPUX_IA64_MODE" = X32; then 17577 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17578 else 17579 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17580 fi 17581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17582 ;; 17583 hppa*64*) 17584 shrext_cmds='.sl' 17585 hardcode_into_libs=yes 17586 dynamic_linker="$host_os dld.sl" 17587 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17590 soname_spec='${libname}${release}${shared_ext}$major' 17591 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17593 ;; 17594 *) 17595 shrext_cmds='.sl' 17596 dynamic_linker="$host_os dld.sl" 17597 shlibpath_var=SHLIB_PATH 17598 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17600 soname_spec='${libname}${release}${shared_ext}$major' 17601 ;; 17602 esac 17603 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17604 postinstall_cmds='chmod 555 $lib' 17605 ;; 17606 17607interix3*) 17608 version_type=linux 17609 need_lib_prefix=no 17610 need_version=no 17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17612 soname_spec='${libname}${release}${shared_ext}$major' 17613 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17614 shlibpath_var=LD_LIBRARY_PATH 17615 shlibpath_overrides_runpath=no 17616 hardcode_into_libs=yes 17617 ;; 17618 17619irix5* | irix6* | nonstopux*) 17620 case $host_os in 17621 nonstopux*) version_type=nonstopux ;; 17622 *) 17623 if test "$lt_cv_prog_gnu_ld" = yes; then 17624 version_type=linux 17625 else 17626 version_type=irix 17627 fi ;; 17628 esac 17629 need_lib_prefix=no 17630 need_version=no 17631 soname_spec='${libname}${release}${shared_ext}$major' 17632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17633 case $host_os in 17634 irix5* | nonstopux*) 17635 libsuff= shlibsuff= 17636 ;; 17637 *) 17638 case $LD in # libtool.m4 will add one of these switches to LD 17639 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17640 libsuff= shlibsuff= libmagic=32-bit;; 17641 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17642 libsuff=32 shlibsuff=N32 libmagic=N32;; 17643 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17644 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17645 *) libsuff= shlibsuff= libmagic=never-match;; 17646 esac 17647 ;; 17648 esac 17649 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17650 shlibpath_overrides_runpath=no 17651 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17652 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17653 hardcode_into_libs=yes 17654 ;; 17655 17656# No shared lib support for Linux oldld, aout, or coff. 17657linux*oldld* | linux*aout* | linux*coff*) 17658 dynamic_linker=no 17659 ;; 17660 17661# This must be Linux ELF. 17662linux*) 17663 version_type=linux 17664 need_lib_prefix=no 17665 need_version=no 17666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17667 soname_spec='${libname}${release}${shared_ext}$major' 17668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17669 shlibpath_var=LD_LIBRARY_PATH 17670 shlibpath_overrides_runpath=no 17671 # This implies no fast_install, which is unacceptable. 17672 # Some rework will be needed to allow for fast_install 17673 # before this can be enabled. 17674 hardcode_into_libs=yes 17675 17676 # find out which ABI we are using 17677 libsuff= 17678 case "$host_cpu" in 17679 x86_64*|s390x*|powerpc64*) 17680 echo '#line 17680 "configure"' > conftest.$ac_ext 17681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17682 (eval $ac_compile) 2>&5 17683 ac_status=$? 17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17685 (exit $ac_status); }; then 17686 case `/usr/bin/file conftest.$ac_objext` in 17687 *64-bit*) 17688 libsuff=64 17689 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17690 ;; 17691 esac 17692 fi 17693 rm -rf conftest* 17694 ;; 17695 esac 17696 17697 # Append ld.so.conf contents to the search path 17698 if test -f /etc/ld.so.conf; then 17699 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17700 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 17701 fi 17702 17703 # We used to test for /lib/ld.so.1 and disable shared libraries on 17704 # powerpc, because MkLinux only supported shared libraries with the 17705 # GNU dynamic linker. Since this was broken with cross compilers, 17706 # most powerpc-linux boxes support dynamic linking these days and 17707 # people can always --disable-shared, the test was removed, and we 17708 # assume the GNU/Linux dynamic linker is in use. 17709 dynamic_linker='GNU/Linux ld.so' 17710 ;; 17711 17712knetbsd*-gnu) 17713 version_type=linux 17714 need_lib_prefix=no 17715 need_version=no 17716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17717 soname_spec='${libname}${release}${shared_ext}$major' 17718 shlibpath_var=LD_LIBRARY_PATH 17719 shlibpath_overrides_runpath=no 17720 hardcode_into_libs=yes 17721 dynamic_linker='GNU ld.so' 17722 ;; 17723 17724netbsd*) 17725 version_type=sunos 17726 need_lib_prefix=no 17727 need_version=no 17728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17731 dynamic_linker='NetBSD (a.out) ld.so' 17732 else 17733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17734 soname_spec='${libname}${release}${shared_ext}$major' 17735 dynamic_linker='NetBSD ld.elf_so' 17736 fi 17737 shlibpath_var=LD_LIBRARY_PATH 17738 shlibpath_overrides_runpath=yes 17739 hardcode_into_libs=yes 17740 ;; 17741 17742newsos6) 17743 version_type=linux 17744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17745 shlibpath_var=LD_LIBRARY_PATH 17746 shlibpath_overrides_runpath=yes 17747 ;; 17748 17749nto-qnx*) 17750 version_type=linux 17751 need_lib_prefix=no 17752 need_version=no 17753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17754 soname_spec='${libname}${release}${shared_ext}$major' 17755 shlibpath_var=LD_LIBRARY_PATH 17756 shlibpath_overrides_runpath=yes 17757 ;; 17758 17759openbsd*) 17760 version_type=sunos 17761 sys_lib_dlsearch_path_spec="/usr/lib" 17762 need_lib_prefix=no 17763 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17764 case $host_os in 17765 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17766 *) need_version=no ;; 17767 esac 17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17770 shlibpath_var=LD_LIBRARY_PATH 17771 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17772 case $host_os in 17773 openbsd2.[89] | openbsd2.[89].*) 17774 shlibpath_overrides_runpath=no 17775 ;; 17776 *) 17777 shlibpath_overrides_runpath=yes 17778 ;; 17779 esac 17780 else 17781 shlibpath_overrides_runpath=yes 17782 fi 17783 ;; 17784 17785os2*) 17786 libname_spec='$name' 17787 shrext_cmds=".dll" 17788 need_lib_prefix=no 17789 library_names_spec='$libname${shared_ext} $libname.a' 17790 dynamic_linker='OS/2 ld.exe' 17791 shlibpath_var=LIBPATH 17792 ;; 17793 17794osf3* | osf4* | osf5*) 17795 version_type=osf 17796 need_lib_prefix=no 17797 need_version=no 17798 soname_spec='${libname}${release}${shared_ext}$major' 17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17800 shlibpath_var=LD_LIBRARY_PATH 17801 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17802 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17803 ;; 17804 17805solaris*) 17806 version_type=linux 17807 need_lib_prefix=no 17808 need_version=no 17809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17810 soname_spec='${libname}${release}${shared_ext}$major' 17811 shlibpath_var=LD_LIBRARY_PATH 17812 shlibpath_overrides_runpath=yes 17813 hardcode_into_libs=yes 17814 # ldd complains unless libraries are executable 17815 postinstall_cmds='chmod +x $lib' 17816 ;; 17817 17818sunos4*) 17819 version_type=sunos 17820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17821 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17822 shlibpath_var=LD_LIBRARY_PATH 17823 shlibpath_overrides_runpath=yes 17824 if test "$with_gnu_ld" = yes; then 17825 need_lib_prefix=no 17826 fi 17827 need_version=yes 17828 ;; 17829 17830sysv4 | sysv4.3*) 17831 version_type=linux 17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17833 soname_spec='${libname}${release}${shared_ext}$major' 17834 shlibpath_var=LD_LIBRARY_PATH 17835 case $host_vendor in 17836 sni) 17837 shlibpath_overrides_runpath=no 17838 need_lib_prefix=no 17839 export_dynamic_flag_spec='${wl}-Blargedynsym' 17840 runpath_var=LD_RUN_PATH 17841 ;; 17842 siemens) 17843 need_lib_prefix=no 17844 ;; 17845 motorola) 17846 need_lib_prefix=no 17847 need_version=no 17848 shlibpath_overrides_runpath=no 17849 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17850 ;; 17851 esac 17852 ;; 17853 17854sysv4*MP*) 17855 if test -d /usr/nec ;then 17856 version_type=linux 17857 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17858 soname_spec='$libname${shared_ext}.$major' 17859 shlibpath_var=LD_LIBRARY_PATH 17860 fi 17861 ;; 17862 17863sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17864 version_type=freebsd-elf 17865 need_lib_prefix=no 17866 need_version=no 17867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17868 soname_spec='${libname}${release}${shared_ext}$major' 17869 shlibpath_var=LD_LIBRARY_PATH 17870 hardcode_into_libs=yes 17871 if test "$with_gnu_ld" = yes; then 17872 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17873 shlibpath_overrides_runpath=no 17874 else 17875 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17876 shlibpath_overrides_runpath=yes 17877 case $host_os in 17878 sco3.2v5*) 17879 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17880 ;; 17881 esac 17882 fi 17883 sys_lib_dlsearch_path_spec='/usr/lib' 17884 ;; 17885 17886uts4*) 17887 version_type=linux 17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17889 soname_spec='${libname}${release}${shared_ext}$major' 17890 shlibpath_var=LD_LIBRARY_PATH 17891 ;; 17892 17893*) 17894 dynamic_linker=no 17895 ;; 17896esac 17897echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17898echo "${ECHO_T}$dynamic_linker" >&6 17899test "$dynamic_linker" = no && can_build_shared=no 17900 17901variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17902if test "$GCC" = yes; then 17903 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17904fi 17905 17906echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17907echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17908hardcode_action_GCJ= 17909if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17910 test -n "$runpath_var_GCJ" || \ 17911 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17912 17913 # We can hardcode non-existant directories. 17914 if test "$hardcode_direct_GCJ" != no && 17915 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17916 # have to relink, otherwise we might link with an installed library 17917 # when we should be linking with a yet-to-be-installed one 17918 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17919 test "$hardcode_minus_L_GCJ" != no; then 17920 # Linking always hardcodes the temporary library directory. 17921 hardcode_action_GCJ=relink 17922 else 17923 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17924 hardcode_action_GCJ=immediate 17925 fi 17926else 17927 # We cannot hardcode anything, or else we can only hardcode existing 17928 # directories. 17929 hardcode_action_GCJ=unsupported 17930fi 17931echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17932echo "${ECHO_T}$hardcode_action_GCJ" >&6 17933 17934if test "$hardcode_action_GCJ" = relink; then 17935 # Fast installation is not supported 17936 enable_fast_install=no 17937elif test "$shlibpath_overrides_runpath" = yes || 17938 test "$enable_shared" = no; then 17939 # Fast installation is not necessary 17940 enable_fast_install=needless 17941fi 17942 17943 17944# The else clause should only fire when bootstrapping the 17945# libtool distribution, otherwise you forgot to ship ltmain.sh 17946# with your package, and you will get complaints that there are 17947# no rules to generate ltmain.sh. 17948if test -f "$ltmain"; then 17949 # See if we are running on zsh, and set the options which allow our commands through 17950 # without removal of \ escapes. 17951 if test -n "${ZSH_VERSION+set}" ; then 17952 setopt NO_GLOB_SUBST 17953 fi 17954 # Now quote all the things that may contain metacharacters while being 17955 # careful not to overquote the AC_SUBSTed values. We take copies of the 17956 # variables and quote the copies for generation of the libtool script. 17957 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17958 SED SHELL STRIP \ 17959 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17960 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17961 deplibs_check_method reload_flag reload_cmds need_locks \ 17962 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17963 lt_cv_sys_global_symbol_to_c_name_address \ 17964 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17965 old_postinstall_cmds old_postuninstall_cmds \ 17966 compiler_GCJ \ 17967 CC_GCJ \ 17968 LD_GCJ \ 17969 lt_prog_compiler_wl_GCJ \ 17970 lt_prog_compiler_pic_GCJ \ 17971 lt_prog_compiler_static_GCJ \ 17972 lt_prog_compiler_no_builtin_flag_GCJ \ 17973 export_dynamic_flag_spec_GCJ \ 17974 thread_safe_flag_spec_GCJ \ 17975 whole_archive_flag_spec_GCJ \ 17976 enable_shared_with_static_runtimes_GCJ \ 17977 old_archive_cmds_GCJ \ 17978 old_archive_from_new_cmds_GCJ \ 17979 predep_objects_GCJ \ 17980 postdep_objects_GCJ \ 17981 predeps_GCJ \ 17982 postdeps_GCJ \ 17983 compiler_lib_search_path_GCJ \ 17984 archive_cmds_GCJ \ 17985 archive_expsym_cmds_GCJ \ 17986 postinstall_cmds_GCJ \ 17987 postuninstall_cmds_GCJ \ 17988 old_archive_from_expsyms_cmds_GCJ \ 17989 allow_undefined_flag_GCJ \ 17990 no_undefined_flag_GCJ \ 17991 export_symbols_cmds_GCJ \ 17992 hardcode_libdir_flag_spec_GCJ \ 17993 hardcode_libdir_flag_spec_ld_GCJ \ 17994 hardcode_libdir_separator_GCJ \ 17995 hardcode_automatic_GCJ \ 17996 module_cmds_GCJ \ 17997 module_expsym_cmds_GCJ \ 17998 lt_cv_prog_compiler_c_o_GCJ \ 17999 exclude_expsyms_GCJ \ 18000 include_expsyms_GCJ; do 18001 18002 case $var in 18003 old_archive_cmds_GCJ | \ 18004 old_archive_from_new_cmds_GCJ | \ 18005 archive_cmds_GCJ | \ 18006 archive_expsym_cmds_GCJ | \ 18007 module_cmds_GCJ | \ 18008 module_expsym_cmds_GCJ | \ 18009 old_archive_from_expsyms_cmds_GCJ | \ 18010 export_symbols_cmds_GCJ | \ 18011 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18012 postinstall_cmds | postuninstall_cmds | \ 18013 old_postinstall_cmds | old_postuninstall_cmds | \ 18014 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18015 # Double-quote double-evaled strings. 18016 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18017 ;; 18018 *) 18019 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18020 ;; 18021 esac 18022 done 18023 18024 case $lt_echo in 18025 *'\$0 --fallback-echo"') 18026 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18027 ;; 18028 esac 18029 18030cfgfile="$ofile" 18031 18032 cat <<__EOF__ >> "$cfgfile" 18033# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18034 18035# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18036 18037# Shell to use when invoking shell scripts. 18038SHELL=$lt_SHELL 18039 18040# Whether or not to build shared libraries. 18041build_libtool_libs=$enable_shared 18042 18043# Whether or not to build static libraries. 18044build_old_libs=$enable_static 18045 18046# Whether or not to add -lc for building shared libraries. 18047build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18048 18049# Whether or not to disallow shared libs when runtime libs are static 18050allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18051 18052# Whether or not to optimize for fast installation. 18053fast_install=$enable_fast_install 18054 18055# The host system. 18056host_alias=$host_alias 18057host=$host 18058host_os=$host_os 18059 18060# The build system. 18061build_alias=$build_alias 18062build=$build 18063build_os=$build_os 18064 18065# An echo program that does not interpret backslashes. 18066echo=$lt_echo 18067 18068# The archiver. 18069AR=$lt_AR 18070AR_FLAGS=$lt_AR_FLAGS 18071 18072# A C compiler. 18073LTCC=$lt_LTCC 18074 18075# LTCC compiler flags. 18076LTCFLAGS=$lt_LTCFLAGS 18077 18078# A language-specific compiler. 18079CC=$lt_compiler_GCJ 18080 18081# Is the compiler the GNU C compiler? 18082with_gcc=$GCC_GCJ 18083 18084gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 18085gcc_ver=\`gcc -dumpversion\` 18086 18087# An ERE matcher. 18088EGREP=$lt_EGREP 18089 18090# The linker used to build libraries. 18091LD=$lt_LD_GCJ 18092 18093# Whether we need hard or soft links. 18094LN_S=$lt_LN_S 18095 18096# A BSD-compatible nm program. 18097NM=$lt_NM 18098 18099# A symbol stripping program 18100STRIP=$lt_STRIP 18101 18102# Used to examine libraries when file_magic_cmd begins "file" 18103MAGIC_CMD=$MAGIC_CMD 18104 18105# Used on cygwin: DLL creation program. 18106DLLTOOL="$DLLTOOL" 18107 18108# Used on cygwin: object dumper. 18109OBJDUMP="$OBJDUMP" 18110 18111# Used on cygwin: assembler. 18112AS="$AS" 18113 18114# The name of the directory that contains temporary libtool files. 18115objdir=$objdir 18116 18117# How to create reloadable object files. 18118reload_flag=$lt_reload_flag 18119reload_cmds=$lt_reload_cmds 18120 18121# How to pass a linker flag through the compiler. 18122wl=$lt_lt_prog_compiler_wl_GCJ 18123 18124# Object file suffix (normally "o"). 18125objext="$ac_objext" 18126 18127# Old archive suffix (normally "a"). 18128libext="$libext" 18129 18130# Shared library suffix (normally ".so"). 18131shrext_cmds='$shrext_cmds' 18132 18133# Executable file suffix (normally ""). 18134exeext="$exeext" 18135 18136# Additional compiler flags for building library objects. 18137pic_flag=$lt_lt_prog_compiler_pic_GCJ 18138pic_mode=$pic_mode 18139 18140# What is the maximum length of a command? 18141max_cmd_len=$lt_cv_sys_max_cmd_len 18142 18143# Does compiler simultaneously support -c and -o options? 18144compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18145 18146# Must we lock files when doing compilation? 18147need_locks=$lt_need_locks 18148 18149# Do we need the lib prefix for modules? 18150need_lib_prefix=$need_lib_prefix 18151 18152# Do we need a version for libraries? 18153need_version=$need_version 18154 18155# Whether dlopen is supported. 18156dlopen_support=$enable_dlopen 18157 18158# Whether dlopen of programs is supported. 18159dlopen_self=$enable_dlopen_self 18160 18161# Whether dlopen of statically linked programs is supported. 18162dlopen_self_static=$enable_dlopen_self_static 18163 18164# Compiler flag to prevent dynamic linking. 18165link_static_flag=$lt_lt_prog_compiler_static_GCJ 18166 18167# Compiler flag to turn off builtin functions. 18168no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18169 18170# Compiler flag to allow reflexive dlopens. 18171export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18172 18173# Compiler flag to generate shared objects directly from archives. 18174whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18175 18176# Compiler flag to generate thread-safe objects. 18177thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18178 18179# Library versioning type. 18180version_type=$version_type 18181 18182# Format of library name prefix. 18183libname_spec=$lt_libname_spec 18184 18185# List of archive names. First name is the real one, the rest are links. 18186# The last name is the one that the linker finds with -lNAME. 18187library_names_spec=$lt_library_names_spec 18188 18189# The coded name of the library, if different from the real name. 18190soname_spec=$lt_soname_spec 18191 18192# Commands used to build and install an old-style archive. 18193RANLIB=$lt_RANLIB 18194old_archive_cmds=$lt_old_archive_cmds_GCJ 18195old_postinstall_cmds=$lt_old_postinstall_cmds 18196old_postuninstall_cmds=$lt_old_postuninstall_cmds 18197 18198# Create an old-style archive from a shared archive. 18199old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18200 18201# Create a temporary old-style archive to link instead of a shared archive. 18202old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18203 18204# Commands used to build and install a shared archive. 18205archive_cmds=$lt_archive_cmds_GCJ 18206archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18207postinstall_cmds=$lt_postinstall_cmds 18208postuninstall_cmds=$lt_postuninstall_cmds 18209 18210# Commands used to build a loadable module (assumed same as above if empty) 18211module_cmds=$lt_module_cmds_GCJ 18212module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18213 18214# Commands to strip libraries. 18215old_striplib=$lt_old_striplib 18216striplib=$lt_striplib 18217 18218# Dependencies to place before the objects being linked to create a 18219# shared library. 18220predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18221 18222# Dependencies to place after the objects being linked to create a 18223# shared library. 18224postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18225 18226# Dependencies to place before the objects being linked to create a 18227# shared library. 18228predeps=$lt_predeps_GCJ 18229 18230# Dependencies to place after the objects being linked to create a 18231# shared library. 18232postdeps=$lt_postdeps_GCJ 18233 18234# The library search path used internally by the compiler when linking 18235# a shared library. 18236compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18237 18238# Method to check whether dependent libraries are shared objects. 18239deplibs_check_method=$lt_deplibs_check_method 18240 18241# Command to use when deplibs_check_method == file_magic. 18242file_magic_cmd=$lt_file_magic_cmd 18243 18244# Flag that allows shared libraries with undefined symbols to be built. 18245allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18246 18247# Flag that forces no undefined symbols. 18248no_undefined_flag=$lt_no_undefined_flag_GCJ 18249 18250# Commands used to finish a libtool library installation in a directory. 18251finish_cmds=$lt_finish_cmds 18252 18253# Same as above, but a single script fragment to be evaled but not shown. 18254finish_eval=$lt_finish_eval 18255 18256# Take the output of nm and produce a listing of raw symbols and C names. 18257global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18258 18259# Transform the output of nm in a proper C declaration 18260global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18261 18262# Transform the output of nm in a C name address pair 18263global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18264 18265# This is the shared library runtime path variable. 18266runpath_var=$runpath_var 18267 18268# This is the shared library path variable. 18269shlibpath_var=$shlibpath_var 18270 18271# Is shlibpath searched before the hard-coded library search path? 18272shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18273 18274# How to hardcode a shared library path into an executable. 18275hardcode_action=$hardcode_action_GCJ 18276 18277# Whether we should hardcode library paths into libraries. 18278hardcode_into_libs=$hardcode_into_libs 18279 18280# Flag to hardcode \$libdir into a binary during linking. 18281# This must work even if \$libdir does not exist. 18282hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18283 18284# If ld is used when linking, flag to hardcode \$libdir into 18285# a binary during linking. This must work even if \$libdir does 18286# not exist. 18287hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18288 18289# Whether we need a single -rpath flag with a separated argument. 18290hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18291 18292# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18293# resulting binary. 18294hardcode_direct=$hardcode_direct_GCJ 18295 18296# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18297# resulting binary. 18298hardcode_minus_L=$hardcode_minus_L_GCJ 18299 18300# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18301# the resulting binary. 18302hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18303 18304# Set to yes if building a shared library automatically hardcodes DIR into the library 18305# and all subsequent libraries and executables linked against it. 18306hardcode_automatic=$hardcode_automatic_GCJ 18307 18308# Variables whose values should be saved in libtool wrapper scripts and 18309# restored at relink time. 18310variables_saved_for_relink="$variables_saved_for_relink" 18311 18312# Whether libtool must link a program against all its dependency libraries. 18313link_all_deplibs=$link_all_deplibs_GCJ 18314 18315# Compile-time system search path for libraries 18316sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18317 18318# Run-time system search path for libraries 18319sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18320 18321# Fix the shell variable \$srcfile for the compiler. 18322fix_srcfile_path="$fix_srcfile_path_GCJ" 18323 18324# Set to yes if exported symbols are required. 18325always_export_symbols=$always_export_symbols_GCJ 18326 18327# The commands to list exported symbols. 18328export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18329 18330# The commands to extract the exported symbol list from a shared archive. 18331extract_expsyms_cmds=$lt_extract_expsyms_cmds 18332 18333# Symbols that should not be listed in the preloaded symbols. 18334exclude_expsyms=$lt_exclude_expsyms_GCJ 18335 18336# Symbols that must always be exported. 18337include_expsyms=$lt_include_expsyms_GCJ 18338 18339# ### END LIBTOOL TAG CONFIG: $tagname 18340 18341__EOF__ 18342 18343 18344else 18345 # If there is no Makefile yet, we rely on a make rule to execute 18346 # `config.status --recheck' to rerun these tests and create the 18347 # libtool script then. 18348 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18349 if test -f "$ltmain_in"; then 18350 test -f Makefile && make "$ltmain" 18351 fi 18352fi 18353 18354 18355ac_ext=c 18356ac_cpp='$CPP $CPPFLAGS' 18357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18359ac_compiler_gnu=$ac_cv_c_compiler_gnu 18360 18361CC="$lt_save_CC" 18362 18363 else 18364 tagname="" 18365 fi 18366 ;; 18367 18368 RC) 18369 18370 18371 18372# Source file extension for RC test sources. 18373ac_ext=rc 18374 18375# Object file extension for compiled RC test sources. 18376objext=o 18377objext_RC=$objext 18378 18379# Code to be used in simple compile tests 18380lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18381 18382# Code to be used in simple link tests 18383lt_simple_link_test_code="$lt_simple_compile_test_code" 18384 18385# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18386 18387# If no C compiler was specified, use CC. 18388LTCC=${LTCC-"$CC"} 18389 18390# If no C compiler flags were specified, use CFLAGS. 18391LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18392 18393# Allow CC to be a program name with arguments. 18394compiler=$CC 18395 18396 18397# save warnings/boilerplate of simple test code 18398ac_outfile=conftest.$ac_objext 18399printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18400eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18401_lt_compiler_boilerplate=`cat conftest.err` 18402$rm conftest* 18403 18404ac_outfile=conftest.$ac_objext 18405printf "$lt_simple_link_test_code" >conftest.$ac_ext 18406eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18407_lt_linker_boilerplate=`cat conftest.err` 18408$rm conftest* 18409 18410 18411# Allow CC to be a program name with arguments. 18412lt_save_CC="$CC" 18413CC=${RC-"windres"} 18414compiler=$CC 18415compiler_RC=$CC 18416for cc_temp in $compiler""; do 18417 case $cc_temp in 18418 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18419 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18420 \-*) ;; 18421 *) break;; 18422 esac 18423done 18424cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18425 18426lt_cv_prog_compiler_c_o_RC=yes 18427 18428# The else clause should only fire when bootstrapping the 18429# libtool distribution, otherwise you forgot to ship ltmain.sh 18430# with your package, and you will get complaints that there are 18431# no rules to generate ltmain.sh. 18432if test -f "$ltmain"; then 18433 # See if we are running on zsh, and set the options which allow our commands through 18434 # without removal of \ escapes. 18435 if test -n "${ZSH_VERSION+set}" ; then 18436 setopt NO_GLOB_SUBST 18437 fi 18438 # Now quote all the things that may contain metacharacters while being 18439 # careful not to overquote the AC_SUBSTed values. We take copies of the 18440 # variables and quote the copies for generation of the libtool script. 18441 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18442 SED SHELL STRIP \ 18443 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18444 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18445 deplibs_check_method reload_flag reload_cmds need_locks \ 18446 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18447 lt_cv_sys_global_symbol_to_c_name_address \ 18448 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18449 old_postinstall_cmds old_postuninstall_cmds \ 18450 compiler_RC \ 18451 CC_RC \ 18452 LD_RC \ 18453 lt_prog_compiler_wl_RC \ 18454 lt_prog_compiler_pic_RC \ 18455 lt_prog_compiler_static_RC \ 18456 lt_prog_compiler_no_builtin_flag_RC \ 18457 export_dynamic_flag_spec_RC \ 18458 thread_safe_flag_spec_RC \ 18459 whole_archive_flag_spec_RC \ 18460 enable_shared_with_static_runtimes_RC \ 18461 old_archive_cmds_RC \ 18462 old_archive_from_new_cmds_RC \ 18463 predep_objects_RC \ 18464 postdep_objects_RC \ 18465 predeps_RC \ 18466 postdeps_RC \ 18467 compiler_lib_search_path_RC \ 18468 archive_cmds_RC \ 18469 archive_expsym_cmds_RC \ 18470 postinstall_cmds_RC \ 18471 postuninstall_cmds_RC \ 18472 old_archive_from_expsyms_cmds_RC \ 18473 allow_undefined_flag_RC \ 18474 no_undefined_flag_RC \ 18475 export_symbols_cmds_RC \ 18476 hardcode_libdir_flag_spec_RC \ 18477 hardcode_libdir_flag_spec_ld_RC \ 18478 hardcode_libdir_separator_RC \ 18479 hardcode_automatic_RC \ 18480 module_cmds_RC \ 18481 module_expsym_cmds_RC \ 18482 lt_cv_prog_compiler_c_o_RC \ 18483 exclude_expsyms_RC \ 18484 include_expsyms_RC; do 18485 18486 case $var in 18487 old_archive_cmds_RC | \ 18488 old_archive_from_new_cmds_RC | \ 18489 archive_cmds_RC | \ 18490 archive_expsym_cmds_RC | \ 18491 module_cmds_RC | \ 18492 module_expsym_cmds_RC | \ 18493 old_archive_from_expsyms_cmds_RC | \ 18494 export_symbols_cmds_RC | \ 18495 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18496 postinstall_cmds | postuninstall_cmds | \ 18497 old_postinstall_cmds | old_postuninstall_cmds | \ 18498 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18499 # Double-quote double-evaled strings. 18500 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18501 ;; 18502 *) 18503 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18504 ;; 18505 esac 18506 done 18507 18508 case $lt_echo in 18509 *'\$0 --fallback-echo"') 18510 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18511 ;; 18512 esac 18513 18514cfgfile="$ofile" 18515 18516 cat <<__EOF__ >> "$cfgfile" 18517# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18518 18519# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18520 18521# Shell to use when invoking shell scripts. 18522SHELL=$lt_SHELL 18523 18524# Whether or not to build shared libraries. 18525build_libtool_libs=$enable_shared 18526 18527# Whether or not to build static libraries. 18528build_old_libs=$enable_static 18529 18530# Whether or not to add -lc for building shared libraries. 18531build_libtool_need_lc=$archive_cmds_need_lc_RC 18532 18533# Whether or not to disallow shared libs when runtime libs are static 18534allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18535 18536# Whether or not to optimize for fast installation. 18537fast_install=$enable_fast_install 18538 18539# The host system. 18540host_alias=$host_alias 18541host=$host 18542host_os=$host_os 18543 18544# The build system. 18545build_alias=$build_alias 18546build=$build 18547build_os=$build_os 18548 18549# An echo program that does not interpret backslashes. 18550echo=$lt_echo 18551 18552# The archiver. 18553AR=$lt_AR 18554AR_FLAGS=$lt_AR_FLAGS 18555 18556# A C compiler. 18557LTCC=$lt_LTCC 18558 18559# LTCC compiler flags. 18560LTCFLAGS=$lt_LTCFLAGS 18561 18562# A language-specific compiler. 18563CC=$lt_compiler_RC 18564 18565# Is the compiler the GNU C compiler? 18566with_gcc=$GCC_RC 18567 18568gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 18569gcc_ver=\`gcc -dumpversion\` 18570 18571# An ERE matcher. 18572EGREP=$lt_EGREP 18573 18574# The linker used to build libraries. 18575LD=$lt_LD_RC 18576 18577# Whether we need hard or soft links. 18578LN_S=$lt_LN_S 18579 18580# A BSD-compatible nm program. 18581NM=$lt_NM 18582 18583# A symbol stripping program 18584STRIP=$lt_STRIP 18585 18586# Used to examine libraries when file_magic_cmd begins "file" 18587MAGIC_CMD=$MAGIC_CMD 18588 18589# Used on cygwin: DLL creation program. 18590DLLTOOL="$DLLTOOL" 18591 18592# Used on cygwin: object dumper. 18593OBJDUMP="$OBJDUMP" 18594 18595# Used on cygwin: assembler. 18596AS="$AS" 18597 18598# The name of the directory that contains temporary libtool files. 18599objdir=$objdir 18600 18601# How to create reloadable object files. 18602reload_flag=$lt_reload_flag 18603reload_cmds=$lt_reload_cmds 18604 18605# How to pass a linker flag through the compiler. 18606wl=$lt_lt_prog_compiler_wl_RC 18607 18608# Object file suffix (normally "o"). 18609objext="$ac_objext" 18610 18611# Old archive suffix (normally "a"). 18612libext="$libext" 18613 18614# Shared library suffix (normally ".so"). 18615shrext_cmds='$shrext_cmds' 18616 18617# Executable file suffix (normally ""). 18618exeext="$exeext" 18619 18620# Additional compiler flags for building library objects. 18621pic_flag=$lt_lt_prog_compiler_pic_RC 18622pic_mode=$pic_mode 18623 18624# What is the maximum length of a command? 18625max_cmd_len=$lt_cv_sys_max_cmd_len 18626 18627# Does compiler simultaneously support -c and -o options? 18628compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18629 18630# Must we lock files when doing compilation? 18631need_locks=$lt_need_locks 18632 18633# Do we need the lib prefix for modules? 18634need_lib_prefix=$need_lib_prefix 18635 18636# Do we need a version for libraries? 18637need_version=$need_version 18638 18639# Whether dlopen is supported. 18640dlopen_support=$enable_dlopen 18641 18642# Whether dlopen of programs is supported. 18643dlopen_self=$enable_dlopen_self 18644 18645# Whether dlopen of statically linked programs is supported. 18646dlopen_self_static=$enable_dlopen_self_static 18647 18648# Compiler flag to prevent dynamic linking. 18649link_static_flag=$lt_lt_prog_compiler_static_RC 18650 18651# Compiler flag to turn off builtin functions. 18652no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18653 18654# Compiler flag to allow reflexive dlopens. 18655export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18656 18657# Compiler flag to generate shared objects directly from archives. 18658whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18659 18660# Compiler flag to generate thread-safe objects. 18661thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18662 18663# Library versioning type. 18664version_type=$version_type 18665 18666# Format of library name prefix. 18667libname_spec=$lt_libname_spec 18668 18669# List of archive names. First name is the real one, the rest are links. 18670# The last name is the one that the linker finds with -lNAME. 18671library_names_spec=$lt_library_names_spec 18672 18673# The coded name of the library, if different from the real name. 18674soname_spec=$lt_soname_spec 18675 18676# Commands used to build and install an old-style archive. 18677RANLIB=$lt_RANLIB 18678old_archive_cmds=$lt_old_archive_cmds_RC 18679old_postinstall_cmds=$lt_old_postinstall_cmds 18680old_postuninstall_cmds=$lt_old_postuninstall_cmds 18681 18682# Create an old-style archive from a shared archive. 18683old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18684 18685# Create a temporary old-style archive to link instead of a shared archive. 18686old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18687 18688# Commands used to build and install a shared archive. 18689archive_cmds=$lt_archive_cmds_RC 18690archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18691postinstall_cmds=$lt_postinstall_cmds 18692postuninstall_cmds=$lt_postuninstall_cmds 18693 18694# Commands used to build a loadable module (assumed same as above if empty) 18695module_cmds=$lt_module_cmds_RC 18696module_expsym_cmds=$lt_module_expsym_cmds_RC 18697 18698# Commands to strip libraries. 18699old_striplib=$lt_old_striplib 18700striplib=$lt_striplib 18701 18702# Dependencies to place before the objects being linked to create a 18703# shared library. 18704predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18705 18706# Dependencies to place after the objects being linked to create a 18707# shared library. 18708postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18709 18710# Dependencies to place before the objects being linked to create a 18711# shared library. 18712predeps=$lt_predeps_RC 18713 18714# Dependencies to place after the objects being linked to create a 18715# shared library. 18716postdeps=$lt_postdeps_RC 18717 18718# The library search path used internally by the compiler when linking 18719# a shared library. 18720compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18721 18722# Method to check whether dependent libraries are shared objects. 18723deplibs_check_method=$lt_deplibs_check_method 18724 18725# Command to use when deplibs_check_method == file_magic. 18726file_magic_cmd=$lt_file_magic_cmd 18727 18728# Flag that allows shared libraries with undefined symbols to be built. 18729allow_undefined_flag=$lt_allow_undefined_flag_RC 18730 18731# Flag that forces no undefined symbols. 18732no_undefined_flag=$lt_no_undefined_flag_RC 18733 18734# Commands used to finish a libtool library installation in a directory. 18735finish_cmds=$lt_finish_cmds 18736 18737# Same as above, but a single script fragment to be evaled but not shown. 18738finish_eval=$lt_finish_eval 18739 18740# Take the output of nm and produce a listing of raw symbols and C names. 18741global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18742 18743# Transform the output of nm in a proper C declaration 18744global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18745 18746# Transform the output of nm in a C name address pair 18747global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18748 18749# This is the shared library runtime path variable. 18750runpath_var=$runpath_var 18751 18752# This is the shared library path variable. 18753shlibpath_var=$shlibpath_var 18754 18755# Is shlibpath searched before the hard-coded library search path? 18756shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18757 18758# How to hardcode a shared library path into an executable. 18759hardcode_action=$hardcode_action_RC 18760 18761# Whether we should hardcode library paths into libraries. 18762hardcode_into_libs=$hardcode_into_libs 18763 18764# Flag to hardcode \$libdir into a binary during linking. 18765# This must work even if \$libdir does not exist. 18766hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18767 18768# If ld is used when linking, flag to hardcode \$libdir into 18769# a binary during linking. This must work even if \$libdir does 18770# not exist. 18771hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18772 18773# Whether we need a single -rpath flag with a separated argument. 18774hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18775 18776# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18777# resulting binary. 18778hardcode_direct=$hardcode_direct_RC 18779 18780# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18781# resulting binary. 18782hardcode_minus_L=$hardcode_minus_L_RC 18783 18784# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18785# the resulting binary. 18786hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18787 18788# Set to yes if building a shared library automatically hardcodes DIR into the library 18789# and all subsequent libraries and executables linked against it. 18790hardcode_automatic=$hardcode_automatic_RC 18791 18792# Variables whose values should be saved in libtool wrapper scripts and 18793# restored at relink time. 18794variables_saved_for_relink="$variables_saved_for_relink" 18795 18796# Whether libtool must link a program against all its dependency libraries. 18797link_all_deplibs=$link_all_deplibs_RC 18798 18799# Compile-time system search path for libraries 18800sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18801 18802# Run-time system search path for libraries 18803sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18804 18805# Fix the shell variable \$srcfile for the compiler. 18806fix_srcfile_path="$fix_srcfile_path_RC" 18807 18808# Set to yes if exported symbols are required. 18809always_export_symbols=$always_export_symbols_RC 18810 18811# The commands to list exported symbols. 18812export_symbols_cmds=$lt_export_symbols_cmds_RC 18813 18814# The commands to extract the exported symbol list from a shared archive. 18815extract_expsyms_cmds=$lt_extract_expsyms_cmds 18816 18817# Symbols that should not be listed in the preloaded symbols. 18818exclude_expsyms=$lt_exclude_expsyms_RC 18819 18820# Symbols that must always be exported. 18821include_expsyms=$lt_include_expsyms_RC 18822 18823# ### END LIBTOOL TAG CONFIG: $tagname 18824 18825__EOF__ 18826 18827 18828else 18829 # If there is no Makefile yet, we rely on a make rule to execute 18830 # `config.status --recheck' to rerun these tests and create the 18831 # libtool script then. 18832 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18833 if test -f "$ltmain_in"; then 18834 test -f Makefile && make "$ltmain" 18835 fi 18836fi 18837 18838 18839ac_ext=c 18840ac_cpp='$CPP $CPPFLAGS' 18841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18843ac_compiler_gnu=$ac_cv_c_compiler_gnu 18844 18845CC="$lt_save_CC" 18846 18847 ;; 18848 18849 *) 18850 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18851echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18852 { (exit 1); exit 1; }; } 18853 ;; 18854 esac 18855 18856 # Append the new tag name to the list of available tags. 18857 if test -n "$tagname" ; then 18858 available_tags="$available_tags $tagname" 18859 fi 18860 fi 18861 done 18862 IFS="$lt_save_ifs" 18863 18864 # Now substitute the updated list of available tags. 18865 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18866 mv "${ofile}T" "$ofile" 18867 chmod +x "$ofile" 18868 else 18869 rm -f "${ofile}T" 18870 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18871echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18872 { (exit 1); exit 1; }; } 18873 fi 18874fi 18875 18876 18877 18878# This can be used to rebuild libtool when needed 18879LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18880 18881# Always use our own libtool. 18882LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18883 18884# Prevent multiple expansion 18885 18886 18887 18888 18889 18890 18891 18892 18893 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904 18905ac_ext=c 18906ac_cpp='$CPP $CPPFLAGS' 18907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18909ac_compiler_gnu=$ac_cv_c_compiler_gnu 18910if test -n "$ac_tool_prefix"; then 18911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 18912set dummy ${ac_tool_prefix}gcc; ac_word=$2 18913echo "$as_me:$LINENO: checking for $ac_word" >&5 18914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18915if test "${ac_cv_prog_CC+set}" = set; then 18916 echo $ECHO_N "(cached) $ECHO_C" >&6 18917else 18918 if test -n "$CC"; then 18919 ac_cv_prog_CC="$CC" # Let the user override the test. 18920else 18921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18922for as_dir in $PATH 18923do 18924 IFS=$as_save_IFS 18925 test -z "$as_dir" && as_dir=. 18926 for ac_exec_ext in '' $ac_executable_extensions; do 18927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18928 ac_cv_prog_CC="${ac_tool_prefix}gcc" 18929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18930 break 2 18931 fi 18932done 18933done 18934 18935fi 18936fi 18937CC=$ac_cv_prog_CC 18938if test -n "$CC"; then 18939 echo "$as_me:$LINENO: result: $CC" >&5 18940echo "${ECHO_T}$CC" >&6 18941else 18942 echo "$as_me:$LINENO: result: no" >&5 18943echo "${ECHO_T}no" >&6 18944fi 18945 18946fi 18947if test -z "$ac_cv_prog_CC"; then 18948 ac_ct_CC=$CC 18949 # Extract the first word of "gcc", so it can be a program name with args. 18950set dummy gcc; ac_word=$2 18951echo "$as_me:$LINENO: checking for $ac_word" >&5 18952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18953if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18954 echo $ECHO_N "(cached) $ECHO_C" >&6 18955else 18956 if test -n "$ac_ct_CC"; then 18957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18958else 18959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18960for as_dir in $PATH 18961do 18962 IFS=$as_save_IFS 18963 test -z "$as_dir" && as_dir=. 18964 for ac_exec_ext in '' $ac_executable_extensions; do 18965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18966 ac_cv_prog_ac_ct_CC="gcc" 18967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18968 break 2 18969 fi 18970done 18971done 18972 18973fi 18974fi 18975ac_ct_CC=$ac_cv_prog_ac_ct_CC 18976if test -n "$ac_ct_CC"; then 18977 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18978echo "${ECHO_T}$ac_ct_CC" >&6 18979else 18980 echo "$as_me:$LINENO: result: no" >&5 18981echo "${ECHO_T}no" >&6 18982fi 18983 18984 CC=$ac_ct_CC 18985else 18986 CC="$ac_cv_prog_CC" 18987fi 18988 18989if test -z "$CC"; then 18990 if test -n "$ac_tool_prefix"; then 18991 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 18992set dummy ${ac_tool_prefix}cc; ac_word=$2 18993echo "$as_me:$LINENO: checking for $ac_word" >&5 18994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18995if test "${ac_cv_prog_CC+set}" = set; then 18996 echo $ECHO_N "(cached) $ECHO_C" >&6 18997else 18998 if test -n "$CC"; then 18999 ac_cv_prog_CC="$CC" # Let the user override the test. 19000else 19001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19002for as_dir in $PATH 19003do 19004 IFS=$as_save_IFS 19005 test -z "$as_dir" && as_dir=. 19006 for ac_exec_ext in '' $ac_executable_extensions; do 19007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19008 ac_cv_prog_CC="${ac_tool_prefix}cc" 19009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19010 break 2 19011 fi 19012done 19013done 19014 19015fi 19016fi 19017CC=$ac_cv_prog_CC 19018if test -n "$CC"; then 19019 echo "$as_me:$LINENO: result: $CC" >&5 19020echo "${ECHO_T}$CC" >&6 19021else 19022 echo "$as_me:$LINENO: result: no" >&5 19023echo "${ECHO_T}no" >&6 19024fi 19025 19026fi 19027if test -z "$ac_cv_prog_CC"; then 19028 ac_ct_CC=$CC 19029 # Extract the first word of "cc", so it can be a program name with args. 19030set dummy cc; ac_word=$2 19031echo "$as_me:$LINENO: checking for $ac_word" >&5 19032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19033if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19034 echo $ECHO_N "(cached) $ECHO_C" >&6 19035else 19036 if test -n "$ac_ct_CC"; then 19037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19038else 19039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19040for as_dir in $PATH 19041do 19042 IFS=$as_save_IFS 19043 test -z "$as_dir" && as_dir=. 19044 for ac_exec_ext in '' $ac_executable_extensions; do 19045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19046 ac_cv_prog_ac_ct_CC="cc" 19047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19048 break 2 19049 fi 19050done 19051done 19052 19053fi 19054fi 19055ac_ct_CC=$ac_cv_prog_ac_ct_CC 19056if test -n "$ac_ct_CC"; then 19057 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19058echo "${ECHO_T}$ac_ct_CC" >&6 19059else 19060 echo "$as_me:$LINENO: result: no" >&5 19061echo "${ECHO_T}no" >&6 19062fi 19063 19064 CC=$ac_ct_CC 19065else 19066 CC="$ac_cv_prog_CC" 19067fi 19068 19069fi 19070if test -z "$CC"; then 19071 # Extract the first word of "cc", so it can be a program name with args. 19072set dummy cc; ac_word=$2 19073echo "$as_me:$LINENO: checking for $ac_word" >&5 19074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19075if test "${ac_cv_prog_CC+set}" = set; then 19076 echo $ECHO_N "(cached) $ECHO_C" >&6 19077else 19078 if test -n "$CC"; then 19079 ac_cv_prog_CC="$CC" # Let the user override the test. 19080else 19081 ac_prog_rejected=no 19082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19083for as_dir in $PATH 19084do 19085 IFS=$as_save_IFS 19086 test -z "$as_dir" && as_dir=. 19087 for ac_exec_ext in '' $ac_executable_extensions; do 19088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19089 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19090 ac_prog_rejected=yes 19091 continue 19092 fi 19093 ac_cv_prog_CC="cc" 19094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19095 break 2 19096 fi 19097done 19098done 19099 19100if test $ac_prog_rejected = yes; then 19101 # We found a bogon in the path, so make sure we never use it. 19102 set dummy $ac_cv_prog_CC 19103 shift 19104 if test $# != 0; then 19105 # We chose a different compiler from the bogus one. 19106 # However, it has the same basename, so the bogon will be chosen 19107 # first if we set CC to just the basename; use the full file name. 19108 shift 19109 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19110 fi 19111fi 19112fi 19113fi 19114CC=$ac_cv_prog_CC 19115if test -n "$CC"; then 19116 echo "$as_me:$LINENO: result: $CC" >&5 19117echo "${ECHO_T}$CC" >&6 19118else 19119 echo "$as_me:$LINENO: result: no" >&5 19120echo "${ECHO_T}no" >&6 19121fi 19122 19123fi 19124if test -z "$CC"; then 19125 if test -n "$ac_tool_prefix"; then 19126 for ac_prog in cl 19127 do 19128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19129set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19130echo "$as_me:$LINENO: checking for $ac_word" >&5 19131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19132if test "${ac_cv_prog_CC+set}" = set; then 19133 echo $ECHO_N "(cached) $ECHO_C" >&6 19134else 19135 if test -n "$CC"; then 19136 ac_cv_prog_CC="$CC" # Let the user override the test. 19137else 19138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19139for as_dir in $PATH 19140do 19141 IFS=$as_save_IFS 19142 test -z "$as_dir" && as_dir=. 19143 for ac_exec_ext in '' $ac_executable_extensions; do 19144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19145 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19147 break 2 19148 fi 19149done 19150done 19151 19152fi 19153fi 19154CC=$ac_cv_prog_CC 19155if test -n "$CC"; then 19156 echo "$as_me:$LINENO: result: $CC" >&5 19157echo "${ECHO_T}$CC" >&6 19158else 19159 echo "$as_me:$LINENO: result: no" >&5 19160echo "${ECHO_T}no" >&6 19161fi 19162 19163 test -n "$CC" && break 19164 done 19165fi 19166if test -z "$CC"; then 19167 ac_ct_CC=$CC 19168 for ac_prog in cl 19169do 19170 # Extract the first word of "$ac_prog", so it can be a program name with args. 19171set dummy $ac_prog; ac_word=$2 19172echo "$as_me:$LINENO: checking for $ac_word" >&5 19173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19174if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19175 echo $ECHO_N "(cached) $ECHO_C" >&6 19176else 19177 if test -n "$ac_ct_CC"; then 19178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19179else 19180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19181for as_dir in $PATH 19182do 19183 IFS=$as_save_IFS 19184 test -z "$as_dir" && as_dir=. 19185 for ac_exec_ext in '' $ac_executable_extensions; do 19186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19187 ac_cv_prog_ac_ct_CC="$ac_prog" 19188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19189 break 2 19190 fi 19191done 19192done 19193 19194fi 19195fi 19196ac_ct_CC=$ac_cv_prog_ac_ct_CC 19197if test -n "$ac_ct_CC"; then 19198 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19199echo "${ECHO_T}$ac_ct_CC" >&6 19200else 19201 echo "$as_me:$LINENO: result: no" >&5 19202echo "${ECHO_T}no" >&6 19203fi 19204 19205 test -n "$ac_ct_CC" && break 19206done 19207 19208 CC=$ac_ct_CC 19209fi 19210 19211fi 19212 19213 19214test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 19215See \`config.log' for more details." >&5 19216echo "$as_me: error: no acceptable C compiler found in \$PATH 19217See \`config.log' for more details." >&2;} 19218 { (exit 1); exit 1; }; } 19219 19220# Provide some information about the compiler. 19221echo "$as_me:$LINENO:" \ 19222 "checking for C compiler version" >&5 19223ac_compiler=`set X $ac_compile; echo $2` 19224{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 19225 (eval $ac_compiler --version </dev/null >&5) 2>&5 19226 ac_status=$? 19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19228 (exit $ac_status); } 19229{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 19230 (eval $ac_compiler -v </dev/null >&5) 2>&5 19231 ac_status=$? 19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19233 (exit $ac_status); } 19234{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 19235 (eval $ac_compiler -V </dev/null >&5) 2>&5 19236 ac_status=$? 19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19238 (exit $ac_status); } 19239 19240echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 19241echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 19242if test "${ac_cv_c_compiler_gnu+set}" = set; then 19243 echo $ECHO_N "(cached) $ECHO_C" >&6 19244else 19245 cat >conftest.$ac_ext <<_ACEOF 19246/* confdefs.h. */ 19247_ACEOF 19248cat confdefs.h >>conftest.$ac_ext 19249cat >>conftest.$ac_ext <<_ACEOF 19250/* end confdefs.h. */ 19251 19252int 19253main () 19254{ 19255#ifndef __GNUC__ 19256 choke me 19257#endif 19258 19259 ; 19260 return 0; 19261} 19262_ACEOF 19263rm -f conftest.$ac_objext 19264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19265 (eval $ac_compile) 2>conftest.er1 19266 ac_status=$? 19267 grep -v '^ *+' conftest.er1 >conftest.err 19268 rm -f conftest.er1 19269 cat conftest.err >&5 19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19271 (exit $ac_status); } && 19272 { ac_try='test -z "$ac_c_werror_flag" 19273 || test ! -s conftest.err' 19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19275 (eval $ac_try) 2>&5 19276 ac_status=$? 19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19278 (exit $ac_status); }; } && 19279 { ac_try='test -s conftest.$ac_objext' 19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19281 (eval $ac_try) 2>&5 19282 ac_status=$? 19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19284 (exit $ac_status); }; }; then 19285 ac_compiler_gnu=yes 19286else 19287 echo "$as_me: failed program was:" >&5 19288sed 's/^/| /' conftest.$ac_ext >&5 19289 19290ac_compiler_gnu=no 19291fi 19292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19293ac_cv_c_compiler_gnu=$ac_compiler_gnu 19294 19295fi 19296echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19297echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 19298GCC=`test $ac_compiler_gnu = yes && echo yes` 19299ac_test_CFLAGS=${CFLAGS+set} 19300ac_save_CFLAGS=$CFLAGS 19301CFLAGS="-g" 19302echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19303echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 19304if test "${ac_cv_prog_cc_g+set}" = set; then 19305 echo $ECHO_N "(cached) $ECHO_C" >&6 19306else 19307 cat >conftest.$ac_ext <<_ACEOF 19308/* confdefs.h. */ 19309_ACEOF 19310cat confdefs.h >>conftest.$ac_ext 19311cat >>conftest.$ac_ext <<_ACEOF 19312/* end confdefs.h. */ 19313 19314int 19315main () 19316{ 19317 19318 ; 19319 return 0; 19320} 19321_ACEOF 19322rm -f conftest.$ac_objext 19323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19324 (eval $ac_compile) 2>conftest.er1 19325 ac_status=$? 19326 grep -v '^ *+' conftest.er1 >conftest.err 19327 rm -f conftest.er1 19328 cat conftest.err >&5 19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19330 (exit $ac_status); } && 19331 { ac_try='test -z "$ac_c_werror_flag" 19332 || test ! -s conftest.err' 19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19334 (eval $ac_try) 2>&5 19335 ac_status=$? 19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19337 (exit $ac_status); }; } && 19338 { ac_try='test -s conftest.$ac_objext' 19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19340 (eval $ac_try) 2>&5 19341 ac_status=$? 19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19343 (exit $ac_status); }; }; then 19344 ac_cv_prog_cc_g=yes 19345else 19346 echo "$as_me: failed program was:" >&5 19347sed 's/^/| /' conftest.$ac_ext >&5 19348 19349ac_cv_prog_cc_g=no 19350fi 19351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19352fi 19353echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19354echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 19355if test "$ac_test_CFLAGS" = set; then 19356 CFLAGS=$ac_save_CFLAGS 19357elif test $ac_cv_prog_cc_g = yes; then 19358 if test "$GCC" = yes; then 19359 CFLAGS="-g -O2" 19360 else 19361 CFLAGS="-g" 19362 fi 19363else 19364 if test "$GCC" = yes; then 19365 CFLAGS="-O2" 19366 else 19367 CFLAGS= 19368 fi 19369fi 19370echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 19371echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 19372if test "${ac_cv_prog_cc_stdc+set}" = set; then 19373 echo $ECHO_N "(cached) $ECHO_C" >&6 19374else 19375 ac_cv_prog_cc_stdc=no 19376ac_save_CC=$CC 19377cat >conftest.$ac_ext <<_ACEOF 19378/* confdefs.h. */ 19379_ACEOF 19380cat confdefs.h >>conftest.$ac_ext 19381cat >>conftest.$ac_ext <<_ACEOF 19382/* end confdefs.h. */ 19383#include <stdarg.h> 19384#include <stdio.h> 19385#include <sys/types.h> 19386#include <sys/stat.h> 19387/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19388struct buf { int x; }; 19389FILE * (*rcsopen) (struct buf *, struct stat *, int); 19390static char *e (p, i) 19391 char **p; 19392 int i; 19393{ 19394 return p[i]; 19395} 19396static char *f (char * (*g) (char **, int), char **p, ...) 19397{ 19398 char *s; 19399 va_list v; 19400 va_start (v,p); 19401 s = g (p, va_arg (v,int)); 19402 va_end (v); 19403 return s; 19404} 19405 19406/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19407 function prototypes and stuff, but not '\xHH' hex character constants. 19408 These don't provoke an error unfortunately, instead are silently treated 19409 as 'x'. The following induces an error, until -std1 is added to get 19410 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19411 array size at least. It's necessary to write '\x00'==0 to get something 19412 that's true only with -std1. */ 19413int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19414 19415int test (int i, double x); 19416struct s1 {int (*f) (int a);}; 19417struct s2 {int (*f) (double a);}; 19418int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19419int argc; 19420char **argv; 19421int 19422main () 19423{ 19424return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19425 ; 19426 return 0; 19427} 19428_ACEOF 19429# Don't try gcc -ansi; that turns off useful extensions and 19430# breaks some systems' header files. 19431# AIX -qlanglvl=ansi 19432# Ultrix and OSF/1 -std1 19433# HP-UX 10.20 and later -Ae 19434# HP-UX older versions -Aa -D_HPUX_SOURCE 19435# SVR4 -Xc -D__EXTENSIONS__ 19436for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19437do 19438 CC="$ac_save_CC $ac_arg" 19439 rm -f conftest.$ac_objext 19440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19441 (eval $ac_compile) 2>conftest.er1 19442 ac_status=$? 19443 grep -v '^ *+' conftest.er1 >conftest.err 19444 rm -f conftest.er1 19445 cat conftest.err >&5 19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19447 (exit $ac_status); } && 19448 { ac_try='test -z "$ac_c_werror_flag" 19449 || test ! -s conftest.err' 19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19451 (eval $ac_try) 2>&5 19452 ac_status=$? 19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19454 (exit $ac_status); }; } && 19455 { ac_try='test -s conftest.$ac_objext' 19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19457 (eval $ac_try) 2>&5 19458 ac_status=$? 19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19460 (exit $ac_status); }; }; then 19461 ac_cv_prog_cc_stdc=$ac_arg 19462break 19463else 19464 echo "$as_me: failed program was:" >&5 19465sed 's/^/| /' conftest.$ac_ext >&5 19466 19467fi 19468rm -f conftest.err conftest.$ac_objext 19469done 19470rm -f conftest.$ac_ext conftest.$ac_objext 19471CC=$ac_save_CC 19472 19473fi 19474 19475case "x$ac_cv_prog_cc_stdc" in 19476 x|xno) 19477 echo "$as_me:$LINENO: result: none needed" >&5 19478echo "${ECHO_T}none needed" >&6 ;; 19479 *) 19480 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 19481echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 19482 CC="$CC $ac_cv_prog_cc_stdc" ;; 19483esac 19484 19485# Some people use a C++ compiler to compile C. Since we use `exit', 19486# in C++ we need to declare it. In case someone uses the same compiler 19487# for both compiling C and C++ we need to have the C++ compiler decide 19488# the declaration of exit, since it's the most demanding environment. 19489cat >conftest.$ac_ext <<_ACEOF 19490#ifndef __cplusplus 19491 choke me 19492#endif 19493_ACEOF 19494rm -f conftest.$ac_objext 19495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19496 (eval $ac_compile) 2>conftest.er1 19497 ac_status=$? 19498 grep -v '^ *+' conftest.er1 >conftest.err 19499 rm -f conftest.er1 19500 cat conftest.err >&5 19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19502 (exit $ac_status); } && 19503 { ac_try='test -z "$ac_c_werror_flag" 19504 || test ! -s conftest.err' 19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19506 (eval $ac_try) 2>&5 19507 ac_status=$? 19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19509 (exit $ac_status); }; } && 19510 { ac_try='test -s conftest.$ac_objext' 19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19512 (eval $ac_try) 2>&5 19513 ac_status=$? 19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19515 (exit $ac_status); }; }; then 19516 for ac_declaration in \ 19517 '' \ 19518 'extern "C" void std::exit (int) throw (); using std::exit;' \ 19519 'extern "C" void std::exit (int); using std::exit;' \ 19520 'extern "C" void exit (int) throw ();' \ 19521 'extern "C" void exit (int);' \ 19522 'void exit (int);' 19523do 19524 cat >conftest.$ac_ext <<_ACEOF 19525/* confdefs.h. */ 19526_ACEOF 19527cat confdefs.h >>conftest.$ac_ext 19528cat >>conftest.$ac_ext <<_ACEOF 19529/* end confdefs.h. */ 19530$ac_declaration 19531#include <stdlib.h> 19532int 19533main () 19534{ 19535exit (42); 19536 ; 19537 return 0; 19538} 19539_ACEOF 19540rm -f conftest.$ac_objext 19541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19542 (eval $ac_compile) 2>conftest.er1 19543 ac_status=$? 19544 grep -v '^ *+' conftest.er1 >conftest.err 19545 rm -f conftest.er1 19546 cat conftest.err >&5 19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19548 (exit $ac_status); } && 19549 { ac_try='test -z "$ac_c_werror_flag" 19550 || test ! -s conftest.err' 19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19552 (eval $ac_try) 2>&5 19553 ac_status=$? 19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19555 (exit $ac_status); }; } && 19556 { ac_try='test -s conftest.$ac_objext' 19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19558 (eval $ac_try) 2>&5 19559 ac_status=$? 19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19561 (exit $ac_status); }; }; then 19562 : 19563else 19564 echo "$as_me: failed program was:" >&5 19565sed 's/^/| /' conftest.$ac_ext >&5 19566 19567continue 19568fi 19569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19570 cat >conftest.$ac_ext <<_ACEOF 19571/* confdefs.h. */ 19572_ACEOF 19573cat confdefs.h >>conftest.$ac_ext 19574cat >>conftest.$ac_ext <<_ACEOF 19575/* end confdefs.h. */ 19576$ac_declaration 19577int 19578main () 19579{ 19580exit (42); 19581 ; 19582 return 0; 19583} 19584_ACEOF 19585rm -f conftest.$ac_objext 19586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19587 (eval $ac_compile) 2>conftest.er1 19588 ac_status=$? 19589 grep -v '^ *+' conftest.er1 >conftest.err 19590 rm -f conftest.er1 19591 cat conftest.err >&5 19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19593 (exit $ac_status); } && 19594 { ac_try='test -z "$ac_c_werror_flag" 19595 || test ! -s conftest.err' 19596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19597 (eval $ac_try) 2>&5 19598 ac_status=$? 19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19600 (exit $ac_status); }; } && 19601 { ac_try='test -s conftest.$ac_objext' 19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19603 (eval $ac_try) 2>&5 19604 ac_status=$? 19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19606 (exit $ac_status); }; }; then 19607 break 19608else 19609 echo "$as_me: failed program was:" >&5 19610sed 's/^/| /' conftest.$ac_ext >&5 19611 19612fi 19613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19614done 19615rm -f conftest* 19616if test -n "$ac_declaration"; then 19617 echo '#ifdef __cplusplus' >>confdefs.h 19618 echo $ac_declaration >>confdefs.h 19619 echo '#endif' >>confdefs.h 19620fi 19621 19622else 19623 echo "$as_me: failed program was:" >&5 19624sed 's/^/| /' conftest.$ac_ext >&5 19625 19626fi 19627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19628ac_ext=c 19629ac_cpp='$CPP $CPPFLAGS' 19630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19632ac_compiler_gnu=$ac_cv_c_compiler_gnu 19633 19634depcc="$CC" am_compiler_list= 19635 19636echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19637echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 19638if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 19639 echo $ECHO_N "(cached) $ECHO_C" >&6 19640else 19641 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19642 # We make a subdir and do the tests there. Otherwise we can end up 19643 # making bogus files that we don't know about and never remove. For 19644 # instance it was reported that on HP-UX the gcc test will end up 19645 # making a dummy file named `D' -- because `-MD' means `put the output 19646 # in D'. 19647 mkdir conftest.dir 19648 # Copy depcomp to subdir because otherwise we won't find it if we're 19649 # using a relative directory. 19650 cp "$am_depcomp" conftest.dir 19651 cd conftest.dir 19652 # We will build objects and dependencies in a subdirectory because 19653 # it helps to detect inapplicable dependency modes. For instance 19654 # both Tru64's cc and ICC support -MD to output dependencies as a 19655 # side effect of compilation, but ICC will put the dependencies in 19656 # the current directory while Tru64 will put them in the object 19657 # directory. 19658 mkdir sub 19659 19660 am_cv_CC_dependencies_compiler_type=none 19661 if test "$am_compiler_list" = ""; then 19662 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19663 fi 19664 for depmode in $am_compiler_list; do 19665 # Setup a source with many dependencies, because some compilers 19666 # like to wrap large dependency lists on column 80 (with \), and 19667 # we should not choose a depcomp mode which is confused by this. 19668 # 19669 # We need to recreate these files for each test, as the compiler may 19670 # overwrite some of them when testing with obscure command lines. 19671 # This happens at least with the AIX C compiler. 19672 : > sub/conftest.c 19673 for i in 1 2 3 4 5 6; do 19674 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19675 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19676 # Solaris 8's {/usr,}/bin/sh. 19677 touch sub/conftst$i.h 19678 done 19679 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19680 19681 case $depmode in 19682 nosideeffect) 19683 # after this tag, mechanisms are not by side-effect, so they'll 19684 # only be used when explicitly requested 19685 if test "x$enable_dependency_tracking" = xyes; then 19686 continue 19687 else 19688 break 19689 fi 19690 ;; 19691 none) break ;; 19692 esac 19693 # We check with `-c' and `-o' for the sake of the "dashmstdout" 19694 # mode. It turns out that the SunPro C++ compiler does not properly 19695 # handle `-M -o', and we need to detect this. 19696 if depmode=$depmode \ 19697 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 19698 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19699 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 19700 >/dev/null 2>conftest.err && 19701 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19702 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 19703 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19704 # icc doesn't choke on unknown options, it will just issue warnings 19705 # or remarks (even with -Werror). So we grep stderr for any message 19706 # that says an option was ignored or not supported. 19707 # When given -MP, icc 7.0 and 7.1 complain thusly: 19708 # icc: Command line warning: ignoring option '-M'; no argument required 19709 # The diagnosis changed in icc 8.0: 19710 # icc: Command line remark: option '-MP' not supported 19711 if (grep 'ignoring option' conftest.err || 19712 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19713 am_cv_CC_dependencies_compiler_type=$depmode 19714 break 19715 fi 19716 fi 19717 done 19718 19719 cd .. 19720 rm -rf conftest.dir 19721else 19722 am_cv_CC_dependencies_compiler_type=none 19723fi 19724 19725fi 19726echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 19727echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 19728CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 19729 19730 19731 19732if 19733 test "x$enable_dependency_tracking" != xno \ 19734 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 19735 am__fastdepCC_TRUE= 19736 am__fastdepCC_FALSE='#' 19737else 19738 am__fastdepCC_TRUE='#' 19739 am__fastdepCC_FALSE= 19740fi 19741 19742 19743#AC_MINGW32 19744#AC_CYGWIN 19745 19746 19747case "$target" in 19748 *-*-darwin* | *-*-macos*) 19749 cat >conftest.$ac_ext <<_ACEOF 19750/* confdefs.h. */ 19751_ACEOF 19752cat confdefs.h >>conftest.$ac_ext 19753cat >>conftest.$ac_ext <<_ACEOF 19754/* end confdefs.h. */ 19755 19756 #include <OpenGL/gl.h> 19757 19758int 19759main () 19760{ 19761 19762 19763 ; 19764 return 0; 19765} 19766_ACEOF 19767rm -f conftest.$ac_objext 19768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19769 (eval $ac_compile) 2>conftest.er1 19770 ac_status=$? 19771 grep -v '^ *+' conftest.er1 >conftest.err 19772 rm -f conftest.er1 19773 cat conftest.err >&5 19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19775 (exit $ac_status); } && 19776 { ac_try='test -z "$ac_c_werror_flag" 19777 || test ! -s conftest.err' 19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19779 (eval $ac_try) 2>&5 19780 ac_status=$? 19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19782 (exit $ac_status); }; } && 19783 { ac_try='test -s conftest.$ac_objext' 19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19785 (eval $ac_try) 2>&5 19786 ac_status=$? 19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19788 (exit $ac_status); }; }; then 19789 19790 LIBS="$LIBS -framework OpenGL -framework AGL" 19791 19792else 19793 echo "$as_me: failed program was:" >&5 19794sed 's/^/| /' conftest.$ac_ext >&5 19795 19796 19797 cat >conftest.$ac_ext <<_ACEOF 19798/* confdefs.h. */ 19799_ACEOF 19800cat confdefs.h >>conftest.$ac_ext 19801cat >>conftest.$ac_ext <<_ACEOF 19802/* end confdefs.h. */ 19803 19804 #include <GL/gl.h> 19805 19806int 19807main () 19808{ 19809 19810 19811 ; 19812 return 0; 19813} 19814_ACEOF 19815rm -f conftest.$ac_objext 19816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19817 (eval $ac_compile) 2>conftest.er1 19818 ac_status=$? 19819 grep -v '^ *+' conftest.er1 >conftest.err 19820 rm -f conftest.er1 19821 cat conftest.err >&5 19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19823 (exit $ac_status); } && 19824 { ac_try='test -z "$ac_c_werror_flag" 19825 || test ! -s conftest.err' 19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19827 (eval $ac_try) 2>&5 19828 ac_status=$? 19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19830 (exit $ac_status); }; } && 19831 { ac_try='test -s conftest.$ac_objext' 19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19833 (eval $ac_try) 2>&5 19834 ac_status=$? 19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19836 (exit $ac_status); }; }; then 19837 19838 LIBS="$LIBS -lGL" 19839 19840else 19841 echo "$as_me: failed program was:" >&5 19842sed 's/^/| /' conftest.$ac_ext >&5 19843 19844 19845 { { echo "$as_me:$LINENO: error: Cannot find OpenGL" >&5 19846echo "$as_me: error: Cannot find OpenGL" >&2;} 19847 { (exit 1); exit 1; }; } 19848 19849fi 19850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19851 19852fi 19853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19854 ;; 19855 *-*-linux*) 19856 echo "$as_me:$LINENO: checking for X" >&5 19857echo $ECHO_N "checking for X... $ECHO_C" >&6 19858 19859 19860# Check whether --with-x or --without-x was given. 19861if test "${with_x+set}" = set; then 19862 withval="$with_x" 19863 19864fi; 19865# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 19866if test "x$with_x" = xno; then 19867 # The user explicitly disabled X. 19868 have_x=disabled 19869else 19870 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 19871 # Both variables are already set. 19872 have_x=yes 19873 else 19874 if test "${ac_cv_have_x+set}" = set; then 19875 echo $ECHO_N "(cached) $ECHO_C" >&6 19876else 19877 # One or both of the vars are not set, and there is no cached value. 19878ac_x_includes=no ac_x_libraries=no 19879rm -fr conftest.dir 19880if mkdir conftest.dir; then 19881 cd conftest.dir 19882 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 19883 cat >Imakefile <<'_ACEOF' 19884acfindx: 19885 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 19886_ACEOF 19887 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 19888 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 19889 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 19890 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 19891 for ac_extension in a so sl; do 19892 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 19893 test -f $ac_im_libdir/libX11.$ac_extension; then 19894 ac_im_usrlibdir=$ac_im_libdir; break 19895 fi 19896 done 19897 # Screen out bogus values from the imake configuration. They are 19898 # bogus both because they are the default anyway, and because 19899 # using them would break gcc on systems where it needs fixed includes. 19900 case $ac_im_incroot in 19901 /usr/include) ;; 19902 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 19903 esac 19904 case $ac_im_usrlibdir in 19905 /usr/lib | /lib) ;; 19906 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 19907 esac 19908 fi 19909 cd .. 19910 rm -fr conftest.dir 19911fi 19912 19913# Standard set of common directories for X headers. 19914# Check X11 before X11Rn because it is often a symlink to the current release. 19915ac_x_header_dirs=' 19916/usr/X11/include 19917/usr/X11R6/include 19918/usr/X11R5/include 19919/usr/X11R4/include 19920 19921/usr/include/X11 19922/usr/include/X11R6 19923/usr/include/X11R5 19924/usr/include/X11R4 19925 19926/usr/local/X11/include 19927/usr/local/X11R6/include 19928/usr/local/X11R5/include 19929/usr/local/X11R4/include 19930 19931/usr/local/include/X11 19932/usr/local/include/X11R6 19933/usr/local/include/X11R5 19934/usr/local/include/X11R4 19935 19936/usr/X386/include 19937/usr/x386/include 19938/usr/XFree86/include/X11 19939 19940/usr/include 19941/usr/local/include 19942/usr/unsupported/include 19943/usr/athena/include 19944/usr/local/x11r5/include 19945/usr/lpp/Xamples/include 19946 19947/usr/openwin/include 19948/usr/openwin/share/include' 19949 19950if test "$ac_x_includes" = no; then 19951 # Guess where to find include files, by looking for Xlib.h. 19952 # First, try using that file with no special directory specified. 19953 cat >conftest.$ac_ext <<_ACEOF 19954/* confdefs.h. */ 19955_ACEOF 19956cat confdefs.h >>conftest.$ac_ext 19957cat >>conftest.$ac_ext <<_ACEOF 19958/* end confdefs.h. */ 19959#include <X11/Xlib.h> 19960_ACEOF 19961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19963 ac_status=$? 19964 grep -v '^ *+' conftest.er1 >conftest.err 19965 rm -f conftest.er1 19966 cat conftest.err >&5 19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19968 (exit $ac_status); } >/dev/null; then 19969 if test -s conftest.err; then 19970 ac_cpp_err=$ac_c_preproc_warn_flag 19971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19972 else 19973 ac_cpp_err= 19974 fi 19975else 19976 ac_cpp_err=yes 19977fi 19978if test -z "$ac_cpp_err"; then 19979 # We can compile using X headers with no special include directory. 19980ac_x_includes= 19981else 19982 echo "$as_me: failed program was:" >&5 19983sed 's/^/| /' conftest.$ac_ext >&5 19984 19985 for ac_dir in $ac_x_header_dirs; do 19986 if test -r "$ac_dir/X11/Xlib.h"; then 19987 ac_x_includes=$ac_dir 19988 break 19989 fi 19990done 19991fi 19992rm -f conftest.err conftest.$ac_ext 19993fi # $ac_x_includes = no 19994 19995if test "$ac_x_libraries" = no; then 19996 # Check for the libraries. 19997 # See if we find them without any special options. 19998 # Don't add to $LIBS permanently. 19999 ac_save_LIBS=$LIBS 20000 LIBS="-lX11 $LIBS" 20001 cat >conftest.$ac_ext <<_ACEOF 20002/* confdefs.h. */ 20003_ACEOF 20004cat confdefs.h >>conftest.$ac_ext 20005cat >>conftest.$ac_ext <<_ACEOF 20006/* end confdefs.h. */ 20007#include <X11/Xlib.h> 20008int 20009main () 20010{ 20011XrmInitialize () 20012 ; 20013 return 0; 20014} 20015_ACEOF 20016rm -f conftest.$ac_objext conftest$ac_exeext 20017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20018 (eval $ac_link) 2>conftest.er1 20019 ac_status=$? 20020 grep -v '^ *+' conftest.er1 >conftest.err 20021 rm -f conftest.er1 20022 cat conftest.err >&5 20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20024 (exit $ac_status); } && 20025 { ac_try='test -z "$ac_c_werror_flag" 20026 || test ! -s conftest.err' 20027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20028 (eval $ac_try) 2>&5 20029 ac_status=$? 20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20031 (exit $ac_status); }; } && 20032 { ac_try='test -s conftest$ac_exeext' 20033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20034 (eval $ac_try) 2>&5 20035 ac_status=$? 20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20037 (exit $ac_status); }; }; then 20038 LIBS=$ac_save_LIBS 20039# We can link X programs with no special library path. 20040ac_x_libraries= 20041else 20042 echo "$as_me: failed program was:" >&5 20043sed 's/^/| /' conftest.$ac_ext >&5 20044 20045LIBS=$ac_save_LIBS 20046for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 20047do 20048 # Don't even attempt the hair of trying to link an X program! 20049 for ac_extension in a so sl; do 20050 if test -r $ac_dir/libXt.$ac_extension; then 20051 ac_x_libraries=$ac_dir 20052 break 2 20053 fi 20054 done 20055done 20056fi 20057rm -f conftest.err conftest.$ac_objext \ 20058 conftest$ac_exeext conftest.$ac_ext 20059fi # $ac_x_libraries = no 20060 20061if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 20062 # Didn't find X anywhere. Cache the known absence of X. 20063 ac_cv_have_x="have_x=no" 20064else 20065 # Record where we found X for the cache. 20066 ac_cv_have_x="have_x=yes \ 20067 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 20068fi 20069fi 20070 20071 fi 20072 eval "$ac_cv_have_x" 20073fi # $with_x != no 20074 20075if test "$have_x" != yes; then 20076 echo "$as_me:$LINENO: result: $have_x" >&5 20077echo "${ECHO_T}$have_x" >&6 20078 no_x=yes 20079else 20080 # If each of the values was on the command line, it overrides each guess. 20081 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 20082 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 20083 # Update the cache value to reflect the command line values. 20084 ac_cv_have_x="have_x=yes \ 20085 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 20086 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 20087echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 20088fi 20089 20090 if test "$no_x" = yes; then 20091 # Not all programs may use this symbol, but it does not hurt to define it. 20092 20093cat >>confdefs.h <<\_ACEOF 20094#define X_DISPLAY_MISSING 1 20095_ACEOF 20096 20097 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 20098else 20099 if test -n "$x_includes"; then 20100 X_CFLAGS="$X_CFLAGS -I$x_includes" 20101 fi 20102 20103 # It would also be nice to do this for all -L options, not just this one. 20104 if test -n "$x_libraries"; then 20105 X_LIBS="$X_LIBS -L$x_libraries" 20106 # For Solaris; some versions of Sun CC require a space after -R and 20107 # others require no space. Words are not sufficient . . . . 20108 case `(uname -sr) 2>/dev/null` in 20109 "SunOS 5"*) 20110 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 20111echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 20112 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 20113 cat >conftest.$ac_ext <<_ACEOF 20114/* confdefs.h. */ 20115_ACEOF 20116cat confdefs.h >>conftest.$ac_ext 20117cat >>conftest.$ac_ext <<_ACEOF 20118/* end confdefs.h. */ 20119 20120int 20121main () 20122{ 20123 20124 ; 20125 return 0; 20126} 20127_ACEOF 20128rm -f conftest.$ac_objext conftest$ac_exeext 20129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20130 (eval $ac_link) 2>conftest.er1 20131 ac_status=$? 20132 grep -v '^ *+' conftest.er1 >conftest.err 20133 rm -f conftest.er1 20134 cat conftest.err >&5 20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20136 (exit $ac_status); } && 20137 { ac_try='test -z "$ac_c_werror_flag" 20138 || test ! -s conftest.err' 20139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20140 (eval $ac_try) 2>&5 20141 ac_status=$? 20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20143 (exit $ac_status); }; } && 20144 { ac_try='test -s conftest$ac_exeext' 20145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20146 (eval $ac_try) 2>&5 20147 ac_status=$? 20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20149 (exit $ac_status); }; }; then 20150 ac_R_nospace=yes 20151else 20152 echo "$as_me: failed program was:" >&5 20153sed 's/^/| /' conftest.$ac_ext >&5 20154 20155ac_R_nospace=no 20156fi 20157rm -f conftest.err conftest.$ac_objext \ 20158 conftest$ac_exeext conftest.$ac_ext 20159 if test $ac_R_nospace = yes; then 20160 echo "$as_me:$LINENO: result: no" >&5 20161echo "${ECHO_T}no" >&6 20162 X_LIBS="$X_LIBS -R$x_libraries" 20163 else 20164 LIBS="$ac_xsave_LIBS -R $x_libraries" 20165 cat >conftest.$ac_ext <<_ACEOF 20166/* confdefs.h. */ 20167_ACEOF 20168cat confdefs.h >>conftest.$ac_ext 20169cat >>conftest.$ac_ext <<_ACEOF 20170/* end confdefs.h. */ 20171 20172int 20173main () 20174{ 20175 20176 ; 20177 return 0; 20178} 20179_ACEOF 20180rm -f conftest.$ac_objext conftest$ac_exeext 20181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20182 (eval $ac_link) 2>conftest.er1 20183 ac_status=$? 20184 grep -v '^ *+' conftest.er1 >conftest.err 20185 rm -f conftest.er1 20186 cat conftest.err >&5 20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20188 (exit $ac_status); } && 20189 { ac_try='test -z "$ac_c_werror_flag" 20190 || test ! -s conftest.err' 20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20192 (eval $ac_try) 2>&5 20193 ac_status=$? 20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20195 (exit $ac_status); }; } && 20196 { ac_try='test -s conftest$ac_exeext' 20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20198 (eval $ac_try) 2>&5 20199 ac_status=$? 20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20201 (exit $ac_status); }; }; then 20202 ac_R_space=yes 20203else 20204 echo "$as_me: failed program was:" >&5 20205sed 's/^/| /' conftest.$ac_ext >&5 20206 20207ac_R_space=no 20208fi 20209rm -f conftest.err conftest.$ac_objext \ 20210 conftest$ac_exeext conftest.$ac_ext 20211 if test $ac_R_space = yes; then 20212 echo "$as_me:$LINENO: result: yes" >&5 20213echo "${ECHO_T}yes" >&6 20214 X_LIBS="$X_LIBS -R $x_libraries" 20215 else 20216 echo "$as_me:$LINENO: result: neither works" >&5 20217echo "${ECHO_T}neither works" >&6 20218 fi 20219 fi 20220 LIBS=$ac_xsave_LIBS 20221 esac 20222 fi 20223 20224 # Check for system-dependent libraries X programs must link with. 20225 # Do this before checking for the system-independent R6 libraries 20226 # (-lICE), since we may need -lsocket or whatever for X linking. 20227 20228 if test "$ISC" = yes; then 20229 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 20230 else 20231 # Martyn Johnson says this is needed for Ultrix, if the X 20232 # libraries were built with DECnet support. And Karl Berry says 20233 # the Alpha needs dnet_stub (dnet does not exist). 20234 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 20235 cat >conftest.$ac_ext <<_ACEOF 20236/* confdefs.h. */ 20237_ACEOF 20238cat confdefs.h >>conftest.$ac_ext 20239cat >>conftest.$ac_ext <<_ACEOF 20240/* end confdefs.h. */ 20241 20242/* Override any gcc2 internal prototype to avoid an error. */ 20243#ifdef __cplusplus 20244extern "C" 20245#endif 20246/* We use char because int might match the return type of a gcc2 20247 builtin and then its argument prototype would still apply. */ 20248char XOpenDisplay (); 20249int 20250main () 20251{ 20252XOpenDisplay (); 20253 ; 20254 return 0; 20255} 20256_ACEOF 20257rm -f conftest.$ac_objext conftest$ac_exeext 20258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20259 (eval $ac_link) 2>conftest.er1 20260 ac_status=$? 20261 grep -v '^ *+' conftest.er1 >conftest.err 20262 rm -f conftest.er1 20263 cat conftest.err >&5 20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20265 (exit $ac_status); } && 20266 { ac_try='test -z "$ac_c_werror_flag" 20267 || test ! -s conftest.err' 20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20269 (eval $ac_try) 2>&5 20270 ac_status=$? 20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20272 (exit $ac_status); }; } && 20273 { ac_try='test -s conftest$ac_exeext' 20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20275 (eval $ac_try) 2>&5 20276 ac_status=$? 20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20278 (exit $ac_status); }; }; then 20279 : 20280else 20281 echo "$as_me: failed program was:" >&5 20282sed 's/^/| /' conftest.$ac_ext >&5 20283 20284echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 20285echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 20286if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 20287 echo $ECHO_N "(cached) $ECHO_C" >&6 20288else 20289 ac_check_lib_save_LIBS=$LIBS 20290LIBS="-ldnet $LIBS" 20291cat >conftest.$ac_ext <<_ACEOF 20292/* confdefs.h. */ 20293_ACEOF 20294cat confdefs.h >>conftest.$ac_ext 20295cat >>conftest.$ac_ext <<_ACEOF 20296/* end confdefs.h. */ 20297 20298/* Override any gcc2 internal prototype to avoid an error. */ 20299#ifdef __cplusplus 20300extern "C" 20301#endif 20302/* We use char because int might match the return type of a gcc2 20303 builtin and then its argument prototype would still apply. */ 20304char dnet_ntoa (); 20305int 20306main () 20307{ 20308dnet_ntoa (); 20309 ; 20310 return 0; 20311} 20312_ACEOF 20313rm -f conftest.$ac_objext conftest$ac_exeext 20314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20315 (eval $ac_link) 2>conftest.er1 20316 ac_status=$? 20317 grep -v '^ *+' conftest.er1 >conftest.err 20318 rm -f conftest.er1 20319 cat conftest.err >&5 20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20321 (exit $ac_status); } && 20322 { ac_try='test -z "$ac_c_werror_flag" 20323 || test ! -s conftest.err' 20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20325 (eval $ac_try) 2>&5 20326 ac_status=$? 20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20328 (exit $ac_status); }; } && 20329 { ac_try='test -s conftest$ac_exeext' 20330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20331 (eval $ac_try) 2>&5 20332 ac_status=$? 20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20334 (exit $ac_status); }; }; then 20335 ac_cv_lib_dnet_dnet_ntoa=yes 20336else 20337 echo "$as_me: failed program was:" >&5 20338sed 's/^/| /' conftest.$ac_ext >&5 20339 20340ac_cv_lib_dnet_dnet_ntoa=no 20341fi 20342rm -f conftest.err conftest.$ac_objext \ 20343 conftest$ac_exeext conftest.$ac_ext 20344LIBS=$ac_check_lib_save_LIBS 20345fi 20346echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 20347echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 20348if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 20349 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 20350fi 20351 20352 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 20353 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 20354echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 20355if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 20356 echo $ECHO_N "(cached) $ECHO_C" >&6 20357else 20358 ac_check_lib_save_LIBS=$LIBS 20359LIBS="-ldnet_stub $LIBS" 20360cat >conftest.$ac_ext <<_ACEOF 20361/* confdefs.h. */ 20362_ACEOF 20363cat confdefs.h >>conftest.$ac_ext 20364cat >>conftest.$ac_ext <<_ACEOF 20365/* end confdefs.h. */ 20366 20367/* Override any gcc2 internal prototype to avoid an error. */ 20368#ifdef __cplusplus 20369extern "C" 20370#endif 20371/* We use char because int might match the return type of a gcc2 20372 builtin and then its argument prototype would still apply. */ 20373char dnet_ntoa (); 20374int 20375main () 20376{ 20377dnet_ntoa (); 20378 ; 20379 return 0; 20380} 20381_ACEOF 20382rm -f conftest.$ac_objext conftest$ac_exeext 20383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20384 (eval $ac_link) 2>conftest.er1 20385 ac_status=$? 20386 grep -v '^ *+' conftest.er1 >conftest.err 20387 rm -f conftest.er1 20388 cat conftest.err >&5 20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20390 (exit $ac_status); } && 20391 { ac_try='test -z "$ac_c_werror_flag" 20392 || test ! -s conftest.err' 20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20394 (eval $ac_try) 2>&5 20395 ac_status=$? 20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20397 (exit $ac_status); }; } && 20398 { ac_try='test -s conftest$ac_exeext' 20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20400 (eval $ac_try) 2>&5 20401 ac_status=$? 20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20403 (exit $ac_status); }; }; then 20404 ac_cv_lib_dnet_stub_dnet_ntoa=yes 20405else 20406 echo "$as_me: failed program was:" >&5 20407sed 's/^/| /' conftest.$ac_ext >&5 20408 20409ac_cv_lib_dnet_stub_dnet_ntoa=no 20410fi 20411rm -f conftest.err conftest.$ac_objext \ 20412 conftest$ac_exeext conftest.$ac_ext 20413LIBS=$ac_check_lib_save_LIBS 20414fi 20415echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 20416echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 20417if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 20418 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 20419fi 20420 20421 fi 20422fi 20423rm -f conftest.err conftest.$ac_objext \ 20424 conftest$ac_exeext conftest.$ac_ext 20425 LIBS="$ac_xsave_LIBS" 20426 20427 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 20428 # to get the SysV transport functions. 20429 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 20430 # needs -lnsl. 20431 # The nsl library prevents programs from opening the X display 20432 # on Irix 5.2, according to T.E. Dickey. 20433 # The functions gethostbyname, getservbyname, and inet_addr are 20434 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 20435 echo "$as_me:$LINENO: checking for gethostbyname" >&5 20436echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 20437if test "${ac_cv_func_gethostbyname+set}" = set; then 20438 echo $ECHO_N "(cached) $ECHO_C" >&6 20439else 20440 cat >conftest.$ac_ext <<_ACEOF 20441/* confdefs.h. */ 20442_ACEOF 20443cat confdefs.h >>conftest.$ac_ext 20444cat >>conftest.$ac_ext <<_ACEOF 20445/* end confdefs.h. */ 20446/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 20447 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20448#define gethostbyname innocuous_gethostbyname 20449 20450/* System header to define __stub macros and hopefully few prototypes, 20451 which can conflict with char gethostbyname (); below. 20452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20453 <limits.h> exists even on freestanding compilers. */ 20454 20455#ifdef __STDC__ 20456# include <limits.h> 20457#else 20458# include <assert.h> 20459#endif 20460 20461#undef gethostbyname 20462 20463/* Override any gcc2 internal prototype to avoid an error. */ 20464#ifdef __cplusplus 20465extern "C" 20466{ 20467#endif 20468/* We use char because int might match the return type of a gcc2 20469 builtin and then its argument prototype would still apply. */ 20470char gethostbyname (); 20471/* The GNU C library defines this for functions which it implements 20472 to always fail with ENOSYS. Some functions are actually named 20473 something starting with __ and the normal name is an alias. */ 20474#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 20475choke me 20476#else 20477char (*f) () = gethostbyname; 20478#endif 20479#ifdef __cplusplus 20480} 20481#endif 20482 20483int 20484main () 20485{ 20486return f != gethostbyname; 20487 ; 20488 return 0; 20489} 20490_ACEOF 20491rm -f conftest.$ac_objext conftest$ac_exeext 20492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20493 (eval $ac_link) 2>conftest.er1 20494 ac_status=$? 20495 grep -v '^ *+' conftest.er1 >conftest.err 20496 rm -f conftest.er1 20497 cat conftest.err >&5 20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20499 (exit $ac_status); } && 20500 { ac_try='test -z "$ac_c_werror_flag" 20501 || test ! -s conftest.err' 20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20503 (eval $ac_try) 2>&5 20504 ac_status=$? 20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20506 (exit $ac_status); }; } && 20507 { ac_try='test -s conftest$ac_exeext' 20508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20509 (eval $ac_try) 2>&5 20510 ac_status=$? 20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20512 (exit $ac_status); }; }; then 20513 ac_cv_func_gethostbyname=yes 20514else 20515 echo "$as_me: failed program was:" >&5 20516sed 's/^/| /' conftest.$ac_ext >&5 20517 20518ac_cv_func_gethostbyname=no 20519fi 20520rm -f conftest.err conftest.$ac_objext \ 20521 conftest$ac_exeext conftest.$ac_ext 20522fi 20523echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 20524echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 20525 20526 if test $ac_cv_func_gethostbyname = no; then 20527 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 20528echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 20529if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 20530 echo $ECHO_N "(cached) $ECHO_C" >&6 20531else 20532 ac_check_lib_save_LIBS=$LIBS 20533LIBS="-lnsl $LIBS" 20534cat >conftest.$ac_ext <<_ACEOF 20535/* confdefs.h. */ 20536_ACEOF 20537cat confdefs.h >>conftest.$ac_ext 20538cat >>conftest.$ac_ext <<_ACEOF 20539/* end confdefs.h. */ 20540 20541/* Override any gcc2 internal prototype to avoid an error. */ 20542#ifdef __cplusplus 20543extern "C" 20544#endif 20545/* We use char because int might match the return type of a gcc2 20546 builtin and then its argument prototype would still apply. */ 20547char gethostbyname (); 20548int 20549main () 20550{ 20551gethostbyname (); 20552 ; 20553 return 0; 20554} 20555_ACEOF 20556rm -f conftest.$ac_objext conftest$ac_exeext 20557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20558 (eval $ac_link) 2>conftest.er1 20559 ac_status=$? 20560 grep -v '^ *+' conftest.er1 >conftest.err 20561 rm -f conftest.er1 20562 cat conftest.err >&5 20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20564 (exit $ac_status); } && 20565 { ac_try='test -z "$ac_c_werror_flag" 20566 || test ! -s conftest.err' 20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20568 (eval $ac_try) 2>&5 20569 ac_status=$? 20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20571 (exit $ac_status); }; } && 20572 { ac_try='test -s conftest$ac_exeext' 20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20574 (eval $ac_try) 2>&5 20575 ac_status=$? 20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20577 (exit $ac_status); }; }; then 20578 ac_cv_lib_nsl_gethostbyname=yes 20579else 20580 echo "$as_me: failed program was:" >&5 20581sed 's/^/| /' conftest.$ac_ext >&5 20582 20583ac_cv_lib_nsl_gethostbyname=no 20584fi 20585rm -f conftest.err conftest.$ac_objext \ 20586 conftest$ac_exeext conftest.$ac_ext 20587LIBS=$ac_check_lib_save_LIBS 20588fi 20589echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 20590echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 20591if test $ac_cv_lib_nsl_gethostbyname = yes; then 20592 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 20593fi 20594 20595 if test $ac_cv_lib_nsl_gethostbyname = no; then 20596 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 20597echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 20598if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 20599 echo $ECHO_N "(cached) $ECHO_C" >&6 20600else 20601 ac_check_lib_save_LIBS=$LIBS 20602LIBS="-lbsd $LIBS" 20603cat >conftest.$ac_ext <<_ACEOF 20604/* confdefs.h. */ 20605_ACEOF 20606cat confdefs.h >>conftest.$ac_ext 20607cat >>conftest.$ac_ext <<_ACEOF 20608/* end confdefs.h. */ 20609 20610/* Override any gcc2 internal prototype to avoid an error. */ 20611#ifdef __cplusplus 20612extern "C" 20613#endif 20614/* We use char because int might match the return type of a gcc2 20615 builtin and then its argument prototype would still apply. */ 20616char gethostbyname (); 20617int 20618main () 20619{ 20620gethostbyname (); 20621 ; 20622 return 0; 20623} 20624_ACEOF 20625rm -f conftest.$ac_objext conftest$ac_exeext 20626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20627 (eval $ac_link) 2>conftest.er1 20628 ac_status=$? 20629 grep -v '^ *+' conftest.er1 >conftest.err 20630 rm -f conftest.er1 20631 cat conftest.err >&5 20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20633 (exit $ac_status); } && 20634 { ac_try='test -z "$ac_c_werror_flag" 20635 || test ! -s conftest.err' 20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20637 (eval $ac_try) 2>&5 20638 ac_status=$? 20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20640 (exit $ac_status); }; } && 20641 { ac_try='test -s conftest$ac_exeext' 20642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20643 (eval $ac_try) 2>&5 20644 ac_status=$? 20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20646 (exit $ac_status); }; }; then 20647 ac_cv_lib_bsd_gethostbyname=yes 20648else 20649 echo "$as_me: failed program was:" >&5 20650sed 's/^/| /' conftest.$ac_ext >&5 20651 20652ac_cv_lib_bsd_gethostbyname=no 20653fi 20654rm -f conftest.err conftest.$ac_objext \ 20655 conftest$ac_exeext conftest.$ac_ext 20656LIBS=$ac_check_lib_save_LIBS 20657fi 20658echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 20659echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 20660if test $ac_cv_lib_bsd_gethostbyname = yes; then 20661 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 20662fi 20663 20664 fi 20665 fi 20666 20667 # lieder@skyler.mavd.honeywell.com says without -lsocket, 20668 # socket/setsockopt and other routines are undefined under SCO ODT 20669 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 20670 # on later versions), says Simon Leinen: it contains gethostby* 20671 # variants that don't use the name server (or something). -lsocket 20672 # must be given before -lnsl if both are needed. We assume that 20673 # if connect needs -lnsl, so does gethostbyname. 20674 echo "$as_me:$LINENO: checking for connect" >&5 20675echo $ECHO_N "checking for connect... $ECHO_C" >&6 20676if test "${ac_cv_func_connect+set}" = set; then 20677 echo $ECHO_N "(cached) $ECHO_C" >&6 20678else 20679 cat >conftest.$ac_ext <<_ACEOF 20680/* confdefs.h. */ 20681_ACEOF 20682cat confdefs.h >>conftest.$ac_ext 20683cat >>conftest.$ac_ext <<_ACEOF 20684/* end confdefs.h. */ 20685/* Define connect to an innocuous variant, in case <limits.h> declares connect. 20686 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20687#define connect innocuous_connect 20688 20689/* System header to define __stub macros and hopefully few prototypes, 20690 which can conflict with char connect (); below. 20691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20692 <limits.h> exists even on freestanding compilers. */ 20693 20694#ifdef __STDC__ 20695# include <limits.h> 20696#else 20697# include <assert.h> 20698#endif 20699 20700#undef connect 20701 20702/* Override any gcc2 internal prototype to avoid an error. */ 20703#ifdef __cplusplus 20704extern "C" 20705{ 20706#endif 20707/* We use char because int might match the return type of a gcc2 20708 builtin and then its argument prototype would still apply. */ 20709char connect (); 20710/* The GNU C library defines this for functions which it implements 20711 to always fail with ENOSYS. Some functions are actually named 20712 something starting with __ and the normal name is an alias. */ 20713#if defined (__stub_connect) || defined (__stub___connect) 20714choke me 20715#else 20716char (*f) () = connect; 20717#endif 20718#ifdef __cplusplus 20719} 20720#endif 20721 20722int 20723main () 20724{ 20725return f != connect; 20726 ; 20727 return 0; 20728} 20729_ACEOF 20730rm -f conftest.$ac_objext conftest$ac_exeext 20731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20732 (eval $ac_link) 2>conftest.er1 20733 ac_status=$? 20734 grep -v '^ *+' conftest.er1 >conftest.err 20735 rm -f conftest.er1 20736 cat conftest.err >&5 20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20738 (exit $ac_status); } && 20739 { ac_try='test -z "$ac_c_werror_flag" 20740 || test ! -s conftest.err' 20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20742 (eval $ac_try) 2>&5 20743 ac_status=$? 20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20745 (exit $ac_status); }; } && 20746 { ac_try='test -s conftest$ac_exeext' 20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20748 (eval $ac_try) 2>&5 20749 ac_status=$? 20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20751 (exit $ac_status); }; }; then 20752 ac_cv_func_connect=yes 20753else 20754 echo "$as_me: failed program was:" >&5 20755sed 's/^/| /' conftest.$ac_ext >&5 20756 20757ac_cv_func_connect=no 20758fi 20759rm -f conftest.err conftest.$ac_objext \ 20760 conftest$ac_exeext conftest.$ac_ext 20761fi 20762echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 20763echo "${ECHO_T}$ac_cv_func_connect" >&6 20764 20765 if test $ac_cv_func_connect = no; then 20766 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 20767echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 20768if test "${ac_cv_lib_socket_connect+set}" = set; then 20769 echo $ECHO_N "(cached) $ECHO_C" >&6 20770else 20771 ac_check_lib_save_LIBS=$LIBS 20772LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 20773cat >conftest.$ac_ext <<_ACEOF 20774/* confdefs.h. */ 20775_ACEOF 20776cat confdefs.h >>conftest.$ac_ext 20777cat >>conftest.$ac_ext <<_ACEOF 20778/* end confdefs.h. */ 20779 20780/* Override any gcc2 internal prototype to avoid an error. */ 20781#ifdef __cplusplus 20782extern "C" 20783#endif 20784/* We use char because int might match the return type of a gcc2 20785 builtin and then its argument prototype would still apply. */ 20786char connect (); 20787int 20788main () 20789{ 20790connect (); 20791 ; 20792 return 0; 20793} 20794_ACEOF 20795rm -f conftest.$ac_objext conftest$ac_exeext 20796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20797 (eval $ac_link) 2>conftest.er1 20798 ac_status=$? 20799 grep -v '^ *+' conftest.er1 >conftest.err 20800 rm -f conftest.er1 20801 cat conftest.err >&5 20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20803 (exit $ac_status); } && 20804 { ac_try='test -z "$ac_c_werror_flag" 20805 || test ! -s conftest.err' 20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20807 (eval $ac_try) 2>&5 20808 ac_status=$? 20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20810 (exit $ac_status); }; } && 20811 { ac_try='test -s conftest$ac_exeext' 20812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20813 (eval $ac_try) 2>&5 20814 ac_status=$? 20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20816 (exit $ac_status); }; }; then 20817 ac_cv_lib_socket_connect=yes 20818else 20819 echo "$as_me: failed program was:" >&5 20820sed 's/^/| /' conftest.$ac_ext >&5 20821 20822ac_cv_lib_socket_connect=no 20823fi 20824rm -f conftest.err conftest.$ac_objext \ 20825 conftest$ac_exeext conftest.$ac_ext 20826LIBS=$ac_check_lib_save_LIBS 20827fi 20828echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 20829echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 20830if test $ac_cv_lib_socket_connect = yes; then 20831 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 20832fi 20833 20834 fi 20835 20836 # Guillermo Gomez says -lposix is necessary on A/UX. 20837 echo "$as_me:$LINENO: checking for remove" >&5 20838echo $ECHO_N "checking for remove... $ECHO_C" >&6 20839if test "${ac_cv_func_remove+set}" = set; then 20840 echo $ECHO_N "(cached) $ECHO_C" >&6 20841else 20842 cat >conftest.$ac_ext <<_ACEOF 20843/* confdefs.h. */ 20844_ACEOF 20845cat confdefs.h >>conftest.$ac_ext 20846cat >>conftest.$ac_ext <<_ACEOF 20847/* end confdefs.h. */ 20848/* Define remove to an innocuous variant, in case <limits.h> declares remove. 20849 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20850#define remove innocuous_remove 20851 20852/* System header to define __stub macros and hopefully few prototypes, 20853 which can conflict with char remove (); below. 20854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20855 <limits.h> exists even on freestanding compilers. */ 20856 20857#ifdef __STDC__ 20858# include <limits.h> 20859#else 20860# include <assert.h> 20861#endif 20862 20863#undef remove 20864 20865/* Override any gcc2 internal prototype to avoid an error. */ 20866#ifdef __cplusplus 20867extern "C" 20868{ 20869#endif 20870/* We use char because int might match the return type of a gcc2 20871 builtin and then its argument prototype would still apply. */ 20872char remove (); 20873/* The GNU C library defines this for functions which it implements 20874 to always fail with ENOSYS. Some functions are actually named 20875 something starting with __ and the normal name is an alias. */ 20876#if defined (__stub_remove) || defined (__stub___remove) 20877choke me 20878#else 20879char (*f) () = remove; 20880#endif 20881#ifdef __cplusplus 20882} 20883#endif 20884 20885int 20886main () 20887{ 20888return f != remove; 20889 ; 20890 return 0; 20891} 20892_ACEOF 20893rm -f conftest.$ac_objext conftest$ac_exeext 20894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20895 (eval $ac_link) 2>conftest.er1 20896 ac_status=$? 20897 grep -v '^ *+' conftest.er1 >conftest.err 20898 rm -f conftest.er1 20899 cat conftest.err >&5 20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20901 (exit $ac_status); } && 20902 { ac_try='test -z "$ac_c_werror_flag" 20903 || test ! -s conftest.err' 20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20905 (eval $ac_try) 2>&5 20906 ac_status=$? 20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20908 (exit $ac_status); }; } && 20909 { ac_try='test -s conftest$ac_exeext' 20910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20911 (eval $ac_try) 2>&5 20912 ac_status=$? 20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20914 (exit $ac_status); }; }; then 20915 ac_cv_func_remove=yes 20916else 20917 echo "$as_me: failed program was:" >&5 20918sed 's/^/| /' conftest.$ac_ext >&5 20919 20920ac_cv_func_remove=no 20921fi 20922rm -f conftest.err conftest.$ac_objext \ 20923 conftest$ac_exeext conftest.$ac_ext 20924fi 20925echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 20926echo "${ECHO_T}$ac_cv_func_remove" >&6 20927 20928 if test $ac_cv_func_remove = no; then 20929 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 20930echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 20931if test "${ac_cv_lib_posix_remove+set}" = set; then 20932 echo $ECHO_N "(cached) $ECHO_C" >&6 20933else 20934 ac_check_lib_save_LIBS=$LIBS 20935LIBS="-lposix $LIBS" 20936cat >conftest.$ac_ext <<_ACEOF 20937/* confdefs.h. */ 20938_ACEOF 20939cat confdefs.h >>conftest.$ac_ext 20940cat >>conftest.$ac_ext <<_ACEOF 20941/* end confdefs.h. */ 20942 20943/* Override any gcc2 internal prototype to avoid an error. */ 20944#ifdef __cplusplus 20945extern "C" 20946#endif 20947/* We use char because int might match the return type of a gcc2 20948 builtin and then its argument prototype would still apply. */ 20949char remove (); 20950int 20951main () 20952{ 20953remove (); 20954 ; 20955 return 0; 20956} 20957_ACEOF 20958rm -f conftest.$ac_objext conftest$ac_exeext 20959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20960 (eval $ac_link) 2>conftest.er1 20961 ac_status=$? 20962 grep -v '^ *+' conftest.er1 >conftest.err 20963 rm -f conftest.er1 20964 cat conftest.err >&5 20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20966 (exit $ac_status); } && 20967 { ac_try='test -z "$ac_c_werror_flag" 20968 || test ! -s conftest.err' 20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20970 (eval $ac_try) 2>&5 20971 ac_status=$? 20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20973 (exit $ac_status); }; } && 20974 { ac_try='test -s conftest$ac_exeext' 20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20976 (eval $ac_try) 2>&5 20977 ac_status=$? 20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20979 (exit $ac_status); }; }; then 20980 ac_cv_lib_posix_remove=yes 20981else 20982 echo "$as_me: failed program was:" >&5 20983sed 's/^/| /' conftest.$ac_ext >&5 20984 20985ac_cv_lib_posix_remove=no 20986fi 20987rm -f conftest.err conftest.$ac_objext \ 20988 conftest$ac_exeext conftest.$ac_ext 20989LIBS=$ac_check_lib_save_LIBS 20990fi 20991echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 20992echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 20993if test $ac_cv_lib_posix_remove = yes; then 20994 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 20995fi 20996 20997 fi 20998 20999 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 21000 echo "$as_me:$LINENO: checking for shmat" >&5 21001echo $ECHO_N "checking for shmat... $ECHO_C" >&6 21002if test "${ac_cv_func_shmat+set}" = set; then 21003 echo $ECHO_N "(cached) $ECHO_C" >&6 21004else 21005 cat >conftest.$ac_ext <<_ACEOF 21006/* confdefs.h. */ 21007_ACEOF 21008cat confdefs.h >>conftest.$ac_ext 21009cat >>conftest.$ac_ext <<_ACEOF 21010/* end confdefs.h. */ 21011/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 21012 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21013#define shmat innocuous_shmat 21014 21015/* System header to define __stub macros and hopefully few prototypes, 21016 which can conflict with char shmat (); below. 21017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21018 <limits.h> exists even on freestanding compilers. */ 21019 21020#ifdef __STDC__ 21021# include <limits.h> 21022#else 21023# include <assert.h> 21024#endif 21025 21026#undef shmat 21027 21028/* Override any gcc2 internal prototype to avoid an error. */ 21029#ifdef __cplusplus 21030extern "C" 21031{ 21032#endif 21033/* We use char because int might match the return type of a gcc2 21034 builtin and then its argument prototype would still apply. */ 21035char shmat (); 21036/* The GNU C library defines this for functions which it implements 21037 to always fail with ENOSYS. Some functions are actually named 21038 something starting with __ and the normal name is an alias. */ 21039#if defined (__stub_shmat) || defined (__stub___shmat) 21040choke me 21041#else 21042char (*f) () = shmat; 21043#endif 21044#ifdef __cplusplus 21045} 21046#endif 21047 21048int 21049main () 21050{ 21051return f != shmat; 21052 ; 21053 return 0; 21054} 21055_ACEOF 21056rm -f conftest.$ac_objext conftest$ac_exeext 21057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21058 (eval $ac_link) 2>conftest.er1 21059 ac_status=$? 21060 grep -v '^ *+' conftest.er1 >conftest.err 21061 rm -f conftest.er1 21062 cat conftest.err >&5 21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21064 (exit $ac_status); } && 21065 { ac_try='test -z "$ac_c_werror_flag" 21066 || test ! -s conftest.err' 21067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21068 (eval $ac_try) 2>&5 21069 ac_status=$? 21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21071 (exit $ac_status); }; } && 21072 { ac_try='test -s conftest$ac_exeext' 21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21074 (eval $ac_try) 2>&5 21075 ac_status=$? 21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21077 (exit $ac_status); }; }; then 21078 ac_cv_func_shmat=yes 21079else 21080 echo "$as_me: failed program was:" >&5 21081sed 's/^/| /' conftest.$ac_ext >&5 21082 21083ac_cv_func_shmat=no 21084fi 21085rm -f conftest.err conftest.$ac_objext \ 21086 conftest$ac_exeext conftest.$ac_ext 21087fi 21088echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 21089echo "${ECHO_T}$ac_cv_func_shmat" >&6 21090 21091 if test $ac_cv_func_shmat = no; then 21092 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 21093echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 21094if test "${ac_cv_lib_ipc_shmat+set}" = set; then 21095 echo $ECHO_N "(cached) $ECHO_C" >&6 21096else 21097 ac_check_lib_save_LIBS=$LIBS 21098LIBS="-lipc $LIBS" 21099cat >conftest.$ac_ext <<_ACEOF 21100/* confdefs.h. */ 21101_ACEOF 21102cat confdefs.h >>conftest.$ac_ext 21103cat >>conftest.$ac_ext <<_ACEOF 21104/* end confdefs.h. */ 21105 21106/* Override any gcc2 internal prototype to avoid an error. */ 21107#ifdef __cplusplus 21108extern "C" 21109#endif 21110/* We use char because int might match the return type of a gcc2 21111 builtin and then its argument prototype would still apply. */ 21112char shmat (); 21113int 21114main () 21115{ 21116shmat (); 21117 ; 21118 return 0; 21119} 21120_ACEOF 21121rm -f conftest.$ac_objext conftest$ac_exeext 21122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21123 (eval $ac_link) 2>conftest.er1 21124 ac_status=$? 21125 grep -v '^ *+' conftest.er1 >conftest.err 21126 rm -f conftest.er1 21127 cat conftest.err >&5 21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21129 (exit $ac_status); } && 21130 { ac_try='test -z "$ac_c_werror_flag" 21131 || test ! -s conftest.err' 21132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21133 (eval $ac_try) 2>&5 21134 ac_status=$? 21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21136 (exit $ac_status); }; } && 21137 { ac_try='test -s conftest$ac_exeext' 21138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21139 (eval $ac_try) 2>&5 21140 ac_status=$? 21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21142 (exit $ac_status); }; }; then 21143 ac_cv_lib_ipc_shmat=yes 21144else 21145 echo "$as_me: failed program was:" >&5 21146sed 's/^/| /' conftest.$ac_ext >&5 21147 21148ac_cv_lib_ipc_shmat=no 21149fi 21150rm -f conftest.err conftest.$ac_objext \ 21151 conftest$ac_exeext conftest.$ac_ext 21152LIBS=$ac_check_lib_save_LIBS 21153fi 21154echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 21155echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 21156if test $ac_cv_lib_ipc_shmat = yes; then 21157 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 21158fi 21159 21160 fi 21161 fi 21162 21163 # Check for libraries that X11R6 Xt/Xaw programs need. 21164 ac_save_LDFLAGS=$LDFLAGS 21165 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 21166 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 21167 # check for ICE first), but we must link in the order -lSM -lICE or 21168 # we get undefined symbols. So assume we have SM if we have ICE. 21169 # These have to be linked with before -lX11, unlike the other 21170 # libraries we check for below, so use a different variable. 21171 # John Interrante, Karl Berry 21172 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 21173echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 21174if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 21175 echo $ECHO_N "(cached) $ECHO_C" >&6 21176else 21177 ac_check_lib_save_LIBS=$LIBS 21178LIBS="-lICE $X_EXTRA_LIBS $LIBS" 21179cat >conftest.$ac_ext <<_ACEOF 21180/* confdefs.h. */ 21181_ACEOF 21182cat confdefs.h >>conftest.$ac_ext 21183cat >>conftest.$ac_ext <<_ACEOF 21184/* end confdefs.h. */ 21185 21186/* Override any gcc2 internal prototype to avoid an error. */ 21187#ifdef __cplusplus 21188extern "C" 21189#endif 21190/* We use char because int might match the return type of a gcc2 21191 builtin and then its argument prototype would still apply. */ 21192char IceConnectionNumber (); 21193int 21194main () 21195{ 21196IceConnectionNumber (); 21197 ; 21198 return 0; 21199} 21200_ACEOF 21201rm -f conftest.$ac_objext conftest$ac_exeext 21202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21203 (eval $ac_link) 2>conftest.er1 21204 ac_status=$? 21205 grep -v '^ *+' conftest.er1 >conftest.err 21206 rm -f conftest.er1 21207 cat conftest.err >&5 21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21209 (exit $ac_status); } && 21210 { ac_try='test -z "$ac_c_werror_flag" 21211 || test ! -s conftest.err' 21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21213 (eval $ac_try) 2>&5 21214 ac_status=$? 21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21216 (exit $ac_status); }; } && 21217 { ac_try='test -s conftest$ac_exeext' 21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21219 (eval $ac_try) 2>&5 21220 ac_status=$? 21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21222 (exit $ac_status); }; }; then 21223 ac_cv_lib_ICE_IceConnectionNumber=yes 21224else 21225 echo "$as_me: failed program was:" >&5 21226sed 's/^/| /' conftest.$ac_ext >&5 21227 21228ac_cv_lib_ICE_IceConnectionNumber=no 21229fi 21230rm -f conftest.err conftest.$ac_objext \ 21231 conftest$ac_exeext conftest.$ac_ext 21232LIBS=$ac_check_lib_save_LIBS 21233fi 21234echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 21235echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 21236if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 21237 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 21238fi 21239 21240 LDFLAGS=$ac_save_LDFLAGS 21241 21242fi 21243 21244 21245 echo "$as_me:$LINENO: checking for glViewport in -lGL" >&5 21246echo $ECHO_N "checking for glViewport in -lGL... $ECHO_C" >&6 21247if test "${ac_cv_lib_GL_glViewport+set}" = set; then 21248 echo $ECHO_N "(cached) $ECHO_C" >&6 21249else 21250 ac_check_lib_save_LIBS=$LIBS 21251LIBS="-lGL $LIBS" 21252cat >conftest.$ac_ext <<_ACEOF 21253/* confdefs.h. */ 21254_ACEOF 21255cat confdefs.h >>conftest.$ac_ext 21256cat >>conftest.$ac_ext <<_ACEOF 21257/* end confdefs.h. */ 21258 21259/* Override any gcc2 internal prototype to avoid an error. */ 21260#ifdef __cplusplus 21261extern "C" 21262#endif 21263/* We use char because int might match the return type of a gcc2 21264 builtin and then its argument prototype would still apply. */ 21265char glViewport (); 21266int 21267main () 21268{ 21269glViewport (); 21270 ; 21271 return 0; 21272} 21273_ACEOF 21274rm -f conftest.$ac_objext conftest$ac_exeext 21275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21276 (eval $ac_link) 2>conftest.er1 21277 ac_status=$? 21278 grep -v '^ *+' conftest.er1 >conftest.err 21279 rm -f conftest.er1 21280 cat conftest.err >&5 21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21282 (exit $ac_status); } && 21283 { ac_try='test -z "$ac_c_werror_flag" 21284 || test ! -s conftest.err' 21285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21286 (eval $ac_try) 2>&5 21287 ac_status=$? 21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21289 (exit $ac_status); }; } && 21290 { ac_try='test -s conftest$ac_exeext' 21291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21292 (eval $ac_try) 2>&5 21293 ac_status=$? 21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21295 (exit $ac_status); }; }; then 21296 ac_cv_lib_GL_glViewport=yes 21297else 21298 echo "$as_me: failed program was:" >&5 21299sed 's/^/| /' conftest.$ac_ext >&5 21300 21301ac_cv_lib_GL_glViewport=no 21302fi 21303rm -f conftest.err conftest.$ac_objext \ 21304 conftest$ac_exeext conftest.$ac_ext 21305LIBS=$ac_check_lib_save_LIBS 21306fi 21307echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glViewport" >&5 21308echo "${ECHO_T}$ac_cv_lib_GL_glViewport" >&6 21309if test $ac_cv_lib_GL_glViewport = yes; then 21310 21311 LIBS="$LIBS -lGL" 21312 21313else 21314 21315 { { echo "$as_me:$LINENO: error: Couldn't find OpenGL" >&5 21316echo "$as_me: error: Couldn't find OpenGL" >&2;} 21317 { (exit 1); exit 1; }; } 21318 21319fi 21320 21321esac 21322 21323case "$host_os" in 21324 *cygwin* | *mingw32*) 21325 LIBS="$LIBS -lopengl32" 21326esac 21327 21328if test "$enable_shared" = yes; then 21329 if test "x$CYGWIN" = xyes -o "x$MINGW32" = xyes; then 21330 SAGE_DLL=sage.dll 21331 21332 if test -n "$ac_tool_prefix"; then 21333 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. 21334set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 21335echo "$as_me:$LINENO: checking for $ac_word" >&5 21336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21337if test "${ac_cv_prog_DLLWRAP+set}" = set; then 21338 echo $ECHO_N "(cached) $ECHO_C" >&6 21339else 21340 if test -n "$DLLWRAP"; then 21341 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. 21342else 21343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21344for as_dir in $PATH 21345do 21346 IFS=$as_save_IFS 21347 test -z "$as_dir" && as_dir=. 21348 for ac_exec_ext in '' $ac_executable_extensions; do 21349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21350 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" 21351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21352 break 2 21353 fi 21354done 21355done 21356 21357fi 21358fi 21359DLLWRAP=$ac_cv_prog_DLLWRAP 21360if test -n "$DLLWRAP"; then 21361 echo "$as_me:$LINENO: result: $DLLWRAP" >&5 21362echo "${ECHO_T}$DLLWRAP" >&6 21363else 21364 echo "$as_me:$LINENO: result: no" >&5 21365echo "${ECHO_T}no" >&6 21366fi 21367 21368fi 21369if test -z "$ac_cv_prog_DLLWRAP"; then 21370 ac_ct_DLLWRAP=$DLLWRAP 21371 # Extract the first word of "dllwrap", so it can be a program name with args. 21372set dummy dllwrap; ac_word=$2 21373echo "$as_me:$LINENO: checking for $ac_word" >&5 21374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21375if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then 21376 echo $ECHO_N "(cached) $ECHO_C" >&6 21377else 21378 if test -n "$ac_ct_DLLWRAP"; then 21379 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. 21380else 21381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21382for as_dir in $PATH 21383do 21384 IFS=$as_save_IFS 21385 test -z "$as_dir" && as_dir=. 21386 for ac_exec_ext in '' $ac_executable_extensions; do 21387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21388 ac_cv_prog_ac_ct_DLLWRAP="dllwrap" 21389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21390 break 2 21391 fi 21392done 21393done 21394 21395fi 21396fi 21397ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP 21398if test -n "$ac_ct_DLLWRAP"; then 21399 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 21400echo "${ECHO_T}$ac_ct_DLLWRAP" >&6 21401else 21402 echo "$as_me:$LINENO: result: no" >&5 21403echo "${ECHO_T}no" >&6 21404fi 21405 21406 DLLWRAP=$ac_ct_DLLWRAP 21407else 21408 DLLWRAP="$ac_cv_prog_DLLWRAP" 21409fi 21410 21411 if test -n "$ac_tool_prefix"; then 21412 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 21413set dummy ${ac_tool_prefix}dlltool; ac_word=$2 21414echo "$as_me:$LINENO: checking for $ac_word" >&5 21415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21416if test "${ac_cv_prog_DLLTOOL+set}" = set; then 21417 echo $ECHO_N "(cached) $ECHO_C" >&6 21418else 21419 if test -n "$DLLTOOL"; then 21420 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 21421else 21422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21423for as_dir in $PATH 21424do 21425 IFS=$as_save_IFS 21426 test -z "$as_dir" && as_dir=. 21427 for ac_exec_ext in '' $ac_executable_extensions; do 21428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21429 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 21430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21431 break 2 21432 fi 21433done 21434done 21435 21436fi 21437fi 21438DLLTOOL=$ac_cv_prog_DLLTOOL 21439if test -n "$DLLTOOL"; then 21440 echo "$as_me:$LINENO: result: $DLLTOOL" >&5 21441echo "${ECHO_T}$DLLTOOL" >&6 21442else 21443 echo "$as_me:$LINENO: result: no" >&5 21444echo "${ECHO_T}no" >&6 21445fi 21446 21447fi 21448if test -z "$ac_cv_prog_DLLTOOL"; then 21449 ac_ct_DLLTOOL=$DLLTOOL 21450 # Extract the first word of "dlltool", so it can be a program name with args. 21451set dummy dlltool; ac_word=$2 21452echo "$as_me:$LINENO: checking for $ac_word" >&5 21453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21454if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 21455 echo $ECHO_N "(cached) $ECHO_C" >&6 21456else 21457 if test -n "$ac_ct_DLLTOOL"; then 21458 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 21459else 21460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21461for as_dir in $PATH 21462do 21463 IFS=$as_save_IFS 21464 test -z "$as_dir" && as_dir=. 21465 for ac_exec_ext in '' $ac_executable_extensions; do 21466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21467 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 21468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21469 break 2 21470 fi 21471done 21472done 21473 21474fi 21475fi 21476ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 21477if test -n "$ac_ct_DLLTOOL"; then 21478 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 21479echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 21480else 21481 echo "$as_me:$LINENO: result: no" >&5 21482echo "${ECHO_T}no" >&6 21483fi 21484 21485 DLLTOOL=$ac_ct_DLLTOOL 21486else 21487 DLLTOOL="$ac_cv_prog_DLLTOOL" 21488fi 21489 21490 BUILD_IT=true 21491 else 21492 BUILD_IT=false 21493 fi 21494else 21495 BUILD_IT=false 21496fi 21497 21498 21499 21500if test x$SAGE_DLL = xsage.dll; then 21501 BUILD_DLL_TRUE= 21502 BUILD_DLL_FALSE='#' 21503else 21504 BUILD_DLL_TRUE='#' 21505 BUILD_DLL_FALSE= 21506fi 21507 21508 21509 21510 21511# Check whether --enable-debug or --disable-debug was given. 21512if test "${enable_debug+set}" = set; then 21513 enableval="$enable_debug" 21514 21515 if test "$enableval" = "yes"; then 21516 CFLAGS="$CFLAGS -ggdb -O0 -DDEBUG" 21517 else 21518 CFLAGS="$CFLAGS -O3 -DNDEBUG" 21519 fi 21520 21521else 21522 21523 CFLAGS="$CFLAGS -O3 -DNDEBUG" 21524 21525 21526fi; 21527 21528CFLAGS="$CFLAGS -DSAGE_COMPILE" 21529 21530SDL_VERSION=1.2.2 21531 21532 21533# Check whether --with-sdl-prefix or --without-sdl-prefix was given. 21534if test "${with_sdl_prefix+set}" = set; then 21535 withval="$with_sdl_prefix" 21536 sdl_prefix="$withval" 21537else 21538 sdl_prefix="" 21539fi; 21540 21541# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. 21542if test "${with_sdl_exec_prefix+set}" = set; then 21543 withval="$with_sdl_exec_prefix" 21544 sdl_exec_prefix="$withval" 21545else 21546 sdl_exec_prefix="" 21547fi; 21548# Check whether --enable-sdltest or --disable-sdltest was given. 21549if test "${enable_sdltest+set}" = set; then 21550 enableval="$enable_sdltest" 21551 21552else 21553 enable_sdltest=yes 21554fi; 21555 21556 if test x$sdl_exec_prefix != x ; then 21557 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 21558 if test x${SDL_CONFIG+set} != xset ; then 21559 SDL_CONFIG=$sdl_exec_prefix/bin//usr/local/bin/sdl-config 21560 fi 21561 fi 21562 if test x$sdl_prefix != x ; then 21563 sdl_args="$sdl_args --prefix=$sdl_prefix" 21564 if test x${SDL_CONFIG+set} != xset ; then 21565 SDL_CONFIG=$sdl_prefix/bin//usr/local/bin/sdl-config 21566 fi 21567 fi 21568 21569 if test "x$prefix" != xNONE; then 21570 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 21571 fi 21572 # Extract the first word of "/usr/local/bin/sdl-config", so it can be a program name with args. 21573set dummy /usr/local/bin/sdl-config; ac_word=$2 21574echo "$as_me:$LINENO: checking for $ac_word" >&5 21575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21576if test "${ac_cv_path_SDL_CONFIG+set}" = set; then 21577 echo $ECHO_N "(cached) $ECHO_C" >&6 21578else 21579 case $SDL_CONFIG in 21580 [\\/]* | ?:[\\/]*) 21581 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 21582 ;; 21583 *) 21584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21585for as_dir in $PATH 21586do 21587 IFS=$as_save_IFS 21588 test -z "$as_dir" && as_dir=. 21589 for ac_exec_ext in '' $ac_executable_extensions; do 21590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21591 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21593 break 2 21594 fi 21595done 21596done 21597 21598 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 21599 ;; 21600esac 21601fi 21602SDL_CONFIG=$ac_cv_path_SDL_CONFIG 21603 21604if test -n "$SDL_CONFIG"; then 21605 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 21606echo "${ECHO_T}$SDL_CONFIG" >&6 21607else 21608 echo "$as_me:$LINENO: result: no" >&5 21609echo "${ECHO_T}no" >&6 21610fi 21611 21612 min_sdl_version=$SDL_VERSION 21613 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 21614echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 21615 no_sdl="" 21616 if test "$SDL_CONFIG" = "no" ; then 21617 no_sdl=yes 21618 else 21619 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 21620 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 21621 21622 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 21623 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 21624 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 21625 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 21626 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 21627 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 21628 if test "x$enable_sdltest" = "xyes" ; then 21629 ac_save_CFLAGS="$CFLAGS" 21630 ac_save_CXXFLAGS="$CXXFLAGS" 21631 ac_save_LIBS="$LIBS" 21632 CFLAGS="$CFLAGS $SDL_CFLAGS" 21633 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 21634 LIBS="$LIBS $SDL_LIBS" 21635 rm -f conf.sdltest 21636 if test "$cross_compiling" = yes; then 21637 echo $ac_n "cross compiling; assumed OK... $ac_c" 21638else 21639 cat >conftest.$ac_ext <<_ACEOF 21640/* confdefs.h. */ 21641_ACEOF 21642cat confdefs.h >>conftest.$ac_ext 21643cat >>conftest.$ac_ext <<_ACEOF 21644/* end confdefs.h. */ 21645 21646#include <stdio.h> 21647#include <stdlib.h> 21648#include <string.h> 21649#include "SDL.h" 21650 21651char* 21652my_strdup (char *str) 21653{ 21654 char *new_str; 21655 21656 if (str) 21657 { 21658 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 21659 strcpy (new_str, str); 21660 } 21661 else 21662 new_str = NULL; 21663 21664 return new_str; 21665} 21666 21667int main (int argc, char *argv[]) 21668{ 21669 int major, minor, micro; 21670 char *tmp_version; 21671 21672 /* This hangs on some systems (?) 21673 system ("touch conf.sdltest"); 21674 */ 21675 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 21676 21677 /* HP/UX 9 (%@#!) writes to sscanf strings */ 21678 tmp_version = my_strdup("$min_sdl_version"); 21679 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 21680 printf("%s, bad version string\n", "$min_sdl_version"); 21681 exit(1); 21682 } 21683 21684 if (($sdl_major_version > major) || 21685 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 21686 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 21687 { 21688 return 0; 21689 } 21690 else 21691 { 21692 printf("\n*** '/usr/local/bin/sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 21693 printf("*** of SDL required is %d.%d.%d. If /usr/local/bin/sdl-config is correct, then it is\n", major, minor, micro); 21694 printf("*** best to upgrade to the required version.\n"); 21695 printf("*** If /usr/local/bin/sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 21696 printf("*** to point to the correct copy of /usr/local/bin/sdl-config, and remove the file\n"); 21697 printf("*** config.cache before re-running configure\n"); 21698 return 1; 21699 } 21700} 21701 21702 21703_ACEOF 21704rm -f conftest$ac_exeext 21705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21706 (eval $ac_link) 2>&5 21707 ac_status=$? 21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21711 (eval $ac_try) 2>&5 21712 ac_status=$? 21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21714 (exit $ac_status); }; }; then 21715 : 21716else 21717 echo "$as_me: program exited with status $ac_status" >&5 21718echo "$as_me: failed program was:" >&5 21719sed 's/^/| /' conftest.$ac_ext >&5 21720 21721( exit $ac_status ) 21722no_sdl=yes 21723fi 21724rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21725fi 21726 CFLAGS="$ac_save_CFLAGS" 21727 CXXFLAGS="$ac_save_CXXFLAGS" 21728 LIBS="$ac_save_LIBS" 21729 fi 21730 fi 21731 if test "x$no_sdl" = x ; then 21732 echo "$as_me:$LINENO: result: yes" >&5 21733echo "${ECHO_T}yes" >&6 21734 21735CFLAGS="$CFLAGS $SDL_CFLAGS" 21736LIBS="$LIBS $SDL_LIBS" 21737 21738 else 21739 echo "$as_me:$LINENO: result: no" >&5 21740echo "${ECHO_T}no" >&6 21741 if test "$SDL_CONFIG" = "no" ; then 21742 echo "*** The /usr/local/bin/sdl-config script installed by SDL could not be found" 21743 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 21744 echo "*** your path, or set the SDL_CONFIG environment variable to the" 21745 echo "*** full path to /usr/local/bin/sdl-config." 21746 else 21747 if test -f conf.sdltest ; then 21748 : 21749 else 21750 echo "*** Could not run SDL test program, checking why..." 21751 CFLAGS="$CFLAGS $SDL_CFLAGS" 21752 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 21753 LIBS="$LIBS $SDL_LIBS" 21754 cat >conftest.$ac_ext <<_ACEOF 21755/* confdefs.h. */ 21756_ACEOF 21757cat confdefs.h >>conftest.$ac_ext 21758cat >>conftest.$ac_ext <<_ACEOF 21759/* end confdefs.h. */ 21760 21761#include <stdio.h> 21762#include "SDL.h" 21763 21764int main(int argc, char *argv[]) 21765{ return 0; } 21766#undef main 21767#define main K_and_R_C_main 21768 21769int 21770main () 21771{ 21772 return 0; 21773 ; 21774 return 0; 21775} 21776_ACEOF 21777rm -f conftest.$ac_objext conftest$ac_exeext 21778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21779 (eval $ac_link) 2>conftest.er1 21780 ac_status=$? 21781 grep -v '^ *+' conftest.er1 >conftest.err 21782 rm -f conftest.er1 21783 cat conftest.err >&5 21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21785 (exit $ac_status); } && 21786 { ac_try='test -z "$ac_c_werror_flag" 21787 || test ! -s conftest.err' 21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21789 (eval $ac_try) 2>&5 21790 ac_status=$? 21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21792 (exit $ac_status); }; } && 21793 { ac_try='test -s conftest$ac_exeext' 21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21795 (eval $ac_try) 2>&5 21796 ac_status=$? 21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21798 (exit $ac_status); }; }; then 21799 echo "*** The test program compiled, but did not run. This usually means" 21800 echo "*** that the run-time linker is not finding SDL or finding the wrong" 21801 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 21802 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 21803 echo "*** to the installed location Also, make sure you have run ldconfig if that" 21804 echo "*** is required on your system" 21805 echo "***" 21806 echo "*** If you have an old version installed, it is best to remove it, although" 21807 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 21808else 21809 echo "$as_me: failed program was:" >&5 21810sed 's/^/| /' conftest.$ac_ext >&5 21811 21812 echo "*** The test program failed to compile or link. See the file config.log for the" 21813 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 21814 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 21815 echo "*** may want to edit the /usr/local/bin/sdl-config script: $SDL_CONFIG" 21816fi 21817rm -f conftest.err conftest.$ac_objext \ 21818 conftest$ac_exeext conftest.$ac_ext 21819 CFLAGS="$ac_save_CFLAGS" 21820 CXXFLAGS="$ac_save_CXXFLAGS" 21821 LIBS="$ac_save_LIBS" 21822 fi 21823 fi 21824 SDL_CFLAGS="" 21825 SDL_LIBS="" 21826 21827 { { echo "$as_me:$LINENO: error: Couldn't find SDL or insufficent version found. Please goto http://www.libsdl.org/ and get at least version $SDL_VERSION" >&5 21828echo "$as_me: error: Couldn't find SDL or insufficent version found. Please goto http://www.libsdl.org/ and get at least version $SDL_VERSION" >&2;} 21829 { (exit 1); exit 1; }; } 21830 21831 fi 21832 21833 21834 rm -f conf.sdltest 21835 21836 21837 21838#AC_CHECK_HEADER(windows.h, [], []) 21839#AM_CONDITIONAL(BUILD_WGL, test "$ac_cv_header_windows_h" == "yes") 21840 21841 21842if false; then 21843 BUILD_WGL_TRUE= 21844 BUILD_WGL_FALSE='#' 21845else 21846 BUILD_WGL_TRUE='#' 21847 BUILD_WGL_FALSE= 21848fi 21849 21850 21851if test "${ac_cv_header_X11_Xlib_h+set}" = set; then 21852 echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5 21853echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6 21854if test "${ac_cv_header_X11_Xlib_h+set}" = set; then 21855 echo $ECHO_N "(cached) $ECHO_C" >&6 21856fi 21857echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5 21858echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6 21859else 21860 # Is the header compilable? 21861echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5 21862echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6 21863cat >conftest.$ac_ext <<_ACEOF 21864/* confdefs.h. */ 21865_ACEOF 21866cat confdefs.h >>conftest.$ac_ext 21867cat >>conftest.$ac_ext <<_ACEOF 21868/* end confdefs.h. */ 21869$ac_includes_default 21870#include <X11/Xlib.h> 21871_ACEOF 21872rm -f conftest.$ac_objext 21873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21874 (eval $ac_compile) 2>conftest.er1 21875 ac_status=$? 21876 grep -v '^ *+' conftest.er1 >conftest.err 21877 rm -f conftest.er1 21878 cat conftest.err >&5 21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21880 (exit $ac_status); } && 21881 { ac_try='test -z "$ac_c_werror_flag" 21882 || test ! -s conftest.err' 21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21884 (eval $ac_try) 2>&5 21885 ac_status=$? 21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21887 (exit $ac_status); }; } && 21888 { ac_try='test -s conftest.$ac_objext' 21889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21890 (eval $ac_try) 2>&5 21891 ac_status=$? 21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21893 (exit $ac_status); }; }; then 21894 ac_header_compiler=yes 21895else 21896 echo "$as_me: failed program was:" >&5 21897sed 's/^/| /' conftest.$ac_ext >&5 21898 21899ac_header_compiler=no 21900fi 21901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21902echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21903echo "${ECHO_T}$ac_header_compiler" >&6 21904 21905# Is the header present? 21906echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5 21907echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6 21908cat >conftest.$ac_ext <<_ACEOF 21909/* confdefs.h. */ 21910_ACEOF 21911cat confdefs.h >>conftest.$ac_ext 21912cat >>conftest.$ac_ext <<_ACEOF 21913/* end confdefs.h. */ 21914#include <X11/Xlib.h> 21915_ACEOF 21916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21918 ac_status=$? 21919 grep -v '^ *+' conftest.er1 >conftest.err 21920 rm -f conftest.er1 21921 cat conftest.err >&5 21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21923 (exit $ac_status); } >/dev/null; then 21924 if test -s conftest.err; then 21925 ac_cpp_err=$ac_c_preproc_warn_flag 21926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21927 else 21928 ac_cpp_err= 21929 fi 21930else 21931 ac_cpp_err=yes 21932fi 21933if test -z "$ac_cpp_err"; then 21934 ac_header_preproc=yes 21935else 21936 echo "$as_me: failed program was:" >&5 21937sed 's/^/| /' conftest.$ac_ext >&5 21938 21939 ac_header_preproc=no 21940fi 21941rm -f conftest.err conftest.$ac_ext 21942echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21943echo "${ECHO_T}$ac_header_preproc" >&6 21944 21945# So? What about this header? 21946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21947 yes:no: ) 21948 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 21949echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21950 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5 21951echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;} 21952 ac_header_preproc=yes 21953 ;; 21954 no:yes:* ) 21955 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5 21956echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;} 21957 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5 21958echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;} 21959 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5 21960echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;} 21961 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5 21962echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 21963 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5 21964echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;} 21965 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5 21966echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;} 21967 ( 21968 cat <<\_ASBOX 21969## ------------------------------- ## 21970## Report this to the sage lists. ## 21971## ------------------------------- ## 21972_ASBOX 21973 ) | 21974 sed "s/^/$as_me: WARNING: /" >&2 21975 ;; 21976esac 21977echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5 21978echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6 21979if test "${ac_cv_header_X11_Xlib_h+set}" = set; then 21980 echo $ECHO_N "(cached) $ECHO_C" >&6 21981else 21982 ac_cv_header_X11_Xlib_h=$ac_header_preproc 21983fi 21984echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5 21985echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6 21986 21987fi 21988 21989 21990 21991 21992if test "$ac_cv_header_X11_Xlib_h" == "yes"; then 21993 BUILD_GLX_TRUE= 21994 BUILD_GLX_FALSE='#' 21995else 21996 BUILD_GLX_TRUE='#' 21997 BUILD_GLX_FALSE= 21998fi 21999 22000 22001 22002if false; then 22003 BUILD_GLX_TRUE= 22004 BUILD_GLX_FALSE='#' 22005else 22006 BUILD_GLX_TRUE='#' 22007 BUILD_GLX_FALSE= 22008fi 22009 22010 22011SAGE_LIBS="-lsage" 22012SAGE_CFLAGS="" 22013 22014 22015 22016 22017 22018 22019 22020 22021 ac_config_files="$ac_config_files Makefile sage/Makefile sage/header.h templates/Makefile sage.spec sage.pc man/Makefile man/man3/Makefile" 22022cat >confcache <<\_ACEOF 22023# This file is a shell script that caches the results of configure 22024# tests run on this system so they can be shared between configure 22025# scripts and configure runs, see configure's option --config-cache. 22026# It is not useful on other systems. If it contains results you don't 22027# want to keep, you may remove or edit it. 22028# 22029# config.status only pays attention to the cache file if you give it 22030# the --recheck option to rerun configure. 22031# 22032# `ac_cv_env_foo' variables (set or unset) will be overridden when 22033# loading this file, other *unset* `ac_cv_foo' will be assigned the 22034# following values. 22035 22036_ACEOF 22037 22038# The following way of writing the cache mishandles newlines in values, 22039# but we know of no workaround that is simple, portable, and efficient. 22040# So, don't put newlines in cache variables' values. 22041# Ultrix sh set writes to stderr and can't be redirected directly, 22042# and sets the high bit in the cache file unless we assign to the vars. 22043{ 22044 (set) 2>&1 | 22045 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22046 *ac_space=\ *) 22047 # `set' does not quote correctly, so add quotes (double-quote 22048 # substitution turns \\\\ into \\, and sed turns \\ into \). 22049 sed -n \ 22050 "s/'/'\\\\''/g; 22051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22052 ;; 22053 *) 22054 # `set' quotes correctly as required by POSIX, so do not add quotes. 22055 sed -n \ 22056 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22057 ;; 22058 esac; 22059} | 22060 sed ' 22061 t clear 22062 : clear 22063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22064 t end 22065 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22066 : end' >>confcache 22067if diff $cache_file confcache >/dev/null 2>&1; then :; else 22068 if test -w $cache_file; then 22069 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22070 cat confcache >$cache_file 22071 else 22072 echo "not updating unwritable cache $cache_file" 22073 fi 22074fi 22075rm -f confcache 22076 22077test "x$prefix" = xNONE && prefix=$ac_default_prefix 22078# Let make expand exec_prefix. 22079test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22080 22081# VPATH may cause trouble with some makes, so we remove $(srcdir), 22082# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22083# trailing colons and then remove the whole line if VPATH becomes empty 22084# (actually we leave an empty line to preserve line numbers). 22085if test "x$srcdir" = x.; then 22086 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22087s/:*\$(srcdir):*/:/; 22088s/:*\${srcdir}:*/:/; 22089s/:*@srcdir@:*/:/; 22090s/^\([^=]*=[ ]*\):*/\1/; 22091s/:*$//; 22092s/^[^=]*=[ ]*$//; 22093}' 22094fi 22095 22096DEFS=-DHAVE_CONFIG_H 22097 22098ac_libobjs= 22099ac_ltlibobjs= 22100for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22101 # 1. Remove the extension, and $U if already installed. 22102 ac_i=`echo "$ac_i" | 22103 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22104 # 2. Add them. 22105 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 22106 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 22107done 22108LIBOBJS=$ac_libobjs 22109 22110LTLIBOBJS=$ac_ltlibobjs 22111 22112 22113if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22114 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22115Usually this means the macro was only invoked conditionally." >&5 22116echo "$as_me: error: conditional \"AMDEP\" was never defined. 22117Usually this means the macro was only invoked conditionally." >&2;} 22118 { (exit 1); exit 1; }; } 22119fi 22120if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22121 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22122Usually this means the macro was only invoked conditionally." >&5 22123echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22124Usually this means the macro was only invoked conditionally." >&2;} 22125 { (exit 1); exit 1; }; } 22126fi 22127if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22128 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22129Usually this means the macro was only invoked conditionally." >&5 22130echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22131Usually this means the macro was only invoked conditionally." >&2;} 22132 { (exit 1); exit 1; }; } 22133fi 22134if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22135 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22136Usually this means the macro was only invoked conditionally." >&5 22137echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22138Usually this means the macro was only invoked conditionally." >&2;} 22139 { (exit 1); exit 1; }; } 22140fi 22141if test -z "${BUILD_DLL_TRUE}" && test -z "${BUILD_DLL_FALSE}"; then 22142 { { echo "$as_me:$LINENO: error: conditional \"BUILD_DLL\" was never defined. 22143Usually this means the macro was only invoked conditionally." >&5 22144echo "$as_me: error: conditional \"BUILD_DLL\" was never defined. 22145Usually this means the macro was only invoked conditionally." >&2;} 22146 { (exit 1); exit 1; }; } 22147fi 22148if test -z "${BUILD_WGL_TRUE}" && test -z "${BUILD_WGL_FALSE}"; then 22149 { { echo "$as_me:$LINENO: error: conditional \"BUILD_WGL\" was never defined. 22150Usually this means the macro was only invoked conditionally." >&5 22151echo "$as_me: error: conditional \"BUILD_WGL\" was never defined. 22152Usually this means the macro was only invoked conditionally." >&2;} 22153 { (exit 1); exit 1; }; } 22154fi 22155if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then 22156 { { echo "$as_me:$LINENO: error: conditional \"BUILD_GLX\" was never defined. 22157Usually this means the macro was only invoked conditionally." >&5 22158echo "$as_me: error: conditional \"BUILD_GLX\" was never defined. 22159Usually this means the macro was only invoked conditionally." >&2;} 22160 { (exit 1); exit 1; }; } 22161fi 22162if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then 22163 { { echo "$as_me:$LINENO: error: conditional \"BUILD_GLX\" was never defined. 22164Usually this means the macro was only invoked conditionally." >&5 22165echo "$as_me: error: conditional \"BUILD_GLX\" was never defined. 22166Usually this means the macro was only invoked conditionally." >&2;} 22167 { (exit 1); exit 1; }; } 22168fi 22169 22170: ${CONFIG_STATUS=./config.status} 22171ac_clean_files_save=$ac_clean_files 22172ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22173{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22174echo "$as_me: creating $CONFIG_STATUS" >&6;} 22175cat >$CONFIG_STATUS <<_ACEOF 22176#! $SHELL 22177# Generated by $as_me. 22178# Run this file to recreate the current configuration. 22179# Compiler output produced by configure, useful for debugging 22180# configure, is in config.log if it exists. 22181 22182debug=false 22183ac_cs_recheck=false 22184ac_cs_silent=false 22185SHELL=\${CONFIG_SHELL-$SHELL} 22186_ACEOF 22187 22188cat >>$CONFIG_STATUS <<\_ACEOF 22189## --------------------- ## 22190## M4sh Initialization. ## 22191## --------------------- ## 22192 22193# Be Bourne compatible 22194if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22195 emulate sh 22196 NULLCMD=: 22197 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22198 # is contrary to our usage. Disable this feature. 22199 alias -g '${1+"$@"}'='"$@"' 22200elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22201 set -o posix 22202fi 22203DUALCASE=1; export DUALCASE # for MKS sh 22204 22205# Support unset when possible. 22206if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22207 as_unset=unset 22208else 22209 as_unset=false 22210fi 22211 22212 22213# Work around bugs in pre-3.0 UWIN ksh. 22214$as_unset ENV MAIL MAILPATH 22215PS1='$ ' 22216PS2='> ' 22217PS4='+ ' 22218 22219# NLS nuisances. 22220for as_var in \ 22221 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22222 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22223 LC_TELEPHONE LC_TIME 22224do 22225 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22226 eval $as_var=C; export $as_var 22227 else 22228 $as_unset $as_var 22229 fi 22230done 22231 22232# Required to use basename. 22233if expr a : '\(a\)' >/dev/null 2>&1; then 22234 as_expr=expr 22235else 22236 as_expr=false 22237fi 22238 22239if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 22240 as_basename=basename 22241else 22242 as_basename=false 22243fi 22244 22245 22246# Name of the executable. 22247as_me=`$as_basename "$0" || 22248$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22249 X"$0" : 'X\(//\)$' \| \ 22250 X"$0" : 'X\(/\)$' \| \ 22251 . : '\(.\)' 2>/dev/null || 22252echo X/"$0" | 22253 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 22254 /^X\/\(\/\/\)$/{ s//\1/; q; } 22255 /^X\/\(\/\).*/{ s//\1/; q; } 22256 s/.*/./; q'` 22257 22258 22259# PATH needs CR, and LINENO needs CR and PATH. 22260# Avoid depending upon Character Ranges. 22261as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22262as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22263as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22264as_cr_digits='0123456789' 22265as_cr_alnum=$as_cr_Letters$as_cr_digits 22266 22267# The user is always right. 22268if test "${PATH_SEPARATOR+set}" != set; then 22269 echo "#! /bin/sh" >conf$$.sh 22270 echo "exit 0" >>conf$$.sh 22271 chmod +x conf$$.sh 22272 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22273 PATH_SEPARATOR=';' 22274 else 22275 PATH_SEPARATOR=: 22276 fi 22277 rm -f conf$$.sh 22278fi 22279 22280 22281 as_lineno_1=$LINENO 22282 as_lineno_2=$LINENO 22283 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22284 test "x$as_lineno_1" != "x$as_lineno_2" && 22285 test "x$as_lineno_3" = "x$as_lineno_2" || { 22286 # Find who we are. Look in the path if we contain no path at all 22287 # relative or not. 22288 case $0 in 22289 *[\\/]* ) as_myself=$0 ;; 22290 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22291for as_dir in $PATH 22292do 22293 IFS=$as_save_IFS 22294 test -z "$as_dir" && as_dir=. 22295 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22296done 22297 22298 ;; 22299 esac 22300 # We did not find ourselves, most probably we were run as `sh COMMAND' 22301 # in which case we are not to be found in the path. 22302 if test "x$as_myself" = x; then 22303 as_myself=$0 22304 fi 22305 if test ! -f "$as_myself"; then 22306 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 22307echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 22308 { (exit 1); exit 1; }; } 22309 fi 22310 case $CONFIG_SHELL in 22311 '') 22312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22313for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 22314do 22315 IFS=$as_save_IFS 22316 test -z "$as_dir" && as_dir=. 22317 for as_base in sh bash ksh sh5; do 22318 case $as_dir in 22319 /*) 22320 if ("$as_dir/$as_base" -c ' 22321 as_lineno_1=$LINENO 22322 as_lineno_2=$LINENO 22323 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22324 test "x$as_lineno_1" != "x$as_lineno_2" && 22325 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 22326 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 22327 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 22328 CONFIG_SHELL=$as_dir/$as_base 22329 export CONFIG_SHELL 22330 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 22331 fi;; 22332 esac 22333 done 22334done 22335;; 22336 esac 22337 22338 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22339 # uniformly replaced by the line number. The first 'sed' inserts a 22340 # line-number line before each line; the second 'sed' does the real 22341 # work. The second script uses 'N' to pair each line-number line 22342 # with the numbered line, and appends trailing '-' during 22343 # substitution so that $LINENO is not a special case at line end. 22344 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22345 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 22346 sed '=' <$as_myself | 22347 sed ' 22348 N 22349 s,$,-, 22350 : loop 22351 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 22352 t loop 22353 s,-$,, 22354 s,^['$as_cr_digits']*\n,, 22355 ' >$as_me.lineno && 22356 chmod +x $as_me.lineno || 22357 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 22358echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 22359 { (exit 1); exit 1; }; } 22360 22361 # Don't try to exec as it changes $[0], causing all sort of problems 22362 # (the dirname of $[0] is not the place where we might find the 22363 # original and so on. Autoconf is especially sensible to this). 22364 . ./$as_me.lineno 22365 # Exit status is that of the last command. 22366 exit 22367} 22368 22369 22370case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 22371 *c*,-n*) ECHO_N= ECHO_C=' 22372' ECHO_T=' ' ;; 22373 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 22374 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 22375esac 22376 22377if expr a : '\(a\)' >/dev/null 2>&1; then 22378 as_expr=expr 22379else 22380 as_expr=false 22381fi 22382 22383rm -f conf$$ conf$$.exe conf$$.file 22384echo >conf$$.file 22385if ln -s conf$$.file conf$$ 2>/dev/null; then 22386 # We could just check for DJGPP; but this test a) works b) is more generic 22387 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 22388 if test -f conf$$.exe; then 22389 # Don't use ln at all; we don't have any links 22390 as_ln_s='cp -p' 22391 else 22392 as_ln_s='ln -s' 22393 fi 22394elif ln conf$$.file conf$$ 2>/dev/null; then 22395 as_ln_s=ln 22396else 22397 as_ln_s='cp -p' 22398fi 22399rm -f conf$$ conf$$.exe conf$$.file 22400 22401if mkdir -p . 2>/dev/null; then 22402 as_mkdir_p=: 22403else 22404 test -d ./-p && rmdir ./-p 22405 as_mkdir_p=false 22406fi 22407 22408as_executable_p="test -f" 22409 22410# Sed expression to map a string onto a valid CPP name. 22411as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22412 22413# Sed expression to map a string onto a valid variable name. 22414as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22415 22416 22417# IFS 22418# We need space, tab and new line, in precisely that order. 22419as_nl=' 22420' 22421IFS=" $as_nl" 22422 22423# CDPATH. 22424$as_unset CDPATH 22425 22426exec 6>&1 22427 22428# Open the log real soon, to keep \$[0] and so on meaningful, and to 22429# report actual input values of CONFIG_FILES etc. instead of their 22430# values after options handling. Logging --version etc. is OK. 22431exec 5>>config.log 22432{ 22433 echo 22434 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22435## Running $as_me. ## 22436_ASBOX 22437} >&5 22438cat >&5 <<_CSEOF 22439 22440This file was extended by sage $as_me 0.2.0, which was 22441generated by GNU Autoconf 2.59. Invocation command line was 22442 22443 CONFIG_FILES = $CONFIG_FILES 22444 CONFIG_HEADERS = $CONFIG_HEADERS 22445 CONFIG_LINKS = $CONFIG_LINKS 22446 CONFIG_COMMANDS = $CONFIG_COMMANDS 22447 $ $0 $@ 22448 22449_CSEOF 22450echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 22451echo >&5 22452_ACEOF 22453 22454# Files that config.status was made for. 22455if test -n "$ac_config_files"; then 22456 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 22457fi 22458 22459if test -n "$ac_config_headers"; then 22460 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 22461fi 22462 22463if test -n "$ac_config_links"; then 22464 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 22465fi 22466 22467if test -n "$ac_config_commands"; then 22468 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 22469fi 22470 22471cat >>$CONFIG_STATUS <<\_ACEOF 22472 22473ac_cs_usage="\ 22474\`$as_me' instantiates files from templates according to the 22475current configuration. 22476 22477Usage: $0 [OPTIONS] [FILE]... 22478 22479 -h, --help print this help, then exit 22480 -V, --version print version number, then exit 22481 -q, --quiet do not print progress messages 22482 -d, --debug don't remove temporary files 22483 --recheck update $as_me by reconfiguring in the same conditions 22484 --file=FILE[:TEMPLATE] 22485 instantiate the configuration file FILE 22486 --header=FILE[:TEMPLATE] 22487 instantiate the configuration header FILE 22488 22489Configuration files: 22490$config_files 22491 22492Configuration headers: 22493$config_headers 22494 22495Configuration commands: 22496$config_commands 22497 22498Report bugs to <bug-autoconf@gnu.org>." 22499_ACEOF 22500 22501cat >>$CONFIG_STATUS <<_ACEOF 22502ac_cs_version="\\ 22503sage config.status 0.2.0 22504configured by $0, generated by GNU Autoconf 2.59, 22505 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 22506 22507Copyright (C) 2003 Free Software Foundation, Inc. 22508This config.status script is free software; the Free Software Foundation 22509gives unlimited permission to copy, distribute and modify it." 22510srcdir=$srcdir 22511INSTALL="$INSTALL" 22512_ACEOF 22513 22514cat >>$CONFIG_STATUS <<\_ACEOF 22515# If no file are specified by the user, then we need to provide default 22516# value. By we need to know if files were specified by the user. 22517ac_need_defaults=: 22518while test $# != 0 22519do 22520 case $1 in 22521 --*=*) 22522 ac_option=`expr "x$1" : 'x\([^=]*\)='` 22523 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 22524 ac_shift=: 22525 ;; 22526 -*) 22527 ac_option=$1 22528 ac_optarg=$2 22529 ac_shift=shift 22530 ;; 22531 *) # This is not an option, so the user has probably given explicit 22532 # arguments. 22533 ac_option=$1 22534 ac_need_defaults=false;; 22535 esac 22536 22537 case $ac_option in 22538 # Handling of the options. 22539_ACEOF 22540cat >>$CONFIG_STATUS <<\_ACEOF 22541 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22542 ac_cs_recheck=: ;; 22543 --version | --vers* | -V ) 22544 echo "$ac_cs_version"; exit 0 ;; 22545 --he | --h) 22546 # Conflict between --help and --header 22547 { { echo "$as_me:$LINENO: error: ambiguous option: $1 22548Try \`$0 --help' for more information." >&5 22549echo "$as_me: error: ambiguous option: $1 22550Try \`$0 --help' for more information." >&2;} 22551 { (exit 1); exit 1; }; };; 22552 --help | --hel | -h ) 22553 echo "$ac_cs_usage"; exit 0 ;; 22554 --debug | --d* | -d ) 22555 debug=: ;; 22556 --file | --fil | --fi | --f ) 22557 $ac_shift 22558 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22559 ac_need_defaults=false;; 22560 --header | --heade | --head | --hea ) 22561 $ac_shift 22562 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22563 ac_need_defaults=false;; 22564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22565 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22566 ac_cs_silent=: ;; 22567 22568 # This is an error. 22569 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 22570Try \`$0 --help' for more information." >&5 22571echo "$as_me: error: unrecognized option: $1 22572Try \`$0 --help' for more information." >&2;} 22573 { (exit 1); exit 1; }; } ;; 22574 22575 *) ac_config_targets="$ac_config_targets $1" ;; 22576 22577 esac 22578 shift 22579done 22580 22581ac_configure_extra_args= 22582 22583if $ac_cs_silent; then 22584 exec 6>/dev/null 22585 ac_configure_extra_args="$ac_configure_extra_args --silent" 22586fi 22587 22588_ACEOF 22589cat >>$CONFIG_STATUS <<_ACEOF 22590if \$ac_cs_recheck; then 22591 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22592 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22593fi 22594 22595_ACEOF 22596 22597cat >>$CONFIG_STATUS <<_ACEOF 22598# 22599# INIT-COMMANDS section. 22600# 22601 22602AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22603 22604_ACEOF 22605 22606 22607 22608cat >>$CONFIG_STATUS <<\_ACEOF 22609for ac_config_target in $ac_config_targets 22610do 22611 case "$ac_config_target" in 22612 # Handling of arguments. 22613 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22614 "sage/Makefile" ) CONFIG_FILES="$CONFIG_FILES sage/Makefile" ;; 22615 "sage/header.h" ) CONFIG_FILES="$CONFIG_FILES sage/header.h" ;; 22616 "templates/Makefile" ) CONFIG_FILES="$CONFIG_FILES templates/Makefile" ;; 22617 "sage.spec" ) CONFIG_FILES="$CONFIG_FILES sage.spec" ;; 22618 "sage.pc" ) CONFIG_FILES="$CONFIG_FILES sage.pc" ;; 22619 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22620 "man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;; 22621 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22622 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22623 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22624echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22625 { (exit 1); exit 1; }; };; 22626 esac 22627done 22628 22629# If the user did not use the arguments to specify the items to instantiate, 22630# then the envvar interface is used. Set only those that are not. 22631# We use the long form for the default assignment because of an extremely 22632# bizarre bug on SunOS 4.1.3. 22633if $ac_need_defaults; then 22634 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22635 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22636 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22637fi 22638 22639# Have a temporary directory for convenience. Make it in the build tree 22640# simply because there is no reason to put it here, and in addition, 22641# creating and moving files from /tmp can sometimes cause problems. 22642# Create a temporary directory, and hook for its removal unless debugging. 22643$debug || 22644{ 22645 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 22646 trap '{ (exit 1); exit 1; }' 1 2 13 15 22647} 22648 22649# Create a (secure) tmp directory for tmp files. 22650 22651{ 22652 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 22653 test -n "$tmp" && test -d "$tmp" 22654} || 22655{ 22656 tmp=./confstat$$-$RANDOM 22657 (umask 077 && mkdir $tmp) 22658} || 22659{ 22660 echo "$me: cannot create a temporary directory in ." >&2 22661 { (exit 1); exit 1; } 22662} 22663 22664_ACEOF 22665 22666cat >>$CONFIG_STATUS <<_ACEOF 22667 22668# 22669# CONFIG_FILES section. 22670# 22671 22672# No need to generate the scripts if there are no CONFIG_FILES. 22673# This happens for instance when ./config.status config.h 22674if test -n "\$CONFIG_FILES"; then 22675 # Protect against being on the right side of a sed subst in config.status. 22676 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 22677 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 22678s,@SHELL@,$SHELL,;t t 22679s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 22680s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 22681s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 22682s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 22683s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 22684s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 22685s,@exec_prefix@,$exec_prefix,;t t 22686s,@prefix@,$prefix,;t t 22687s,@program_transform_name@,$program_transform_name,;t t 22688s,@bindir@,$bindir,;t t 22689s,@sbindir@,$sbindir,;t t 22690s,@libexecdir@,$libexecdir,;t t 22691s,@datadir@,$datadir,;t t 22692s,@sysconfdir@,$sysconfdir,;t t 22693s,@sharedstatedir@,$sharedstatedir,;t t 22694s,@localstatedir@,$localstatedir,;t t 22695s,@libdir@,$libdir,;t t 22696s,@includedir@,$includedir,;t t 22697s,@oldincludedir@,$oldincludedir,;t t 22698s,@infodir@,$infodir,;t t 22699s,@mandir@,$mandir,;t t 22700s,@build_alias@,$build_alias,;t t 22701s,@host_alias@,$host_alias,;t t 22702s,@target_alias@,$target_alias,;t t 22703s,@DEFS@,$DEFS,;t t 22704s,@ECHO_C@,$ECHO_C,;t t 22705s,@ECHO_N@,$ECHO_N,;t t 22706s,@ECHO_T@,$ECHO_T,;t t 22707s,@LIBS@,$LIBS,;t t 22708s,@build@,$build,;t t 22709s,@build_cpu@,$build_cpu,;t t 22710s,@build_vendor@,$build_vendor,;t t 22711s,@build_os@,$build_os,;t t 22712s,@host@,$host,;t t 22713s,@host_cpu@,$host_cpu,;t t 22714s,@host_vendor@,$host_vendor,;t t 22715s,@host_os@,$host_os,;t t 22716s,@target@,$target,;t t 22717s,@target_cpu@,$target_cpu,;t t 22718s,@target_vendor@,$target_vendor,;t t 22719s,@target_os@,$target_os,;t t 22720s,@SAGE_VERSION_INFO@,$SAGE_VERSION_INFO,;t t 22721s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 22722s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 22723s,@INSTALL_DATA@,$INSTALL_DATA,;t t 22724s,@CYGPATH_W@,$CYGPATH_W,;t t 22725s,@PACKAGE@,$PACKAGE,;t t 22726s,@VERSION@,$VERSION,;t t 22727s,@ACLOCAL@,$ACLOCAL,;t t 22728s,@AUTOCONF@,$AUTOCONF,;t t 22729s,@AUTOMAKE@,$AUTOMAKE,;t t 22730s,@AUTOHEADER@,$AUTOHEADER,;t t 22731s,@MAKEINFO@,$MAKEINFO,;t t 22732s,@install_sh@,$install_sh,;t t 22733s,@STRIP@,$STRIP,;t t 22734s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 22735s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 22736s,@mkdir_p@,$mkdir_p,;t t 22737s,@AWK@,$AWK,;t t 22738s,@SET_MAKE@,$SET_MAKE,;t t 22739s,@am__leading_dot@,$am__leading_dot,;t t 22740s,@AMTAR@,$AMTAR,;t t 22741s,@am__tar@,$am__tar,;t t 22742s,@am__untar@,$am__untar,;t t 22743s,@CC@,$CC,;t t 22744s,@CFLAGS@,$CFLAGS,;t t 22745s,@LDFLAGS@,$LDFLAGS,;t t 22746s,@CPPFLAGS@,$CPPFLAGS,;t t 22747s,@ac_ct_CC@,$ac_ct_CC,;t t 22748s,@EXEEXT@,$EXEEXT,;t t 22749s,@OBJEXT@,$OBJEXT,;t t 22750s,@DEPDIR@,$DEPDIR,;t t 22751s,@am__include@,$am__include,;t t 22752s,@am__quote@,$am__quote,;t t 22753s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 22754s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 22755s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 22756s,@CCDEPMODE@,$CCDEPMODE,;t t 22757s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 22758s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 22759s,@SED@,$SED,;t t 22760s,@EGREP@,$EGREP,;t t 22761s,@LN_S@,$LN_S,;t t 22762s,@ECHO@,$ECHO,;t t 22763s,@AR@,$AR,;t t 22764s,@ac_ct_AR@,$ac_ct_AR,;t t 22765s,@RANLIB@,$RANLIB,;t t 22766s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 22767s,@DLLTOOL@,$DLLTOOL,;t t 22768s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t 22769s,@AS@,$AS,;t t 22770s,@ac_ct_AS@,$ac_ct_AS,;t t 22771s,@OBJDUMP@,$OBJDUMP,;t t 22772s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t 22773s,@CPP@,$CPP,;t t 22774s,@CXX@,$CXX,;t t 22775s,@CXXFLAGS@,$CXXFLAGS,;t t 22776s,@ac_ct_CXX@,$ac_ct_CXX,;t t 22777s,@CXXDEPMODE@,$CXXDEPMODE,;t t 22778s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 22779s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 22780s,@CXXCPP@,$CXXCPP,;t t 22781s,@F77@,$F77,;t t 22782s,@FFLAGS@,$FFLAGS,;t t 22783s,@ac_ct_F77@,$ac_ct_F77,;t t 22784s,@LIBTOOL@,$LIBTOOL,;t t 22785s,@X_CFLAGS@,$X_CFLAGS,;t t 22786s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 22787s,@X_LIBS@,$X_LIBS,;t t 22788s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 22789s,@SAGE_DLL@,$SAGE_DLL,;t t 22790s,@DLLWRAP@,$DLLWRAP,;t t 22791s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t 22792s,@BUILD_DLL_TRUE@,$BUILD_DLL_TRUE,;t t 22793s,@BUILD_DLL_FALSE@,$BUILD_DLL_FALSE,;t t 22794s,@BUILD_IT@,$BUILD_IT,;t t 22795s,@SDL_VERSION@,$SDL_VERSION,;t t 22796s,@SDL_CONFIG@,$SDL_CONFIG,;t t 22797s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t 22798s,@SDL_LIBS@,$SDL_LIBS,;t t 22799s,@BUILD_WGL_TRUE@,$BUILD_WGL_TRUE,;t t 22800s,@BUILD_WGL_FALSE@,$BUILD_WGL_FALSE,;t t 22801s,@BUILD_GLX_TRUE@,$BUILD_GLX_TRUE,;t t 22802s,@BUILD_GLX_FALSE@,$BUILD_GLX_FALSE,;t t 22803s,@SAGE_REQUIRES@,$SAGE_REQUIRES,;t t 22804s,@SAGE_LIBS@,$SAGE_LIBS,;t t 22805s,@SAGE_CFLAGS@,$SAGE_CFLAGS,;t t 22806s,@PREFIX@,$PREFIX,;t t 22807s,@LIBOBJS@,$LIBOBJS,;t t 22808s,@LTLIBOBJS@,$LTLIBOBJS,;t t 22809CEOF 22810 22811_ACEOF 22812 22813 cat >>$CONFIG_STATUS <<\_ACEOF 22814 # Split the substitutions into bite-sized pieces for seds with 22815 # small command number limits, like on Digital OSF/1 and HP-UX. 22816 ac_max_sed_lines=48 22817 ac_sed_frag=1 # Number of current file. 22818 ac_beg=1 # First line for current file. 22819 ac_end=$ac_max_sed_lines # Line after last line for current file. 22820 ac_more_lines=: 22821 ac_sed_cmds= 22822 while $ac_more_lines; do 22823 if test $ac_beg -gt 1; then 22824 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22825 else 22826 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22827 fi 22828 if test ! -s $tmp/subs.frag; then 22829 ac_more_lines=false 22830 else 22831 # The purpose of the label and of the branching condition is to 22832 # speed up the sed processing (if there are no `@' at all, there 22833 # is no need to browse any of the substitutions). 22834 # These are the two extra sed commands mentioned above. 22835 (echo ':t 22836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 22837 if test -z "$ac_sed_cmds"; then 22838 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 22839 else 22840 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 22841 fi 22842 ac_sed_frag=`expr $ac_sed_frag + 1` 22843 ac_beg=$ac_end 22844 ac_end=`expr $ac_end + $ac_max_sed_lines` 22845 fi 22846 done 22847 if test -z "$ac_sed_cmds"; then 22848 ac_sed_cmds=cat 22849 fi 22850fi # test -n "$CONFIG_FILES" 22851 22852_ACEOF 22853cat >>$CONFIG_STATUS <<\_ACEOF 22854for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 22855 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22856 case $ac_file in 22857 - | *:- | *:-:* ) # input from stdin 22858 cat >$tmp/stdin 22859 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22860 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22861 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22862 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22863 * ) ac_file_in=$ac_file.in ;; 22864 esac 22865 22866 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 22867 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22868$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22869 X"$ac_file" : 'X\(//\)[^/]' \| \ 22870 X"$ac_file" : 'X\(//\)$' \| \ 22871 X"$ac_file" : 'X\(/\)' \| \ 22872 . : '\(.\)' 2>/dev/null || 22873echo X"$ac_file" | 22874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22875 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22876 /^X\(\/\/\)$/{ s//\1/; q; } 22877 /^X\(\/\).*/{ s//\1/; q; } 22878 s/.*/./; q'` 22879 { if $as_mkdir_p; then 22880 mkdir -p "$ac_dir" 22881 else 22882 as_dir="$ac_dir" 22883 as_dirs= 22884 while test ! -d "$as_dir"; do 22885 as_dirs="$as_dir $as_dirs" 22886 as_dir=`(dirname "$as_dir") 2>/dev/null || 22887$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22888 X"$as_dir" : 'X\(//\)[^/]' \| \ 22889 X"$as_dir" : 'X\(//\)$' \| \ 22890 X"$as_dir" : 'X\(/\)' \| \ 22891 . : '\(.\)' 2>/dev/null || 22892echo X"$as_dir" | 22893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22894 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22895 /^X\(\/\/\)$/{ s//\1/; q; } 22896 /^X\(\/\).*/{ s//\1/; q; } 22897 s/.*/./; q'` 22898 done 22899 test ! -n "$as_dirs" || mkdir $as_dirs 22900 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22901echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22902 { (exit 1); exit 1; }; }; } 22903 22904 ac_builddir=. 22905 22906if test "$ac_dir" != .; then 22907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22908 # A "../" for each directory in $ac_dir_suffix. 22909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22910else 22911 ac_dir_suffix= ac_top_builddir= 22912fi 22913 22914case $srcdir in 22915 .) # No --srcdir option. We are building in place. 22916 ac_srcdir=. 22917 if test -z "$ac_top_builddir"; then 22918 ac_top_srcdir=. 22919 else 22920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22921 fi ;; 22922 [\\/]* | ?:[\\/]* ) # Absolute path. 22923 ac_srcdir=$srcdir$ac_dir_suffix; 22924 ac_top_srcdir=$srcdir ;; 22925 *) # Relative path. 22926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22927 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22928esac 22929 22930# Do not use `cd foo && pwd` to compute absolute paths, because 22931# the directories may not exist. 22932case `pwd` in 22933.) ac_abs_builddir="$ac_dir";; 22934*) 22935 case "$ac_dir" in 22936 .) ac_abs_builddir=`pwd`;; 22937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22938 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22939 esac;; 22940esac 22941case $ac_abs_builddir in 22942.) ac_abs_top_builddir=${ac_top_builddir}.;; 22943*) 22944 case ${ac_top_builddir}. in 22945 .) ac_abs_top_builddir=$ac_abs_builddir;; 22946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22948 esac;; 22949esac 22950case $ac_abs_builddir in 22951.) ac_abs_srcdir=$ac_srcdir;; 22952*) 22953 case $ac_srcdir in 22954 .) ac_abs_srcdir=$ac_abs_builddir;; 22955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22957 esac;; 22958esac 22959case $ac_abs_builddir in 22960.) ac_abs_top_srcdir=$ac_top_srcdir;; 22961*) 22962 case $ac_top_srcdir in 22963 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22966 esac;; 22967esac 22968 22969 22970 case $INSTALL in 22971 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22972 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 22973 esac 22974 22975 if test x"$ac_file" != x-; then 22976 { echo "$as_me:$LINENO: creating $ac_file" >&5 22977echo "$as_me: creating $ac_file" >&6;} 22978 rm -f "$ac_file" 22979 fi 22980 # Let's still pretend it is `configure' which instantiates (i.e., don't 22981 # use $as_me), people would be surprised to read: 22982 # /* config.h. Generated by config.status. */ 22983 if test x"$ac_file" = x-; then 22984 configure_input= 22985 else 22986 configure_input="$ac_file. " 22987 fi 22988 configure_input=$configure_input"Generated from `echo $ac_file_in | 22989 sed 's,.*/,,'` by configure." 22990 22991 # First look for the input files in the build tree, otherwise in the 22992 # src tree. 22993 ac_file_inputs=`IFS=: 22994 for f in $ac_file_in; do 22995 case $f in 22996 -) echo $tmp/stdin ;; 22997 [\\/$]*) 22998 # Absolute (can't be DOS-style, as IFS=:) 22999 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23000echo "$as_me: error: cannot find input file: $f" >&2;} 23001 { (exit 1); exit 1; }; } 23002 echo "$f";; 23003 *) # Relative 23004 if test -f "$f"; then 23005 # Build tree 23006 echo "$f" 23007 elif test -f "$srcdir/$f"; then 23008 # Source tree 23009 echo "$srcdir/$f" 23010 else 23011 # /dev/null tree 23012 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23013echo "$as_me: error: cannot find input file: $f" >&2;} 23014 { (exit 1); exit 1; }; } 23015 fi;; 23016 esac 23017 done` || { (exit 1); exit 1; } 23018_ACEOF 23019cat >>$CONFIG_STATUS <<_ACEOF 23020 sed "$ac_vpsub 23021$extrasub 23022_ACEOF 23023cat >>$CONFIG_STATUS <<\_ACEOF 23024:t 23025/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23026s,@configure_input@,$configure_input,;t t 23027s,@srcdir@,$ac_srcdir,;t t 23028s,@abs_srcdir@,$ac_abs_srcdir,;t t 23029s,@top_srcdir@,$ac_top_srcdir,;t t 23030s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23031s,@builddir@,$ac_builddir,;t t 23032s,@abs_builddir@,$ac_abs_builddir,;t t 23033s,@top_builddir@,$ac_top_builddir,;t t 23034s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23035s,@INSTALL@,$ac_INSTALL,;t t 23036" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23037 rm -f $tmp/stdin 23038 if test x"$ac_file" != x-; then 23039 mv $tmp/out $ac_file 23040 else 23041 cat $tmp/out 23042 rm -f $tmp/out 23043 fi 23044 23045done 23046_ACEOF 23047cat >>$CONFIG_STATUS <<\_ACEOF 23048 23049# 23050# CONFIG_HEADER section. 23051# 23052 23053# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 23054# NAME is the cpp macro being defined and VALUE is the value it is being given. 23055# 23056# ac_d sets the value in "#define NAME VALUE" lines. 23057ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 23058ac_dB='[ ].*$,\1#\2' 23059ac_dC=' ' 23060ac_dD=',;t' 23061# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 23062ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 23063ac_uB='$,\1#\2define\3' 23064ac_uC=' ' 23065ac_uD=',;t' 23066 23067for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 23068 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23069 case $ac_file in 23070 - | *:- | *:-:* ) # input from stdin 23071 cat >$tmp/stdin 23072 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23073 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23074 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23075 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23076 * ) ac_file_in=$ac_file.in ;; 23077 esac 23078 23079 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 23080echo "$as_me: creating $ac_file" >&6;} 23081 23082 # First look for the input files in the build tree, otherwise in the 23083 # src tree. 23084 ac_file_inputs=`IFS=: 23085 for f in $ac_file_in; do 23086 case $f in 23087 -) echo $tmp/stdin ;; 23088 [\\/$]*) 23089 # Absolute (can't be DOS-style, as IFS=:) 23090 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23091echo "$as_me: error: cannot find input file: $f" >&2;} 23092 { (exit 1); exit 1; }; } 23093 # Do quote $f, to prevent DOS paths from being IFS'd. 23094 echo "$f";; 23095 *) # Relative 23096 if test -f "$f"; then 23097 # Build tree 23098 echo "$f" 23099 elif test -f "$srcdir/$f"; then 23100 # Source tree 23101 echo "$srcdir/$f" 23102 else 23103 # /dev/null tree 23104 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23105echo "$as_me: error: cannot find input file: $f" >&2;} 23106 { (exit 1); exit 1; }; } 23107 fi;; 23108 esac 23109 done` || { (exit 1); exit 1; } 23110 # Remove the trailing spaces. 23111 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 23112 23113_ACEOF 23114 23115# Transform confdefs.h into two sed scripts, `conftest.defines' and 23116# `conftest.undefs', that substitutes the proper values into 23117# config.h.in to produce config.h. The first handles `#define' 23118# templates, and the second `#undef' templates. 23119# And first: Protect against being on the right side of a sed subst in 23120# config.status. Protect against being in an unquoted here document 23121# in config.status. 23122rm -f conftest.defines conftest.undefs 23123# Using a here document instead of a string reduces the quoting nightmare. 23124# Putting comments in sed scripts is not portable. 23125# 23126# `end' is used to avoid that the second main sed command (meant for 23127# 0-ary CPP macros) applies to n-ary macro definitions. 23128# See the Autoconf documentation for `clear'. 23129cat >confdef2sed.sed <<\_ACEOF 23130s/[\\&,]/\\&/g 23131s,[\\$`],\\&,g 23132t clear 23133: clear 23134s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 23135t end 23136s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 23137: end 23138_ACEOF 23139# If some macros were called several times there might be several times 23140# the same #defines, which is useless. Nevertheless, we may not want to 23141# sort them, since we want the *last* AC-DEFINE to be honored. 23142uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 23143sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 23144rm -f confdef2sed.sed 23145 23146# This sed command replaces #undef with comments. This is necessary, for 23147# example, in the case of _POSIX_SOURCE, which is predefined and required 23148# on some systems where configure will not decide to define it. 23149cat >>conftest.undefs <<\_ACEOF 23150s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 23151_ACEOF 23152 23153# Break up conftest.defines because some shells have a limit on the size 23154# of here documents, and old seds have small limits too (100 cmds). 23155echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 23156echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 23157echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 23158echo ' :' >>$CONFIG_STATUS 23159rm -f conftest.tail 23160while grep . conftest.defines >/dev/null 23161do 23162 # Write a limited-size here document to $tmp/defines.sed. 23163 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 23164 # Speed up: don't consider the non `#define' lines. 23165 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 23166 # Work around the forget-to-reset-the-flag bug. 23167 echo 't clr' >>$CONFIG_STATUS 23168 echo ': clr' >>$CONFIG_STATUS 23169 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 23170 echo 'CEOF 23171 sed -f $tmp/defines.sed $tmp/in >$tmp/out 23172 rm -f $tmp/in 23173 mv $tmp/out $tmp/in 23174' >>$CONFIG_STATUS 23175 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 23176 rm -f conftest.defines 23177 mv conftest.tail conftest.defines 23178done 23179rm -f conftest.defines 23180echo ' fi # grep' >>$CONFIG_STATUS 23181echo >>$CONFIG_STATUS 23182 23183# Break up conftest.undefs because some shells have a limit on the size 23184# of here documents, and old seds have small limits too (100 cmds). 23185echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 23186rm -f conftest.tail 23187while grep . conftest.undefs >/dev/null 23188do 23189 # Write a limited-size here document to $tmp/undefs.sed. 23190 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 23191 # Speed up: don't consider the non `#undef' 23192 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 23193 # Work around the forget-to-reset-the-flag bug. 23194 echo 't clr' >>$CONFIG_STATUS 23195 echo ': clr' >>$CONFIG_STATUS 23196 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 23197 echo 'CEOF 23198 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 23199 rm -f $tmp/in 23200 mv $tmp/out $tmp/in 23201' >>$CONFIG_STATUS 23202 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 23203 rm -f conftest.undefs 23204 mv conftest.tail conftest.undefs 23205done 23206rm -f conftest.undefs 23207 23208cat >>$CONFIG_STATUS <<\_ACEOF 23209 # Let's still pretend it is `configure' which instantiates (i.e., don't 23210 # use $as_me), people would be surprised to read: 23211 # /* config.h. Generated by config.status. */ 23212 if test x"$ac_file" = x-; then 23213 echo "/* Generated by configure. */" >$tmp/config.h 23214 else 23215 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 23216 fi 23217 cat $tmp/in >>$tmp/config.h 23218 rm -f $tmp/in 23219 if test x"$ac_file" != x-; then 23220 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 23221 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23222echo "$as_me: $ac_file is unchanged" >&6;} 23223 else 23224 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23225$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23226 X"$ac_file" : 'X\(//\)[^/]' \| \ 23227 X"$ac_file" : 'X\(//\)$' \| \ 23228 X"$ac_file" : 'X\(/\)' \| \ 23229 . : '\(.\)' 2>/dev/null || 23230echo X"$ac_file" | 23231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23232 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23233 /^X\(\/\/\)$/{ s//\1/; q; } 23234 /^X\(\/\).*/{ s//\1/; q; } 23235 s/.*/./; q'` 23236 { if $as_mkdir_p; then 23237 mkdir -p "$ac_dir" 23238 else 23239 as_dir="$ac_dir" 23240 as_dirs= 23241 while test ! -d "$as_dir"; do 23242 as_dirs="$as_dir $as_dirs" 23243 as_dir=`(dirname "$as_dir") 2>/dev/null || 23244$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23245 X"$as_dir" : 'X\(//\)[^/]' \| \ 23246 X"$as_dir" : 'X\(//\)$' \| \ 23247 X"$as_dir" : 'X\(/\)' \| \ 23248 . : '\(.\)' 2>/dev/null || 23249echo X"$as_dir" | 23250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23251 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23252 /^X\(\/\/\)$/{ s//\1/; q; } 23253 /^X\(\/\).*/{ s//\1/; q; } 23254 s/.*/./; q'` 23255 done 23256 test ! -n "$as_dirs" || mkdir $as_dirs 23257 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23258echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23259 { (exit 1); exit 1; }; }; } 23260 23261 rm -f $ac_file 23262 mv $tmp/config.h $ac_file 23263 fi 23264 else 23265 cat $tmp/config.h 23266 rm -f $tmp/config.h 23267 fi 23268# Compute $ac_file's index in $config_headers. 23269_am_stamp_count=1 23270for _am_header in $config_headers :; do 23271 case $_am_header in 23272 $ac_file | $ac_file:* ) 23273 break ;; 23274 * ) 23275 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23276 esac 23277done 23278echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 23279$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23280 X$ac_file : 'X\(//\)[^/]' \| \ 23281 X$ac_file : 'X\(//\)$' \| \ 23282 X$ac_file : 'X\(/\)' \| \ 23283 . : '\(.\)' 2>/dev/null || 23284echo X$ac_file | 23285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23286 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23287 /^X\(\/\/\)$/{ s//\1/; q; } 23288 /^X\(\/\).*/{ s//\1/; q; } 23289 s/.*/./; q'`/stamp-h$_am_stamp_count 23290done 23291_ACEOF 23292cat >>$CONFIG_STATUS <<\_ACEOF 23293 23294# 23295# CONFIG_COMMANDS section. 23296# 23297for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 23298 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23299 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23300 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 23301$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23302 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23303 X"$ac_dest" : 'X\(//\)$' \| \ 23304 X"$ac_dest" : 'X\(/\)' \| \ 23305 . : '\(.\)' 2>/dev/null || 23306echo X"$ac_dest" | 23307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23308 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23309 /^X\(\/\/\)$/{ s//\1/; q; } 23310 /^X\(\/\).*/{ s//\1/; q; } 23311 s/.*/./; q'` 23312 { if $as_mkdir_p; then 23313 mkdir -p "$ac_dir" 23314 else 23315 as_dir="$ac_dir" 23316 as_dirs= 23317 while test ! -d "$as_dir"; do 23318 as_dirs="$as_dir $as_dirs" 23319 as_dir=`(dirname "$as_dir") 2>/dev/null || 23320$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23321 X"$as_dir" : 'X\(//\)[^/]' \| \ 23322 X"$as_dir" : 'X\(//\)$' \| \ 23323 X"$as_dir" : 'X\(/\)' \| \ 23324 . : '\(.\)' 2>/dev/null || 23325echo X"$as_dir" | 23326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23327 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23328 /^X\(\/\/\)$/{ s//\1/; q; } 23329 /^X\(\/\).*/{ s//\1/; q; } 23330 s/.*/./; q'` 23331 done 23332 test ! -n "$as_dirs" || mkdir $as_dirs 23333 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23334echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23335 { (exit 1); exit 1; }; }; } 23336 23337 ac_builddir=. 23338 23339if test "$ac_dir" != .; then 23340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23341 # A "../" for each directory in $ac_dir_suffix. 23342 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23343else 23344 ac_dir_suffix= ac_top_builddir= 23345fi 23346 23347case $srcdir in 23348 .) # No --srcdir option. We are building in place. 23349 ac_srcdir=. 23350 if test -z "$ac_top_builddir"; then 23351 ac_top_srcdir=. 23352 else 23353 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23354 fi ;; 23355 [\\/]* | ?:[\\/]* ) # Absolute path. 23356 ac_srcdir=$srcdir$ac_dir_suffix; 23357 ac_top_srcdir=$srcdir ;; 23358 *) # Relative path. 23359 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23360 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23361esac 23362 23363# Do not use `cd foo && pwd` to compute absolute paths, because 23364# the directories may not exist. 23365case `pwd` in 23366.) ac_abs_builddir="$ac_dir";; 23367*) 23368 case "$ac_dir" in 23369 .) ac_abs_builddir=`pwd`;; 23370 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23371 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23372 esac;; 23373esac 23374case $ac_abs_builddir in 23375.) ac_abs_top_builddir=${ac_top_builddir}.;; 23376*) 23377 case ${ac_top_builddir}. in 23378 .) ac_abs_top_builddir=$ac_abs_builddir;; 23379 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23380 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23381 esac;; 23382esac 23383case $ac_abs_builddir in 23384.) ac_abs_srcdir=$ac_srcdir;; 23385*) 23386 case $ac_srcdir in 23387 .) ac_abs_srcdir=$ac_abs_builddir;; 23388 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23389 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23390 esac;; 23391esac 23392case $ac_abs_builddir in 23393.) ac_abs_top_srcdir=$ac_top_srcdir;; 23394*) 23395 case $ac_top_srcdir in 23396 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23397 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23398 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23399 esac;; 23400esac 23401 23402 23403 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 23404echo "$as_me: executing $ac_dest commands" >&6;} 23405 case $ac_dest in 23406 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23407 # Strip MF so we end up with the name of the file. 23408 mf=`echo "$mf" | sed -e 's/:.*$//'` 23409 # Check whether this is an Automake generated Makefile or not. 23410 # We used to match only the files named `Makefile.in', but 23411 # some people rename them; so instead we look at the file content. 23412 # Grep'ing the first line is not enough: some people post-process 23413 # each Makefile.in and add a new line on top of each file to say so. 23414 # So let's grep whole file. 23415 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23416 dirpart=`(dirname "$mf") 2>/dev/null || 23417$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23418 X"$mf" : 'X\(//\)[^/]' \| \ 23419 X"$mf" : 'X\(//\)$' \| \ 23420 X"$mf" : 'X\(/\)' \| \ 23421 . : '\(.\)' 2>/dev/null || 23422echo X"$mf" | 23423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23424 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23425 /^X\(\/\/\)$/{ s//\1/; q; } 23426 /^X\(\/\).*/{ s//\1/; q; } 23427 s/.*/./; q'` 23428 else 23429 continue 23430 fi 23431 # Extract the definition of DEPDIR, am__include, and am__quote 23432 # from the Makefile without running `make'. 23433 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23434 test -z "$DEPDIR" && continue 23435 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23436 test -z "am__include" && continue 23437 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23438 # When using ansi2knr, U may be empty or an underscore; expand it 23439 U=`sed -n 's/^U = //p' < "$mf"` 23440 # Find all dependency output files, they are included files with 23441 # $(DEPDIR) in their names. We invoke sed twice because it is the 23442 # simplest approach to changing $(DEPDIR) to its actual value in the 23443 # expansion. 23444 for file in `sed -n " 23445 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23446 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23447 # Make sure the directory exists. 23448 test -f "$dirpart/$file" && continue 23449 fdir=`(dirname "$file") 2>/dev/null || 23450$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23451 X"$file" : 'X\(//\)[^/]' \| \ 23452 X"$file" : 'X\(//\)$' \| \ 23453 X"$file" : 'X\(/\)' \| \ 23454 . : '\(.\)' 2>/dev/null || 23455echo X"$file" | 23456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23457 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23458 /^X\(\/\/\)$/{ s//\1/; q; } 23459 /^X\(\/\).*/{ s//\1/; q; } 23460 s/.*/./; q'` 23461 { if $as_mkdir_p; then 23462 mkdir -p $dirpart/$fdir 23463 else 23464 as_dir=$dirpart/$fdir 23465 as_dirs= 23466 while test ! -d "$as_dir"; do 23467 as_dirs="$as_dir $as_dirs" 23468 as_dir=`(dirname "$as_dir") 2>/dev/null || 23469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23470 X"$as_dir" : 'X\(//\)[^/]' \| \ 23471 X"$as_dir" : 'X\(//\)$' \| \ 23472 X"$as_dir" : 'X\(/\)' \| \ 23473 . : '\(.\)' 2>/dev/null || 23474echo X"$as_dir" | 23475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23476 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23477 /^X\(\/\/\)$/{ s//\1/; q; } 23478 /^X\(\/\).*/{ s//\1/; q; } 23479 s/.*/./; q'` 23480 done 23481 test ! -n "$as_dirs" || mkdir $as_dirs 23482 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 23483echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 23484 { (exit 1); exit 1; }; }; } 23485 23486 # echo "creating $dirpart/$file" 23487 echo '# dummy' > "$dirpart/$file" 23488 done 23489done 23490 ;; 23491 esac 23492done 23493_ACEOF 23494 23495cat >>$CONFIG_STATUS <<\_ACEOF 23496 23497{ (exit 0); exit 0; } 23498_ACEOF 23499chmod +x $CONFIG_STATUS 23500ac_clean_files=$ac_clean_files_save 23501 23502 23503# configure is writing to config.log, and then calls config.status. 23504# config.status does its own redirection, appending to config.log. 23505# Unfortunately, on DOS this fails, as config.log is still kept open 23506# by configure, so config.status won't be able to write to it; its 23507# output is simply discarded. So we exec the FD to /dev/null, 23508# effectively closing config.log, so it can be properly (re)opened and 23509# appended to by config.status. When coming back to configure, we 23510# need to make the FD available again. 23511if test "$no_create" != yes; then 23512 ac_cs_success=: 23513 ac_config_status_args= 23514 test "$silent" = yes && 23515 ac_config_status_args="$ac_config_status_args --quiet" 23516 exec 5>/dev/null 23517 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23518 exec 5>>config.log 23519 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23520 # would make configure fail if this is the last instruction. 23521 $ac_cs_success || { (exit 1); exit 1; } 23522fi 23523 23524