configure revision d983712d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for xf86-video-tseng 1.1.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246 247# Check that we are running under the correct shell. 248SHELL=${CONFIG_SHELL-/bin/sh} 249 250case X$ECHO in 251X*--fallback-echo) 252 # Remove one level of quotation (which was required for Make). 253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 254 ;; 255esac 256 257echo=${ECHO-echo} 258if test "X$1" = X--no-reexec; then 259 # Discard the --no-reexec flag, and continue. 260 shift 261elif test "X$1" = X--fallback-echo; then 262 # Avoid inline document here, it may be left over 263 : 264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 265 # Yippee, $echo works! 266 : 267else 268 # Restart under the correct shell. 269 exec $SHELL "$0" --no-reexec ${1+"$@"} 270fi 271 272if test "X$1" = X--fallback-echo; then 273 # used as fallback echo 274 shift 275 cat <<EOF 276$* 277EOF 278 exit 0 279fi 280 281# The HP-UX ksh and POSIX shell print the target directory to stdout 282# if CDPATH is set. 283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 284 285if test -z "$ECHO"; then 286if test "X${echo_test_string+set}" != Xset; then 287# find a string as large as possible, as long as the shell can cope with it 288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 290 if (echo_test_string=`eval $cmd`) 2>/dev/null && 291 echo_test_string=`eval $cmd` && 292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 293 then 294 break 295 fi 296 done 297fi 298 299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 301 test "X$echo_testing_string" = "X$echo_test_string"; then 302 : 303else 304 # The Solaris, AIX, and Digital Unix default echo programs unquote 305 # backslashes. This makes it impossible to quote backslashes using 306 # echo "$something" | sed 's/\\/\\\\/g' 307 # 308 # So, first we look for a working echo in the user's PATH. 309 310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 311 for dir in $PATH /usr/ucb; do 312 IFS="$lt_save_ifs" 313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 316 test "X$echo_testing_string" = "X$echo_test_string"; then 317 echo="$dir/echo" 318 break 319 fi 320 done 321 IFS="$lt_save_ifs" 322 323 if test "X$echo" = Xecho; then 324 # We didn't find a better echo, so look for alternatives. 325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 327 test "X$echo_testing_string" = "X$echo_test_string"; then 328 # This shell has a builtin print -r that does the trick. 329 echo='print -r' 330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 331 test "X$CONFIG_SHELL" != X/bin/ksh; then 332 # If we have ksh, try running configure again with it. 333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 334 export ORIGINAL_CONFIG_SHELL 335 CONFIG_SHELL=/bin/ksh 336 export CONFIG_SHELL 337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 338 else 339 # Try using printf. 340 echo='printf %s\n' 341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 343 test "X$echo_testing_string" = "X$echo_test_string"; then 344 # Cool, printf works 345 : 346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 347 test "X$echo_testing_string" = 'X\t' && 348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 351 export CONFIG_SHELL 352 SHELL="$CONFIG_SHELL" 353 export SHELL 354 echo="$CONFIG_SHELL $0 --fallback-echo" 355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 356 test "X$echo_testing_string" = 'X\t' && 357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 358 test "X$echo_testing_string" = "X$echo_test_string"; then 359 echo="$CONFIG_SHELL $0 --fallback-echo" 360 else 361 # maybe with a smaller string... 362 prev=: 363 364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 366 then 367 break 368 fi 369 prev="$cmd" 370 done 371 372 if test "$prev" != 'sed 50q "$0"'; then 373 echo_test_string=`eval $prev` 374 export echo_test_string 375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 376 else 377 # Oops. We lost completely, so just stick with echo. 378 echo=echo 379 fi 380 fi 381 fi 382 fi 383fi 384fi 385 386# Copy echo and quote the copy suitably for passing to libtool from 387# the Makefile, instead of quoting the original, which is used later. 388ECHO=$echo 389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 391fi 392 393 394 395 396tagnames=${tagnames+${tagnames},}CXX 397 398tagnames=${tagnames+${tagnames},}F77 399 400# Name of the host. 401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 402# so uname gets run too. 403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 404 405exec 6>&1 406 407# 408# Initializations. 409# 410ac_default_prefix=/usr/local 411ac_config_libobj_dir=. 412cross_compiling=no 413subdirs= 414MFLAGS= 415MAKEFLAGS= 416SHELL=${CONFIG_SHELL-/bin/sh} 417 418# Maximum number of lines to put in a shell here document. 419# This variable seems obsolete. It should probably be removed, and 420# only ac_max_sed_lines should be used. 421: ${ac_max_here_lines=38} 422 423# Identity of this package. 424PACKAGE_NAME='xf86-video-tseng' 425PACKAGE_TARNAME='xf86-video-tseng' 426PACKAGE_VERSION='1.1.1' 427PACKAGE_STRING='xf86-video-tseng 1.1.1' 428PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 429 430ac_unique_file="Makefile.am" 431# Factoring default headers for most tests. 432ac_includes_default="\ 433#include <stdio.h> 434#if HAVE_SYS_TYPES_H 435# include <sys/types.h> 436#endif 437#if HAVE_SYS_STAT_H 438# include <sys/stat.h> 439#endif 440#if STDC_HEADERS 441# include <stdlib.h> 442# include <stddef.h> 443#else 444# if HAVE_STDLIB_H 445# include <stdlib.h> 446# endif 447#endif 448#if HAVE_STRING_H 449# if !STDC_HEADERS && HAVE_MEMORY_H 450# include <memory.h> 451# endif 452# include <string.h> 453#endif 454#if HAVE_STRINGS_H 455# include <strings.h> 456#endif 457#if HAVE_INTTYPES_H 458# include <inttypes.h> 459#else 460# if HAVE_STDINT_H 461# include <stdint.h> 462# endif 463#endif 464#if HAVE_UNISTD_H 465# include <unistd.h> 466#endif" 467 468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XORG_CFLAGS XORG_LIBS moduledir DRIVER_NAME APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS' 469ac_subst_files='' 470 471# Initialize some variables set by options. 472ac_init_help= 473ac_init_version=false 474# The variables have the same names as the options, with 475# dashes changed to underlines. 476cache_file=/dev/null 477exec_prefix=NONE 478no_create= 479no_recursion= 480prefix=NONE 481program_prefix=NONE 482program_suffix=NONE 483program_transform_name=s,x,x, 484silent= 485site= 486srcdir= 487verbose= 488x_includes=NONE 489x_libraries=NONE 490 491# Installation directory options. 492# These are left unexpanded so users can "make install exec_prefix=/foo" 493# and all the variables that are supposed to be based on exec_prefix 494# by default will actually change. 495# Use braces instead of parens because sh, perl, etc. also accept them. 496bindir='${exec_prefix}/bin' 497sbindir='${exec_prefix}/sbin' 498libexecdir='${exec_prefix}/libexec' 499datadir='${prefix}/share' 500sysconfdir='${prefix}/etc' 501sharedstatedir='${prefix}/com' 502localstatedir='${prefix}/var' 503libdir='${exec_prefix}/lib' 504includedir='${prefix}/include' 505oldincludedir='/usr/include' 506infodir='${prefix}/info' 507mandir='${prefix}/man' 508 509ac_prev= 510for ac_option 511do 512 # If the previous option needs an argument, assign it. 513 if test -n "$ac_prev"; then 514 eval "$ac_prev=\$ac_option" 515 ac_prev= 516 continue 517 fi 518 519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 520 521 # Accept the important Cygnus configure options, so we can diagnose typos. 522 523 case $ac_option in 524 525 -bindir | --bindir | --bindi | --bind | --bin | --bi) 526 ac_prev=bindir ;; 527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 528 bindir=$ac_optarg ;; 529 530 -build | --build | --buil | --bui | --bu) 531 ac_prev=build_alias ;; 532 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 533 build_alias=$ac_optarg ;; 534 535 -cache-file | --cache-file | --cache-fil | --cache-fi \ 536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 537 ac_prev=cache_file ;; 538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 540 cache_file=$ac_optarg ;; 541 542 --config-cache | -C) 543 cache_file=config.cache ;; 544 545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 546 ac_prev=datadir ;; 547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 548 | --da=*) 549 datadir=$ac_optarg ;; 550 551 -disable-* | --disable-*) 552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 553 # Reject names that are not valid shell variable names. 554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 556 { (exit 1); exit 1; }; } 557 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 558 eval "enable_$ac_feature=no" ;; 559 560 -enable-* | --enable-*) 561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 562 # Reject names that are not valid shell variable names. 563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 565 { (exit 1); exit 1; }; } 566 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 567 case $ac_option in 568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 569 *) ac_optarg=yes ;; 570 esac 571 eval "enable_$ac_feature='$ac_optarg'" ;; 572 573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 575 | --exec | --exe | --ex) 576 ac_prev=exec_prefix ;; 577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 579 | --exec=* | --exe=* | --ex=*) 580 exec_prefix=$ac_optarg ;; 581 582 -gas | --gas | --ga | --g) 583 # Obsolete; use --with-gas. 584 with_gas=yes ;; 585 586 -help | --help | --hel | --he | -h) 587 ac_init_help=long ;; 588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 589 ac_init_help=recursive ;; 590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 591 ac_init_help=short ;; 592 593 -host | --host | --hos | --ho) 594 ac_prev=host_alias ;; 595 -host=* | --host=* | --hos=* | --ho=*) 596 host_alias=$ac_optarg ;; 597 598 -includedir | --includedir | --includedi | --included | --include \ 599 | --includ | --inclu | --incl | --inc) 600 ac_prev=includedir ;; 601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 602 | --includ=* | --inclu=* | --incl=* | --inc=*) 603 includedir=$ac_optarg ;; 604 605 -infodir | --infodir | --infodi | --infod | --info | --inf) 606 ac_prev=infodir ;; 607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 608 infodir=$ac_optarg ;; 609 610 -libdir | --libdir | --libdi | --libd) 611 ac_prev=libdir ;; 612 -libdir=* | --libdir=* | --libdi=* | --libd=*) 613 libdir=$ac_optarg ;; 614 615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 616 | --libexe | --libex | --libe) 617 ac_prev=libexecdir ;; 618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 619 | --libexe=* | --libex=* | --libe=*) 620 libexecdir=$ac_optarg ;; 621 622 -localstatedir | --localstatedir | --localstatedi | --localstated \ 623 | --localstate | --localstat | --localsta | --localst \ 624 | --locals | --local | --loca | --loc | --lo) 625 ac_prev=localstatedir ;; 626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 629 localstatedir=$ac_optarg ;; 630 631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 632 ac_prev=mandir ;; 633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 634 mandir=$ac_optarg ;; 635 636 -nfp | --nfp | --nf) 637 # Obsolete; use --without-fp. 638 with_fp=no ;; 639 640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 641 | --no-cr | --no-c | -n) 642 no_create=yes ;; 643 644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 646 no_recursion=yes ;; 647 648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 650 | --oldin | --oldi | --old | --ol | --o) 651 ac_prev=oldincludedir ;; 652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 655 oldincludedir=$ac_optarg ;; 656 657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 658 ac_prev=prefix ;; 659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 660 prefix=$ac_optarg ;; 661 662 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 663 | --program-pre | --program-pr | --program-p) 664 ac_prev=program_prefix ;; 665 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 667 program_prefix=$ac_optarg ;; 668 669 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 670 | --program-suf | --program-su | --program-s) 671 ac_prev=program_suffix ;; 672 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 674 program_suffix=$ac_optarg ;; 675 676 -program-transform-name | --program-transform-name \ 677 | --program-transform-nam | --program-transform-na \ 678 | --program-transform-n | --program-transform- \ 679 | --program-transform | --program-transfor \ 680 | --program-transfo | --program-transf \ 681 | --program-trans | --program-tran \ 682 | --progr-tra | --program-tr | --program-t) 683 ac_prev=program_transform_name ;; 684 -program-transform-name=* | --program-transform-name=* \ 685 | --program-transform-nam=* | --program-transform-na=* \ 686 | --program-transform-n=* | --program-transform-=* \ 687 | --program-transform=* | --program-transfor=* \ 688 | --program-transfo=* | --program-transf=* \ 689 | --program-trans=* | --program-tran=* \ 690 | --progr-tra=* | --program-tr=* | --program-t=*) 691 program_transform_name=$ac_optarg ;; 692 693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 694 | -silent | --silent | --silen | --sile | --sil) 695 silent=yes ;; 696 697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 698 ac_prev=sbindir ;; 699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 700 | --sbi=* | --sb=*) 701 sbindir=$ac_optarg ;; 702 703 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 705 | --sharedst | --shareds | --shared | --share | --shar \ 706 | --sha | --sh) 707 ac_prev=sharedstatedir ;; 708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 711 | --sha=* | --sh=*) 712 sharedstatedir=$ac_optarg ;; 713 714 -site | --site | --sit) 715 ac_prev=site ;; 716 -site=* | --site=* | --sit=*) 717 site=$ac_optarg ;; 718 719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 720 ac_prev=srcdir ;; 721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 722 srcdir=$ac_optarg ;; 723 724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 725 | --syscon | --sysco | --sysc | --sys | --sy) 726 ac_prev=sysconfdir ;; 727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 729 sysconfdir=$ac_optarg ;; 730 731 -target | --target | --targe | --targ | --tar | --ta | --t) 732 ac_prev=target_alias ;; 733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 734 target_alias=$ac_optarg ;; 735 736 -v | -verbose | --verbose | --verbos | --verbo | --verb) 737 verbose=yes ;; 738 739 -version | --version | --versio | --versi | --vers | -V) 740 ac_init_version=: ;; 741 742 -with-* | --with-*) 743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 744 # Reject names that are not valid shell variable names. 745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 746 { echo "$as_me: error: invalid package name: $ac_package" >&2 747 { (exit 1); exit 1; }; } 748 ac_package=`echo $ac_package| sed 's/-/_/g'` 749 case $ac_option in 750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 751 *) ac_optarg=yes ;; 752 esac 753 eval "with_$ac_package='$ac_optarg'" ;; 754 755 -without-* | --without-*) 756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 757 # Reject names that are not valid shell variable names. 758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 759 { echo "$as_me: error: invalid package name: $ac_package" >&2 760 { (exit 1); exit 1; }; } 761 ac_package=`echo $ac_package | sed 's/-/_/g'` 762 eval "with_$ac_package=no" ;; 763 764 --x) 765 # Obsolete; use --with-x. 766 with_x=yes ;; 767 768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 769 | --x-incl | --x-inc | --x-in | --x-i) 770 ac_prev=x_includes ;; 771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 773 x_includes=$ac_optarg ;; 774 775 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 777 ac_prev=x_libraries ;; 778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 780 x_libraries=$ac_optarg ;; 781 782 -*) { echo "$as_me: error: unrecognized option: $ac_option 783Try \`$0 --help' for more information." >&2 784 { (exit 1); exit 1; }; } 785 ;; 786 787 *=*) 788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 789 # Reject names that are not valid shell variable names. 790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 792 { (exit 1); exit 1; }; } 793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 794 eval "$ac_envvar='$ac_optarg'" 795 export $ac_envvar ;; 796 797 *) 798 # FIXME: should be removed in autoconf 3.0. 799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 803 ;; 804 805 esac 806done 807 808if test -n "$ac_prev"; then 809 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 810 { echo "$as_me: error: missing argument to $ac_option" >&2 811 { (exit 1); exit 1; }; } 812fi 813 814# Be sure to have absolute paths. 815for ac_var in exec_prefix prefix 816do 817 eval ac_val=$`echo $ac_var` 818 case $ac_val in 819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 821 { (exit 1); exit 1; }; };; 822 esac 823done 824 825# Be sure to have absolute paths. 826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 827 localstatedir libdir includedir oldincludedir infodir mandir 828do 829 eval ac_val=$`echo $ac_var` 830 case $ac_val in 831 [\\/$]* | ?:[\\/]* ) ;; 832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 833 { (exit 1); exit 1; }; };; 834 esac 835done 836 837# There might be people who depend on the old broken behavior: `$host' 838# used to hold the argument of --host etc. 839# FIXME: To remove some day. 840build=$build_alias 841host=$host_alias 842target=$target_alias 843 844# FIXME: To remove some day. 845if test "x$host_alias" != x; then 846 if test "x$build_alias" = x; then 847 cross_compiling=maybe 848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 849 If a cross compiler is detected then cross compile mode will be used." >&2 850 elif test "x$build_alias" != "x$host_alias"; then 851 cross_compiling=yes 852 fi 853fi 854 855ac_tool_prefix= 856test -n "$host_alias" && ac_tool_prefix=$host_alias- 857 858test "$silent" = yes && exec 6>/dev/null 859 860 861# Find the source files, if location was not specified. 862if test -z "$srcdir"; then 863 ac_srcdir_defaulted=yes 864 # Try the directory containing this script, then its parent. 865 ac_confdir=`(dirname "$0") 2>/dev/null || 866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 867 X"$0" : 'X\(//\)[^/]' \| \ 868 X"$0" : 'X\(//\)$' \| \ 869 X"$0" : 'X\(/\)' \| \ 870 . : '\(.\)' 2>/dev/null || 871echo X"$0" | 872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 873 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 874 /^X\(\/\/\)$/{ s//\1/; q; } 875 /^X\(\/\).*/{ s//\1/; q; } 876 s/.*/./; q'` 877 srcdir=$ac_confdir 878 if test ! -r $srcdir/$ac_unique_file; then 879 srcdir=.. 880 fi 881else 882 ac_srcdir_defaulted=no 883fi 884if test ! -r $srcdir/$ac_unique_file; then 885 if test "$ac_srcdir_defaulted" = yes; then 886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 887 { (exit 1); exit 1; }; } 888 else 889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 890 { (exit 1); exit 1; }; } 891 fi 892fi 893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 895 { (exit 1); exit 1; }; } 896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 897ac_env_build_alias_set=${build_alias+set} 898ac_env_build_alias_value=$build_alias 899ac_cv_env_build_alias_set=${build_alias+set} 900ac_cv_env_build_alias_value=$build_alias 901ac_env_host_alias_set=${host_alias+set} 902ac_env_host_alias_value=$host_alias 903ac_cv_env_host_alias_set=${host_alias+set} 904ac_cv_env_host_alias_value=$host_alias 905ac_env_target_alias_set=${target_alias+set} 906ac_env_target_alias_value=$target_alias 907ac_cv_env_target_alias_set=${target_alias+set} 908ac_cv_env_target_alias_value=$target_alias 909ac_env_CC_set=${CC+set} 910ac_env_CC_value=$CC 911ac_cv_env_CC_set=${CC+set} 912ac_cv_env_CC_value=$CC 913ac_env_CFLAGS_set=${CFLAGS+set} 914ac_env_CFLAGS_value=$CFLAGS 915ac_cv_env_CFLAGS_set=${CFLAGS+set} 916ac_cv_env_CFLAGS_value=$CFLAGS 917ac_env_LDFLAGS_set=${LDFLAGS+set} 918ac_env_LDFLAGS_value=$LDFLAGS 919ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 920ac_cv_env_LDFLAGS_value=$LDFLAGS 921ac_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_env_CPPFLAGS_value=$CPPFLAGS 923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 924ac_cv_env_CPPFLAGS_value=$CPPFLAGS 925ac_env_CPP_set=${CPP+set} 926ac_env_CPP_value=$CPP 927ac_cv_env_CPP_set=${CPP+set} 928ac_cv_env_CPP_value=$CPP 929ac_env_CXX_set=${CXX+set} 930ac_env_CXX_value=$CXX 931ac_cv_env_CXX_set=${CXX+set} 932ac_cv_env_CXX_value=$CXX 933ac_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_env_CXXFLAGS_value=$CXXFLAGS 935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 936ac_cv_env_CXXFLAGS_value=$CXXFLAGS 937ac_env_CXXCPP_set=${CXXCPP+set} 938ac_env_CXXCPP_value=$CXXCPP 939ac_cv_env_CXXCPP_set=${CXXCPP+set} 940ac_cv_env_CXXCPP_value=$CXXCPP 941ac_env_F77_set=${F77+set} 942ac_env_F77_value=$F77 943ac_cv_env_F77_set=${F77+set} 944ac_cv_env_F77_value=$F77 945ac_env_FFLAGS_set=${FFLAGS+set} 946ac_env_FFLAGS_value=$FFLAGS 947ac_cv_env_FFLAGS_set=${FFLAGS+set} 948ac_cv_env_FFLAGS_value=$FFLAGS 949ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} 950ac_env_PKG_CONFIG_value=$PKG_CONFIG 951ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} 952ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG 953ac_env_XORG_CFLAGS_set=${XORG_CFLAGS+set} 954ac_env_XORG_CFLAGS_value=$XORG_CFLAGS 955ac_cv_env_XORG_CFLAGS_set=${XORG_CFLAGS+set} 956ac_cv_env_XORG_CFLAGS_value=$XORG_CFLAGS 957ac_env_XORG_LIBS_set=${XORG_LIBS+set} 958ac_env_XORG_LIBS_value=$XORG_LIBS 959ac_cv_env_XORG_LIBS_set=${XORG_LIBS+set} 960ac_cv_env_XORG_LIBS_value=$XORG_LIBS 961 962# 963# Report the --help message. 964# 965if test "$ac_init_help" = "long"; then 966 # Omit some internal or obsolete options to make the list less imposing. 967 # This message is too long to be a string in the A/UX 3.1 sh. 968 cat <<_ACEOF 969\`configure' configures xf86-video-tseng 1.1.1 to adapt to many kinds of systems. 970 971Usage: $0 [OPTION]... [VAR=VALUE]... 972 973To assign environment variables (e.g., CC, CFLAGS...), specify them as 974VAR=VALUE. See below for descriptions of some of the useful variables. 975 976Defaults for the options are specified in brackets. 977 978Configuration: 979 -h, --help display this help and exit 980 --help=short display options specific to this package 981 --help=recursive display the short help of all the included packages 982 -V, --version display version information and exit 983 -q, --quiet, --silent do not print \`checking...' messages 984 --cache-file=FILE cache test results in FILE [disabled] 985 -C, --config-cache alias for \`--cache-file=config.cache' 986 -n, --no-create do not create output files 987 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 988 989_ACEOF 990 991 cat <<_ACEOF 992Installation directories: 993 --prefix=PREFIX install architecture-independent files in PREFIX 994 [$ac_default_prefix] 995 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 996 [PREFIX] 997 998By default, \`make install' will install all the files in 999\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1000an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1001for instance \`--prefix=\$HOME'. 1002 1003For better control, use the options below. 1004 1005Fine tuning of the installation directories: 1006 --bindir=DIR user executables [EPREFIX/bin] 1007 --sbindir=DIR system admin executables [EPREFIX/sbin] 1008 --libexecdir=DIR program executables [EPREFIX/libexec] 1009 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1010 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1011 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1012 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1013 --libdir=DIR object code libraries [EPREFIX/lib] 1014 --includedir=DIR C header files [PREFIX/include] 1015 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1016 --infodir=DIR info documentation [PREFIX/info] 1017 --mandir=DIR man documentation [PREFIX/man] 1018_ACEOF 1019 1020 cat <<\_ACEOF 1021 1022Program names: 1023 --program-prefix=PREFIX prepend PREFIX to installed program names 1024 --program-suffix=SUFFIX append SUFFIX to installed program names 1025 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1026 1027System types: 1028 --build=BUILD configure for building on BUILD [guessed] 1029 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1030_ACEOF 1031fi 1032 1033if test -n "$ac_init_help"; then 1034 case $ac_init_help in 1035 short | recursive ) echo "Configuration of xf86-video-tseng 1.1.1:";; 1036 esac 1037 cat <<\_ACEOF 1038 1039Optional Features: 1040 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1041 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1042 --enable-maintainer-mode enable make rules and dependencies not useful 1043 (and sometimes confusing) to the casual installer 1044 --enable-static[=PKGS] 1045 build static libraries [default=no] 1046 --enable-shared[=PKGS] 1047 build shared libraries [default=yes] 1048 --enable-fast-install[=PKGS] 1049 optimize for fast installation [default=yes] 1050 --disable-dependency-tracking speeds up one-time build 1051 --enable-dependency-tracking do not reject slow dependency extractors 1052 --disable-libtool-lock avoid locking (might break parallel builds) 1053 1054Optional Packages: 1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1057 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1058 --with-pic try to use only PIC/non-PIC objects [default=use 1059 both] 1060 --with-tags[=TAGS] 1061 include additional configurations [automatic] 1062 --with-xorg-module-dir=DIR 1063 Default xorg module directory 1064 [default=$libdir/xorg/modules] 1065 --with-release-version=STRING 1066 Use release version string in package name 1067 1068Some influential environment variables: 1069 CC C compiler command 1070 CFLAGS C compiler flags 1071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1072 nonstandard directory <lib dir> 1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1074 headers in a nonstandard directory <include dir> 1075 CPP C preprocessor 1076 CXX C++ compiler command 1077 CXXFLAGS C++ compiler flags 1078 CXXCPP C++ preprocessor 1079 F77 Fortran 77 compiler command 1080 FFLAGS Fortran 77 compiler flags 1081 PKG_CONFIG path to pkg-config utility 1082 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1083 XORG_LIBS linker flags for XORG, overriding pkg-config 1084 1085Use these variables to override the choices made by `configure' or to help 1086it to find libraries and programs with nonstandard names/locations. 1087 1088Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1089_ACEOF 1090fi 1091 1092if test "$ac_init_help" = "recursive"; then 1093 # If there are subdirs, report their specific --help. 1094 ac_popdir=`pwd` 1095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1096 test -d $ac_dir || continue 1097 ac_builddir=. 1098 1099if test "$ac_dir" != .; then 1100 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1101 # A "../" for each directory in $ac_dir_suffix. 1102 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1103else 1104 ac_dir_suffix= ac_top_builddir= 1105fi 1106 1107case $srcdir in 1108 .) # No --srcdir option. We are building in place. 1109 ac_srcdir=. 1110 if test -z "$ac_top_builddir"; then 1111 ac_top_srcdir=. 1112 else 1113 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1114 fi ;; 1115 [\\/]* | ?:[\\/]* ) # Absolute path. 1116 ac_srcdir=$srcdir$ac_dir_suffix; 1117 ac_top_srcdir=$srcdir ;; 1118 *) # Relative path. 1119 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1120 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1121esac 1122 1123# Do not use `cd foo && pwd` to compute absolute paths, because 1124# the directories may not exist. 1125case `pwd` in 1126.) ac_abs_builddir="$ac_dir";; 1127*) 1128 case "$ac_dir" in 1129 .) ac_abs_builddir=`pwd`;; 1130 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1131 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1132 esac;; 1133esac 1134case $ac_abs_builddir in 1135.) ac_abs_top_builddir=${ac_top_builddir}.;; 1136*) 1137 case ${ac_top_builddir}. in 1138 .) ac_abs_top_builddir=$ac_abs_builddir;; 1139 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1140 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1141 esac;; 1142esac 1143case $ac_abs_builddir in 1144.) ac_abs_srcdir=$ac_srcdir;; 1145*) 1146 case $ac_srcdir in 1147 .) ac_abs_srcdir=$ac_abs_builddir;; 1148 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1149 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1150 esac;; 1151esac 1152case $ac_abs_builddir in 1153.) ac_abs_top_srcdir=$ac_top_srcdir;; 1154*) 1155 case $ac_top_srcdir in 1156 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1157 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1158 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1159 esac;; 1160esac 1161 1162 cd $ac_dir 1163 # Check for guested configure; otherwise get Cygnus style configure. 1164 if test -f $ac_srcdir/configure.gnu; then 1165 echo 1166 $SHELL $ac_srcdir/configure.gnu --help=recursive 1167 elif test -f $ac_srcdir/configure; then 1168 echo 1169 $SHELL $ac_srcdir/configure --help=recursive 1170 elif test -f $ac_srcdir/configure.ac || 1171 test -f $ac_srcdir/configure.in; then 1172 echo 1173 $ac_configure --help 1174 else 1175 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1176 fi 1177 cd $ac_popdir 1178 done 1179fi 1180 1181test -n "$ac_init_help" && exit 0 1182if $ac_init_version; then 1183 cat <<\_ACEOF 1184xf86-video-tseng configure 1.1.1 1185generated by GNU Autoconf 2.59 1186 1187Copyright (C) 2003 Free Software Foundation, Inc. 1188This configure script is free software; the Free Software Foundation 1189gives unlimited permission to copy, distribute and modify it. 1190_ACEOF 1191 exit 0 1192fi 1193exec 5>config.log 1194cat >&5 <<_ACEOF 1195This file contains any messages produced by compilers while 1196running configure, to aid debugging if configure makes a mistake. 1197 1198It was created by xf86-video-tseng $as_me 1.1.1, which was 1199generated by GNU Autoconf 2.59. Invocation command line was 1200 1201 $ $0 $@ 1202 1203_ACEOF 1204{ 1205cat <<_ASUNAME 1206## --------- ## 1207## Platform. ## 1208## --------- ## 1209 1210hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1211uname -m = `(uname -m) 2>/dev/null || echo unknown` 1212uname -r = `(uname -r) 2>/dev/null || echo unknown` 1213uname -s = `(uname -s) 2>/dev/null || echo unknown` 1214uname -v = `(uname -v) 2>/dev/null || echo unknown` 1215 1216/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1217/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1218 1219/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1220/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1221/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1222hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1223/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1224/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1225/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1226 1227_ASUNAME 1228 1229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1230for as_dir in $PATH 1231do 1232 IFS=$as_save_IFS 1233 test -z "$as_dir" && as_dir=. 1234 echo "PATH: $as_dir" 1235done 1236 1237} >&5 1238 1239cat >&5 <<_ACEOF 1240 1241 1242## ----------- ## 1243## Core tests. ## 1244## ----------- ## 1245 1246_ACEOF 1247 1248 1249# Keep a trace of the command line. 1250# Strip out --no-create and --no-recursion so they do not pile up. 1251# Strip out --silent because we don't want to record it for future runs. 1252# Also quote any args containing shell meta-characters. 1253# Make two passes to allow for proper duplicate-argument suppression. 1254ac_configure_args= 1255ac_configure_args0= 1256ac_configure_args1= 1257ac_sep= 1258ac_must_keep_next=false 1259for ac_pass in 1 2 1260do 1261 for ac_arg 1262 do 1263 case $ac_arg in 1264 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1266 | -silent | --silent | --silen | --sile | --sil) 1267 continue ;; 1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1269 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1270 esac 1271 case $ac_pass in 1272 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1273 2) 1274 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1275 if test $ac_must_keep_next = true; then 1276 ac_must_keep_next=false # Got value, back to normal. 1277 else 1278 case $ac_arg in 1279 *=* | --config-cache | -C | -disable-* | --disable-* \ 1280 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1281 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1282 | -with-* | --with-* | -without-* | --without-* | --x) 1283 case "$ac_configure_args0 " in 1284 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1285 esac 1286 ;; 1287 -* ) ac_must_keep_next=true ;; 1288 esac 1289 fi 1290 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1291 # Get rid of the leading space. 1292 ac_sep=" " 1293 ;; 1294 esac 1295 done 1296done 1297$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1298$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1299 1300# When interrupted or exit'd, cleanup temporary files, and complete 1301# config.log. We remove comments because anyway the quotes in there 1302# would cause problems or look ugly. 1303# WARNING: Be sure not to use single quotes in there, as some shells, 1304# such as our DU 5.0 friend, will then `close' the trap. 1305trap 'exit_status=$? 1306 # Save into config.log some information that might help in debugging. 1307 { 1308 echo 1309 1310 cat <<\_ASBOX 1311## ---------------- ## 1312## Cache variables. ## 1313## ---------------- ## 1314_ASBOX 1315 echo 1316 # The following way of writing the cache mishandles newlines in values, 1317{ 1318 (set) 2>&1 | 1319 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1320 *ac_space=\ *) 1321 sed -n \ 1322 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1324 ;; 1325 *) 1326 sed -n \ 1327 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1328 ;; 1329 esac; 1330} 1331 echo 1332 1333 cat <<\_ASBOX 1334## ----------------- ## 1335## Output variables. ## 1336## ----------------- ## 1337_ASBOX 1338 echo 1339 for ac_var in $ac_subst_vars 1340 do 1341 eval ac_val=$`echo $ac_var` 1342 echo "$ac_var='"'"'$ac_val'"'"'" 1343 done | sort 1344 echo 1345 1346 if test -n "$ac_subst_files"; then 1347 cat <<\_ASBOX 1348## ------------- ## 1349## Output files. ## 1350## ------------- ## 1351_ASBOX 1352 echo 1353 for ac_var in $ac_subst_files 1354 do 1355 eval ac_val=$`echo $ac_var` 1356 echo "$ac_var='"'"'$ac_val'"'"'" 1357 done | sort 1358 echo 1359 fi 1360 1361 if test -s confdefs.h; then 1362 cat <<\_ASBOX 1363## ----------- ## 1364## confdefs.h. ## 1365## ----------- ## 1366_ASBOX 1367 echo 1368 sed "/^$/d" confdefs.h | sort 1369 echo 1370 fi 1371 test "$ac_signal" != 0 && 1372 echo "$as_me: caught signal $ac_signal" 1373 echo "$as_me: exit $exit_status" 1374 } >&5 1375 rm -f core *.core && 1376 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1377 exit $exit_status 1378 ' 0 1379for ac_signal in 1 2 13 15; do 1380 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1381done 1382ac_signal=0 1383 1384# confdefs.h avoids OS command line length limits that DEFS can exceed. 1385rm -rf conftest* confdefs.h 1386# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1387echo >confdefs.h 1388 1389# Predefined preprocessor variables. 1390 1391cat >>confdefs.h <<_ACEOF 1392#define PACKAGE_NAME "$PACKAGE_NAME" 1393_ACEOF 1394 1395 1396cat >>confdefs.h <<_ACEOF 1397#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1398_ACEOF 1399 1400 1401cat >>confdefs.h <<_ACEOF 1402#define PACKAGE_VERSION "$PACKAGE_VERSION" 1403_ACEOF 1404 1405 1406cat >>confdefs.h <<_ACEOF 1407#define PACKAGE_STRING "$PACKAGE_STRING" 1408_ACEOF 1409 1410 1411cat >>confdefs.h <<_ACEOF 1412#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1413_ACEOF 1414 1415 1416# Let the site file select an alternate cache file if it wants to. 1417# Prefer explicitly selected file to automatically selected ones. 1418if test -z "$CONFIG_SITE"; then 1419 if test "x$prefix" != xNONE; then 1420 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1421 else 1422 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1423 fi 1424fi 1425for ac_site_file in $CONFIG_SITE; do 1426 if test -r "$ac_site_file"; then 1427 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1428echo "$as_me: loading site script $ac_site_file" >&6;} 1429 sed 's/^/| /' "$ac_site_file" >&5 1430 . "$ac_site_file" 1431 fi 1432done 1433 1434if test -r "$cache_file"; then 1435 # Some versions of bash will fail to source /dev/null (special 1436 # files actually), so we avoid doing that. 1437 if test -f "$cache_file"; then 1438 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1439echo "$as_me: loading cache $cache_file" >&6;} 1440 case $cache_file in 1441 [\\/]* | ?:[\\/]* ) . $cache_file;; 1442 *) . ./$cache_file;; 1443 esac 1444 fi 1445else 1446 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1447echo "$as_me: creating cache $cache_file" >&6;} 1448 >$cache_file 1449fi 1450 1451# Check that the precious variables saved in the cache have kept the same 1452# value. 1453ac_cache_corrupted=false 1454for ac_var in `(set) 2>&1 | 1455 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1456 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1457 eval ac_new_set=\$ac_env_${ac_var}_set 1458 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1459 eval ac_new_val="\$ac_env_${ac_var}_value" 1460 case $ac_old_set,$ac_new_set in 1461 set,) 1462 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1463echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1464 ac_cache_corrupted=: ;; 1465 ,set) 1466 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1467echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1468 ac_cache_corrupted=: ;; 1469 ,);; 1470 *) 1471 if test "x$ac_old_val" != "x$ac_new_val"; then 1472 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1473echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1474 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1475echo "$as_me: former value: $ac_old_val" >&2;} 1476 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1477echo "$as_me: current value: $ac_new_val" >&2;} 1478 ac_cache_corrupted=: 1479 fi;; 1480 esac 1481 # Pass precious variables to config.status. 1482 if test "$ac_new_set" = set; then 1483 case $ac_new_val in 1484 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1485 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1486 *) ac_arg=$ac_var=$ac_new_val ;; 1487 esac 1488 case " $ac_configure_args " in 1489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1490 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1491 esac 1492 fi 1493done 1494if $ac_cache_corrupted; then 1495 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1496echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1497 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1498echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1499 { (exit 1); exit 1; }; } 1500fi 1501 1502ac_ext=c 1503ac_cpp='$CPP $CPPFLAGS' 1504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1506ac_compiler_gnu=$ac_cv_c_compiler_gnu 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 ac_config_headers="$ac_config_headers config.h" 1537 1538ac_aux_dir= 1539for ac_dir in . $srcdir/.; do 1540 if test -f $ac_dir/install-sh; then 1541 ac_aux_dir=$ac_dir 1542 ac_install_sh="$ac_aux_dir/install-sh -c" 1543 break 1544 elif test -f $ac_dir/install.sh; then 1545 ac_aux_dir=$ac_dir 1546 ac_install_sh="$ac_aux_dir/install.sh -c" 1547 break 1548 elif test -f $ac_dir/shtool; then 1549 ac_aux_dir=$ac_dir 1550 ac_install_sh="$ac_aux_dir/shtool install -c" 1551 break 1552 fi 1553done 1554if test -z "$ac_aux_dir"; then 1555 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5 1556echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;} 1557 { (exit 1); exit 1; }; } 1558fi 1559ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1560ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1561ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1562 1563 1564am__api_version="1.9" 1565# Find a good install program. We prefer a C program (faster), 1566# so one script is as good as another. But avoid the broken or 1567# incompatible versions: 1568# SysV /etc/install, /usr/sbin/install 1569# SunOS /usr/etc/install 1570# IRIX /sbin/install 1571# AIX /bin/install 1572# AmigaOS /C/install, which installs bootblocks on floppy discs 1573# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1574# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1575# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1576# OS/2's system install, which has a completely different semantic 1577# ./install, which can be erroneously created by make from ./install.sh. 1578echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1579echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1580if test -z "$INSTALL"; then 1581if test "${ac_cv_path_install+set}" = set; then 1582 echo $ECHO_N "(cached) $ECHO_C" >&6 1583else 1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1585for as_dir in $PATH 1586do 1587 IFS=$as_save_IFS 1588 test -z "$as_dir" && as_dir=. 1589 # Account for people who put trailing slashes in PATH elements. 1590case $as_dir/ in 1591 ./ | .// | /cC/* | \ 1592 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1593 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1594 /usr/ucb/* ) ;; 1595 *) 1596 # OSF1 and SCO ODT 3.0 have their own names for install. 1597 # Don't use installbsd from OSF since it installs stuff as root 1598 # by default. 1599 for ac_prog in ginstall scoinst install; do 1600 for ac_exec_ext in '' $ac_executable_extensions; do 1601 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1602 if test $ac_prog = install && 1603 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1604 # AIX install. It has an incompatible calling convention. 1605 : 1606 elif test $ac_prog = install && 1607 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1608 # program-specific install script used by HP pwplus--don't use. 1609 : 1610 else 1611 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1612 break 3 1613 fi 1614 fi 1615 done 1616 done 1617 ;; 1618esac 1619done 1620 1621 1622fi 1623 if test "${ac_cv_path_install+set}" = set; then 1624 INSTALL=$ac_cv_path_install 1625 else 1626 # As a last resort, use the slow shell script. We don't cache a 1627 # path for INSTALL within a source directory, because that will 1628 # break other packages using the cache if that directory is 1629 # removed, or if the path is relative. 1630 INSTALL=$ac_install_sh 1631 fi 1632fi 1633echo "$as_me:$LINENO: result: $INSTALL" >&5 1634echo "${ECHO_T}$INSTALL" >&6 1635 1636# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1637# It thinks the first close brace ends the variable substitution. 1638test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1639 1640test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1641 1642test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1643 1644echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1645echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1646# Just in case 1647sleep 1 1648echo timestamp > conftest.file 1649# Do `set' in a subshell so we don't clobber the current shell's 1650# arguments. Must try -L first in case configure is actually a 1651# symlink; some systems play weird games with the mod time of symlinks 1652# (eg FreeBSD returns the mod time of the symlink's containing 1653# directory). 1654if ( 1655 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1656 if test "$*" = "X"; then 1657 # -L didn't work. 1658 set X `ls -t $srcdir/configure conftest.file` 1659 fi 1660 rm -f conftest.file 1661 if test "$*" != "X $srcdir/configure conftest.file" \ 1662 && test "$*" != "X conftest.file $srcdir/configure"; then 1663 1664 # If neither matched, then we have a broken ls. This can happen 1665 # if, for instance, CONFIG_SHELL is bash and it inherits a 1666 # broken ls alias from the environment. This has actually 1667 # happened. Such a system could not be considered "sane". 1668 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1669alias in your environment" >&5 1670echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1671alias in your environment" >&2;} 1672 { (exit 1); exit 1; }; } 1673 fi 1674 1675 test "$2" = conftest.file 1676 ) 1677then 1678 # Ok. 1679 : 1680else 1681 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1682Check your system clock" >&5 1683echo "$as_me: error: newly created file is older than distributed files! 1684Check your system clock" >&2;} 1685 { (exit 1); exit 1; }; } 1686fi 1687echo "$as_me:$LINENO: result: yes" >&5 1688echo "${ECHO_T}yes" >&6 1689test "$program_prefix" != NONE && 1690 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1691# Use a double $ so make ignores it. 1692test "$program_suffix" != NONE && 1693 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1694# Double any \ or $. echo might interpret backslashes. 1695# By default was `s,x,x', remove it if useless. 1696cat <<\_ACEOF >conftest.sed 1697s/[\\$]/&&/g;s/;s,x,x,$// 1698_ACEOF 1699program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1700rm conftest.sed 1701 1702# expand $ac_aux_dir to an absolute path 1703am_aux_dir=`cd $ac_aux_dir && pwd` 1704 1705test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1706# Use eval to expand $SHELL 1707if eval "$MISSING --run true"; then 1708 am_missing_run="$MISSING --run " 1709else 1710 am_missing_run= 1711 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1712echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1713fi 1714 1715if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1716 # We used to keeping the `.' as first argument, in order to 1717 # allow $(mkdir_p) to be used without argument. As in 1718 # $(mkdir_p) $(somedir) 1719 # where $(somedir) is conditionally defined. However this is wrong 1720 # for two reasons: 1721 # 1. if the package is installed by a user who cannot write `.' 1722 # make install will fail, 1723 # 2. the above comment should most certainly read 1724 # $(mkdir_p) $(DESTDIR)$(somedir) 1725 # so it does not work when $(somedir) is undefined and 1726 # $(DESTDIR) is not. 1727 # To support the latter case, we have to write 1728 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1729 # so the `.' trick is pointless. 1730 mkdir_p='mkdir -p --' 1731else 1732 # On NextStep and OpenStep, the `mkdir' command does not 1733 # recognize any option. It will interpret all options as 1734 # directories to create, and then abort because `.' already 1735 # exists. 1736 for d in ./-p ./--version; 1737 do 1738 test -d $d && rmdir $d 1739 done 1740 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1741 if test -f "$ac_aux_dir/mkinstalldirs"; then 1742 mkdir_p='$(mkinstalldirs)' 1743 else 1744 mkdir_p='$(install_sh) -d' 1745 fi 1746fi 1747 1748for ac_prog in gawk mawk nawk awk 1749do 1750 # Extract the first word of "$ac_prog", so it can be a program name with args. 1751set dummy $ac_prog; ac_word=$2 1752echo "$as_me:$LINENO: checking for $ac_word" >&5 1753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1754if test "${ac_cv_prog_AWK+set}" = set; then 1755 echo $ECHO_N "(cached) $ECHO_C" >&6 1756else 1757 if test -n "$AWK"; then 1758 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1759else 1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1761for as_dir in $PATH 1762do 1763 IFS=$as_save_IFS 1764 test -z "$as_dir" && as_dir=. 1765 for ac_exec_ext in '' $ac_executable_extensions; do 1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1767 ac_cv_prog_AWK="$ac_prog" 1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1769 break 2 1770 fi 1771done 1772done 1773 1774fi 1775fi 1776AWK=$ac_cv_prog_AWK 1777if test -n "$AWK"; then 1778 echo "$as_me:$LINENO: result: $AWK" >&5 1779echo "${ECHO_T}$AWK" >&6 1780else 1781 echo "$as_me:$LINENO: result: no" >&5 1782echo "${ECHO_T}no" >&6 1783fi 1784 1785 test -n "$AWK" && break 1786done 1787 1788echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1789echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1790set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1791if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1792 echo $ECHO_N "(cached) $ECHO_C" >&6 1793else 1794 cat >conftest.make <<\_ACEOF 1795all: 1796 @echo 'ac_maketemp="$(MAKE)"' 1797_ACEOF 1798# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1799eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1800if test -n "$ac_maketemp"; then 1801 eval ac_cv_prog_make_${ac_make}_set=yes 1802else 1803 eval ac_cv_prog_make_${ac_make}_set=no 1804fi 1805rm -f conftest.make 1806fi 1807if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1808 echo "$as_me:$LINENO: result: yes" >&5 1809echo "${ECHO_T}yes" >&6 1810 SET_MAKE= 1811else 1812 echo "$as_me:$LINENO: result: no" >&5 1813echo "${ECHO_T}no" >&6 1814 SET_MAKE="MAKE=${MAKE-make}" 1815fi 1816 1817rm -rf .tst 2>/dev/null 1818mkdir .tst 2>/dev/null 1819if test -d .tst; then 1820 am__leading_dot=. 1821else 1822 am__leading_dot=_ 1823fi 1824rmdir .tst 2>/dev/null 1825 1826# test to see if srcdir already configured 1827if test "`cd $srcdir && pwd`" != "`pwd`" && 1828 test -f $srcdir/config.status; then 1829 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1830echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1831 { (exit 1); exit 1; }; } 1832fi 1833 1834# test whether we have cygpath 1835if test -z "$CYGPATH_W"; then 1836 if (cygpath --version) >/dev/null 2>/dev/null; then 1837 CYGPATH_W='cygpath -w' 1838 else 1839 CYGPATH_W=echo 1840 fi 1841fi 1842 1843 1844# Define the identity of the package. 1845 PACKAGE='xf86-video-tseng' 1846 VERSION='1.1.1' 1847 1848 1849cat >>confdefs.h <<_ACEOF 1850#define PACKAGE "$PACKAGE" 1851_ACEOF 1852 1853 1854cat >>confdefs.h <<_ACEOF 1855#define VERSION "$VERSION" 1856_ACEOF 1857 1858# Some tools Automake needs. 1859 1860ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1861 1862 1863AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1864 1865 1866AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1867 1868 1869AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1870 1871 1872MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1873 1874install_sh=${install_sh-"$am_aux_dir/install-sh"} 1875 1876# Installed binaries are usually stripped using `strip' when the user 1877# run `make install-strip'. However `strip' might not be the right 1878# tool to use in cross-compilation environments, therefore Automake 1879# will honor the `STRIP' environment variable to overrule this program. 1880if test "$cross_compiling" != no; then 1881 if test -n "$ac_tool_prefix"; then 1882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1883set dummy ${ac_tool_prefix}strip; ac_word=$2 1884echo "$as_me:$LINENO: checking for $ac_word" >&5 1885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1886if test "${ac_cv_prog_STRIP+set}" = set; then 1887 echo $ECHO_N "(cached) $ECHO_C" >&6 1888else 1889 if test -n "$STRIP"; then 1890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1891else 1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1893for as_dir in $PATH 1894do 1895 IFS=$as_save_IFS 1896 test -z "$as_dir" && as_dir=. 1897 for ac_exec_ext in '' $ac_executable_extensions; do 1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1899 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1901 break 2 1902 fi 1903done 1904done 1905 1906fi 1907fi 1908STRIP=$ac_cv_prog_STRIP 1909if test -n "$STRIP"; then 1910 echo "$as_me:$LINENO: result: $STRIP" >&5 1911echo "${ECHO_T}$STRIP" >&6 1912else 1913 echo "$as_me:$LINENO: result: no" >&5 1914echo "${ECHO_T}no" >&6 1915fi 1916 1917fi 1918if test -z "$ac_cv_prog_STRIP"; then 1919 ac_ct_STRIP=$STRIP 1920 # Extract the first word of "strip", so it can be a program name with args. 1921set dummy strip; ac_word=$2 1922echo "$as_me:$LINENO: checking for $ac_word" >&5 1923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1924if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1925 echo $ECHO_N "(cached) $ECHO_C" >&6 1926else 1927 if test -n "$ac_ct_STRIP"; then 1928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1929else 1930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1931for as_dir in $PATH 1932do 1933 IFS=$as_save_IFS 1934 test -z "$as_dir" && as_dir=. 1935 for ac_exec_ext in '' $ac_executable_extensions; do 1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1937 ac_cv_prog_ac_ct_STRIP="strip" 1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1939 break 2 1940 fi 1941done 1942done 1943 1944 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1945fi 1946fi 1947ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1948if test -n "$ac_ct_STRIP"; then 1949 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1950echo "${ECHO_T}$ac_ct_STRIP" >&6 1951else 1952 echo "$as_me:$LINENO: result: no" >&5 1953echo "${ECHO_T}no" >&6 1954fi 1955 1956 STRIP=$ac_ct_STRIP 1957else 1958 STRIP="$ac_cv_prog_STRIP" 1959fi 1960 1961fi 1962INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1963 1964# We need awk for the "check" target. The system "awk" is bad on 1965# some platforms. 1966# Always define AMTAR for backward compatibility. 1967 1968AMTAR=${AMTAR-"${am_missing_run}tar"} 1969 1970am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1971 1972 1973 1974 1975 1976 1977echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1978echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1979 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1980if test "${enable_maintainer_mode+set}" = set; then 1981 enableval="$enable_maintainer_mode" 1982 USE_MAINTAINER_MODE=$enableval 1983else 1984 USE_MAINTAINER_MODE=no 1985fi; 1986 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1987echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1988 1989 1990if test $USE_MAINTAINER_MODE = yes; then 1991 MAINTAINER_MODE_TRUE= 1992 MAINTAINER_MODE_FALSE='#' 1993else 1994 MAINTAINER_MODE_TRUE='#' 1995 MAINTAINER_MODE_FALSE= 1996fi 1997 1998 MAINT=$MAINTAINER_MODE_TRUE 1999 2000 2001 2002# Checks for programs. 2003# Check whether --enable-static or --disable-static was given. 2004if test "${enable_static+set}" = set; then 2005 enableval="$enable_static" 2006 p=${PACKAGE-default} 2007 case $enableval in 2008 yes) enable_static=yes ;; 2009 no) enable_static=no ;; 2010 *) 2011 enable_static=no 2012 # Look at the argument we got. We use all the common list separators. 2013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2014 for pkg in $enableval; do 2015 IFS="$lt_save_ifs" 2016 if test "X$pkg" = "X$p"; then 2017 enable_static=yes 2018 fi 2019 done 2020 IFS="$lt_save_ifs" 2021 ;; 2022 esac 2023else 2024 enable_static=no 2025fi; 2026 2027 2028# Check whether --enable-shared or --disable-shared was given. 2029if test "${enable_shared+set}" = set; then 2030 enableval="$enable_shared" 2031 p=${PACKAGE-default} 2032 case $enableval in 2033 yes) enable_shared=yes ;; 2034 no) enable_shared=no ;; 2035 *) 2036 enable_shared=no 2037 # Look at the argument we got. We use all the common list separators. 2038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2039 for pkg in $enableval; do 2040 IFS="$lt_save_ifs" 2041 if test "X$pkg" = "X$p"; then 2042 enable_shared=yes 2043 fi 2044 done 2045 IFS="$lt_save_ifs" 2046 ;; 2047 esac 2048else 2049 enable_shared=yes 2050fi; 2051 2052# Check whether --enable-fast-install or --disable-fast-install was given. 2053if test "${enable_fast_install+set}" = set; then 2054 enableval="$enable_fast_install" 2055 p=${PACKAGE-default} 2056 case $enableval in 2057 yes) enable_fast_install=yes ;; 2058 no) enable_fast_install=no ;; 2059 *) 2060 enable_fast_install=no 2061 # Look at the argument we got. We use all the common list separators. 2062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2063 for pkg in $enableval; do 2064 IFS="$lt_save_ifs" 2065 if test "X$pkg" = "X$p"; then 2066 enable_fast_install=yes 2067 fi 2068 done 2069 IFS="$lt_save_ifs" 2070 ;; 2071 esac 2072else 2073 enable_fast_install=yes 2074fi; 2075 2076# Make sure we can run config.sub. 2077$ac_config_sub sun4 >/dev/null 2>&1 || 2078 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2079echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2080 { (exit 1); exit 1; }; } 2081 2082echo "$as_me:$LINENO: checking build system type" >&5 2083echo $ECHO_N "checking build system type... $ECHO_C" >&6 2084if test "${ac_cv_build+set}" = set; then 2085 echo $ECHO_N "(cached) $ECHO_C" >&6 2086else 2087 ac_cv_build_alias=$build_alias 2088test -z "$ac_cv_build_alias" && 2089 ac_cv_build_alias=`$ac_config_guess` 2090test -z "$ac_cv_build_alias" && 2091 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2092echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2093 { (exit 1); exit 1; }; } 2094ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2095 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2096echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2097 { (exit 1); exit 1; }; } 2098 2099fi 2100echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2101echo "${ECHO_T}$ac_cv_build" >&6 2102build=$ac_cv_build 2103build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2104build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2105build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2106 2107 2108echo "$as_me:$LINENO: checking host system type" >&5 2109echo $ECHO_N "checking host system type... $ECHO_C" >&6 2110if test "${ac_cv_host+set}" = set; then 2111 echo $ECHO_N "(cached) $ECHO_C" >&6 2112else 2113 ac_cv_host_alias=$host_alias 2114test -z "$ac_cv_host_alias" && 2115 ac_cv_host_alias=$ac_cv_build_alias 2116ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2117 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2118echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2119 { (exit 1); exit 1; }; } 2120 2121fi 2122echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2123echo "${ECHO_T}$ac_cv_host" >&6 2124host=$ac_cv_host 2125host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2126host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2127host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2128 2129 2130DEPDIR="${am__leading_dot}deps" 2131 2132 ac_config_commands="$ac_config_commands depfiles" 2133 2134 2135am_make=${MAKE-make} 2136cat > confinc << 'END' 2137am__doit: 2138 @echo done 2139.PHONY: am__doit 2140END 2141# If we don't find an include directive, just comment out the code. 2142echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2143echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2144am__include="#" 2145am__quote= 2146_am_result=none 2147# First try GNU make style include. 2148echo "include confinc" > confmf 2149# We grep out `Entering directory' and `Leaving directory' 2150# messages which can occur if `w' ends up in MAKEFLAGS. 2151# In particular we don't look at `^make:' because GNU make might 2152# be invoked under some other name (usually "gmake"), in which 2153# case it prints its new name instead of `make'. 2154if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2155 am__include=include 2156 am__quote= 2157 _am_result=GNU 2158fi 2159# Now try BSD make style include. 2160if test "$am__include" = "#"; then 2161 echo '.include "confinc"' > confmf 2162 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2163 am__include=.include 2164 am__quote="\"" 2165 _am_result=BSD 2166 fi 2167fi 2168 2169 2170echo "$as_me:$LINENO: result: $_am_result" >&5 2171echo "${ECHO_T}$_am_result" >&6 2172rm -f confinc confmf 2173 2174# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2175if test "${enable_dependency_tracking+set}" = set; then 2176 enableval="$enable_dependency_tracking" 2177 2178fi; 2179if test "x$enable_dependency_tracking" != xno; then 2180 am_depcomp="$ac_aux_dir/depcomp" 2181 AMDEPBACKSLASH='\' 2182fi 2183 2184 2185if test "x$enable_dependency_tracking" != xno; then 2186 AMDEP_TRUE= 2187 AMDEP_FALSE='#' 2188else 2189 AMDEP_TRUE='#' 2190 AMDEP_FALSE= 2191fi 2192 2193 2194 2195ac_ext=c 2196ac_cpp='$CPP $CPPFLAGS' 2197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2199ac_compiler_gnu=$ac_cv_c_compiler_gnu 2200if test -n "$ac_tool_prefix"; then 2201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2202set dummy ${ac_tool_prefix}gcc; ac_word=$2 2203echo "$as_me:$LINENO: checking for $ac_word" >&5 2204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2205if test "${ac_cv_prog_CC+set}" = set; then 2206 echo $ECHO_N "(cached) $ECHO_C" >&6 2207else 2208 if test -n "$CC"; then 2209 ac_cv_prog_CC="$CC" # Let the user override the test. 2210else 2211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2212for as_dir in $PATH 2213do 2214 IFS=$as_save_IFS 2215 test -z "$as_dir" && as_dir=. 2216 for ac_exec_ext in '' $ac_executable_extensions; do 2217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2218 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2220 break 2 2221 fi 2222done 2223done 2224 2225fi 2226fi 2227CC=$ac_cv_prog_CC 2228if test -n "$CC"; then 2229 echo "$as_me:$LINENO: result: $CC" >&5 2230echo "${ECHO_T}$CC" >&6 2231else 2232 echo "$as_me:$LINENO: result: no" >&5 2233echo "${ECHO_T}no" >&6 2234fi 2235 2236fi 2237if test -z "$ac_cv_prog_CC"; then 2238 ac_ct_CC=$CC 2239 # Extract the first word of "gcc", so it can be a program name with args. 2240set dummy gcc; ac_word=$2 2241echo "$as_me:$LINENO: checking for $ac_word" >&5 2242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2243if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2244 echo $ECHO_N "(cached) $ECHO_C" >&6 2245else 2246 if test -n "$ac_ct_CC"; then 2247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2248else 2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2250for as_dir in $PATH 2251do 2252 IFS=$as_save_IFS 2253 test -z "$as_dir" && as_dir=. 2254 for ac_exec_ext in '' $ac_executable_extensions; do 2255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2256 ac_cv_prog_ac_ct_CC="gcc" 2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2258 break 2 2259 fi 2260done 2261done 2262 2263fi 2264fi 2265ac_ct_CC=$ac_cv_prog_ac_ct_CC 2266if test -n "$ac_ct_CC"; then 2267 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2268echo "${ECHO_T}$ac_ct_CC" >&6 2269else 2270 echo "$as_me:$LINENO: result: no" >&5 2271echo "${ECHO_T}no" >&6 2272fi 2273 2274 CC=$ac_ct_CC 2275else 2276 CC="$ac_cv_prog_CC" 2277fi 2278 2279if test -z "$CC"; then 2280 if test -n "$ac_tool_prefix"; then 2281 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2282set dummy ${ac_tool_prefix}cc; ac_word=$2 2283echo "$as_me:$LINENO: checking for $ac_word" >&5 2284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2285if test "${ac_cv_prog_CC+set}" = set; then 2286 echo $ECHO_N "(cached) $ECHO_C" >&6 2287else 2288 if test -n "$CC"; then 2289 ac_cv_prog_CC="$CC" # Let the user override the test. 2290else 2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2292for as_dir in $PATH 2293do 2294 IFS=$as_save_IFS 2295 test -z "$as_dir" && as_dir=. 2296 for ac_exec_ext in '' $ac_executable_extensions; do 2297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2298 ac_cv_prog_CC="${ac_tool_prefix}cc" 2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2300 break 2 2301 fi 2302done 2303done 2304 2305fi 2306fi 2307CC=$ac_cv_prog_CC 2308if test -n "$CC"; then 2309 echo "$as_me:$LINENO: result: $CC" >&5 2310echo "${ECHO_T}$CC" >&6 2311else 2312 echo "$as_me:$LINENO: result: no" >&5 2313echo "${ECHO_T}no" >&6 2314fi 2315 2316fi 2317if test -z "$ac_cv_prog_CC"; then 2318 ac_ct_CC=$CC 2319 # Extract the first word of "cc", so it can be a program name with args. 2320set dummy cc; ac_word=$2 2321echo "$as_me:$LINENO: checking for $ac_word" >&5 2322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2323if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2324 echo $ECHO_N "(cached) $ECHO_C" >&6 2325else 2326 if test -n "$ac_ct_CC"; then 2327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2328else 2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2330for as_dir in $PATH 2331do 2332 IFS=$as_save_IFS 2333 test -z "$as_dir" && as_dir=. 2334 for ac_exec_ext in '' $ac_executable_extensions; do 2335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2336 ac_cv_prog_ac_ct_CC="cc" 2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2338 break 2 2339 fi 2340done 2341done 2342 2343fi 2344fi 2345ac_ct_CC=$ac_cv_prog_ac_ct_CC 2346if test -n "$ac_ct_CC"; then 2347 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2348echo "${ECHO_T}$ac_ct_CC" >&6 2349else 2350 echo "$as_me:$LINENO: result: no" >&5 2351echo "${ECHO_T}no" >&6 2352fi 2353 2354 CC=$ac_ct_CC 2355else 2356 CC="$ac_cv_prog_CC" 2357fi 2358 2359fi 2360if test -z "$CC"; then 2361 # Extract the first word of "cc", so it can be a program name with args. 2362set dummy cc; ac_word=$2 2363echo "$as_me:$LINENO: checking for $ac_word" >&5 2364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2365if test "${ac_cv_prog_CC+set}" = set; then 2366 echo $ECHO_N "(cached) $ECHO_C" >&6 2367else 2368 if test -n "$CC"; then 2369 ac_cv_prog_CC="$CC" # Let the user override the test. 2370else 2371 ac_prog_rejected=no 2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2373for as_dir in $PATH 2374do 2375 IFS=$as_save_IFS 2376 test -z "$as_dir" && as_dir=. 2377 for ac_exec_ext in '' $ac_executable_extensions; do 2378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2380 ac_prog_rejected=yes 2381 continue 2382 fi 2383 ac_cv_prog_CC="cc" 2384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2385 break 2 2386 fi 2387done 2388done 2389 2390if test $ac_prog_rejected = yes; then 2391 # We found a bogon in the path, so make sure we never use it. 2392 set dummy $ac_cv_prog_CC 2393 shift 2394 if test $# != 0; then 2395 # We chose a different compiler from the bogus one. 2396 # However, it has the same basename, so the bogon will be chosen 2397 # first if we set CC to just the basename; use the full file name. 2398 shift 2399 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2400 fi 2401fi 2402fi 2403fi 2404CC=$ac_cv_prog_CC 2405if test -n "$CC"; then 2406 echo "$as_me:$LINENO: result: $CC" >&5 2407echo "${ECHO_T}$CC" >&6 2408else 2409 echo "$as_me:$LINENO: result: no" >&5 2410echo "${ECHO_T}no" >&6 2411fi 2412 2413fi 2414if test -z "$CC"; then 2415 if test -n "$ac_tool_prefix"; then 2416 for ac_prog in cl 2417 do 2418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2419set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2420echo "$as_me:$LINENO: checking for $ac_word" >&5 2421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2422if test "${ac_cv_prog_CC+set}" = set; then 2423 echo $ECHO_N "(cached) $ECHO_C" >&6 2424else 2425 if test -n "$CC"; then 2426 ac_cv_prog_CC="$CC" # Let the user override the test. 2427else 2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2429for as_dir in $PATH 2430do 2431 IFS=$as_save_IFS 2432 test -z "$as_dir" && as_dir=. 2433 for ac_exec_ext in '' $ac_executable_extensions; do 2434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2437 break 2 2438 fi 2439done 2440done 2441 2442fi 2443fi 2444CC=$ac_cv_prog_CC 2445if test -n "$CC"; then 2446 echo "$as_me:$LINENO: result: $CC" >&5 2447echo "${ECHO_T}$CC" >&6 2448else 2449 echo "$as_me:$LINENO: result: no" >&5 2450echo "${ECHO_T}no" >&6 2451fi 2452 2453 test -n "$CC" && break 2454 done 2455fi 2456if test -z "$CC"; then 2457 ac_ct_CC=$CC 2458 for ac_prog in cl 2459do 2460 # Extract the first word of "$ac_prog", so it can be a program name with args. 2461set dummy $ac_prog; ac_word=$2 2462echo "$as_me:$LINENO: checking for $ac_word" >&5 2463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2464if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2465 echo $ECHO_N "(cached) $ECHO_C" >&6 2466else 2467 if test -n "$ac_ct_CC"; then 2468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2469else 2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2471for as_dir in $PATH 2472do 2473 IFS=$as_save_IFS 2474 test -z "$as_dir" && as_dir=. 2475 for ac_exec_ext in '' $ac_executable_extensions; do 2476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2477 ac_cv_prog_ac_ct_CC="$ac_prog" 2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2479 break 2 2480 fi 2481done 2482done 2483 2484fi 2485fi 2486ac_ct_CC=$ac_cv_prog_ac_ct_CC 2487if test -n "$ac_ct_CC"; then 2488 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2489echo "${ECHO_T}$ac_ct_CC" >&6 2490else 2491 echo "$as_me:$LINENO: result: no" >&5 2492echo "${ECHO_T}no" >&6 2493fi 2494 2495 test -n "$ac_ct_CC" && break 2496done 2497 2498 CC=$ac_ct_CC 2499fi 2500 2501fi 2502 2503 2504test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2505See \`config.log' for more details." >&5 2506echo "$as_me: error: no acceptable C compiler found in \$PATH 2507See \`config.log' for more details." >&2;} 2508 { (exit 1); exit 1; }; } 2509 2510# Provide some information about the compiler. 2511echo "$as_me:$LINENO:" \ 2512 "checking for C compiler version" >&5 2513ac_compiler=`set X $ac_compile; echo $2` 2514{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2515 (eval $ac_compiler --version </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{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2525 (eval $ac_compiler -V </dev/null >&5) 2>&5 2526 ac_status=$? 2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2528 (exit $ac_status); } 2529 2530cat >conftest.$ac_ext <<_ACEOF 2531/* confdefs.h. */ 2532_ACEOF 2533cat confdefs.h >>conftest.$ac_ext 2534cat >>conftest.$ac_ext <<_ACEOF 2535/* end confdefs.h. */ 2536 2537int 2538main () 2539{ 2540 2541 ; 2542 return 0; 2543} 2544_ACEOF 2545ac_clean_files_save=$ac_clean_files 2546ac_clean_files="$ac_clean_files a.out a.exe b.out" 2547# Try to create an executable without -o first, disregard a.out. 2548# It will help us diagnose broken compilers, and finding out an intuition 2549# of exeext. 2550echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2551echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2552ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2553if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2554 (eval $ac_link_default) 2>&5 2555 ac_status=$? 2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2557 (exit $ac_status); }; then 2558 # Find the output, starting from the most likely. This scheme is 2559# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2560# resort. 2561 2562# Be careful to initialize this variable, since it used to be cached. 2563# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2564ac_cv_exeext= 2565# b.out is created by i960 compilers. 2566for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2567do 2568 test -f "$ac_file" || continue 2569 case $ac_file in 2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2571 ;; 2572 conftest.$ac_ext ) 2573 # This is the source file. 2574 ;; 2575 [ab].out ) 2576 # We found the default executable, but exeext='' is most 2577 # certainly right. 2578 break;; 2579 *.* ) 2580 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2581 # FIXME: I believe we export ac_cv_exeext for Libtool, 2582 # but it would be cool to find out if it's true. Does anybody 2583 # maintain Libtool? --akim. 2584 export ac_cv_exeext 2585 break;; 2586 * ) 2587 break;; 2588 esac 2589done 2590else 2591 echo "$as_me: failed program was:" >&5 2592sed 's/^/| /' conftest.$ac_ext >&5 2593 2594{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2595See \`config.log' for more details." >&5 2596echo "$as_me: error: C compiler cannot create executables 2597See \`config.log' for more details." >&2;} 2598 { (exit 77); exit 77; }; } 2599fi 2600 2601ac_exeext=$ac_cv_exeext 2602echo "$as_me:$LINENO: result: $ac_file" >&5 2603echo "${ECHO_T}$ac_file" >&6 2604 2605# Check the compiler produces executables we can run. If not, either 2606# the compiler is broken, or we cross compile. 2607echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2608echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2609# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2610# If not cross compiling, check that we can run a simple program. 2611if test "$cross_compiling" != yes; then 2612 if { ac_try='./$ac_file' 2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2614 (eval $ac_try) 2>&5 2615 ac_status=$? 2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2617 (exit $ac_status); }; }; then 2618 cross_compiling=no 2619 else 2620 if test "$cross_compiling" = maybe; then 2621 cross_compiling=yes 2622 else 2623 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2624If you meant to cross compile, use \`--host'. 2625See \`config.log' for more details." >&5 2626echo "$as_me: error: cannot run C compiled programs. 2627If you meant to cross compile, use \`--host'. 2628See \`config.log' for more details." >&2;} 2629 { (exit 1); exit 1; }; } 2630 fi 2631 fi 2632fi 2633echo "$as_me:$LINENO: result: yes" >&5 2634echo "${ECHO_T}yes" >&6 2635 2636rm -f a.out a.exe conftest$ac_cv_exeext b.out 2637ac_clean_files=$ac_clean_files_save 2638# Check the compiler produces executables we can run. If not, either 2639# the compiler is broken, or we cross compile. 2640echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2641echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2642echo "$as_me:$LINENO: result: $cross_compiling" >&5 2643echo "${ECHO_T}$cross_compiling" >&6 2644 2645echo "$as_me:$LINENO: checking for suffix of executables" >&5 2646echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2648 (eval $ac_link) 2>&5 2649 ac_status=$? 2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2651 (exit $ac_status); }; then 2652 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2653# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2654# work properly (i.e., refer to `conftest.exe'), while it won't with 2655# `rm'. 2656for ac_file in conftest.exe conftest conftest.*; do 2657 test -f "$ac_file" || continue 2658 case $ac_file in 2659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2660 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2661 export ac_cv_exeext 2662 break;; 2663 * ) break;; 2664 esac 2665done 2666else 2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2668See \`config.log' for more details." >&5 2669echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2670See \`config.log' for more details." >&2;} 2671 { (exit 1); exit 1; }; } 2672fi 2673 2674rm -f conftest$ac_cv_exeext 2675echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2676echo "${ECHO_T}$ac_cv_exeext" >&6 2677 2678rm -f conftest.$ac_ext 2679EXEEXT=$ac_cv_exeext 2680ac_exeext=$EXEEXT 2681echo "$as_me:$LINENO: checking for suffix of object files" >&5 2682echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2683if test "${ac_cv_objext+set}" = set; then 2684 echo $ECHO_N "(cached) $ECHO_C" >&6 2685else 2686 cat >conftest.$ac_ext <<_ACEOF 2687/* confdefs.h. */ 2688_ACEOF 2689cat confdefs.h >>conftest.$ac_ext 2690cat >>conftest.$ac_ext <<_ACEOF 2691/* end confdefs.h. */ 2692 2693int 2694main () 2695{ 2696 2697 ; 2698 return 0; 2699} 2700_ACEOF 2701rm -f conftest.o conftest.obj 2702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2703 (eval $ac_compile) 2>&5 2704 ac_status=$? 2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2706 (exit $ac_status); }; then 2707 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2708 case $ac_file in 2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2710 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2711 break;; 2712 esac 2713done 2714else 2715 echo "$as_me: failed program was:" >&5 2716sed 's/^/| /' conftest.$ac_ext >&5 2717 2718{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2719See \`config.log' for more details." >&5 2720echo "$as_me: error: cannot compute suffix of object files: cannot compile 2721See \`config.log' for more details." >&2;} 2722 { (exit 1); exit 1; }; } 2723fi 2724 2725rm -f conftest.$ac_cv_objext conftest.$ac_ext 2726fi 2727echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2728echo "${ECHO_T}$ac_cv_objext" >&6 2729OBJEXT=$ac_cv_objext 2730ac_objext=$OBJEXT 2731echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2732echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2733if test "${ac_cv_c_compiler_gnu+set}" = set; then 2734 echo $ECHO_N "(cached) $ECHO_C" >&6 2735else 2736 cat >conftest.$ac_ext <<_ACEOF 2737/* confdefs.h. */ 2738_ACEOF 2739cat confdefs.h >>conftest.$ac_ext 2740cat >>conftest.$ac_ext <<_ACEOF 2741/* end confdefs.h. */ 2742 2743int 2744main () 2745{ 2746#ifndef __GNUC__ 2747 choke me 2748#endif 2749 2750 ; 2751 return 0; 2752} 2753_ACEOF 2754rm -f conftest.$ac_objext 2755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2756 (eval $ac_compile) 2>conftest.er1 2757 ac_status=$? 2758 grep -v '^ *+' conftest.er1 >conftest.err 2759 rm -f conftest.er1 2760 cat conftest.err >&5 2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2762 (exit $ac_status); } && 2763 { ac_try='test -z "$ac_c_werror_flag" 2764 || test ! -s conftest.err' 2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2766 (eval $ac_try) 2>&5 2767 ac_status=$? 2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2769 (exit $ac_status); }; } && 2770 { ac_try='test -s conftest.$ac_objext' 2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2772 (eval $ac_try) 2>&5 2773 ac_status=$? 2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2775 (exit $ac_status); }; }; then 2776 ac_compiler_gnu=yes 2777else 2778 echo "$as_me: failed program was:" >&5 2779sed 's/^/| /' conftest.$ac_ext >&5 2780 2781ac_compiler_gnu=no 2782fi 2783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2784ac_cv_c_compiler_gnu=$ac_compiler_gnu 2785 2786fi 2787echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2788echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2789GCC=`test $ac_compiler_gnu = yes && echo yes` 2790ac_test_CFLAGS=${CFLAGS+set} 2791ac_save_CFLAGS=$CFLAGS 2792CFLAGS="-g" 2793echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2794echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2795if test "${ac_cv_prog_cc_g+set}" = set; then 2796 echo $ECHO_N "(cached) $ECHO_C" >&6 2797else 2798 cat >conftest.$ac_ext <<_ACEOF 2799/* confdefs.h. */ 2800_ACEOF 2801cat confdefs.h >>conftest.$ac_ext 2802cat >>conftest.$ac_ext <<_ACEOF 2803/* end confdefs.h. */ 2804 2805int 2806main () 2807{ 2808 2809 ; 2810 return 0; 2811} 2812_ACEOF 2813rm -f conftest.$ac_objext 2814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2815 (eval $ac_compile) 2>conftest.er1 2816 ac_status=$? 2817 grep -v '^ *+' conftest.er1 >conftest.err 2818 rm -f conftest.er1 2819 cat conftest.err >&5 2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2821 (exit $ac_status); } && 2822 { ac_try='test -z "$ac_c_werror_flag" 2823 || test ! -s conftest.err' 2824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2825 (eval $ac_try) 2>&5 2826 ac_status=$? 2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2828 (exit $ac_status); }; } && 2829 { ac_try='test -s conftest.$ac_objext' 2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2831 (eval $ac_try) 2>&5 2832 ac_status=$? 2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2834 (exit $ac_status); }; }; then 2835 ac_cv_prog_cc_g=yes 2836else 2837 echo "$as_me: failed program was:" >&5 2838sed 's/^/| /' conftest.$ac_ext >&5 2839 2840ac_cv_prog_cc_g=no 2841fi 2842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2843fi 2844echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2845echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2846if test "$ac_test_CFLAGS" = set; then 2847 CFLAGS=$ac_save_CFLAGS 2848elif test $ac_cv_prog_cc_g = yes; then 2849 if test "$GCC" = yes; then 2850 CFLAGS="-g -O2" 2851 else 2852 CFLAGS="-g" 2853 fi 2854else 2855 if test "$GCC" = yes; then 2856 CFLAGS="-O2" 2857 else 2858 CFLAGS= 2859 fi 2860fi 2861echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2862echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2863if test "${ac_cv_prog_cc_stdc+set}" = set; then 2864 echo $ECHO_N "(cached) $ECHO_C" >&6 2865else 2866 ac_cv_prog_cc_stdc=no 2867ac_save_CC=$CC 2868cat >conftest.$ac_ext <<_ACEOF 2869/* confdefs.h. */ 2870_ACEOF 2871cat confdefs.h >>conftest.$ac_ext 2872cat >>conftest.$ac_ext <<_ACEOF 2873/* end confdefs.h. */ 2874#include <stdarg.h> 2875#include <stdio.h> 2876#include <sys/types.h> 2877#include <sys/stat.h> 2878/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2879struct buf { int x; }; 2880FILE * (*rcsopen) (struct buf *, struct stat *, int); 2881static char *e (p, i) 2882 char **p; 2883 int i; 2884{ 2885 return p[i]; 2886} 2887static char *f (char * (*g) (char **, int), char **p, ...) 2888{ 2889 char *s; 2890 va_list v; 2891 va_start (v,p); 2892 s = g (p, va_arg (v,int)); 2893 va_end (v); 2894 return s; 2895} 2896 2897/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2898 function prototypes and stuff, but not '\xHH' hex character constants. 2899 These don't provoke an error unfortunately, instead are silently treated 2900 as 'x'. The following induces an error, until -std1 is added to get 2901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2902 array size at least. It's necessary to write '\x00'==0 to get something 2903 that's true only with -std1. */ 2904int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2905 2906int test (int i, double x); 2907struct s1 {int (*f) (int a);}; 2908struct s2 {int (*f) (double a);}; 2909int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2910int argc; 2911char **argv; 2912int 2913main () 2914{ 2915return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2916 ; 2917 return 0; 2918} 2919_ACEOF 2920# Don't try gcc -ansi; that turns off useful extensions and 2921# breaks some systems' header files. 2922# AIX -qlanglvl=ansi 2923# Ultrix and OSF/1 -std1 2924# HP-UX 10.20 and later -Ae 2925# HP-UX older versions -Aa -D_HPUX_SOURCE 2926# SVR4 -Xc -D__EXTENSIONS__ 2927for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2928do 2929 CC="$ac_save_CC $ac_arg" 2930 rm -f conftest.$ac_objext 2931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2932 (eval $ac_compile) 2>conftest.er1 2933 ac_status=$? 2934 grep -v '^ *+' conftest.er1 >conftest.err 2935 rm -f conftest.er1 2936 cat conftest.err >&5 2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2938 (exit $ac_status); } && 2939 { ac_try='test -z "$ac_c_werror_flag" 2940 || test ! -s conftest.err' 2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2942 (eval $ac_try) 2>&5 2943 ac_status=$? 2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); }; } && 2946 { ac_try='test -s conftest.$ac_objext' 2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2948 (eval $ac_try) 2>&5 2949 ac_status=$? 2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2951 (exit $ac_status); }; }; then 2952 ac_cv_prog_cc_stdc=$ac_arg 2953break 2954else 2955 echo "$as_me: failed program was:" >&5 2956sed 's/^/| /' conftest.$ac_ext >&5 2957 2958fi 2959rm -f conftest.err conftest.$ac_objext 2960done 2961rm -f conftest.$ac_ext conftest.$ac_objext 2962CC=$ac_save_CC 2963 2964fi 2965 2966case "x$ac_cv_prog_cc_stdc" in 2967 x|xno) 2968 echo "$as_me:$LINENO: result: none needed" >&5 2969echo "${ECHO_T}none needed" >&6 ;; 2970 *) 2971 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2972echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2973 CC="$CC $ac_cv_prog_cc_stdc" ;; 2974esac 2975 2976# Some people use a C++ compiler to compile C. Since we use `exit', 2977# in C++ we need to declare it. In case someone uses the same compiler 2978# for both compiling C and C++ we need to have the C++ compiler decide 2979# the declaration of exit, since it's the most demanding environment. 2980cat >conftest.$ac_ext <<_ACEOF 2981#ifndef __cplusplus 2982 choke me 2983#endif 2984_ACEOF 2985rm -f conftest.$ac_objext 2986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2987 (eval $ac_compile) 2>conftest.er1 2988 ac_status=$? 2989 grep -v '^ *+' conftest.er1 >conftest.err 2990 rm -f conftest.er1 2991 cat conftest.err >&5 2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2993 (exit $ac_status); } && 2994 { ac_try='test -z "$ac_c_werror_flag" 2995 || test ! -s conftest.err' 2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2997 (eval $ac_try) 2>&5 2998 ac_status=$? 2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3000 (exit $ac_status); }; } && 3001 { ac_try='test -s conftest.$ac_objext' 3002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3003 (eval $ac_try) 2>&5 3004 ac_status=$? 3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3006 (exit $ac_status); }; }; then 3007 for ac_declaration in \ 3008 '' \ 3009 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3010 'extern "C" void std::exit (int); using std::exit;' \ 3011 'extern "C" void exit (int) throw ();' \ 3012 'extern "C" void exit (int);' \ 3013 'void exit (int);' 3014do 3015 cat >conftest.$ac_ext <<_ACEOF 3016/* confdefs.h. */ 3017_ACEOF 3018cat confdefs.h >>conftest.$ac_ext 3019cat >>conftest.$ac_ext <<_ACEOF 3020/* end confdefs.h. */ 3021$ac_declaration 3022#include <stdlib.h> 3023int 3024main () 3025{ 3026exit (42); 3027 ; 3028 return 0; 3029} 3030_ACEOF 3031rm -f conftest.$ac_objext 3032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3033 (eval $ac_compile) 2>conftest.er1 3034 ac_status=$? 3035 grep -v '^ *+' conftest.er1 >conftest.err 3036 rm -f conftest.er1 3037 cat conftest.err >&5 3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3039 (exit $ac_status); } && 3040 { ac_try='test -z "$ac_c_werror_flag" 3041 || test ! -s conftest.err' 3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3043 (eval $ac_try) 2>&5 3044 ac_status=$? 3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3046 (exit $ac_status); }; } && 3047 { ac_try='test -s conftest.$ac_objext' 3048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3049 (eval $ac_try) 2>&5 3050 ac_status=$? 3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3052 (exit $ac_status); }; }; then 3053 : 3054else 3055 echo "$as_me: failed program was:" >&5 3056sed 's/^/| /' conftest.$ac_ext >&5 3057 3058continue 3059fi 3060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3061 cat >conftest.$ac_ext <<_ACEOF 3062/* confdefs.h. */ 3063_ACEOF 3064cat confdefs.h >>conftest.$ac_ext 3065cat >>conftest.$ac_ext <<_ACEOF 3066/* end confdefs.h. */ 3067$ac_declaration 3068int 3069main () 3070{ 3071exit (42); 3072 ; 3073 return 0; 3074} 3075_ACEOF 3076rm -f conftest.$ac_objext 3077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3078 (eval $ac_compile) 2>conftest.er1 3079 ac_status=$? 3080 grep -v '^ *+' conftest.er1 >conftest.err 3081 rm -f conftest.er1 3082 cat conftest.err >&5 3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3084 (exit $ac_status); } && 3085 { ac_try='test -z "$ac_c_werror_flag" 3086 || test ! -s conftest.err' 3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3088 (eval $ac_try) 2>&5 3089 ac_status=$? 3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3091 (exit $ac_status); }; } && 3092 { ac_try='test -s conftest.$ac_objext' 3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3094 (eval $ac_try) 2>&5 3095 ac_status=$? 3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3097 (exit $ac_status); }; }; then 3098 break 3099else 3100 echo "$as_me: failed program was:" >&5 3101sed 's/^/| /' conftest.$ac_ext >&5 3102 3103fi 3104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3105done 3106rm -f conftest* 3107if test -n "$ac_declaration"; then 3108 echo '#ifdef __cplusplus' >>confdefs.h 3109 echo $ac_declaration >>confdefs.h 3110 echo '#endif' >>confdefs.h 3111fi 3112 3113else 3114 echo "$as_me: failed program was:" >&5 3115sed 's/^/| /' conftest.$ac_ext >&5 3116 3117fi 3118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3119ac_ext=c 3120ac_cpp='$CPP $CPPFLAGS' 3121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3123ac_compiler_gnu=$ac_cv_c_compiler_gnu 3124 3125depcc="$CC" am_compiler_list= 3126 3127echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3128echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3129if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3130 echo $ECHO_N "(cached) $ECHO_C" >&6 3131else 3132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3133 # We make a subdir and do the tests there. Otherwise we can end up 3134 # making bogus files that we don't know about and never remove. For 3135 # instance it was reported that on HP-UX the gcc test will end up 3136 # making a dummy file named `D' -- because `-MD' means `put the output 3137 # in D'. 3138 mkdir conftest.dir 3139 # Copy depcomp to subdir because otherwise we won't find it if we're 3140 # using a relative directory. 3141 cp "$am_depcomp" conftest.dir 3142 cd conftest.dir 3143 # We will build objects and dependencies in a subdirectory because 3144 # it helps to detect inapplicable dependency modes. For instance 3145 # both Tru64's cc and ICC support -MD to output dependencies as a 3146 # side effect of compilation, but ICC will put the dependencies in 3147 # the current directory while Tru64 will put them in the object 3148 # directory. 3149 mkdir sub 3150 3151 am_cv_CC_dependencies_compiler_type=none 3152 if test "$am_compiler_list" = ""; then 3153 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3154 fi 3155 for depmode in $am_compiler_list; do 3156 # Setup a source with many dependencies, because some compilers 3157 # like to wrap large dependency lists on column 80 (with \), and 3158 # we should not choose a depcomp mode which is confused by this. 3159 # 3160 # We need to recreate these files for each test, as the compiler may 3161 # overwrite some of them when testing with obscure command lines. 3162 # This happens at least with the AIX C compiler. 3163 : > sub/conftest.c 3164 for i in 1 2 3 4 5 6; do 3165 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3166 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3167 # Solaris 8's {/usr,}/bin/sh. 3168 touch sub/conftst$i.h 3169 done 3170 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3171 3172 case $depmode in 3173 nosideeffect) 3174 # after this tag, mechanisms are not by side-effect, so they'll 3175 # only be used when explicitly requested 3176 if test "x$enable_dependency_tracking" = xyes; then 3177 continue 3178 else 3179 break 3180 fi 3181 ;; 3182 none) break ;; 3183 esac 3184 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3185 # mode. It turns out that the SunPro C++ compiler does not properly 3186 # handle `-M -o', and we need to detect this. 3187 if depmode=$depmode \ 3188 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3189 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3190 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3191 >/dev/null 2>conftest.err && 3192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3193 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3195 # icc doesn't choke on unknown options, it will just issue warnings 3196 # or remarks (even with -Werror). So we grep stderr for any message 3197 # that says an option was ignored or not supported. 3198 # When given -MP, icc 7.0 and 7.1 complain thusly: 3199 # icc: Command line warning: ignoring option '-M'; no argument required 3200 # The diagnosis changed in icc 8.0: 3201 # icc: Command line remark: option '-MP' not supported 3202 if (grep 'ignoring option' conftest.err || 3203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3204 am_cv_CC_dependencies_compiler_type=$depmode 3205 break 3206 fi 3207 fi 3208 done 3209 3210 cd .. 3211 rm -rf conftest.dir 3212else 3213 am_cv_CC_dependencies_compiler_type=none 3214fi 3215 3216fi 3217echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3218echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3219CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3220 3221 3222 3223if 3224 test "x$enable_dependency_tracking" != xno \ 3225 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3226 am__fastdepCC_TRUE= 3227 am__fastdepCC_FALSE='#' 3228else 3229 am__fastdepCC_TRUE='#' 3230 am__fastdepCC_FALSE= 3231fi 3232 3233 3234echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3235echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3236if test "${lt_cv_path_SED+set}" = set; then 3237 echo $ECHO_N "(cached) $ECHO_C" >&6 3238else 3239 # Loop through the user's path and test for sed and gsed. 3240# Then use that list of sed's as ones to test for truncation. 3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3242for as_dir in $PATH 3243do 3244 IFS=$as_save_IFS 3245 test -z "$as_dir" && as_dir=. 3246 for lt_ac_prog in sed gsed; do 3247 for ac_exec_ext in '' $ac_executable_extensions; do 3248 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3249 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3250 fi 3251 done 3252 done 3253done 3254IFS=$as_save_IFS 3255lt_ac_max=0 3256lt_ac_count=0 3257# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3258# along with /bin/sed that truncates output. 3259for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3260 test ! -f $lt_ac_sed && continue 3261 cat /dev/null > conftest.in 3262 lt_ac_count=0 3263 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3264 # Check for GNU sed and select it if it is found. 3265 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3266 lt_cv_path_SED=$lt_ac_sed 3267 break 3268 fi 3269 while true; do 3270 cat conftest.in conftest.in >conftest.tmp 3271 mv conftest.tmp conftest.in 3272 cp conftest.in conftest.nl 3273 echo >>conftest.nl 3274 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3275 cmp -s conftest.out conftest.nl || break 3276 # 10000 chars as input seems more than enough 3277 test $lt_ac_count -gt 10 && break 3278 lt_ac_count=`expr $lt_ac_count + 1` 3279 if test $lt_ac_count -gt $lt_ac_max; then 3280 lt_ac_max=$lt_ac_count 3281 lt_cv_path_SED=$lt_ac_sed 3282 fi 3283 done 3284done 3285 3286fi 3287 3288SED=$lt_cv_path_SED 3289 3290echo "$as_me:$LINENO: result: $SED" >&5 3291echo "${ECHO_T}$SED" >&6 3292 3293echo "$as_me:$LINENO: checking for egrep" >&5 3294echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3295if test "${ac_cv_prog_egrep+set}" = set; then 3296 echo $ECHO_N "(cached) $ECHO_C" >&6 3297else 3298 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3299 then ac_cv_prog_egrep='grep -E' 3300 else ac_cv_prog_egrep='egrep' 3301 fi 3302fi 3303echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3304echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3305 EGREP=$ac_cv_prog_egrep 3306 3307 3308 3309# Check whether --with-gnu-ld or --without-gnu-ld was given. 3310if test "${with_gnu_ld+set}" = set; then 3311 withval="$with_gnu_ld" 3312 test "$withval" = no || with_gnu_ld=yes 3313else 3314 with_gnu_ld=no 3315fi; 3316ac_prog=ld 3317if test "$GCC" = yes; then 3318 # Check if gcc -print-prog-name=ld gives a path. 3319 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3320echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3321 case $host in 3322 *-*-mingw*) 3323 # gcc leaves a trailing carriage return which upsets mingw 3324 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3325 *) 3326 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3327 esac 3328 case $ac_prog in 3329 # Accept absolute paths. 3330 [\\/]* | ?:[\\/]*) 3331 re_direlt='/[^/][^/]*/\.\./' 3332 # Canonicalize the pathname of ld 3333 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3334 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3335 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3336 done 3337 test -z "$LD" && LD="$ac_prog" 3338 ;; 3339 "") 3340 # If it fails, then pretend we aren't using GCC. 3341 ac_prog=ld 3342 ;; 3343 *) 3344 # If it is relative, then search for the first ld in PATH. 3345 with_gnu_ld=unknown 3346 ;; 3347 esac 3348elif test "$with_gnu_ld" = yes; then 3349 echo "$as_me:$LINENO: checking for GNU ld" >&5 3350echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3351else 3352 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3353echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3354fi 3355if test "${lt_cv_path_LD+set}" = set; then 3356 echo $ECHO_N "(cached) $ECHO_C" >&6 3357else 3358 if test -z "$LD"; then 3359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3360 for ac_dir in $PATH; do 3361 IFS="$lt_save_ifs" 3362 test -z "$ac_dir" && ac_dir=. 3363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3364 lt_cv_path_LD="$ac_dir/$ac_prog" 3365 # Check to see if the program is GNU ld. I'd rather use --version, 3366 # but apparently some variants of GNU ld only accept -v. 3367 # Break only if it was the GNU/non-GNU ld that we prefer. 3368 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3369 *GNU* | *'with BFD'*) 3370 test "$with_gnu_ld" != no && break 3371 ;; 3372 *) 3373 test "$with_gnu_ld" != yes && break 3374 ;; 3375 esac 3376 fi 3377 done 3378 IFS="$lt_save_ifs" 3379else 3380 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3381fi 3382fi 3383 3384LD="$lt_cv_path_LD" 3385if test -n "$LD"; then 3386 echo "$as_me:$LINENO: result: $LD" >&5 3387echo "${ECHO_T}$LD" >&6 3388else 3389 echo "$as_me:$LINENO: result: no" >&5 3390echo "${ECHO_T}no" >&6 3391fi 3392test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3393echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3394 { (exit 1); exit 1; }; } 3395echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3396echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3397if test "${lt_cv_prog_gnu_ld+set}" = set; then 3398 echo $ECHO_N "(cached) $ECHO_C" >&6 3399else 3400 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3401case `$LD -v 2>&1 </dev/null` in 3402*GNU* | *'with BFD'*) 3403 lt_cv_prog_gnu_ld=yes 3404 ;; 3405*) 3406 lt_cv_prog_gnu_ld=no 3407 ;; 3408esac 3409fi 3410echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3411echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3412with_gnu_ld=$lt_cv_prog_gnu_ld 3413 3414 3415echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3416echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3417if test "${lt_cv_ld_reload_flag+set}" = set; then 3418 echo $ECHO_N "(cached) $ECHO_C" >&6 3419else 3420 lt_cv_ld_reload_flag='-r' 3421fi 3422echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3423echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3424reload_flag=$lt_cv_ld_reload_flag 3425case $reload_flag in 3426"" | " "*) ;; 3427*) reload_flag=" $reload_flag" ;; 3428esac 3429reload_cmds='$LD$reload_flag -o $output$reload_objs' 3430case $host_os in 3431 darwin*) 3432 if test "$GCC" = yes; then 3433 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3434 else 3435 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3436 fi 3437 ;; 3438esac 3439 3440echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3441echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3442if test "${lt_cv_path_NM+set}" = set; then 3443 echo $ECHO_N "(cached) $ECHO_C" >&6 3444else 3445 if test -n "$NM"; then 3446 # Let the user override the test. 3447 lt_cv_path_NM="$NM" 3448else 3449 lt_nm_to_check="${ac_tool_prefix}nm" 3450 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3451 lt_nm_to_check="$lt_nm_to_check nm" 3452 fi 3453 for lt_tmp_nm in $lt_nm_to_check; do 3454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3455 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3456 IFS="$lt_save_ifs" 3457 test -z "$ac_dir" && ac_dir=. 3458 tmp_nm="$ac_dir/$lt_tmp_nm" 3459 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3460 # Check to see if the nm accepts a BSD-compat flag. 3461 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3462 # nm: unknown option "B" ignored 3463 # Tru64's nm complains that /dev/null is an invalid object file 3464 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3465 */dev/null* | *'Invalid file or object type'*) 3466 lt_cv_path_NM="$tmp_nm -B" 3467 break 3468 ;; 3469 *) 3470 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3471 */dev/null*) 3472 lt_cv_path_NM="$tmp_nm -p" 3473 break 3474 ;; 3475 *) 3476 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3477 continue # so that we can try to find one that supports BSD flags 3478 ;; 3479 esac 3480 ;; 3481 esac 3482 fi 3483 done 3484 IFS="$lt_save_ifs" 3485 done 3486 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3487fi 3488fi 3489echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3490echo "${ECHO_T}$lt_cv_path_NM" >&6 3491NM="$lt_cv_path_NM" 3492 3493echo "$as_me:$LINENO: checking whether ln -s works" >&5 3494echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3495LN_S=$as_ln_s 3496if test "$LN_S" = "ln -s"; then 3497 echo "$as_me:$LINENO: result: yes" >&5 3498echo "${ECHO_T}yes" >&6 3499else 3500 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3501echo "${ECHO_T}no, using $LN_S" >&6 3502fi 3503 3504echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3505echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3506if test "${lt_cv_deplibs_check_method+set}" = set; then 3507 echo $ECHO_N "(cached) $ECHO_C" >&6 3508else 3509 lt_cv_file_magic_cmd='$MAGIC_CMD' 3510lt_cv_file_magic_test_file= 3511lt_cv_deplibs_check_method='unknown' 3512# Need to set the preceding variable on all platforms that support 3513# interlibrary dependencies. 3514# 'none' -- dependencies not supported. 3515# `unknown' -- same as none, but documents that we really don't know. 3516# 'pass_all' -- all dependencies passed with no checks. 3517# 'test_compile' -- check by making test program. 3518# 'file_magic [[regex]]' -- check by looking for files in library path 3519# which responds to the $file_magic_cmd with a given extended regex. 3520# If you have `file' or equivalent on your system and you're not sure 3521# whether `pass_all' will *always* work, you probably want this one. 3522 3523case $host_os in 3524aix4* | aix5*) 3525 lt_cv_deplibs_check_method=pass_all 3526 ;; 3527 3528beos*) 3529 lt_cv_deplibs_check_method=pass_all 3530 ;; 3531 3532bsdi[45]*) 3533 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3534 lt_cv_file_magic_cmd='/usr/bin/file -L' 3535 lt_cv_file_magic_test_file=/shlib/libc.so 3536 ;; 3537 3538cygwin*) 3539 # func_win32_libid is a shell function defined in ltmain.sh 3540 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3541 lt_cv_file_magic_cmd='func_win32_libid' 3542 ;; 3543 3544mingw* | pw32*) 3545 # Base MSYS/MinGW do not provide the 'file' command needed by 3546 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3547 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3548 lt_cv_file_magic_cmd='$OBJDUMP -f' 3549 ;; 3550 3551darwin* | rhapsody*) 3552 lt_cv_deplibs_check_method=pass_all 3553 ;; 3554 3555freebsd* | kfreebsd*-gnu | dragonfly*) 3556 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3557 case $host_cpu in 3558 i*86 ) 3559 # Not sure whether the presence of OpenBSD here was a mistake. 3560 # Let's accept both of them until this is cleared up. 3561 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3562 lt_cv_file_magic_cmd=/usr/bin/file 3563 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3564 ;; 3565 esac 3566 else 3567 lt_cv_deplibs_check_method=pass_all 3568 fi 3569 ;; 3570 3571gnu*) 3572 lt_cv_deplibs_check_method=pass_all 3573 ;; 3574 3575hpux10.20* | hpux11*) 3576 lt_cv_file_magic_cmd=/usr/bin/file 3577 case $host_cpu in 3578 ia64*) 3579 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3580 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3581 ;; 3582 hppa*64*) 3583 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]' 3584 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3585 ;; 3586 *) 3587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3588 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3589 ;; 3590 esac 3591 ;; 3592 3593interix3*) 3594 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 3596 ;; 3597 3598irix5* | irix6* | nonstopux*) 3599 case $LD in 3600 *-32|*"-32 ") libmagic=32-bit;; 3601 *-n32|*"-n32 ") libmagic=N32;; 3602 *-64|*"-64 ") libmagic=64-bit;; 3603 *) libmagic=never-match;; 3604 esac 3605 lt_cv_deplibs_check_method=pass_all 3606 ;; 3607 3608# This must be Linux ELF. 3609linux*) 3610 lt_cv_deplibs_check_method=pass_all 3611 ;; 3612 3613netbsd*) 3614 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3616 else 3617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3618 fi 3619 ;; 3620 3621newos6*) 3622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3623 lt_cv_file_magic_cmd=/usr/bin/file 3624 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3625 ;; 3626 3627nto-qnx*) 3628 lt_cv_deplibs_check_method=unknown 3629 ;; 3630 3631openbsd*) 3632 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3634 else 3635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3636 fi 3637 ;; 3638 3639osf3* | osf4* | osf5*) 3640 lt_cv_deplibs_check_method=pass_all 3641 ;; 3642 3643solaris*) 3644 lt_cv_deplibs_check_method=pass_all 3645 ;; 3646 3647sysv4 | sysv4.3*) 3648 case $host_vendor in 3649 motorola) 3650 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]' 3651 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3652 ;; 3653 ncr) 3654 lt_cv_deplibs_check_method=pass_all 3655 ;; 3656 sequent) 3657 lt_cv_file_magic_cmd='/bin/file' 3658 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3659 ;; 3660 sni) 3661 lt_cv_file_magic_cmd='/bin/file' 3662 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3663 lt_cv_file_magic_test_file=/lib/libc.so 3664 ;; 3665 siemens) 3666 lt_cv_deplibs_check_method=pass_all 3667 ;; 3668 pc) 3669 lt_cv_deplibs_check_method=pass_all 3670 ;; 3671 esac 3672 ;; 3673 3674sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3675 lt_cv_deplibs_check_method=pass_all 3676 ;; 3677esac 3678 3679fi 3680echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3681echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3682file_magic_cmd=$lt_cv_file_magic_cmd 3683deplibs_check_method=$lt_cv_deplibs_check_method 3684test -z "$deplibs_check_method" && deplibs_check_method=unknown 3685 3686 3687 3688 3689# If no C compiler was specified, use CC. 3690LTCC=${LTCC-"$CC"} 3691 3692# If no C compiler flags were specified, use CFLAGS. 3693LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3694 3695# Allow CC to be a program name with arguments. 3696compiler=$CC 3697 3698 3699# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3700if test "${enable_libtool_lock+set}" = set; then 3701 enableval="$enable_libtool_lock" 3702 3703fi; 3704test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3705 3706# Some flags need to be propagated to the compiler or linker for good 3707# libtool support. 3708case $host in 3709ia64-*-hpux*) 3710 # Find out which ABI we are using. 3711 echo 'int i;' > conftest.$ac_ext 3712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3713 (eval $ac_compile) 2>&5 3714 ac_status=$? 3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3716 (exit $ac_status); }; then 3717 case `/usr/bin/file conftest.$ac_objext` in 3718 *ELF-32*) 3719 HPUX_IA64_MODE="32" 3720 ;; 3721 *ELF-64*) 3722 HPUX_IA64_MODE="64" 3723 ;; 3724 esac 3725 fi 3726 rm -rf conftest* 3727 ;; 3728*-*-irix6*) 3729 # Find out which ABI we are using. 3730 echo '#line 3730 "configure"' > conftest.$ac_ext 3731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3732 (eval $ac_compile) 2>&5 3733 ac_status=$? 3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3735 (exit $ac_status); }; then 3736 if test "$lt_cv_prog_gnu_ld" = yes; then 3737 case `/usr/bin/file conftest.$ac_objext` in 3738 *32-bit*) 3739 LD="${LD-ld} -melf32bsmip" 3740 ;; 3741 *N32*) 3742 LD="${LD-ld} -melf32bmipn32" 3743 ;; 3744 *64-bit*) 3745 LD="${LD-ld} -melf64bmip" 3746 ;; 3747 esac 3748 else 3749 case `/usr/bin/file conftest.$ac_objext` in 3750 *32-bit*) 3751 LD="${LD-ld} -32" 3752 ;; 3753 *N32*) 3754 LD="${LD-ld} -n32" 3755 ;; 3756 *64-bit*) 3757 LD="${LD-ld} -64" 3758 ;; 3759 esac 3760 fi 3761 fi 3762 rm -rf conftest* 3763 ;; 3764 3765x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3766 # Find out which ABI we are using. 3767 echo 'int i;' > conftest.$ac_ext 3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3769 (eval $ac_compile) 2>&5 3770 ac_status=$? 3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3772 (exit $ac_status); }; then 3773 case `/usr/bin/file conftest.o` in 3774 *32-bit*) 3775 case $host in 3776 x86_64-*linux*) 3777 LD="${LD-ld} -m elf_i386" 3778 ;; 3779 ppc64-*linux*|powerpc64-*linux*) 3780 LD="${LD-ld} -m elf32ppclinux" 3781 ;; 3782 s390x-*linux*) 3783 LD="${LD-ld} -m elf_s390" 3784 ;; 3785 sparc64-*linux*) 3786 LD="${LD-ld} -m elf32_sparc" 3787 ;; 3788 esac 3789 ;; 3790 *64-bit*) 3791 case $host in 3792 x86_64-*linux*) 3793 LD="${LD-ld} -m elf_x86_64" 3794 ;; 3795 ppc*-*linux*|powerpc*-*linux*) 3796 LD="${LD-ld} -m elf64ppc" 3797 ;; 3798 s390*-*linux*) 3799 LD="${LD-ld} -m elf64_s390" 3800 ;; 3801 sparc*-*linux*) 3802 LD="${LD-ld} -m elf64_sparc" 3803 ;; 3804 esac 3805 ;; 3806 esac 3807 fi 3808 rm -rf conftest* 3809 ;; 3810 3811*-*-sco3.2v5*) 3812 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3813 SAVE_CFLAGS="$CFLAGS" 3814 CFLAGS="$CFLAGS -belf" 3815 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3816echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3817if test "${lt_cv_cc_needs_belf+set}" = set; then 3818 echo $ECHO_N "(cached) $ECHO_C" >&6 3819else 3820 ac_ext=c 3821ac_cpp='$CPP $CPPFLAGS' 3822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3824ac_compiler_gnu=$ac_cv_c_compiler_gnu 3825 3826 cat >conftest.$ac_ext <<_ACEOF 3827/* confdefs.h. */ 3828_ACEOF 3829cat confdefs.h >>conftest.$ac_ext 3830cat >>conftest.$ac_ext <<_ACEOF 3831/* end confdefs.h. */ 3832 3833int 3834main () 3835{ 3836 3837 ; 3838 return 0; 3839} 3840_ACEOF 3841rm -f conftest.$ac_objext conftest$ac_exeext 3842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3843 (eval $ac_link) 2>conftest.er1 3844 ac_status=$? 3845 grep -v '^ *+' conftest.er1 >conftest.err 3846 rm -f conftest.er1 3847 cat conftest.err >&5 3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3849 (exit $ac_status); } && 3850 { ac_try='test -z "$ac_c_werror_flag" 3851 || test ! -s conftest.err' 3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3853 (eval $ac_try) 2>&5 3854 ac_status=$? 3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3856 (exit $ac_status); }; } && 3857 { ac_try='test -s conftest$ac_exeext' 3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3859 (eval $ac_try) 2>&5 3860 ac_status=$? 3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3862 (exit $ac_status); }; }; then 3863 lt_cv_cc_needs_belf=yes 3864else 3865 echo "$as_me: failed program was:" >&5 3866sed 's/^/| /' conftest.$ac_ext >&5 3867 3868lt_cv_cc_needs_belf=no 3869fi 3870rm -f conftest.err conftest.$ac_objext \ 3871 conftest$ac_exeext conftest.$ac_ext 3872 ac_ext=c 3873ac_cpp='$CPP $CPPFLAGS' 3874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3876ac_compiler_gnu=$ac_cv_c_compiler_gnu 3877 3878fi 3879echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3880echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3881 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3882 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3883 CFLAGS="$SAVE_CFLAGS" 3884 fi 3885 ;; 3886sparc*-*solaris*) 3887 # Find out which ABI we are using. 3888 echo 'int i;' > conftest.$ac_ext 3889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3890 (eval $ac_compile) 2>&5 3891 ac_status=$? 3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3893 (exit $ac_status); }; then 3894 case `/usr/bin/file conftest.o` in 3895 *64-bit*) 3896 case $lt_cv_prog_gnu_ld in 3897 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3898 *) LD="${LD-ld} -64" ;; 3899 esac 3900 ;; 3901 esac 3902 fi 3903 rm -rf conftest* 3904 ;; 3905 3906 3907esac 3908 3909need_locks="$enable_libtool_lock" 3910 3911 3912ac_ext=c 3913ac_cpp='$CPP $CPPFLAGS' 3914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3916ac_compiler_gnu=$ac_cv_c_compiler_gnu 3917echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3918echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3919# On Suns, sometimes $CPP names a directory. 3920if test -n "$CPP" && test -d "$CPP"; then 3921 CPP= 3922fi 3923if test -z "$CPP"; then 3924 if test "${ac_cv_prog_CPP+set}" = set; then 3925 echo $ECHO_N "(cached) $ECHO_C" >&6 3926else 3927 # Double quotes because CPP needs to be expanded 3928 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3929 do 3930 ac_preproc_ok=false 3931for ac_c_preproc_warn_flag in '' yes 3932do 3933 # Use a header file that comes with gcc, so configuring glibc 3934 # with a fresh cross-compiler works. 3935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3936 # <limits.h> exists even on freestanding compilers. 3937 # On the NeXT, cc -E runs the code through the compiler's parser, 3938 # not just through cpp. "Syntax error" is here to catch this case. 3939 cat >conftest.$ac_ext <<_ACEOF 3940/* confdefs.h. */ 3941_ACEOF 3942cat confdefs.h >>conftest.$ac_ext 3943cat >>conftest.$ac_ext <<_ACEOF 3944/* end confdefs.h. */ 3945#ifdef __STDC__ 3946# include <limits.h> 3947#else 3948# include <assert.h> 3949#endif 3950 Syntax error 3951_ACEOF 3952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3954 ac_status=$? 3955 grep -v '^ *+' conftest.er1 >conftest.err 3956 rm -f conftest.er1 3957 cat conftest.err >&5 3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3959 (exit $ac_status); } >/dev/null; then 3960 if test -s conftest.err; then 3961 ac_cpp_err=$ac_c_preproc_warn_flag 3962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3963 else 3964 ac_cpp_err= 3965 fi 3966else 3967 ac_cpp_err=yes 3968fi 3969if test -z "$ac_cpp_err"; then 3970 : 3971else 3972 echo "$as_me: failed program was:" >&5 3973sed 's/^/| /' conftest.$ac_ext >&5 3974 3975 # Broken: fails on valid input. 3976continue 3977fi 3978rm -f conftest.err conftest.$ac_ext 3979 3980 # OK, works on sane cases. Now check whether non-existent headers 3981 # can be detected and how. 3982 cat >conftest.$ac_ext <<_ACEOF 3983/* confdefs.h. */ 3984_ACEOF 3985cat confdefs.h >>conftest.$ac_ext 3986cat >>conftest.$ac_ext <<_ACEOF 3987/* end confdefs.h. */ 3988#include <ac_nonexistent.h> 3989_ACEOF 3990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3992 ac_status=$? 3993 grep -v '^ *+' conftest.er1 >conftest.err 3994 rm -f conftest.er1 3995 cat conftest.err >&5 3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3997 (exit $ac_status); } >/dev/null; then 3998 if test -s conftest.err; then 3999 ac_cpp_err=$ac_c_preproc_warn_flag 4000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4001 else 4002 ac_cpp_err= 4003 fi 4004else 4005 ac_cpp_err=yes 4006fi 4007if test -z "$ac_cpp_err"; then 4008 # Broken: success on invalid input. 4009continue 4010else 4011 echo "$as_me: failed program was:" >&5 4012sed 's/^/| /' conftest.$ac_ext >&5 4013 4014 # Passes both tests. 4015ac_preproc_ok=: 4016break 4017fi 4018rm -f conftest.err conftest.$ac_ext 4019 4020done 4021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4022rm -f conftest.err conftest.$ac_ext 4023if $ac_preproc_ok; then 4024 break 4025fi 4026 4027 done 4028 ac_cv_prog_CPP=$CPP 4029 4030fi 4031 CPP=$ac_cv_prog_CPP 4032else 4033 ac_cv_prog_CPP=$CPP 4034fi 4035echo "$as_me:$LINENO: result: $CPP" >&5 4036echo "${ECHO_T}$CPP" >&6 4037ac_preproc_ok=false 4038for ac_c_preproc_warn_flag in '' yes 4039do 4040 # Use a header file that comes with gcc, so configuring glibc 4041 # with a fresh cross-compiler works. 4042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4043 # <limits.h> exists even on freestanding compilers. 4044 # On the NeXT, cc -E runs the code through the compiler's parser, 4045 # not just through cpp. "Syntax error" is here to catch this case. 4046 cat >conftest.$ac_ext <<_ACEOF 4047/* confdefs.h. */ 4048_ACEOF 4049cat confdefs.h >>conftest.$ac_ext 4050cat >>conftest.$ac_ext <<_ACEOF 4051/* end confdefs.h. */ 4052#ifdef __STDC__ 4053# include <limits.h> 4054#else 4055# include <assert.h> 4056#endif 4057 Syntax error 4058_ACEOF 4059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4061 ac_status=$? 4062 grep -v '^ *+' conftest.er1 >conftest.err 4063 rm -f conftest.er1 4064 cat conftest.err >&5 4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4066 (exit $ac_status); } >/dev/null; then 4067 if test -s conftest.err; then 4068 ac_cpp_err=$ac_c_preproc_warn_flag 4069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4070 else 4071 ac_cpp_err= 4072 fi 4073else 4074 ac_cpp_err=yes 4075fi 4076if test -z "$ac_cpp_err"; then 4077 : 4078else 4079 echo "$as_me: failed program was:" >&5 4080sed 's/^/| /' conftest.$ac_ext >&5 4081 4082 # Broken: fails on valid input. 4083continue 4084fi 4085rm -f conftest.err conftest.$ac_ext 4086 4087 # OK, works on sane cases. Now check whether non-existent headers 4088 # can be detected and how. 4089 cat >conftest.$ac_ext <<_ACEOF 4090/* confdefs.h. */ 4091_ACEOF 4092cat confdefs.h >>conftest.$ac_ext 4093cat >>conftest.$ac_ext <<_ACEOF 4094/* end confdefs.h. */ 4095#include <ac_nonexistent.h> 4096_ACEOF 4097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4099 ac_status=$? 4100 grep -v '^ *+' conftest.er1 >conftest.err 4101 rm -f conftest.er1 4102 cat conftest.err >&5 4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4104 (exit $ac_status); } >/dev/null; then 4105 if test -s conftest.err; then 4106 ac_cpp_err=$ac_c_preproc_warn_flag 4107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4108 else 4109 ac_cpp_err= 4110 fi 4111else 4112 ac_cpp_err=yes 4113fi 4114if test -z "$ac_cpp_err"; then 4115 # Broken: success on invalid input. 4116continue 4117else 4118 echo "$as_me: failed program was:" >&5 4119sed 's/^/| /' conftest.$ac_ext >&5 4120 4121 # Passes both tests. 4122ac_preproc_ok=: 4123break 4124fi 4125rm -f conftest.err conftest.$ac_ext 4126 4127done 4128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4129rm -f conftest.err conftest.$ac_ext 4130if $ac_preproc_ok; then 4131 : 4132else 4133 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4134See \`config.log' for more details." >&5 4135echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4136See \`config.log' for more details." >&2;} 4137 { (exit 1); exit 1; }; } 4138fi 4139 4140ac_ext=c 4141ac_cpp='$CPP $CPPFLAGS' 4142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4144ac_compiler_gnu=$ac_cv_c_compiler_gnu 4145 4146 4147echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4148echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4149if test "${ac_cv_header_stdc+set}" = set; then 4150 echo $ECHO_N "(cached) $ECHO_C" >&6 4151else 4152 cat >conftest.$ac_ext <<_ACEOF 4153/* confdefs.h. */ 4154_ACEOF 4155cat confdefs.h >>conftest.$ac_ext 4156cat >>conftest.$ac_ext <<_ACEOF 4157/* end confdefs.h. */ 4158#include <stdlib.h> 4159#include <stdarg.h> 4160#include <string.h> 4161#include <float.h> 4162 4163int 4164main () 4165{ 4166 4167 ; 4168 return 0; 4169} 4170_ACEOF 4171rm -f conftest.$ac_objext 4172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4173 (eval $ac_compile) 2>conftest.er1 4174 ac_status=$? 4175 grep -v '^ *+' conftest.er1 >conftest.err 4176 rm -f conftest.er1 4177 cat conftest.err >&5 4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4179 (exit $ac_status); } && 4180 { ac_try='test -z "$ac_c_werror_flag" 4181 || test ! -s conftest.err' 4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4183 (eval $ac_try) 2>&5 4184 ac_status=$? 4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4186 (exit $ac_status); }; } && 4187 { ac_try='test -s conftest.$ac_objext' 4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4189 (eval $ac_try) 2>&5 4190 ac_status=$? 4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4192 (exit $ac_status); }; }; then 4193 ac_cv_header_stdc=yes 4194else 4195 echo "$as_me: failed program was:" >&5 4196sed 's/^/| /' conftest.$ac_ext >&5 4197 4198ac_cv_header_stdc=no 4199fi 4200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4201 4202if test $ac_cv_header_stdc = yes; then 4203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4204 cat >conftest.$ac_ext <<_ACEOF 4205/* confdefs.h. */ 4206_ACEOF 4207cat confdefs.h >>conftest.$ac_ext 4208cat >>conftest.$ac_ext <<_ACEOF 4209/* end confdefs.h. */ 4210#include <string.h> 4211 4212_ACEOF 4213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4214 $EGREP "memchr" >/dev/null 2>&1; then 4215 : 4216else 4217 ac_cv_header_stdc=no 4218fi 4219rm -f conftest* 4220 4221fi 4222 4223if test $ac_cv_header_stdc = yes; then 4224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4225 cat >conftest.$ac_ext <<_ACEOF 4226/* confdefs.h. */ 4227_ACEOF 4228cat confdefs.h >>conftest.$ac_ext 4229cat >>conftest.$ac_ext <<_ACEOF 4230/* end confdefs.h. */ 4231#include <stdlib.h> 4232 4233_ACEOF 4234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4235 $EGREP "free" >/dev/null 2>&1; then 4236 : 4237else 4238 ac_cv_header_stdc=no 4239fi 4240rm -f conftest* 4241 4242fi 4243 4244if test $ac_cv_header_stdc = yes; then 4245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4246 if test "$cross_compiling" = yes; then 4247 : 4248else 4249 cat >conftest.$ac_ext <<_ACEOF 4250/* confdefs.h. */ 4251_ACEOF 4252cat confdefs.h >>conftest.$ac_ext 4253cat >>conftest.$ac_ext <<_ACEOF 4254/* end confdefs.h. */ 4255#include <ctype.h> 4256#if ((' ' & 0x0FF) == 0x020) 4257# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4258# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4259#else 4260# define ISLOWER(c) \ 4261 (('a' <= (c) && (c) <= 'i') \ 4262 || ('j' <= (c) && (c) <= 'r') \ 4263 || ('s' <= (c) && (c) <= 'z')) 4264# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4265#endif 4266 4267#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4268int 4269main () 4270{ 4271 int i; 4272 for (i = 0; i < 256; i++) 4273 if (XOR (islower (i), ISLOWER (i)) 4274 || toupper (i) != TOUPPER (i)) 4275 exit(2); 4276 exit (0); 4277} 4278_ACEOF 4279rm -f conftest$ac_exeext 4280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4281 (eval $ac_link) 2>&5 4282 ac_status=$? 4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4286 (eval $ac_try) 2>&5 4287 ac_status=$? 4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4289 (exit $ac_status); }; }; then 4290 : 4291else 4292 echo "$as_me: program exited with status $ac_status" >&5 4293echo "$as_me: failed program was:" >&5 4294sed 's/^/| /' conftest.$ac_ext >&5 4295 4296( exit $ac_status ) 4297ac_cv_header_stdc=no 4298fi 4299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4300fi 4301fi 4302fi 4303echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4304echo "${ECHO_T}$ac_cv_header_stdc" >&6 4305if test $ac_cv_header_stdc = yes; then 4306 4307cat >>confdefs.h <<\_ACEOF 4308#define STDC_HEADERS 1 4309_ACEOF 4310 4311fi 4312 4313# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4324 inttypes.h stdint.h unistd.h 4325do 4326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4327echo "$as_me:$LINENO: checking for $ac_header" >&5 4328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4329if eval "test \"\${$as_ac_Header+set}\" = set"; then 4330 echo $ECHO_N "(cached) $ECHO_C" >&6 4331else 4332 cat >conftest.$ac_ext <<_ACEOF 4333/* confdefs.h. */ 4334_ACEOF 4335cat confdefs.h >>conftest.$ac_ext 4336cat >>conftest.$ac_ext <<_ACEOF 4337/* end confdefs.h. */ 4338$ac_includes_default 4339 4340#include <$ac_header> 4341_ACEOF 4342rm -f conftest.$ac_objext 4343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4344 (eval $ac_compile) 2>conftest.er1 4345 ac_status=$? 4346 grep -v '^ *+' conftest.er1 >conftest.err 4347 rm -f conftest.er1 4348 cat conftest.err >&5 4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4350 (exit $ac_status); } && 4351 { ac_try='test -z "$ac_c_werror_flag" 4352 || test ! -s conftest.err' 4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4354 (eval $ac_try) 2>&5 4355 ac_status=$? 4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4357 (exit $ac_status); }; } && 4358 { ac_try='test -s conftest.$ac_objext' 4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4360 (eval $ac_try) 2>&5 4361 ac_status=$? 4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4363 (exit $ac_status); }; }; then 4364 eval "$as_ac_Header=yes" 4365else 4366 echo "$as_me: failed program was:" >&5 4367sed 's/^/| /' conftest.$ac_ext >&5 4368 4369eval "$as_ac_Header=no" 4370fi 4371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4372fi 4373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4375if test `eval echo '${'$as_ac_Header'}'` = yes; then 4376 cat >>confdefs.h <<_ACEOF 4377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4378_ACEOF 4379 4380fi 4381 4382done 4383 4384 4385 4386for ac_header in dlfcn.h 4387do 4388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4389if eval "test \"\${$as_ac_Header+set}\" = set"; then 4390 echo "$as_me:$LINENO: checking for $ac_header" >&5 4391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4392if eval "test \"\${$as_ac_Header+set}\" = set"; then 4393 echo $ECHO_N "(cached) $ECHO_C" >&6 4394fi 4395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4397else 4398 # Is the header compilable? 4399echo "$as_me:$LINENO: checking $ac_header usability" >&5 4400echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4401cat >conftest.$ac_ext <<_ACEOF 4402/* confdefs.h. */ 4403_ACEOF 4404cat confdefs.h >>conftest.$ac_ext 4405cat >>conftest.$ac_ext <<_ACEOF 4406/* end confdefs.h. */ 4407$ac_includes_default 4408#include <$ac_header> 4409_ACEOF 4410rm -f conftest.$ac_objext 4411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4412 (eval $ac_compile) 2>conftest.er1 4413 ac_status=$? 4414 grep -v '^ *+' conftest.er1 >conftest.err 4415 rm -f conftest.er1 4416 cat conftest.err >&5 4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4418 (exit $ac_status); } && 4419 { ac_try='test -z "$ac_c_werror_flag" 4420 || test ! -s conftest.err' 4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4422 (eval $ac_try) 2>&5 4423 ac_status=$? 4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4425 (exit $ac_status); }; } && 4426 { ac_try='test -s conftest.$ac_objext' 4427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4428 (eval $ac_try) 2>&5 4429 ac_status=$? 4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4431 (exit $ac_status); }; }; then 4432 ac_header_compiler=yes 4433else 4434 echo "$as_me: failed program was:" >&5 4435sed 's/^/| /' conftest.$ac_ext >&5 4436 4437ac_header_compiler=no 4438fi 4439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4440echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4441echo "${ECHO_T}$ac_header_compiler" >&6 4442 4443# Is the header present? 4444echo "$as_me:$LINENO: checking $ac_header presence" >&5 4445echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4446cat >conftest.$ac_ext <<_ACEOF 4447/* confdefs.h. */ 4448_ACEOF 4449cat confdefs.h >>conftest.$ac_ext 4450cat >>conftest.$ac_ext <<_ACEOF 4451/* end confdefs.h. */ 4452#include <$ac_header> 4453_ACEOF 4454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4456 ac_status=$? 4457 grep -v '^ *+' conftest.er1 >conftest.err 4458 rm -f conftest.er1 4459 cat conftest.err >&5 4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4461 (exit $ac_status); } >/dev/null; then 4462 if test -s conftest.err; then 4463 ac_cpp_err=$ac_c_preproc_warn_flag 4464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4465 else 4466 ac_cpp_err= 4467 fi 4468else 4469 ac_cpp_err=yes 4470fi 4471if test -z "$ac_cpp_err"; then 4472 ac_header_preproc=yes 4473else 4474 echo "$as_me: failed program was:" >&5 4475sed 's/^/| /' conftest.$ac_ext >&5 4476 4477 ac_header_preproc=no 4478fi 4479rm -f conftest.err conftest.$ac_ext 4480echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4481echo "${ECHO_T}$ac_header_preproc" >&6 4482 4483# So? What about this header? 4484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4485 yes:no: ) 4486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4489echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4490 ac_header_preproc=yes 4491 ;; 4492 no:yes:* ) 4493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4496echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4498echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4500echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4504echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4505 ( 4506 cat <<\_ASBOX 4507## ---------------------------------------------------------------------- ## 4508## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 4509## ---------------------------------------------------------------------- ## 4510_ASBOX 4511 ) | 4512 sed "s/^/$as_me: WARNING: /" >&2 4513 ;; 4514esac 4515echo "$as_me:$LINENO: checking for $ac_header" >&5 4516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4517if eval "test \"\${$as_ac_Header+set}\" = set"; then 4518 echo $ECHO_N "(cached) $ECHO_C" >&6 4519else 4520 eval "$as_ac_Header=\$ac_header_preproc" 4521fi 4522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4524 4525fi 4526if test `eval echo '${'$as_ac_Header'}'` = yes; then 4527 cat >>confdefs.h <<_ACEOF 4528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4529_ACEOF 4530 4531fi 4532 4533done 4534 4535ac_ext=cc 4536ac_cpp='$CXXCPP $CPPFLAGS' 4537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4540if test -n "$ac_tool_prefix"; then 4541 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4542 do 4543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4544set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4545echo "$as_me:$LINENO: checking for $ac_word" >&5 4546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4547if test "${ac_cv_prog_CXX+set}" = set; then 4548 echo $ECHO_N "(cached) $ECHO_C" >&6 4549else 4550 if test -n "$CXX"; then 4551 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4552else 4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4554for as_dir in $PATH 4555do 4556 IFS=$as_save_IFS 4557 test -z "$as_dir" && as_dir=. 4558 for ac_exec_ext in '' $ac_executable_extensions; do 4559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4560 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4562 break 2 4563 fi 4564done 4565done 4566 4567fi 4568fi 4569CXX=$ac_cv_prog_CXX 4570if test -n "$CXX"; then 4571 echo "$as_me:$LINENO: result: $CXX" >&5 4572echo "${ECHO_T}$CXX" >&6 4573else 4574 echo "$as_me:$LINENO: result: no" >&5 4575echo "${ECHO_T}no" >&6 4576fi 4577 4578 test -n "$CXX" && break 4579 done 4580fi 4581if test -z "$CXX"; then 4582 ac_ct_CXX=$CXX 4583 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4584do 4585 # Extract the first word of "$ac_prog", so it can be a program name with args. 4586set dummy $ac_prog; ac_word=$2 4587echo "$as_me:$LINENO: checking for $ac_word" >&5 4588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4589if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4590 echo $ECHO_N "(cached) $ECHO_C" >&6 4591else 4592 if test -n "$ac_ct_CXX"; then 4593 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4594else 4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4596for as_dir in $PATH 4597do 4598 IFS=$as_save_IFS 4599 test -z "$as_dir" && as_dir=. 4600 for ac_exec_ext in '' $ac_executable_extensions; do 4601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4602 ac_cv_prog_ac_ct_CXX="$ac_prog" 4603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4604 break 2 4605 fi 4606done 4607done 4608 4609fi 4610fi 4611ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4612if test -n "$ac_ct_CXX"; then 4613 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4614echo "${ECHO_T}$ac_ct_CXX" >&6 4615else 4616 echo "$as_me:$LINENO: result: no" >&5 4617echo "${ECHO_T}no" >&6 4618fi 4619 4620 test -n "$ac_ct_CXX" && break 4621done 4622test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4623 4624 CXX=$ac_ct_CXX 4625fi 4626 4627 4628# Provide some information about the compiler. 4629echo "$as_me:$LINENO:" \ 4630 "checking for C++ compiler version" >&5 4631ac_compiler=`set X $ac_compile; echo $2` 4632{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4633 (eval $ac_compiler --version </dev/null >&5) 2>&5 4634 ac_status=$? 4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4636 (exit $ac_status); } 4637{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4638 (eval $ac_compiler -v </dev/null >&5) 2>&5 4639 ac_status=$? 4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4641 (exit $ac_status); } 4642{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4643 (eval $ac_compiler -V </dev/null >&5) 2>&5 4644 ac_status=$? 4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4646 (exit $ac_status); } 4647 4648echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4649echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4650if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4651 echo $ECHO_N "(cached) $ECHO_C" >&6 4652else 4653 cat >conftest.$ac_ext <<_ACEOF 4654/* confdefs.h. */ 4655_ACEOF 4656cat confdefs.h >>conftest.$ac_ext 4657cat >>conftest.$ac_ext <<_ACEOF 4658/* end confdefs.h. */ 4659 4660int 4661main () 4662{ 4663#ifndef __GNUC__ 4664 choke me 4665#endif 4666 4667 ; 4668 return 0; 4669} 4670_ACEOF 4671rm -f conftest.$ac_objext 4672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4673 (eval $ac_compile) 2>conftest.er1 4674 ac_status=$? 4675 grep -v '^ *+' conftest.er1 >conftest.err 4676 rm -f conftest.er1 4677 cat conftest.err >&5 4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4679 (exit $ac_status); } && 4680 { ac_try='test -z "$ac_cxx_werror_flag" 4681 || test ! -s conftest.err' 4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4683 (eval $ac_try) 2>&5 4684 ac_status=$? 4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4686 (exit $ac_status); }; } && 4687 { ac_try='test -s conftest.$ac_objext' 4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4689 (eval $ac_try) 2>&5 4690 ac_status=$? 4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4692 (exit $ac_status); }; }; then 4693 ac_compiler_gnu=yes 4694else 4695 echo "$as_me: failed program was:" >&5 4696sed 's/^/| /' conftest.$ac_ext >&5 4697 4698ac_compiler_gnu=no 4699fi 4700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4701ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4702 4703fi 4704echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4705echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4706GXX=`test $ac_compiler_gnu = yes && echo yes` 4707ac_test_CXXFLAGS=${CXXFLAGS+set} 4708ac_save_CXXFLAGS=$CXXFLAGS 4709CXXFLAGS="-g" 4710echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4711echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4712if test "${ac_cv_prog_cxx_g+set}" = set; then 4713 echo $ECHO_N "(cached) $ECHO_C" >&6 4714else 4715 cat >conftest.$ac_ext <<_ACEOF 4716/* confdefs.h. */ 4717_ACEOF 4718cat confdefs.h >>conftest.$ac_ext 4719cat >>conftest.$ac_ext <<_ACEOF 4720/* end confdefs.h. */ 4721 4722int 4723main () 4724{ 4725 4726 ; 4727 return 0; 4728} 4729_ACEOF 4730rm -f conftest.$ac_objext 4731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4732 (eval $ac_compile) 2>conftest.er1 4733 ac_status=$? 4734 grep -v '^ *+' conftest.er1 >conftest.err 4735 rm -f conftest.er1 4736 cat conftest.err >&5 4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4738 (exit $ac_status); } && 4739 { ac_try='test -z "$ac_cxx_werror_flag" 4740 || test ! -s conftest.err' 4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4742 (eval $ac_try) 2>&5 4743 ac_status=$? 4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4745 (exit $ac_status); }; } && 4746 { ac_try='test -s conftest.$ac_objext' 4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4748 (eval $ac_try) 2>&5 4749 ac_status=$? 4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4751 (exit $ac_status); }; }; then 4752 ac_cv_prog_cxx_g=yes 4753else 4754 echo "$as_me: failed program was:" >&5 4755sed 's/^/| /' conftest.$ac_ext >&5 4756 4757ac_cv_prog_cxx_g=no 4758fi 4759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4760fi 4761echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4762echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4763if test "$ac_test_CXXFLAGS" = set; then 4764 CXXFLAGS=$ac_save_CXXFLAGS 4765elif test $ac_cv_prog_cxx_g = yes; then 4766 if test "$GXX" = yes; then 4767 CXXFLAGS="-g -O2" 4768 else 4769 CXXFLAGS="-g" 4770 fi 4771else 4772 if test "$GXX" = yes; then 4773 CXXFLAGS="-O2" 4774 else 4775 CXXFLAGS= 4776 fi 4777fi 4778for ac_declaration in \ 4779 '' \ 4780 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4781 'extern "C" void std::exit (int); using std::exit;' \ 4782 'extern "C" void exit (int) throw ();' \ 4783 'extern "C" void exit (int);' \ 4784 'void exit (int);' 4785do 4786 cat >conftest.$ac_ext <<_ACEOF 4787/* confdefs.h. */ 4788_ACEOF 4789cat confdefs.h >>conftest.$ac_ext 4790cat >>conftest.$ac_ext <<_ACEOF 4791/* end confdefs.h. */ 4792$ac_declaration 4793#include <stdlib.h> 4794int 4795main () 4796{ 4797exit (42); 4798 ; 4799 return 0; 4800} 4801_ACEOF 4802rm -f conftest.$ac_objext 4803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4804 (eval $ac_compile) 2>conftest.er1 4805 ac_status=$? 4806 grep -v '^ *+' conftest.er1 >conftest.err 4807 rm -f conftest.er1 4808 cat conftest.err >&5 4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4810 (exit $ac_status); } && 4811 { ac_try='test -z "$ac_cxx_werror_flag" 4812 || test ! -s conftest.err' 4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4814 (eval $ac_try) 2>&5 4815 ac_status=$? 4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4817 (exit $ac_status); }; } && 4818 { ac_try='test -s conftest.$ac_objext' 4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4820 (eval $ac_try) 2>&5 4821 ac_status=$? 4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4823 (exit $ac_status); }; }; then 4824 : 4825else 4826 echo "$as_me: failed program was:" >&5 4827sed 's/^/| /' conftest.$ac_ext >&5 4828 4829continue 4830fi 4831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4832 cat >conftest.$ac_ext <<_ACEOF 4833/* confdefs.h. */ 4834_ACEOF 4835cat confdefs.h >>conftest.$ac_ext 4836cat >>conftest.$ac_ext <<_ACEOF 4837/* end confdefs.h. */ 4838$ac_declaration 4839int 4840main () 4841{ 4842exit (42); 4843 ; 4844 return 0; 4845} 4846_ACEOF 4847rm -f conftest.$ac_objext 4848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4849 (eval $ac_compile) 2>conftest.er1 4850 ac_status=$? 4851 grep -v '^ *+' conftest.er1 >conftest.err 4852 rm -f conftest.er1 4853 cat conftest.err >&5 4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4855 (exit $ac_status); } && 4856 { ac_try='test -z "$ac_cxx_werror_flag" 4857 || test ! -s conftest.err' 4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4859 (eval $ac_try) 2>&5 4860 ac_status=$? 4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4862 (exit $ac_status); }; } && 4863 { ac_try='test -s conftest.$ac_objext' 4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4865 (eval $ac_try) 2>&5 4866 ac_status=$? 4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4868 (exit $ac_status); }; }; then 4869 break 4870else 4871 echo "$as_me: failed program was:" >&5 4872sed 's/^/| /' conftest.$ac_ext >&5 4873 4874fi 4875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4876done 4877rm -f conftest* 4878if test -n "$ac_declaration"; then 4879 echo '#ifdef __cplusplus' >>confdefs.h 4880 echo $ac_declaration >>confdefs.h 4881 echo '#endif' >>confdefs.h 4882fi 4883 4884ac_ext=cc 4885ac_cpp='$CXXCPP $CPPFLAGS' 4886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4889 4890depcc="$CXX" am_compiler_list= 4891 4892echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4893echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4894if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4895 echo $ECHO_N "(cached) $ECHO_C" >&6 4896else 4897 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4898 # We make a subdir and do the tests there. Otherwise we can end up 4899 # making bogus files that we don't know about and never remove. For 4900 # instance it was reported that on HP-UX the gcc test will end up 4901 # making a dummy file named `D' -- because `-MD' means `put the output 4902 # in D'. 4903 mkdir conftest.dir 4904 # Copy depcomp to subdir because otherwise we won't find it if we're 4905 # using a relative directory. 4906 cp "$am_depcomp" conftest.dir 4907 cd conftest.dir 4908 # We will build objects and dependencies in a subdirectory because 4909 # it helps to detect inapplicable dependency modes. For instance 4910 # both Tru64's cc and ICC support -MD to output dependencies as a 4911 # side effect of compilation, but ICC will put the dependencies in 4912 # the current directory while Tru64 will put them in the object 4913 # directory. 4914 mkdir sub 4915 4916 am_cv_CXX_dependencies_compiler_type=none 4917 if test "$am_compiler_list" = ""; then 4918 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4919 fi 4920 for depmode in $am_compiler_list; do 4921 # Setup a source with many dependencies, because some compilers 4922 # like to wrap large dependency lists on column 80 (with \), and 4923 # we should not choose a depcomp mode which is confused by this. 4924 # 4925 # We need to recreate these files for each test, as the compiler may 4926 # overwrite some of them when testing with obscure command lines. 4927 # This happens at least with the AIX C compiler. 4928 : > sub/conftest.c 4929 for i in 1 2 3 4 5 6; do 4930 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4931 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4932 # Solaris 8's {/usr,}/bin/sh. 4933 touch sub/conftst$i.h 4934 done 4935 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4936 4937 case $depmode in 4938 nosideeffect) 4939 # after this tag, mechanisms are not by side-effect, so they'll 4940 # only be used when explicitly requested 4941 if test "x$enable_dependency_tracking" = xyes; then 4942 continue 4943 else 4944 break 4945 fi 4946 ;; 4947 none) break ;; 4948 esac 4949 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4950 # mode. It turns out that the SunPro C++ compiler does not properly 4951 # handle `-M -o', and we need to detect this. 4952 if depmode=$depmode \ 4953 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4954 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4955 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4956 >/dev/null 2>conftest.err && 4957 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4958 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4959 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4960 # icc doesn't choke on unknown options, it will just issue warnings 4961 # or remarks (even with -Werror). So we grep stderr for any message 4962 # that says an option was ignored or not supported. 4963 # When given -MP, icc 7.0 and 7.1 complain thusly: 4964 # icc: Command line warning: ignoring option '-M'; no argument required 4965 # The diagnosis changed in icc 8.0: 4966 # icc: Command line remark: option '-MP' not supported 4967 if (grep 'ignoring option' conftest.err || 4968 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4969 am_cv_CXX_dependencies_compiler_type=$depmode 4970 break 4971 fi 4972 fi 4973 done 4974 4975 cd .. 4976 rm -rf conftest.dir 4977else 4978 am_cv_CXX_dependencies_compiler_type=none 4979fi 4980 4981fi 4982echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4983echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4984CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4985 4986 4987 4988if 4989 test "x$enable_dependency_tracking" != xno \ 4990 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4991 am__fastdepCXX_TRUE= 4992 am__fastdepCXX_FALSE='#' 4993else 4994 am__fastdepCXX_TRUE='#' 4995 am__fastdepCXX_FALSE= 4996fi 4997 4998 4999 5000 5001if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5002 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5003 (test "X$CXX" != "Xg++"))) ; then 5004 ac_ext=cc 5005ac_cpp='$CXXCPP $CPPFLAGS' 5006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5009echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5010echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5011if test -z "$CXXCPP"; then 5012 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5013 echo $ECHO_N "(cached) $ECHO_C" >&6 5014else 5015 # Double quotes because CXXCPP needs to be expanded 5016 for CXXCPP in "$CXX -E" "/lib/cpp" 5017 do 5018 ac_preproc_ok=false 5019for ac_cxx_preproc_warn_flag in '' yes 5020do 5021 # Use a header file that comes with gcc, so configuring glibc 5022 # with a fresh cross-compiler works. 5023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5024 # <limits.h> exists even on freestanding compilers. 5025 # On the NeXT, cc -E runs the code through the compiler's parser, 5026 # not just through cpp. "Syntax error" is here to catch this case. 5027 cat >conftest.$ac_ext <<_ACEOF 5028/* confdefs.h. */ 5029_ACEOF 5030cat confdefs.h >>conftest.$ac_ext 5031cat >>conftest.$ac_ext <<_ACEOF 5032/* end confdefs.h. */ 5033#ifdef __STDC__ 5034# include <limits.h> 5035#else 5036# include <assert.h> 5037#endif 5038 Syntax error 5039_ACEOF 5040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5041 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then 5048 if test -s conftest.err; then 5049 ac_cpp_err=$ac_cxx_preproc_warn_flag 5050 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5051 else 5052 ac_cpp_err= 5053 fi 5054else 5055 ac_cpp_err=yes 5056fi 5057if test -z "$ac_cpp_err"; then 5058 : 5059else 5060 echo "$as_me: failed program was:" >&5 5061sed 's/^/| /' conftest.$ac_ext >&5 5062 5063 # Broken: fails on valid input. 5064continue 5065fi 5066rm -f conftest.err conftest.$ac_ext 5067 5068 # OK, works on sane cases. Now check whether non-existent headers 5069 # can be detected and how. 5070 cat >conftest.$ac_ext <<_ACEOF 5071/* confdefs.h. */ 5072_ACEOF 5073cat confdefs.h >>conftest.$ac_ext 5074cat >>conftest.$ac_ext <<_ACEOF 5075/* end confdefs.h. */ 5076#include <ac_nonexistent.h> 5077_ACEOF 5078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5080 ac_status=$? 5081 grep -v '^ *+' conftest.er1 >conftest.err 5082 rm -f conftest.er1 5083 cat conftest.err >&5 5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5085 (exit $ac_status); } >/dev/null; then 5086 if test -s conftest.err; then 5087 ac_cpp_err=$ac_cxx_preproc_warn_flag 5088 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5089 else 5090 ac_cpp_err= 5091 fi 5092else 5093 ac_cpp_err=yes 5094fi 5095if test -z "$ac_cpp_err"; then 5096 # Broken: success on invalid input. 5097continue 5098else 5099 echo "$as_me: failed program was:" >&5 5100sed 's/^/| /' conftest.$ac_ext >&5 5101 5102 # Passes both tests. 5103ac_preproc_ok=: 5104break 5105fi 5106rm -f conftest.err conftest.$ac_ext 5107 5108done 5109# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5110rm -f conftest.err conftest.$ac_ext 5111if $ac_preproc_ok; then 5112 break 5113fi 5114 5115 done 5116 ac_cv_prog_CXXCPP=$CXXCPP 5117 5118fi 5119 CXXCPP=$ac_cv_prog_CXXCPP 5120else 5121 ac_cv_prog_CXXCPP=$CXXCPP 5122fi 5123echo "$as_me:$LINENO: result: $CXXCPP" >&5 5124echo "${ECHO_T}$CXXCPP" >&6 5125ac_preproc_ok=false 5126for ac_cxx_preproc_warn_flag in '' yes 5127do 5128 # Use a header file that comes with gcc, so configuring glibc 5129 # with a fresh cross-compiler works. 5130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5131 # <limits.h> exists even on freestanding compilers. 5132 # On the NeXT, cc -E runs the code through the compiler's parser, 5133 # not just through cpp. "Syntax error" is here to catch this case. 5134 cat >conftest.$ac_ext <<_ACEOF 5135/* confdefs.h. */ 5136_ACEOF 5137cat confdefs.h >>conftest.$ac_ext 5138cat >>conftest.$ac_ext <<_ACEOF 5139/* end confdefs.h. */ 5140#ifdef __STDC__ 5141# include <limits.h> 5142#else 5143# include <assert.h> 5144#endif 5145 Syntax error 5146_ACEOF 5147if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5149 ac_status=$? 5150 grep -v '^ *+' conftest.er1 >conftest.err 5151 rm -f conftest.er1 5152 cat conftest.err >&5 5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5154 (exit $ac_status); } >/dev/null; then 5155 if test -s conftest.err; then 5156 ac_cpp_err=$ac_cxx_preproc_warn_flag 5157 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5158 else 5159 ac_cpp_err= 5160 fi 5161else 5162 ac_cpp_err=yes 5163fi 5164if test -z "$ac_cpp_err"; then 5165 : 5166else 5167 echo "$as_me: failed program was:" >&5 5168sed 's/^/| /' conftest.$ac_ext >&5 5169 5170 # Broken: fails on valid input. 5171continue 5172fi 5173rm -f conftest.err conftest.$ac_ext 5174 5175 # OK, works on sane cases. Now check whether non-existent headers 5176 # can be detected and how. 5177 cat >conftest.$ac_ext <<_ACEOF 5178/* confdefs.h. */ 5179_ACEOF 5180cat confdefs.h >>conftest.$ac_ext 5181cat >>conftest.$ac_ext <<_ACEOF 5182/* end confdefs.h. */ 5183#include <ac_nonexistent.h> 5184_ACEOF 5185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5187 ac_status=$? 5188 grep -v '^ *+' conftest.er1 >conftest.err 5189 rm -f conftest.er1 5190 cat conftest.err >&5 5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5192 (exit $ac_status); } >/dev/null; then 5193 if test -s conftest.err; then 5194 ac_cpp_err=$ac_cxx_preproc_warn_flag 5195 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5196 else 5197 ac_cpp_err= 5198 fi 5199else 5200 ac_cpp_err=yes 5201fi 5202if test -z "$ac_cpp_err"; then 5203 # Broken: success on invalid input. 5204continue 5205else 5206 echo "$as_me: failed program was:" >&5 5207sed 's/^/| /' conftest.$ac_ext >&5 5208 5209 # Passes both tests. 5210ac_preproc_ok=: 5211break 5212fi 5213rm -f conftest.err conftest.$ac_ext 5214 5215done 5216# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5217rm -f conftest.err conftest.$ac_ext 5218if $ac_preproc_ok; then 5219 : 5220else 5221 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5222See \`config.log' for more details." >&5 5223echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5224See \`config.log' for more details." >&2;} 5225 { (exit 1); exit 1; }; } 5226fi 5227 5228ac_ext=cc 5229ac_cpp='$CXXCPP $CPPFLAGS' 5230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5233 5234fi 5235 5236 5237ac_ext=f 5238ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5239ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5240ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5241if test -n "$ac_tool_prefix"; then 5242 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5243 do 5244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5245set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5246echo "$as_me:$LINENO: checking for $ac_word" >&5 5247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5248if test "${ac_cv_prog_F77+set}" = set; then 5249 echo $ECHO_N "(cached) $ECHO_C" >&6 5250else 5251 if test -n "$F77"; then 5252 ac_cv_prog_F77="$F77" # Let the user override the test. 5253else 5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5255for as_dir in $PATH 5256do 5257 IFS=$as_save_IFS 5258 test -z "$as_dir" && as_dir=. 5259 for ac_exec_ext in '' $ac_executable_extensions; do 5260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5261 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5263 break 2 5264 fi 5265done 5266done 5267 5268fi 5269fi 5270F77=$ac_cv_prog_F77 5271if test -n "$F77"; then 5272 echo "$as_me:$LINENO: result: $F77" >&5 5273echo "${ECHO_T}$F77" >&6 5274else 5275 echo "$as_me:$LINENO: result: no" >&5 5276echo "${ECHO_T}no" >&6 5277fi 5278 5279 test -n "$F77" && break 5280 done 5281fi 5282if test -z "$F77"; then 5283 ac_ct_F77=$F77 5284 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5285do 5286 # Extract the first word of "$ac_prog", so it can be a program name with args. 5287set dummy $ac_prog; ac_word=$2 5288echo "$as_me:$LINENO: checking for $ac_word" >&5 5289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5290if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5291 echo $ECHO_N "(cached) $ECHO_C" >&6 5292else 5293 if test -n "$ac_ct_F77"; then 5294 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5295else 5296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5297for as_dir in $PATH 5298do 5299 IFS=$as_save_IFS 5300 test -z "$as_dir" && as_dir=. 5301 for ac_exec_ext in '' $ac_executable_extensions; do 5302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5303 ac_cv_prog_ac_ct_F77="$ac_prog" 5304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5305 break 2 5306 fi 5307done 5308done 5309 5310fi 5311fi 5312ac_ct_F77=$ac_cv_prog_ac_ct_F77 5313if test -n "$ac_ct_F77"; then 5314 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5315echo "${ECHO_T}$ac_ct_F77" >&6 5316else 5317 echo "$as_me:$LINENO: result: no" >&5 5318echo "${ECHO_T}no" >&6 5319fi 5320 5321 test -n "$ac_ct_F77" && break 5322done 5323 5324 F77=$ac_ct_F77 5325fi 5326 5327 5328# Provide some information about the compiler. 5329echo "$as_me:5329:" \ 5330 "checking for Fortran 77 compiler version" >&5 5331ac_compiler=`set X $ac_compile; echo $2` 5332{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5333 (eval $ac_compiler --version </dev/null >&5) 2>&5 5334 ac_status=$? 5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5336 (exit $ac_status); } 5337{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5338 (eval $ac_compiler -v </dev/null >&5) 2>&5 5339 ac_status=$? 5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5341 (exit $ac_status); } 5342{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5343 (eval $ac_compiler -V </dev/null >&5) 2>&5 5344 ac_status=$? 5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5346 (exit $ac_status); } 5347rm -f a.out 5348 5349# If we don't use `.F' as extension, the preprocessor is not run on the 5350# input file. (Note that this only needs to work for GNU compilers.) 5351ac_save_ext=$ac_ext 5352ac_ext=F 5353echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5354echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5355if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5356 echo $ECHO_N "(cached) $ECHO_C" >&6 5357else 5358 cat >conftest.$ac_ext <<_ACEOF 5359 program main 5360#ifndef __GNUC__ 5361 choke me 5362#endif 5363 5364 end 5365_ACEOF 5366rm -f conftest.$ac_objext 5367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5368 (eval $ac_compile) 2>conftest.er1 5369 ac_status=$? 5370 grep -v '^ *+' conftest.er1 >conftest.err 5371 rm -f conftest.er1 5372 cat conftest.err >&5 5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5374 (exit $ac_status); } && 5375 { ac_try='test -z "$ac_f77_werror_flag" 5376 || test ! -s conftest.err' 5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5378 (eval $ac_try) 2>&5 5379 ac_status=$? 5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5381 (exit $ac_status); }; } && 5382 { ac_try='test -s conftest.$ac_objext' 5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5384 (eval $ac_try) 2>&5 5385 ac_status=$? 5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5387 (exit $ac_status); }; }; then 5388 ac_compiler_gnu=yes 5389else 5390 echo "$as_me: failed program was:" >&5 5391sed 's/^/| /' conftest.$ac_ext >&5 5392 5393ac_compiler_gnu=no 5394fi 5395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5396ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5397 5398fi 5399echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5400echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5401ac_ext=$ac_save_ext 5402ac_test_FFLAGS=${FFLAGS+set} 5403ac_save_FFLAGS=$FFLAGS 5404FFLAGS= 5405echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5406echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5407if test "${ac_cv_prog_f77_g+set}" = set; then 5408 echo $ECHO_N "(cached) $ECHO_C" >&6 5409else 5410 FFLAGS=-g 5411cat >conftest.$ac_ext <<_ACEOF 5412 program main 5413 5414 end 5415_ACEOF 5416rm -f conftest.$ac_objext 5417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5418 (eval $ac_compile) 2>conftest.er1 5419 ac_status=$? 5420 grep -v '^ *+' conftest.er1 >conftest.err 5421 rm -f conftest.er1 5422 cat conftest.err >&5 5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5424 (exit $ac_status); } && 5425 { ac_try='test -z "$ac_f77_werror_flag" 5426 || test ! -s conftest.err' 5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5428 (eval $ac_try) 2>&5 5429 ac_status=$? 5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5431 (exit $ac_status); }; } && 5432 { ac_try='test -s conftest.$ac_objext' 5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5434 (eval $ac_try) 2>&5 5435 ac_status=$? 5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5437 (exit $ac_status); }; }; then 5438 ac_cv_prog_f77_g=yes 5439else 5440 echo "$as_me: failed program was:" >&5 5441sed 's/^/| /' conftest.$ac_ext >&5 5442 5443ac_cv_prog_f77_g=no 5444fi 5445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5446 5447fi 5448echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5449echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5450if test "$ac_test_FFLAGS" = set; then 5451 FFLAGS=$ac_save_FFLAGS 5452elif test $ac_cv_prog_f77_g = yes; then 5453 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5454 FFLAGS="-g -O2" 5455 else 5456 FFLAGS="-g" 5457 fi 5458else 5459 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5460 FFLAGS="-O2" 5461 else 5462 FFLAGS= 5463 fi 5464fi 5465 5466G77=`test $ac_compiler_gnu = yes && echo yes` 5467ac_ext=c 5468ac_cpp='$CPP $CPPFLAGS' 5469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5471ac_compiler_gnu=$ac_cv_c_compiler_gnu 5472 5473 5474 5475# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5476 5477# find the maximum length of command line arguments 5478echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5479echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5480if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5481 echo $ECHO_N "(cached) $ECHO_C" >&6 5482else 5483 i=0 5484 teststring="ABCD" 5485 5486 case $build_os in 5487 msdosdjgpp*) 5488 # On DJGPP, this test can blow up pretty badly due to problems in libc 5489 # (any single argument exceeding 2000 bytes causes a buffer overrun 5490 # during glob expansion). Even if it were fixed, the result of this 5491 # check would be larger than it should be. 5492 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5493 ;; 5494 5495 gnu*) 5496 # Under GNU Hurd, this test is not required because there is 5497 # no limit to the length of command line arguments. 5498 # Libtool will interpret -1 as no limit whatsoever 5499 lt_cv_sys_max_cmd_len=-1; 5500 ;; 5501 5502 cygwin* | mingw*) 5503 # On Win9x/ME, this test blows up -- it succeeds, but takes 5504 # about 5 minutes as the teststring grows exponentially. 5505 # Worse, since 9x/ME are not pre-emptively multitasking, 5506 # you end up with a "frozen" computer, even though with patience 5507 # the test eventually succeeds (with a max line length of 256k). 5508 # Instead, let's just punt: use the minimum linelength reported by 5509 # all of the supported platforms: 8192 (on NT/2K/XP). 5510 lt_cv_sys_max_cmd_len=8192; 5511 ;; 5512 5513 amigaos*) 5514 # On AmigaOS with pdksh, this test takes hours, literally. 5515 # So we just punt and use a minimum line length of 8192. 5516 lt_cv_sys_max_cmd_len=8192; 5517 ;; 5518 5519 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5520 # This has been around since 386BSD, at least. Likely further. 5521 if test -x /sbin/sysctl; then 5522 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5523 elif test -x /usr/sbin/sysctl; then 5524 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5525 else 5526 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5527 fi 5528 # And add a safety zone 5529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5531 ;; 5532 5533 interix*) 5534 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5535 lt_cv_sys_max_cmd_len=196608 5536 ;; 5537 5538 osf*) 5539 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5540 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5541 # nice to cause kernel panics so lets avoid the loop below. 5542 # First set a reasonable default. 5543 lt_cv_sys_max_cmd_len=16384 5544 # 5545 if test -x /sbin/sysconfig; then 5546 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5547 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5548 esac 5549 fi 5550 ;; 5551 sco3.2v5*) 5552 lt_cv_sys_max_cmd_len=102400 5553 ;; 5554 sysv5* | sco5v6* | sysv4.2uw2*) 5555 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5556 if test -n "$kargmax"; then 5557 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5558 else 5559 lt_cv_sys_max_cmd_len=32768 5560 fi 5561 ;; 5562 *) 5563 # If test is not a shell built-in, we'll probably end up computing a 5564 # maximum length that is only half of the actual maximum length, but 5565 # we can't tell. 5566 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5567 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5568 = "XX$teststring") >/dev/null 2>&1 && 5569 new_result=`expr "X$teststring" : ".*" 2>&1` && 5570 lt_cv_sys_max_cmd_len=$new_result && 5571 test $i != 17 # 1/2 MB should be enough 5572 do 5573 i=`expr $i + 1` 5574 teststring=$teststring$teststring 5575 done 5576 teststring= 5577 # Add a significant safety factor because C++ compilers can tack on massive 5578 # amounts of additional arguments before passing them to the linker. 5579 # It appears as though 1/2 is a usable value. 5580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5581 ;; 5582 esac 5583 5584fi 5585 5586if test -n $lt_cv_sys_max_cmd_len ; then 5587 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5588echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5589else 5590 echo "$as_me:$LINENO: result: none" >&5 5591echo "${ECHO_T}none" >&6 5592fi 5593 5594 5595 5596 5597# Check for command to grab the raw symbol name followed by C symbol from nm. 5598echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5599echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5600if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5601 echo $ECHO_N "(cached) $ECHO_C" >&6 5602else 5603 5604# These are sane defaults that work on at least a few old systems. 5605# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5606 5607# Character class describing NM global symbol codes. 5608symcode='[BCDEGRST]' 5609 5610# Regexp to match symbols that can be accessed directly from C. 5611sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5612 5613# Transform an extracted symbol line into a proper C declaration 5614lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5615 5616# Transform an extracted symbol line into symbol name and symbol address 5617lt_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'" 5618 5619# Define system-specific variables. 5620case $host_os in 5621aix*) 5622 symcode='[BCDT]' 5623 ;; 5624cygwin* | mingw* | pw32*) 5625 symcode='[ABCDGISTW]' 5626 ;; 5627hpux*) # Its linker distinguishes data from code symbols 5628 if test "$host_cpu" = ia64; then 5629 symcode='[ABCDEGRST]' 5630 fi 5631 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5632 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'" 5633 ;; 5634linux*) 5635 if test "$host_cpu" = ia64; then 5636 symcode='[ABCDGIRSTW]' 5637 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5638 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'" 5639 fi 5640 ;; 5641irix* | nonstopux*) 5642 symcode='[BCDEGRST]' 5643 ;; 5644osf*) 5645 symcode='[BCDEGQRST]' 5646 ;; 5647solaris*) 5648 symcode='[BDRT]' 5649 ;; 5650sco3.2v5*) 5651 symcode='[DT]' 5652 ;; 5653sysv4.2uw2*) 5654 symcode='[DT]' 5655 ;; 5656sysv5* | sco5v6* | unixware* | OpenUNIX*) 5657 symcode='[ABDT]' 5658 ;; 5659sysv4) 5660 symcode='[DFNSTU]' 5661 ;; 5662esac 5663 5664# Handle CRLF in mingw tool chain 5665opt_cr= 5666case $build_os in 5667mingw*) 5668 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5669 ;; 5670esac 5671 5672# If we're using GNU nm, then use its standard symbol codes. 5673case `$NM -V 2>&1` in 5674*GNU* | *'with BFD'*) 5675 symcode='[ABCDGIRSTW]' ;; 5676esac 5677 5678# Try without a prefix undercore, then with it. 5679for ac_symprfx in "" "_"; do 5680 5681 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5682 symxfrm="\\1 $ac_symprfx\\2 \\2" 5683 5684 # Write the raw and C identifiers. 5685 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5686 5687 # Check to see that the pipe works correctly. 5688 pipe_works=no 5689 5690 rm -f conftest* 5691 cat > conftest.$ac_ext <<EOF 5692#ifdef __cplusplus 5693extern "C" { 5694#endif 5695char nm_test_var; 5696void nm_test_func(){} 5697#ifdef __cplusplus 5698} 5699#endif 5700int main(){nm_test_var='a';nm_test_func();return(0);} 5701EOF 5702 5703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5704 (eval $ac_compile) 2>&5 5705 ac_status=$? 5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5707 (exit $ac_status); }; then 5708 # Now try to grab the symbols. 5709 nlist=conftest.nm 5710 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5711 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5712 ac_status=$? 5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5714 (exit $ac_status); } && test -s "$nlist"; then 5715 # Try sorting and uniquifying the output. 5716 if sort "$nlist" | uniq > "$nlist"T; then 5717 mv -f "$nlist"T "$nlist" 5718 else 5719 rm -f "$nlist"T 5720 fi 5721 5722 # Make sure that we snagged all the symbols we need. 5723 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5724 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5725 cat <<EOF > conftest.$ac_ext 5726#ifdef __cplusplus 5727extern "C" { 5728#endif 5729 5730EOF 5731 # Now generate the symbol file. 5732 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5733 5734 cat <<EOF >> conftest.$ac_ext 5735#if defined (__STDC__) && __STDC__ 5736# define lt_ptr_t void * 5737#else 5738# define lt_ptr_t char * 5739# define const 5740#endif 5741 5742/* The mapping between symbol names and symbols. */ 5743const struct { 5744 const char *name; 5745 lt_ptr_t address; 5746} 5747lt_preloaded_symbols[] = 5748{ 5749EOF 5750 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5751 cat <<\EOF >> conftest.$ac_ext 5752 {0, (lt_ptr_t) 0} 5753}; 5754 5755#ifdef __cplusplus 5756} 5757#endif 5758EOF 5759 # Now try linking the two files. 5760 mv conftest.$ac_objext conftstm.$ac_objext 5761 lt_save_LIBS="$LIBS" 5762 lt_save_CFLAGS="$CFLAGS" 5763 LIBS="conftstm.$ac_objext" 5764 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5766 (eval $ac_link) 2>&5 5767 ac_status=$? 5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5769 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5770 pipe_works=yes 5771 fi 5772 LIBS="$lt_save_LIBS" 5773 CFLAGS="$lt_save_CFLAGS" 5774 else 5775 echo "cannot find nm_test_func in $nlist" >&5 5776 fi 5777 else 5778 echo "cannot find nm_test_var in $nlist" >&5 5779 fi 5780 else 5781 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5782 fi 5783 else 5784 echo "$progname: failed program was:" >&5 5785 cat conftest.$ac_ext >&5 5786 fi 5787 rm -f conftest* conftst* 5788 5789 # Do not use the global_symbol_pipe unless it works. 5790 if test "$pipe_works" = yes; then 5791 break 5792 else 5793 lt_cv_sys_global_symbol_pipe= 5794 fi 5795done 5796 5797fi 5798 5799if test -z "$lt_cv_sys_global_symbol_pipe"; then 5800 lt_cv_sys_global_symbol_to_cdecl= 5801fi 5802if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5803 echo "$as_me:$LINENO: result: failed" >&5 5804echo "${ECHO_T}failed" >&6 5805else 5806 echo "$as_me:$LINENO: result: ok" >&5 5807echo "${ECHO_T}ok" >&6 5808fi 5809 5810echo "$as_me:$LINENO: checking for objdir" >&5 5811echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5812if test "${lt_cv_objdir+set}" = set; then 5813 echo $ECHO_N "(cached) $ECHO_C" >&6 5814else 5815 rm -f .libs 2>/dev/null 5816mkdir .libs 2>/dev/null 5817if test -d .libs; then 5818 lt_cv_objdir=.libs 5819else 5820 # MS-DOS does not allow filenames that begin with a dot. 5821 lt_cv_objdir=_libs 5822fi 5823rmdir .libs 2>/dev/null 5824fi 5825echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5826echo "${ECHO_T}$lt_cv_objdir" >&6 5827objdir=$lt_cv_objdir 5828 5829 5830 5831 5832 5833case $host_os in 5834aix3*) 5835 # AIX sometimes has problems with the GCC collect2 program. For some 5836 # reason, if we set the COLLECT_NAMES environment variable, the problems 5837 # vanish in a puff of smoke. 5838 if test "X${COLLECT_NAMES+set}" != Xset; then 5839 COLLECT_NAMES= 5840 export COLLECT_NAMES 5841 fi 5842 ;; 5843esac 5844 5845# Sed substitution that helps us do robust quoting. It backslashifies 5846# metacharacters that are still active within double-quoted strings. 5847Xsed='sed -e 1s/^X//' 5848sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5849 5850# Same as above, but do not quote variable references. 5851double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5852 5853# Sed substitution to delay expansion of an escaped shell variable in a 5854# double_quote_subst'ed string. 5855delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5856 5857# Sed substitution to avoid accidental globbing in evaled expressions 5858no_glob_subst='s/\*/\\\*/g' 5859 5860# Constants: 5861rm="rm -f" 5862 5863# Global variables: 5864default_ofile=libtool 5865can_build_shared=yes 5866 5867# All known linkers require a `.a' archive for static linking (except MSVC, 5868# which needs '.lib'). 5869libext=a 5870ltmain="$ac_aux_dir/ltmain.sh" 5871ofile="$default_ofile" 5872with_gnu_ld="$lt_cv_prog_gnu_ld" 5873 5874if test -n "$ac_tool_prefix"; then 5875 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5876set dummy ${ac_tool_prefix}ar; ac_word=$2 5877echo "$as_me:$LINENO: checking for $ac_word" >&5 5878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5879if test "${ac_cv_prog_AR+set}" = set; then 5880 echo $ECHO_N "(cached) $ECHO_C" >&6 5881else 5882 if test -n "$AR"; then 5883 ac_cv_prog_AR="$AR" # Let the user override the test. 5884else 5885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5886for as_dir in $PATH 5887do 5888 IFS=$as_save_IFS 5889 test -z "$as_dir" && as_dir=. 5890 for ac_exec_ext in '' $ac_executable_extensions; do 5891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5892 ac_cv_prog_AR="${ac_tool_prefix}ar" 5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5894 break 2 5895 fi 5896done 5897done 5898 5899fi 5900fi 5901AR=$ac_cv_prog_AR 5902if test -n "$AR"; then 5903 echo "$as_me:$LINENO: result: $AR" >&5 5904echo "${ECHO_T}$AR" >&6 5905else 5906 echo "$as_me:$LINENO: result: no" >&5 5907echo "${ECHO_T}no" >&6 5908fi 5909 5910fi 5911if test -z "$ac_cv_prog_AR"; then 5912 ac_ct_AR=$AR 5913 # Extract the first word of "ar", so it can be a program name with args. 5914set dummy ar; ac_word=$2 5915echo "$as_me:$LINENO: checking for $ac_word" >&5 5916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5917if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5918 echo $ECHO_N "(cached) $ECHO_C" >&6 5919else 5920 if test -n "$ac_ct_AR"; then 5921 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5922else 5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5924for as_dir in $PATH 5925do 5926 IFS=$as_save_IFS 5927 test -z "$as_dir" && as_dir=. 5928 for ac_exec_ext in '' $ac_executable_extensions; do 5929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5930 ac_cv_prog_ac_ct_AR="ar" 5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5932 break 2 5933 fi 5934done 5935done 5936 5937 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5938fi 5939fi 5940ac_ct_AR=$ac_cv_prog_ac_ct_AR 5941if test -n "$ac_ct_AR"; then 5942 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5943echo "${ECHO_T}$ac_ct_AR" >&6 5944else 5945 echo "$as_me:$LINENO: result: no" >&5 5946echo "${ECHO_T}no" >&6 5947fi 5948 5949 AR=$ac_ct_AR 5950else 5951 AR="$ac_cv_prog_AR" 5952fi 5953 5954if test -n "$ac_tool_prefix"; then 5955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5956set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5957echo "$as_me:$LINENO: checking for $ac_word" >&5 5958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5959if test "${ac_cv_prog_RANLIB+set}" = set; then 5960 echo $ECHO_N "(cached) $ECHO_C" >&6 5961else 5962 if test -n "$RANLIB"; then 5963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5964else 5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5966for as_dir in $PATH 5967do 5968 IFS=$as_save_IFS 5969 test -z "$as_dir" && as_dir=. 5970 for ac_exec_ext in '' $ac_executable_extensions; do 5971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5974 break 2 5975 fi 5976done 5977done 5978 5979fi 5980fi 5981RANLIB=$ac_cv_prog_RANLIB 5982if test -n "$RANLIB"; then 5983 echo "$as_me:$LINENO: result: $RANLIB" >&5 5984echo "${ECHO_T}$RANLIB" >&6 5985else 5986 echo "$as_me:$LINENO: result: no" >&5 5987echo "${ECHO_T}no" >&6 5988fi 5989 5990fi 5991if test -z "$ac_cv_prog_RANLIB"; then 5992 ac_ct_RANLIB=$RANLIB 5993 # Extract the first word of "ranlib", so it can be a program name with args. 5994set dummy ranlib; ac_word=$2 5995echo "$as_me:$LINENO: checking for $ac_word" >&5 5996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5997if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5998 echo $ECHO_N "(cached) $ECHO_C" >&6 5999else 6000 if test -n "$ac_ct_RANLIB"; then 6001 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6002else 6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6004for as_dir in $PATH 6005do 6006 IFS=$as_save_IFS 6007 test -z "$as_dir" && as_dir=. 6008 for ac_exec_ext in '' $ac_executable_extensions; do 6009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6010 ac_cv_prog_ac_ct_RANLIB="ranlib" 6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6012 break 2 6013 fi 6014done 6015done 6016 6017 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6018fi 6019fi 6020ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6021if test -n "$ac_ct_RANLIB"; then 6022 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6023echo "${ECHO_T}$ac_ct_RANLIB" >&6 6024else 6025 echo "$as_me:$LINENO: result: no" >&5 6026echo "${ECHO_T}no" >&6 6027fi 6028 6029 RANLIB=$ac_ct_RANLIB 6030else 6031 RANLIB="$ac_cv_prog_RANLIB" 6032fi 6033 6034if test -n "$ac_tool_prefix"; then 6035 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6036set dummy ${ac_tool_prefix}strip; ac_word=$2 6037echo "$as_me:$LINENO: checking for $ac_word" >&5 6038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6039if test "${ac_cv_prog_STRIP+set}" = set; then 6040 echo $ECHO_N "(cached) $ECHO_C" >&6 6041else 6042 if test -n "$STRIP"; then 6043 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6044else 6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6046for as_dir in $PATH 6047do 6048 IFS=$as_save_IFS 6049 test -z "$as_dir" && as_dir=. 6050 for ac_exec_ext in '' $ac_executable_extensions; do 6051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6052 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6054 break 2 6055 fi 6056done 6057done 6058 6059fi 6060fi 6061STRIP=$ac_cv_prog_STRIP 6062if test -n "$STRIP"; then 6063 echo "$as_me:$LINENO: result: $STRIP" >&5 6064echo "${ECHO_T}$STRIP" >&6 6065else 6066 echo "$as_me:$LINENO: result: no" >&5 6067echo "${ECHO_T}no" >&6 6068fi 6069 6070fi 6071if test -z "$ac_cv_prog_STRIP"; then 6072 ac_ct_STRIP=$STRIP 6073 # Extract the first word of "strip", so it can be a program name with args. 6074set dummy strip; ac_word=$2 6075echo "$as_me:$LINENO: checking for $ac_word" >&5 6076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6077if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6078 echo $ECHO_N "(cached) $ECHO_C" >&6 6079else 6080 if test -n "$ac_ct_STRIP"; then 6081 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6082else 6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6084for as_dir in $PATH 6085do 6086 IFS=$as_save_IFS 6087 test -z "$as_dir" && as_dir=. 6088 for ac_exec_ext in '' $ac_executable_extensions; do 6089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6090 ac_cv_prog_ac_ct_STRIP="strip" 6091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6092 break 2 6093 fi 6094done 6095done 6096 6097 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6098fi 6099fi 6100ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6101if test -n "$ac_ct_STRIP"; then 6102 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6103echo "${ECHO_T}$ac_ct_STRIP" >&6 6104else 6105 echo "$as_me:$LINENO: result: no" >&5 6106echo "${ECHO_T}no" >&6 6107fi 6108 6109 STRIP=$ac_ct_STRIP 6110else 6111 STRIP="$ac_cv_prog_STRIP" 6112fi 6113 6114 6115old_CC="$CC" 6116old_CFLAGS="$CFLAGS" 6117 6118# Set sane defaults for various variables 6119test -z "$AR" && AR=ar 6120test -z "$AR_FLAGS" && AR_FLAGS=cru 6121test -z "$AS" && AS=as 6122test -z "$CC" && CC=cc 6123test -z "$LTCC" && LTCC=$CC 6124test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6125test -z "$DLLTOOL" && DLLTOOL=dlltool 6126test -z "$LD" && LD=ld 6127test -z "$LN_S" && LN_S="ln -s" 6128test -z "$MAGIC_CMD" && MAGIC_CMD=file 6129test -z "$NM" && NM=nm 6130test -z "$SED" && SED=sed 6131test -z "$OBJDUMP" && OBJDUMP=objdump 6132test -z "$RANLIB" && RANLIB=: 6133test -z "$STRIP" && STRIP=: 6134test -z "$ac_objext" && ac_objext=o 6135 6136# Determine commands to create old-style static archives. 6137old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6138old_postinstall_cmds='chmod 644 $oldlib' 6139old_postuninstall_cmds= 6140 6141if test -n "$RANLIB"; then 6142 case $host_os in 6143 openbsd*) 6144 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6145 ;; 6146 *) 6147 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6148 ;; 6149 esac 6150 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6151fi 6152 6153for cc_temp in $compiler""; do 6154 case $cc_temp in 6155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6157 \-*) ;; 6158 *) break;; 6159 esac 6160done 6161cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6162 6163 6164# Only perform the check for file, if the check method requires it 6165case $deplibs_check_method in 6166file_magic*) 6167 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6168 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6169echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6170if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6171 echo $ECHO_N "(cached) $ECHO_C" >&6 6172else 6173 case $MAGIC_CMD in 6174[\\/*] | ?:[\\/]*) 6175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6176 ;; 6177*) 6178 lt_save_MAGIC_CMD="$MAGIC_CMD" 6179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6180 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6181 for ac_dir in $ac_dummy; do 6182 IFS="$lt_save_ifs" 6183 test -z "$ac_dir" && ac_dir=. 6184 if test -f $ac_dir/${ac_tool_prefix}file; then 6185 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6186 if test -n "$file_magic_test_file"; then 6187 case $deplibs_check_method in 6188 "file_magic "*) 6189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6192 $EGREP "$file_magic_regex" > /dev/null; then 6193 : 6194 else 6195 cat <<EOF 1>&2 6196 6197*** Warning: the command libtool uses to detect shared libraries, 6198*** $file_magic_cmd, produces output that libtool cannot recognize. 6199*** The result is that libtool may fail to recognize shared libraries 6200*** as such. This will affect the creation of libtool libraries that 6201*** depend on shared libraries, but programs linked with such libtool 6202*** libraries will work regardless of this problem. Nevertheless, you 6203*** may want to report the problem to your system manager and/or to 6204*** bug-libtool@gnu.org 6205 6206EOF 6207 fi ;; 6208 esac 6209 fi 6210 break 6211 fi 6212 done 6213 IFS="$lt_save_ifs" 6214 MAGIC_CMD="$lt_save_MAGIC_CMD" 6215 ;; 6216esac 6217fi 6218 6219MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6220if test -n "$MAGIC_CMD"; then 6221 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6222echo "${ECHO_T}$MAGIC_CMD" >&6 6223else 6224 echo "$as_me:$LINENO: result: no" >&5 6225echo "${ECHO_T}no" >&6 6226fi 6227 6228if test -z "$lt_cv_path_MAGIC_CMD"; then 6229 if test -n "$ac_tool_prefix"; then 6230 echo "$as_me:$LINENO: checking for file" >&5 6231echo $ECHO_N "checking for file... $ECHO_C" >&6 6232if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6233 echo $ECHO_N "(cached) $ECHO_C" >&6 6234else 6235 case $MAGIC_CMD in 6236[\\/*] | ?:[\\/]*) 6237 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6238 ;; 6239*) 6240 lt_save_MAGIC_CMD="$MAGIC_CMD" 6241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6242 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6243 for ac_dir in $ac_dummy; do 6244 IFS="$lt_save_ifs" 6245 test -z "$ac_dir" && ac_dir=. 6246 if test -f $ac_dir/file; then 6247 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6248 if test -n "$file_magic_test_file"; then 6249 case $deplibs_check_method in 6250 "file_magic "*) 6251 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6254 $EGREP "$file_magic_regex" > /dev/null; then 6255 : 6256 else 6257 cat <<EOF 1>&2 6258 6259*** Warning: the command libtool uses to detect shared libraries, 6260*** $file_magic_cmd, produces output that libtool cannot recognize. 6261*** The result is that libtool may fail to recognize shared libraries 6262*** as such. This will affect the creation of libtool libraries that 6263*** depend on shared libraries, but programs linked with such libtool 6264*** libraries will work regardless of this problem. Nevertheless, you 6265*** may want to report the problem to your system manager and/or to 6266*** bug-libtool@gnu.org 6267 6268EOF 6269 fi ;; 6270 esac 6271 fi 6272 break 6273 fi 6274 done 6275 IFS="$lt_save_ifs" 6276 MAGIC_CMD="$lt_save_MAGIC_CMD" 6277 ;; 6278esac 6279fi 6280 6281MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6282if test -n "$MAGIC_CMD"; then 6283 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6284echo "${ECHO_T}$MAGIC_CMD" >&6 6285else 6286 echo "$as_me:$LINENO: result: no" >&5 6287echo "${ECHO_T}no" >&6 6288fi 6289 6290 else 6291 MAGIC_CMD=: 6292 fi 6293fi 6294 6295 fi 6296 ;; 6297esac 6298 6299enable_dlopen=no 6300enable_win32_dll=no 6301 6302# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6303if test "${enable_libtool_lock+set}" = set; then 6304 enableval="$enable_libtool_lock" 6305 6306fi; 6307test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6308 6309 6310# Check whether --with-pic or --without-pic was given. 6311if test "${with_pic+set}" = set; then 6312 withval="$with_pic" 6313 pic_mode="$withval" 6314else 6315 pic_mode=default 6316fi; 6317test -z "$pic_mode" && pic_mode=default 6318 6319# Use C for the default configuration in the libtool script 6320tagname= 6321lt_save_CC="$CC" 6322ac_ext=c 6323ac_cpp='$CPP $CPPFLAGS' 6324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6326ac_compiler_gnu=$ac_cv_c_compiler_gnu 6327 6328 6329# Source file extension for C test sources. 6330ac_ext=c 6331 6332# Object file extension for compiled C test sources. 6333objext=o 6334objext=$objext 6335 6336# Code to be used in simple compile tests 6337lt_simple_compile_test_code="int some_variable = 0;\n" 6338 6339# Code to be used in simple link tests 6340lt_simple_link_test_code='int main(){return(0);}\n' 6341 6342 6343# If no C compiler was specified, use CC. 6344LTCC=${LTCC-"$CC"} 6345 6346# If no C compiler flags were specified, use CFLAGS. 6347LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6348 6349# Allow CC to be a program name with arguments. 6350compiler=$CC 6351 6352 6353# save warnings/boilerplate of simple test code 6354ac_outfile=conftest.$ac_objext 6355printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6356eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6357_lt_compiler_boilerplate=`cat conftest.err` 6358$rm conftest* 6359 6360ac_outfile=conftest.$ac_objext 6361printf "$lt_simple_link_test_code" >conftest.$ac_ext 6362eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6363_lt_linker_boilerplate=`cat conftest.err` 6364$rm conftest* 6365 6366 6367 6368lt_prog_compiler_no_builtin_flag= 6369 6370if test "$GCC" = yes; then 6371 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6372 6373 6374echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6375echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6376if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6377 echo $ECHO_N "(cached) $ECHO_C" >&6 6378else 6379 lt_cv_prog_compiler_rtti_exceptions=no 6380 ac_outfile=conftest.$ac_objext 6381 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6382 lt_compiler_flag="-fno-rtti -fno-exceptions" 6383 # Insert the option either (1) after the last *FLAGS variable, or 6384 # (2) before a word containing "conftest.", or (3) at the end. 6385 # Note that $ac_compile itself does not contain backslashes and begins 6386 # with a dollar sign (not a hyphen), so the echo should work correctly. 6387 # The option is referenced via a variable to avoid confusing sed. 6388 lt_compile=`echo "$ac_compile" | $SED \ 6389 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6390 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6391 -e 's:$: $lt_compiler_flag:'` 6392 (eval echo "\"\$as_me:6392: $lt_compile\"" >&5) 6393 (eval "$lt_compile" 2>conftest.err) 6394 ac_status=$? 6395 cat conftest.err >&5 6396 echo "$as_me:6396: \$? = $ac_status" >&5 6397 if (exit $ac_status) && test -s "$ac_outfile"; then 6398 # The compiler can only warn and ignore the option if not recognized 6399 # So say no if there are warnings other than the usual output. 6400 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6402 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6403 lt_cv_prog_compiler_rtti_exceptions=yes 6404 fi 6405 fi 6406 $rm conftest* 6407 6408fi 6409echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6410echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6411 6412if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6413 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6414else 6415 : 6416fi 6417 6418fi 6419 6420lt_prog_compiler_wl= 6421lt_prog_compiler_pic= 6422lt_prog_compiler_static= 6423 6424echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6425echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6426 6427 if test "$GCC" = yes; then 6428 lt_prog_compiler_wl='-Wl,' 6429 lt_prog_compiler_static='-static' 6430 6431 case $host_os in 6432 aix*) 6433 # All AIX code is PIC. 6434 if test "$host_cpu" = ia64; then 6435 # AIX 5 now supports IA64 processor 6436 lt_prog_compiler_static='-Bstatic' 6437 fi 6438 ;; 6439 6440 amigaos*) 6441 # FIXME: we need at least 68020 code to build shared libraries, but 6442 # adding the `-m68020' flag to GCC prevents building anything better, 6443 # like `-m68040'. 6444 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6445 ;; 6446 6447 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6448 # PIC is the default for these OSes. 6449 ;; 6450 6451 mingw* | pw32* | os2*) 6452 # This hack is so that the source file can tell whether it is being 6453 # built for inclusion in a dll (and should export symbols for example). 6454 lt_prog_compiler_pic='-DDLL_EXPORT' 6455 ;; 6456 6457 darwin* | rhapsody*) 6458 # PIC is the default on this platform 6459 # Common symbols not allowed in MH_DYLIB files 6460 lt_prog_compiler_pic='-fno-common' 6461 ;; 6462 6463 interix3*) 6464 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6465 # Instead, we relocate shared libraries at runtime. 6466 ;; 6467 6468 msdosdjgpp*) 6469 # Just because we use GCC doesn't mean we suddenly get shared libraries 6470 # on systems that don't support them. 6471 lt_prog_compiler_can_build_shared=no 6472 enable_shared=no 6473 ;; 6474 6475 sysv4*MP*) 6476 if test -d /usr/nec; then 6477 lt_prog_compiler_pic=-Kconform_pic 6478 fi 6479 ;; 6480 6481 hpux*) 6482 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6483 # not for PA HP-UX. 6484 case $host_cpu in 6485 hppa*64*|ia64*) 6486 # +Z the default 6487 ;; 6488 *) 6489 lt_prog_compiler_pic='-fPIC' 6490 ;; 6491 esac 6492 ;; 6493 6494 *) 6495 lt_prog_compiler_pic='-fPIC' 6496 ;; 6497 esac 6498 else 6499 # PORTME Check for flag to pass linker flags through the system compiler. 6500 case $host_os in 6501 aix*) 6502 lt_prog_compiler_wl='-Wl,' 6503 if test "$host_cpu" = ia64; then 6504 # AIX 5 now supports IA64 processor 6505 lt_prog_compiler_static='-Bstatic' 6506 else 6507 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6508 fi 6509 ;; 6510 darwin*) 6511 # PIC is the default on this platform 6512 # Common symbols not allowed in MH_DYLIB files 6513 case $cc_basename in 6514 xlc*) 6515 lt_prog_compiler_pic='-qnocommon' 6516 lt_prog_compiler_wl='-Wl,' 6517 ;; 6518 esac 6519 ;; 6520 6521 mingw* | pw32* | os2*) 6522 # This hack is so that the source file can tell whether it is being 6523 # built for inclusion in a dll (and should export symbols for example). 6524 lt_prog_compiler_pic='-DDLL_EXPORT' 6525 ;; 6526 6527 hpux9* | hpux10* | hpux11*) 6528 lt_prog_compiler_wl='-Wl,' 6529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6530 # not for PA HP-UX. 6531 case $host_cpu in 6532 hppa*64*|ia64*) 6533 # +Z the default 6534 ;; 6535 *) 6536 lt_prog_compiler_pic='+Z' 6537 ;; 6538 esac 6539 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6540 lt_prog_compiler_static='${wl}-a ${wl}archive' 6541 ;; 6542 6543 irix5* | irix6* | nonstopux*) 6544 lt_prog_compiler_wl='-Wl,' 6545 # PIC (with -KPIC) is the default. 6546 lt_prog_compiler_static='-non_shared' 6547 ;; 6548 6549 newsos6) 6550 lt_prog_compiler_pic='-KPIC' 6551 lt_prog_compiler_static='-Bstatic' 6552 ;; 6553 6554 linux*) 6555 case $cc_basename in 6556 icc* | ecc*) 6557 lt_prog_compiler_wl='-Wl,' 6558 lt_prog_compiler_pic='-KPIC' 6559 lt_prog_compiler_static='-static' 6560 ;; 6561 pgcc* | pgf77* | pgf90* | pgf95*) 6562 # Portland Group compilers (*not* the Pentium gcc compiler, 6563 # which looks to be a dead project) 6564 lt_prog_compiler_wl='-Wl,' 6565 lt_prog_compiler_pic='-fpic' 6566 lt_prog_compiler_static='-Bstatic' 6567 ;; 6568 ccc*) 6569 lt_prog_compiler_wl='-Wl,' 6570 # All Alpha code is PIC. 6571 lt_prog_compiler_static='-non_shared' 6572 ;; 6573 esac 6574 ;; 6575 6576 osf3* | osf4* | osf5*) 6577 lt_prog_compiler_wl='-Wl,' 6578 # All OSF/1 code is PIC. 6579 lt_prog_compiler_static='-non_shared' 6580 ;; 6581 6582 solaris*) 6583 lt_prog_compiler_pic='-KPIC' 6584 lt_prog_compiler_static='-Bstatic' 6585 case $cc_basename in 6586 f77* | f90* | f95*) 6587 lt_prog_compiler_wl='-Qoption ld ';; 6588 *) 6589 lt_prog_compiler_wl='-Wl,';; 6590 esac 6591 ;; 6592 6593 sunos4*) 6594 lt_prog_compiler_wl='-Qoption ld ' 6595 lt_prog_compiler_pic='-PIC' 6596 lt_prog_compiler_static='-Bstatic' 6597 ;; 6598 6599 sysv4 | sysv4.2uw2* | sysv4.3*) 6600 lt_prog_compiler_wl='-Wl,' 6601 lt_prog_compiler_pic='-KPIC' 6602 lt_prog_compiler_static='-Bstatic' 6603 ;; 6604 6605 sysv4*MP*) 6606 if test -d /usr/nec ;then 6607 lt_prog_compiler_pic='-Kconform_pic' 6608 lt_prog_compiler_static='-Bstatic' 6609 fi 6610 ;; 6611 6612 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6613 lt_prog_compiler_wl='-Wl,' 6614 lt_prog_compiler_pic='-KPIC' 6615 lt_prog_compiler_static='-Bstatic' 6616 ;; 6617 6618 unicos*) 6619 lt_prog_compiler_wl='-Wl,' 6620 lt_prog_compiler_can_build_shared=no 6621 ;; 6622 6623 uts4*) 6624 lt_prog_compiler_pic='-pic' 6625 lt_prog_compiler_static='-Bstatic' 6626 ;; 6627 6628 *) 6629 lt_prog_compiler_can_build_shared=no 6630 ;; 6631 esac 6632 fi 6633 6634echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6635echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6636 6637# 6638# Check to make sure the PIC flag actually works. 6639# 6640if test -n "$lt_prog_compiler_pic"; then 6641 6642echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6643echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6644if test "${lt_prog_compiler_pic_works+set}" = set; then 6645 echo $ECHO_N "(cached) $ECHO_C" >&6 6646else 6647 lt_prog_compiler_pic_works=no 6648 ac_outfile=conftest.$ac_objext 6649 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6650 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6651 # Insert the option either (1) after the last *FLAGS variable, or 6652 # (2) before a word containing "conftest.", or (3) at the end. 6653 # Note that $ac_compile itself does not contain backslashes and begins 6654 # with a dollar sign (not a hyphen), so the echo should work correctly. 6655 # The option is referenced via a variable to avoid confusing sed. 6656 lt_compile=`echo "$ac_compile" | $SED \ 6657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6659 -e 's:$: $lt_compiler_flag:'` 6660 (eval echo "\"\$as_me:6660: $lt_compile\"" >&5) 6661 (eval "$lt_compile" 2>conftest.err) 6662 ac_status=$? 6663 cat conftest.err >&5 6664 echo "$as_me:6664: \$? = $ac_status" >&5 6665 if (exit $ac_status) && test -s "$ac_outfile"; then 6666 # The compiler can only warn and ignore the option if not recognized 6667 # So say no if there are warnings other than the usual output. 6668 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6671 lt_prog_compiler_pic_works=yes 6672 fi 6673 fi 6674 $rm conftest* 6675 6676fi 6677echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6678echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6679 6680if test x"$lt_prog_compiler_pic_works" = xyes; then 6681 case $lt_prog_compiler_pic in 6682 "" | " "*) ;; 6683 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6684 esac 6685else 6686 lt_prog_compiler_pic= 6687 lt_prog_compiler_can_build_shared=no 6688fi 6689 6690fi 6691case $host_os in 6692 # For platforms which do not support PIC, -DPIC is meaningless: 6693 *djgpp*) 6694 lt_prog_compiler_pic= 6695 ;; 6696 *) 6697 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6698 ;; 6699esac 6700 6701# 6702# Check to make sure the static flag actually works. 6703# 6704wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6705echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6706echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6707if test "${lt_prog_compiler_static_works+set}" = set; then 6708 echo $ECHO_N "(cached) $ECHO_C" >&6 6709else 6710 lt_prog_compiler_static_works=no 6711 save_LDFLAGS="$LDFLAGS" 6712 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6713 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6714 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6715 # The linker can only warn and ignore the option if not recognized 6716 # So say no if there are warnings 6717 if test -s conftest.err; then 6718 # Append any errors to the config.log. 6719 cat conftest.err 1>&5 6720 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6722 if diff conftest.exp conftest.er2 >/dev/null; then 6723 lt_prog_compiler_static_works=yes 6724 fi 6725 else 6726 lt_prog_compiler_static_works=yes 6727 fi 6728 fi 6729 $rm conftest* 6730 LDFLAGS="$save_LDFLAGS" 6731 6732fi 6733echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6734echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6735 6736if test x"$lt_prog_compiler_static_works" = xyes; then 6737 : 6738else 6739 lt_prog_compiler_static= 6740fi 6741 6742 6743echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6744echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6745if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6746 echo $ECHO_N "(cached) $ECHO_C" >&6 6747else 6748 lt_cv_prog_compiler_c_o=no 6749 $rm -r conftest 2>/dev/null 6750 mkdir conftest 6751 cd conftest 6752 mkdir out 6753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6754 6755 lt_compiler_flag="-o out/conftest2.$ac_objext" 6756 # Insert the option either (1) after the last *FLAGS variable, or 6757 # (2) before a word containing "conftest.", or (3) at the end. 6758 # Note that $ac_compile itself does not contain backslashes and begins 6759 # with a dollar sign (not a hyphen), so the echo should work correctly. 6760 lt_compile=`echo "$ac_compile" | $SED \ 6761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6763 -e 's:$: $lt_compiler_flag:'` 6764 (eval echo "\"\$as_me:6764: $lt_compile\"" >&5) 6765 (eval "$lt_compile" 2>out/conftest.err) 6766 ac_status=$? 6767 cat out/conftest.err >&5 6768 echo "$as_me:6768: \$? = $ac_status" >&5 6769 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6770 then 6771 # The compiler can only warn and ignore the option if not recognized 6772 # So say no if there are warnings 6773 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6776 lt_cv_prog_compiler_c_o=yes 6777 fi 6778 fi 6779 chmod u+w . 2>&5 6780 $rm conftest* 6781 # SGI C++ compiler will create directory out/ii_files/ for 6782 # template instantiation 6783 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6784 $rm out/* && rmdir out 6785 cd .. 6786 rmdir conftest 6787 $rm conftest* 6788 6789fi 6790echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6791echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6792 6793 6794hard_links="nottested" 6795if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6796 # do not overwrite the value of need_locks provided by the user 6797 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6798echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6799 hard_links=yes 6800 $rm conftest* 6801 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6802 touch conftest.a 6803 ln conftest.a conftest.b 2>&5 || hard_links=no 6804 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6805 echo "$as_me:$LINENO: result: $hard_links" >&5 6806echo "${ECHO_T}$hard_links" >&6 6807 if test "$hard_links" = no; then 6808 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6809echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6810 need_locks=warn 6811 fi 6812else 6813 need_locks=no 6814fi 6815 6816echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6817echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6818 6819 runpath_var= 6820 allow_undefined_flag= 6821 enable_shared_with_static_runtimes=no 6822 archive_cmds= 6823 archive_expsym_cmds= 6824 old_archive_From_new_cmds= 6825 old_archive_from_expsyms_cmds= 6826 export_dynamic_flag_spec= 6827 whole_archive_flag_spec= 6828 thread_safe_flag_spec= 6829 hardcode_libdir_flag_spec= 6830 hardcode_libdir_flag_spec_ld= 6831 hardcode_libdir_separator= 6832 hardcode_direct=no 6833 hardcode_minus_L=no 6834 hardcode_shlibpath_var=unsupported 6835 link_all_deplibs=unknown 6836 hardcode_automatic=no 6837 module_cmds= 6838 module_expsym_cmds= 6839 always_export_symbols=no 6840 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6841 # include_expsyms should be a list of space-separated symbols to be *always* 6842 # included in the symbol list 6843 include_expsyms= 6844 # exclude_expsyms can be an extended regexp of symbols to exclude 6845 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6846 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6847 # as well as any symbol that contains `d'. 6848 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6849 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6850 # platforms (ab)use it in PIC code, but their linkers get confused if 6851 # the symbol is explicitly referenced. Since portable code cannot 6852 # rely on this symbol name, it's probably fine to never include it in 6853 # preloaded symbol tables. 6854 extract_expsyms_cmds= 6855 # Just being paranoid about ensuring that cc_basename is set. 6856 for cc_temp in $compiler""; do 6857 case $cc_temp in 6858 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6859 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6860 \-*) ;; 6861 *) break;; 6862 esac 6863done 6864cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6865 6866 case $host_os in 6867 cygwin* | mingw* | pw32*) 6868 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6869 # When not using gcc, we currently assume that we are using 6870 # Microsoft Visual C++. 6871 if test "$GCC" != yes; then 6872 with_gnu_ld=no 6873 fi 6874 ;; 6875 interix*) 6876 # we just hope/assume this is gcc and not c89 (= MSVC++) 6877 with_gnu_ld=yes 6878 ;; 6879 openbsd*) 6880 with_gnu_ld=no 6881 ;; 6882 esac 6883 6884 ld_shlibs=yes 6885 if test "$with_gnu_ld" = yes; then 6886 # If archive_cmds runs LD, not CC, wlarc should be empty 6887 wlarc='${wl}' 6888 6889 # Set some defaults for GNU ld with shared library support. These 6890 # are reset later if shared libraries are not supported. Putting them 6891 # here allows them to be overridden if necessary. 6892 runpath_var=LD_RUN_PATH 6893 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6894 export_dynamic_flag_spec='${wl}--export-dynamic' 6895 # ancient GNU ld didn't support --whole-archive et. al. 6896 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6897 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6898 else 6899 whole_archive_flag_spec= 6900 fi 6901 supports_anon_versioning=no 6902 case `$LD -v 2>/dev/null` in 6903 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6904 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6905 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6906 *\ 2.11.*) ;; # other 2.11 versions 6907 *) supports_anon_versioning=yes ;; 6908 esac 6909 6910 # See if GNU ld supports shared libraries. 6911 case $host_os in 6912 aix3* | aix4* | aix5*) 6913 # On AIX/PPC, the GNU linker is very broken 6914 if test "$host_cpu" != ia64; then 6915 ld_shlibs=no 6916 cat <<EOF 1>&2 6917 6918*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6919*** to be unable to reliably create shared libraries on AIX. 6920*** Therefore, libtool is disabling shared libraries support. If you 6921*** really care for shared libraries, you may want to modify your PATH 6922*** so that a non-GNU linker is found, and then restart. 6923 6924EOF 6925 fi 6926 ;; 6927 6928 amigaos*) 6929 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)' 6930 hardcode_libdir_flag_spec='-L$libdir' 6931 hardcode_minus_L=yes 6932 6933 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6934 # that the semantics of dynamic libraries on AmigaOS, at least up 6935 # to version 4, is to share data among multiple programs linked 6936 # with the same dynamic library. Since this doesn't match the 6937 # behavior of shared libraries on other platforms, we can't use 6938 # them. 6939 ld_shlibs=no 6940 ;; 6941 6942 beos*) 6943 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6944 allow_undefined_flag=unsupported 6945 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6946 # support --undefined. This deserves some investigation. FIXME 6947 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6948 else 6949 ld_shlibs=no 6950 fi 6951 ;; 6952 6953 cygwin* | mingw* | pw32*) 6954 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6955 # as there is no search path for DLLs. 6956 hardcode_libdir_flag_spec='-L$libdir' 6957 allow_undefined_flag=unsupported 6958 always_export_symbols=no 6959 enable_shared_with_static_runtimes=yes 6960 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6961 6962 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6964 # If the export-symbols file already is a .def file (1st line 6965 # is EXPORTS), use it as is; otherwise, prepend... 6966 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6967 cp $export_symbols $output_objdir/$soname.def; 6968 else 6969 echo EXPORTS > $output_objdir/$soname.def; 6970 cat $export_symbols >> $output_objdir/$soname.def; 6971 fi~ 6972 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6973 else 6974 ld_shlibs=no 6975 fi 6976 ;; 6977 6978 interix3*) 6979 hardcode_direct=no 6980 hardcode_shlibpath_var=no 6981 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6982 export_dynamic_flag_spec='${wl}-E' 6983 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6984 # Instead, shared libraries are loaded at an image base (0x10000000 by 6985 # default) and relocated if they conflict, which is a slow very memory 6986 # consuming and fragmenting process. To avoid this, we pick a random, 6987 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6988 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6989 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6990 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' 6991 ;; 6992 6993 linux*) 6994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6995 tmp_addflag= 6996 case $cc_basename,$host_cpu in 6997 pgcc*) # Portland Group C compiler 6998 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' 6999 tmp_addflag=' $pic_flag' 7000 ;; 7001 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7002 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' 7003 tmp_addflag=' $pic_flag -Mnomain' ;; 7004 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7005 tmp_addflag=' -i_dynamic' ;; 7006 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7007 tmp_addflag=' -i_dynamic -nofor_main' ;; 7008 ifc* | ifort*) # Intel Fortran compiler 7009 tmp_addflag=' -nofor_main' ;; 7010 esac 7011 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7012 7013 if test $supports_anon_versioning = yes; then 7014 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7015 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7016 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7017 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7018 fi 7019 else 7020 ld_shlibs=no 7021 fi 7022 ;; 7023 7024 netbsd*) 7025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7026 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7027 wlarc= 7028 else 7029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7031 fi 7032 ;; 7033 7034 solaris*) 7035 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7036 ld_shlibs=no 7037 cat <<EOF 1>&2 7038 7039*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7040*** create shared libraries on Solaris systems. Therefore, libtool 7041*** is disabling shared libraries support. We urge you to upgrade GNU 7042*** binutils to release 2.9.1 or newer. Another option is to modify 7043*** your PATH or compiler configuration so that the native linker is 7044*** used, and then restart. 7045 7046EOF 7047 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7049 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7050 else 7051 ld_shlibs=no 7052 fi 7053 ;; 7054 7055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7056 case `$LD -v 2>&1` in 7057 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7058 ld_shlibs=no 7059 cat <<_LT_EOF 1>&2 7060 7061*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7062*** reliably create shared libraries on SCO systems. Therefore, libtool 7063*** is disabling shared libraries support. We urge you to upgrade GNU 7064*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7065*** your PATH or compiler configuration so that the native linker is 7066*** used, and then restart. 7067 7068_LT_EOF 7069 ;; 7070 *) 7071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7072 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7074 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7075 else 7076 ld_shlibs=no 7077 fi 7078 ;; 7079 esac 7080 ;; 7081 7082 sunos4*) 7083 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7084 wlarc= 7085 hardcode_direct=yes 7086 hardcode_shlibpath_var=no 7087 ;; 7088 7089 *) 7090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7093 else 7094 ld_shlibs=no 7095 fi 7096 ;; 7097 esac 7098 7099 if test "$ld_shlibs" = no; then 7100 runpath_var= 7101 hardcode_libdir_flag_spec= 7102 export_dynamic_flag_spec= 7103 whole_archive_flag_spec= 7104 fi 7105 else 7106 # PORTME fill in a description of your system's linker (not GNU ld) 7107 case $host_os in 7108 aix3*) 7109 allow_undefined_flag=unsupported 7110 always_export_symbols=yes 7111 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' 7112 # Note: this linker hardcodes the directories in LIBPATH if there 7113 # are no directories specified by -L. 7114 hardcode_minus_L=yes 7115 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7116 # Neither direct hardcoding nor static linking is supported with a 7117 # broken collect2. 7118 hardcode_direct=unsupported 7119 fi 7120 ;; 7121 7122 aix4* | aix5*) 7123 if test "$host_cpu" = ia64; then 7124 # On IA64, the linker does run time linking by default, so we don't 7125 # have to do anything special. 7126 aix_use_runtimelinking=no 7127 exp_sym_flag='-Bexport' 7128 no_entry_flag="" 7129 else 7130 # If we're using GNU nm, then we don't want the "-C" option. 7131 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7132 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7133 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' 7134 else 7135 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' 7136 fi 7137 aix_use_runtimelinking=no 7138 7139 # Test if we are trying to use run time linking or normal 7140 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7141 # need to do runtime linking. 7142 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7143 for ld_flag in $LDFLAGS; do 7144 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7145 aix_use_runtimelinking=yes 7146 break 7147 fi 7148 done 7149 ;; 7150 esac 7151 7152 exp_sym_flag='-bexport' 7153 no_entry_flag='-bnoentry' 7154 fi 7155 7156 # When large executables or shared objects are built, AIX ld can 7157 # have problems creating the table of contents. If linking a library 7158 # or program results in "error TOC overflow" add -mminimal-toc to 7159 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7160 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7161 7162 archive_cmds='' 7163 hardcode_direct=yes 7164 hardcode_libdir_separator=':' 7165 link_all_deplibs=yes 7166 7167 if test "$GCC" = yes; then 7168 case $host_os in aix4.[012]|aix4.[012].*) 7169 # We only want to do this on AIX 4.2 and lower, the check 7170 # below for broken collect2 doesn't work under 4.3+ 7171 collect2name=`${CC} -print-prog-name=collect2` 7172 if test -f "$collect2name" && \ 7173 strings "$collect2name" | grep resolve_lib_name >/dev/null 7174 then 7175 # We have reworked collect2 7176 hardcode_direct=yes 7177 else 7178 # We have old collect2 7179 hardcode_direct=unsupported 7180 # It fails to find uninstalled libraries when the uninstalled 7181 # path is not listed in the libpath. Setting hardcode_minus_L 7182 # to unsupported forces relinking 7183 hardcode_minus_L=yes 7184 hardcode_libdir_flag_spec='-L$libdir' 7185 hardcode_libdir_separator= 7186 fi 7187 ;; 7188 esac 7189 shared_flag='-shared' 7190 if test "$aix_use_runtimelinking" = yes; then 7191 shared_flag="$shared_flag "'${wl}-G' 7192 fi 7193 else 7194 # not using gcc 7195 if test "$host_cpu" = ia64; then 7196 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7197 # chokes on -Wl,-G. The following line is correct: 7198 shared_flag='-G' 7199 else 7200 if test "$aix_use_runtimelinking" = yes; then 7201 shared_flag='${wl}-G' 7202 else 7203 shared_flag='${wl}-bM:SRE' 7204 fi 7205 fi 7206 fi 7207 7208 # It seems that -bexpall does not export symbols beginning with 7209 # underscore (_), so it is better to generate a list of symbols to export. 7210 always_export_symbols=yes 7211 if test "$aix_use_runtimelinking" = yes; then 7212 # Warning - without using the other runtime loading flags (-brtl), 7213 # -berok will link without error, but may produce a broken library. 7214 allow_undefined_flag='-berok' 7215 # Determine the default libpath from the value encoded in an empty executable. 7216 cat >conftest.$ac_ext <<_ACEOF 7217/* confdefs.h. */ 7218_ACEOF 7219cat confdefs.h >>conftest.$ac_ext 7220cat >>conftest.$ac_ext <<_ACEOF 7221/* end confdefs.h. */ 7222 7223int 7224main () 7225{ 7226 7227 ; 7228 return 0; 7229} 7230_ACEOF 7231rm -f conftest.$ac_objext conftest$ac_exeext 7232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7233 (eval $ac_link) 2>conftest.er1 7234 ac_status=$? 7235 grep -v '^ *+' conftest.er1 >conftest.err 7236 rm -f conftest.er1 7237 cat conftest.err >&5 7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7239 (exit $ac_status); } && 7240 { ac_try='test -z "$ac_c_werror_flag" 7241 || test ! -s conftest.err' 7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7243 (eval $ac_try) 2>&5 7244 ac_status=$? 7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7246 (exit $ac_status); }; } && 7247 { ac_try='test -s conftest$ac_exeext' 7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7249 (eval $ac_try) 2>&5 7250 ac_status=$? 7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7252 (exit $ac_status); }; }; then 7253 7254aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7255}'` 7256# Check for a 64-bit object if we didn't find anything. 7257if 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; } 7258}'`; fi 7259else 7260 echo "$as_me: failed program was:" >&5 7261sed 's/^/| /' conftest.$ac_ext >&5 7262 7263fi 7264rm -f conftest.err conftest.$ac_objext \ 7265 conftest$ac_exeext conftest.$ac_ext 7266if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7267 7268 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7269 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" 7270 else 7271 if test "$host_cpu" = ia64; then 7272 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7273 allow_undefined_flag="-z nodefs" 7274 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" 7275 else 7276 # Determine the default libpath from the value encoded in an empty executable. 7277 cat >conftest.$ac_ext <<_ACEOF 7278/* confdefs.h. */ 7279_ACEOF 7280cat confdefs.h >>conftest.$ac_ext 7281cat >>conftest.$ac_ext <<_ACEOF 7282/* end confdefs.h. */ 7283 7284int 7285main () 7286{ 7287 7288 ; 7289 return 0; 7290} 7291_ACEOF 7292rm -f conftest.$ac_objext conftest$ac_exeext 7293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7294 (eval $ac_link) 2>conftest.er1 7295 ac_status=$? 7296 grep -v '^ *+' conftest.er1 >conftest.err 7297 rm -f conftest.er1 7298 cat conftest.err >&5 7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7300 (exit $ac_status); } && 7301 { ac_try='test -z "$ac_c_werror_flag" 7302 || test ! -s conftest.err' 7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7304 (eval $ac_try) 2>&5 7305 ac_status=$? 7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7307 (exit $ac_status); }; } && 7308 { ac_try='test -s conftest$ac_exeext' 7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7310 (eval $ac_try) 2>&5 7311 ac_status=$? 7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7313 (exit $ac_status); }; }; then 7314 7315aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7316}'` 7317# Check for a 64-bit object if we didn't find anything. 7318if 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; } 7319}'`; fi 7320else 7321 echo "$as_me: failed program was:" >&5 7322sed 's/^/| /' conftest.$ac_ext >&5 7323 7324fi 7325rm -f conftest.err conftest.$ac_objext \ 7326 conftest$ac_exeext conftest.$ac_ext 7327if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7328 7329 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7330 # Warning - without using the other run time loading flags, 7331 # -berok will link without error, but may produce a broken library. 7332 no_undefined_flag=' ${wl}-bernotok' 7333 allow_undefined_flag=' ${wl}-berok' 7334 # Exported symbols can be pulled into shared objects from archives 7335 whole_archive_flag_spec='$convenience' 7336 archive_cmds_need_lc=yes 7337 # This is similar to how AIX traditionally builds its shared libraries. 7338 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' 7339 fi 7340 fi 7341 ;; 7342 7343 amigaos*) 7344 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)' 7345 hardcode_libdir_flag_spec='-L$libdir' 7346 hardcode_minus_L=yes 7347 # see comment about different semantics on the GNU ld section 7348 ld_shlibs=no 7349 ;; 7350 7351 bsdi[45]*) 7352 export_dynamic_flag_spec=-rdynamic 7353 ;; 7354 7355 cygwin* | mingw* | pw32*) 7356 # When not using gcc, we currently assume that we are using 7357 # Microsoft Visual C++. 7358 # hardcode_libdir_flag_spec is actually meaningless, as there is 7359 # no search path for DLLs. 7360 hardcode_libdir_flag_spec=' ' 7361 allow_undefined_flag=unsupported 7362 # Tell ltmain to make .lib files, not .a files. 7363 libext=lib 7364 # Tell ltmain to make .dll files, not .so files. 7365 shrext_cmds=".dll" 7366 # FIXME: Setting linknames here is a bad hack. 7367 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7368 # The linker will automatically build a .lib file if we build a DLL. 7369 old_archive_From_new_cmds='true' 7370 # FIXME: Should let the user specify the lib program. 7371 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7372 fix_srcfile_path='`cygpath -w "$srcfile"`' 7373 enable_shared_with_static_runtimes=yes 7374 ;; 7375 7376 darwin* | rhapsody*) 7377 case $host_os in 7378 rhapsody* | darwin1.[012]) 7379 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7380 ;; 7381 *) # Darwin 1.3 on 7382 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7383 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7384 else 7385 case ${MACOSX_DEPLOYMENT_TARGET} in 7386 10.[012]) 7387 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7388 ;; 7389 10.*) 7390 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7391 ;; 7392 esac 7393 fi 7394 ;; 7395 esac 7396 archive_cmds_need_lc=no 7397 hardcode_direct=no 7398 hardcode_automatic=yes 7399 hardcode_shlibpath_var=unsupported 7400 whole_archive_flag_spec='' 7401 link_all_deplibs=yes 7402 if test "$GCC" = yes ; then 7403 output_verbose_link_cmd='echo' 7404 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7405 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7406 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7407 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}' 7408 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}' 7409 else 7410 case $cc_basename in 7411 xlc*) 7412 output_verbose_link_cmd='echo' 7413 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7414 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7415 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7416 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}' 7417 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}' 7418 ;; 7419 *) 7420 ld_shlibs=no 7421 ;; 7422 esac 7423 fi 7424 ;; 7425 7426 dgux*) 7427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7428 hardcode_libdir_flag_spec='-L$libdir' 7429 hardcode_shlibpath_var=no 7430 ;; 7431 7432 freebsd1*) 7433 ld_shlibs=no 7434 ;; 7435 7436 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7437 # support. Future versions do this automatically, but an explicit c++rt0.o 7438 # does not break anything, and helps significantly (at the cost of a little 7439 # extra space). 7440 freebsd2.2*) 7441 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7442 hardcode_libdir_flag_spec='-R$libdir' 7443 hardcode_direct=yes 7444 hardcode_shlibpath_var=no 7445 ;; 7446 7447 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7448 freebsd2*) 7449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7450 hardcode_direct=yes 7451 hardcode_minus_L=yes 7452 hardcode_shlibpath_var=no 7453 ;; 7454 7455 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7456 freebsd* | kfreebsd*-gnu | dragonfly*) 7457 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7458 hardcode_libdir_flag_spec='-R$libdir' 7459 hardcode_direct=yes 7460 hardcode_shlibpath_var=no 7461 ;; 7462 7463 hpux9*) 7464 if test "$GCC" = yes; then 7465 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' 7466 else 7467 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' 7468 fi 7469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7470 hardcode_libdir_separator=: 7471 hardcode_direct=yes 7472 7473 # hardcode_minus_L: Not really in the search PATH, 7474 # but as the default location of the library. 7475 hardcode_minus_L=yes 7476 export_dynamic_flag_spec='${wl}-E' 7477 ;; 7478 7479 hpux10*) 7480 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7481 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7482 else 7483 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7484 fi 7485 if test "$with_gnu_ld" = no; then 7486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7487 hardcode_libdir_separator=: 7488 7489 hardcode_direct=yes 7490 export_dynamic_flag_spec='${wl}-E' 7491 7492 # hardcode_minus_L: Not really in the search PATH, 7493 # but as the default location of the library. 7494 hardcode_minus_L=yes 7495 fi 7496 ;; 7497 7498 hpux11*) 7499 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7500 case $host_cpu in 7501 hppa*64*) 7502 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7503 ;; 7504 ia64*) 7505 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7506 ;; 7507 *) 7508 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7509 ;; 7510 esac 7511 else 7512 case $host_cpu in 7513 hppa*64*) 7514 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7515 ;; 7516 ia64*) 7517 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7518 ;; 7519 *) 7520 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7521 ;; 7522 esac 7523 fi 7524 if test "$with_gnu_ld" = no; then 7525 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7526 hardcode_libdir_separator=: 7527 7528 case $host_cpu in 7529 hppa*64*|ia64*) 7530 hardcode_libdir_flag_spec_ld='+b $libdir' 7531 hardcode_direct=no 7532 hardcode_shlibpath_var=no 7533 ;; 7534 *) 7535 hardcode_direct=yes 7536 export_dynamic_flag_spec='${wl}-E' 7537 7538 # hardcode_minus_L: Not really in the search PATH, 7539 # but as the default location of the library. 7540 hardcode_minus_L=yes 7541 ;; 7542 esac 7543 fi 7544 ;; 7545 7546 irix5* | irix6* | nonstopux*) 7547 if test "$GCC" = yes; then 7548 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' 7549 else 7550 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' 7551 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7552 fi 7553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7554 hardcode_libdir_separator=: 7555 link_all_deplibs=yes 7556 ;; 7557 7558 netbsd*) 7559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7561 else 7562 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7563 fi 7564 hardcode_libdir_flag_spec='-R$libdir' 7565 hardcode_direct=yes 7566 hardcode_shlibpath_var=no 7567 ;; 7568 7569 newsos6) 7570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7571 hardcode_direct=yes 7572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7573 hardcode_libdir_separator=: 7574 hardcode_shlibpath_var=no 7575 ;; 7576 7577 openbsd*) 7578 hardcode_direct=yes 7579 hardcode_shlibpath_var=no 7580 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7582 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7584 export_dynamic_flag_spec='${wl}-E' 7585 else 7586 case $host_os in 7587 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7589 hardcode_libdir_flag_spec='-R$libdir' 7590 ;; 7591 *) 7592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7593 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7594 ;; 7595 esac 7596 fi 7597 ;; 7598 7599 os2*) 7600 hardcode_libdir_flag_spec='-L$libdir' 7601 hardcode_minus_L=yes 7602 allow_undefined_flag=unsupported 7603 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' 7604 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7605 ;; 7606 7607 osf3*) 7608 if test "$GCC" = yes; then 7609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7610 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' 7611 else 7612 allow_undefined_flag=' -expect_unresolved \*' 7613 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' 7614 fi 7615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7616 hardcode_libdir_separator=: 7617 ;; 7618 7619 osf4* | osf5*) # as osf3* with the addition of -msym flag 7620 if test "$GCC" = yes; then 7621 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7622 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' 7623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7624 else 7625 allow_undefined_flag=' -expect_unresolved \*' 7626 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' 7627 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7628 $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' 7629 7630 # Both c and cxx compiler support -rpath directly 7631 hardcode_libdir_flag_spec='-rpath $libdir' 7632 fi 7633 hardcode_libdir_separator=: 7634 ;; 7635 7636 solaris*) 7637 no_undefined_flag=' -z text' 7638 if test "$GCC" = yes; then 7639 wlarc='${wl}' 7640 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7641 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7642 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7643 else 7644 wlarc='' 7645 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7646 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7647 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7648 fi 7649 hardcode_libdir_flag_spec='-R$libdir' 7650 hardcode_shlibpath_var=no 7651 case $host_os in 7652 solaris2.[0-5] | solaris2.[0-5].*) ;; 7653 *) 7654 # The compiler driver will combine linker options so we 7655 # cannot just pass the convience library names through 7656 # without $wl, iff we do not link with $LD. 7657 # Luckily, gcc supports the same syntax we need for Sun Studio. 7658 # Supported since Solaris 2.6 (maybe 2.5.1?) 7659 case $wlarc in 7660 '') 7661 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7662 *) 7663 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' ;; 7664 esac ;; 7665 esac 7666 link_all_deplibs=yes 7667 ;; 7668 7669 sunos4*) 7670 if test "x$host_vendor" = xsequent; then 7671 # Use $CC to link under sequent, because it throws in some extra .o 7672 # files that make .init and .fini sections work. 7673 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7674 else 7675 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7676 fi 7677 hardcode_libdir_flag_spec='-L$libdir' 7678 hardcode_direct=yes 7679 hardcode_minus_L=yes 7680 hardcode_shlibpath_var=no 7681 ;; 7682 7683 sysv4) 7684 case $host_vendor in 7685 sni) 7686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7687 hardcode_direct=yes # is this really true??? 7688 ;; 7689 siemens) 7690 ## LD is ld it makes a PLAMLIB 7691 ## CC just makes a GrossModule. 7692 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7693 reload_cmds='$CC -r -o $output$reload_objs' 7694 hardcode_direct=no 7695 ;; 7696 motorola) 7697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7698 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7699 ;; 7700 esac 7701 runpath_var='LD_RUN_PATH' 7702 hardcode_shlibpath_var=no 7703 ;; 7704 7705 sysv4.3*) 7706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7707 hardcode_shlibpath_var=no 7708 export_dynamic_flag_spec='-Bexport' 7709 ;; 7710 7711 sysv4*MP*) 7712 if test -d /usr/nec; then 7713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7714 hardcode_shlibpath_var=no 7715 runpath_var=LD_RUN_PATH 7716 hardcode_runpath_var=yes 7717 ld_shlibs=yes 7718 fi 7719 ;; 7720 7721 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 7722 no_undefined_flag='${wl}-z,text' 7723 archive_cmds_need_lc=no 7724 hardcode_shlibpath_var=no 7725 runpath_var='LD_RUN_PATH' 7726 7727 if test "$GCC" = yes; then 7728 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7729 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7730 else 7731 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7732 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7733 fi 7734 ;; 7735 7736 sysv5* | sco3.2v5* | sco5v6*) 7737 # Note: We can NOT use -z defs as we might desire, because we do not 7738 # link with -lc, and that would cause any symbols used from libc to 7739 # always be unresolved, which means just about no library would 7740 # ever link correctly. If we're not using GNU ld we use -z text 7741 # though, which does catch some bad symbols but isn't as heavy-handed 7742 # as -z defs. 7743 no_undefined_flag='${wl}-z,text' 7744 allow_undefined_flag='${wl}-z,nodefs' 7745 archive_cmds_need_lc=no 7746 hardcode_shlibpath_var=no 7747 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 7748 hardcode_libdir_separator=':' 7749 link_all_deplibs=yes 7750 export_dynamic_flag_spec='${wl}-Bexport' 7751 runpath_var='LD_RUN_PATH' 7752 7753 if test "$GCC" = yes; then 7754 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7755 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7756 else 7757 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7758 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7759 fi 7760 ;; 7761 7762 uts4*) 7763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7764 hardcode_libdir_flag_spec='-L$libdir' 7765 hardcode_shlibpath_var=no 7766 ;; 7767 7768 *) 7769 ld_shlibs=no 7770 ;; 7771 esac 7772 fi 7773 7774echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7775echo "${ECHO_T}$ld_shlibs" >&6 7776test "$ld_shlibs" = no && can_build_shared=no 7777 7778# 7779# Do we need to explicitly link libc? 7780# 7781case "x$archive_cmds_need_lc" in 7782x|xyes) 7783 # Assume -lc should be added 7784 archive_cmds_need_lc=yes 7785 7786 if test "$enable_shared" = yes && test "$GCC" = yes; then 7787 case $archive_cmds in 7788 *'~'*) 7789 # FIXME: we may have to deal with multi-command sequences. 7790 ;; 7791 '$CC '*) 7792 # Test whether the compiler implicitly links with -lc since on some 7793 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7794 # to ld, don't add -lc before -lgcc. 7795 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7796echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7797 $rm conftest* 7798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7799 7800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7801 (eval $ac_compile) 2>&5 7802 ac_status=$? 7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7804 (exit $ac_status); } 2>conftest.err; then 7805 soname=conftest 7806 lib=conftest 7807 libobjs=conftest.$ac_objext 7808 deplibs= 7809 wl=$lt_prog_compiler_wl 7810 pic_flag=$lt_prog_compiler_pic 7811 compiler_flags=-v 7812 linker_flags=-v 7813 verstring= 7814 output_objdir=. 7815 libname=conftest 7816 lt_save_allow_undefined_flag=$allow_undefined_flag 7817 allow_undefined_flag= 7818 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7819 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7820 ac_status=$? 7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7822 (exit $ac_status); } 7823 then 7824 archive_cmds_need_lc=no 7825 else 7826 archive_cmds_need_lc=yes 7827 fi 7828 allow_undefined_flag=$lt_save_allow_undefined_flag 7829 else 7830 cat conftest.err 1>&5 7831 fi 7832 $rm conftest* 7833 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7834echo "${ECHO_T}$archive_cmds_need_lc" >&6 7835 ;; 7836 esac 7837 fi 7838 ;; 7839esac 7840 7841echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7842echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7843library_names_spec= 7844libname_spec='lib$name' 7845soname_spec= 7846shrext_cmds=".so" 7847postinstall_cmds= 7848postuninstall_cmds= 7849finish_cmds= 7850finish_eval= 7851shlibpath_var= 7852shlibpath_overrides_runpath=unknown 7853version_type=none 7854dynamic_linker="$host_os ld.so" 7855sys_lib_dlsearch_path_spec="/lib /usr/lib" 7856if test "$GCC" = yes; then 7857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7858 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7859 # if the path contains ";" then we assume it to be the separator 7860 # otherwise default to the standard path separator (i.e. ":") - it is 7861 # assumed that no part of a normal pathname contains ";" but that should 7862 # okay in the real world where ";" in dirpaths is itself problematic. 7863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7864 else 7865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7866 fi 7867else 7868 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7869fi 7870need_lib_prefix=unknown 7871hardcode_into_libs=no 7872 7873# when you set need_version to no, make sure it does not cause -set_version 7874# flags to be left without arguments 7875need_version=unknown 7876 7877case $host_os in 7878aix3*) 7879 version_type=linux 7880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7881 shlibpath_var=LIBPATH 7882 7883 # AIX 3 has no versioning support, so we append a major version to the name. 7884 soname_spec='${libname}${release}${shared_ext}$major' 7885 ;; 7886 7887aix4* | aix5*) 7888 version_type=linux 7889 need_lib_prefix=no 7890 need_version=no 7891 hardcode_into_libs=yes 7892 if test "$host_cpu" = ia64; then 7893 # AIX 5 supports IA64 7894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7895 shlibpath_var=LD_LIBRARY_PATH 7896 else 7897 # With GCC up to 2.95.x, collect2 would create an import file 7898 # for dependence libraries. The import file would start with 7899 # the line `#! .'. This would cause the generated library to 7900 # depend on `.', always an invalid library. This was fixed in 7901 # development snapshots of GCC prior to 3.0. 7902 case $host_os in 7903 aix4 | aix4.[01] | aix4.[01].*) 7904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7905 echo ' yes ' 7906 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7907 : 7908 else 7909 can_build_shared=no 7910 fi 7911 ;; 7912 esac 7913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7914 # soname into executable. Probably we can add versioning support to 7915 # collect2, so additional links can be useful in future. 7916 if test "$aix_use_runtimelinking" = yes; then 7917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7918 # instead of lib<name>.a to let people know that these are not 7919 # typical AIX shared libraries. 7920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7921 else 7922 # We preserve .a as extension for shared libraries through AIX4.2 7923 # and later when we are not doing run time linking. 7924 library_names_spec='${libname}${release}.a $libname.a' 7925 soname_spec='${libname}${release}${shared_ext}$major' 7926 fi 7927 shlibpath_var=LIBPATH 7928 fi 7929 ;; 7930 7931amigaos*) 7932 library_names_spec='$libname.ixlibrary $libname.a' 7933 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7934 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' 7935 ;; 7936 7937beos*) 7938 library_names_spec='${libname}${shared_ext}' 7939 dynamic_linker="$host_os ld.so" 7940 shlibpath_var=LIBRARY_PATH 7941 ;; 7942 7943bsdi[45]*) 7944 version_type=linux 7945 need_version=no 7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7947 soname_spec='${libname}${release}${shared_ext}$major' 7948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7949 shlibpath_var=LD_LIBRARY_PATH 7950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7952 # the default ld.so.conf also contains /usr/contrib/lib and 7953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7954 # libtool to hard-code these into programs 7955 ;; 7956 7957cygwin* | mingw* | pw32*) 7958 version_type=windows 7959 shrext_cmds=".dll" 7960 need_version=no 7961 need_lib_prefix=no 7962 7963 case $GCC,$host_os in 7964 yes,cygwin* | yes,mingw* | yes,pw32*) 7965 library_names_spec='$libname.dll.a' 7966 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7967 postinstall_cmds='base_file=`basename \${file}`~ 7968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7969 dldir=$destdir/`dirname \$dlpath`~ 7970 test -d \$dldir || mkdir -p \$dldir~ 7971 $install_prog $dir/$dlname \$dldir/$dlname~ 7972 chmod a+x \$dldir/$dlname' 7973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7974 dlpath=$dir/\$dldll~ 7975 $rm \$dlpath' 7976 shlibpath_overrides_runpath=yes 7977 7978 case $host_os in 7979 cygwin*) 7980 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7981 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7982 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7983 ;; 7984 mingw*) 7985 # MinGW DLLs use traditional 'lib' prefix 7986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7987 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7988 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7989 # It is most probably a Windows format PATH printed by 7990 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7991 # path with ; separators, and with drive letters. We can handle the 7992 # drive letters (cygwin fileutils understands them), so leave them, 7993 # especially as we might pass files found there to a mingw objdump, 7994 # which wouldn't understand a cygwinified path. Ahh. 7995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7996 else 7997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7998 fi 7999 ;; 8000 pw32*) 8001 # pw32 DLLs use 'pw' prefix rather than 'lib' 8002 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8003 ;; 8004 esac 8005 ;; 8006 8007 *) 8008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8009 ;; 8010 esac 8011 dynamic_linker='Win32 ld.exe' 8012 # FIXME: first we should search . and the directory the executable is in 8013 shlibpath_var=PATH 8014 ;; 8015 8016darwin* | rhapsody*) 8017 dynamic_linker="$host_os dyld" 8018 version_type=darwin 8019 need_lib_prefix=no 8020 need_version=no 8021 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8022 soname_spec='${libname}${release}${major}$shared_ext' 8023 shlibpath_overrides_runpath=yes 8024 shlibpath_var=DYLD_LIBRARY_PATH 8025 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8026 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8027 if test "$GCC" = yes; then 8028 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"` 8029 else 8030 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8031 fi 8032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8033 ;; 8034 8035dgux*) 8036 version_type=linux 8037 need_lib_prefix=no 8038 need_version=no 8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8040 soname_spec='${libname}${release}${shared_ext}$major' 8041 shlibpath_var=LD_LIBRARY_PATH 8042 ;; 8043 8044freebsd1*) 8045 dynamic_linker=no 8046 ;; 8047 8048kfreebsd*-gnu) 8049 version_type=linux 8050 need_lib_prefix=no 8051 need_version=no 8052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8053 soname_spec='${libname}${release}${shared_ext}$major' 8054 shlibpath_var=LD_LIBRARY_PATH 8055 shlibpath_overrides_runpath=no 8056 hardcode_into_libs=yes 8057 dynamic_linker='GNU ld.so' 8058 ;; 8059 8060freebsd* | dragonfly*) 8061 # DragonFly does not have aout. When/if they implement a new 8062 # versioning mechanism, adjust this. 8063 if test -x /usr/bin/objformat; then 8064 objformat=`/usr/bin/objformat` 8065 else 8066 case $host_os in 8067 freebsd[123]*) objformat=aout ;; 8068 *) objformat=elf ;; 8069 esac 8070 fi 8071 version_type=freebsd-$objformat 8072 case $version_type in 8073 freebsd-elf*) 8074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8075 need_version=no 8076 need_lib_prefix=no 8077 ;; 8078 freebsd-*) 8079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8080 need_version=yes 8081 ;; 8082 esac 8083 shlibpath_var=LD_LIBRARY_PATH 8084 case $host_os in 8085 freebsd2*) 8086 shlibpath_overrides_runpath=yes 8087 ;; 8088 freebsd3.[01]* | freebsdelf3.[01]*) 8089 shlibpath_overrides_runpath=yes 8090 hardcode_into_libs=yes 8091 ;; 8092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8094 shlibpath_overrides_runpath=no 8095 hardcode_into_libs=yes 8096 ;; 8097 freebsd*) # from 4.6 on 8098 shlibpath_overrides_runpath=yes 8099 hardcode_into_libs=yes 8100 ;; 8101 esac 8102 ;; 8103 8104gnu*) 8105 version_type=linux 8106 need_lib_prefix=no 8107 need_version=no 8108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8109 soname_spec='${libname}${release}${shared_ext}$major' 8110 shlibpath_var=LD_LIBRARY_PATH 8111 hardcode_into_libs=yes 8112 ;; 8113 8114hpux9* | hpux10* | hpux11*) 8115 # Give a soname corresponding to the major version so that dld.sl refuses to 8116 # link against other versions. 8117 version_type=sunos 8118 need_lib_prefix=no 8119 need_version=no 8120 case $host_cpu in 8121 ia64*) 8122 shrext_cmds='.so' 8123 hardcode_into_libs=yes 8124 dynamic_linker="$host_os dld.so" 8125 shlibpath_var=LD_LIBRARY_PATH 8126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8128 soname_spec='${libname}${release}${shared_ext}$major' 8129 if test "X$HPUX_IA64_MODE" = X32; then 8130 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8131 else 8132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8133 fi 8134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8135 ;; 8136 hppa*64*) 8137 shrext_cmds='.sl' 8138 hardcode_into_libs=yes 8139 dynamic_linker="$host_os dld.sl" 8140 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8143 soname_spec='${libname}${release}${shared_ext}$major' 8144 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8146 ;; 8147 *) 8148 shrext_cmds='.sl' 8149 dynamic_linker="$host_os dld.sl" 8150 shlibpath_var=SHLIB_PATH 8151 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8153 soname_spec='${libname}${release}${shared_ext}$major' 8154 ;; 8155 esac 8156 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8157 postinstall_cmds='chmod 555 $lib' 8158 ;; 8159 8160interix3*) 8161 version_type=linux 8162 need_lib_prefix=no 8163 need_version=no 8164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8165 soname_spec='${libname}${release}${shared_ext}$major' 8166 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8167 shlibpath_var=LD_LIBRARY_PATH 8168 shlibpath_overrides_runpath=no 8169 hardcode_into_libs=yes 8170 ;; 8171 8172irix5* | irix6* | nonstopux*) 8173 case $host_os in 8174 nonstopux*) version_type=nonstopux ;; 8175 *) 8176 if test "$lt_cv_prog_gnu_ld" = yes; then 8177 version_type=linux 8178 else 8179 version_type=irix 8180 fi ;; 8181 esac 8182 need_lib_prefix=no 8183 need_version=no 8184 soname_spec='${libname}${release}${shared_ext}$major' 8185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8186 case $host_os in 8187 irix5* | nonstopux*) 8188 libsuff= shlibsuff= 8189 ;; 8190 *) 8191 case $LD in # libtool.m4 will add one of these switches to LD 8192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8193 libsuff= shlibsuff= libmagic=32-bit;; 8194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8195 libsuff=32 shlibsuff=N32 libmagic=N32;; 8196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8197 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8198 *) libsuff= shlibsuff= libmagic=never-match;; 8199 esac 8200 ;; 8201 esac 8202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8203 shlibpath_overrides_runpath=no 8204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8206 hardcode_into_libs=yes 8207 ;; 8208 8209# No shared lib support for Linux oldld, aout, or coff. 8210linux*oldld* | linux*aout* | linux*coff*) 8211 dynamic_linker=no 8212 ;; 8213 8214# This must be Linux ELF. 8215linux*) 8216 version_type=linux 8217 need_lib_prefix=no 8218 need_version=no 8219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8220 soname_spec='${libname}${release}${shared_ext}$major' 8221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8222 shlibpath_var=LD_LIBRARY_PATH 8223 shlibpath_overrides_runpath=no 8224 # This implies no fast_install, which is unacceptable. 8225 # Some rework will be needed to allow for fast_install 8226 # before this can be enabled. 8227 hardcode_into_libs=yes 8228 8229 # find out which ABI we are using 8230 libsuff= 8231 case "$host_cpu" in 8232 x86_64*|s390x*|powerpc64*) 8233 echo '#line 8233 "configure"' > conftest.$ac_ext 8234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8235 (eval $ac_compile) 2>&5 8236 ac_status=$? 8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8238 (exit $ac_status); }; then 8239 case `/usr/bin/file conftest.$ac_objext` in 8240 *64-bit*) 8241 libsuff=64 8242 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 8243 ;; 8244 esac 8245 fi 8246 rm -rf conftest* 8247 ;; 8248 esac 8249 8250 # Append ld.so.conf contents to the search path 8251 if test -f /etc/ld.so.conf; then 8252 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' ' '` 8253 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 8254 fi 8255 8256 # We used to test for /lib/ld.so.1 and disable shared libraries on 8257 # powerpc, because MkLinux only supported shared libraries with the 8258 # GNU dynamic linker. Since this was broken with cross compilers, 8259 # most powerpc-linux boxes support dynamic linking these days and 8260 # people can always --disable-shared, the test was removed, and we 8261 # assume the GNU/Linux dynamic linker is in use. 8262 dynamic_linker='GNU/Linux ld.so' 8263 ;; 8264 8265knetbsd*-gnu) 8266 version_type=linux 8267 need_lib_prefix=no 8268 need_version=no 8269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8270 soname_spec='${libname}${release}${shared_ext}$major' 8271 shlibpath_var=LD_LIBRARY_PATH 8272 shlibpath_overrides_runpath=no 8273 hardcode_into_libs=yes 8274 dynamic_linker='GNU ld.so' 8275 ;; 8276 8277netbsd*) 8278 version_type=sunos 8279 need_lib_prefix=no 8280 need_version=no 8281 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8284 dynamic_linker='NetBSD (a.out) ld.so' 8285 else 8286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8287 soname_spec='${libname}${release}${shared_ext}$major' 8288 dynamic_linker='NetBSD ld.elf_so' 8289 fi 8290 shlibpath_var=LD_LIBRARY_PATH 8291 shlibpath_overrides_runpath=yes 8292 hardcode_into_libs=yes 8293 ;; 8294 8295newsos6) 8296 version_type=linux 8297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8298 shlibpath_var=LD_LIBRARY_PATH 8299 shlibpath_overrides_runpath=yes 8300 ;; 8301 8302nto-qnx*) 8303 version_type=linux 8304 need_lib_prefix=no 8305 need_version=no 8306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8307 soname_spec='${libname}${release}${shared_ext}$major' 8308 shlibpath_var=LD_LIBRARY_PATH 8309 shlibpath_overrides_runpath=yes 8310 ;; 8311 8312openbsd*) 8313 version_type=sunos 8314 sys_lib_dlsearch_path_spec="/usr/lib" 8315 need_lib_prefix=no 8316 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8317 case $host_os in 8318 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8319 *) need_version=no ;; 8320 esac 8321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8323 shlibpath_var=LD_LIBRARY_PATH 8324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8325 case $host_os in 8326 openbsd2.[89] | openbsd2.[89].*) 8327 shlibpath_overrides_runpath=no 8328 ;; 8329 *) 8330 shlibpath_overrides_runpath=yes 8331 ;; 8332 esac 8333 else 8334 shlibpath_overrides_runpath=yes 8335 fi 8336 ;; 8337 8338os2*) 8339 libname_spec='$name' 8340 shrext_cmds=".dll" 8341 need_lib_prefix=no 8342 library_names_spec='$libname${shared_ext} $libname.a' 8343 dynamic_linker='OS/2 ld.exe' 8344 shlibpath_var=LIBPATH 8345 ;; 8346 8347osf3* | osf4* | osf5*) 8348 version_type=osf 8349 need_lib_prefix=no 8350 need_version=no 8351 soname_spec='${libname}${release}${shared_ext}$major' 8352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8353 shlibpath_var=LD_LIBRARY_PATH 8354 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8355 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8356 ;; 8357 8358solaris*) 8359 version_type=linux 8360 need_lib_prefix=no 8361 need_version=no 8362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8363 soname_spec='${libname}${release}${shared_ext}$major' 8364 shlibpath_var=LD_LIBRARY_PATH 8365 shlibpath_overrides_runpath=yes 8366 hardcode_into_libs=yes 8367 # ldd complains unless libraries are executable 8368 postinstall_cmds='chmod +x $lib' 8369 ;; 8370 8371sunos4*) 8372 version_type=sunos 8373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8374 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8375 shlibpath_var=LD_LIBRARY_PATH 8376 shlibpath_overrides_runpath=yes 8377 if test "$with_gnu_ld" = yes; then 8378 need_lib_prefix=no 8379 fi 8380 need_version=yes 8381 ;; 8382 8383sysv4 | sysv4.3*) 8384 version_type=linux 8385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8386 soname_spec='${libname}${release}${shared_ext}$major' 8387 shlibpath_var=LD_LIBRARY_PATH 8388 case $host_vendor in 8389 sni) 8390 shlibpath_overrides_runpath=no 8391 need_lib_prefix=no 8392 export_dynamic_flag_spec='${wl}-Blargedynsym' 8393 runpath_var=LD_RUN_PATH 8394 ;; 8395 siemens) 8396 need_lib_prefix=no 8397 ;; 8398 motorola) 8399 need_lib_prefix=no 8400 need_version=no 8401 shlibpath_overrides_runpath=no 8402 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8403 ;; 8404 esac 8405 ;; 8406 8407sysv4*MP*) 8408 if test -d /usr/nec ;then 8409 version_type=linux 8410 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8411 soname_spec='$libname${shared_ext}.$major' 8412 shlibpath_var=LD_LIBRARY_PATH 8413 fi 8414 ;; 8415 8416sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8417 version_type=freebsd-elf 8418 need_lib_prefix=no 8419 need_version=no 8420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8421 soname_spec='${libname}${release}${shared_ext}$major' 8422 shlibpath_var=LD_LIBRARY_PATH 8423 hardcode_into_libs=yes 8424 if test "$with_gnu_ld" = yes; then 8425 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8426 shlibpath_overrides_runpath=no 8427 else 8428 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8429 shlibpath_overrides_runpath=yes 8430 case $host_os in 8431 sco3.2v5*) 8432 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8433 ;; 8434 esac 8435 fi 8436 sys_lib_dlsearch_path_spec='/usr/lib' 8437 ;; 8438 8439uts4*) 8440 version_type=linux 8441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8442 soname_spec='${libname}${release}${shared_ext}$major' 8443 shlibpath_var=LD_LIBRARY_PATH 8444 ;; 8445 8446*) 8447 dynamic_linker=no 8448 ;; 8449esac 8450echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8451echo "${ECHO_T}$dynamic_linker" >&6 8452test "$dynamic_linker" = no && can_build_shared=no 8453 8454variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8455if test "$GCC" = yes; then 8456 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8457fi 8458 8459echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8460echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8461hardcode_action= 8462if test -n "$hardcode_libdir_flag_spec" || \ 8463 test -n "$runpath_var" || \ 8464 test "X$hardcode_automatic" = "Xyes" ; then 8465 8466 # We can hardcode non-existant directories. 8467 if test "$hardcode_direct" != no && 8468 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8469 # have to relink, otherwise we might link with an installed library 8470 # when we should be linking with a yet-to-be-installed one 8471 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8472 test "$hardcode_minus_L" != no; then 8473 # Linking always hardcodes the temporary library directory. 8474 hardcode_action=relink 8475 else 8476 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8477 hardcode_action=immediate 8478 fi 8479else 8480 # We cannot hardcode anything, or else we can only hardcode existing 8481 # directories. 8482 hardcode_action=unsupported 8483fi 8484echo "$as_me:$LINENO: result: $hardcode_action" >&5 8485echo "${ECHO_T}$hardcode_action" >&6 8486 8487if test "$hardcode_action" = relink; then 8488 # Fast installation is not supported 8489 enable_fast_install=no 8490elif test "$shlibpath_overrides_runpath" = yes || 8491 test "$enable_shared" = no; then 8492 # Fast installation is not necessary 8493 enable_fast_install=needless 8494fi 8495 8496striplib= 8497old_striplib= 8498echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8499echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8500if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8501 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8502 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8503 echo "$as_me:$LINENO: result: yes" >&5 8504echo "${ECHO_T}yes" >&6 8505else 8506# FIXME - insert some real tests, host_os isn't really good enough 8507 case $host_os in 8508 darwin*) 8509 if test -n "$STRIP" ; then 8510 striplib="$STRIP -x" 8511 echo "$as_me:$LINENO: result: yes" >&5 8512echo "${ECHO_T}yes" >&6 8513 else 8514 echo "$as_me:$LINENO: result: no" >&5 8515echo "${ECHO_T}no" >&6 8516fi 8517 ;; 8518 *) 8519 echo "$as_me:$LINENO: result: no" >&5 8520echo "${ECHO_T}no" >&6 8521 ;; 8522 esac 8523fi 8524 8525if test "x$enable_dlopen" != xyes; then 8526 enable_dlopen=unknown 8527 enable_dlopen_self=unknown 8528 enable_dlopen_self_static=unknown 8529else 8530 lt_cv_dlopen=no 8531 lt_cv_dlopen_libs= 8532 8533 case $host_os in 8534 beos*) 8535 lt_cv_dlopen="load_add_on" 8536 lt_cv_dlopen_libs= 8537 lt_cv_dlopen_self=yes 8538 ;; 8539 8540 mingw* | pw32*) 8541 lt_cv_dlopen="LoadLibrary" 8542 lt_cv_dlopen_libs= 8543 ;; 8544 8545 cygwin*) 8546 lt_cv_dlopen="dlopen" 8547 lt_cv_dlopen_libs= 8548 ;; 8549 8550 darwin*) 8551 # if libdl is installed we need to link against it 8552 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8553echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8554if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8555 echo $ECHO_N "(cached) $ECHO_C" >&6 8556else 8557 ac_check_lib_save_LIBS=$LIBS 8558LIBS="-ldl $LIBS" 8559cat >conftest.$ac_ext <<_ACEOF 8560/* confdefs.h. */ 8561_ACEOF 8562cat confdefs.h >>conftest.$ac_ext 8563cat >>conftest.$ac_ext <<_ACEOF 8564/* end confdefs.h. */ 8565 8566/* Override any gcc2 internal prototype to avoid an error. */ 8567#ifdef __cplusplus 8568extern "C" 8569#endif 8570/* We use char because int might match the return type of a gcc2 8571 builtin and then its argument prototype would still apply. */ 8572char dlopen (); 8573int 8574main () 8575{ 8576dlopen (); 8577 ; 8578 return 0; 8579} 8580_ACEOF 8581rm -f conftest.$ac_objext conftest$ac_exeext 8582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8583 (eval $ac_link) 2>conftest.er1 8584 ac_status=$? 8585 grep -v '^ *+' conftest.er1 >conftest.err 8586 rm -f conftest.er1 8587 cat conftest.err >&5 8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8589 (exit $ac_status); } && 8590 { ac_try='test -z "$ac_c_werror_flag" 8591 || test ! -s conftest.err' 8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8593 (eval $ac_try) 2>&5 8594 ac_status=$? 8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8596 (exit $ac_status); }; } && 8597 { ac_try='test -s conftest$ac_exeext' 8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8599 (eval $ac_try) 2>&5 8600 ac_status=$? 8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8602 (exit $ac_status); }; }; then 8603 ac_cv_lib_dl_dlopen=yes 8604else 8605 echo "$as_me: failed program was:" >&5 8606sed 's/^/| /' conftest.$ac_ext >&5 8607 8608ac_cv_lib_dl_dlopen=no 8609fi 8610rm -f conftest.err conftest.$ac_objext \ 8611 conftest$ac_exeext conftest.$ac_ext 8612LIBS=$ac_check_lib_save_LIBS 8613fi 8614echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8615echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8616if test $ac_cv_lib_dl_dlopen = yes; then 8617 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8618else 8619 8620 lt_cv_dlopen="dyld" 8621 lt_cv_dlopen_libs= 8622 lt_cv_dlopen_self=yes 8623 8624fi 8625 8626 ;; 8627 8628 *) 8629 echo "$as_me:$LINENO: checking for shl_load" >&5 8630echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8631if test "${ac_cv_func_shl_load+set}" = set; then 8632 echo $ECHO_N "(cached) $ECHO_C" >&6 8633else 8634 cat >conftest.$ac_ext <<_ACEOF 8635/* confdefs.h. */ 8636_ACEOF 8637cat confdefs.h >>conftest.$ac_ext 8638cat >>conftest.$ac_ext <<_ACEOF 8639/* end confdefs.h. */ 8640/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8641 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8642#define shl_load innocuous_shl_load 8643 8644/* System header to define __stub macros and hopefully few prototypes, 8645 which can conflict with char shl_load (); below. 8646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8647 <limits.h> exists even on freestanding compilers. */ 8648 8649#ifdef __STDC__ 8650# include <limits.h> 8651#else 8652# include <assert.h> 8653#endif 8654 8655#undef shl_load 8656 8657/* Override any gcc2 internal prototype to avoid an error. */ 8658#ifdef __cplusplus 8659extern "C" 8660{ 8661#endif 8662/* We use char because int might match the return type of a gcc2 8663 builtin and then its argument prototype would still apply. */ 8664char shl_load (); 8665/* The GNU C library defines this for functions which it implements 8666 to always fail with ENOSYS. Some functions are actually named 8667 something starting with __ and the normal name is an alias. */ 8668#if defined (__stub_shl_load) || defined (__stub___shl_load) 8669choke me 8670#else 8671char (*f) () = shl_load; 8672#endif 8673#ifdef __cplusplus 8674} 8675#endif 8676 8677int 8678main () 8679{ 8680return f != shl_load; 8681 ; 8682 return 0; 8683} 8684_ACEOF 8685rm -f conftest.$ac_objext conftest$ac_exeext 8686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8687 (eval $ac_link) 2>conftest.er1 8688 ac_status=$? 8689 grep -v '^ *+' conftest.er1 >conftest.err 8690 rm -f conftest.er1 8691 cat conftest.err >&5 8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8693 (exit $ac_status); } && 8694 { ac_try='test -z "$ac_c_werror_flag" 8695 || test ! -s conftest.err' 8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8697 (eval $ac_try) 2>&5 8698 ac_status=$? 8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8700 (exit $ac_status); }; } && 8701 { ac_try='test -s conftest$ac_exeext' 8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8703 (eval $ac_try) 2>&5 8704 ac_status=$? 8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8706 (exit $ac_status); }; }; then 8707 ac_cv_func_shl_load=yes 8708else 8709 echo "$as_me: failed program was:" >&5 8710sed 's/^/| /' conftest.$ac_ext >&5 8711 8712ac_cv_func_shl_load=no 8713fi 8714rm -f conftest.err conftest.$ac_objext \ 8715 conftest$ac_exeext conftest.$ac_ext 8716fi 8717echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8718echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8719if test $ac_cv_func_shl_load = yes; then 8720 lt_cv_dlopen="shl_load" 8721else 8722 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8723echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8724if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8725 echo $ECHO_N "(cached) $ECHO_C" >&6 8726else 8727 ac_check_lib_save_LIBS=$LIBS 8728LIBS="-ldld $LIBS" 8729cat >conftest.$ac_ext <<_ACEOF 8730/* confdefs.h. */ 8731_ACEOF 8732cat confdefs.h >>conftest.$ac_ext 8733cat >>conftest.$ac_ext <<_ACEOF 8734/* end confdefs.h. */ 8735 8736/* Override any gcc2 internal prototype to avoid an error. */ 8737#ifdef __cplusplus 8738extern "C" 8739#endif 8740/* We use char because int might match the return type of a gcc2 8741 builtin and then its argument prototype would still apply. */ 8742char shl_load (); 8743int 8744main () 8745{ 8746shl_load (); 8747 ; 8748 return 0; 8749} 8750_ACEOF 8751rm -f conftest.$ac_objext conftest$ac_exeext 8752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8753 (eval $ac_link) 2>conftest.er1 8754 ac_status=$? 8755 grep -v '^ *+' conftest.er1 >conftest.err 8756 rm -f conftest.er1 8757 cat conftest.err >&5 8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8759 (exit $ac_status); } && 8760 { ac_try='test -z "$ac_c_werror_flag" 8761 || test ! -s conftest.err' 8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8763 (eval $ac_try) 2>&5 8764 ac_status=$? 8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8766 (exit $ac_status); }; } && 8767 { ac_try='test -s conftest$ac_exeext' 8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8769 (eval $ac_try) 2>&5 8770 ac_status=$? 8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8772 (exit $ac_status); }; }; then 8773 ac_cv_lib_dld_shl_load=yes 8774else 8775 echo "$as_me: failed program was:" >&5 8776sed 's/^/| /' conftest.$ac_ext >&5 8777 8778ac_cv_lib_dld_shl_load=no 8779fi 8780rm -f conftest.err conftest.$ac_objext \ 8781 conftest$ac_exeext conftest.$ac_ext 8782LIBS=$ac_check_lib_save_LIBS 8783fi 8784echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8785echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8786if test $ac_cv_lib_dld_shl_load = yes; then 8787 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8788else 8789 echo "$as_me:$LINENO: checking for dlopen" >&5 8790echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8791if test "${ac_cv_func_dlopen+set}" = set; then 8792 echo $ECHO_N "(cached) $ECHO_C" >&6 8793else 8794 cat >conftest.$ac_ext <<_ACEOF 8795/* confdefs.h. */ 8796_ACEOF 8797cat confdefs.h >>conftest.$ac_ext 8798cat >>conftest.$ac_ext <<_ACEOF 8799/* end confdefs.h. */ 8800/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8801 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8802#define dlopen innocuous_dlopen 8803 8804/* System header to define __stub macros and hopefully few prototypes, 8805 which can conflict with char dlopen (); below. 8806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8807 <limits.h> exists even on freestanding compilers. */ 8808 8809#ifdef __STDC__ 8810# include <limits.h> 8811#else 8812# include <assert.h> 8813#endif 8814 8815#undef dlopen 8816 8817/* Override any gcc2 internal prototype to avoid an error. */ 8818#ifdef __cplusplus 8819extern "C" 8820{ 8821#endif 8822/* We use char because int might match the return type of a gcc2 8823 builtin and then its argument prototype would still apply. */ 8824char dlopen (); 8825/* The GNU C library defines this for functions which it implements 8826 to always fail with ENOSYS. Some functions are actually named 8827 something starting with __ and the normal name is an alias. */ 8828#if defined (__stub_dlopen) || defined (__stub___dlopen) 8829choke me 8830#else 8831char (*f) () = dlopen; 8832#endif 8833#ifdef __cplusplus 8834} 8835#endif 8836 8837int 8838main () 8839{ 8840return f != dlopen; 8841 ; 8842 return 0; 8843} 8844_ACEOF 8845rm -f conftest.$ac_objext conftest$ac_exeext 8846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8847 (eval $ac_link) 2>conftest.er1 8848 ac_status=$? 8849 grep -v '^ *+' conftest.er1 >conftest.err 8850 rm -f conftest.er1 8851 cat conftest.err >&5 8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8853 (exit $ac_status); } && 8854 { ac_try='test -z "$ac_c_werror_flag" 8855 || test ! -s conftest.err' 8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8857 (eval $ac_try) 2>&5 8858 ac_status=$? 8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8860 (exit $ac_status); }; } && 8861 { ac_try='test -s conftest$ac_exeext' 8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8863 (eval $ac_try) 2>&5 8864 ac_status=$? 8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8866 (exit $ac_status); }; }; then 8867 ac_cv_func_dlopen=yes 8868else 8869 echo "$as_me: failed program was:" >&5 8870sed 's/^/| /' conftest.$ac_ext >&5 8871 8872ac_cv_func_dlopen=no 8873fi 8874rm -f conftest.err conftest.$ac_objext \ 8875 conftest$ac_exeext conftest.$ac_ext 8876fi 8877echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8878echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8879if test $ac_cv_func_dlopen = yes; then 8880 lt_cv_dlopen="dlopen" 8881else 8882 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8883echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8884if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8885 echo $ECHO_N "(cached) $ECHO_C" >&6 8886else 8887 ac_check_lib_save_LIBS=$LIBS 8888LIBS="-ldl $LIBS" 8889cat >conftest.$ac_ext <<_ACEOF 8890/* confdefs.h. */ 8891_ACEOF 8892cat confdefs.h >>conftest.$ac_ext 8893cat >>conftest.$ac_ext <<_ACEOF 8894/* end confdefs.h. */ 8895 8896/* Override any gcc2 internal prototype to avoid an error. */ 8897#ifdef __cplusplus 8898extern "C" 8899#endif 8900/* We use char because int might match the return type of a gcc2 8901 builtin and then its argument prototype would still apply. */ 8902char dlopen (); 8903int 8904main () 8905{ 8906dlopen (); 8907 ; 8908 return 0; 8909} 8910_ACEOF 8911rm -f conftest.$ac_objext conftest$ac_exeext 8912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8913 (eval $ac_link) 2>conftest.er1 8914 ac_status=$? 8915 grep -v '^ *+' conftest.er1 >conftest.err 8916 rm -f conftest.er1 8917 cat conftest.err >&5 8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8919 (exit $ac_status); } && 8920 { ac_try='test -z "$ac_c_werror_flag" 8921 || test ! -s conftest.err' 8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8923 (eval $ac_try) 2>&5 8924 ac_status=$? 8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8926 (exit $ac_status); }; } && 8927 { ac_try='test -s conftest$ac_exeext' 8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8929 (eval $ac_try) 2>&5 8930 ac_status=$? 8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8932 (exit $ac_status); }; }; then 8933 ac_cv_lib_dl_dlopen=yes 8934else 8935 echo "$as_me: failed program was:" >&5 8936sed 's/^/| /' conftest.$ac_ext >&5 8937 8938ac_cv_lib_dl_dlopen=no 8939fi 8940rm -f conftest.err conftest.$ac_objext \ 8941 conftest$ac_exeext conftest.$ac_ext 8942LIBS=$ac_check_lib_save_LIBS 8943fi 8944echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8945echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8946if test $ac_cv_lib_dl_dlopen = yes; then 8947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8948else 8949 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8950echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8951if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8952 echo $ECHO_N "(cached) $ECHO_C" >&6 8953else 8954 ac_check_lib_save_LIBS=$LIBS 8955LIBS="-lsvld $LIBS" 8956cat >conftest.$ac_ext <<_ACEOF 8957/* confdefs.h. */ 8958_ACEOF 8959cat confdefs.h >>conftest.$ac_ext 8960cat >>conftest.$ac_ext <<_ACEOF 8961/* end confdefs.h. */ 8962 8963/* Override any gcc2 internal prototype to avoid an error. */ 8964#ifdef __cplusplus 8965extern "C" 8966#endif 8967/* We use char because int might match the return type of a gcc2 8968 builtin and then its argument prototype would still apply. */ 8969char dlopen (); 8970int 8971main () 8972{ 8973dlopen (); 8974 ; 8975 return 0; 8976} 8977_ACEOF 8978rm -f conftest.$ac_objext conftest$ac_exeext 8979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8980 (eval $ac_link) 2>conftest.er1 8981 ac_status=$? 8982 grep -v '^ *+' conftest.er1 >conftest.err 8983 rm -f conftest.er1 8984 cat conftest.err >&5 8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8986 (exit $ac_status); } && 8987 { ac_try='test -z "$ac_c_werror_flag" 8988 || test ! -s conftest.err' 8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8990 (eval $ac_try) 2>&5 8991 ac_status=$? 8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8993 (exit $ac_status); }; } && 8994 { ac_try='test -s conftest$ac_exeext' 8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8996 (eval $ac_try) 2>&5 8997 ac_status=$? 8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8999 (exit $ac_status); }; }; then 9000 ac_cv_lib_svld_dlopen=yes 9001else 9002 echo "$as_me: failed program was:" >&5 9003sed 's/^/| /' conftest.$ac_ext >&5 9004 9005ac_cv_lib_svld_dlopen=no 9006fi 9007rm -f conftest.err conftest.$ac_objext \ 9008 conftest$ac_exeext conftest.$ac_ext 9009LIBS=$ac_check_lib_save_LIBS 9010fi 9011echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9012echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9013if test $ac_cv_lib_svld_dlopen = yes; then 9014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9015else 9016 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9017echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9018if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9019 echo $ECHO_N "(cached) $ECHO_C" >&6 9020else 9021 ac_check_lib_save_LIBS=$LIBS 9022LIBS="-ldld $LIBS" 9023cat >conftest.$ac_ext <<_ACEOF 9024/* confdefs.h. */ 9025_ACEOF 9026cat confdefs.h >>conftest.$ac_ext 9027cat >>conftest.$ac_ext <<_ACEOF 9028/* end confdefs.h. */ 9029 9030/* Override any gcc2 internal prototype to avoid an error. */ 9031#ifdef __cplusplus 9032extern "C" 9033#endif 9034/* We use char because int might match the return type of a gcc2 9035 builtin and then its argument prototype would still apply. */ 9036char dld_link (); 9037int 9038main () 9039{ 9040dld_link (); 9041 ; 9042 return 0; 9043} 9044_ACEOF 9045rm -f conftest.$ac_objext conftest$ac_exeext 9046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9047 (eval $ac_link) 2>conftest.er1 9048 ac_status=$? 9049 grep -v '^ *+' conftest.er1 >conftest.err 9050 rm -f conftest.er1 9051 cat conftest.err >&5 9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9053 (exit $ac_status); } && 9054 { ac_try='test -z "$ac_c_werror_flag" 9055 || test ! -s conftest.err' 9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9057 (eval $ac_try) 2>&5 9058 ac_status=$? 9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9060 (exit $ac_status); }; } && 9061 { ac_try='test -s conftest$ac_exeext' 9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9063 (eval $ac_try) 2>&5 9064 ac_status=$? 9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9066 (exit $ac_status); }; }; then 9067 ac_cv_lib_dld_dld_link=yes 9068else 9069 echo "$as_me: failed program was:" >&5 9070sed 's/^/| /' conftest.$ac_ext >&5 9071 9072ac_cv_lib_dld_dld_link=no 9073fi 9074rm -f conftest.err conftest.$ac_objext \ 9075 conftest$ac_exeext conftest.$ac_ext 9076LIBS=$ac_check_lib_save_LIBS 9077fi 9078echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9079echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9080if test $ac_cv_lib_dld_dld_link = yes; then 9081 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9082fi 9083 9084 9085fi 9086 9087 9088fi 9089 9090 9091fi 9092 9093 9094fi 9095 9096 9097fi 9098 9099 ;; 9100 esac 9101 9102 if test "x$lt_cv_dlopen" != xno; then 9103 enable_dlopen=yes 9104 else 9105 enable_dlopen=no 9106 fi 9107 9108 case $lt_cv_dlopen in 9109 dlopen) 9110 save_CPPFLAGS="$CPPFLAGS" 9111 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9112 9113 save_LDFLAGS="$LDFLAGS" 9114 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9115 9116 save_LIBS="$LIBS" 9117 LIBS="$lt_cv_dlopen_libs $LIBS" 9118 9119 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9120echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9121if test "${lt_cv_dlopen_self+set}" = set; then 9122 echo $ECHO_N "(cached) $ECHO_C" >&6 9123else 9124 if test "$cross_compiling" = yes; then : 9125 lt_cv_dlopen_self=cross 9126else 9127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9128 lt_status=$lt_dlunknown 9129 cat > conftest.$ac_ext <<EOF 9130#line 9130 "configure" 9131#include "confdefs.h" 9132 9133#if HAVE_DLFCN_H 9134#include <dlfcn.h> 9135#endif 9136 9137#include <stdio.h> 9138 9139#ifdef RTLD_GLOBAL 9140# define LT_DLGLOBAL RTLD_GLOBAL 9141#else 9142# ifdef DL_GLOBAL 9143# define LT_DLGLOBAL DL_GLOBAL 9144# else 9145# define LT_DLGLOBAL 0 9146# endif 9147#endif 9148 9149/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9150 find out it does not work in some platform. */ 9151#ifndef LT_DLLAZY_OR_NOW 9152# ifdef RTLD_LAZY 9153# define LT_DLLAZY_OR_NOW RTLD_LAZY 9154# else 9155# ifdef DL_LAZY 9156# define LT_DLLAZY_OR_NOW DL_LAZY 9157# else 9158# ifdef RTLD_NOW 9159# define LT_DLLAZY_OR_NOW RTLD_NOW 9160# else 9161# ifdef DL_NOW 9162# define LT_DLLAZY_OR_NOW DL_NOW 9163# else 9164# define LT_DLLAZY_OR_NOW 0 9165# endif 9166# endif 9167# endif 9168# endif 9169#endif 9170 9171#ifdef __cplusplus 9172extern "C" void exit (int); 9173#endif 9174 9175void fnord() { int i=42;} 9176int main () 9177{ 9178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9179 int status = $lt_dlunknown; 9180 9181 if (self) 9182 { 9183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9185 /* dlclose (self); */ 9186 } 9187 else 9188 puts (dlerror ()); 9189 9190 exit (status); 9191} 9192EOF 9193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9194 (eval $ac_link) 2>&5 9195 ac_status=$? 9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9197 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9198 (./conftest; exit; ) >&5 2>/dev/null 9199 lt_status=$? 9200 case x$lt_status in 9201 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9202 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9203 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9204 esac 9205 else : 9206 # compilation failed 9207 lt_cv_dlopen_self=no 9208 fi 9209fi 9210rm -fr conftest* 9211 9212 9213fi 9214echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9215echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9216 9217 if test "x$lt_cv_dlopen_self" = xyes; then 9218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9219 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9220echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9221if test "${lt_cv_dlopen_self_static+set}" = set; then 9222 echo $ECHO_N "(cached) $ECHO_C" >&6 9223else 9224 if test "$cross_compiling" = yes; then : 9225 lt_cv_dlopen_self_static=cross 9226else 9227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9228 lt_status=$lt_dlunknown 9229 cat > conftest.$ac_ext <<EOF 9230#line 9230 "configure" 9231#include "confdefs.h" 9232 9233#if HAVE_DLFCN_H 9234#include <dlfcn.h> 9235#endif 9236 9237#include <stdio.h> 9238 9239#ifdef RTLD_GLOBAL 9240# define LT_DLGLOBAL RTLD_GLOBAL 9241#else 9242# ifdef DL_GLOBAL 9243# define LT_DLGLOBAL DL_GLOBAL 9244# else 9245# define LT_DLGLOBAL 0 9246# endif 9247#endif 9248 9249/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9250 find out it does not work in some platform. */ 9251#ifndef LT_DLLAZY_OR_NOW 9252# ifdef RTLD_LAZY 9253# define LT_DLLAZY_OR_NOW RTLD_LAZY 9254# else 9255# ifdef DL_LAZY 9256# define LT_DLLAZY_OR_NOW DL_LAZY 9257# else 9258# ifdef RTLD_NOW 9259# define LT_DLLAZY_OR_NOW RTLD_NOW 9260# else 9261# ifdef DL_NOW 9262# define LT_DLLAZY_OR_NOW DL_NOW 9263# else 9264# define LT_DLLAZY_OR_NOW 0 9265# endif 9266# endif 9267# endif 9268# endif 9269#endif 9270 9271#ifdef __cplusplus 9272extern "C" void exit (int); 9273#endif 9274 9275void fnord() { int i=42;} 9276int main () 9277{ 9278 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9279 int status = $lt_dlunknown; 9280 9281 if (self) 9282 { 9283 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9284 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9285 /* dlclose (self); */ 9286 } 9287 else 9288 puts (dlerror ()); 9289 9290 exit (status); 9291} 9292EOF 9293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9294 (eval $ac_link) 2>&5 9295 ac_status=$? 9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9297 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9298 (./conftest; exit; ) >&5 2>/dev/null 9299 lt_status=$? 9300 case x$lt_status in 9301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9303 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9304 esac 9305 else : 9306 # compilation failed 9307 lt_cv_dlopen_self_static=no 9308 fi 9309fi 9310rm -fr conftest* 9311 9312 9313fi 9314echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9315echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9316 fi 9317 9318 CPPFLAGS="$save_CPPFLAGS" 9319 LDFLAGS="$save_LDFLAGS" 9320 LIBS="$save_LIBS" 9321 ;; 9322 esac 9323 9324 case $lt_cv_dlopen_self in 9325 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9326 *) enable_dlopen_self=unknown ;; 9327 esac 9328 9329 case $lt_cv_dlopen_self_static in 9330 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9331 *) enable_dlopen_self_static=unknown ;; 9332 esac 9333fi 9334 9335 9336# Report which library types will actually be built 9337echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9338echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9339echo "$as_me:$LINENO: result: $can_build_shared" >&5 9340echo "${ECHO_T}$can_build_shared" >&6 9341 9342echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9343echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9344test "$can_build_shared" = "no" && enable_shared=no 9345 9346# On AIX, shared libraries and static libraries use the same namespace, and 9347# are all built from PIC. 9348case $host_os in 9349aix3*) 9350 test "$enable_shared" = yes && enable_static=no 9351 if test -n "$RANLIB"; then 9352 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9353 postinstall_cmds='$RANLIB $lib' 9354 fi 9355 ;; 9356 9357aix4* | aix5*) 9358 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9359 test "$enable_shared" = yes && enable_static=no 9360 fi 9361 ;; 9362esac 9363echo "$as_me:$LINENO: result: $enable_shared" >&5 9364echo "${ECHO_T}$enable_shared" >&6 9365 9366echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9367echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9368# Make sure either enable_shared or enable_static is yes. 9369test "$enable_shared" = yes || enable_static=yes 9370echo "$as_me:$LINENO: result: $enable_static" >&5 9371echo "${ECHO_T}$enable_static" >&6 9372 9373# The else clause should only fire when bootstrapping the 9374# libtool distribution, otherwise you forgot to ship ltmain.sh 9375# with your package, and you will get complaints that there are 9376# no rules to generate ltmain.sh. 9377if test -f "$ltmain"; then 9378 # See if we are running on zsh, and set the options which allow our commands through 9379 # without removal of \ escapes. 9380 if test -n "${ZSH_VERSION+set}" ; then 9381 setopt NO_GLOB_SUBST 9382 fi 9383 # Now quote all the things that may contain metacharacters while being 9384 # careful not to overquote the AC_SUBSTed values. We take copies of the 9385 # variables and quote the copies for generation of the libtool script. 9386 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9387 SED SHELL STRIP \ 9388 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9389 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9390 deplibs_check_method reload_flag reload_cmds need_locks \ 9391 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9392 lt_cv_sys_global_symbol_to_c_name_address \ 9393 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9394 old_postinstall_cmds old_postuninstall_cmds \ 9395 compiler \ 9396 CC \ 9397 LD \ 9398 lt_prog_compiler_wl \ 9399 lt_prog_compiler_pic \ 9400 lt_prog_compiler_static \ 9401 lt_prog_compiler_no_builtin_flag \ 9402 export_dynamic_flag_spec \ 9403 thread_safe_flag_spec \ 9404 whole_archive_flag_spec \ 9405 enable_shared_with_static_runtimes \ 9406 old_archive_cmds \ 9407 old_archive_from_new_cmds \ 9408 predep_objects \ 9409 postdep_objects \ 9410 predeps \ 9411 postdeps \ 9412 compiler_lib_search_path \ 9413 archive_cmds \ 9414 archive_expsym_cmds \ 9415 postinstall_cmds \ 9416 postuninstall_cmds \ 9417 old_archive_from_expsyms_cmds \ 9418 allow_undefined_flag \ 9419 no_undefined_flag \ 9420 export_symbols_cmds \ 9421 hardcode_libdir_flag_spec \ 9422 hardcode_libdir_flag_spec_ld \ 9423 hardcode_libdir_separator \ 9424 hardcode_automatic \ 9425 module_cmds \ 9426 module_expsym_cmds \ 9427 lt_cv_prog_compiler_c_o \ 9428 exclude_expsyms \ 9429 include_expsyms; do 9430 9431 case $var in 9432 old_archive_cmds | \ 9433 old_archive_from_new_cmds | \ 9434 archive_cmds | \ 9435 archive_expsym_cmds | \ 9436 module_cmds | \ 9437 module_expsym_cmds | \ 9438 old_archive_from_expsyms_cmds | \ 9439 export_symbols_cmds | \ 9440 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9441 postinstall_cmds | postuninstall_cmds | \ 9442 old_postinstall_cmds | old_postuninstall_cmds | \ 9443 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9444 # Double-quote double-evaled strings. 9445 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9446 ;; 9447 *) 9448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9449 ;; 9450 esac 9451 done 9452 9453 case $lt_echo in 9454 *'\$0 --fallback-echo"') 9455 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9456 ;; 9457 esac 9458 9459cfgfile="${ofile}T" 9460 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9461 $rm -f "$cfgfile" 9462 { echo "$as_me:$LINENO: creating $ofile" >&5 9463echo "$as_me: creating $ofile" >&6;} 9464 9465 cat <<__EOF__ >> "$cfgfile" 9466#! $SHELL 9467 9468# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9469# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9470# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9471# 9472# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9473# Free Software Foundation, Inc. 9474# 9475# This file is part of GNU Libtool: 9476# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9477# 9478# This program is free software; you can redistribute it and/or modify 9479# it under the terms of the GNU General Public License as published by 9480# the Free Software Foundation; either version 2 of the License, or 9481# (at your option) any later version. 9482# 9483# This program is distributed in the hope that it will be useful, but 9484# WITHOUT ANY WARRANTY; without even the implied warranty of 9485# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9486# General Public License for more details. 9487# 9488# You should have received a copy of the GNU General Public License 9489# along with this program; if not, write to the Free Software 9490# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9491# 9492# As a special exception to the GNU General Public License, if you 9493# distribute this file as part of a program that contains a 9494# configuration script generated by Autoconf, you may include it under 9495# the same distribution terms that you use for the rest of that program. 9496 9497# A sed program that does not truncate output. 9498SED=$lt_SED 9499 9500# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9501Xsed="$SED -e 1s/^X//" 9502 9503# The HP-UX ksh and POSIX shell print the target directory to stdout 9504# if CDPATH is set. 9505(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9506 9507# The names of the tagged configurations supported by this script. 9508available_tags= 9509 9510# ### BEGIN LIBTOOL CONFIG 9511 9512# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9513 9514# Shell to use when invoking shell scripts. 9515SHELL=$lt_SHELL 9516 9517# Whether or not to build shared libraries. 9518build_libtool_libs=$enable_shared 9519 9520# Whether or not to build static libraries. 9521build_old_libs=$enable_static 9522 9523# Whether or not to add -lc for building shared libraries. 9524build_libtool_need_lc=$archive_cmds_need_lc 9525 9526# Whether or not to disallow shared libs when runtime libs are static 9527allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9528 9529# Whether or not to optimize for fast installation. 9530fast_install=$enable_fast_install 9531 9532# The host system. 9533host_alias=$host_alias 9534host=$host 9535host_os=$host_os 9536 9537# The build system. 9538build_alias=$build_alias 9539build=$build 9540build_os=$build_os 9541 9542# An echo program that does not interpret backslashes. 9543echo=$lt_echo 9544 9545# The archiver. 9546AR=$lt_AR 9547AR_FLAGS=$lt_AR_FLAGS 9548 9549# A C compiler. 9550LTCC=$lt_LTCC 9551 9552# LTCC compiler flags. 9553LTCFLAGS=$lt_LTCFLAGS 9554 9555# A language-specific compiler. 9556CC=$lt_compiler 9557 9558# Is the compiler the GNU C compiler? 9559with_gcc=$GCC 9560 9561gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 9562gcc_ver=\`gcc -dumpversion\` 9563 9564# An ERE matcher. 9565EGREP=$lt_EGREP 9566 9567# The linker used to build libraries. 9568LD=$lt_LD 9569 9570# Whether we need hard or soft links. 9571LN_S=$lt_LN_S 9572 9573# A BSD-compatible nm program. 9574NM=$lt_NM 9575 9576# A symbol stripping program 9577STRIP=$lt_STRIP 9578 9579# Used to examine libraries when file_magic_cmd begins "file" 9580MAGIC_CMD=$MAGIC_CMD 9581 9582# Used on cygwin: DLL creation program. 9583DLLTOOL="$DLLTOOL" 9584 9585# Used on cygwin: object dumper. 9586OBJDUMP="$OBJDUMP" 9587 9588# Used on cygwin: assembler. 9589AS="$AS" 9590 9591# The name of the directory that contains temporary libtool files. 9592objdir=$objdir 9593 9594# How to create reloadable object files. 9595reload_flag=$lt_reload_flag 9596reload_cmds=$lt_reload_cmds 9597 9598# How to pass a linker flag through the compiler. 9599wl=$lt_lt_prog_compiler_wl 9600 9601# Object file suffix (normally "o"). 9602objext="$ac_objext" 9603 9604# Old archive suffix (normally "a"). 9605libext="$libext" 9606 9607# Shared library suffix (normally ".so"). 9608shrext_cmds='$shrext_cmds' 9609 9610# Executable file suffix (normally ""). 9611exeext="$exeext" 9612 9613# Additional compiler flags for building library objects. 9614pic_flag=$lt_lt_prog_compiler_pic 9615pic_mode=$pic_mode 9616 9617# What is the maximum length of a command? 9618max_cmd_len=$lt_cv_sys_max_cmd_len 9619 9620# Does compiler simultaneously support -c and -o options? 9621compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9622 9623# Must we lock files when doing compilation? 9624need_locks=$lt_need_locks 9625 9626# Do we need the lib prefix for modules? 9627need_lib_prefix=$need_lib_prefix 9628 9629# Do we need a version for libraries? 9630need_version=$need_version 9631 9632# Whether dlopen is supported. 9633dlopen_support=$enable_dlopen 9634 9635# Whether dlopen of programs is supported. 9636dlopen_self=$enable_dlopen_self 9637 9638# Whether dlopen of statically linked programs is supported. 9639dlopen_self_static=$enable_dlopen_self_static 9640 9641# Compiler flag to prevent dynamic linking. 9642link_static_flag=$lt_lt_prog_compiler_static 9643 9644# Compiler flag to turn off builtin functions. 9645no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9646 9647# Compiler flag to allow reflexive dlopens. 9648export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9649 9650# Compiler flag to generate shared objects directly from archives. 9651whole_archive_flag_spec=$lt_whole_archive_flag_spec 9652 9653# Compiler flag to generate thread-safe objects. 9654thread_safe_flag_spec=$lt_thread_safe_flag_spec 9655 9656# Library versioning type. 9657version_type=$version_type 9658 9659# Format of library name prefix. 9660libname_spec=$lt_libname_spec 9661 9662# List of archive names. First name is the real one, the rest are links. 9663# The last name is the one that the linker finds with -lNAME. 9664library_names_spec=$lt_library_names_spec 9665 9666# The coded name of the library, if different from the real name. 9667soname_spec=$lt_soname_spec 9668 9669# Commands used to build and install an old-style archive. 9670RANLIB=$lt_RANLIB 9671old_archive_cmds=$lt_old_archive_cmds 9672old_postinstall_cmds=$lt_old_postinstall_cmds 9673old_postuninstall_cmds=$lt_old_postuninstall_cmds 9674 9675# Create an old-style archive from a shared archive. 9676old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9677 9678# Create a temporary old-style archive to link instead of a shared archive. 9679old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9680 9681# Commands used to build and install a shared archive. 9682archive_cmds=$lt_archive_cmds 9683archive_expsym_cmds=$lt_archive_expsym_cmds 9684postinstall_cmds=$lt_postinstall_cmds 9685postuninstall_cmds=$lt_postuninstall_cmds 9686 9687# Commands used to build a loadable module (assumed same as above if empty) 9688module_cmds=$lt_module_cmds 9689module_expsym_cmds=$lt_module_expsym_cmds 9690 9691# Commands to strip libraries. 9692old_striplib=$lt_old_striplib 9693striplib=$lt_striplib 9694 9695# Dependencies to place before the objects being linked to create a 9696# shared library. 9697predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9698 9699# Dependencies to place after the objects being linked to create a 9700# shared library. 9701postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9702 9703# Dependencies to place before the objects being linked to create a 9704# shared library. 9705predeps=$lt_predeps 9706 9707# Dependencies to place after the objects being linked to create a 9708# shared library. 9709postdeps=$lt_postdeps 9710 9711# The library search path used internally by the compiler when linking 9712# a shared library. 9713compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9714 9715# Method to check whether dependent libraries are shared objects. 9716deplibs_check_method=$lt_deplibs_check_method 9717 9718# Command to use when deplibs_check_method == file_magic. 9719file_magic_cmd=$lt_file_magic_cmd 9720 9721# Flag that allows shared libraries with undefined symbols to be built. 9722allow_undefined_flag=$lt_allow_undefined_flag 9723 9724# Flag that forces no undefined symbols. 9725no_undefined_flag=$lt_no_undefined_flag 9726 9727# Commands used to finish a libtool library installation in a directory. 9728finish_cmds=$lt_finish_cmds 9729 9730# Same as above, but a single script fragment to be evaled but not shown. 9731finish_eval=$lt_finish_eval 9732 9733# Take the output of nm and produce a listing of raw symbols and C names. 9734global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9735 9736# Transform the output of nm in a proper C declaration 9737global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9738 9739# Transform the output of nm in a C name address pair 9740global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9741 9742# This is the shared library runtime path variable. 9743runpath_var=$runpath_var 9744 9745# This is the shared library path variable. 9746shlibpath_var=$shlibpath_var 9747 9748# Is shlibpath searched before the hard-coded library search path? 9749shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9750 9751# How to hardcode a shared library path into an executable. 9752hardcode_action=$hardcode_action 9753 9754# Whether we should hardcode library paths into libraries. 9755hardcode_into_libs=$hardcode_into_libs 9756 9757# Flag to hardcode \$libdir into a binary during linking. 9758# This must work even if \$libdir does not exist. 9759hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9760 9761# If ld is used when linking, flag to hardcode \$libdir into 9762# a binary during linking. This must work even if \$libdir does 9763# not exist. 9764hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9765 9766# Whether we need a single -rpath flag with a separated argument. 9767hardcode_libdir_separator=$lt_hardcode_libdir_separator 9768 9769# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9770# resulting binary. 9771hardcode_direct=$hardcode_direct 9772 9773# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9774# resulting binary. 9775hardcode_minus_L=$hardcode_minus_L 9776 9777# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9778# the resulting binary. 9779hardcode_shlibpath_var=$hardcode_shlibpath_var 9780 9781# Set to yes if building a shared library automatically hardcodes DIR into the library 9782# and all subsequent libraries and executables linked against it. 9783hardcode_automatic=$hardcode_automatic 9784 9785# Variables whose values should be saved in libtool wrapper scripts and 9786# restored at relink time. 9787variables_saved_for_relink="$variables_saved_for_relink" 9788 9789# Whether libtool must link a program against all its dependency libraries. 9790link_all_deplibs=$link_all_deplibs 9791 9792# Compile-time system search path for libraries 9793sys_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"\` 9794 9795# Run-time system search path for libraries 9796sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9797 9798# Fix the shell variable \$srcfile for the compiler. 9799fix_srcfile_path="$fix_srcfile_path" 9800 9801# Set to yes if exported symbols are required. 9802always_export_symbols=$always_export_symbols 9803 9804# The commands to list exported symbols. 9805export_symbols_cmds=$lt_export_symbols_cmds 9806 9807# The commands to extract the exported symbol list from a shared archive. 9808extract_expsyms_cmds=$lt_extract_expsyms_cmds 9809 9810# Symbols that should not be listed in the preloaded symbols. 9811exclude_expsyms=$lt_exclude_expsyms 9812 9813# Symbols that must always be exported. 9814include_expsyms=$lt_include_expsyms 9815 9816# ### END LIBTOOL CONFIG 9817 9818__EOF__ 9819 9820 9821 case $host_os in 9822 aix3*) 9823 cat <<\EOF >> "$cfgfile" 9824 9825# AIX sometimes has problems with the GCC collect2 program. For some 9826# reason, if we set the COLLECT_NAMES environment variable, the problems 9827# vanish in a puff of smoke. 9828if test "X${COLLECT_NAMES+set}" != Xset; then 9829 COLLECT_NAMES= 9830 export COLLECT_NAMES 9831fi 9832EOF 9833 ;; 9834 esac 9835 9836 # We use sed instead of cat because bash on DJGPP gets confused if 9837 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9838 # text mode, it properly converts lines to CR/LF. This bash problem 9839 # is reportedly fixed, but why not run on old versions too? 9840 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9841 9842 mv -f "$cfgfile" "$ofile" || \ 9843 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9844 chmod +x "$ofile" 9845 9846else 9847 # If there is no Makefile yet, we rely on a make rule to execute 9848 # `config.status --recheck' to rerun these tests and create the 9849 # libtool script then. 9850 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9851 if test -f "$ltmain_in"; then 9852 test -f Makefile && make "$ltmain" 9853 fi 9854fi 9855 9856 9857ac_ext=c 9858ac_cpp='$CPP $CPPFLAGS' 9859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9861ac_compiler_gnu=$ac_cv_c_compiler_gnu 9862 9863CC="$lt_save_CC" 9864 9865 9866# Check whether --with-tags or --without-tags was given. 9867if test "${with_tags+set}" = set; then 9868 withval="$with_tags" 9869 tagnames="$withval" 9870fi; 9871 9872if test -f "$ltmain" && test -n "$tagnames"; then 9873 if test ! -f "${ofile}"; then 9874 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9875echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9876 fi 9877 9878 if test -z "$LTCC"; then 9879 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9880 if test -z "$LTCC"; then 9881 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9882echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9883 else 9884 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9885echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9886 fi 9887 fi 9888 if test -z "$LTCFLAGS"; then 9889 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 9890 fi 9891 9892 # Extract list of available tagged configurations in $ofile. 9893 # Note that this assumes the entire list is on one line. 9894 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9895 9896 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9897 for tagname in $tagnames; do 9898 IFS="$lt_save_ifs" 9899 # Check whether tagname contains only valid characters 9900 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9901 "") ;; 9902 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9903echo "$as_me: error: invalid tag name: $tagname" >&2;} 9904 { (exit 1); exit 1; }; } 9905 ;; 9906 esac 9907 9908 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9909 then 9910 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9911echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9912 { (exit 1); exit 1; }; } 9913 fi 9914 9915 # Update the list of available tags. 9916 if test -n "$tagname"; then 9917 echo appending configuration tag \"$tagname\" to $ofile 9918 9919 case $tagname in 9920 CXX) 9921 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9922 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9923 (test "X$CXX" != "Xg++"))) ; then 9924 ac_ext=cc 9925ac_cpp='$CXXCPP $CPPFLAGS' 9926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9929 9930 9931 9932 9933archive_cmds_need_lc_CXX=no 9934allow_undefined_flag_CXX= 9935always_export_symbols_CXX=no 9936archive_expsym_cmds_CXX= 9937export_dynamic_flag_spec_CXX= 9938hardcode_direct_CXX=no 9939hardcode_libdir_flag_spec_CXX= 9940hardcode_libdir_flag_spec_ld_CXX= 9941hardcode_libdir_separator_CXX= 9942hardcode_minus_L_CXX=no 9943hardcode_shlibpath_var_CXX=unsupported 9944hardcode_automatic_CXX=no 9945module_cmds_CXX= 9946module_expsym_cmds_CXX= 9947link_all_deplibs_CXX=unknown 9948old_archive_cmds_CXX=$old_archive_cmds 9949no_undefined_flag_CXX= 9950whole_archive_flag_spec_CXX= 9951enable_shared_with_static_runtimes_CXX=no 9952 9953# Dependencies to place before and after the object being linked: 9954predep_objects_CXX= 9955postdep_objects_CXX= 9956predeps_CXX= 9957postdeps_CXX= 9958compiler_lib_search_path_CXX= 9959 9960# Source file extension for C++ test sources. 9961ac_ext=cpp 9962 9963# Object file extension for compiled C++ test sources. 9964objext=o 9965objext_CXX=$objext 9966 9967# Code to be used in simple compile tests 9968lt_simple_compile_test_code="int some_variable = 0;\n" 9969 9970# Code to be used in simple link tests 9971lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 9972 9973# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9974 9975# If no C compiler was specified, use CC. 9976LTCC=${LTCC-"$CC"} 9977 9978# If no C compiler flags were specified, use CFLAGS. 9979LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9980 9981# Allow CC to be a program name with arguments. 9982compiler=$CC 9983 9984 9985# save warnings/boilerplate of simple test code 9986ac_outfile=conftest.$ac_objext 9987printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9988eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9989_lt_compiler_boilerplate=`cat conftest.err` 9990$rm conftest* 9991 9992ac_outfile=conftest.$ac_objext 9993printf "$lt_simple_link_test_code" >conftest.$ac_ext 9994eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9995_lt_linker_boilerplate=`cat conftest.err` 9996$rm conftest* 9997 9998 9999# Allow CC to be a program name with arguments. 10000lt_save_CC=$CC 10001lt_save_LD=$LD 10002lt_save_GCC=$GCC 10003GCC=$GXX 10004lt_save_with_gnu_ld=$with_gnu_ld 10005lt_save_path_LD=$lt_cv_path_LD 10006if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10007 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10008else 10009 $as_unset lt_cv_prog_gnu_ld 10010fi 10011if test -n "${lt_cv_path_LDCXX+set}"; then 10012 lt_cv_path_LD=$lt_cv_path_LDCXX 10013else 10014 $as_unset lt_cv_path_LD 10015fi 10016test -z "${LDCXX+set}" || LD=$LDCXX 10017CC=${CXX-"c++"} 10018compiler=$CC 10019compiler_CXX=$CC 10020for cc_temp in $compiler""; do 10021 case $cc_temp in 10022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10024 \-*) ;; 10025 *) break;; 10026 esac 10027done 10028cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10029 10030 10031# We don't want -fno-exception wen compiling C++ code, so set the 10032# no_builtin_flag separately 10033if test "$GXX" = yes; then 10034 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10035else 10036 lt_prog_compiler_no_builtin_flag_CXX= 10037fi 10038 10039if test "$GXX" = yes; then 10040 # Set up default GNU C++ configuration 10041 10042 10043# Check whether --with-gnu-ld or --without-gnu-ld was given. 10044if test "${with_gnu_ld+set}" = set; then 10045 withval="$with_gnu_ld" 10046 test "$withval" = no || with_gnu_ld=yes 10047else 10048 with_gnu_ld=no 10049fi; 10050ac_prog=ld 10051if test "$GCC" = yes; then 10052 # Check if gcc -print-prog-name=ld gives a path. 10053 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10054echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10055 case $host in 10056 *-*-mingw*) 10057 # gcc leaves a trailing carriage return which upsets mingw 10058 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10059 *) 10060 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10061 esac 10062 case $ac_prog in 10063 # Accept absolute paths. 10064 [\\/]* | ?:[\\/]*) 10065 re_direlt='/[^/][^/]*/\.\./' 10066 # Canonicalize the pathname of ld 10067 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10068 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10069 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10070 done 10071 test -z "$LD" && LD="$ac_prog" 10072 ;; 10073 "") 10074 # If it fails, then pretend we aren't using GCC. 10075 ac_prog=ld 10076 ;; 10077 *) 10078 # If it is relative, then search for the first ld in PATH. 10079 with_gnu_ld=unknown 10080 ;; 10081 esac 10082elif test "$with_gnu_ld" = yes; then 10083 echo "$as_me:$LINENO: checking for GNU ld" >&5 10084echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10085else 10086 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10087echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10088fi 10089if test "${lt_cv_path_LD+set}" = set; then 10090 echo $ECHO_N "(cached) $ECHO_C" >&6 10091else 10092 if test -z "$LD"; then 10093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10094 for ac_dir in $PATH; do 10095 IFS="$lt_save_ifs" 10096 test -z "$ac_dir" && ac_dir=. 10097 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10098 lt_cv_path_LD="$ac_dir/$ac_prog" 10099 # Check to see if the program is GNU ld. I'd rather use --version, 10100 # but apparently some variants of GNU ld only accept -v. 10101 # Break only if it was the GNU/non-GNU ld that we prefer. 10102 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10103 *GNU* | *'with BFD'*) 10104 test "$with_gnu_ld" != no && break 10105 ;; 10106 *) 10107 test "$with_gnu_ld" != yes && break 10108 ;; 10109 esac 10110 fi 10111 done 10112 IFS="$lt_save_ifs" 10113else 10114 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10115fi 10116fi 10117 10118LD="$lt_cv_path_LD" 10119if test -n "$LD"; then 10120 echo "$as_me:$LINENO: result: $LD" >&5 10121echo "${ECHO_T}$LD" >&6 10122else 10123 echo "$as_me:$LINENO: result: no" >&5 10124echo "${ECHO_T}no" >&6 10125fi 10126test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10127echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10128 { (exit 1); exit 1; }; } 10129echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10130echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10131if test "${lt_cv_prog_gnu_ld+set}" = set; then 10132 echo $ECHO_N "(cached) $ECHO_C" >&6 10133else 10134 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10135case `$LD -v 2>&1 </dev/null` in 10136*GNU* | *'with BFD'*) 10137 lt_cv_prog_gnu_ld=yes 10138 ;; 10139*) 10140 lt_cv_prog_gnu_ld=no 10141 ;; 10142esac 10143fi 10144echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10145echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10146with_gnu_ld=$lt_cv_prog_gnu_ld 10147 10148 10149 10150 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10151 # archiving commands below assume that GNU ld is being used. 10152 if test "$with_gnu_ld" = yes; then 10153 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10154 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' 10155 10156 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10158 10159 # If archive_cmds runs LD, not CC, wlarc should be empty 10160 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10161 # investigate it a little bit more. (MM) 10162 wlarc='${wl}' 10163 10164 # ancient GNU ld didn't support --whole-archive et. al. 10165 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10166 grep 'no-whole-archive' > /dev/null; then 10167 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10168 else 10169 whole_archive_flag_spec_CXX= 10170 fi 10171 else 10172 with_gnu_ld=no 10173 wlarc= 10174 10175 # A generic and very simple default shared library creation 10176 # command for GNU C++ for the case where it uses the native 10177 # linker, instead of GNU ld. If possible, this setting should 10178 # overridden to take advantage of the native linker features on 10179 # the platform it is being used on. 10180 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10181 fi 10182 10183 # Commands to make compiler produce verbose output that lists 10184 # what "hidden" libraries, object files and flags are used when 10185 # linking a shared library. 10186 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10187 10188else 10189 GXX=no 10190 with_gnu_ld=no 10191 wlarc= 10192fi 10193 10194# PORTME: fill in a description of your system's C++ link characteristics 10195echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10196echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10197ld_shlibs_CXX=yes 10198case $host_os in 10199 aix3*) 10200 # FIXME: insert proper C++ library support 10201 ld_shlibs_CXX=no 10202 ;; 10203 aix4* | aix5*) 10204 if test "$host_cpu" = ia64; then 10205 # On IA64, the linker does run time linking by default, so we don't 10206 # have to do anything special. 10207 aix_use_runtimelinking=no 10208 exp_sym_flag='-Bexport' 10209 no_entry_flag="" 10210 else 10211 aix_use_runtimelinking=no 10212 10213 # Test if we are trying to use run time linking or normal 10214 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10215 # need to do runtime linking. 10216 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10217 for ld_flag in $LDFLAGS; do 10218 case $ld_flag in 10219 *-brtl*) 10220 aix_use_runtimelinking=yes 10221 break 10222 ;; 10223 esac 10224 done 10225 ;; 10226 esac 10227 10228 exp_sym_flag='-bexport' 10229 no_entry_flag='-bnoentry' 10230 fi 10231 10232 # When large executables or shared objects are built, AIX ld can 10233 # have problems creating the table of contents. If linking a library 10234 # or program results in "error TOC overflow" add -mminimal-toc to 10235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10237 10238 archive_cmds_CXX='' 10239 hardcode_direct_CXX=yes 10240 hardcode_libdir_separator_CXX=':' 10241 link_all_deplibs_CXX=yes 10242 10243 if test "$GXX" = yes; then 10244 case $host_os in aix4.[012]|aix4.[012].*) 10245 # We only want to do this on AIX 4.2 and lower, the check 10246 # below for broken collect2 doesn't work under 4.3+ 10247 collect2name=`${CC} -print-prog-name=collect2` 10248 if test -f "$collect2name" && \ 10249 strings "$collect2name" | grep resolve_lib_name >/dev/null 10250 then 10251 # We have reworked collect2 10252 hardcode_direct_CXX=yes 10253 else 10254 # We have old collect2 10255 hardcode_direct_CXX=unsupported 10256 # It fails to find uninstalled libraries when the uninstalled 10257 # path is not listed in the libpath. Setting hardcode_minus_L 10258 # to unsupported forces relinking 10259 hardcode_minus_L_CXX=yes 10260 hardcode_libdir_flag_spec_CXX='-L$libdir' 10261 hardcode_libdir_separator_CXX= 10262 fi 10263 ;; 10264 esac 10265 shared_flag='-shared' 10266 if test "$aix_use_runtimelinking" = yes; then 10267 shared_flag="$shared_flag "'${wl}-G' 10268 fi 10269 else 10270 # not using gcc 10271 if test "$host_cpu" = ia64; then 10272 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10273 # chokes on -Wl,-G. The following line is correct: 10274 shared_flag='-G' 10275 else 10276 if test "$aix_use_runtimelinking" = yes; then 10277 shared_flag='${wl}-G' 10278 else 10279 shared_flag='${wl}-bM:SRE' 10280 fi 10281 fi 10282 fi 10283 10284 # It seems that -bexpall does not export symbols beginning with 10285 # underscore (_), so it is better to generate a list of symbols to export. 10286 always_export_symbols_CXX=yes 10287 if test "$aix_use_runtimelinking" = yes; then 10288 # Warning - without using the other runtime loading flags (-brtl), 10289 # -berok will link without error, but may produce a broken library. 10290 allow_undefined_flag_CXX='-berok' 10291 # Determine the default libpath from the value encoded in an empty executable. 10292 cat >conftest.$ac_ext <<_ACEOF 10293/* confdefs.h. */ 10294_ACEOF 10295cat confdefs.h >>conftest.$ac_ext 10296cat >>conftest.$ac_ext <<_ACEOF 10297/* end confdefs.h. */ 10298 10299int 10300main () 10301{ 10302 10303 ; 10304 return 0; 10305} 10306_ACEOF 10307rm -f conftest.$ac_objext conftest$ac_exeext 10308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10309 (eval $ac_link) 2>conftest.er1 10310 ac_status=$? 10311 grep -v '^ *+' conftest.er1 >conftest.err 10312 rm -f conftest.er1 10313 cat conftest.err >&5 10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10315 (exit $ac_status); } && 10316 { ac_try='test -z "$ac_cxx_werror_flag" 10317 || test ! -s conftest.err' 10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10319 (eval $ac_try) 2>&5 10320 ac_status=$? 10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10322 (exit $ac_status); }; } && 10323 { ac_try='test -s conftest$ac_exeext' 10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10325 (eval $ac_try) 2>&5 10326 ac_status=$? 10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10328 (exit $ac_status); }; }; then 10329 10330aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10331}'` 10332# Check for a 64-bit object if we didn't find anything. 10333if 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; } 10334}'`; fi 10335else 10336 echo "$as_me: failed program was:" >&5 10337sed 's/^/| /' conftest.$ac_ext >&5 10338 10339fi 10340rm -f conftest.err conftest.$ac_objext \ 10341 conftest$ac_exeext conftest.$ac_ext 10342if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10343 10344 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10345 10346 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" 10347 else 10348 if test "$host_cpu" = ia64; then 10349 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10350 allow_undefined_flag_CXX="-z nodefs" 10351 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" 10352 else 10353 # Determine the default libpath from the value encoded in an empty executable. 10354 cat >conftest.$ac_ext <<_ACEOF 10355/* confdefs.h. */ 10356_ACEOF 10357cat confdefs.h >>conftest.$ac_ext 10358cat >>conftest.$ac_ext <<_ACEOF 10359/* end confdefs.h. */ 10360 10361int 10362main () 10363{ 10364 10365 ; 10366 return 0; 10367} 10368_ACEOF 10369rm -f conftest.$ac_objext conftest$ac_exeext 10370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10371 (eval $ac_link) 2>conftest.er1 10372 ac_status=$? 10373 grep -v '^ *+' conftest.er1 >conftest.err 10374 rm -f conftest.er1 10375 cat conftest.err >&5 10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10377 (exit $ac_status); } && 10378 { ac_try='test -z "$ac_cxx_werror_flag" 10379 || test ! -s conftest.err' 10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10381 (eval $ac_try) 2>&5 10382 ac_status=$? 10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10384 (exit $ac_status); }; } && 10385 { ac_try='test -s conftest$ac_exeext' 10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10387 (eval $ac_try) 2>&5 10388 ac_status=$? 10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10390 (exit $ac_status); }; }; then 10391 10392aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10393}'` 10394# Check for a 64-bit object if we didn't find anything. 10395if 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; } 10396}'`; fi 10397else 10398 echo "$as_me: failed program was:" >&5 10399sed 's/^/| /' conftest.$ac_ext >&5 10400 10401fi 10402rm -f conftest.err conftest.$ac_objext \ 10403 conftest$ac_exeext conftest.$ac_ext 10404if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10405 10406 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10407 # Warning - without using the other run time loading flags, 10408 # -berok will link without error, but may produce a broken library. 10409 no_undefined_flag_CXX=' ${wl}-bernotok' 10410 allow_undefined_flag_CXX=' ${wl}-berok' 10411 # Exported symbols can be pulled into shared objects from archives 10412 whole_archive_flag_spec_CXX='$convenience' 10413 archive_cmds_need_lc_CXX=yes 10414 # This is similar to how AIX traditionally builds its shared libraries. 10415 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' 10416 fi 10417 fi 10418 ;; 10419 10420 beos*) 10421 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10422 allow_undefined_flag_CXX=unsupported 10423 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10424 # support --undefined. This deserves some investigation. FIXME 10425 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10426 else 10427 ld_shlibs_CXX=no 10428 fi 10429 ;; 10430 10431 chorus*) 10432 case $cc_basename in 10433 *) 10434 # FIXME: insert proper C++ library support 10435 ld_shlibs_CXX=no 10436 ;; 10437 esac 10438 ;; 10439 10440 cygwin* | mingw* | pw32*) 10441 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10442 # as there is no search path for DLLs. 10443 hardcode_libdir_flag_spec_CXX='-L$libdir' 10444 allow_undefined_flag_CXX=unsupported 10445 always_export_symbols_CXX=no 10446 enable_shared_with_static_runtimes_CXX=yes 10447 10448 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10449 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' 10450 # If the export-symbols file already is a .def file (1st line 10451 # is EXPORTS), use it as is; otherwise, prepend... 10452 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10453 cp $export_symbols $output_objdir/$soname.def; 10454 else 10455 echo EXPORTS > $output_objdir/$soname.def; 10456 cat $export_symbols >> $output_objdir/$soname.def; 10457 fi~ 10458 $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' 10459 else 10460 ld_shlibs_CXX=no 10461 fi 10462 ;; 10463 darwin* | rhapsody*) 10464 case $host_os in 10465 rhapsody* | darwin1.[012]) 10466 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10467 ;; 10468 *) # Darwin 1.3 on 10469 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10470 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10471 else 10472 case ${MACOSX_DEPLOYMENT_TARGET} in 10473 10.[012]) 10474 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10475 ;; 10476 10.*) 10477 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10478 ;; 10479 esac 10480 fi 10481 ;; 10482 esac 10483 archive_cmds_need_lc_CXX=no 10484 hardcode_direct_CXX=no 10485 hardcode_automatic_CXX=yes 10486 hardcode_shlibpath_var_CXX=unsupported 10487 whole_archive_flag_spec_CXX='' 10488 link_all_deplibs_CXX=yes 10489 10490 if test "$GXX" = yes ; then 10491 lt_int_apple_cc_single_mod=no 10492 output_verbose_link_cmd='echo' 10493 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10494 lt_int_apple_cc_single_mod=yes 10495 fi 10496 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10497 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10498 else 10499 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' 10500 fi 10501 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10503 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10504 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}' 10505 else 10506 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}' 10507 fi 10508 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}' 10509 else 10510 case $cc_basename in 10511 xlc*) 10512 output_verbose_link_cmd='echo' 10513 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' 10514 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10516 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}' 10517 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}' 10518 ;; 10519 *) 10520 ld_shlibs_CXX=no 10521 ;; 10522 esac 10523 fi 10524 ;; 10525 10526 dgux*) 10527 case $cc_basename in 10528 ec++*) 10529 # FIXME: insert proper C++ library support 10530 ld_shlibs_CXX=no 10531 ;; 10532 ghcx*) 10533 # Green Hills C++ Compiler 10534 # FIXME: insert proper C++ library support 10535 ld_shlibs_CXX=no 10536 ;; 10537 *) 10538 # FIXME: insert proper C++ library support 10539 ld_shlibs_CXX=no 10540 ;; 10541 esac 10542 ;; 10543 freebsd[12]*) 10544 # C++ shared libraries reported to be fairly broken before switch to ELF 10545 ld_shlibs_CXX=no 10546 ;; 10547 freebsd-elf*) 10548 archive_cmds_need_lc_CXX=no 10549 ;; 10550 freebsd* | kfreebsd*-gnu | dragonfly*) 10551 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10552 # conventions 10553 ld_shlibs_CXX=yes 10554 ;; 10555 gnu*) 10556 ;; 10557 hpux9*) 10558 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10559 hardcode_libdir_separator_CXX=: 10560 export_dynamic_flag_spec_CXX='${wl}-E' 10561 hardcode_direct_CXX=yes 10562 hardcode_minus_L_CXX=yes # Not in the search PATH, 10563 # but as the default 10564 # location of the library. 10565 10566 case $cc_basename in 10567 CC*) 10568 # FIXME: insert proper C++ library support 10569 ld_shlibs_CXX=no 10570 ;; 10571 aCC*) 10572 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' 10573 # Commands to make compiler produce verbose output that lists 10574 # what "hidden" libraries, object files and flags are used when 10575 # linking a shared library. 10576 # 10577 # There doesn't appear to be a way to prevent this compiler from 10578 # explicitly linking system object files so we need to strip them 10579 # from the output so that they don't get included in the library 10580 # dependencies. 10581 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' 10582 ;; 10583 *) 10584 if test "$GXX" = yes; then 10585 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' 10586 else 10587 # FIXME: insert proper C++ library support 10588 ld_shlibs_CXX=no 10589 fi 10590 ;; 10591 esac 10592 ;; 10593 hpux10*|hpux11*) 10594 if test $with_gnu_ld = no; then 10595 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10596 hardcode_libdir_separator_CXX=: 10597 10598 case $host_cpu in 10599 hppa*64*|ia64*) 10600 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10601 ;; 10602 *) 10603 export_dynamic_flag_spec_CXX='${wl}-E' 10604 ;; 10605 esac 10606 fi 10607 case $host_cpu in 10608 hppa*64*|ia64*) 10609 hardcode_direct_CXX=no 10610 hardcode_shlibpath_var_CXX=no 10611 ;; 10612 *) 10613 hardcode_direct_CXX=yes 10614 hardcode_minus_L_CXX=yes # Not in the search PATH, 10615 # but as the default 10616 # location of the library. 10617 ;; 10618 esac 10619 10620 case $cc_basename in 10621 CC*) 10622 # FIXME: insert proper C++ library support 10623 ld_shlibs_CXX=no 10624 ;; 10625 aCC*) 10626 case $host_cpu in 10627 hppa*64*) 10628 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10629 ;; 10630 ia64*) 10631 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10632 ;; 10633 *) 10634 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10635 ;; 10636 esac 10637 # Commands to make compiler produce verbose output that lists 10638 # what "hidden" libraries, object files and flags are used when 10639 # linking a shared library. 10640 # 10641 # There doesn't appear to be a way to prevent this compiler from 10642 # explicitly linking system object files so we need to strip them 10643 # from the output so that they don't get included in the library 10644 # dependencies. 10645 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' 10646 ;; 10647 *) 10648 if test "$GXX" = yes; then 10649 if test $with_gnu_ld = no; then 10650 case $host_cpu in 10651 hppa*64*) 10652 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10653 ;; 10654 ia64*) 10655 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10656 ;; 10657 *) 10658 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' 10659 ;; 10660 esac 10661 fi 10662 else 10663 # FIXME: insert proper C++ library support 10664 ld_shlibs_CXX=no 10665 fi 10666 ;; 10667 esac 10668 ;; 10669 interix3*) 10670 hardcode_direct_CXX=no 10671 hardcode_shlibpath_var_CXX=no 10672 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10673 export_dynamic_flag_spec_CXX='${wl}-E' 10674 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10675 # Instead, shared libraries are loaded at an image base (0x10000000 by 10676 # default) and relocated if they conflict, which is a slow very memory 10677 # consuming and fragmenting process. To avoid this, we pick a random, 10678 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10679 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10680 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' 10681 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' 10682 ;; 10683 irix5* | irix6*) 10684 case $cc_basename in 10685 CC*) 10686 # SGI C++ 10687 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' 10688 10689 # Archives containing C++ object files must be created using 10690 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10691 # necessary to make sure instantiated templates are included 10692 # in the archive. 10693 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10694 ;; 10695 *) 10696 if test "$GXX" = yes; then 10697 if test "$with_gnu_ld" = no; then 10698 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' 10699 else 10700 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' 10701 fi 10702 fi 10703 link_all_deplibs_CXX=yes 10704 ;; 10705 esac 10706 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10707 hardcode_libdir_separator_CXX=: 10708 ;; 10709 linux*) 10710 case $cc_basename in 10711 KCC*) 10712 # Kuck and Associates, Inc. (KAI) C++ Compiler 10713 10714 # KCC will only create a shared library if the output file 10715 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10716 # to its proper name (with version) after linking. 10717 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' 10718 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' 10719 # Commands to make compiler produce verbose output that lists 10720 # what "hidden" libraries, object files and flags are used when 10721 # linking a shared library. 10722 # 10723 # There doesn't appear to be a way to prevent this compiler from 10724 # explicitly linking system object files so we need to strip them 10725 # from the output so that they don't get included in the library 10726 # dependencies. 10727 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' 10728 10729 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10730 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10731 10732 # Archives containing C++ object files must be created using 10733 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10734 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10735 ;; 10736 icpc*) 10737 # Intel C++ 10738 with_gnu_ld=yes 10739 # version 8.0 and above of icpc choke on multiply defined symbols 10740 # if we add $predep_objects and $postdep_objects, however 7.1 and 10741 # earlier do not add the objects themselves. 10742 case `$CC -V 2>&1` in 10743 *"Version 7."*) 10744 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10745 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' 10746 ;; 10747 *) # Version 8.0 or newer 10748 tmp_idyn= 10749 case $host_cpu in 10750 ia64*) tmp_idyn=' -i_dynamic';; 10751 esac 10752 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10753 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' 10754 ;; 10755 esac 10756 archive_cmds_need_lc_CXX=no 10757 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10758 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10759 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10760 ;; 10761 pgCC*) 10762 # Portland Group C++ compiler 10763 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10764 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' 10765 10766 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10767 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10768 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' 10769 ;; 10770 cxx*) 10771 # Compaq C++ 10772 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10773 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' 10774 10775 runpath_var=LD_RUN_PATH 10776 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10777 hardcode_libdir_separator_CXX=: 10778 10779 # Commands to make compiler produce verbose output that lists 10780 # what "hidden" libraries, object files and flags are used when 10781 # linking a shared library. 10782 # 10783 # There doesn't appear to be a way to prevent this compiler from 10784 # explicitly linking system object files so we need to strip them 10785 # from the output so that they don't get included in the library 10786 # dependencies. 10787 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' 10788 ;; 10789 esac 10790 ;; 10791 lynxos*) 10792 # FIXME: insert proper C++ library support 10793 ld_shlibs_CXX=no 10794 ;; 10795 m88k*) 10796 # FIXME: insert proper C++ library support 10797 ld_shlibs_CXX=no 10798 ;; 10799 mvs*) 10800 case $cc_basename in 10801 cxx*) 10802 # FIXME: insert proper C++ library support 10803 ld_shlibs_CXX=no 10804 ;; 10805 *) 10806 # FIXME: insert proper C++ library support 10807 ld_shlibs_CXX=no 10808 ;; 10809 esac 10810 ;; 10811 netbsd*) 10812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10813 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10814 wlarc= 10815 hardcode_libdir_flag_spec_CXX='-R$libdir' 10816 hardcode_direct_CXX=yes 10817 hardcode_shlibpath_var_CXX=no 10818 fi 10819 # Workaround some broken pre-1.5 toolchains 10820 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10821 ;; 10822 openbsd2*) 10823 # C++ shared libraries are fairly broken 10824 ld_shlibs_CXX=no 10825 ;; 10826 openbsd*) 10827 hardcode_direct_CXX=yes 10828 hardcode_shlibpath_var_CXX=no 10829 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10830 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10831 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10832 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10833 export_dynamic_flag_spec_CXX='${wl}-E' 10834 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10835 fi 10836 output_verbose_link_cmd='echo' 10837 ;; 10838 osf3*) 10839 case $cc_basename in 10840 KCC*) 10841 # Kuck and Associates, Inc. (KAI) C++ Compiler 10842 10843 # KCC will only create a shared library if the output file 10844 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10845 # to its proper name (with version) after linking. 10846 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' 10847 10848 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10849 hardcode_libdir_separator_CXX=: 10850 10851 # Archives containing C++ object files must be created using 10852 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10853 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10854 10855 ;; 10856 RCC*) 10857 # Rational C++ 2.4.1 10858 # FIXME: insert proper C++ library support 10859 ld_shlibs_CXX=no 10860 ;; 10861 cxx*) 10862 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10863 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' 10864 10865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10866 hardcode_libdir_separator_CXX=: 10867 10868 # Commands to make compiler produce verbose output that lists 10869 # what "hidden" libraries, object files and flags are used when 10870 # linking a shared library. 10871 # 10872 # There doesn't appear to be a way to prevent this compiler from 10873 # explicitly linking system object files so we need to strip them 10874 # from the output so that they don't get included in the library 10875 # dependencies. 10876 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' 10877 ;; 10878 *) 10879 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10880 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10881 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' 10882 10883 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10884 hardcode_libdir_separator_CXX=: 10885 10886 # Commands to make compiler produce verbose output that lists 10887 # what "hidden" libraries, object files and flags are used when 10888 # linking a shared library. 10889 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10890 10891 else 10892 # FIXME: insert proper C++ library support 10893 ld_shlibs_CXX=no 10894 fi 10895 ;; 10896 esac 10897 ;; 10898 osf4* | osf5*) 10899 case $cc_basename in 10900 KCC*) 10901 # Kuck and Associates, Inc. (KAI) C++ Compiler 10902 10903 # KCC will only create a shared library if the output file 10904 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10905 # to its proper name (with version) after linking. 10906 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' 10907 10908 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10909 hardcode_libdir_separator_CXX=: 10910 10911 # Archives containing C++ object files must be created using 10912 # the KAI C++ compiler. 10913 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10914 ;; 10915 RCC*) 10916 # Rational C++ 2.4.1 10917 # FIXME: insert proper C++ library support 10918 ld_shlibs_CXX=no 10919 ;; 10920 cxx*) 10921 allow_undefined_flag_CXX=' -expect_unresolved \*' 10922 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' 10923 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10924 echo "-hidden">> $lib.exp~ 10925 $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~ 10926 $rm $lib.exp' 10927 10928 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10929 hardcode_libdir_separator_CXX=: 10930 10931 # Commands to make compiler produce verbose output that lists 10932 # what "hidden" libraries, object files and flags are used when 10933 # linking a shared library. 10934 # 10935 # There doesn't appear to be a way to prevent this compiler from 10936 # explicitly linking system object files so we need to strip them 10937 # from the output so that they don't get included in the library 10938 # dependencies. 10939 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' 10940 ;; 10941 *) 10942 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10943 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10944 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' 10945 10946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10947 hardcode_libdir_separator_CXX=: 10948 10949 # Commands to make compiler produce verbose output that lists 10950 # what "hidden" libraries, object files and flags are used when 10951 # linking a shared library. 10952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10953 10954 else 10955 # FIXME: insert proper C++ library support 10956 ld_shlibs_CXX=no 10957 fi 10958 ;; 10959 esac 10960 ;; 10961 psos*) 10962 # FIXME: insert proper C++ library support 10963 ld_shlibs_CXX=no 10964 ;; 10965 sunos4*) 10966 case $cc_basename in 10967 CC*) 10968 # Sun C++ 4.x 10969 # FIXME: insert proper C++ library support 10970 ld_shlibs_CXX=no 10971 ;; 10972 lcc*) 10973 # Lucid 10974 # FIXME: insert proper C++ library support 10975 ld_shlibs_CXX=no 10976 ;; 10977 *) 10978 # FIXME: insert proper C++ library support 10979 ld_shlibs_CXX=no 10980 ;; 10981 esac 10982 ;; 10983 solaris*) 10984 case $cc_basename in 10985 CC*) 10986 # Sun C++ 4.2, 5.x and Centerline C++ 10987 archive_cmds_need_lc_CXX=yes 10988 no_undefined_flag_CXX=' -zdefs' 10989 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10990 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10991 $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' 10992 10993 hardcode_libdir_flag_spec_CXX='-R$libdir' 10994 hardcode_shlibpath_var_CXX=no 10995 case $host_os in 10996 solaris2.[0-5] | solaris2.[0-5].*) ;; 10997 *) 10998 # The C++ compiler is used as linker so we must use $wl 10999 # flag to pass the commands to the underlying system 11000 # linker. We must also pass each convience library through 11001 # to the system linker between allextract/defaultextract. 11002 # The C++ compiler will combine linker options so we 11003 # cannot just pass the convience library names through 11004 # without $wl. 11005 # Supported since Solaris 2.6 (maybe 2.5.1?) 11006 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' 11007 ;; 11008 esac 11009 link_all_deplibs_CXX=yes 11010 11011 output_verbose_link_cmd='echo' 11012 11013 # Archives containing C++ object files must be created using 11014 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11015 # necessary to make sure instantiated templates are included 11016 # in the archive. 11017 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11018 ;; 11019 gcx*) 11020 # Green Hills C++ Compiler 11021 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11022 11023 # The C++ compiler must be used to create the archive. 11024 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11025 ;; 11026 *) 11027 # GNU C++ compiler with Solaris linker 11028 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11029 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11030 if $CC --version | grep -v '^2\.7' > /dev/null; then 11031 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11032 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11033 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11034 11035 # Commands to make compiler produce verbose output that lists 11036 # what "hidden" libraries, object files and flags are used when 11037 # linking a shared library. 11038 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11039 else 11040 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11041 # platform. 11042 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11043 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11044 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11045 11046 # Commands to make compiler produce verbose output that lists 11047 # what "hidden" libraries, object files and flags are used when 11048 # linking a shared library. 11049 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11050 fi 11051 11052 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11053 fi 11054 ;; 11055 esac 11056 ;; 11057 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11058 no_undefined_flag_CXX='${wl}-z,text' 11059 archive_cmds_need_lc_CXX=no 11060 hardcode_shlibpath_var_CXX=no 11061 runpath_var='LD_RUN_PATH' 11062 11063 case $cc_basename in 11064 CC*) 11065 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11066 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11067 ;; 11068 *) 11069 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11070 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11071 ;; 11072 esac 11073 ;; 11074 sysv5* | sco3.2v5* | sco5v6*) 11075 # Note: We can NOT use -z defs as we might desire, because we do not 11076 # link with -lc, and that would cause any symbols used from libc to 11077 # always be unresolved, which means just about no library would 11078 # ever link correctly. If we're not using GNU ld we use -z text 11079 # though, which does catch some bad symbols but isn't as heavy-handed 11080 # as -z defs. 11081 # For security reasons, it is highly recommended that you always 11082 # use absolute paths for naming shared libraries, and exclude the 11083 # DT_RUNPATH tag from executables and libraries. But doing so 11084 # requires that you compile everything twice, which is a pain. 11085 # So that behaviour is only enabled if SCOABSPATH is set to a 11086 # non-empty value in the environment. Most likely only useful for 11087 # creating official distributions of packages. 11088 # This is a hack until libtool officially supports absolute path 11089 # names for shared libraries. 11090 no_undefined_flag_CXX='${wl}-z,text' 11091 allow_undefined_flag_CXX='${wl}-z,nodefs' 11092 archive_cmds_need_lc_CXX=no 11093 hardcode_shlibpath_var_CXX=no 11094 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11095 hardcode_libdir_separator_CXX=':' 11096 link_all_deplibs_CXX=yes 11097 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11098 runpath_var='LD_RUN_PATH' 11099 11100 case $cc_basename in 11101 CC*) 11102 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11103 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11104 ;; 11105 *) 11106 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11107 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11108 ;; 11109 esac 11110 ;; 11111 tandem*) 11112 case $cc_basename in 11113 NCC*) 11114 # NonStop-UX NCC 3.20 11115 # FIXME: insert proper C++ library support 11116 ld_shlibs_CXX=no 11117 ;; 11118 *) 11119 # FIXME: insert proper C++ library support 11120 ld_shlibs_CXX=no 11121 ;; 11122 esac 11123 ;; 11124 vxworks*) 11125 # FIXME: insert proper C++ library support 11126 ld_shlibs_CXX=no 11127 ;; 11128 *) 11129 # FIXME: insert proper C++ library support 11130 ld_shlibs_CXX=no 11131 ;; 11132esac 11133echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11134echo "${ECHO_T}$ld_shlibs_CXX" >&6 11135test "$ld_shlibs_CXX" = no && can_build_shared=no 11136 11137GCC_CXX="$GXX" 11138LD_CXX="$LD" 11139 11140 11141cat > conftest.$ac_ext <<EOF 11142class Foo 11143{ 11144public: 11145 Foo (void) { a = 0; } 11146private: 11147 int a; 11148}; 11149EOF 11150 11151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11152 (eval $ac_compile) 2>&5 11153 ac_status=$? 11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11155 (exit $ac_status); }; then 11156 # Parse the compiler output and extract the necessary 11157 # objects, libraries and library flags. 11158 11159 # Sentinel used to keep track of whether or not we are before 11160 # the conftest object file. 11161 pre_test_object_deps_done=no 11162 11163 # The `*' in the case matches for architectures that use `case' in 11164 # $output_verbose_cmd can trigger glob expansion during the loop 11165 # eval without this substitution. 11166 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11167 11168 for p in `eval $output_verbose_link_cmd`; do 11169 case $p in 11170 11171 -L* | -R* | -l*) 11172 # Some compilers place space between "-{L,R}" and the path. 11173 # Remove the space. 11174 if test $p = "-L" \ 11175 || test $p = "-R"; then 11176 prev=$p 11177 continue 11178 else 11179 prev= 11180 fi 11181 11182 if test "$pre_test_object_deps_done" = no; then 11183 case $p in 11184 -L* | -R*) 11185 # Internal compiler library paths should come after those 11186 # provided the user. The postdeps already come after the 11187 # user supplied libs so there is no need to process them. 11188 if test -z "$compiler_lib_search_path_CXX"; then 11189 compiler_lib_search_path_CXX="${prev}${p}" 11190 else 11191 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11192 fi 11193 ;; 11194 # The "-l" case would never come before the object being 11195 # linked, so don't bother handling this case. 11196 esac 11197 else 11198 if test -z "$postdeps_CXX"; then 11199 postdeps_CXX="${prev}${p}" 11200 else 11201 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11202 fi 11203 fi 11204 ;; 11205 11206 *.$objext) 11207 # This assumes that the test object file only shows up 11208 # once in the compiler output. 11209 if test "$p" = "conftest.$objext"; then 11210 pre_test_object_deps_done=yes 11211 continue 11212 fi 11213 11214 if test "$pre_test_object_deps_done" = no; then 11215 if test -z "$predep_objects_CXX"; then 11216 predep_objects_CXX="$p" 11217 else 11218 predep_objects_CXX="$predep_objects_CXX $p" 11219 fi 11220 else 11221 if test -z "$postdep_objects_CXX"; then 11222 postdep_objects_CXX="$p" 11223 else 11224 postdep_objects_CXX="$postdep_objects_CXX $p" 11225 fi 11226 fi 11227 ;; 11228 11229 *) ;; # Ignore the rest. 11230 11231 esac 11232 done 11233 11234 # Clean up. 11235 rm -f a.out a.exe 11236else 11237 echo "libtool.m4: error: problem compiling CXX test program" 11238fi 11239 11240$rm -f confest.$objext 11241 11242# PORTME: override above test on systems where it is broken 11243case $host_os in 11244interix3*) 11245 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11246 # hack all around it, let's just trust "g++" to DTRT. 11247 predep_objects_CXX= 11248 postdep_objects_CXX= 11249 postdeps_CXX= 11250 ;; 11251 11252solaris*) 11253 case $cc_basename in 11254 CC*) 11255 # Adding this requires a known-good setup of shared libraries for 11256 # Sun compiler versions before 5.6, else PIC objects from an old 11257 # archive will be linked into the output, leading to subtle bugs. 11258 postdeps_CXX='-lCstd -lCrun' 11259 ;; 11260 esac 11261 ;; 11262esac 11263 11264 11265case " $postdeps_CXX " in 11266*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11267esac 11268 11269lt_prog_compiler_wl_CXX= 11270lt_prog_compiler_pic_CXX= 11271lt_prog_compiler_static_CXX= 11272 11273echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11274echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11275 11276 # C++ specific cases for pic, static, wl, etc. 11277 if test "$GXX" = yes; then 11278 lt_prog_compiler_wl_CXX='-Wl,' 11279 lt_prog_compiler_static_CXX='-static' 11280 11281 case $host_os in 11282 aix*) 11283 # All AIX code is PIC. 11284 if test "$host_cpu" = ia64; then 11285 # AIX 5 now supports IA64 processor 11286 lt_prog_compiler_static_CXX='-Bstatic' 11287 fi 11288 ;; 11289 amigaos*) 11290 # FIXME: we need at least 68020 code to build shared libraries, but 11291 # adding the `-m68020' flag to GCC prevents building anything better, 11292 # like `-m68040'. 11293 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11294 ;; 11295 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11296 # PIC is the default for these OSes. 11297 ;; 11298 mingw* | os2* | pw32*) 11299 # This hack is so that the source file can tell whether it is being 11300 # built for inclusion in a dll (and should export symbols for example). 11301 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11302 ;; 11303 darwin* | rhapsody*) 11304 # PIC is the default on this platform 11305 # Common symbols not allowed in MH_DYLIB files 11306 lt_prog_compiler_pic_CXX='-fno-common' 11307 ;; 11308 *djgpp*) 11309 # DJGPP does not support shared libraries at all 11310 lt_prog_compiler_pic_CXX= 11311 ;; 11312 interix3*) 11313 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11314 # Instead, we relocate shared libraries at runtime. 11315 ;; 11316 sysv4*MP*) 11317 if test -d /usr/nec; then 11318 lt_prog_compiler_pic_CXX=-Kconform_pic 11319 fi 11320 ;; 11321 hpux*) 11322 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11323 # not for PA HP-UX. 11324 case $host_cpu in 11325 hppa*64*|ia64*) 11326 ;; 11327 *) 11328 lt_prog_compiler_pic_CXX='-fPIC' 11329 ;; 11330 esac 11331 ;; 11332 *) 11333 lt_prog_compiler_pic_CXX='-fPIC' 11334 ;; 11335 esac 11336 else 11337 case $host_os in 11338 aix4* | aix5*) 11339 # All AIX code is PIC. 11340 if test "$host_cpu" = ia64; then 11341 # AIX 5 now supports IA64 processor 11342 lt_prog_compiler_static_CXX='-Bstatic' 11343 else 11344 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11345 fi 11346 ;; 11347 chorus*) 11348 case $cc_basename in 11349 cxch68*) 11350 # Green Hills C++ Compiler 11351 # _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" 11352 ;; 11353 esac 11354 ;; 11355 darwin*) 11356 # PIC is the default on this platform 11357 # Common symbols not allowed in MH_DYLIB files 11358 case $cc_basename in 11359 xlc*) 11360 lt_prog_compiler_pic_CXX='-qnocommon' 11361 lt_prog_compiler_wl_CXX='-Wl,' 11362 ;; 11363 esac 11364 ;; 11365 dgux*) 11366 case $cc_basename in 11367 ec++*) 11368 lt_prog_compiler_pic_CXX='-KPIC' 11369 ;; 11370 ghcx*) 11371 # Green Hills C++ Compiler 11372 lt_prog_compiler_pic_CXX='-pic' 11373 ;; 11374 *) 11375 ;; 11376 esac 11377 ;; 11378 freebsd* | kfreebsd*-gnu | dragonfly*) 11379 # FreeBSD uses GNU C++ 11380 ;; 11381 hpux9* | hpux10* | hpux11*) 11382 case $cc_basename in 11383 CC*) 11384 lt_prog_compiler_wl_CXX='-Wl,' 11385 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11386 if test "$host_cpu" != ia64; then 11387 lt_prog_compiler_pic_CXX='+Z' 11388 fi 11389 ;; 11390 aCC*) 11391 lt_prog_compiler_wl_CXX='-Wl,' 11392 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11393 case $host_cpu in 11394 hppa*64*|ia64*) 11395 # +Z the default 11396 ;; 11397 *) 11398 lt_prog_compiler_pic_CXX='+Z' 11399 ;; 11400 esac 11401 ;; 11402 *) 11403 ;; 11404 esac 11405 ;; 11406 interix*) 11407 # This is c89, which is MS Visual C++ (no shared libs) 11408 # Anyone wants to do a port? 11409 ;; 11410 irix5* | irix6* | nonstopux*) 11411 case $cc_basename in 11412 CC*) 11413 lt_prog_compiler_wl_CXX='-Wl,' 11414 lt_prog_compiler_static_CXX='-non_shared' 11415 # CC pic flag -KPIC is the default. 11416 ;; 11417 *) 11418 ;; 11419 esac 11420 ;; 11421 linux*) 11422 case $cc_basename in 11423 KCC*) 11424 # KAI C++ Compiler 11425 lt_prog_compiler_wl_CXX='--backend -Wl,' 11426 lt_prog_compiler_pic_CXX='-fPIC' 11427 ;; 11428 icpc* | ecpc*) 11429 # Intel C++ 11430 lt_prog_compiler_wl_CXX='-Wl,' 11431 lt_prog_compiler_pic_CXX='-KPIC' 11432 lt_prog_compiler_static_CXX='-static' 11433 ;; 11434 pgCC*) 11435 # Portland Group C++ compiler. 11436 lt_prog_compiler_wl_CXX='-Wl,' 11437 lt_prog_compiler_pic_CXX='-fpic' 11438 lt_prog_compiler_static_CXX='-Bstatic' 11439 ;; 11440 cxx*) 11441 # Compaq C++ 11442 # Make sure the PIC flag is empty. It appears that all Alpha 11443 # Linux and Compaq Tru64 Unix objects are PIC. 11444 lt_prog_compiler_pic_CXX= 11445 lt_prog_compiler_static_CXX='-non_shared' 11446 ;; 11447 *) 11448 ;; 11449 esac 11450 ;; 11451 lynxos*) 11452 ;; 11453 m88k*) 11454 ;; 11455 mvs*) 11456 case $cc_basename in 11457 cxx*) 11458 lt_prog_compiler_pic_CXX='-W c,exportall' 11459 ;; 11460 *) 11461 ;; 11462 esac 11463 ;; 11464 netbsd*) 11465 ;; 11466 osf3* | osf4* | osf5*) 11467 case $cc_basename in 11468 KCC*) 11469 lt_prog_compiler_wl_CXX='--backend -Wl,' 11470 ;; 11471 RCC*) 11472 # Rational C++ 2.4.1 11473 lt_prog_compiler_pic_CXX='-pic' 11474 ;; 11475 cxx*) 11476 # Digital/Compaq C++ 11477 lt_prog_compiler_wl_CXX='-Wl,' 11478 # Make sure the PIC flag is empty. It appears that all Alpha 11479 # Linux and Compaq Tru64 Unix objects are PIC. 11480 lt_prog_compiler_pic_CXX= 11481 lt_prog_compiler_static_CXX='-non_shared' 11482 ;; 11483 *) 11484 ;; 11485 esac 11486 ;; 11487 psos*) 11488 ;; 11489 solaris*) 11490 case $cc_basename in 11491 CC*) 11492 # Sun C++ 4.2, 5.x and Centerline C++ 11493 lt_prog_compiler_pic_CXX='-KPIC' 11494 lt_prog_compiler_static_CXX='-Bstatic' 11495 lt_prog_compiler_wl_CXX='-Qoption ld ' 11496 ;; 11497 gcx*) 11498 # Green Hills C++ Compiler 11499 lt_prog_compiler_pic_CXX='-PIC' 11500 ;; 11501 *) 11502 ;; 11503 esac 11504 ;; 11505 sunos4*) 11506 case $cc_basename in 11507 CC*) 11508 # Sun C++ 4.x 11509 lt_prog_compiler_pic_CXX='-pic' 11510 lt_prog_compiler_static_CXX='-Bstatic' 11511 ;; 11512 lcc*) 11513 # Lucid 11514 lt_prog_compiler_pic_CXX='-pic' 11515 ;; 11516 *) 11517 ;; 11518 esac 11519 ;; 11520 tandem*) 11521 case $cc_basename in 11522 NCC*) 11523 # NonStop-UX NCC 3.20 11524 lt_prog_compiler_pic_CXX='-KPIC' 11525 ;; 11526 *) 11527 ;; 11528 esac 11529 ;; 11530 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11531 case $cc_basename in 11532 CC*) 11533 lt_prog_compiler_wl_CXX='-Wl,' 11534 lt_prog_compiler_pic_CXX='-KPIC' 11535 lt_prog_compiler_static_CXX='-Bstatic' 11536 ;; 11537 esac 11538 ;; 11539 vxworks*) 11540 ;; 11541 *) 11542 lt_prog_compiler_can_build_shared_CXX=no 11543 ;; 11544 esac 11545 fi 11546 11547echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11548echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11549 11550# 11551# Check to make sure the PIC flag actually works. 11552# 11553if test -n "$lt_prog_compiler_pic_CXX"; then 11554 11555echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11556echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11557if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11558 echo $ECHO_N "(cached) $ECHO_C" >&6 11559else 11560 lt_prog_compiler_pic_works_CXX=no 11561 ac_outfile=conftest.$ac_objext 11562 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11563 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11564 # Insert the option either (1) after the last *FLAGS variable, or 11565 # (2) before a word containing "conftest.", or (3) at the end. 11566 # Note that $ac_compile itself does not contain backslashes and begins 11567 # with a dollar sign (not a hyphen), so the echo should work correctly. 11568 # The option is referenced via a variable to avoid confusing sed. 11569 lt_compile=`echo "$ac_compile" | $SED \ 11570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11572 -e 's:$: $lt_compiler_flag:'` 11573 (eval echo "\"\$as_me:11573: $lt_compile\"" >&5) 11574 (eval "$lt_compile" 2>conftest.err) 11575 ac_status=$? 11576 cat conftest.err >&5 11577 echo "$as_me:11577: \$? = $ac_status" >&5 11578 if (exit $ac_status) && test -s "$ac_outfile"; then 11579 # The compiler can only warn and ignore the option if not recognized 11580 # So say no if there are warnings other than the usual output. 11581 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11584 lt_prog_compiler_pic_works_CXX=yes 11585 fi 11586 fi 11587 $rm conftest* 11588 11589fi 11590echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11591echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11592 11593if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11594 case $lt_prog_compiler_pic_CXX in 11595 "" | " "*) ;; 11596 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11597 esac 11598else 11599 lt_prog_compiler_pic_CXX= 11600 lt_prog_compiler_can_build_shared_CXX=no 11601fi 11602 11603fi 11604case $host_os in 11605 # For platforms which do not support PIC, -DPIC is meaningless: 11606 *djgpp*) 11607 lt_prog_compiler_pic_CXX= 11608 ;; 11609 *) 11610 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11611 ;; 11612esac 11613 11614# 11615# Check to make sure the static flag actually works. 11616# 11617wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11618echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11619echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 11620if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 11621 echo $ECHO_N "(cached) $ECHO_C" >&6 11622else 11623 lt_prog_compiler_static_works_CXX=no 11624 save_LDFLAGS="$LDFLAGS" 11625 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11626 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11627 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11628 # The linker can only warn and ignore the option if not recognized 11629 # So say no if there are warnings 11630 if test -s conftest.err; then 11631 # Append any errors to the config.log. 11632 cat conftest.err 1>&5 11633 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11635 if diff conftest.exp conftest.er2 >/dev/null; then 11636 lt_prog_compiler_static_works_CXX=yes 11637 fi 11638 else 11639 lt_prog_compiler_static_works_CXX=yes 11640 fi 11641 fi 11642 $rm conftest* 11643 LDFLAGS="$save_LDFLAGS" 11644 11645fi 11646echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 11647echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 11648 11649if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 11650 : 11651else 11652 lt_prog_compiler_static_CXX= 11653fi 11654 11655 11656echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11657echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11658if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11659 echo $ECHO_N "(cached) $ECHO_C" >&6 11660else 11661 lt_cv_prog_compiler_c_o_CXX=no 11662 $rm -r conftest 2>/dev/null 11663 mkdir conftest 11664 cd conftest 11665 mkdir out 11666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11667 11668 lt_compiler_flag="-o out/conftest2.$ac_objext" 11669 # Insert the option either (1) after the last *FLAGS variable, or 11670 # (2) before a word containing "conftest.", or (3) at the end. 11671 # Note that $ac_compile itself does not contain backslashes and begins 11672 # with a dollar sign (not a hyphen), so the echo should work correctly. 11673 lt_compile=`echo "$ac_compile" | $SED \ 11674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11676 -e 's:$: $lt_compiler_flag:'` 11677 (eval echo "\"\$as_me:11677: $lt_compile\"" >&5) 11678 (eval "$lt_compile" 2>out/conftest.err) 11679 ac_status=$? 11680 cat out/conftest.err >&5 11681 echo "$as_me:11681: \$? = $ac_status" >&5 11682 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11683 then 11684 # The compiler can only warn and ignore the option if not recognized 11685 # So say no if there are warnings 11686 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11689 lt_cv_prog_compiler_c_o_CXX=yes 11690 fi 11691 fi 11692 chmod u+w . 2>&5 11693 $rm conftest* 11694 # SGI C++ compiler will create directory out/ii_files/ for 11695 # template instantiation 11696 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11697 $rm out/* && rmdir out 11698 cd .. 11699 rmdir conftest 11700 $rm conftest* 11701 11702fi 11703echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11704echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11705 11706 11707hard_links="nottested" 11708if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11709 # do not overwrite the value of need_locks provided by the user 11710 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11711echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11712 hard_links=yes 11713 $rm conftest* 11714 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11715 touch conftest.a 11716 ln conftest.a conftest.b 2>&5 || hard_links=no 11717 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11718 echo "$as_me:$LINENO: result: $hard_links" >&5 11719echo "${ECHO_T}$hard_links" >&6 11720 if test "$hard_links" = no; then 11721 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11722echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11723 need_locks=warn 11724 fi 11725else 11726 need_locks=no 11727fi 11728 11729echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11730echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11731 11732 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11733 case $host_os in 11734 aix4* | aix5*) 11735 # If we're using GNU nm, then we don't want the "-C" option. 11736 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11737 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11738 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' 11739 else 11740 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' 11741 fi 11742 ;; 11743 pw32*) 11744 export_symbols_cmds_CXX="$ltdll_cmds" 11745 ;; 11746 cygwin* | mingw*) 11747 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' 11748 ;; 11749 *) 11750 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11751 ;; 11752 esac 11753 11754echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11755echo "${ECHO_T}$ld_shlibs_CXX" >&6 11756test "$ld_shlibs_CXX" = no && can_build_shared=no 11757 11758# 11759# Do we need to explicitly link libc? 11760# 11761case "x$archive_cmds_need_lc_CXX" in 11762x|xyes) 11763 # Assume -lc should be added 11764 archive_cmds_need_lc_CXX=yes 11765 11766 if test "$enable_shared" = yes && test "$GCC" = yes; then 11767 case $archive_cmds_CXX in 11768 *'~'*) 11769 # FIXME: we may have to deal with multi-command sequences. 11770 ;; 11771 '$CC '*) 11772 # Test whether the compiler implicitly links with -lc since on some 11773 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11774 # to ld, don't add -lc before -lgcc. 11775 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11776echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11777 $rm conftest* 11778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11779 11780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11781 (eval $ac_compile) 2>&5 11782 ac_status=$? 11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11784 (exit $ac_status); } 2>conftest.err; then 11785 soname=conftest 11786 lib=conftest 11787 libobjs=conftest.$ac_objext 11788 deplibs= 11789 wl=$lt_prog_compiler_wl_CXX 11790 pic_flag=$lt_prog_compiler_pic_CXX 11791 compiler_flags=-v 11792 linker_flags=-v 11793 verstring= 11794 output_objdir=. 11795 libname=conftest 11796 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11797 allow_undefined_flag_CXX= 11798 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11799 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11800 ac_status=$? 11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11802 (exit $ac_status); } 11803 then 11804 archive_cmds_need_lc_CXX=no 11805 else 11806 archive_cmds_need_lc_CXX=yes 11807 fi 11808 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11809 else 11810 cat conftest.err 1>&5 11811 fi 11812 $rm conftest* 11813 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11814echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11815 ;; 11816 esac 11817 fi 11818 ;; 11819esac 11820 11821echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11822echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11823library_names_spec= 11824libname_spec='lib$name' 11825soname_spec= 11826shrext_cmds=".so" 11827postinstall_cmds= 11828postuninstall_cmds= 11829finish_cmds= 11830finish_eval= 11831shlibpath_var= 11832shlibpath_overrides_runpath=unknown 11833version_type=none 11834dynamic_linker="$host_os ld.so" 11835sys_lib_dlsearch_path_spec="/lib /usr/lib" 11836if test "$GCC" = yes; then 11837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11838 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11839 # if the path contains ";" then we assume it to be the separator 11840 # otherwise default to the standard path separator (i.e. ":") - it is 11841 # assumed that no part of a normal pathname contains ";" but that should 11842 # okay in the real world where ";" in dirpaths is itself problematic. 11843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11844 else 11845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11846 fi 11847else 11848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11849fi 11850need_lib_prefix=unknown 11851hardcode_into_libs=no 11852 11853# when you set need_version to no, make sure it does not cause -set_version 11854# flags to be left without arguments 11855need_version=unknown 11856 11857case $host_os in 11858aix3*) 11859 version_type=linux 11860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11861 shlibpath_var=LIBPATH 11862 11863 # AIX 3 has no versioning support, so we append a major version to the name. 11864 soname_spec='${libname}${release}${shared_ext}$major' 11865 ;; 11866 11867aix4* | aix5*) 11868 version_type=linux 11869 need_lib_prefix=no 11870 need_version=no 11871 hardcode_into_libs=yes 11872 if test "$host_cpu" = ia64; then 11873 # AIX 5 supports IA64 11874 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11875 shlibpath_var=LD_LIBRARY_PATH 11876 else 11877 # With GCC up to 2.95.x, collect2 would create an import file 11878 # for dependence libraries. The import file would start with 11879 # the line `#! .'. This would cause the generated library to 11880 # depend on `.', always an invalid library. This was fixed in 11881 # development snapshots of GCC prior to 3.0. 11882 case $host_os in 11883 aix4 | aix4.[01] | aix4.[01].*) 11884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11885 echo ' yes ' 11886 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11887 : 11888 else 11889 can_build_shared=no 11890 fi 11891 ;; 11892 esac 11893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11894 # soname into executable. Probably we can add versioning support to 11895 # collect2, so additional links can be useful in future. 11896 if test "$aix_use_runtimelinking" = yes; then 11897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11898 # instead of lib<name>.a to let people know that these are not 11899 # typical AIX shared libraries. 11900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11901 else 11902 # We preserve .a as extension for shared libraries through AIX4.2 11903 # and later when we are not doing run time linking. 11904 library_names_spec='${libname}${release}.a $libname.a' 11905 soname_spec='${libname}${release}${shared_ext}$major' 11906 fi 11907 shlibpath_var=LIBPATH 11908 fi 11909 ;; 11910 11911amigaos*) 11912 library_names_spec='$libname.ixlibrary $libname.a' 11913 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11914 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' 11915 ;; 11916 11917beos*) 11918 library_names_spec='${libname}${shared_ext}' 11919 dynamic_linker="$host_os ld.so" 11920 shlibpath_var=LIBRARY_PATH 11921 ;; 11922 11923bsdi[45]*) 11924 version_type=linux 11925 need_version=no 11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11927 soname_spec='${libname}${release}${shared_ext}$major' 11928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11929 shlibpath_var=LD_LIBRARY_PATH 11930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11932 # the default ld.so.conf also contains /usr/contrib/lib and 11933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11934 # libtool to hard-code these into programs 11935 ;; 11936 11937cygwin* | mingw* | pw32*) 11938 version_type=windows 11939 shrext_cmds=".dll" 11940 need_version=no 11941 need_lib_prefix=no 11942 11943 case $GCC,$host_os in 11944 yes,cygwin* | yes,mingw* | yes,pw32*) 11945 library_names_spec='$libname.dll.a' 11946 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11947 postinstall_cmds='base_file=`basename \${file}`~ 11948 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11949 dldir=$destdir/`dirname \$dlpath`~ 11950 test -d \$dldir || mkdir -p \$dldir~ 11951 $install_prog $dir/$dlname \$dldir/$dlname~ 11952 chmod a+x \$dldir/$dlname' 11953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11954 dlpath=$dir/\$dldll~ 11955 $rm \$dlpath' 11956 shlibpath_overrides_runpath=yes 11957 11958 case $host_os in 11959 cygwin*) 11960 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11961 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11962 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11963 ;; 11964 mingw*) 11965 # MinGW DLLs use traditional 'lib' prefix 11966 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11967 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11968 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11969 # It is most probably a Windows format PATH printed by 11970 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11971 # path with ; separators, and with drive letters. We can handle the 11972 # drive letters (cygwin fileutils understands them), so leave them, 11973 # especially as we might pass files found there to a mingw objdump, 11974 # which wouldn't understand a cygwinified path. Ahh. 11975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11976 else 11977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11978 fi 11979 ;; 11980 pw32*) 11981 # pw32 DLLs use 'pw' prefix rather than 'lib' 11982 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11983 ;; 11984 esac 11985 ;; 11986 11987 *) 11988 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11989 ;; 11990 esac 11991 dynamic_linker='Win32 ld.exe' 11992 # FIXME: first we should search . and the directory the executable is in 11993 shlibpath_var=PATH 11994 ;; 11995 11996darwin* | rhapsody*) 11997 dynamic_linker="$host_os dyld" 11998 version_type=darwin 11999 need_lib_prefix=no 12000 need_version=no 12001 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12002 soname_spec='${libname}${release}${major}$shared_ext' 12003 shlibpath_overrides_runpath=yes 12004 shlibpath_var=DYLD_LIBRARY_PATH 12005 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12006 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12007 if test "$GCC" = yes; then 12008 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"` 12009 else 12010 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12011 fi 12012 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12013 ;; 12014 12015dgux*) 12016 version_type=linux 12017 need_lib_prefix=no 12018 need_version=no 12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12020 soname_spec='${libname}${release}${shared_ext}$major' 12021 shlibpath_var=LD_LIBRARY_PATH 12022 ;; 12023 12024freebsd1*) 12025 dynamic_linker=no 12026 ;; 12027 12028kfreebsd*-gnu) 12029 version_type=linux 12030 need_lib_prefix=no 12031 need_version=no 12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12033 soname_spec='${libname}${release}${shared_ext}$major' 12034 shlibpath_var=LD_LIBRARY_PATH 12035 shlibpath_overrides_runpath=no 12036 hardcode_into_libs=yes 12037 dynamic_linker='GNU ld.so' 12038 ;; 12039 12040freebsd* | dragonfly*) 12041 # DragonFly does not have aout. When/if they implement a new 12042 # versioning mechanism, adjust this. 12043 if test -x /usr/bin/objformat; then 12044 objformat=`/usr/bin/objformat` 12045 else 12046 case $host_os in 12047 freebsd[123]*) objformat=aout ;; 12048 *) objformat=elf ;; 12049 esac 12050 fi 12051 version_type=freebsd-$objformat 12052 case $version_type in 12053 freebsd-elf*) 12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12055 need_version=no 12056 need_lib_prefix=no 12057 ;; 12058 freebsd-*) 12059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12060 need_version=yes 12061 ;; 12062 esac 12063 shlibpath_var=LD_LIBRARY_PATH 12064 case $host_os in 12065 freebsd2*) 12066 shlibpath_overrides_runpath=yes 12067 ;; 12068 freebsd3.[01]* | freebsdelf3.[01]*) 12069 shlibpath_overrides_runpath=yes 12070 hardcode_into_libs=yes 12071 ;; 12072 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12073 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12074 shlibpath_overrides_runpath=no 12075 hardcode_into_libs=yes 12076 ;; 12077 freebsd*) # from 4.6 on 12078 shlibpath_overrides_runpath=yes 12079 hardcode_into_libs=yes 12080 ;; 12081 esac 12082 ;; 12083 12084gnu*) 12085 version_type=linux 12086 need_lib_prefix=no 12087 need_version=no 12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12089 soname_spec='${libname}${release}${shared_ext}$major' 12090 shlibpath_var=LD_LIBRARY_PATH 12091 hardcode_into_libs=yes 12092 ;; 12093 12094hpux9* | hpux10* | hpux11*) 12095 # Give a soname corresponding to the major version so that dld.sl refuses to 12096 # link against other versions. 12097 version_type=sunos 12098 need_lib_prefix=no 12099 need_version=no 12100 case $host_cpu in 12101 ia64*) 12102 shrext_cmds='.so' 12103 hardcode_into_libs=yes 12104 dynamic_linker="$host_os dld.so" 12105 shlibpath_var=LD_LIBRARY_PATH 12106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12108 soname_spec='${libname}${release}${shared_ext}$major' 12109 if test "X$HPUX_IA64_MODE" = X32; then 12110 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12111 else 12112 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12113 fi 12114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12115 ;; 12116 hppa*64*) 12117 shrext_cmds='.sl' 12118 hardcode_into_libs=yes 12119 dynamic_linker="$host_os dld.sl" 12120 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12123 soname_spec='${libname}${release}${shared_ext}$major' 12124 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12126 ;; 12127 *) 12128 shrext_cmds='.sl' 12129 dynamic_linker="$host_os dld.sl" 12130 shlibpath_var=SHLIB_PATH 12131 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12133 soname_spec='${libname}${release}${shared_ext}$major' 12134 ;; 12135 esac 12136 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12137 postinstall_cmds='chmod 555 $lib' 12138 ;; 12139 12140interix3*) 12141 version_type=linux 12142 need_lib_prefix=no 12143 need_version=no 12144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12145 soname_spec='${libname}${release}${shared_ext}$major' 12146 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12147 shlibpath_var=LD_LIBRARY_PATH 12148 shlibpath_overrides_runpath=no 12149 hardcode_into_libs=yes 12150 ;; 12151 12152irix5* | irix6* | nonstopux*) 12153 case $host_os in 12154 nonstopux*) version_type=nonstopux ;; 12155 *) 12156 if test "$lt_cv_prog_gnu_ld" = yes; then 12157 version_type=linux 12158 else 12159 version_type=irix 12160 fi ;; 12161 esac 12162 need_lib_prefix=no 12163 need_version=no 12164 soname_spec='${libname}${release}${shared_ext}$major' 12165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12166 case $host_os in 12167 irix5* | nonstopux*) 12168 libsuff= shlibsuff= 12169 ;; 12170 *) 12171 case $LD in # libtool.m4 will add one of these switches to LD 12172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12173 libsuff= shlibsuff= libmagic=32-bit;; 12174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12175 libsuff=32 shlibsuff=N32 libmagic=N32;; 12176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12177 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12178 *) libsuff= shlibsuff= libmagic=never-match;; 12179 esac 12180 ;; 12181 esac 12182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12183 shlibpath_overrides_runpath=no 12184 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12185 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12186 hardcode_into_libs=yes 12187 ;; 12188 12189# No shared lib support for Linux oldld, aout, or coff. 12190linux*oldld* | linux*aout* | linux*coff*) 12191 dynamic_linker=no 12192 ;; 12193 12194# This must be Linux ELF. 12195linux*) 12196 version_type=linux 12197 need_lib_prefix=no 12198 need_version=no 12199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12200 soname_spec='${libname}${release}${shared_ext}$major' 12201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12202 shlibpath_var=LD_LIBRARY_PATH 12203 shlibpath_overrides_runpath=no 12204 # This implies no fast_install, which is unacceptable. 12205 # Some rework will be needed to allow for fast_install 12206 # before this can be enabled. 12207 hardcode_into_libs=yes 12208 12209 # find out which ABI we are using 12210 libsuff= 12211 case "$host_cpu" in 12212 x86_64*|s390x*|powerpc64*) 12213 echo '#line 12213 "configure"' > conftest.$ac_ext 12214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12215 (eval $ac_compile) 2>&5 12216 ac_status=$? 12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12218 (exit $ac_status); }; then 12219 case `/usr/bin/file conftest.$ac_objext` in 12220 *64-bit*) 12221 libsuff=64 12222 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 12223 ;; 12224 esac 12225 fi 12226 rm -rf conftest* 12227 ;; 12228 esac 12229 12230 # Append ld.so.conf contents to the search path 12231 if test -f /etc/ld.so.conf; then 12232 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' ' '` 12233 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 12234 fi 12235 12236 # We used to test for /lib/ld.so.1 and disable shared libraries on 12237 # powerpc, because MkLinux only supported shared libraries with the 12238 # GNU dynamic linker. Since this was broken with cross compilers, 12239 # most powerpc-linux boxes support dynamic linking these days and 12240 # people can always --disable-shared, the test was removed, and we 12241 # assume the GNU/Linux dynamic linker is in use. 12242 dynamic_linker='GNU/Linux ld.so' 12243 ;; 12244 12245knetbsd*-gnu) 12246 version_type=linux 12247 need_lib_prefix=no 12248 need_version=no 12249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12250 soname_spec='${libname}${release}${shared_ext}$major' 12251 shlibpath_var=LD_LIBRARY_PATH 12252 shlibpath_overrides_runpath=no 12253 hardcode_into_libs=yes 12254 dynamic_linker='GNU ld.so' 12255 ;; 12256 12257netbsd*) 12258 version_type=sunos 12259 need_lib_prefix=no 12260 need_version=no 12261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12264 dynamic_linker='NetBSD (a.out) ld.so' 12265 else 12266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12267 soname_spec='${libname}${release}${shared_ext}$major' 12268 dynamic_linker='NetBSD ld.elf_so' 12269 fi 12270 shlibpath_var=LD_LIBRARY_PATH 12271 shlibpath_overrides_runpath=yes 12272 hardcode_into_libs=yes 12273 ;; 12274 12275newsos6) 12276 version_type=linux 12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12278 shlibpath_var=LD_LIBRARY_PATH 12279 shlibpath_overrides_runpath=yes 12280 ;; 12281 12282nto-qnx*) 12283 version_type=linux 12284 need_lib_prefix=no 12285 need_version=no 12286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12287 soname_spec='${libname}${release}${shared_ext}$major' 12288 shlibpath_var=LD_LIBRARY_PATH 12289 shlibpath_overrides_runpath=yes 12290 ;; 12291 12292openbsd*) 12293 version_type=sunos 12294 sys_lib_dlsearch_path_spec="/usr/lib" 12295 need_lib_prefix=no 12296 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12297 case $host_os in 12298 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12299 *) need_version=no ;; 12300 esac 12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12303 shlibpath_var=LD_LIBRARY_PATH 12304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12305 case $host_os in 12306 openbsd2.[89] | openbsd2.[89].*) 12307 shlibpath_overrides_runpath=no 12308 ;; 12309 *) 12310 shlibpath_overrides_runpath=yes 12311 ;; 12312 esac 12313 else 12314 shlibpath_overrides_runpath=yes 12315 fi 12316 ;; 12317 12318os2*) 12319 libname_spec='$name' 12320 shrext_cmds=".dll" 12321 need_lib_prefix=no 12322 library_names_spec='$libname${shared_ext} $libname.a' 12323 dynamic_linker='OS/2 ld.exe' 12324 shlibpath_var=LIBPATH 12325 ;; 12326 12327osf3* | osf4* | osf5*) 12328 version_type=osf 12329 need_lib_prefix=no 12330 need_version=no 12331 soname_spec='${libname}${release}${shared_ext}$major' 12332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12333 shlibpath_var=LD_LIBRARY_PATH 12334 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12335 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12336 ;; 12337 12338solaris*) 12339 version_type=linux 12340 need_lib_prefix=no 12341 need_version=no 12342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12343 soname_spec='${libname}${release}${shared_ext}$major' 12344 shlibpath_var=LD_LIBRARY_PATH 12345 shlibpath_overrides_runpath=yes 12346 hardcode_into_libs=yes 12347 # ldd complains unless libraries are executable 12348 postinstall_cmds='chmod +x $lib' 12349 ;; 12350 12351sunos4*) 12352 version_type=sunos 12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12354 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12355 shlibpath_var=LD_LIBRARY_PATH 12356 shlibpath_overrides_runpath=yes 12357 if test "$with_gnu_ld" = yes; then 12358 need_lib_prefix=no 12359 fi 12360 need_version=yes 12361 ;; 12362 12363sysv4 | sysv4.3*) 12364 version_type=linux 12365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12366 soname_spec='${libname}${release}${shared_ext}$major' 12367 shlibpath_var=LD_LIBRARY_PATH 12368 case $host_vendor in 12369 sni) 12370 shlibpath_overrides_runpath=no 12371 need_lib_prefix=no 12372 export_dynamic_flag_spec='${wl}-Blargedynsym' 12373 runpath_var=LD_RUN_PATH 12374 ;; 12375 siemens) 12376 need_lib_prefix=no 12377 ;; 12378 motorola) 12379 need_lib_prefix=no 12380 need_version=no 12381 shlibpath_overrides_runpath=no 12382 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12383 ;; 12384 esac 12385 ;; 12386 12387sysv4*MP*) 12388 if test -d /usr/nec ;then 12389 version_type=linux 12390 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12391 soname_spec='$libname${shared_ext}.$major' 12392 shlibpath_var=LD_LIBRARY_PATH 12393 fi 12394 ;; 12395 12396sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12397 version_type=freebsd-elf 12398 need_lib_prefix=no 12399 need_version=no 12400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12401 soname_spec='${libname}${release}${shared_ext}$major' 12402 shlibpath_var=LD_LIBRARY_PATH 12403 hardcode_into_libs=yes 12404 if test "$with_gnu_ld" = yes; then 12405 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12406 shlibpath_overrides_runpath=no 12407 else 12408 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12409 shlibpath_overrides_runpath=yes 12410 case $host_os in 12411 sco3.2v5*) 12412 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12413 ;; 12414 esac 12415 fi 12416 sys_lib_dlsearch_path_spec='/usr/lib' 12417 ;; 12418 12419uts4*) 12420 version_type=linux 12421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12422 soname_spec='${libname}${release}${shared_ext}$major' 12423 shlibpath_var=LD_LIBRARY_PATH 12424 ;; 12425 12426*) 12427 dynamic_linker=no 12428 ;; 12429esac 12430echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12431echo "${ECHO_T}$dynamic_linker" >&6 12432test "$dynamic_linker" = no && can_build_shared=no 12433 12434variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12435if test "$GCC" = yes; then 12436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12437fi 12438 12439echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12440echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12441hardcode_action_CXX= 12442if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12443 test -n "$runpath_var_CXX" || \ 12444 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12445 12446 # We can hardcode non-existant directories. 12447 if test "$hardcode_direct_CXX" != no && 12448 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12449 # have to relink, otherwise we might link with an installed library 12450 # when we should be linking with a yet-to-be-installed one 12451 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12452 test "$hardcode_minus_L_CXX" != no; then 12453 # Linking always hardcodes the temporary library directory. 12454 hardcode_action_CXX=relink 12455 else 12456 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12457 hardcode_action_CXX=immediate 12458 fi 12459else 12460 # We cannot hardcode anything, or else we can only hardcode existing 12461 # directories. 12462 hardcode_action_CXX=unsupported 12463fi 12464echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12465echo "${ECHO_T}$hardcode_action_CXX" >&6 12466 12467if test "$hardcode_action_CXX" = relink; then 12468 # Fast installation is not supported 12469 enable_fast_install=no 12470elif test "$shlibpath_overrides_runpath" = yes || 12471 test "$enable_shared" = no; then 12472 # Fast installation is not necessary 12473 enable_fast_install=needless 12474fi 12475 12476 12477# The else clause should only fire when bootstrapping the 12478# libtool distribution, otherwise you forgot to ship ltmain.sh 12479# with your package, and you will get complaints that there are 12480# no rules to generate ltmain.sh. 12481if test -f "$ltmain"; then 12482 # See if we are running on zsh, and set the options which allow our commands through 12483 # without removal of \ escapes. 12484 if test -n "${ZSH_VERSION+set}" ; then 12485 setopt NO_GLOB_SUBST 12486 fi 12487 # Now quote all the things that may contain metacharacters while being 12488 # careful not to overquote the AC_SUBSTed values. We take copies of the 12489 # variables and quote the copies for generation of the libtool script. 12490 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12491 SED SHELL STRIP \ 12492 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12493 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12494 deplibs_check_method reload_flag reload_cmds need_locks \ 12495 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12496 lt_cv_sys_global_symbol_to_c_name_address \ 12497 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12498 old_postinstall_cmds old_postuninstall_cmds \ 12499 compiler_CXX \ 12500 CC_CXX \ 12501 LD_CXX \ 12502 lt_prog_compiler_wl_CXX \ 12503 lt_prog_compiler_pic_CXX \ 12504 lt_prog_compiler_static_CXX \ 12505 lt_prog_compiler_no_builtin_flag_CXX \ 12506 export_dynamic_flag_spec_CXX \ 12507 thread_safe_flag_spec_CXX \ 12508 whole_archive_flag_spec_CXX \ 12509 enable_shared_with_static_runtimes_CXX \ 12510 old_archive_cmds_CXX \ 12511 old_archive_from_new_cmds_CXX \ 12512 predep_objects_CXX \ 12513 postdep_objects_CXX \ 12514 predeps_CXX \ 12515 postdeps_CXX \ 12516 compiler_lib_search_path_CXX \ 12517 archive_cmds_CXX \ 12518 archive_expsym_cmds_CXX \ 12519 postinstall_cmds_CXX \ 12520 postuninstall_cmds_CXX \ 12521 old_archive_from_expsyms_cmds_CXX \ 12522 allow_undefined_flag_CXX \ 12523 no_undefined_flag_CXX \ 12524 export_symbols_cmds_CXX \ 12525 hardcode_libdir_flag_spec_CXX \ 12526 hardcode_libdir_flag_spec_ld_CXX \ 12527 hardcode_libdir_separator_CXX \ 12528 hardcode_automatic_CXX \ 12529 module_cmds_CXX \ 12530 module_expsym_cmds_CXX \ 12531 lt_cv_prog_compiler_c_o_CXX \ 12532 exclude_expsyms_CXX \ 12533 include_expsyms_CXX; do 12534 12535 case $var in 12536 old_archive_cmds_CXX | \ 12537 old_archive_from_new_cmds_CXX | \ 12538 archive_cmds_CXX | \ 12539 archive_expsym_cmds_CXX | \ 12540 module_cmds_CXX | \ 12541 module_expsym_cmds_CXX | \ 12542 old_archive_from_expsyms_cmds_CXX | \ 12543 export_symbols_cmds_CXX | \ 12544 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12545 postinstall_cmds | postuninstall_cmds | \ 12546 old_postinstall_cmds | old_postuninstall_cmds | \ 12547 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12548 # Double-quote double-evaled strings. 12549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12550 ;; 12551 *) 12552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12553 ;; 12554 esac 12555 done 12556 12557 case $lt_echo in 12558 *'\$0 --fallback-echo"') 12559 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12560 ;; 12561 esac 12562 12563cfgfile="$ofile" 12564 12565 cat <<__EOF__ >> "$cfgfile" 12566# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12567 12568# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12569 12570# Shell to use when invoking shell scripts. 12571SHELL=$lt_SHELL 12572 12573# Whether or not to build shared libraries. 12574build_libtool_libs=$enable_shared 12575 12576# Whether or not to build static libraries. 12577build_old_libs=$enable_static 12578 12579# Whether or not to add -lc for building shared libraries. 12580build_libtool_need_lc=$archive_cmds_need_lc_CXX 12581 12582# Whether or not to disallow shared libs when runtime libs are static 12583allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12584 12585# Whether or not to optimize for fast installation. 12586fast_install=$enable_fast_install 12587 12588# The host system. 12589host_alias=$host_alias 12590host=$host 12591host_os=$host_os 12592 12593# The build system. 12594build_alias=$build_alias 12595build=$build 12596build_os=$build_os 12597 12598# An echo program that does not interpret backslashes. 12599echo=$lt_echo 12600 12601# The archiver. 12602AR=$lt_AR 12603AR_FLAGS=$lt_AR_FLAGS 12604 12605# A C compiler. 12606LTCC=$lt_LTCC 12607 12608# LTCC compiler flags. 12609LTCFLAGS=$lt_LTCFLAGS 12610 12611# A language-specific compiler. 12612CC=$lt_compiler_CXX 12613 12614# Is the compiler the GNU C compiler? 12615with_gcc=$GCC_CXX 12616 12617gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 12618gcc_ver=\`gcc -dumpversion\` 12619 12620# An ERE matcher. 12621EGREP=$lt_EGREP 12622 12623# The linker used to build libraries. 12624LD=$lt_LD_CXX 12625 12626# Whether we need hard or soft links. 12627LN_S=$lt_LN_S 12628 12629# A BSD-compatible nm program. 12630NM=$lt_NM 12631 12632# A symbol stripping program 12633STRIP=$lt_STRIP 12634 12635# Used to examine libraries when file_magic_cmd begins "file" 12636MAGIC_CMD=$MAGIC_CMD 12637 12638# Used on cygwin: DLL creation program. 12639DLLTOOL="$DLLTOOL" 12640 12641# Used on cygwin: object dumper. 12642OBJDUMP="$OBJDUMP" 12643 12644# Used on cygwin: assembler. 12645AS="$AS" 12646 12647# The name of the directory that contains temporary libtool files. 12648objdir=$objdir 12649 12650# How to create reloadable object files. 12651reload_flag=$lt_reload_flag 12652reload_cmds=$lt_reload_cmds 12653 12654# How to pass a linker flag through the compiler. 12655wl=$lt_lt_prog_compiler_wl_CXX 12656 12657# Object file suffix (normally "o"). 12658objext="$ac_objext" 12659 12660# Old archive suffix (normally "a"). 12661libext="$libext" 12662 12663# Shared library suffix (normally ".so"). 12664shrext_cmds='$shrext_cmds' 12665 12666# Executable file suffix (normally ""). 12667exeext="$exeext" 12668 12669# Additional compiler flags for building library objects. 12670pic_flag=$lt_lt_prog_compiler_pic_CXX 12671pic_mode=$pic_mode 12672 12673# What is the maximum length of a command? 12674max_cmd_len=$lt_cv_sys_max_cmd_len 12675 12676# Does compiler simultaneously support -c and -o options? 12677compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12678 12679# Must we lock files when doing compilation? 12680need_locks=$lt_need_locks 12681 12682# Do we need the lib prefix for modules? 12683need_lib_prefix=$need_lib_prefix 12684 12685# Do we need a version for libraries? 12686need_version=$need_version 12687 12688# Whether dlopen is supported. 12689dlopen_support=$enable_dlopen 12690 12691# Whether dlopen of programs is supported. 12692dlopen_self=$enable_dlopen_self 12693 12694# Whether dlopen of statically linked programs is supported. 12695dlopen_self_static=$enable_dlopen_self_static 12696 12697# Compiler flag to prevent dynamic linking. 12698link_static_flag=$lt_lt_prog_compiler_static_CXX 12699 12700# Compiler flag to turn off builtin functions. 12701no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12702 12703# Compiler flag to allow reflexive dlopens. 12704export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12705 12706# Compiler flag to generate shared objects directly from archives. 12707whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12708 12709# Compiler flag to generate thread-safe objects. 12710thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12711 12712# Library versioning type. 12713version_type=$version_type 12714 12715# Format of library name prefix. 12716libname_spec=$lt_libname_spec 12717 12718# List of archive names. First name is the real one, the rest are links. 12719# The last name is the one that the linker finds with -lNAME. 12720library_names_spec=$lt_library_names_spec 12721 12722# The coded name of the library, if different from the real name. 12723soname_spec=$lt_soname_spec 12724 12725# Commands used to build and install an old-style archive. 12726RANLIB=$lt_RANLIB 12727old_archive_cmds=$lt_old_archive_cmds_CXX 12728old_postinstall_cmds=$lt_old_postinstall_cmds 12729old_postuninstall_cmds=$lt_old_postuninstall_cmds 12730 12731# Create an old-style archive from a shared archive. 12732old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12733 12734# Create a temporary old-style archive to link instead of a shared archive. 12735old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12736 12737# Commands used to build and install a shared archive. 12738archive_cmds=$lt_archive_cmds_CXX 12739archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12740postinstall_cmds=$lt_postinstall_cmds 12741postuninstall_cmds=$lt_postuninstall_cmds 12742 12743# Commands used to build a loadable module (assumed same as above if empty) 12744module_cmds=$lt_module_cmds_CXX 12745module_expsym_cmds=$lt_module_expsym_cmds_CXX 12746 12747# Commands to strip libraries. 12748old_striplib=$lt_old_striplib 12749striplib=$lt_striplib 12750 12751# Dependencies to place before the objects being linked to create a 12752# shared library. 12753predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12754 12755# Dependencies to place after the objects being linked to create a 12756# shared library. 12757postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12758 12759# Dependencies to place before the objects being linked to create a 12760# shared library. 12761predeps=$lt_predeps_CXX 12762 12763# Dependencies to place after the objects being linked to create a 12764# shared library. 12765postdeps=$lt_postdeps_CXX 12766 12767# The library search path used internally by the compiler when linking 12768# a shared library. 12769compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12770 12771# Method to check whether dependent libraries are shared objects. 12772deplibs_check_method=$lt_deplibs_check_method 12773 12774# Command to use when deplibs_check_method == file_magic. 12775file_magic_cmd=$lt_file_magic_cmd 12776 12777# Flag that allows shared libraries with undefined symbols to be built. 12778allow_undefined_flag=$lt_allow_undefined_flag_CXX 12779 12780# Flag that forces no undefined symbols. 12781no_undefined_flag=$lt_no_undefined_flag_CXX 12782 12783# Commands used to finish a libtool library installation in a directory. 12784finish_cmds=$lt_finish_cmds 12785 12786# Same as above, but a single script fragment to be evaled but not shown. 12787finish_eval=$lt_finish_eval 12788 12789# Take the output of nm and produce a listing of raw symbols and C names. 12790global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12791 12792# Transform the output of nm in a proper C declaration 12793global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12794 12795# Transform the output of nm in a C name address pair 12796global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12797 12798# This is the shared library runtime path variable. 12799runpath_var=$runpath_var 12800 12801# This is the shared library path variable. 12802shlibpath_var=$shlibpath_var 12803 12804# Is shlibpath searched before the hard-coded library search path? 12805shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12806 12807# How to hardcode a shared library path into an executable. 12808hardcode_action=$hardcode_action_CXX 12809 12810# Whether we should hardcode library paths into libraries. 12811hardcode_into_libs=$hardcode_into_libs 12812 12813# Flag to hardcode \$libdir into a binary during linking. 12814# This must work even if \$libdir does not exist. 12815hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12816 12817# If ld is used when linking, flag to hardcode \$libdir into 12818# a binary during linking. This must work even if \$libdir does 12819# not exist. 12820hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12821 12822# Whether we need a single -rpath flag with a separated argument. 12823hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12824 12825# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12826# resulting binary. 12827hardcode_direct=$hardcode_direct_CXX 12828 12829# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12830# resulting binary. 12831hardcode_minus_L=$hardcode_minus_L_CXX 12832 12833# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12834# the resulting binary. 12835hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12836 12837# Set to yes if building a shared library automatically hardcodes DIR into the library 12838# and all subsequent libraries and executables linked against it. 12839hardcode_automatic=$hardcode_automatic_CXX 12840 12841# Variables whose values should be saved in libtool wrapper scripts and 12842# restored at relink time. 12843variables_saved_for_relink="$variables_saved_for_relink" 12844 12845# Whether libtool must link a program against all its dependency libraries. 12846link_all_deplibs=$link_all_deplibs_CXX 12847 12848# Compile-time system search path for libraries 12849sys_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"\` 12850 12851# Run-time system search path for libraries 12852sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12853 12854# Fix the shell variable \$srcfile for the compiler. 12855fix_srcfile_path="$fix_srcfile_path_CXX" 12856 12857# Set to yes if exported symbols are required. 12858always_export_symbols=$always_export_symbols_CXX 12859 12860# The commands to list exported symbols. 12861export_symbols_cmds=$lt_export_symbols_cmds_CXX 12862 12863# The commands to extract the exported symbol list from a shared archive. 12864extract_expsyms_cmds=$lt_extract_expsyms_cmds 12865 12866# Symbols that should not be listed in the preloaded symbols. 12867exclude_expsyms=$lt_exclude_expsyms_CXX 12868 12869# Symbols that must always be exported. 12870include_expsyms=$lt_include_expsyms_CXX 12871 12872# ### END LIBTOOL TAG CONFIG: $tagname 12873 12874__EOF__ 12875 12876 12877else 12878 # If there is no Makefile yet, we rely on a make rule to execute 12879 # `config.status --recheck' to rerun these tests and create the 12880 # libtool script then. 12881 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12882 if test -f "$ltmain_in"; then 12883 test -f Makefile && make "$ltmain" 12884 fi 12885fi 12886 12887 12888ac_ext=c 12889ac_cpp='$CPP $CPPFLAGS' 12890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12892ac_compiler_gnu=$ac_cv_c_compiler_gnu 12893 12894CC=$lt_save_CC 12895LDCXX=$LD 12896LD=$lt_save_LD 12897GCC=$lt_save_GCC 12898with_gnu_ldcxx=$with_gnu_ld 12899with_gnu_ld=$lt_save_with_gnu_ld 12900lt_cv_path_LDCXX=$lt_cv_path_LD 12901lt_cv_path_LD=$lt_save_path_LD 12902lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12903lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12904 12905 else 12906 tagname="" 12907 fi 12908 ;; 12909 12910 F77) 12911 if test -n "$F77" && test "X$F77" != "Xno"; then 12912 12913ac_ext=f 12914ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12915ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12916ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12917 12918 12919archive_cmds_need_lc_F77=no 12920allow_undefined_flag_F77= 12921always_export_symbols_F77=no 12922archive_expsym_cmds_F77= 12923export_dynamic_flag_spec_F77= 12924hardcode_direct_F77=no 12925hardcode_libdir_flag_spec_F77= 12926hardcode_libdir_flag_spec_ld_F77= 12927hardcode_libdir_separator_F77= 12928hardcode_minus_L_F77=no 12929hardcode_automatic_F77=no 12930module_cmds_F77= 12931module_expsym_cmds_F77= 12932link_all_deplibs_F77=unknown 12933old_archive_cmds_F77=$old_archive_cmds 12934no_undefined_flag_F77= 12935whole_archive_flag_spec_F77= 12936enable_shared_with_static_runtimes_F77=no 12937 12938# Source file extension for f77 test sources. 12939ac_ext=f 12940 12941# Object file extension for compiled f77 test sources. 12942objext=o 12943objext_F77=$objext 12944 12945# Code to be used in simple compile tests 12946lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12947 12948# Code to be used in simple link tests 12949lt_simple_link_test_code=" program t\n end\n" 12950 12951# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12952 12953# If no C compiler was specified, use CC. 12954LTCC=${LTCC-"$CC"} 12955 12956# If no C compiler flags were specified, use CFLAGS. 12957LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12958 12959# Allow CC to be a program name with arguments. 12960compiler=$CC 12961 12962 12963# save warnings/boilerplate of simple test code 12964ac_outfile=conftest.$ac_objext 12965printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12966eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12967_lt_compiler_boilerplate=`cat conftest.err` 12968$rm conftest* 12969 12970ac_outfile=conftest.$ac_objext 12971printf "$lt_simple_link_test_code" >conftest.$ac_ext 12972eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12973_lt_linker_boilerplate=`cat conftest.err` 12974$rm conftest* 12975 12976 12977# Allow CC to be a program name with arguments. 12978lt_save_CC="$CC" 12979CC=${F77-"f77"} 12980compiler=$CC 12981compiler_F77=$CC 12982for cc_temp in $compiler""; do 12983 case $cc_temp in 12984 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12985 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12986 \-*) ;; 12987 *) break;; 12988 esac 12989done 12990cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12991 12992 12993echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12994echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12995echo "$as_me:$LINENO: result: $can_build_shared" >&5 12996echo "${ECHO_T}$can_build_shared" >&6 12997 12998echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12999echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13000test "$can_build_shared" = "no" && enable_shared=no 13001 13002# On AIX, shared libraries and static libraries use the same namespace, and 13003# are all built from PIC. 13004case $host_os in 13005aix3*) 13006 test "$enable_shared" = yes && enable_static=no 13007 if test -n "$RANLIB"; then 13008 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13009 postinstall_cmds='$RANLIB $lib' 13010 fi 13011 ;; 13012aix4* | aix5*) 13013 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13014 test "$enable_shared" = yes && enable_static=no 13015 fi 13016 ;; 13017esac 13018echo "$as_me:$LINENO: result: $enable_shared" >&5 13019echo "${ECHO_T}$enable_shared" >&6 13020 13021echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13022echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13023# Make sure either enable_shared or enable_static is yes. 13024test "$enable_shared" = yes || enable_static=yes 13025echo "$as_me:$LINENO: result: $enable_static" >&5 13026echo "${ECHO_T}$enable_static" >&6 13027 13028GCC_F77="$G77" 13029LD_F77="$LD" 13030 13031lt_prog_compiler_wl_F77= 13032lt_prog_compiler_pic_F77= 13033lt_prog_compiler_static_F77= 13034 13035echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13036echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13037 13038 if test "$GCC" = yes; then 13039 lt_prog_compiler_wl_F77='-Wl,' 13040 lt_prog_compiler_static_F77='-static' 13041 13042 case $host_os in 13043 aix*) 13044 # All AIX code is PIC. 13045 if test "$host_cpu" = ia64; then 13046 # AIX 5 now supports IA64 processor 13047 lt_prog_compiler_static_F77='-Bstatic' 13048 fi 13049 ;; 13050 13051 amigaos*) 13052 # FIXME: we need at least 68020 code to build shared libraries, but 13053 # adding the `-m68020' flag to GCC prevents building anything better, 13054 # like `-m68040'. 13055 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13056 ;; 13057 13058 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13059 # PIC is the default for these OSes. 13060 ;; 13061 13062 mingw* | pw32* | os2*) 13063 # This hack is so that the source file can tell whether it is being 13064 # built for inclusion in a dll (and should export symbols for example). 13065 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13066 ;; 13067 13068 darwin* | rhapsody*) 13069 # PIC is the default on this platform 13070 # Common symbols not allowed in MH_DYLIB files 13071 lt_prog_compiler_pic_F77='-fno-common' 13072 ;; 13073 13074 interix3*) 13075 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13076 # Instead, we relocate shared libraries at runtime. 13077 ;; 13078 13079 msdosdjgpp*) 13080 # Just because we use GCC doesn't mean we suddenly get shared libraries 13081 # on systems that don't support them. 13082 lt_prog_compiler_can_build_shared_F77=no 13083 enable_shared=no 13084 ;; 13085 13086 sysv4*MP*) 13087 if test -d /usr/nec; then 13088 lt_prog_compiler_pic_F77=-Kconform_pic 13089 fi 13090 ;; 13091 13092 hpux*) 13093 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13094 # not for PA HP-UX. 13095 case $host_cpu in 13096 hppa*64*|ia64*) 13097 # +Z the default 13098 ;; 13099 *) 13100 lt_prog_compiler_pic_F77='-fPIC' 13101 ;; 13102 esac 13103 ;; 13104 13105 *) 13106 lt_prog_compiler_pic_F77='-fPIC' 13107 ;; 13108 esac 13109 else 13110 # PORTME Check for flag to pass linker flags through the system compiler. 13111 case $host_os in 13112 aix*) 13113 lt_prog_compiler_wl_F77='-Wl,' 13114 if test "$host_cpu" = ia64; then 13115 # AIX 5 now supports IA64 processor 13116 lt_prog_compiler_static_F77='-Bstatic' 13117 else 13118 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13119 fi 13120 ;; 13121 darwin*) 13122 # PIC is the default on this platform 13123 # Common symbols not allowed in MH_DYLIB files 13124 case $cc_basename in 13125 xlc*) 13126 lt_prog_compiler_pic_F77='-qnocommon' 13127 lt_prog_compiler_wl_F77='-Wl,' 13128 ;; 13129 esac 13130 ;; 13131 13132 mingw* | pw32* | os2*) 13133 # This hack is so that the source file can tell whether it is being 13134 # built for inclusion in a dll (and should export symbols for example). 13135 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13136 ;; 13137 13138 hpux9* | hpux10* | hpux11*) 13139 lt_prog_compiler_wl_F77='-Wl,' 13140 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13141 # not for PA HP-UX. 13142 case $host_cpu in 13143 hppa*64*|ia64*) 13144 # +Z the default 13145 ;; 13146 *) 13147 lt_prog_compiler_pic_F77='+Z' 13148 ;; 13149 esac 13150 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13151 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13152 ;; 13153 13154 irix5* | irix6* | nonstopux*) 13155 lt_prog_compiler_wl_F77='-Wl,' 13156 # PIC (with -KPIC) is the default. 13157 lt_prog_compiler_static_F77='-non_shared' 13158 ;; 13159 13160 newsos6) 13161 lt_prog_compiler_pic_F77='-KPIC' 13162 lt_prog_compiler_static_F77='-Bstatic' 13163 ;; 13164 13165 linux*) 13166 case $cc_basename in 13167 icc* | ecc*) 13168 lt_prog_compiler_wl_F77='-Wl,' 13169 lt_prog_compiler_pic_F77='-KPIC' 13170 lt_prog_compiler_static_F77='-static' 13171 ;; 13172 pgcc* | pgf77* | pgf90* | pgf95*) 13173 # Portland Group compilers (*not* the Pentium gcc compiler, 13174 # which looks to be a dead project) 13175 lt_prog_compiler_wl_F77='-Wl,' 13176 lt_prog_compiler_pic_F77='-fpic' 13177 lt_prog_compiler_static_F77='-Bstatic' 13178 ;; 13179 ccc*) 13180 lt_prog_compiler_wl_F77='-Wl,' 13181 # All Alpha code is PIC. 13182 lt_prog_compiler_static_F77='-non_shared' 13183 ;; 13184 esac 13185 ;; 13186 13187 osf3* | osf4* | osf5*) 13188 lt_prog_compiler_wl_F77='-Wl,' 13189 # All OSF/1 code is PIC. 13190 lt_prog_compiler_static_F77='-non_shared' 13191 ;; 13192 13193 solaris*) 13194 lt_prog_compiler_pic_F77='-KPIC' 13195 lt_prog_compiler_static_F77='-Bstatic' 13196 case $cc_basename in 13197 f77* | f90* | f95*) 13198 lt_prog_compiler_wl_F77='-Qoption ld ';; 13199 *) 13200 lt_prog_compiler_wl_F77='-Wl,';; 13201 esac 13202 ;; 13203 13204 sunos4*) 13205 lt_prog_compiler_wl_F77='-Qoption ld ' 13206 lt_prog_compiler_pic_F77='-PIC' 13207 lt_prog_compiler_static_F77='-Bstatic' 13208 ;; 13209 13210 sysv4 | sysv4.2uw2* | sysv4.3*) 13211 lt_prog_compiler_wl_F77='-Wl,' 13212 lt_prog_compiler_pic_F77='-KPIC' 13213 lt_prog_compiler_static_F77='-Bstatic' 13214 ;; 13215 13216 sysv4*MP*) 13217 if test -d /usr/nec ;then 13218 lt_prog_compiler_pic_F77='-Kconform_pic' 13219 lt_prog_compiler_static_F77='-Bstatic' 13220 fi 13221 ;; 13222 13223 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13224 lt_prog_compiler_wl_F77='-Wl,' 13225 lt_prog_compiler_pic_F77='-KPIC' 13226 lt_prog_compiler_static_F77='-Bstatic' 13227 ;; 13228 13229 unicos*) 13230 lt_prog_compiler_wl_F77='-Wl,' 13231 lt_prog_compiler_can_build_shared_F77=no 13232 ;; 13233 13234 uts4*) 13235 lt_prog_compiler_pic_F77='-pic' 13236 lt_prog_compiler_static_F77='-Bstatic' 13237 ;; 13238 13239 *) 13240 lt_prog_compiler_can_build_shared_F77=no 13241 ;; 13242 esac 13243 fi 13244 13245echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13246echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13247 13248# 13249# Check to make sure the PIC flag actually works. 13250# 13251if test -n "$lt_prog_compiler_pic_F77"; then 13252 13253echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13254echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13255if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13256 echo $ECHO_N "(cached) $ECHO_C" >&6 13257else 13258 lt_prog_compiler_pic_works_F77=no 13259 ac_outfile=conftest.$ac_objext 13260 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13261 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13262 # Insert the option either (1) after the last *FLAGS variable, or 13263 # (2) before a word containing "conftest.", or (3) at the end. 13264 # Note that $ac_compile itself does not contain backslashes and begins 13265 # with a dollar sign (not a hyphen), so the echo should work correctly. 13266 # The option is referenced via a variable to avoid confusing sed. 13267 lt_compile=`echo "$ac_compile" | $SED \ 13268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13270 -e 's:$: $lt_compiler_flag:'` 13271 (eval echo "\"\$as_me:13271: $lt_compile\"" >&5) 13272 (eval "$lt_compile" 2>conftest.err) 13273 ac_status=$? 13274 cat conftest.err >&5 13275 echo "$as_me:13275: \$? = $ac_status" >&5 13276 if (exit $ac_status) && test -s "$ac_outfile"; then 13277 # The compiler can only warn and ignore the option if not recognized 13278 # So say no if there are warnings other than the usual output. 13279 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13282 lt_prog_compiler_pic_works_F77=yes 13283 fi 13284 fi 13285 $rm conftest* 13286 13287fi 13288echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13289echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13290 13291if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13292 case $lt_prog_compiler_pic_F77 in 13293 "" | " "*) ;; 13294 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13295 esac 13296else 13297 lt_prog_compiler_pic_F77= 13298 lt_prog_compiler_can_build_shared_F77=no 13299fi 13300 13301fi 13302case $host_os in 13303 # For platforms which do not support PIC, -DPIC is meaningless: 13304 *djgpp*) 13305 lt_prog_compiler_pic_F77= 13306 ;; 13307 *) 13308 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13309 ;; 13310esac 13311 13312# 13313# Check to make sure the static flag actually works. 13314# 13315wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13316echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13317echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13318if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13319 echo $ECHO_N "(cached) $ECHO_C" >&6 13320else 13321 lt_prog_compiler_static_works_F77=no 13322 save_LDFLAGS="$LDFLAGS" 13323 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13324 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13325 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13326 # The linker can only warn and ignore the option if not recognized 13327 # So say no if there are warnings 13328 if test -s conftest.err; then 13329 # Append any errors to the config.log. 13330 cat conftest.err 1>&5 13331 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13332 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13333 if diff conftest.exp conftest.er2 >/dev/null; then 13334 lt_prog_compiler_static_works_F77=yes 13335 fi 13336 else 13337 lt_prog_compiler_static_works_F77=yes 13338 fi 13339 fi 13340 $rm conftest* 13341 LDFLAGS="$save_LDFLAGS" 13342 13343fi 13344echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13345echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 13346 13347if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13348 : 13349else 13350 lt_prog_compiler_static_F77= 13351fi 13352 13353 13354echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13355echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13356if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13357 echo $ECHO_N "(cached) $ECHO_C" >&6 13358else 13359 lt_cv_prog_compiler_c_o_F77=no 13360 $rm -r conftest 2>/dev/null 13361 mkdir conftest 13362 cd conftest 13363 mkdir out 13364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13365 13366 lt_compiler_flag="-o out/conftest2.$ac_objext" 13367 # Insert the option either (1) after the last *FLAGS variable, or 13368 # (2) before a word containing "conftest.", or (3) at the end. 13369 # Note that $ac_compile itself does not contain backslashes and begins 13370 # with a dollar sign (not a hyphen), so the echo should work correctly. 13371 lt_compile=`echo "$ac_compile" | $SED \ 13372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13374 -e 's:$: $lt_compiler_flag:'` 13375 (eval echo "\"\$as_me:13375: $lt_compile\"" >&5) 13376 (eval "$lt_compile" 2>out/conftest.err) 13377 ac_status=$? 13378 cat out/conftest.err >&5 13379 echo "$as_me:13379: \$? = $ac_status" >&5 13380 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13381 then 13382 # The compiler can only warn and ignore the option if not recognized 13383 # So say no if there are warnings 13384 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13385 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13386 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13387 lt_cv_prog_compiler_c_o_F77=yes 13388 fi 13389 fi 13390 chmod u+w . 2>&5 13391 $rm conftest* 13392 # SGI C++ compiler will create directory out/ii_files/ for 13393 # template instantiation 13394 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13395 $rm out/* && rmdir out 13396 cd .. 13397 rmdir conftest 13398 $rm conftest* 13399 13400fi 13401echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13402echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13403 13404 13405hard_links="nottested" 13406if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13407 # do not overwrite the value of need_locks provided by the user 13408 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13409echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13410 hard_links=yes 13411 $rm conftest* 13412 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13413 touch conftest.a 13414 ln conftest.a conftest.b 2>&5 || hard_links=no 13415 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13416 echo "$as_me:$LINENO: result: $hard_links" >&5 13417echo "${ECHO_T}$hard_links" >&6 13418 if test "$hard_links" = no; then 13419 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13420echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13421 need_locks=warn 13422 fi 13423else 13424 need_locks=no 13425fi 13426 13427echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13428echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13429 13430 runpath_var= 13431 allow_undefined_flag_F77= 13432 enable_shared_with_static_runtimes_F77=no 13433 archive_cmds_F77= 13434 archive_expsym_cmds_F77= 13435 old_archive_From_new_cmds_F77= 13436 old_archive_from_expsyms_cmds_F77= 13437 export_dynamic_flag_spec_F77= 13438 whole_archive_flag_spec_F77= 13439 thread_safe_flag_spec_F77= 13440 hardcode_libdir_flag_spec_F77= 13441 hardcode_libdir_flag_spec_ld_F77= 13442 hardcode_libdir_separator_F77= 13443 hardcode_direct_F77=no 13444 hardcode_minus_L_F77=no 13445 hardcode_shlibpath_var_F77=unsupported 13446 link_all_deplibs_F77=unknown 13447 hardcode_automatic_F77=no 13448 module_cmds_F77= 13449 module_expsym_cmds_F77= 13450 always_export_symbols_F77=no 13451 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13452 # include_expsyms should be a list of space-separated symbols to be *always* 13453 # included in the symbol list 13454 include_expsyms_F77= 13455 # exclude_expsyms can be an extended regexp of symbols to exclude 13456 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13457 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13458 # as well as any symbol that contains `d'. 13459 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13460 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13461 # platforms (ab)use it in PIC code, but their linkers get confused if 13462 # the symbol is explicitly referenced. Since portable code cannot 13463 # rely on this symbol name, it's probably fine to never include it in 13464 # preloaded symbol tables. 13465 extract_expsyms_cmds= 13466 # Just being paranoid about ensuring that cc_basename is set. 13467 for cc_temp in $compiler""; do 13468 case $cc_temp in 13469 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13470 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13471 \-*) ;; 13472 *) break;; 13473 esac 13474done 13475cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13476 13477 case $host_os in 13478 cygwin* | mingw* | pw32*) 13479 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13480 # When not using gcc, we currently assume that we are using 13481 # Microsoft Visual C++. 13482 if test "$GCC" != yes; then 13483 with_gnu_ld=no 13484 fi 13485 ;; 13486 interix*) 13487 # we just hope/assume this is gcc and not c89 (= MSVC++) 13488 with_gnu_ld=yes 13489 ;; 13490 openbsd*) 13491 with_gnu_ld=no 13492 ;; 13493 esac 13494 13495 ld_shlibs_F77=yes 13496 if test "$with_gnu_ld" = yes; then 13497 # If archive_cmds runs LD, not CC, wlarc should be empty 13498 wlarc='${wl}' 13499 13500 # Set some defaults for GNU ld with shared library support. These 13501 # are reset later if shared libraries are not supported. Putting them 13502 # here allows them to be overridden if necessary. 13503 runpath_var=LD_RUN_PATH 13504 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13505 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13506 # ancient GNU ld didn't support --whole-archive et. al. 13507 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13508 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13509 else 13510 whole_archive_flag_spec_F77= 13511 fi 13512 supports_anon_versioning=no 13513 case `$LD -v 2>/dev/null` in 13514 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13515 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13516 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13517 *\ 2.11.*) ;; # other 2.11 versions 13518 *) supports_anon_versioning=yes ;; 13519 esac 13520 13521 # See if GNU ld supports shared libraries. 13522 case $host_os in 13523 aix3* | aix4* | aix5*) 13524 # On AIX/PPC, the GNU linker is very broken 13525 if test "$host_cpu" != ia64; then 13526 ld_shlibs_F77=no 13527 cat <<EOF 1>&2 13528 13529*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13530*** to be unable to reliably create shared libraries on AIX. 13531*** Therefore, libtool is disabling shared libraries support. If you 13532*** really care for shared libraries, you may want to modify your PATH 13533*** so that a non-GNU linker is found, and then restart. 13534 13535EOF 13536 fi 13537 ;; 13538 13539 amigaos*) 13540 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)' 13541 hardcode_libdir_flag_spec_F77='-L$libdir' 13542 hardcode_minus_L_F77=yes 13543 13544 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13545 # that the semantics of dynamic libraries on AmigaOS, at least up 13546 # to version 4, is to share data among multiple programs linked 13547 # with the same dynamic library. Since this doesn't match the 13548 # behavior of shared libraries on other platforms, we can't use 13549 # them. 13550 ld_shlibs_F77=no 13551 ;; 13552 13553 beos*) 13554 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13555 allow_undefined_flag_F77=unsupported 13556 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13557 # support --undefined. This deserves some investigation. FIXME 13558 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13559 else 13560 ld_shlibs_F77=no 13561 fi 13562 ;; 13563 13564 cygwin* | mingw* | pw32*) 13565 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13566 # as there is no search path for DLLs. 13567 hardcode_libdir_flag_spec_F77='-L$libdir' 13568 allow_undefined_flag_F77=unsupported 13569 always_export_symbols_F77=no 13570 enable_shared_with_static_runtimes_F77=yes 13571 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13572 13573 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13574 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13575 # If the export-symbols file already is a .def file (1st line 13576 # is EXPORTS), use it as is; otherwise, prepend... 13577 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13578 cp $export_symbols $output_objdir/$soname.def; 13579 else 13580 echo EXPORTS > $output_objdir/$soname.def; 13581 cat $export_symbols >> $output_objdir/$soname.def; 13582 fi~ 13583 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13584 else 13585 ld_shlibs_F77=no 13586 fi 13587 ;; 13588 13589 interix3*) 13590 hardcode_direct_F77=no 13591 hardcode_shlibpath_var_F77=no 13592 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13593 export_dynamic_flag_spec_F77='${wl}-E' 13594 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13595 # Instead, shared libraries are loaded at an image base (0x10000000 by 13596 # default) and relocated if they conflict, which is a slow very memory 13597 # consuming and fragmenting process. To avoid this, we pick a random, 13598 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13599 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13600 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' 13601 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' 13602 ;; 13603 13604 linux*) 13605 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13606 tmp_addflag= 13607 case $cc_basename,$host_cpu in 13608 pgcc*) # Portland Group C compiler 13609 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' 13610 tmp_addflag=' $pic_flag' 13611 ;; 13612 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 13613 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' 13614 tmp_addflag=' $pic_flag -Mnomain' ;; 13615 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13616 tmp_addflag=' -i_dynamic' ;; 13617 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13618 tmp_addflag=' -i_dynamic -nofor_main' ;; 13619 ifc* | ifort*) # Intel Fortran compiler 13620 tmp_addflag=' -nofor_main' ;; 13621 esac 13622 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13623 13624 if test $supports_anon_versioning = yes; then 13625 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13627 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13628 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13629 fi 13630 else 13631 ld_shlibs_F77=no 13632 fi 13633 ;; 13634 13635 netbsd*) 13636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13637 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13638 wlarc= 13639 else 13640 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13641 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13642 fi 13643 ;; 13644 13645 solaris*) 13646 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13647 ld_shlibs_F77=no 13648 cat <<EOF 1>&2 13649 13650*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13651*** create shared libraries on Solaris systems. Therefore, libtool 13652*** is disabling shared libraries support. We urge you to upgrade GNU 13653*** binutils to release 2.9.1 or newer. Another option is to modify 13654*** your PATH or compiler configuration so that the native linker is 13655*** used, and then restart. 13656 13657EOF 13658 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13659 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13660 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13661 else 13662 ld_shlibs_F77=no 13663 fi 13664 ;; 13665 13666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13667 case `$LD -v 2>&1` in 13668 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13669 ld_shlibs_F77=no 13670 cat <<_LT_EOF 1>&2 13671 13672*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13673*** reliably create shared libraries on SCO systems. Therefore, libtool 13674*** is disabling shared libraries support. We urge you to upgrade GNU 13675*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13676*** your PATH or compiler configuration so that the native linker is 13677*** used, and then restart. 13678 13679_LT_EOF 13680 ;; 13681 *) 13682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13683 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 13684 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 13685 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 13686 else 13687 ld_shlibs_F77=no 13688 fi 13689 ;; 13690 esac 13691 ;; 13692 13693 sunos4*) 13694 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13695 wlarc= 13696 hardcode_direct_F77=yes 13697 hardcode_shlibpath_var_F77=no 13698 ;; 13699 13700 *) 13701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13702 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13703 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13704 else 13705 ld_shlibs_F77=no 13706 fi 13707 ;; 13708 esac 13709 13710 if test "$ld_shlibs_F77" = no; then 13711 runpath_var= 13712 hardcode_libdir_flag_spec_F77= 13713 export_dynamic_flag_spec_F77= 13714 whole_archive_flag_spec_F77= 13715 fi 13716 else 13717 # PORTME fill in a description of your system's linker (not GNU ld) 13718 case $host_os in 13719 aix3*) 13720 allow_undefined_flag_F77=unsupported 13721 always_export_symbols_F77=yes 13722 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' 13723 # Note: this linker hardcodes the directories in LIBPATH if there 13724 # are no directories specified by -L. 13725 hardcode_minus_L_F77=yes 13726 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13727 # Neither direct hardcoding nor static linking is supported with a 13728 # broken collect2. 13729 hardcode_direct_F77=unsupported 13730 fi 13731 ;; 13732 13733 aix4* | aix5*) 13734 if test "$host_cpu" = ia64; then 13735 # On IA64, the linker does run time linking by default, so we don't 13736 # have to do anything special. 13737 aix_use_runtimelinking=no 13738 exp_sym_flag='-Bexport' 13739 no_entry_flag="" 13740 else 13741 # If we're using GNU nm, then we don't want the "-C" option. 13742 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13743 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13744 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' 13745 else 13746 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' 13747 fi 13748 aix_use_runtimelinking=no 13749 13750 # Test if we are trying to use run time linking or normal 13751 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13752 # need to do runtime linking. 13753 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13754 for ld_flag in $LDFLAGS; do 13755 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13756 aix_use_runtimelinking=yes 13757 break 13758 fi 13759 done 13760 ;; 13761 esac 13762 13763 exp_sym_flag='-bexport' 13764 no_entry_flag='-bnoentry' 13765 fi 13766 13767 # When large executables or shared objects are built, AIX ld can 13768 # have problems creating the table of contents. If linking a library 13769 # or program results in "error TOC overflow" add -mminimal-toc to 13770 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13771 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13772 13773 archive_cmds_F77='' 13774 hardcode_direct_F77=yes 13775 hardcode_libdir_separator_F77=':' 13776 link_all_deplibs_F77=yes 13777 13778 if test "$GCC" = yes; then 13779 case $host_os in aix4.[012]|aix4.[012].*) 13780 # We only want to do this on AIX 4.2 and lower, the check 13781 # below for broken collect2 doesn't work under 4.3+ 13782 collect2name=`${CC} -print-prog-name=collect2` 13783 if test -f "$collect2name" && \ 13784 strings "$collect2name" | grep resolve_lib_name >/dev/null 13785 then 13786 # We have reworked collect2 13787 hardcode_direct_F77=yes 13788 else 13789 # We have old collect2 13790 hardcode_direct_F77=unsupported 13791 # It fails to find uninstalled libraries when the uninstalled 13792 # path is not listed in the libpath. Setting hardcode_minus_L 13793 # to unsupported forces relinking 13794 hardcode_minus_L_F77=yes 13795 hardcode_libdir_flag_spec_F77='-L$libdir' 13796 hardcode_libdir_separator_F77= 13797 fi 13798 ;; 13799 esac 13800 shared_flag='-shared' 13801 if test "$aix_use_runtimelinking" = yes; then 13802 shared_flag="$shared_flag "'${wl}-G' 13803 fi 13804 else 13805 # not using gcc 13806 if test "$host_cpu" = ia64; then 13807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13808 # chokes on -Wl,-G. The following line is correct: 13809 shared_flag='-G' 13810 else 13811 if test "$aix_use_runtimelinking" = yes; then 13812 shared_flag='${wl}-G' 13813 else 13814 shared_flag='${wl}-bM:SRE' 13815 fi 13816 fi 13817 fi 13818 13819 # It seems that -bexpall does not export symbols beginning with 13820 # underscore (_), so it is better to generate a list of symbols to export. 13821 always_export_symbols_F77=yes 13822 if test "$aix_use_runtimelinking" = yes; then 13823 # Warning - without using the other runtime loading flags (-brtl), 13824 # -berok will link without error, but may produce a broken library. 13825 allow_undefined_flag_F77='-berok' 13826 # Determine the default libpath from the value encoded in an empty executable. 13827 cat >conftest.$ac_ext <<_ACEOF 13828 program main 13829 13830 end 13831_ACEOF 13832rm -f conftest.$ac_objext conftest$ac_exeext 13833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13834 (eval $ac_link) 2>conftest.er1 13835 ac_status=$? 13836 grep -v '^ *+' conftest.er1 >conftest.err 13837 rm -f conftest.er1 13838 cat conftest.err >&5 13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13840 (exit $ac_status); } && 13841 { ac_try='test -z "$ac_f77_werror_flag" 13842 || test ! -s conftest.err' 13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13844 (eval $ac_try) 2>&5 13845 ac_status=$? 13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13847 (exit $ac_status); }; } && 13848 { ac_try='test -s conftest$ac_exeext' 13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13850 (eval $ac_try) 2>&5 13851 ac_status=$? 13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13853 (exit $ac_status); }; }; then 13854 13855aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13856}'` 13857# Check for a 64-bit object if we didn't find anything. 13858if 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; } 13859}'`; fi 13860else 13861 echo "$as_me: failed program was:" >&5 13862sed 's/^/| /' conftest.$ac_ext >&5 13863 13864fi 13865rm -f conftest.err conftest.$ac_objext \ 13866 conftest$ac_exeext conftest.$ac_ext 13867if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13868 13869 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13870 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" 13871 else 13872 if test "$host_cpu" = ia64; then 13873 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13874 allow_undefined_flag_F77="-z nodefs" 13875 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" 13876 else 13877 # Determine the default libpath from the value encoded in an empty executable. 13878 cat >conftest.$ac_ext <<_ACEOF 13879 program main 13880 13881 end 13882_ACEOF 13883rm -f conftest.$ac_objext conftest$ac_exeext 13884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13885 (eval $ac_link) 2>conftest.er1 13886 ac_status=$? 13887 grep -v '^ *+' conftest.er1 >conftest.err 13888 rm -f conftest.er1 13889 cat conftest.err >&5 13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13891 (exit $ac_status); } && 13892 { ac_try='test -z "$ac_f77_werror_flag" 13893 || test ! -s conftest.err' 13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13895 (eval $ac_try) 2>&5 13896 ac_status=$? 13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13898 (exit $ac_status); }; } && 13899 { ac_try='test -s conftest$ac_exeext' 13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13901 (eval $ac_try) 2>&5 13902 ac_status=$? 13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13904 (exit $ac_status); }; }; then 13905 13906aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13907}'` 13908# Check for a 64-bit object if we didn't find anything. 13909if 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; } 13910}'`; fi 13911else 13912 echo "$as_me: failed program was:" >&5 13913sed 's/^/| /' conftest.$ac_ext >&5 13914 13915fi 13916rm -f conftest.err conftest.$ac_objext \ 13917 conftest$ac_exeext conftest.$ac_ext 13918if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13919 13920 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13921 # Warning - without using the other run time loading flags, 13922 # -berok will link without error, but may produce a broken library. 13923 no_undefined_flag_F77=' ${wl}-bernotok' 13924 allow_undefined_flag_F77=' ${wl}-berok' 13925 # Exported symbols can be pulled into shared objects from archives 13926 whole_archive_flag_spec_F77='$convenience' 13927 archive_cmds_need_lc_F77=yes 13928 # This is similar to how AIX traditionally builds its shared libraries. 13929 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' 13930 fi 13931 fi 13932 ;; 13933 13934 amigaos*) 13935 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)' 13936 hardcode_libdir_flag_spec_F77='-L$libdir' 13937 hardcode_minus_L_F77=yes 13938 # see comment about different semantics on the GNU ld section 13939 ld_shlibs_F77=no 13940 ;; 13941 13942 bsdi[45]*) 13943 export_dynamic_flag_spec_F77=-rdynamic 13944 ;; 13945 13946 cygwin* | mingw* | pw32*) 13947 # When not using gcc, we currently assume that we are using 13948 # Microsoft Visual C++. 13949 # hardcode_libdir_flag_spec is actually meaningless, as there is 13950 # no search path for DLLs. 13951 hardcode_libdir_flag_spec_F77=' ' 13952 allow_undefined_flag_F77=unsupported 13953 # Tell ltmain to make .lib files, not .a files. 13954 libext=lib 13955 # Tell ltmain to make .dll files, not .so files. 13956 shrext_cmds=".dll" 13957 # FIXME: Setting linknames here is a bad hack. 13958 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13959 # The linker will automatically build a .lib file if we build a DLL. 13960 old_archive_From_new_cmds_F77='true' 13961 # FIXME: Should let the user specify the lib program. 13962 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13963 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 13964 enable_shared_with_static_runtimes_F77=yes 13965 ;; 13966 13967 darwin* | rhapsody*) 13968 case $host_os in 13969 rhapsody* | darwin1.[012]) 13970 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 13971 ;; 13972 *) # Darwin 1.3 on 13973 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13974 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13975 else 13976 case ${MACOSX_DEPLOYMENT_TARGET} in 13977 10.[012]) 13978 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13979 ;; 13980 10.*) 13981 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 13982 ;; 13983 esac 13984 fi 13985 ;; 13986 esac 13987 archive_cmds_need_lc_F77=no 13988 hardcode_direct_F77=no 13989 hardcode_automatic_F77=yes 13990 hardcode_shlibpath_var_F77=unsupported 13991 whole_archive_flag_spec_F77='' 13992 link_all_deplibs_F77=yes 13993 if test "$GCC" = yes ; then 13994 output_verbose_link_cmd='echo' 13995 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13996 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13997 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13998 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}' 13999 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}' 14000 else 14001 case $cc_basename in 14002 xlc*) 14003 output_verbose_link_cmd='echo' 14004 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14005 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14006 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14007 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}' 14008 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}' 14009 ;; 14010 *) 14011 ld_shlibs_F77=no 14012 ;; 14013 esac 14014 fi 14015 ;; 14016 14017 dgux*) 14018 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14019 hardcode_libdir_flag_spec_F77='-L$libdir' 14020 hardcode_shlibpath_var_F77=no 14021 ;; 14022 14023 freebsd1*) 14024 ld_shlibs_F77=no 14025 ;; 14026 14027 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14028 # support. Future versions do this automatically, but an explicit c++rt0.o 14029 # does not break anything, and helps significantly (at the cost of a little 14030 # extra space). 14031 freebsd2.2*) 14032 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14033 hardcode_libdir_flag_spec_F77='-R$libdir' 14034 hardcode_direct_F77=yes 14035 hardcode_shlibpath_var_F77=no 14036 ;; 14037 14038 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14039 freebsd2*) 14040 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14041 hardcode_direct_F77=yes 14042 hardcode_minus_L_F77=yes 14043 hardcode_shlibpath_var_F77=no 14044 ;; 14045 14046 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14047 freebsd* | kfreebsd*-gnu | dragonfly*) 14048 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14049 hardcode_libdir_flag_spec_F77='-R$libdir' 14050 hardcode_direct_F77=yes 14051 hardcode_shlibpath_var_F77=no 14052 ;; 14053 14054 hpux9*) 14055 if test "$GCC" = yes; then 14056 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' 14057 else 14058 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' 14059 fi 14060 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14061 hardcode_libdir_separator_F77=: 14062 hardcode_direct_F77=yes 14063 14064 # hardcode_minus_L: Not really in the search PATH, 14065 # but as the default location of the library. 14066 hardcode_minus_L_F77=yes 14067 export_dynamic_flag_spec_F77='${wl}-E' 14068 ;; 14069 14070 hpux10*) 14071 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14072 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14073 else 14074 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14075 fi 14076 if test "$with_gnu_ld" = no; then 14077 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14078 hardcode_libdir_separator_F77=: 14079 14080 hardcode_direct_F77=yes 14081 export_dynamic_flag_spec_F77='${wl}-E' 14082 14083 # hardcode_minus_L: Not really in the search PATH, 14084 # but as the default location of the library. 14085 hardcode_minus_L_F77=yes 14086 fi 14087 ;; 14088 14089 hpux11*) 14090 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14091 case $host_cpu in 14092 hppa*64*) 14093 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14094 ;; 14095 ia64*) 14096 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14097 ;; 14098 *) 14099 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14100 ;; 14101 esac 14102 else 14103 case $host_cpu in 14104 hppa*64*) 14105 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14106 ;; 14107 ia64*) 14108 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14109 ;; 14110 *) 14111 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14112 ;; 14113 esac 14114 fi 14115 if test "$with_gnu_ld" = no; then 14116 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14117 hardcode_libdir_separator_F77=: 14118 14119 case $host_cpu in 14120 hppa*64*|ia64*) 14121 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14122 hardcode_direct_F77=no 14123 hardcode_shlibpath_var_F77=no 14124 ;; 14125 *) 14126 hardcode_direct_F77=yes 14127 export_dynamic_flag_spec_F77='${wl}-E' 14128 14129 # hardcode_minus_L: Not really in the search PATH, 14130 # but as the default location of the library. 14131 hardcode_minus_L_F77=yes 14132 ;; 14133 esac 14134 fi 14135 ;; 14136 14137 irix5* | irix6* | nonstopux*) 14138 if test "$GCC" = yes; then 14139 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' 14140 else 14141 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' 14142 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14143 fi 14144 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14145 hardcode_libdir_separator_F77=: 14146 link_all_deplibs_F77=yes 14147 ;; 14148 14149 netbsd*) 14150 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14151 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14152 else 14153 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14154 fi 14155 hardcode_libdir_flag_spec_F77='-R$libdir' 14156 hardcode_direct_F77=yes 14157 hardcode_shlibpath_var_F77=no 14158 ;; 14159 14160 newsos6) 14161 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14162 hardcode_direct_F77=yes 14163 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14164 hardcode_libdir_separator_F77=: 14165 hardcode_shlibpath_var_F77=no 14166 ;; 14167 14168 openbsd*) 14169 hardcode_direct_F77=yes 14170 hardcode_shlibpath_var_F77=no 14171 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14172 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14173 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14174 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14175 export_dynamic_flag_spec_F77='${wl}-E' 14176 else 14177 case $host_os in 14178 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14179 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14180 hardcode_libdir_flag_spec_F77='-R$libdir' 14181 ;; 14182 *) 14183 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14184 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14185 ;; 14186 esac 14187 fi 14188 ;; 14189 14190 os2*) 14191 hardcode_libdir_flag_spec_F77='-L$libdir' 14192 hardcode_minus_L_F77=yes 14193 allow_undefined_flag_F77=unsupported 14194 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' 14195 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14196 ;; 14197 14198 osf3*) 14199 if test "$GCC" = yes; then 14200 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14201 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' 14202 else 14203 allow_undefined_flag_F77=' -expect_unresolved \*' 14204 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' 14205 fi 14206 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14207 hardcode_libdir_separator_F77=: 14208 ;; 14209 14210 osf4* | osf5*) # as osf3* with the addition of -msym flag 14211 if test "$GCC" = yes; then 14212 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14213 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' 14214 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14215 else 14216 allow_undefined_flag_F77=' -expect_unresolved \*' 14217 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' 14218 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~ 14219 $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' 14220 14221 # Both c and cxx compiler support -rpath directly 14222 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14223 fi 14224 hardcode_libdir_separator_F77=: 14225 ;; 14226 14227 solaris*) 14228 no_undefined_flag_F77=' -z text' 14229 if test "$GCC" = yes; then 14230 wlarc='${wl}' 14231 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14232 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14233 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14234 else 14235 wlarc='' 14236 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14237 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14238 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14239 fi 14240 hardcode_libdir_flag_spec_F77='-R$libdir' 14241 hardcode_shlibpath_var_F77=no 14242 case $host_os in 14243 solaris2.[0-5] | solaris2.[0-5].*) ;; 14244 *) 14245 # The compiler driver will combine linker options so we 14246 # cannot just pass the convience library names through 14247 # without $wl, iff we do not link with $LD. 14248 # Luckily, gcc supports the same syntax we need for Sun Studio. 14249 # Supported since Solaris 2.6 (maybe 2.5.1?) 14250 case $wlarc in 14251 '') 14252 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14253 *) 14254 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' ;; 14255 esac ;; 14256 esac 14257 link_all_deplibs_F77=yes 14258 ;; 14259 14260 sunos4*) 14261 if test "x$host_vendor" = xsequent; then 14262 # Use $CC to link under sequent, because it throws in some extra .o 14263 # files that make .init and .fini sections work. 14264 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14265 else 14266 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14267 fi 14268 hardcode_libdir_flag_spec_F77='-L$libdir' 14269 hardcode_direct_F77=yes 14270 hardcode_minus_L_F77=yes 14271 hardcode_shlibpath_var_F77=no 14272 ;; 14273 14274 sysv4) 14275 case $host_vendor in 14276 sni) 14277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14278 hardcode_direct_F77=yes # is this really true??? 14279 ;; 14280 siemens) 14281 ## LD is ld it makes a PLAMLIB 14282 ## CC just makes a GrossModule. 14283 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14284 reload_cmds_F77='$CC -r -o $output$reload_objs' 14285 hardcode_direct_F77=no 14286 ;; 14287 motorola) 14288 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14289 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14290 ;; 14291 esac 14292 runpath_var='LD_RUN_PATH' 14293 hardcode_shlibpath_var_F77=no 14294 ;; 14295 14296 sysv4.3*) 14297 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14298 hardcode_shlibpath_var_F77=no 14299 export_dynamic_flag_spec_F77='-Bexport' 14300 ;; 14301 14302 sysv4*MP*) 14303 if test -d /usr/nec; then 14304 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14305 hardcode_shlibpath_var_F77=no 14306 runpath_var=LD_RUN_PATH 14307 hardcode_runpath_var=yes 14308 ld_shlibs_F77=yes 14309 fi 14310 ;; 14311 14312 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14313 no_undefined_flag_F77='${wl}-z,text' 14314 archive_cmds_need_lc_F77=no 14315 hardcode_shlibpath_var_F77=no 14316 runpath_var='LD_RUN_PATH' 14317 14318 if test "$GCC" = yes; then 14319 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14320 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14321 else 14322 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14323 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14324 fi 14325 ;; 14326 14327 sysv5* | sco3.2v5* | sco5v6*) 14328 # Note: We can NOT use -z defs as we might desire, because we do not 14329 # link with -lc, and that would cause any symbols used from libc to 14330 # always be unresolved, which means just about no library would 14331 # ever link correctly. If we're not using GNU ld we use -z text 14332 # though, which does catch some bad symbols but isn't as heavy-handed 14333 # as -z defs. 14334 no_undefined_flag_F77='${wl}-z,text' 14335 allow_undefined_flag_F77='${wl}-z,nodefs' 14336 archive_cmds_need_lc_F77=no 14337 hardcode_shlibpath_var_F77=no 14338 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14339 hardcode_libdir_separator_F77=':' 14340 link_all_deplibs_F77=yes 14341 export_dynamic_flag_spec_F77='${wl}-Bexport' 14342 runpath_var='LD_RUN_PATH' 14343 14344 if test "$GCC" = yes; then 14345 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14346 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14347 else 14348 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14349 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14350 fi 14351 ;; 14352 14353 uts4*) 14354 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14355 hardcode_libdir_flag_spec_F77='-L$libdir' 14356 hardcode_shlibpath_var_F77=no 14357 ;; 14358 14359 *) 14360 ld_shlibs_F77=no 14361 ;; 14362 esac 14363 fi 14364 14365echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14366echo "${ECHO_T}$ld_shlibs_F77" >&6 14367test "$ld_shlibs_F77" = no && can_build_shared=no 14368 14369# 14370# Do we need to explicitly link libc? 14371# 14372case "x$archive_cmds_need_lc_F77" in 14373x|xyes) 14374 # Assume -lc should be added 14375 archive_cmds_need_lc_F77=yes 14376 14377 if test "$enable_shared" = yes && test "$GCC" = yes; then 14378 case $archive_cmds_F77 in 14379 *'~'*) 14380 # FIXME: we may have to deal with multi-command sequences. 14381 ;; 14382 '$CC '*) 14383 # Test whether the compiler implicitly links with -lc since on some 14384 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14385 # to ld, don't add -lc before -lgcc. 14386 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14387echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14388 $rm conftest* 14389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14390 14391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14392 (eval $ac_compile) 2>&5 14393 ac_status=$? 14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14395 (exit $ac_status); } 2>conftest.err; then 14396 soname=conftest 14397 lib=conftest 14398 libobjs=conftest.$ac_objext 14399 deplibs= 14400 wl=$lt_prog_compiler_wl_F77 14401 pic_flag=$lt_prog_compiler_pic_F77 14402 compiler_flags=-v 14403 linker_flags=-v 14404 verstring= 14405 output_objdir=. 14406 libname=conftest 14407 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14408 allow_undefined_flag_F77= 14409 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14410 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14411 ac_status=$? 14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14413 (exit $ac_status); } 14414 then 14415 archive_cmds_need_lc_F77=no 14416 else 14417 archive_cmds_need_lc_F77=yes 14418 fi 14419 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14420 else 14421 cat conftest.err 1>&5 14422 fi 14423 $rm conftest* 14424 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14425echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14426 ;; 14427 esac 14428 fi 14429 ;; 14430esac 14431 14432echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14433echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14434library_names_spec= 14435libname_spec='lib$name' 14436soname_spec= 14437shrext_cmds=".so" 14438postinstall_cmds= 14439postuninstall_cmds= 14440finish_cmds= 14441finish_eval= 14442shlibpath_var= 14443shlibpath_overrides_runpath=unknown 14444version_type=none 14445dynamic_linker="$host_os ld.so" 14446sys_lib_dlsearch_path_spec="/lib /usr/lib" 14447if test "$GCC" = yes; then 14448 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14449 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14450 # if the path contains ";" then we assume it to be the separator 14451 # otherwise default to the standard path separator (i.e. ":") - it is 14452 # assumed that no part of a normal pathname contains ";" but that should 14453 # okay in the real world where ";" in dirpaths is itself problematic. 14454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14455 else 14456 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14457 fi 14458else 14459 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14460fi 14461need_lib_prefix=unknown 14462hardcode_into_libs=no 14463 14464# when you set need_version to no, make sure it does not cause -set_version 14465# flags to be left without arguments 14466need_version=unknown 14467 14468case $host_os in 14469aix3*) 14470 version_type=linux 14471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14472 shlibpath_var=LIBPATH 14473 14474 # AIX 3 has no versioning support, so we append a major version to the name. 14475 soname_spec='${libname}${release}${shared_ext}$major' 14476 ;; 14477 14478aix4* | aix5*) 14479 version_type=linux 14480 need_lib_prefix=no 14481 need_version=no 14482 hardcode_into_libs=yes 14483 if test "$host_cpu" = ia64; then 14484 # AIX 5 supports IA64 14485 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14486 shlibpath_var=LD_LIBRARY_PATH 14487 else 14488 # With GCC up to 2.95.x, collect2 would create an import file 14489 # for dependence libraries. The import file would start with 14490 # the line `#! .'. This would cause the generated library to 14491 # depend on `.', always an invalid library. This was fixed in 14492 # development snapshots of GCC prior to 3.0. 14493 case $host_os in 14494 aix4 | aix4.[01] | aix4.[01].*) 14495 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14496 echo ' yes ' 14497 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14498 : 14499 else 14500 can_build_shared=no 14501 fi 14502 ;; 14503 esac 14504 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14505 # soname into executable. Probably we can add versioning support to 14506 # collect2, so additional links can be useful in future. 14507 if test "$aix_use_runtimelinking" = yes; then 14508 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14509 # instead of lib<name>.a to let people know that these are not 14510 # typical AIX shared libraries. 14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14512 else 14513 # We preserve .a as extension for shared libraries through AIX4.2 14514 # and later when we are not doing run time linking. 14515 library_names_spec='${libname}${release}.a $libname.a' 14516 soname_spec='${libname}${release}${shared_ext}$major' 14517 fi 14518 shlibpath_var=LIBPATH 14519 fi 14520 ;; 14521 14522amigaos*) 14523 library_names_spec='$libname.ixlibrary $libname.a' 14524 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14525 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' 14526 ;; 14527 14528beos*) 14529 library_names_spec='${libname}${shared_ext}' 14530 dynamic_linker="$host_os ld.so" 14531 shlibpath_var=LIBRARY_PATH 14532 ;; 14533 14534bsdi[45]*) 14535 version_type=linux 14536 need_version=no 14537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14538 soname_spec='${libname}${release}${shared_ext}$major' 14539 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14540 shlibpath_var=LD_LIBRARY_PATH 14541 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14542 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14543 # the default ld.so.conf also contains /usr/contrib/lib and 14544 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14545 # libtool to hard-code these into programs 14546 ;; 14547 14548cygwin* | mingw* | pw32*) 14549 version_type=windows 14550 shrext_cmds=".dll" 14551 need_version=no 14552 need_lib_prefix=no 14553 14554 case $GCC,$host_os in 14555 yes,cygwin* | yes,mingw* | yes,pw32*) 14556 library_names_spec='$libname.dll.a' 14557 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14558 postinstall_cmds='base_file=`basename \${file}`~ 14559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14560 dldir=$destdir/`dirname \$dlpath`~ 14561 test -d \$dldir || mkdir -p \$dldir~ 14562 $install_prog $dir/$dlname \$dldir/$dlname~ 14563 chmod a+x \$dldir/$dlname' 14564 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14565 dlpath=$dir/\$dldll~ 14566 $rm \$dlpath' 14567 shlibpath_overrides_runpath=yes 14568 14569 case $host_os in 14570 cygwin*) 14571 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14572 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14573 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14574 ;; 14575 mingw*) 14576 # MinGW DLLs use traditional 'lib' prefix 14577 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14578 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14579 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14580 # It is most probably a Windows format PATH printed by 14581 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14582 # path with ; separators, and with drive letters. We can handle the 14583 # drive letters (cygwin fileutils understands them), so leave them, 14584 # especially as we might pass files found there to a mingw objdump, 14585 # which wouldn't understand a cygwinified path. Ahh. 14586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14587 else 14588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14589 fi 14590 ;; 14591 pw32*) 14592 # pw32 DLLs use 'pw' prefix rather than 'lib' 14593 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14594 ;; 14595 esac 14596 ;; 14597 14598 *) 14599 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14600 ;; 14601 esac 14602 dynamic_linker='Win32 ld.exe' 14603 # FIXME: first we should search . and the directory the executable is in 14604 shlibpath_var=PATH 14605 ;; 14606 14607darwin* | rhapsody*) 14608 dynamic_linker="$host_os dyld" 14609 version_type=darwin 14610 need_lib_prefix=no 14611 need_version=no 14612 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14613 soname_spec='${libname}${release}${major}$shared_ext' 14614 shlibpath_overrides_runpath=yes 14615 shlibpath_var=DYLD_LIBRARY_PATH 14616 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14617 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14618 if test "$GCC" = yes; then 14619 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"` 14620 else 14621 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14622 fi 14623 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14624 ;; 14625 14626dgux*) 14627 version_type=linux 14628 need_lib_prefix=no 14629 need_version=no 14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14631 soname_spec='${libname}${release}${shared_ext}$major' 14632 shlibpath_var=LD_LIBRARY_PATH 14633 ;; 14634 14635freebsd1*) 14636 dynamic_linker=no 14637 ;; 14638 14639kfreebsd*-gnu) 14640 version_type=linux 14641 need_lib_prefix=no 14642 need_version=no 14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14644 soname_spec='${libname}${release}${shared_ext}$major' 14645 shlibpath_var=LD_LIBRARY_PATH 14646 shlibpath_overrides_runpath=no 14647 hardcode_into_libs=yes 14648 dynamic_linker='GNU ld.so' 14649 ;; 14650 14651freebsd* | dragonfly*) 14652 # DragonFly does not have aout. When/if they implement a new 14653 # versioning mechanism, adjust this. 14654 if test -x /usr/bin/objformat; then 14655 objformat=`/usr/bin/objformat` 14656 else 14657 case $host_os in 14658 freebsd[123]*) objformat=aout ;; 14659 *) objformat=elf ;; 14660 esac 14661 fi 14662 version_type=freebsd-$objformat 14663 case $version_type in 14664 freebsd-elf*) 14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14666 need_version=no 14667 need_lib_prefix=no 14668 ;; 14669 freebsd-*) 14670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14671 need_version=yes 14672 ;; 14673 esac 14674 shlibpath_var=LD_LIBRARY_PATH 14675 case $host_os in 14676 freebsd2*) 14677 shlibpath_overrides_runpath=yes 14678 ;; 14679 freebsd3.[01]* | freebsdelf3.[01]*) 14680 shlibpath_overrides_runpath=yes 14681 hardcode_into_libs=yes 14682 ;; 14683 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14684 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14685 shlibpath_overrides_runpath=no 14686 hardcode_into_libs=yes 14687 ;; 14688 freebsd*) # from 4.6 on 14689 shlibpath_overrides_runpath=yes 14690 hardcode_into_libs=yes 14691 ;; 14692 esac 14693 ;; 14694 14695gnu*) 14696 version_type=linux 14697 need_lib_prefix=no 14698 need_version=no 14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14700 soname_spec='${libname}${release}${shared_ext}$major' 14701 shlibpath_var=LD_LIBRARY_PATH 14702 hardcode_into_libs=yes 14703 ;; 14704 14705hpux9* | hpux10* | hpux11*) 14706 # Give a soname corresponding to the major version so that dld.sl refuses to 14707 # link against other versions. 14708 version_type=sunos 14709 need_lib_prefix=no 14710 need_version=no 14711 case $host_cpu in 14712 ia64*) 14713 shrext_cmds='.so' 14714 hardcode_into_libs=yes 14715 dynamic_linker="$host_os dld.so" 14716 shlibpath_var=LD_LIBRARY_PATH 14717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14719 soname_spec='${libname}${release}${shared_ext}$major' 14720 if test "X$HPUX_IA64_MODE" = X32; then 14721 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14722 else 14723 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14724 fi 14725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14726 ;; 14727 hppa*64*) 14728 shrext_cmds='.sl' 14729 hardcode_into_libs=yes 14730 dynamic_linker="$host_os dld.sl" 14731 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14734 soname_spec='${libname}${release}${shared_ext}$major' 14735 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14737 ;; 14738 *) 14739 shrext_cmds='.sl' 14740 dynamic_linker="$host_os dld.sl" 14741 shlibpath_var=SHLIB_PATH 14742 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14744 soname_spec='${libname}${release}${shared_ext}$major' 14745 ;; 14746 esac 14747 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14748 postinstall_cmds='chmod 555 $lib' 14749 ;; 14750 14751interix3*) 14752 version_type=linux 14753 need_lib_prefix=no 14754 need_version=no 14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14756 soname_spec='${libname}${release}${shared_ext}$major' 14757 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14758 shlibpath_var=LD_LIBRARY_PATH 14759 shlibpath_overrides_runpath=no 14760 hardcode_into_libs=yes 14761 ;; 14762 14763irix5* | irix6* | nonstopux*) 14764 case $host_os in 14765 nonstopux*) version_type=nonstopux ;; 14766 *) 14767 if test "$lt_cv_prog_gnu_ld" = yes; then 14768 version_type=linux 14769 else 14770 version_type=irix 14771 fi ;; 14772 esac 14773 need_lib_prefix=no 14774 need_version=no 14775 soname_spec='${libname}${release}${shared_ext}$major' 14776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14777 case $host_os in 14778 irix5* | nonstopux*) 14779 libsuff= shlibsuff= 14780 ;; 14781 *) 14782 case $LD in # libtool.m4 will add one of these switches to LD 14783 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14784 libsuff= shlibsuff= libmagic=32-bit;; 14785 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14786 libsuff=32 shlibsuff=N32 libmagic=N32;; 14787 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14788 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14789 *) libsuff= shlibsuff= libmagic=never-match;; 14790 esac 14791 ;; 14792 esac 14793 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14794 shlibpath_overrides_runpath=no 14795 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14796 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14797 hardcode_into_libs=yes 14798 ;; 14799 14800# No shared lib support for Linux oldld, aout, or coff. 14801linux*oldld* | linux*aout* | linux*coff*) 14802 dynamic_linker=no 14803 ;; 14804 14805# This must be Linux ELF. 14806linux*) 14807 version_type=linux 14808 need_lib_prefix=no 14809 need_version=no 14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14811 soname_spec='${libname}${release}${shared_ext}$major' 14812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14813 shlibpath_var=LD_LIBRARY_PATH 14814 shlibpath_overrides_runpath=no 14815 # This implies no fast_install, which is unacceptable. 14816 # Some rework will be needed to allow for fast_install 14817 # before this can be enabled. 14818 hardcode_into_libs=yes 14819 14820 # find out which ABI we are using 14821 libsuff= 14822 case "$host_cpu" in 14823 x86_64*|s390x*|powerpc64*) 14824 echo '#line 14824 "configure"' > conftest.$ac_ext 14825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14826 (eval $ac_compile) 2>&5 14827 ac_status=$? 14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14829 (exit $ac_status); }; then 14830 case `/usr/bin/file conftest.$ac_objext` in 14831 *64-bit*) 14832 libsuff=64 14833 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 14834 ;; 14835 esac 14836 fi 14837 rm -rf conftest* 14838 ;; 14839 esac 14840 14841 # Append ld.so.conf contents to the search path 14842 if test -f /etc/ld.so.conf; then 14843 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' ' '` 14844 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 14845 fi 14846 14847 # We used to test for /lib/ld.so.1 and disable shared libraries on 14848 # powerpc, because MkLinux only supported shared libraries with the 14849 # GNU dynamic linker. Since this was broken with cross compilers, 14850 # most powerpc-linux boxes support dynamic linking these days and 14851 # people can always --disable-shared, the test was removed, and we 14852 # assume the GNU/Linux dynamic linker is in use. 14853 dynamic_linker='GNU/Linux ld.so' 14854 ;; 14855 14856knetbsd*-gnu) 14857 version_type=linux 14858 need_lib_prefix=no 14859 need_version=no 14860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14861 soname_spec='${libname}${release}${shared_ext}$major' 14862 shlibpath_var=LD_LIBRARY_PATH 14863 shlibpath_overrides_runpath=no 14864 hardcode_into_libs=yes 14865 dynamic_linker='GNU ld.so' 14866 ;; 14867 14868netbsd*) 14869 version_type=sunos 14870 need_lib_prefix=no 14871 need_version=no 14872 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14875 dynamic_linker='NetBSD (a.out) ld.so' 14876 else 14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14878 soname_spec='${libname}${release}${shared_ext}$major' 14879 dynamic_linker='NetBSD ld.elf_so' 14880 fi 14881 shlibpath_var=LD_LIBRARY_PATH 14882 shlibpath_overrides_runpath=yes 14883 hardcode_into_libs=yes 14884 ;; 14885 14886newsos6) 14887 version_type=linux 14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14889 shlibpath_var=LD_LIBRARY_PATH 14890 shlibpath_overrides_runpath=yes 14891 ;; 14892 14893nto-qnx*) 14894 version_type=linux 14895 need_lib_prefix=no 14896 need_version=no 14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14898 soname_spec='${libname}${release}${shared_ext}$major' 14899 shlibpath_var=LD_LIBRARY_PATH 14900 shlibpath_overrides_runpath=yes 14901 ;; 14902 14903openbsd*) 14904 version_type=sunos 14905 sys_lib_dlsearch_path_spec="/usr/lib" 14906 need_lib_prefix=no 14907 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14908 case $host_os in 14909 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14910 *) need_version=no ;; 14911 esac 14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14914 shlibpath_var=LD_LIBRARY_PATH 14915 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14916 case $host_os in 14917 openbsd2.[89] | openbsd2.[89].*) 14918 shlibpath_overrides_runpath=no 14919 ;; 14920 *) 14921 shlibpath_overrides_runpath=yes 14922 ;; 14923 esac 14924 else 14925 shlibpath_overrides_runpath=yes 14926 fi 14927 ;; 14928 14929os2*) 14930 libname_spec='$name' 14931 shrext_cmds=".dll" 14932 need_lib_prefix=no 14933 library_names_spec='$libname${shared_ext} $libname.a' 14934 dynamic_linker='OS/2 ld.exe' 14935 shlibpath_var=LIBPATH 14936 ;; 14937 14938osf3* | osf4* | osf5*) 14939 version_type=osf 14940 need_lib_prefix=no 14941 need_version=no 14942 soname_spec='${libname}${release}${shared_ext}$major' 14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14944 shlibpath_var=LD_LIBRARY_PATH 14945 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14946 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14947 ;; 14948 14949solaris*) 14950 version_type=linux 14951 need_lib_prefix=no 14952 need_version=no 14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14954 soname_spec='${libname}${release}${shared_ext}$major' 14955 shlibpath_var=LD_LIBRARY_PATH 14956 shlibpath_overrides_runpath=yes 14957 hardcode_into_libs=yes 14958 # ldd complains unless libraries are executable 14959 postinstall_cmds='chmod +x $lib' 14960 ;; 14961 14962sunos4*) 14963 version_type=sunos 14964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14965 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14966 shlibpath_var=LD_LIBRARY_PATH 14967 shlibpath_overrides_runpath=yes 14968 if test "$with_gnu_ld" = yes; then 14969 need_lib_prefix=no 14970 fi 14971 need_version=yes 14972 ;; 14973 14974sysv4 | sysv4.3*) 14975 version_type=linux 14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14977 soname_spec='${libname}${release}${shared_ext}$major' 14978 shlibpath_var=LD_LIBRARY_PATH 14979 case $host_vendor in 14980 sni) 14981 shlibpath_overrides_runpath=no 14982 need_lib_prefix=no 14983 export_dynamic_flag_spec='${wl}-Blargedynsym' 14984 runpath_var=LD_RUN_PATH 14985 ;; 14986 siemens) 14987 need_lib_prefix=no 14988 ;; 14989 motorola) 14990 need_lib_prefix=no 14991 need_version=no 14992 shlibpath_overrides_runpath=no 14993 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14994 ;; 14995 esac 14996 ;; 14997 14998sysv4*MP*) 14999 if test -d /usr/nec ;then 15000 version_type=linux 15001 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15002 soname_spec='$libname${shared_ext}.$major' 15003 shlibpath_var=LD_LIBRARY_PATH 15004 fi 15005 ;; 15006 15007sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15008 version_type=freebsd-elf 15009 need_lib_prefix=no 15010 need_version=no 15011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15012 soname_spec='${libname}${release}${shared_ext}$major' 15013 shlibpath_var=LD_LIBRARY_PATH 15014 hardcode_into_libs=yes 15015 if test "$with_gnu_ld" = yes; then 15016 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15017 shlibpath_overrides_runpath=no 15018 else 15019 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15020 shlibpath_overrides_runpath=yes 15021 case $host_os in 15022 sco3.2v5*) 15023 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15024 ;; 15025 esac 15026 fi 15027 sys_lib_dlsearch_path_spec='/usr/lib' 15028 ;; 15029 15030uts4*) 15031 version_type=linux 15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15033 soname_spec='${libname}${release}${shared_ext}$major' 15034 shlibpath_var=LD_LIBRARY_PATH 15035 ;; 15036 15037*) 15038 dynamic_linker=no 15039 ;; 15040esac 15041echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15042echo "${ECHO_T}$dynamic_linker" >&6 15043test "$dynamic_linker" = no && can_build_shared=no 15044 15045variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15046if test "$GCC" = yes; then 15047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15048fi 15049 15050echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15051echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15052hardcode_action_F77= 15053if test -n "$hardcode_libdir_flag_spec_F77" || \ 15054 test -n "$runpath_var_F77" || \ 15055 test "X$hardcode_automatic_F77" = "Xyes" ; then 15056 15057 # We can hardcode non-existant directories. 15058 if test "$hardcode_direct_F77" != no && 15059 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15060 # have to relink, otherwise we might link with an installed library 15061 # when we should be linking with a yet-to-be-installed one 15062 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15063 test "$hardcode_minus_L_F77" != no; then 15064 # Linking always hardcodes the temporary library directory. 15065 hardcode_action_F77=relink 15066 else 15067 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15068 hardcode_action_F77=immediate 15069 fi 15070else 15071 # We cannot hardcode anything, or else we can only hardcode existing 15072 # directories. 15073 hardcode_action_F77=unsupported 15074fi 15075echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15076echo "${ECHO_T}$hardcode_action_F77" >&6 15077 15078if test "$hardcode_action_F77" = relink; then 15079 # Fast installation is not supported 15080 enable_fast_install=no 15081elif test "$shlibpath_overrides_runpath" = yes || 15082 test "$enable_shared" = no; then 15083 # Fast installation is not necessary 15084 enable_fast_install=needless 15085fi 15086 15087 15088# The else clause should only fire when bootstrapping the 15089# libtool distribution, otherwise you forgot to ship ltmain.sh 15090# with your package, and you will get complaints that there are 15091# no rules to generate ltmain.sh. 15092if test -f "$ltmain"; then 15093 # See if we are running on zsh, and set the options which allow our commands through 15094 # without removal of \ escapes. 15095 if test -n "${ZSH_VERSION+set}" ; then 15096 setopt NO_GLOB_SUBST 15097 fi 15098 # Now quote all the things that may contain metacharacters while being 15099 # careful not to overquote the AC_SUBSTed values. We take copies of the 15100 # variables and quote the copies for generation of the libtool script. 15101 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15102 SED SHELL STRIP \ 15103 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15104 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15105 deplibs_check_method reload_flag reload_cmds need_locks \ 15106 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15107 lt_cv_sys_global_symbol_to_c_name_address \ 15108 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15109 old_postinstall_cmds old_postuninstall_cmds \ 15110 compiler_F77 \ 15111 CC_F77 \ 15112 LD_F77 \ 15113 lt_prog_compiler_wl_F77 \ 15114 lt_prog_compiler_pic_F77 \ 15115 lt_prog_compiler_static_F77 \ 15116 lt_prog_compiler_no_builtin_flag_F77 \ 15117 export_dynamic_flag_spec_F77 \ 15118 thread_safe_flag_spec_F77 \ 15119 whole_archive_flag_spec_F77 \ 15120 enable_shared_with_static_runtimes_F77 \ 15121 old_archive_cmds_F77 \ 15122 old_archive_from_new_cmds_F77 \ 15123 predep_objects_F77 \ 15124 postdep_objects_F77 \ 15125 predeps_F77 \ 15126 postdeps_F77 \ 15127 compiler_lib_search_path_F77 \ 15128 archive_cmds_F77 \ 15129 archive_expsym_cmds_F77 \ 15130 postinstall_cmds_F77 \ 15131 postuninstall_cmds_F77 \ 15132 old_archive_from_expsyms_cmds_F77 \ 15133 allow_undefined_flag_F77 \ 15134 no_undefined_flag_F77 \ 15135 export_symbols_cmds_F77 \ 15136 hardcode_libdir_flag_spec_F77 \ 15137 hardcode_libdir_flag_spec_ld_F77 \ 15138 hardcode_libdir_separator_F77 \ 15139 hardcode_automatic_F77 \ 15140 module_cmds_F77 \ 15141 module_expsym_cmds_F77 \ 15142 lt_cv_prog_compiler_c_o_F77 \ 15143 exclude_expsyms_F77 \ 15144 include_expsyms_F77; do 15145 15146 case $var in 15147 old_archive_cmds_F77 | \ 15148 old_archive_from_new_cmds_F77 | \ 15149 archive_cmds_F77 | \ 15150 archive_expsym_cmds_F77 | \ 15151 module_cmds_F77 | \ 15152 module_expsym_cmds_F77 | \ 15153 old_archive_from_expsyms_cmds_F77 | \ 15154 export_symbols_cmds_F77 | \ 15155 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15156 postinstall_cmds | postuninstall_cmds | \ 15157 old_postinstall_cmds | old_postuninstall_cmds | \ 15158 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15159 # Double-quote double-evaled strings. 15160 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15161 ;; 15162 *) 15163 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15164 ;; 15165 esac 15166 done 15167 15168 case $lt_echo in 15169 *'\$0 --fallback-echo"') 15170 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15171 ;; 15172 esac 15173 15174cfgfile="$ofile" 15175 15176 cat <<__EOF__ >> "$cfgfile" 15177# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15178 15179# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15180 15181# Shell to use when invoking shell scripts. 15182SHELL=$lt_SHELL 15183 15184# Whether or not to build shared libraries. 15185build_libtool_libs=$enable_shared 15186 15187# Whether or not to build static libraries. 15188build_old_libs=$enable_static 15189 15190# Whether or not to add -lc for building shared libraries. 15191build_libtool_need_lc=$archive_cmds_need_lc_F77 15192 15193# Whether or not to disallow shared libs when runtime libs are static 15194allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15195 15196# Whether or not to optimize for fast installation. 15197fast_install=$enable_fast_install 15198 15199# The host system. 15200host_alias=$host_alias 15201host=$host 15202host_os=$host_os 15203 15204# The build system. 15205build_alias=$build_alias 15206build=$build 15207build_os=$build_os 15208 15209# An echo program that does not interpret backslashes. 15210echo=$lt_echo 15211 15212# The archiver. 15213AR=$lt_AR 15214AR_FLAGS=$lt_AR_FLAGS 15215 15216# A C compiler. 15217LTCC=$lt_LTCC 15218 15219# LTCC compiler flags. 15220LTCFLAGS=$lt_LTCFLAGS 15221 15222# A language-specific compiler. 15223CC=$lt_compiler_F77 15224 15225# Is the compiler the GNU C compiler? 15226with_gcc=$GCC_F77 15227 15228gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 15229gcc_ver=\`gcc -dumpversion\` 15230 15231# An ERE matcher. 15232EGREP=$lt_EGREP 15233 15234# The linker used to build libraries. 15235LD=$lt_LD_F77 15236 15237# Whether we need hard or soft links. 15238LN_S=$lt_LN_S 15239 15240# A BSD-compatible nm program. 15241NM=$lt_NM 15242 15243# A symbol stripping program 15244STRIP=$lt_STRIP 15245 15246# Used to examine libraries when file_magic_cmd begins "file" 15247MAGIC_CMD=$MAGIC_CMD 15248 15249# Used on cygwin: DLL creation program. 15250DLLTOOL="$DLLTOOL" 15251 15252# Used on cygwin: object dumper. 15253OBJDUMP="$OBJDUMP" 15254 15255# Used on cygwin: assembler. 15256AS="$AS" 15257 15258# The name of the directory that contains temporary libtool files. 15259objdir=$objdir 15260 15261# How to create reloadable object files. 15262reload_flag=$lt_reload_flag 15263reload_cmds=$lt_reload_cmds 15264 15265# How to pass a linker flag through the compiler. 15266wl=$lt_lt_prog_compiler_wl_F77 15267 15268# Object file suffix (normally "o"). 15269objext="$ac_objext" 15270 15271# Old archive suffix (normally "a"). 15272libext="$libext" 15273 15274# Shared library suffix (normally ".so"). 15275shrext_cmds='$shrext_cmds' 15276 15277# Executable file suffix (normally ""). 15278exeext="$exeext" 15279 15280# Additional compiler flags for building library objects. 15281pic_flag=$lt_lt_prog_compiler_pic_F77 15282pic_mode=$pic_mode 15283 15284# What is the maximum length of a command? 15285max_cmd_len=$lt_cv_sys_max_cmd_len 15286 15287# Does compiler simultaneously support -c and -o options? 15288compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15289 15290# Must we lock files when doing compilation? 15291need_locks=$lt_need_locks 15292 15293# Do we need the lib prefix for modules? 15294need_lib_prefix=$need_lib_prefix 15295 15296# Do we need a version for libraries? 15297need_version=$need_version 15298 15299# Whether dlopen is supported. 15300dlopen_support=$enable_dlopen 15301 15302# Whether dlopen of programs is supported. 15303dlopen_self=$enable_dlopen_self 15304 15305# Whether dlopen of statically linked programs is supported. 15306dlopen_self_static=$enable_dlopen_self_static 15307 15308# Compiler flag to prevent dynamic linking. 15309link_static_flag=$lt_lt_prog_compiler_static_F77 15310 15311# Compiler flag to turn off builtin functions. 15312no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15313 15314# Compiler flag to allow reflexive dlopens. 15315export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15316 15317# Compiler flag to generate shared objects directly from archives. 15318whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15319 15320# Compiler flag to generate thread-safe objects. 15321thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15322 15323# Library versioning type. 15324version_type=$version_type 15325 15326# Format of library name prefix. 15327libname_spec=$lt_libname_spec 15328 15329# List of archive names. First name is the real one, the rest are links. 15330# The last name is the one that the linker finds with -lNAME. 15331library_names_spec=$lt_library_names_spec 15332 15333# The coded name of the library, if different from the real name. 15334soname_spec=$lt_soname_spec 15335 15336# Commands used to build and install an old-style archive. 15337RANLIB=$lt_RANLIB 15338old_archive_cmds=$lt_old_archive_cmds_F77 15339old_postinstall_cmds=$lt_old_postinstall_cmds 15340old_postuninstall_cmds=$lt_old_postuninstall_cmds 15341 15342# Create an old-style archive from a shared archive. 15343old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15344 15345# Create a temporary old-style archive to link instead of a shared archive. 15346old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15347 15348# Commands used to build and install a shared archive. 15349archive_cmds=$lt_archive_cmds_F77 15350archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15351postinstall_cmds=$lt_postinstall_cmds 15352postuninstall_cmds=$lt_postuninstall_cmds 15353 15354# Commands used to build a loadable module (assumed same as above if empty) 15355module_cmds=$lt_module_cmds_F77 15356module_expsym_cmds=$lt_module_expsym_cmds_F77 15357 15358# Commands to strip libraries. 15359old_striplib=$lt_old_striplib 15360striplib=$lt_striplib 15361 15362# Dependencies to place before the objects being linked to create a 15363# shared library. 15364predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15365 15366# Dependencies to place after the objects being linked to create a 15367# shared library. 15368postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15369 15370# Dependencies to place before the objects being linked to create a 15371# shared library. 15372predeps=$lt_predeps_F77 15373 15374# Dependencies to place after the objects being linked to create a 15375# shared library. 15376postdeps=$lt_postdeps_F77 15377 15378# The library search path used internally by the compiler when linking 15379# a shared library. 15380compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15381 15382# Method to check whether dependent libraries are shared objects. 15383deplibs_check_method=$lt_deplibs_check_method 15384 15385# Command to use when deplibs_check_method == file_magic. 15386file_magic_cmd=$lt_file_magic_cmd 15387 15388# Flag that allows shared libraries with undefined symbols to be built. 15389allow_undefined_flag=$lt_allow_undefined_flag_F77 15390 15391# Flag that forces no undefined symbols. 15392no_undefined_flag=$lt_no_undefined_flag_F77 15393 15394# Commands used to finish a libtool library installation in a directory. 15395finish_cmds=$lt_finish_cmds 15396 15397# Same as above, but a single script fragment to be evaled but not shown. 15398finish_eval=$lt_finish_eval 15399 15400# Take the output of nm and produce a listing of raw symbols and C names. 15401global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15402 15403# Transform the output of nm in a proper C declaration 15404global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15405 15406# Transform the output of nm in a C name address pair 15407global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15408 15409# This is the shared library runtime path variable. 15410runpath_var=$runpath_var 15411 15412# This is the shared library path variable. 15413shlibpath_var=$shlibpath_var 15414 15415# Is shlibpath searched before the hard-coded library search path? 15416shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15417 15418# How to hardcode a shared library path into an executable. 15419hardcode_action=$hardcode_action_F77 15420 15421# Whether we should hardcode library paths into libraries. 15422hardcode_into_libs=$hardcode_into_libs 15423 15424# Flag to hardcode \$libdir into a binary during linking. 15425# This must work even if \$libdir does not exist. 15426hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15427 15428# If ld is used when linking, flag to hardcode \$libdir into 15429# a binary during linking. This must work even if \$libdir does 15430# not exist. 15431hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15432 15433# Whether we need a single -rpath flag with a separated argument. 15434hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15435 15436# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15437# resulting binary. 15438hardcode_direct=$hardcode_direct_F77 15439 15440# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15441# resulting binary. 15442hardcode_minus_L=$hardcode_minus_L_F77 15443 15444# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15445# the resulting binary. 15446hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15447 15448# Set to yes if building a shared library automatically hardcodes DIR into the library 15449# and all subsequent libraries and executables linked against it. 15450hardcode_automatic=$hardcode_automatic_F77 15451 15452# Variables whose values should be saved in libtool wrapper scripts and 15453# restored at relink time. 15454variables_saved_for_relink="$variables_saved_for_relink" 15455 15456# Whether libtool must link a program against all its dependency libraries. 15457link_all_deplibs=$link_all_deplibs_F77 15458 15459# Compile-time system search path for libraries 15460sys_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"\` 15461 15462# Run-time system search path for libraries 15463sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15464 15465# Fix the shell variable \$srcfile for the compiler. 15466fix_srcfile_path="$fix_srcfile_path_F77" 15467 15468# Set to yes if exported symbols are required. 15469always_export_symbols=$always_export_symbols_F77 15470 15471# The commands to list exported symbols. 15472export_symbols_cmds=$lt_export_symbols_cmds_F77 15473 15474# The commands to extract the exported symbol list from a shared archive. 15475extract_expsyms_cmds=$lt_extract_expsyms_cmds 15476 15477# Symbols that should not be listed in the preloaded symbols. 15478exclude_expsyms=$lt_exclude_expsyms_F77 15479 15480# Symbols that must always be exported. 15481include_expsyms=$lt_include_expsyms_F77 15482 15483# ### END LIBTOOL TAG CONFIG: $tagname 15484 15485__EOF__ 15486 15487 15488else 15489 # If there is no Makefile yet, we rely on a make rule to execute 15490 # `config.status --recheck' to rerun these tests and create the 15491 # libtool script then. 15492 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15493 if test -f "$ltmain_in"; then 15494 test -f Makefile && make "$ltmain" 15495 fi 15496fi 15497 15498 15499ac_ext=c 15500ac_cpp='$CPP $CPPFLAGS' 15501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15503ac_compiler_gnu=$ac_cv_c_compiler_gnu 15504 15505CC="$lt_save_CC" 15506 15507 else 15508 tagname="" 15509 fi 15510 ;; 15511 15512 GCJ) 15513 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15514 15515 15516 15517# Source file extension for Java test sources. 15518ac_ext=java 15519 15520# Object file extension for compiled Java test sources. 15521objext=o 15522objext_GCJ=$objext 15523 15524# Code to be used in simple compile tests 15525lt_simple_compile_test_code="class foo {}\n" 15526 15527# Code to be used in simple link tests 15528lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15529 15530# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15531 15532# If no C compiler was specified, use CC. 15533LTCC=${LTCC-"$CC"} 15534 15535# If no C compiler flags were specified, use CFLAGS. 15536LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15537 15538# Allow CC to be a program name with arguments. 15539compiler=$CC 15540 15541 15542# save warnings/boilerplate of simple test code 15543ac_outfile=conftest.$ac_objext 15544printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15545eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15546_lt_compiler_boilerplate=`cat conftest.err` 15547$rm conftest* 15548 15549ac_outfile=conftest.$ac_objext 15550printf "$lt_simple_link_test_code" >conftest.$ac_ext 15551eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15552_lt_linker_boilerplate=`cat conftest.err` 15553$rm conftest* 15554 15555 15556# Allow CC to be a program name with arguments. 15557lt_save_CC="$CC" 15558CC=${GCJ-"gcj"} 15559compiler=$CC 15560compiler_GCJ=$CC 15561for cc_temp in $compiler""; do 15562 case $cc_temp in 15563 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15564 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15565 \-*) ;; 15566 *) break;; 15567 esac 15568done 15569cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15570 15571 15572# GCJ did not exist at the time GCC didn't implicitly link libc in. 15573archive_cmds_need_lc_GCJ=no 15574 15575old_archive_cmds_GCJ=$old_archive_cmds 15576 15577 15578lt_prog_compiler_no_builtin_flag_GCJ= 15579 15580if test "$GCC" = yes; then 15581 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15582 15583 15584echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15585echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15586if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15587 echo $ECHO_N "(cached) $ECHO_C" >&6 15588else 15589 lt_cv_prog_compiler_rtti_exceptions=no 15590 ac_outfile=conftest.$ac_objext 15591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15592 lt_compiler_flag="-fno-rtti -fno-exceptions" 15593 # Insert the option either (1) after the last *FLAGS variable, or 15594 # (2) before a word containing "conftest.", or (3) at the end. 15595 # Note that $ac_compile itself does not contain backslashes and begins 15596 # with a dollar sign (not a hyphen), so the echo should work correctly. 15597 # The option is referenced via a variable to avoid confusing sed. 15598 lt_compile=`echo "$ac_compile" | $SED \ 15599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15601 -e 's:$: $lt_compiler_flag:'` 15602 (eval echo "\"\$as_me:15602: $lt_compile\"" >&5) 15603 (eval "$lt_compile" 2>conftest.err) 15604 ac_status=$? 15605 cat conftest.err >&5 15606 echo "$as_me:15606: \$? = $ac_status" >&5 15607 if (exit $ac_status) && test -s "$ac_outfile"; then 15608 # The compiler can only warn and ignore the option if not recognized 15609 # So say no if there are warnings other than the usual output. 15610 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15612 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15613 lt_cv_prog_compiler_rtti_exceptions=yes 15614 fi 15615 fi 15616 $rm conftest* 15617 15618fi 15619echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15620echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15621 15622if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15623 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15624else 15625 : 15626fi 15627 15628fi 15629 15630lt_prog_compiler_wl_GCJ= 15631lt_prog_compiler_pic_GCJ= 15632lt_prog_compiler_static_GCJ= 15633 15634echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15635echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15636 15637 if test "$GCC" = yes; then 15638 lt_prog_compiler_wl_GCJ='-Wl,' 15639 lt_prog_compiler_static_GCJ='-static' 15640 15641 case $host_os in 15642 aix*) 15643 # All AIX code is PIC. 15644 if test "$host_cpu" = ia64; then 15645 # AIX 5 now supports IA64 processor 15646 lt_prog_compiler_static_GCJ='-Bstatic' 15647 fi 15648 ;; 15649 15650 amigaos*) 15651 # FIXME: we need at least 68020 code to build shared libraries, but 15652 # adding the `-m68020' flag to GCC prevents building anything better, 15653 # like `-m68040'. 15654 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15655 ;; 15656 15657 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15658 # PIC is the default for these OSes. 15659 ;; 15660 15661 mingw* | pw32* | os2*) 15662 # This hack is so that the source file can tell whether it is being 15663 # built for inclusion in a dll (and should export symbols for example). 15664 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15665 ;; 15666 15667 darwin* | rhapsody*) 15668 # PIC is the default on this platform 15669 # Common symbols not allowed in MH_DYLIB files 15670 lt_prog_compiler_pic_GCJ='-fno-common' 15671 ;; 15672 15673 interix3*) 15674 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15675 # Instead, we relocate shared libraries at runtime. 15676 ;; 15677 15678 msdosdjgpp*) 15679 # Just because we use GCC doesn't mean we suddenly get shared libraries 15680 # on systems that don't support them. 15681 lt_prog_compiler_can_build_shared_GCJ=no 15682 enable_shared=no 15683 ;; 15684 15685 sysv4*MP*) 15686 if test -d /usr/nec; then 15687 lt_prog_compiler_pic_GCJ=-Kconform_pic 15688 fi 15689 ;; 15690 15691 hpux*) 15692 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15693 # not for PA HP-UX. 15694 case $host_cpu in 15695 hppa*64*|ia64*) 15696 # +Z the default 15697 ;; 15698 *) 15699 lt_prog_compiler_pic_GCJ='-fPIC' 15700 ;; 15701 esac 15702 ;; 15703 15704 *) 15705 lt_prog_compiler_pic_GCJ='-fPIC' 15706 ;; 15707 esac 15708 else 15709 # PORTME Check for flag to pass linker flags through the system compiler. 15710 case $host_os in 15711 aix*) 15712 lt_prog_compiler_wl_GCJ='-Wl,' 15713 if test "$host_cpu" = ia64; then 15714 # AIX 5 now supports IA64 processor 15715 lt_prog_compiler_static_GCJ='-Bstatic' 15716 else 15717 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15718 fi 15719 ;; 15720 darwin*) 15721 # PIC is the default on this platform 15722 # Common symbols not allowed in MH_DYLIB files 15723 case $cc_basename in 15724 xlc*) 15725 lt_prog_compiler_pic_GCJ='-qnocommon' 15726 lt_prog_compiler_wl_GCJ='-Wl,' 15727 ;; 15728 esac 15729 ;; 15730 15731 mingw* | pw32* | os2*) 15732 # This hack is so that the source file can tell whether it is being 15733 # built for inclusion in a dll (and should export symbols for example). 15734 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15735 ;; 15736 15737 hpux9* | hpux10* | hpux11*) 15738 lt_prog_compiler_wl_GCJ='-Wl,' 15739 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15740 # not for PA HP-UX. 15741 case $host_cpu in 15742 hppa*64*|ia64*) 15743 # +Z the default 15744 ;; 15745 *) 15746 lt_prog_compiler_pic_GCJ='+Z' 15747 ;; 15748 esac 15749 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15750 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15751 ;; 15752 15753 irix5* | irix6* | nonstopux*) 15754 lt_prog_compiler_wl_GCJ='-Wl,' 15755 # PIC (with -KPIC) is the default. 15756 lt_prog_compiler_static_GCJ='-non_shared' 15757 ;; 15758 15759 newsos6) 15760 lt_prog_compiler_pic_GCJ='-KPIC' 15761 lt_prog_compiler_static_GCJ='-Bstatic' 15762 ;; 15763 15764 linux*) 15765 case $cc_basename in 15766 icc* | ecc*) 15767 lt_prog_compiler_wl_GCJ='-Wl,' 15768 lt_prog_compiler_pic_GCJ='-KPIC' 15769 lt_prog_compiler_static_GCJ='-static' 15770 ;; 15771 pgcc* | pgf77* | pgf90* | pgf95*) 15772 # Portland Group compilers (*not* the Pentium gcc compiler, 15773 # which looks to be a dead project) 15774 lt_prog_compiler_wl_GCJ='-Wl,' 15775 lt_prog_compiler_pic_GCJ='-fpic' 15776 lt_prog_compiler_static_GCJ='-Bstatic' 15777 ;; 15778 ccc*) 15779 lt_prog_compiler_wl_GCJ='-Wl,' 15780 # All Alpha code is PIC. 15781 lt_prog_compiler_static_GCJ='-non_shared' 15782 ;; 15783 esac 15784 ;; 15785 15786 osf3* | osf4* | osf5*) 15787 lt_prog_compiler_wl_GCJ='-Wl,' 15788 # All OSF/1 code is PIC. 15789 lt_prog_compiler_static_GCJ='-non_shared' 15790 ;; 15791 15792 solaris*) 15793 lt_prog_compiler_pic_GCJ='-KPIC' 15794 lt_prog_compiler_static_GCJ='-Bstatic' 15795 case $cc_basename in 15796 f77* | f90* | f95*) 15797 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 15798 *) 15799 lt_prog_compiler_wl_GCJ='-Wl,';; 15800 esac 15801 ;; 15802 15803 sunos4*) 15804 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15805 lt_prog_compiler_pic_GCJ='-PIC' 15806 lt_prog_compiler_static_GCJ='-Bstatic' 15807 ;; 15808 15809 sysv4 | sysv4.2uw2* | sysv4.3*) 15810 lt_prog_compiler_wl_GCJ='-Wl,' 15811 lt_prog_compiler_pic_GCJ='-KPIC' 15812 lt_prog_compiler_static_GCJ='-Bstatic' 15813 ;; 15814 15815 sysv4*MP*) 15816 if test -d /usr/nec ;then 15817 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15818 lt_prog_compiler_static_GCJ='-Bstatic' 15819 fi 15820 ;; 15821 15822 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15823 lt_prog_compiler_wl_GCJ='-Wl,' 15824 lt_prog_compiler_pic_GCJ='-KPIC' 15825 lt_prog_compiler_static_GCJ='-Bstatic' 15826 ;; 15827 15828 unicos*) 15829 lt_prog_compiler_wl_GCJ='-Wl,' 15830 lt_prog_compiler_can_build_shared_GCJ=no 15831 ;; 15832 15833 uts4*) 15834 lt_prog_compiler_pic_GCJ='-pic' 15835 lt_prog_compiler_static_GCJ='-Bstatic' 15836 ;; 15837 15838 *) 15839 lt_prog_compiler_can_build_shared_GCJ=no 15840 ;; 15841 esac 15842 fi 15843 15844echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15845echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15846 15847# 15848# Check to make sure the PIC flag actually works. 15849# 15850if test -n "$lt_prog_compiler_pic_GCJ"; then 15851 15852echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15853echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15854if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15855 echo $ECHO_N "(cached) $ECHO_C" >&6 15856else 15857 lt_prog_compiler_pic_works_GCJ=no 15858 ac_outfile=conftest.$ac_objext 15859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15860 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15861 # Insert the option either (1) after the last *FLAGS variable, or 15862 # (2) before a word containing "conftest.", or (3) at the end. 15863 # Note that $ac_compile itself does not contain backslashes and begins 15864 # with a dollar sign (not a hyphen), so the echo should work correctly. 15865 # The option is referenced via a variable to avoid confusing sed. 15866 lt_compile=`echo "$ac_compile" | $SED \ 15867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15869 -e 's:$: $lt_compiler_flag:'` 15870 (eval echo "\"\$as_me:15870: $lt_compile\"" >&5) 15871 (eval "$lt_compile" 2>conftest.err) 15872 ac_status=$? 15873 cat conftest.err >&5 15874 echo "$as_me:15874: \$? = $ac_status" >&5 15875 if (exit $ac_status) && test -s "$ac_outfile"; then 15876 # The compiler can only warn and ignore the option if not recognized 15877 # So say no if there are warnings other than the usual output. 15878 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15880 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15881 lt_prog_compiler_pic_works_GCJ=yes 15882 fi 15883 fi 15884 $rm conftest* 15885 15886fi 15887echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15888echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15889 15890if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15891 case $lt_prog_compiler_pic_GCJ in 15892 "" | " "*) ;; 15893 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15894 esac 15895else 15896 lt_prog_compiler_pic_GCJ= 15897 lt_prog_compiler_can_build_shared_GCJ=no 15898fi 15899 15900fi 15901case $host_os in 15902 # For platforms which do not support PIC, -DPIC is meaningless: 15903 *djgpp*) 15904 lt_prog_compiler_pic_GCJ= 15905 ;; 15906 *) 15907 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15908 ;; 15909esac 15910 15911# 15912# Check to make sure the static flag actually works. 15913# 15914wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 15915echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15916echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15917if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 15918 echo $ECHO_N "(cached) $ECHO_C" >&6 15919else 15920 lt_prog_compiler_static_works_GCJ=no 15921 save_LDFLAGS="$LDFLAGS" 15922 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15923 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15924 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15925 # The linker can only warn and ignore the option if not recognized 15926 # So say no if there are warnings 15927 if test -s conftest.err; then 15928 # Append any errors to the config.log. 15929 cat conftest.err 1>&5 15930 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15932 if diff conftest.exp conftest.er2 >/dev/null; then 15933 lt_prog_compiler_static_works_GCJ=yes 15934 fi 15935 else 15936 lt_prog_compiler_static_works_GCJ=yes 15937 fi 15938 fi 15939 $rm conftest* 15940 LDFLAGS="$save_LDFLAGS" 15941 15942fi 15943echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 15944echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 15945 15946if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 15947 : 15948else 15949 lt_prog_compiler_static_GCJ= 15950fi 15951 15952 15953echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15954echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15955if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15956 echo $ECHO_N "(cached) $ECHO_C" >&6 15957else 15958 lt_cv_prog_compiler_c_o_GCJ=no 15959 $rm -r conftest 2>/dev/null 15960 mkdir conftest 15961 cd conftest 15962 mkdir out 15963 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15964 15965 lt_compiler_flag="-o out/conftest2.$ac_objext" 15966 # Insert the option either (1) after the last *FLAGS variable, or 15967 # (2) before a word containing "conftest.", or (3) at the end. 15968 # Note that $ac_compile itself does not contain backslashes and begins 15969 # with a dollar sign (not a hyphen), so the echo should work correctly. 15970 lt_compile=`echo "$ac_compile" | $SED \ 15971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15973 -e 's:$: $lt_compiler_flag:'` 15974 (eval echo "\"\$as_me:15974: $lt_compile\"" >&5) 15975 (eval "$lt_compile" 2>out/conftest.err) 15976 ac_status=$? 15977 cat out/conftest.err >&5 15978 echo "$as_me:15978: \$? = $ac_status" >&5 15979 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15980 then 15981 # The compiler can only warn and ignore the option if not recognized 15982 # So say no if there are warnings 15983 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15986 lt_cv_prog_compiler_c_o_GCJ=yes 15987 fi 15988 fi 15989 chmod u+w . 2>&5 15990 $rm conftest* 15991 # SGI C++ compiler will create directory out/ii_files/ for 15992 # template instantiation 15993 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15994 $rm out/* && rmdir out 15995 cd .. 15996 rmdir conftest 15997 $rm conftest* 15998 15999fi 16000echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16001echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16002 16003 16004hard_links="nottested" 16005if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16006 # do not overwrite the value of need_locks provided by the user 16007 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16008echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16009 hard_links=yes 16010 $rm conftest* 16011 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16012 touch conftest.a 16013 ln conftest.a conftest.b 2>&5 || hard_links=no 16014 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16015 echo "$as_me:$LINENO: result: $hard_links" >&5 16016echo "${ECHO_T}$hard_links" >&6 16017 if test "$hard_links" = no; then 16018 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16019echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16020 need_locks=warn 16021 fi 16022else 16023 need_locks=no 16024fi 16025 16026echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16027echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16028 16029 runpath_var= 16030 allow_undefined_flag_GCJ= 16031 enable_shared_with_static_runtimes_GCJ=no 16032 archive_cmds_GCJ= 16033 archive_expsym_cmds_GCJ= 16034 old_archive_From_new_cmds_GCJ= 16035 old_archive_from_expsyms_cmds_GCJ= 16036 export_dynamic_flag_spec_GCJ= 16037 whole_archive_flag_spec_GCJ= 16038 thread_safe_flag_spec_GCJ= 16039 hardcode_libdir_flag_spec_GCJ= 16040 hardcode_libdir_flag_spec_ld_GCJ= 16041 hardcode_libdir_separator_GCJ= 16042 hardcode_direct_GCJ=no 16043 hardcode_minus_L_GCJ=no 16044 hardcode_shlibpath_var_GCJ=unsupported 16045 link_all_deplibs_GCJ=unknown 16046 hardcode_automatic_GCJ=no 16047 module_cmds_GCJ= 16048 module_expsym_cmds_GCJ= 16049 always_export_symbols_GCJ=no 16050 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16051 # include_expsyms should be a list of space-separated symbols to be *always* 16052 # included in the symbol list 16053 include_expsyms_GCJ= 16054 # exclude_expsyms can be an extended regexp of symbols to exclude 16055 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16056 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16057 # as well as any symbol that contains `d'. 16058 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16059 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16060 # platforms (ab)use it in PIC code, but their linkers get confused if 16061 # the symbol is explicitly referenced. Since portable code cannot 16062 # rely on this symbol name, it's probably fine to never include it in 16063 # preloaded symbol tables. 16064 extract_expsyms_cmds= 16065 # Just being paranoid about ensuring that cc_basename is set. 16066 for cc_temp in $compiler""; do 16067 case $cc_temp in 16068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16070 \-*) ;; 16071 *) break;; 16072 esac 16073done 16074cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16075 16076 case $host_os in 16077 cygwin* | mingw* | pw32*) 16078 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16079 # When not using gcc, we currently assume that we are using 16080 # Microsoft Visual C++. 16081 if test "$GCC" != yes; then 16082 with_gnu_ld=no 16083 fi 16084 ;; 16085 interix*) 16086 # we just hope/assume this is gcc and not c89 (= MSVC++) 16087 with_gnu_ld=yes 16088 ;; 16089 openbsd*) 16090 with_gnu_ld=no 16091 ;; 16092 esac 16093 16094 ld_shlibs_GCJ=yes 16095 if test "$with_gnu_ld" = yes; then 16096 # If archive_cmds runs LD, not CC, wlarc should be empty 16097 wlarc='${wl}' 16098 16099 # Set some defaults for GNU ld with shared library support. These 16100 # are reset later if shared libraries are not supported. Putting them 16101 # here allows them to be overridden if necessary. 16102 runpath_var=LD_RUN_PATH 16103 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16104 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16105 # ancient GNU ld didn't support --whole-archive et. al. 16106 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16107 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16108 else 16109 whole_archive_flag_spec_GCJ= 16110 fi 16111 supports_anon_versioning=no 16112 case `$LD -v 2>/dev/null` in 16113 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16114 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16115 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16116 *\ 2.11.*) ;; # other 2.11 versions 16117 *) supports_anon_versioning=yes ;; 16118 esac 16119 16120 # See if GNU ld supports shared libraries. 16121 case $host_os in 16122 aix3* | aix4* | aix5*) 16123 # On AIX/PPC, the GNU linker is very broken 16124 if test "$host_cpu" != ia64; then 16125 ld_shlibs_GCJ=no 16126 cat <<EOF 1>&2 16127 16128*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16129*** to be unable to reliably create shared libraries on AIX. 16130*** Therefore, libtool is disabling shared libraries support. If you 16131*** really care for shared libraries, you may want to modify your PATH 16132*** so that a non-GNU linker is found, and then restart. 16133 16134EOF 16135 fi 16136 ;; 16137 16138 amigaos*) 16139 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)' 16140 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16141 hardcode_minus_L_GCJ=yes 16142 16143 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16144 # that the semantics of dynamic libraries on AmigaOS, at least up 16145 # to version 4, is to share data among multiple programs linked 16146 # with the same dynamic library. Since this doesn't match the 16147 # behavior of shared libraries on other platforms, we can't use 16148 # them. 16149 ld_shlibs_GCJ=no 16150 ;; 16151 16152 beos*) 16153 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16154 allow_undefined_flag_GCJ=unsupported 16155 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16156 # support --undefined. This deserves some investigation. FIXME 16157 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16158 else 16159 ld_shlibs_GCJ=no 16160 fi 16161 ;; 16162 16163 cygwin* | mingw* | pw32*) 16164 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16165 # as there is no search path for DLLs. 16166 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16167 allow_undefined_flag_GCJ=unsupported 16168 always_export_symbols_GCJ=no 16169 enable_shared_with_static_runtimes_GCJ=yes 16170 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16171 16172 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16173 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16174 # If the export-symbols file already is a .def file (1st line 16175 # is EXPORTS), use it as is; otherwise, prepend... 16176 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16177 cp $export_symbols $output_objdir/$soname.def; 16178 else 16179 echo EXPORTS > $output_objdir/$soname.def; 16180 cat $export_symbols >> $output_objdir/$soname.def; 16181 fi~ 16182 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16183 else 16184 ld_shlibs_GCJ=no 16185 fi 16186 ;; 16187 16188 interix3*) 16189 hardcode_direct_GCJ=no 16190 hardcode_shlibpath_var_GCJ=no 16191 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16192 export_dynamic_flag_spec_GCJ='${wl}-E' 16193 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16194 # Instead, shared libraries are loaded at an image base (0x10000000 by 16195 # default) and relocated if they conflict, which is a slow very memory 16196 # consuming and fragmenting process. To avoid this, we pick a random, 16197 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16198 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16199 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' 16200 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' 16201 ;; 16202 16203 linux*) 16204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16205 tmp_addflag= 16206 case $cc_basename,$host_cpu in 16207 pgcc*) # Portland Group C compiler 16208 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' 16209 tmp_addflag=' $pic_flag' 16210 ;; 16211 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16212 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' 16213 tmp_addflag=' $pic_flag -Mnomain' ;; 16214 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16215 tmp_addflag=' -i_dynamic' ;; 16216 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16217 tmp_addflag=' -i_dynamic -nofor_main' ;; 16218 ifc* | ifort*) # Intel Fortran compiler 16219 tmp_addflag=' -nofor_main' ;; 16220 esac 16221 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16222 16223 if test $supports_anon_versioning = yes; then 16224 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16226 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16227 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16228 fi 16229 else 16230 ld_shlibs_GCJ=no 16231 fi 16232 ;; 16233 16234 netbsd*) 16235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16236 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16237 wlarc= 16238 else 16239 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16240 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16241 fi 16242 ;; 16243 16244 solaris*) 16245 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16246 ld_shlibs_GCJ=no 16247 cat <<EOF 1>&2 16248 16249*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16250*** create shared libraries on Solaris systems. Therefore, libtool 16251*** is disabling shared libraries support. We urge you to upgrade GNU 16252*** binutils to release 2.9.1 or newer. Another option is to modify 16253*** your PATH or compiler configuration so that the native linker is 16254*** used, and then restart. 16255 16256EOF 16257 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16258 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16259 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16260 else 16261 ld_shlibs_GCJ=no 16262 fi 16263 ;; 16264 16265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16266 case `$LD -v 2>&1` in 16267 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16268 ld_shlibs_GCJ=no 16269 cat <<_LT_EOF 1>&2 16270 16271*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16272*** reliably create shared libraries on SCO systems. Therefore, libtool 16273*** is disabling shared libraries support. We urge you to upgrade GNU 16274*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16275*** your PATH or compiler configuration so that the native linker is 16276*** used, and then restart. 16277 16278_LT_EOF 16279 ;; 16280 *) 16281 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16282 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16283 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16284 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16285 else 16286 ld_shlibs_GCJ=no 16287 fi 16288 ;; 16289 esac 16290 ;; 16291 16292 sunos4*) 16293 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16294 wlarc= 16295 hardcode_direct_GCJ=yes 16296 hardcode_shlibpath_var_GCJ=no 16297 ;; 16298 16299 *) 16300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16301 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16302 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16303 else 16304 ld_shlibs_GCJ=no 16305 fi 16306 ;; 16307 esac 16308 16309 if test "$ld_shlibs_GCJ" = no; then 16310 runpath_var= 16311 hardcode_libdir_flag_spec_GCJ= 16312 export_dynamic_flag_spec_GCJ= 16313 whole_archive_flag_spec_GCJ= 16314 fi 16315 else 16316 # PORTME fill in a description of your system's linker (not GNU ld) 16317 case $host_os in 16318 aix3*) 16319 allow_undefined_flag_GCJ=unsupported 16320 always_export_symbols_GCJ=yes 16321 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' 16322 # Note: this linker hardcodes the directories in LIBPATH if there 16323 # are no directories specified by -L. 16324 hardcode_minus_L_GCJ=yes 16325 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16326 # Neither direct hardcoding nor static linking is supported with a 16327 # broken collect2. 16328 hardcode_direct_GCJ=unsupported 16329 fi 16330 ;; 16331 16332 aix4* | aix5*) 16333 if test "$host_cpu" = ia64; then 16334 # On IA64, the linker does run time linking by default, so we don't 16335 # have to do anything special. 16336 aix_use_runtimelinking=no 16337 exp_sym_flag='-Bexport' 16338 no_entry_flag="" 16339 else 16340 # If we're using GNU nm, then we don't want the "-C" option. 16341 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16342 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16343 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' 16344 else 16345 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' 16346 fi 16347 aix_use_runtimelinking=no 16348 16349 # Test if we are trying to use run time linking or normal 16350 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16351 # need to do runtime linking. 16352 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16353 for ld_flag in $LDFLAGS; do 16354 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16355 aix_use_runtimelinking=yes 16356 break 16357 fi 16358 done 16359 ;; 16360 esac 16361 16362 exp_sym_flag='-bexport' 16363 no_entry_flag='-bnoentry' 16364 fi 16365 16366 # When large executables or shared objects are built, AIX ld can 16367 # have problems creating the table of contents. If linking a library 16368 # or program results in "error TOC overflow" add -mminimal-toc to 16369 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16370 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16371 16372 archive_cmds_GCJ='' 16373 hardcode_direct_GCJ=yes 16374 hardcode_libdir_separator_GCJ=':' 16375 link_all_deplibs_GCJ=yes 16376 16377 if test "$GCC" = yes; then 16378 case $host_os in aix4.[012]|aix4.[012].*) 16379 # We only want to do this on AIX 4.2 and lower, the check 16380 # below for broken collect2 doesn't work under 4.3+ 16381 collect2name=`${CC} -print-prog-name=collect2` 16382 if test -f "$collect2name" && \ 16383 strings "$collect2name" | grep resolve_lib_name >/dev/null 16384 then 16385 # We have reworked collect2 16386 hardcode_direct_GCJ=yes 16387 else 16388 # We have old collect2 16389 hardcode_direct_GCJ=unsupported 16390 # It fails to find uninstalled libraries when the uninstalled 16391 # path is not listed in the libpath. Setting hardcode_minus_L 16392 # to unsupported forces relinking 16393 hardcode_minus_L_GCJ=yes 16394 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16395 hardcode_libdir_separator_GCJ= 16396 fi 16397 ;; 16398 esac 16399 shared_flag='-shared' 16400 if test "$aix_use_runtimelinking" = yes; then 16401 shared_flag="$shared_flag "'${wl}-G' 16402 fi 16403 else 16404 # not using gcc 16405 if test "$host_cpu" = ia64; then 16406 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16407 # chokes on -Wl,-G. The following line is correct: 16408 shared_flag='-G' 16409 else 16410 if test "$aix_use_runtimelinking" = yes; then 16411 shared_flag='${wl}-G' 16412 else 16413 shared_flag='${wl}-bM:SRE' 16414 fi 16415 fi 16416 fi 16417 16418 # It seems that -bexpall does not export symbols beginning with 16419 # underscore (_), so it is better to generate a list of symbols to export. 16420 always_export_symbols_GCJ=yes 16421 if test "$aix_use_runtimelinking" = yes; then 16422 # Warning - without using the other runtime loading flags (-brtl), 16423 # -berok will link without error, but may produce a broken library. 16424 allow_undefined_flag_GCJ='-berok' 16425 # Determine the default libpath from the value encoded in an empty executable. 16426 cat >conftest.$ac_ext <<_ACEOF 16427/* confdefs.h. */ 16428_ACEOF 16429cat confdefs.h >>conftest.$ac_ext 16430cat >>conftest.$ac_ext <<_ACEOF 16431/* end confdefs.h. */ 16432 16433int 16434main () 16435{ 16436 16437 ; 16438 return 0; 16439} 16440_ACEOF 16441rm -f conftest.$ac_objext conftest$ac_exeext 16442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16443 (eval $ac_link) 2>conftest.er1 16444 ac_status=$? 16445 grep -v '^ *+' conftest.er1 >conftest.err 16446 rm -f conftest.er1 16447 cat conftest.err >&5 16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16449 (exit $ac_status); } && 16450 { ac_try='test -z "$ac_c_werror_flag" 16451 || test ! -s conftest.err' 16452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16453 (eval $ac_try) 2>&5 16454 ac_status=$? 16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16456 (exit $ac_status); }; } && 16457 { ac_try='test -s conftest$ac_exeext' 16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16459 (eval $ac_try) 2>&5 16460 ac_status=$? 16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16462 (exit $ac_status); }; }; then 16463 16464aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16465}'` 16466# Check for a 64-bit object if we didn't find anything. 16467if 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; } 16468}'`; fi 16469else 16470 echo "$as_me: failed program was:" >&5 16471sed 's/^/| /' conftest.$ac_ext >&5 16472 16473fi 16474rm -f conftest.err conftest.$ac_objext \ 16475 conftest$ac_exeext conftest.$ac_ext 16476if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16477 16478 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16479 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" 16480 else 16481 if test "$host_cpu" = ia64; then 16482 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16483 allow_undefined_flag_GCJ="-z nodefs" 16484 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" 16485 else 16486 # Determine the default libpath from the value encoded in an empty executable. 16487 cat >conftest.$ac_ext <<_ACEOF 16488/* confdefs.h. */ 16489_ACEOF 16490cat confdefs.h >>conftest.$ac_ext 16491cat >>conftest.$ac_ext <<_ACEOF 16492/* end confdefs.h. */ 16493 16494int 16495main () 16496{ 16497 16498 ; 16499 return 0; 16500} 16501_ACEOF 16502rm -f conftest.$ac_objext conftest$ac_exeext 16503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16504 (eval $ac_link) 2>conftest.er1 16505 ac_status=$? 16506 grep -v '^ *+' conftest.er1 >conftest.err 16507 rm -f conftest.er1 16508 cat conftest.err >&5 16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16510 (exit $ac_status); } && 16511 { ac_try='test -z "$ac_c_werror_flag" 16512 || test ! -s conftest.err' 16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16514 (eval $ac_try) 2>&5 16515 ac_status=$? 16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16517 (exit $ac_status); }; } && 16518 { ac_try='test -s conftest$ac_exeext' 16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16520 (eval $ac_try) 2>&5 16521 ac_status=$? 16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16523 (exit $ac_status); }; }; then 16524 16525aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16526}'` 16527# Check for a 64-bit object if we didn't find anything. 16528if 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; } 16529}'`; fi 16530else 16531 echo "$as_me: failed program was:" >&5 16532sed 's/^/| /' conftest.$ac_ext >&5 16533 16534fi 16535rm -f conftest.err conftest.$ac_objext \ 16536 conftest$ac_exeext conftest.$ac_ext 16537if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16538 16539 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16540 # Warning - without using the other run time loading flags, 16541 # -berok will link without error, but may produce a broken library. 16542 no_undefined_flag_GCJ=' ${wl}-bernotok' 16543 allow_undefined_flag_GCJ=' ${wl}-berok' 16544 # Exported symbols can be pulled into shared objects from archives 16545 whole_archive_flag_spec_GCJ='$convenience' 16546 archive_cmds_need_lc_GCJ=yes 16547 # This is similar to how AIX traditionally builds its shared libraries. 16548 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' 16549 fi 16550 fi 16551 ;; 16552 16553 amigaos*) 16554 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)' 16555 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16556 hardcode_minus_L_GCJ=yes 16557 # see comment about different semantics on the GNU ld section 16558 ld_shlibs_GCJ=no 16559 ;; 16560 16561 bsdi[45]*) 16562 export_dynamic_flag_spec_GCJ=-rdynamic 16563 ;; 16564 16565 cygwin* | mingw* | pw32*) 16566 # When not using gcc, we currently assume that we are using 16567 # Microsoft Visual C++. 16568 # hardcode_libdir_flag_spec is actually meaningless, as there is 16569 # no search path for DLLs. 16570 hardcode_libdir_flag_spec_GCJ=' ' 16571 allow_undefined_flag_GCJ=unsupported 16572 # Tell ltmain to make .lib files, not .a files. 16573 libext=lib 16574 # Tell ltmain to make .dll files, not .so files. 16575 shrext_cmds=".dll" 16576 # FIXME: Setting linknames here is a bad hack. 16577 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16578 # The linker will automatically build a .lib file if we build a DLL. 16579 old_archive_From_new_cmds_GCJ='true' 16580 # FIXME: Should let the user specify the lib program. 16581 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16582 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16583 enable_shared_with_static_runtimes_GCJ=yes 16584 ;; 16585 16586 darwin* | rhapsody*) 16587 case $host_os in 16588 rhapsody* | darwin1.[012]) 16589 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16590 ;; 16591 *) # Darwin 1.3 on 16592 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16593 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16594 else 16595 case ${MACOSX_DEPLOYMENT_TARGET} in 16596 10.[012]) 16597 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16598 ;; 16599 10.*) 16600 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16601 ;; 16602 esac 16603 fi 16604 ;; 16605 esac 16606 archive_cmds_need_lc_GCJ=no 16607 hardcode_direct_GCJ=no 16608 hardcode_automatic_GCJ=yes 16609 hardcode_shlibpath_var_GCJ=unsupported 16610 whole_archive_flag_spec_GCJ='' 16611 link_all_deplibs_GCJ=yes 16612 if test "$GCC" = yes ; then 16613 output_verbose_link_cmd='echo' 16614 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16615 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16616 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16617 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}' 16618 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}' 16619 else 16620 case $cc_basename in 16621 xlc*) 16622 output_verbose_link_cmd='echo' 16623 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16624 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16625 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16626 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}' 16627 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}' 16628 ;; 16629 *) 16630 ld_shlibs_GCJ=no 16631 ;; 16632 esac 16633 fi 16634 ;; 16635 16636 dgux*) 16637 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16638 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16639 hardcode_shlibpath_var_GCJ=no 16640 ;; 16641 16642 freebsd1*) 16643 ld_shlibs_GCJ=no 16644 ;; 16645 16646 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16647 # support. Future versions do this automatically, but an explicit c++rt0.o 16648 # does not break anything, and helps significantly (at the cost of a little 16649 # extra space). 16650 freebsd2.2*) 16651 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16652 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16653 hardcode_direct_GCJ=yes 16654 hardcode_shlibpath_var_GCJ=no 16655 ;; 16656 16657 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16658 freebsd2*) 16659 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16660 hardcode_direct_GCJ=yes 16661 hardcode_minus_L_GCJ=yes 16662 hardcode_shlibpath_var_GCJ=no 16663 ;; 16664 16665 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16666 freebsd* | kfreebsd*-gnu | dragonfly*) 16667 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16668 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16669 hardcode_direct_GCJ=yes 16670 hardcode_shlibpath_var_GCJ=no 16671 ;; 16672 16673 hpux9*) 16674 if test "$GCC" = yes; then 16675 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' 16676 else 16677 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' 16678 fi 16679 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16680 hardcode_libdir_separator_GCJ=: 16681 hardcode_direct_GCJ=yes 16682 16683 # hardcode_minus_L: Not really in the search PATH, 16684 # but as the default location of the library. 16685 hardcode_minus_L_GCJ=yes 16686 export_dynamic_flag_spec_GCJ='${wl}-E' 16687 ;; 16688 16689 hpux10*) 16690 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16691 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16692 else 16693 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16694 fi 16695 if test "$with_gnu_ld" = no; then 16696 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16697 hardcode_libdir_separator_GCJ=: 16698 16699 hardcode_direct_GCJ=yes 16700 export_dynamic_flag_spec_GCJ='${wl}-E' 16701 16702 # hardcode_minus_L: Not really in the search PATH, 16703 # but as the default location of the library. 16704 hardcode_minus_L_GCJ=yes 16705 fi 16706 ;; 16707 16708 hpux11*) 16709 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16710 case $host_cpu in 16711 hppa*64*) 16712 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16713 ;; 16714 ia64*) 16715 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16716 ;; 16717 *) 16718 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16719 ;; 16720 esac 16721 else 16722 case $host_cpu in 16723 hppa*64*) 16724 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16725 ;; 16726 ia64*) 16727 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16728 ;; 16729 *) 16730 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16731 ;; 16732 esac 16733 fi 16734 if test "$with_gnu_ld" = no; then 16735 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16736 hardcode_libdir_separator_GCJ=: 16737 16738 case $host_cpu in 16739 hppa*64*|ia64*) 16740 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16741 hardcode_direct_GCJ=no 16742 hardcode_shlibpath_var_GCJ=no 16743 ;; 16744 *) 16745 hardcode_direct_GCJ=yes 16746 export_dynamic_flag_spec_GCJ='${wl}-E' 16747 16748 # hardcode_minus_L: Not really in the search PATH, 16749 # but as the default location of the library. 16750 hardcode_minus_L_GCJ=yes 16751 ;; 16752 esac 16753 fi 16754 ;; 16755 16756 irix5* | irix6* | nonstopux*) 16757 if test "$GCC" = yes; then 16758 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' 16759 else 16760 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' 16761 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16762 fi 16763 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16764 hardcode_libdir_separator_GCJ=: 16765 link_all_deplibs_GCJ=yes 16766 ;; 16767 16768 netbsd*) 16769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16770 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16771 else 16772 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16773 fi 16774 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16775 hardcode_direct_GCJ=yes 16776 hardcode_shlibpath_var_GCJ=no 16777 ;; 16778 16779 newsos6) 16780 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16781 hardcode_direct_GCJ=yes 16782 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16783 hardcode_libdir_separator_GCJ=: 16784 hardcode_shlibpath_var_GCJ=no 16785 ;; 16786 16787 openbsd*) 16788 hardcode_direct_GCJ=yes 16789 hardcode_shlibpath_var_GCJ=no 16790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16791 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16792 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16793 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16794 export_dynamic_flag_spec_GCJ='${wl}-E' 16795 else 16796 case $host_os in 16797 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16798 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16799 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16800 ;; 16801 *) 16802 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16803 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16804 ;; 16805 esac 16806 fi 16807 ;; 16808 16809 os2*) 16810 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16811 hardcode_minus_L_GCJ=yes 16812 allow_undefined_flag_GCJ=unsupported 16813 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' 16814 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16815 ;; 16816 16817 osf3*) 16818 if test "$GCC" = yes; then 16819 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16820 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' 16821 else 16822 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16823 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' 16824 fi 16825 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16826 hardcode_libdir_separator_GCJ=: 16827 ;; 16828 16829 osf4* | osf5*) # as osf3* with the addition of -msym flag 16830 if test "$GCC" = yes; then 16831 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16832 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' 16833 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16834 else 16835 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16836 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' 16837 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~ 16838 $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' 16839 16840 # Both c and cxx compiler support -rpath directly 16841 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16842 fi 16843 hardcode_libdir_separator_GCJ=: 16844 ;; 16845 16846 solaris*) 16847 no_undefined_flag_GCJ=' -z text' 16848 if test "$GCC" = yes; then 16849 wlarc='${wl}' 16850 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16851 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16852 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16853 else 16854 wlarc='' 16855 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16856 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16857 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16858 fi 16859 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16860 hardcode_shlibpath_var_GCJ=no 16861 case $host_os in 16862 solaris2.[0-5] | solaris2.[0-5].*) ;; 16863 *) 16864 # The compiler driver will combine linker options so we 16865 # cannot just pass the convience library names through 16866 # without $wl, iff we do not link with $LD. 16867 # Luckily, gcc supports the same syntax we need for Sun Studio. 16868 # Supported since Solaris 2.6 (maybe 2.5.1?) 16869 case $wlarc in 16870 '') 16871 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16872 *) 16873 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' ;; 16874 esac ;; 16875 esac 16876 link_all_deplibs_GCJ=yes 16877 ;; 16878 16879 sunos4*) 16880 if test "x$host_vendor" = xsequent; then 16881 # Use $CC to link under sequent, because it throws in some extra .o 16882 # files that make .init and .fini sections work. 16883 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16884 else 16885 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16886 fi 16887 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16888 hardcode_direct_GCJ=yes 16889 hardcode_minus_L_GCJ=yes 16890 hardcode_shlibpath_var_GCJ=no 16891 ;; 16892 16893 sysv4) 16894 case $host_vendor in 16895 sni) 16896 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16897 hardcode_direct_GCJ=yes # is this really true??? 16898 ;; 16899 siemens) 16900 ## LD is ld it makes a PLAMLIB 16901 ## CC just makes a GrossModule. 16902 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16903 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16904 hardcode_direct_GCJ=no 16905 ;; 16906 motorola) 16907 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16908 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16909 ;; 16910 esac 16911 runpath_var='LD_RUN_PATH' 16912 hardcode_shlibpath_var_GCJ=no 16913 ;; 16914 16915 sysv4.3*) 16916 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16917 hardcode_shlibpath_var_GCJ=no 16918 export_dynamic_flag_spec_GCJ='-Bexport' 16919 ;; 16920 16921 sysv4*MP*) 16922 if test -d /usr/nec; then 16923 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16924 hardcode_shlibpath_var_GCJ=no 16925 runpath_var=LD_RUN_PATH 16926 hardcode_runpath_var=yes 16927 ld_shlibs_GCJ=yes 16928 fi 16929 ;; 16930 16931 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16932 no_undefined_flag_GCJ='${wl}-z,text' 16933 archive_cmds_need_lc_GCJ=no 16934 hardcode_shlibpath_var_GCJ=no 16935 runpath_var='LD_RUN_PATH' 16936 16937 if test "$GCC" = yes; then 16938 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16939 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16940 else 16941 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16942 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16943 fi 16944 ;; 16945 16946 sysv5* | sco3.2v5* | sco5v6*) 16947 # Note: We can NOT use -z defs as we might desire, because we do not 16948 # link with -lc, and that would cause any symbols used from libc to 16949 # always be unresolved, which means just about no library would 16950 # ever link correctly. If we're not using GNU ld we use -z text 16951 # though, which does catch some bad symbols but isn't as heavy-handed 16952 # as -z defs. 16953 no_undefined_flag_GCJ='${wl}-z,text' 16954 allow_undefined_flag_GCJ='${wl}-z,nodefs' 16955 archive_cmds_need_lc_GCJ=no 16956 hardcode_shlibpath_var_GCJ=no 16957 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16958 hardcode_libdir_separator_GCJ=':' 16959 link_all_deplibs_GCJ=yes 16960 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16961 runpath_var='LD_RUN_PATH' 16962 16963 if test "$GCC" = yes; then 16964 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16965 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16966 else 16967 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16968 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16969 fi 16970 ;; 16971 16972 uts4*) 16973 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16974 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16975 hardcode_shlibpath_var_GCJ=no 16976 ;; 16977 16978 *) 16979 ld_shlibs_GCJ=no 16980 ;; 16981 esac 16982 fi 16983 16984echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16985echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16986test "$ld_shlibs_GCJ" = no && can_build_shared=no 16987 16988# 16989# Do we need to explicitly link libc? 16990# 16991case "x$archive_cmds_need_lc_GCJ" in 16992x|xyes) 16993 # Assume -lc should be added 16994 archive_cmds_need_lc_GCJ=yes 16995 16996 if test "$enable_shared" = yes && test "$GCC" = yes; then 16997 case $archive_cmds_GCJ in 16998 *'~'*) 16999 # FIXME: we may have to deal with multi-command sequences. 17000 ;; 17001 '$CC '*) 17002 # Test whether the compiler implicitly links with -lc since on some 17003 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17004 # to ld, don't add -lc before -lgcc. 17005 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17006echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17007 $rm conftest* 17008 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17009 17010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17011 (eval $ac_compile) 2>&5 17012 ac_status=$? 17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17014 (exit $ac_status); } 2>conftest.err; then 17015 soname=conftest 17016 lib=conftest 17017 libobjs=conftest.$ac_objext 17018 deplibs= 17019 wl=$lt_prog_compiler_wl_GCJ 17020 pic_flag=$lt_prog_compiler_pic_GCJ 17021 compiler_flags=-v 17022 linker_flags=-v 17023 verstring= 17024 output_objdir=. 17025 libname=conftest 17026 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17027 allow_undefined_flag_GCJ= 17028 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17029 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17030 ac_status=$? 17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17032 (exit $ac_status); } 17033 then 17034 archive_cmds_need_lc_GCJ=no 17035 else 17036 archive_cmds_need_lc_GCJ=yes 17037 fi 17038 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17039 else 17040 cat conftest.err 1>&5 17041 fi 17042 $rm conftest* 17043 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17044echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17045 ;; 17046 esac 17047 fi 17048 ;; 17049esac 17050 17051echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17052echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17053library_names_spec= 17054libname_spec='lib$name' 17055soname_spec= 17056shrext_cmds=".so" 17057postinstall_cmds= 17058postuninstall_cmds= 17059finish_cmds= 17060finish_eval= 17061shlibpath_var= 17062shlibpath_overrides_runpath=unknown 17063version_type=none 17064dynamic_linker="$host_os ld.so" 17065sys_lib_dlsearch_path_spec="/lib /usr/lib" 17066if test "$GCC" = yes; then 17067 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17068 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17069 # if the path contains ";" then we assume it to be the separator 17070 # otherwise default to the standard path separator (i.e. ":") - it is 17071 # assumed that no part of a normal pathname contains ";" but that should 17072 # okay in the real world where ";" in dirpaths is itself problematic. 17073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17074 else 17075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17076 fi 17077else 17078 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17079fi 17080need_lib_prefix=unknown 17081hardcode_into_libs=no 17082 17083# when you set need_version to no, make sure it does not cause -set_version 17084# flags to be left without arguments 17085need_version=unknown 17086 17087case $host_os in 17088aix3*) 17089 version_type=linux 17090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17091 shlibpath_var=LIBPATH 17092 17093 # AIX 3 has no versioning support, so we append a major version to the name. 17094 soname_spec='${libname}${release}${shared_ext}$major' 17095 ;; 17096 17097aix4* | aix5*) 17098 version_type=linux 17099 need_lib_prefix=no 17100 need_version=no 17101 hardcode_into_libs=yes 17102 if test "$host_cpu" = ia64; then 17103 # AIX 5 supports IA64 17104 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17105 shlibpath_var=LD_LIBRARY_PATH 17106 else 17107 # With GCC up to 2.95.x, collect2 would create an import file 17108 # for dependence libraries. The import file would start with 17109 # the line `#! .'. This would cause the generated library to 17110 # depend on `.', always an invalid library. This was fixed in 17111 # development snapshots of GCC prior to 3.0. 17112 case $host_os in 17113 aix4 | aix4.[01] | aix4.[01].*) 17114 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17115 echo ' yes ' 17116 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17117 : 17118 else 17119 can_build_shared=no 17120 fi 17121 ;; 17122 esac 17123 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17124 # soname into executable. Probably we can add versioning support to 17125 # collect2, so additional links can be useful in future. 17126 if test "$aix_use_runtimelinking" = yes; then 17127 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17128 # instead of lib<name>.a to let people know that these are not 17129 # typical AIX shared libraries. 17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17131 else 17132 # We preserve .a as extension for shared libraries through AIX4.2 17133 # and later when we are not doing run time linking. 17134 library_names_spec='${libname}${release}.a $libname.a' 17135 soname_spec='${libname}${release}${shared_ext}$major' 17136 fi 17137 shlibpath_var=LIBPATH 17138 fi 17139 ;; 17140 17141amigaos*) 17142 library_names_spec='$libname.ixlibrary $libname.a' 17143 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17144 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' 17145 ;; 17146 17147beos*) 17148 library_names_spec='${libname}${shared_ext}' 17149 dynamic_linker="$host_os ld.so" 17150 shlibpath_var=LIBRARY_PATH 17151 ;; 17152 17153bsdi[45]*) 17154 version_type=linux 17155 need_version=no 17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17157 soname_spec='${libname}${release}${shared_ext}$major' 17158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17159 shlibpath_var=LD_LIBRARY_PATH 17160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17162 # the default ld.so.conf also contains /usr/contrib/lib and 17163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17164 # libtool to hard-code these into programs 17165 ;; 17166 17167cygwin* | mingw* | pw32*) 17168 version_type=windows 17169 shrext_cmds=".dll" 17170 need_version=no 17171 need_lib_prefix=no 17172 17173 case $GCC,$host_os in 17174 yes,cygwin* | yes,mingw* | yes,pw32*) 17175 library_names_spec='$libname.dll.a' 17176 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17177 postinstall_cmds='base_file=`basename \${file}`~ 17178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17179 dldir=$destdir/`dirname \$dlpath`~ 17180 test -d \$dldir || mkdir -p \$dldir~ 17181 $install_prog $dir/$dlname \$dldir/$dlname~ 17182 chmod a+x \$dldir/$dlname' 17183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17184 dlpath=$dir/\$dldll~ 17185 $rm \$dlpath' 17186 shlibpath_overrides_runpath=yes 17187 17188 case $host_os in 17189 cygwin*) 17190 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17191 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17192 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17193 ;; 17194 mingw*) 17195 # MinGW DLLs use traditional 'lib' prefix 17196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17197 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17198 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17199 # It is most probably a Windows format PATH printed by 17200 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17201 # path with ; separators, and with drive letters. We can handle the 17202 # drive letters (cygwin fileutils understands them), so leave them, 17203 # especially as we might pass files found there to a mingw objdump, 17204 # which wouldn't understand a cygwinified path. Ahh. 17205 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17206 else 17207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17208 fi 17209 ;; 17210 pw32*) 17211 # pw32 DLLs use 'pw' prefix rather than 'lib' 17212 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17213 ;; 17214 esac 17215 ;; 17216 17217 *) 17218 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17219 ;; 17220 esac 17221 dynamic_linker='Win32 ld.exe' 17222 # FIXME: first we should search . and the directory the executable is in 17223 shlibpath_var=PATH 17224 ;; 17225 17226darwin* | rhapsody*) 17227 dynamic_linker="$host_os dyld" 17228 version_type=darwin 17229 need_lib_prefix=no 17230 need_version=no 17231 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17232 soname_spec='${libname}${release}${major}$shared_ext' 17233 shlibpath_overrides_runpath=yes 17234 shlibpath_var=DYLD_LIBRARY_PATH 17235 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17236 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17237 if test "$GCC" = yes; then 17238 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"` 17239 else 17240 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17241 fi 17242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17243 ;; 17244 17245dgux*) 17246 version_type=linux 17247 need_lib_prefix=no 17248 need_version=no 17249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17250 soname_spec='${libname}${release}${shared_ext}$major' 17251 shlibpath_var=LD_LIBRARY_PATH 17252 ;; 17253 17254freebsd1*) 17255 dynamic_linker=no 17256 ;; 17257 17258kfreebsd*-gnu) 17259 version_type=linux 17260 need_lib_prefix=no 17261 need_version=no 17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17263 soname_spec='${libname}${release}${shared_ext}$major' 17264 shlibpath_var=LD_LIBRARY_PATH 17265 shlibpath_overrides_runpath=no 17266 hardcode_into_libs=yes 17267 dynamic_linker='GNU ld.so' 17268 ;; 17269 17270freebsd* | dragonfly*) 17271 # DragonFly does not have aout. When/if they implement a new 17272 # versioning mechanism, adjust this. 17273 if test -x /usr/bin/objformat; then 17274 objformat=`/usr/bin/objformat` 17275 else 17276 case $host_os in 17277 freebsd[123]*) objformat=aout ;; 17278 *) objformat=elf ;; 17279 esac 17280 fi 17281 version_type=freebsd-$objformat 17282 case $version_type in 17283 freebsd-elf*) 17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17285 need_version=no 17286 need_lib_prefix=no 17287 ;; 17288 freebsd-*) 17289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17290 need_version=yes 17291 ;; 17292 esac 17293 shlibpath_var=LD_LIBRARY_PATH 17294 case $host_os in 17295 freebsd2*) 17296 shlibpath_overrides_runpath=yes 17297 ;; 17298 freebsd3.[01]* | freebsdelf3.[01]*) 17299 shlibpath_overrides_runpath=yes 17300 hardcode_into_libs=yes 17301 ;; 17302 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17303 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17304 shlibpath_overrides_runpath=no 17305 hardcode_into_libs=yes 17306 ;; 17307 freebsd*) # from 4.6 on 17308 shlibpath_overrides_runpath=yes 17309 hardcode_into_libs=yes 17310 ;; 17311 esac 17312 ;; 17313 17314gnu*) 17315 version_type=linux 17316 need_lib_prefix=no 17317 need_version=no 17318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17319 soname_spec='${libname}${release}${shared_ext}$major' 17320 shlibpath_var=LD_LIBRARY_PATH 17321 hardcode_into_libs=yes 17322 ;; 17323 17324hpux9* | hpux10* | hpux11*) 17325 # Give a soname corresponding to the major version so that dld.sl refuses to 17326 # link against other versions. 17327 version_type=sunos 17328 need_lib_prefix=no 17329 need_version=no 17330 case $host_cpu in 17331 ia64*) 17332 shrext_cmds='.so' 17333 hardcode_into_libs=yes 17334 dynamic_linker="$host_os dld.so" 17335 shlibpath_var=LD_LIBRARY_PATH 17336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17338 soname_spec='${libname}${release}${shared_ext}$major' 17339 if test "X$HPUX_IA64_MODE" = X32; then 17340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17341 else 17342 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17343 fi 17344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17345 ;; 17346 hppa*64*) 17347 shrext_cmds='.sl' 17348 hardcode_into_libs=yes 17349 dynamic_linker="$host_os dld.sl" 17350 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17353 soname_spec='${libname}${release}${shared_ext}$major' 17354 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17356 ;; 17357 *) 17358 shrext_cmds='.sl' 17359 dynamic_linker="$host_os dld.sl" 17360 shlibpath_var=SHLIB_PATH 17361 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17363 soname_spec='${libname}${release}${shared_ext}$major' 17364 ;; 17365 esac 17366 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17367 postinstall_cmds='chmod 555 $lib' 17368 ;; 17369 17370interix3*) 17371 version_type=linux 17372 need_lib_prefix=no 17373 need_version=no 17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17375 soname_spec='${libname}${release}${shared_ext}$major' 17376 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17377 shlibpath_var=LD_LIBRARY_PATH 17378 shlibpath_overrides_runpath=no 17379 hardcode_into_libs=yes 17380 ;; 17381 17382irix5* | irix6* | nonstopux*) 17383 case $host_os in 17384 nonstopux*) version_type=nonstopux ;; 17385 *) 17386 if test "$lt_cv_prog_gnu_ld" = yes; then 17387 version_type=linux 17388 else 17389 version_type=irix 17390 fi ;; 17391 esac 17392 need_lib_prefix=no 17393 need_version=no 17394 soname_spec='${libname}${release}${shared_ext}$major' 17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17396 case $host_os in 17397 irix5* | nonstopux*) 17398 libsuff= shlibsuff= 17399 ;; 17400 *) 17401 case $LD in # libtool.m4 will add one of these switches to LD 17402 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17403 libsuff= shlibsuff= libmagic=32-bit;; 17404 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17405 libsuff=32 shlibsuff=N32 libmagic=N32;; 17406 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17407 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17408 *) libsuff= shlibsuff= libmagic=never-match;; 17409 esac 17410 ;; 17411 esac 17412 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17413 shlibpath_overrides_runpath=no 17414 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17415 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17416 hardcode_into_libs=yes 17417 ;; 17418 17419# No shared lib support for Linux oldld, aout, or coff. 17420linux*oldld* | linux*aout* | linux*coff*) 17421 dynamic_linker=no 17422 ;; 17423 17424# This must be Linux ELF. 17425linux*) 17426 version_type=linux 17427 need_lib_prefix=no 17428 need_version=no 17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17430 soname_spec='${libname}${release}${shared_ext}$major' 17431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17432 shlibpath_var=LD_LIBRARY_PATH 17433 shlibpath_overrides_runpath=no 17434 # This implies no fast_install, which is unacceptable. 17435 # Some rework will be needed to allow for fast_install 17436 # before this can be enabled. 17437 hardcode_into_libs=yes 17438 17439 # find out which ABI we are using 17440 libsuff= 17441 case "$host_cpu" in 17442 x86_64*|s390x*|powerpc64*) 17443 echo '#line 17443 "configure"' > conftest.$ac_ext 17444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17445 (eval $ac_compile) 2>&5 17446 ac_status=$? 17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17448 (exit $ac_status); }; then 17449 case `/usr/bin/file conftest.$ac_objext` in 17450 *64-bit*) 17451 libsuff=64 17452 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17453 ;; 17454 esac 17455 fi 17456 rm -rf conftest* 17457 ;; 17458 esac 17459 17460 # Append ld.so.conf contents to the search path 17461 if test -f /etc/ld.so.conf; then 17462 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' ' '` 17463 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 17464 fi 17465 17466 # We used to test for /lib/ld.so.1 and disable shared libraries on 17467 # powerpc, because MkLinux only supported shared libraries with the 17468 # GNU dynamic linker. Since this was broken with cross compilers, 17469 # most powerpc-linux boxes support dynamic linking these days and 17470 # people can always --disable-shared, the test was removed, and we 17471 # assume the GNU/Linux dynamic linker is in use. 17472 dynamic_linker='GNU/Linux ld.so' 17473 ;; 17474 17475knetbsd*-gnu) 17476 version_type=linux 17477 need_lib_prefix=no 17478 need_version=no 17479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17480 soname_spec='${libname}${release}${shared_ext}$major' 17481 shlibpath_var=LD_LIBRARY_PATH 17482 shlibpath_overrides_runpath=no 17483 hardcode_into_libs=yes 17484 dynamic_linker='GNU ld.so' 17485 ;; 17486 17487netbsd*) 17488 version_type=sunos 17489 need_lib_prefix=no 17490 need_version=no 17491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17494 dynamic_linker='NetBSD (a.out) ld.so' 17495 else 17496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17497 soname_spec='${libname}${release}${shared_ext}$major' 17498 dynamic_linker='NetBSD ld.elf_so' 17499 fi 17500 shlibpath_var=LD_LIBRARY_PATH 17501 shlibpath_overrides_runpath=yes 17502 hardcode_into_libs=yes 17503 ;; 17504 17505newsos6) 17506 version_type=linux 17507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17508 shlibpath_var=LD_LIBRARY_PATH 17509 shlibpath_overrides_runpath=yes 17510 ;; 17511 17512nto-qnx*) 17513 version_type=linux 17514 need_lib_prefix=no 17515 need_version=no 17516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17517 soname_spec='${libname}${release}${shared_ext}$major' 17518 shlibpath_var=LD_LIBRARY_PATH 17519 shlibpath_overrides_runpath=yes 17520 ;; 17521 17522openbsd*) 17523 version_type=sunos 17524 sys_lib_dlsearch_path_spec="/usr/lib" 17525 need_lib_prefix=no 17526 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17527 case $host_os in 17528 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17529 *) need_version=no ;; 17530 esac 17531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17533 shlibpath_var=LD_LIBRARY_PATH 17534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17535 case $host_os in 17536 openbsd2.[89] | openbsd2.[89].*) 17537 shlibpath_overrides_runpath=no 17538 ;; 17539 *) 17540 shlibpath_overrides_runpath=yes 17541 ;; 17542 esac 17543 else 17544 shlibpath_overrides_runpath=yes 17545 fi 17546 ;; 17547 17548os2*) 17549 libname_spec='$name' 17550 shrext_cmds=".dll" 17551 need_lib_prefix=no 17552 library_names_spec='$libname${shared_ext} $libname.a' 17553 dynamic_linker='OS/2 ld.exe' 17554 shlibpath_var=LIBPATH 17555 ;; 17556 17557osf3* | osf4* | osf5*) 17558 version_type=osf 17559 need_lib_prefix=no 17560 need_version=no 17561 soname_spec='${libname}${release}${shared_ext}$major' 17562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17563 shlibpath_var=LD_LIBRARY_PATH 17564 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17565 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17566 ;; 17567 17568solaris*) 17569 version_type=linux 17570 need_lib_prefix=no 17571 need_version=no 17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17573 soname_spec='${libname}${release}${shared_ext}$major' 17574 shlibpath_var=LD_LIBRARY_PATH 17575 shlibpath_overrides_runpath=yes 17576 hardcode_into_libs=yes 17577 # ldd complains unless libraries are executable 17578 postinstall_cmds='chmod +x $lib' 17579 ;; 17580 17581sunos4*) 17582 version_type=sunos 17583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17585 shlibpath_var=LD_LIBRARY_PATH 17586 shlibpath_overrides_runpath=yes 17587 if test "$with_gnu_ld" = yes; then 17588 need_lib_prefix=no 17589 fi 17590 need_version=yes 17591 ;; 17592 17593sysv4 | sysv4.3*) 17594 version_type=linux 17595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17596 soname_spec='${libname}${release}${shared_ext}$major' 17597 shlibpath_var=LD_LIBRARY_PATH 17598 case $host_vendor in 17599 sni) 17600 shlibpath_overrides_runpath=no 17601 need_lib_prefix=no 17602 export_dynamic_flag_spec='${wl}-Blargedynsym' 17603 runpath_var=LD_RUN_PATH 17604 ;; 17605 siemens) 17606 need_lib_prefix=no 17607 ;; 17608 motorola) 17609 need_lib_prefix=no 17610 need_version=no 17611 shlibpath_overrides_runpath=no 17612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17613 ;; 17614 esac 17615 ;; 17616 17617sysv4*MP*) 17618 if test -d /usr/nec ;then 17619 version_type=linux 17620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17621 soname_spec='$libname${shared_ext}.$major' 17622 shlibpath_var=LD_LIBRARY_PATH 17623 fi 17624 ;; 17625 17626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17627 version_type=freebsd-elf 17628 need_lib_prefix=no 17629 need_version=no 17630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17631 soname_spec='${libname}${release}${shared_ext}$major' 17632 shlibpath_var=LD_LIBRARY_PATH 17633 hardcode_into_libs=yes 17634 if test "$with_gnu_ld" = yes; then 17635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17636 shlibpath_overrides_runpath=no 17637 else 17638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17639 shlibpath_overrides_runpath=yes 17640 case $host_os in 17641 sco3.2v5*) 17642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17643 ;; 17644 esac 17645 fi 17646 sys_lib_dlsearch_path_spec='/usr/lib' 17647 ;; 17648 17649uts4*) 17650 version_type=linux 17651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17652 soname_spec='${libname}${release}${shared_ext}$major' 17653 shlibpath_var=LD_LIBRARY_PATH 17654 ;; 17655 17656*) 17657 dynamic_linker=no 17658 ;; 17659esac 17660echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17661echo "${ECHO_T}$dynamic_linker" >&6 17662test "$dynamic_linker" = no && can_build_shared=no 17663 17664variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17665if test "$GCC" = yes; then 17666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17667fi 17668 17669echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17670echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17671hardcode_action_GCJ= 17672if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17673 test -n "$runpath_var_GCJ" || \ 17674 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17675 17676 # We can hardcode non-existant directories. 17677 if test "$hardcode_direct_GCJ" != no && 17678 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17679 # have to relink, otherwise we might link with an installed library 17680 # when we should be linking with a yet-to-be-installed one 17681 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17682 test "$hardcode_minus_L_GCJ" != no; then 17683 # Linking always hardcodes the temporary library directory. 17684 hardcode_action_GCJ=relink 17685 else 17686 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17687 hardcode_action_GCJ=immediate 17688 fi 17689else 17690 # We cannot hardcode anything, or else we can only hardcode existing 17691 # directories. 17692 hardcode_action_GCJ=unsupported 17693fi 17694echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17695echo "${ECHO_T}$hardcode_action_GCJ" >&6 17696 17697if test "$hardcode_action_GCJ" = relink; then 17698 # Fast installation is not supported 17699 enable_fast_install=no 17700elif test "$shlibpath_overrides_runpath" = yes || 17701 test "$enable_shared" = no; then 17702 # Fast installation is not necessary 17703 enable_fast_install=needless 17704fi 17705 17706 17707# The else clause should only fire when bootstrapping the 17708# libtool distribution, otherwise you forgot to ship ltmain.sh 17709# with your package, and you will get complaints that there are 17710# no rules to generate ltmain.sh. 17711if test -f "$ltmain"; then 17712 # See if we are running on zsh, and set the options which allow our commands through 17713 # without removal of \ escapes. 17714 if test -n "${ZSH_VERSION+set}" ; then 17715 setopt NO_GLOB_SUBST 17716 fi 17717 # Now quote all the things that may contain metacharacters while being 17718 # careful not to overquote the AC_SUBSTed values. We take copies of the 17719 # variables and quote the copies for generation of the libtool script. 17720 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17721 SED SHELL STRIP \ 17722 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17723 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17724 deplibs_check_method reload_flag reload_cmds need_locks \ 17725 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17726 lt_cv_sys_global_symbol_to_c_name_address \ 17727 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17728 old_postinstall_cmds old_postuninstall_cmds \ 17729 compiler_GCJ \ 17730 CC_GCJ \ 17731 LD_GCJ \ 17732 lt_prog_compiler_wl_GCJ \ 17733 lt_prog_compiler_pic_GCJ \ 17734 lt_prog_compiler_static_GCJ \ 17735 lt_prog_compiler_no_builtin_flag_GCJ \ 17736 export_dynamic_flag_spec_GCJ \ 17737 thread_safe_flag_spec_GCJ \ 17738 whole_archive_flag_spec_GCJ \ 17739 enable_shared_with_static_runtimes_GCJ \ 17740 old_archive_cmds_GCJ \ 17741 old_archive_from_new_cmds_GCJ \ 17742 predep_objects_GCJ \ 17743 postdep_objects_GCJ \ 17744 predeps_GCJ \ 17745 postdeps_GCJ \ 17746 compiler_lib_search_path_GCJ \ 17747 archive_cmds_GCJ \ 17748 archive_expsym_cmds_GCJ \ 17749 postinstall_cmds_GCJ \ 17750 postuninstall_cmds_GCJ \ 17751 old_archive_from_expsyms_cmds_GCJ \ 17752 allow_undefined_flag_GCJ \ 17753 no_undefined_flag_GCJ \ 17754 export_symbols_cmds_GCJ \ 17755 hardcode_libdir_flag_spec_GCJ \ 17756 hardcode_libdir_flag_spec_ld_GCJ \ 17757 hardcode_libdir_separator_GCJ \ 17758 hardcode_automatic_GCJ \ 17759 module_cmds_GCJ \ 17760 module_expsym_cmds_GCJ \ 17761 lt_cv_prog_compiler_c_o_GCJ \ 17762 exclude_expsyms_GCJ \ 17763 include_expsyms_GCJ; do 17764 17765 case $var in 17766 old_archive_cmds_GCJ | \ 17767 old_archive_from_new_cmds_GCJ | \ 17768 archive_cmds_GCJ | \ 17769 archive_expsym_cmds_GCJ | \ 17770 module_cmds_GCJ | \ 17771 module_expsym_cmds_GCJ | \ 17772 old_archive_from_expsyms_cmds_GCJ | \ 17773 export_symbols_cmds_GCJ | \ 17774 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17775 postinstall_cmds | postuninstall_cmds | \ 17776 old_postinstall_cmds | old_postuninstall_cmds | \ 17777 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17778 # Double-quote double-evaled strings. 17779 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17780 ;; 17781 *) 17782 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17783 ;; 17784 esac 17785 done 17786 17787 case $lt_echo in 17788 *'\$0 --fallback-echo"') 17789 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17790 ;; 17791 esac 17792 17793cfgfile="$ofile" 17794 17795 cat <<__EOF__ >> "$cfgfile" 17796# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17797 17798# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17799 17800# Shell to use when invoking shell scripts. 17801SHELL=$lt_SHELL 17802 17803# Whether or not to build shared libraries. 17804build_libtool_libs=$enable_shared 17805 17806# Whether or not to build static libraries. 17807build_old_libs=$enable_static 17808 17809# Whether or not to add -lc for building shared libraries. 17810build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17811 17812# Whether or not to disallow shared libs when runtime libs are static 17813allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17814 17815# Whether or not to optimize for fast installation. 17816fast_install=$enable_fast_install 17817 17818# The host system. 17819host_alias=$host_alias 17820host=$host 17821host_os=$host_os 17822 17823# The build system. 17824build_alias=$build_alias 17825build=$build 17826build_os=$build_os 17827 17828# An echo program that does not interpret backslashes. 17829echo=$lt_echo 17830 17831# The archiver. 17832AR=$lt_AR 17833AR_FLAGS=$lt_AR_FLAGS 17834 17835# A C compiler. 17836LTCC=$lt_LTCC 17837 17838# LTCC compiler flags. 17839LTCFLAGS=$lt_LTCFLAGS 17840 17841# A language-specific compiler. 17842CC=$lt_compiler_GCJ 17843 17844# Is the compiler the GNU C compiler? 17845with_gcc=$GCC_GCJ 17846 17847gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 17848gcc_ver=\`gcc -dumpversion\` 17849 17850# An ERE matcher. 17851EGREP=$lt_EGREP 17852 17853# The linker used to build libraries. 17854LD=$lt_LD_GCJ 17855 17856# Whether we need hard or soft links. 17857LN_S=$lt_LN_S 17858 17859# A BSD-compatible nm program. 17860NM=$lt_NM 17861 17862# A symbol stripping program 17863STRIP=$lt_STRIP 17864 17865# Used to examine libraries when file_magic_cmd begins "file" 17866MAGIC_CMD=$MAGIC_CMD 17867 17868# Used on cygwin: DLL creation program. 17869DLLTOOL="$DLLTOOL" 17870 17871# Used on cygwin: object dumper. 17872OBJDUMP="$OBJDUMP" 17873 17874# Used on cygwin: assembler. 17875AS="$AS" 17876 17877# The name of the directory that contains temporary libtool files. 17878objdir=$objdir 17879 17880# How to create reloadable object files. 17881reload_flag=$lt_reload_flag 17882reload_cmds=$lt_reload_cmds 17883 17884# How to pass a linker flag through the compiler. 17885wl=$lt_lt_prog_compiler_wl_GCJ 17886 17887# Object file suffix (normally "o"). 17888objext="$ac_objext" 17889 17890# Old archive suffix (normally "a"). 17891libext="$libext" 17892 17893# Shared library suffix (normally ".so"). 17894shrext_cmds='$shrext_cmds' 17895 17896# Executable file suffix (normally ""). 17897exeext="$exeext" 17898 17899# Additional compiler flags for building library objects. 17900pic_flag=$lt_lt_prog_compiler_pic_GCJ 17901pic_mode=$pic_mode 17902 17903# What is the maximum length of a command? 17904max_cmd_len=$lt_cv_sys_max_cmd_len 17905 17906# Does compiler simultaneously support -c and -o options? 17907compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17908 17909# Must we lock files when doing compilation? 17910need_locks=$lt_need_locks 17911 17912# Do we need the lib prefix for modules? 17913need_lib_prefix=$need_lib_prefix 17914 17915# Do we need a version for libraries? 17916need_version=$need_version 17917 17918# Whether dlopen is supported. 17919dlopen_support=$enable_dlopen 17920 17921# Whether dlopen of programs is supported. 17922dlopen_self=$enable_dlopen_self 17923 17924# Whether dlopen of statically linked programs is supported. 17925dlopen_self_static=$enable_dlopen_self_static 17926 17927# Compiler flag to prevent dynamic linking. 17928link_static_flag=$lt_lt_prog_compiler_static_GCJ 17929 17930# Compiler flag to turn off builtin functions. 17931no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17932 17933# Compiler flag to allow reflexive dlopens. 17934export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17935 17936# Compiler flag to generate shared objects directly from archives. 17937whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17938 17939# Compiler flag to generate thread-safe objects. 17940thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17941 17942# Library versioning type. 17943version_type=$version_type 17944 17945# Format of library name prefix. 17946libname_spec=$lt_libname_spec 17947 17948# List of archive names. First name is the real one, the rest are links. 17949# The last name is the one that the linker finds with -lNAME. 17950library_names_spec=$lt_library_names_spec 17951 17952# The coded name of the library, if different from the real name. 17953soname_spec=$lt_soname_spec 17954 17955# Commands used to build and install an old-style archive. 17956RANLIB=$lt_RANLIB 17957old_archive_cmds=$lt_old_archive_cmds_GCJ 17958old_postinstall_cmds=$lt_old_postinstall_cmds 17959old_postuninstall_cmds=$lt_old_postuninstall_cmds 17960 17961# Create an old-style archive from a shared archive. 17962old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17963 17964# Create a temporary old-style archive to link instead of a shared archive. 17965old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17966 17967# Commands used to build and install a shared archive. 17968archive_cmds=$lt_archive_cmds_GCJ 17969archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17970postinstall_cmds=$lt_postinstall_cmds 17971postuninstall_cmds=$lt_postuninstall_cmds 17972 17973# Commands used to build a loadable module (assumed same as above if empty) 17974module_cmds=$lt_module_cmds_GCJ 17975module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17976 17977# Commands to strip libraries. 17978old_striplib=$lt_old_striplib 17979striplib=$lt_striplib 17980 17981# Dependencies to place before the objects being linked to create a 17982# shared library. 17983predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17984 17985# Dependencies to place after the objects being linked to create a 17986# shared library. 17987postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17988 17989# Dependencies to place before the objects being linked to create a 17990# shared library. 17991predeps=$lt_predeps_GCJ 17992 17993# Dependencies to place after the objects being linked to create a 17994# shared library. 17995postdeps=$lt_postdeps_GCJ 17996 17997# The library search path used internally by the compiler when linking 17998# a shared library. 17999compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18000 18001# Method to check whether dependent libraries are shared objects. 18002deplibs_check_method=$lt_deplibs_check_method 18003 18004# Command to use when deplibs_check_method == file_magic. 18005file_magic_cmd=$lt_file_magic_cmd 18006 18007# Flag that allows shared libraries with undefined symbols to be built. 18008allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18009 18010# Flag that forces no undefined symbols. 18011no_undefined_flag=$lt_no_undefined_flag_GCJ 18012 18013# Commands used to finish a libtool library installation in a directory. 18014finish_cmds=$lt_finish_cmds 18015 18016# Same as above, but a single script fragment to be evaled but not shown. 18017finish_eval=$lt_finish_eval 18018 18019# Take the output of nm and produce a listing of raw symbols and C names. 18020global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18021 18022# Transform the output of nm in a proper C declaration 18023global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18024 18025# Transform the output of nm in a C name address pair 18026global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18027 18028# This is the shared library runtime path variable. 18029runpath_var=$runpath_var 18030 18031# This is the shared library path variable. 18032shlibpath_var=$shlibpath_var 18033 18034# Is shlibpath searched before the hard-coded library search path? 18035shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18036 18037# How to hardcode a shared library path into an executable. 18038hardcode_action=$hardcode_action_GCJ 18039 18040# Whether we should hardcode library paths into libraries. 18041hardcode_into_libs=$hardcode_into_libs 18042 18043# Flag to hardcode \$libdir into a binary during linking. 18044# This must work even if \$libdir does not exist. 18045hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18046 18047# If ld is used when linking, flag to hardcode \$libdir into 18048# a binary during linking. This must work even if \$libdir does 18049# not exist. 18050hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18051 18052# Whether we need a single -rpath flag with a separated argument. 18053hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18054 18055# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18056# resulting binary. 18057hardcode_direct=$hardcode_direct_GCJ 18058 18059# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18060# resulting binary. 18061hardcode_minus_L=$hardcode_minus_L_GCJ 18062 18063# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18064# the resulting binary. 18065hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18066 18067# Set to yes if building a shared library automatically hardcodes DIR into the library 18068# and all subsequent libraries and executables linked against it. 18069hardcode_automatic=$hardcode_automatic_GCJ 18070 18071# Variables whose values should be saved in libtool wrapper scripts and 18072# restored at relink time. 18073variables_saved_for_relink="$variables_saved_for_relink" 18074 18075# Whether libtool must link a program against all its dependency libraries. 18076link_all_deplibs=$link_all_deplibs_GCJ 18077 18078# Compile-time system search path for libraries 18079sys_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"\` 18080 18081# Run-time system search path for libraries 18082sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18083 18084# Fix the shell variable \$srcfile for the compiler. 18085fix_srcfile_path="$fix_srcfile_path_GCJ" 18086 18087# Set to yes if exported symbols are required. 18088always_export_symbols=$always_export_symbols_GCJ 18089 18090# The commands to list exported symbols. 18091export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18092 18093# The commands to extract the exported symbol list from a shared archive. 18094extract_expsyms_cmds=$lt_extract_expsyms_cmds 18095 18096# Symbols that should not be listed in the preloaded symbols. 18097exclude_expsyms=$lt_exclude_expsyms_GCJ 18098 18099# Symbols that must always be exported. 18100include_expsyms=$lt_include_expsyms_GCJ 18101 18102# ### END LIBTOOL TAG CONFIG: $tagname 18103 18104__EOF__ 18105 18106 18107else 18108 # If there is no Makefile yet, we rely on a make rule to execute 18109 # `config.status --recheck' to rerun these tests and create the 18110 # libtool script then. 18111 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18112 if test -f "$ltmain_in"; then 18113 test -f Makefile && make "$ltmain" 18114 fi 18115fi 18116 18117 18118ac_ext=c 18119ac_cpp='$CPP $CPPFLAGS' 18120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18122ac_compiler_gnu=$ac_cv_c_compiler_gnu 18123 18124CC="$lt_save_CC" 18125 18126 else 18127 tagname="" 18128 fi 18129 ;; 18130 18131 RC) 18132 18133 18134 18135# Source file extension for RC test sources. 18136ac_ext=rc 18137 18138# Object file extension for compiled RC test sources. 18139objext=o 18140objext_RC=$objext 18141 18142# Code to be used in simple compile tests 18143lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18144 18145# Code to be used in simple link tests 18146lt_simple_link_test_code="$lt_simple_compile_test_code" 18147 18148# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18149 18150# If no C compiler was specified, use CC. 18151LTCC=${LTCC-"$CC"} 18152 18153# If no C compiler flags were specified, use CFLAGS. 18154LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18155 18156# Allow CC to be a program name with arguments. 18157compiler=$CC 18158 18159 18160# save warnings/boilerplate of simple test code 18161ac_outfile=conftest.$ac_objext 18162printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18163eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18164_lt_compiler_boilerplate=`cat conftest.err` 18165$rm conftest* 18166 18167ac_outfile=conftest.$ac_objext 18168printf "$lt_simple_link_test_code" >conftest.$ac_ext 18169eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18170_lt_linker_boilerplate=`cat conftest.err` 18171$rm conftest* 18172 18173 18174# Allow CC to be a program name with arguments. 18175lt_save_CC="$CC" 18176CC=${RC-"windres"} 18177compiler=$CC 18178compiler_RC=$CC 18179for cc_temp in $compiler""; do 18180 case $cc_temp in 18181 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18182 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18183 \-*) ;; 18184 *) break;; 18185 esac 18186done 18187cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18188 18189lt_cv_prog_compiler_c_o_RC=yes 18190 18191# The else clause should only fire when bootstrapping the 18192# libtool distribution, otherwise you forgot to ship ltmain.sh 18193# with your package, and you will get complaints that there are 18194# no rules to generate ltmain.sh. 18195if test -f "$ltmain"; then 18196 # See if we are running on zsh, and set the options which allow our commands through 18197 # without removal of \ escapes. 18198 if test -n "${ZSH_VERSION+set}" ; then 18199 setopt NO_GLOB_SUBST 18200 fi 18201 # Now quote all the things that may contain metacharacters while being 18202 # careful not to overquote the AC_SUBSTed values. We take copies of the 18203 # variables and quote the copies for generation of the libtool script. 18204 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18205 SED SHELL STRIP \ 18206 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18207 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18208 deplibs_check_method reload_flag reload_cmds need_locks \ 18209 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18210 lt_cv_sys_global_symbol_to_c_name_address \ 18211 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18212 old_postinstall_cmds old_postuninstall_cmds \ 18213 compiler_RC \ 18214 CC_RC \ 18215 LD_RC \ 18216 lt_prog_compiler_wl_RC \ 18217 lt_prog_compiler_pic_RC \ 18218 lt_prog_compiler_static_RC \ 18219 lt_prog_compiler_no_builtin_flag_RC \ 18220 export_dynamic_flag_spec_RC \ 18221 thread_safe_flag_spec_RC \ 18222 whole_archive_flag_spec_RC \ 18223 enable_shared_with_static_runtimes_RC \ 18224 old_archive_cmds_RC \ 18225 old_archive_from_new_cmds_RC \ 18226 predep_objects_RC \ 18227 postdep_objects_RC \ 18228 predeps_RC \ 18229 postdeps_RC \ 18230 compiler_lib_search_path_RC \ 18231 archive_cmds_RC \ 18232 archive_expsym_cmds_RC \ 18233 postinstall_cmds_RC \ 18234 postuninstall_cmds_RC \ 18235 old_archive_from_expsyms_cmds_RC \ 18236 allow_undefined_flag_RC \ 18237 no_undefined_flag_RC \ 18238 export_symbols_cmds_RC \ 18239 hardcode_libdir_flag_spec_RC \ 18240 hardcode_libdir_flag_spec_ld_RC \ 18241 hardcode_libdir_separator_RC \ 18242 hardcode_automatic_RC \ 18243 module_cmds_RC \ 18244 module_expsym_cmds_RC \ 18245 lt_cv_prog_compiler_c_o_RC \ 18246 exclude_expsyms_RC \ 18247 include_expsyms_RC; do 18248 18249 case $var in 18250 old_archive_cmds_RC | \ 18251 old_archive_from_new_cmds_RC | \ 18252 archive_cmds_RC | \ 18253 archive_expsym_cmds_RC | \ 18254 module_cmds_RC | \ 18255 module_expsym_cmds_RC | \ 18256 old_archive_from_expsyms_cmds_RC | \ 18257 export_symbols_cmds_RC | \ 18258 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18259 postinstall_cmds | postuninstall_cmds | \ 18260 old_postinstall_cmds | old_postuninstall_cmds | \ 18261 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18262 # Double-quote double-evaled strings. 18263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18264 ;; 18265 *) 18266 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18267 ;; 18268 esac 18269 done 18270 18271 case $lt_echo in 18272 *'\$0 --fallback-echo"') 18273 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18274 ;; 18275 esac 18276 18277cfgfile="$ofile" 18278 18279 cat <<__EOF__ >> "$cfgfile" 18280# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18281 18282# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18283 18284# Shell to use when invoking shell scripts. 18285SHELL=$lt_SHELL 18286 18287# Whether or not to build shared libraries. 18288build_libtool_libs=$enable_shared 18289 18290# Whether or not to build static libraries. 18291build_old_libs=$enable_static 18292 18293# Whether or not to add -lc for building shared libraries. 18294build_libtool_need_lc=$archive_cmds_need_lc_RC 18295 18296# Whether or not to disallow shared libs when runtime libs are static 18297allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18298 18299# Whether or not to optimize for fast installation. 18300fast_install=$enable_fast_install 18301 18302# The host system. 18303host_alias=$host_alias 18304host=$host 18305host_os=$host_os 18306 18307# The build system. 18308build_alias=$build_alias 18309build=$build 18310build_os=$build_os 18311 18312# An echo program that does not interpret backslashes. 18313echo=$lt_echo 18314 18315# The archiver. 18316AR=$lt_AR 18317AR_FLAGS=$lt_AR_FLAGS 18318 18319# A C compiler. 18320LTCC=$lt_LTCC 18321 18322# LTCC compiler flags. 18323LTCFLAGS=$lt_LTCFLAGS 18324 18325# A language-specific compiler. 18326CC=$lt_compiler_RC 18327 18328# Is the compiler the GNU C compiler? 18329with_gcc=$GCC_RC 18330 18331gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 18332gcc_ver=\`gcc -dumpversion\` 18333 18334# An ERE matcher. 18335EGREP=$lt_EGREP 18336 18337# The linker used to build libraries. 18338LD=$lt_LD_RC 18339 18340# Whether we need hard or soft links. 18341LN_S=$lt_LN_S 18342 18343# A BSD-compatible nm program. 18344NM=$lt_NM 18345 18346# A symbol stripping program 18347STRIP=$lt_STRIP 18348 18349# Used to examine libraries when file_magic_cmd begins "file" 18350MAGIC_CMD=$MAGIC_CMD 18351 18352# Used on cygwin: DLL creation program. 18353DLLTOOL="$DLLTOOL" 18354 18355# Used on cygwin: object dumper. 18356OBJDUMP="$OBJDUMP" 18357 18358# Used on cygwin: assembler. 18359AS="$AS" 18360 18361# The name of the directory that contains temporary libtool files. 18362objdir=$objdir 18363 18364# How to create reloadable object files. 18365reload_flag=$lt_reload_flag 18366reload_cmds=$lt_reload_cmds 18367 18368# How to pass a linker flag through the compiler. 18369wl=$lt_lt_prog_compiler_wl_RC 18370 18371# Object file suffix (normally "o"). 18372objext="$ac_objext" 18373 18374# Old archive suffix (normally "a"). 18375libext="$libext" 18376 18377# Shared library suffix (normally ".so"). 18378shrext_cmds='$shrext_cmds' 18379 18380# Executable file suffix (normally ""). 18381exeext="$exeext" 18382 18383# Additional compiler flags for building library objects. 18384pic_flag=$lt_lt_prog_compiler_pic_RC 18385pic_mode=$pic_mode 18386 18387# What is the maximum length of a command? 18388max_cmd_len=$lt_cv_sys_max_cmd_len 18389 18390# Does compiler simultaneously support -c and -o options? 18391compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18392 18393# Must we lock files when doing compilation? 18394need_locks=$lt_need_locks 18395 18396# Do we need the lib prefix for modules? 18397need_lib_prefix=$need_lib_prefix 18398 18399# Do we need a version for libraries? 18400need_version=$need_version 18401 18402# Whether dlopen is supported. 18403dlopen_support=$enable_dlopen 18404 18405# Whether dlopen of programs is supported. 18406dlopen_self=$enable_dlopen_self 18407 18408# Whether dlopen of statically linked programs is supported. 18409dlopen_self_static=$enable_dlopen_self_static 18410 18411# Compiler flag to prevent dynamic linking. 18412link_static_flag=$lt_lt_prog_compiler_static_RC 18413 18414# Compiler flag to turn off builtin functions. 18415no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18416 18417# Compiler flag to allow reflexive dlopens. 18418export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18419 18420# Compiler flag to generate shared objects directly from archives. 18421whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18422 18423# Compiler flag to generate thread-safe objects. 18424thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18425 18426# Library versioning type. 18427version_type=$version_type 18428 18429# Format of library name prefix. 18430libname_spec=$lt_libname_spec 18431 18432# List of archive names. First name is the real one, the rest are links. 18433# The last name is the one that the linker finds with -lNAME. 18434library_names_spec=$lt_library_names_spec 18435 18436# The coded name of the library, if different from the real name. 18437soname_spec=$lt_soname_spec 18438 18439# Commands used to build and install an old-style archive. 18440RANLIB=$lt_RANLIB 18441old_archive_cmds=$lt_old_archive_cmds_RC 18442old_postinstall_cmds=$lt_old_postinstall_cmds 18443old_postuninstall_cmds=$lt_old_postuninstall_cmds 18444 18445# Create an old-style archive from a shared archive. 18446old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18447 18448# Create a temporary old-style archive to link instead of a shared archive. 18449old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18450 18451# Commands used to build and install a shared archive. 18452archive_cmds=$lt_archive_cmds_RC 18453archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18454postinstall_cmds=$lt_postinstall_cmds 18455postuninstall_cmds=$lt_postuninstall_cmds 18456 18457# Commands used to build a loadable module (assumed same as above if empty) 18458module_cmds=$lt_module_cmds_RC 18459module_expsym_cmds=$lt_module_expsym_cmds_RC 18460 18461# Commands to strip libraries. 18462old_striplib=$lt_old_striplib 18463striplib=$lt_striplib 18464 18465# Dependencies to place before the objects being linked to create a 18466# shared library. 18467predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18468 18469# Dependencies to place after the objects being linked to create a 18470# shared library. 18471postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18472 18473# Dependencies to place before the objects being linked to create a 18474# shared library. 18475predeps=$lt_predeps_RC 18476 18477# Dependencies to place after the objects being linked to create a 18478# shared library. 18479postdeps=$lt_postdeps_RC 18480 18481# The library search path used internally by the compiler when linking 18482# a shared library. 18483compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18484 18485# Method to check whether dependent libraries are shared objects. 18486deplibs_check_method=$lt_deplibs_check_method 18487 18488# Command to use when deplibs_check_method == file_magic. 18489file_magic_cmd=$lt_file_magic_cmd 18490 18491# Flag that allows shared libraries with undefined symbols to be built. 18492allow_undefined_flag=$lt_allow_undefined_flag_RC 18493 18494# Flag that forces no undefined symbols. 18495no_undefined_flag=$lt_no_undefined_flag_RC 18496 18497# Commands used to finish a libtool library installation in a directory. 18498finish_cmds=$lt_finish_cmds 18499 18500# Same as above, but a single script fragment to be evaled but not shown. 18501finish_eval=$lt_finish_eval 18502 18503# Take the output of nm and produce a listing of raw symbols and C names. 18504global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18505 18506# Transform the output of nm in a proper C declaration 18507global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18508 18509# Transform the output of nm in a C name address pair 18510global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18511 18512# This is the shared library runtime path variable. 18513runpath_var=$runpath_var 18514 18515# This is the shared library path variable. 18516shlibpath_var=$shlibpath_var 18517 18518# Is shlibpath searched before the hard-coded library search path? 18519shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18520 18521# How to hardcode a shared library path into an executable. 18522hardcode_action=$hardcode_action_RC 18523 18524# Whether we should hardcode library paths into libraries. 18525hardcode_into_libs=$hardcode_into_libs 18526 18527# Flag to hardcode \$libdir into a binary during linking. 18528# This must work even if \$libdir does not exist. 18529hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18530 18531# If ld is used when linking, flag to hardcode \$libdir into 18532# a binary during linking. This must work even if \$libdir does 18533# not exist. 18534hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18535 18536# Whether we need a single -rpath flag with a separated argument. 18537hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18538 18539# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18540# resulting binary. 18541hardcode_direct=$hardcode_direct_RC 18542 18543# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18544# resulting binary. 18545hardcode_minus_L=$hardcode_minus_L_RC 18546 18547# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18548# the resulting binary. 18549hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18550 18551# Set to yes if building a shared library automatically hardcodes DIR into the library 18552# and all subsequent libraries and executables linked against it. 18553hardcode_automatic=$hardcode_automatic_RC 18554 18555# Variables whose values should be saved in libtool wrapper scripts and 18556# restored at relink time. 18557variables_saved_for_relink="$variables_saved_for_relink" 18558 18559# Whether libtool must link a program against all its dependency libraries. 18560link_all_deplibs=$link_all_deplibs_RC 18561 18562# Compile-time system search path for libraries 18563sys_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"\` 18564 18565# Run-time system search path for libraries 18566sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18567 18568# Fix the shell variable \$srcfile for the compiler. 18569fix_srcfile_path="$fix_srcfile_path_RC" 18570 18571# Set to yes if exported symbols are required. 18572always_export_symbols=$always_export_symbols_RC 18573 18574# The commands to list exported symbols. 18575export_symbols_cmds=$lt_export_symbols_cmds_RC 18576 18577# The commands to extract the exported symbol list from a shared archive. 18578extract_expsyms_cmds=$lt_extract_expsyms_cmds 18579 18580# Symbols that should not be listed in the preloaded symbols. 18581exclude_expsyms=$lt_exclude_expsyms_RC 18582 18583# Symbols that must always be exported. 18584include_expsyms=$lt_include_expsyms_RC 18585 18586# ### END LIBTOOL TAG CONFIG: $tagname 18587 18588__EOF__ 18589 18590 18591else 18592 # If there is no Makefile yet, we rely on a make rule to execute 18593 # `config.status --recheck' to rerun these tests and create the 18594 # libtool script then. 18595 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18596 if test -f "$ltmain_in"; then 18597 test -f Makefile && make "$ltmain" 18598 fi 18599fi 18600 18601 18602ac_ext=c 18603ac_cpp='$CPP $CPPFLAGS' 18604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18606ac_compiler_gnu=$ac_cv_c_compiler_gnu 18607 18608CC="$lt_save_CC" 18609 18610 ;; 18611 18612 *) 18613 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18614echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18615 { (exit 1); exit 1; }; } 18616 ;; 18617 esac 18618 18619 # Append the new tag name to the list of available tags. 18620 if test -n "$tagname" ; then 18621 available_tags="$available_tags $tagname" 18622 fi 18623 fi 18624 done 18625 IFS="$lt_save_ifs" 18626 18627 # Now substitute the updated list of available tags. 18628 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18629 mv "${ofile}T" "$ofile" 18630 chmod +x "$ofile" 18631 else 18632 rm -f "${ofile}T" 18633 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18634echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18635 { (exit 1); exit 1; }; } 18636 fi 18637fi 18638 18639 18640 18641# This can be used to rebuild libtool when needed 18642LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18643 18644# Always use our own libtool. 18645LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18646 18647# Prevent multiple expansion 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668ac_ext=c 18669ac_cpp='$CPP $CPPFLAGS' 18670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18672ac_compiler_gnu=$ac_cv_c_compiler_gnu 18673if test -n "$ac_tool_prefix"; then 18674 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 18675set dummy ${ac_tool_prefix}gcc; ac_word=$2 18676echo "$as_me:$LINENO: checking for $ac_word" >&5 18677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18678if test "${ac_cv_prog_CC+set}" = set; then 18679 echo $ECHO_N "(cached) $ECHO_C" >&6 18680else 18681 if test -n "$CC"; then 18682 ac_cv_prog_CC="$CC" # Let the user override the test. 18683else 18684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18685for as_dir in $PATH 18686do 18687 IFS=$as_save_IFS 18688 test -z "$as_dir" && as_dir=. 18689 for ac_exec_ext in '' $ac_executable_extensions; do 18690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18691 ac_cv_prog_CC="${ac_tool_prefix}gcc" 18692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18693 break 2 18694 fi 18695done 18696done 18697 18698fi 18699fi 18700CC=$ac_cv_prog_CC 18701if test -n "$CC"; then 18702 echo "$as_me:$LINENO: result: $CC" >&5 18703echo "${ECHO_T}$CC" >&6 18704else 18705 echo "$as_me:$LINENO: result: no" >&5 18706echo "${ECHO_T}no" >&6 18707fi 18708 18709fi 18710if test -z "$ac_cv_prog_CC"; then 18711 ac_ct_CC=$CC 18712 # Extract the first word of "gcc", so it can be a program name with args. 18713set dummy gcc; ac_word=$2 18714echo "$as_me:$LINENO: checking for $ac_word" >&5 18715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18716if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18717 echo $ECHO_N "(cached) $ECHO_C" >&6 18718else 18719 if test -n "$ac_ct_CC"; then 18720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18721else 18722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18723for as_dir in $PATH 18724do 18725 IFS=$as_save_IFS 18726 test -z "$as_dir" && as_dir=. 18727 for ac_exec_ext in '' $ac_executable_extensions; do 18728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18729 ac_cv_prog_ac_ct_CC="gcc" 18730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18731 break 2 18732 fi 18733done 18734done 18735 18736fi 18737fi 18738ac_ct_CC=$ac_cv_prog_ac_ct_CC 18739if test -n "$ac_ct_CC"; then 18740 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18741echo "${ECHO_T}$ac_ct_CC" >&6 18742else 18743 echo "$as_me:$LINENO: result: no" >&5 18744echo "${ECHO_T}no" >&6 18745fi 18746 18747 CC=$ac_ct_CC 18748else 18749 CC="$ac_cv_prog_CC" 18750fi 18751 18752if test -z "$CC"; then 18753 if test -n "$ac_tool_prefix"; then 18754 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 18755set dummy ${ac_tool_prefix}cc; ac_word=$2 18756echo "$as_me:$LINENO: checking for $ac_word" >&5 18757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18758if test "${ac_cv_prog_CC+set}" = set; then 18759 echo $ECHO_N "(cached) $ECHO_C" >&6 18760else 18761 if test -n "$CC"; then 18762 ac_cv_prog_CC="$CC" # Let the user override the test. 18763else 18764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18765for as_dir in $PATH 18766do 18767 IFS=$as_save_IFS 18768 test -z "$as_dir" && as_dir=. 18769 for ac_exec_ext in '' $ac_executable_extensions; do 18770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18771 ac_cv_prog_CC="${ac_tool_prefix}cc" 18772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18773 break 2 18774 fi 18775done 18776done 18777 18778fi 18779fi 18780CC=$ac_cv_prog_CC 18781if test -n "$CC"; then 18782 echo "$as_me:$LINENO: result: $CC" >&5 18783echo "${ECHO_T}$CC" >&6 18784else 18785 echo "$as_me:$LINENO: result: no" >&5 18786echo "${ECHO_T}no" >&6 18787fi 18788 18789fi 18790if test -z "$ac_cv_prog_CC"; then 18791 ac_ct_CC=$CC 18792 # Extract the first word of "cc", so it can be a program name with args. 18793set dummy cc; ac_word=$2 18794echo "$as_me:$LINENO: checking for $ac_word" >&5 18795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18796if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18797 echo $ECHO_N "(cached) $ECHO_C" >&6 18798else 18799 if test -n "$ac_ct_CC"; then 18800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18801else 18802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18803for as_dir in $PATH 18804do 18805 IFS=$as_save_IFS 18806 test -z "$as_dir" && as_dir=. 18807 for ac_exec_ext in '' $ac_executable_extensions; do 18808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18809 ac_cv_prog_ac_ct_CC="cc" 18810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18811 break 2 18812 fi 18813done 18814done 18815 18816fi 18817fi 18818ac_ct_CC=$ac_cv_prog_ac_ct_CC 18819if test -n "$ac_ct_CC"; then 18820 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18821echo "${ECHO_T}$ac_ct_CC" >&6 18822else 18823 echo "$as_me:$LINENO: result: no" >&5 18824echo "${ECHO_T}no" >&6 18825fi 18826 18827 CC=$ac_ct_CC 18828else 18829 CC="$ac_cv_prog_CC" 18830fi 18831 18832fi 18833if test -z "$CC"; then 18834 # Extract the first word of "cc", so it can be a program name with args. 18835set dummy cc; ac_word=$2 18836echo "$as_me:$LINENO: checking for $ac_word" >&5 18837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18838if test "${ac_cv_prog_CC+set}" = set; then 18839 echo $ECHO_N "(cached) $ECHO_C" >&6 18840else 18841 if test -n "$CC"; then 18842 ac_cv_prog_CC="$CC" # Let the user override the test. 18843else 18844 ac_prog_rejected=no 18845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18846for as_dir in $PATH 18847do 18848 IFS=$as_save_IFS 18849 test -z "$as_dir" && as_dir=. 18850 for ac_exec_ext in '' $ac_executable_extensions; do 18851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18852 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 18853 ac_prog_rejected=yes 18854 continue 18855 fi 18856 ac_cv_prog_CC="cc" 18857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18858 break 2 18859 fi 18860done 18861done 18862 18863if test $ac_prog_rejected = yes; then 18864 # We found a bogon in the path, so make sure we never use it. 18865 set dummy $ac_cv_prog_CC 18866 shift 18867 if test $# != 0; then 18868 # We chose a different compiler from the bogus one. 18869 # However, it has the same basename, so the bogon will be chosen 18870 # first if we set CC to just the basename; use the full file name. 18871 shift 18872 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 18873 fi 18874fi 18875fi 18876fi 18877CC=$ac_cv_prog_CC 18878if test -n "$CC"; then 18879 echo "$as_me:$LINENO: result: $CC" >&5 18880echo "${ECHO_T}$CC" >&6 18881else 18882 echo "$as_me:$LINENO: result: no" >&5 18883echo "${ECHO_T}no" >&6 18884fi 18885 18886fi 18887if test -z "$CC"; then 18888 if test -n "$ac_tool_prefix"; then 18889 for ac_prog in cl 18890 do 18891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 18892set dummy $ac_tool_prefix$ac_prog; ac_word=$2 18893echo "$as_me:$LINENO: checking for $ac_word" >&5 18894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18895if test "${ac_cv_prog_CC+set}" = set; then 18896 echo $ECHO_N "(cached) $ECHO_C" >&6 18897else 18898 if test -n "$CC"; then 18899 ac_cv_prog_CC="$CC" # Let the user override the test. 18900else 18901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18902for as_dir in $PATH 18903do 18904 IFS=$as_save_IFS 18905 test -z "$as_dir" && as_dir=. 18906 for ac_exec_ext in '' $ac_executable_extensions; do 18907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18908 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 18909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18910 break 2 18911 fi 18912done 18913done 18914 18915fi 18916fi 18917CC=$ac_cv_prog_CC 18918if test -n "$CC"; then 18919 echo "$as_me:$LINENO: result: $CC" >&5 18920echo "${ECHO_T}$CC" >&6 18921else 18922 echo "$as_me:$LINENO: result: no" >&5 18923echo "${ECHO_T}no" >&6 18924fi 18925 18926 test -n "$CC" && break 18927 done 18928fi 18929if test -z "$CC"; then 18930 ac_ct_CC=$CC 18931 for ac_prog in cl 18932do 18933 # Extract the first word of "$ac_prog", so it can be a program name with args. 18934set dummy $ac_prog; ac_word=$2 18935echo "$as_me:$LINENO: checking for $ac_word" >&5 18936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18937if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18938 echo $ECHO_N "(cached) $ECHO_C" >&6 18939else 18940 if test -n "$ac_ct_CC"; then 18941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18942else 18943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18944for as_dir in $PATH 18945do 18946 IFS=$as_save_IFS 18947 test -z "$as_dir" && as_dir=. 18948 for ac_exec_ext in '' $ac_executable_extensions; do 18949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18950 ac_cv_prog_ac_ct_CC="$ac_prog" 18951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18952 break 2 18953 fi 18954done 18955done 18956 18957fi 18958fi 18959ac_ct_CC=$ac_cv_prog_ac_ct_CC 18960if test -n "$ac_ct_CC"; then 18961 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18962echo "${ECHO_T}$ac_ct_CC" >&6 18963else 18964 echo "$as_me:$LINENO: result: no" >&5 18965echo "${ECHO_T}no" >&6 18966fi 18967 18968 test -n "$ac_ct_CC" && break 18969done 18970 18971 CC=$ac_ct_CC 18972fi 18973 18974fi 18975 18976 18977test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 18978See \`config.log' for more details." >&5 18979echo "$as_me: error: no acceptable C compiler found in \$PATH 18980See \`config.log' for more details." >&2;} 18981 { (exit 1); exit 1; }; } 18982 18983# Provide some information about the compiler. 18984echo "$as_me:$LINENO:" \ 18985 "checking for C compiler version" >&5 18986ac_compiler=`set X $ac_compile; echo $2` 18987{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 18988 (eval $ac_compiler --version </dev/null >&5) 2>&5 18989 ac_status=$? 18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18991 (exit $ac_status); } 18992{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 18993 (eval $ac_compiler -v </dev/null >&5) 2>&5 18994 ac_status=$? 18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18996 (exit $ac_status); } 18997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 18998 (eval $ac_compiler -V </dev/null >&5) 2>&5 18999 ac_status=$? 19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19001 (exit $ac_status); } 19002 19003echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 19004echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 19005if test "${ac_cv_c_compiler_gnu+set}" = set; then 19006 echo $ECHO_N "(cached) $ECHO_C" >&6 19007else 19008 cat >conftest.$ac_ext <<_ACEOF 19009/* confdefs.h. */ 19010_ACEOF 19011cat confdefs.h >>conftest.$ac_ext 19012cat >>conftest.$ac_ext <<_ACEOF 19013/* end confdefs.h. */ 19014 19015int 19016main () 19017{ 19018#ifndef __GNUC__ 19019 choke me 19020#endif 19021 19022 ; 19023 return 0; 19024} 19025_ACEOF 19026rm -f conftest.$ac_objext 19027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19028 (eval $ac_compile) 2>conftest.er1 19029 ac_status=$? 19030 grep -v '^ *+' conftest.er1 >conftest.err 19031 rm -f conftest.er1 19032 cat conftest.err >&5 19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19034 (exit $ac_status); } && 19035 { ac_try='test -z "$ac_c_werror_flag" 19036 || test ! -s conftest.err' 19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19038 (eval $ac_try) 2>&5 19039 ac_status=$? 19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19041 (exit $ac_status); }; } && 19042 { ac_try='test -s conftest.$ac_objext' 19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19044 (eval $ac_try) 2>&5 19045 ac_status=$? 19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19047 (exit $ac_status); }; }; then 19048 ac_compiler_gnu=yes 19049else 19050 echo "$as_me: failed program was:" >&5 19051sed 's/^/| /' conftest.$ac_ext >&5 19052 19053ac_compiler_gnu=no 19054fi 19055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19056ac_cv_c_compiler_gnu=$ac_compiler_gnu 19057 19058fi 19059echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19060echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 19061GCC=`test $ac_compiler_gnu = yes && echo yes` 19062ac_test_CFLAGS=${CFLAGS+set} 19063ac_save_CFLAGS=$CFLAGS 19064CFLAGS="-g" 19065echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19066echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 19067if test "${ac_cv_prog_cc_g+set}" = set; then 19068 echo $ECHO_N "(cached) $ECHO_C" >&6 19069else 19070 cat >conftest.$ac_ext <<_ACEOF 19071/* confdefs.h. */ 19072_ACEOF 19073cat confdefs.h >>conftest.$ac_ext 19074cat >>conftest.$ac_ext <<_ACEOF 19075/* end confdefs.h. */ 19076 19077int 19078main () 19079{ 19080 19081 ; 19082 return 0; 19083} 19084_ACEOF 19085rm -f conftest.$ac_objext 19086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19087 (eval $ac_compile) 2>conftest.er1 19088 ac_status=$? 19089 grep -v '^ *+' conftest.er1 >conftest.err 19090 rm -f conftest.er1 19091 cat conftest.err >&5 19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19093 (exit $ac_status); } && 19094 { ac_try='test -z "$ac_c_werror_flag" 19095 || test ! -s conftest.err' 19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19097 (eval $ac_try) 2>&5 19098 ac_status=$? 19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19100 (exit $ac_status); }; } && 19101 { ac_try='test -s conftest.$ac_objext' 19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19103 (eval $ac_try) 2>&5 19104 ac_status=$? 19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19106 (exit $ac_status); }; }; then 19107 ac_cv_prog_cc_g=yes 19108else 19109 echo "$as_me: failed program was:" >&5 19110sed 's/^/| /' conftest.$ac_ext >&5 19111 19112ac_cv_prog_cc_g=no 19113fi 19114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19115fi 19116echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19117echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 19118if test "$ac_test_CFLAGS" = set; then 19119 CFLAGS=$ac_save_CFLAGS 19120elif test $ac_cv_prog_cc_g = yes; then 19121 if test "$GCC" = yes; then 19122 CFLAGS="-g -O2" 19123 else 19124 CFLAGS="-g" 19125 fi 19126else 19127 if test "$GCC" = yes; then 19128 CFLAGS="-O2" 19129 else 19130 CFLAGS= 19131 fi 19132fi 19133echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 19134echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 19135if test "${ac_cv_prog_cc_stdc+set}" = set; then 19136 echo $ECHO_N "(cached) $ECHO_C" >&6 19137else 19138 ac_cv_prog_cc_stdc=no 19139ac_save_CC=$CC 19140cat >conftest.$ac_ext <<_ACEOF 19141/* confdefs.h. */ 19142_ACEOF 19143cat confdefs.h >>conftest.$ac_ext 19144cat >>conftest.$ac_ext <<_ACEOF 19145/* end confdefs.h. */ 19146#include <stdarg.h> 19147#include <stdio.h> 19148#include <sys/types.h> 19149#include <sys/stat.h> 19150/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19151struct buf { int x; }; 19152FILE * (*rcsopen) (struct buf *, struct stat *, int); 19153static char *e (p, i) 19154 char **p; 19155 int i; 19156{ 19157 return p[i]; 19158} 19159static char *f (char * (*g) (char **, int), char **p, ...) 19160{ 19161 char *s; 19162 va_list v; 19163 va_start (v,p); 19164 s = g (p, va_arg (v,int)); 19165 va_end (v); 19166 return s; 19167} 19168 19169/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19170 function prototypes and stuff, but not '\xHH' hex character constants. 19171 These don't provoke an error unfortunately, instead are silently treated 19172 as 'x'. The following induces an error, until -std1 is added to get 19173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19174 array size at least. It's necessary to write '\x00'==0 to get something 19175 that's true only with -std1. */ 19176int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19177 19178int test (int i, double x); 19179struct s1 {int (*f) (int a);}; 19180struct s2 {int (*f) (double a);}; 19181int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19182int argc; 19183char **argv; 19184int 19185main () 19186{ 19187return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19188 ; 19189 return 0; 19190} 19191_ACEOF 19192# Don't try gcc -ansi; that turns off useful extensions and 19193# breaks some systems' header files. 19194# AIX -qlanglvl=ansi 19195# Ultrix and OSF/1 -std1 19196# HP-UX 10.20 and later -Ae 19197# HP-UX older versions -Aa -D_HPUX_SOURCE 19198# SVR4 -Xc -D__EXTENSIONS__ 19199for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19200do 19201 CC="$ac_save_CC $ac_arg" 19202 rm -f conftest.$ac_objext 19203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19204 (eval $ac_compile) 2>conftest.er1 19205 ac_status=$? 19206 grep -v '^ *+' conftest.er1 >conftest.err 19207 rm -f conftest.er1 19208 cat conftest.err >&5 19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19210 (exit $ac_status); } && 19211 { ac_try='test -z "$ac_c_werror_flag" 19212 || test ! -s conftest.err' 19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19214 (eval $ac_try) 2>&5 19215 ac_status=$? 19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19217 (exit $ac_status); }; } && 19218 { ac_try='test -s conftest.$ac_objext' 19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19220 (eval $ac_try) 2>&5 19221 ac_status=$? 19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19223 (exit $ac_status); }; }; then 19224 ac_cv_prog_cc_stdc=$ac_arg 19225break 19226else 19227 echo "$as_me: failed program was:" >&5 19228sed 's/^/| /' conftest.$ac_ext >&5 19229 19230fi 19231rm -f conftest.err conftest.$ac_objext 19232done 19233rm -f conftest.$ac_ext conftest.$ac_objext 19234CC=$ac_save_CC 19235 19236fi 19237 19238case "x$ac_cv_prog_cc_stdc" in 19239 x|xno) 19240 echo "$as_me:$LINENO: result: none needed" >&5 19241echo "${ECHO_T}none needed" >&6 ;; 19242 *) 19243 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 19244echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 19245 CC="$CC $ac_cv_prog_cc_stdc" ;; 19246esac 19247 19248# Some people use a C++ compiler to compile C. Since we use `exit', 19249# in C++ we need to declare it. In case someone uses the same compiler 19250# for both compiling C and C++ we need to have the C++ compiler decide 19251# the declaration of exit, since it's the most demanding environment. 19252cat >conftest.$ac_ext <<_ACEOF 19253#ifndef __cplusplus 19254 choke me 19255#endif 19256_ACEOF 19257rm -f conftest.$ac_objext 19258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19259 (eval $ac_compile) 2>conftest.er1 19260 ac_status=$? 19261 grep -v '^ *+' conftest.er1 >conftest.err 19262 rm -f conftest.er1 19263 cat conftest.err >&5 19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19265 (exit $ac_status); } && 19266 { ac_try='test -z "$ac_c_werror_flag" 19267 || test ! -s conftest.err' 19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19269 (eval $ac_try) 2>&5 19270 ac_status=$? 19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19272 (exit $ac_status); }; } && 19273 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 19279 for ac_declaration in \ 19280 '' \ 19281 'extern "C" void std::exit (int) throw (); using std::exit;' \ 19282 'extern "C" void std::exit (int); using std::exit;' \ 19283 'extern "C" void exit (int) throw ();' \ 19284 'extern "C" void exit (int);' \ 19285 'void exit (int);' 19286do 19287 cat >conftest.$ac_ext <<_ACEOF 19288/* confdefs.h. */ 19289_ACEOF 19290cat confdefs.h >>conftest.$ac_ext 19291cat >>conftest.$ac_ext <<_ACEOF 19292/* end confdefs.h. */ 19293$ac_declaration 19294#include <stdlib.h> 19295int 19296main () 19297{ 19298exit (42); 19299 ; 19300 return 0; 19301} 19302_ACEOF 19303rm -f conftest.$ac_objext 19304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19305 (eval $ac_compile) 2>conftest.er1 19306 ac_status=$? 19307 grep -v '^ *+' conftest.er1 >conftest.err 19308 rm -f conftest.er1 19309 cat conftest.err >&5 19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19311 (exit $ac_status); } && 19312 { ac_try='test -z "$ac_c_werror_flag" 19313 || test ! -s conftest.err' 19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19315 (eval $ac_try) 2>&5 19316 ac_status=$? 19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19318 (exit $ac_status); }; } && 19319 { ac_try='test -s conftest.$ac_objext' 19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19321 (eval $ac_try) 2>&5 19322 ac_status=$? 19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19324 (exit $ac_status); }; }; then 19325 : 19326else 19327 echo "$as_me: failed program was:" >&5 19328sed 's/^/| /' conftest.$ac_ext >&5 19329 19330continue 19331fi 19332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19333 cat >conftest.$ac_ext <<_ACEOF 19334/* confdefs.h. */ 19335_ACEOF 19336cat confdefs.h >>conftest.$ac_ext 19337cat >>conftest.$ac_ext <<_ACEOF 19338/* end confdefs.h. */ 19339$ac_declaration 19340int 19341main () 19342{ 19343exit (42); 19344 ; 19345 return 0; 19346} 19347_ACEOF 19348rm -f conftest.$ac_objext 19349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19350 (eval $ac_compile) 2>conftest.er1 19351 ac_status=$? 19352 grep -v '^ *+' conftest.er1 >conftest.err 19353 rm -f conftest.er1 19354 cat conftest.err >&5 19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19356 (exit $ac_status); } && 19357 { ac_try='test -z "$ac_c_werror_flag" 19358 || test ! -s conftest.err' 19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19360 (eval $ac_try) 2>&5 19361 ac_status=$? 19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19363 (exit $ac_status); }; } && 19364 { ac_try='test -s conftest.$ac_objext' 19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19366 (eval $ac_try) 2>&5 19367 ac_status=$? 19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19369 (exit $ac_status); }; }; then 19370 break 19371else 19372 echo "$as_me: failed program was:" >&5 19373sed 's/^/| /' conftest.$ac_ext >&5 19374 19375fi 19376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19377done 19378rm -f conftest* 19379if test -n "$ac_declaration"; then 19380 echo '#ifdef __cplusplus' >>confdefs.h 19381 echo $ac_declaration >>confdefs.h 19382 echo '#endif' >>confdefs.h 19383fi 19384 19385else 19386 echo "$as_me: failed program was:" >&5 19387sed 's/^/| /' conftest.$ac_ext >&5 19388 19389fi 19390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19391ac_ext=c 19392ac_cpp='$CPP $CPPFLAGS' 19393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19395ac_compiler_gnu=$ac_cv_c_compiler_gnu 19396 19397depcc="$CC" am_compiler_list= 19398 19399echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19400echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 19401if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 19402 echo $ECHO_N "(cached) $ECHO_C" >&6 19403else 19404 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19405 # We make a subdir and do the tests there. Otherwise we can end up 19406 # making bogus files that we don't know about and never remove. For 19407 # instance it was reported that on HP-UX the gcc test will end up 19408 # making a dummy file named `D' -- because `-MD' means `put the output 19409 # in D'. 19410 mkdir conftest.dir 19411 # Copy depcomp to subdir because otherwise we won't find it if we're 19412 # using a relative directory. 19413 cp "$am_depcomp" conftest.dir 19414 cd conftest.dir 19415 # We will build objects and dependencies in a subdirectory because 19416 # it helps to detect inapplicable dependency modes. For instance 19417 # both Tru64's cc and ICC support -MD to output dependencies as a 19418 # side effect of compilation, but ICC will put the dependencies in 19419 # the current directory while Tru64 will put them in the object 19420 # directory. 19421 mkdir sub 19422 19423 am_cv_CC_dependencies_compiler_type=none 19424 if test "$am_compiler_list" = ""; then 19425 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19426 fi 19427 for depmode in $am_compiler_list; do 19428 # Setup a source with many dependencies, because some compilers 19429 # like to wrap large dependency lists on column 80 (with \), and 19430 # we should not choose a depcomp mode which is confused by this. 19431 # 19432 # We need to recreate these files for each test, as the compiler may 19433 # overwrite some of them when testing with obscure command lines. 19434 # This happens at least with the AIX C compiler. 19435 : > sub/conftest.c 19436 for i in 1 2 3 4 5 6; do 19437 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19438 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19439 # Solaris 8's {/usr,}/bin/sh. 19440 touch sub/conftst$i.h 19441 done 19442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19443 19444 case $depmode in 19445 nosideeffect) 19446 # after this tag, mechanisms are not by side-effect, so they'll 19447 # only be used when explicitly requested 19448 if test "x$enable_dependency_tracking" = xyes; then 19449 continue 19450 else 19451 break 19452 fi 19453 ;; 19454 none) break ;; 19455 esac 19456 # We check with `-c' and `-o' for the sake of the "dashmstdout" 19457 # mode. It turns out that the SunPro C++ compiler does not properly 19458 # handle `-M -o', and we need to detect this. 19459 if depmode=$depmode \ 19460 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 19461 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19462 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 19463 >/dev/null 2>conftest.err && 19464 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19465 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 19466 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19467 # icc doesn't choke on unknown options, it will just issue warnings 19468 # or remarks (even with -Werror). So we grep stderr for any message 19469 # that says an option was ignored or not supported. 19470 # When given -MP, icc 7.0 and 7.1 complain thusly: 19471 # icc: Command line warning: ignoring option '-M'; no argument required 19472 # The diagnosis changed in icc 8.0: 19473 # icc: Command line remark: option '-MP' not supported 19474 if (grep 'ignoring option' conftest.err || 19475 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19476 am_cv_CC_dependencies_compiler_type=$depmode 19477 break 19478 fi 19479 fi 19480 done 19481 19482 cd .. 19483 rm -rf conftest.dir 19484else 19485 am_cv_CC_dependencies_compiler_type=none 19486fi 19487 19488fi 19489echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 19490echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 19491CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 19492 19493 19494 19495if 19496 test "x$enable_dependency_tracking" != xno \ 19497 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 19498 am__fastdepCC_TRUE= 19499 am__fastdepCC_FALSE='#' 19500else 19501 am__fastdepCC_TRUE='#' 19502 am__fastdepCC_FALSE= 19503fi 19504 19505 19506 19507if test "x$GCC" = "xyes"; then 19508 CFLAGS="$CFLAGS -Wall -pedantic" 19509fi 19510 19511 19512 19513 19514 19515# Check whether --with-xorg-module-dir or --without-xorg-module-dir was given. 19516if test "${with_xorg_module_dir+set}" = set; then 19517 withval="$with_xorg_module_dir" 19518 moduledir="$withval" 19519else 19520 moduledir="$libdir/xorg/modules" 19521fi; 19522 19523# Checks for extensions 19524 19525 SAVE_CFLAGS="$CFLAGS" 19526 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 19527 cat >conftest.$ac_ext <<_ACEOF 19528/* confdefs.h. */ 19529_ACEOF 19530cat confdefs.h >>conftest.$ac_ext 19531cat >>conftest.$ac_ext <<_ACEOF 19532/* end confdefs.h. */ 19533 19534#include "xorg-server.h" 19535#if !defined RANDR 19536#error RANDR not defined 19537#endif 19538 19539int 19540main () 19541{ 19542 19543 ; 19544 return 0; 19545} 19546_ACEOF 19547rm -f conftest.$ac_objext 19548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19549 (eval $ac_compile) 2>conftest.er1 19550 ac_status=$? 19551 grep -v '^ *+' conftest.er1 >conftest.err 19552 rm -f conftest.er1 19553 cat conftest.err >&5 19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19555 (exit $ac_status); } && 19556 { ac_try='test -z "$ac_c_werror_flag" 19557 || test ! -s conftest.err' 19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19559 (eval $ac_try) 2>&5 19560 ac_status=$? 19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19562 (exit $ac_status); }; } && 19563 { ac_try='test -s conftest.$ac_objext' 19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19565 (eval $ac_try) 2>&5 19566 ac_status=$? 19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19568 (exit $ac_status); }; }; then 19569 _EXT_CHECK=yes 19570else 19571 echo "$as_me: failed program was:" >&5 19572sed 's/^/| /' conftest.$ac_ext >&5 19573 19574_EXT_CHECK=no 19575fi 19576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19577 CFLAGS="$SAVE_CFLAGS" 19578 echo "$as_me:$LINENO: checking if RANDR is defined" >&5 19579echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6 19580 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 19581echo "${ECHO_T}$_EXT_CHECK" >&6 19582 if test "$_EXT_CHECK" != no; then 19583 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19584 fi 19585 19586 19587 SAVE_CFLAGS="$CFLAGS" 19588 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 19589 cat >conftest.$ac_ext <<_ACEOF 19590/* confdefs.h. */ 19591_ACEOF 19592cat confdefs.h >>conftest.$ac_ext 19593cat >>conftest.$ac_ext <<_ACEOF 19594/* end confdefs.h. */ 19595 19596#include "xorg-server.h" 19597#if !defined RENDER 19598#error RENDER not defined 19599#endif 19600 19601int 19602main () 19603{ 19604 19605 ; 19606 return 0; 19607} 19608_ACEOF 19609rm -f conftest.$ac_objext 19610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19611 (eval $ac_compile) 2>conftest.er1 19612 ac_status=$? 19613 grep -v '^ *+' conftest.er1 >conftest.err 19614 rm -f conftest.er1 19615 cat conftest.err >&5 19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19617 (exit $ac_status); } && 19618 { ac_try='test -z "$ac_c_werror_flag" 19619 || test ! -s conftest.err' 19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19621 (eval $ac_try) 2>&5 19622 ac_status=$? 19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19624 (exit $ac_status); }; } && 19625 { ac_try='test -s conftest.$ac_objext' 19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19627 (eval $ac_try) 2>&5 19628 ac_status=$? 19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19630 (exit $ac_status); }; }; then 19631 _EXT_CHECK=yes 19632else 19633 echo "$as_me: failed program was:" >&5 19634sed 's/^/| /' conftest.$ac_ext >&5 19635 19636_EXT_CHECK=no 19637fi 19638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19639 CFLAGS="$SAVE_CFLAGS" 19640 echo "$as_me:$LINENO: checking if RENDER is defined" >&5 19641echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6 19642 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 19643echo "${ECHO_T}$_EXT_CHECK" >&6 19644 if test "$_EXT_CHECK" != no; then 19645 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19646 fi 19647 19648 19649 SAVE_CFLAGS="$CFLAGS" 19650 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 19651 cat >conftest.$ac_ext <<_ACEOF 19652/* confdefs.h. */ 19653_ACEOF 19654cat confdefs.h >>conftest.$ac_ext 19655cat >>conftest.$ac_ext <<_ACEOF 19656/* end confdefs.h. */ 19657 19658#include "xorg-server.h" 19659#if !defined XV 19660#error XV not defined 19661#endif 19662 19663int 19664main () 19665{ 19666 19667 ; 19668 return 0; 19669} 19670_ACEOF 19671rm -f conftest.$ac_objext 19672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19673 (eval $ac_compile) 2>conftest.er1 19674 ac_status=$? 19675 grep -v '^ *+' conftest.er1 >conftest.err 19676 rm -f conftest.er1 19677 cat conftest.err >&5 19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19679 (exit $ac_status); } && 19680 { ac_try='test -z "$ac_c_werror_flag" 19681 || test ! -s conftest.err' 19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19683 (eval $ac_try) 2>&5 19684 ac_status=$? 19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19686 (exit $ac_status); }; } && 19687 { ac_try='test -s conftest.$ac_objext' 19688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19689 (eval $ac_try) 2>&5 19690 ac_status=$? 19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19692 (exit $ac_status); }; }; then 19693 _EXT_CHECK=yes 19694else 19695 echo "$as_me: failed program was:" >&5 19696sed 's/^/| /' conftest.$ac_ext >&5 19697 19698_EXT_CHECK=no 19699fi 19700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19701 CFLAGS="$SAVE_CFLAGS" 19702 echo "$as_me:$LINENO: checking if XV is defined" >&5 19703echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6 19704 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 19705echo "${ECHO_T}$_EXT_CHECK" >&6 19706 if test "$_EXT_CHECK" != no; then 19707 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19708 fi 19709 19710 19711 SAVE_CFLAGS="$CFLAGS" 19712 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 19713 cat >conftest.$ac_ext <<_ACEOF 19714/* confdefs.h. */ 19715_ACEOF 19716cat confdefs.h >>conftest.$ac_ext 19717cat >>conftest.$ac_ext <<_ACEOF 19718/* end confdefs.h. */ 19719 19720#include "xorg-server.h" 19721#if !defined DPMSExtension 19722#error DPMSExtension not defined 19723#endif 19724 19725int 19726main () 19727{ 19728 19729 ; 19730 return 0; 19731} 19732_ACEOF 19733rm -f conftest.$ac_objext 19734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19735 (eval $ac_compile) 2>conftest.er1 19736 ac_status=$? 19737 grep -v '^ *+' conftest.er1 >conftest.err 19738 rm -f conftest.er1 19739 cat conftest.err >&5 19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19741 (exit $ac_status); } && 19742 { ac_try='test -z "$ac_c_werror_flag" 19743 || test ! -s conftest.err' 19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19745 (eval $ac_try) 2>&5 19746 ac_status=$? 19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19748 (exit $ac_status); }; } && 19749 { ac_try='test -s conftest.$ac_objext' 19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19751 (eval $ac_try) 2>&5 19752 ac_status=$? 19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19754 (exit $ac_status); }; }; then 19755 _EXT_CHECK=yes 19756else 19757 echo "$as_me: failed program was:" >&5 19758sed 's/^/| /' conftest.$ac_ext >&5 19759 19760_EXT_CHECK=no 19761fi 19762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19763 CFLAGS="$SAVE_CFLAGS" 19764 echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 19765echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6 19766 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 19767echo "${ECHO_T}$_EXT_CHECK" >&6 19768 if test "$_EXT_CHECK" != no; then 19769 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19770 fi 19771 19772 19773# Checks for pkg-config packages 19774 19775 19776if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19777 if test -n "$ac_tool_prefix"; then 19778 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19779set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19780echo "$as_me:$LINENO: checking for $ac_word" >&5 19781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19782if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19783 echo $ECHO_N "(cached) $ECHO_C" >&6 19784else 19785 case $PKG_CONFIG in 19786 [\\/]* | ?:[\\/]*) 19787 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19788 ;; 19789 *) 19790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19791for as_dir in $PATH 19792do 19793 IFS=$as_save_IFS 19794 test -z "$as_dir" && as_dir=. 19795 for ac_exec_ext in '' $ac_executable_extensions; do 19796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19797 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19799 break 2 19800 fi 19801done 19802done 19803 19804 ;; 19805esac 19806fi 19807PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19808 19809if test -n "$PKG_CONFIG"; then 19810 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19811echo "${ECHO_T}$PKG_CONFIG" >&6 19812else 19813 echo "$as_me:$LINENO: result: no" >&5 19814echo "${ECHO_T}no" >&6 19815fi 19816 19817fi 19818if test -z "$ac_cv_path_PKG_CONFIG"; then 19819 ac_pt_PKG_CONFIG=$PKG_CONFIG 19820 # Extract the first word of "pkg-config", so it can be a program name with args. 19821set dummy pkg-config; ac_word=$2 19822echo "$as_me:$LINENO: checking for $ac_word" >&5 19823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19824if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19825 echo $ECHO_N "(cached) $ECHO_C" >&6 19826else 19827 case $ac_pt_PKG_CONFIG in 19828 [\\/]* | ?:[\\/]*) 19829 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19830 ;; 19831 *) 19832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19833for as_dir in $PATH 19834do 19835 IFS=$as_save_IFS 19836 test -z "$as_dir" && as_dir=. 19837 for ac_exec_ext in '' $ac_executable_extensions; do 19838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19839 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19841 break 2 19842 fi 19843done 19844done 19845 19846 ;; 19847esac 19848fi 19849ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19850 19851if test -n "$ac_pt_PKG_CONFIG"; then 19852 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19853echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 19854else 19855 echo "$as_me:$LINENO: result: no" >&5 19856echo "${ECHO_T}no" >&6 19857fi 19858 19859 PKG_CONFIG=$ac_pt_PKG_CONFIG 19860else 19861 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19862fi 19863 19864fi 19865if test -n "$PKG_CONFIG"; then 19866 _pkg_min_version=0.9.0 19867 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19868echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 19869 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19870 echo "$as_me:$LINENO: result: yes" >&5 19871echo "${ECHO_T}yes" >&6 19872 else 19873 echo "$as_me:$LINENO: result: no" >&5 19874echo "${ECHO_T}no" >&6 19875 PKG_CONFIG="" 19876 fi 19877 19878fi 19879 19880pkg_failed=no 19881echo "$as_me:$LINENO: checking for XORG" >&5 19882echo $ECHO_N "checking for XORG... $ECHO_C" >&6 19883 19884if test -n "$PKG_CONFIG"; then 19885 if test -n "$XORG_CFLAGS"; then 19886 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19887 else 19888 if test -n "$PKG_CONFIG" && \ 19889 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 19890 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19891 ac_status=$? 19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19893 (exit $ac_status); }; then 19894 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19895else 19896 pkg_failed=yes 19897fi 19898 fi 19899else 19900 pkg_failed=untried 19901fi 19902if test -n "$PKG_CONFIG"; then 19903 if test -n "$XORG_LIBS"; then 19904 pkg_cv_XORG_LIBS="$XORG_LIBS" 19905 else 19906 if test -n "$PKG_CONFIG" && \ 19907 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 19908 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19909 ac_status=$? 19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19911 (exit $ac_status); }; then 19912 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19913else 19914 pkg_failed=yes 19915fi 19916 fi 19917else 19918 pkg_failed=untried 19919fi 19920 19921 19922 19923if test $pkg_failed = yes; then 19924 19925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19926 _pkg_short_errors_supported=yes 19927else 19928 _pkg_short_errors_supported=no 19929fi 19930 if test $_pkg_short_errors_supported = yes; then 19931 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"` 19932 else 19933 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"` 19934 fi 19935 # Put the nasty error message in config.log where it belongs 19936 echo "$XORG_PKG_ERRORS" >&5 19937 19938 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 19939 19940$XORG_PKG_ERRORS 19941 19942Consider adjusting the PKG_CONFIG_PATH environment variable if you 19943installed software in a non-standard prefix. 19944 19945Alternatively, you may set the environment variables XORG_CFLAGS 19946and XORG_LIBS to avoid the need to call pkg-config. 19947See the pkg-config man page for more details. 19948" >&5 19949echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 19950 19951$XORG_PKG_ERRORS 19952 19953Consider adjusting the PKG_CONFIG_PATH environment variable if you 19954installed software in a non-standard prefix. 19955 19956Alternatively, you may set the environment variables XORG_CFLAGS 19957and XORG_LIBS to avoid the need to call pkg-config. 19958See the pkg-config man page for more details. 19959" >&2;} 19960 { (exit 1); exit 1; }; } 19961elif test $pkg_failed = untried; then 19962 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 19963is in your PATH or set the PKG_CONFIG environment variable to the full 19964path to pkg-config. 19965 19966Alternatively, you may set the environment variables XORG_CFLAGS 19967and XORG_LIBS to avoid the need to call pkg-config. 19968See the pkg-config man page for more details. 19969 19970To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19971See \`config.log' for more details." >&5 19972echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 19973is in your PATH or set the PKG_CONFIG environment variable to the full 19974path to pkg-config. 19975 19976Alternatively, you may set the environment variables XORG_CFLAGS 19977and XORG_LIBS to avoid the need to call pkg-config. 19978See the pkg-config man page for more details. 19979 19980To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19981See \`config.log' for more details." >&2;} 19982 { (exit 1); exit 1; }; } 19983else 19984 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19985 XORG_LIBS=$pkg_cv_XORG_LIBS 19986 echo "$as_me:$LINENO: result: yes" >&5 19987echo "${ECHO_T}yes" >&6 19988 : 19989fi 19990sdkdir=$(pkg-config --variable=sdkdir xorg-server) 19991 19992# Checks for libraries. 19993 19994# Checks for header files. 19995echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19996echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 19997if test "${ac_cv_header_stdc+set}" = set; then 19998 echo $ECHO_N "(cached) $ECHO_C" >&6 19999else 20000 cat >conftest.$ac_ext <<_ACEOF 20001/* confdefs.h. */ 20002_ACEOF 20003cat confdefs.h >>conftest.$ac_ext 20004cat >>conftest.$ac_ext <<_ACEOF 20005/* end confdefs.h. */ 20006#include <stdlib.h> 20007#include <stdarg.h> 20008#include <string.h> 20009#include <float.h> 20010 20011int 20012main () 20013{ 20014 20015 ; 20016 return 0; 20017} 20018_ACEOF 20019rm -f conftest.$ac_objext 20020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20021 (eval $ac_compile) 2>conftest.er1 20022 ac_status=$? 20023 grep -v '^ *+' conftest.er1 >conftest.err 20024 rm -f conftest.er1 20025 cat conftest.err >&5 20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20027 (exit $ac_status); } && 20028 { ac_try='test -z "$ac_c_werror_flag" 20029 || test ! -s conftest.err' 20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20031 (eval $ac_try) 2>&5 20032 ac_status=$? 20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20034 (exit $ac_status); }; } && 20035 { ac_try='test -s conftest.$ac_objext' 20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20037 (eval $ac_try) 2>&5 20038 ac_status=$? 20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20040 (exit $ac_status); }; }; then 20041 ac_cv_header_stdc=yes 20042else 20043 echo "$as_me: failed program was:" >&5 20044sed 's/^/| /' conftest.$ac_ext >&5 20045 20046ac_cv_header_stdc=no 20047fi 20048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20049 20050if test $ac_cv_header_stdc = yes; then 20051 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20052 cat >conftest.$ac_ext <<_ACEOF 20053/* confdefs.h. */ 20054_ACEOF 20055cat confdefs.h >>conftest.$ac_ext 20056cat >>conftest.$ac_ext <<_ACEOF 20057/* end confdefs.h. */ 20058#include <string.h> 20059 20060_ACEOF 20061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20062 $EGREP "memchr" >/dev/null 2>&1; then 20063 : 20064else 20065 ac_cv_header_stdc=no 20066fi 20067rm -f conftest* 20068 20069fi 20070 20071if test $ac_cv_header_stdc = yes; then 20072 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20073 cat >conftest.$ac_ext <<_ACEOF 20074/* confdefs.h. */ 20075_ACEOF 20076cat confdefs.h >>conftest.$ac_ext 20077cat >>conftest.$ac_ext <<_ACEOF 20078/* end confdefs.h. */ 20079#include <stdlib.h> 20080 20081_ACEOF 20082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20083 $EGREP "free" >/dev/null 2>&1; then 20084 : 20085else 20086 ac_cv_header_stdc=no 20087fi 20088rm -f conftest* 20089 20090fi 20091 20092if test $ac_cv_header_stdc = yes; then 20093 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20094 if test "$cross_compiling" = yes; then 20095 : 20096else 20097 cat >conftest.$ac_ext <<_ACEOF 20098/* confdefs.h. */ 20099_ACEOF 20100cat confdefs.h >>conftest.$ac_ext 20101cat >>conftest.$ac_ext <<_ACEOF 20102/* end confdefs.h. */ 20103#include <ctype.h> 20104#if ((' ' & 0x0FF) == 0x020) 20105# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20106# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20107#else 20108# define ISLOWER(c) \ 20109 (('a' <= (c) && (c) <= 'i') \ 20110 || ('j' <= (c) && (c) <= 'r') \ 20111 || ('s' <= (c) && (c) <= 'z')) 20112# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20113#endif 20114 20115#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20116int 20117main () 20118{ 20119 int i; 20120 for (i = 0; i < 256; i++) 20121 if (XOR (islower (i), ISLOWER (i)) 20122 || toupper (i) != TOUPPER (i)) 20123 exit(2); 20124 exit (0); 20125} 20126_ACEOF 20127rm -f conftest$ac_exeext 20128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20129 (eval $ac_link) 2>&5 20130 ac_status=$? 20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20134 (eval $ac_try) 2>&5 20135 ac_status=$? 20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20137 (exit $ac_status); }; }; then 20138 : 20139else 20140 echo "$as_me: program exited with status $ac_status" >&5 20141echo "$as_me: failed program was:" >&5 20142sed 's/^/| /' conftest.$ac_ext >&5 20143 20144( exit $ac_status ) 20145ac_cv_header_stdc=no 20146fi 20147rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20148fi 20149fi 20150fi 20151echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20152echo "${ECHO_T}$ac_cv_header_stdc" >&6 20153if test $ac_cv_header_stdc = yes; then 20154 20155cat >>confdefs.h <<\_ACEOF 20156#define STDC_HEADERS 1 20157_ACEOF 20158 20159fi 20160 20161 20162 20163 20164 20165DRIVER_NAME=tseng 20166 20167 20168 20169 20170 20171if test x$APP_MAN_SUFFIX = x ; then 20172 APP_MAN_SUFFIX=1 20173fi 20174if test x$APP_MAN_DIR = x ; then 20175 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20176fi 20177 20178if test x$LIB_MAN_SUFFIX = x ; then 20179 LIB_MAN_SUFFIX=3 20180fi 20181if test x$LIB_MAN_DIR = x ; then 20182 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20183fi 20184 20185if test x$FILE_MAN_SUFFIX = x ; then 20186 case $host_os in 20187 solaris*) FILE_MAN_SUFFIX=4 ;; 20188 *) FILE_MAN_SUFFIX=5 ;; 20189 esac 20190fi 20191if test x$FILE_MAN_DIR = x ; then 20192 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20193fi 20194 20195if test x$MISC_MAN_SUFFIX = x ; then 20196 case $host_os in 20197 solaris*) MISC_MAN_SUFFIX=5 ;; 20198 *) MISC_MAN_SUFFIX=7 ;; 20199 esac 20200fi 20201if test x$MISC_MAN_DIR = x ; then 20202 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20203fi 20204 20205if test x$DRIVER_MAN_SUFFIX = x ; then 20206 case $host_os in 20207 solaris*) DRIVER_MAN_SUFFIX=7 ;; 20208 *) DRIVER_MAN_SUFFIX=4 ;; 20209 esac 20210fi 20211if test x$DRIVER_MAN_DIR = x ; then 20212 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20213fi 20214 20215if test x$ADMIN_MAN_SUFFIX = x ; then 20216 case $host_os in 20217 solaris*) ADMIN_MAN_SUFFIX=1m ;; 20218 *) ADMIN_MAN_SUFFIX=8 ;; 20219 esac 20220fi 20221if test x$ADMIN_MAN_DIR = x ; then 20222 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20223fi 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241# Check whether --with-release-version or --without-release-version was given. 20242if test "${with_release_version+set}" = set; then 20243 withval="$with_release_version" 20244 RELEASE_VERSION="$withval" 20245else 20246 RELEASE_VERSION="" 20247fi; 20248 if test "x$RELEASE_VERSION" != "x"; then 20249 PACKAGE="$PACKAGE-$RELEASE_VERSION" 20250 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 20251 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 20252echo "$as_me: Building with package name set to $PACKAGE" >&6;} 20253 fi 20254 20255 20256 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 20257cat >confcache <<\_ACEOF 20258# This file is a shell script that caches the results of configure 20259# tests run on this system so they can be shared between configure 20260# scripts and configure runs, see configure's option --config-cache. 20261# It is not useful on other systems. If it contains results you don't 20262# want to keep, you may remove or edit it. 20263# 20264# config.status only pays attention to the cache file if you give it 20265# the --recheck option to rerun configure. 20266# 20267# `ac_cv_env_foo' variables (set or unset) will be overridden when 20268# loading this file, other *unset* `ac_cv_foo' will be assigned the 20269# following values. 20270 20271_ACEOF 20272 20273# The following way of writing the cache mishandles newlines in values, 20274# but we know of no workaround that is simple, portable, and efficient. 20275# So, don't put newlines in cache variables' values. 20276# Ultrix sh set writes to stderr and can't be redirected directly, 20277# and sets the high bit in the cache file unless we assign to the vars. 20278{ 20279 (set) 2>&1 | 20280 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20281 *ac_space=\ *) 20282 # `set' does not quote correctly, so add quotes (double-quote 20283 # substitution turns \\\\ into \\, and sed turns \\ into \). 20284 sed -n \ 20285 "s/'/'\\\\''/g; 20286 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20287 ;; 20288 *) 20289 # `set' quotes correctly as required by POSIX, so do not add quotes. 20290 sed -n \ 20291 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20292 ;; 20293 esac; 20294} | 20295 sed ' 20296 t clear 20297 : clear 20298 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20299 t end 20300 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20301 : end' >>confcache 20302if diff $cache_file confcache >/dev/null 2>&1; then :; else 20303 if test -w $cache_file; then 20304 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20305 cat confcache >$cache_file 20306 else 20307 echo "not updating unwritable cache $cache_file" 20308 fi 20309fi 20310rm -f confcache 20311 20312test "x$prefix" = xNONE && prefix=$ac_default_prefix 20313# Let make expand exec_prefix. 20314test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20315 20316# VPATH may cause trouble with some makes, so we remove $(srcdir), 20317# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20318# trailing colons and then remove the whole line if VPATH becomes empty 20319# (actually we leave an empty line to preserve line numbers). 20320if test "x$srcdir" = x.; then 20321 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20322s/:*\$(srcdir):*/:/; 20323s/:*\${srcdir}:*/:/; 20324s/:*@srcdir@:*/:/; 20325s/^\([^=]*=[ ]*\):*/\1/; 20326s/:*$//; 20327s/^[^=]*=[ ]*$//; 20328}' 20329fi 20330 20331DEFS=-DHAVE_CONFIG_H 20332 20333ac_libobjs= 20334ac_ltlibobjs= 20335for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20336 # 1. Remove the extension, and $U if already installed. 20337 ac_i=`echo "$ac_i" | 20338 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20339 # 2. Add them. 20340 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20341 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20342done 20343LIBOBJS=$ac_libobjs 20344 20345LTLIBOBJS=$ac_ltlibobjs 20346 20347 20348if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20349 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 20350Usually this means the macro was only invoked conditionally." >&5 20351echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 20352Usually this means the macro was only invoked conditionally." >&2;} 20353 { (exit 1); exit 1; }; } 20354fi 20355if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20356 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20357Usually this means the macro was only invoked conditionally." >&5 20358echo "$as_me: error: conditional \"AMDEP\" was never defined. 20359Usually this means the macro was only invoked conditionally." >&2;} 20360 { (exit 1); exit 1; }; } 20361fi 20362if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20363 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20364Usually this means the macro was only invoked conditionally." >&5 20365echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20366Usually this means the macro was only invoked conditionally." >&2;} 20367 { (exit 1); exit 1; }; } 20368fi 20369if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20370 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20371Usually this means the macro was only invoked conditionally." >&5 20372echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20373Usually this means the macro was only invoked conditionally." >&2;} 20374 { (exit 1); exit 1; }; } 20375fi 20376if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20377 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20378Usually this means the macro was only invoked conditionally." >&5 20379echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20380Usually this means the macro was only invoked conditionally." >&2;} 20381 { (exit 1); exit 1; }; } 20382fi 20383 20384: ${CONFIG_STATUS=./config.status} 20385ac_clean_files_save=$ac_clean_files 20386ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20387{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20388echo "$as_me: creating $CONFIG_STATUS" >&6;} 20389cat >$CONFIG_STATUS <<_ACEOF 20390#! $SHELL 20391# Generated by $as_me. 20392# Run this file to recreate the current configuration. 20393# Compiler output produced by configure, useful for debugging 20394# configure, is in config.log if it exists. 20395 20396debug=false 20397ac_cs_recheck=false 20398ac_cs_silent=false 20399SHELL=\${CONFIG_SHELL-$SHELL} 20400_ACEOF 20401 20402cat >>$CONFIG_STATUS <<\_ACEOF 20403## --------------------- ## 20404## M4sh Initialization. ## 20405## --------------------- ## 20406 20407# Be Bourne compatible 20408if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20409 emulate sh 20410 NULLCMD=: 20411 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20412 # is contrary to our usage. Disable this feature. 20413 alias -g '${1+"$@"}'='"$@"' 20414elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20415 set -o posix 20416fi 20417DUALCASE=1; export DUALCASE # for MKS sh 20418 20419# Support unset when possible. 20420if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20421 as_unset=unset 20422else 20423 as_unset=false 20424fi 20425 20426 20427# Work around bugs in pre-3.0 UWIN ksh. 20428$as_unset ENV MAIL MAILPATH 20429PS1='$ ' 20430PS2='> ' 20431PS4='+ ' 20432 20433# NLS nuisances. 20434for as_var in \ 20435 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20436 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20437 LC_TELEPHONE LC_TIME 20438do 20439 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20440 eval $as_var=C; export $as_var 20441 else 20442 $as_unset $as_var 20443 fi 20444done 20445 20446# Required to use basename. 20447if expr a : '\(a\)' >/dev/null 2>&1; then 20448 as_expr=expr 20449else 20450 as_expr=false 20451fi 20452 20453if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 20454 as_basename=basename 20455else 20456 as_basename=false 20457fi 20458 20459 20460# Name of the executable. 20461as_me=`$as_basename "$0" || 20462$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20463 X"$0" : 'X\(//\)$' \| \ 20464 X"$0" : 'X\(/\)$' \| \ 20465 . : '\(.\)' 2>/dev/null || 20466echo X/"$0" | 20467 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20468 /^X\/\(\/\/\)$/{ s//\1/; q; } 20469 /^X\/\(\/\).*/{ s//\1/; q; } 20470 s/.*/./; q'` 20471 20472 20473# PATH needs CR, and LINENO needs CR and PATH. 20474# Avoid depending upon Character Ranges. 20475as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20476as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20477as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20478as_cr_digits='0123456789' 20479as_cr_alnum=$as_cr_Letters$as_cr_digits 20480 20481# The user is always right. 20482if test "${PATH_SEPARATOR+set}" != set; then 20483 echo "#! /bin/sh" >conf$$.sh 20484 echo "exit 0" >>conf$$.sh 20485 chmod +x conf$$.sh 20486 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20487 PATH_SEPARATOR=';' 20488 else 20489 PATH_SEPARATOR=: 20490 fi 20491 rm -f conf$$.sh 20492fi 20493 20494 20495 as_lineno_1=$LINENO 20496 as_lineno_2=$LINENO 20497 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20498 test "x$as_lineno_1" != "x$as_lineno_2" && 20499 test "x$as_lineno_3" = "x$as_lineno_2" || { 20500 # Find who we are. Look in the path if we contain no path at all 20501 # relative or not. 20502 case $0 in 20503 *[\\/]* ) as_myself=$0 ;; 20504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20505for as_dir in $PATH 20506do 20507 IFS=$as_save_IFS 20508 test -z "$as_dir" && as_dir=. 20509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20510done 20511 20512 ;; 20513 esac 20514 # We did not find ourselves, most probably we were run as `sh COMMAND' 20515 # in which case we are not to be found in the path. 20516 if test "x$as_myself" = x; then 20517 as_myself=$0 20518 fi 20519 if test ! -f "$as_myself"; then 20520 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 20521echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 20522 { (exit 1); exit 1; }; } 20523 fi 20524 case $CONFIG_SHELL in 20525 '') 20526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20527for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20528do 20529 IFS=$as_save_IFS 20530 test -z "$as_dir" && as_dir=. 20531 for as_base in sh bash ksh sh5; do 20532 case $as_dir in 20533 /*) 20534 if ("$as_dir/$as_base" -c ' 20535 as_lineno_1=$LINENO 20536 as_lineno_2=$LINENO 20537 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20538 test "x$as_lineno_1" != "x$as_lineno_2" && 20539 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 20540 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 20541 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 20542 CONFIG_SHELL=$as_dir/$as_base 20543 export CONFIG_SHELL 20544 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20545 fi;; 20546 esac 20547 done 20548done 20549;; 20550 esac 20551 20552 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20553 # uniformly replaced by the line number. The first 'sed' inserts a 20554 # line-number line before each line; the second 'sed' does the real 20555 # work. The second script uses 'N' to pair each line-number line 20556 # with the numbered line, and appends trailing '-' during 20557 # substitution so that $LINENO is not a special case at line end. 20558 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20559 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 20560 sed '=' <$as_myself | 20561 sed ' 20562 N 20563 s,$,-, 20564 : loop 20565 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 20566 t loop 20567 s,-$,, 20568 s,^['$as_cr_digits']*\n,, 20569 ' >$as_me.lineno && 20570 chmod +x $as_me.lineno || 20571 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 20572echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 20573 { (exit 1); exit 1; }; } 20574 20575 # Don't try to exec as it changes $[0], causing all sort of problems 20576 # (the dirname of $[0] is not the place where we might find the 20577 # original and so on. Autoconf is especially sensible to this). 20578 . ./$as_me.lineno 20579 # Exit status is that of the last command. 20580 exit 20581} 20582 20583 20584case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 20585 *c*,-n*) ECHO_N= ECHO_C=' 20586' ECHO_T=' ' ;; 20587 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 20588 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 20589esac 20590 20591if expr a : '\(a\)' >/dev/null 2>&1; then 20592 as_expr=expr 20593else 20594 as_expr=false 20595fi 20596 20597rm -f conf$$ conf$$.exe conf$$.file 20598echo >conf$$.file 20599if ln -s conf$$.file conf$$ 2>/dev/null; then 20600 # We could just check for DJGPP; but this test a) works b) is more generic 20601 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 20602 if test -f conf$$.exe; then 20603 # Don't use ln at all; we don't have any links 20604 as_ln_s='cp -p' 20605 else 20606 as_ln_s='ln -s' 20607 fi 20608elif ln conf$$.file conf$$ 2>/dev/null; then 20609 as_ln_s=ln 20610else 20611 as_ln_s='cp -p' 20612fi 20613rm -f conf$$ conf$$.exe conf$$.file 20614 20615if mkdir -p . 2>/dev/null; then 20616 as_mkdir_p=: 20617else 20618 test -d ./-p && rmdir ./-p 20619 as_mkdir_p=false 20620fi 20621 20622as_executable_p="test -f" 20623 20624# Sed expression to map a string onto a valid CPP name. 20625as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20626 20627# Sed expression to map a string onto a valid variable name. 20628as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20629 20630 20631# IFS 20632# We need space, tab and new line, in precisely that order. 20633as_nl=' 20634' 20635IFS=" $as_nl" 20636 20637# CDPATH. 20638$as_unset CDPATH 20639 20640exec 6>&1 20641 20642# Open the log real soon, to keep \$[0] and so on meaningful, and to 20643# report actual input values of CONFIG_FILES etc. instead of their 20644# values after options handling. Logging --version etc. is OK. 20645exec 5>>config.log 20646{ 20647 echo 20648 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20649## Running $as_me. ## 20650_ASBOX 20651} >&5 20652cat >&5 <<_CSEOF 20653 20654This file was extended by xf86-video-tseng $as_me 1.1.1, which was 20655generated by GNU Autoconf 2.59. Invocation command line was 20656 20657 CONFIG_FILES = $CONFIG_FILES 20658 CONFIG_HEADERS = $CONFIG_HEADERS 20659 CONFIG_LINKS = $CONFIG_LINKS 20660 CONFIG_COMMANDS = $CONFIG_COMMANDS 20661 $ $0 $@ 20662 20663_CSEOF 20664echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 20665echo >&5 20666_ACEOF 20667 20668# Files that config.status was made for. 20669if test -n "$ac_config_files"; then 20670 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 20671fi 20672 20673if test -n "$ac_config_headers"; then 20674 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 20675fi 20676 20677if test -n "$ac_config_links"; then 20678 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 20679fi 20680 20681if test -n "$ac_config_commands"; then 20682 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 20683fi 20684 20685cat >>$CONFIG_STATUS <<\_ACEOF 20686 20687ac_cs_usage="\ 20688\`$as_me' instantiates files from templates according to the 20689current configuration. 20690 20691Usage: $0 [OPTIONS] [FILE]... 20692 20693 -h, --help print this help, then exit 20694 -V, --version print version number, then exit 20695 -q, --quiet do not print progress messages 20696 -d, --debug don't remove temporary files 20697 --recheck update $as_me by reconfiguring in the same conditions 20698 --file=FILE[:TEMPLATE] 20699 instantiate the configuration file FILE 20700 --header=FILE[:TEMPLATE] 20701 instantiate the configuration header FILE 20702 20703Configuration files: 20704$config_files 20705 20706Configuration headers: 20707$config_headers 20708 20709Configuration commands: 20710$config_commands 20711 20712Report bugs to <bug-autoconf@gnu.org>." 20713_ACEOF 20714 20715cat >>$CONFIG_STATUS <<_ACEOF 20716ac_cs_version="\\ 20717xf86-video-tseng config.status 1.1.1 20718configured by $0, generated by GNU Autoconf 2.59, 20719 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 20720 20721Copyright (C) 2003 Free Software Foundation, Inc. 20722This config.status script is free software; the Free Software Foundation 20723gives unlimited permission to copy, distribute and modify it." 20724srcdir=$srcdir 20725INSTALL="$INSTALL" 20726_ACEOF 20727 20728cat >>$CONFIG_STATUS <<\_ACEOF 20729# If no file are specified by the user, then we need to provide default 20730# value. By we need to know if files were specified by the user. 20731ac_need_defaults=: 20732while test $# != 0 20733do 20734 case $1 in 20735 --*=*) 20736 ac_option=`expr "x$1" : 'x\([^=]*\)='` 20737 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 20738 ac_shift=: 20739 ;; 20740 -*) 20741 ac_option=$1 20742 ac_optarg=$2 20743 ac_shift=shift 20744 ;; 20745 *) # This is not an option, so the user has probably given explicit 20746 # arguments. 20747 ac_option=$1 20748 ac_need_defaults=false;; 20749 esac 20750 20751 case $ac_option in 20752 # Handling of the options. 20753_ACEOF 20754cat >>$CONFIG_STATUS <<\_ACEOF 20755 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20756 ac_cs_recheck=: ;; 20757 --version | --vers* | -V ) 20758 echo "$ac_cs_version"; exit 0 ;; 20759 --he | --h) 20760 # Conflict between --help and --header 20761 { { echo "$as_me:$LINENO: error: ambiguous option: $1 20762Try \`$0 --help' for more information." >&5 20763echo "$as_me: error: ambiguous option: $1 20764Try \`$0 --help' for more information." >&2;} 20765 { (exit 1); exit 1; }; };; 20766 --help | --hel | -h ) 20767 echo "$ac_cs_usage"; exit 0 ;; 20768 --debug | --d* | -d ) 20769 debug=: ;; 20770 --file | --fil | --fi | --f ) 20771 $ac_shift 20772 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20773 ac_need_defaults=false;; 20774 --header | --heade | --head | --hea ) 20775 $ac_shift 20776 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20777 ac_need_defaults=false;; 20778 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20779 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20780 ac_cs_silent=: ;; 20781 20782 # This is an error. 20783 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 20784Try \`$0 --help' for more information." >&5 20785echo "$as_me: error: unrecognized option: $1 20786Try \`$0 --help' for more information." >&2;} 20787 { (exit 1); exit 1; }; } ;; 20788 20789 *) ac_config_targets="$ac_config_targets $1" ;; 20790 20791 esac 20792 shift 20793done 20794 20795ac_configure_extra_args= 20796 20797if $ac_cs_silent; then 20798 exec 6>/dev/null 20799 ac_configure_extra_args="$ac_configure_extra_args --silent" 20800fi 20801 20802_ACEOF 20803cat >>$CONFIG_STATUS <<_ACEOF 20804if \$ac_cs_recheck; then 20805 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20806 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20807fi 20808 20809_ACEOF 20810 20811cat >>$CONFIG_STATUS <<_ACEOF 20812# 20813# INIT-COMMANDS section. 20814# 20815 20816AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20817 20818_ACEOF 20819 20820 20821 20822cat >>$CONFIG_STATUS <<\_ACEOF 20823for ac_config_target in $ac_config_targets 20824do 20825 case "$ac_config_target" in 20826 # Handling of arguments. 20827 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20828 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20829 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20830 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20831 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20832 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20833echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20834 { (exit 1); exit 1; }; };; 20835 esac 20836done 20837 20838# If the user did not use the arguments to specify the items to instantiate, 20839# then the envvar interface is used. Set only those that are not. 20840# We use the long form for the default assignment because of an extremely 20841# bizarre bug on SunOS 4.1.3. 20842if $ac_need_defaults; then 20843 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20844 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20845 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20846fi 20847 20848# Have a temporary directory for convenience. Make it in the build tree 20849# simply because there is no reason to put it here, and in addition, 20850# creating and moving files from /tmp can sometimes cause problems. 20851# Create a temporary directory, and hook for its removal unless debugging. 20852$debug || 20853{ 20854 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20855 trap '{ (exit 1); exit 1; }' 1 2 13 15 20856} 20857 20858# Create a (secure) tmp directory for tmp files. 20859 20860{ 20861 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 20862 test -n "$tmp" && test -d "$tmp" 20863} || 20864{ 20865 tmp=./confstat$$-$RANDOM 20866 (umask 077 && mkdir $tmp) 20867} || 20868{ 20869 echo "$me: cannot create a temporary directory in ." >&2 20870 { (exit 1); exit 1; } 20871} 20872 20873_ACEOF 20874 20875cat >>$CONFIG_STATUS <<_ACEOF 20876 20877# 20878# CONFIG_FILES section. 20879# 20880 20881# No need to generate the scripts if there are no CONFIG_FILES. 20882# This happens for instance when ./config.status config.h 20883if test -n "\$CONFIG_FILES"; then 20884 # Protect against being on the right side of a sed subst in config.status. 20885 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20886 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20887s,@SHELL@,$SHELL,;t t 20888s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 20889s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 20890s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 20891s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 20892s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 20893s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 20894s,@exec_prefix@,$exec_prefix,;t t 20895s,@prefix@,$prefix,;t t 20896s,@program_transform_name@,$program_transform_name,;t t 20897s,@bindir@,$bindir,;t t 20898s,@sbindir@,$sbindir,;t t 20899s,@libexecdir@,$libexecdir,;t t 20900s,@datadir@,$datadir,;t t 20901s,@sysconfdir@,$sysconfdir,;t t 20902s,@sharedstatedir@,$sharedstatedir,;t t 20903s,@localstatedir@,$localstatedir,;t t 20904s,@libdir@,$libdir,;t t 20905s,@includedir@,$includedir,;t t 20906s,@oldincludedir@,$oldincludedir,;t t 20907s,@infodir@,$infodir,;t t 20908s,@mandir@,$mandir,;t t 20909s,@build_alias@,$build_alias,;t t 20910s,@host_alias@,$host_alias,;t t 20911s,@target_alias@,$target_alias,;t t 20912s,@DEFS@,$DEFS,;t t 20913s,@ECHO_C@,$ECHO_C,;t t 20914s,@ECHO_N@,$ECHO_N,;t t 20915s,@ECHO_T@,$ECHO_T,;t t 20916s,@LIBS@,$LIBS,;t t 20917s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 20918s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 20919s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20920s,@CYGPATH_W@,$CYGPATH_W,;t t 20921s,@PACKAGE@,$PACKAGE,;t t 20922s,@VERSION@,$VERSION,;t t 20923s,@ACLOCAL@,$ACLOCAL,;t t 20924s,@AUTOCONF@,$AUTOCONF,;t t 20925s,@AUTOMAKE@,$AUTOMAKE,;t t 20926s,@AUTOHEADER@,$AUTOHEADER,;t t 20927s,@MAKEINFO@,$MAKEINFO,;t t 20928s,@install_sh@,$install_sh,;t t 20929s,@STRIP@,$STRIP,;t t 20930s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 20931s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 20932s,@mkdir_p@,$mkdir_p,;t t 20933s,@AWK@,$AWK,;t t 20934s,@SET_MAKE@,$SET_MAKE,;t t 20935s,@am__leading_dot@,$am__leading_dot,;t t 20936s,@AMTAR@,$AMTAR,;t t 20937s,@am__tar@,$am__tar,;t t 20938s,@am__untar@,$am__untar,;t t 20939s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 20940s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 20941s,@MAINT@,$MAINT,;t t 20942s,@build@,$build,;t t 20943s,@build_cpu@,$build_cpu,;t t 20944s,@build_vendor@,$build_vendor,;t t 20945s,@build_os@,$build_os,;t t 20946s,@host@,$host,;t t 20947s,@host_cpu@,$host_cpu,;t t 20948s,@host_vendor@,$host_vendor,;t t 20949s,@host_os@,$host_os,;t t 20950s,@CC@,$CC,;t t 20951s,@CFLAGS@,$CFLAGS,;t t 20952s,@LDFLAGS@,$LDFLAGS,;t t 20953s,@CPPFLAGS@,$CPPFLAGS,;t t 20954s,@ac_ct_CC@,$ac_ct_CC,;t t 20955s,@EXEEXT@,$EXEEXT,;t t 20956s,@OBJEXT@,$OBJEXT,;t t 20957s,@DEPDIR@,$DEPDIR,;t t 20958s,@am__include@,$am__include,;t t 20959s,@am__quote@,$am__quote,;t t 20960s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 20961s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 20962s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 20963s,@CCDEPMODE@,$CCDEPMODE,;t t 20964s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 20965s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 20966s,@SED@,$SED,;t t 20967s,@EGREP@,$EGREP,;t t 20968s,@LN_S@,$LN_S,;t t 20969s,@ECHO@,$ECHO,;t t 20970s,@AR@,$AR,;t t 20971s,@ac_ct_AR@,$ac_ct_AR,;t t 20972s,@RANLIB@,$RANLIB,;t t 20973s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 20974s,@CPP@,$CPP,;t t 20975s,@CXX@,$CXX,;t t 20976s,@CXXFLAGS@,$CXXFLAGS,;t t 20977s,@ac_ct_CXX@,$ac_ct_CXX,;t t 20978s,@CXXDEPMODE@,$CXXDEPMODE,;t t 20979s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 20980s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 20981s,@CXXCPP@,$CXXCPP,;t t 20982s,@F77@,$F77,;t t 20983s,@FFLAGS@,$FFLAGS,;t t 20984s,@ac_ct_F77@,$ac_ct_F77,;t t 20985s,@LIBTOOL@,$LIBTOOL,;t t 20986s,@PKG_CONFIG@,$PKG_CONFIG,;t t 20987s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 20988s,@XORG_CFLAGS@,$XORG_CFLAGS,;t t 20989s,@XORG_LIBS@,$XORG_LIBS,;t t 20990s,@moduledir@,$moduledir,;t t 20991s,@DRIVER_NAME@,$DRIVER_NAME,;t t 20992s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t 20993s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t 20994s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t 20995s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t 20996s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t 20997s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t 20998s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t 20999s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t 21000s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t 21001s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t 21002s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t 21003s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t 21004s,@LIBOBJS@,$LIBOBJS,;t t 21005s,@LTLIBOBJS@,$LTLIBOBJS,;t t 21006CEOF 21007 21008_ACEOF 21009 21010 cat >>$CONFIG_STATUS <<\_ACEOF 21011 # Split the substitutions into bite-sized pieces for seds with 21012 # small command number limits, like on Digital OSF/1 and HP-UX. 21013 ac_max_sed_lines=48 21014 ac_sed_frag=1 # Number of current file. 21015 ac_beg=1 # First line for current file. 21016 ac_end=$ac_max_sed_lines # Line after last line for current file. 21017 ac_more_lines=: 21018 ac_sed_cmds= 21019 while $ac_more_lines; do 21020 if test $ac_beg -gt 1; then 21021 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21022 else 21023 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21024 fi 21025 if test ! -s $tmp/subs.frag; then 21026 ac_more_lines=false 21027 else 21028 # The purpose of the label and of the branching condition is to 21029 # speed up the sed processing (if there are no `@' at all, there 21030 # is no need to browse any of the substitutions). 21031 # These are the two extra sed commands mentioned above. 21032 (echo ':t 21033 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 21034 if test -z "$ac_sed_cmds"; then 21035 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 21036 else 21037 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 21038 fi 21039 ac_sed_frag=`expr $ac_sed_frag + 1` 21040 ac_beg=$ac_end 21041 ac_end=`expr $ac_end + $ac_max_sed_lines` 21042 fi 21043 done 21044 if test -z "$ac_sed_cmds"; then 21045 ac_sed_cmds=cat 21046 fi 21047fi # test -n "$CONFIG_FILES" 21048 21049_ACEOF 21050cat >>$CONFIG_STATUS <<\_ACEOF 21051for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 21052 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21053 case $ac_file in 21054 - | *:- | *:-:* ) # input from stdin 21055 cat >$tmp/stdin 21056 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21057 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21058 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21059 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21060 * ) ac_file_in=$ac_file.in ;; 21061 esac 21062 21063 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21064 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21065$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21066 X"$ac_file" : 'X\(//\)[^/]' \| \ 21067 X"$ac_file" : 'X\(//\)$' \| \ 21068 X"$ac_file" : 'X\(/\)' \| \ 21069 . : '\(.\)' 2>/dev/null || 21070echo X"$ac_file" | 21071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21072 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21073 /^X\(\/\/\)$/{ s//\1/; q; } 21074 /^X\(\/\).*/{ s//\1/; q; } 21075 s/.*/./; q'` 21076 { if $as_mkdir_p; then 21077 mkdir -p "$ac_dir" 21078 else 21079 as_dir="$ac_dir" 21080 as_dirs= 21081 while test ! -d "$as_dir"; do 21082 as_dirs="$as_dir $as_dirs" 21083 as_dir=`(dirname "$as_dir") 2>/dev/null || 21084$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21085 X"$as_dir" : 'X\(//\)[^/]' \| \ 21086 X"$as_dir" : 'X\(//\)$' \| \ 21087 X"$as_dir" : 'X\(/\)' \| \ 21088 . : '\(.\)' 2>/dev/null || 21089echo X"$as_dir" | 21090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21091 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21092 /^X\(\/\/\)$/{ s//\1/; q; } 21093 /^X\(\/\).*/{ s//\1/; q; } 21094 s/.*/./; q'` 21095 done 21096 test ! -n "$as_dirs" || mkdir $as_dirs 21097 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21098echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21099 { (exit 1); exit 1; }; }; } 21100 21101 ac_builddir=. 21102 21103if test "$ac_dir" != .; then 21104 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21105 # A "../" for each directory in $ac_dir_suffix. 21106 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21107else 21108 ac_dir_suffix= ac_top_builddir= 21109fi 21110 21111case $srcdir in 21112 .) # No --srcdir option. We are building in place. 21113 ac_srcdir=. 21114 if test -z "$ac_top_builddir"; then 21115 ac_top_srcdir=. 21116 else 21117 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21118 fi ;; 21119 [\\/]* | ?:[\\/]* ) # Absolute path. 21120 ac_srcdir=$srcdir$ac_dir_suffix; 21121 ac_top_srcdir=$srcdir ;; 21122 *) # Relative path. 21123 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21124 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21125esac 21126 21127# Do not use `cd foo && pwd` to compute absolute paths, because 21128# the directories may not exist. 21129case `pwd` in 21130.) ac_abs_builddir="$ac_dir";; 21131*) 21132 case "$ac_dir" in 21133 .) ac_abs_builddir=`pwd`;; 21134 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21135 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21136 esac;; 21137esac 21138case $ac_abs_builddir in 21139.) ac_abs_top_builddir=${ac_top_builddir}.;; 21140*) 21141 case ${ac_top_builddir}. in 21142 .) ac_abs_top_builddir=$ac_abs_builddir;; 21143 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21144 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21145 esac;; 21146esac 21147case $ac_abs_builddir in 21148.) ac_abs_srcdir=$ac_srcdir;; 21149*) 21150 case $ac_srcdir in 21151 .) ac_abs_srcdir=$ac_abs_builddir;; 21152 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21153 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21154 esac;; 21155esac 21156case $ac_abs_builddir in 21157.) ac_abs_top_srcdir=$ac_top_srcdir;; 21158*) 21159 case $ac_top_srcdir in 21160 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21161 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21162 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21163 esac;; 21164esac 21165 21166 21167 case $INSTALL in 21168 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21169 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21170 esac 21171 21172 if test x"$ac_file" != x-; then 21173 { echo "$as_me:$LINENO: creating $ac_file" >&5 21174echo "$as_me: creating $ac_file" >&6;} 21175 rm -f "$ac_file" 21176 fi 21177 # Let's still pretend it is `configure' which instantiates (i.e., don't 21178 # use $as_me), people would be surprised to read: 21179 # /* config.h. Generated by config.status. */ 21180 if test x"$ac_file" = x-; then 21181 configure_input= 21182 else 21183 configure_input="$ac_file. " 21184 fi 21185 configure_input=$configure_input"Generated from `echo $ac_file_in | 21186 sed 's,.*/,,'` by configure." 21187 21188 # First look for the input files in the build tree, otherwise in the 21189 # src tree. 21190 ac_file_inputs=`IFS=: 21191 for f in $ac_file_in; do 21192 case $f in 21193 -) echo $tmp/stdin ;; 21194 [\\/$]*) 21195 # Absolute (can't be DOS-style, as IFS=:) 21196 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21197echo "$as_me: error: cannot find input file: $f" >&2;} 21198 { (exit 1); exit 1; }; } 21199 echo "$f";; 21200 *) # Relative 21201 if test -f "$f"; then 21202 # Build tree 21203 echo "$f" 21204 elif test -f "$srcdir/$f"; then 21205 # Source tree 21206 echo "$srcdir/$f" 21207 else 21208 # /dev/null tree 21209 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21210echo "$as_me: error: cannot find input file: $f" >&2;} 21211 { (exit 1); exit 1; }; } 21212 fi;; 21213 esac 21214 done` || { (exit 1); exit 1; } 21215_ACEOF 21216cat >>$CONFIG_STATUS <<_ACEOF 21217 sed "$ac_vpsub 21218$extrasub 21219_ACEOF 21220cat >>$CONFIG_STATUS <<\_ACEOF 21221:t 21222/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21223s,@configure_input@,$configure_input,;t t 21224s,@srcdir@,$ac_srcdir,;t t 21225s,@abs_srcdir@,$ac_abs_srcdir,;t t 21226s,@top_srcdir@,$ac_top_srcdir,;t t 21227s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21228s,@builddir@,$ac_builddir,;t t 21229s,@abs_builddir@,$ac_abs_builddir,;t t 21230s,@top_builddir@,$ac_top_builddir,;t t 21231s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21232s,@INSTALL@,$ac_INSTALL,;t t 21233" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21234 rm -f $tmp/stdin 21235 if test x"$ac_file" != x-; then 21236 mv $tmp/out $ac_file 21237 else 21238 cat $tmp/out 21239 rm -f $tmp/out 21240 fi 21241 21242done 21243_ACEOF 21244cat >>$CONFIG_STATUS <<\_ACEOF 21245 21246# 21247# CONFIG_HEADER section. 21248# 21249 21250# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 21251# NAME is the cpp macro being defined and VALUE is the value it is being given. 21252# 21253# ac_d sets the value in "#define NAME VALUE" lines. 21254ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 21255ac_dB='[ ].*$,\1#\2' 21256ac_dC=' ' 21257ac_dD=',;t' 21258# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 21259ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 21260ac_uB='$,\1#\2define\3' 21261ac_uC=' ' 21262ac_uD=',;t' 21263 21264for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 21265 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21266 case $ac_file in 21267 - | *:- | *:-:* ) # input from stdin 21268 cat >$tmp/stdin 21269 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21270 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21271 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21272 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21273 * ) ac_file_in=$ac_file.in ;; 21274 esac 21275 21276 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 21277echo "$as_me: creating $ac_file" >&6;} 21278 21279 # First look for the input files in the build tree, otherwise in the 21280 # src tree. 21281 ac_file_inputs=`IFS=: 21282 for f in $ac_file_in; do 21283 case $f in 21284 -) echo $tmp/stdin ;; 21285 [\\/$]*) 21286 # Absolute (can't be DOS-style, as IFS=:) 21287 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21288echo "$as_me: error: cannot find input file: $f" >&2;} 21289 { (exit 1); exit 1; }; } 21290 # Do quote $f, to prevent DOS paths from being IFS'd. 21291 echo "$f";; 21292 *) # Relative 21293 if test -f "$f"; then 21294 # Build tree 21295 echo "$f" 21296 elif test -f "$srcdir/$f"; then 21297 # Source tree 21298 echo "$srcdir/$f" 21299 else 21300 # /dev/null tree 21301 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21302echo "$as_me: error: cannot find input file: $f" >&2;} 21303 { (exit 1); exit 1; }; } 21304 fi;; 21305 esac 21306 done` || { (exit 1); exit 1; } 21307 # Remove the trailing spaces. 21308 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 21309 21310_ACEOF 21311 21312# Transform confdefs.h into two sed scripts, `conftest.defines' and 21313# `conftest.undefs', that substitutes the proper values into 21314# config.h.in to produce config.h. The first handles `#define' 21315# templates, and the second `#undef' templates. 21316# And first: Protect against being on the right side of a sed subst in 21317# config.status. Protect against being in an unquoted here document 21318# in config.status. 21319rm -f conftest.defines conftest.undefs 21320# Using a here document instead of a string reduces the quoting nightmare. 21321# Putting comments in sed scripts is not portable. 21322# 21323# `end' is used to avoid that the second main sed command (meant for 21324# 0-ary CPP macros) applies to n-ary macro definitions. 21325# See the Autoconf documentation for `clear'. 21326cat >confdef2sed.sed <<\_ACEOF 21327s/[\\&,]/\\&/g 21328s,[\\$`],\\&,g 21329t clear 21330: clear 21331s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 21332t end 21333s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 21334: end 21335_ACEOF 21336# If some macros were called several times there might be several times 21337# the same #defines, which is useless. Nevertheless, we may not want to 21338# sort them, since we want the *last* AC-DEFINE to be honored. 21339uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 21340sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 21341rm -f confdef2sed.sed 21342 21343# This sed command replaces #undef with comments. This is necessary, for 21344# example, in the case of _POSIX_SOURCE, which is predefined and required 21345# on some systems where configure will not decide to define it. 21346cat >>conftest.undefs <<\_ACEOF 21347s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 21348_ACEOF 21349 21350# Break up conftest.defines because some shells have a limit on the size 21351# of here documents, and old seds have small limits too (100 cmds). 21352echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 21353echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 21354echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 21355echo ' :' >>$CONFIG_STATUS 21356rm -f conftest.tail 21357while grep . conftest.defines >/dev/null 21358do 21359 # Write a limited-size here document to $tmp/defines.sed. 21360 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 21361 # Speed up: don't consider the non `#define' lines. 21362 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 21363 # Work around the forget-to-reset-the-flag bug. 21364 echo 't clr' >>$CONFIG_STATUS 21365 echo ': clr' >>$CONFIG_STATUS 21366 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 21367 echo 'CEOF 21368 sed -f $tmp/defines.sed $tmp/in >$tmp/out 21369 rm -f $tmp/in 21370 mv $tmp/out $tmp/in 21371' >>$CONFIG_STATUS 21372 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 21373 rm -f conftest.defines 21374 mv conftest.tail conftest.defines 21375done 21376rm -f conftest.defines 21377echo ' fi # grep' >>$CONFIG_STATUS 21378echo >>$CONFIG_STATUS 21379 21380# Break up conftest.undefs because some shells have a limit on the size 21381# of here documents, and old seds have small limits too (100 cmds). 21382echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 21383rm -f conftest.tail 21384while grep . conftest.undefs >/dev/null 21385do 21386 # Write a limited-size here document to $tmp/undefs.sed. 21387 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 21388 # Speed up: don't consider the non `#undef' 21389 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 21390 # Work around the forget-to-reset-the-flag bug. 21391 echo 't clr' >>$CONFIG_STATUS 21392 echo ': clr' >>$CONFIG_STATUS 21393 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 21394 echo 'CEOF 21395 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 21396 rm -f $tmp/in 21397 mv $tmp/out $tmp/in 21398' >>$CONFIG_STATUS 21399 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 21400 rm -f conftest.undefs 21401 mv conftest.tail conftest.undefs 21402done 21403rm -f conftest.undefs 21404 21405cat >>$CONFIG_STATUS <<\_ACEOF 21406 # Let's still pretend it is `configure' which instantiates (i.e., don't 21407 # use $as_me), people would be surprised to read: 21408 # /* config.h. Generated by config.status. */ 21409 if test x"$ac_file" = x-; then 21410 echo "/* Generated by configure. */" >$tmp/config.h 21411 else 21412 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 21413 fi 21414 cat $tmp/in >>$tmp/config.h 21415 rm -f $tmp/in 21416 if test x"$ac_file" != x-; then 21417 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 21418 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21419echo "$as_me: $ac_file is unchanged" >&6;} 21420 else 21421 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21422$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21423 X"$ac_file" : 'X\(//\)[^/]' \| \ 21424 X"$ac_file" : 'X\(//\)$' \| \ 21425 X"$ac_file" : 'X\(/\)' \| \ 21426 . : '\(.\)' 2>/dev/null || 21427echo X"$ac_file" | 21428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21429 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21430 /^X\(\/\/\)$/{ s//\1/; q; } 21431 /^X\(\/\).*/{ s//\1/; q; } 21432 s/.*/./; q'` 21433 { if $as_mkdir_p; then 21434 mkdir -p "$ac_dir" 21435 else 21436 as_dir="$ac_dir" 21437 as_dirs= 21438 while test ! -d "$as_dir"; do 21439 as_dirs="$as_dir $as_dirs" 21440 as_dir=`(dirname "$as_dir") 2>/dev/null || 21441$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21442 X"$as_dir" : 'X\(//\)[^/]' \| \ 21443 X"$as_dir" : 'X\(//\)$' \| \ 21444 X"$as_dir" : 'X\(/\)' \| \ 21445 . : '\(.\)' 2>/dev/null || 21446echo X"$as_dir" | 21447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21448 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21449 /^X\(\/\/\)$/{ s//\1/; q; } 21450 /^X\(\/\).*/{ s//\1/; q; } 21451 s/.*/./; q'` 21452 done 21453 test ! -n "$as_dirs" || mkdir $as_dirs 21454 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21455echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21456 { (exit 1); exit 1; }; }; } 21457 21458 rm -f $ac_file 21459 mv $tmp/config.h $ac_file 21460 fi 21461 else 21462 cat $tmp/config.h 21463 rm -f $tmp/config.h 21464 fi 21465# Compute $ac_file's index in $config_headers. 21466_am_stamp_count=1 21467for _am_header in $config_headers :; do 21468 case $_am_header in 21469 $ac_file | $ac_file:* ) 21470 break ;; 21471 * ) 21472 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21473 esac 21474done 21475echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 21476$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21477 X$ac_file : 'X\(//\)[^/]' \| \ 21478 X$ac_file : 'X\(//\)$' \| \ 21479 X$ac_file : 'X\(/\)' \| \ 21480 . : '\(.\)' 2>/dev/null || 21481echo X$ac_file | 21482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21483 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21484 /^X\(\/\/\)$/{ s//\1/; q; } 21485 /^X\(\/\).*/{ s//\1/; q; } 21486 s/.*/./; q'`/stamp-h$_am_stamp_count 21487done 21488_ACEOF 21489cat >>$CONFIG_STATUS <<\_ACEOF 21490 21491# 21492# CONFIG_COMMANDS section. 21493# 21494for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 21495 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 21496 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 21497 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 21498$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21499 X"$ac_dest" : 'X\(//\)[^/]' \| \ 21500 X"$ac_dest" : 'X\(//\)$' \| \ 21501 X"$ac_dest" : 'X\(/\)' \| \ 21502 . : '\(.\)' 2>/dev/null || 21503echo X"$ac_dest" | 21504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21505 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21506 /^X\(\/\/\)$/{ s//\1/; q; } 21507 /^X\(\/\).*/{ s//\1/; q; } 21508 s/.*/./; q'` 21509 { if $as_mkdir_p; then 21510 mkdir -p "$ac_dir" 21511 else 21512 as_dir="$ac_dir" 21513 as_dirs= 21514 while test ! -d "$as_dir"; do 21515 as_dirs="$as_dir $as_dirs" 21516 as_dir=`(dirname "$as_dir") 2>/dev/null || 21517$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21518 X"$as_dir" : 'X\(//\)[^/]' \| \ 21519 X"$as_dir" : 'X\(//\)$' \| \ 21520 X"$as_dir" : 'X\(/\)' \| \ 21521 . : '\(.\)' 2>/dev/null || 21522echo X"$as_dir" | 21523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21524 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21525 /^X\(\/\/\)$/{ s//\1/; q; } 21526 /^X\(\/\).*/{ s//\1/; q; } 21527 s/.*/./; q'` 21528 done 21529 test ! -n "$as_dirs" || mkdir $as_dirs 21530 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21531echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21532 { (exit 1); exit 1; }; }; } 21533 21534 ac_builddir=. 21535 21536if test "$ac_dir" != .; then 21537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21538 # A "../" for each directory in $ac_dir_suffix. 21539 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21540else 21541 ac_dir_suffix= ac_top_builddir= 21542fi 21543 21544case $srcdir in 21545 .) # No --srcdir option. We are building in place. 21546 ac_srcdir=. 21547 if test -z "$ac_top_builddir"; then 21548 ac_top_srcdir=. 21549 else 21550 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21551 fi ;; 21552 [\\/]* | ?:[\\/]* ) # Absolute path. 21553 ac_srcdir=$srcdir$ac_dir_suffix; 21554 ac_top_srcdir=$srcdir ;; 21555 *) # Relative path. 21556 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21557 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21558esac 21559 21560# Do not use `cd foo && pwd` to compute absolute paths, because 21561# the directories may not exist. 21562case `pwd` in 21563.) ac_abs_builddir="$ac_dir";; 21564*) 21565 case "$ac_dir" in 21566 .) ac_abs_builddir=`pwd`;; 21567 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21568 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21569 esac;; 21570esac 21571case $ac_abs_builddir in 21572.) ac_abs_top_builddir=${ac_top_builddir}.;; 21573*) 21574 case ${ac_top_builddir}. in 21575 .) ac_abs_top_builddir=$ac_abs_builddir;; 21576 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21577 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21578 esac;; 21579esac 21580case $ac_abs_builddir in 21581.) ac_abs_srcdir=$ac_srcdir;; 21582*) 21583 case $ac_srcdir in 21584 .) ac_abs_srcdir=$ac_abs_builddir;; 21585 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21586 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21587 esac;; 21588esac 21589case $ac_abs_builddir in 21590.) ac_abs_top_srcdir=$ac_top_srcdir;; 21591*) 21592 case $ac_top_srcdir in 21593 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21594 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21595 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21596 esac;; 21597esac 21598 21599 21600 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 21601echo "$as_me: executing $ac_dest commands" >&6;} 21602 case $ac_dest in 21603 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21604 # Strip MF so we end up with the name of the file. 21605 mf=`echo "$mf" | sed -e 's/:.*$//'` 21606 # Check whether this is an Automake generated Makefile or not. 21607 # We used to match only the files named `Makefile.in', but 21608 # some people rename them; so instead we look at the file content. 21609 # Grep'ing the first line is not enough: some people post-process 21610 # each Makefile.in and add a new line on top of each file to say so. 21611 # So let's grep whole file. 21612 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21613 dirpart=`(dirname "$mf") 2>/dev/null || 21614$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21615 X"$mf" : 'X\(//\)[^/]' \| \ 21616 X"$mf" : 'X\(//\)$' \| \ 21617 X"$mf" : 'X\(/\)' \| \ 21618 . : '\(.\)' 2>/dev/null || 21619echo X"$mf" | 21620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21621 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21622 /^X\(\/\/\)$/{ s//\1/; q; } 21623 /^X\(\/\).*/{ s//\1/; q; } 21624 s/.*/./; q'` 21625 else 21626 continue 21627 fi 21628 # Extract the definition of DEPDIR, am__include, and am__quote 21629 # from the Makefile without running `make'. 21630 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21631 test -z "$DEPDIR" && continue 21632 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21633 test -z "am__include" && continue 21634 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21635 # When using ansi2knr, U may be empty or an underscore; expand it 21636 U=`sed -n 's/^U = //p' < "$mf"` 21637 # Find all dependency output files, they are included files with 21638 # $(DEPDIR) in their names. We invoke sed twice because it is the 21639 # simplest approach to changing $(DEPDIR) to its actual value in the 21640 # expansion. 21641 for file in `sed -n " 21642 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21643 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21644 # Make sure the directory exists. 21645 test -f "$dirpart/$file" && continue 21646 fdir=`(dirname "$file") 2>/dev/null || 21647$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21648 X"$file" : 'X\(//\)[^/]' \| \ 21649 X"$file" : 'X\(//\)$' \| \ 21650 X"$file" : 'X\(/\)' \| \ 21651 . : '\(.\)' 2>/dev/null || 21652echo X"$file" | 21653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21654 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21655 /^X\(\/\/\)$/{ s//\1/; q; } 21656 /^X\(\/\).*/{ s//\1/; q; } 21657 s/.*/./; q'` 21658 { if $as_mkdir_p; then 21659 mkdir -p $dirpart/$fdir 21660 else 21661 as_dir=$dirpart/$fdir 21662 as_dirs= 21663 while test ! -d "$as_dir"; do 21664 as_dirs="$as_dir $as_dirs" 21665 as_dir=`(dirname "$as_dir") 2>/dev/null || 21666$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21667 X"$as_dir" : 'X\(//\)[^/]' \| \ 21668 X"$as_dir" : 'X\(//\)$' \| \ 21669 X"$as_dir" : 'X\(/\)' \| \ 21670 . : '\(.\)' 2>/dev/null || 21671echo X"$as_dir" | 21672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21673 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21674 /^X\(\/\/\)$/{ s//\1/; q; } 21675 /^X\(\/\).*/{ s//\1/; q; } 21676 s/.*/./; q'` 21677 done 21678 test ! -n "$as_dirs" || mkdir $as_dirs 21679 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 21680echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 21681 { (exit 1); exit 1; }; }; } 21682 21683 # echo "creating $dirpart/$file" 21684 echo '# dummy' > "$dirpart/$file" 21685 done 21686done 21687 ;; 21688 esac 21689done 21690_ACEOF 21691 21692cat >>$CONFIG_STATUS <<\_ACEOF 21693 21694{ (exit 0); exit 0; } 21695_ACEOF 21696chmod +x $CONFIG_STATUS 21697ac_clean_files=$ac_clean_files_save 21698 21699 21700# configure is writing to config.log, and then calls config.status. 21701# config.status does its own redirection, appending to config.log. 21702# Unfortunately, on DOS this fails, as config.log is still kept open 21703# by configure, so config.status won't be able to write to it; its 21704# output is simply discarded. So we exec the FD to /dev/null, 21705# effectively closing config.log, so it can be properly (re)opened and 21706# appended to by config.status. When coming back to configure, we 21707# need to make the FD available again. 21708if test "$no_create" != yes; then 21709 ac_cs_success=: 21710 ac_config_status_args= 21711 test "$silent" = yes && 21712 ac_config_status_args="$ac_config_status_args --quiet" 21713 exec 5>/dev/null 21714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21715 exec 5>>config.log 21716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21717 # would make configure fail if this is the last instruction. 21718 $ac_cs_success || { (exit 1); exit 1; } 21719fi 21720 21721