1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for oto 0.5. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255echo=${ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274$* 275EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 282 283if test -z "$ECHO"; then 284if test "X${echo_test_string+set}" != Xset; then 285# find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if (echo_test_string=`eval $cmd`) 2>/dev/null && 289 echo_test_string=`eval $cmd` && 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 291 then 292 break 293 fi 294 done 295fi 296 297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 299 test "X$echo_testing_string" = "X$echo_test_string"; then 300 : 301else 302 # The Solaris, AIX, and Digital Unix default echo programs unquote 303 # backslashes. This makes it impossible to quote backslashes using 304 # echo "$something" | sed 's/\\/\\\\/g' 305 # 306 # So, first we look for a working echo in the user's PATH. 307 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 echo="$dir/echo" 316 break 317 fi 318 done 319 IFS="$lt_save_ifs" 320 321 if test "X$echo" = Xecho; then 322 # We didn't find a better echo, so look for alternatives. 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 325 test "X$echo_testing_string" = "X$echo_test_string"; then 326 # This shell has a builtin print -r that does the trick. 327 echo='print -r' 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 329 test "X$CONFIG_SHELL" != X/bin/ksh; then 330 # If we have ksh, try running configure again with it. 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 332 export ORIGINAL_CONFIG_SHELL 333 CONFIG_SHELL=/bin/ksh 334 export CONFIG_SHELL 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 336 else 337 # Try using printf. 338 echo='printf %s\n' 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 341 test "X$echo_testing_string" = "X$echo_test_string"; then 342 # Cool, printf works 343 : 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 345 test "X$echo_testing_string" = 'X\t' && 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 347 test "X$echo_testing_string" = "X$echo_test_string"; then 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 349 export CONFIG_SHELL 350 SHELL="$CONFIG_SHELL" 351 export SHELL 352 echo="$CONFIG_SHELL $0 --fallback-echo" 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 echo="$CONFIG_SHELL $0 --fallback-echo" 358 else 359 # maybe with a smaller string... 360 prev=: 361 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 364 then 365 break 366 fi 367 prev="$cmd" 368 done 369 370 if test "$prev" != 'sed 50q "$0"'; then 371 echo_test_string=`eval $prev` 372 export echo_test_string 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 374 else 375 # Oops. We lost completely, so just stick with echo. 376 echo=echo 377 fi 378 fi 379 fi 380 fi 381fi 382fi 383 384# Copy echo and quote the copy suitably for passing to libtool from 385# the Makefile, instead of quoting the original, which is used later. 386ECHO=$echo 387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389fi 390 391 392 393 394tagnames=${tagnames+${tagnames},}CXX 395 396tagnames=${tagnames+${tagnames},}F77 397 398# Name of the host. 399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 400# so uname gets run too. 401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403exec 6>&1 404 405# 406# Initializations. 407# 408ac_default_prefix=/usr/local 409ac_config_libobj_dir=. 410cross_compiling=no 411subdirs= 412MFLAGS= 413MAKEFLAGS= 414SHELL=${CONFIG_SHELL-/bin/sh} 415 416# Maximum number of lines to put in a shell here document. 417# This variable seems obsolete. It should probably be removed, and 418# only ac_max_sed_lines should be used. 419: ${ac_max_here_lines=38} 420 421# Identity of this package. 422PACKAGE_NAME='oto' 423PACKAGE_TARNAME='oto' 424PACKAGE_VERSION='0.5' 425PACKAGE_STRING='oto 0.5' 426PACKAGE_BUGREPORT='' 427 428ac_unique_file="src/main.c" 429# Factoring default headers for most tests. 430ac_includes_default="\ 431#include <stdio.h> 432#if HAVE_SYS_TYPES_H 433# include <sys/types.h> 434#endif 435#if HAVE_SYS_STAT_H 436# include <sys/stat.h> 437#endif 438#if STDC_HEADERS 439# include <stdlib.h> 440# include <stddef.h> 441#else 442# if HAVE_STDLIB_H 443# include <stdlib.h> 444# endif 445#endif 446#if HAVE_STRING_H 447# if !STDC_HEADERS && HAVE_MEMORY_H 448# include <memory.h> 449# endif 450# include <string.h> 451#endif 452#if HAVE_STRINGS_H 453# include <strings.h> 454#endif 455#if HAVE_INTTYPES_H 456# include <inttypes.h> 457#else 458# if HAVE_STDINT_H 459# include <stdint.h> 460# endif 461#endif 462#if HAVE_UNISTD_H 463# include <unistd.h> 464#endif" 465 466ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS' 467ac_subst_files='' 468 469# Initialize some variables set by options. 470ac_init_help= 471ac_init_version=false 472# The variables have the same names as the options, with 473# dashes changed to underlines. 474cache_file=/dev/null 475exec_prefix=NONE 476no_create= 477no_recursion= 478prefix=NONE 479program_prefix=NONE 480program_suffix=NONE 481program_transform_name=s,x,x, 482silent= 483site= 484srcdir= 485verbose= 486x_includes=NONE 487x_libraries=NONE 488 489# Installation directory options. 490# These are left unexpanded so users can "make install exec_prefix=/foo" 491# and all the variables that are supposed to be based on exec_prefix 492# by default will actually change. 493# Use braces instead of parens because sh, perl, etc. also accept them. 494bindir='${exec_prefix}/bin' 495sbindir='${exec_prefix}/sbin' 496libexecdir='${exec_prefix}/libexec' 497datadir='${prefix}/share' 498sysconfdir='${prefix}/etc' 499sharedstatedir='${prefix}/com' 500localstatedir='${prefix}/var' 501libdir='${exec_prefix}/lib' 502includedir='${prefix}/include' 503oldincludedir='/usr/include' 504infodir='${prefix}/info' 505mandir='${prefix}/man' 506 507ac_prev= 508for ac_option 509do 510 # If the previous option needs an argument, assign it. 511 if test -n "$ac_prev"; then 512 eval "$ac_prev=\$ac_option" 513 ac_prev= 514 continue 515 fi 516 517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 518 519 # Accept the important Cygnus configure options, so we can diagnose typos. 520 521 case $ac_option in 522 523 -bindir | --bindir | --bindi | --bind | --bin | --bi) 524 ac_prev=bindir ;; 525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 526 bindir=$ac_optarg ;; 527 528 -build | --build | --buil | --bui | --bu) 529 ac_prev=build_alias ;; 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 531 build_alias=$ac_optarg ;; 532 533 -cache-file | --cache-file | --cache-fil | --cache-fi \ 534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 535 ac_prev=cache_file ;; 536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 538 cache_file=$ac_optarg ;; 539 540 --config-cache | -C) 541 cache_file=config.cache ;; 542 543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 544 ac_prev=datadir ;; 545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 546 | --da=*) 547 datadir=$ac_optarg ;; 548 549 -disable-* | --disable-*) 550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 551 # Reject names that are not valid shell variable names. 552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 554 { (exit 1); exit 1; }; } 555 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 556 eval "enable_$ac_feature=no" ;; 557 558 -enable-* | --enable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 case $ac_option in 566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 567 *) ac_optarg=yes ;; 568 esac 569 eval "enable_$ac_feature='$ac_optarg'" ;; 570 571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 573 | --exec | --exe | --ex) 574 ac_prev=exec_prefix ;; 575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 577 | --exec=* | --exe=* | --ex=*) 578 exec_prefix=$ac_optarg ;; 579 580 -gas | --gas | --ga | --g) 581 # Obsolete; use --with-gas. 582 with_gas=yes ;; 583 584 -help | --help | --hel | --he | -h) 585 ac_init_help=long ;; 586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 587 ac_init_help=recursive ;; 588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 589 ac_init_help=short ;; 590 591 -host | --host | --hos | --ho) 592 ac_prev=host_alias ;; 593 -host=* | --host=* | --hos=* | --ho=*) 594 host_alias=$ac_optarg ;; 595 596 -includedir | --includedir | --includedi | --included | --include \ 597 | --includ | --inclu | --incl | --inc) 598 ac_prev=includedir ;; 599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 600 | --includ=* | --inclu=* | --incl=* | --inc=*) 601 includedir=$ac_optarg ;; 602 603 -infodir | --infodir | --infodi | --infod | --info | --inf) 604 ac_prev=infodir ;; 605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 606 infodir=$ac_optarg ;; 607 608 -libdir | --libdir | --libdi | --libd) 609 ac_prev=libdir ;; 610 -libdir=* | --libdir=* | --libdi=* | --libd=*) 611 libdir=$ac_optarg ;; 612 613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 614 | --libexe | --libex | --libe) 615 ac_prev=libexecdir ;; 616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 617 | --libexe=* | --libex=* | --libe=*) 618 libexecdir=$ac_optarg ;; 619 620 -localstatedir | --localstatedir | --localstatedi | --localstated \ 621 | --localstate | --localstat | --localsta | --localst \ 622 | --locals | --local | --loca | --loc | --lo) 623 ac_prev=localstatedir ;; 624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 627 localstatedir=$ac_optarg ;; 628 629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 630 ac_prev=mandir ;; 631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 632 mandir=$ac_optarg ;; 633 634 -nfp | --nfp | --nf) 635 # Obsolete; use --without-fp. 636 with_fp=no ;; 637 638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 639 | --no-cr | --no-c | -n) 640 no_create=yes ;; 641 642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 644 no_recursion=yes ;; 645 646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 648 | --oldin | --oldi | --old | --ol | --o) 649 ac_prev=oldincludedir ;; 650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 653 oldincludedir=$ac_optarg ;; 654 655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 656 ac_prev=prefix ;; 657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 658 prefix=$ac_optarg ;; 659 660 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 661 | --program-pre | --program-pr | --program-p) 662 ac_prev=program_prefix ;; 663 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 665 program_prefix=$ac_optarg ;; 666 667 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 668 | --program-suf | --program-su | --program-s) 669 ac_prev=program_suffix ;; 670 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 672 program_suffix=$ac_optarg ;; 673 674 -program-transform-name | --program-transform-name \ 675 | --program-transform-nam | --program-transform-na \ 676 | --program-transform-n | --program-transform- \ 677 | --program-transform | --program-transfor \ 678 | --program-transfo | --program-transf \ 679 | --program-trans | --program-tran \ 680 | --progr-tra | --program-tr | --program-t) 681 ac_prev=program_transform_name ;; 682 -program-transform-name=* | --program-transform-name=* \ 683 | --program-transform-nam=* | --program-transform-na=* \ 684 | --program-transform-n=* | --program-transform-=* \ 685 | --program-transform=* | --program-transfor=* \ 686 | --program-transfo=* | --program-transf=* \ 687 | --program-trans=* | --program-tran=* \ 688 | --progr-tra=* | --program-tr=* | --program-t=*) 689 program_transform_name=$ac_optarg ;; 690 691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 692 | -silent | --silent | --silen | --sile | --sil) 693 silent=yes ;; 694 695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 696 ac_prev=sbindir ;; 697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 698 | --sbi=* | --sb=*) 699 sbindir=$ac_optarg ;; 700 701 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 703 | --sharedst | --shareds | --shared | --share | --shar \ 704 | --sha | --sh) 705 ac_prev=sharedstatedir ;; 706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 709 | --sha=* | --sh=*) 710 sharedstatedir=$ac_optarg ;; 711 712 -site | --site | --sit) 713 ac_prev=site ;; 714 -site=* | --site=* | --sit=*) 715 site=$ac_optarg ;; 716 717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 718 ac_prev=srcdir ;; 719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 720 srcdir=$ac_optarg ;; 721 722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 723 | --syscon | --sysco | --sysc | --sys | --sy) 724 ac_prev=sysconfdir ;; 725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 727 sysconfdir=$ac_optarg ;; 728 729 -target | --target | --targe | --targ | --tar | --ta | --t) 730 ac_prev=target_alias ;; 731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 732 target_alias=$ac_optarg ;; 733 734 -v | -verbose | --verbose | --verbos | --verbo | --verb) 735 verbose=yes ;; 736 737 -version | --version | --versio | --versi | --vers | -V) 738 ac_init_version=: ;; 739 740 -with-* | --with-*) 741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 742 # Reject names that are not valid shell variable names. 743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 744 { echo "$as_me: error: invalid package name: $ac_package" >&2 745 { (exit 1); exit 1; }; } 746 ac_package=`echo $ac_package| sed 's/-/_/g'` 747 case $ac_option in 748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 749 *) ac_optarg=yes ;; 750 esac 751 eval "with_$ac_package='$ac_optarg'" ;; 752 753 -without-* | --without-*) 754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 755 # Reject names that are not valid shell variable names. 756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 757 { echo "$as_me: error: invalid package name: $ac_package" >&2 758 { (exit 1); exit 1; }; } 759 ac_package=`echo $ac_package | sed 's/-/_/g'` 760 eval "with_$ac_package=no" ;; 761 762 --x) 763 # Obsolete; use --with-x. 764 with_x=yes ;; 765 766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 767 | --x-incl | --x-inc | --x-in | --x-i) 768 ac_prev=x_includes ;; 769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 771 x_includes=$ac_optarg ;; 772 773 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 775 ac_prev=x_libraries ;; 776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 778 x_libraries=$ac_optarg ;; 779 780 -*) { echo "$as_me: error: unrecognized option: $ac_option 781Try \`$0 --help' for more information." >&2 782 { (exit 1); exit 1; }; } 783 ;; 784 785 *=*) 786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 787 # Reject names that are not valid shell variable names. 788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 790 { (exit 1); exit 1; }; } 791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 792 eval "$ac_envvar='$ac_optarg'" 793 export $ac_envvar ;; 794 795 *) 796 # FIXME: should be removed in autoconf 3.0. 797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 801 ;; 802 803 esac 804done 805 806if test -n "$ac_prev"; then 807 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 808 { echo "$as_me: error: missing argument to $ac_option" >&2 809 { (exit 1); exit 1; }; } 810fi 811 812# Be sure to have absolute paths. 813for ac_var in exec_prefix prefix 814do 815 eval ac_val=$`echo $ac_var` 816 case $ac_val in 817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 819 { (exit 1); exit 1; }; };; 820 esac 821done 822 823# Be sure to have absolute paths. 824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 825 localstatedir libdir includedir oldincludedir infodir mandir 826do 827 eval ac_val=$`echo $ac_var` 828 case $ac_val in 829 [\\/$]* | ?:[\\/]* ) ;; 830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 831 { (exit 1); exit 1; }; };; 832 esac 833done 834 835# There might be people who depend on the old broken behavior: `$host' 836# used to hold the argument of --host etc. 837# FIXME: To remove some day. 838build=$build_alias 839host=$host_alias 840target=$target_alias 841 842# FIXME: To remove some day. 843if test "x$host_alias" != x; then 844 if test "x$build_alias" = x; then 845 cross_compiling=maybe 846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 847 If a cross compiler is detected then cross compile mode will be used." >&2 848 elif test "x$build_alias" != "x$host_alias"; then 849 cross_compiling=yes 850 fi 851fi 852 853ac_tool_prefix= 854test -n "$host_alias" && ac_tool_prefix=$host_alias- 855 856test "$silent" = yes && exec 6>/dev/null 857 858 859# Find the source files, if location was not specified. 860if test -z "$srcdir"; then 861 ac_srcdir_defaulted=yes 862 # Try the directory containing this script, then its parent. 863 ac_confdir=`(dirname "$0") 2>/dev/null || 864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 865 X"$0" : 'X\(//\)[^/]' \| \ 866 X"$0" : 'X\(//\)$' \| \ 867 X"$0" : 'X\(/\)' \| \ 868 . : '\(.\)' 2>/dev/null || 869echo X"$0" | 870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 871 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 872 /^X\(\/\/\)$/{ s//\1/; q; } 873 /^X\(\/\).*/{ s//\1/; q; } 874 s/.*/./; q'` 875 srcdir=$ac_confdir 876 if test ! -r $srcdir/$ac_unique_file; then 877 srcdir=.. 878 fi 879else 880 ac_srcdir_defaulted=no 881fi 882if test ! -r $srcdir/$ac_unique_file; then 883 if test "$ac_srcdir_defaulted" = yes; then 884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 885 { (exit 1); exit 1; }; } 886 else 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 888 { (exit 1); exit 1; }; } 889 fi 890fi 891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 893 { (exit 1); exit 1; }; } 894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 895ac_env_build_alias_set=${build_alias+set} 896ac_env_build_alias_value=$build_alias 897ac_cv_env_build_alias_set=${build_alias+set} 898ac_cv_env_build_alias_value=$build_alias 899ac_env_host_alias_set=${host_alias+set} 900ac_env_host_alias_value=$host_alias 901ac_cv_env_host_alias_set=${host_alias+set} 902ac_cv_env_host_alias_value=$host_alias 903ac_env_target_alias_set=${target_alias+set} 904ac_env_target_alias_value=$target_alias 905ac_cv_env_target_alias_set=${target_alias+set} 906ac_cv_env_target_alias_value=$target_alias 907ac_env_CC_set=${CC+set} 908ac_env_CC_value=$CC 909ac_cv_env_CC_set=${CC+set} 910ac_cv_env_CC_value=$CC 911ac_env_CFLAGS_set=${CFLAGS+set} 912ac_env_CFLAGS_value=$CFLAGS 913ac_cv_env_CFLAGS_set=${CFLAGS+set} 914ac_cv_env_CFLAGS_value=$CFLAGS 915ac_env_LDFLAGS_set=${LDFLAGS+set} 916ac_env_LDFLAGS_value=$LDFLAGS 917ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 918ac_cv_env_LDFLAGS_value=$LDFLAGS 919ac_env_CPPFLAGS_set=${CPPFLAGS+set} 920ac_env_CPPFLAGS_value=$CPPFLAGS 921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_cv_env_CPPFLAGS_value=$CPPFLAGS 923ac_env_CPP_set=${CPP+set} 924ac_env_CPP_value=$CPP 925ac_cv_env_CPP_set=${CPP+set} 926ac_cv_env_CPP_value=$CPP 927ac_env_CXX_set=${CXX+set} 928ac_env_CXX_value=$CXX 929ac_cv_env_CXX_set=${CXX+set} 930ac_cv_env_CXX_value=$CXX 931ac_env_CXXFLAGS_set=${CXXFLAGS+set} 932ac_env_CXXFLAGS_value=$CXXFLAGS 933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_cv_env_CXXFLAGS_value=$CXXFLAGS 935ac_env_CXXCPP_set=${CXXCPP+set} 936ac_env_CXXCPP_value=$CXXCPP 937ac_cv_env_CXXCPP_set=${CXXCPP+set} 938ac_cv_env_CXXCPP_value=$CXXCPP 939ac_env_F77_set=${F77+set} 940ac_env_F77_value=$F77 941ac_cv_env_F77_set=${F77+set} 942ac_cv_env_F77_value=$F77 943ac_env_FFLAGS_set=${FFLAGS+set} 944ac_env_FFLAGS_value=$FFLAGS 945ac_cv_env_FFLAGS_set=${FFLAGS+set} 946ac_cv_env_FFLAGS_value=$FFLAGS 947 948# 949# Report the --help message. 950# 951if test "$ac_init_help" = "long"; then 952 # Omit some internal or obsolete options to make the list less imposing. 953 # This message is too long to be a string in the A/UX 3.1 sh. 954 cat <<_ACEOF 955\`configure' configures oto 0.5 to adapt to many kinds of systems. 956 957Usage: $0 [OPTION]... [VAR=VALUE]... 958 959To assign environment variables (e.g., CC, CFLAGS...), specify them as 960VAR=VALUE. See below for descriptions of some of the useful variables. 961 962Defaults for the options are specified in brackets. 963 964Configuration: 965 -h, --help display this help and exit 966 --help=short display options specific to this package 967 --help=recursive display the short help of all the included packages 968 -V, --version display version information and exit 969 -q, --quiet, --silent do not print \`checking...' messages 970 --cache-file=FILE cache test results in FILE [disabled] 971 -C, --config-cache alias for \`--cache-file=config.cache' 972 -n, --no-create do not create output files 973 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 974 975_ACEOF 976 977 cat <<_ACEOF 978Installation directories: 979 --prefix=PREFIX install architecture-independent files in PREFIX 980 [$ac_default_prefix] 981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 982 [PREFIX] 983 984By default, \`make install' will install all the files in 985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 986an installation prefix other than \`$ac_default_prefix' using \`--prefix', 987for instance \`--prefix=\$HOME'. 988 989For better control, use the options below. 990 991Fine tuning of the installation directories: 992 --bindir=DIR user executables [EPREFIX/bin] 993 --sbindir=DIR system admin executables [EPREFIX/sbin] 994 --libexecdir=DIR program executables [EPREFIX/libexec] 995 --datadir=DIR read-only architecture-independent data [PREFIX/share] 996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 998 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 999 --libdir=DIR object code libraries [EPREFIX/lib] 1000 --includedir=DIR C header files [PREFIX/include] 1001 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1002 --infodir=DIR info documentation [PREFIX/info] 1003 --mandir=DIR man documentation [PREFIX/man] 1004_ACEOF 1005 1006 cat <<\_ACEOF 1007 1008Program names: 1009 --program-prefix=PREFIX prepend PREFIX to installed program names 1010 --program-suffix=SUFFIX append SUFFIX to installed program names 1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1012 1013System types: 1014 --build=BUILD configure for building on BUILD [guessed] 1015 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1016_ACEOF 1017fi 1018 1019if test -n "$ac_init_help"; then 1020 case $ac_init_help in 1021 short | recursive ) echo "Configuration of oto 0.5:";; 1022 esac 1023 cat <<\_ACEOF 1024 1025Optional Features: 1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1028 --disable-dependency-tracking speeds up one-time build 1029 --enable-dependency-tracking do not reject slow dependency extractors 1030 --enable-static[=PKGS] 1031 build static libraries [default=no] 1032 --enable-shared[=PKGS] 1033 build shared libraries [default=yes] 1034 --enable-fast-install[=PKGS] 1035 optimize for fast installation [default=yes] 1036 --disable-libtool-lock avoid locking (might break parallel builds) 1037 1038Optional Packages: 1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1041 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1042 --with-pic try to use only PIC/non-PIC objects [default=use 1043 both] 1044 --with-tags[=TAGS] 1045 include additional configurations [automatic] 1046 1047Some influential environment variables: 1048 CC C compiler command 1049 CFLAGS C compiler flags 1050 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1051 nonstandard directory <lib dir> 1052 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1053 headers in a nonstandard directory <include dir> 1054 CPP C preprocessor 1055 CXX C++ compiler command 1056 CXXFLAGS C++ compiler flags 1057 CXXCPP C++ preprocessor 1058 F77 Fortran 77 compiler command 1059 FFLAGS Fortran 77 compiler flags 1060 1061Use these variables to override the choices made by `configure' or to help 1062it to find libraries and programs with nonstandard names/locations. 1063 1064_ACEOF 1065fi 1066 1067if test "$ac_init_help" = "recursive"; then 1068 # If there are subdirs, report their specific --help. 1069 ac_popdir=`pwd` 1070 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1071 test -d $ac_dir || continue 1072 ac_builddir=. 1073 1074if test "$ac_dir" != .; then 1075 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1076 # A "../" for each directory in $ac_dir_suffix. 1077 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1078else 1079 ac_dir_suffix= ac_top_builddir= 1080fi 1081 1082case $srcdir in 1083 .) # No --srcdir option. We are building in place. 1084 ac_srcdir=. 1085 if test -z "$ac_top_builddir"; then 1086 ac_top_srcdir=. 1087 else 1088 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1089 fi ;; 1090 [\\/]* | ?:[\\/]* ) # Absolute path. 1091 ac_srcdir=$srcdir$ac_dir_suffix; 1092 ac_top_srcdir=$srcdir ;; 1093 *) # Relative path. 1094 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1095 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1096esac 1097 1098# Do not use `cd foo && pwd` to compute absolute paths, because 1099# the directories may not exist. 1100case `pwd` in 1101.) ac_abs_builddir="$ac_dir";; 1102*) 1103 case "$ac_dir" in 1104 .) ac_abs_builddir=`pwd`;; 1105 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1106 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1107 esac;; 1108esac 1109case $ac_abs_builddir in 1110.) ac_abs_top_builddir=${ac_top_builddir}.;; 1111*) 1112 case ${ac_top_builddir}. in 1113 .) ac_abs_top_builddir=$ac_abs_builddir;; 1114 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1115 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1116 esac;; 1117esac 1118case $ac_abs_builddir in 1119.) ac_abs_srcdir=$ac_srcdir;; 1120*) 1121 case $ac_srcdir in 1122 .) ac_abs_srcdir=$ac_abs_builddir;; 1123 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1124 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1125 esac;; 1126esac 1127case $ac_abs_builddir in 1128.) ac_abs_top_srcdir=$ac_top_srcdir;; 1129*) 1130 case $ac_top_srcdir in 1131 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1132 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1133 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1134 esac;; 1135esac 1136 1137 cd $ac_dir 1138 # Check for guested configure; otherwise get Cygnus style configure. 1139 if test -f $ac_srcdir/configure.gnu; then 1140 echo 1141 $SHELL $ac_srcdir/configure.gnu --help=recursive 1142 elif test -f $ac_srcdir/configure; then 1143 echo 1144 $SHELL $ac_srcdir/configure --help=recursive 1145 elif test -f $ac_srcdir/configure.ac || 1146 test -f $ac_srcdir/configure.in; then 1147 echo 1148 $ac_configure --help 1149 else 1150 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1151 fi 1152 cd $ac_popdir 1153 done 1154fi 1155 1156test -n "$ac_init_help" && exit 0 1157if $ac_init_version; then 1158 cat <<\_ACEOF 1159oto configure 0.5 1160generated by GNU Autoconf 2.59 1161 1162Copyright (C) 2003 Free Software Foundation, Inc. 1163This configure script is free software; the Free Software Foundation 1164gives unlimited permission to copy, distribute and modify it. 1165_ACEOF 1166 exit 0 1167fi 1168exec 5>config.log 1169cat >&5 <<_ACEOF 1170This file contains any messages produced by compilers while 1171running configure, to aid debugging if configure makes a mistake. 1172 1173It was created by oto $as_me 0.5, which was 1174generated by GNU Autoconf 2.59. Invocation command line was 1175 1176 $ $0 $@ 1177 1178_ACEOF 1179{ 1180cat <<_ASUNAME 1181## --------- ## 1182## Platform. ## 1183## --------- ## 1184 1185hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1186uname -m = `(uname -m) 2>/dev/null || echo unknown` 1187uname -r = `(uname -r) 2>/dev/null || echo unknown` 1188uname -s = `(uname -s) 2>/dev/null || echo unknown` 1189uname -v = `(uname -v) 2>/dev/null || echo unknown` 1190 1191/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1192/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1193 1194/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1195/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1196/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1197hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1198/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1199/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1200/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1201 1202_ASUNAME 1203 1204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1205for as_dir in $PATH 1206do 1207 IFS=$as_save_IFS 1208 test -z "$as_dir" && as_dir=. 1209 echo "PATH: $as_dir" 1210done 1211 1212} >&5 1213 1214cat >&5 <<_ACEOF 1215 1216 1217## ----------- ## 1218## Core tests. ## 1219## ----------- ## 1220 1221_ACEOF 1222 1223 1224# Keep a trace of the command line. 1225# Strip out --no-create and --no-recursion so they do not pile up. 1226# Strip out --silent because we don't want to record it for future runs. 1227# Also quote any args containing shell meta-characters. 1228# Make two passes to allow for proper duplicate-argument suppression. 1229ac_configure_args= 1230ac_configure_args0= 1231ac_configure_args1= 1232ac_sep= 1233ac_must_keep_next=false 1234for ac_pass in 1 2 1235do 1236 for ac_arg 1237 do 1238 case $ac_arg in 1239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1241 | -silent | --silent | --silen | --sile | --sil) 1242 continue ;; 1243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1245 esac 1246 case $ac_pass in 1247 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1248 2) 1249 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1250 if test $ac_must_keep_next = true; then 1251 ac_must_keep_next=false # Got value, back to normal. 1252 else 1253 case $ac_arg in 1254 *=* | --config-cache | -C | -disable-* | --disable-* \ 1255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1257 | -with-* | --with-* | -without-* | --without-* | --x) 1258 case "$ac_configure_args0 " in 1259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1260 esac 1261 ;; 1262 -* ) ac_must_keep_next=true ;; 1263 esac 1264 fi 1265 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1266 # Get rid of the leading space. 1267 ac_sep=" " 1268 ;; 1269 esac 1270 done 1271done 1272$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1273$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1274 1275# When interrupted or exit'd, cleanup temporary files, and complete 1276# config.log. We remove comments because anyway the quotes in there 1277# would cause problems or look ugly. 1278# WARNING: Be sure not to use single quotes in there, as some shells, 1279# such as our DU 5.0 friend, will then `close' the trap. 1280trap 'exit_status=$? 1281 # Save into config.log some information that might help in debugging. 1282 { 1283 echo 1284 1285 cat <<\_ASBOX 1286## ---------------- ## 1287## Cache variables. ## 1288## ---------------- ## 1289_ASBOX 1290 echo 1291 # The following way of writing the cache mishandles newlines in values, 1292{ 1293 (set) 2>&1 | 1294 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1295 *ac_space=\ *) 1296 sed -n \ 1297 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1299 ;; 1300 *) 1301 sed -n \ 1302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1303 ;; 1304 esac; 1305} 1306 echo 1307 1308 cat <<\_ASBOX 1309## ----------------- ## 1310## Output variables. ## 1311## ----------------- ## 1312_ASBOX 1313 echo 1314 for ac_var in $ac_subst_vars 1315 do 1316 eval ac_val=$`echo $ac_var` 1317 echo "$ac_var='"'"'$ac_val'"'"'" 1318 done | sort 1319 echo 1320 1321 if test -n "$ac_subst_files"; then 1322 cat <<\_ASBOX 1323## ------------- ## 1324## Output files. ## 1325## ------------- ## 1326_ASBOX 1327 echo 1328 for ac_var in $ac_subst_files 1329 do 1330 eval ac_val=$`echo $ac_var` 1331 echo "$ac_var='"'"'$ac_val'"'"'" 1332 done | sort 1333 echo 1334 fi 1335 1336 if test -s confdefs.h; then 1337 cat <<\_ASBOX 1338## ----------- ## 1339## confdefs.h. ## 1340## ----------- ## 1341_ASBOX 1342 echo 1343 sed "/^$/d" confdefs.h | sort 1344 echo 1345 fi 1346 test "$ac_signal" != 0 && 1347 echo "$as_me: caught signal $ac_signal" 1348 echo "$as_me: exit $exit_status" 1349 } >&5 1350 rm -f core *.core && 1351 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1352 exit $exit_status 1353 ' 0 1354for ac_signal in 1 2 13 15; do 1355 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1356done 1357ac_signal=0 1358 1359# confdefs.h avoids OS command line length limits that DEFS can exceed. 1360rm -rf conftest* confdefs.h 1361# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1362echo >confdefs.h 1363 1364# Predefined preprocessor variables. 1365 1366cat >>confdefs.h <<_ACEOF 1367#define PACKAGE_NAME "$PACKAGE_NAME" 1368_ACEOF 1369 1370 1371cat >>confdefs.h <<_ACEOF 1372#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1373_ACEOF 1374 1375 1376cat >>confdefs.h <<_ACEOF 1377#define PACKAGE_VERSION "$PACKAGE_VERSION" 1378_ACEOF 1379 1380 1381cat >>confdefs.h <<_ACEOF 1382#define PACKAGE_STRING "$PACKAGE_STRING" 1383_ACEOF 1384 1385 1386cat >>confdefs.h <<_ACEOF 1387#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1388_ACEOF 1389 1390 1391# Let the site file select an alternate cache file if it wants to. 1392# Prefer explicitly selected file to automatically selected ones. 1393if test -z "$CONFIG_SITE"; then 1394 if test "x$prefix" != xNONE; then 1395 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1396 else 1397 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1398 fi 1399fi 1400for ac_site_file in $CONFIG_SITE; do 1401 if test -r "$ac_site_file"; then 1402 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1403echo "$as_me: loading site script $ac_site_file" >&6;} 1404 sed 's/^/| /' "$ac_site_file" >&5 1405 . "$ac_site_file" 1406 fi 1407done 1408 1409if test -r "$cache_file"; then 1410 # Some versions of bash will fail to source /dev/null (special 1411 # files actually), so we avoid doing that. 1412 if test -f "$cache_file"; then 1413 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1414echo "$as_me: loading cache $cache_file" >&6;} 1415 case $cache_file in 1416 [\\/]* | ?:[\\/]* ) . $cache_file;; 1417 *) . ./$cache_file;; 1418 esac 1419 fi 1420else 1421 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1422echo "$as_me: creating cache $cache_file" >&6;} 1423 >$cache_file 1424fi 1425 1426# Check that the precious variables saved in the cache have kept the same 1427# value. 1428ac_cache_corrupted=false 1429for ac_var in `(set) 2>&1 | 1430 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1431 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1432 eval ac_new_set=\$ac_env_${ac_var}_set 1433 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1434 eval ac_new_val="\$ac_env_${ac_var}_value" 1435 case $ac_old_set,$ac_new_set in 1436 set,) 1437 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1438echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1439 ac_cache_corrupted=: ;; 1440 ,set) 1441 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1442echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1443 ac_cache_corrupted=: ;; 1444 ,);; 1445 *) 1446 if test "x$ac_old_val" != "x$ac_new_val"; then 1447 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1448echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1449 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1450echo "$as_me: former value: $ac_old_val" >&2;} 1451 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1452echo "$as_me: current value: $ac_new_val" >&2;} 1453 ac_cache_corrupted=: 1454 fi;; 1455 esac 1456 # Pass precious variables to config.status. 1457 if test "$ac_new_set" = set; then 1458 case $ac_new_val in 1459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1460 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1461 *) ac_arg=$ac_var=$ac_new_val ;; 1462 esac 1463 case " $ac_configure_args " in 1464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1465 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1466 esac 1467 fi 1468done 1469if $ac_cache_corrupted; then 1470 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1471echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1472 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1473echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1474 { (exit 1); exit 1; }; } 1475fi 1476 1477ac_ext=c 1478ac_cpp='$CPP $CPPFLAGS' 1479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1481ac_compiler_gnu=$ac_cv_c_compiler_gnu 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509ac_aux_dir= 1510for ac_dir in config $srcdir/config; do 1511 if test -f $ac_dir/install-sh; then 1512 ac_aux_dir=$ac_dir 1513 ac_install_sh="$ac_aux_dir/install-sh -c" 1514 break 1515 elif test -f $ac_dir/install.sh; then 1516 ac_aux_dir=$ac_dir 1517 ac_install_sh="$ac_aux_dir/install.sh -c" 1518 break 1519 elif test -f $ac_dir/shtool; then 1520 ac_aux_dir=$ac_dir 1521 ac_install_sh="$ac_aux_dir/shtool install -c" 1522 break 1523 fi 1524done 1525if test -z "$ac_aux_dir"; then 1526 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 1527echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} 1528 { (exit 1); exit 1; }; } 1529fi 1530ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1531ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1532ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1533 1534am__api_version="1.9" 1535# Find a good install program. We prefer a C program (faster), 1536# so one script is as good as another. But avoid the broken or 1537# incompatible versions: 1538# SysV /etc/install, /usr/sbin/install 1539# SunOS /usr/etc/install 1540# IRIX /sbin/install 1541# AIX /bin/install 1542# AmigaOS /C/install, which installs bootblocks on floppy discs 1543# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1544# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1545# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1546# OS/2's system install, which has a completely different semantic 1547# ./install, which can be erroneously created by make from ./install.sh. 1548echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1549echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1550if test -z "$INSTALL"; then 1551if test "${ac_cv_path_install+set}" = set; then 1552 echo $ECHO_N "(cached) $ECHO_C" >&6 1553else 1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1555for as_dir in $PATH 1556do 1557 IFS=$as_save_IFS 1558 test -z "$as_dir" && as_dir=. 1559 # Account for people who put trailing slashes in PATH elements. 1560case $as_dir/ in 1561 ./ | .// | /cC/* | \ 1562 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1563 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1564 /usr/ucb/* ) ;; 1565 *) 1566 # OSF1 and SCO ODT 3.0 have their own names for install. 1567 # Don't use installbsd from OSF since it installs stuff as root 1568 # by default. 1569 for ac_prog in ginstall scoinst install; do 1570 for ac_exec_ext in '' $ac_executable_extensions; do 1571 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1572 if test $ac_prog = install && 1573 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1574 # AIX install. It has an incompatible calling convention. 1575 : 1576 elif test $ac_prog = install && 1577 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1578 # program-specific install script used by HP pwplus--don't use. 1579 : 1580 else 1581 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1582 break 3 1583 fi 1584 fi 1585 done 1586 done 1587 ;; 1588esac 1589done 1590 1591 1592fi 1593 if test "${ac_cv_path_install+set}" = set; then 1594 INSTALL=$ac_cv_path_install 1595 else 1596 # As a last resort, use the slow shell script. We don't cache a 1597 # path for INSTALL within a source directory, because that will 1598 # break other packages using the cache if that directory is 1599 # removed, or if the path is relative. 1600 INSTALL=$ac_install_sh 1601 fi 1602fi 1603echo "$as_me:$LINENO: result: $INSTALL" >&5 1604echo "${ECHO_T}$INSTALL" >&6 1605 1606# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1607# It thinks the first close brace ends the variable substitution. 1608test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1609 1610test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1611 1612test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1613 1614echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1615echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1616# Just in case 1617sleep 1 1618echo timestamp > conftest.file 1619# Do `set' in a subshell so we don't clobber the current shell's 1620# arguments. Must try -L first in case configure is actually a 1621# symlink; some systems play weird games with the mod time of symlinks 1622# (eg FreeBSD returns the mod time of the symlink's containing 1623# directory). 1624if ( 1625 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1626 if test "$*" = "X"; then 1627 # -L didn't work. 1628 set X `ls -t $srcdir/configure conftest.file` 1629 fi 1630 rm -f conftest.file 1631 if test "$*" != "X $srcdir/configure conftest.file" \ 1632 && test "$*" != "X conftest.file $srcdir/configure"; then 1633 1634 # If neither matched, then we have a broken ls. This can happen 1635 # if, for instance, CONFIG_SHELL is bash and it inherits a 1636 # broken ls alias from the environment. This has actually 1637 # happened. Such a system could not be considered "sane". 1638 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1639alias in your environment" >&5 1640echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1641alias in your environment" >&2;} 1642 { (exit 1); exit 1; }; } 1643 fi 1644 1645 test "$2" = conftest.file 1646 ) 1647then 1648 # Ok. 1649 : 1650else 1651 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1652Check your system clock" >&5 1653echo "$as_me: error: newly created file is older than distributed files! 1654Check your system clock" >&2;} 1655 { (exit 1); exit 1; }; } 1656fi 1657echo "$as_me:$LINENO: result: yes" >&5 1658echo "${ECHO_T}yes" >&6 1659test "$program_prefix" != NONE && 1660 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1661# Use a double $ so make ignores it. 1662test "$program_suffix" != NONE && 1663 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1664# Double any \ or $. echo might interpret backslashes. 1665# By default was `s,x,x', remove it if useless. 1666cat <<\_ACEOF >conftest.sed 1667s/[\\$]/&&/g;s/;s,x,x,$// 1668_ACEOF 1669program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1670rm conftest.sed 1671 1672# expand $ac_aux_dir to an absolute path 1673am_aux_dir=`cd $ac_aux_dir && pwd` 1674 1675test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1676# Use eval to expand $SHELL 1677if eval "$MISSING --run true"; then 1678 am_missing_run="$MISSING --run " 1679else 1680 am_missing_run= 1681 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1682echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1683fi 1684 1685if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1686 # We used to keeping the `.' as first argument, in order to 1687 # allow $(mkdir_p) to be used without argument. As in 1688 # $(mkdir_p) $(somedir) 1689 # where $(somedir) is conditionally defined. However this is wrong 1690 # for two reasons: 1691 # 1. if the package is installed by a user who cannot write `.' 1692 # make install will fail, 1693 # 2. the above comment should most certainly read 1694 # $(mkdir_p) $(DESTDIR)$(somedir) 1695 # so it does not work when $(somedir) is undefined and 1696 # $(DESTDIR) is not. 1697 # To support the latter case, we have to write 1698 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1699 # so the `.' trick is pointless. 1700 mkdir_p='mkdir -p --' 1701else 1702 # On NextStep and OpenStep, the `mkdir' command does not 1703 # recognize any option. It will interpret all options as 1704 # directories to create, and then abort because `.' already 1705 # exists. 1706 for d in ./-p ./--version; 1707 do 1708 test -d $d && rmdir $d 1709 done 1710 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1711 if test -f "$ac_aux_dir/mkinstalldirs"; then 1712 mkdir_p='$(mkinstalldirs)' 1713 else 1714 mkdir_p='$(install_sh) -d' 1715 fi 1716fi 1717 1718for ac_prog in gawk mawk nawk awk 1719do 1720 # Extract the first word of "$ac_prog", so it can be a program name with args. 1721set dummy $ac_prog; ac_word=$2 1722echo "$as_me:$LINENO: checking for $ac_word" >&5 1723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1724if test "${ac_cv_prog_AWK+set}" = set; then 1725 echo $ECHO_N "(cached) $ECHO_C" >&6 1726else 1727 if test -n "$AWK"; then 1728 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1729else 1730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1731for as_dir in $PATH 1732do 1733 IFS=$as_save_IFS 1734 test -z "$as_dir" && as_dir=. 1735 for ac_exec_ext in '' $ac_executable_extensions; do 1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1737 ac_cv_prog_AWK="$ac_prog" 1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1739 break 2 1740 fi 1741done 1742done 1743 1744fi 1745fi 1746AWK=$ac_cv_prog_AWK 1747if test -n "$AWK"; then 1748 echo "$as_me:$LINENO: result: $AWK" >&5 1749echo "${ECHO_T}$AWK" >&6 1750else 1751 echo "$as_me:$LINENO: result: no" >&5 1752echo "${ECHO_T}no" >&6 1753fi 1754 1755 test -n "$AWK" && break 1756done 1757 1758echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1759echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1760set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1761if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1762 echo $ECHO_N "(cached) $ECHO_C" >&6 1763else 1764 cat >conftest.make <<\_ACEOF 1765all: 1766 @echo 'ac_maketemp="$(MAKE)"' 1767_ACEOF 1768# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1769eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1770if test -n "$ac_maketemp"; then 1771 eval ac_cv_prog_make_${ac_make}_set=yes 1772else 1773 eval ac_cv_prog_make_${ac_make}_set=no 1774fi 1775rm -f conftest.make 1776fi 1777if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1778 echo "$as_me:$LINENO: result: yes" >&5 1779echo "${ECHO_T}yes" >&6 1780 SET_MAKE= 1781else 1782 echo "$as_me:$LINENO: result: no" >&5 1783echo "${ECHO_T}no" >&6 1784 SET_MAKE="MAKE=${MAKE-make}" 1785fi 1786 1787rm -rf .tst 2>/dev/null 1788mkdir .tst 2>/dev/null 1789if test -d .tst; then 1790 am__leading_dot=. 1791else 1792 am__leading_dot=_ 1793fi 1794rmdir .tst 2>/dev/null 1795 1796# test to see if srcdir already configured 1797if test "`cd $srcdir && pwd`" != "`pwd`" && 1798 test -f $srcdir/config.status; then 1799 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1800echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1801 { (exit 1); exit 1; }; } 1802fi 1803 1804# test whether we have cygpath 1805if test -z "$CYGPATH_W"; then 1806 if (cygpath --version) >/dev/null 2>/dev/null; then 1807 CYGPATH_W='cygpath -w' 1808 else 1809 CYGPATH_W=echo 1810 fi 1811fi 1812 1813 1814# Define the identity of the package. 1815 PACKAGE='oto' 1816 VERSION='0.5' 1817 1818 1819cat >>confdefs.h <<_ACEOF 1820#define PACKAGE "$PACKAGE" 1821_ACEOF 1822 1823 1824cat >>confdefs.h <<_ACEOF 1825#define VERSION "$VERSION" 1826_ACEOF 1827 1828# Some tools Automake needs. 1829 1830ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1831 1832 1833AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1834 1835 1836AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1837 1838 1839AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1840 1841 1842MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1843 1844install_sh=${install_sh-"$am_aux_dir/install-sh"} 1845 1846# Installed binaries are usually stripped using `strip' when the user 1847# run `make install-strip'. However `strip' might not be the right 1848# tool to use in cross-compilation environments, therefore Automake 1849# will honor the `STRIP' environment variable to overrule this program. 1850if test "$cross_compiling" != no; then 1851 if test -n "$ac_tool_prefix"; then 1852 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1853set dummy ${ac_tool_prefix}strip; ac_word=$2 1854echo "$as_me:$LINENO: checking for $ac_word" >&5 1855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1856if test "${ac_cv_prog_STRIP+set}" = set; then 1857 echo $ECHO_N "(cached) $ECHO_C" >&6 1858else 1859 if test -n "$STRIP"; then 1860 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1861else 1862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1863for as_dir in $PATH 1864do 1865 IFS=$as_save_IFS 1866 test -z "$as_dir" && as_dir=. 1867 for ac_exec_ext in '' $ac_executable_extensions; do 1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1869 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1871 break 2 1872 fi 1873done 1874done 1875 1876fi 1877fi 1878STRIP=$ac_cv_prog_STRIP 1879if test -n "$STRIP"; then 1880 echo "$as_me:$LINENO: result: $STRIP" >&5 1881echo "${ECHO_T}$STRIP" >&6 1882else 1883 echo "$as_me:$LINENO: result: no" >&5 1884echo "${ECHO_T}no" >&6 1885fi 1886 1887fi 1888if test -z "$ac_cv_prog_STRIP"; then 1889 ac_ct_STRIP=$STRIP 1890 # Extract the first word of "strip", so it can be a program name with args. 1891set dummy strip; ac_word=$2 1892echo "$as_me:$LINENO: checking for $ac_word" >&5 1893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1894if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1895 echo $ECHO_N "(cached) $ECHO_C" >&6 1896else 1897 if test -n "$ac_ct_STRIP"; then 1898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1899else 1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1901for as_dir in $PATH 1902do 1903 IFS=$as_save_IFS 1904 test -z "$as_dir" && as_dir=. 1905 for ac_exec_ext in '' $ac_executable_extensions; do 1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1907 ac_cv_prog_ac_ct_STRIP="strip" 1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1909 break 2 1910 fi 1911done 1912done 1913 1914 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1915fi 1916fi 1917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1918if test -n "$ac_ct_STRIP"; then 1919 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1920echo "${ECHO_T}$ac_ct_STRIP" >&6 1921else 1922 echo "$as_me:$LINENO: result: no" >&5 1923echo "${ECHO_T}no" >&6 1924fi 1925 1926 STRIP=$ac_ct_STRIP 1927else 1928 STRIP="$ac_cv_prog_STRIP" 1929fi 1930 1931fi 1932INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1933 1934# We need awk for the "check" target. The system "awk" is bad on 1935# some platforms. 1936# Always define AMTAR for backward compatibility. 1937 1938AMTAR=${AMTAR-"${am_missing_run}tar"} 1939 1940am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1941 1942 1943 1944 1945 1946 1947 ac_config_headers="$ac_config_headers config.h" 1948 1949 1950# Checks for programs. 1951ac_ext=c 1952ac_cpp='$CPP $CPPFLAGS' 1953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1955ac_compiler_gnu=$ac_cv_c_compiler_gnu 1956if test -n "$ac_tool_prefix"; then 1957 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1958set dummy ${ac_tool_prefix}gcc; ac_word=$2 1959echo "$as_me:$LINENO: checking for $ac_word" >&5 1960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1961if test "${ac_cv_prog_CC+set}" = set; then 1962 echo $ECHO_N "(cached) $ECHO_C" >&6 1963else 1964 if test -n "$CC"; then 1965 ac_cv_prog_CC="$CC" # Let the user override the test. 1966else 1967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1968for as_dir in $PATH 1969do 1970 IFS=$as_save_IFS 1971 test -z "$as_dir" && as_dir=. 1972 for ac_exec_ext in '' $ac_executable_extensions; do 1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1974 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1976 break 2 1977 fi 1978done 1979done 1980 1981fi 1982fi 1983CC=$ac_cv_prog_CC 1984if test -n "$CC"; then 1985 echo "$as_me:$LINENO: result: $CC" >&5 1986echo "${ECHO_T}$CC" >&6 1987else 1988 echo "$as_me:$LINENO: result: no" >&5 1989echo "${ECHO_T}no" >&6 1990fi 1991 1992fi 1993if test -z "$ac_cv_prog_CC"; then 1994 ac_ct_CC=$CC 1995 # Extract the first word of "gcc", so it can be a program name with args. 1996set dummy gcc; ac_word=$2 1997echo "$as_me:$LINENO: checking for $ac_word" >&5 1998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1999if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2000 echo $ECHO_N "(cached) $ECHO_C" >&6 2001else 2002 if test -n "$ac_ct_CC"; then 2003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2004else 2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2006for as_dir in $PATH 2007do 2008 IFS=$as_save_IFS 2009 test -z "$as_dir" && as_dir=. 2010 for ac_exec_ext in '' $ac_executable_extensions; do 2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2012 ac_cv_prog_ac_ct_CC="gcc" 2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2014 break 2 2015 fi 2016done 2017done 2018 2019fi 2020fi 2021ac_ct_CC=$ac_cv_prog_ac_ct_CC 2022if test -n "$ac_ct_CC"; then 2023 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2024echo "${ECHO_T}$ac_ct_CC" >&6 2025else 2026 echo "$as_me:$LINENO: result: no" >&5 2027echo "${ECHO_T}no" >&6 2028fi 2029 2030 CC=$ac_ct_CC 2031else 2032 CC="$ac_cv_prog_CC" 2033fi 2034 2035if test -z "$CC"; then 2036 if test -n "$ac_tool_prefix"; then 2037 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2038set dummy ${ac_tool_prefix}cc; ac_word=$2 2039echo "$as_me:$LINENO: checking for $ac_word" >&5 2040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2041if test "${ac_cv_prog_CC+set}" = set; then 2042 echo $ECHO_N "(cached) $ECHO_C" >&6 2043else 2044 if test -n "$CC"; then 2045 ac_cv_prog_CC="$CC" # Let the user override the test. 2046else 2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2048for as_dir in $PATH 2049do 2050 IFS=$as_save_IFS 2051 test -z "$as_dir" && as_dir=. 2052 for ac_exec_ext in '' $ac_executable_extensions; do 2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2054 ac_cv_prog_CC="${ac_tool_prefix}cc" 2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2056 break 2 2057 fi 2058done 2059done 2060 2061fi 2062fi 2063CC=$ac_cv_prog_CC 2064if test -n "$CC"; then 2065 echo "$as_me:$LINENO: result: $CC" >&5 2066echo "${ECHO_T}$CC" >&6 2067else 2068 echo "$as_me:$LINENO: result: no" >&5 2069echo "${ECHO_T}no" >&6 2070fi 2071 2072fi 2073if test -z "$ac_cv_prog_CC"; then 2074 ac_ct_CC=$CC 2075 # Extract the first word of "cc", so it can be a program name with args. 2076set dummy cc; ac_word=$2 2077echo "$as_me:$LINENO: checking for $ac_word" >&5 2078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2079if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2080 echo $ECHO_N "(cached) $ECHO_C" >&6 2081else 2082 if test -n "$ac_ct_CC"; then 2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2084else 2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2086for as_dir in $PATH 2087do 2088 IFS=$as_save_IFS 2089 test -z "$as_dir" && as_dir=. 2090 for ac_exec_ext in '' $ac_executable_extensions; do 2091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2092 ac_cv_prog_ac_ct_CC="cc" 2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2094 break 2 2095 fi 2096done 2097done 2098 2099fi 2100fi 2101ac_ct_CC=$ac_cv_prog_ac_ct_CC 2102if test -n "$ac_ct_CC"; then 2103 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2104echo "${ECHO_T}$ac_ct_CC" >&6 2105else 2106 echo "$as_me:$LINENO: result: no" >&5 2107echo "${ECHO_T}no" >&6 2108fi 2109 2110 CC=$ac_ct_CC 2111else 2112 CC="$ac_cv_prog_CC" 2113fi 2114 2115fi 2116if test -z "$CC"; then 2117 # Extract the first word of "cc", so it can be a program name with args. 2118set dummy cc; ac_word=$2 2119echo "$as_me:$LINENO: checking for $ac_word" >&5 2120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2121if test "${ac_cv_prog_CC+set}" = set; then 2122 echo $ECHO_N "(cached) $ECHO_C" >&6 2123else 2124 if test -n "$CC"; then 2125 ac_cv_prog_CC="$CC" # Let the user override the test. 2126else 2127 ac_prog_rejected=no 2128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2129for as_dir in $PATH 2130do 2131 IFS=$as_save_IFS 2132 test -z "$as_dir" && as_dir=. 2133 for ac_exec_ext in '' $ac_executable_extensions; do 2134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2135 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2136 ac_prog_rejected=yes 2137 continue 2138 fi 2139 ac_cv_prog_CC="cc" 2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2141 break 2 2142 fi 2143done 2144done 2145 2146if test $ac_prog_rejected = yes; then 2147 # We found a bogon in the path, so make sure we never use it. 2148 set dummy $ac_cv_prog_CC 2149 shift 2150 if test $# != 0; then 2151 # We chose a different compiler from the bogus one. 2152 # However, it has the same basename, so the bogon will be chosen 2153 # first if we set CC to just the basename; use the full file name. 2154 shift 2155 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2156 fi 2157fi 2158fi 2159fi 2160CC=$ac_cv_prog_CC 2161if test -n "$CC"; then 2162 echo "$as_me:$LINENO: result: $CC" >&5 2163echo "${ECHO_T}$CC" >&6 2164else 2165 echo "$as_me:$LINENO: result: no" >&5 2166echo "${ECHO_T}no" >&6 2167fi 2168 2169fi 2170if test -z "$CC"; then 2171 if test -n "$ac_tool_prefix"; then 2172 for ac_prog in cl 2173 do 2174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2175set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2176echo "$as_me:$LINENO: checking for $ac_word" >&5 2177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2178if test "${ac_cv_prog_CC+set}" = set; then 2179 echo $ECHO_N "(cached) $ECHO_C" >&6 2180else 2181 if test -n "$CC"; then 2182 ac_cv_prog_CC="$CC" # Let the user override the test. 2183else 2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2185for as_dir in $PATH 2186do 2187 IFS=$as_save_IFS 2188 test -z "$as_dir" && as_dir=. 2189 for ac_exec_ext in '' $ac_executable_extensions; do 2190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2193 break 2 2194 fi 2195done 2196done 2197 2198fi 2199fi 2200CC=$ac_cv_prog_CC 2201if test -n "$CC"; then 2202 echo "$as_me:$LINENO: result: $CC" >&5 2203echo "${ECHO_T}$CC" >&6 2204else 2205 echo "$as_me:$LINENO: result: no" >&5 2206echo "${ECHO_T}no" >&6 2207fi 2208 2209 test -n "$CC" && break 2210 done 2211fi 2212if test -z "$CC"; then 2213 ac_ct_CC=$CC 2214 for ac_prog in cl 2215do 2216 # Extract the first word of "$ac_prog", so it can be a program name with args. 2217set dummy $ac_prog; ac_word=$2 2218echo "$as_me:$LINENO: checking for $ac_word" >&5 2219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2220if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2221 echo $ECHO_N "(cached) $ECHO_C" >&6 2222else 2223 if test -n "$ac_ct_CC"; then 2224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2225else 2226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2227for as_dir in $PATH 2228do 2229 IFS=$as_save_IFS 2230 test -z "$as_dir" && as_dir=. 2231 for ac_exec_ext in '' $ac_executable_extensions; do 2232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2233 ac_cv_prog_ac_ct_CC="$ac_prog" 2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2235 break 2 2236 fi 2237done 2238done 2239 2240fi 2241fi 2242ac_ct_CC=$ac_cv_prog_ac_ct_CC 2243if test -n "$ac_ct_CC"; then 2244 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2245echo "${ECHO_T}$ac_ct_CC" >&6 2246else 2247 echo "$as_me:$LINENO: result: no" >&5 2248echo "${ECHO_T}no" >&6 2249fi 2250 2251 test -n "$ac_ct_CC" && break 2252done 2253 2254 CC=$ac_ct_CC 2255fi 2256 2257fi 2258 2259 2260test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2261See \`config.log' for more details." >&5 2262echo "$as_me: error: no acceptable C compiler found in \$PATH 2263See \`config.log' for more details." >&2;} 2264 { (exit 1); exit 1; }; } 2265 2266# Provide some information about the compiler. 2267echo "$as_me:$LINENO:" \ 2268 "checking for C compiler version" >&5 2269ac_compiler=`set X $ac_compile; echo $2` 2270{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2271 (eval $ac_compiler --version </dev/null >&5) 2>&5 2272 ac_status=$? 2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2274 (exit $ac_status); } 2275{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2276 (eval $ac_compiler -v </dev/null >&5) 2>&5 2277 ac_status=$? 2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2279 (exit $ac_status); } 2280{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2281 (eval $ac_compiler -V </dev/null >&5) 2>&5 2282 ac_status=$? 2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2284 (exit $ac_status); } 2285 2286cat >conftest.$ac_ext <<_ACEOF 2287/* confdefs.h. */ 2288_ACEOF 2289cat confdefs.h >>conftest.$ac_ext 2290cat >>conftest.$ac_ext <<_ACEOF 2291/* end confdefs.h. */ 2292 2293int 2294main () 2295{ 2296 2297 ; 2298 return 0; 2299} 2300_ACEOF 2301ac_clean_files_save=$ac_clean_files 2302ac_clean_files="$ac_clean_files a.out a.exe b.out" 2303# Try to create an executable without -o first, disregard a.out. 2304# It will help us diagnose broken compilers, and finding out an intuition 2305# of exeext. 2306echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2307echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2308ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2309if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2310 (eval $ac_link_default) 2>&5 2311 ac_status=$? 2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2313 (exit $ac_status); }; then 2314 # Find the output, starting from the most likely. This scheme is 2315# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2316# resort. 2317 2318# Be careful to initialize this variable, since it used to be cached. 2319# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2320ac_cv_exeext= 2321# b.out is created by i960 compilers. 2322for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2323do 2324 test -f "$ac_file" || continue 2325 case $ac_file in 2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2327 ;; 2328 conftest.$ac_ext ) 2329 # This is the source file. 2330 ;; 2331 [ab].out ) 2332 # We found the default executable, but exeext='' is most 2333 # certainly right. 2334 break;; 2335 *.* ) 2336 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2337 # FIXME: I believe we export ac_cv_exeext for Libtool, 2338 # but it would be cool to find out if it's true. Does anybody 2339 # maintain Libtool? --akim. 2340 export ac_cv_exeext 2341 break;; 2342 * ) 2343 break;; 2344 esac 2345done 2346else 2347 echo "$as_me: failed program was:" >&5 2348sed 's/^/| /' conftest.$ac_ext >&5 2349 2350{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2351See \`config.log' for more details." >&5 2352echo "$as_me: error: C compiler cannot create executables 2353See \`config.log' for more details." >&2;} 2354 { (exit 77); exit 77; }; } 2355fi 2356 2357ac_exeext=$ac_cv_exeext 2358echo "$as_me:$LINENO: result: $ac_file" >&5 2359echo "${ECHO_T}$ac_file" >&6 2360 2361# Check the compiler produces executables we can run. If not, either 2362# the compiler is broken, or we cross compile. 2363echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2364echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2365# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2366# If not cross compiling, check that we can run a simple program. 2367if test "$cross_compiling" != yes; then 2368 if { ac_try='./$ac_file' 2369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2370 (eval $ac_try) 2>&5 2371 ac_status=$? 2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2373 (exit $ac_status); }; }; then 2374 cross_compiling=no 2375 else 2376 if test "$cross_compiling" = maybe; then 2377 cross_compiling=yes 2378 else 2379 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2380If you meant to cross compile, use \`--host'. 2381See \`config.log' for more details." >&5 2382echo "$as_me: error: cannot run C compiled programs. 2383If you meant to cross compile, use \`--host'. 2384See \`config.log' for more details." >&2;} 2385 { (exit 1); exit 1; }; } 2386 fi 2387 fi 2388fi 2389echo "$as_me:$LINENO: result: yes" >&5 2390echo "${ECHO_T}yes" >&6 2391 2392rm -f a.out a.exe conftest$ac_cv_exeext b.out 2393ac_clean_files=$ac_clean_files_save 2394# Check the compiler produces executables we can run. If not, either 2395# the compiler is broken, or we cross compile. 2396echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2397echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2398echo "$as_me:$LINENO: result: $cross_compiling" >&5 2399echo "${ECHO_T}$cross_compiling" >&6 2400 2401echo "$as_me:$LINENO: checking for suffix of executables" >&5 2402echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2404 (eval $ac_link) 2>&5 2405 ac_status=$? 2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2407 (exit $ac_status); }; then 2408 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2409# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2410# work properly (i.e., refer to `conftest.exe'), while it won't with 2411# `rm'. 2412for ac_file in conftest.exe conftest conftest.*; do 2413 test -f "$ac_file" || continue 2414 case $ac_file in 2415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2416 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2417 export ac_cv_exeext 2418 break;; 2419 * ) break;; 2420 esac 2421done 2422else 2423 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2424See \`config.log' for more details." >&5 2425echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2426See \`config.log' for more details." >&2;} 2427 { (exit 1); exit 1; }; } 2428fi 2429 2430rm -f conftest$ac_cv_exeext 2431echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2432echo "${ECHO_T}$ac_cv_exeext" >&6 2433 2434rm -f conftest.$ac_ext 2435EXEEXT=$ac_cv_exeext 2436ac_exeext=$EXEEXT 2437echo "$as_me:$LINENO: checking for suffix of object files" >&5 2438echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2439if test "${ac_cv_objext+set}" = set; then 2440 echo $ECHO_N "(cached) $ECHO_C" >&6 2441else 2442 cat >conftest.$ac_ext <<_ACEOF 2443/* confdefs.h. */ 2444_ACEOF 2445cat confdefs.h >>conftest.$ac_ext 2446cat >>conftest.$ac_ext <<_ACEOF 2447/* end confdefs.h. */ 2448 2449int 2450main () 2451{ 2452 2453 ; 2454 return 0; 2455} 2456_ACEOF 2457rm -f conftest.o conftest.obj 2458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2459 (eval $ac_compile) 2>&5 2460 ac_status=$? 2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2462 (exit $ac_status); }; then 2463 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2464 case $ac_file in 2465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2466 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2467 break;; 2468 esac 2469done 2470else 2471 echo "$as_me: failed program was:" >&5 2472sed 's/^/| /' conftest.$ac_ext >&5 2473 2474{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2475See \`config.log' for more details." >&5 2476echo "$as_me: error: cannot compute suffix of object files: cannot compile 2477See \`config.log' for more details." >&2;} 2478 { (exit 1); exit 1; }; } 2479fi 2480 2481rm -f conftest.$ac_cv_objext conftest.$ac_ext 2482fi 2483echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2484echo "${ECHO_T}$ac_cv_objext" >&6 2485OBJEXT=$ac_cv_objext 2486ac_objext=$OBJEXT 2487echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2488echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2489if test "${ac_cv_c_compiler_gnu+set}" = set; then 2490 echo $ECHO_N "(cached) $ECHO_C" >&6 2491else 2492 cat >conftest.$ac_ext <<_ACEOF 2493/* confdefs.h. */ 2494_ACEOF 2495cat confdefs.h >>conftest.$ac_ext 2496cat >>conftest.$ac_ext <<_ACEOF 2497/* end confdefs.h. */ 2498 2499int 2500main () 2501{ 2502#ifndef __GNUC__ 2503 choke me 2504#endif 2505 2506 ; 2507 return 0; 2508} 2509_ACEOF 2510rm -f conftest.$ac_objext 2511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2512 (eval $ac_compile) 2>conftest.er1 2513 ac_status=$? 2514 grep -v '^ *+' conftest.er1 >conftest.err 2515 rm -f conftest.er1 2516 cat conftest.err >&5 2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2518 (exit $ac_status); } && 2519 { ac_try='test -z "$ac_c_werror_flag" 2520 || test ! -s conftest.err' 2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2522 (eval $ac_try) 2>&5 2523 ac_status=$? 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); }; } && 2526 { ac_try='test -s conftest.$ac_objext' 2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2528 (eval $ac_try) 2>&5 2529 ac_status=$? 2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2531 (exit $ac_status); }; }; then 2532 ac_compiler_gnu=yes 2533else 2534 echo "$as_me: failed program was:" >&5 2535sed 's/^/| /' conftest.$ac_ext >&5 2536 2537ac_compiler_gnu=no 2538fi 2539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2540ac_cv_c_compiler_gnu=$ac_compiler_gnu 2541 2542fi 2543echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2544echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2545GCC=`test $ac_compiler_gnu = yes && echo yes` 2546ac_test_CFLAGS=${CFLAGS+set} 2547ac_save_CFLAGS=$CFLAGS 2548CFLAGS="-g" 2549echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2550echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2551if test "${ac_cv_prog_cc_g+set}" = set; then 2552 echo $ECHO_N "(cached) $ECHO_C" >&6 2553else 2554 cat >conftest.$ac_ext <<_ACEOF 2555/* confdefs.h. */ 2556_ACEOF 2557cat confdefs.h >>conftest.$ac_ext 2558cat >>conftest.$ac_ext <<_ACEOF 2559/* end confdefs.h. */ 2560 2561int 2562main () 2563{ 2564 2565 ; 2566 return 0; 2567} 2568_ACEOF 2569rm -f conftest.$ac_objext 2570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2571 (eval $ac_compile) 2>conftest.er1 2572 ac_status=$? 2573 grep -v '^ *+' conftest.er1 >conftest.err 2574 rm -f conftest.er1 2575 cat conftest.err >&5 2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2577 (exit $ac_status); } && 2578 { ac_try='test -z "$ac_c_werror_flag" 2579 || test ! -s conftest.err' 2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2581 (eval $ac_try) 2>&5 2582 ac_status=$? 2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2584 (exit $ac_status); }; } && 2585 { ac_try='test -s conftest.$ac_objext' 2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2587 (eval $ac_try) 2>&5 2588 ac_status=$? 2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2590 (exit $ac_status); }; }; then 2591 ac_cv_prog_cc_g=yes 2592else 2593 echo "$as_me: failed program was:" >&5 2594sed 's/^/| /' conftest.$ac_ext >&5 2595 2596ac_cv_prog_cc_g=no 2597fi 2598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2599fi 2600echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2601echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2602if test "$ac_test_CFLAGS" = set; then 2603 CFLAGS=$ac_save_CFLAGS 2604elif test $ac_cv_prog_cc_g = yes; then 2605 if test "$GCC" = yes; then 2606 CFLAGS="-g -O2" 2607 else 2608 CFLAGS="-g" 2609 fi 2610else 2611 if test "$GCC" = yes; then 2612 CFLAGS="-O2" 2613 else 2614 CFLAGS= 2615 fi 2616fi 2617echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2618echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2619if test "${ac_cv_prog_cc_stdc+set}" = set; then 2620 echo $ECHO_N "(cached) $ECHO_C" >&6 2621else 2622 ac_cv_prog_cc_stdc=no 2623ac_save_CC=$CC 2624cat >conftest.$ac_ext <<_ACEOF 2625/* confdefs.h. */ 2626_ACEOF 2627cat confdefs.h >>conftest.$ac_ext 2628cat >>conftest.$ac_ext <<_ACEOF 2629/* end confdefs.h. */ 2630#include <stdarg.h> 2631#include <stdio.h> 2632#include <sys/types.h> 2633#include <sys/stat.h> 2634/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2635struct buf { int x; }; 2636FILE * (*rcsopen) (struct buf *, struct stat *, int); 2637static char *e (p, i) 2638 char **p; 2639 int i; 2640{ 2641 return p[i]; 2642} 2643static char *f (char * (*g) (char **, int), char **p, ...) 2644{ 2645 char *s; 2646 va_list v; 2647 va_start (v,p); 2648 s = g (p, va_arg (v,int)); 2649 va_end (v); 2650 return s; 2651} 2652 2653/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2654 function prototypes and stuff, but not '\xHH' hex character constants. 2655 These don't provoke an error unfortunately, instead are silently treated 2656 as 'x'. The following induces an error, until -std1 is added to get 2657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2658 array size at least. It's necessary to write '\x00'==0 to get something 2659 that's true only with -std1. */ 2660int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2661 2662int test (int i, double x); 2663struct s1 {int (*f) (int a);}; 2664struct s2 {int (*f) (double a);}; 2665int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2666int argc; 2667char **argv; 2668int 2669main () 2670{ 2671return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2672 ; 2673 return 0; 2674} 2675_ACEOF 2676# Don't try gcc -ansi; that turns off useful extensions and 2677# breaks some systems' header files. 2678# AIX -qlanglvl=ansi 2679# Ultrix and OSF/1 -std1 2680# HP-UX 10.20 and later -Ae 2681# HP-UX older versions -Aa -D_HPUX_SOURCE 2682# SVR4 -Xc -D__EXTENSIONS__ 2683for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2684do 2685 CC="$ac_save_CC $ac_arg" 2686 rm -f conftest.$ac_objext 2687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2688 (eval $ac_compile) 2>conftest.er1 2689 ac_status=$? 2690 grep -v '^ *+' conftest.er1 >conftest.err 2691 rm -f conftest.er1 2692 cat conftest.err >&5 2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2694 (exit $ac_status); } && 2695 { ac_try='test -z "$ac_c_werror_flag" 2696 || test ! -s conftest.err' 2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2698 (eval $ac_try) 2>&5 2699 ac_status=$? 2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2701 (exit $ac_status); }; } && 2702 { ac_try='test -s conftest.$ac_objext' 2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2704 (eval $ac_try) 2>&5 2705 ac_status=$? 2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2707 (exit $ac_status); }; }; then 2708 ac_cv_prog_cc_stdc=$ac_arg 2709break 2710else 2711 echo "$as_me: failed program was:" >&5 2712sed 's/^/| /' conftest.$ac_ext >&5 2713 2714fi 2715rm -f conftest.err conftest.$ac_objext 2716done 2717rm -f conftest.$ac_ext conftest.$ac_objext 2718CC=$ac_save_CC 2719 2720fi 2721 2722case "x$ac_cv_prog_cc_stdc" in 2723 x|xno) 2724 echo "$as_me:$LINENO: result: none needed" >&5 2725echo "${ECHO_T}none needed" >&6 ;; 2726 *) 2727 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2728echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2729 CC="$CC $ac_cv_prog_cc_stdc" ;; 2730esac 2731 2732# Some people use a C++ compiler to compile C. Since we use `exit', 2733# in C++ we need to declare it. In case someone uses the same compiler 2734# for both compiling C and C++ we need to have the C++ compiler decide 2735# the declaration of exit, since it's the most demanding environment. 2736cat >conftest.$ac_ext <<_ACEOF 2737#ifndef __cplusplus 2738 choke me 2739#endif 2740_ACEOF 2741rm -f conftest.$ac_objext 2742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2743 (eval $ac_compile) 2>conftest.er1 2744 ac_status=$? 2745 grep -v '^ *+' conftest.er1 >conftest.err 2746 rm -f conftest.er1 2747 cat conftest.err >&5 2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2749 (exit $ac_status); } && 2750 { ac_try='test -z "$ac_c_werror_flag" 2751 || test ! -s conftest.err' 2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2753 (eval $ac_try) 2>&5 2754 ac_status=$? 2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2756 (exit $ac_status); }; } && 2757 { ac_try='test -s conftest.$ac_objext' 2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2759 (eval $ac_try) 2>&5 2760 ac_status=$? 2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2762 (exit $ac_status); }; }; then 2763 for ac_declaration in \ 2764 '' \ 2765 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2766 'extern "C" void std::exit (int); using std::exit;' \ 2767 'extern "C" void exit (int) throw ();' \ 2768 'extern "C" void exit (int);' \ 2769 'void exit (int);' 2770do 2771 cat >conftest.$ac_ext <<_ACEOF 2772/* confdefs.h. */ 2773_ACEOF 2774cat confdefs.h >>conftest.$ac_ext 2775cat >>conftest.$ac_ext <<_ACEOF 2776/* end confdefs.h. */ 2777$ac_declaration 2778#include <stdlib.h> 2779int 2780main () 2781{ 2782exit (42); 2783 ; 2784 return 0; 2785} 2786_ACEOF 2787rm -f conftest.$ac_objext 2788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2789 (eval $ac_compile) 2>conftest.er1 2790 ac_status=$? 2791 grep -v '^ *+' conftest.er1 >conftest.err 2792 rm -f conftest.er1 2793 cat conftest.err >&5 2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2795 (exit $ac_status); } && 2796 { ac_try='test -z "$ac_c_werror_flag" 2797 || test ! -s conftest.err' 2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2799 (eval $ac_try) 2>&5 2800 ac_status=$? 2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2802 (exit $ac_status); }; } && 2803 { ac_try='test -s conftest.$ac_objext' 2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2805 (eval $ac_try) 2>&5 2806 ac_status=$? 2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2808 (exit $ac_status); }; }; then 2809 : 2810else 2811 echo "$as_me: failed program was:" >&5 2812sed 's/^/| /' conftest.$ac_ext >&5 2813 2814continue 2815fi 2816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2817 cat >conftest.$ac_ext <<_ACEOF 2818/* confdefs.h. */ 2819_ACEOF 2820cat confdefs.h >>conftest.$ac_ext 2821cat >>conftest.$ac_ext <<_ACEOF 2822/* end confdefs.h. */ 2823$ac_declaration 2824int 2825main () 2826{ 2827exit (42); 2828 ; 2829 return 0; 2830} 2831_ACEOF 2832rm -f conftest.$ac_objext 2833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2834 (eval $ac_compile) 2>conftest.er1 2835 ac_status=$? 2836 grep -v '^ *+' conftest.er1 >conftest.err 2837 rm -f conftest.er1 2838 cat conftest.err >&5 2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2840 (exit $ac_status); } && 2841 { ac_try='test -z "$ac_c_werror_flag" 2842 || test ! -s conftest.err' 2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2844 (eval $ac_try) 2>&5 2845 ac_status=$? 2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2847 (exit $ac_status); }; } && 2848 { ac_try='test -s conftest.$ac_objext' 2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2850 (eval $ac_try) 2>&5 2851 ac_status=$? 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2853 (exit $ac_status); }; }; then 2854 break 2855else 2856 echo "$as_me: failed program was:" >&5 2857sed 's/^/| /' conftest.$ac_ext >&5 2858 2859fi 2860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2861done 2862rm -f conftest* 2863if test -n "$ac_declaration"; then 2864 echo '#ifdef __cplusplus' >>confdefs.h 2865 echo $ac_declaration >>confdefs.h 2866 echo '#endif' >>confdefs.h 2867fi 2868 2869else 2870 echo "$as_me: failed program was:" >&5 2871sed 's/^/| /' conftest.$ac_ext >&5 2872 2873fi 2874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2875ac_ext=c 2876ac_cpp='$CPP $CPPFLAGS' 2877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2879ac_compiler_gnu=$ac_cv_c_compiler_gnu 2880DEPDIR="${am__leading_dot}deps" 2881 2882 ac_config_commands="$ac_config_commands depfiles" 2883 2884 2885am_make=${MAKE-make} 2886cat > confinc << 'END' 2887am__doit: 2888 @echo done 2889.PHONY: am__doit 2890END 2891# If we don't find an include directive, just comment out the code. 2892echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2893echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2894am__include="#" 2895am__quote= 2896_am_result=none 2897# First try GNU make style include. 2898echo "include confinc" > confmf 2899# We grep out `Entering directory' and `Leaving directory' 2900# messages which can occur if `w' ends up in MAKEFLAGS. 2901# In particular we don't look at `^make:' because GNU make might 2902# be invoked under some other name (usually "gmake"), in which 2903# case it prints its new name instead of `make'. 2904if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2905 am__include=include 2906 am__quote= 2907 _am_result=GNU 2908fi 2909# Now try BSD make style include. 2910if test "$am__include" = "#"; then 2911 echo '.include "confinc"' > confmf 2912 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2913 am__include=.include 2914 am__quote="\"" 2915 _am_result=BSD 2916 fi 2917fi 2918 2919 2920echo "$as_me:$LINENO: result: $_am_result" >&5 2921echo "${ECHO_T}$_am_result" >&6 2922rm -f confinc confmf 2923 2924# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2925if test "${enable_dependency_tracking+set}" = set; then 2926 enableval="$enable_dependency_tracking" 2927 2928fi; 2929if test "x$enable_dependency_tracking" != xno; then 2930 am_depcomp="$ac_aux_dir/depcomp" 2931 AMDEPBACKSLASH='\' 2932fi 2933 2934 2935if test "x$enable_dependency_tracking" != xno; then 2936 AMDEP_TRUE= 2937 AMDEP_FALSE='#' 2938else 2939 AMDEP_TRUE='#' 2940 AMDEP_FALSE= 2941fi 2942 2943 2944 2945 2946depcc="$CC" am_compiler_list= 2947 2948echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2949echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2950if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2951 echo $ECHO_N "(cached) $ECHO_C" >&6 2952else 2953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2954 # We make a subdir and do the tests there. Otherwise we can end up 2955 # making bogus files that we don't know about and never remove. For 2956 # instance it was reported that on HP-UX the gcc test will end up 2957 # making a dummy file named `D' -- because `-MD' means `put the output 2958 # in D'. 2959 mkdir conftest.dir 2960 # Copy depcomp to subdir because otherwise we won't find it if we're 2961 # using a relative directory. 2962 cp "$am_depcomp" conftest.dir 2963 cd conftest.dir 2964 # We will build objects and dependencies in a subdirectory because 2965 # it helps to detect inapplicable dependency modes. For instance 2966 # both Tru64's cc and ICC support -MD to output dependencies as a 2967 # side effect of compilation, but ICC will put the dependencies in 2968 # the current directory while Tru64 will put them in the object 2969 # directory. 2970 mkdir sub 2971 2972 am_cv_CC_dependencies_compiler_type=none 2973 if test "$am_compiler_list" = ""; then 2974 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2975 fi 2976 for depmode in $am_compiler_list; do 2977 # Setup a source with many dependencies, because some compilers 2978 # like to wrap large dependency lists on column 80 (with \), and 2979 # we should not choose a depcomp mode which is confused by this. 2980 # 2981 # We need to recreate these files for each test, as the compiler may 2982 # overwrite some of them when testing with obscure command lines. 2983 # This happens at least with the AIX C compiler. 2984 : > sub/conftest.c 2985 for i in 1 2 3 4 5 6; do 2986 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2988 # Solaris 8's {/usr,}/bin/sh. 2989 touch sub/conftst$i.h 2990 done 2991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2992 2993 case $depmode in 2994 nosideeffect) 2995 # after this tag, mechanisms are not by side-effect, so they'll 2996 # only be used when explicitly requested 2997 if test "x$enable_dependency_tracking" = xyes; then 2998 continue 2999 else 3000 break 3001 fi 3002 ;; 3003 none) break ;; 3004 esac 3005 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3006 # mode. It turns out that the SunPro C++ compiler does not properly 3007 # handle `-M -o', and we need to detect this. 3008 if depmode=$depmode \ 3009 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3010 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3011 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3012 >/dev/null 2>conftest.err && 3013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3014 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3016 # icc doesn't choke on unknown options, it will just issue warnings 3017 # or remarks (even with -Werror). So we grep stderr for any message 3018 # that says an option was ignored or not supported. 3019 # When given -MP, icc 7.0 and 7.1 complain thusly: 3020 # icc: Command line warning: ignoring option '-M'; no argument required 3021 # The diagnosis changed in icc 8.0: 3022 # icc: Command line remark: option '-MP' not supported 3023 if (grep 'ignoring option' conftest.err || 3024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3025 am_cv_CC_dependencies_compiler_type=$depmode 3026 break 3027 fi 3028 fi 3029 done 3030 3031 cd .. 3032 rm -rf conftest.dir 3033else 3034 am_cv_CC_dependencies_compiler_type=none 3035fi 3036 3037fi 3038echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3039echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3040CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3041 3042 3043 3044if 3045 test "x$enable_dependency_tracking" != xno \ 3046 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3047 am__fastdepCC_TRUE= 3048 am__fastdepCC_FALSE='#' 3049else 3050 am__fastdepCC_TRUE='#' 3051 am__fastdepCC_FALSE= 3052fi 3053 3054 3055# Find a good install program. We prefer a C program (faster), 3056# so one script is as good as another. But avoid the broken or 3057# incompatible versions: 3058# SysV /etc/install, /usr/sbin/install 3059# SunOS /usr/etc/install 3060# IRIX /sbin/install 3061# AIX /bin/install 3062# AmigaOS /C/install, which installs bootblocks on floppy discs 3063# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3064# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3065# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3066# OS/2's system install, which has a completely different semantic 3067# ./install, which can be erroneously created by make from ./install.sh. 3068echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3069echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3070if test -z "$INSTALL"; then 3071if test "${ac_cv_path_install+set}" = set; then 3072 echo $ECHO_N "(cached) $ECHO_C" >&6 3073else 3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3075for as_dir in $PATH 3076do 3077 IFS=$as_save_IFS 3078 test -z "$as_dir" && as_dir=. 3079 # Account for people who put trailing slashes in PATH elements. 3080case $as_dir/ in 3081 ./ | .// | /cC/* | \ 3082 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3083 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3084 /usr/ucb/* ) ;; 3085 *) 3086 # OSF1 and SCO ODT 3.0 have their own names for install. 3087 # Don't use installbsd from OSF since it installs stuff as root 3088 # by default. 3089 for ac_prog in ginstall scoinst install; do 3090 for ac_exec_ext in '' $ac_executable_extensions; do 3091 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3092 if test $ac_prog = install && 3093 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3094 # AIX install. It has an incompatible calling convention. 3095 : 3096 elif test $ac_prog = install && 3097 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3098 # program-specific install script used by HP pwplus--don't use. 3099 : 3100 else 3101 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3102 break 3 3103 fi 3104 fi 3105 done 3106 done 3107 ;; 3108esac 3109done 3110 3111 3112fi 3113 if test "${ac_cv_path_install+set}" = set; then 3114 INSTALL=$ac_cv_path_install 3115 else 3116 # As a last resort, use the slow shell script. We don't cache a 3117 # path for INSTALL within a source directory, because that will 3118 # break other packages using the cache if that directory is 3119 # removed, or if the path is relative. 3120 INSTALL=$ac_install_sh 3121 fi 3122fi 3123echo "$as_me:$LINENO: result: $INSTALL" >&5 3124echo "${ECHO_T}$INSTALL" >&6 3125 3126# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3127# It thinks the first close brace ends the variable substitution. 3128test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3129 3130test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3131 3132test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3133 3134 3135# Check whether --enable-static or --disable-static was given. 3136if test "${enable_static+set}" = set; then 3137 enableval="$enable_static" 3138 p=${PACKAGE-default} 3139 case $enableval in 3140 yes) enable_static=yes ;; 3141 no) enable_static=no ;; 3142 *) 3143 enable_static=no 3144 # Look at the argument we got. We use all the common list separators. 3145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3146 for pkg in $enableval; do 3147 IFS="$lt_save_ifs" 3148 if test "X$pkg" = "X$p"; then 3149 enable_static=yes 3150 fi 3151 done 3152 IFS="$lt_save_ifs" 3153 ;; 3154 esac 3155else 3156 enable_static=no 3157fi; 3158 3159 3160# Check whether --enable-shared or --disable-shared was given. 3161if test "${enable_shared+set}" = set; then 3162 enableval="$enable_shared" 3163 p=${PACKAGE-default} 3164 case $enableval in 3165 yes) enable_shared=yes ;; 3166 no) enable_shared=no ;; 3167 *) 3168 enable_shared=no 3169 # Look at the argument we got. We use all the common list separators. 3170 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3171 for pkg in $enableval; do 3172 IFS="$lt_save_ifs" 3173 if test "X$pkg" = "X$p"; then 3174 enable_shared=yes 3175 fi 3176 done 3177 IFS="$lt_save_ifs" 3178 ;; 3179 esac 3180else 3181 enable_shared=yes 3182fi; 3183 3184# Check whether --enable-fast-install or --disable-fast-install was given. 3185if test "${enable_fast_install+set}" = set; then 3186 enableval="$enable_fast_install" 3187 p=${PACKAGE-default} 3188 case $enableval in 3189 yes) enable_fast_install=yes ;; 3190 no) enable_fast_install=no ;; 3191 *) 3192 enable_fast_install=no 3193 # Look at the argument we got. We use all the common list separators. 3194 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3195 for pkg in $enableval; do 3196 IFS="$lt_save_ifs" 3197 if test "X$pkg" = "X$p"; then 3198 enable_fast_install=yes 3199 fi 3200 done 3201 IFS="$lt_save_ifs" 3202 ;; 3203 esac 3204else 3205 enable_fast_install=yes 3206fi; 3207 3208# Make sure we can run config.sub. 3209$ac_config_sub sun4 >/dev/null 2>&1 || 3210 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3211echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3212 { (exit 1); exit 1; }; } 3213 3214echo "$as_me:$LINENO: checking build system type" >&5 3215echo $ECHO_N "checking build system type... $ECHO_C" >&6 3216if test "${ac_cv_build+set}" = set; then 3217 echo $ECHO_N "(cached) $ECHO_C" >&6 3218else 3219 ac_cv_build_alias=$build_alias 3220test -z "$ac_cv_build_alias" && 3221 ac_cv_build_alias=`$ac_config_guess` 3222test -z "$ac_cv_build_alias" && 3223 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3224echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3225 { (exit 1); exit 1; }; } 3226ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3227 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3228echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3229 { (exit 1); exit 1; }; } 3230 3231fi 3232echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3233echo "${ECHO_T}$ac_cv_build" >&6 3234build=$ac_cv_build 3235build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3236build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3237build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3238 3239 3240echo "$as_me:$LINENO: checking host system type" >&5 3241echo $ECHO_N "checking host system type... $ECHO_C" >&6 3242if test "${ac_cv_host+set}" = set; then 3243 echo $ECHO_N "(cached) $ECHO_C" >&6 3244else 3245 ac_cv_host_alias=$host_alias 3246test -z "$ac_cv_host_alias" && 3247 ac_cv_host_alias=$ac_cv_build_alias 3248ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3249 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3250echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3251 { (exit 1); exit 1; }; } 3252 3253fi 3254echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3255echo "${ECHO_T}$ac_cv_host" >&6 3256host=$ac_cv_host 3257host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3258host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3259host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3260 3261 3262echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3263echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3264if test "${lt_cv_path_SED+set}" = set; then 3265 echo $ECHO_N "(cached) $ECHO_C" >&6 3266else 3267 # Loop through the user's path and test for sed and gsed. 3268# Then use that list of sed's as ones to test for truncation. 3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3270for as_dir in $PATH 3271do 3272 IFS=$as_save_IFS 3273 test -z "$as_dir" && as_dir=. 3274 for lt_ac_prog in sed gsed; do 3275 for ac_exec_ext in '' $ac_executable_extensions; do 3276 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3277 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3278 fi 3279 done 3280 done 3281done 3282lt_ac_max=0 3283lt_ac_count=0 3284# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3285# along with /bin/sed that truncates output. 3286for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3287 test ! -f $lt_ac_sed && continue 3288 cat /dev/null > conftest.in 3289 lt_ac_count=0 3290 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3291 # Check for GNU sed and select it if it is found. 3292 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3293 lt_cv_path_SED=$lt_ac_sed 3294 break 3295 fi 3296 while true; do 3297 cat conftest.in conftest.in >conftest.tmp 3298 mv conftest.tmp conftest.in 3299 cp conftest.in conftest.nl 3300 echo >>conftest.nl 3301 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3302 cmp -s conftest.out conftest.nl || break 3303 # 10000 chars as input seems more than enough 3304 test $lt_ac_count -gt 10 && break 3305 lt_ac_count=`expr $lt_ac_count + 1` 3306 if test $lt_ac_count -gt $lt_ac_max; then 3307 lt_ac_max=$lt_ac_count 3308 lt_cv_path_SED=$lt_ac_sed 3309 fi 3310 done 3311done 3312 3313fi 3314 3315SED=$lt_cv_path_SED 3316echo "$as_me:$LINENO: result: $SED" >&5 3317echo "${ECHO_T}$SED" >&6 3318 3319echo "$as_me:$LINENO: checking for egrep" >&5 3320echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3321if test "${ac_cv_prog_egrep+set}" = set; then 3322 echo $ECHO_N "(cached) $ECHO_C" >&6 3323else 3324 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3325 then ac_cv_prog_egrep='grep -E' 3326 else ac_cv_prog_egrep='egrep' 3327 fi 3328fi 3329echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3330echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3331 EGREP=$ac_cv_prog_egrep 3332 3333 3334 3335# Check whether --with-gnu-ld or --without-gnu-ld was given. 3336if test "${with_gnu_ld+set}" = set; then 3337 withval="$with_gnu_ld" 3338 test "$withval" = no || with_gnu_ld=yes 3339else 3340 with_gnu_ld=no 3341fi; 3342ac_prog=ld 3343if test "$GCC" = yes; then 3344 # Check if gcc -print-prog-name=ld gives a path. 3345 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3346echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3347 case $host in 3348 *-*-mingw*) 3349 # gcc leaves a trailing carriage return which upsets mingw 3350 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3351 *) 3352 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3353 esac 3354 case $ac_prog in 3355 # Accept absolute paths. 3356 [\\/]* | ?:[\\/]*) 3357 re_direlt='/[^/][^/]*/\.\./' 3358 # Canonicalize the pathname of ld 3359 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3360 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3361 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3362 done 3363 test -z "$LD" && LD="$ac_prog" 3364 ;; 3365 "") 3366 # If it fails, then pretend we aren't using GCC. 3367 ac_prog=ld 3368 ;; 3369 *) 3370 # If it is relative, then search for the first ld in PATH. 3371 with_gnu_ld=unknown 3372 ;; 3373 esac 3374elif test "$with_gnu_ld" = yes; then 3375 echo "$as_me:$LINENO: checking for GNU ld" >&5 3376echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3377else 3378 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3379echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3380fi 3381if test "${lt_cv_path_LD+set}" = set; then 3382 echo $ECHO_N "(cached) $ECHO_C" >&6 3383else 3384 if test -z "$LD"; then 3385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3386 for ac_dir in $PATH; do 3387 IFS="$lt_save_ifs" 3388 test -z "$ac_dir" && ac_dir=. 3389 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3390 lt_cv_path_LD="$ac_dir/$ac_prog" 3391 # Check to see if the program is GNU ld. I'd rather use --version, 3392 # but apparently some variants of GNU ld only accept -v. 3393 # Break only if it was the GNU/non-GNU ld that we prefer. 3394 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3395 *GNU* | *'with BFD'*) 3396 test "$with_gnu_ld" != no && break 3397 ;; 3398 *) 3399 test "$with_gnu_ld" != yes && break 3400 ;; 3401 esac 3402 fi 3403 done 3404 IFS="$lt_save_ifs" 3405else 3406 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3407fi 3408fi 3409 3410LD="$lt_cv_path_LD" 3411if test -n "$LD"; then 3412 echo "$as_me:$LINENO: result: $LD" >&5 3413echo "${ECHO_T}$LD" >&6 3414else 3415 echo "$as_me:$LINENO: result: no" >&5 3416echo "${ECHO_T}no" >&6 3417fi 3418test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3419echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3420 { (exit 1); exit 1; }; } 3421echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3422echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3423if test "${lt_cv_prog_gnu_ld+set}" = set; then 3424 echo $ECHO_N "(cached) $ECHO_C" >&6 3425else 3426 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3427case `$LD -v 2>&1 </dev/null` in 3428*GNU* | *'with BFD'*) 3429 lt_cv_prog_gnu_ld=yes 3430 ;; 3431*) 3432 lt_cv_prog_gnu_ld=no 3433 ;; 3434esac 3435fi 3436echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3437echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3438with_gnu_ld=$lt_cv_prog_gnu_ld 3439 3440 3441echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3442echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3443if test "${lt_cv_ld_reload_flag+set}" = set; then 3444 echo $ECHO_N "(cached) $ECHO_C" >&6 3445else 3446 lt_cv_ld_reload_flag='-r' 3447fi 3448echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3449echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3450reload_flag=$lt_cv_ld_reload_flag 3451case $reload_flag in 3452"" | " "*) ;; 3453*) reload_flag=" $reload_flag" ;; 3454esac 3455reload_cmds='$LD$reload_flag -o $output$reload_objs' 3456case $host_os in 3457 darwin*) 3458 if test "$GCC" = yes; then 3459 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 3460 else 3461 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3462 fi 3463 ;; 3464esac 3465 3466echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3467echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3468if test "${lt_cv_path_NM+set}" = set; then 3469 echo $ECHO_N "(cached) $ECHO_C" >&6 3470else 3471 if test -n "$NM"; then 3472 # Let the user override the test. 3473 lt_cv_path_NM="$NM" 3474else 3475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3476 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3477 IFS="$lt_save_ifs" 3478 test -z "$ac_dir" && ac_dir=. 3479 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3480 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3481 # Check to see if the nm accepts a BSD-compat flag. 3482 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3483 # nm: unknown option "B" ignored 3484 # Tru64's nm complains that /dev/null is an invalid object file 3485 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3486 */dev/null* | *'Invalid file or object type'*) 3487 lt_cv_path_NM="$tmp_nm -B" 3488 break 3489 ;; 3490 *) 3491 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3492 */dev/null*) 3493 lt_cv_path_NM="$tmp_nm -p" 3494 break 3495 ;; 3496 *) 3497 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3498 continue # so that we can try to find one that supports BSD flags 3499 ;; 3500 esac 3501 esac 3502 fi 3503 done 3504 IFS="$lt_save_ifs" 3505 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3506fi 3507fi 3508echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3509echo "${ECHO_T}$lt_cv_path_NM" >&6 3510NM="$lt_cv_path_NM" 3511 3512echo "$as_me:$LINENO: checking whether ln -s works" >&5 3513echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3514LN_S=$as_ln_s 3515if test "$LN_S" = "ln -s"; then 3516 echo "$as_me:$LINENO: result: yes" >&5 3517echo "${ECHO_T}yes" >&6 3518else 3519 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3520echo "${ECHO_T}no, using $LN_S" >&6 3521fi 3522 3523echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3524echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3525if test "${lt_cv_deplibs_check_method+set}" = set; then 3526 echo $ECHO_N "(cached) $ECHO_C" >&6 3527else 3528 lt_cv_file_magic_cmd='$MAGIC_CMD' 3529lt_cv_file_magic_test_file= 3530lt_cv_deplibs_check_method='unknown' 3531# Need to set the preceding variable on all platforms that support 3532# interlibrary dependencies. 3533# 'none' -- dependencies not supported. 3534# `unknown' -- same as none, but documents that we really don't know. 3535# 'pass_all' -- all dependencies passed with no checks. 3536# 'test_compile' -- check by making test program. 3537# 'file_magic [[regex]]' -- check by looking for files in library path 3538# which responds to the $file_magic_cmd with a given extended regex. 3539# If you have `file' or equivalent on your system and you're not sure 3540# whether `pass_all' will *always* work, you probably want this one. 3541 3542case $host_os in 3543aix4* | aix5*) 3544 lt_cv_deplibs_check_method=pass_all 3545 ;; 3546 3547beos*) 3548 lt_cv_deplibs_check_method=pass_all 3549 ;; 3550 3551bsdi[45]*) 3552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3553 lt_cv_file_magic_cmd='/usr/bin/file -L' 3554 lt_cv_file_magic_test_file=/shlib/libc.so 3555 ;; 3556 3557cygwin*) 3558 # func_win32_libid is a shell function defined in ltmain.sh 3559 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3560 lt_cv_file_magic_cmd='func_win32_libid' 3561 ;; 3562 3563mingw* | pw32*) 3564 # Base MSYS/MinGW do not provide the 'file' command needed by 3565 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3566 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3567 lt_cv_file_magic_cmd='$OBJDUMP -f' 3568 ;; 3569 3570darwin* | rhapsody*) 3571 lt_cv_deplibs_check_method=pass_all 3572 ;; 3573 3574freebsd* | kfreebsd*-gnu | dragonfly*) 3575 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3576 case $host_cpu in 3577 i*86 ) 3578 # Not sure whether the presence of OpenBSD here was a mistake. 3579 # Let's accept both of them until this is cleared up. 3580 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3581 lt_cv_file_magic_cmd=/usr/bin/file 3582 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3583 ;; 3584 esac 3585 else 3586 lt_cv_deplibs_check_method=pass_all 3587 fi 3588 ;; 3589 3590gnu*) 3591 lt_cv_deplibs_check_method=pass_all 3592 ;; 3593 3594hpux10.20* | hpux11*) 3595 lt_cv_file_magic_cmd=/usr/bin/file 3596 case $host_cpu in 3597 ia64*) 3598 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3599 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3600 ;; 3601 hppa*64*) 3602 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]' 3603 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3604 ;; 3605 *) 3606 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3607 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3608 ;; 3609 esac 3610 ;; 3611 3612irix5* | irix6* | nonstopux*) 3613 case $LD in 3614 *-32|*"-32 ") libmagic=32-bit;; 3615 *-n32|*"-n32 ") libmagic=N32;; 3616 *-64|*"-64 ") libmagic=64-bit;; 3617 *) libmagic=never-match;; 3618 esac 3619 lt_cv_deplibs_check_method=pass_all 3620 ;; 3621 3622# This must be Linux ELF. 3623linux*) 3624 lt_cv_deplibs_check_method=pass_all 3625 ;; 3626 3627netbsd*) 3628 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3630 else 3631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3632 fi 3633 ;; 3634 3635newos6*) 3636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3637 lt_cv_file_magic_cmd=/usr/bin/file 3638 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3639 ;; 3640 3641nto-qnx*) 3642 lt_cv_deplibs_check_method=unknown 3643 ;; 3644 3645openbsd*) 3646 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3648 else 3649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3650 fi 3651 ;; 3652 3653osf3* | osf4* | osf5*) 3654 lt_cv_deplibs_check_method=pass_all 3655 ;; 3656 3657sco3.2v5*) 3658 lt_cv_deplibs_check_method=pass_all 3659 ;; 3660 3661solaris*) 3662 lt_cv_deplibs_check_method=pass_all 3663 ;; 3664 3665sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3666 case $host_vendor in 3667 motorola) 3668 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]' 3669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3670 ;; 3671 ncr) 3672 lt_cv_deplibs_check_method=pass_all 3673 ;; 3674 sequent) 3675 lt_cv_file_magic_cmd='/bin/file' 3676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3677 ;; 3678 sni) 3679 lt_cv_file_magic_cmd='/bin/file' 3680 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3681 lt_cv_file_magic_test_file=/lib/libc.so 3682 ;; 3683 siemens) 3684 lt_cv_deplibs_check_method=pass_all 3685 ;; 3686 esac 3687 ;; 3688 3689sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3690 lt_cv_deplibs_check_method=pass_all 3691 ;; 3692esac 3693 3694fi 3695echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3696echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3697file_magic_cmd=$lt_cv_file_magic_cmd 3698deplibs_check_method=$lt_cv_deplibs_check_method 3699test -z "$deplibs_check_method" && deplibs_check_method=unknown 3700 3701 3702 3703 3704# If no C compiler was specified, use CC. 3705LTCC=${LTCC-"$CC"} 3706 3707# Allow CC to be a program name with arguments. 3708compiler=$CC 3709 3710 3711# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3712if test "${enable_libtool_lock+set}" = set; then 3713 enableval="$enable_libtool_lock" 3714 3715fi; 3716test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3717 3718# Some flags need to be propagated to the compiler or linker for good 3719# libtool support. 3720case $host in 3721ia64-*-hpux*) 3722 # Find out which ABI we are using. 3723 echo 'int i;' > conftest.$ac_ext 3724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3725 (eval $ac_compile) 2>&5 3726 ac_status=$? 3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3728 (exit $ac_status); }; then 3729 case `/usr/bin/file conftest.$ac_objext` in 3730 *ELF-32*) 3731 HPUX_IA64_MODE="32" 3732 ;; 3733 *ELF-64*) 3734 HPUX_IA64_MODE="64" 3735 ;; 3736 esac 3737 fi 3738 rm -rf conftest* 3739 ;; 3740*-*-irix6*) 3741 # Find out which ABI we are using. 3742 echo '#line 3742 "configure"' > conftest.$ac_ext 3743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3744 (eval $ac_compile) 2>&5 3745 ac_status=$? 3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3747 (exit $ac_status); }; then 3748 if test "$lt_cv_prog_gnu_ld" = yes; then 3749 case `/usr/bin/file conftest.$ac_objext` in 3750 *32-bit*) 3751 LD="${LD-ld} -melf32bsmip" 3752 ;; 3753 *N32*) 3754 LD="${LD-ld} -melf32bmipn32" 3755 ;; 3756 *64-bit*) 3757 LD="${LD-ld} -melf64bmip" 3758 ;; 3759 esac 3760 else 3761 case `/usr/bin/file conftest.$ac_objext` in 3762 *32-bit*) 3763 LD="${LD-ld} -32" 3764 ;; 3765 *N32*) 3766 LD="${LD-ld} -n32" 3767 ;; 3768 *64-bit*) 3769 LD="${LD-ld} -64" 3770 ;; 3771 esac 3772 fi 3773 fi 3774 rm -rf conftest* 3775 ;; 3776 3777x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3778 # Find out which ABI we are using. 3779 echo 'int i;' > conftest.$ac_ext 3780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3781 (eval $ac_compile) 2>&5 3782 ac_status=$? 3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3784 (exit $ac_status); }; then 3785 case `/usr/bin/file conftest.o` in 3786 *32-bit*) 3787 case $host in 3788 x86_64-*linux*) 3789 LD="${LD-ld} -m elf_i386" 3790 ;; 3791 ppc64-*linux*|powerpc64-*linux*) 3792 LD="${LD-ld} -m elf32ppclinux" 3793 ;; 3794 s390x-*linux*) 3795 LD="${LD-ld} -m elf_s390" 3796 ;; 3797 sparc64-*linux*) 3798 LD="${LD-ld} -m elf32_sparc" 3799 ;; 3800 esac 3801 ;; 3802 *64-bit*) 3803 case $host in 3804 x86_64-*linux*) 3805 LD="${LD-ld} -m elf_x86_64" 3806 ;; 3807 ppc*-*linux*|powerpc*-*linux*) 3808 LD="${LD-ld} -m elf64ppc" 3809 ;; 3810 s390*-*linux*) 3811 LD="${LD-ld} -m elf64_s390" 3812 ;; 3813 sparc*-*linux*) 3814 LD="${LD-ld} -m elf64_sparc" 3815 ;; 3816 esac 3817 ;; 3818 esac 3819 fi 3820 rm -rf conftest* 3821 ;; 3822 3823*-*-sco3.2v5*) 3824 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3825 SAVE_CFLAGS="$CFLAGS" 3826 CFLAGS="$CFLAGS -belf" 3827 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3828echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3829if test "${lt_cv_cc_needs_belf+set}" = set; then 3830 echo $ECHO_N "(cached) $ECHO_C" >&6 3831else 3832 ac_ext=c 3833ac_cpp='$CPP $CPPFLAGS' 3834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3836ac_compiler_gnu=$ac_cv_c_compiler_gnu 3837 3838 cat >conftest.$ac_ext <<_ACEOF 3839/* confdefs.h. */ 3840_ACEOF 3841cat confdefs.h >>conftest.$ac_ext 3842cat >>conftest.$ac_ext <<_ACEOF 3843/* end confdefs.h. */ 3844 3845int 3846main () 3847{ 3848 3849 ; 3850 return 0; 3851} 3852_ACEOF 3853rm -f conftest.$ac_objext conftest$ac_exeext 3854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3855 (eval $ac_link) 2>conftest.er1 3856 ac_status=$? 3857 grep -v '^ *+' conftest.er1 >conftest.err 3858 rm -f conftest.er1 3859 cat conftest.err >&5 3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3861 (exit $ac_status); } && 3862 { ac_try='test -z "$ac_c_werror_flag" 3863 || test ! -s conftest.err' 3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3865 (eval $ac_try) 2>&5 3866 ac_status=$? 3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3868 (exit $ac_status); }; } && 3869 { ac_try='test -s conftest$ac_exeext' 3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3871 (eval $ac_try) 2>&5 3872 ac_status=$? 3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3874 (exit $ac_status); }; }; then 3875 lt_cv_cc_needs_belf=yes 3876else 3877 echo "$as_me: failed program was:" >&5 3878sed 's/^/| /' conftest.$ac_ext >&5 3879 3880lt_cv_cc_needs_belf=no 3881fi 3882rm -f conftest.err conftest.$ac_objext \ 3883 conftest$ac_exeext conftest.$ac_ext 3884 ac_ext=c 3885ac_cpp='$CPP $CPPFLAGS' 3886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3888ac_compiler_gnu=$ac_cv_c_compiler_gnu 3889 3890fi 3891echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3892echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3893 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3894 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3895 CFLAGS="$SAVE_CFLAGS" 3896 fi 3897 ;; 3898 3899esac 3900 3901need_locks="$enable_libtool_lock" 3902 3903 3904ac_ext=c 3905ac_cpp='$CPP $CPPFLAGS' 3906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3908ac_compiler_gnu=$ac_cv_c_compiler_gnu 3909echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3910echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3911# On Suns, sometimes $CPP names a directory. 3912if test -n "$CPP" && test -d "$CPP"; then 3913 CPP= 3914fi 3915if test -z "$CPP"; then 3916 if test "${ac_cv_prog_CPP+set}" = set; then 3917 echo $ECHO_N "(cached) $ECHO_C" >&6 3918else 3919 # Double quotes because CPP needs to be expanded 3920 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3921 do 3922 ac_preproc_ok=false 3923for ac_c_preproc_warn_flag in '' yes 3924do 3925 # Use a header file that comes with gcc, so configuring glibc 3926 # with a fresh cross-compiler works. 3927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3928 # <limits.h> exists even on freestanding compilers. 3929 # On the NeXT, cc -E runs the code through the compiler's parser, 3930 # not just through cpp. "Syntax error" is here to catch this case. 3931 cat >conftest.$ac_ext <<_ACEOF 3932/* confdefs.h. */ 3933_ACEOF 3934cat confdefs.h >>conftest.$ac_ext 3935cat >>conftest.$ac_ext <<_ACEOF 3936/* end confdefs.h. */ 3937#ifdef __STDC__ 3938# include <limits.h> 3939#else 3940# include <assert.h> 3941#endif 3942 Syntax error 3943_ACEOF 3944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3946 ac_status=$? 3947 grep -v '^ *+' conftest.er1 >conftest.err 3948 rm -f conftest.er1 3949 cat conftest.err >&5 3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3951 (exit $ac_status); } >/dev/null; then 3952 if test -s conftest.err; then 3953 ac_cpp_err=$ac_c_preproc_warn_flag 3954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3955 else 3956 ac_cpp_err= 3957 fi 3958else 3959 ac_cpp_err=yes 3960fi 3961if test -z "$ac_cpp_err"; then 3962 : 3963else 3964 echo "$as_me: failed program was:" >&5 3965sed 's/^/| /' conftest.$ac_ext >&5 3966 3967 # Broken: fails on valid input. 3968continue 3969fi 3970rm -f conftest.err conftest.$ac_ext 3971 3972 # OK, works on sane cases. Now check whether non-existent headers 3973 # can be detected and how. 3974 cat >conftest.$ac_ext <<_ACEOF 3975/* confdefs.h. */ 3976_ACEOF 3977cat confdefs.h >>conftest.$ac_ext 3978cat >>conftest.$ac_ext <<_ACEOF 3979/* end confdefs.h. */ 3980#include <ac_nonexistent.h> 3981_ACEOF 3982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3984 ac_status=$? 3985 grep -v '^ *+' conftest.er1 >conftest.err 3986 rm -f conftest.er1 3987 cat conftest.err >&5 3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3989 (exit $ac_status); } >/dev/null; then 3990 if test -s conftest.err; then 3991 ac_cpp_err=$ac_c_preproc_warn_flag 3992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3993 else 3994 ac_cpp_err= 3995 fi 3996else 3997 ac_cpp_err=yes 3998fi 3999if test -z "$ac_cpp_err"; then 4000 # Broken: success on invalid input. 4001continue 4002else 4003 echo "$as_me: failed program was:" >&5 4004sed 's/^/| /' conftest.$ac_ext >&5 4005 4006 # Passes both tests. 4007ac_preproc_ok=: 4008break 4009fi 4010rm -f conftest.err conftest.$ac_ext 4011 4012done 4013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4014rm -f conftest.err conftest.$ac_ext 4015if $ac_preproc_ok; then 4016 break 4017fi 4018 4019 done 4020 ac_cv_prog_CPP=$CPP 4021 4022fi 4023 CPP=$ac_cv_prog_CPP 4024else 4025 ac_cv_prog_CPP=$CPP 4026fi 4027echo "$as_me:$LINENO: result: $CPP" >&5 4028echo "${ECHO_T}$CPP" >&6 4029ac_preproc_ok=false 4030for ac_c_preproc_warn_flag in '' yes 4031do 4032 # Use a header file that comes with gcc, so configuring glibc 4033 # with a fresh cross-compiler works. 4034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4035 # <limits.h> exists even on freestanding compilers. 4036 # On the NeXT, cc -E runs the code through the compiler's parser, 4037 # not just through cpp. "Syntax error" is here to catch this case. 4038 cat >conftest.$ac_ext <<_ACEOF 4039/* confdefs.h. */ 4040_ACEOF 4041cat confdefs.h >>conftest.$ac_ext 4042cat >>conftest.$ac_ext <<_ACEOF 4043/* end confdefs.h. */ 4044#ifdef __STDC__ 4045# include <limits.h> 4046#else 4047# include <assert.h> 4048#endif 4049 Syntax error 4050_ACEOF 4051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4053 ac_status=$? 4054 grep -v '^ *+' conftest.er1 >conftest.err 4055 rm -f conftest.er1 4056 cat conftest.err >&5 4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4058 (exit $ac_status); } >/dev/null; then 4059 if test -s conftest.err; then 4060 ac_cpp_err=$ac_c_preproc_warn_flag 4061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4062 else 4063 ac_cpp_err= 4064 fi 4065else 4066 ac_cpp_err=yes 4067fi 4068if test -z "$ac_cpp_err"; then 4069 : 4070else 4071 echo "$as_me: failed program was:" >&5 4072sed 's/^/| /' conftest.$ac_ext >&5 4073 4074 # Broken: fails on valid input. 4075continue 4076fi 4077rm -f conftest.err conftest.$ac_ext 4078 4079 # OK, works on sane cases. Now check whether non-existent headers 4080 # can be detected and how. 4081 cat >conftest.$ac_ext <<_ACEOF 4082/* confdefs.h. */ 4083_ACEOF 4084cat confdefs.h >>conftest.$ac_ext 4085cat >>conftest.$ac_ext <<_ACEOF 4086/* end confdefs.h. */ 4087#include <ac_nonexistent.h> 4088_ACEOF 4089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4091 ac_status=$? 4092 grep -v '^ *+' conftest.er1 >conftest.err 4093 rm -f conftest.er1 4094 cat conftest.err >&5 4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4096 (exit $ac_status); } >/dev/null; then 4097 if test -s conftest.err; then 4098 ac_cpp_err=$ac_c_preproc_warn_flag 4099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4100 else 4101 ac_cpp_err= 4102 fi 4103else 4104 ac_cpp_err=yes 4105fi 4106if test -z "$ac_cpp_err"; then 4107 # Broken: success on invalid input. 4108continue 4109else 4110 echo "$as_me: failed program was:" >&5 4111sed 's/^/| /' conftest.$ac_ext >&5 4112 4113 # Passes both tests. 4114ac_preproc_ok=: 4115break 4116fi 4117rm -f conftest.err conftest.$ac_ext 4118 4119done 4120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4121rm -f conftest.err conftest.$ac_ext 4122if $ac_preproc_ok; then 4123 : 4124else 4125 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4126See \`config.log' for more details." >&5 4127echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4128See \`config.log' for more details." >&2;} 4129 { (exit 1); exit 1; }; } 4130fi 4131 4132ac_ext=c 4133ac_cpp='$CPP $CPPFLAGS' 4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4136ac_compiler_gnu=$ac_cv_c_compiler_gnu 4137 4138 4139echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4140echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4141if test "${ac_cv_header_stdc+set}" = set; then 4142 echo $ECHO_N "(cached) $ECHO_C" >&6 4143else 4144 cat >conftest.$ac_ext <<_ACEOF 4145/* confdefs.h. */ 4146_ACEOF 4147cat confdefs.h >>conftest.$ac_ext 4148cat >>conftest.$ac_ext <<_ACEOF 4149/* end confdefs.h. */ 4150#include <stdlib.h> 4151#include <stdarg.h> 4152#include <string.h> 4153#include <float.h> 4154 4155int 4156main () 4157{ 4158 4159 ; 4160 return 0; 4161} 4162_ACEOF 4163rm -f conftest.$ac_objext 4164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4165 (eval $ac_compile) 2>conftest.er1 4166 ac_status=$? 4167 grep -v '^ *+' conftest.er1 >conftest.err 4168 rm -f conftest.er1 4169 cat conftest.err >&5 4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4171 (exit $ac_status); } && 4172 { ac_try='test -z "$ac_c_werror_flag" 4173 || test ! -s conftest.err' 4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4175 (eval $ac_try) 2>&5 4176 ac_status=$? 4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4178 (exit $ac_status); }; } && 4179 { ac_try='test -s conftest.$ac_objext' 4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4181 (eval $ac_try) 2>&5 4182 ac_status=$? 4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4184 (exit $ac_status); }; }; then 4185 ac_cv_header_stdc=yes 4186else 4187 echo "$as_me: failed program was:" >&5 4188sed 's/^/| /' conftest.$ac_ext >&5 4189 4190ac_cv_header_stdc=no 4191fi 4192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4193 4194if test $ac_cv_header_stdc = yes; then 4195 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4196 cat >conftest.$ac_ext <<_ACEOF 4197/* confdefs.h. */ 4198_ACEOF 4199cat confdefs.h >>conftest.$ac_ext 4200cat >>conftest.$ac_ext <<_ACEOF 4201/* end confdefs.h. */ 4202#include <string.h> 4203 4204_ACEOF 4205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4206 $EGREP "memchr" >/dev/null 2>&1; then 4207 : 4208else 4209 ac_cv_header_stdc=no 4210fi 4211rm -f conftest* 4212 4213fi 4214 4215if test $ac_cv_header_stdc = yes; then 4216 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4217 cat >conftest.$ac_ext <<_ACEOF 4218/* confdefs.h. */ 4219_ACEOF 4220cat confdefs.h >>conftest.$ac_ext 4221cat >>conftest.$ac_ext <<_ACEOF 4222/* end confdefs.h. */ 4223#include <stdlib.h> 4224 4225_ACEOF 4226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4227 $EGREP "free" >/dev/null 2>&1; then 4228 : 4229else 4230 ac_cv_header_stdc=no 4231fi 4232rm -f conftest* 4233 4234fi 4235 4236if test $ac_cv_header_stdc = yes; then 4237 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4238 if test "$cross_compiling" = yes; then 4239 : 4240else 4241 cat >conftest.$ac_ext <<_ACEOF 4242/* confdefs.h. */ 4243_ACEOF 4244cat confdefs.h >>conftest.$ac_ext 4245cat >>conftest.$ac_ext <<_ACEOF 4246/* end confdefs.h. */ 4247#include <ctype.h> 4248#if ((' ' & 0x0FF) == 0x020) 4249# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4250# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4251#else 4252# define ISLOWER(c) \ 4253 (('a' <= (c) && (c) <= 'i') \ 4254 || ('j' <= (c) && (c) <= 'r') \ 4255 || ('s' <= (c) && (c) <= 'z')) 4256# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4257#endif 4258 4259#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4260int 4261main () 4262{ 4263 int i; 4264 for (i = 0; i < 256; i++) 4265 if (XOR (islower (i), ISLOWER (i)) 4266 || toupper (i) != TOUPPER (i)) 4267 exit(2); 4268 exit (0); 4269} 4270_ACEOF 4271rm -f conftest$ac_exeext 4272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4273 (eval $ac_link) 2>&5 4274 ac_status=$? 4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4278 (eval $ac_try) 2>&5 4279 ac_status=$? 4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4281 (exit $ac_status); }; }; then 4282 : 4283else 4284 echo "$as_me: program exited with status $ac_status" >&5 4285echo "$as_me: failed program was:" >&5 4286sed 's/^/| /' conftest.$ac_ext >&5 4287 4288( exit $ac_status ) 4289ac_cv_header_stdc=no 4290fi 4291rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4292fi 4293fi 4294fi 4295echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4296echo "${ECHO_T}$ac_cv_header_stdc" >&6 4297if test $ac_cv_header_stdc = yes; then 4298 4299cat >>confdefs.h <<\_ACEOF 4300#define STDC_HEADERS 1 4301_ACEOF 4302 4303fi 4304 4305# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4316 inttypes.h stdint.h unistd.h 4317do 4318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4319echo "$as_me:$LINENO: checking for $ac_header" >&5 4320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4321if eval "test \"\${$as_ac_Header+set}\" = set"; then 4322 echo $ECHO_N "(cached) $ECHO_C" >&6 4323else 4324 cat >conftest.$ac_ext <<_ACEOF 4325/* confdefs.h. */ 4326_ACEOF 4327cat confdefs.h >>conftest.$ac_ext 4328cat >>conftest.$ac_ext <<_ACEOF 4329/* end confdefs.h. */ 4330$ac_includes_default 4331 4332#include <$ac_header> 4333_ACEOF 4334rm -f conftest.$ac_objext 4335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4336 (eval $ac_compile) 2>conftest.er1 4337 ac_status=$? 4338 grep -v '^ *+' conftest.er1 >conftest.err 4339 rm -f conftest.er1 4340 cat conftest.err >&5 4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4342 (exit $ac_status); } && 4343 { ac_try='test -z "$ac_c_werror_flag" 4344 || test ! -s conftest.err' 4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4346 (eval $ac_try) 2>&5 4347 ac_status=$? 4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4349 (exit $ac_status); }; } && 4350 { ac_try='test -s conftest.$ac_objext' 4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4352 (eval $ac_try) 2>&5 4353 ac_status=$? 4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4355 (exit $ac_status); }; }; then 4356 eval "$as_ac_Header=yes" 4357else 4358 echo "$as_me: failed program was:" >&5 4359sed 's/^/| /' conftest.$ac_ext >&5 4360 4361eval "$as_ac_Header=no" 4362fi 4363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4364fi 4365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4367if test `eval echo '${'$as_ac_Header'}'` = yes; then 4368 cat >>confdefs.h <<_ACEOF 4369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4370_ACEOF 4371 4372fi 4373 4374done 4375 4376 4377 4378for ac_header in dlfcn.h 4379do 4380as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4381if eval "test \"\${$as_ac_Header+set}\" = set"; then 4382 echo "$as_me:$LINENO: checking for $ac_header" >&5 4383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4384if eval "test \"\${$as_ac_Header+set}\" = set"; then 4385 echo $ECHO_N "(cached) $ECHO_C" >&6 4386fi 4387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4389else 4390 # Is the header compilable? 4391echo "$as_me:$LINENO: checking $ac_header usability" >&5 4392echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4393cat >conftest.$ac_ext <<_ACEOF 4394/* confdefs.h. */ 4395_ACEOF 4396cat confdefs.h >>conftest.$ac_ext 4397cat >>conftest.$ac_ext <<_ACEOF 4398/* end confdefs.h. */ 4399$ac_includes_default 4400#include <$ac_header> 4401_ACEOF 4402rm -f conftest.$ac_objext 4403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4404 (eval $ac_compile) 2>conftest.er1 4405 ac_status=$? 4406 grep -v '^ *+' conftest.er1 >conftest.err 4407 rm -f conftest.er1 4408 cat conftest.err >&5 4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4410 (exit $ac_status); } && 4411 { ac_try='test -z "$ac_c_werror_flag" 4412 || test ! -s conftest.err' 4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4414 (eval $ac_try) 2>&5 4415 ac_status=$? 4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4417 (exit $ac_status); }; } && 4418 { ac_try='test -s conftest.$ac_objext' 4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4420 (eval $ac_try) 2>&5 4421 ac_status=$? 4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4423 (exit $ac_status); }; }; then 4424 ac_header_compiler=yes 4425else 4426 echo "$as_me: failed program was:" >&5 4427sed 's/^/| /' conftest.$ac_ext >&5 4428 4429ac_header_compiler=no 4430fi 4431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4432echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4433echo "${ECHO_T}$ac_header_compiler" >&6 4434 4435# Is the header present? 4436echo "$as_me:$LINENO: checking $ac_header presence" >&5 4437echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4438cat >conftest.$ac_ext <<_ACEOF 4439/* confdefs.h. */ 4440_ACEOF 4441cat confdefs.h >>conftest.$ac_ext 4442cat >>conftest.$ac_ext <<_ACEOF 4443/* end confdefs.h. */ 4444#include <$ac_header> 4445_ACEOF 4446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4448 ac_status=$? 4449 grep -v '^ *+' conftest.er1 >conftest.err 4450 rm -f conftest.er1 4451 cat conftest.err >&5 4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4453 (exit $ac_status); } >/dev/null; then 4454 if test -s conftest.err; then 4455 ac_cpp_err=$ac_c_preproc_warn_flag 4456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4457 else 4458 ac_cpp_err= 4459 fi 4460else 4461 ac_cpp_err=yes 4462fi 4463if test -z "$ac_cpp_err"; then 4464 ac_header_preproc=yes 4465else 4466 echo "$as_me: failed program was:" >&5 4467sed 's/^/| /' conftest.$ac_ext >&5 4468 4469 ac_header_preproc=no 4470fi 4471rm -f conftest.err conftest.$ac_ext 4472echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4473echo "${ECHO_T}$ac_header_preproc" >&6 4474 4475# So? What about this header? 4476case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4477 yes:no: ) 4478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4479echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4481echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4482 ac_header_preproc=yes 4483 ;; 4484 no:yes:* ) 4485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4486echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4488echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4490echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4492echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4494echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4496echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4497 ( 4498 cat <<\_ASBOX 4499## ------------------------------ ## 4500## Report this to the oto lists. ## 4501## ------------------------------ ## 4502_ASBOX 4503 ) | 4504 sed "s/^/$as_me: WARNING: /" >&2 4505 ;; 4506esac 4507echo "$as_me:$LINENO: checking for $ac_header" >&5 4508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4509if eval "test \"\${$as_ac_Header+set}\" = set"; then 4510 echo $ECHO_N "(cached) $ECHO_C" >&6 4511else 4512 eval "$as_ac_Header=\$ac_header_preproc" 4513fi 4514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4516 4517fi 4518if test `eval echo '${'$as_ac_Header'}'` = yes; then 4519 cat >>confdefs.h <<_ACEOF 4520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4521_ACEOF 4522 4523fi 4524 4525done 4526 4527ac_ext=cc 4528ac_cpp='$CXXCPP $CPPFLAGS' 4529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4532if test -n "$ac_tool_prefix"; then 4533 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4534 do 4535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4536set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4537echo "$as_me:$LINENO: checking for $ac_word" >&5 4538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4539if test "${ac_cv_prog_CXX+set}" = set; then 4540 echo $ECHO_N "(cached) $ECHO_C" >&6 4541else 4542 if test -n "$CXX"; then 4543 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4544else 4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4546for as_dir in $PATH 4547do 4548 IFS=$as_save_IFS 4549 test -z "$as_dir" && as_dir=. 4550 for ac_exec_ext in '' $ac_executable_extensions; do 4551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4552 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4554 break 2 4555 fi 4556done 4557done 4558 4559fi 4560fi 4561CXX=$ac_cv_prog_CXX 4562if test -n "$CXX"; then 4563 echo "$as_me:$LINENO: result: $CXX" >&5 4564echo "${ECHO_T}$CXX" >&6 4565else 4566 echo "$as_me:$LINENO: result: no" >&5 4567echo "${ECHO_T}no" >&6 4568fi 4569 4570 test -n "$CXX" && break 4571 done 4572fi 4573if test -z "$CXX"; then 4574 ac_ct_CXX=$CXX 4575 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4576do 4577 # Extract the first word of "$ac_prog", so it can be a program name with args. 4578set dummy $ac_prog; ac_word=$2 4579echo "$as_me:$LINENO: checking for $ac_word" >&5 4580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4581if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4582 echo $ECHO_N "(cached) $ECHO_C" >&6 4583else 4584 if test -n "$ac_ct_CXX"; then 4585 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4586else 4587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4588for as_dir in $PATH 4589do 4590 IFS=$as_save_IFS 4591 test -z "$as_dir" && as_dir=. 4592 for ac_exec_ext in '' $ac_executable_extensions; do 4593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4594 ac_cv_prog_ac_ct_CXX="$ac_prog" 4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4596 break 2 4597 fi 4598done 4599done 4600 4601fi 4602fi 4603ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4604if test -n "$ac_ct_CXX"; then 4605 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4606echo "${ECHO_T}$ac_ct_CXX" >&6 4607else 4608 echo "$as_me:$LINENO: result: no" >&5 4609echo "${ECHO_T}no" >&6 4610fi 4611 4612 test -n "$ac_ct_CXX" && break 4613done 4614test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4615 4616 CXX=$ac_ct_CXX 4617fi 4618 4619 4620# Provide some information about the compiler. 4621echo "$as_me:$LINENO:" \ 4622 "checking for C++ compiler version" >&5 4623ac_compiler=`set X $ac_compile; echo $2` 4624{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4625 (eval $ac_compiler --version </dev/null >&5) 2>&5 4626 ac_status=$? 4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4628 (exit $ac_status); } 4629{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4630 (eval $ac_compiler -v </dev/null >&5) 2>&5 4631 ac_status=$? 4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4633 (exit $ac_status); } 4634{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4635 (eval $ac_compiler -V </dev/null >&5) 2>&5 4636 ac_status=$? 4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4638 (exit $ac_status); } 4639 4640echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4641echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4642if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4643 echo $ECHO_N "(cached) $ECHO_C" >&6 4644else 4645 cat >conftest.$ac_ext <<_ACEOF 4646/* confdefs.h. */ 4647_ACEOF 4648cat confdefs.h >>conftest.$ac_ext 4649cat >>conftest.$ac_ext <<_ACEOF 4650/* end confdefs.h. */ 4651 4652int 4653main () 4654{ 4655#ifndef __GNUC__ 4656 choke me 4657#endif 4658 4659 ; 4660 return 0; 4661} 4662_ACEOF 4663rm -f conftest.$ac_objext 4664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4665 (eval $ac_compile) 2>conftest.er1 4666 ac_status=$? 4667 grep -v '^ *+' conftest.er1 >conftest.err 4668 rm -f conftest.er1 4669 cat conftest.err >&5 4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4671 (exit $ac_status); } && 4672 { ac_try='test -z "$ac_cxx_werror_flag" 4673 || test ! -s conftest.err' 4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4675 (eval $ac_try) 2>&5 4676 ac_status=$? 4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4678 (exit $ac_status); }; } && 4679 { ac_try='test -s conftest.$ac_objext' 4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4681 (eval $ac_try) 2>&5 4682 ac_status=$? 4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4684 (exit $ac_status); }; }; then 4685 ac_compiler_gnu=yes 4686else 4687 echo "$as_me: failed program was:" >&5 4688sed 's/^/| /' conftest.$ac_ext >&5 4689 4690ac_compiler_gnu=no 4691fi 4692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4693ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4694 4695fi 4696echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4697echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4698GXX=`test $ac_compiler_gnu = yes && echo yes` 4699ac_test_CXXFLAGS=${CXXFLAGS+set} 4700ac_save_CXXFLAGS=$CXXFLAGS 4701CXXFLAGS="-g" 4702echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4703echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4704if test "${ac_cv_prog_cxx_g+set}" = set; then 4705 echo $ECHO_N "(cached) $ECHO_C" >&6 4706else 4707 cat >conftest.$ac_ext <<_ACEOF 4708/* confdefs.h. */ 4709_ACEOF 4710cat confdefs.h >>conftest.$ac_ext 4711cat >>conftest.$ac_ext <<_ACEOF 4712/* end confdefs.h. */ 4713 4714int 4715main () 4716{ 4717 4718 ; 4719 return 0; 4720} 4721_ACEOF 4722rm -f conftest.$ac_objext 4723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4724 (eval $ac_compile) 2>conftest.er1 4725 ac_status=$? 4726 grep -v '^ *+' conftest.er1 >conftest.err 4727 rm -f conftest.er1 4728 cat conftest.err >&5 4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4730 (exit $ac_status); } && 4731 { ac_try='test -z "$ac_cxx_werror_flag" 4732 || test ! -s conftest.err' 4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4734 (eval $ac_try) 2>&5 4735 ac_status=$? 4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4737 (exit $ac_status); }; } && 4738 { ac_try='test -s conftest.$ac_objext' 4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4740 (eval $ac_try) 2>&5 4741 ac_status=$? 4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4743 (exit $ac_status); }; }; then 4744 ac_cv_prog_cxx_g=yes 4745else 4746 echo "$as_me: failed program was:" >&5 4747sed 's/^/| /' conftest.$ac_ext >&5 4748 4749ac_cv_prog_cxx_g=no 4750fi 4751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4752fi 4753echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4754echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4755if test "$ac_test_CXXFLAGS" = set; then 4756 CXXFLAGS=$ac_save_CXXFLAGS 4757elif test $ac_cv_prog_cxx_g = yes; then 4758 if test "$GXX" = yes; then 4759 CXXFLAGS="-g -O2" 4760 else 4761 CXXFLAGS="-g" 4762 fi 4763else 4764 if test "$GXX" = yes; then 4765 CXXFLAGS="-O2" 4766 else 4767 CXXFLAGS= 4768 fi 4769fi 4770for ac_declaration in \ 4771 '' \ 4772 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4773 'extern "C" void std::exit (int); using std::exit;' \ 4774 'extern "C" void exit (int) throw ();' \ 4775 'extern "C" void exit (int);' \ 4776 'void exit (int);' 4777do 4778 cat >conftest.$ac_ext <<_ACEOF 4779/* confdefs.h. */ 4780_ACEOF 4781cat confdefs.h >>conftest.$ac_ext 4782cat >>conftest.$ac_ext <<_ACEOF 4783/* end confdefs.h. */ 4784$ac_declaration 4785#include <stdlib.h> 4786int 4787main () 4788{ 4789exit (42); 4790 ; 4791 return 0; 4792} 4793_ACEOF 4794rm -f conftest.$ac_objext 4795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4796 (eval $ac_compile) 2>conftest.er1 4797 ac_status=$? 4798 grep -v '^ *+' conftest.er1 >conftest.err 4799 rm -f conftest.er1 4800 cat conftest.err >&5 4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4802 (exit $ac_status); } && 4803 { ac_try='test -z "$ac_cxx_werror_flag" 4804 || test ! -s conftest.err' 4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4806 (eval $ac_try) 2>&5 4807 ac_status=$? 4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4809 (exit $ac_status); }; } && 4810 { ac_try='test -s conftest.$ac_objext' 4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4812 (eval $ac_try) 2>&5 4813 ac_status=$? 4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4815 (exit $ac_status); }; }; then 4816 : 4817else 4818 echo "$as_me: failed program was:" >&5 4819sed 's/^/| /' conftest.$ac_ext >&5 4820 4821continue 4822fi 4823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4824 cat >conftest.$ac_ext <<_ACEOF 4825/* confdefs.h. */ 4826_ACEOF 4827cat confdefs.h >>conftest.$ac_ext 4828cat >>conftest.$ac_ext <<_ACEOF 4829/* end confdefs.h. */ 4830$ac_declaration 4831int 4832main () 4833{ 4834exit (42); 4835 ; 4836 return 0; 4837} 4838_ACEOF 4839rm -f conftest.$ac_objext 4840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4841 (eval $ac_compile) 2>conftest.er1 4842 ac_status=$? 4843 grep -v '^ *+' conftest.er1 >conftest.err 4844 rm -f conftest.er1 4845 cat conftest.err >&5 4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4847 (exit $ac_status); } && 4848 { ac_try='test -z "$ac_cxx_werror_flag" 4849 || test ! -s conftest.err' 4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4851 (eval $ac_try) 2>&5 4852 ac_status=$? 4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4854 (exit $ac_status); }; } && 4855 { ac_try='test -s conftest.$ac_objext' 4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4857 (eval $ac_try) 2>&5 4858 ac_status=$? 4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4860 (exit $ac_status); }; }; then 4861 break 4862else 4863 echo "$as_me: failed program was:" >&5 4864sed 's/^/| /' conftest.$ac_ext >&5 4865 4866fi 4867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4868done 4869rm -f conftest* 4870if test -n "$ac_declaration"; then 4871 echo '#ifdef __cplusplus' >>confdefs.h 4872 echo $ac_declaration >>confdefs.h 4873 echo '#endif' >>confdefs.h 4874fi 4875 4876ac_ext=cc 4877ac_cpp='$CXXCPP $CPPFLAGS' 4878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4881 4882depcc="$CXX" am_compiler_list= 4883 4884echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4885echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4886if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4887 echo $ECHO_N "(cached) $ECHO_C" >&6 4888else 4889 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4890 # We make a subdir and do the tests there. Otherwise we can end up 4891 # making bogus files that we don't know about and never remove. For 4892 # instance it was reported that on HP-UX the gcc test will end up 4893 # making a dummy file named `D' -- because `-MD' means `put the output 4894 # in D'. 4895 mkdir conftest.dir 4896 # Copy depcomp to subdir because otherwise we won't find it if we're 4897 # using a relative directory. 4898 cp "$am_depcomp" conftest.dir 4899 cd conftest.dir 4900 # We will build objects and dependencies in a subdirectory because 4901 # it helps to detect inapplicable dependency modes. For instance 4902 # both Tru64's cc and ICC support -MD to output dependencies as a 4903 # side effect of compilation, but ICC will put the dependencies in 4904 # the current directory while Tru64 will put them in the object 4905 # directory. 4906 mkdir sub 4907 4908 am_cv_CXX_dependencies_compiler_type=none 4909 if test "$am_compiler_list" = ""; then 4910 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4911 fi 4912 for depmode in $am_compiler_list; do 4913 # Setup a source with many dependencies, because some compilers 4914 # like to wrap large dependency lists on column 80 (with \), and 4915 # we should not choose a depcomp mode which is confused by this. 4916 # 4917 # We need to recreate these files for each test, as the compiler may 4918 # overwrite some of them when testing with obscure command lines. 4919 # This happens at least with the AIX C compiler. 4920 : > sub/conftest.c 4921 for i in 1 2 3 4 5 6; do 4922 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4923 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4924 # Solaris 8's {/usr,}/bin/sh. 4925 touch sub/conftst$i.h 4926 done 4927 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4928 4929 case $depmode in 4930 nosideeffect) 4931 # after this tag, mechanisms are not by side-effect, so they'll 4932 # only be used when explicitly requested 4933 if test "x$enable_dependency_tracking" = xyes; then 4934 continue 4935 else 4936 break 4937 fi 4938 ;; 4939 none) break ;; 4940 esac 4941 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4942 # mode. It turns out that the SunPro C++ compiler does not properly 4943 # handle `-M -o', and we need to detect this. 4944 if depmode=$depmode \ 4945 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4946 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4947 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4948 >/dev/null 2>conftest.err && 4949 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4950 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4951 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4952 # icc doesn't choke on unknown options, it will just issue warnings 4953 # or remarks (even with -Werror). So we grep stderr for any message 4954 # that says an option was ignored or not supported. 4955 # When given -MP, icc 7.0 and 7.1 complain thusly: 4956 # icc: Command line warning: ignoring option '-M'; no argument required 4957 # The diagnosis changed in icc 8.0: 4958 # icc: Command line remark: option '-MP' not supported 4959 if (grep 'ignoring option' conftest.err || 4960 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4961 am_cv_CXX_dependencies_compiler_type=$depmode 4962 break 4963 fi 4964 fi 4965 done 4966 4967 cd .. 4968 rm -rf conftest.dir 4969else 4970 am_cv_CXX_dependencies_compiler_type=none 4971fi 4972 4973fi 4974echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4975echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4976CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4977 4978 4979 4980if 4981 test "x$enable_dependency_tracking" != xno \ 4982 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4983 am__fastdepCXX_TRUE= 4984 am__fastdepCXX_FALSE='#' 4985else 4986 am__fastdepCXX_TRUE='#' 4987 am__fastdepCXX_FALSE= 4988fi 4989 4990 4991 4992 4993if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4994 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4995 (test "X$CXX" != "Xg++"))) ; then 4996 ac_ext=cc 4997ac_cpp='$CXXCPP $CPPFLAGS' 4998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5001echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5002echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5003if test -z "$CXXCPP"; then 5004 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5005 echo $ECHO_N "(cached) $ECHO_C" >&6 5006else 5007 # Double quotes because CXXCPP needs to be expanded 5008 for CXXCPP in "$CXX -E" "/lib/cpp" 5009 do 5010 ac_preproc_ok=false 5011for ac_cxx_preproc_warn_flag in '' yes 5012do 5013 # Use a header file that comes with gcc, so configuring glibc 5014 # with a fresh cross-compiler works. 5015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5016 # <limits.h> exists even on freestanding compilers. 5017 # On the NeXT, cc -E runs the code through the compiler's parser, 5018 # not just through cpp. "Syntax error" is here to catch this case. 5019 cat >conftest.$ac_ext <<_ACEOF 5020/* confdefs.h. */ 5021_ACEOF 5022cat confdefs.h >>conftest.$ac_ext 5023cat >>conftest.$ac_ext <<_ACEOF 5024/* end confdefs.h. */ 5025#ifdef __STDC__ 5026# include <limits.h> 5027#else 5028# include <assert.h> 5029#endif 5030 Syntax error 5031_ACEOF 5032if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5034 ac_status=$? 5035 grep -v '^ *+' conftest.er1 >conftest.err 5036 rm -f conftest.er1 5037 cat conftest.err >&5 5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5039 (exit $ac_status); } >/dev/null; then 5040 if test -s conftest.err; then 5041 ac_cpp_err=$ac_cxx_preproc_warn_flag 5042 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5043 else 5044 ac_cpp_err= 5045 fi 5046else 5047 ac_cpp_err=yes 5048fi 5049if test -z "$ac_cpp_err"; then 5050 : 5051else 5052 echo "$as_me: failed program was:" >&5 5053sed 's/^/| /' conftest.$ac_ext >&5 5054 5055 # Broken: fails on valid input. 5056continue 5057fi 5058rm -f conftest.err conftest.$ac_ext 5059 5060 # OK, works on sane cases. Now check whether non-existent headers 5061 # can be detected and how. 5062 cat >conftest.$ac_ext <<_ACEOF 5063/* confdefs.h. */ 5064_ACEOF 5065cat confdefs.h >>conftest.$ac_ext 5066cat >>conftest.$ac_ext <<_ACEOF 5067/* end confdefs.h. */ 5068#include <ac_nonexistent.h> 5069_ACEOF 5070if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5072 ac_status=$? 5073 grep -v '^ *+' conftest.er1 >conftest.err 5074 rm -f conftest.er1 5075 cat conftest.err >&5 5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5077 (exit $ac_status); } >/dev/null; then 5078 if test -s conftest.err; then 5079 ac_cpp_err=$ac_cxx_preproc_warn_flag 5080 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5081 else 5082 ac_cpp_err= 5083 fi 5084else 5085 ac_cpp_err=yes 5086fi 5087if test -z "$ac_cpp_err"; then 5088 # Broken: success on invalid input. 5089continue 5090else 5091 echo "$as_me: failed program was:" >&5 5092sed 's/^/| /' conftest.$ac_ext >&5 5093 5094 # Passes both tests. 5095ac_preproc_ok=: 5096break 5097fi 5098rm -f conftest.err conftest.$ac_ext 5099 5100done 5101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5102rm -f conftest.err conftest.$ac_ext 5103if $ac_preproc_ok; then 5104 break 5105fi 5106 5107 done 5108 ac_cv_prog_CXXCPP=$CXXCPP 5109 5110fi 5111 CXXCPP=$ac_cv_prog_CXXCPP 5112else 5113 ac_cv_prog_CXXCPP=$CXXCPP 5114fi 5115echo "$as_me:$LINENO: result: $CXXCPP" >&5 5116echo "${ECHO_T}$CXXCPP" >&6 5117ac_preproc_ok=false 5118for ac_cxx_preproc_warn_flag in '' yes 5119do 5120 # Use a header file that comes with gcc, so configuring glibc 5121 # with a fresh cross-compiler works. 5122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5123 # <limits.h> exists even on freestanding compilers. 5124 # On the NeXT, cc -E runs the code through the compiler's parser, 5125 # not just through cpp. "Syntax error" is here to catch this case. 5126 cat >conftest.$ac_ext <<_ACEOF 5127/* confdefs.h. */ 5128_ACEOF 5129cat confdefs.h >>conftest.$ac_ext 5130cat >>conftest.$ac_ext <<_ACEOF 5131/* end confdefs.h. */ 5132#ifdef __STDC__ 5133# include <limits.h> 5134#else 5135# include <assert.h> 5136#endif 5137 Syntax error 5138_ACEOF 5139if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5141 ac_status=$? 5142 grep -v '^ *+' conftest.er1 >conftest.err 5143 rm -f conftest.er1 5144 cat conftest.err >&5 5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5146 (exit $ac_status); } >/dev/null; then 5147 if test -s conftest.err; then 5148 ac_cpp_err=$ac_cxx_preproc_warn_flag 5149 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5150 else 5151 ac_cpp_err= 5152 fi 5153else 5154 ac_cpp_err=yes 5155fi 5156if test -z "$ac_cpp_err"; then 5157 : 5158else 5159 echo "$as_me: failed program was:" >&5 5160sed 's/^/| /' conftest.$ac_ext >&5 5161 5162 # Broken: fails on valid input. 5163continue 5164fi 5165rm -f conftest.err conftest.$ac_ext 5166 5167 # OK, works on sane cases. Now check whether non-existent headers 5168 # can be detected and how. 5169 cat >conftest.$ac_ext <<_ACEOF 5170/* confdefs.h. */ 5171_ACEOF 5172cat confdefs.h >>conftest.$ac_ext 5173cat >>conftest.$ac_ext <<_ACEOF 5174/* end confdefs.h. */ 5175#include <ac_nonexistent.h> 5176_ACEOF 5177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5179 ac_status=$? 5180 grep -v '^ *+' conftest.er1 >conftest.err 5181 rm -f conftest.er1 5182 cat conftest.err >&5 5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5184 (exit $ac_status); } >/dev/null; then 5185 if test -s conftest.err; then 5186 ac_cpp_err=$ac_cxx_preproc_warn_flag 5187 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5188 else 5189 ac_cpp_err= 5190 fi 5191else 5192 ac_cpp_err=yes 5193fi 5194if test -z "$ac_cpp_err"; then 5195 # Broken: success on invalid input. 5196continue 5197else 5198 echo "$as_me: failed program was:" >&5 5199sed 's/^/| /' conftest.$ac_ext >&5 5200 5201 # Passes both tests. 5202ac_preproc_ok=: 5203break 5204fi 5205rm -f conftest.err conftest.$ac_ext 5206 5207done 5208# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5209rm -f conftest.err conftest.$ac_ext 5210if $ac_preproc_ok; then 5211 : 5212else 5213 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5214See \`config.log' for more details." >&5 5215echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5216See \`config.log' for more details." >&2;} 5217 { (exit 1); exit 1; }; } 5218fi 5219 5220ac_ext=cc 5221ac_cpp='$CXXCPP $CPPFLAGS' 5222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5225 5226fi 5227 5228 5229ac_ext=f 5230ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5231ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5232ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5233if test -n "$ac_tool_prefix"; then 5234 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5235 do 5236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5237set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5238echo "$as_me:$LINENO: checking for $ac_word" >&5 5239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5240if test "${ac_cv_prog_F77+set}" = set; then 5241 echo $ECHO_N "(cached) $ECHO_C" >&6 5242else 5243 if test -n "$F77"; then 5244 ac_cv_prog_F77="$F77" # Let the user override the test. 5245else 5246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5247for as_dir in $PATH 5248do 5249 IFS=$as_save_IFS 5250 test -z "$as_dir" && as_dir=. 5251 for ac_exec_ext in '' $ac_executable_extensions; do 5252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5253 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5255 break 2 5256 fi 5257done 5258done 5259 5260fi 5261fi 5262F77=$ac_cv_prog_F77 5263if test -n "$F77"; then 5264 echo "$as_me:$LINENO: result: $F77" >&5 5265echo "${ECHO_T}$F77" >&6 5266else 5267 echo "$as_me:$LINENO: result: no" >&5 5268echo "${ECHO_T}no" >&6 5269fi 5270 5271 test -n "$F77" && break 5272 done 5273fi 5274if test -z "$F77"; then 5275 ac_ct_F77=$F77 5276 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5277do 5278 # Extract the first word of "$ac_prog", so it can be a program name with args. 5279set dummy $ac_prog; ac_word=$2 5280echo "$as_me:$LINENO: checking for $ac_word" >&5 5281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5282if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5283 echo $ECHO_N "(cached) $ECHO_C" >&6 5284else 5285 if test -n "$ac_ct_F77"; then 5286 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5287else 5288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5289for as_dir in $PATH 5290do 5291 IFS=$as_save_IFS 5292 test -z "$as_dir" && as_dir=. 5293 for ac_exec_ext in '' $ac_executable_extensions; do 5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5295 ac_cv_prog_ac_ct_F77="$ac_prog" 5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5297 break 2 5298 fi 5299done 5300done 5301 5302fi 5303fi 5304ac_ct_F77=$ac_cv_prog_ac_ct_F77 5305if test -n "$ac_ct_F77"; then 5306 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5307echo "${ECHO_T}$ac_ct_F77" >&6 5308else 5309 echo "$as_me:$LINENO: result: no" >&5 5310echo "${ECHO_T}no" >&6 5311fi 5312 5313 test -n "$ac_ct_F77" && break 5314done 5315 5316 F77=$ac_ct_F77 5317fi 5318 5319 5320# Provide some information about the compiler. 5321echo "$as_me:5321:" \ 5322 "checking for Fortran 77 compiler version" >&5 5323ac_compiler=`set X $ac_compile; echo $2` 5324{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5325 (eval $ac_compiler --version </dev/null >&5) 2>&5 5326 ac_status=$? 5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5328 (exit $ac_status); } 5329{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5330 (eval $ac_compiler -v </dev/null >&5) 2>&5 5331 ac_status=$? 5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5333 (exit $ac_status); } 5334{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5335 (eval $ac_compiler -V </dev/null >&5) 2>&5 5336 ac_status=$? 5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5338 (exit $ac_status); } 5339rm -f a.out 5340 5341# If we don't use `.F' as extension, the preprocessor is not run on the 5342# input file. (Note that this only needs to work for GNU compilers.) 5343ac_save_ext=$ac_ext 5344ac_ext=F 5345echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5346echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5347if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5348 echo $ECHO_N "(cached) $ECHO_C" >&6 5349else 5350 cat >conftest.$ac_ext <<_ACEOF 5351 program main 5352#ifndef __GNUC__ 5353 choke me 5354#endif 5355 5356 end 5357_ACEOF 5358rm -f conftest.$ac_objext 5359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5360 (eval $ac_compile) 2>conftest.er1 5361 ac_status=$? 5362 grep -v '^ *+' conftest.er1 >conftest.err 5363 rm -f conftest.er1 5364 cat conftest.err >&5 5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5366 (exit $ac_status); } && 5367 { ac_try='test -z "$ac_f77_werror_flag" 5368 || test ! -s conftest.err' 5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5370 (eval $ac_try) 2>&5 5371 ac_status=$? 5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5373 (exit $ac_status); }; } && 5374 { ac_try='test -s conftest.$ac_objext' 5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5376 (eval $ac_try) 2>&5 5377 ac_status=$? 5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5379 (exit $ac_status); }; }; then 5380 ac_compiler_gnu=yes 5381else 5382 echo "$as_me: failed program was:" >&5 5383sed 's/^/| /' conftest.$ac_ext >&5 5384 5385ac_compiler_gnu=no 5386fi 5387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5388ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5389 5390fi 5391echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5392echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5393ac_ext=$ac_save_ext 5394ac_test_FFLAGS=${FFLAGS+set} 5395ac_save_FFLAGS=$FFLAGS 5396FFLAGS= 5397echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5398echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5399if test "${ac_cv_prog_f77_g+set}" = set; then 5400 echo $ECHO_N "(cached) $ECHO_C" >&6 5401else 5402 FFLAGS=-g 5403cat >conftest.$ac_ext <<_ACEOF 5404 program main 5405 5406 end 5407_ACEOF 5408rm -f conftest.$ac_objext 5409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5410 (eval $ac_compile) 2>conftest.er1 5411 ac_status=$? 5412 grep -v '^ *+' conftest.er1 >conftest.err 5413 rm -f conftest.er1 5414 cat conftest.err >&5 5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5416 (exit $ac_status); } && 5417 { ac_try='test -z "$ac_f77_werror_flag" 5418 || test ! -s conftest.err' 5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5420 (eval $ac_try) 2>&5 5421 ac_status=$? 5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5423 (exit $ac_status); }; } && 5424 { ac_try='test -s conftest.$ac_objext' 5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5426 (eval $ac_try) 2>&5 5427 ac_status=$? 5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5429 (exit $ac_status); }; }; then 5430 ac_cv_prog_f77_g=yes 5431else 5432 echo "$as_me: failed program was:" >&5 5433sed 's/^/| /' conftest.$ac_ext >&5 5434 5435ac_cv_prog_f77_g=no 5436fi 5437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5438 5439fi 5440echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5441echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5442if test "$ac_test_FFLAGS" = set; then 5443 FFLAGS=$ac_save_FFLAGS 5444elif test $ac_cv_prog_f77_g = yes; then 5445 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5446 FFLAGS="-g -O2" 5447 else 5448 FFLAGS="-g" 5449 fi 5450else 5451 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5452 FFLAGS="-O2" 5453 else 5454 FFLAGS= 5455 fi 5456fi 5457 5458G77=`test $ac_compiler_gnu = yes && echo yes` 5459ac_ext=c 5460ac_cpp='$CPP $CPPFLAGS' 5461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5463ac_compiler_gnu=$ac_cv_c_compiler_gnu 5464 5465 5466 5467# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5468 5469# find the maximum length of command line arguments 5470echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5471echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5472if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5473 echo $ECHO_N "(cached) $ECHO_C" >&6 5474else 5475 i=0 5476 teststring="ABCD" 5477 5478 case $build_os in 5479 msdosdjgpp*) 5480 # On DJGPP, this test can blow up pretty badly due to problems in libc 5481 # (any single argument exceeding 2000 bytes causes a buffer overrun 5482 # during glob expansion). Even if it were fixed, the result of this 5483 # check would be larger than it should be. 5484 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5485 ;; 5486 5487 gnu*) 5488 # Under GNU Hurd, this test is not required because there is 5489 # no limit to the length of command line arguments. 5490 # Libtool will interpret -1 as no limit whatsoever 5491 lt_cv_sys_max_cmd_len=-1; 5492 ;; 5493 5494 cygwin* | mingw*) 5495 # On Win9x/ME, this test blows up -- it succeeds, but takes 5496 # about 5 minutes as the teststring grows exponentially. 5497 # Worse, since 9x/ME are not pre-emptively multitasking, 5498 # you end up with a "frozen" computer, even though with patience 5499 # the test eventually succeeds (with a max line length of 256k). 5500 # Instead, let's just punt: use the minimum linelength reported by 5501 # all of the supported platforms: 8192 (on NT/2K/XP). 5502 lt_cv_sys_max_cmd_len=8192; 5503 ;; 5504 5505 amigaos*) 5506 # On AmigaOS with pdksh, this test takes hours, literally. 5507 # So we just punt and use a minimum line length of 8192. 5508 lt_cv_sys_max_cmd_len=8192; 5509 ;; 5510 5511 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5512 # This has been around since 386BSD, at least. Likely further. 5513 if test -x /sbin/sysctl; then 5514 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5515 elif test -x /usr/sbin/sysctl; then 5516 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5517 else 5518 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5519 fi 5520 # And add a safety zone 5521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5523 ;; 5524 osf*) 5525 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5526 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5527 # nice to cause kernel panics so lets avoid the loop below. 5528 # First set a reasonable default. 5529 lt_cv_sys_max_cmd_len=16384 5530 # 5531 if test -x /sbin/sysconfig; then 5532 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5533 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5534 esac 5535 fi 5536 ;; 5537 *) 5538 # If test is not a shell built-in, we'll probably end up computing a 5539 # maximum length that is only half of the actual maximum length, but 5540 # we can't tell. 5541 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5542 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5543 = "XX$teststring") >/dev/null 2>&1 && 5544 new_result=`expr "X$teststring" : ".*" 2>&1` && 5545 lt_cv_sys_max_cmd_len=$new_result && 5546 test $i != 17 # 1/2 MB should be enough 5547 do 5548 i=`expr $i + 1` 5549 teststring=$teststring$teststring 5550 done 5551 teststring= 5552 # Add a significant safety factor because C++ compilers can tack on massive 5553 # amounts of additional arguments before passing them to the linker. 5554 # It appears as though 1/2 is a usable value. 5555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5556 ;; 5557 esac 5558 5559fi 5560 5561if test -n $lt_cv_sys_max_cmd_len ; then 5562 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5563echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5564else 5565 echo "$as_me:$LINENO: result: none" >&5 5566echo "${ECHO_T}none" >&6 5567fi 5568 5569 5570 5571 5572# Check for command to grab the raw symbol name followed by C symbol from nm. 5573echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5574echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5575if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5576 echo $ECHO_N "(cached) $ECHO_C" >&6 5577else 5578 5579# These are sane defaults that work on at least a few old systems. 5580# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5581 5582# Character class describing NM global symbol codes. 5583symcode='[BCDEGRST]' 5584 5585# Regexp to match symbols that can be accessed directly from C. 5586sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5587 5588# Transform an extracted symbol line into a proper C declaration 5589lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5590 5591# Transform an extracted symbol line into symbol name and symbol address 5592lt_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'" 5593 5594# Define system-specific variables. 5595case $host_os in 5596aix*) 5597 symcode='[BCDT]' 5598 ;; 5599cygwin* | mingw* | pw32*) 5600 symcode='[ABCDGISTW]' 5601 ;; 5602hpux*) # Its linker distinguishes data from code symbols 5603 if test "$host_cpu" = ia64; then 5604 symcode='[ABCDEGRST]' 5605 fi 5606 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5607 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'" 5608 ;; 5609linux*) 5610 if test "$host_cpu" = ia64; then 5611 symcode='[ABCDGIRSTW]' 5612 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5613 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'" 5614 fi 5615 ;; 5616irix* | nonstopux*) 5617 symcode='[BCDEGRST]' 5618 ;; 5619osf*) 5620 symcode='[BCDEGQRST]' 5621 ;; 5622solaris* | sysv5*) 5623 symcode='[BDRT]' 5624 ;; 5625sysv4) 5626 symcode='[DFNSTU]' 5627 ;; 5628esac 5629 5630# Handle CRLF in mingw tool chain 5631opt_cr= 5632case $build_os in 5633mingw*) 5634 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5635 ;; 5636esac 5637 5638# If we're using GNU nm, then use its standard symbol codes. 5639case `$NM -V 2>&1` in 5640*GNU* | *'with BFD'*) 5641 symcode='[ABCDGIRSTW]' ;; 5642esac 5643 5644# Try without a prefix undercore, then with it. 5645for ac_symprfx in "" "_"; do 5646 5647 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5648 symxfrm="\\1 $ac_symprfx\\2 \\2" 5649 5650 # Write the raw and C identifiers. 5651 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5652 5653 # Check to see that the pipe works correctly. 5654 pipe_works=no 5655 5656 rm -f conftest* 5657 cat > conftest.$ac_ext <<EOF 5658#ifdef __cplusplus 5659extern "C" { 5660#endif 5661char nm_test_var; 5662void nm_test_func(){} 5663#ifdef __cplusplus 5664} 5665#endif 5666int main(){nm_test_var='a';nm_test_func();return(0);} 5667EOF 5668 5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5670 (eval $ac_compile) 2>&5 5671 ac_status=$? 5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5673 (exit $ac_status); }; then 5674 # Now try to grab the symbols. 5675 nlist=conftest.nm 5676 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5677 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5678 ac_status=$? 5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5680 (exit $ac_status); } && test -s "$nlist"; then 5681 # Try sorting and uniquifying the output. 5682 if sort "$nlist" | uniq > "$nlist"T; then 5683 mv -f "$nlist"T "$nlist" 5684 else 5685 rm -f "$nlist"T 5686 fi 5687 5688 # Make sure that we snagged all the symbols we need. 5689 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5690 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5691 cat <<EOF > conftest.$ac_ext 5692#ifdef __cplusplus 5693extern "C" { 5694#endif 5695 5696EOF 5697 # Now generate the symbol file. 5698 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5699 5700 cat <<EOF >> conftest.$ac_ext 5701#if defined (__STDC__) && __STDC__ 5702# define lt_ptr_t void * 5703#else 5704# define lt_ptr_t char * 5705# define const 5706#endif 5707 5708/* The mapping between symbol names and symbols. */ 5709const struct { 5710 const char *name; 5711 lt_ptr_t address; 5712} 5713lt_preloaded_symbols[] = 5714{ 5715EOF 5716 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5717 cat <<\EOF >> conftest.$ac_ext 5718 {0, (lt_ptr_t) 0} 5719}; 5720 5721#ifdef __cplusplus 5722} 5723#endif 5724EOF 5725 # Now try linking the two files. 5726 mv conftest.$ac_objext conftstm.$ac_objext 5727 lt_save_LIBS="$LIBS" 5728 lt_save_CFLAGS="$CFLAGS" 5729 LIBS="conftstm.$ac_objext" 5730 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5732 (eval $ac_link) 2>&5 5733 ac_status=$? 5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5735 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5736 pipe_works=yes 5737 fi 5738 LIBS="$lt_save_LIBS" 5739 CFLAGS="$lt_save_CFLAGS" 5740 else 5741 echo "cannot find nm_test_func in $nlist" >&5 5742 fi 5743 else 5744 echo "cannot find nm_test_var in $nlist" >&5 5745 fi 5746 else 5747 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5748 fi 5749 else 5750 echo "$progname: failed program was:" >&5 5751 cat conftest.$ac_ext >&5 5752 fi 5753 rm -f conftest* conftst* 5754 5755 # Do not use the global_symbol_pipe unless it works. 5756 if test "$pipe_works" = yes; then 5757 break 5758 else 5759 lt_cv_sys_global_symbol_pipe= 5760 fi 5761done 5762 5763fi 5764 5765if test -z "$lt_cv_sys_global_symbol_pipe"; then 5766 lt_cv_sys_global_symbol_to_cdecl= 5767fi 5768if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5769 echo "$as_me:$LINENO: result: failed" >&5 5770echo "${ECHO_T}failed" >&6 5771else 5772 echo "$as_me:$LINENO: result: ok" >&5 5773echo "${ECHO_T}ok" >&6 5774fi 5775 5776echo "$as_me:$LINENO: checking for objdir" >&5 5777echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5778if test "${lt_cv_objdir+set}" = set; then 5779 echo $ECHO_N "(cached) $ECHO_C" >&6 5780else 5781 rm -f .libs 2>/dev/null 5782mkdir .libs 2>/dev/null 5783if test -d .libs; then 5784 lt_cv_objdir=.libs 5785else 5786 # MS-DOS does not allow filenames that begin with a dot. 5787 lt_cv_objdir=_libs 5788fi 5789rmdir .libs 2>/dev/null 5790fi 5791echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5792echo "${ECHO_T}$lt_cv_objdir" >&6 5793objdir=$lt_cv_objdir 5794 5795 5796 5797 5798 5799case $host_os in 5800aix3*) 5801 # AIX sometimes has problems with the GCC collect2 program. For some 5802 # reason, if we set the COLLECT_NAMES environment variable, the problems 5803 # vanish in a puff of smoke. 5804 if test "X${COLLECT_NAMES+set}" != Xset; then 5805 COLLECT_NAMES= 5806 export COLLECT_NAMES 5807 fi 5808 ;; 5809esac 5810 5811# Sed substitution that helps us do robust quoting. It backslashifies 5812# metacharacters that are still active within double-quoted strings. 5813Xsed='sed -e 1s/^X//' 5814sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5815 5816# Same as above, but do not quote variable references. 5817double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5818 5819# Sed substitution to delay expansion of an escaped shell variable in a 5820# double_quote_subst'ed string. 5821delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5822 5823# Sed substitution to avoid accidental globbing in evaled expressions 5824no_glob_subst='s/\*/\\\*/g' 5825 5826# Constants: 5827rm="rm -f" 5828 5829# Global variables: 5830default_ofile=libtool 5831can_build_shared=yes 5832 5833# All known linkers require a `.a' archive for static linking (except MSVC, 5834# which needs '.lib'). 5835libext=a 5836ltmain="$ac_aux_dir/ltmain.sh" 5837ofile="$default_ofile" 5838with_gnu_ld="$lt_cv_prog_gnu_ld" 5839 5840if test -n "$ac_tool_prefix"; then 5841 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5842set dummy ${ac_tool_prefix}ar; ac_word=$2 5843echo "$as_me:$LINENO: checking for $ac_word" >&5 5844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5845if test "${ac_cv_prog_AR+set}" = set; then 5846 echo $ECHO_N "(cached) $ECHO_C" >&6 5847else 5848 if test -n "$AR"; then 5849 ac_cv_prog_AR="$AR" # Let the user override the test. 5850else 5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5852for as_dir in $PATH 5853do 5854 IFS=$as_save_IFS 5855 test -z "$as_dir" && as_dir=. 5856 for ac_exec_ext in '' $ac_executable_extensions; do 5857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5858 ac_cv_prog_AR="${ac_tool_prefix}ar" 5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5860 break 2 5861 fi 5862done 5863done 5864 5865fi 5866fi 5867AR=$ac_cv_prog_AR 5868if test -n "$AR"; then 5869 echo "$as_me:$LINENO: result: $AR" >&5 5870echo "${ECHO_T}$AR" >&6 5871else 5872 echo "$as_me:$LINENO: result: no" >&5 5873echo "${ECHO_T}no" >&6 5874fi 5875 5876fi 5877if test -z "$ac_cv_prog_AR"; then 5878 ac_ct_AR=$AR 5879 # Extract the first word of "ar", so it can be a program name with args. 5880set dummy ar; ac_word=$2 5881echo "$as_me:$LINENO: checking for $ac_word" >&5 5882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5883if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5884 echo $ECHO_N "(cached) $ECHO_C" >&6 5885else 5886 if test -n "$ac_ct_AR"; then 5887 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5888else 5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5890for as_dir in $PATH 5891do 5892 IFS=$as_save_IFS 5893 test -z "$as_dir" && as_dir=. 5894 for ac_exec_ext in '' $ac_executable_extensions; do 5895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5896 ac_cv_prog_ac_ct_AR="ar" 5897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5898 break 2 5899 fi 5900done 5901done 5902 5903 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5904fi 5905fi 5906ac_ct_AR=$ac_cv_prog_ac_ct_AR 5907if test -n "$ac_ct_AR"; then 5908 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5909echo "${ECHO_T}$ac_ct_AR" >&6 5910else 5911 echo "$as_me:$LINENO: result: no" >&5 5912echo "${ECHO_T}no" >&6 5913fi 5914 5915 AR=$ac_ct_AR 5916else 5917 AR="$ac_cv_prog_AR" 5918fi 5919 5920if test -n "$ac_tool_prefix"; then 5921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5922set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5923echo "$as_me:$LINENO: checking for $ac_word" >&5 5924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5925if test "${ac_cv_prog_RANLIB+set}" = set; then 5926 echo $ECHO_N "(cached) $ECHO_C" >&6 5927else 5928 if test -n "$RANLIB"; then 5929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5930else 5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5932for as_dir in $PATH 5933do 5934 IFS=$as_save_IFS 5935 test -z "$as_dir" && as_dir=. 5936 for ac_exec_ext in '' $ac_executable_extensions; do 5937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5940 break 2 5941 fi 5942done 5943done 5944 5945fi 5946fi 5947RANLIB=$ac_cv_prog_RANLIB 5948if test -n "$RANLIB"; then 5949 echo "$as_me:$LINENO: result: $RANLIB" >&5 5950echo "${ECHO_T}$RANLIB" >&6 5951else 5952 echo "$as_me:$LINENO: result: no" >&5 5953echo "${ECHO_T}no" >&6 5954fi 5955 5956fi 5957if test -z "$ac_cv_prog_RANLIB"; then 5958 ac_ct_RANLIB=$RANLIB 5959 # Extract the first word of "ranlib", so it can be a program name with args. 5960set dummy ranlib; ac_word=$2 5961echo "$as_me:$LINENO: checking for $ac_word" >&5 5962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5963if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5964 echo $ECHO_N "(cached) $ECHO_C" >&6 5965else 5966 if test -n "$ac_ct_RANLIB"; then 5967 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5968else 5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5970for as_dir in $PATH 5971do 5972 IFS=$as_save_IFS 5973 test -z "$as_dir" && as_dir=. 5974 for ac_exec_ext in '' $ac_executable_extensions; do 5975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5976 ac_cv_prog_ac_ct_RANLIB="ranlib" 5977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5978 break 2 5979 fi 5980done 5981done 5982 5983 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5984fi 5985fi 5986ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5987if test -n "$ac_ct_RANLIB"; then 5988 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5989echo "${ECHO_T}$ac_ct_RANLIB" >&6 5990else 5991 echo "$as_me:$LINENO: result: no" >&5 5992echo "${ECHO_T}no" >&6 5993fi 5994 5995 RANLIB=$ac_ct_RANLIB 5996else 5997 RANLIB="$ac_cv_prog_RANLIB" 5998fi 5999 6000if test -n "$ac_tool_prefix"; then 6001 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6002set dummy ${ac_tool_prefix}strip; ac_word=$2 6003echo "$as_me:$LINENO: checking for $ac_word" >&5 6004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6005if test "${ac_cv_prog_STRIP+set}" = set; then 6006 echo $ECHO_N "(cached) $ECHO_C" >&6 6007else 6008 if test -n "$STRIP"; then 6009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6010else 6011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6012for as_dir in $PATH 6013do 6014 IFS=$as_save_IFS 6015 test -z "$as_dir" && as_dir=. 6016 for ac_exec_ext in '' $ac_executable_extensions; do 6017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6018 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6020 break 2 6021 fi 6022done 6023done 6024 6025fi 6026fi 6027STRIP=$ac_cv_prog_STRIP 6028if test -n "$STRIP"; then 6029 echo "$as_me:$LINENO: result: $STRIP" >&5 6030echo "${ECHO_T}$STRIP" >&6 6031else 6032 echo "$as_me:$LINENO: result: no" >&5 6033echo "${ECHO_T}no" >&6 6034fi 6035 6036fi 6037if test -z "$ac_cv_prog_STRIP"; then 6038 ac_ct_STRIP=$STRIP 6039 # Extract the first word of "strip", so it can be a program name with args. 6040set dummy strip; ac_word=$2 6041echo "$as_me:$LINENO: checking for $ac_word" >&5 6042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6043if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6044 echo $ECHO_N "(cached) $ECHO_C" >&6 6045else 6046 if test -n "$ac_ct_STRIP"; then 6047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6048else 6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6050for as_dir in $PATH 6051do 6052 IFS=$as_save_IFS 6053 test -z "$as_dir" && as_dir=. 6054 for ac_exec_ext in '' $ac_executable_extensions; do 6055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6056 ac_cv_prog_ac_ct_STRIP="strip" 6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6058 break 2 6059 fi 6060done 6061done 6062 6063 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6064fi 6065fi 6066ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6067if test -n "$ac_ct_STRIP"; then 6068 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6069echo "${ECHO_T}$ac_ct_STRIP" >&6 6070else 6071 echo "$as_me:$LINENO: result: no" >&5 6072echo "${ECHO_T}no" >&6 6073fi 6074 6075 STRIP=$ac_ct_STRIP 6076else 6077 STRIP="$ac_cv_prog_STRIP" 6078fi 6079 6080 6081old_CC="$CC" 6082old_CFLAGS="$CFLAGS" 6083 6084# Set sane defaults for various variables 6085test -z "$AR" && AR=ar 6086test -z "$AR_FLAGS" && AR_FLAGS=cru 6087test -z "$AS" && AS=as 6088test -z "$CC" && CC=cc 6089test -z "$LTCC" && LTCC=$CC 6090test -z "$DLLTOOL" && DLLTOOL=dlltool 6091test -z "$LD" && LD=ld 6092test -z "$LN_S" && LN_S="ln -s" 6093test -z "$MAGIC_CMD" && MAGIC_CMD=file 6094test -z "$NM" && NM=nm 6095test -z "$SED" && SED=sed 6096test -z "$OBJDUMP" && OBJDUMP=objdump 6097test -z "$RANLIB" && RANLIB=: 6098test -z "$STRIP" && STRIP=: 6099test -z "$ac_objext" && ac_objext=o 6100 6101# Determine commands to create old-style static archives. 6102old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6103old_postinstall_cmds='chmod 644 $oldlib' 6104old_postuninstall_cmds= 6105 6106if test -n "$RANLIB"; then 6107 case $host_os in 6108 openbsd*) 6109 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6110 ;; 6111 *) 6112 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6113 ;; 6114 esac 6115 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6116fi 6117 6118for cc_temp in $compiler""; do 6119 case $cc_temp in 6120 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6121 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6122 \-*) ;; 6123 *) break;; 6124 esac 6125done 6126cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6127 6128 6129# Only perform the check for file, if the check method requires it 6130case $deplibs_check_method in 6131file_magic*) 6132 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6133 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6134echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6135if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6136 echo $ECHO_N "(cached) $ECHO_C" >&6 6137else 6138 case $MAGIC_CMD in 6139[\\/*] | ?:[\\/]*) 6140 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6141 ;; 6142*) 6143 lt_save_MAGIC_CMD="$MAGIC_CMD" 6144 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6145 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6146 for ac_dir in $ac_dummy; do 6147 IFS="$lt_save_ifs" 6148 test -z "$ac_dir" && ac_dir=. 6149 if test -f $ac_dir/${ac_tool_prefix}file; then 6150 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6151 if test -n "$file_magic_test_file"; then 6152 case $deplibs_check_method in 6153 "file_magic "*) 6154 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6155 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6156 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6157 $EGREP "$file_magic_regex" > /dev/null; then 6158 : 6159 else 6160 cat <<EOF 1>&2 6161 6162*** Warning: the command libtool uses to detect shared libraries, 6163*** $file_magic_cmd, produces output that libtool cannot recognize. 6164*** The result is that libtool may fail to recognize shared libraries 6165*** as such. This will affect the creation of libtool libraries that 6166*** depend on shared libraries, but programs linked with such libtool 6167*** libraries will work regardless of this problem. Nevertheless, you 6168*** may want to report the problem to your system manager and/or to 6169*** bug-libtool@gnu.org 6170 6171EOF 6172 fi ;; 6173 esac 6174 fi 6175 break 6176 fi 6177 done 6178 IFS="$lt_save_ifs" 6179 MAGIC_CMD="$lt_save_MAGIC_CMD" 6180 ;; 6181esac 6182fi 6183 6184MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6185if test -n "$MAGIC_CMD"; then 6186 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6187echo "${ECHO_T}$MAGIC_CMD" >&6 6188else 6189 echo "$as_me:$LINENO: result: no" >&5 6190echo "${ECHO_T}no" >&6 6191fi 6192 6193if test -z "$lt_cv_path_MAGIC_CMD"; then 6194 if test -n "$ac_tool_prefix"; then 6195 echo "$as_me:$LINENO: checking for file" >&5 6196echo $ECHO_N "checking for file... $ECHO_C" >&6 6197if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6198 echo $ECHO_N "(cached) $ECHO_C" >&6 6199else 6200 case $MAGIC_CMD in 6201[\\/*] | ?:[\\/]*) 6202 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6203 ;; 6204*) 6205 lt_save_MAGIC_CMD="$MAGIC_CMD" 6206 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6207 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6208 for ac_dir in $ac_dummy; do 6209 IFS="$lt_save_ifs" 6210 test -z "$ac_dir" && ac_dir=. 6211 if test -f $ac_dir/file; then 6212 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6213 if test -n "$file_magic_test_file"; then 6214 case $deplibs_check_method in 6215 "file_magic "*) 6216 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6217 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6218 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6219 $EGREP "$file_magic_regex" > /dev/null; then 6220 : 6221 else 6222 cat <<EOF 1>&2 6223 6224*** Warning: the command libtool uses to detect shared libraries, 6225*** $file_magic_cmd, produces output that libtool cannot recognize. 6226*** The result is that libtool may fail to recognize shared libraries 6227*** as such. This will affect the creation of libtool libraries that 6228*** depend on shared libraries, but programs linked with such libtool 6229*** libraries will work regardless of this problem. Nevertheless, you 6230*** may want to report the problem to your system manager and/or to 6231*** bug-libtool@gnu.org 6232 6233EOF 6234 fi ;; 6235 esac 6236 fi 6237 break 6238 fi 6239 done 6240 IFS="$lt_save_ifs" 6241 MAGIC_CMD="$lt_save_MAGIC_CMD" 6242 ;; 6243esac 6244fi 6245 6246MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6247if test -n "$MAGIC_CMD"; then 6248 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6249echo "${ECHO_T}$MAGIC_CMD" >&6 6250else 6251 echo "$as_me:$LINENO: result: no" >&5 6252echo "${ECHO_T}no" >&6 6253fi 6254 6255 else 6256 MAGIC_CMD=: 6257 fi 6258fi 6259 6260 fi 6261 ;; 6262esac 6263 6264enable_dlopen=no 6265enable_win32_dll=no 6266 6267# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6268if test "${enable_libtool_lock+set}" = set; then 6269 enableval="$enable_libtool_lock" 6270 6271fi; 6272test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6273 6274 6275# Check whether --with-pic or --without-pic was given. 6276if test "${with_pic+set}" = set; then 6277 withval="$with_pic" 6278 pic_mode="$withval" 6279else 6280 pic_mode=default 6281fi; 6282test -z "$pic_mode" && pic_mode=default 6283 6284# Use C for the default configuration in the libtool script 6285tagname= 6286lt_save_CC="$CC" 6287ac_ext=c 6288ac_cpp='$CPP $CPPFLAGS' 6289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6291ac_compiler_gnu=$ac_cv_c_compiler_gnu 6292 6293 6294# Source file extension for C test sources. 6295ac_ext=c 6296 6297# Object file extension for compiled C test sources. 6298objext=o 6299objext=$objext 6300 6301# Code to be used in simple compile tests 6302lt_simple_compile_test_code="int some_variable = 0;\n" 6303 6304# Code to be used in simple link tests 6305lt_simple_link_test_code='int main(){return(0);}\n' 6306 6307 6308# If no C compiler was specified, use CC. 6309LTCC=${LTCC-"$CC"} 6310 6311# Allow CC to be a program name with arguments. 6312compiler=$CC 6313 6314 6315# save warnings/boilerplate of simple test code 6316ac_outfile=conftest.$ac_objext 6317printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6318eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6319_lt_compiler_boilerplate=`cat conftest.err` 6320$rm conftest* 6321 6322ac_outfile=conftest.$ac_objext 6323printf "$lt_simple_link_test_code" >conftest.$ac_ext 6324eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6325_lt_linker_boilerplate=`cat conftest.err` 6326$rm conftest* 6327 6328 6329# 6330# Check for any special shared library compilation flags. 6331# 6332lt_prog_cc_shlib= 6333if test "$GCC" = no; then 6334 case $host_os in 6335 sco3.2v5*) 6336 lt_prog_cc_shlib='-belf' 6337 ;; 6338 esac 6339fi 6340if test -n "$lt_prog_cc_shlib"; then 6341 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6342echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6343 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6344 else 6345 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6346echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6347 lt_cv_prog_cc_can_build_shared=no 6348 fi 6349fi 6350 6351 6352# 6353# Check to make sure the static flag actually works. 6354# 6355echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6356echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6357if test "${lt_prog_compiler_static_works+set}" = set; then 6358 echo $ECHO_N "(cached) $ECHO_C" >&6 6359else 6360 lt_prog_compiler_static_works=no 6361 save_LDFLAGS="$LDFLAGS" 6362 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6363 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6364 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6365 # The linker can only warn and ignore the option if not recognized 6366 # So say no if there are warnings 6367 if test -s conftest.err; then 6368 # Append any errors to the config.log. 6369 cat conftest.err 1>&5 6370 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 6371 $SED '/^$/d' conftest.err >conftest.er2 6372 if diff conftest.exp conftest.er2 >/dev/null; then 6373 lt_prog_compiler_static_works=yes 6374 fi 6375 else 6376 lt_prog_compiler_static_works=yes 6377 fi 6378 fi 6379 $rm conftest* 6380 LDFLAGS="$save_LDFLAGS" 6381 6382fi 6383echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6384echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6385 6386if test x"$lt_prog_compiler_static_works" = xyes; then 6387 : 6388else 6389 lt_prog_compiler_static= 6390fi 6391 6392 6393 6394 6395lt_prog_compiler_no_builtin_flag= 6396 6397if test "$GCC" = yes; then 6398 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6399 6400 6401echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6402echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6403if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6404 echo $ECHO_N "(cached) $ECHO_C" >&6 6405else 6406 lt_cv_prog_compiler_rtti_exceptions=no 6407 ac_outfile=conftest.$ac_objext 6408 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6409 lt_compiler_flag="-fno-rtti -fno-exceptions" 6410 # Insert the option either (1) after the last *FLAGS variable, or 6411 # (2) before a word containing "conftest.", or (3) at the end. 6412 # Note that $ac_compile itself does not contain backslashes and begins 6413 # with a dollar sign (not a hyphen), so the echo should work correctly. 6414 # The option is referenced via a variable to avoid confusing sed. 6415 lt_compile=`echo "$ac_compile" | $SED \ 6416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6418 -e 's:$: $lt_compiler_flag:'` 6419 (eval echo "\"\$as_me:6419: $lt_compile\"" >&5) 6420 (eval "$lt_compile" 2>conftest.err) 6421 ac_status=$? 6422 cat conftest.err >&5 6423 echo "$as_me:6423: \$? = $ac_status" >&5 6424 if (exit $ac_status) && test -s "$ac_outfile"; then 6425 # The compiler can only warn and ignore the option if not recognized 6426 # So say no if there are warnings other than the usual output. 6427 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6428 $SED '/^$/d' conftest.err >conftest.er2 6429 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6430 lt_cv_prog_compiler_rtti_exceptions=yes 6431 fi 6432 fi 6433 $rm conftest* 6434 6435fi 6436echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6437echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6438 6439if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6440 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6441else 6442 : 6443fi 6444 6445fi 6446 6447lt_prog_compiler_wl= 6448lt_prog_compiler_pic= 6449lt_prog_compiler_static= 6450 6451echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6452echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6453 6454 if test "$GCC" = yes; then 6455 lt_prog_compiler_wl='-Wl,' 6456 lt_prog_compiler_static='-static' 6457 6458 case $host_os in 6459 aix*) 6460 # All AIX code is PIC. 6461 if test "$host_cpu" = ia64; then 6462 # AIX 5 now supports IA64 processor 6463 lt_prog_compiler_static='-Bstatic' 6464 fi 6465 ;; 6466 6467 amigaos*) 6468 # FIXME: we need at least 68020 code to build shared libraries, but 6469 # adding the `-m68020' flag to GCC prevents building anything better, 6470 # like `-m68040'. 6471 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6472 ;; 6473 6474 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6475 # PIC is the default for these OSes. 6476 ;; 6477 6478 mingw* | pw32* | os2*) 6479 # This hack is so that the source file can tell whether it is being 6480 # built for inclusion in a dll (and should export symbols for example). 6481 lt_prog_compiler_pic='-DDLL_EXPORT' 6482 ;; 6483 6484 darwin* | rhapsody*) 6485 # PIC is the default on this platform 6486 # Common symbols not allowed in MH_DYLIB files 6487 lt_prog_compiler_pic='-fno-common' 6488 ;; 6489 6490 msdosdjgpp*) 6491 # Just because we use GCC doesn't mean we suddenly get shared libraries 6492 # on systems that don't support them. 6493 lt_prog_compiler_can_build_shared=no 6494 enable_shared=no 6495 ;; 6496 6497 sysv4*MP*) 6498 if test -d /usr/nec; then 6499 lt_prog_compiler_pic=-Kconform_pic 6500 fi 6501 ;; 6502 6503 hpux*) 6504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6505 # not for PA HP-UX. 6506 case $host_cpu in 6507 hppa*64*|ia64*) 6508 # +Z the default 6509 ;; 6510 *) 6511 lt_prog_compiler_pic='-fPIC' 6512 ;; 6513 esac 6514 ;; 6515 6516 *) 6517 lt_prog_compiler_pic='-fPIC' 6518 ;; 6519 esac 6520 else 6521 # PORTME Check for flag to pass linker flags through the system compiler. 6522 case $host_os in 6523 aix*) 6524 lt_prog_compiler_wl='-Wl,' 6525 if test "$host_cpu" = ia64; then 6526 # AIX 5 now supports IA64 processor 6527 lt_prog_compiler_static='-Bstatic' 6528 else 6529 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6530 fi 6531 ;; 6532 darwin*) 6533 # PIC is the default on this platform 6534 # Common symbols not allowed in MH_DYLIB files 6535 case $cc_basename in 6536 xlc*) 6537 lt_prog_compiler_pic='-qnocommon' 6538 lt_prog_compiler_wl='-Wl,' 6539 ;; 6540 esac 6541 ;; 6542 6543 mingw* | pw32* | os2*) 6544 # This hack is so that the source file can tell whether it is being 6545 # built for inclusion in a dll (and should export symbols for example). 6546 lt_prog_compiler_pic='-DDLL_EXPORT' 6547 ;; 6548 6549 hpux9* | hpux10* | hpux11*) 6550 lt_prog_compiler_wl='-Wl,' 6551 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6552 # not for PA HP-UX. 6553 case $host_cpu in 6554 hppa*64*|ia64*) 6555 # +Z the default 6556 ;; 6557 *) 6558 lt_prog_compiler_pic='+Z' 6559 ;; 6560 esac 6561 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6562 lt_prog_compiler_static='${wl}-a ${wl}archive' 6563 ;; 6564 6565 irix5* | irix6* | nonstopux*) 6566 lt_prog_compiler_wl='-Wl,' 6567 # PIC (with -KPIC) is the default. 6568 lt_prog_compiler_static='-non_shared' 6569 ;; 6570 6571 newsos6) 6572 lt_prog_compiler_pic='-KPIC' 6573 lt_prog_compiler_static='-Bstatic' 6574 ;; 6575 6576 linux*) 6577 case $cc_basename in 6578 icc* | ecc*) 6579 lt_prog_compiler_wl='-Wl,' 6580 lt_prog_compiler_pic='-KPIC' 6581 lt_prog_compiler_static='-static' 6582 ;; 6583 pgcc* | pgf77* | pgf90* | pgf95*) 6584 # Portland Group compilers (*not* the Pentium gcc compiler, 6585 # which looks to be a dead project) 6586 lt_prog_compiler_wl='-Wl,' 6587 lt_prog_compiler_pic='-fpic' 6588 lt_prog_compiler_static='-Bstatic' 6589 ;; 6590 ccc*) 6591 lt_prog_compiler_wl='-Wl,' 6592 # All Alpha code is PIC. 6593 lt_prog_compiler_static='-non_shared' 6594 ;; 6595 esac 6596 ;; 6597 6598 osf3* | osf4* | osf5*) 6599 lt_prog_compiler_wl='-Wl,' 6600 # All OSF/1 code is PIC. 6601 lt_prog_compiler_static='-non_shared' 6602 ;; 6603 6604 sco3.2v5*) 6605 lt_prog_compiler_pic='-Kpic' 6606 lt_prog_compiler_static='-dn' 6607 ;; 6608 6609 solaris*) 6610 lt_prog_compiler_pic='-KPIC' 6611 lt_prog_compiler_static='-Bstatic' 6612 case $cc_basename in 6613 f77* | f90* | f95*) 6614 lt_prog_compiler_wl='-Qoption ld ';; 6615 *) 6616 lt_prog_compiler_wl='-Wl,';; 6617 esac 6618 ;; 6619 6620 sunos4*) 6621 lt_prog_compiler_wl='-Qoption ld ' 6622 lt_prog_compiler_pic='-PIC' 6623 lt_prog_compiler_static='-Bstatic' 6624 ;; 6625 6626 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6627 lt_prog_compiler_wl='-Wl,' 6628 lt_prog_compiler_pic='-KPIC' 6629 lt_prog_compiler_static='-Bstatic' 6630 ;; 6631 6632 sysv4*MP*) 6633 if test -d /usr/nec ;then 6634 lt_prog_compiler_pic='-Kconform_pic' 6635 lt_prog_compiler_static='-Bstatic' 6636 fi 6637 ;; 6638 6639 unicos*) 6640 lt_prog_compiler_wl='-Wl,' 6641 lt_prog_compiler_can_build_shared=no 6642 ;; 6643 6644 uts4*) 6645 lt_prog_compiler_pic='-pic' 6646 lt_prog_compiler_static='-Bstatic' 6647 ;; 6648 6649 *) 6650 lt_prog_compiler_can_build_shared=no 6651 ;; 6652 esac 6653 fi 6654 6655echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6656echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6657 6658# 6659# Check to make sure the PIC flag actually works. 6660# 6661if test -n "$lt_prog_compiler_pic"; then 6662 6663echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6664echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6665if test "${lt_prog_compiler_pic_works+set}" = set; then 6666 echo $ECHO_N "(cached) $ECHO_C" >&6 6667else 6668 lt_prog_compiler_pic_works=no 6669 ac_outfile=conftest.$ac_objext 6670 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6671 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6672 # Insert the option either (1) after the last *FLAGS variable, or 6673 # (2) before a word containing "conftest.", or (3) at the end. 6674 # Note that $ac_compile itself does not contain backslashes and begins 6675 # with a dollar sign (not a hyphen), so the echo should work correctly. 6676 # The option is referenced via a variable to avoid confusing sed. 6677 lt_compile=`echo "$ac_compile" | $SED \ 6678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6680 -e 's:$: $lt_compiler_flag:'` 6681 (eval echo "\"\$as_me:6681: $lt_compile\"" >&5) 6682 (eval "$lt_compile" 2>conftest.err) 6683 ac_status=$? 6684 cat conftest.err >&5 6685 echo "$as_me:6685: \$? = $ac_status" >&5 6686 if (exit $ac_status) && test -s "$ac_outfile"; then 6687 # The compiler can only warn and ignore the option if not recognized 6688 # So say no if there are warnings other than the usual output. 6689 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6690 $SED '/^$/d' conftest.err >conftest.er2 6691 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6692 lt_prog_compiler_pic_works=yes 6693 fi 6694 fi 6695 $rm conftest* 6696 6697fi 6698echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6699echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6700 6701if test x"$lt_prog_compiler_pic_works" = xyes; then 6702 case $lt_prog_compiler_pic in 6703 "" | " "*) ;; 6704 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6705 esac 6706else 6707 lt_prog_compiler_pic= 6708 lt_prog_compiler_can_build_shared=no 6709fi 6710 6711fi 6712case $host_os in 6713 # For platforms which do not support PIC, -DPIC is meaningless: 6714 *djgpp*) 6715 lt_prog_compiler_pic= 6716 ;; 6717 *) 6718 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6719 ;; 6720esac 6721 6722echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6723echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6724if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6725 echo $ECHO_N "(cached) $ECHO_C" >&6 6726else 6727 lt_cv_prog_compiler_c_o=no 6728 $rm -r conftest 2>/dev/null 6729 mkdir conftest 6730 cd conftest 6731 mkdir out 6732 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6733 6734 lt_compiler_flag="-o out/conftest2.$ac_objext" 6735 # Insert the option either (1) after the last *FLAGS variable, or 6736 # (2) before a word containing "conftest.", or (3) at the end. 6737 # Note that $ac_compile itself does not contain backslashes and begins 6738 # with a dollar sign (not a hyphen), so the echo should work correctly. 6739 lt_compile=`echo "$ac_compile" | $SED \ 6740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6742 -e 's:$: $lt_compiler_flag:'` 6743 (eval echo "\"\$as_me:6743: $lt_compile\"" >&5) 6744 (eval "$lt_compile" 2>out/conftest.err) 6745 ac_status=$? 6746 cat out/conftest.err >&5 6747 echo "$as_me:6747: \$? = $ac_status" >&5 6748 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6749 then 6750 # The compiler can only warn and ignore the option if not recognized 6751 # So say no if there are warnings 6752 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 6753 $SED '/^$/d' out/conftest.err >out/conftest.er2 6754 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6755 lt_cv_prog_compiler_c_o=yes 6756 fi 6757 fi 6758 chmod u+w . 2>&5 6759 $rm conftest* 6760 # SGI C++ compiler will create directory out/ii_files/ for 6761 # template instantiation 6762 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6763 $rm out/* && rmdir out 6764 cd .. 6765 rmdir conftest 6766 $rm conftest* 6767 6768fi 6769echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6770echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6771 6772 6773hard_links="nottested" 6774if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6775 # do not overwrite the value of need_locks provided by the user 6776 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6777echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6778 hard_links=yes 6779 $rm conftest* 6780 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6781 touch conftest.a 6782 ln conftest.a conftest.b 2>&5 || hard_links=no 6783 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6784 echo "$as_me:$LINENO: result: $hard_links" >&5 6785echo "${ECHO_T}$hard_links" >&6 6786 if test "$hard_links" = no; then 6787 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6788echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6789 need_locks=warn 6790 fi 6791else 6792 need_locks=no 6793fi 6794 6795echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6796echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6797 6798 runpath_var= 6799 allow_undefined_flag= 6800 enable_shared_with_static_runtimes=no 6801 archive_cmds= 6802 archive_expsym_cmds= 6803 old_archive_From_new_cmds= 6804 old_archive_from_expsyms_cmds= 6805 export_dynamic_flag_spec= 6806 whole_archive_flag_spec= 6807 thread_safe_flag_spec= 6808 hardcode_libdir_flag_spec= 6809 hardcode_libdir_flag_spec_ld= 6810 hardcode_libdir_separator= 6811 hardcode_direct=no 6812 hardcode_minus_L=no 6813 hardcode_shlibpath_var=unsupported 6814 link_all_deplibs=unknown 6815 hardcode_automatic=no 6816 module_cmds= 6817 module_expsym_cmds= 6818 always_export_symbols=no 6819 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6820 # include_expsyms should be a list of space-separated symbols to be *always* 6821 # included in the symbol list 6822 include_expsyms= 6823 # exclude_expsyms can be an extended regexp of symbols to exclude 6824 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6825 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6826 # as well as any symbol that contains `d'. 6827 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6828 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6829 # platforms (ab)use it in PIC code, but their linkers get confused if 6830 # the symbol is explicitly referenced. Since portable code cannot 6831 # rely on this symbol name, it's probably fine to never include it in 6832 # preloaded symbol tables. 6833 extract_expsyms_cmds= 6834 # Just being paranoid about ensuring that cc_basename is set. 6835 for cc_temp in $compiler""; do 6836 case $cc_temp in 6837 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6838 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6839 \-*) ;; 6840 *) break;; 6841 esac 6842done 6843cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6844 6845 case $host_os in 6846 cygwin* | mingw* | pw32*) 6847 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6848 # When not using gcc, we currently assume that we are using 6849 # Microsoft Visual C++. 6850 if test "$GCC" != yes; then 6851 with_gnu_ld=no 6852 fi 6853 ;; 6854 openbsd*) 6855 with_gnu_ld=no 6856 ;; 6857 esac 6858 6859 ld_shlibs=yes 6860 if test "$with_gnu_ld" = yes; then 6861 # If archive_cmds runs LD, not CC, wlarc should be empty 6862 wlarc='${wl}' 6863 6864 # Set some defaults for GNU ld with shared library support. These 6865 # are reset later if shared libraries are not supported. Putting them 6866 # here allows them to be overridden if necessary. 6867 runpath_var=LD_RUN_PATH 6868 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6869 export_dynamic_flag_spec='${wl}--export-dynamic' 6870 # ancient GNU ld didn't support --whole-archive et. al. 6871 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6872 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6873 else 6874 whole_archive_flag_spec= 6875 fi 6876 supports_anon_versioning=no 6877 case `$LD -v 2>/dev/null` in 6878 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6879 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6880 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6881 *\ 2.11.*) ;; # other 2.11 versions 6882 *) supports_anon_versioning=yes ;; 6883 esac 6884 6885 # See if GNU ld supports shared libraries. 6886 case $host_os in 6887 aix3* | aix4* | aix5*) 6888 # On AIX/PPC, the GNU linker is very broken 6889 if test "$host_cpu" != ia64; then 6890 ld_shlibs=no 6891 cat <<EOF 1>&2 6892 6893*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6894*** to be unable to reliably create shared libraries on AIX. 6895*** Therefore, libtool is disabling shared libraries support. If you 6896*** really care for shared libraries, you may want to modify your PATH 6897*** so that a non-GNU linker is found, and then restart. 6898 6899EOF 6900 fi 6901 ;; 6902 6903 amigaos*) 6904 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)' 6905 hardcode_libdir_flag_spec='-L$libdir' 6906 hardcode_minus_L=yes 6907 6908 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6909 # that the semantics of dynamic libraries on AmigaOS, at least up 6910 # to version 4, is to share data among multiple programs linked 6911 # with the same dynamic library. Since this doesn't match the 6912 # behavior of shared libraries on other platforms, we can't use 6913 # them. 6914 ld_shlibs=no 6915 ;; 6916 6917 beos*) 6918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6919 allow_undefined_flag=unsupported 6920 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6921 # support --undefined. This deserves some investigation. FIXME 6922 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6923 else 6924 ld_shlibs=no 6925 fi 6926 ;; 6927 6928 cygwin* | mingw* | pw32*) 6929 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6930 # as there is no search path for DLLs. 6931 hardcode_libdir_flag_spec='-L$libdir' 6932 allow_undefined_flag=unsupported 6933 always_export_symbols=no 6934 enable_shared_with_static_runtimes=yes 6935 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6936 6937 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6939 # If the export-symbols file already is a .def file (1st line 6940 # is EXPORTS), use it as is; otherwise, prepend... 6941 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6942 cp $export_symbols $output_objdir/$soname.def; 6943 else 6944 echo EXPORTS > $output_objdir/$soname.def; 6945 cat $export_symbols >> $output_objdir/$soname.def; 6946 fi~ 6947 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6948 else 6949 ld_shlibs=no 6950 fi 6951 ;; 6952 6953 linux*) 6954 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6955 tmp_addflag= 6956 case $cc_basename,$host_cpu in 6957 pgcc*) # Portland Group C compiler 6958 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' 6959 tmp_addflag=' $pic_flag' 6960 ;; 6961 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6962 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' 6963 tmp_addflag=' $pic_flag -Mnomain' ;; 6964 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6965 tmp_addflag=' -i_dynamic' ;; 6966 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6967 tmp_addflag=' -i_dynamic -nofor_main' ;; 6968 ifc* | ifort*) # Intel Fortran compiler 6969 tmp_addflag=' -nofor_main' ;; 6970 esac 6971 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6972 6973 if test $supports_anon_versioning = yes; then 6974 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6975 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6976 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6977 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6978 fi 6979 else 6980 ld_shlibs=no 6981 fi 6982 ;; 6983 6984 netbsd*) 6985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6986 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6987 wlarc= 6988 else 6989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6990 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6991 fi 6992 ;; 6993 6994 solaris* | sysv5*) 6995 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6996 ld_shlibs=no 6997 cat <<EOF 1>&2 6998 6999*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7000*** create shared libraries on Solaris systems. Therefore, libtool 7001*** is disabling shared libraries support. We urge you to upgrade GNU 7002*** binutils to release 2.9.1 or newer. Another option is to modify 7003*** your PATH or compiler configuration so that the native linker is 7004*** used, and then restart. 7005 7006EOF 7007 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7010 else 7011 ld_shlibs=no 7012 fi 7013 ;; 7014 7015 sunos4*) 7016 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7017 wlarc= 7018 hardcode_direct=yes 7019 hardcode_shlibpath_var=no 7020 ;; 7021 7022 *) 7023 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7026 else 7027 ld_shlibs=no 7028 fi 7029 ;; 7030 esac 7031 7032 if test "$ld_shlibs" = no; then 7033 runpath_var= 7034 hardcode_libdir_flag_spec= 7035 export_dynamic_flag_spec= 7036 whole_archive_flag_spec= 7037 fi 7038 else 7039 # PORTME fill in a description of your system's linker (not GNU ld) 7040 case $host_os in 7041 aix3*) 7042 allow_undefined_flag=unsupported 7043 always_export_symbols=yes 7044 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' 7045 # Note: this linker hardcodes the directories in LIBPATH if there 7046 # are no directories specified by -L. 7047 hardcode_minus_L=yes 7048 if test "$GCC" = yes && test -z "$link_static_flag"; then 7049 # Neither direct hardcoding nor static linking is supported with a 7050 # broken collect2. 7051 hardcode_direct=unsupported 7052 fi 7053 ;; 7054 7055 aix4* | aix5*) 7056 if test "$host_cpu" = ia64; then 7057 # On IA64, the linker does run time linking by default, so we don't 7058 # have to do anything special. 7059 aix_use_runtimelinking=no 7060 exp_sym_flag='-Bexport' 7061 no_entry_flag="" 7062 else 7063 # If we're using GNU nm, then we don't want the "-C" option. 7064 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7065 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7066 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' 7067 else 7068 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' 7069 fi 7070 aix_use_runtimelinking=no 7071 7072 # Test if we are trying to use run time linking or normal 7073 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7074 # need to do runtime linking. 7075 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7076 for ld_flag in $LDFLAGS; do 7077 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7078 aix_use_runtimelinking=yes 7079 break 7080 fi 7081 done 7082 esac 7083 7084 exp_sym_flag='-bexport' 7085 no_entry_flag='-bnoentry' 7086 fi 7087 7088 # When large executables or shared objects are built, AIX ld can 7089 # have problems creating the table of contents. If linking a library 7090 # or program results in "error TOC overflow" add -mminimal-toc to 7091 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7092 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7093 7094 archive_cmds='' 7095 hardcode_direct=yes 7096 hardcode_libdir_separator=':' 7097 link_all_deplibs=yes 7098 7099 if test "$GCC" = yes; then 7100 case $host_os in aix4.[012]|aix4.[012].*) 7101 # We only want to do this on AIX 4.2 and lower, the check 7102 # below for broken collect2 doesn't work under 4.3+ 7103 collect2name=`${CC} -print-prog-name=collect2` 7104 if test -f "$collect2name" && \ 7105 strings "$collect2name" | grep resolve_lib_name >/dev/null 7106 then 7107 # We have reworked collect2 7108 hardcode_direct=yes 7109 else 7110 # We have old collect2 7111 hardcode_direct=unsupported 7112 # It fails to find uninstalled libraries when the uninstalled 7113 # path is not listed in the libpath. Setting hardcode_minus_L 7114 # to unsupported forces relinking 7115 hardcode_minus_L=yes 7116 hardcode_libdir_flag_spec='-L$libdir' 7117 hardcode_libdir_separator= 7118 fi 7119 esac 7120 shared_flag='-shared' 7121 if test "$aix_use_runtimelinking" = yes; then 7122 shared_flag="$shared_flag "'${wl}-G' 7123 fi 7124 else 7125 # not using gcc 7126 if test "$host_cpu" = ia64; then 7127 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7128 # chokes on -Wl,-G. The following line is correct: 7129 shared_flag='-G' 7130 else 7131 if test "$aix_use_runtimelinking" = yes; then 7132 shared_flag='${wl}-G' 7133 else 7134 shared_flag='${wl}-bM:SRE' 7135 fi 7136 fi 7137 fi 7138 7139 # It seems that -bexpall does not export symbols beginning with 7140 # underscore (_), so it is better to generate a list of symbols to export. 7141 always_export_symbols=yes 7142 if test "$aix_use_runtimelinking" = yes; then 7143 # Warning - without using the other runtime loading flags (-brtl), 7144 # -berok will link without error, but may produce a broken library. 7145 allow_undefined_flag='-berok' 7146 # Determine the default libpath from the value encoded in an empty executable. 7147 cat >conftest.$ac_ext <<_ACEOF 7148/* confdefs.h. */ 7149_ACEOF 7150cat confdefs.h >>conftest.$ac_ext 7151cat >>conftest.$ac_ext <<_ACEOF 7152/* end confdefs.h. */ 7153 7154int 7155main () 7156{ 7157 7158 ; 7159 return 0; 7160} 7161_ACEOF 7162rm -f conftest.$ac_objext conftest$ac_exeext 7163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7164 (eval $ac_link) 2>conftest.er1 7165 ac_status=$? 7166 grep -v '^ *+' conftest.er1 >conftest.err 7167 rm -f conftest.er1 7168 cat conftest.err >&5 7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7170 (exit $ac_status); } && 7171 { ac_try='test -z "$ac_c_werror_flag" 7172 || test ! -s conftest.err' 7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7174 (eval $ac_try) 2>&5 7175 ac_status=$? 7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7177 (exit $ac_status); }; } && 7178 { ac_try='test -s conftest$ac_exeext' 7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7180 (eval $ac_try) 2>&5 7181 ac_status=$? 7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7183 (exit $ac_status); }; }; then 7184 7185aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7186}'` 7187# Check for a 64-bit object if we didn't find anything. 7188if 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; } 7189}'`; fi 7190else 7191 echo "$as_me: failed program was:" >&5 7192sed 's/^/| /' conftest.$ac_ext >&5 7193 7194fi 7195rm -f conftest.err conftest.$ac_objext \ 7196 conftest$ac_exeext conftest.$ac_ext 7197if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7198 7199 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7200 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7201 else 7202 if test "$host_cpu" = ia64; then 7203 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7204 allow_undefined_flag="-z nodefs" 7205 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 7206 else 7207 # Determine the default libpath from the value encoded in an empty executable. 7208 cat >conftest.$ac_ext <<_ACEOF 7209/* confdefs.h. */ 7210_ACEOF 7211cat confdefs.h >>conftest.$ac_ext 7212cat >>conftest.$ac_ext <<_ACEOF 7213/* end confdefs.h. */ 7214 7215int 7216main () 7217{ 7218 7219 ; 7220 return 0; 7221} 7222_ACEOF 7223rm -f conftest.$ac_objext conftest$ac_exeext 7224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7225 (eval $ac_link) 2>conftest.er1 7226 ac_status=$? 7227 grep -v '^ *+' conftest.er1 >conftest.err 7228 rm -f conftest.er1 7229 cat conftest.err >&5 7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7231 (exit $ac_status); } && 7232 { ac_try='test -z "$ac_c_werror_flag" 7233 || test ! -s conftest.err' 7234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7235 (eval $ac_try) 2>&5 7236 ac_status=$? 7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7238 (exit $ac_status); }; } && 7239 { ac_try='test -s conftest$ac_exeext' 7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7241 (eval $ac_try) 2>&5 7242 ac_status=$? 7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7244 (exit $ac_status); }; }; then 7245 7246aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7247}'` 7248# Check for a 64-bit object if we didn't find anything. 7249if 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; } 7250}'`; fi 7251else 7252 echo "$as_me: failed program was:" >&5 7253sed 's/^/| /' conftest.$ac_ext >&5 7254 7255fi 7256rm -f conftest.err conftest.$ac_objext \ 7257 conftest$ac_exeext conftest.$ac_ext 7258if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7259 7260 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7261 # Warning - without using the other run time loading flags, 7262 # -berok will link without error, but may produce a broken library. 7263 no_undefined_flag=' ${wl}-bernotok' 7264 allow_undefined_flag=' ${wl}-berok' 7265 # -bexpall does not export symbols beginning with underscore (_) 7266 always_export_symbols=yes 7267 # Exported symbols can be pulled into shared objects from archives 7268 whole_archive_flag_spec=' ' 7269 archive_cmds_need_lc=yes 7270 # This is similar to how AIX traditionally builds its shared libraries. 7271 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7272 fi 7273 fi 7274 ;; 7275 7276 amigaos*) 7277 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)' 7278 hardcode_libdir_flag_spec='-L$libdir' 7279 hardcode_minus_L=yes 7280 # see comment about different semantics on the GNU ld section 7281 ld_shlibs=no 7282 ;; 7283 7284 bsdi[45]*) 7285 export_dynamic_flag_spec=-rdynamic 7286 ;; 7287 7288 cygwin* | mingw* | pw32*) 7289 # When not using gcc, we currently assume that we are using 7290 # Microsoft Visual C++. 7291 # hardcode_libdir_flag_spec is actually meaningless, as there is 7292 # no search path for DLLs. 7293 hardcode_libdir_flag_spec=' ' 7294 allow_undefined_flag=unsupported 7295 # Tell ltmain to make .lib files, not .a files. 7296 libext=lib 7297 # Tell ltmain to make .dll files, not .so files. 7298 shrext_cmds=".dll" 7299 # FIXME: Setting linknames here is a bad hack. 7300 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7301 # The linker will automatically build a .lib file if we build a DLL. 7302 old_archive_From_new_cmds='true' 7303 # FIXME: Should let the user specify the lib program. 7304 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7305 fix_srcfile_path='`cygpath -w "$srcfile"`' 7306 enable_shared_with_static_runtimes=yes 7307 ;; 7308 7309 darwin* | rhapsody*) 7310 case $host_os in 7311 rhapsody* | darwin1.[012]) 7312 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7313 ;; 7314 *) # Darwin 1.3 on 7315 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7316 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7317 else 7318 case ${MACOSX_DEPLOYMENT_TARGET} in 7319 10.[012]) 7320 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7321 ;; 7322 10.*) 7323 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7324 ;; 7325 esac 7326 fi 7327 ;; 7328 esac 7329 archive_cmds_need_lc=no 7330 hardcode_direct=no 7331 hardcode_automatic=yes 7332 hardcode_shlibpath_var=unsupported 7333 whole_archive_flag_spec='' 7334 link_all_deplibs=yes 7335 if test "$GCC" = yes ; then 7336 output_verbose_link_cmd='echo' 7337 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7338 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7339 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7340 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}' 7341 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}' 7342 else 7343 case $cc_basename in 7344 xlc*) 7345 output_verbose_link_cmd='echo' 7346 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7347 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7348 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7349 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}' 7350 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}' 7351 ;; 7352 *) 7353 ld_shlibs=no 7354 ;; 7355 esac 7356 fi 7357 ;; 7358 7359 dgux*) 7360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7361 hardcode_libdir_flag_spec='-L$libdir' 7362 hardcode_shlibpath_var=no 7363 ;; 7364 7365 freebsd1*) 7366 ld_shlibs=no 7367 ;; 7368 7369 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7370 # support. Future versions do this automatically, but an explicit c++rt0.o 7371 # does not break anything, and helps significantly (at the cost of a little 7372 # extra space). 7373 freebsd2.2*) 7374 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7375 hardcode_libdir_flag_spec='-R$libdir' 7376 hardcode_direct=yes 7377 hardcode_shlibpath_var=no 7378 ;; 7379 7380 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7381 freebsd2*) 7382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7383 hardcode_direct=yes 7384 hardcode_minus_L=yes 7385 hardcode_shlibpath_var=no 7386 ;; 7387 7388 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7389 freebsd* | kfreebsd*-gnu | dragonfly*) 7390 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7391 hardcode_libdir_flag_spec='-R$libdir' 7392 hardcode_direct=yes 7393 hardcode_shlibpath_var=no 7394 ;; 7395 7396 hpux9*) 7397 if test "$GCC" = yes; then 7398 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' 7399 else 7400 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' 7401 fi 7402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7403 hardcode_libdir_separator=: 7404 hardcode_direct=yes 7405 7406 # hardcode_minus_L: Not really in the search PATH, 7407 # but as the default location of the library. 7408 hardcode_minus_L=yes 7409 export_dynamic_flag_spec='${wl}-E' 7410 ;; 7411 7412 hpux10* | hpux11*) 7413 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7414 case $host_cpu in 7415 hppa*64*|ia64*) 7416 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7417 ;; 7418 *) 7419 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7420 ;; 7421 esac 7422 else 7423 case $host_cpu in 7424 hppa*64*|ia64*) 7425 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7426 ;; 7427 *) 7428 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7429 ;; 7430 esac 7431 fi 7432 if test "$with_gnu_ld" = no; then 7433 case $host_cpu in 7434 hppa*64*) 7435 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7436 hardcode_libdir_flag_spec_ld='+b $libdir' 7437 hardcode_libdir_separator=: 7438 hardcode_direct=no 7439 hardcode_shlibpath_var=no 7440 ;; 7441 ia64*) 7442 hardcode_libdir_flag_spec='-L$libdir' 7443 hardcode_direct=no 7444 hardcode_shlibpath_var=no 7445 7446 # hardcode_minus_L: Not really in the search PATH, 7447 # but as the default location of the library. 7448 hardcode_minus_L=yes 7449 ;; 7450 *) 7451 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7452 hardcode_libdir_separator=: 7453 hardcode_direct=yes 7454 export_dynamic_flag_spec='${wl}-E' 7455 7456 # hardcode_minus_L: Not really in the search PATH, 7457 # but as the default location of the library. 7458 hardcode_minus_L=yes 7459 ;; 7460 esac 7461 fi 7462 ;; 7463 7464 irix5* | irix6* | nonstopux*) 7465 if test "$GCC" = yes; then 7466 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' 7467 else 7468 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' 7469 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7470 fi 7471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7472 hardcode_libdir_separator=: 7473 link_all_deplibs=yes 7474 ;; 7475 7476 netbsd*) 7477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7479 else 7480 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7481 fi 7482 hardcode_libdir_flag_spec='-R$libdir' 7483 hardcode_direct=yes 7484 hardcode_shlibpath_var=no 7485 ;; 7486 7487 newsos6) 7488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7489 hardcode_direct=yes 7490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7491 hardcode_libdir_separator=: 7492 hardcode_shlibpath_var=no 7493 ;; 7494 7495 openbsd*) 7496 hardcode_direct=yes 7497 hardcode_shlibpath_var=no 7498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7499 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7500 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7501 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7502 export_dynamic_flag_spec='${wl}-E' 7503 else 7504 case $host_os in 7505 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7507 hardcode_libdir_flag_spec='-R$libdir' 7508 ;; 7509 *) 7510 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7511 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7512 ;; 7513 esac 7514 fi 7515 ;; 7516 7517 os2*) 7518 hardcode_libdir_flag_spec='-L$libdir' 7519 hardcode_minus_L=yes 7520 allow_undefined_flag=unsupported 7521 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' 7522 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7523 ;; 7524 7525 osf3*) 7526 if test "$GCC" = yes; then 7527 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7528 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' 7529 else 7530 allow_undefined_flag=' -expect_unresolved \*' 7531 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' 7532 fi 7533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7534 hardcode_libdir_separator=: 7535 ;; 7536 7537 osf4* | osf5*) # as osf3* with the addition of -msym flag 7538 if test "$GCC" = yes; then 7539 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7540 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' 7541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7542 else 7543 allow_undefined_flag=' -expect_unresolved \*' 7544 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' 7545 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7546 $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' 7547 7548 # Both c and cxx compiler support -rpath directly 7549 hardcode_libdir_flag_spec='-rpath $libdir' 7550 fi 7551 hardcode_libdir_separator=: 7552 ;; 7553 7554 sco3.2v5*) 7555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7556 hardcode_shlibpath_var=no 7557 export_dynamic_flag_spec='${wl}-Bexport' 7558 runpath_var=LD_RUN_PATH 7559 hardcode_runpath_var=yes 7560 ;; 7561 7562 solaris*) 7563 no_undefined_flag=' -z text' 7564 if test "$GCC" = yes; then 7565 wlarc='${wl}' 7566 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7567 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7568 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7569 else 7570 wlarc='' 7571 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7572 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7573 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7574 fi 7575 hardcode_libdir_flag_spec='-R$libdir' 7576 hardcode_shlibpath_var=no 7577 case $host_os in 7578 solaris2.[0-5] | solaris2.[0-5].*) ;; 7579 *) 7580 # The compiler driver will combine linker options so we 7581 # cannot just pass the convience library names through 7582 # without $wl, iff we do not link with $LD. 7583 # Luckily, gcc supports the same syntax we need for Sun Studio. 7584 # Supported since Solaris 2.6 (maybe 2.5.1?) 7585 case $wlarc in 7586 '') 7587 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7588 *) 7589 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' ;; 7590 esac ;; 7591 esac 7592 link_all_deplibs=yes 7593 ;; 7594 7595 sunos4*) 7596 if test "x$host_vendor" = xsequent; then 7597 # Use $CC to link under sequent, because it throws in some extra .o 7598 # files that make .init and .fini sections work. 7599 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7600 else 7601 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7602 fi 7603 hardcode_libdir_flag_spec='-L$libdir' 7604 hardcode_direct=yes 7605 hardcode_minus_L=yes 7606 hardcode_shlibpath_var=no 7607 ;; 7608 7609 sysv4) 7610 case $host_vendor in 7611 sni) 7612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7613 hardcode_direct=yes # is this really true??? 7614 ;; 7615 siemens) 7616 ## LD is ld it makes a PLAMLIB 7617 ## CC just makes a GrossModule. 7618 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7619 reload_cmds='$CC -r -o $output$reload_objs' 7620 hardcode_direct=no 7621 ;; 7622 motorola) 7623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7624 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7625 ;; 7626 esac 7627 runpath_var='LD_RUN_PATH' 7628 hardcode_shlibpath_var=no 7629 ;; 7630 7631 sysv4.3*) 7632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7633 hardcode_shlibpath_var=no 7634 export_dynamic_flag_spec='-Bexport' 7635 ;; 7636 7637 sysv4*MP*) 7638 if test -d /usr/nec; then 7639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7640 hardcode_shlibpath_var=no 7641 runpath_var=LD_RUN_PATH 7642 hardcode_runpath_var=yes 7643 ld_shlibs=yes 7644 fi 7645 ;; 7646 7647 sysv4.2uw2*) 7648 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7649 hardcode_direct=yes 7650 hardcode_minus_L=no 7651 hardcode_shlibpath_var=no 7652 hardcode_runpath_var=yes 7653 runpath_var=LD_RUN_PATH 7654 ;; 7655 7656 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7657 no_undefined_flag='${wl}-z ${wl}text' 7658 if test "$GCC" = yes; then 7659 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7660 else 7661 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7662 fi 7663 runpath_var='LD_RUN_PATH' 7664 hardcode_shlibpath_var=no 7665 ;; 7666 7667 sysv5*) 7668 no_undefined_flag=' -z text' 7669 # $CC -shared without GNU ld will not create a library from C++ 7670 # object files and a static libstdc++, better avoid it by now 7671 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7672 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7673 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7674 hardcode_libdir_flag_spec= 7675 hardcode_shlibpath_var=no 7676 runpath_var='LD_RUN_PATH' 7677 ;; 7678 7679 uts4*) 7680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7681 hardcode_libdir_flag_spec='-L$libdir' 7682 hardcode_shlibpath_var=no 7683 ;; 7684 7685 *) 7686 ld_shlibs=no 7687 ;; 7688 esac 7689 fi 7690 7691echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7692echo "${ECHO_T}$ld_shlibs" >&6 7693test "$ld_shlibs" = no && can_build_shared=no 7694 7695variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7696if test "$GCC" = yes; then 7697 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7698fi 7699 7700# 7701# Do we need to explicitly link libc? 7702# 7703case "x$archive_cmds_need_lc" in 7704x|xyes) 7705 # Assume -lc should be added 7706 archive_cmds_need_lc=yes 7707 7708 if test "$enable_shared" = yes && test "$GCC" = yes; then 7709 case $archive_cmds in 7710 *'~'*) 7711 # FIXME: we may have to deal with multi-command sequences. 7712 ;; 7713 '$CC '*) 7714 # Test whether the compiler implicitly links with -lc since on some 7715 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7716 # to ld, don't add -lc before -lgcc. 7717 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7718echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7719 $rm conftest* 7720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7721 7722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7723 (eval $ac_compile) 2>&5 7724 ac_status=$? 7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7726 (exit $ac_status); } 2>conftest.err; then 7727 soname=conftest 7728 lib=conftest 7729 libobjs=conftest.$ac_objext 7730 deplibs= 7731 wl=$lt_prog_compiler_wl 7732 compiler_flags=-v 7733 linker_flags=-v 7734 verstring= 7735 output_objdir=. 7736 libname=conftest 7737 lt_save_allow_undefined_flag=$allow_undefined_flag 7738 allow_undefined_flag= 7739 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7740 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7741 ac_status=$? 7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7743 (exit $ac_status); } 7744 then 7745 archive_cmds_need_lc=no 7746 else 7747 archive_cmds_need_lc=yes 7748 fi 7749 allow_undefined_flag=$lt_save_allow_undefined_flag 7750 else 7751 cat conftest.err 1>&5 7752 fi 7753 $rm conftest* 7754 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7755echo "${ECHO_T}$archive_cmds_need_lc" >&6 7756 ;; 7757 esac 7758 fi 7759 ;; 7760esac 7761 7762echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7763echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7764library_names_spec= 7765libname_spec='lib$name' 7766soname_spec= 7767shrext_cmds=".so" 7768postinstall_cmds= 7769postuninstall_cmds= 7770finish_cmds= 7771finish_eval= 7772shlibpath_var= 7773shlibpath_overrides_runpath=unknown 7774version_type=none 7775dynamic_linker="$host_os ld.so" 7776sys_lib_dlsearch_path_spec="/lib /usr/lib" 7777if test "$GCC" = yes; then 7778 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7779 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7780 # if the path contains ";" then we assume it to be the separator 7781 # otherwise default to the standard path separator (i.e. ":") - it is 7782 # assumed that no part of a normal pathname contains ";" but that should 7783 # okay in the real world where ";" in dirpaths is itself problematic. 7784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7785 else 7786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7787 fi 7788else 7789 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7790fi 7791need_lib_prefix=unknown 7792hardcode_into_libs=no 7793 7794# when you set need_version to no, make sure it does not cause -set_version 7795# flags to be left without arguments 7796need_version=unknown 7797 7798case $host_os in 7799aix3*) 7800 version_type=linux 7801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7802 shlibpath_var=LIBPATH 7803 7804 # AIX 3 has no versioning support, so we append a major version to the name. 7805 soname_spec='${libname}${release}${shared_ext}$major' 7806 ;; 7807 7808aix4* | aix5*) 7809 version_type=linux 7810 need_lib_prefix=no 7811 need_version=no 7812 hardcode_into_libs=yes 7813 if test "$host_cpu" = ia64; then 7814 # AIX 5 supports IA64 7815 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7816 shlibpath_var=LD_LIBRARY_PATH 7817 else 7818 # With GCC up to 2.95.x, collect2 would create an import file 7819 # for dependence libraries. The import file would start with 7820 # the line `#! .'. This would cause the generated library to 7821 # depend on `.', always an invalid library. This was fixed in 7822 # development snapshots of GCC prior to 3.0. 7823 case $host_os in 7824 aix4 | aix4.[01] | aix4.[01].*) 7825 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7826 echo ' yes ' 7827 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7828 : 7829 else 7830 can_build_shared=no 7831 fi 7832 ;; 7833 esac 7834 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7835 # soname into executable. Probably we can add versioning support to 7836 # collect2, so additional links can be useful in future. 7837 if test "$aix_use_runtimelinking" = yes; then 7838 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7839 # instead of lib<name>.a to let people know that these are not 7840 # typical AIX shared libraries. 7841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7842 else 7843 # We preserve .a as extension for shared libraries through AIX4.2 7844 # and later when we are not doing run time linking. 7845 library_names_spec='${libname}${release}.a $libname.a' 7846 soname_spec='${libname}${release}${shared_ext}$major' 7847 fi 7848 shlibpath_var=LIBPATH 7849 fi 7850 ;; 7851 7852amigaos*) 7853 library_names_spec='$libname.ixlibrary $libname.a' 7854 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7855 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' 7856 ;; 7857 7858beos*) 7859 library_names_spec='${libname}${shared_ext}' 7860 dynamic_linker="$host_os ld.so" 7861 shlibpath_var=LIBRARY_PATH 7862 ;; 7863 7864bsdi[45]*) 7865 version_type=linux 7866 need_version=no 7867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7868 soname_spec='${libname}${release}${shared_ext}$major' 7869 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7870 shlibpath_var=LD_LIBRARY_PATH 7871 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7872 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7873 # the default ld.so.conf also contains /usr/contrib/lib and 7874 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7875 # libtool to hard-code these into programs 7876 ;; 7877 7878cygwin* | mingw* | pw32*) 7879 version_type=windows 7880 shrext_cmds=".dll" 7881 need_version=no 7882 need_lib_prefix=no 7883 7884 case $GCC,$host_os in 7885 yes,cygwin* | yes,mingw* | yes,pw32*) 7886 library_names_spec='$libname.dll.a' 7887 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7888 postinstall_cmds='base_file=`basename \${file}`~ 7889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7890 dldir=$destdir/`dirname \$dlpath`~ 7891 test -d \$dldir || mkdir -p \$dldir~ 7892 $install_prog $dir/$dlname \$dldir/$dlname~ 7893 chmod a+x \$dldir/$dlname' 7894 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7895 dlpath=$dir/\$dldll~ 7896 $rm \$dlpath' 7897 shlibpath_overrides_runpath=yes 7898 7899 case $host_os in 7900 cygwin*) 7901 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7902 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7903 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7904 ;; 7905 mingw*) 7906 # MinGW DLLs use traditional 'lib' prefix 7907 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7908 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7909 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7910 # It is most probably a Windows format PATH printed by 7911 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7912 # path with ; separators, and with drive letters. We can handle the 7913 # drive letters (cygwin fileutils understands them), so leave them, 7914 # especially as we might pass files found there to a mingw objdump, 7915 # which wouldn't understand a cygwinified path. Ahh. 7916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7917 else 7918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7919 fi 7920 ;; 7921 pw32*) 7922 # pw32 DLLs use 'pw' prefix rather than 'lib' 7923 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7924 ;; 7925 esac 7926 ;; 7927 7928 *) 7929 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7930 ;; 7931 esac 7932 dynamic_linker='Win32 ld.exe' 7933 # FIXME: first we should search . and the directory the executable is in 7934 shlibpath_var=PATH 7935 ;; 7936 7937darwin* | rhapsody*) 7938 dynamic_linker="$host_os dyld" 7939 version_type=darwin 7940 need_lib_prefix=no 7941 need_version=no 7942 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7943 soname_spec='${libname}${release}${major}$shared_ext' 7944 shlibpath_overrides_runpath=yes 7945 shlibpath_var=DYLD_LIBRARY_PATH 7946 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 7947 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7948 if test "$GCC" = yes; then 7949 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"` 7950 else 7951 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7952 fi 7953 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7954 ;; 7955 7956dgux*) 7957 version_type=linux 7958 need_lib_prefix=no 7959 need_version=no 7960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7961 soname_spec='${libname}${release}${shared_ext}$major' 7962 shlibpath_var=LD_LIBRARY_PATH 7963 ;; 7964 7965freebsd1*) 7966 dynamic_linker=no 7967 ;; 7968 7969kfreebsd*-gnu) 7970 version_type=linux 7971 need_lib_prefix=no 7972 need_version=no 7973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7974 soname_spec='${libname}${release}${shared_ext}$major' 7975 shlibpath_var=LD_LIBRARY_PATH 7976 shlibpath_overrides_runpath=no 7977 hardcode_into_libs=yes 7978 dynamic_linker='GNU ld.so' 7979 ;; 7980 7981freebsd* | dragonfly*) 7982 # DragonFly does not have aout. When/if they implement a new 7983 # versioning mechanism, adjust this. 7984 if test -x /usr/bin/objformat; then 7985 objformat=`/usr/bin/objformat` 7986 else 7987 case $host_os in 7988 freebsd[123]*) objformat=aout ;; 7989 *) objformat=elf ;; 7990 esac 7991 fi 7992 version_type=freebsd-$objformat 7993 case $version_type in 7994 freebsd-elf*) 7995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7996 need_version=no 7997 need_lib_prefix=no 7998 ;; 7999 freebsd-*) 8000 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8001 need_version=yes 8002 ;; 8003 esac 8004 shlibpath_var=LD_LIBRARY_PATH 8005 case $host_os in 8006 freebsd2*) 8007 shlibpath_overrides_runpath=yes 8008 ;; 8009 freebsd3.[01]* | freebsdelf3.[01]*) 8010 shlibpath_overrides_runpath=yes 8011 hardcode_into_libs=yes 8012 ;; 8013 *) # from 3.2 on 8014 shlibpath_overrides_runpath=no 8015 hardcode_into_libs=yes 8016 ;; 8017 esac 8018 ;; 8019 8020gnu*) 8021 version_type=linux 8022 need_lib_prefix=no 8023 need_version=no 8024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8025 soname_spec='${libname}${release}${shared_ext}$major' 8026 shlibpath_var=LD_LIBRARY_PATH 8027 hardcode_into_libs=yes 8028 ;; 8029 8030hpux9* | hpux10* | hpux11*) 8031 # Give a soname corresponding to the major version so that dld.sl refuses to 8032 # link against other versions. 8033 version_type=sunos 8034 need_lib_prefix=no 8035 need_version=no 8036 case $host_cpu in 8037 ia64*) 8038 shrext_cmds='.so' 8039 hardcode_into_libs=yes 8040 dynamic_linker="$host_os dld.so" 8041 shlibpath_var=LD_LIBRARY_PATH 8042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8044 soname_spec='${libname}${release}${shared_ext}$major' 8045 if test "X$HPUX_IA64_MODE" = X32; then 8046 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8047 else 8048 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8049 fi 8050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8051 ;; 8052 hppa*64*) 8053 shrext_cmds='.sl' 8054 hardcode_into_libs=yes 8055 dynamic_linker="$host_os dld.sl" 8056 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8059 soname_spec='${libname}${release}${shared_ext}$major' 8060 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8061 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8062 ;; 8063 *) 8064 shrext_cmds='.sl' 8065 dynamic_linker="$host_os dld.sl" 8066 shlibpath_var=SHLIB_PATH 8067 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8069 soname_spec='${libname}${release}${shared_ext}$major' 8070 ;; 8071 esac 8072 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8073 postinstall_cmds='chmod 555 $lib' 8074 ;; 8075 8076irix5* | irix6* | nonstopux*) 8077 case $host_os in 8078 nonstopux*) version_type=nonstopux ;; 8079 *) 8080 if test "$lt_cv_prog_gnu_ld" = yes; then 8081 version_type=linux 8082 else 8083 version_type=irix 8084 fi ;; 8085 esac 8086 need_lib_prefix=no 8087 need_version=no 8088 soname_spec='${libname}${release}${shared_ext}$major' 8089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8090 case $host_os in 8091 irix5* | nonstopux*) 8092 libsuff= shlibsuff= 8093 ;; 8094 *) 8095 case $LD in # libtool.m4 will add one of these switches to LD 8096 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8097 libsuff= shlibsuff= libmagic=32-bit;; 8098 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8099 libsuff=32 shlibsuff=N32 libmagic=N32;; 8100 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8101 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8102 *) libsuff= shlibsuff= libmagic=never-match;; 8103 esac 8104 ;; 8105 esac 8106 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8107 shlibpath_overrides_runpath=no 8108 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8109 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8110 hardcode_into_libs=yes 8111 ;; 8112 8113# No shared lib support for Linux oldld, aout, or coff. 8114linux*oldld* | linux*aout* | linux*coff*) 8115 dynamic_linker=no 8116 ;; 8117 8118# This must be Linux ELF. 8119linux*) 8120 version_type=linux 8121 need_lib_prefix=no 8122 need_version=no 8123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8124 soname_spec='${libname}${release}${shared_ext}$major' 8125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8126 shlibpath_var=LD_LIBRARY_PATH 8127 shlibpath_overrides_runpath=no 8128 # This implies no fast_install, which is unacceptable. 8129 # Some rework will be needed to allow for fast_install 8130 # before this can be enabled. 8131 hardcode_into_libs=yes 8132 8133 # find out which ABI we are using 8134 libsuff= 8135 case "$host_cpu" in 8136 x86_64*|s390x*|powerpc64*) 8137 echo '#line 8137 "configure"' > conftest.$ac_ext 8138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8139 (eval $ac_compile) 2>&5 8140 ac_status=$? 8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8142 (exit $ac_status); }; then 8143 case `/usr/bin/file conftest.$ac_objext` in 8144 *64-bit*) 8145 libsuff=64 8146 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 8147 ;; 8148 esac 8149 fi 8150 rm -rf conftest* 8151 ;; 8152 esac 8153 8154 # Append ld.so.conf contents to the search path 8155 if test -f /etc/ld.so.conf; then 8156 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8157 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 8158 fi 8159 8160 # We used to test for /lib/ld.so.1 and disable shared libraries on 8161 # powerpc, because MkLinux only supported shared libraries with the 8162 # GNU dynamic linker. Since this was broken with cross compilers, 8163 # most powerpc-linux boxes support dynamic linking these days and 8164 # people can always --disable-shared, the test was removed, and we 8165 # assume the GNU/Linux dynamic linker is in use. 8166 dynamic_linker='GNU/Linux ld.so' 8167 ;; 8168 8169knetbsd*-gnu) 8170 version_type=linux 8171 need_lib_prefix=no 8172 need_version=no 8173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8174 soname_spec='${libname}${release}${shared_ext}$major' 8175 shlibpath_var=LD_LIBRARY_PATH 8176 shlibpath_overrides_runpath=no 8177 hardcode_into_libs=yes 8178 dynamic_linker='GNU ld.so' 8179 ;; 8180 8181netbsd*) 8182 version_type=sunos 8183 need_lib_prefix=no 8184 need_version=no 8185 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8188 dynamic_linker='NetBSD (a.out) ld.so' 8189 else 8190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8191 soname_spec='${libname}${release}${shared_ext}$major' 8192 dynamic_linker='NetBSD ld.elf_so' 8193 fi 8194 shlibpath_var=LD_LIBRARY_PATH 8195 shlibpath_overrides_runpath=yes 8196 hardcode_into_libs=yes 8197 ;; 8198 8199newsos6) 8200 version_type=linux 8201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8202 shlibpath_var=LD_LIBRARY_PATH 8203 shlibpath_overrides_runpath=yes 8204 ;; 8205 8206nto-qnx*) 8207 version_type=linux 8208 need_lib_prefix=no 8209 need_version=no 8210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8211 soname_spec='${libname}${release}${shared_ext}$major' 8212 shlibpath_var=LD_LIBRARY_PATH 8213 shlibpath_overrides_runpath=yes 8214 ;; 8215 8216openbsd*) 8217 version_type=sunos 8218 need_lib_prefix=no 8219 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8220 case $host_os in 8221 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8222 *) need_version=no ;; 8223 esac 8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8226 shlibpath_var=LD_LIBRARY_PATH 8227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8228 case $host_os in 8229 openbsd2.[89] | openbsd2.[89].*) 8230 shlibpath_overrides_runpath=no 8231 ;; 8232 *) 8233 shlibpath_overrides_runpath=yes 8234 ;; 8235 esac 8236 else 8237 shlibpath_overrides_runpath=yes 8238 fi 8239 ;; 8240 8241os2*) 8242 libname_spec='$name' 8243 shrext_cmds=".dll" 8244 need_lib_prefix=no 8245 library_names_spec='$libname${shared_ext} $libname.a' 8246 dynamic_linker='OS/2 ld.exe' 8247 shlibpath_var=LIBPATH 8248 ;; 8249 8250osf3* | osf4* | osf5*) 8251 version_type=osf 8252 need_lib_prefix=no 8253 need_version=no 8254 soname_spec='${libname}${release}${shared_ext}$major' 8255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8256 shlibpath_var=LD_LIBRARY_PATH 8257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8259 ;; 8260 8261sco3.2v5*) 8262 version_type=osf 8263 soname_spec='${libname}${release}${shared_ext}$major' 8264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8265 shlibpath_var=LD_LIBRARY_PATH 8266 ;; 8267 8268solaris*) 8269 version_type=linux 8270 need_lib_prefix=no 8271 need_version=no 8272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8273 soname_spec='${libname}${release}${shared_ext}$major' 8274 shlibpath_var=LD_LIBRARY_PATH 8275 shlibpath_overrides_runpath=yes 8276 hardcode_into_libs=yes 8277 # ldd complains unless libraries are executable 8278 postinstall_cmds='chmod +x $lib' 8279 ;; 8280 8281sunos4*) 8282 version_type=sunos 8283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8284 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8285 shlibpath_var=LD_LIBRARY_PATH 8286 shlibpath_overrides_runpath=yes 8287 if test "$with_gnu_ld" = yes; then 8288 need_lib_prefix=no 8289 fi 8290 need_version=yes 8291 ;; 8292 8293sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8294 version_type=linux 8295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8296 soname_spec='${libname}${release}${shared_ext}$major' 8297 shlibpath_var=LD_LIBRARY_PATH 8298 case $host_vendor in 8299 sni) 8300 shlibpath_overrides_runpath=no 8301 need_lib_prefix=no 8302 export_dynamic_flag_spec='${wl}-Blargedynsym' 8303 runpath_var=LD_RUN_PATH 8304 ;; 8305 siemens) 8306 need_lib_prefix=no 8307 ;; 8308 motorola) 8309 need_lib_prefix=no 8310 need_version=no 8311 shlibpath_overrides_runpath=no 8312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8313 ;; 8314 esac 8315 ;; 8316 8317sysv4*MP*) 8318 if test -d /usr/nec ;then 8319 version_type=linux 8320 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8321 soname_spec='$libname${shared_ext}.$major' 8322 shlibpath_var=LD_LIBRARY_PATH 8323 fi 8324 ;; 8325 8326uts4*) 8327 version_type=linux 8328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8329 soname_spec='${libname}${release}${shared_ext}$major' 8330 shlibpath_var=LD_LIBRARY_PATH 8331 ;; 8332 8333*) 8334 dynamic_linker=no 8335 ;; 8336esac 8337echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8338echo "${ECHO_T}$dynamic_linker" >&6 8339test "$dynamic_linker" = no && can_build_shared=no 8340 8341echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8342echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8343hardcode_action= 8344if test -n "$hardcode_libdir_flag_spec" || \ 8345 test -n "$runpath_var" || \ 8346 test "X$hardcode_automatic" = "Xyes" ; then 8347 8348 # We can hardcode non-existant directories. 8349 if test "$hardcode_direct" != no && 8350 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8351 # have to relink, otherwise we might link with an installed library 8352 # when we should be linking with a yet-to-be-installed one 8353 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8354 test "$hardcode_minus_L" != no; then 8355 # Linking always hardcodes the temporary library directory. 8356 hardcode_action=relink 8357 else 8358 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8359 hardcode_action=immediate 8360 fi 8361else 8362 # We cannot hardcode anything, or else we can only hardcode existing 8363 # directories. 8364 hardcode_action=unsupported 8365fi 8366echo "$as_me:$LINENO: result: $hardcode_action" >&5 8367echo "${ECHO_T}$hardcode_action" >&6 8368 8369if test "$hardcode_action" = relink; then 8370 # Fast installation is not supported 8371 enable_fast_install=no 8372elif test "$shlibpath_overrides_runpath" = yes || 8373 test "$enable_shared" = no; then 8374 # Fast installation is not necessary 8375 enable_fast_install=needless 8376fi 8377 8378striplib= 8379old_striplib= 8380echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8381echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8382if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8383 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8384 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8385 echo "$as_me:$LINENO: result: yes" >&5 8386echo "${ECHO_T}yes" >&6 8387else 8388# FIXME - insert some real tests, host_os isn't really good enough 8389 case $host_os in 8390 darwin*) 8391 if test -n "$STRIP" ; then 8392 striplib="$STRIP -x" 8393 echo "$as_me:$LINENO: result: yes" >&5 8394echo "${ECHO_T}yes" >&6 8395 else 8396 echo "$as_me:$LINENO: result: no" >&5 8397echo "${ECHO_T}no" >&6 8398fi 8399 ;; 8400 *) 8401 echo "$as_me:$LINENO: result: no" >&5 8402echo "${ECHO_T}no" >&6 8403 ;; 8404 esac 8405fi 8406 8407if test "x$enable_dlopen" != xyes; then 8408 enable_dlopen=unknown 8409 enable_dlopen_self=unknown 8410 enable_dlopen_self_static=unknown 8411else 8412 lt_cv_dlopen=no 8413 lt_cv_dlopen_libs= 8414 8415 case $host_os in 8416 beos*) 8417 lt_cv_dlopen="load_add_on" 8418 lt_cv_dlopen_libs= 8419 lt_cv_dlopen_self=yes 8420 ;; 8421 8422 mingw* | pw32*) 8423 lt_cv_dlopen="LoadLibrary" 8424 lt_cv_dlopen_libs= 8425 ;; 8426 8427 cygwin*) 8428 lt_cv_dlopen="dlopen" 8429 lt_cv_dlopen_libs= 8430 ;; 8431 8432 darwin*) 8433 # if libdl is installed we need to link against it 8434 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8435echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8436if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8437 echo $ECHO_N "(cached) $ECHO_C" >&6 8438else 8439 ac_check_lib_save_LIBS=$LIBS 8440LIBS="-ldl $LIBS" 8441cat >conftest.$ac_ext <<_ACEOF 8442/* confdefs.h. */ 8443_ACEOF 8444cat confdefs.h >>conftest.$ac_ext 8445cat >>conftest.$ac_ext <<_ACEOF 8446/* end confdefs.h. */ 8447 8448/* Override any gcc2 internal prototype to avoid an error. */ 8449#ifdef __cplusplus 8450extern "C" 8451#endif 8452/* We use char because int might match the return type of a gcc2 8453 builtin and then its argument prototype would still apply. */ 8454char dlopen (); 8455int 8456main () 8457{ 8458dlopen (); 8459 ; 8460 return 0; 8461} 8462_ACEOF 8463rm -f conftest.$ac_objext conftest$ac_exeext 8464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8465 (eval $ac_link) 2>conftest.er1 8466 ac_status=$? 8467 grep -v '^ *+' conftest.er1 >conftest.err 8468 rm -f conftest.er1 8469 cat conftest.err >&5 8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8471 (exit $ac_status); } && 8472 { ac_try='test -z "$ac_c_werror_flag" 8473 || test ! -s conftest.err' 8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8475 (eval $ac_try) 2>&5 8476 ac_status=$? 8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8478 (exit $ac_status); }; } && 8479 { ac_try='test -s conftest$ac_exeext' 8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8481 (eval $ac_try) 2>&5 8482 ac_status=$? 8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8484 (exit $ac_status); }; }; then 8485 ac_cv_lib_dl_dlopen=yes 8486else 8487 echo "$as_me: failed program was:" >&5 8488sed 's/^/| /' conftest.$ac_ext >&5 8489 8490ac_cv_lib_dl_dlopen=no 8491fi 8492rm -f conftest.err conftest.$ac_objext \ 8493 conftest$ac_exeext conftest.$ac_ext 8494LIBS=$ac_check_lib_save_LIBS 8495fi 8496echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8497echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8498if test $ac_cv_lib_dl_dlopen = yes; then 8499 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8500else 8501 8502 lt_cv_dlopen="dyld" 8503 lt_cv_dlopen_libs= 8504 lt_cv_dlopen_self=yes 8505 8506fi 8507 8508 ;; 8509 8510 *) 8511 echo "$as_me:$LINENO: checking for shl_load" >&5 8512echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8513if test "${ac_cv_func_shl_load+set}" = set; then 8514 echo $ECHO_N "(cached) $ECHO_C" >&6 8515else 8516 cat >conftest.$ac_ext <<_ACEOF 8517/* confdefs.h. */ 8518_ACEOF 8519cat confdefs.h >>conftest.$ac_ext 8520cat >>conftest.$ac_ext <<_ACEOF 8521/* end confdefs.h. */ 8522/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8523 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8524#define shl_load innocuous_shl_load 8525 8526/* System header to define __stub macros and hopefully few prototypes, 8527 which can conflict with char shl_load (); below. 8528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8529 <limits.h> exists even on freestanding compilers. */ 8530 8531#ifdef __STDC__ 8532# include <limits.h> 8533#else 8534# include <assert.h> 8535#endif 8536 8537#undef shl_load 8538 8539/* Override any gcc2 internal prototype to avoid an error. */ 8540#ifdef __cplusplus 8541extern "C" 8542{ 8543#endif 8544/* We use char because int might match the return type of a gcc2 8545 builtin and then its argument prototype would still apply. */ 8546char shl_load (); 8547/* The GNU C library defines this for functions which it implements 8548 to always fail with ENOSYS. Some functions are actually named 8549 something starting with __ and the normal name is an alias. */ 8550#if defined (__stub_shl_load) || defined (__stub___shl_load) 8551choke me 8552#else 8553char (*f) () = shl_load; 8554#endif 8555#ifdef __cplusplus 8556} 8557#endif 8558 8559int 8560main () 8561{ 8562return f != shl_load; 8563 ; 8564 return 0; 8565} 8566_ACEOF 8567rm -f conftest.$ac_objext conftest$ac_exeext 8568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8569 (eval $ac_link) 2>conftest.er1 8570 ac_status=$? 8571 grep -v '^ *+' conftest.er1 >conftest.err 8572 rm -f conftest.er1 8573 cat conftest.err >&5 8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8575 (exit $ac_status); } && 8576 { ac_try='test -z "$ac_c_werror_flag" 8577 || test ! -s conftest.err' 8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8579 (eval $ac_try) 2>&5 8580 ac_status=$? 8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8582 (exit $ac_status); }; } && 8583 { ac_try='test -s conftest$ac_exeext' 8584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8585 (eval $ac_try) 2>&5 8586 ac_status=$? 8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8588 (exit $ac_status); }; }; then 8589 ac_cv_func_shl_load=yes 8590else 8591 echo "$as_me: failed program was:" >&5 8592sed 's/^/| /' conftest.$ac_ext >&5 8593 8594ac_cv_func_shl_load=no 8595fi 8596rm -f conftest.err conftest.$ac_objext \ 8597 conftest$ac_exeext conftest.$ac_ext 8598fi 8599echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8600echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8601if test $ac_cv_func_shl_load = yes; then 8602 lt_cv_dlopen="shl_load" 8603else 8604 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8605echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8606if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8607 echo $ECHO_N "(cached) $ECHO_C" >&6 8608else 8609 ac_check_lib_save_LIBS=$LIBS 8610LIBS="-ldld $LIBS" 8611cat >conftest.$ac_ext <<_ACEOF 8612/* confdefs.h. */ 8613_ACEOF 8614cat confdefs.h >>conftest.$ac_ext 8615cat >>conftest.$ac_ext <<_ACEOF 8616/* end confdefs.h. */ 8617 8618/* Override any gcc2 internal prototype to avoid an error. */ 8619#ifdef __cplusplus 8620extern "C" 8621#endif 8622/* We use char because int might match the return type of a gcc2 8623 builtin and then its argument prototype would still apply. */ 8624char shl_load (); 8625int 8626main () 8627{ 8628shl_load (); 8629 ; 8630 return 0; 8631} 8632_ACEOF 8633rm -f conftest.$ac_objext conftest$ac_exeext 8634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8635 (eval $ac_link) 2>conftest.er1 8636 ac_status=$? 8637 grep -v '^ *+' conftest.er1 >conftest.err 8638 rm -f conftest.er1 8639 cat conftest.err >&5 8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8641 (exit $ac_status); } && 8642 { ac_try='test -z "$ac_c_werror_flag" 8643 || test ! -s conftest.err' 8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8645 (eval $ac_try) 2>&5 8646 ac_status=$? 8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8648 (exit $ac_status); }; } && 8649 { ac_try='test -s conftest$ac_exeext' 8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8651 (eval $ac_try) 2>&5 8652 ac_status=$? 8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8654 (exit $ac_status); }; }; then 8655 ac_cv_lib_dld_shl_load=yes 8656else 8657 echo "$as_me: failed program was:" >&5 8658sed 's/^/| /' conftest.$ac_ext >&5 8659 8660ac_cv_lib_dld_shl_load=no 8661fi 8662rm -f conftest.err conftest.$ac_objext \ 8663 conftest$ac_exeext conftest.$ac_ext 8664LIBS=$ac_check_lib_save_LIBS 8665fi 8666echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8667echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8668if test $ac_cv_lib_dld_shl_load = yes; then 8669 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8670else 8671 echo "$as_me:$LINENO: checking for dlopen" >&5 8672echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8673if test "${ac_cv_func_dlopen+set}" = set; then 8674 echo $ECHO_N "(cached) $ECHO_C" >&6 8675else 8676 cat >conftest.$ac_ext <<_ACEOF 8677/* confdefs.h. */ 8678_ACEOF 8679cat confdefs.h >>conftest.$ac_ext 8680cat >>conftest.$ac_ext <<_ACEOF 8681/* end confdefs.h. */ 8682/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8683 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8684#define dlopen innocuous_dlopen 8685 8686/* System header to define __stub macros and hopefully few prototypes, 8687 which can conflict with char dlopen (); below. 8688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8689 <limits.h> exists even on freestanding compilers. */ 8690 8691#ifdef __STDC__ 8692# include <limits.h> 8693#else 8694# include <assert.h> 8695#endif 8696 8697#undef dlopen 8698 8699/* Override any gcc2 internal prototype to avoid an error. */ 8700#ifdef __cplusplus 8701extern "C" 8702{ 8703#endif 8704/* We use char because int might match the return type of a gcc2 8705 builtin and then its argument prototype would still apply. */ 8706char dlopen (); 8707/* The GNU C library defines this for functions which it implements 8708 to always fail with ENOSYS. Some functions are actually named 8709 something starting with __ and the normal name is an alias. */ 8710#if defined (__stub_dlopen) || defined (__stub___dlopen) 8711choke me 8712#else 8713char (*f) () = dlopen; 8714#endif 8715#ifdef __cplusplus 8716} 8717#endif 8718 8719int 8720main () 8721{ 8722return f != dlopen; 8723 ; 8724 return 0; 8725} 8726_ACEOF 8727rm -f conftest.$ac_objext conftest$ac_exeext 8728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8729 (eval $ac_link) 2>conftest.er1 8730 ac_status=$? 8731 grep -v '^ *+' conftest.er1 >conftest.err 8732 rm -f conftest.er1 8733 cat conftest.err >&5 8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8735 (exit $ac_status); } && 8736 { ac_try='test -z "$ac_c_werror_flag" 8737 || test ! -s conftest.err' 8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8739 (eval $ac_try) 2>&5 8740 ac_status=$? 8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8742 (exit $ac_status); }; } && 8743 { ac_try='test -s conftest$ac_exeext' 8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8745 (eval $ac_try) 2>&5 8746 ac_status=$? 8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8748 (exit $ac_status); }; }; then 8749 ac_cv_func_dlopen=yes 8750else 8751 echo "$as_me: failed program was:" >&5 8752sed 's/^/| /' conftest.$ac_ext >&5 8753 8754ac_cv_func_dlopen=no 8755fi 8756rm -f conftest.err conftest.$ac_objext \ 8757 conftest$ac_exeext conftest.$ac_ext 8758fi 8759echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8760echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8761if test $ac_cv_func_dlopen = yes; then 8762 lt_cv_dlopen="dlopen" 8763else 8764 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8765echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8766if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8767 echo $ECHO_N "(cached) $ECHO_C" >&6 8768else 8769 ac_check_lib_save_LIBS=$LIBS 8770LIBS="-ldl $LIBS" 8771cat >conftest.$ac_ext <<_ACEOF 8772/* confdefs.h. */ 8773_ACEOF 8774cat confdefs.h >>conftest.$ac_ext 8775cat >>conftest.$ac_ext <<_ACEOF 8776/* end confdefs.h. */ 8777 8778/* Override any gcc2 internal prototype to avoid an error. */ 8779#ifdef __cplusplus 8780extern "C" 8781#endif 8782/* We use char because int might match the return type of a gcc2 8783 builtin and then its argument prototype would still apply. */ 8784char dlopen (); 8785int 8786main () 8787{ 8788dlopen (); 8789 ; 8790 return 0; 8791} 8792_ACEOF 8793rm -f conftest.$ac_objext conftest$ac_exeext 8794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8795 (eval $ac_link) 2>conftest.er1 8796 ac_status=$? 8797 grep -v '^ *+' conftest.er1 >conftest.err 8798 rm -f conftest.er1 8799 cat conftest.err >&5 8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8801 (exit $ac_status); } && 8802 { ac_try='test -z "$ac_c_werror_flag" 8803 || test ! -s conftest.err' 8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8805 (eval $ac_try) 2>&5 8806 ac_status=$? 8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8808 (exit $ac_status); }; } && 8809 { ac_try='test -s conftest$ac_exeext' 8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8811 (eval $ac_try) 2>&5 8812 ac_status=$? 8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8814 (exit $ac_status); }; }; then 8815 ac_cv_lib_dl_dlopen=yes 8816else 8817 echo "$as_me: failed program was:" >&5 8818sed 's/^/| /' conftest.$ac_ext >&5 8819 8820ac_cv_lib_dl_dlopen=no 8821fi 8822rm -f conftest.err conftest.$ac_objext \ 8823 conftest$ac_exeext conftest.$ac_ext 8824LIBS=$ac_check_lib_save_LIBS 8825fi 8826echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8827echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8828if test $ac_cv_lib_dl_dlopen = yes; then 8829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8830else 8831 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8832echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8833if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8834 echo $ECHO_N "(cached) $ECHO_C" >&6 8835else 8836 ac_check_lib_save_LIBS=$LIBS 8837LIBS="-lsvld $LIBS" 8838cat >conftest.$ac_ext <<_ACEOF 8839/* confdefs.h. */ 8840_ACEOF 8841cat confdefs.h >>conftest.$ac_ext 8842cat >>conftest.$ac_ext <<_ACEOF 8843/* end confdefs.h. */ 8844 8845/* Override any gcc2 internal prototype to avoid an error. */ 8846#ifdef __cplusplus 8847extern "C" 8848#endif 8849/* We use char because int might match the return type of a gcc2 8850 builtin and then its argument prototype would still apply. */ 8851char dlopen (); 8852int 8853main () 8854{ 8855dlopen (); 8856 ; 8857 return 0; 8858} 8859_ACEOF 8860rm -f conftest.$ac_objext conftest$ac_exeext 8861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8862 (eval $ac_link) 2>conftest.er1 8863 ac_status=$? 8864 grep -v '^ *+' conftest.er1 >conftest.err 8865 rm -f conftest.er1 8866 cat conftest.err >&5 8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8868 (exit $ac_status); } && 8869 { ac_try='test -z "$ac_c_werror_flag" 8870 || test ! -s conftest.err' 8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8872 (eval $ac_try) 2>&5 8873 ac_status=$? 8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8875 (exit $ac_status); }; } && 8876 { ac_try='test -s conftest$ac_exeext' 8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8878 (eval $ac_try) 2>&5 8879 ac_status=$? 8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8881 (exit $ac_status); }; }; then 8882 ac_cv_lib_svld_dlopen=yes 8883else 8884 echo "$as_me: failed program was:" >&5 8885sed 's/^/| /' conftest.$ac_ext >&5 8886 8887ac_cv_lib_svld_dlopen=no 8888fi 8889rm -f conftest.err conftest.$ac_objext \ 8890 conftest$ac_exeext conftest.$ac_ext 8891LIBS=$ac_check_lib_save_LIBS 8892fi 8893echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8894echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8895if test $ac_cv_lib_svld_dlopen = yes; then 8896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8897else 8898 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8899echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8900if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8901 echo $ECHO_N "(cached) $ECHO_C" >&6 8902else 8903 ac_check_lib_save_LIBS=$LIBS 8904LIBS="-ldld $LIBS" 8905cat >conftest.$ac_ext <<_ACEOF 8906/* confdefs.h. */ 8907_ACEOF 8908cat confdefs.h >>conftest.$ac_ext 8909cat >>conftest.$ac_ext <<_ACEOF 8910/* end confdefs.h. */ 8911 8912/* Override any gcc2 internal prototype to avoid an error. */ 8913#ifdef __cplusplus 8914extern "C" 8915#endif 8916/* We use char because int might match the return type of a gcc2 8917 builtin and then its argument prototype would still apply. */ 8918char dld_link (); 8919int 8920main () 8921{ 8922dld_link (); 8923 ; 8924 return 0; 8925} 8926_ACEOF 8927rm -f conftest.$ac_objext conftest$ac_exeext 8928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8929 (eval $ac_link) 2>conftest.er1 8930 ac_status=$? 8931 grep -v '^ *+' conftest.er1 >conftest.err 8932 rm -f conftest.er1 8933 cat conftest.err >&5 8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8935 (exit $ac_status); } && 8936 { ac_try='test -z "$ac_c_werror_flag" 8937 || test ! -s conftest.err' 8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8939 (eval $ac_try) 2>&5 8940 ac_status=$? 8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8942 (exit $ac_status); }; } && 8943 { ac_try='test -s conftest$ac_exeext' 8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8945 (eval $ac_try) 2>&5 8946 ac_status=$? 8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8948 (exit $ac_status); }; }; then 8949 ac_cv_lib_dld_dld_link=yes 8950else 8951 echo "$as_me: failed program was:" >&5 8952sed 's/^/| /' conftest.$ac_ext >&5 8953 8954ac_cv_lib_dld_dld_link=no 8955fi 8956rm -f conftest.err conftest.$ac_objext \ 8957 conftest$ac_exeext conftest.$ac_ext 8958LIBS=$ac_check_lib_save_LIBS 8959fi 8960echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8961echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8962if test $ac_cv_lib_dld_dld_link = yes; then 8963 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8964fi 8965 8966 8967fi 8968 8969 8970fi 8971 8972 8973fi 8974 8975 8976fi 8977 8978 8979fi 8980 8981 ;; 8982 esac 8983 8984 if test "x$lt_cv_dlopen" != xno; then 8985 enable_dlopen=yes 8986 else 8987 enable_dlopen=no 8988 fi 8989 8990 case $lt_cv_dlopen in 8991 dlopen) 8992 save_CPPFLAGS="$CPPFLAGS" 8993 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8994 8995 save_LDFLAGS="$LDFLAGS" 8996 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8997 8998 save_LIBS="$LIBS" 8999 LIBS="$lt_cv_dlopen_libs $LIBS" 9000 9001 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9002echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9003if test "${lt_cv_dlopen_self+set}" = set; then 9004 echo $ECHO_N "(cached) $ECHO_C" >&6 9005else 9006 if test "$cross_compiling" = yes; then : 9007 lt_cv_dlopen_self=cross 9008else 9009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9010 lt_status=$lt_dlunknown 9011 cat > conftest.$ac_ext <<EOF 9012#line 9012 "configure" 9013#include "confdefs.h" 9014 9015#if HAVE_DLFCN_H 9016#include <dlfcn.h> 9017#endif 9018 9019#include <stdio.h> 9020 9021#ifdef RTLD_GLOBAL 9022# define LT_DLGLOBAL RTLD_GLOBAL 9023#else 9024# ifdef DL_GLOBAL 9025# define LT_DLGLOBAL DL_GLOBAL 9026# else 9027# define LT_DLGLOBAL 0 9028# endif 9029#endif 9030 9031/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9032 find out it does not work in some platform. */ 9033#ifndef LT_DLLAZY_OR_NOW 9034# ifdef RTLD_LAZY 9035# define LT_DLLAZY_OR_NOW RTLD_LAZY 9036# else 9037# ifdef DL_LAZY 9038# define LT_DLLAZY_OR_NOW DL_LAZY 9039# else 9040# ifdef RTLD_NOW 9041# define LT_DLLAZY_OR_NOW RTLD_NOW 9042# else 9043# ifdef DL_NOW 9044# define LT_DLLAZY_OR_NOW DL_NOW 9045# else 9046# define LT_DLLAZY_OR_NOW 0 9047# endif 9048# endif 9049# endif 9050# endif 9051#endif 9052 9053#ifdef __cplusplus 9054extern "C" void exit (int); 9055#endif 9056 9057void fnord() { int i=42;} 9058int main () 9059{ 9060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9061 int status = $lt_dlunknown; 9062 9063 if (self) 9064 { 9065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9066 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9067 /* dlclose (self); */ 9068 } 9069 9070 exit (status); 9071} 9072EOF 9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9074 (eval $ac_link) 2>&5 9075 ac_status=$? 9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9077 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9078 (./conftest; exit; ) >&5 2>/dev/null 9079 lt_status=$? 9080 case x$lt_status in 9081 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9082 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9083 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9084 esac 9085 else : 9086 # compilation failed 9087 lt_cv_dlopen_self=no 9088 fi 9089fi 9090rm -fr conftest* 9091 9092 9093fi 9094echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9095echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9096 9097 if test "x$lt_cv_dlopen_self" = xyes; then 9098 LDFLAGS="$LDFLAGS $link_static_flag" 9099 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9100echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9101if test "${lt_cv_dlopen_self_static+set}" = set; then 9102 echo $ECHO_N "(cached) $ECHO_C" >&6 9103else 9104 if test "$cross_compiling" = yes; then : 9105 lt_cv_dlopen_self_static=cross 9106else 9107 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9108 lt_status=$lt_dlunknown 9109 cat > conftest.$ac_ext <<EOF 9110#line 9110 "configure" 9111#include "confdefs.h" 9112 9113#if HAVE_DLFCN_H 9114#include <dlfcn.h> 9115#endif 9116 9117#include <stdio.h> 9118 9119#ifdef RTLD_GLOBAL 9120# define LT_DLGLOBAL RTLD_GLOBAL 9121#else 9122# ifdef DL_GLOBAL 9123# define LT_DLGLOBAL DL_GLOBAL 9124# else 9125# define LT_DLGLOBAL 0 9126# endif 9127#endif 9128 9129/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9130 find out it does not work in some platform. */ 9131#ifndef LT_DLLAZY_OR_NOW 9132# ifdef RTLD_LAZY 9133# define LT_DLLAZY_OR_NOW RTLD_LAZY 9134# else 9135# ifdef DL_LAZY 9136# define LT_DLLAZY_OR_NOW DL_LAZY 9137# else 9138# ifdef RTLD_NOW 9139# define LT_DLLAZY_OR_NOW RTLD_NOW 9140# else 9141# ifdef DL_NOW 9142# define LT_DLLAZY_OR_NOW DL_NOW 9143# else 9144# define LT_DLLAZY_OR_NOW 0 9145# endif 9146# endif 9147# endif 9148# endif 9149#endif 9150 9151#ifdef __cplusplus 9152extern "C" void exit (int); 9153#endif 9154 9155void fnord() { int i=42;} 9156int main () 9157{ 9158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9159 int status = $lt_dlunknown; 9160 9161 if (self) 9162 { 9163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9164 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9165 /* dlclose (self); */ 9166 } 9167 9168 exit (status); 9169} 9170EOF 9171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9172 (eval $ac_link) 2>&5 9173 ac_status=$? 9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9175 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9176 (./conftest; exit; ) >&5 2>/dev/null 9177 lt_status=$? 9178 case x$lt_status in 9179 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9180 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9181 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9182 esac 9183 else : 9184 # compilation failed 9185 lt_cv_dlopen_self_static=no 9186 fi 9187fi 9188rm -fr conftest* 9189 9190 9191fi 9192echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9193echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9194 fi 9195 9196 CPPFLAGS="$save_CPPFLAGS" 9197 LDFLAGS="$save_LDFLAGS" 9198 LIBS="$save_LIBS" 9199 ;; 9200 esac 9201 9202 case $lt_cv_dlopen_self in 9203 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9204 *) enable_dlopen_self=unknown ;; 9205 esac 9206 9207 case $lt_cv_dlopen_self_static in 9208 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9209 *) enable_dlopen_self_static=unknown ;; 9210 esac 9211fi 9212 9213 9214# Report which librarie types wil actually be built 9215echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9216echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9217echo "$as_me:$LINENO: result: $can_build_shared" >&5 9218echo "${ECHO_T}$can_build_shared" >&6 9219 9220echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9221echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9222test "$can_build_shared" = "no" && enable_shared=no 9223 9224# On AIX, shared libraries and static libraries use the same namespace, and 9225# are all built from PIC. 9226case $host_os in 9227aix3*) 9228 test "$enable_shared" = yes && enable_static=no 9229 if test -n "$RANLIB"; then 9230 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9231 postinstall_cmds='$RANLIB $lib' 9232 fi 9233 ;; 9234 9235aix4* | aix5*) 9236 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9237 test "$enable_shared" = yes && enable_static=no 9238 fi 9239 ;; 9240esac 9241echo "$as_me:$LINENO: result: $enable_shared" >&5 9242echo "${ECHO_T}$enable_shared" >&6 9243 9244echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9245echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9246# Make sure either enable_shared or enable_static is yes. 9247test "$enable_shared" = yes || enable_static=yes 9248echo "$as_me:$LINENO: result: $enable_static" >&5 9249echo "${ECHO_T}$enable_static" >&6 9250 9251# The else clause should only fire when bootstrapping the 9252# libtool distribution, otherwise you forgot to ship ltmain.sh 9253# with your package, and you will get complaints that there are 9254# no rules to generate ltmain.sh. 9255if test -f "$ltmain"; then 9256 # See if we are running on zsh, and set the options which allow our commands through 9257 # without removal of \ escapes. 9258 if test -n "${ZSH_VERSION+set}" ; then 9259 setopt NO_GLOB_SUBST 9260 fi 9261 # Now quote all the things that may contain metacharacters while being 9262 # careful not to overquote the AC_SUBSTed values. We take copies of the 9263 # variables and quote the copies for generation of the libtool script. 9264 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9265 SED SHELL STRIP \ 9266 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9267 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9268 deplibs_check_method reload_flag reload_cmds need_locks \ 9269 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9270 lt_cv_sys_global_symbol_to_c_name_address \ 9271 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9272 old_postinstall_cmds old_postuninstall_cmds \ 9273 compiler \ 9274 CC \ 9275 LD \ 9276 lt_prog_compiler_wl \ 9277 lt_prog_compiler_pic \ 9278 lt_prog_compiler_static \ 9279 lt_prog_compiler_no_builtin_flag \ 9280 export_dynamic_flag_spec \ 9281 thread_safe_flag_spec \ 9282 whole_archive_flag_spec \ 9283 enable_shared_with_static_runtimes \ 9284 old_archive_cmds \ 9285 old_archive_from_new_cmds \ 9286 predep_objects \ 9287 postdep_objects \ 9288 predeps \ 9289 postdeps \ 9290 compiler_lib_search_path \ 9291 archive_cmds \ 9292 archive_expsym_cmds \ 9293 postinstall_cmds \ 9294 postuninstall_cmds \ 9295 old_archive_from_expsyms_cmds \ 9296 allow_undefined_flag \ 9297 no_undefined_flag \ 9298 export_symbols_cmds \ 9299 hardcode_libdir_flag_spec \ 9300 hardcode_libdir_flag_spec_ld \ 9301 hardcode_libdir_separator \ 9302 hardcode_automatic \ 9303 module_cmds \ 9304 module_expsym_cmds \ 9305 lt_cv_prog_compiler_c_o \ 9306 exclude_expsyms \ 9307 include_expsyms; do 9308 9309 case $var in 9310 old_archive_cmds | \ 9311 old_archive_from_new_cmds | \ 9312 archive_cmds | \ 9313 archive_expsym_cmds | \ 9314 module_cmds | \ 9315 module_expsym_cmds | \ 9316 old_archive_from_expsyms_cmds | \ 9317 export_symbols_cmds | \ 9318 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9319 postinstall_cmds | postuninstall_cmds | \ 9320 old_postinstall_cmds | old_postuninstall_cmds | \ 9321 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9322 # Double-quote double-evaled strings. 9323 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9324 ;; 9325 *) 9326 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9327 ;; 9328 esac 9329 done 9330 9331 case $lt_echo in 9332 *'\$0 --fallback-echo"') 9333 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9334 ;; 9335 esac 9336 9337cfgfile="${ofile}T" 9338 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9339 $rm -f "$cfgfile" 9340 { echo "$as_me:$LINENO: creating $ofile" >&5 9341echo "$as_me: creating $ofile" >&6;} 9342 9343 cat <<__EOF__ >> "$cfgfile" 9344#! $SHELL 9345 9346# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9347# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9348# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9349# 9350# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9351# Free Software Foundation, Inc. 9352# 9353# This file is part of GNU Libtool: 9354# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9355# 9356# This program is free software; you can redistribute it and/or modify 9357# it under the terms of the GNU General Public License as published by 9358# the Free Software Foundation; either version 2 of the License, or 9359# (at your option) any later version. 9360# 9361# This program is distributed in the hope that it will be useful, but 9362# WITHOUT ANY WARRANTY; without even the implied warranty of 9363# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9364# General Public License for more details. 9365# 9366# You should have received a copy of the GNU General Public License 9367# along with this program; if not, write to the Free Software 9368# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9369# 9370# As a special exception to the GNU General Public License, if you 9371# distribute this file as part of a program that contains a 9372# configuration script generated by Autoconf, you may include it under 9373# the same distribution terms that you use for the rest of that program. 9374 9375# A sed program that does not truncate output. 9376SED=$lt_SED 9377 9378# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9379Xsed="$SED -e 1s/^X//" 9380 9381# The HP-UX ksh and POSIX shell print the target directory to stdout 9382# if CDPATH is set. 9383(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9384 9385# The names of the tagged configurations supported by this script. 9386available_tags= 9387 9388# ### BEGIN LIBTOOL CONFIG 9389 9390# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9391 9392# Shell to use when invoking shell scripts. 9393SHELL=$lt_SHELL 9394 9395# Whether or not to build shared libraries. 9396build_libtool_libs=$enable_shared 9397 9398# Whether or not to build static libraries. 9399build_old_libs=$enable_static 9400 9401# Whether or not to add -lc for building shared libraries. 9402build_libtool_need_lc=$archive_cmds_need_lc 9403 9404# Whether or not to disallow shared libs when runtime libs are static 9405allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9406 9407# Whether or not to optimize for fast installation. 9408fast_install=$enable_fast_install 9409 9410# The host system. 9411host_alias=$host_alias 9412host=$host 9413host_os=$host_os 9414 9415# The build system. 9416build_alias=$build_alias 9417build=$build 9418build_os=$build_os 9419 9420# An echo program that does not interpret backslashes. 9421echo=$lt_echo 9422 9423# The archiver. 9424AR=$lt_AR 9425AR_FLAGS=$lt_AR_FLAGS 9426 9427# A C compiler. 9428LTCC=$lt_LTCC 9429 9430# A language-specific compiler. 9431CC=$lt_compiler 9432 9433# Is the compiler the GNU C compiler? 9434with_gcc=$GCC 9435 9436# An ERE matcher. 9437EGREP=$lt_EGREP 9438 9439# The linker used to build libraries. 9440LD=$lt_LD 9441 9442# Whether we need hard or soft links. 9443LN_S=$lt_LN_S 9444 9445# A BSD-compatible nm program. 9446NM=$lt_NM 9447 9448# A symbol stripping program 9449STRIP=$lt_STRIP 9450 9451# Used to examine libraries when file_magic_cmd begins "file" 9452MAGIC_CMD=$MAGIC_CMD 9453 9454# Used on cygwin: DLL creation program. 9455DLLTOOL="$DLLTOOL" 9456 9457# Used on cygwin: object dumper. 9458OBJDUMP="$OBJDUMP" 9459 9460# Used on cygwin: assembler. 9461AS="$AS" 9462 9463# The name of the directory that contains temporary libtool files. 9464objdir=$objdir 9465 9466# How to create reloadable object files. 9467reload_flag=$lt_reload_flag 9468reload_cmds=$lt_reload_cmds 9469 9470# How to pass a linker flag through the compiler. 9471wl=$lt_lt_prog_compiler_wl 9472 9473# Object file suffix (normally "o"). 9474objext="$ac_objext" 9475 9476# Old archive suffix (normally "a"). 9477libext="$libext" 9478 9479# Shared library suffix (normally ".so"). 9480shrext_cmds='$shrext_cmds' 9481 9482# Executable file suffix (normally ""). 9483exeext="$exeext" 9484 9485# Additional compiler flags for building library objects. 9486pic_flag=$lt_lt_prog_compiler_pic 9487pic_mode=$pic_mode 9488 9489# What is the maximum length of a command? 9490max_cmd_len=$lt_cv_sys_max_cmd_len 9491 9492# Does compiler simultaneously support -c and -o options? 9493compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9494 9495# Must we lock files when doing compilation? 9496need_locks=$lt_need_locks 9497 9498# Do we need the lib prefix for modules? 9499need_lib_prefix=$need_lib_prefix 9500 9501# Do we need a version for libraries? 9502need_version=$need_version 9503 9504# Whether dlopen is supported. 9505dlopen_support=$enable_dlopen 9506 9507# Whether dlopen of programs is supported. 9508dlopen_self=$enable_dlopen_self 9509 9510# Whether dlopen of statically linked programs is supported. 9511dlopen_self_static=$enable_dlopen_self_static 9512 9513# Compiler flag to prevent dynamic linking. 9514link_static_flag=$lt_lt_prog_compiler_static 9515 9516# Compiler flag to turn off builtin functions. 9517no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9518 9519# Compiler flag to allow reflexive dlopens. 9520export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9521 9522# Compiler flag to generate shared objects directly from archives. 9523whole_archive_flag_spec=$lt_whole_archive_flag_spec 9524 9525# Compiler flag to generate thread-safe objects. 9526thread_safe_flag_spec=$lt_thread_safe_flag_spec 9527 9528# Library versioning type. 9529version_type=$version_type 9530 9531# Format of library name prefix. 9532libname_spec=$lt_libname_spec 9533 9534# List of archive names. First name is the real one, the rest are links. 9535# The last name is the one that the linker finds with -lNAME. 9536library_names_spec=$lt_library_names_spec 9537 9538# The coded name of the library, if different from the real name. 9539soname_spec=$lt_soname_spec 9540 9541# Commands used to build and install an old-style archive. 9542RANLIB=$lt_RANLIB 9543old_archive_cmds=$lt_old_archive_cmds 9544old_postinstall_cmds=$lt_old_postinstall_cmds 9545old_postuninstall_cmds=$lt_old_postuninstall_cmds 9546 9547# Create an old-style archive from a shared archive. 9548old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9549 9550# Create a temporary old-style archive to link instead of a shared archive. 9551old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9552 9553# Commands used to build and install a shared archive. 9554archive_cmds=$lt_archive_cmds 9555archive_expsym_cmds=$lt_archive_expsym_cmds 9556postinstall_cmds=$lt_postinstall_cmds 9557postuninstall_cmds=$lt_postuninstall_cmds 9558 9559# Commands used to build a loadable module (assumed same as above if empty) 9560module_cmds=$lt_module_cmds 9561module_expsym_cmds=$lt_module_expsym_cmds 9562 9563# Commands to strip libraries. 9564old_striplib=$lt_old_striplib 9565striplib=$lt_striplib 9566 9567# Dependencies to place before the objects being linked to create a 9568# shared library. 9569predep_objects=$lt_predep_objects 9570 9571# Dependencies to place after the objects being linked to create a 9572# shared library. 9573postdep_objects=$lt_postdep_objects 9574 9575# Dependencies to place before the objects being linked to create a 9576# shared library. 9577predeps=$lt_predeps 9578 9579# Dependencies to place after the objects being linked to create a 9580# shared library. 9581postdeps=$lt_postdeps 9582 9583# The library search path used internally by the compiler when linking 9584# a shared library. 9585compiler_lib_search_path=$lt_compiler_lib_search_path 9586 9587# Method to check whether dependent libraries are shared objects. 9588deplibs_check_method=$lt_deplibs_check_method 9589 9590# Command to use when deplibs_check_method == file_magic. 9591file_magic_cmd=$lt_file_magic_cmd 9592 9593# Flag that allows shared libraries with undefined symbols to be built. 9594allow_undefined_flag=$lt_allow_undefined_flag 9595 9596# Flag that forces no undefined symbols. 9597no_undefined_flag=$lt_no_undefined_flag 9598 9599# Commands used to finish a libtool library installation in a directory. 9600finish_cmds=$lt_finish_cmds 9601 9602# Same as above, but a single script fragment to be evaled but not shown. 9603finish_eval=$lt_finish_eval 9604 9605# Take the output of nm and produce a listing of raw symbols and C names. 9606global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9607 9608# Transform the output of nm in a proper C declaration 9609global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9610 9611# Transform the output of nm in a C name address pair 9612global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9613 9614# This is the shared library runtime path variable. 9615runpath_var=$runpath_var 9616 9617# This is the shared library path variable. 9618shlibpath_var=$shlibpath_var 9619 9620# Is shlibpath searched before the hard-coded library search path? 9621shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9622 9623# How to hardcode a shared library path into an executable. 9624hardcode_action=$hardcode_action 9625 9626# Whether we should hardcode library paths into libraries. 9627hardcode_into_libs=$hardcode_into_libs 9628 9629# Flag to hardcode \$libdir into a binary during linking. 9630# This must work even if \$libdir does not exist. 9631hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9632 9633# If ld is used when linking, flag to hardcode \$libdir into 9634# a binary during linking. This must work even if \$libdir does 9635# not exist. 9636hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9637 9638# Whether we need a single -rpath flag with a separated argument. 9639hardcode_libdir_separator=$lt_hardcode_libdir_separator 9640 9641# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9642# resulting binary. 9643hardcode_direct=$hardcode_direct 9644 9645# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9646# resulting binary. 9647hardcode_minus_L=$hardcode_minus_L 9648 9649# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9650# the resulting binary. 9651hardcode_shlibpath_var=$hardcode_shlibpath_var 9652 9653# Set to yes if building a shared library automatically hardcodes DIR into the library 9654# and all subsequent libraries and executables linked against it. 9655hardcode_automatic=$hardcode_automatic 9656 9657# Variables whose values should be saved in libtool wrapper scripts and 9658# restored at relink time. 9659variables_saved_for_relink="$variables_saved_for_relink" 9660 9661# Whether libtool must link a program against all its dependency libraries. 9662link_all_deplibs=$link_all_deplibs 9663 9664# Compile-time system search path for libraries 9665sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9666 9667# Run-time system search path for libraries 9668sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9669 9670# Fix the shell variable \$srcfile for the compiler. 9671fix_srcfile_path="$fix_srcfile_path" 9672 9673# Set to yes if exported symbols are required. 9674always_export_symbols=$always_export_symbols 9675 9676# The commands to list exported symbols. 9677export_symbols_cmds=$lt_export_symbols_cmds 9678 9679# The commands to extract the exported symbol list from a shared archive. 9680extract_expsyms_cmds=$lt_extract_expsyms_cmds 9681 9682# Symbols that should not be listed in the preloaded symbols. 9683exclude_expsyms=$lt_exclude_expsyms 9684 9685# Symbols that must always be exported. 9686include_expsyms=$lt_include_expsyms 9687 9688# ### END LIBTOOL CONFIG 9689 9690__EOF__ 9691 9692 9693 case $host_os in 9694 aix3*) 9695 cat <<\EOF >> "$cfgfile" 9696 9697# AIX sometimes has problems with the GCC collect2 program. For some 9698# reason, if we set the COLLECT_NAMES environment variable, the problems 9699# vanish in a puff of smoke. 9700if test "X${COLLECT_NAMES+set}" != Xset; then 9701 COLLECT_NAMES= 9702 export COLLECT_NAMES 9703fi 9704EOF 9705 ;; 9706 esac 9707 9708 # We use sed instead of cat because bash on DJGPP gets confused if 9709 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9710 # text mode, it properly converts lines to CR/LF. This bash problem 9711 # is reportedly fixed, but why not run on old versions too? 9712 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9713 9714 mv -f "$cfgfile" "$ofile" || \ 9715 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9716 chmod +x "$ofile" 9717 9718else 9719 # If there is no Makefile yet, we rely on a make rule to execute 9720 # `config.status --recheck' to rerun these tests and create the 9721 # libtool script then. 9722 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9723 if test -f "$ltmain_in"; then 9724 test -f Makefile && make "$ltmain" 9725 fi 9726fi 9727 9728 9729ac_ext=c 9730ac_cpp='$CPP $CPPFLAGS' 9731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9733ac_compiler_gnu=$ac_cv_c_compiler_gnu 9734 9735CC="$lt_save_CC" 9736 9737 9738# Check whether --with-tags or --without-tags was given. 9739if test "${with_tags+set}" = set; then 9740 withval="$with_tags" 9741 tagnames="$withval" 9742fi; 9743 9744if test -f "$ltmain" && test -n "$tagnames"; then 9745 if test ! -f "${ofile}"; then 9746 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9747echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9748 fi 9749 9750 if test -z "$LTCC"; then 9751 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9752 if test -z "$LTCC"; then 9753 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9754echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9755 else 9756 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9757echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9758 fi 9759 fi 9760 9761 # Extract list of available tagged configurations in $ofile. 9762 # Note that this assumes the entire list is on one line. 9763 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9764 9765 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9766 for tagname in $tagnames; do 9767 IFS="$lt_save_ifs" 9768 # Check whether tagname contains only valid characters 9769 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9770 "") ;; 9771 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9772echo "$as_me: error: invalid tag name: $tagname" >&2;} 9773 { (exit 1); exit 1; }; } 9774 ;; 9775 esac 9776 9777 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9778 then 9779 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9780echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9781 { (exit 1); exit 1; }; } 9782 fi 9783 9784 # Update the list of available tags. 9785 if test -n "$tagname"; then 9786 echo appending configuration tag \"$tagname\" to $ofile 9787 9788 case $tagname in 9789 CXX) 9790 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9791 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9792 (test "X$CXX" != "Xg++"))) ; then 9793 ac_ext=cc 9794ac_cpp='$CXXCPP $CPPFLAGS' 9795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9798 9799 9800 9801 9802archive_cmds_need_lc_CXX=no 9803allow_undefined_flag_CXX= 9804always_export_symbols_CXX=no 9805archive_expsym_cmds_CXX= 9806export_dynamic_flag_spec_CXX= 9807hardcode_direct_CXX=no 9808hardcode_libdir_flag_spec_CXX= 9809hardcode_libdir_flag_spec_ld_CXX= 9810hardcode_libdir_separator_CXX= 9811hardcode_minus_L_CXX=no 9812hardcode_automatic_CXX=no 9813module_cmds_CXX= 9814module_expsym_cmds_CXX= 9815link_all_deplibs_CXX=unknown 9816old_archive_cmds_CXX=$old_archive_cmds 9817no_undefined_flag_CXX= 9818whole_archive_flag_spec_CXX= 9819enable_shared_with_static_runtimes_CXX=no 9820 9821# Dependencies to place before and after the object being linked: 9822predep_objects_CXX= 9823postdep_objects_CXX= 9824predeps_CXX= 9825postdeps_CXX= 9826compiler_lib_search_path_CXX= 9827 9828# Source file extension for C++ test sources. 9829ac_ext=cpp 9830 9831# Object file extension for compiled C++ test sources. 9832objext=o 9833objext_CXX=$objext 9834 9835# Code to be used in simple compile tests 9836lt_simple_compile_test_code="int some_variable = 0;\n" 9837 9838# Code to be used in simple link tests 9839lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9840 9841# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9842 9843# If no C compiler was specified, use CC. 9844LTCC=${LTCC-"$CC"} 9845 9846# Allow CC to be a program name with arguments. 9847compiler=$CC 9848 9849 9850# save warnings/boilerplate of simple test code 9851ac_outfile=conftest.$ac_objext 9852printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9853eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9854_lt_compiler_boilerplate=`cat conftest.err` 9855$rm conftest* 9856 9857ac_outfile=conftest.$ac_objext 9858printf "$lt_simple_link_test_code" >conftest.$ac_ext 9859eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9860_lt_linker_boilerplate=`cat conftest.err` 9861$rm conftest* 9862 9863 9864# Allow CC to be a program name with arguments. 9865lt_save_CC=$CC 9866lt_save_LD=$LD 9867lt_save_GCC=$GCC 9868GCC=$GXX 9869lt_save_with_gnu_ld=$with_gnu_ld 9870lt_save_path_LD=$lt_cv_path_LD 9871if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9872 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9873else 9874 unset lt_cv_prog_gnu_ld 9875fi 9876if test -n "${lt_cv_path_LDCXX+set}"; then 9877 lt_cv_path_LD=$lt_cv_path_LDCXX 9878else 9879 unset lt_cv_path_LD 9880fi 9881test -z "${LDCXX+set}" || LD=$LDCXX 9882CC=${CXX-"c++"} 9883compiler=$CC 9884compiler_CXX=$CC 9885for cc_temp in $compiler""; do 9886 case $cc_temp in 9887 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9888 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9889 \-*) ;; 9890 *) break;; 9891 esac 9892done 9893cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9894 9895 9896# We don't want -fno-exception wen compiling C++ code, so set the 9897# no_builtin_flag separately 9898if test "$GXX" = yes; then 9899 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9900else 9901 lt_prog_compiler_no_builtin_flag_CXX= 9902fi 9903 9904if test "$GXX" = yes; then 9905 # Set up default GNU C++ configuration 9906 9907 9908# Check whether --with-gnu-ld or --without-gnu-ld was given. 9909if test "${with_gnu_ld+set}" = set; then 9910 withval="$with_gnu_ld" 9911 test "$withval" = no || with_gnu_ld=yes 9912else 9913 with_gnu_ld=no 9914fi; 9915ac_prog=ld 9916if test "$GCC" = yes; then 9917 # Check if gcc -print-prog-name=ld gives a path. 9918 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9919echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9920 case $host in 9921 *-*-mingw*) 9922 # gcc leaves a trailing carriage return which upsets mingw 9923 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9924 *) 9925 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9926 esac 9927 case $ac_prog in 9928 # Accept absolute paths. 9929 [\\/]* | ?:[\\/]*) 9930 re_direlt='/[^/][^/]*/\.\./' 9931 # Canonicalize the pathname of ld 9932 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9933 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9934 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9935 done 9936 test -z "$LD" && LD="$ac_prog" 9937 ;; 9938 "") 9939 # If it fails, then pretend we aren't using GCC. 9940 ac_prog=ld 9941 ;; 9942 *) 9943 # If it is relative, then search for the first ld in PATH. 9944 with_gnu_ld=unknown 9945 ;; 9946 esac 9947elif test "$with_gnu_ld" = yes; then 9948 echo "$as_me:$LINENO: checking for GNU ld" >&5 9949echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9950else 9951 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9952echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9953fi 9954if test "${lt_cv_path_LD+set}" = set; then 9955 echo $ECHO_N "(cached) $ECHO_C" >&6 9956else 9957 if test -z "$LD"; then 9958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9959 for ac_dir in $PATH; do 9960 IFS="$lt_save_ifs" 9961 test -z "$ac_dir" && ac_dir=. 9962 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9963 lt_cv_path_LD="$ac_dir/$ac_prog" 9964 # Check to see if the program is GNU ld. I'd rather use --version, 9965 # but apparently some variants of GNU ld only accept -v. 9966 # Break only if it was the GNU/non-GNU ld that we prefer. 9967 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9968 *GNU* | *'with BFD'*) 9969 test "$with_gnu_ld" != no && break 9970 ;; 9971 *) 9972 test "$with_gnu_ld" != yes && break 9973 ;; 9974 esac 9975 fi 9976 done 9977 IFS="$lt_save_ifs" 9978else 9979 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9980fi 9981fi 9982 9983LD="$lt_cv_path_LD" 9984if test -n "$LD"; then 9985 echo "$as_me:$LINENO: result: $LD" >&5 9986echo "${ECHO_T}$LD" >&6 9987else 9988 echo "$as_me:$LINENO: result: no" >&5 9989echo "${ECHO_T}no" >&6 9990fi 9991test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9992echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9993 { (exit 1); exit 1; }; } 9994echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9995echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9996if test "${lt_cv_prog_gnu_ld+set}" = set; then 9997 echo $ECHO_N "(cached) $ECHO_C" >&6 9998else 9999 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10000case `$LD -v 2>&1 </dev/null` in 10001*GNU* | *'with BFD'*) 10002 lt_cv_prog_gnu_ld=yes 10003 ;; 10004*) 10005 lt_cv_prog_gnu_ld=no 10006 ;; 10007esac 10008fi 10009echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10010echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10011with_gnu_ld=$lt_cv_prog_gnu_ld 10012 10013 10014 10015 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10016 # archiving commands below assume that GNU ld is being used. 10017 if test "$with_gnu_ld" = yes; then 10018 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10019 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' 10020 10021 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10022 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10023 10024 # If archive_cmds runs LD, not CC, wlarc should be empty 10025 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10026 # investigate it a little bit more. (MM) 10027 wlarc='${wl}' 10028 10029 # ancient GNU ld didn't support --whole-archive et. al. 10030 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10031 grep 'no-whole-archive' > /dev/null; then 10032 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10033 else 10034 whole_archive_flag_spec_CXX= 10035 fi 10036 else 10037 with_gnu_ld=no 10038 wlarc= 10039 10040 # A generic and very simple default shared library creation 10041 # command for GNU C++ for the case where it uses the native 10042 # linker, instead of GNU ld. If possible, this setting should 10043 # overridden to take advantage of the native linker features on 10044 # the platform it is being used on. 10045 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10046 fi 10047 10048 # Commands to make compiler produce verbose output that lists 10049 # what "hidden" libraries, object files and flags are used when 10050 # linking a shared library. 10051 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10052 10053else 10054 GXX=no 10055 with_gnu_ld=no 10056 wlarc= 10057fi 10058 10059# PORTME: fill in a description of your system's C++ link characteristics 10060echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10061echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10062ld_shlibs_CXX=yes 10063case $host_os in 10064 aix3*) 10065 # FIXME: insert proper C++ library support 10066 ld_shlibs_CXX=no 10067 ;; 10068 aix4* | aix5*) 10069 if test "$host_cpu" = ia64; then 10070 # On IA64, the linker does run time linking by default, so we don't 10071 # have to do anything special. 10072 aix_use_runtimelinking=no 10073 exp_sym_flag='-Bexport' 10074 no_entry_flag="" 10075 else 10076 aix_use_runtimelinking=no 10077 10078 # Test if we are trying to use run time linking or normal 10079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10080 # need to do runtime linking. 10081 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10082 for ld_flag in $LDFLAGS; do 10083 case $ld_flag in 10084 *-brtl*) 10085 aix_use_runtimelinking=yes 10086 break 10087 ;; 10088 esac 10089 done 10090 esac 10091 10092 exp_sym_flag='-bexport' 10093 no_entry_flag='-bnoentry' 10094 fi 10095 10096 # When large executables or shared objects are built, AIX ld can 10097 # have problems creating the table of contents. If linking a library 10098 # or program results in "error TOC overflow" add -mminimal-toc to 10099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10101 10102 archive_cmds_CXX='' 10103 hardcode_direct_CXX=yes 10104 hardcode_libdir_separator_CXX=':' 10105 link_all_deplibs_CXX=yes 10106 10107 if test "$GXX" = yes; then 10108 case $host_os in aix4.[012]|aix4.[012].*) 10109 # We only want to do this on AIX 4.2 and lower, the check 10110 # below for broken collect2 doesn't work under 4.3+ 10111 collect2name=`${CC} -print-prog-name=collect2` 10112 if test -f "$collect2name" && \ 10113 strings "$collect2name" | grep resolve_lib_name >/dev/null 10114 then 10115 # We have reworked collect2 10116 hardcode_direct_CXX=yes 10117 else 10118 # We have old collect2 10119 hardcode_direct_CXX=unsupported 10120 # It fails to find uninstalled libraries when the uninstalled 10121 # path is not listed in the libpath. Setting hardcode_minus_L 10122 # to unsupported forces relinking 10123 hardcode_minus_L_CXX=yes 10124 hardcode_libdir_flag_spec_CXX='-L$libdir' 10125 hardcode_libdir_separator_CXX= 10126 fi 10127 esac 10128 shared_flag='-shared' 10129 if test "$aix_use_runtimelinking" = yes; then 10130 shared_flag="$shared_flag "'${wl}-G' 10131 fi 10132 else 10133 # not using gcc 10134 if test "$host_cpu" = ia64; then 10135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10136 # chokes on -Wl,-G. The following line is correct: 10137 shared_flag='-G' 10138 else 10139 if test "$aix_use_runtimelinking" = yes; then 10140 shared_flag='${wl}-G' 10141 else 10142 shared_flag='${wl}-bM:SRE' 10143 fi 10144 fi 10145 fi 10146 10147 # It seems that -bexpall does not export symbols beginning with 10148 # underscore (_), so it is better to generate a list of symbols to export. 10149 always_export_symbols_CXX=yes 10150 if test "$aix_use_runtimelinking" = yes; then 10151 # Warning - without using the other runtime loading flags (-brtl), 10152 # -berok will link without error, but may produce a broken library. 10153 allow_undefined_flag_CXX='-berok' 10154 # Determine the default libpath from the value encoded in an empty executable. 10155 cat >conftest.$ac_ext <<_ACEOF 10156/* confdefs.h. */ 10157_ACEOF 10158cat confdefs.h >>conftest.$ac_ext 10159cat >>conftest.$ac_ext <<_ACEOF 10160/* end confdefs.h. */ 10161 10162int 10163main () 10164{ 10165 10166 ; 10167 return 0; 10168} 10169_ACEOF 10170rm -f conftest.$ac_objext conftest$ac_exeext 10171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10172 (eval $ac_link) 2>conftest.er1 10173 ac_status=$? 10174 grep -v '^ *+' conftest.er1 >conftest.err 10175 rm -f conftest.er1 10176 cat conftest.err >&5 10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10178 (exit $ac_status); } && 10179 { ac_try='test -z "$ac_cxx_werror_flag" 10180 || test ! -s conftest.err' 10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10182 (eval $ac_try) 2>&5 10183 ac_status=$? 10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10185 (exit $ac_status); }; } && 10186 { ac_try='test -s conftest$ac_exeext' 10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10188 (eval $ac_try) 2>&5 10189 ac_status=$? 10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10191 (exit $ac_status); }; }; then 10192 10193aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10194}'` 10195# Check for a 64-bit object if we didn't find anything. 10196if 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; } 10197}'`; fi 10198else 10199 echo "$as_me: failed program was:" >&5 10200sed 's/^/| /' conftest.$ac_ext >&5 10201 10202fi 10203rm -f conftest.err conftest.$ac_objext \ 10204 conftest$ac_exeext conftest.$ac_ext 10205if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10206 10207 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10208 10209 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10210 else 10211 if test "$host_cpu" = ia64; then 10212 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10213 allow_undefined_flag_CXX="-z nodefs" 10214 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 10215 else 10216 # Determine the default libpath from the value encoded in an empty executable. 10217 cat >conftest.$ac_ext <<_ACEOF 10218/* confdefs.h. */ 10219_ACEOF 10220cat confdefs.h >>conftest.$ac_ext 10221cat >>conftest.$ac_ext <<_ACEOF 10222/* end confdefs.h. */ 10223 10224int 10225main () 10226{ 10227 10228 ; 10229 return 0; 10230} 10231_ACEOF 10232rm -f conftest.$ac_objext conftest$ac_exeext 10233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10234 (eval $ac_link) 2>conftest.er1 10235 ac_status=$? 10236 grep -v '^ *+' conftest.er1 >conftest.err 10237 rm -f conftest.er1 10238 cat conftest.err >&5 10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10240 (exit $ac_status); } && 10241 { ac_try='test -z "$ac_cxx_werror_flag" 10242 || test ! -s conftest.err' 10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10244 (eval $ac_try) 2>&5 10245 ac_status=$? 10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10247 (exit $ac_status); }; } && 10248 { ac_try='test -s conftest$ac_exeext' 10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10250 (eval $ac_try) 2>&5 10251 ac_status=$? 10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10253 (exit $ac_status); }; }; then 10254 10255aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10256}'` 10257# Check for a 64-bit object if we didn't find anything. 10258if 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; } 10259}'`; fi 10260else 10261 echo "$as_me: failed program was:" >&5 10262sed 's/^/| /' conftest.$ac_ext >&5 10263 10264fi 10265rm -f conftest.err conftest.$ac_objext \ 10266 conftest$ac_exeext conftest.$ac_ext 10267if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10268 10269 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10270 # Warning - without using the other run time loading flags, 10271 # -berok will link without error, but may produce a broken library. 10272 no_undefined_flag_CXX=' ${wl}-bernotok' 10273 allow_undefined_flag_CXX=' ${wl}-berok' 10274 # -bexpall does not export symbols beginning with underscore (_) 10275 always_export_symbols_CXX=yes 10276 # Exported symbols can be pulled into shared objects from archives 10277 whole_archive_flag_spec_CXX=' ' 10278 archive_cmds_need_lc_CXX=yes 10279 # This is similar to how AIX traditionally builds its shared libraries. 10280 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10281 fi 10282 fi 10283 ;; 10284 chorus*) 10285 case $cc_basename in 10286 *) 10287 # FIXME: insert proper C++ library support 10288 ld_shlibs_CXX=no 10289 ;; 10290 esac 10291 ;; 10292 10293 10294 cygwin* | mingw* | pw32*) 10295 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10296 # as there is no search path for DLLs. 10297 hardcode_libdir_flag_spec_CXX='-L$libdir' 10298 allow_undefined_flag_CXX=unsupported 10299 always_export_symbols_CXX=no 10300 enable_shared_with_static_runtimes_CXX=yes 10301 10302 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10303 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10304 # If the export-symbols file already is a .def file (1st line 10305 # is EXPORTS), use it as is; otherwise, prepend... 10306 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10307 cp $export_symbols $output_objdir/$soname.def; 10308 else 10309 echo EXPORTS > $output_objdir/$soname.def; 10310 cat $export_symbols >> $output_objdir/$soname.def; 10311 fi~ 10312 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10313 else 10314 ld_shlibs_CXX=no 10315 fi 10316 ;; 10317 darwin* | rhapsody*) 10318 case $host_os in 10319 rhapsody* | darwin1.[012]) 10320 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10321 ;; 10322 *) # Darwin 1.3 on 10323 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10324 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10325 else 10326 case ${MACOSX_DEPLOYMENT_TARGET} in 10327 10.[012]) 10328 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10329 ;; 10330 10.*) 10331 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10332 ;; 10333 esac 10334 fi 10335 ;; 10336 esac 10337 archive_cmds_need_lc_CXX=no 10338 hardcode_direct_CXX=no 10339 hardcode_automatic_CXX=yes 10340 hardcode_shlibpath_var_CXX=unsupported 10341 whole_archive_flag_spec_CXX='' 10342 link_all_deplibs_CXX=yes 10343 10344 if test "$GXX" = yes ; then 10345 lt_int_apple_cc_single_mod=no 10346 output_verbose_link_cmd='echo' 10347 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10348 lt_int_apple_cc_single_mod=yes 10349 fi 10350 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10351 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10352 else 10353 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' 10354 fi 10355 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10356 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10357 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10358 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}' 10359 else 10360 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}' 10361 fi 10362 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}' 10363 else 10364 case $cc_basename in 10365 xlc*) 10366 output_verbose_link_cmd='echo' 10367 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' 10368 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10369 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10370 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}' 10371 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}' 10372 ;; 10373 *) 10374 ld_shlibs_CXX=no 10375 ;; 10376 esac 10377 fi 10378 ;; 10379 10380 dgux*) 10381 case $cc_basename in 10382 ec++*) 10383 # FIXME: insert proper C++ library support 10384 ld_shlibs_CXX=no 10385 ;; 10386 ghcx*) 10387 # Green Hills C++ Compiler 10388 # FIXME: insert proper C++ library support 10389 ld_shlibs_CXX=no 10390 ;; 10391 *) 10392 # FIXME: insert proper C++ library support 10393 ld_shlibs_CXX=no 10394 ;; 10395 esac 10396 ;; 10397 freebsd[12]*) 10398 # C++ shared libraries reported to be fairly broken before switch to ELF 10399 ld_shlibs_CXX=no 10400 ;; 10401 freebsd-elf*) 10402 archive_cmds_need_lc_CXX=no 10403 ;; 10404 freebsd* | kfreebsd*-gnu | dragonfly*) 10405 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10406 # conventions 10407 ld_shlibs_CXX=yes 10408 ;; 10409 gnu*) 10410 ;; 10411 hpux9*) 10412 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10413 hardcode_libdir_separator_CXX=: 10414 export_dynamic_flag_spec_CXX='${wl}-E' 10415 hardcode_direct_CXX=yes 10416 hardcode_minus_L_CXX=yes # Not in the search PATH, 10417 # but as the default 10418 # location of the library. 10419 10420 case $cc_basename in 10421 CC*) 10422 # FIXME: insert proper C++ library support 10423 ld_shlibs_CXX=no 10424 ;; 10425 aCC*) 10426 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' 10427 # Commands to make compiler produce verbose output that lists 10428 # what "hidden" libraries, object files and flags are used when 10429 # linking a shared library. 10430 # 10431 # There doesn't appear to be a way to prevent this compiler from 10432 # explicitly linking system object files so we need to strip them 10433 # from the output so that they don't get included in the library 10434 # dependencies. 10435 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' 10436 ;; 10437 *) 10438 if test "$GXX" = yes; then 10439 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' 10440 else 10441 # FIXME: insert proper C++ library support 10442 ld_shlibs_CXX=no 10443 fi 10444 ;; 10445 esac 10446 ;; 10447 hpux10*|hpux11*) 10448 if test $with_gnu_ld = no; then 10449 case $host_cpu in 10450 hppa*64*) 10451 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10452 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10453 hardcode_libdir_separator_CXX=: 10454 ;; 10455 ia64*) 10456 hardcode_libdir_flag_spec_CXX='-L$libdir' 10457 ;; 10458 *) 10459 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10460 hardcode_libdir_separator_CXX=: 10461 export_dynamic_flag_spec_CXX='${wl}-E' 10462 ;; 10463 esac 10464 fi 10465 case $host_cpu in 10466 hppa*64*) 10467 hardcode_direct_CXX=no 10468 hardcode_shlibpath_var_CXX=no 10469 ;; 10470 ia64*) 10471 hardcode_direct_CXX=no 10472 hardcode_shlibpath_var_CXX=no 10473 hardcode_minus_L_CXX=yes # Not in the search PATH, 10474 # but as the default 10475 # location of the library. 10476 ;; 10477 *) 10478 hardcode_direct_CXX=yes 10479 hardcode_minus_L_CXX=yes # Not in the search PATH, 10480 # but as the default 10481 # location of the library. 10482 ;; 10483 esac 10484 10485 case $cc_basename in 10486 CC*) 10487 # FIXME: insert proper C++ library support 10488 ld_shlibs_CXX=no 10489 ;; 10490 aCC*) 10491 case $host_cpu in 10492 hppa*64*|ia64*) 10493 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10494 ;; 10495 *) 10496 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10497 ;; 10498 esac 10499 # Commands to make compiler produce verbose output that lists 10500 # what "hidden" libraries, object files and flags are used when 10501 # linking a shared library. 10502 # 10503 # There doesn't appear to be a way to prevent this compiler from 10504 # explicitly linking system object files so we need to strip them 10505 # from the output so that they don't get included in the library 10506 # dependencies. 10507 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' 10508 ;; 10509 *) 10510 if test "$GXX" = yes; then 10511 if test $with_gnu_ld = no; then 10512 case $host_cpu in 10513 ia64*|hppa*64*) 10514 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10515 ;; 10516 *) 10517 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' 10518 ;; 10519 esac 10520 fi 10521 else 10522 # FIXME: insert proper C++ library support 10523 ld_shlibs_CXX=no 10524 fi 10525 ;; 10526 esac 10527 ;; 10528 irix5* | irix6*) 10529 case $cc_basename in 10530 CC*) 10531 # SGI C++ 10532 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' 10533 10534 # Archives containing C++ object files must be created using 10535 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10536 # necessary to make sure instantiated templates are included 10537 # in the archive. 10538 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10539 ;; 10540 *) 10541 if test "$GXX" = yes; then 10542 if test "$with_gnu_ld" = no; then 10543 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' 10544 else 10545 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' 10546 fi 10547 fi 10548 link_all_deplibs_CXX=yes 10549 ;; 10550 esac 10551 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10552 hardcode_libdir_separator_CXX=: 10553 ;; 10554 linux*) 10555 case $cc_basename in 10556 KCC*) 10557 # Kuck and Associates, Inc. (KAI) C++ Compiler 10558 10559 # KCC will only create a shared library if the output file 10560 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10561 # to its proper name (with version) after linking. 10562 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' 10563 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' 10564 # Commands to make compiler produce verbose output that lists 10565 # what "hidden" libraries, object files and flags are used when 10566 # linking a shared library. 10567 # 10568 # There doesn't appear to be a way to prevent this compiler from 10569 # explicitly linking system object files so we need to strip them 10570 # from the output so that they don't get included in the library 10571 # dependencies. 10572 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' 10573 10574 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10575 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10576 10577 # Archives containing C++ object files must be created using 10578 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10579 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10580 ;; 10581 icpc*) 10582 # Intel C++ 10583 with_gnu_ld=yes 10584 # version 8.0 and above of icpc choke on multiply defined symbols 10585 # if we add $predep_objects and $postdep_objects, however 7.1 and 10586 # earlier do not add the objects themselves. 10587 case `$CC -V 2>&1` in 10588 *"Version 7."*) 10589 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10590 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' 10591 ;; 10592 *) # Version 8.0 or newer 10593 tmp_idyn= 10594 case $host_cpu in 10595 ia64*) tmp_idyn=' -i_dynamic';; 10596 esac 10597 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10598 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' 10599 ;; 10600 esac 10601 archive_cmds_need_lc_CXX=no 10602 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10603 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10604 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10605 ;; 10606 pgCC*) 10607 # Portland Group C++ compiler 10608 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10609 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' 10610 10611 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10612 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10613 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' 10614 ;; 10615 cxx*) 10616 # Compaq C++ 10617 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10618 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' 10619 10620 runpath_var=LD_RUN_PATH 10621 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10622 hardcode_libdir_separator_CXX=: 10623 10624 # Commands to make compiler produce verbose output that lists 10625 # what "hidden" libraries, object files and flags are used when 10626 # linking a shared library. 10627 # 10628 # There doesn't appear to be a way to prevent this compiler from 10629 # explicitly linking system object files so we need to strip them 10630 # from the output so that they don't get included in the library 10631 # dependencies. 10632 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' 10633 ;; 10634 esac 10635 ;; 10636 lynxos*) 10637 # FIXME: insert proper C++ library support 10638 ld_shlibs_CXX=no 10639 ;; 10640 m88k*) 10641 # FIXME: insert proper C++ library support 10642 ld_shlibs_CXX=no 10643 ;; 10644 mvs*) 10645 case $cc_basename in 10646 cxx*) 10647 # FIXME: insert proper C++ library support 10648 ld_shlibs_CXX=no 10649 ;; 10650 *) 10651 # FIXME: insert proper C++ library support 10652 ld_shlibs_CXX=no 10653 ;; 10654 esac 10655 ;; 10656 netbsd*) 10657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10658 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10659 wlarc= 10660 hardcode_libdir_flag_spec_CXX='-R$libdir' 10661 hardcode_direct_CXX=yes 10662 hardcode_shlibpath_var_CXX=no 10663 fi 10664 # Workaround some broken pre-1.5 toolchains 10665 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10666 ;; 10667 openbsd2*) 10668 # C++ shared libraries are fairly broken 10669 ld_shlibs_CXX=no 10670 ;; 10671 openbsd*) 10672 hardcode_direct_CXX=yes 10673 hardcode_shlibpath_var_CXX=no 10674 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10675 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10676 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10677 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10678 export_dynamic_flag_spec_CXX='${wl}-E' 10679 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10680 fi 10681 output_verbose_link_cmd='echo' 10682 ;; 10683 osf3*) 10684 case $cc_basename in 10685 KCC*) 10686 # Kuck and Associates, Inc. (KAI) C++ Compiler 10687 10688 # KCC will only create a shared library if the output file 10689 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10690 # to its proper name (with version) after linking. 10691 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' 10692 10693 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10694 hardcode_libdir_separator_CXX=: 10695 10696 # Archives containing C++ object files must be created using 10697 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10698 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10699 10700 ;; 10701 RCC*) 10702 # Rational C++ 2.4.1 10703 # FIXME: insert proper C++ library support 10704 ld_shlibs_CXX=no 10705 ;; 10706 cxx*) 10707 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10708 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' 10709 10710 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10711 hardcode_libdir_separator_CXX=: 10712 10713 # Commands to make compiler produce verbose output that lists 10714 # what "hidden" libraries, object files and flags are used when 10715 # linking a shared library. 10716 # 10717 # There doesn't appear to be a way to prevent this compiler from 10718 # explicitly linking system object files so we need to strip them 10719 # from the output so that they don't get included in the library 10720 # dependencies. 10721 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' 10722 ;; 10723 *) 10724 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10725 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10726 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' 10727 10728 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10729 hardcode_libdir_separator_CXX=: 10730 10731 # Commands to make compiler produce verbose output that lists 10732 # what "hidden" libraries, object files and flags are used when 10733 # linking a shared library. 10734 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10735 10736 else 10737 # FIXME: insert proper C++ library support 10738 ld_shlibs_CXX=no 10739 fi 10740 ;; 10741 esac 10742 ;; 10743 osf4* | osf5*) 10744 case $cc_basename in 10745 KCC*) 10746 # Kuck and Associates, Inc. (KAI) C++ Compiler 10747 10748 # KCC will only create a shared library if the output file 10749 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10750 # to its proper name (with version) after linking. 10751 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' 10752 10753 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10754 hardcode_libdir_separator_CXX=: 10755 10756 # Archives containing C++ object files must be created using 10757 # the KAI C++ compiler. 10758 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10759 ;; 10760 RCC*) 10761 # Rational C++ 2.4.1 10762 # FIXME: insert proper C++ library support 10763 ld_shlibs_CXX=no 10764 ;; 10765 cxx*) 10766 allow_undefined_flag_CXX=' -expect_unresolved \*' 10767 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' 10768 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10769 echo "-hidden">> $lib.exp~ 10770 $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~ 10771 $rm $lib.exp' 10772 10773 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10774 hardcode_libdir_separator_CXX=: 10775 10776 # Commands to make compiler produce verbose output that lists 10777 # what "hidden" libraries, object files and flags are used when 10778 # linking a shared library. 10779 # 10780 # There doesn't appear to be a way to prevent this compiler from 10781 # explicitly linking system object files so we need to strip them 10782 # from the output so that they don't get included in the library 10783 # dependencies. 10784 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' 10785 ;; 10786 *) 10787 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10788 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10789 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' 10790 10791 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10792 hardcode_libdir_separator_CXX=: 10793 10794 # Commands to make compiler produce verbose output that lists 10795 # what "hidden" libraries, object files and flags are used when 10796 # linking a shared library. 10797 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10798 10799 else 10800 # FIXME: insert proper C++ library support 10801 ld_shlibs_CXX=no 10802 fi 10803 ;; 10804 esac 10805 ;; 10806 psos*) 10807 # FIXME: insert proper C++ library support 10808 ld_shlibs_CXX=no 10809 ;; 10810 sco*) 10811 archive_cmds_need_lc_CXX=no 10812 case $cc_basename in 10813 CC*) 10814 # FIXME: insert proper C++ library support 10815 ld_shlibs_CXX=no 10816 ;; 10817 *) 10818 # FIXME: insert proper C++ library support 10819 ld_shlibs_CXX=no 10820 ;; 10821 esac 10822 ;; 10823 sunos4*) 10824 case $cc_basename in 10825 CC*) 10826 # Sun C++ 4.x 10827 # FIXME: insert proper C++ library support 10828 ld_shlibs_CXX=no 10829 ;; 10830 lcc*) 10831 # Lucid 10832 # FIXME: insert proper C++ library support 10833 ld_shlibs_CXX=no 10834 ;; 10835 *) 10836 # FIXME: insert proper C++ library support 10837 ld_shlibs_CXX=no 10838 ;; 10839 esac 10840 ;; 10841 solaris*) 10842 case $cc_basename in 10843 CC*) 10844 # Sun C++ 4.2, 5.x and Centerline C++ 10845 archive_cmds_need_lc_CXX=yes 10846 no_undefined_flag_CXX=' -zdefs' 10847 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10848 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10849 $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' 10850 10851 hardcode_libdir_flag_spec_CXX='-R$libdir' 10852 hardcode_shlibpath_var_CXX=no 10853 case $host_os in 10854 solaris2.[0-5] | solaris2.[0-5].*) ;; 10855 *) 10856 # The C++ compiler is used as linker so we must use $wl 10857 # flag to pass the commands to the underlying system 10858 # linker. We must also pass each convience library through 10859 # to the system linker between allextract/defaultextract. 10860 # The C++ compiler will combine linker options so we 10861 # cannot just pass the convience library names through 10862 # without $wl. 10863 # Supported since Solaris 2.6 (maybe 2.5.1?) 10864 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' 10865 ;; 10866 esac 10867 link_all_deplibs_CXX=yes 10868 10869 output_verbose_link_cmd='echo' 10870 10871 # Archives containing C++ object files must be created using 10872 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10873 # necessary to make sure instantiated templates are included 10874 # in the archive. 10875 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10876 ;; 10877 gcx*) 10878 # Green Hills C++ Compiler 10879 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10880 10881 # The C++ compiler must be used to create the archive. 10882 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10883 ;; 10884 *) 10885 # GNU C++ compiler with Solaris linker 10886 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10887 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10888 if $CC --version | grep -v '^2\.7' > /dev/null; then 10889 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10890 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10891 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10892 10893 # Commands to make compiler produce verbose output that lists 10894 # what "hidden" libraries, object files and flags are used when 10895 # linking a shared library. 10896 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10897 else 10898 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10899 # platform. 10900 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10901 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10902 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10903 10904 # Commands to make compiler produce verbose output that lists 10905 # what "hidden" libraries, object files and flags are used when 10906 # linking a shared library. 10907 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10908 fi 10909 10910 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10911 fi 10912 ;; 10913 esac 10914 ;; 10915 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10916 archive_cmds_need_lc_CXX=no 10917 ;; 10918 tandem*) 10919 case $cc_basename in 10920 NCC*) 10921 # NonStop-UX NCC 3.20 10922 # FIXME: insert proper C++ library support 10923 ld_shlibs_CXX=no 10924 ;; 10925 *) 10926 # FIXME: insert proper C++ library support 10927 ld_shlibs_CXX=no 10928 ;; 10929 esac 10930 ;; 10931 vxworks*) 10932 # FIXME: insert proper C++ library support 10933 ld_shlibs_CXX=no 10934 ;; 10935 *) 10936 # FIXME: insert proper C++ library support 10937 ld_shlibs_CXX=no 10938 ;; 10939esac 10940echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10941echo "${ECHO_T}$ld_shlibs_CXX" >&6 10942test "$ld_shlibs_CXX" = no && can_build_shared=no 10943 10944GCC_CXX="$GXX" 10945LD_CXX="$LD" 10946 10947 10948cat > conftest.$ac_ext <<EOF 10949class Foo 10950{ 10951public: 10952 Foo (void) { a = 0; } 10953private: 10954 int a; 10955}; 10956EOF 10957 10958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10959 (eval $ac_compile) 2>&5 10960 ac_status=$? 10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10962 (exit $ac_status); }; then 10963 # Parse the compiler output and extract the necessary 10964 # objects, libraries and library flags. 10965 10966 # Sentinel used to keep track of whether or not we are before 10967 # the conftest object file. 10968 pre_test_object_deps_done=no 10969 10970 # The `*' in the case matches for architectures that use `case' in 10971 # $output_verbose_cmd can trigger glob expansion during the loop 10972 # eval without this substitution. 10973 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 10974 10975 for p in `eval $output_verbose_link_cmd`; do 10976 case $p in 10977 10978 -L* | -R* | -l*) 10979 # Some compilers place space between "-{L,R}" and the path. 10980 # Remove the space. 10981 if test $p = "-L" \ 10982 || test $p = "-R"; then 10983 prev=$p 10984 continue 10985 else 10986 prev= 10987 fi 10988 10989 if test "$pre_test_object_deps_done" = no; then 10990 case $p in 10991 -L* | -R*) 10992 # Internal compiler library paths should come after those 10993 # provided the user. The postdeps already come after the 10994 # user supplied libs so there is no need to process them. 10995 if test -z "$compiler_lib_search_path_CXX"; then 10996 compiler_lib_search_path_CXX="${prev}${p}" 10997 else 10998 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10999 fi 11000 ;; 11001 # The "-l" case would never come before the object being 11002 # linked, so don't bother handling this case. 11003 esac 11004 else 11005 if test -z "$postdeps_CXX"; then 11006 postdeps_CXX="${prev}${p}" 11007 else 11008 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11009 fi 11010 fi 11011 ;; 11012 11013 *.$objext) 11014 # This assumes that the test object file only shows up 11015 # once in the compiler output. 11016 if test "$p" = "conftest.$objext"; then 11017 pre_test_object_deps_done=yes 11018 continue 11019 fi 11020 11021 if test "$pre_test_object_deps_done" = no; then 11022 if test -z "$predep_objects_CXX"; then 11023 predep_objects_CXX="$p" 11024 else 11025 predep_objects_CXX="$predep_objects_CXX $p" 11026 fi 11027 else 11028 if test -z "$postdep_objects_CXX"; then 11029 postdep_objects_CXX="$p" 11030 else 11031 postdep_objects_CXX="$postdep_objects_CXX $p" 11032 fi 11033 fi 11034 ;; 11035 11036 *) ;; # Ignore the rest. 11037 11038 esac 11039 done 11040 11041 # Clean up. 11042 rm -f a.out a.exe 11043else 11044 echo "libtool.m4: error: problem compiling CXX test program" 11045fi 11046 11047$rm -f confest.$objext 11048 11049# PORTME: override above test on systems where it is broken 11050case $host_os in 11051solaris*) 11052 case $cc_basename in 11053 CC*) 11054 # Adding this requires a known-good setup of shared libraries for 11055 # Sun compiler versions before 5.6, else PIC objects from an old 11056 # archive will be linked into the output, leading to subtle bugs. 11057 postdeps_CXX='-lCstd -lCrun' 11058 ;; 11059 esac 11060esac 11061 11062 11063case " $postdeps_CXX " in 11064*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11065esac 11066 11067lt_prog_compiler_wl_CXX= 11068lt_prog_compiler_pic_CXX= 11069lt_prog_compiler_static_CXX= 11070 11071echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11072echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11073 11074 # C++ specific cases for pic, static, wl, etc. 11075 if test "$GXX" = yes; then 11076 lt_prog_compiler_wl_CXX='-Wl,' 11077 lt_prog_compiler_static_CXX='-static' 11078 11079 case $host_os in 11080 aix*) 11081 # All AIX code is PIC. 11082 if test "$host_cpu" = ia64; then 11083 # AIX 5 now supports IA64 processor 11084 lt_prog_compiler_static_CXX='-Bstatic' 11085 fi 11086 ;; 11087 amigaos*) 11088 # FIXME: we need at least 68020 code to build shared libraries, but 11089 # adding the `-m68020' flag to GCC prevents building anything better, 11090 # like `-m68040'. 11091 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11092 ;; 11093 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11094 # PIC is the default for these OSes. 11095 ;; 11096 mingw* | os2* | pw32*) 11097 # This hack is so that the source file can tell whether it is being 11098 # built for inclusion in a dll (and should export symbols for example). 11099 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11100 ;; 11101 darwin* | rhapsody*) 11102 # PIC is the default on this platform 11103 # Common symbols not allowed in MH_DYLIB files 11104 lt_prog_compiler_pic_CXX='-fno-common' 11105 ;; 11106 *djgpp*) 11107 # DJGPP does not support shared libraries at all 11108 lt_prog_compiler_pic_CXX= 11109 ;; 11110 sysv4*MP*) 11111 if test -d /usr/nec; then 11112 lt_prog_compiler_pic_CXX=-Kconform_pic 11113 fi 11114 ;; 11115 hpux*) 11116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11117 # not for PA HP-UX. 11118 case $host_cpu in 11119 hppa*64*|ia64*) 11120 ;; 11121 *) 11122 lt_prog_compiler_pic_CXX='-fPIC' 11123 ;; 11124 esac 11125 ;; 11126 *) 11127 lt_prog_compiler_pic_CXX='-fPIC' 11128 ;; 11129 esac 11130 else 11131 case $host_os in 11132 aix4* | aix5*) 11133 # All AIX code is PIC. 11134 if test "$host_cpu" = ia64; then 11135 # AIX 5 now supports IA64 processor 11136 lt_prog_compiler_static_CXX='-Bstatic' 11137 else 11138 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11139 fi 11140 ;; 11141 chorus*) 11142 case $cc_basename in 11143 cxch68*) 11144 # Green Hills C++ Compiler 11145 # _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" 11146 ;; 11147 esac 11148 ;; 11149 darwin*) 11150 # PIC is the default on this platform 11151 # Common symbols not allowed in MH_DYLIB files 11152 case $cc_basename in 11153 xlc*) 11154 lt_prog_compiler_pic_CXX='-qnocommon' 11155 lt_prog_compiler_wl_CXX='-Wl,' 11156 ;; 11157 esac 11158 ;; 11159 dgux*) 11160 case $cc_basename in 11161 ec++*) 11162 lt_prog_compiler_pic_CXX='-KPIC' 11163 ;; 11164 ghcx*) 11165 # Green Hills C++ Compiler 11166 lt_prog_compiler_pic_CXX='-pic' 11167 ;; 11168 *) 11169 ;; 11170 esac 11171 ;; 11172 freebsd* | kfreebsd*-gnu | dragonfly*) 11173 # FreeBSD uses GNU C++ 11174 ;; 11175 hpux9* | hpux10* | hpux11*) 11176 case $cc_basename in 11177 CC*) 11178 lt_prog_compiler_wl_CXX='-Wl,' 11179 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11180 if test "$host_cpu" != ia64; then 11181 lt_prog_compiler_pic_CXX='+Z' 11182 fi 11183 ;; 11184 aCC*) 11185 lt_prog_compiler_wl_CXX='-Wl,' 11186 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11187 case $host_cpu in 11188 hppa*64*|ia64*) 11189 # +Z the default 11190 ;; 11191 *) 11192 lt_prog_compiler_pic_CXX='+Z' 11193 ;; 11194 esac 11195 ;; 11196 *) 11197 ;; 11198 esac 11199 ;; 11200 irix5* | irix6* | nonstopux*) 11201 case $cc_basename in 11202 CC*) 11203 lt_prog_compiler_wl_CXX='-Wl,' 11204 lt_prog_compiler_static_CXX='-non_shared' 11205 # CC pic flag -KPIC is the default. 11206 ;; 11207 *) 11208 ;; 11209 esac 11210 ;; 11211 linux*) 11212 case $cc_basename in 11213 KCC*) 11214 # KAI C++ Compiler 11215 lt_prog_compiler_wl_CXX='--backend -Wl,' 11216 lt_prog_compiler_pic_CXX='-fPIC' 11217 ;; 11218 icpc* | ecpc*) 11219 # Intel C++ 11220 lt_prog_compiler_wl_CXX='-Wl,' 11221 lt_prog_compiler_pic_CXX='-KPIC' 11222 lt_prog_compiler_static_CXX='-static' 11223 ;; 11224 pgCC*) 11225 # Portland Group C++ compiler. 11226 lt_prog_compiler_wl_CXX='-Wl,' 11227 lt_prog_compiler_pic_CXX='-fpic' 11228 lt_prog_compiler_static_CXX='-Bstatic' 11229 ;; 11230 cxx*) 11231 # Compaq C++ 11232 # Make sure the PIC flag is empty. It appears that all Alpha 11233 # Linux and Compaq Tru64 Unix objects are PIC. 11234 lt_prog_compiler_pic_CXX= 11235 lt_prog_compiler_static_CXX='-non_shared' 11236 ;; 11237 *) 11238 ;; 11239 esac 11240 ;; 11241 lynxos*) 11242 ;; 11243 m88k*) 11244 ;; 11245 mvs*) 11246 case $cc_basename in 11247 cxx*) 11248 lt_prog_compiler_pic_CXX='-W c,exportall' 11249 ;; 11250 *) 11251 ;; 11252 esac 11253 ;; 11254 netbsd*) 11255 ;; 11256 osf3* | osf4* | osf5*) 11257 case $cc_basename in 11258 KCC*) 11259 lt_prog_compiler_wl_CXX='--backend -Wl,' 11260 ;; 11261 RCC*) 11262 # Rational C++ 2.4.1 11263 lt_prog_compiler_pic_CXX='-pic' 11264 ;; 11265 cxx*) 11266 # Digital/Compaq C++ 11267 lt_prog_compiler_wl_CXX='-Wl,' 11268 # Make sure the PIC flag is empty. It appears that all Alpha 11269 # Linux and Compaq Tru64 Unix objects are PIC. 11270 lt_prog_compiler_pic_CXX= 11271 lt_prog_compiler_static_CXX='-non_shared' 11272 ;; 11273 *) 11274 ;; 11275 esac 11276 ;; 11277 psos*) 11278 ;; 11279 sco*) 11280 case $cc_basename in 11281 CC*) 11282 lt_prog_compiler_pic_CXX='-fPIC' 11283 ;; 11284 *) 11285 ;; 11286 esac 11287 ;; 11288 solaris*) 11289 case $cc_basename in 11290 CC*) 11291 # Sun C++ 4.2, 5.x and Centerline C++ 11292 lt_prog_compiler_pic_CXX='-KPIC' 11293 lt_prog_compiler_static_CXX='-Bstatic' 11294 lt_prog_compiler_wl_CXX='-Qoption ld ' 11295 ;; 11296 gcx*) 11297 # Green Hills C++ Compiler 11298 lt_prog_compiler_pic_CXX='-PIC' 11299 ;; 11300 *) 11301 ;; 11302 esac 11303 ;; 11304 sunos4*) 11305 case $cc_basename in 11306 CC*) 11307 # Sun C++ 4.x 11308 lt_prog_compiler_pic_CXX='-pic' 11309 lt_prog_compiler_static_CXX='-Bstatic' 11310 ;; 11311 lcc*) 11312 # Lucid 11313 lt_prog_compiler_pic_CXX='-pic' 11314 ;; 11315 *) 11316 ;; 11317 esac 11318 ;; 11319 tandem*) 11320 case $cc_basename in 11321 NCC*) 11322 # NonStop-UX NCC 3.20 11323 lt_prog_compiler_pic_CXX='-KPIC' 11324 ;; 11325 *) 11326 ;; 11327 esac 11328 ;; 11329 unixware*) 11330 ;; 11331 vxworks*) 11332 ;; 11333 *) 11334 lt_prog_compiler_can_build_shared_CXX=no 11335 ;; 11336 esac 11337 fi 11338 11339echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11340echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11341 11342# 11343# Check to make sure the PIC flag actually works. 11344# 11345if test -n "$lt_prog_compiler_pic_CXX"; then 11346 11347echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11348echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11349if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11350 echo $ECHO_N "(cached) $ECHO_C" >&6 11351else 11352 lt_prog_compiler_pic_works_CXX=no 11353 ac_outfile=conftest.$ac_objext 11354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11355 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11356 # Insert the option either (1) after the last *FLAGS variable, or 11357 # (2) before a word containing "conftest.", or (3) at the end. 11358 # Note that $ac_compile itself does not contain backslashes and begins 11359 # with a dollar sign (not a hyphen), so the echo should work correctly. 11360 # The option is referenced via a variable to avoid confusing sed. 11361 lt_compile=`echo "$ac_compile" | $SED \ 11362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11364 -e 's:$: $lt_compiler_flag:'` 11365 (eval echo "\"\$as_me:11365: $lt_compile\"" >&5) 11366 (eval "$lt_compile" 2>conftest.err) 11367 ac_status=$? 11368 cat conftest.err >&5 11369 echo "$as_me:11369: \$? = $ac_status" >&5 11370 if (exit $ac_status) && test -s "$ac_outfile"; then 11371 # The compiler can only warn and ignore the option if not recognized 11372 # So say no if there are warnings other than the usual output. 11373 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11374 $SED '/^$/d' conftest.err >conftest.er2 11375 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11376 lt_prog_compiler_pic_works_CXX=yes 11377 fi 11378 fi 11379 $rm conftest* 11380 11381fi 11382echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11383echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11384 11385if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11386 case $lt_prog_compiler_pic_CXX in 11387 "" | " "*) ;; 11388 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11389 esac 11390else 11391 lt_prog_compiler_pic_CXX= 11392 lt_prog_compiler_can_build_shared_CXX=no 11393fi 11394 11395fi 11396case $host_os in 11397 # For platforms which do not support PIC, -DPIC is meaningless: 11398 *djgpp*) 11399 lt_prog_compiler_pic_CXX= 11400 ;; 11401 *) 11402 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11403 ;; 11404esac 11405 11406echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11407echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11408if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11409 echo $ECHO_N "(cached) $ECHO_C" >&6 11410else 11411 lt_cv_prog_compiler_c_o_CXX=no 11412 $rm -r conftest 2>/dev/null 11413 mkdir conftest 11414 cd conftest 11415 mkdir out 11416 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11417 11418 lt_compiler_flag="-o out/conftest2.$ac_objext" 11419 # Insert the option either (1) after the last *FLAGS variable, or 11420 # (2) before a word containing "conftest.", or (3) at the end. 11421 # Note that $ac_compile itself does not contain backslashes and begins 11422 # with a dollar sign (not a hyphen), so the echo should work correctly. 11423 lt_compile=`echo "$ac_compile" | $SED \ 11424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11426 -e 's:$: $lt_compiler_flag:'` 11427 (eval echo "\"\$as_me:11427: $lt_compile\"" >&5) 11428 (eval "$lt_compile" 2>out/conftest.err) 11429 ac_status=$? 11430 cat out/conftest.err >&5 11431 echo "$as_me:11431: \$? = $ac_status" >&5 11432 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11433 then 11434 # The compiler can only warn and ignore the option if not recognized 11435 # So say no if there are warnings 11436 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 11437 $SED '/^$/d' out/conftest.err >out/conftest.er2 11438 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11439 lt_cv_prog_compiler_c_o_CXX=yes 11440 fi 11441 fi 11442 chmod u+w . 2>&5 11443 $rm conftest* 11444 # SGI C++ compiler will create directory out/ii_files/ for 11445 # template instantiation 11446 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11447 $rm out/* && rmdir out 11448 cd .. 11449 rmdir conftest 11450 $rm conftest* 11451 11452fi 11453echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11454echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11455 11456 11457hard_links="nottested" 11458if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11459 # do not overwrite the value of need_locks provided by the user 11460 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11461echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11462 hard_links=yes 11463 $rm conftest* 11464 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11465 touch conftest.a 11466 ln conftest.a conftest.b 2>&5 || hard_links=no 11467 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11468 echo "$as_me:$LINENO: result: $hard_links" >&5 11469echo "${ECHO_T}$hard_links" >&6 11470 if test "$hard_links" = no; then 11471 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11472echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11473 need_locks=warn 11474 fi 11475else 11476 need_locks=no 11477fi 11478 11479echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11480echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11481 11482 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11483 case $host_os in 11484 aix4* | aix5*) 11485 # If we're using GNU nm, then we don't want the "-C" option. 11486 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11487 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11488 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' 11489 else 11490 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' 11491 fi 11492 ;; 11493 pw32*) 11494 export_symbols_cmds_CXX="$ltdll_cmds" 11495 ;; 11496 cygwin* | mingw*) 11497 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' 11498 ;; 11499 *) 11500 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11501 ;; 11502 esac 11503 11504echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11505echo "${ECHO_T}$ld_shlibs_CXX" >&6 11506test "$ld_shlibs_CXX" = no && can_build_shared=no 11507 11508variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11509if test "$GCC" = yes; then 11510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11511fi 11512 11513# 11514# Do we need to explicitly link libc? 11515# 11516case "x$archive_cmds_need_lc_CXX" in 11517x|xyes) 11518 # Assume -lc should be added 11519 archive_cmds_need_lc_CXX=yes 11520 11521 if test "$enable_shared" = yes && test "$GCC" = yes; then 11522 case $archive_cmds_CXX in 11523 *'~'*) 11524 # FIXME: we may have to deal with multi-command sequences. 11525 ;; 11526 '$CC '*) 11527 # Test whether the compiler implicitly links with -lc since on some 11528 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11529 # to ld, don't add -lc before -lgcc. 11530 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11531echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11532 $rm conftest* 11533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11534 11535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11536 (eval $ac_compile) 2>&5 11537 ac_status=$? 11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11539 (exit $ac_status); } 2>conftest.err; then 11540 soname=conftest 11541 lib=conftest 11542 libobjs=conftest.$ac_objext 11543 deplibs= 11544 wl=$lt_prog_compiler_wl_CXX 11545 compiler_flags=-v 11546 linker_flags=-v 11547 verstring= 11548 output_objdir=. 11549 libname=conftest 11550 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11551 allow_undefined_flag_CXX= 11552 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11553 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11554 ac_status=$? 11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11556 (exit $ac_status); } 11557 then 11558 archive_cmds_need_lc_CXX=no 11559 else 11560 archive_cmds_need_lc_CXX=yes 11561 fi 11562 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11563 else 11564 cat conftest.err 1>&5 11565 fi 11566 $rm conftest* 11567 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11568echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11569 ;; 11570 esac 11571 fi 11572 ;; 11573esac 11574 11575echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11576echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11577library_names_spec= 11578libname_spec='lib$name' 11579soname_spec= 11580shrext_cmds=".so" 11581postinstall_cmds= 11582postuninstall_cmds= 11583finish_cmds= 11584finish_eval= 11585shlibpath_var= 11586shlibpath_overrides_runpath=unknown 11587version_type=none 11588dynamic_linker="$host_os ld.so" 11589sys_lib_dlsearch_path_spec="/lib /usr/lib" 11590if test "$GCC" = yes; then 11591 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11592 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11593 # if the path contains ";" then we assume it to be the separator 11594 # otherwise default to the standard path separator (i.e. ":") - it is 11595 # assumed that no part of a normal pathname contains ";" but that should 11596 # okay in the real world where ";" in dirpaths is itself problematic. 11597 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11598 else 11599 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11600 fi 11601else 11602 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11603fi 11604need_lib_prefix=unknown 11605hardcode_into_libs=no 11606 11607# when you set need_version to no, make sure it does not cause -set_version 11608# flags to be left without arguments 11609need_version=unknown 11610 11611case $host_os in 11612aix3*) 11613 version_type=linux 11614 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11615 shlibpath_var=LIBPATH 11616 11617 # AIX 3 has no versioning support, so we append a major version to the name. 11618 soname_spec='${libname}${release}${shared_ext}$major' 11619 ;; 11620 11621aix4* | aix5*) 11622 version_type=linux 11623 need_lib_prefix=no 11624 need_version=no 11625 hardcode_into_libs=yes 11626 if test "$host_cpu" = ia64; then 11627 # AIX 5 supports IA64 11628 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11629 shlibpath_var=LD_LIBRARY_PATH 11630 else 11631 # With GCC up to 2.95.x, collect2 would create an import file 11632 # for dependence libraries. The import file would start with 11633 # the line `#! .'. This would cause the generated library to 11634 # depend on `.', always an invalid library. This was fixed in 11635 # development snapshots of GCC prior to 3.0. 11636 case $host_os in 11637 aix4 | aix4.[01] | aix4.[01].*) 11638 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11639 echo ' yes ' 11640 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11641 : 11642 else 11643 can_build_shared=no 11644 fi 11645 ;; 11646 esac 11647 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11648 # soname into executable. Probably we can add versioning support to 11649 # collect2, so additional links can be useful in future. 11650 if test "$aix_use_runtimelinking" = yes; then 11651 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11652 # instead of lib<name>.a to let people know that these are not 11653 # typical AIX shared libraries. 11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11655 else 11656 # We preserve .a as extension for shared libraries through AIX4.2 11657 # and later when we are not doing run time linking. 11658 library_names_spec='${libname}${release}.a $libname.a' 11659 soname_spec='${libname}${release}${shared_ext}$major' 11660 fi 11661 shlibpath_var=LIBPATH 11662 fi 11663 ;; 11664 11665amigaos*) 11666 library_names_spec='$libname.ixlibrary $libname.a' 11667 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11668 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' 11669 ;; 11670 11671beos*) 11672 library_names_spec='${libname}${shared_ext}' 11673 dynamic_linker="$host_os ld.so" 11674 shlibpath_var=LIBRARY_PATH 11675 ;; 11676 11677bsdi[45]*) 11678 version_type=linux 11679 need_version=no 11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11681 soname_spec='${libname}${release}${shared_ext}$major' 11682 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11683 shlibpath_var=LD_LIBRARY_PATH 11684 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11685 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11686 # the default ld.so.conf also contains /usr/contrib/lib and 11687 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11688 # libtool to hard-code these into programs 11689 ;; 11690 11691cygwin* | mingw* | pw32*) 11692 version_type=windows 11693 shrext_cmds=".dll" 11694 need_version=no 11695 need_lib_prefix=no 11696 11697 case $GCC,$host_os in 11698 yes,cygwin* | yes,mingw* | yes,pw32*) 11699 library_names_spec='$libname.dll.a' 11700 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11701 postinstall_cmds='base_file=`basename \${file}`~ 11702 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11703 dldir=$destdir/`dirname \$dlpath`~ 11704 test -d \$dldir || mkdir -p \$dldir~ 11705 $install_prog $dir/$dlname \$dldir/$dlname~ 11706 chmod a+x \$dldir/$dlname' 11707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11708 dlpath=$dir/\$dldll~ 11709 $rm \$dlpath' 11710 shlibpath_overrides_runpath=yes 11711 11712 case $host_os in 11713 cygwin*) 11714 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11715 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11716 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11717 ;; 11718 mingw*) 11719 # MinGW DLLs use traditional 'lib' prefix 11720 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11721 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11722 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11723 # It is most probably a Windows format PATH printed by 11724 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11725 # path with ; separators, and with drive letters. We can handle the 11726 # drive letters (cygwin fileutils understands them), so leave them, 11727 # especially as we might pass files found there to a mingw objdump, 11728 # which wouldn't understand a cygwinified path. Ahh. 11729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11730 else 11731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11732 fi 11733 ;; 11734 pw32*) 11735 # pw32 DLLs use 'pw' prefix rather than 'lib' 11736 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11737 ;; 11738 esac 11739 ;; 11740 11741 *) 11742 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11743 ;; 11744 esac 11745 dynamic_linker='Win32 ld.exe' 11746 # FIXME: first we should search . and the directory the executable is in 11747 shlibpath_var=PATH 11748 ;; 11749 11750darwin* | rhapsody*) 11751 dynamic_linker="$host_os dyld" 11752 version_type=darwin 11753 need_lib_prefix=no 11754 need_version=no 11755 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11756 soname_spec='${libname}${release}${major}$shared_ext' 11757 shlibpath_overrides_runpath=yes 11758 shlibpath_var=DYLD_LIBRARY_PATH 11759 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11760 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11761 if test "$GCC" = yes; then 11762 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"` 11763 else 11764 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11765 fi 11766 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11767 ;; 11768 11769dgux*) 11770 version_type=linux 11771 need_lib_prefix=no 11772 need_version=no 11773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11774 soname_spec='${libname}${release}${shared_ext}$major' 11775 shlibpath_var=LD_LIBRARY_PATH 11776 ;; 11777 11778freebsd1*) 11779 dynamic_linker=no 11780 ;; 11781 11782kfreebsd*-gnu) 11783 version_type=linux 11784 need_lib_prefix=no 11785 need_version=no 11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11787 soname_spec='${libname}${release}${shared_ext}$major' 11788 shlibpath_var=LD_LIBRARY_PATH 11789 shlibpath_overrides_runpath=no 11790 hardcode_into_libs=yes 11791 dynamic_linker='GNU ld.so' 11792 ;; 11793 11794freebsd* | dragonfly*) 11795 # DragonFly does not have aout. When/if they implement a new 11796 # versioning mechanism, adjust this. 11797 if test -x /usr/bin/objformat; then 11798 objformat=`/usr/bin/objformat` 11799 else 11800 case $host_os in 11801 freebsd[123]*) objformat=aout ;; 11802 *) objformat=elf ;; 11803 esac 11804 fi 11805 version_type=freebsd-$objformat 11806 case $version_type in 11807 freebsd-elf*) 11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11809 need_version=no 11810 need_lib_prefix=no 11811 ;; 11812 freebsd-*) 11813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11814 need_version=yes 11815 ;; 11816 esac 11817 shlibpath_var=LD_LIBRARY_PATH 11818 case $host_os in 11819 freebsd2*) 11820 shlibpath_overrides_runpath=yes 11821 ;; 11822 freebsd3.[01]* | freebsdelf3.[01]*) 11823 shlibpath_overrides_runpath=yes 11824 hardcode_into_libs=yes 11825 ;; 11826 *) # from 3.2 on 11827 shlibpath_overrides_runpath=no 11828 hardcode_into_libs=yes 11829 ;; 11830 esac 11831 ;; 11832 11833gnu*) 11834 version_type=linux 11835 need_lib_prefix=no 11836 need_version=no 11837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11838 soname_spec='${libname}${release}${shared_ext}$major' 11839 shlibpath_var=LD_LIBRARY_PATH 11840 hardcode_into_libs=yes 11841 ;; 11842 11843hpux9* | hpux10* | hpux11*) 11844 # Give a soname corresponding to the major version so that dld.sl refuses to 11845 # link against other versions. 11846 version_type=sunos 11847 need_lib_prefix=no 11848 need_version=no 11849 case $host_cpu in 11850 ia64*) 11851 shrext_cmds='.so' 11852 hardcode_into_libs=yes 11853 dynamic_linker="$host_os dld.so" 11854 shlibpath_var=LD_LIBRARY_PATH 11855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11857 soname_spec='${libname}${release}${shared_ext}$major' 11858 if test "X$HPUX_IA64_MODE" = X32; then 11859 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11860 else 11861 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11862 fi 11863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11864 ;; 11865 hppa*64*) 11866 shrext_cmds='.sl' 11867 hardcode_into_libs=yes 11868 dynamic_linker="$host_os dld.sl" 11869 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11872 soname_spec='${libname}${release}${shared_ext}$major' 11873 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11875 ;; 11876 *) 11877 shrext_cmds='.sl' 11878 dynamic_linker="$host_os dld.sl" 11879 shlibpath_var=SHLIB_PATH 11880 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11882 soname_spec='${libname}${release}${shared_ext}$major' 11883 ;; 11884 esac 11885 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11886 postinstall_cmds='chmod 555 $lib' 11887 ;; 11888 11889irix5* | irix6* | nonstopux*) 11890 case $host_os in 11891 nonstopux*) version_type=nonstopux ;; 11892 *) 11893 if test "$lt_cv_prog_gnu_ld" = yes; then 11894 version_type=linux 11895 else 11896 version_type=irix 11897 fi ;; 11898 esac 11899 need_lib_prefix=no 11900 need_version=no 11901 soname_spec='${libname}${release}${shared_ext}$major' 11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11903 case $host_os in 11904 irix5* | nonstopux*) 11905 libsuff= shlibsuff= 11906 ;; 11907 *) 11908 case $LD in # libtool.m4 will add one of these switches to LD 11909 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11910 libsuff= shlibsuff= libmagic=32-bit;; 11911 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11912 libsuff=32 shlibsuff=N32 libmagic=N32;; 11913 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11914 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11915 *) libsuff= shlibsuff= libmagic=never-match;; 11916 esac 11917 ;; 11918 esac 11919 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11920 shlibpath_overrides_runpath=no 11921 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11922 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11923 hardcode_into_libs=yes 11924 ;; 11925 11926# No shared lib support for Linux oldld, aout, or coff. 11927linux*oldld* | linux*aout* | linux*coff*) 11928 dynamic_linker=no 11929 ;; 11930 11931# This must be Linux ELF. 11932linux*) 11933 version_type=linux 11934 need_lib_prefix=no 11935 need_version=no 11936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11937 soname_spec='${libname}${release}${shared_ext}$major' 11938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11939 shlibpath_var=LD_LIBRARY_PATH 11940 shlibpath_overrides_runpath=no 11941 # This implies no fast_install, which is unacceptable. 11942 # Some rework will be needed to allow for fast_install 11943 # before this can be enabled. 11944 hardcode_into_libs=yes 11945 11946 # find out which ABI we are using 11947 libsuff= 11948 case "$host_cpu" in 11949 x86_64*|s390x*|powerpc64*) 11950 echo '#line 11950 "configure"' > conftest.$ac_ext 11951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11952 (eval $ac_compile) 2>&5 11953 ac_status=$? 11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11955 (exit $ac_status); }; then 11956 case `/usr/bin/file conftest.$ac_objext` in 11957 *64-bit*) 11958 libsuff=64 11959 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 11960 ;; 11961 esac 11962 fi 11963 rm -rf conftest* 11964 ;; 11965 esac 11966 11967 # Append ld.so.conf contents to the search path 11968 if test -f /etc/ld.so.conf; then 11969 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 11970 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 11971 fi 11972 11973 # We used to test for /lib/ld.so.1 and disable shared libraries on 11974 # powerpc, because MkLinux only supported shared libraries with the 11975 # GNU dynamic linker. Since this was broken with cross compilers, 11976 # most powerpc-linux boxes support dynamic linking these days and 11977 # people can always --disable-shared, the test was removed, and we 11978 # assume the GNU/Linux dynamic linker is in use. 11979 dynamic_linker='GNU/Linux ld.so' 11980 ;; 11981 11982knetbsd*-gnu) 11983 version_type=linux 11984 need_lib_prefix=no 11985 need_version=no 11986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11987 soname_spec='${libname}${release}${shared_ext}$major' 11988 shlibpath_var=LD_LIBRARY_PATH 11989 shlibpath_overrides_runpath=no 11990 hardcode_into_libs=yes 11991 dynamic_linker='GNU ld.so' 11992 ;; 11993 11994netbsd*) 11995 version_type=sunos 11996 need_lib_prefix=no 11997 need_version=no 11998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12001 dynamic_linker='NetBSD (a.out) ld.so' 12002 else 12003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12004 soname_spec='${libname}${release}${shared_ext}$major' 12005 dynamic_linker='NetBSD ld.elf_so' 12006 fi 12007 shlibpath_var=LD_LIBRARY_PATH 12008 shlibpath_overrides_runpath=yes 12009 hardcode_into_libs=yes 12010 ;; 12011 12012newsos6) 12013 version_type=linux 12014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12015 shlibpath_var=LD_LIBRARY_PATH 12016 shlibpath_overrides_runpath=yes 12017 ;; 12018 12019nto-qnx*) 12020 version_type=linux 12021 need_lib_prefix=no 12022 need_version=no 12023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12024 soname_spec='${libname}${release}${shared_ext}$major' 12025 shlibpath_var=LD_LIBRARY_PATH 12026 shlibpath_overrides_runpath=yes 12027 ;; 12028 12029openbsd*) 12030 version_type=sunos 12031 need_lib_prefix=no 12032 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12033 case $host_os in 12034 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12035 *) need_version=no ;; 12036 esac 12037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12039 shlibpath_var=LD_LIBRARY_PATH 12040 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12041 case $host_os in 12042 openbsd2.[89] | openbsd2.[89].*) 12043 shlibpath_overrides_runpath=no 12044 ;; 12045 *) 12046 shlibpath_overrides_runpath=yes 12047 ;; 12048 esac 12049 else 12050 shlibpath_overrides_runpath=yes 12051 fi 12052 ;; 12053 12054os2*) 12055 libname_spec='$name' 12056 shrext_cmds=".dll" 12057 need_lib_prefix=no 12058 library_names_spec='$libname${shared_ext} $libname.a' 12059 dynamic_linker='OS/2 ld.exe' 12060 shlibpath_var=LIBPATH 12061 ;; 12062 12063osf3* | osf4* | osf5*) 12064 version_type=osf 12065 need_lib_prefix=no 12066 need_version=no 12067 soname_spec='${libname}${release}${shared_ext}$major' 12068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12069 shlibpath_var=LD_LIBRARY_PATH 12070 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12071 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12072 ;; 12073 12074sco3.2v5*) 12075 version_type=osf 12076 soname_spec='${libname}${release}${shared_ext}$major' 12077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12078 shlibpath_var=LD_LIBRARY_PATH 12079 ;; 12080 12081solaris*) 12082 version_type=linux 12083 need_lib_prefix=no 12084 need_version=no 12085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12086 soname_spec='${libname}${release}${shared_ext}$major' 12087 shlibpath_var=LD_LIBRARY_PATH 12088 shlibpath_overrides_runpath=yes 12089 hardcode_into_libs=yes 12090 # ldd complains unless libraries are executable 12091 postinstall_cmds='chmod +x $lib' 12092 ;; 12093 12094sunos4*) 12095 version_type=sunos 12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12097 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12098 shlibpath_var=LD_LIBRARY_PATH 12099 shlibpath_overrides_runpath=yes 12100 if test "$with_gnu_ld" = yes; then 12101 need_lib_prefix=no 12102 fi 12103 need_version=yes 12104 ;; 12105 12106sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12107 version_type=linux 12108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12109 soname_spec='${libname}${release}${shared_ext}$major' 12110 shlibpath_var=LD_LIBRARY_PATH 12111 case $host_vendor in 12112 sni) 12113 shlibpath_overrides_runpath=no 12114 need_lib_prefix=no 12115 export_dynamic_flag_spec='${wl}-Blargedynsym' 12116 runpath_var=LD_RUN_PATH 12117 ;; 12118 siemens) 12119 need_lib_prefix=no 12120 ;; 12121 motorola) 12122 need_lib_prefix=no 12123 need_version=no 12124 shlibpath_overrides_runpath=no 12125 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12126 ;; 12127 esac 12128 ;; 12129 12130sysv4*MP*) 12131 if test -d /usr/nec ;then 12132 version_type=linux 12133 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12134 soname_spec='$libname${shared_ext}.$major' 12135 shlibpath_var=LD_LIBRARY_PATH 12136 fi 12137 ;; 12138 12139uts4*) 12140 version_type=linux 12141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12142 soname_spec='${libname}${release}${shared_ext}$major' 12143 shlibpath_var=LD_LIBRARY_PATH 12144 ;; 12145 12146*) 12147 dynamic_linker=no 12148 ;; 12149esac 12150echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12151echo "${ECHO_T}$dynamic_linker" >&6 12152test "$dynamic_linker" = no && can_build_shared=no 12153 12154echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12155echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12156hardcode_action_CXX= 12157if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12158 test -n "$runpath_var_CXX" || \ 12159 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12160 12161 # We can hardcode non-existant directories. 12162 if test "$hardcode_direct_CXX" != no && 12163 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12164 # have to relink, otherwise we might link with an installed library 12165 # when we should be linking with a yet-to-be-installed one 12166 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12167 test "$hardcode_minus_L_CXX" != no; then 12168 # Linking always hardcodes the temporary library directory. 12169 hardcode_action_CXX=relink 12170 else 12171 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12172 hardcode_action_CXX=immediate 12173 fi 12174else 12175 # We cannot hardcode anything, or else we can only hardcode existing 12176 # directories. 12177 hardcode_action_CXX=unsupported 12178fi 12179echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12180echo "${ECHO_T}$hardcode_action_CXX" >&6 12181 12182if test "$hardcode_action_CXX" = relink; then 12183 # Fast installation is not supported 12184 enable_fast_install=no 12185elif test "$shlibpath_overrides_runpath" = yes || 12186 test "$enable_shared" = no; then 12187 # Fast installation is not necessary 12188 enable_fast_install=needless 12189fi 12190 12191striplib= 12192old_striplib= 12193echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12194echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 12195if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12196 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12197 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12198 echo "$as_me:$LINENO: result: yes" >&5 12199echo "${ECHO_T}yes" >&6 12200else 12201# FIXME - insert some real tests, host_os isn't really good enough 12202 case $host_os in 12203 darwin*) 12204 if test -n "$STRIP" ; then 12205 striplib="$STRIP -x" 12206 echo "$as_me:$LINENO: result: yes" >&5 12207echo "${ECHO_T}yes" >&6 12208 else 12209 echo "$as_me:$LINENO: result: no" >&5 12210echo "${ECHO_T}no" >&6 12211fi 12212 ;; 12213 *) 12214 echo "$as_me:$LINENO: result: no" >&5 12215echo "${ECHO_T}no" >&6 12216 ;; 12217 esac 12218fi 12219 12220if test "x$enable_dlopen" != xyes; then 12221 enable_dlopen=unknown 12222 enable_dlopen_self=unknown 12223 enable_dlopen_self_static=unknown 12224else 12225 lt_cv_dlopen=no 12226 lt_cv_dlopen_libs= 12227 12228 case $host_os in 12229 beos*) 12230 lt_cv_dlopen="load_add_on" 12231 lt_cv_dlopen_libs= 12232 lt_cv_dlopen_self=yes 12233 ;; 12234 12235 mingw* | pw32*) 12236 lt_cv_dlopen="LoadLibrary" 12237 lt_cv_dlopen_libs= 12238 ;; 12239 12240 cygwin*) 12241 lt_cv_dlopen="dlopen" 12242 lt_cv_dlopen_libs= 12243 ;; 12244 12245 darwin*) 12246 # if libdl is installed we need to link against it 12247 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12248echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12249if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12250 echo $ECHO_N "(cached) $ECHO_C" >&6 12251else 12252 ac_check_lib_save_LIBS=$LIBS 12253LIBS="-ldl $LIBS" 12254cat >conftest.$ac_ext <<_ACEOF 12255/* confdefs.h. */ 12256_ACEOF 12257cat confdefs.h >>conftest.$ac_ext 12258cat >>conftest.$ac_ext <<_ACEOF 12259/* end confdefs.h. */ 12260 12261/* Override any gcc2 internal prototype to avoid an error. */ 12262#ifdef __cplusplus 12263extern "C" 12264#endif 12265/* We use char because int might match the return type of a gcc2 12266 builtin and then its argument prototype would still apply. */ 12267char dlopen (); 12268int 12269main () 12270{ 12271dlopen (); 12272 ; 12273 return 0; 12274} 12275_ACEOF 12276rm -f conftest.$ac_objext conftest$ac_exeext 12277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12278 (eval $ac_link) 2>conftest.er1 12279 ac_status=$? 12280 grep -v '^ *+' conftest.er1 >conftest.err 12281 rm -f conftest.er1 12282 cat conftest.err >&5 12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12284 (exit $ac_status); } && 12285 { ac_try='test -z "$ac_cxx_werror_flag" 12286 || test ! -s conftest.err' 12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12288 (eval $ac_try) 2>&5 12289 ac_status=$? 12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12291 (exit $ac_status); }; } && 12292 { ac_try='test -s conftest$ac_exeext' 12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12294 (eval $ac_try) 2>&5 12295 ac_status=$? 12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12297 (exit $ac_status); }; }; then 12298 ac_cv_lib_dl_dlopen=yes 12299else 12300 echo "$as_me: failed program was:" >&5 12301sed 's/^/| /' conftest.$ac_ext >&5 12302 12303ac_cv_lib_dl_dlopen=no 12304fi 12305rm -f conftest.err conftest.$ac_objext \ 12306 conftest$ac_exeext conftest.$ac_ext 12307LIBS=$ac_check_lib_save_LIBS 12308fi 12309echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12310echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12311if test $ac_cv_lib_dl_dlopen = yes; then 12312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12313else 12314 12315 lt_cv_dlopen="dyld" 12316 lt_cv_dlopen_libs= 12317 lt_cv_dlopen_self=yes 12318 12319fi 12320 12321 ;; 12322 12323 *) 12324 echo "$as_me:$LINENO: checking for shl_load" >&5 12325echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12326if test "${ac_cv_func_shl_load+set}" = set; then 12327 echo $ECHO_N "(cached) $ECHO_C" >&6 12328else 12329 cat >conftest.$ac_ext <<_ACEOF 12330/* confdefs.h. */ 12331_ACEOF 12332cat confdefs.h >>conftest.$ac_ext 12333cat >>conftest.$ac_ext <<_ACEOF 12334/* end confdefs.h. */ 12335/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12336 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12337#define shl_load innocuous_shl_load 12338 12339/* System header to define __stub macros and hopefully few prototypes, 12340 which can conflict with char shl_load (); below. 12341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12342 <limits.h> exists even on freestanding compilers. */ 12343 12344#ifdef __STDC__ 12345# include <limits.h> 12346#else 12347# include <assert.h> 12348#endif 12349 12350#undef shl_load 12351 12352/* Override any gcc2 internal prototype to avoid an error. */ 12353#ifdef __cplusplus 12354extern "C" 12355{ 12356#endif 12357/* We use char because int might match the return type of a gcc2 12358 builtin and then its argument prototype would still apply. */ 12359char shl_load (); 12360/* The GNU C library defines this for functions which it implements 12361 to always fail with ENOSYS. Some functions are actually named 12362 something starting with __ and the normal name is an alias. */ 12363#if defined (__stub_shl_load) || defined (__stub___shl_load) 12364choke me 12365#else 12366char (*f) () = shl_load; 12367#endif 12368#ifdef __cplusplus 12369} 12370#endif 12371 12372int 12373main () 12374{ 12375return f != shl_load; 12376 ; 12377 return 0; 12378} 12379_ACEOF 12380rm -f conftest.$ac_objext conftest$ac_exeext 12381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12382 (eval $ac_link) 2>conftest.er1 12383 ac_status=$? 12384 grep -v '^ *+' conftest.er1 >conftest.err 12385 rm -f conftest.er1 12386 cat conftest.err >&5 12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12388 (exit $ac_status); } && 12389 { ac_try='test -z "$ac_cxx_werror_flag" 12390 || test ! -s conftest.err' 12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12392 (eval $ac_try) 2>&5 12393 ac_status=$? 12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12395 (exit $ac_status); }; } && 12396 { ac_try='test -s conftest$ac_exeext' 12397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12398 (eval $ac_try) 2>&5 12399 ac_status=$? 12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12401 (exit $ac_status); }; }; then 12402 ac_cv_func_shl_load=yes 12403else 12404 echo "$as_me: failed program was:" >&5 12405sed 's/^/| /' conftest.$ac_ext >&5 12406 12407ac_cv_func_shl_load=no 12408fi 12409rm -f conftest.err conftest.$ac_objext \ 12410 conftest$ac_exeext conftest.$ac_ext 12411fi 12412echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12413echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12414if test $ac_cv_func_shl_load = yes; then 12415 lt_cv_dlopen="shl_load" 12416else 12417 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12418echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12419if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12420 echo $ECHO_N "(cached) $ECHO_C" >&6 12421else 12422 ac_check_lib_save_LIBS=$LIBS 12423LIBS="-ldld $LIBS" 12424cat >conftest.$ac_ext <<_ACEOF 12425/* confdefs.h. */ 12426_ACEOF 12427cat confdefs.h >>conftest.$ac_ext 12428cat >>conftest.$ac_ext <<_ACEOF 12429/* end confdefs.h. */ 12430 12431/* Override any gcc2 internal prototype to avoid an error. */ 12432#ifdef __cplusplus 12433extern "C" 12434#endif 12435/* We use char because int might match the return type of a gcc2 12436 builtin and then its argument prototype would still apply. */ 12437char shl_load (); 12438int 12439main () 12440{ 12441shl_load (); 12442 ; 12443 return 0; 12444} 12445_ACEOF 12446rm -f conftest.$ac_objext conftest$ac_exeext 12447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12448 (eval $ac_link) 2>conftest.er1 12449 ac_status=$? 12450 grep -v '^ *+' conftest.er1 >conftest.err 12451 rm -f conftest.er1 12452 cat conftest.err >&5 12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12454 (exit $ac_status); } && 12455 { ac_try='test -z "$ac_cxx_werror_flag" 12456 || test ! -s conftest.err' 12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12458 (eval $ac_try) 2>&5 12459 ac_status=$? 12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12461 (exit $ac_status); }; } && 12462 { ac_try='test -s conftest$ac_exeext' 12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12464 (eval $ac_try) 2>&5 12465 ac_status=$? 12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12467 (exit $ac_status); }; }; then 12468 ac_cv_lib_dld_shl_load=yes 12469else 12470 echo "$as_me: failed program was:" >&5 12471sed 's/^/| /' conftest.$ac_ext >&5 12472 12473ac_cv_lib_dld_shl_load=no 12474fi 12475rm -f conftest.err conftest.$ac_objext \ 12476 conftest$ac_exeext conftest.$ac_ext 12477LIBS=$ac_check_lib_save_LIBS 12478fi 12479echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12480echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12481if test $ac_cv_lib_dld_shl_load = yes; then 12482 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12483else 12484 echo "$as_me:$LINENO: checking for dlopen" >&5 12485echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12486if test "${ac_cv_func_dlopen+set}" = set; then 12487 echo $ECHO_N "(cached) $ECHO_C" >&6 12488else 12489 cat >conftest.$ac_ext <<_ACEOF 12490/* confdefs.h. */ 12491_ACEOF 12492cat confdefs.h >>conftest.$ac_ext 12493cat >>conftest.$ac_ext <<_ACEOF 12494/* end confdefs.h. */ 12495/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12496 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12497#define dlopen innocuous_dlopen 12498 12499/* System header to define __stub macros and hopefully few prototypes, 12500 which can conflict with char dlopen (); below. 12501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12502 <limits.h> exists even on freestanding compilers. */ 12503 12504#ifdef __STDC__ 12505# include <limits.h> 12506#else 12507# include <assert.h> 12508#endif 12509 12510#undef dlopen 12511 12512/* Override any gcc2 internal prototype to avoid an error. */ 12513#ifdef __cplusplus 12514extern "C" 12515{ 12516#endif 12517/* We use char because int might match the return type of a gcc2 12518 builtin and then its argument prototype would still apply. */ 12519char dlopen (); 12520/* The GNU C library defines this for functions which it implements 12521 to always fail with ENOSYS. Some functions are actually named 12522 something starting with __ and the normal name is an alias. */ 12523#if defined (__stub_dlopen) || defined (__stub___dlopen) 12524choke me 12525#else 12526char (*f) () = dlopen; 12527#endif 12528#ifdef __cplusplus 12529} 12530#endif 12531 12532int 12533main () 12534{ 12535return f != dlopen; 12536 ; 12537 return 0; 12538} 12539_ACEOF 12540rm -f conftest.$ac_objext conftest$ac_exeext 12541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12542 (eval $ac_link) 2>conftest.er1 12543 ac_status=$? 12544 grep -v '^ *+' conftest.er1 >conftest.err 12545 rm -f conftest.er1 12546 cat conftest.err >&5 12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12548 (exit $ac_status); } && 12549 { ac_try='test -z "$ac_cxx_werror_flag" 12550 || test ! -s conftest.err' 12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12552 (eval $ac_try) 2>&5 12553 ac_status=$? 12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12555 (exit $ac_status); }; } && 12556 { ac_try='test -s conftest$ac_exeext' 12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12558 (eval $ac_try) 2>&5 12559 ac_status=$? 12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12561 (exit $ac_status); }; }; then 12562 ac_cv_func_dlopen=yes 12563else 12564 echo "$as_me: failed program was:" >&5 12565sed 's/^/| /' conftest.$ac_ext >&5 12566 12567ac_cv_func_dlopen=no 12568fi 12569rm -f conftest.err conftest.$ac_objext \ 12570 conftest$ac_exeext conftest.$ac_ext 12571fi 12572echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12573echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12574if test $ac_cv_func_dlopen = yes; then 12575 lt_cv_dlopen="dlopen" 12576else 12577 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12578echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12579if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12580 echo $ECHO_N "(cached) $ECHO_C" >&6 12581else 12582 ac_check_lib_save_LIBS=$LIBS 12583LIBS="-ldl $LIBS" 12584cat >conftest.$ac_ext <<_ACEOF 12585/* confdefs.h. */ 12586_ACEOF 12587cat confdefs.h >>conftest.$ac_ext 12588cat >>conftest.$ac_ext <<_ACEOF 12589/* end confdefs.h. */ 12590 12591/* Override any gcc2 internal prototype to avoid an error. */ 12592#ifdef __cplusplus 12593extern "C" 12594#endif 12595/* We use char because int might match the return type of a gcc2 12596 builtin and then its argument prototype would still apply. */ 12597char dlopen (); 12598int 12599main () 12600{ 12601dlopen (); 12602 ; 12603 return 0; 12604} 12605_ACEOF 12606rm -f conftest.$ac_objext conftest$ac_exeext 12607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12608 (eval $ac_link) 2>conftest.er1 12609 ac_status=$? 12610 grep -v '^ *+' conftest.er1 >conftest.err 12611 rm -f conftest.er1 12612 cat conftest.err >&5 12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12614 (exit $ac_status); } && 12615 { ac_try='test -z "$ac_cxx_werror_flag" 12616 || test ! -s conftest.err' 12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12618 (eval $ac_try) 2>&5 12619 ac_status=$? 12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12621 (exit $ac_status); }; } && 12622 { ac_try='test -s conftest$ac_exeext' 12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12624 (eval $ac_try) 2>&5 12625 ac_status=$? 12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12627 (exit $ac_status); }; }; then 12628 ac_cv_lib_dl_dlopen=yes 12629else 12630 echo "$as_me: failed program was:" >&5 12631sed 's/^/| /' conftest.$ac_ext >&5 12632 12633ac_cv_lib_dl_dlopen=no 12634fi 12635rm -f conftest.err conftest.$ac_objext \ 12636 conftest$ac_exeext conftest.$ac_ext 12637LIBS=$ac_check_lib_save_LIBS 12638fi 12639echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12640echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12641if test $ac_cv_lib_dl_dlopen = yes; then 12642 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12643else 12644 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12645echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12646if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12647 echo $ECHO_N "(cached) $ECHO_C" >&6 12648else 12649 ac_check_lib_save_LIBS=$LIBS 12650LIBS="-lsvld $LIBS" 12651cat >conftest.$ac_ext <<_ACEOF 12652/* confdefs.h. */ 12653_ACEOF 12654cat confdefs.h >>conftest.$ac_ext 12655cat >>conftest.$ac_ext <<_ACEOF 12656/* end confdefs.h. */ 12657 12658/* Override any gcc2 internal prototype to avoid an error. */ 12659#ifdef __cplusplus 12660extern "C" 12661#endif 12662/* We use char because int might match the return type of a gcc2 12663 builtin and then its argument prototype would still apply. */ 12664char dlopen (); 12665int 12666main () 12667{ 12668dlopen (); 12669 ; 12670 return 0; 12671} 12672_ACEOF 12673rm -f conftest.$ac_objext conftest$ac_exeext 12674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12675 (eval $ac_link) 2>conftest.er1 12676 ac_status=$? 12677 grep -v '^ *+' conftest.er1 >conftest.err 12678 rm -f conftest.er1 12679 cat conftest.err >&5 12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12681 (exit $ac_status); } && 12682 { ac_try='test -z "$ac_cxx_werror_flag" 12683 || test ! -s conftest.err' 12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12685 (eval $ac_try) 2>&5 12686 ac_status=$? 12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12688 (exit $ac_status); }; } && 12689 { ac_try='test -s conftest$ac_exeext' 12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12691 (eval $ac_try) 2>&5 12692 ac_status=$? 12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12694 (exit $ac_status); }; }; then 12695 ac_cv_lib_svld_dlopen=yes 12696else 12697 echo "$as_me: failed program was:" >&5 12698sed 's/^/| /' conftest.$ac_ext >&5 12699 12700ac_cv_lib_svld_dlopen=no 12701fi 12702rm -f conftest.err conftest.$ac_objext \ 12703 conftest$ac_exeext conftest.$ac_ext 12704LIBS=$ac_check_lib_save_LIBS 12705fi 12706echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12707echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12708if test $ac_cv_lib_svld_dlopen = yes; then 12709 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12710else 12711 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12712echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12713if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12714 echo $ECHO_N "(cached) $ECHO_C" >&6 12715else 12716 ac_check_lib_save_LIBS=$LIBS 12717LIBS="-ldld $LIBS" 12718cat >conftest.$ac_ext <<_ACEOF 12719/* confdefs.h. */ 12720_ACEOF 12721cat confdefs.h >>conftest.$ac_ext 12722cat >>conftest.$ac_ext <<_ACEOF 12723/* end confdefs.h. */ 12724 12725/* Override any gcc2 internal prototype to avoid an error. */ 12726#ifdef __cplusplus 12727extern "C" 12728#endif 12729/* We use char because int might match the return type of a gcc2 12730 builtin and then its argument prototype would still apply. */ 12731char dld_link (); 12732int 12733main () 12734{ 12735dld_link (); 12736 ; 12737 return 0; 12738} 12739_ACEOF 12740rm -f conftest.$ac_objext conftest$ac_exeext 12741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12742 (eval $ac_link) 2>conftest.er1 12743 ac_status=$? 12744 grep -v '^ *+' conftest.er1 >conftest.err 12745 rm -f conftest.er1 12746 cat conftest.err >&5 12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12748 (exit $ac_status); } && 12749 { ac_try='test -z "$ac_cxx_werror_flag" 12750 || test ! -s conftest.err' 12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12752 (eval $ac_try) 2>&5 12753 ac_status=$? 12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12755 (exit $ac_status); }; } && 12756 { ac_try='test -s conftest$ac_exeext' 12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12758 (eval $ac_try) 2>&5 12759 ac_status=$? 12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12761 (exit $ac_status); }; }; then 12762 ac_cv_lib_dld_dld_link=yes 12763else 12764 echo "$as_me: failed program was:" >&5 12765sed 's/^/| /' conftest.$ac_ext >&5 12766 12767ac_cv_lib_dld_dld_link=no 12768fi 12769rm -f conftest.err conftest.$ac_objext \ 12770 conftest$ac_exeext conftest.$ac_ext 12771LIBS=$ac_check_lib_save_LIBS 12772fi 12773echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12774echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12775if test $ac_cv_lib_dld_dld_link = yes; then 12776 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12777fi 12778 12779 12780fi 12781 12782 12783fi 12784 12785 12786fi 12787 12788 12789fi 12790 12791 12792fi 12793 12794 ;; 12795 esac 12796 12797 if test "x$lt_cv_dlopen" != xno; then 12798 enable_dlopen=yes 12799 else 12800 enable_dlopen=no 12801 fi 12802 12803 case $lt_cv_dlopen in 12804 dlopen) 12805 save_CPPFLAGS="$CPPFLAGS" 12806 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12807 12808 save_LDFLAGS="$LDFLAGS" 12809 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12810 12811 save_LIBS="$LIBS" 12812 LIBS="$lt_cv_dlopen_libs $LIBS" 12813 12814 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12815echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12816if test "${lt_cv_dlopen_self+set}" = set; then 12817 echo $ECHO_N "(cached) $ECHO_C" >&6 12818else 12819 if test "$cross_compiling" = yes; then : 12820 lt_cv_dlopen_self=cross 12821else 12822 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12823 lt_status=$lt_dlunknown 12824 cat > conftest.$ac_ext <<EOF 12825#line 12825 "configure" 12826#include "confdefs.h" 12827 12828#if HAVE_DLFCN_H 12829#include <dlfcn.h> 12830#endif 12831 12832#include <stdio.h> 12833 12834#ifdef RTLD_GLOBAL 12835# define LT_DLGLOBAL RTLD_GLOBAL 12836#else 12837# ifdef DL_GLOBAL 12838# define LT_DLGLOBAL DL_GLOBAL 12839# else 12840# define LT_DLGLOBAL 0 12841# endif 12842#endif 12843 12844/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12845 find out it does not work in some platform. */ 12846#ifndef LT_DLLAZY_OR_NOW 12847# ifdef RTLD_LAZY 12848# define LT_DLLAZY_OR_NOW RTLD_LAZY 12849# else 12850# ifdef DL_LAZY 12851# define LT_DLLAZY_OR_NOW DL_LAZY 12852# else 12853# ifdef RTLD_NOW 12854# define LT_DLLAZY_OR_NOW RTLD_NOW 12855# else 12856# ifdef DL_NOW 12857# define LT_DLLAZY_OR_NOW DL_NOW 12858# else 12859# define LT_DLLAZY_OR_NOW 0 12860# endif 12861# endif 12862# endif 12863# endif 12864#endif 12865 12866#ifdef __cplusplus 12867extern "C" void exit (int); 12868#endif 12869 12870void fnord() { int i=42;} 12871int main () 12872{ 12873 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12874 int status = $lt_dlunknown; 12875 12876 if (self) 12877 { 12878 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12879 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12880 /* dlclose (self); */ 12881 } 12882 12883 exit (status); 12884} 12885EOF 12886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12887 (eval $ac_link) 2>&5 12888 ac_status=$? 12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12890 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12891 (./conftest; exit; ) >&5 2>/dev/null 12892 lt_status=$? 12893 case x$lt_status in 12894 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12895 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12896 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12897 esac 12898 else : 12899 # compilation failed 12900 lt_cv_dlopen_self=no 12901 fi 12902fi 12903rm -fr conftest* 12904 12905 12906fi 12907echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12908echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12909 12910 if test "x$lt_cv_dlopen_self" = xyes; then 12911 LDFLAGS="$LDFLAGS $link_static_flag" 12912 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12913echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12914if test "${lt_cv_dlopen_self_static+set}" = set; then 12915 echo $ECHO_N "(cached) $ECHO_C" >&6 12916else 12917 if test "$cross_compiling" = yes; then : 12918 lt_cv_dlopen_self_static=cross 12919else 12920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12921 lt_status=$lt_dlunknown 12922 cat > conftest.$ac_ext <<EOF 12923#line 12923 "configure" 12924#include "confdefs.h" 12925 12926#if HAVE_DLFCN_H 12927#include <dlfcn.h> 12928#endif 12929 12930#include <stdio.h> 12931 12932#ifdef RTLD_GLOBAL 12933# define LT_DLGLOBAL RTLD_GLOBAL 12934#else 12935# ifdef DL_GLOBAL 12936# define LT_DLGLOBAL DL_GLOBAL 12937# else 12938# define LT_DLGLOBAL 0 12939# endif 12940#endif 12941 12942/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12943 find out it does not work in some platform. */ 12944#ifndef LT_DLLAZY_OR_NOW 12945# ifdef RTLD_LAZY 12946# define LT_DLLAZY_OR_NOW RTLD_LAZY 12947# else 12948# ifdef DL_LAZY 12949# define LT_DLLAZY_OR_NOW DL_LAZY 12950# else 12951# ifdef RTLD_NOW 12952# define LT_DLLAZY_OR_NOW RTLD_NOW 12953# else 12954# ifdef DL_NOW 12955# define LT_DLLAZY_OR_NOW DL_NOW 12956# else 12957# define LT_DLLAZY_OR_NOW 0 12958# endif 12959# endif 12960# endif 12961# endif 12962#endif 12963 12964#ifdef __cplusplus 12965extern "C" void exit (int); 12966#endif 12967 12968void fnord() { int i=42;} 12969int main () 12970{ 12971 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12972 int status = $lt_dlunknown; 12973 12974 if (self) 12975 { 12976 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12977 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12978 /* dlclose (self); */ 12979 } 12980 12981 exit (status); 12982} 12983EOF 12984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12985 (eval $ac_link) 2>&5 12986 ac_status=$? 12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12988 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12989 (./conftest; exit; ) >&5 2>/dev/null 12990 lt_status=$? 12991 case x$lt_status in 12992 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12993 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12994 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12995 esac 12996 else : 12997 # compilation failed 12998 lt_cv_dlopen_self_static=no 12999 fi 13000fi 13001rm -fr conftest* 13002 13003 13004fi 13005echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 13006echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 13007 fi 13008 13009 CPPFLAGS="$save_CPPFLAGS" 13010 LDFLAGS="$save_LDFLAGS" 13011 LIBS="$save_LIBS" 13012 ;; 13013 esac 13014 13015 case $lt_cv_dlopen_self in 13016 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13017 *) enable_dlopen_self=unknown ;; 13018 esac 13019 13020 case $lt_cv_dlopen_self_static in 13021 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13022 *) enable_dlopen_self_static=unknown ;; 13023 esac 13024fi 13025 13026 13027# The else clause should only fire when bootstrapping the 13028# libtool distribution, otherwise you forgot to ship ltmain.sh 13029# with your package, and you will get complaints that there are 13030# no rules to generate ltmain.sh. 13031if test -f "$ltmain"; then 13032 # See if we are running on zsh, and set the options which allow our commands through 13033 # without removal of \ escapes. 13034 if test -n "${ZSH_VERSION+set}" ; then 13035 setopt NO_GLOB_SUBST 13036 fi 13037 # Now quote all the things that may contain metacharacters while being 13038 # careful not to overquote the AC_SUBSTed values. We take copies of the 13039 # variables and quote the copies for generation of the libtool script. 13040 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13041 SED SHELL STRIP \ 13042 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13043 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13044 deplibs_check_method reload_flag reload_cmds need_locks \ 13045 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13046 lt_cv_sys_global_symbol_to_c_name_address \ 13047 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13048 old_postinstall_cmds old_postuninstall_cmds \ 13049 compiler_CXX \ 13050 CC_CXX \ 13051 LD_CXX \ 13052 lt_prog_compiler_wl_CXX \ 13053 lt_prog_compiler_pic_CXX \ 13054 lt_prog_compiler_static_CXX \ 13055 lt_prog_compiler_no_builtin_flag_CXX \ 13056 export_dynamic_flag_spec_CXX \ 13057 thread_safe_flag_spec_CXX \ 13058 whole_archive_flag_spec_CXX \ 13059 enable_shared_with_static_runtimes_CXX \ 13060 old_archive_cmds_CXX \ 13061 old_archive_from_new_cmds_CXX \ 13062 predep_objects_CXX \ 13063 postdep_objects_CXX \ 13064 predeps_CXX \ 13065 postdeps_CXX \ 13066 compiler_lib_search_path_CXX \ 13067 archive_cmds_CXX \ 13068 archive_expsym_cmds_CXX \ 13069 postinstall_cmds_CXX \ 13070 postuninstall_cmds_CXX \ 13071 old_archive_from_expsyms_cmds_CXX \ 13072 allow_undefined_flag_CXX \ 13073 no_undefined_flag_CXX \ 13074 export_symbols_cmds_CXX \ 13075 hardcode_libdir_flag_spec_CXX \ 13076 hardcode_libdir_flag_spec_ld_CXX \ 13077 hardcode_libdir_separator_CXX \ 13078 hardcode_automatic_CXX \ 13079 module_cmds_CXX \ 13080 module_expsym_cmds_CXX \ 13081 lt_cv_prog_compiler_c_o_CXX \ 13082 exclude_expsyms_CXX \ 13083 include_expsyms_CXX; do 13084 13085 case $var in 13086 old_archive_cmds_CXX | \ 13087 old_archive_from_new_cmds_CXX | \ 13088 archive_cmds_CXX | \ 13089 archive_expsym_cmds_CXX | \ 13090 module_cmds_CXX | \ 13091 module_expsym_cmds_CXX | \ 13092 old_archive_from_expsyms_cmds_CXX | \ 13093 export_symbols_cmds_CXX | \ 13094 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13095 postinstall_cmds | postuninstall_cmds | \ 13096 old_postinstall_cmds | old_postuninstall_cmds | \ 13097 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13098 # Double-quote double-evaled strings. 13099 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13100 ;; 13101 *) 13102 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13103 ;; 13104 esac 13105 done 13106 13107 case $lt_echo in 13108 *'\$0 --fallback-echo"') 13109 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13110 ;; 13111 esac 13112 13113cfgfile="$ofile" 13114 13115 cat <<__EOF__ >> "$cfgfile" 13116# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13117 13118# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13119 13120# Shell to use when invoking shell scripts. 13121SHELL=$lt_SHELL 13122 13123# Whether or not to build shared libraries. 13124build_libtool_libs=$enable_shared 13125 13126# Whether or not to build static libraries. 13127build_old_libs=$enable_static 13128 13129# Whether or not to add -lc for building shared libraries. 13130build_libtool_need_lc=$archive_cmds_need_lc_CXX 13131 13132# Whether or not to disallow shared libs when runtime libs are static 13133allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13134 13135# Whether or not to optimize for fast installation. 13136fast_install=$enable_fast_install 13137 13138# The host system. 13139host_alias=$host_alias 13140host=$host 13141host_os=$host_os 13142 13143# The build system. 13144build_alias=$build_alias 13145build=$build 13146build_os=$build_os 13147 13148# An echo program that does not interpret backslashes. 13149echo=$lt_echo 13150 13151# The archiver. 13152AR=$lt_AR 13153AR_FLAGS=$lt_AR_FLAGS 13154 13155# A C compiler. 13156LTCC=$lt_LTCC 13157 13158# A language-specific compiler. 13159CC=$lt_compiler_CXX 13160 13161# Is the compiler the GNU C compiler? 13162with_gcc=$GCC_CXX 13163 13164# An ERE matcher. 13165EGREP=$lt_EGREP 13166 13167# The linker used to build libraries. 13168LD=$lt_LD_CXX 13169 13170# Whether we need hard or soft links. 13171LN_S=$lt_LN_S 13172 13173# A BSD-compatible nm program. 13174NM=$lt_NM 13175 13176# A symbol stripping program 13177STRIP=$lt_STRIP 13178 13179# Used to examine libraries when file_magic_cmd begins "file" 13180MAGIC_CMD=$MAGIC_CMD 13181 13182# Used on cygwin: DLL creation program. 13183DLLTOOL="$DLLTOOL" 13184 13185# Used on cygwin: object dumper. 13186OBJDUMP="$OBJDUMP" 13187 13188# Used on cygwin: assembler. 13189AS="$AS" 13190 13191# The name of the directory that contains temporary libtool files. 13192objdir=$objdir 13193 13194# How to create reloadable object files. 13195reload_flag=$lt_reload_flag 13196reload_cmds=$lt_reload_cmds 13197 13198# How to pass a linker flag through the compiler. 13199wl=$lt_lt_prog_compiler_wl_CXX 13200 13201# Object file suffix (normally "o"). 13202objext="$ac_objext" 13203 13204# Old archive suffix (normally "a"). 13205libext="$libext" 13206 13207# Shared library suffix (normally ".so"). 13208shrext_cmds='$shrext_cmds' 13209 13210# Executable file suffix (normally ""). 13211exeext="$exeext" 13212 13213# Additional compiler flags for building library objects. 13214pic_flag=$lt_lt_prog_compiler_pic_CXX 13215pic_mode=$pic_mode 13216 13217# What is the maximum length of a command? 13218max_cmd_len=$lt_cv_sys_max_cmd_len 13219 13220# Does compiler simultaneously support -c and -o options? 13221compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13222 13223# Must we lock files when doing compilation? 13224need_locks=$lt_need_locks 13225 13226# Do we need the lib prefix for modules? 13227need_lib_prefix=$need_lib_prefix 13228 13229# Do we need a version for libraries? 13230need_version=$need_version 13231 13232# Whether dlopen is supported. 13233dlopen_support=$enable_dlopen 13234 13235# Whether dlopen of programs is supported. 13236dlopen_self=$enable_dlopen_self 13237 13238# Whether dlopen of statically linked programs is supported. 13239dlopen_self_static=$enable_dlopen_self_static 13240 13241# Compiler flag to prevent dynamic linking. 13242link_static_flag=$lt_lt_prog_compiler_static_CXX 13243 13244# Compiler flag to turn off builtin functions. 13245no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13246 13247# Compiler flag to allow reflexive dlopens. 13248export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13249 13250# Compiler flag to generate shared objects directly from archives. 13251whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13252 13253# Compiler flag to generate thread-safe objects. 13254thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13255 13256# Library versioning type. 13257version_type=$version_type 13258 13259# Format of library name prefix. 13260libname_spec=$lt_libname_spec 13261 13262# List of archive names. First name is the real one, the rest are links. 13263# The last name is the one that the linker finds with -lNAME. 13264library_names_spec=$lt_library_names_spec 13265 13266# The coded name of the library, if different from the real name. 13267soname_spec=$lt_soname_spec 13268 13269# Commands used to build and install an old-style archive. 13270RANLIB=$lt_RANLIB 13271old_archive_cmds=$lt_old_archive_cmds_CXX 13272old_postinstall_cmds=$lt_old_postinstall_cmds 13273old_postuninstall_cmds=$lt_old_postuninstall_cmds 13274 13275# Create an old-style archive from a shared archive. 13276old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13277 13278# Create a temporary old-style archive to link instead of a shared archive. 13279old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13280 13281# Commands used to build and install a shared archive. 13282archive_cmds=$lt_archive_cmds_CXX 13283archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13284postinstall_cmds=$lt_postinstall_cmds 13285postuninstall_cmds=$lt_postuninstall_cmds 13286 13287# Commands used to build a loadable module (assumed same as above if empty) 13288module_cmds=$lt_module_cmds_CXX 13289module_expsym_cmds=$lt_module_expsym_cmds_CXX 13290 13291# Commands to strip libraries. 13292old_striplib=$lt_old_striplib 13293striplib=$lt_striplib 13294 13295# Dependencies to place before the objects being linked to create a 13296# shared library. 13297predep_objects=$lt_predep_objects_CXX 13298 13299# Dependencies to place after the objects being linked to create a 13300# shared library. 13301postdep_objects=$lt_postdep_objects_CXX 13302 13303# Dependencies to place before the objects being linked to create a 13304# shared library. 13305predeps=$lt_predeps_CXX 13306 13307# Dependencies to place after the objects being linked to create a 13308# shared library. 13309postdeps=$lt_postdeps_CXX 13310 13311# The library search path used internally by the compiler when linking 13312# a shared library. 13313compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13314 13315# Method to check whether dependent libraries are shared objects. 13316deplibs_check_method=$lt_deplibs_check_method 13317 13318# Command to use when deplibs_check_method == file_magic. 13319file_magic_cmd=$lt_file_magic_cmd 13320 13321# Flag that allows shared libraries with undefined symbols to be built. 13322allow_undefined_flag=$lt_allow_undefined_flag_CXX 13323 13324# Flag that forces no undefined symbols. 13325no_undefined_flag=$lt_no_undefined_flag_CXX 13326 13327# Commands used to finish a libtool library installation in a directory. 13328finish_cmds=$lt_finish_cmds 13329 13330# Same as above, but a single script fragment to be evaled but not shown. 13331finish_eval=$lt_finish_eval 13332 13333# Take the output of nm and produce a listing of raw symbols and C names. 13334global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13335 13336# Transform the output of nm in a proper C declaration 13337global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13338 13339# Transform the output of nm in a C name address pair 13340global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13341 13342# This is the shared library runtime path variable. 13343runpath_var=$runpath_var 13344 13345# This is the shared library path variable. 13346shlibpath_var=$shlibpath_var 13347 13348# Is shlibpath searched before the hard-coded library search path? 13349shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13350 13351# How to hardcode a shared library path into an executable. 13352hardcode_action=$hardcode_action_CXX 13353 13354# Whether we should hardcode library paths into libraries. 13355hardcode_into_libs=$hardcode_into_libs 13356 13357# Flag to hardcode \$libdir into a binary during linking. 13358# This must work even if \$libdir does not exist. 13359hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13360 13361# If ld is used when linking, flag to hardcode \$libdir into 13362# a binary during linking. This must work even if \$libdir does 13363# not exist. 13364hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13365 13366# Whether we need a single -rpath flag with a separated argument. 13367hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13368 13369# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13370# resulting binary. 13371hardcode_direct=$hardcode_direct_CXX 13372 13373# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13374# resulting binary. 13375hardcode_minus_L=$hardcode_minus_L_CXX 13376 13377# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13378# the resulting binary. 13379hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13380 13381# Set to yes if building a shared library automatically hardcodes DIR into the library 13382# and all subsequent libraries and executables linked against it. 13383hardcode_automatic=$hardcode_automatic_CXX 13384 13385# Variables whose values should be saved in libtool wrapper scripts and 13386# restored at relink time. 13387variables_saved_for_relink="$variables_saved_for_relink" 13388 13389# Whether libtool must link a program against all its dependency libraries. 13390link_all_deplibs=$link_all_deplibs_CXX 13391 13392# Compile-time system search path for libraries 13393sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13394 13395# Run-time system search path for libraries 13396sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13397 13398# Fix the shell variable \$srcfile for the compiler. 13399fix_srcfile_path="$fix_srcfile_path_CXX" 13400 13401# Set to yes if exported symbols are required. 13402always_export_symbols=$always_export_symbols_CXX 13403 13404# The commands to list exported symbols. 13405export_symbols_cmds=$lt_export_symbols_cmds_CXX 13406 13407# The commands to extract the exported symbol list from a shared archive. 13408extract_expsyms_cmds=$lt_extract_expsyms_cmds 13409 13410# Symbols that should not be listed in the preloaded symbols. 13411exclude_expsyms=$lt_exclude_expsyms_CXX 13412 13413# Symbols that must always be exported. 13414include_expsyms=$lt_include_expsyms_CXX 13415 13416# ### END LIBTOOL TAG CONFIG: $tagname 13417 13418__EOF__ 13419 13420 13421else 13422 # If there is no Makefile yet, we rely on a make rule to execute 13423 # `config.status --recheck' to rerun these tests and create the 13424 # libtool script then. 13425 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13426 if test -f "$ltmain_in"; then 13427 test -f Makefile && make "$ltmain" 13428 fi 13429fi 13430 13431 13432ac_ext=c 13433ac_cpp='$CPP $CPPFLAGS' 13434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13436ac_compiler_gnu=$ac_cv_c_compiler_gnu 13437 13438CC=$lt_save_CC 13439LDCXX=$LD 13440LD=$lt_save_LD 13441GCC=$lt_save_GCC 13442with_gnu_ldcxx=$with_gnu_ld 13443with_gnu_ld=$lt_save_with_gnu_ld 13444lt_cv_path_LDCXX=$lt_cv_path_LD 13445lt_cv_path_LD=$lt_save_path_LD 13446lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13447lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13448 13449 else 13450 tagname="" 13451 fi 13452 ;; 13453 13454 F77) 13455 if test -n "$F77" && test "X$F77" != "Xno"; then 13456 13457ac_ext=f 13458ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13459ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13460ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13461 13462 13463archive_cmds_need_lc_F77=no 13464allow_undefined_flag_F77= 13465always_export_symbols_F77=no 13466archive_expsym_cmds_F77= 13467export_dynamic_flag_spec_F77= 13468hardcode_direct_F77=no 13469hardcode_libdir_flag_spec_F77= 13470hardcode_libdir_flag_spec_ld_F77= 13471hardcode_libdir_separator_F77= 13472hardcode_minus_L_F77=no 13473hardcode_automatic_F77=no 13474module_cmds_F77= 13475module_expsym_cmds_F77= 13476link_all_deplibs_F77=unknown 13477old_archive_cmds_F77=$old_archive_cmds 13478no_undefined_flag_F77= 13479whole_archive_flag_spec_F77= 13480enable_shared_with_static_runtimes_F77=no 13481 13482# Source file extension for f77 test sources. 13483ac_ext=f 13484 13485# Object file extension for compiled f77 test sources. 13486objext=o 13487objext_F77=$objext 13488 13489# Code to be used in simple compile tests 13490lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13491 13492# Code to be used in simple link tests 13493lt_simple_link_test_code=" program t\n end\n" 13494 13495# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13496 13497# If no C compiler was specified, use CC. 13498LTCC=${LTCC-"$CC"} 13499 13500# Allow CC to be a program name with arguments. 13501compiler=$CC 13502 13503 13504# save warnings/boilerplate of simple test code 13505ac_outfile=conftest.$ac_objext 13506printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13507eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13508_lt_compiler_boilerplate=`cat conftest.err` 13509$rm conftest* 13510 13511ac_outfile=conftest.$ac_objext 13512printf "$lt_simple_link_test_code" >conftest.$ac_ext 13513eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13514_lt_linker_boilerplate=`cat conftest.err` 13515$rm conftest* 13516 13517 13518# Allow CC to be a program name with arguments. 13519lt_save_CC="$CC" 13520CC=${F77-"f77"} 13521compiler=$CC 13522compiler_F77=$CC 13523for cc_temp in $compiler""; do 13524 case $cc_temp in 13525 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13526 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13527 \-*) ;; 13528 *) break;; 13529 esac 13530done 13531cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13532 13533 13534echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13535echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13536echo "$as_me:$LINENO: result: $can_build_shared" >&5 13537echo "${ECHO_T}$can_build_shared" >&6 13538 13539echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13540echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13541test "$can_build_shared" = "no" && enable_shared=no 13542 13543# On AIX, shared libraries and static libraries use the same namespace, and 13544# are all built from PIC. 13545case $host_os in 13546aix3*) 13547 test "$enable_shared" = yes && enable_static=no 13548 if test -n "$RANLIB"; then 13549 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13550 postinstall_cmds='$RANLIB $lib' 13551 fi 13552 ;; 13553aix4* | aix5*) 13554 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13555 test "$enable_shared" = yes && enable_static=no 13556 fi 13557 ;; 13558esac 13559echo "$as_me:$LINENO: result: $enable_shared" >&5 13560echo "${ECHO_T}$enable_shared" >&6 13561 13562echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13563echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13564# Make sure either enable_shared or enable_static is yes. 13565test "$enable_shared" = yes || enable_static=yes 13566echo "$as_me:$LINENO: result: $enable_static" >&5 13567echo "${ECHO_T}$enable_static" >&6 13568 13569test "$ld_shlibs_F77" = no && can_build_shared=no 13570 13571GCC_F77="$G77" 13572LD_F77="$LD" 13573 13574lt_prog_compiler_wl_F77= 13575lt_prog_compiler_pic_F77= 13576lt_prog_compiler_static_F77= 13577 13578echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13579echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13580 13581 if test "$GCC" = yes; then 13582 lt_prog_compiler_wl_F77='-Wl,' 13583 lt_prog_compiler_static_F77='-static' 13584 13585 case $host_os in 13586 aix*) 13587 # All AIX code is PIC. 13588 if test "$host_cpu" = ia64; then 13589 # AIX 5 now supports IA64 processor 13590 lt_prog_compiler_static_F77='-Bstatic' 13591 fi 13592 ;; 13593 13594 amigaos*) 13595 # FIXME: we need at least 68020 code to build shared libraries, but 13596 # adding the `-m68020' flag to GCC prevents building anything better, 13597 # like `-m68040'. 13598 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13599 ;; 13600 13601 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13602 # PIC is the default for these OSes. 13603 ;; 13604 13605 mingw* | pw32* | os2*) 13606 # This hack is so that the source file can tell whether it is being 13607 # built for inclusion in a dll (and should export symbols for example). 13608 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13609 ;; 13610 13611 darwin* | rhapsody*) 13612 # PIC is the default on this platform 13613 # Common symbols not allowed in MH_DYLIB files 13614 lt_prog_compiler_pic_F77='-fno-common' 13615 ;; 13616 13617 msdosdjgpp*) 13618 # Just because we use GCC doesn't mean we suddenly get shared libraries 13619 # on systems that don't support them. 13620 lt_prog_compiler_can_build_shared_F77=no 13621 enable_shared=no 13622 ;; 13623 13624 sysv4*MP*) 13625 if test -d /usr/nec; then 13626 lt_prog_compiler_pic_F77=-Kconform_pic 13627 fi 13628 ;; 13629 13630 hpux*) 13631 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13632 # not for PA HP-UX. 13633 case $host_cpu in 13634 hppa*64*|ia64*) 13635 # +Z the default 13636 ;; 13637 *) 13638 lt_prog_compiler_pic_F77='-fPIC' 13639 ;; 13640 esac 13641 ;; 13642 13643 *) 13644 lt_prog_compiler_pic_F77='-fPIC' 13645 ;; 13646 esac 13647 else 13648 # PORTME Check for flag to pass linker flags through the system compiler. 13649 case $host_os in 13650 aix*) 13651 lt_prog_compiler_wl_F77='-Wl,' 13652 if test "$host_cpu" = ia64; then 13653 # AIX 5 now supports IA64 processor 13654 lt_prog_compiler_static_F77='-Bstatic' 13655 else 13656 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13657 fi 13658 ;; 13659 darwin*) 13660 # PIC is the default on this platform 13661 # Common symbols not allowed in MH_DYLIB files 13662 case $cc_basename in 13663 xlc*) 13664 lt_prog_compiler_pic_F77='-qnocommon' 13665 lt_prog_compiler_wl_F77='-Wl,' 13666 ;; 13667 esac 13668 ;; 13669 13670 mingw* | pw32* | os2*) 13671 # This hack is so that the source file can tell whether it is being 13672 # built for inclusion in a dll (and should export symbols for example). 13673 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13674 ;; 13675 13676 hpux9* | hpux10* | hpux11*) 13677 lt_prog_compiler_wl_F77='-Wl,' 13678 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13679 # not for PA HP-UX. 13680 case $host_cpu in 13681 hppa*64*|ia64*) 13682 # +Z the default 13683 ;; 13684 *) 13685 lt_prog_compiler_pic_F77='+Z' 13686 ;; 13687 esac 13688 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13689 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13690 ;; 13691 13692 irix5* | irix6* | nonstopux*) 13693 lt_prog_compiler_wl_F77='-Wl,' 13694 # PIC (with -KPIC) is the default. 13695 lt_prog_compiler_static_F77='-non_shared' 13696 ;; 13697 13698 newsos6) 13699 lt_prog_compiler_pic_F77='-KPIC' 13700 lt_prog_compiler_static_F77='-Bstatic' 13701 ;; 13702 13703 linux*) 13704 case $cc_basename in 13705 icc* | ecc*) 13706 lt_prog_compiler_wl_F77='-Wl,' 13707 lt_prog_compiler_pic_F77='-KPIC' 13708 lt_prog_compiler_static_F77='-static' 13709 ;; 13710 pgcc* | pgf77* | pgf90* | pgf95*) 13711 # Portland Group compilers (*not* the Pentium gcc compiler, 13712 # which looks to be a dead project) 13713 lt_prog_compiler_wl_F77='-Wl,' 13714 lt_prog_compiler_pic_F77='-fpic' 13715 lt_prog_compiler_static_F77='-Bstatic' 13716 ;; 13717 ccc*) 13718 lt_prog_compiler_wl_F77='-Wl,' 13719 # All Alpha code is PIC. 13720 lt_prog_compiler_static_F77='-non_shared' 13721 ;; 13722 esac 13723 ;; 13724 13725 osf3* | osf4* | osf5*) 13726 lt_prog_compiler_wl_F77='-Wl,' 13727 # All OSF/1 code is PIC. 13728 lt_prog_compiler_static_F77='-non_shared' 13729 ;; 13730 13731 sco3.2v5*) 13732 lt_prog_compiler_pic_F77='-Kpic' 13733 lt_prog_compiler_static_F77='-dn' 13734 ;; 13735 13736 solaris*) 13737 lt_prog_compiler_pic_F77='-KPIC' 13738 lt_prog_compiler_static_F77='-Bstatic' 13739 case $cc_basename in 13740 f77* | f90* | f95*) 13741 lt_prog_compiler_wl_F77='-Qoption ld ';; 13742 *) 13743 lt_prog_compiler_wl_F77='-Wl,';; 13744 esac 13745 ;; 13746 13747 sunos4*) 13748 lt_prog_compiler_wl_F77='-Qoption ld ' 13749 lt_prog_compiler_pic_F77='-PIC' 13750 lt_prog_compiler_static_F77='-Bstatic' 13751 ;; 13752 13753 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13754 lt_prog_compiler_wl_F77='-Wl,' 13755 lt_prog_compiler_pic_F77='-KPIC' 13756 lt_prog_compiler_static_F77='-Bstatic' 13757 ;; 13758 13759 sysv4*MP*) 13760 if test -d /usr/nec ;then 13761 lt_prog_compiler_pic_F77='-Kconform_pic' 13762 lt_prog_compiler_static_F77='-Bstatic' 13763 fi 13764 ;; 13765 13766 unicos*) 13767 lt_prog_compiler_wl_F77='-Wl,' 13768 lt_prog_compiler_can_build_shared_F77=no 13769 ;; 13770 13771 uts4*) 13772 lt_prog_compiler_pic_F77='-pic' 13773 lt_prog_compiler_static_F77='-Bstatic' 13774 ;; 13775 13776 *) 13777 lt_prog_compiler_can_build_shared_F77=no 13778 ;; 13779 esac 13780 fi 13781 13782echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13783echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13784 13785# 13786# Check to make sure the PIC flag actually works. 13787# 13788if test -n "$lt_prog_compiler_pic_F77"; then 13789 13790echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13791echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13792if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13793 echo $ECHO_N "(cached) $ECHO_C" >&6 13794else 13795 lt_prog_compiler_pic_works_F77=no 13796 ac_outfile=conftest.$ac_objext 13797 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13798 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13799 # Insert the option either (1) after the last *FLAGS variable, or 13800 # (2) before a word containing "conftest.", or (3) at the end. 13801 # Note that $ac_compile itself does not contain backslashes and begins 13802 # with a dollar sign (not a hyphen), so the echo should work correctly. 13803 # The option is referenced via a variable to avoid confusing sed. 13804 lt_compile=`echo "$ac_compile" | $SED \ 13805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13807 -e 's:$: $lt_compiler_flag:'` 13808 (eval echo "\"\$as_me:13808: $lt_compile\"" >&5) 13809 (eval "$lt_compile" 2>conftest.err) 13810 ac_status=$? 13811 cat conftest.err >&5 13812 echo "$as_me:13812: \$? = $ac_status" >&5 13813 if (exit $ac_status) && test -s "$ac_outfile"; then 13814 # The compiler can only warn and ignore the option if not recognized 13815 # So say no if there are warnings other than the usual output. 13816 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 13817 $SED '/^$/d' conftest.err >conftest.er2 13818 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 13819 lt_prog_compiler_pic_works_F77=yes 13820 fi 13821 fi 13822 $rm conftest* 13823 13824fi 13825echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13826echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13827 13828if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13829 case $lt_prog_compiler_pic_F77 in 13830 "" | " "*) ;; 13831 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13832 esac 13833else 13834 lt_prog_compiler_pic_F77= 13835 lt_prog_compiler_can_build_shared_F77=no 13836fi 13837 13838fi 13839case $host_os in 13840 # For platforms which do not support PIC, -DPIC is meaningless: 13841 *djgpp*) 13842 lt_prog_compiler_pic_F77= 13843 ;; 13844 *) 13845 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13846 ;; 13847esac 13848 13849echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13850echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13851if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13852 echo $ECHO_N "(cached) $ECHO_C" >&6 13853else 13854 lt_cv_prog_compiler_c_o_F77=no 13855 $rm -r conftest 2>/dev/null 13856 mkdir conftest 13857 cd conftest 13858 mkdir out 13859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13860 13861 lt_compiler_flag="-o out/conftest2.$ac_objext" 13862 # Insert the option either (1) after the last *FLAGS variable, or 13863 # (2) before a word containing "conftest.", or (3) at the end. 13864 # Note that $ac_compile itself does not contain backslashes and begins 13865 # with a dollar sign (not a hyphen), so the echo should work correctly. 13866 lt_compile=`echo "$ac_compile" | $SED \ 13867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13869 -e 's:$: $lt_compiler_flag:'` 13870 (eval echo "\"\$as_me:13870: $lt_compile\"" >&5) 13871 (eval "$lt_compile" 2>out/conftest.err) 13872 ac_status=$? 13873 cat out/conftest.err >&5 13874 echo "$as_me:13874: \$? = $ac_status" >&5 13875 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13876 then 13877 # The compiler can only warn and ignore the option if not recognized 13878 # So say no if there are warnings 13879 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 13880 $SED '/^$/d' out/conftest.err >out/conftest.er2 13881 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13882 lt_cv_prog_compiler_c_o_F77=yes 13883 fi 13884 fi 13885 chmod u+w . 2>&5 13886 $rm conftest* 13887 # SGI C++ compiler will create directory out/ii_files/ for 13888 # template instantiation 13889 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13890 $rm out/* && rmdir out 13891 cd .. 13892 rmdir conftest 13893 $rm conftest* 13894 13895fi 13896echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13897echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13898 13899 13900hard_links="nottested" 13901if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13902 # do not overwrite the value of need_locks provided by the user 13903 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13904echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13905 hard_links=yes 13906 $rm conftest* 13907 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13908 touch conftest.a 13909 ln conftest.a conftest.b 2>&5 || hard_links=no 13910 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13911 echo "$as_me:$LINENO: result: $hard_links" >&5 13912echo "${ECHO_T}$hard_links" >&6 13913 if test "$hard_links" = no; then 13914 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13915echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13916 need_locks=warn 13917 fi 13918else 13919 need_locks=no 13920fi 13921 13922echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13923echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13924 13925 runpath_var= 13926 allow_undefined_flag_F77= 13927 enable_shared_with_static_runtimes_F77=no 13928 archive_cmds_F77= 13929 archive_expsym_cmds_F77= 13930 old_archive_From_new_cmds_F77= 13931 old_archive_from_expsyms_cmds_F77= 13932 export_dynamic_flag_spec_F77= 13933 whole_archive_flag_spec_F77= 13934 thread_safe_flag_spec_F77= 13935 hardcode_libdir_flag_spec_F77= 13936 hardcode_libdir_flag_spec_ld_F77= 13937 hardcode_libdir_separator_F77= 13938 hardcode_direct_F77=no 13939 hardcode_minus_L_F77=no 13940 hardcode_shlibpath_var_F77=unsupported 13941 link_all_deplibs_F77=unknown 13942 hardcode_automatic_F77=no 13943 module_cmds_F77= 13944 module_expsym_cmds_F77= 13945 always_export_symbols_F77=no 13946 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13947 # include_expsyms should be a list of space-separated symbols to be *always* 13948 # included in the symbol list 13949 include_expsyms_F77= 13950 # exclude_expsyms can be an extended regexp of symbols to exclude 13951 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13952 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13953 # as well as any symbol that contains `d'. 13954 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13955 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13956 # platforms (ab)use it in PIC code, but their linkers get confused if 13957 # the symbol is explicitly referenced. Since portable code cannot 13958 # rely on this symbol name, it's probably fine to never include it in 13959 # preloaded symbol tables. 13960 extract_expsyms_cmds= 13961 # Just being paranoid about ensuring that cc_basename is set. 13962 for cc_temp in $compiler""; do 13963 case $cc_temp in 13964 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13965 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13966 \-*) ;; 13967 *) break;; 13968 esac 13969done 13970cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13971 13972 case $host_os in 13973 cygwin* | mingw* | pw32*) 13974 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13975 # When not using gcc, we currently assume that we are using 13976 # Microsoft Visual C++. 13977 if test "$GCC" != yes; then 13978 with_gnu_ld=no 13979 fi 13980 ;; 13981 openbsd*) 13982 with_gnu_ld=no 13983 ;; 13984 esac 13985 13986 ld_shlibs_F77=yes 13987 if test "$with_gnu_ld" = yes; then 13988 # If archive_cmds runs LD, not CC, wlarc should be empty 13989 wlarc='${wl}' 13990 13991 # Set some defaults for GNU ld with shared library support. These 13992 # are reset later if shared libraries are not supported. Putting them 13993 # here allows them to be overridden if necessary. 13994 runpath_var=LD_RUN_PATH 13995 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13996 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13997 # ancient GNU ld didn't support --whole-archive et. al. 13998 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13999 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14000 else 14001 whole_archive_flag_spec_F77= 14002 fi 14003 supports_anon_versioning=no 14004 case `$LD -v 2>/dev/null` in 14005 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14006 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14007 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14008 *\ 2.11.*) ;; # other 2.11 versions 14009 *) supports_anon_versioning=yes ;; 14010 esac 14011 14012 # See if GNU ld supports shared libraries. 14013 case $host_os in 14014 aix3* | aix4* | aix5*) 14015 # On AIX/PPC, the GNU linker is very broken 14016 if test "$host_cpu" != ia64; then 14017 ld_shlibs_F77=no 14018 cat <<EOF 1>&2 14019 14020*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14021*** to be unable to reliably create shared libraries on AIX. 14022*** Therefore, libtool is disabling shared libraries support. If you 14023*** really care for shared libraries, you may want to modify your PATH 14024*** so that a non-GNU linker is found, and then restart. 14025 14026EOF 14027 fi 14028 ;; 14029 14030 amigaos*) 14031 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)' 14032 hardcode_libdir_flag_spec_F77='-L$libdir' 14033 hardcode_minus_L_F77=yes 14034 14035 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14036 # that the semantics of dynamic libraries on AmigaOS, at least up 14037 # to version 4, is to share data among multiple programs linked 14038 # with the same dynamic library. Since this doesn't match the 14039 # behavior of shared libraries on other platforms, we can't use 14040 # them. 14041 ld_shlibs_F77=no 14042 ;; 14043 14044 beos*) 14045 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14046 allow_undefined_flag_F77=unsupported 14047 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14048 # support --undefined. This deserves some investigation. FIXME 14049 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14050 else 14051 ld_shlibs_F77=no 14052 fi 14053 ;; 14054 14055 cygwin* | mingw* | pw32*) 14056 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14057 # as there is no search path for DLLs. 14058 hardcode_libdir_flag_spec_F77='-L$libdir' 14059 allow_undefined_flag_F77=unsupported 14060 always_export_symbols_F77=no 14061 enable_shared_with_static_runtimes_F77=yes 14062 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14063 14064 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14065 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14066 # If the export-symbols file already is a .def file (1st line 14067 # is EXPORTS), use it as is; otherwise, prepend... 14068 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14069 cp $export_symbols $output_objdir/$soname.def; 14070 else 14071 echo EXPORTS > $output_objdir/$soname.def; 14072 cat $export_symbols >> $output_objdir/$soname.def; 14073 fi~ 14074 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14075 else 14076 ld_shlibs_F77=no 14077 fi 14078 ;; 14079 14080 linux*) 14081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14082 tmp_addflag= 14083 case $cc_basename,$host_cpu in 14084 pgcc*) # Portland Group C compiler 14085 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' 14086 tmp_addflag=' $pic_flag' 14087 ;; 14088 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14089 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' 14090 tmp_addflag=' $pic_flag -Mnomain' ;; 14091 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14092 tmp_addflag=' -i_dynamic' ;; 14093 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14094 tmp_addflag=' -i_dynamic -nofor_main' ;; 14095 ifc* | ifort*) # Intel Fortran compiler 14096 tmp_addflag=' -nofor_main' ;; 14097 esac 14098 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14099 14100 if test $supports_anon_versioning = yes; then 14101 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14102 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14103 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14104 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14105 fi 14106 else 14107 ld_shlibs_F77=no 14108 fi 14109 ;; 14110 14111 netbsd*) 14112 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14113 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14114 wlarc= 14115 else 14116 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14117 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14118 fi 14119 ;; 14120 14121 solaris* | sysv5*) 14122 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14123 ld_shlibs_F77=no 14124 cat <<EOF 1>&2 14125 14126*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14127*** create shared libraries on Solaris systems. Therefore, libtool 14128*** is disabling shared libraries support. We urge you to upgrade GNU 14129*** binutils to release 2.9.1 or newer. Another option is to modify 14130*** your PATH or compiler configuration so that the native linker is 14131*** used, and then restart. 14132 14133EOF 14134 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14135 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14136 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14137 else 14138 ld_shlibs_F77=no 14139 fi 14140 ;; 14141 14142 sunos4*) 14143 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14144 wlarc= 14145 hardcode_direct_F77=yes 14146 hardcode_shlibpath_var_F77=no 14147 ;; 14148 14149 *) 14150 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14151 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14152 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14153 else 14154 ld_shlibs_F77=no 14155 fi 14156 ;; 14157 esac 14158 14159 if test "$ld_shlibs_F77" = no; then 14160 runpath_var= 14161 hardcode_libdir_flag_spec_F77= 14162 export_dynamic_flag_spec_F77= 14163 whole_archive_flag_spec_F77= 14164 fi 14165 else 14166 # PORTME fill in a description of your system's linker (not GNU ld) 14167 case $host_os in 14168 aix3*) 14169 allow_undefined_flag_F77=unsupported 14170 always_export_symbols_F77=yes 14171 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' 14172 # Note: this linker hardcodes the directories in LIBPATH if there 14173 # are no directories specified by -L. 14174 hardcode_minus_L_F77=yes 14175 if test "$GCC" = yes && test -z "$link_static_flag"; then 14176 # Neither direct hardcoding nor static linking is supported with a 14177 # broken collect2. 14178 hardcode_direct_F77=unsupported 14179 fi 14180 ;; 14181 14182 aix4* | aix5*) 14183 if test "$host_cpu" = ia64; then 14184 # On IA64, the linker does run time linking by default, so we don't 14185 # have to do anything special. 14186 aix_use_runtimelinking=no 14187 exp_sym_flag='-Bexport' 14188 no_entry_flag="" 14189 else 14190 # If we're using GNU nm, then we don't want the "-C" option. 14191 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14192 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14193 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' 14194 else 14195 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' 14196 fi 14197 aix_use_runtimelinking=no 14198 14199 # Test if we are trying to use run time linking or normal 14200 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14201 # need to do runtime linking. 14202 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14203 for ld_flag in $LDFLAGS; do 14204 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14205 aix_use_runtimelinking=yes 14206 break 14207 fi 14208 done 14209 esac 14210 14211 exp_sym_flag='-bexport' 14212 no_entry_flag='-bnoentry' 14213 fi 14214 14215 # When large executables or shared objects are built, AIX ld can 14216 # have problems creating the table of contents. If linking a library 14217 # or program results in "error TOC overflow" add -mminimal-toc to 14218 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14219 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14220 14221 archive_cmds_F77='' 14222 hardcode_direct_F77=yes 14223 hardcode_libdir_separator_F77=':' 14224 link_all_deplibs_F77=yes 14225 14226 if test "$GCC" = yes; then 14227 case $host_os in aix4.[012]|aix4.[012].*) 14228 # We only want to do this on AIX 4.2 and lower, the check 14229 # below for broken collect2 doesn't work under 4.3+ 14230 collect2name=`${CC} -print-prog-name=collect2` 14231 if test -f "$collect2name" && \ 14232 strings "$collect2name" | grep resolve_lib_name >/dev/null 14233 then 14234 # We have reworked collect2 14235 hardcode_direct_F77=yes 14236 else 14237 # We have old collect2 14238 hardcode_direct_F77=unsupported 14239 # It fails to find uninstalled libraries when the uninstalled 14240 # path is not listed in the libpath. Setting hardcode_minus_L 14241 # to unsupported forces relinking 14242 hardcode_minus_L_F77=yes 14243 hardcode_libdir_flag_spec_F77='-L$libdir' 14244 hardcode_libdir_separator_F77= 14245 fi 14246 esac 14247 shared_flag='-shared' 14248 if test "$aix_use_runtimelinking" = yes; then 14249 shared_flag="$shared_flag "'${wl}-G' 14250 fi 14251 else 14252 # not using gcc 14253 if test "$host_cpu" = ia64; then 14254 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14255 # chokes on -Wl,-G. The following line is correct: 14256 shared_flag='-G' 14257 else 14258 if test "$aix_use_runtimelinking" = yes; then 14259 shared_flag='${wl}-G' 14260 else 14261 shared_flag='${wl}-bM:SRE' 14262 fi 14263 fi 14264 fi 14265 14266 # It seems that -bexpall does not export symbols beginning with 14267 # underscore (_), so it is better to generate a list of symbols to export. 14268 always_export_symbols_F77=yes 14269 if test "$aix_use_runtimelinking" = yes; then 14270 # Warning - without using the other runtime loading flags (-brtl), 14271 # -berok will link without error, but may produce a broken library. 14272 allow_undefined_flag_F77='-berok' 14273 # Determine the default libpath from the value encoded in an empty executable. 14274 cat >conftest.$ac_ext <<_ACEOF 14275 program main 14276 14277 end 14278_ACEOF 14279rm -f conftest.$ac_objext conftest$ac_exeext 14280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14281 (eval $ac_link) 2>conftest.er1 14282 ac_status=$? 14283 grep -v '^ *+' conftest.er1 >conftest.err 14284 rm -f conftest.er1 14285 cat conftest.err >&5 14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14287 (exit $ac_status); } && 14288 { ac_try='test -z "$ac_f77_werror_flag" 14289 || test ! -s conftest.err' 14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14291 (eval $ac_try) 2>&5 14292 ac_status=$? 14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14294 (exit $ac_status); }; } && 14295 { ac_try='test -s conftest$ac_exeext' 14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14297 (eval $ac_try) 2>&5 14298 ac_status=$? 14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14300 (exit $ac_status); }; }; then 14301 14302aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14303}'` 14304# Check for a 64-bit object if we didn't find anything. 14305if 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; } 14306}'`; fi 14307else 14308 echo "$as_me: failed program was:" >&5 14309sed 's/^/| /' conftest.$ac_ext >&5 14310 14311fi 14312rm -f conftest.err conftest.$ac_objext \ 14313 conftest$ac_exeext conftest.$ac_ext 14314if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14315 14316 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14317 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14318 else 14319 if test "$host_cpu" = ia64; then 14320 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14321 allow_undefined_flag_F77="-z nodefs" 14322 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 14323 else 14324 # Determine the default libpath from the value encoded in an empty executable. 14325 cat >conftest.$ac_ext <<_ACEOF 14326 program main 14327 14328 end 14329_ACEOF 14330rm -f conftest.$ac_objext conftest$ac_exeext 14331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14332 (eval $ac_link) 2>conftest.er1 14333 ac_status=$? 14334 grep -v '^ *+' conftest.er1 >conftest.err 14335 rm -f conftest.er1 14336 cat conftest.err >&5 14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14338 (exit $ac_status); } && 14339 { ac_try='test -z "$ac_f77_werror_flag" 14340 || test ! -s conftest.err' 14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14342 (eval $ac_try) 2>&5 14343 ac_status=$? 14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14345 (exit $ac_status); }; } && 14346 { ac_try='test -s conftest$ac_exeext' 14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14348 (eval $ac_try) 2>&5 14349 ac_status=$? 14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14351 (exit $ac_status); }; }; then 14352 14353aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14354}'` 14355# Check for a 64-bit object if we didn't find anything. 14356if 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; } 14357}'`; fi 14358else 14359 echo "$as_me: failed program was:" >&5 14360sed 's/^/| /' conftest.$ac_ext >&5 14361 14362fi 14363rm -f conftest.err conftest.$ac_objext \ 14364 conftest$ac_exeext conftest.$ac_ext 14365if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14366 14367 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14368 # Warning - without using the other run time loading flags, 14369 # -berok will link without error, but may produce a broken library. 14370 no_undefined_flag_F77=' ${wl}-bernotok' 14371 allow_undefined_flag_F77=' ${wl}-berok' 14372 # -bexpall does not export symbols beginning with underscore (_) 14373 always_export_symbols_F77=yes 14374 # Exported symbols can be pulled into shared objects from archives 14375 whole_archive_flag_spec_F77=' ' 14376 archive_cmds_need_lc_F77=yes 14377 # This is similar to how AIX traditionally builds its shared libraries. 14378 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14379 fi 14380 fi 14381 ;; 14382 14383 amigaos*) 14384 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)' 14385 hardcode_libdir_flag_spec_F77='-L$libdir' 14386 hardcode_minus_L_F77=yes 14387 # see comment about different semantics on the GNU ld section 14388 ld_shlibs_F77=no 14389 ;; 14390 14391 bsdi[45]*) 14392 export_dynamic_flag_spec_F77=-rdynamic 14393 ;; 14394 14395 cygwin* | mingw* | pw32*) 14396 # When not using gcc, we currently assume that we are using 14397 # Microsoft Visual C++. 14398 # hardcode_libdir_flag_spec is actually meaningless, as there is 14399 # no search path for DLLs. 14400 hardcode_libdir_flag_spec_F77=' ' 14401 allow_undefined_flag_F77=unsupported 14402 # Tell ltmain to make .lib files, not .a files. 14403 libext=lib 14404 # Tell ltmain to make .dll files, not .so files. 14405 shrext_cmds=".dll" 14406 # FIXME: Setting linknames here is a bad hack. 14407 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14408 # The linker will automatically build a .lib file if we build a DLL. 14409 old_archive_From_new_cmds_F77='true' 14410 # FIXME: Should let the user specify the lib program. 14411 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14412 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14413 enable_shared_with_static_runtimes_F77=yes 14414 ;; 14415 14416 darwin* | rhapsody*) 14417 case $host_os in 14418 rhapsody* | darwin1.[012]) 14419 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14420 ;; 14421 *) # Darwin 1.3 on 14422 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14423 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14424 else 14425 case ${MACOSX_DEPLOYMENT_TARGET} in 14426 10.[012]) 14427 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14428 ;; 14429 10.*) 14430 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14431 ;; 14432 esac 14433 fi 14434 ;; 14435 esac 14436 archive_cmds_need_lc_F77=no 14437 hardcode_direct_F77=no 14438 hardcode_automatic_F77=yes 14439 hardcode_shlibpath_var_F77=unsupported 14440 whole_archive_flag_spec_F77='' 14441 link_all_deplibs_F77=yes 14442 if test "$GCC" = yes ; then 14443 output_verbose_link_cmd='echo' 14444 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14445 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14446 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14447 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}' 14448 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}' 14449 else 14450 case $cc_basename in 14451 xlc*) 14452 output_verbose_link_cmd='echo' 14453 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14454 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14455 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14456 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}' 14457 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}' 14458 ;; 14459 *) 14460 ld_shlibs_F77=no 14461 ;; 14462 esac 14463 fi 14464 ;; 14465 14466 dgux*) 14467 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14468 hardcode_libdir_flag_spec_F77='-L$libdir' 14469 hardcode_shlibpath_var_F77=no 14470 ;; 14471 14472 freebsd1*) 14473 ld_shlibs_F77=no 14474 ;; 14475 14476 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14477 # support. Future versions do this automatically, but an explicit c++rt0.o 14478 # does not break anything, and helps significantly (at the cost of a little 14479 # extra space). 14480 freebsd2.2*) 14481 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14482 hardcode_libdir_flag_spec_F77='-R$libdir' 14483 hardcode_direct_F77=yes 14484 hardcode_shlibpath_var_F77=no 14485 ;; 14486 14487 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14488 freebsd2*) 14489 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14490 hardcode_direct_F77=yes 14491 hardcode_minus_L_F77=yes 14492 hardcode_shlibpath_var_F77=no 14493 ;; 14494 14495 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14496 freebsd* | kfreebsd*-gnu | dragonfly*) 14497 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14498 hardcode_libdir_flag_spec_F77='-R$libdir' 14499 hardcode_direct_F77=yes 14500 hardcode_shlibpath_var_F77=no 14501 ;; 14502 14503 hpux9*) 14504 if test "$GCC" = yes; then 14505 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' 14506 else 14507 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' 14508 fi 14509 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14510 hardcode_libdir_separator_F77=: 14511 hardcode_direct_F77=yes 14512 14513 # hardcode_minus_L: Not really in the search PATH, 14514 # but as the default location of the library. 14515 hardcode_minus_L_F77=yes 14516 export_dynamic_flag_spec_F77='${wl}-E' 14517 ;; 14518 14519 hpux10* | hpux11*) 14520 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14521 case $host_cpu in 14522 hppa*64*|ia64*) 14523 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14524 ;; 14525 *) 14526 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14527 ;; 14528 esac 14529 else 14530 case $host_cpu in 14531 hppa*64*|ia64*) 14532 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14533 ;; 14534 *) 14535 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14536 ;; 14537 esac 14538 fi 14539 if test "$with_gnu_ld" = no; then 14540 case $host_cpu in 14541 hppa*64*) 14542 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14543 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14544 hardcode_libdir_separator_F77=: 14545 hardcode_direct_F77=no 14546 hardcode_shlibpath_var_F77=no 14547 ;; 14548 ia64*) 14549 hardcode_libdir_flag_spec_F77='-L$libdir' 14550 hardcode_direct_F77=no 14551 hardcode_shlibpath_var_F77=no 14552 14553 # hardcode_minus_L: Not really in the search PATH, 14554 # but as the default location of the library. 14555 hardcode_minus_L_F77=yes 14556 ;; 14557 *) 14558 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14559 hardcode_libdir_separator_F77=: 14560 hardcode_direct_F77=yes 14561 export_dynamic_flag_spec_F77='${wl}-E' 14562 14563 # hardcode_minus_L: Not really in the search PATH, 14564 # but as the default location of the library. 14565 hardcode_minus_L_F77=yes 14566 ;; 14567 esac 14568 fi 14569 ;; 14570 14571 irix5* | irix6* | nonstopux*) 14572 if test "$GCC" = yes; then 14573 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' 14574 else 14575 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' 14576 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14577 fi 14578 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14579 hardcode_libdir_separator_F77=: 14580 link_all_deplibs_F77=yes 14581 ;; 14582 14583 netbsd*) 14584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14585 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14586 else 14587 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14588 fi 14589 hardcode_libdir_flag_spec_F77='-R$libdir' 14590 hardcode_direct_F77=yes 14591 hardcode_shlibpath_var_F77=no 14592 ;; 14593 14594 newsos6) 14595 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14596 hardcode_direct_F77=yes 14597 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14598 hardcode_libdir_separator_F77=: 14599 hardcode_shlibpath_var_F77=no 14600 ;; 14601 14602 openbsd*) 14603 hardcode_direct_F77=yes 14604 hardcode_shlibpath_var_F77=no 14605 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14606 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14607 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14608 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14609 export_dynamic_flag_spec_F77='${wl}-E' 14610 else 14611 case $host_os in 14612 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14613 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14614 hardcode_libdir_flag_spec_F77='-R$libdir' 14615 ;; 14616 *) 14617 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14618 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14619 ;; 14620 esac 14621 fi 14622 ;; 14623 14624 os2*) 14625 hardcode_libdir_flag_spec_F77='-L$libdir' 14626 hardcode_minus_L_F77=yes 14627 allow_undefined_flag_F77=unsupported 14628 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' 14629 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14630 ;; 14631 14632 osf3*) 14633 if test "$GCC" = yes; then 14634 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14635 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' 14636 else 14637 allow_undefined_flag_F77=' -expect_unresolved \*' 14638 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' 14639 fi 14640 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14641 hardcode_libdir_separator_F77=: 14642 ;; 14643 14644 osf4* | osf5*) # as osf3* with the addition of -msym flag 14645 if test "$GCC" = yes; then 14646 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14647 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' 14648 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14649 else 14650 allow_undefined_flag_F77=' -expect_unresolved \*' 14651 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' 14652 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~ 14653 $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' 14654 14655 # Both c and cxx compiler support -rpath directly 14656 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14657 fi 14658 hardcode_libdir_separator_F77=: 14659 ;; 14660 14661 sco3.2v5*) 14662 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14663 hardcode_shlibpath_var_F77=no 14664 export_dynamic_flag_spec_F77='${wl}-Bexport' 14665 runpath_var=LD_RUN_PATH 14666 hardcode_runpath_var=yes 14667 ;; 14668 14669 solaris*) 14670 no_undefined_flag_F77=' -z text' 14671 if test "$GCC" = yes; then 14672 wlarc='${wl}' 14673 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14674 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14675 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14676 else 14677 wlarc='' 14678 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14679 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14680 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14681 fi 14682 hardcode_libdir_flag_spec_F77='-R$libdir' 14683 hardcode_shlibpath_var_F77=no 14684 case $host_os in 14685 solaris2.[0-5] | solaris2.[0-5].*) ;; 14686 *) 14687 # The compiler driver will combine linker options so we 14688 # cannot just pass the convience library names through 14689 # without $wl, iff we do not link with $LD. 14690 # Luckily, gcc supports the same syntax we need for Sun Studio. 14691 # Supported since Solaris 2.6 (maybe 2.5.1?) 14692 case $wlarc in 14693 '') 14694 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14695 *) 14696 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' ;; 14697 esac ;; 14698 esac 14699 link_all_deplibs_F77=yes 14700 ;; 14701 14702 sunos4*) 14703 if test "x$host_vendor" = xsequent; then 14704 # Use $CC to link under sequent, because it throws in some extra .o 14705 # files that make .init and .fini sections work. 14706 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14707 else 14708 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14709 fi 14710 hardcode_libdir_flag_spec_F77='-L$libdir' 14711 hardcode_direct_F77=yes 14712 hardcode_minus_L_F77=yes 14713 hardcode_shlibpath_var_F77=no 14714 ;; 14715 14716 sysv4) 14717 case $host_vendor in 14718 sni) 14719 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14720 hardcode_direct_F77=yes # is this really true??? 14721 ;; 14722 siemens) 14723 ## LD is ld it makes a PLAMLIB 14724 ## CC just makes a GrossModule. 14725 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14726 reload_cmds_F77='$CC -r -o $output$reload_objs' 14727 hardcode_direct_F77=no 14728 ;; 14729 motorola) 14730 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14731 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14732 ;; 14733 esac 14734 runpath_var='LD_RUN_PATH' 14735 hardcode_shlibpath_var_F77=no 14736 ;; 14737 14738 sysv4.3*) 14739 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14740 hardcode_shlibpath_var_F77=no 14741 export_dynamic_flag_spec_F77='-Bexport' 14742 ;; 14743 14744 sysv4*MP*) 14745 if test -d /usr/nec; then 14746 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14747 hardcode_shlibpath_var_F77=no 14748 runpath_var=LD_RUN_PATH 14749 hardcode_runpath_var=yes 14750 ld_shlibs_F77=yes 14751 fi 14752 ;; 14753 14754 sysv4.2uw2*) 14755 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14756 hardcode_direct_F77=yes 14757 hardcode_minus_L_F77=no 14758 hardcode_shlibpath_var_F77=no 14759 hardcode_runpath_var=yes 14760 runpath_var=LD_RUN_PATH 14761 ;; 14762 14763 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14764 no_undefined_flag_F77='${wl}-z ${wl}text' 14765 if test "$GCC" = yes; then 14766 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14767 else 14768 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14769 fi 14770 runpath_var='LD_RUN_PATH' 14771 hardcode_shlibpath_var_F77=no 14772 ;; 14773 14774 sysv5*) 14775 no_undefined_flag_F77=' -z text' 14776 # $CC -shared without GNU ld will not create a library from C++ 14777 # object files and a static libstdc++, better avoid it by now 14778 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14779 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14780 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14781 hardcode_libdir_flag_spec_F77= 14782 hardcode_shlibpath_var_F77=no 14783 runpath_var='LD_RUN_PATH' 14784 ;; 14785 14786 uts4*) 14787 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14788 hardcode_libdir_flag_spec_F77='-L$libdir' 14789 hardcode_shlibpath_var_F77=no 14790 ;; 14791 14792 *) 14793 ld_shlibs_F77=no 14794 ;; 14795 esac 14796 fi 14797 14798echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14799echo "${ECHO_T}$ld_shlibs_F77" >&6 14800test "$ld_shlibs_F77" = no && can_build_shared=no 14801 14802variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14803if test "$GCC" = yes; then 14804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14805fi 14806 14807# 14808# Do we need to explicitly link libc? 14809# 14810case "x$archive_cmds_need_lc_F77" in 14811x|xyes) 14812 # Assume -lc should be added 14813 archive_cmds_need_lc_F77=yes 14814 14815 if test "$enable_shared" = yes && test "$GCC" = yes; then 14816 case $archive_cmds_F77 in 14817 *'~'*) 14818 # FIXME: we may have to deal with multi-command sequences. 14819 ;; 14820 '$CC '*) 14821 # Test whether the compiler implicitly links with -lc since on some 14822 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14823 # to ld, don't add -lc before -lgcc. 14824 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14825echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14826 $rm conftest* 14827 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14828 14829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14830 (eval $ac_compile) 2>&5 14831 ac_status=$? 14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14833 (exit $ac_status); } 2>conftest.err; then 14834 soname=conftest 14835 lib=conftest 14836 libobjs=conftest.$ac_objext 14837 deplibs= 14838 wl=$lt_prog_compiler_wl_F77 14839 compiler_flags=-v 14840 linker_flags=-v 14841 verstring= 14842 output_objdir=. 14843 libname=conftest 14844 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14845 allow_undefined_flag_F77= 14846 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14847 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14848 ac_status=$? 14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14850 (exit $ac_status); } 14851 then 14852 archive_cmds_need_lc_F77=no 14853 else 14854 archive_cmds_need_lc_F77=yes 14855 fi 14856 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14857 else 14858 cat conftest.err 1>&5 14859 fi 14860 $rm conftest* 14861 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14862echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14863 ;; 14864 esac 14865 fi 14866 ;; 14867esac 14868 14869echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14870echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14871library_names_spec= 14872libname_spec='lib$name' 14873soname_spec= 14874shrext_cmds=".so" 14875postinstall_cmds= 14876postuninstall_cmds= 14877finish_cmds= 14878finish_eval= 14879shlibpath_var= 14880shlibpath_overrides_runpath=unknown 14881version_type=none 14882dynamic_linker="$host_os ld.so" 14883sys_lib_dlsearch_path_spec="/lib /usr/lib" 14884if test "$GCC" = yes; then 14885 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14886 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14887 # if the path contains ";" then we assume it to be the separator 14888 # otherwise default to the standard path separator (i.e. ":") - it is 14889 # assumed that no part of a normal pathname contains ";" but that should 14890 # okay in the real world where ";" in dirpaths is itself problematic. 14891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14892 else 14893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14894 fi 14895else 14896 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14897fi 14898need_lib_prefix=unknown 14899hardcode_into_libs=no 14900 14901# when you set need_version to no, make sure it does not cause -set_version 14902# flags to be left without arguments 14903need_version=unknown 14904 14905case $host_os in 14906aix3*) 14907 version_type=linux 14908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14909 shlibpath_var=LIBPATH 14910 14911 # AIX 3 has no versioning support, so we append a major version to the name. 14912 soname_spec='${libname}${release}${shared_ext}$major' 14913 ;; 14914 14915aix4* | aix5*) 14916 version_type=linux 14917 need_lib_prefix=no 14918 need_version=no 14919 hardcode_into_libs=yes 14920 if test "$host_cpu" = ia64; then 14921 # AIX 5 supports IA64 14922 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14923 shlibpath_var=LD_LIBRARY_PATH 14924 else 14925 # With GCC up to 2.95.x, collect2 would create an import file 14926 # for dependence libraries. The import file would start with 14927 # the line `#! .'. This would cause the generated library to 14928 # depend on `.', always an invalid library. This was fixed in 14929 # development snapshots of GCC prior to 3.0. 14930 case $host_os in 14931 aix4 | aix4.[01] | aix4.[01].*) 14932 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14933 echo ' yes ' 14934 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14935 : 14936 else 14937 can_build_shared=no 14938 fi 14939 ;; 14940 esac 14941 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14942 # soname into executable. Probably we can add versioning support to 14943 # collect2, so additional links can be useful in future. 14944 if test "$aix_use_runtimelinking" = yes; then 14945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14946 # instead of lib<name>.a to let people know that these are not 14947 # typical AIX shared libraries. 14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14949 else 14950 # We preserve .a as extension for shared libraries through AIX4.2 14951 # and later when we are not doing run time linking. 14952 library_names_spec='${libname}${release}.a $libname.a' 14953 soname_spec='${libname}${release}${shared_ext}$major' 14954 fi 14955 shlibpath_var=LIBPATH 14956 fi 14957 ;; 14958 14959amigaos*) 14960 library_names_spec='$libname.ixlibrary $libname.a' 14961 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14962 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' 14963 ;; 14964 14965beos*) 14966 library_names_spec='${libname}${shared_ext}' 14967 dynamic_linker="$host_os ld.so" 14968 shlibpath_var=LIBRARY_PATH 14969 ;; 14970 14971bsdi[45]*) 14972 version_type=linux 14973 need_version=no 14974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14975 soname_spec='${libname}${release}${shared_ext}$major' 14976 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14977 shlibpath_var=LD_LIBRARY_PATH 14978 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14979 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14980 # the default ld.so.conf also contains /usr/contrib/lib and 14981 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14982 # libtool to hard-code these into programs 14983 ;; 14984 14985cygwin* | mingw* | pw32*) 14986 version_type=windows 14987 shrext_cmds=".dll" 14988 need_version=no 14989 need_lib_prefix=no 14990 14991 case $GCC,$host_os in 14992 yes,cygwin* | yes,mingw* | yes,pw32*) 14993 library_names_spec='$libname.dll.a' 14994 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14995 postinstall_cmds='base_file=`basename \${file}`~ 14996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14997 dldir=$destdir/`dirname \$dlpath`~ 14998 test -d \$dldir || mkdir -p \$dldir~ 14999 $install_prog $dir/$dlname \$dldir/$dlname~ 15000 chmod a+x \$dldir/$dlname' 15001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15002 dlpath=$dir/\$dldll~ 15003 $rm \$dlpath' 15004 shlibpath_overrides_runpath=yes 15005 15006 case $host_os in 15007 cygwin*) 15008 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15009 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15010 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15011 ;; 15012 mingw*) 15013 # MinGW DLLs use traditional 'lib' prefix 15014 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15015 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15016 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15017 # It is most probably a Windows format PATH printed by 15018 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15019 # path with ; separators, and with drive letters. We can handle the 15020 # drive letters (cygwin fileutils understands them), so leave them, 15021 # especially as we might pass files found there to a mingw objdump, 15022 # which wouldn't understand a cygwinified path. Ahh. 15023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15024 else 15025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15026 fi 15027 ;; 15028 pw32*) 15029 # pw32 DLLs use 'pw' prefix rather than 'lib' 15030 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15031 ;; 15032 esac 15033 ;; 15034 15035 *) 15036 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15037 ;; 15038 esac 15039 dynamic_linker='Win32 ld.exe' 15040 # FIXME: first we should search . and the directory the executable is in 15041 shlibpath_var=PATH 15042 ;; 15043 15044darwin* | rhapsody*) 15045 dynamic_linker="$host_os dyld" 15046 version_type=darwin 15047 need_lib_prefix=no 15048 need_version=no 15049 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15050 soname_spec='${libname}${release}${major}$shared_ext' 15051 shlibpath_overrides_runpath=yes 15052 shlibpath_var=DYLD_LIBRARY_PATH 15053 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15054 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15055 if test "$GCC" = yes; then 15056 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"` 15057 else 15058 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15059 fi 15060 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15061 ;; 15062 15063dgux*) 15064 version_type=linux 15065 need_lib_prefix=no 15066 need_version=no 15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15068 soname_spec='${libname}${release}${shared_ext}$major' 15069 shlibpath_var=LD_LIBRARY_PATH 15070 ;; 15071 15072freebsd1*) 15073 dynamic_linker=no 15074 ;; 15075 15076kfreebsd*-gnu) 15077 version_type=linux 15078 need_lib_prefix=no 15079 need_version=no 15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15081 soname_spec='${libname}${release}${shared_ext}$major' 15082 shlibpath_var=LD_LIBRARY_PATH 15083 shlibpath_overrides_runpath=no 15084 hardcode_into_libs=yes 15085 dynamic_linker='GNU ld.so' 15086 ;; 15087 15088freebsd* | dragonfly*) 15089 # DragonFly does not have aout. When/if they implement a new 15090 # versioning mechanism, adjust this. 15091 if test -x /usr/bin/objformat; then 15092 objformat=`/usr/bin/objformat` 15093 else 15094 case $host_os in 15095 freebsd[123]*) objformat=aout ;; 15096 *) objformat=elf ;; 15097 esac 15098 fi 15099 version_type=freebsd-$objformat 15100 case $version_type in 15101 freebsd-elf*) 15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15103 need_version=no 15104 need_lib_prefix=no 15105 ;; 15106 freebsd-*) 15107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15108 need_version=yes 15109 ;; 15110 esac 15111 shlibpath_var=LD_LIBRARY_PATH 15112 case $host_os in 15113 freebsd2*) 15114 shlibpath_overrides_runpath=yes 15115 ;; 15116 freebsd3.[01]* | freebsdelf3.[01]*) 15117 shlibpath_overrides_runpath=yes 15118 hardcode_into_libs=yes 15119 ;; 15120 *) # from 3.2 on 15121 shlibpath_overrides_runpath=no 15122 hardcode_into_libs=yes 15123 ;; 15124 esac 15125 ;; 15126 15127gnu*) 15128 version_type=linux 15129 need_lib_prefix=no 15130 need_version=no 15131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15132 soname_spec='${libname}${release}${shared_ext}$major' 15133 shlibpath_var=LD_LIBRARY_PATH 15134 hardcode_into_libs=yes 15135 ;; 15136 15137hpux9* | hpux10* | hpux11*) 15138 # Give a soname corresponding to the major version so that dld.sl refuses to 15139 # link against other versions. 15140 version_type=sunos 15141 need_lib_prefix=no 15142 need_version=no 15143 case $host_cpu in 15144 ia64*) 15145 shrext_cmds='.so' 15146 hardcode_into_libs=yes 15147 dynamic_linker="$host_os dld.so" 15148 shlibpath_var=LD_LIBRARY_PATH 15149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15151 soname_spec='${libname}${release}${shared_ext}$major' 15152 if test "X$HPUX_IA64_MODE" = X32; then 15153 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15154 else 15155 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15156 fi 15157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15158 ;; 15159 hppa*64*) 15160 shrext_cmds='.sl' 15161 hardcode_into_libs=yes 15162 dynamic_linker="$host_os dld.sl" 15163 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15166 soname_spec='${libname}${release}${shared_ext}$major' 15167 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15169 ;; 15170 *) 15171 shrext_cmds='.sl' 15172 dynamic_linker="$host_os dld.sl" 15173 shlibpath_var=SHLIB_PATH 15174 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15176 soname_spec='${libname}${release}${shared_ext}$major' 15177 ;; 15178 esac 15179 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15180 postinstall_cmds='chmod 555 $lib' 15181 ;; 15182 15183irix5* | irix6* | nonstopux*) 15184 case $host_os in 15185 nonstopux*) version_type=nonstopux ;; 15186 *) 15187 if test "$lt_cv_prog_gnu_ld" = yes; then 15188 version_type=linux 15189 else 15190 version_type=irix 15191 fi ;; 15192 esac 15193 need_lib_prefix=no 15194 need_version=no 15195 soname_spec='${libname}${release}${shared_ext}$major' 15196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15197 case $host_os in 15198 irix5* | nonstopux*) 15199 libsuff= shlibsuff= 15200 ;; 15201 *) 15202 case $LD in # libtool.m4 will add one of these switches to LD 15203 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15204 libsuff= shlibsuff= libmagic=32-bit;; 15205 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15206 libsuff=32 shlibsuff=N32 libmagic=N32;; 15207 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15208 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15209 *) libsuff= shlibsuff= libmagic=never-match;; 15210 esac 15211 ;; 15212 esac 15213 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15214 shlibpath_overrides_runpath=no 15215 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15216 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15217 hardcode_into_libs=yes 15218 ;; 15219 15220# No shared lib support for Linux oldld, aout, or coff. 15221linux*oldld* | linux*aout* | linux*coff*) 15222 dynamic_linker=no 15223 ;; 15224 15225# This must be Linux ELF. 15226linux*) 15227 version_type=linux 15228 need_lib_prefix=no 15229 need_version=no 15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15231 soname_spec='${libname}${release}${shared_ext}$major' 15232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15233 shlibpath_var=LD_LIBRARY_PATH 15234 shlibpath_overrides_runpath=no 15235 # This implies no fast_install, which is unacceptable. 15236 # Some rework will be needed to allow for fast_install 15237 # before this can be enabled. 15238 hardcode_into_libs=yes 15239 15240 # find out which ABI we are using 15241 libsuff= 15242 case "$host_cpu" in 15243 x86_64*|s390x*|powerpc64*) 15244 echo '#line 15244 "configure"' > conftest.$ac_ext 15245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15246 (eval $ac_compile) 2>&5 15247 ac_status=$? 15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15249 (exit $ac_status); }; then 15250 case `/usr/bin/file conftest.$ac_objext` in 15251 *64-bit*) 15252 libsuff=64 15253 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 15254 ;; 15255 esac 15256 fi 15257 rm -rf conftest* 15258 ;; 15259 esac 15260 15261 # Append ld.so.conf contents to the search path 15262 if test -f /etc/ld.so.conf; then 15263 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15264 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 15265 fi 15266 15267 # We used to test for /lib/ld.so.1 and disable shared libraries on 15268 # powerpc, because MkLinux only supported shared libraries with the 15269 # GNU dynamic linker. Since this was broken with cross compilers, 15270 # most powerpc-linux boxes support dynamic linking these days and 15271 # people can always --disable-shared, the test was removed, and we 15272 # assume the GNU/Linux dynamic linker is in use. 15273 dynamic_linker='GNU/Linux ld.so' 15274 ;; 15275 15276knetbsd*-gnu) 15277 version_type=linux 15278 need_lib_prefix=no 15279 need_version=no 15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15281 soname_spec='${libname}${release}${shared_ext}$major' 15282 shlibpath_var=LD_LIBRARY_PATH 15283 shlibpath_overrides_runpath=no 15284 hardcode_into_libs=yes 15285 dynamic_linker='GNU ld.so' 15286 ;; 15287 15288netbsd*) 15289 version_type=sunos 15290 need_lib_prefix=no 15291 need_version=no 15292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15295 dynamic_linker='NetBSD (a.out) ld.so' 15296 else 15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15298 soname_spec='${libname}${release}${shared_ext}$major' 15299 dynamic_linker='NetBSD ld.elf_so' 15300 fi 15301 shlibpath_var=LD_LIBRARY_PATH 15302 shlibpath_overrides_runpath=yes 15303 hardcode_into_libs=yes 15304 ;; 15305 15306newsos6) 15307 version_type=linux 15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15309 shlibpath_var=LD_LIBRARY_PATH 15310 shlibpath_overrides_runpath=yes 15311 ;; 15312 15313nto-qnx*) 15314 version_type=linux 15315 need_lib_prefix=no 15316 need_version=no 15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15318 soname_spec='${libname}${release}${shared_ext}$major' 15319 shlibpath_var=LD_LIBRARY_PATH 15320 shlibpath_overrides_runpath=yes 15321 ;; 15322 15323openbsd*) 15324 version_type=sunos 15325 need_lib_prefix=no 15326 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15327 case $host_os in 15328 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15329 *) need_version=no ;; 15330 esac 15331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15333 shlibpath_var=LD_LIBRARY_PATH 15334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15335 case $host_os in 15336 openbsd2.[89] | openbsd2.[89].*) 15337 shlibpath_overrides_runpath=no 15338 ;; 15339 *) 15340 shlibpath_overrides_runpath=yes 15341 ;; 15342 esac 15343 else 15344 shlibpath_overrides_runpath=yes 15345 fi 15346 ;; 15347 15348os2*) 15349 libname_spec='$name' 15350 shrext_cmds=".dll" 15351 need_lib_prefix=no 15352 library_names_spec='$libname${shared_ext} $libname.a' 15353 dynamic_linker='OS/2 ld.exe' 15354 shlibpath_var=LIBPATH 15355 ;; 15356 15357osf3* | osf4* | osf5*) 15358 version_type=osf 15359 need_lib_prefix=no 15360 need_version=no 15361 soname_spec='${libname}${release}${shared_ext}$major' 15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15363 shlibpath_var=LD_LIBRARY_PATH 15364 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15365 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15366 ;; 15367 15368sco3.2v5*) 15369 version_type=osf 15370 soname_spec='${libname}${release}${shared_ext}$major' 15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15372 shlibpath_var=LD_LIBRARY_PATH 15373 ;; 15374 15375solaris*) 15376 version_type=linux 15377 need_lib_prefix=no 15378 need_version=no 15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15380 soname_spec='${libname}${release}${shared_ext}$major' 15381 shlibpath_var=LD_LIBRARY_PATH 15382 shlibpath_overrides_runpath=yes 15383 hardcode_into_libs=yes 15384 # ldd complains unless libraries are executable 15385 postinstall_cmds='chmod +x $lib' 15386 ;; 15387 15388sunos4*) 15389 version_type=sunos 15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15391 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15392 shlibpath_var=LD_LIBRARY_PATH 15393 shlibpath_overrides_runpath=yes 15394 if test "$with_gnu_ld" = yes; then 15395 need_lib_prefix=no 15396 fi 15397 need_version=yes 15398 ;; 15399 15400sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15401 version_type=linux 15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15403 soname_spec='${libname}${release}${shared_ext}$major' 15404 shlibpath_var=LD_LIBRARY_PATH 15405 case $host_vendor in 15406 sni) 15407 shlibpath_overrides_runpath=no 15408 need_lib_prefix=no 15409 export_dynamic_flag_spec='${wl}-Blargedynsym' 15410 runpath_var=LD_RUN_PATH 15411 ;; 15412 siemens) 15413 need_lib_prefix=no 15414 ;; 15415 motorola) 15416 need_lib_prefix=no 15417 need_version=no 15418 shlibpath_overrides_runpath=no 15419 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15420 ;; 15421 esac 15422 ;; 15423 15424sysv4*MP*) 15425 if test -d /usr/nec ;then 15426 version_type=linux 15427 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15428 soname_spec='$libname${shared_ext}.$major' 15429 shlibpath_var=LD_LIBRARY_PATH 15430 fi 15431 ;; 15432 15433uts4*) 15434 version_type=linux 15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15436 soname_spec='${libname}${release}${shared_ext}$major' 15437 shlibpath_var=LD_LIBRARY_PATH 15438 ;; 15439 15440*) 15441 dynamic_linker=no 15442 ;; 15443esac 15444echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15445echo "${ECHO_T}$dynamic_linker" >&6 15446test "$dynamic_linker" = no && can_build_shared=no 15447 15448echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15449echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15450hardcode_action_F77= 15451if test -n "$hardcode_libdir_flag_spec_F77" || \ 15452 test -n "$runpath_var_F77" || \ 15453 test "X$hardcode_automatic_F77" = "Xyes" ; then 15454 15455 # We can hardcode non-existant directories. 15456 if test "$hardcode_direct_F77" != no && 15457 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15458 # have to relink, otherwise we might link with an installed library 15459 # when we should be linking with a yet-to-be-installed one 15460 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15461 test "$hardcode_minus_L_F77" != no; then 15462 # Linking always hardcodes the temporary library directory. 15463 hardcode_action_F77=relink 15464 else 15465 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15466 hardcode_action_F77=immediate 15467 fi 15468else 15469 # We cannot hardcode anything, or else we can only hardcode existing 15470 # directories. 15471 hardcode_action_F77=unsupported 15472fi 15473echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15474echo "${ECHO_T}$hardcode_action_F77" >&6 15475 15476if test "$hardcode_action_F77" = relink; then 15477 # Fast installation is not supported 15478 enable_fast_install=no 15479elif test "$shlibpath_overrides_runpath" = yes || 15480 test "$enable_shared" = no; then 15481 # Fast installation is not necessary 15482 enable_fast_install=needless 15483fi 15484 15485striplib= 15486old_striplib= 15487echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15488echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15489if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15490 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15491 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15492 echo "$as_me:$LINENO: result: yes" >&5 15493echo "${ECHO_T}yes" >&6 15494else 15495# FIXME - insert some real tests, host_os isn't really good enough 15496 case $host_os in 15497 darwin*) 15498 if test -n "$STRIP" ; then 15499 striplib="$STRIP -x" 15500 echo "$as_me:$LINENO: result: yes" >&5 15501echo "${ECHO_T}yes" >&6 15502 else 15503 echo "$as_me:$LINENO: result: no" >&5 15504echo "${ECHO_T}no" >&6 15505fi 15506 ;; 15507 *) 15508 echo "$as_me:$LINENO: result: no" >&5 15509echo "${ECHO_T}no" >&6 15510 ;; 15511 esac 15512fi 15513 15514 15515 15516# The else clause should only fire when bootstrapping the 15517# libtool distribution, otherwise you forgot to ship ltmain.sh 15518# with your package, and you will get complaints that there are 15519# no rules to generate ltmain.sh. 15520if test -f "$ltmain"; then 15521 # See if we are running on zsh, and set the options which allow our commands through 15522 # without removal of \ escapes. 15523 if test -n "${ZSH_VERSION+set}" ; then 15524 setopt NO_GLOB_SUBST 15525 fi 15526 # Now quote all the things that may contain metacharacters while being 15527 # careful not to overquote the AC_SUBSTed values. We take copies of the 15528 # variables and quote the copies for generation of the libtool script. 15529 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15530 SED SHELL STRIP \ 15531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15533 deplibs_check_method reload_flag reload_cmds need_locks \ 15534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15535 lt_cv_sys_global_symbol_to_c_name_address \ 15536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15537 old_postinstall_cmds old_postuninstall_cmds \ 15538 compiler_F77 \ 15539 CC_F77 \ 15540 LD_F77 \ 15541 lt_prog_compiler_wl_F77 \ 15542 lt_prog_compiler_pic_F77 \ 15543 lt_prog_compiler_static_F77 \ 15544 lt_prog_compiler_no_builtin_flag_F77 \ 15545 export_dynamic_flag_spec_F77 \ 15546 thread_safe_flag_spec_F77 \ 15547 whole_archive_flag_spec_F77 \ 15548 enable_shared_with_static_runtimes_F77 \ 15549 old_archive_cmds_F77 \ 15550 old_archive_from_new_cmds_F77 \ 15551 predep_objects_F77 \ 15552 postdep_objects_F77 \ 15553 predeps_F77 \ 15554 postdeps_F77 \ 15555 compiler_lib_search_path_F77 \ 15556 archive_cmds_F77 \ 15557 archive_expsym_cmds_F77 \ 15558 postinstall_cmds_F77 \ 15559 postuninstall_cmds_F77 \ 15560 old_archive_from_expsyms_cmds_F77 \ 15561 allow_undefined_flag_F77 \ 15562 no_undefined_flag_F77 \ 15563 export_symbols_cmds_F77 \ 15564 hardcode_libdir_flag_spec_F77 \ 15565 hardcode_libdir_flag_spec_ld_F77 \ 15566 hardcode_libdir_separator_F77 \ 15567 hardcode_automatic_F77 \ 15568 module_cmds_F77 \ 15569 module_expsym_cmds_F77 \ 15570 lt_cv_prog_compiler_c_o_F77 \ 15571 exclude_expsyms_F77 \ 15572 include_expsyms_F77; do 15573 15574 case $var in 15575 old_archive_cmds_F77 | \ 15576 old_archive_from_new_cmds_F77 | \ 15577 archive_cmds_F77 | \ 15578 archive_expsym_cmds_F77 | \ 15579 module_cmds_F77 | \ 15580 module_expsym_cmds_F77 | \ 15581 old_archive_from_expsyms_cmds_F77 | \ 15582 export_symbols_cmds_F77 | \ 15583 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15584 postinstall_cmds | postuninstall_cmds | \ 15585 old_postinstall_cmds | old_postuninstall_cmds | \ 15586 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15587 # Double-quote double-evaled strings. 15588 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15589 ;; 15590 *) 15591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15592 ;; 15593 esac 15594 done 15595 15596 case $lt_echo in 15597 *'\$0 --fallback-echo"') 15598 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15599 ;; 15600 esac 15601 15602cfgfile="$ofile" 15603 15604 cat <<__EOF__ >> "$cfgfile" 15605# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15606 15607# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15608 15609# Shell to use when invoking shell scripts. 15610SHELL=$lt_SHELL 15611 15612# Whether or not to build shared libraries. 15613build_libtool_libs=$enable_shared 15614 15615# Whether or not to build static libraries. 15616build_old_libs=$enable_static 15617 15618# Whether or not to add -lc for building shared libraries. 15619build_libtool_need_lc=$archive_cmds_need_lc_F77 15620 15621# Whether or not to disallow shared libs when runtime libs are static 15622allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15623 15624# Whether or not to optimize for fast installation. 15625fast_install=$enable_fast_install 15626 15627# The host system. 15628host_alias=$host_alias 15629host=$host 15630host_os=$host_os 15631 15632# The build system. 15633build_alias=$build_alias 15634build=$build 15635build_os=$build_os 15636 15637# An echo program that does not interpret backslashes. 15638echo=$lt_echo 15639 15640# The archiver. 15641AR=$lt_AR 15642AR_FLAGS=$lt_AR_FLAGS 15643 15644# A C compiler. 15645LTCC=$lt_LTCC 15646 15647# A language-specific compiler. 15648CC=$lt_compiler_F77 15649 15650# Is the compiler the GNU C compiler? 15651with_gcc=$GCC_F77 15652 15653# An ERE matcher. 15654EGREP=$lt_EGREP 15655 15656# The linker used to build libraries. 15657LD=$lt_LD_F77 15658 15659# Whether we need hard or soft links. 15660LN_S=$lt_LN_S 15661 15662# A BSD-compatible nm program. 15663NM=$lt_NM 15664 15665# A symbol stripping program 15666STRIP=$lt_STRIP 15667 15668# Used to examine libraries when file_magic_cmd begins "file" 15669MAGIC_CMD=$MAGIC_CMD 15670 15671# Used on cygwin: DLL creation program. 15672DLLTOOL="$DLLTOOL" 15673 15674# Used on cygwin: object dumper. 15675OBJDUMP="$OBJDUMP" 15676 15677# Used on cygwin: assembler. 15678AS="$AS" 15679 15680# The name of the directory that contains temporary libtool files. 15681objdir=$objdir 15682 15683# How to create reloadable object files. 15684reload_flag=$lt_reload_flag 15685reload_cmds=$lt_reload_cmds 15686 15687# How to pass a linker flag through the compiler. 15688wl=$lt_lt_prog_compiler_wl_F77 15689 15690# Object file suffix (normally "o"). 15691objext="$ac_objext" 15692 15693# Old archive suffix (normally "a"). 15694libext="$libext" 15695 15696# Shared library suffix (normally ".so"). 15697shrext_cmds='$shrext_cmds' 15698 15699# Executable file suffix (normally ""). 15700exeext="$exeext" 15701 15702# Additional compiler flags for building library objects. 15703pic_flag=$lt_lt_prog_compiler_pic_F77 15704pic_mode=$pic_mode 15705 15706# What is the maximum length of a command? 15707max_cmd_len=$lt_cv_sys_max_cmd_len 15708 15709# Does compiler simultaneously support -c and -o options? 15710compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15711 15712# Must we lock files when doing compilation? 15713need_locks=$lt_need_locks 15714 15715# Do we need the lib prefix for modules? 15716need_lib_prefix=$need_lib_prefix 15717 15718# Do we need a version for libraries? 15719need_version=$need_version 15720 15721# Whether dlopen is supported. 15722dlopen_support=$enable_dlopen 15723 15724# Whether dlopen of programs is supported. 15725dlopen_self=$enable_dlopen_self 15726 15727# Whether dlopen of statically linked programs is supported. 15728dlopen_self_static=$enable_dlopen_self_static 15729 15730# Compiler flag to prevent dynamic linking. 15731link_static_flag=$lt_lt_prog_compiler_static_F77 15732 15733# Compiler flag to turn off builtin functions. 15734no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15735 15736# Compiler flag to allow reflexive dlopens. 15737export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15738 15739# Compiler flag to generate shared objects directly from archives. 15740whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15741 15742# Compiler flag to generate thread-safe objects. 15743thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15744 15745# Library versioning type. 15746version_type=$version_type 15747 15748# Format of library name prefix. 15749libname_spec=$lt_libname_spec 15750 15751# List of archive names. First name is the real one, the rest are links. 15752# The last name is the one that the linker finds with -lNAME. 15753library_names_spec=$lt_library_names_spec 15754 15755# The coded name of the library, if different from the real name. 15756soname_spec=$lt_soname_spec 15757 15758# Commands used to build and install an old-style archive. 15759RANLIB=$lt_RANLIB 15760old_archive_cmds=$lt_old_archive_cmds_F77 15761old_postinstall_cmds=$lt_old_postinstall_cmds 15762old_postuninstall_cmds=$lt_old_postuninstall_cmds 15763 15764# Create an old-style archive from a shared archive. 15765old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15766 15767# Create a temporary old-style archive to link instead of a shared archive. 15768old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15769 15770# Commands used to build and install a shared archive. 15771archive_cmds=$lt_archive_cmds_F77 15772archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15773postinstall_cmds=$lt_postinstall_cmds 15774postuninstall_cmds=$lt_postuninstall_cmds 15775 15776# Commands used to build a loadable module (assumed same as above if empty) 15777module_cmds=$lt_module_cmds_F77 15778module_expsym_cmds=$lt_module_expsym_cmds_F77 15779 15780# Commands to strip libraries. 15781old_striplib=$lt_old_striplib 15782striplib=$lt_striplib 15783 15784# Dependencies to place before the objects being linked to create a 15785# shared library. 15786predep_objects=$lt_predep_objects_F77 15787 15788# Dependencies to place after the objects being linked to create a 15789# shared library. 15790postdep_objects=$lt_postdep_objects_F77 15791 15792# Dependencies to place before the objects being linked to create a 15793# shared library. 15794predeps=$lt_predeps_F77 15795 15796# Dependencies to place after the objects being linked to create a 15797# shared library. 15798postdeps=$lt_postdeps_F77 15799 15800# The library search path used internally by the compiler when linking 15801# a shared library. 15802compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15803 15804# Method to check whether dependent libraries are shared objects. 15805deplibs_check_method=$lt_deplibs_check_method 15806 15807# Command to use when deplibs_check_method == file_magic. 15808file_magic_cmd=$lt_file_magic_cmd 15809 15810# Flag that allows shared libraries with undefined symbols to be built. 15811allow_undefined_flag=$lt_allow_undefined_flag_F77 15812 15813# Flag that forces no undefined symbols. 15814no_undefined_flag=$lt_no_undefined_flag_F77 15815 15816# Commands used to finish a libtool library installation in a directory. 15817finish_cmds=$lt_finish_cmds 15818 15819# Same as above, but a single script fragment to be evaled but not shown. 15820finish_eval=$lt_finish_eval 15821 15822# Take the output of nm and produce a listing of raw symbols and C names. 15823global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15824 15825# Transform the output of nm in a proper C declaration 15826global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15827 15828# Transform the output of nm in a C name address pair 15829global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15830 15831# This is the shared library runtime path variable. 15832runpath_var=$runpath_var 15833 15834# This is the shared library path variable. 15835shlibpath_var=$shlibpath_var 15836 15837# Is shlibpath searched before the hard-coded library search path? 15838shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15839 15840# How to hardcode a shared library path into an executable. 15841hardcode_action=$hardcode_action_F77 15842 15843# Whether we should hardcode library paths into libraries. 15844hardcode_into_libs=$hardcode_into_libs 15845 15846# Flag to hardcode \$libdir into a binary during linking. 15847# This must work even if \$libdir does not exist. 15848hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15849 15850# If ld is used when linking, flag to hardcode \$libdir into 15851# a binary during linking. This must work even if \$libdir does 15852# not exist. 15853hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15854 15855# Whether we need a single -rpath flag with a separated argument. 15856hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15857 15858# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15859# resulting binary. 15860hardcode_direct=$hardcode_direct_F77 15861 15862# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15863# resulting binary. 15864hardcode_minus_L=$hardcode_minus_L_F77 15865 15866# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15867# the resulting binary. 15868hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15869 15870# Set to yes if building a shared library automatically hardcodes DIR into the library 15871# and all subsequent libraries and executables linked against it. 15872hardcode_automatic=$hardcode_automatic_F77 15873 15874# Variables whose values should be saved in libtool wrapper scripts and 15875# restored at relink time. 15876variables_saved_for_relink="$variables_saved_for_relink" 15877 15878# Whether libtool must link a program against all its dependency libraries. 15879link_all_deplibs=$link_all_deplibs_F77 15880 15881# Compile-time system search path for libraries 15882sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15883 15884# Run-time system search path for libraries 15885sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15886 15887# Fix the shell variable \$srcfile for the compiler. 15888fix_srcfile_path="$fix_srcfile_path_F77" 15889 15890# Set to yes if exported symbols are required. 15891always_export_symbols=$always_export_symbols_F77 15892 15893# The commands to list exported symbols. 15894export_symbols_cmds=$lt_export_symbols_cmds_F77 15895 15896# The commands to extract the exported symbol list from a shared archive. 15897extract_expsyms_cmds=$lt_extract_expsyms_cmds 15898 15899# Symbols that should not be listed in the preloaded symbols. 15900exclude_expsyms=$lt_exclude_expsyms_F77 15901 15902# Symbols that must always be exported. 15903include_expsyms=$lt_include_expsyms_F77 15904 15905# ### END LIBTOOL TAG CONFIG: $tagname 15906 15907__EOF__ 15908 15909 15910else 15911 # If there is no Makefile yet, we rely on a make rule to execute 15912 # `config.status --recheck' to rerun these tests and create the 15913 # libtool script then. 15914 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15915 if test -f "$ltmain_in"; then 15916 test -f Makefile && make "$ltmain" 15917 fi 15918fi 15919 15920 15921ac_ext=c 15922ac_cpp='$CPP $CPPFLAGS' 15923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15925ac_compiler_gnu=$ac_cv_c_compiler_gnu 15926 15927CC="$lt_save_CC" 15928 15929 else 15930 tagname="" 15931 fi 15932 ;; 15933 15934 GCJ) 15935 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15936 15937 15938 15939# Source file extension for Java test sources. 15940ac_ext=java 15941 15942# Object file extension for compiled Java test sources. 15943objext=o 15944objext_GCJ=$objext 15945 15946# Code to be used in simple compile tests 15947lt_simple_compile_test_code="class foo {}\n" 15948 15949# Code to be used in simple link tests 15950lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15951 15952# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15953 15954# If no C compiler was specified, use CC. 15955LTCC=${LTCC-"$CC"} 15956 15957# Allow CC to be a program name with arguments. 15958compiler=$CC 15959 15960 15961# save warnings/boilerplate of simple test code 15962ac_outfile=conftest.$ac_objext 15963printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15964eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 15965_lt_compiler_boilerplate=`cat conftest.err` 15966$rm conftest* 15967 15968ac_outfile=conftest.$ac_objext 15969printf "$lt_simple_link_test_code" >conftest.$ac_ext 15970eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 15971_lt_linker_boilerplate=`cat conftest.err` 15972$rm conftest* 15973 15974 15975# Allow CC to be a program name with arguments. 15976lt_save_CC="$CC" 15977CC=${GCJ-"gcj"} 15978compiler=$CC 15979compiler_GCJ=$CC 15980for cc_temp in $compiler""; do 15981 case $cc_temp in 15982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15984 \-*) ;; 15985 *) break;; 15986 esac 15987done 15988cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15989 15990 15991# GCJ did not exist at the time GCC didn't implicitly link libc in. 15992archive_cmds_need_lc_GCJ=no 15993 15994old_archive_cmds_GCJ=$old_archive_cmds 15995 15996 15997lt_prog_compiler_no_builtin_flag_GCJ= 15998 15999if test "$GCC" = yes; then 16000 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16001 16002 16003echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16004echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16005if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16006 echo $ECHO_N "(cached) $ECHO_C" >&6 16007else 16008 lt_cv_prog_compiler_rtti_exceptions=no 16009 ac_outfile=conftest.$ac_objext 16010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16011 lt_compiler_flag="-fno-rtti -fno-exceptions" 16012 # Insert the option either (1) after the last *FLAGS variable, or 16013 # (2) before a word containing "conftest.", or (3) at the end. 16014 # Note that $ac_compile itself does not contain backslashes and begins 16015 # with a dollar sign (not a hyphen), so the echo should work correctly. 16016 # The option is referenced via a variable to avoid confusing sed. 16017 lt_compile=`echo "$ac_compile" | $SED \ 16018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16020 -e 's:$: $lt_compiler_flag:'` 16021 (eval echo "\"\$as_me:16021: $lt_compile\"" >&5) 16022 (eval "$lt_compile" 2>conftest.err) 16023 ac_status=$? 16024 cat conftest.err >&5 16025 echo "$as_me:16025: \$? = $ac_status" >&5 16026 if (exit $ac_status) && test -s "$ac_outfile"; then 16027 # The compiler can only warn and ignore the option if not recognized 16028 # So say no if there are warnings other than the usual output. 16029 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16030 $SED '/^$/d' conftest.err >conftest.er2 16031 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16032 lt_cv_prog_compiler_rtti_exceptions=yes 16033 fi 16034 fi 16035 $rm conftest* 16036 16037fi 16038echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16039echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16040 16041if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16042 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16043else 16044 : 16045fi 16046 16047fi 16048 16049lt_prog_compiler_wl_GCJ= 16050lt_prog_compiler_pic_GCJ= 16051lt_prog_compiler_static_GCJ= 16052 16053echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16054echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16055 16056 if test "$GCC" = yes; then 16057 lt_prog_compiler_wl_GCJ='-Wl,' 16058 lt_prog_compiler_static_GCJ='-static' 16059 16060 case $host_os in 16061 aix*) 16062 # All AIX code is PIC. 16063 if test "$host_cpu" = ia64; then 16064 # AIX 5 now supports IA64 processor 16065 lt_prog_compiler_static_GCJ='-Bstatic' 16066 fi 16067 ;; 16068 16069 amigaos*) 16070 # FIXME: we need at least 68020 code to build shared libraries, but 16071 # adding the `-m68020' flag to GCC prevents building anything better, 16072 # like `-m68040'. 16073 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16074 ;; 16075 16076 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16077 # PIC is the default for these OSes. 16078 ;; 16079 16080 mingw* | pw32* | os2*) 16081 # This hack is so that the source file can tell whether it is being 16082 # built for inclusion in a dll (and should export symbols for example). 16083 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16084 ;; 16085 16086 darwin* | rhapsody*) 16087 # PIC is the default on this platform 16088 # Common symbols not allowed in MH_DYLIB files 16089 lt_prog_compiler_pic_GCJ='-fno-common' 16090 ;; 16091 16092 msdosdjgpp*) 16093 # Just because we use GCC doesn't mean we suddenly get shared libraries 16094 # on systems that don't support them. 16095 lt_prog_compiler_can_build_shared_GCJ=no 16096 enable_shared=no 16097 ;; 16098 16099 sysv4*MP*) 16100 if test -d /usr/nec; then 16101 lt_prog_compiler_pic_GCJ=-Kconform_pic 16102 fi 16103 ;; 16104 16105 hpux*) 16106 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16107 # not for PA HP-UX. 16108 case $host_cpu in 16109 hppa*64*|ia64*) 16110 # +Z the default 16111 ;; 16112 *) 16113 lt_prog_compiler_pic_GCJ='-fPIC' 16114 ;; 16115 esac 16116 ;; 16117 16118 *) 16119 lt_prog_compiler_pic_GCJ='-fPIC' 16120 ;; 16121 esac 16122 else 16123 # PORTME Check for flag to pass linker flags through the system compiler. 16124 case $host_os in 16125 aix*) 16126 lt_prog_compiler_wl_GCJ='-Wl,' 16127 if test "$host_cpu" = ia64; then 16128 # AIX 5 now supports IA64 processor 16129 lt_prog_compiler_static_GCJ='-Bstatic' 16130 else 16131 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16132 fi 16133 ;; 16134 darwin*) 16135 # PIC is the default on this platform 16136 # Common symbols not allowed in MH_DYLIB files 16137 case $cc_basename in 16138 xlc*) 16139 lt_prog_compiler_pic_GCJ='-qnocommon' 16140 lt_prog_compiler_wl_GCJ='-Wl,' 16141 ;; 16142 esac 16143 ;; 16144 16145 mingw* | pw32* | os2*) 16146 # This hack is so that the source file can tell whether it is being 16147 # built for inclusion in a dll (and should export symbols for example). 16148 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16149 ;; 16150 16151 hpux9* | hpux10* | hpux11*) 16152 lt_prog_compiler_wl_GCJ='-Wl,' 16153 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16154 # not for PA HP-UX. 16155 case $host_cpu in 16156 hppa*64*|ia64*) 16157 # +Z the default 16158 ;; 16159 *) 16160 lt_prog_compiler_pic_GCJ='+Z' 16161 ;; 16162 esac 16163 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16164 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16165 ;; 16166 16167 irix5* | irix6* | nonstopux*) 16168 lt_prog_compiler_wl_GCJ='-Wl,' 16169 # PIC (with -KPIC) is the default. 16170 lt_prog_compiler_static_GCJ='-non_shared' 16171 ;; 16172 16173 newsos6) 16174 lt_prog_compiler_pic_GCJ='-KPIC' 16175 lt_prog_compiler_static_GCJ='-Bstatic' 16176 ;; 16177 16178 linux*) 16179 case $cc_basename in 16180 icc* | ecc*) 16181 lt_prog_compiler_wl_GCJ='-Wl,' 16182 lt_prog_compiler_pic_GCJ='-KPIC' 16183 lt_prog_compiler_static_GCJ='-static' 16184 ;; 16185 pgcc* | pgf77* | pgf90* | pgf95*) 16186 # Portland Group compilers (*not* the Pentium gcc compiler, 16187 # which looks to be a dead project) 16188 lt_prog_compiler_wl_GCJ='-Wl,' 16189 lt_prog_compiler_pic_GCJ='-fpic' 16190 lt_prog_compiler_static_GCJ='-Bstatic' 16191 ;; 16192 ccc*) 16193 lt_prog_compiler_wl_GCJ='-Wl,' 16194 # All Alpha code is PIC. 16195 lt_prog_compiler_static_GCJ='-non_shared' 16196 ;; 16197 esac 16198 ;; 16199 16200 osf3* | osf4* | osf5*) 16201 lt_prog_compiler_wl_GCJ='-Wl,' 16202 # All OSF/1 code is PIC. 16203 lt_prog_compiler_static_GCJ='-non_shared' 16204 ;; 16205 16206 sco3.2v5*) 16207 lt_prog_compiler_pic_GCJ='-Kpic' 16208 lt_prog_compiler_static_GCJ='-dn' 16209 ;; 16210 16211 solaris*) 16212 lt_prog_compiler_pic_GCJ='-KPIC' 16213 lt_prog_compiler_static_GCJ='-Bstatic' 16214 case $cc_basename in 16215 f77* | f90* | f95*) 16216 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16217 *) 16218 lt_prog_compiler_wl_GCJ='-Wl,';; 16219 esac 16220 ;; 16221 16222 sunos4*) 16223 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16224 lt_prog_compiler_pic_GCJ='-PIC' 16225 lt_prog_compiler_static_GCJ='-Bstatic' 16226 ;; 16227 16228 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16229 lt_prog_compiler_wl_GCJ='-Wl,' 16230 lt_prog_compiler_pic_GCJ='-KPIC' 16231 lt_prog_compiler_static_GCJ='-Bstatic' 16232 ;; 16233 16234 sysv4*MP*) 16235 if test -d /usr/nec ;then 16236 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16237 lt_prog_compiler_static_GCJ='-Bstatic' 16238 fi 16239 ;; 16240 16241 unicos*) 16242 lt_prog_compiler_wl_GCJ='-Wl,' 16243 lt_prog_compiler_can_build_shared_GCJ=no 16244 ;; 16245 16246 uts4*) 16247 lt_prog_compiler_pic_GCJ='-pic' 16248 lt_prog_compiler_static_GCJ='-Bstatic' 16249 ;; 16250 16251 *) 16252 lt_prog_compiler_can_build_shared_GCJ=no 16253 ;; 16254 esac 16255 fi 16256 16257echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16258echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16259 16260# 16261# Check to make sure the PIC flag actually works. 16262# 16263if test -n "$lt_prog_compiler_pic_GCJ"; then 16264 16265echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16266echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16267if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16268 echo $ECHO_N "(cached) $ECHO_C" >&6 16269else 16270 lt_prog_compiler_pic_works_GCJ=no 16271 ac_outfile=conftest.$ac_objext 16272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16273 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16274 # Insert the option either (1) after the last *FLAGS variable, or 16275 # (2) before a word containing "conftest.", or (3) at the end. 16276 # Note that $ac_compile itself does not contain backslashes and begins 16277 # with a dollar sign (not a hyphen), so the echo should work correctly. 16278 # The option is referenced via a variable to avoid confusing sed. 16279 lt_compile=`echo "$ac_compile" | $SED \ 16280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16282 -e 's:$: $lt_compiler_flag:'` 16283 (eval echo "\"\$as_me:16283: $lt_compile\"" >&5) 16284 (eval "$lt_compile" 2>conftest.err) 16285 ac_status=$? 16286 cat conftest.err >&5 16287 echo "$as_me:16287: \$? = $ac_status" >&5 16288 if (exit $ac_status) && test -s "$ac_outfile"; then 16289 # The compiler can only warn and ignore the option if not recognized 16290 # So say no if there are warnings other than the usual output. 16291 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16292 $SED '/^$/d' conftest.err >conftest.er2 16293 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16294 lt_prog_compiler_pic_works_GCJ=yes 16295 fi 16296 fi 16297 $rm conftest* 16298 16299fi 16300echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16301echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16302 16303if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16304 case $lt_prog_compiler_pic_GCJ in 16305 "" | " "*) ;; 16306 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16307 esac 16308else 16309 lt_prog_compiler_pic_GCJ= 16310 lt_prog_compiler_can_build_shared_GCJ=no 16311fi 16312 16313fi 16314case $host_os in 16315 # For platforms which do not support PIC, -DPIC is meaningless: 16316 *djgpp*) 16317 lt_prog_compiler_pic_GCJ= 16318 ;; 16319 *) 16320 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16321 ;; 16322esac 16323 16324echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16325echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16326if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16327 echo $ECHO_N "(cached) $ECHO_C" >&6 16328else 16329 lt_cv_prog_compiler_c_o_GCJ=no 16330 $rm -r conftest 2>/dev/null 16331 mkdir conftest 16332 cd conftest 16333 mkdir out 16334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16335 16336 lt_compiler_flag="-o out/conftest2.$ac_objext" 16337 # Insert the option either (1) after the last *FLAGS variable, or 16338 # (2) before a word containing "conftest.", or (3) at the end. 16339 # Note that $ac_compile itself does not contain backslashes and begins 16340 # with a dollar sign (not a hyphen), so the echo should work correctly. 16341 lt_compile=`echo "$ac_compile" | $SED \ 16342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16344 -e 's:$: $lt_compiler_flag:'` 16345 (eval echo "\"\$as_me:16345: $lt_compile\"" >&5) 16346 (eval "$lt_compile" 2>out/conftest.err) 16347 ac_status=$? 16348 cat out/conftest.err >&5 16349 echo "$as_me:16349: \$? = $ac_status" >&5 16350 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16351 then 16352 # The compiler can only warn and ignore the option if not recognized 16353 # So say no if there are warnings 16354 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 16355 $SED '/^$/d' out/conftest.err >out/conftest.er2 16356 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16357 lt_cv_prog_compiler_c_o_GCJ=yes 16358 fi 16359 fi 16360 chmod u+w . 2>&5 16361 $rm conftest* 16362 # SGI C++ compiler will create directory out/ii_files/ for 16363 # template instantiation 16364 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16365 $rm out/* && rmdir out 16366 cd .. 16367 rmdir conftest 16368 $rm conftest* 16369 16370fi 16371echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16372echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16373 16374 16375hard_links="nottested" 16376if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16377 # do not overwrite the value of need_locks provided by the user 16378 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16379echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16380 hard_links=yes 16381 $rm conftest* 16382 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16383 touch conftest.a 16384 ln conftest.a conftest.b 2>&5 || hard_links=no 16385 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16386 echo "$as_me:$LINENO: result: $hard_links" >&5 16387echo "${ECHO_T}$hard_links" >&6 16388 if test "$hard_links" = no; then 16389 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16390echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16391 need_locks=warn 16392 fi 16393else 16394 need_locks=no 16395fi 16396 16397echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16398echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16399 16400 runpath_var= 16401 allow_undefined_flag_GCJ= 16402 enable_shared_with_static_runtimes_GCJ=no 16403 archive_cmds_GCJ= 16404 archive_expsym_cmds_GCJ= 16405 old_archive_From_new_cmds_GCJ= 16406 old_archive_from_expsyms_cmds_GCJ= 16407 export_dynamic_flag_spec_GCJ= 16408 whole_archive_flag_spec_GCJ= 16409 thread_safe_flag_spec_GCJ= 16410 hardcode_libdir_flag_spec_GCJ= 16411 hardcode_libdir_flag_spec_ld_GCJ= 16412 hardcode_libdir_separator_GCJ= 16413 hardcode_direct_GCJ=no 16414 hardcode_minus_L_GCJ=no 16415 hardcode_shlibpath_var_GCJ=unsupported 16416 link_all_deplibs_GCJ=unknown 16417 hardcode_automatic_GCJ=no 16418 module_cmds_GCJ= 16419 module_expsym_cmds_GCJ= 16420 always_export_symbols_GCJ=no 16421 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16422 # include_expsyms should be a list of space-separated symbols to be *always* 16423 # included in the symbol list 16424 include_expsyms_GCJ= 16425 # exclude_expsyms can be an extended regexp of symbols to exclude 16426 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16427 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16428 # as well as any symbol that contains `d'. 16429 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16430 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16431 # platforms (ab)use it in PIC code, but their linkers get confused if 16432 # the symbol is explicitly referenced. Since portable code cannot 16433 # rely on this symbol name, it's probably fine to never include it in 16434 # preloaded symbol tables. 16435 extract_expsyms_cmds= 16436 # Just being paranoid about ensuring that cc_basename is set. 16437 for cc_temp in $compiler""; do 16438 case $cc_temp in 16439 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16440 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16441 \-*) ;; 16442 *) break;; 16443 esac 16444done 16445cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16446 16447 case $host_os in 16448 cygwin* | mingw* | pw32*) 16449 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16450 # When not using gcc, we currently assume that we are using 16451 # Microsoft Visual C++. 16452 if test "$GCC" != yes; then 16453 with_gnu_ld=no 16454 fi 16455 ;; 16456 openbsd*) 16457 with_gnu_ld=no 16458 ;; 16459 esac 16460 16461 ld_shlibs_GCJ=yes 16462 if test "$with_gnu_ld" = yes; then 16463 # If archive_cmds runs LD, not CC, wlarc should be empty 16464 wlarc='${wl}' 16465 16466 # Set some defaults for GNU ld with shared library support. These 16467 # are reset later if shared libraries are not supported. Putting them 16468 # here allows them to be overridden if necessary. 16469 runpath_var=LD_RUN_PATH 16470 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16471 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16472 # ancient GNU ld didn't support --whole-archive et. al. 16473 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16474 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16475 else 16476 whole_archive_flag_spec_GCJ= 16477 fi 16478 supports_anon_versioning=no 16479 case `$LD -v 2>/dev/null` in 16480 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16481 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16482 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16483 *\ 2.11.*) ;; # other 2.11 versions 16484 *) supports_anon_versioning=yes ;; 16485 esac 16486 16487 # See if GNU ld supports shared libraries. 16488 case $host_os in 16489 aix3* | aix4* | aix5*) 16490 # On AIX/PPC, the GNU linker is very broken 16491 if test "$host_cpu" != ia64; then 16492 ld_shlibs_GCJ=no 16493 cat <<EOF 1>&2 16494 16495*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16496*** to be unable to reliably create shared libraries on AIX. 16497*** Therefore, libtool is disabling shared libraries support. If you 16498*** really care for shared libraries, you may want to modify your PATH 16499*** so that a non-GNU linker is found, and then restart. 16500 16501EOF 16502 fi 16503 ;; 16504 16505 amigaos*) 16506 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)' 16507 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16508 hardcode_minus_L_GCJ=yes 16509 16510 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16511 # that the semantics of dynamic libraries on AmigaOS, at least up 16512 # to version 4, is to share data among multiple programs linked 16513 # with the same dynamic library. Since this doesn't match the 16514 # behavior of shared libraries on other platforms, we can't use 16515 # them. 16516 ld_shlibs_GCJ=no 16517 ;; 16518 16519 beos*) 16520 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16521 allow_undefined_flag_GCJ=unsupported 16522 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16523 # support --undefined. This deserves some investigation. FIXME 16524 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16525 else 16526 ld_shlibs_GCJ=no 16527 fi 16528 ;; 16529 16530 cygwin* | mingw* | pw32*) 16531 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16532 # as there is no search path for DLLs. 16533 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16534 allow_undefined_flag_GCJ=unsupported 16535 always_export_symbols_GCJ=no 16536 enable_shared_with_static_runtimes_GCJ=yes 16537 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16538 16539 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16540 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16541 # If the export-symbols file already is a .def file (1st line 16542 # is EXPORTS), use it as is; otherwise, prepend... 16543 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16544 cp $export_symbols $output_objdir/$soname.def; 16545 else 16546 echo EXPORTS > $output_objdir/$soname.def; 16547 cat $export_symbols >> $output_objdir/$soname.def; 16548 fi~ 16549 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16550 else 16551 ld_shlibs_GCJ=no 16552 fi 16553 ;; 16554 16555 linux*) 16556 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16557 tmp_addflag= 16558 case $cc_basename,$host_cpu in 16559 pgcc*) # Portland Group C compiler 16560 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' 16561 tmp_addflag=' $pic_flag' 16562 ;; 16563 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16564 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' 16565 tmp_addflag=' $pic_flag -Mnomain' ;; 16566 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16567 tmp_addflag=' -i_dynamic' ;; 16568 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16569 tmp_addflag=' -i_dynamic -nofor_main' ;; 16570 ifc* | ifort*) # Intel Fortran compiler 16571 tmp_addflag=' -nofor_main' ;; 16572 esac 16573 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16574 16575 if test $supports_anon_versioning = yes; then 16576 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16578 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16579 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16580 fi 16581 else 16582 ld_shlibs_GCJ=no 16583 fi 16584 ;; 16585 16586 netbsd*) 16587 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16588 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16589 wlarc= 16590 else 16591 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16592 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16593 fi 16594 ;; 16595 16596 solaris* | sysv5*) 16597 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16598 ld_shlibs_GCJ=no 16599 cat <<EOF 1>&2 16600 16601*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16602*** create shared libraries on Solaris systems. Therefore, libtool 16603*** is disabling shared libraries support. We urge you to upgrade GNU 16604*** binutils to release 2.9.1 or newer. Another option is to modify 16605*** your PATH or compiler configuration so that the native linker is 16606*** used, and then restart. 16607 16608EOF 16609 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16610 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16611 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16612 else 16613 ld_shlibs_GCJ=no 16614 fi 16615 ;; 16616 16617 sunos4*) 16618 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16619 wlarc= 16620 hardcode_direct_GCJ=yes 16621 hardcode_shlibpath_var_GCJ=no 16622 ;; 16623 16624 *) 16625 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16626 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16627 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16628 else 16629 ld_shlibs_GCJ=no 16630 fi 16631 ;; 16632 esac 16633 16634 if test "$ld_shlibs_GCJ" = no; then 16635 runpath_var= 16636 hardcode_libdir_flag_spec_GCJ= 16637 export_dynamic_flag_spec_GCJ= 16638 whole_archive_flag_spec_GCJ= 16639 fi 16640 else 16641 # PORTME fill in a description of your system's linker (not GNU ld) 16642 case $host_os in 16643 aix3*) 16644 allow_undefined_flag_GCJ=unsupported 16645 always_export_symbols_GCJ=yes 16646 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' 16647 # Note: this linker hardcodes the directories in LIBPATH if there 16648 # are no directories specified by -L. 16649 hardcode_minus_L_GCJ=yes 16650 if test "$GCC" = yes && test -z "$link_static_flag"; then 16651 # Neither direct hardcoding nor static linking is supported with a 16652 # broken collect2. 16653 hardcode_direct_GCJ=unsupported 16654 fi 16655 ;; 16656 16657 aix4* | aix5*) 16658 if test "$host_cpu" = ia64; then 16659 # On IA64, the linker does run time linking by default, so we don't 16660 # have to do anything special. 16661 aix_use_runtimelinking=no 16662 exp_sym_flag='-Bexport' 16663 no_entry_flag="" 16664 else 16665 # If we're using GNU nm, then we don't want the "-C" option. 16666 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16667 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16668 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' 16669 else 16670 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' 16671 fi 16672 aix_use_runtimelinking=no 16673 16674 # Test if we are trying to use run time linking or normal 16675 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16676 # need to do runtime linking. 16677 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16678 for ld_flag in $LDFLAGS; do 16679 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16680 aix_use_runtimelinking=yes 16681 break 16682 fi 16683 done 16684 esac 16685 16686 exp_sym_flag='-bexport' 16687 no_entry_flag='-bnoentry' 16688 fi 16689 16690 # When large executables or shared objects are built, AIX ld can 16691 # have problems creating the table of contents. If linking a library 16692 # or program results in "error TOC overflow" add -mminimal-toc to 16693 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16694 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16695 16696 archive_cmds_GCJ='' 16697 hardcode_direct_GCJ=yes 16698 hardcode_libdir_separator_GCJ=':' 16699 link_all_deplibs_GCJ=yes 16700 16701 if test "$GCC" = yes; then 16702 case $host_os in aix4.[012]|aix4.[012].*) 16703 # We only want to do this on AIX 4.2 and lower, the check 16704 # below for broken collect2 doesn't work under 4.3+ 16705 collect2name=`${CC} -print-prog-name=collect2` 16706 if test -f "$collect2name" && \ 16707 strings "$collect2name" | grep resolve_lib_name >/dev/null 16708 then 16709 # We have reworked collect2 16710 hardcode_direct_GCJ=yes 16711 else 16712 # We have old collect2 16713 hardcode_direct_GCJ=unsupported 16714 # It fails to find uninstalled libraries when the uninstalled 16715 # path is not listed in the libpath. Setting hardcode_minus_L 16716 # to unsupported forces relinking 16717 hardcode_minus_L_GCJ=yes 16718 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16719 hardcode_libdir_separator_GCJ= 16720 fi 16721 esac 16722 shared_flag='-shared' 16723 if test "$aix_use_runtimelinking" = yes; then 16724 shared_flag="$shared_flag "'${wl}-G' 16725 fi 16726 else 16727 # not using gcc 16728 if test "$host_cpu" = ia64; then 16729 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16730 # chokes on -Wl,-G. The following line is correct: 16731 shared_flag='-G' 16732 else 16733 if test "$aix_use_runtimelinking" = yes; then 16734 shared_flag='${wl}-G' 16735 else 16736 shared_flag='${wl}-bM:SRE' 16737 fi 16738 fi 16739 fi 16740 16741 # It seems that -bexpall does not export symbols beginning with 16742 # underscore (_), so it is better to generate a list of symbols to export. 16743 always_export_symbols_GCJ=yes 16744 if test "$aix_use_runtimelinking" = yes; then 16745 # Warning - without using the other runtime loading flags (-brtl), 16746 # -berok will link without error, but may produce a broken library. 16747 allow_undefined_flag_GCJ='-berok' 16748 # Determine the default libpath from the value encoded in an empty executable. 16749 cat >conftest.$ac_ext <<_ACEOF 16750/* confdefs.h. */ 16751_ACEOF 16752cat confdefs.h >>conftest.$ac_ext 16753cat >>conftest.$ac_ext <<_ACEOF 16754/* end confdefs.h. */ 16755 16756int 16757main () 16758{ 16759 16760 ; 16761 return 0; 16762} 16763_ACEOF 16764rm -f conftest.$ac_objext conftest$ac_exeext 16765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16766 (eval $ac_link) 2>conftest.er1 16767 ac_status=$? 16768 grep -v '^ *+' conftest.er1 >conftest.err 16769 rm -f conftest.er1 16770 cat conftest.err >&5 16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16772 (exit $ac_status); } && 16773 { ac_try='test -z "$ac_c_werror_flag" 16774 || test ! -s conftest.err' 16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16776 (eval $ac_try) 2>&5 16777 ac_status=$? 16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16779 (exit $ac_status); }; } && 16780 { ac_try='test -s conftest$ac_exeext' 16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16782 (eval $ac_try) 2>&5 16783 ac_status=$? 16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16785 (exit $ac_status); }; }; then 16786 16787aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16788}'` 16789# Check for a 64-bit object if we didn't find anything. 16790if 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; } 16791}'`; fi 16792else 16793 echo "$as_me: failed program was:" >&5 16794sed 's/^/| /' conftest.$ac_ext >&5 16795 16796fi 16797rm -f conftest.err conftest.$ac_objext \ 16798 conftest$ac_exeext conftest.$ac_ext 16799if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16800 16801 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16802 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16803 else 16804 if test "$host_cpu" = ia64; then 16805 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16806 allow_undefined_flag_GCJ="-z nodefs" 16807 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 16808 else 16809 # Determine the default libpath from the value encoded in an empty executable. 16810 cat >conftest.$ac_ext <<_ACEOF 16811/* confdefs.h. */ 16812_ACEOF 16813cat confdefs.h >>conftest.$ac_ext 16814cat >>conftest.$ac_ext <<_ACEOF 16815/* end confdefs.h. */ 16816 16817int 16818main () 16819{ 16820 16821 ; 16822 return 0; 16823} 16824_ACEOF 16825rm -f conftest.$ac_objext conftest$ac_exeext 16826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16827 (eval $ac_link) 2>conftest.er1 16828 ac_status=$? 16829 grep -v '^ *+' conftest.er1 >conftest.err 16830 rm -f conftest.er1 16831 cat conftest.err >&5 16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16833 (exit $ac_status); } && 16834 { ac_try='test -z "$ac_c_werror_flag" 16835 || test ! -s conftest.err' 16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16837 (eval $ac_try) 2>&5 16838 ac_status=$? 16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16840 (exit $ac_status); }; } && 16841 { ac_try='test -s conftest$ac_exeext' 16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16843 (eval $ac_try) 2>&5 16844 ac_status=$? 16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16846 (exit $ac_status); }; }; then 16847 16848aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16849}'` 16850# Check for a 64-bit object if we didn't find anything. 16851if 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; } 16852}'`; fi 16853else 16854 echo "$as_me: failed program was:" >&5 16855sed 's/^/| /' conftest.$ac_ext >&5 16856 16857fi 16858rm -f conftest.err conftest.$ac_objext \ 16859 conftest$ac_exeext conftest.$ac_ext 16860if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16861 16862 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16863 # Warning - without using the other run time loading flags, 16864 # -berok will link without error, but may produce a broken library. 16865 no_undefined_flag_GCJ=' ${wl}-bernotok' 16866 allow_undefined_flag_GCJ=' ${wl}-berok' 16867 # -bexpall does not export symbols beginning with underscore (_) 16868 always_export_symbols_GCJ=yes 16869 # Exported symbols can be pulled into shared objects from archives 16870 whole_archive_flag_spec_GCJ=' ' 16871 archive_cmds_need_lc_GCJ=yes 16872 # This is similar to how AIX traditionally builds its shared libraries. 16873 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16874 fi 16875 fi 16876 ;; 16877 16878 amigaos*) 16879 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)' 16880 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16881 hardcode_minus_L_GCJ=yes 16882 # see comment about different semantics on the GNU ld section 16883 ld_shlibs_GCJ=no 16884 ;; 16885 16886 bsdi[45]*) 16887 export_dynamic_flag_spec_GCJ=-rdynamic 16888 ;; 16889 16890 cygwin* | mingw* | pw32*) 16891 # When not using gcc, we currently assume that we are using 16892 # Microsoft Visual C++. 16893 # hardcode_libdir_flag_spec is actually meaningless, as there is 16894 # no search path for DLLs. 16895 hardcode_libdir_flag_spec_GCJ=' ' 16896 allow_undefined_flag_GCJ=unsupported 16897 # Tell ltmain to make .lib files, not .a files. 16898 libext=lib 16899 # Tell ltmain to make .dll files, not .so files. 16900 shrext_cmds=".dll" 16901 # FIXME: Setting linknames here is a bad hack. 16902 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16903 # The linker will automatically build a .lib file if we build a DLL. 16904 old_archive_From_new_cmds_GCJ='true' 16905 # FIXME: Should let the user specify the lib program. 16906 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16907 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16908 enable_shared_with_static_runtimes_GCJ=yes 16909 ;; 16910 16911 darwin* | rhapsody*) 16912 case $host_os in 16913 rhapsody* | darwin1.[012]) 16914 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16915 ;; 16916 *) # Darwin 1.3 on 16917 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16918 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16919 else 16920 case ${MACOSX_DEPLOYMENT_TARGET} in 16921 10.[012]) 16922 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16923 ;; 16924 10.*) 16925 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16926 ;; 16927 esac 16928 fi 16929 ;; 16930 esac 16931 archive_cmds_need_lc_GCJ=no 16932 hardcode_direct_GCJ=no 16933 hardcode_automatic_GCJ=yes 16934 hardcode_shlibpath_var_GCJ=unsupported 16935 whole_archive_flag_spec_GCJ='' 16936 link_all_deplibs_GCJ=yes 16937 if test "$GCC" = yes ; then 16938 output_verbose_link_cmd='echo' 16939 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16940 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16941 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16942 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}' 16943 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}' 16944 else 16945 case $cc_basename in 16946 xlc*) 16947 output_verbose_link_cmd='echo' 16948 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16949 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16950 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16951 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}' 16952 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}' 16953 ;; 16954 *) 16955 ld_shlibs_GCJ=no 16956 ;; 16957 esac 16958 fi 16959 ;; 16960 16961 dgux*) 16962 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16963 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16964 hardcode_shlibpath_var_GCJ=no 16965 ;; 16966 16967 freebsd1*) 16968 ld_shlibs_GCJ=no 16969 ;; 16970 16971 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16972 # support. Future versions do this automatically, but an explicit c++rt0.o 16973 # does not break anything, and helps significantly (at the cost of a little 16974 # extra space). 16975 freebsd2.2*) 16976 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16977 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16978 hardcode_direct_GCJ=yes 16979 hardcode_shlibpath_var_GCJ=no 16980 ;; 16981 16982 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16983 freebsd2*) 16984 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16985 hardcode_direct_GCJ=yes 16986 hardcode_minus_L_GCJ=yes 16987 hardcode_shlibpath_var_GCJ=no 16988 ;; 16989 16990 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16991 freebsd* | kfreebsd*-gnu | dragonfly*) 16992 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16993 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16994 hardcode_direct_GCJ=yes 16995 hardcode_shlibpath_var_GCJ=no 16996 ;; 16997 16998 hpux9*) 16999 if test "$GCC" = yes; then 17000 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' 17001 else 17002 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' 17003 fi 17004 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17005 hardcode_libdir_separator_GCJ=: 17006 hardcode_direct_GCJ=yes 17007 17008 # hardcode_minus_L: Not really in the search PATH, 17009 # but as the default location of the library. 17010 hardcode_minus_L_GCJ=yes 17011 export_dynamic_flag_spec_GCJ='${wl}-E' 17012 ;; 17013 17014 hpux10* | hpux11*) 17015 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17016 case $host_cpu in 17017 hppa*64*|ia64*) 17018 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17019 ;; 17020 *) 17021 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17022 ;; 17023 esac 17024 else 17025 case $host_cpu in 17026 hppa*64*|ia64*) 17027 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17028 ;; 17029 *) 17030 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17031 ;; 17032 esac 17033 fi 17034 if test "$with_gnu_ld" = no; then 17035 case $host_cpu in 17036 hppa*64*) 17037 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17038 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17039 hardcode_libdir_separator_GCJ=: 17040 hardcode_direct_GCJ=no 17041 hardcode_shlibpath_var_GCJ=no 17042 ;; 17043 ia64*) 17044 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17045 hardcode_direct_GCJ=no 17046 hardcode_shlibpath_var_GCJ=no 17047 17048 # hardcode_minus_L: Not really in the search PATH, 17049 # but as the default location of the library. 17050 hardcode_minus_L_GCJ=yes 17051 ;; 17052 *) 17053 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17054 hardcode_libdir_separator_GCJ=: 17055 hardcode_direct_GCJ=yes 17056 export_dynamic_flag_spec_GCJ='${wl}-E' 17057 17058 # hardcode_minus_L: Not really in the search PATH, 17059 # but as the default location of the library. 17060 hardcode_minus_L_GCJ=yes 17061 ;; 17062 esac 17063 fi 17064 ;; 17065 17066 irix5* | irix6* | nonstopux*) 17067 if test "$GCC" = yes; then 17068 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' 17069 else 17070 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' 17071 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17072 fi 17073 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17074 hardcode_libdir_separator_GCJ=: 17075 link_all_deplibs_GCJ=yes 17076 ;; 17077 17078 netbsd*) 17079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17080 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17081 else 17082 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17083 fi 17084 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17085 hardcode_direct_GCJ=yes 17086 hardcode_shlibpath_var_GCJ=no 17087 ;; 17088 17089 newsos6) 17090 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17091 hardcode_direct_GCJ=yes 17092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17093 hardcode_libdir_separator_GCJ=: 17094 hardcode_shlibpath_var_GCJ=no 17095 ;; 17096 17097 openbsd*) 17098 hardcode_direct_GCJ=yes 17099 hardcode_shlibpath_var_GCJ=no 17100 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17101 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17102 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17103 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17104 export_dynamic_flag_spec_GCJ='${wl}-E' 17105 else 17106 case $host_os in 17107 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17108 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17109 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17110 ;; 17111 *) 17112 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17113 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17114 ;; 17115 esac 17116 fi 17117 ;; 17118 17119 os2*) 17120 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17121 hardcode_minus_L_GCJ=yes 17122 allow_undefined_flag_GCJ=unsupported 17123 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' 17124 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17125 ;; 17126 17127 osf3*) 17128 if test "$GCC" = yes; then 17129 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17130 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' 17131 else 17132 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17133 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' 17134 fi 17135 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17136 hardcode_libdir_separator_GCJ=: 17137 ;; 17138 17139 osf4* | osf5*) # as osf3* with the addition of -msym flag 17140 if test "$GCC" = yes; then 17141 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17142 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' 17143 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17144 else 17145 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17146 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' 17147 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~ 17148 $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' 17149 17150 # Both c and cxx compiler support -rpath directly 17151 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17152 fi 17153 hardcode_libdir_separator_GCJ=: 17154 ;; 17155 17156 sco3.2v5*) 17157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17158 hardcode_shlibpath_var_GCJ=no 17159 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17160 runpath_var=LD_RUN_PATH 17161 hardcode_runpath_var=yes 17162 ;; 17163 17164 solaris*) 17165 no_undefined_flag_GCJ=' -z text' 17166 if test "$GCC" = yes; then 17167 wlarc='${wl}' 17168 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17169 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17170 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17171 else 17172 wlarc='' 17173 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17174 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17175 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17176 fi 17177 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17178 hardcode_shlibpath_var_GCJ=no 17179 case $host_os in 17180 solaris2.[0-5] | solaris2.[0-5].*) ;; 17181 *) 17182 # The compiler driver will combine linker options so we 17183 # cannot just pass the convience library names through 17184 # without $wl, iff we do not link with $LD. 17185 # Luckily, gcc supports the same syntax we need for Sun Studio. 17186 # Supported since Solaris 2.6 (maybe 2.5.1?) 17187 case $wlarc in 17188 '') 17189 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17190 *) 17191 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' ;; 17192 esac ;; 17193 esac 17194 link_all_deplibs_GCJ=yes 17195 ;; 17196 17197 sunos4*) 17198 if test "x$host_vendor" = xsequent; then 17199 # Use $CC to link under sequent, because it throws in some extra .o 17200 # files that make .init and .fini sections work. 17201 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17202 else 17203 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17204 fi 17205 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17206 hardcode_direct_GCJ=yes 17207 hardcode_minus_L_GCJ=yes 17208 hardcode_shlibpath_var_GCJ=no 17209 ;; 17210 17211 sysv4) 17212 case $host_vendor in 17213 sni) 17214 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17215 hardcode_direct_GCJ=yes # is this really true??? 17216 ;; 17217 siemens) 17218 ## LD is ld it makes a PLAMLIB 17219 ## CC just makes a GrossModule. 17220 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17221 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17222 hardcode_direct_GCJ=no 17223 ;; 17224 motorola) 17225 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17226 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17227 ;; 17228 esac 17229 runpath_var='LD_RUN_PATH' 17230 hardcode_shlibpath_var_GCJ=no 17231 ;; 17232 17233 sysv4.3*) 17234 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17235 hardcode_shlibpath_var_GCJ=no 17236 export_dynamic_flag_spec_GCJ='-Bexport' 17237 ;; 17238 17239 sysv4*MP*) 17240 if test -d /usr/nec; then 17241 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17242 hardcode_shlibpath_var_GCJ=no 17243 runpath_var=LD_RUN_PATH 17244 hardcode_runpath_var=yes 17245 ld_shlibs_GCJ=yes 17246 fi 17247 ;; 17248 17249 sysv4.2uw2*) 17250 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17251 hardcode_direct_GCJ=yes 17252 hardcode_minus_L_GCJ=no 17253 hardcode_shlibpath_var_GCJ=no 17254 hardcode_runpath_var=yes 17255 runpath_var=LD_RUN_PATH 17256 ;; 17257 17258 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 17259 no_undefined_flag_GCJ='${wl}-z ${wl}text' 17260 if test "$GCC" = yes; then 17261 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17262 else 17263 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17264 fi 17265 runpath_var='LD_RUN_PATH' 17266 hardcode_shlibpath_var_GCJ=no 17267 ;; 17268 17269 sysv5*) 17270 no_undefined_flag_GCJ=' -z text' 17271 # $CC -shared without GNU ld will not create a library from C++ 17272 # object files and a static libstdc++, better avoid it by now 17273 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17274 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17275 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17276 hardcode_libdir_flag_spec_GCJ= 17277 hardcode_shlibpath_var_GCJ=no 17278 runpath_var='LD_RUN_PATH' 17279 ;; 17280 17281 uts4*) 17282 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17283 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17284 hardcode_shlibpath_var_GCJ=no 17285 ;; 17286 17287 *) 17288 ld_shlibs_GCJ=no 17289 ;; 17290 esac 17291 fi 17292 17293echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17294echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17295test "$ld_shlibs_GCJ" = no && can_build_shared=no 17296 17297variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17298if test "$GCC" = yes; then 17299 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17300fi 17301 17302# 17303# Do we need to explicitly link libc? 17304# 17305case "x$archive_cmds_need_lc_GCJ" in 17306x|xyes) 17307 # Assume -lc should be added 17308 archive_cmds_need_lc_GCJ=yes 17309 17310 if test "$enable_shared" = yes && test "$GCC" = yes; then 17311 case $archive_cmds_GCJ in 17312 *'~'*) 17313 # FIXME: we may have to deal with multi-command sequences. 17314 ;; 17315 '$CC '*) 17316 # Test whether the compiler implicitly links with -lc since on some 17317 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17318 # to ld, don't add -lc before -lgcc. 17319 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17320echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17321 $rm conftest* 17322 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17323 17324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17325 (eval $ac_compile) 2>&5 17326 ac_status=$? 17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17328 (exit $ac_status); } 2>conftest.err; then 17329 soname=conftest 17330 lib=conftest 17331 libobjs=conftest.$ac_objext 17332 deplibs= 17333 wl=$lt_prog_compiler_wl_GCJ 17334 compiler_flags=-v 17335 linker_flags=-v 17336 verstring= 17337 output_objdir=. 17338 libname=conftest 17339 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17340 allow_undefined_flag_GCJ= 17341 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17342 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17343 ac_status=$? 17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17345 (exit $ac_status); } 17346 then 17347 archive_cmds_need_lc_GCJ=no 17348 else 17349 archive_cmds_need_lc_GCJ=yes 17350 fi 17351 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17352 else 17353 cat conftest.err 1>&5 17354 fi 17355 $rm conftest* 17356 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17357echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17358 ;; 17359 esac 17360 fi 17361 ;; 17362esac 17363 17364echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17365echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17366library_names_spec= 17367libname_spec='lib$name' 17368soname_spec= 17369shrext_cmds=".so" 17370postinstall_cmds= 17371postuninstall_cmds= 17372finish_cmds= 17373finish_eval= 17374shlibpath_var= 17375shlibpath_overrides_runpath=unknown 17376version_type=none 17377dynamic_linker="$host_os ld.so" 17378sys_lib_dlsearch_path_spec="/lib /usr/lib" 17379if test "$GCC" = yes; then 17380 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17381 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17382 # if the path contains ";" then we assume it to be the separator 17383 # otherwise default to the standard path separator (i.e. ":") - it is 17384 # assumed that no part of a normal pathname contains ";" but that should 17385 # okay in the real world where ";" in dirpaths is itself problematic. 17386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17387 else 17388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17389 fi 17390else 17391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17392fi 17393need_lib_prefix=unknown 17394hardcode_into_libs=no 17395 17396# when you set need_version to no, make sure it does not cause -set_version 17397# flags to be left without arguments 17398need_version=unknown 17399 17400case $host_os in 17401aix3*) 17402 version_type=linux 17403 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17404 shlibpath_var=LIBPATH 17405 17406 # AIX 3 has no versioning support, so we append a major version to the name. 17407 soname_spec='${libname}${release}${shared_ext}$major' 17408 ;; 17409 17410aix4* | aix5*) 17411 version_type=linux 17412 need_lib_prefix=no 17413 need_version=no 17414 hardcode_into_libs=yes 17415 if test "$host_cpu" = ia64; then 17416 # AIX 5 supports IA64 17417 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17418 shlibpath_var=LD_LIBRARY_PATH 17419 else 17420 # With GCC up to 2.95.x, collect2 would create an import file 17421 # for dependence libraries. The import file would start with 17422 # the line `#! .'. This would cause the generated library to 17423 # depend on `.', always an invalid library. This was fixed in 17424 # development snapshots of GCC prior to 3.0. 17425 case $host_os in 17426 aix4 | aix4.[01] | aix4.[01].*) 17427 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17428 echo ' yes ' 17429 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17430 : 17431 else 17432 can_build_shared=no 17433 fi 17434 ;; 17435 esac 17436 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17437 # soname into executable. Probably we can add versioning support to 17438 # collect2, so additional links can be useful in future. 17439 if test "$aix_use_runtimelinking" = yes; then 17440 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17441 # instead of lib<name>.a to let people know that these are not 17442 # typical AIX shared libraries. 17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17444 else 17445 # We preserve .a as extension for shared libraries through AIX4.2 17446 # and later when we are not doing run time linking. 17447 library_names_spec='${libname}${release}.a $libname.a' 17448 soname_spec='${libname}${release}${shared_ext}$major' 17449 fi 17450 shlibpath_var=LIBPATH 17451 fi 17452 ;; 17453 17454amigaos*) 17455 library_names_spec='$libname.ixlibrary $libname.a' 17456 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17457 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' 17458 ;; 17459 17460beos*) 17461 library_names_spec='${libname}${shared_ext}' 17462 dynamic_linker="$host_os ld.so" 17463 shlibpath_var=LIBRARY_PATH 17464 ;; 17465 17466bsdi[45]*) 17467 version_type=linux 17468 need_version=no 17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17470 soname_spec='${libname}${release}${shared_ext}$major' 17471 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17472 shlibpath_var=LD_LIBRARY_PATH 17473 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17474 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17475 # the default ld.so.conf also contains /usr/contrib/lib and 17476 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17477 # libtool to hard-code these into programs 17478 ;; 17479 17480cygwin* | mingw* | pw32*) 17481 version_type=windows 17482 shrext_cmds=".dll" 17483 need_version=no 17484 need_lib_prefix=no 17485 17486 case $GCC,$host_os in 17487 yes,cygwin* | yes,mingw* | yes,pw32*) 17488 library_names_spec='$libname.dll.a' 17489 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17490 postinstall_cmds='base_file=`basename \${file}`~ 17491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17492 dldir=$destdir/`dirname \$dlpath`~ 17493 test -d \$dldir || mkdir -p \$dldir~ 17494 $install_prog $dir/$dlname \$dldir/$dlname~ 17495 chmod a+x \$dldir/$dlname' 17496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17497 dlpath=$dir/\$dldll~ 17498 $rm \$dlpath' 17499 shlibpath_overrides_runpath=yes 17500 17501 case $host_os in 17502 cygwin*) 17503 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17504 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17505 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17506 ;; 17507 mingw*) 17508 # MinGW DLLs use traditional 'lib' prefix 17509 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17510 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17511 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17512 # It is most probably a Windows format PATH printed by 17513 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17514 # path with ; separators, and with drive letters. We can handle the 17515 # drive letters (cygwin fileutils understands them), so leave them, 17516 # especially as we might pass files found there to a mingw objdump, 17517 # which wouldn't understand a cygwinified path. Ahh. 17518 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17519 else 17520 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17521 fi 17522 ;; 17523 pw32*) 17524 # pw32 DLLs use 'pw' prefix rather than 'lib' 17525 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17526 ;; 17527 esac 17528 ;; 17529 17530 *) 17531 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17532 ;; 17533 esac 17534 dynamic_linker='Win32 ld.exe' 17535 # FIXME: first we should search . and the directory the executable is in 17536 shlibpath_var=PATH 17537 ;; 17538 17539darwin* | rhapsody*) 17540 dynamic_linker="$host_os dyld" 17541 version_type=darwin 17542 need_lib_prefix=no 17543 need_version=no 17544 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17545 soname_spec='${libname}${release}${major}$shared_ext' 17546 shlibpath_overrides_runpath=yes 17547 shlibpath_var=DYLD_LIBRARY_PATH 17548 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17549 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17550 if test "$GCC" = yes; then 17551 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"` 17552 else 17553 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17554 fi 17555 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17556 ;; 17557 17558dgux*) 17559 version_type=linux 17560 need_lib_prefix=no 17561 need_version=no 17562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17563 soname_spec='${libname}${release}${shared_ext}$major' 17564 shlibpath_var=LD_LIBRARY_PATH 17565 ;; 17566 17567freebsd1*) 17568 dynamic_linker=no 17569 ;; 17570 17571kfreebsd*-gnu) 17572 version_type=linux 17573 need_lib_prefix=no 17574 need_version=no 17575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17576 soname_spec='${libname}${release}${shared_ext}$major' 17577 shlibpath_var=LD_LIBRARY_PATH 17578 shlibpath_overrides_runpath=no 17579 hardcode_into_libs=yes 17580 dynamic_linker='GNU ld.so' 17581 ;; 17582 17583freebsd* | dragonfly*) 17584 # DragonFly does not have aout. When/if they implement a new 17585 # versioning mechanism, adjust this. 17586 if test -x /usr/bin/objformat; then 17587 objformat=`/usr/bin/objformat` 17588 else 17589 case $host_os in 17590 freebsd[123]*) objformat=aout ;; 17591 *) objformat=elf ;; 17592 esac 17593 fi 17594 version_type=freebsd-$objformat 17595 case $version_type in 17596 freebsd-elf*) 17597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17598 need_version=no 17599 need_lib_prefix=no 17600 ;; 17601 freebsd-*) 17602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17603 need_version=yes 17604 ;; 17605 esac 17606 shlibpath_var=LD_LIBRARY_PATH 17607 case $host_os in 17608 freebsd2*) 17609 shlibpath_overrides_runpath=yes 17610 ;; 17611 freebsd3.[01]* | freebsdelf3.[01]*) 17612 shlibpath_overrides_runpath=yes 17613 hardcode_into_libs=yes 17614 ;; 17615 *) # from 3.2 on 17616 shlibpath_overrides_runpath=no 17617 hardcode_into_libs=yes 17618 ;; 17619 esac 17620 ;; 17621 17622gnu*) 17623 version_type=linux 17624 need_lib_prefix=no 17625 need_version=no 17626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17627 soname_spec='${libname}${release}${shared_ext}$major' 17628 shlibpath_var=LD_LIBRARY_PATH 17629 hardcode_into_libs=yes 17630 ;; 17631 17632hpux9* | hpux10* | hpux11*) 17633 # Give a soname corresponding to the major version so that dld.sl refuses to 17634 # link against other versions. 17635 version_type=sunos 17636 need_lib_prefix=no 17637 need_version=no 17638 case $host_cpu in 17639 ia64*) 17640 shrext_cmds='.so' 17641 hardcode_into_libs=yes 17642 dynamic_linker="$host_os dld.so" 17643 shlibpath_var=LD_LIBRARY_PATH 17644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17646 soname_spec='${libname}${release}${shared_ext}$major' 17647 if test "X$HPUX_IA64_MODE" = X32; then 17648 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17649 else 17650 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17651 fi 17652 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17653 ;; 17654 hppa*64*) 17655 shrext_cmds='.sl' 17656 hardcode_into_libs=yes 17657 dynamic_linker="$host_os dld.sl" 17658 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17661 soname_spec='${libname}${release}${shared_ext}$major' 17662 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17664 ;; 17665 *) 17666 shrext_cmds='.sl' 17667 dynamic_linker="$host_os dld.sl" 17668 shlibpath_var=SHLIB_PATH 17669 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17671 soname_spec='${libname}${release}${shared_ext}$major' 17672 ;; 17673 esac 17674 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17675 postinstall_cmds='chmod 555 $lib' 17676 ;; 17677 17678irix5* | irix6* | nonstopux*) 17679 case $host_os in 17680 nonstopux*) version_type=nonstopux ;; 17681 *) 17682 if test "$lt_cv_prog_gnu_ld" = yes; then 17683 version_type=linux 17684 else 17685 version_type=irix 17686 fi ;; 17687 esac 17688 need_lib_prefix=no 17689 need_version=no 17690 soname_spec='${libname}${release}${shared_ext}$major' 17691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17692 case $host_os in 17693 irix5* | nonstopux*) 17694 libsuff= shlibsuff= 17695 ;; 17696 *) 17697 case $LD in # libtool.m4 will add one of these switches to LD 17698 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17699 libsuff= shlibsuff= libmagic=32-bit;; 17700 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17701 libsuff=32 shlibsuff=N32 libmagic=N32;; 17702 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17703 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17704 *) libsuff= shlibsuff= libmagic=never-match;; 17705 esac 17706 ;; 17707 esac 17708 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17709 shlibpath_overrides_runpath=no 17710 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17711 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17712 hardcode_into_libs=yes 17713 ;; 17714 17715# No shared lib support for Linux oldld, aout, or coff. 17716linux*oldld* | linux*aout* | linux*coff*) 17717 dynamic_linker=no 17718 ;; 17719 17720# This must be Linux ELF. 17721linux*) 17722 version_type=linux 17723 need_lib_prefix=no 17724 need_version=no 17725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17726 soname_spec='${libname}${release}${shared_ext}$major' 17727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17728 shlibpath_var=LD_LIBRARY_PATH 17729 shlibpath_overrides_runpath=no 17730 # This implies no fast_install, which is unacceptable. 17731 # Some rework will be needed to allow for fast_install 17732 # before this can be enabled. 17733 hardcode_into_libs=yes 17734 17735 # find out which ABI we are using 17736 libsuff= 17737 case "$host_cpu" in 17738 x86_64*|s390x*|powerpc64*) 17739 echo '#line 17739 "configure"' > conftest.$ac_ext 17740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17741 (eval $ac_compile) 2>&5 17742 ac_status=$? 17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17744 (exit $ac_status); }; then 17745 case `/usr/bin/file conftest.$ac_objext` in 17746 *64-bit*) 17747 libsuff=64 17748 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17749 ;; 17750 esac 17751 fi 17752 rm -rf conftest* 17753 ;; 17754 esac 17755 17756 # Append ld.so.conf contents to the search path 17757 if test -f /etc/ld.so.conf; then 17758 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17759 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 17760 fi 17761 17762 # We used to test for /lib/ld.so.1 and disable shared libraries on 17763 # powerpc, because MkLinux only supported shared libraries with the 17764 # GNU dynamic linker. Since this was broken with cross compilers, 17765 # most powerpc-linux boxes support dynamic linking these days and 17766 # people can always --disable-shared, the test was removed, and we 17767 # assume the GNU/Linux dynamic linker is in use. 17768 dynamic_linker='GNU/Linux ld.so' 17769 ;; 17770 17771knetbsd*-gnu) 17772 version_type=linux 17773 need_lib_prefix=no 17774 need_version=no 17775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17776 soname_spec='${libname}${release}${shared_ext}$major' 17777 shlibpath_var=LD_LIBRARY_PATH 17778 shlibpath_overrides_runpath=no 17779 hardcode_into_libs=yes 17780 dynamic_linker='GNU ld.so' 17781 ;; 17782 17783netbsd*) 17784 version_type=sunos 17785 need_lib_prefix=no 17786 need_version=no 17787 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17790 dynamic_linker='NetBSD (a.out) ld.so' 17791 else 17792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17793 soname_spec='${libname}${release}${shared_ext}$major' 17794 dynamic_linker='NetBSD ld.elf_so' 17795 fi 17796 shlibpath_var=LD_LIBRARY_PATH 17797 shlibpath_overrides_runpath=yes 17798 hardcode_into_libs=yes 17799 ;; 17800 17801newsos6) 17802 version_type=linux 17803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17804 shlibpath_var=LD_LIBRARY_PATH 17805 shlibpath_overrides_runpath=yes 17806 ;; 17807 17808nto-qnx*) 17809 version_type=linux 17810 need_lib_prefix=no 17811 need_version=no 17812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17813 soname_spec='${libname}${release}${shared_ext}$major' 17814 shlibpath_var=LD_LIBRARY_PATH 17815 shlibpath_overrides_runpath=yes 17816 ;; 17817 17818openbsd*) 17819 version_type=sunos 17820 need_lib_prefix=no 17821 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17822 case $host_os in 17823 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17824 *) need_version=no ;; 17825 esac 17826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17828 shlibpath_var=LD_LIBRARY_PATH 17829 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17830 case $host_os in 17831 openbsd2.[89] | openbsd2.[89].*) 17832 shlibpath_overrides_runpath=no 17833 ;; 17834 *) 17835 shlibpath_overrides_runpath=yes 17836 ;; 17837 esac 17838 else 17839 shlibpath_overrides_runpath=yes 17840 fi 17841 ;; 17842 17843os2*) 17844 libname_spec='$name' 17845 shrext_cmds=".dll" 17846 need_lib_prefix=no 17847 library_names_spec='$libname${shared_ext} $libname.a' 17848 dynamic_linker='OS/2 ld.exe' 17849 shlibpath_var=LIBPATH 17850 ;; 17851 17852osf3* | osf4* | osf5*) 17853 version_type=osf 17854 need_lib_prefix=no 17855 need_version=no 17856 soname_spec='${libname}${release}${shared_ext}$major' 17857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17858 shlibpath_var=LD_LIBRARY_PATH 17859 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17860 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17861 ;; 17862 17863sco3.2v5*) 17864 version_type=osf 17865 soname_spec='${libname}${release}${shared_ext}$major' 17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17867 shlibpath_var=LD_LIBRARY_PATH 17868 ;; 17869 17870solaris*) 17871 version_type=linux 17872 need_lib_prefix=no 17873 need_version=no 17874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17875 soname_spec='${libname}${release}${shared_ext}$major' 17876 shlibpath_var=LD_LIBRARY_PATH 17877 shlibpath_overrides_runpath=yes 17878 hardcode_into_libs=yes 17879 # ldd complains unless libraries are executable 17880 postinstall_cmds='chmod +x $lib' 17881 ;; 17882 17883sunos4*) 17884 version_type=sunos 17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17886 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17887 shlibpath_var=LD_LIBRARY_PATH 17888 shlibpath_overrides_runpath=yes 17889 if test "$with_gnu_ld" = yes; then 17890 need_lib_prefix=no 17891 fi 17892 need_version=yes 17893 ;; 17894 17895sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17896 version_type=linux 17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17898 soname_spec='${libname}${release}${shared_ext}$major' 17899 shlibpath_var=LD_LIBRARY_PATH 17900 case $host_vendor in 17901 sni) 17902 shlibpath_overrides_runpath=no 17903 need_lib_prefix=no 17904 export_dynamic_flag_spec='${wl}-Blargedynsym' 17905 runpath_var=LD_RUN_PATH 17906 ;; 17907 siemens) 17908 need_lib_prefix=no 17909 ;; 17910 motorola) 17911 need_lib_prefix=no 17912 need_version=no 17913 shlibpath_overrides_runpath=no 17914 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17915 ;; 17916 esac 17917 ;; 17918 17919sysv4*MP*) 17920 if test -d /usr/nec ;then 17921 version_type=linux 17922 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17923 soname_spec='$libname${shared_ext}.$major' 17924 shlibpath_var=LD_LIBRARY_PATH 17925 fi 17926 ;; 17927 17928uts4*) 17929 version_type=linux 17930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17931 soname_spec='${libname}${release}${shared_ext}$major' 17932 shlibpath_var=LD_LIBRARY_PATH 17933 ;; 17934 17935*) 17936 dynamic_linker=no 17937 ;; 17938esac 17939echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17940echo "${ECHO_T}$dynamic_linker" >&6 17941test "$dynamic_linker" = no && can_build_shared=no 17942 17943echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17944echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17945hardcode_action_GCJ= 17946if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17947 test -n "$runpath_var_GCJ" || \ 17948 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17949 17950 # We can hardcode non-existant directories. 17951 if test "$hardcode_direct_GCJ" != no && 17952 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17953 # have to relink, otherwise we might link with an installed library 17954 # when we should be linking with a yet-to-be-installed one 17955 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17956 test "$hardcode_minus_L_GCJ" != no; then 17957 # Linking always hardcodes the temporary library directory. 17958 hardcode_action_GCJ=relink 17959 else 17960 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17961 hardcode_action_GCJ=immediate 17962 fi 17963else 17964 # We cannot hardcode anything, or else we can only hardcode existing 17965 # directories. 17966 hardcode_action_GCJ=unsupported 17967fi 17968echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17969echo "${ECHO_T}$hardcode_action_GCJ" >&6 17970 17971if test "$hardcode_action_GCJ" = relink; then 17972 # Fast installation is not supported 17973 enable_fast_install=no 17974elif test "$shlibpath_overrides_runpath" = yes || 17975 test "$enable_shared" = no; then 17976 # Fast installation is not necessary 17977 enable_fast_install=needless 17978fi 17979 17980striplib= 17981old_striplib= 17982echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 17983echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 17984if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 17985 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17986 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17987 echo "$as_me:$LINENO: result: yes" >&5 17988echo "${ECHO_T}yes" >&6 17989else 17990# FIXME - insert some real tests, host_os isn't really good enough 17991 case $host_os in 17992 darwin*) 17993 if test -n "$STRIP" ; then 17994 striplib="$STRIP -x" 17995 echo "$as_me:$LINENO: result: yes" >&5 17996echo "${ECHO_T}yes" >&6 17997 else 17998 echo "$as_me:$LINENO: result: no" >&5 17999echo "${ECHO_T}no" >&6 18000fi 18001 ;; 18002 *) 18003 echo "$as_me:$LINENO: result: no" >&5 18004echo "${ECHO_T}no" >&6 18005 ;; 18006 esac 18007fi 18008 18009if test "x$enable_dlopen" != xyes; then 18010 enable_dlopen=unknown 18011 enable_dlopen_self=unknown 18012 enable_dlopen_self_static=unknown 18013else 18014 lt_cv_dlopen=no 18015 lt_cv_dlopen_libs= 18016 18017 case $host_os in 18018 beos*) 18019 lt_cv_dlopen="load_add_on" 18020 lt_cv_dlopen_libs= 18021 lt_cv_dlopen_self=yes 18022 ;; 18023 18024 mingw* | pw32*) 18025 lt_cv_dlopen="LoadLibrary" 18026 lt_cv_dlopen_libs= 18027 ;; 18028 18029 cygwin*) 18030 lt_cv_dlopen="dlopen" 18031 lt_cv_dlopen_libs= 18032 ;; 18033 18034 darwin*) 18035 # if libdl is installed we need to link against it 18036 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18037echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18038if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18039 echo $ECHO_N "(cached) $ECHO_C" >&6 18040else 18041 ac_check_lib_save_LIBS=$LIBS 18042LIBS="-ldl $LIBS" 18043cat >conftest.$ac_ext <<_ACEOF 18044/* confdefs.h. */ 18045_ACEOF 18046cat confdefs.h >>conftest.$ac_ext 18047cat >>conftest.$ac_ext <<_ACEOF 18048/* end confdefs.h. */ 18049 18050/* Override any gcc2 internal prototype to avoid an error. */ 18051#ifdef __cplusplus 18052extern "C" 18053#endif 18054/* We use char because int might match the return type of a gcc2 18055 builtin and then its argument prototype would still apply. */ 18056char dlopen (); 18057int 18058main () 18059{ 18060dlopen (); 18061 ; 18062 return 0; 18063} 18064_ACEOF 18065rm -f conftest.$ac_objext conftest$ac_exeext 18066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18067 (eval $ac_link) 2>conftest.er1 18068 ac_status=$? 18069 grep -v '^ *+' conftest.er1 >conftest.err 18070 rm -f conftest.er1 18071 cat conftest.err >&5 18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18073 (exit $ac_status); } && 18074 { ac_try='test -z "$ac_c_werror_flag" 18075 || test ! -s conftest.err' 18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18077 (eval $ac_try) 2>&5 18078 ac_status=$? 18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18080 (exit $ac_status); }; } && 18081 { ac_try='test -s conftest$ac_exeext' 18082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18083 (eval $ac_try) 2>&5 18084 ac_status=$? 18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18086 (exit $ac_status); }; }; then 18087 ac_cv_lib_dl_dlopen=yes 18088else 18089 echo "$as_me: failed program was:" >&5 18090sed 's/^/| /' conftest.$ac_ext >&5 18091 18092ac_cv_lib_dl_dlopen=no 18093fi 18094rm -f conftest.err conftest.$ac_objext \ 18095 conftest$ac_exeext conftest.$ac_ext 18096LIBS=$ac_check_lib_save_LIBS 18097fi 18098echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18099echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18100if test $ac_cv_lib_dl_dlopen = yes; then 18101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18102else 18103 18104 lt_cv_dlopen="dyld" 18105 lt_cv_dlopen_libs= 18106 lt_cv_dlopen_self=yes 18107 18108fi 18109 18110 ;; 18111 18112 *) 18113 echo "$as_me:$LINENO: checking for shl_load" >&5 18114echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 18115if test "${ac_cv_func_shl_load+set}" = set; then 18116 echo $ECHO_N "(cached) $ECHO_C" >&6 18117else 18118 cat >conftest.$ac_ext <<_ACEOF 18119/* confdefs.h. */ 18120_ACEOF 18121cat confdefs.h >>conftest.$ac_ext 18122cat >>conftest.$ac_ext <<_ACEOF 18123/* end confdefs.h. */ 18124/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 18125 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18126#define shl_load innocuous_shl_load 18127 18128/* System header to define __stub macros and hopefully few prototypes, 18129 which can conflict with char shl_load (); below. 18130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18131 <limits.h> exists even on freestanding compilers. */ 18132 18133#ifdef __STDC__ 18134# include <limits.h> 18135#else 18136# include <assert.h> 18137#endif 18138 18139#undef shl_load 18140 18141/* Override any gcc2 internal prototype to avoid an error. */ 18142#ifdef __cplusplus 18143extern "C" 18144{ 18145#endif 18146/* We use char because int might match the return type of a gcc2 18147 builtin and then its argument prototype would still apply. */ 18148char shl_load (); 18149/* The GNU C library defines this for functions which it implements 18150 to always fail with ENOSYS. Some functions are actually named 18151 something starting with __ and the normal name is an alias. */ 18152#if defined (__stub_shl_load) || defined (__stub___shl_load) 18153choke me 18154#else 18155char (*f) () = shl_load; 18156#endif 18157#ifdef __cplusplus 18158} 18159#endif 18160 18161int 18162main () 18163{ 18164return f != shl_load; 18165 ; 18166 return 0; 18167} 18168_ACEOF 18169rm -f conftest.$ac_objext conftest$ac_exeext 18170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18171 (eval $ac_link) 2>conftest.er1 18172 ac_status=$? 18173 grep -v '^ *+' conftest.er1 >conftest.err 18174 rm -f conftest.er1 18175 cat conftest.err >&5 18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18177 (exit $ac_status); } && 18178 { ac_try='test -z "$ac_c_werror_flag" 18179 || test ! -s conftest.err' 18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18181 (eval $ac_try) 2>&5 18182 ac_status=$? 18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18184 (exit $ac_status); }; } && 18185 { ac_try='test -s conftest$ac_exeext' 18186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18187 (eval $ac_try) 2>&5 18188 ac_status=$? 18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18190 (exit $ac_status); }; }; then 18191 ac_cv_func_shl_load=yes 18192else 18193 echo "$as_me: failed program was:" >&5 18194sed 's/^/| /' conftest.$ac_ext >&5 18195 18196ac_cv_func_shl_load=no 18197fi 18198rm -f conftest.err conftest.$ac_objext \ 18199 conftest$ac_exeext conftest.$ac_ext 18200fi 18201echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 18202echo "${ECHO_T}$ac_cv_func_shl_load" >&6 18203if test $ac_cv_func_shl_load = yes; then 18204 lt_cv_dlopen="shl_load" 18205else 18206 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 18207echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 18208if test "${ac_cv_lib_dld_shl_load+set}" = set; then 18209 echo $ECHO_N "(cached) $ECHO_C" >&6 18210else 18211 ac_check_lib_save_LIBS=$LIBS 18212LIBS="-ldld $LIBS" 18213cat >conftest.$ac_ext <<_ACEOF 18214/* confdefs.h. */ 18215_ACEOF 18216cat confdefs.h >>conftest.$ac_ext 18217cat >>conftest.$ac_ext <<_ACEOF 18218/* end confdefs.h. */ 18219 18220/* Override any gcc2 internal prototype to avoid an error. */ 18221#ifdef __cplusplus 18222extern "C" 18223#endif 18224/* We use char because int might match the return type of a gcc2 18225 builtin and then its argument prototype would still apply. */ 18226char shl_load (); 18227int 18228main () 18229{ 18230shl_load (); 18231 ; 18232 return 0; 18233} 18234_ACEOF 18235rm -f conftest.$ac_objext conftest$ac_exeext 18236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18237 (eval $ac_link) 2>conftest.er1 18238 ac_status=$? 18239 grep -v '^ *+' conftest.er1 >conftest.err 18240 rm -f conftest.er1 18241 cat conftest.err >&5 18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18243 (exit $ac_status); } && 18244 { ac_try='test -z "$ac_c_werror_flag" 18245 || test ! -s conftest.err' 18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18247 (eval $ac_try) 2>&5 18248 ac_status=$? 18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18250 (exit $ac_status); }; } && 18251 { ac_try='test -s conftest$ac_exeext' 18252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18253 (eval $ac_try) 2>&5 18254 ac_status=$? 18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18256 (exit $ac_status); }; }; then 18257 ac_cv_lib_dld_shl_load=yes 18258else 18259 echo "$as_me: failed program was:" >&5 18260sed 's/^/| /' conftest.$ac_ext >&5 18261 18262ac_cv_lib_dld_shl_load=no 18263fi 18264rm -f conftest.err conftest.$ac_objext \ 18265 conftest$ac_exeext conftest.$ac_ext 18266LIBS=$ac_check_lib_save_LIBS 18267fi 18268echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 18269echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 18270if test $ac_cv_lib_dld_shl_load = yes; then 18271 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 18272else 18273 echo "$as_me:$LINENO: checking for dlopen" >&5 18274echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 18275if test "${ac_cv_func_dlopen+set}" = set; then 18276 echo $ECHO_N "(cached) $ECHO_C" >&6 18277else 18278 cat >conftest.$ac_ext <<_ACEOF 18279/* confdefs.h. */ 18280_ACEOF 18281cat confdefs.h >>conftest.$ac_ext 18282cat >>conftest.$ac_ext <<_ACEOF 18283/* end confdefs.h. */ 18284/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 18285 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18286#define dlopen innocuous_dlopen 18287 18288/* System header to define __stub macros and hopefully few prototypes, 18289 which can conflict with char dlopen (); below. 18290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18291 <limits.h> exists even on freestanding compilers. */ 18292 18293#ifdef __STDC__ 18294# include <limits.h> 18295#else 18296# include <assert.h> 18297#endif 18298 18299#undef dlopen 18300 18301/* Override any gcc2 internal prototype to avoid an error. */ 18302#ifdef __cplusplus 18303extern "C" 18304{ 18305#endif 18306/* We use char because int might match the return type of a gcc2 18307 builtin and then its argument prototype would still apply. */ 18308char dlopen (); 18309/* The GNU C library defines this for functions which it implements 18310 to always fail with ENOSYS. Some functions are actually named 18311 something starting with __ and the normal name is an alias. */ 18312#if defined (__stub_dlopen) || defined (__stub___dlopen) 18313choke me 18314#else 18315char (*f) () = dlopen; 18316#endif 18317#ifdef __cplusplus 18318} 18319#endif 18320 18321int 18322main () 18323{ 18324return f != dlopen; 18325 ; 18326 return 0; 18327} 18328_ACEOF 18329rm -f conftest.$ac_objext conftest$ac_exeext 18330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18331 (eval $ac_link) 2>conftest.er1 18332 ac_status=$? 18333 grep -v '^ *+' conftest.er1 >conftest.err 18334 rm -f conftest.er1 18335 cat conftest.err >&5 18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18337 (exit $ac_status); } && 18338 { ac_try='test -z "$ac_c_werror_flag" 18339 || test ! -s conftest.err' 18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18341 (eval $ac_try) 2>&5 18342 ac_status=$? 18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18344 (exit $ac_status); }; } && 18345 { ac_try='test -s conftest$ac_exeext' 18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18347 (eval $ac_try) 2>&5 18348 ac_status=$? 18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18350 (exit $ac_status); }; }; then 18351 ac_cv_func_dlopen=yes 18352else 18353 echo "$as_me: failed program was:" >&5 18354sed 's/^/| /' conftest.$ac_ext >&5 18355 18356ac_cv_func_dlopen=no 18357fi 18358rm -f conftest.err conftest.$ac_objext \ 18359 conftest$ac_exeext conftest.$ac_ext 18360fi 18361echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 18362echo "${ECHO_T}$ac_cv_func_dlopen" >&6 18363if test $ac_cv_func_dlopen = yes; then 18364 lt_cv_dlopen="dlopen" 18365else 18366 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18367echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18368if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18369 echo $ECHO_N "(cached) $ECHO_C" >&6 18370else 18371 ac_check_lib_save_LIBS=$LIBS 18372LIBS="-ldl $LIBS" 18373cat >conftest.$ac_ext <<_ACEOF 18374/* confdefs.h. */ 18375_ACEOF 18376cat confdefs.h >>conftest.$ac_ext 18377cat >>conftest.$ac_ext <<_ACEOF 18378/* end confdefs.h. */ 18379 18380/* Override any gcc2 internal prototype to avoid an error. */ 18381#ifdef __cplusplus 18382extern "C" 18383#endif 18384/* We use char because int might match the return type of a gcc2 18385 builtin and then its argument prototype would still apply. */ 18386char dlopen (); 18387int 18388main () 18389{ 18390dlopen (); 18391 ; 18392 return 0; 18393} 18394_ACEOF 18395rm -f conftest.$ac_objext conftest$ac_exeext 18396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18397 (eval $ac_link) 2>conftest.er1 18398 ac_status=$? 18399 grep -v '^ *+' conftest.er1 >conftest.err 18400 rm -f conftest.er1 18401 cat conftest.err >&5 18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18403 (exit $ac_status); } && 18404 { ac_try='test -z "$ac_c_werror_flag" 18405 || test ! -s conftest.err' 18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18407 (eval $ac_try) 2>&5 18408 ac_status=$? 18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18410 (exit $ac_status); }; } && 18411 { ac_try='test -s conftest$ac_exeext' 18412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18413 (eval $ac_try) 2>&5 18414 ac_status=$? 18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18416 (exit $ac_status); }; }; then 18417 ac_cv_lib_dl_dlopen=yes 18418else 18419 echo "$as_me: failed program was:" >&5 18420sed 's/^/| /' conftest.$ac_ext >&5 18421 18422ac_cv_lib_dl_dlopen=no 18423fi 18424rm -f conftest.err conftest.$ac_objext \ 18425 conftest$ac_exeext conftest.$ac_ext 18426LIBS=$ac_check_lib_save_LIBS 18427fi 18428echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18429echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18430if test $ac_cv_lib_dl_dlopen = yes; then 18431 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18432else 18433 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 18434echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 18435if test "${ac_cv_lib_svld_dlopen+set}" = set; then 18436 echo $ECHO_N "(cached) $ECHO_C" >&6 18437else 18438 ac_check_lib_save_LIBS=$LIBS 18439LIBS="-lsvld $LIBS" 18440cat >conftest.$ac_ext <<_ACEOF 18441/* confdefs.h. */ 18442_ACEOF 18443cat confdefs.h >>conftest.$ac_ext 18444cat >>conftest.$ac_ext <<_ACEOF 18445/* end confdefs.h. */ 18446 18447/* Override any gcc2 internal prototype to avoid an error. */ 18448#ifdef __cplusplus 18449extern "C" 18450#endif 18451/* We use char because int might match the return type of a gcc2 18452 builtin and then its argument prototype would still apply. */ 18453char dlopen (); 18454int 18455main () 18456{ 18457dlopen (); 18458 ; 18459 return 0; 18460} 18461_ACEOF 18462rm -f conftest.$ac_objext conftest$ac_exeext 18463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18464 (eval $ac_link) 2>conftest.er1 18465 ac_status=$? 18466 grep -v '^ *+' conftest.er1 >conftest.err 18467 rm -f conftest.er1 18468 cat conftest.err >&5 18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18470 (exit $ac_status); } && 18471 { ac_try='test -z "$ac_c_werror_flag" 18472 || test ! -s conftest.err' 18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18474 (eval $ac_try) 2>&5 18475 ac_status=$? 18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18477 (exit $ac_status); }; } && 18478 { ac_try='test -s conftest$ac_exeext' 18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18480 (eval $ac_try) 2>&5 18481 ac_status=$? 18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18483 (exit $ac_status); }; }; then 18484 ac_cv_lib_svld_dlopen=yes 18485else 18486 echo "$as_me: failed program was:" >&5 18487sed 's/^/| /' conftest.$ac_ext >&5 18488 18489ac_cv_lib_svld_dlopen=no 18490fi 18491rm -f conftest.err conftest.$ac_objext \ 18492 conftest$ac_exeext conftest.$ac_ext 18493LIBS=$ac_check_lib_save_LIBS 18494fi 18495echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18496echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18497if test $ac_cv_lib_svld_dlopen = yes; then 18498 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18499else 18500 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 18501echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 18502if test "${ac_cv_lib_dld_dld_link+set}" = set; then 18503 echo $ECHO_N "(cached) $ECHO_C" >&6 18504else 18505 ac_check_lib_save_LIBS=$LIBS 18506LIBS="-ldld $LIBS" 18507cat >conftest.$ac_ext <<_ACEOF 18508/* confdefs.h. */ 18509_ACEOF 18510cat confdefs.h >>conftest.$ac_ext 18511cat >>conftest.$ac_ext <<_ACEOF 18512/* end confdefs.h. */ 18513 18514/* Override any gcc2 internal prototype to avoid an error. */ 18515#ifdef __cplusplus 18516extern "C" 18517#endif 18518/* We use char because int might match the return type of a gcc2 18519 builtin and then its argument prototype would still apply. */ 18520char dld_link (); 18521int 18522main () 18523{ 18524dld_link (); 18525 ; 18526 return 0; 18527} 18528_ACEOF 18529rm -f conftest.$ac_objext conftest$ac_exeext 18530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18531 (eval $ac_link) 2>conftest.er1 18532 ac_status=$? 18533 grep -v '^ *+' conftest.er1 >conftest.err 18534 rm -f conftest.er1 18535 cat conftest.err >&5 18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18537 (exit $ac_status); } && 18538 { ac_try='test -z "$ac_c_werror_flag" 18539 || test ! -s conftest.err' 18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18541 (eval $ac_try) 2>&5 18542 ac_status=$? 18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18544 (exit $ac_status); }; } && 18545 { ac_try='test -s conftest$ac_exeext' 18546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18547 (eval $ac_try) 2>&5 18548 ac_status=$? 18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18550 (exit $ac_status); }; }; then 18551 ac_cv_lib_dld_dld_link=yes 18552else 18553 echo "$as_me: failed program was:" >&5 18554sed 's/^/| /' conftest.$ac_ext >&5 18555 18556ac_cv_lib_dld_dld_link=no 18557fi 18558rm -f conftest.err conftest.$ac_objext \ 18559 conftest$ac_exeext conftest.$ac_ext 18560LIBS=$ac_check_lib_save_LIBS 18561fi 18562echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18563echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18564if test $ac_cv_lib_dld_dld_link = yes; then 18565 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18566fi 18567 18568 18569fi 18570 18571 18572fi 18573 18574 18575fi 18576 18577 18578fi 18579 18580 18581fi 18582 18583 ;; 18584 esac 18585 18586 if test "x$lt_cv_dlopen" != xno; then 18587 enable_dlopen=yes 18588 else 18589 enable_dlopen=no 18590 fi 18591 18592 case $lt_cv_dlopen in 18593 dlopen) 18594 save_CPPFLAGS="$CPPFLAGS" 18595 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18596 18597 save_LDFLAGS="$LDFLAGS" 18598 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18599 18600 save_LIBS="$LIBS" 18601 LIBS="$lt_cv_dlopen_libs $LIBS" 18602 18603 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18604echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18605if test "${lt_cv_dlopen_self+set}" = set; then 18606 echo $ECHO_N "(cached) $ECHO_C" >&6 18607else 18608 if test "$cross_compiling" = yes; then : 18609 lt_cv_dlopen_self=cross 18610else 18611 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18612 lt_status=$lt_dlunknown 18613 cat > conftest.$ac_ext <<EOF 18614#line 18614 "configure" 18615#include "confdefs.h" 18616 18617#if HAVE_DLFCN_H 18618#include <dlfcn.h> 18619#endif 18620 18621#include <stdio.h> 18622 18623#ifdef RTLD_GLOBAL 18624# define LT_DLGLOBAL RTLD_GLOBAL 18625#else 18626# ifdef DL_GLOBAL 18627# define LT_DLGLOBAL DL_GLOBAL 18628# else 18629# define LT_DLGLOBAL 0 18630# endif 18631#endif 18632 18633/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18634 find out it does not work in some platform. */ 18635#ifndef LT_DLLAZY_OR_NOW 18636# ifdef RTLD_LAZY 18637# define LT_DLLAZY_OR_NOW RTLD_LAZY 18638# else 18639# ifdef DL_LAZY 18640# define LT_DLLAZY_OR_NOW DL_LAZY 18641# else 18642# ifdef RTLD_NOW 18643# define LT_DLLAZY_OR_NOW RTLD_NOW 18644# else 18645# ifdef DL_NOW 18646# define LT_DLLAZY_OR_NOW DL_NOW 18647# else 18648# define LT_DLLAZY_OR_NOW 0 18649# endif 18650# endif 18651# endif 18652# endif 18653#endif 18654 18655#ifdef __cplusplus 18656extern "C" void exit (int); 18657#endif 18658 18659void fnord() { int i=42;} 18660int main () 18661{ 18662 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18663 int status = $lt_dlunknown; 18664 18665 if (self) 18666 { 18667 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18668 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18669 /* dlclose (self); */ 18670 } 18671 18672 exit (status); 18673} 18674EOF 18675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18676 (eval $ac_link) 2>&5 18677 ac_status=$? 18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18679 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18680 (./conftest; exit; ) >&5 2>/dev/null 18681 lt_status=$? 18682 case x$lt_status in 18683 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18684 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18685 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18686 esac 18687 else : 18688 # compilation failed 18689 lt_cv_dlopen_self=no 18690 fi 18691fi 18692rm -fr conftest* 18693 18694 18695fi 18696echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18697echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18698 18699 if test "x$lt_cv_dlopen_self" = xyes; then 18700 LDFLAGS="$LDFLAGS $link_static_flag" 18701 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18702echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18703if test "${lt_cv_dlopen_self_static+set}" = set; then 18704 echo $ECHO_N "(cached) $ECHO_C" >&6 18705else 18706 if test "$cross_compiling" = yes; then : 18707 lt_cv_dlopen_self_static=cross 18708else 18709 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18710 lt_status=$lt_dlunknown 18711 cat > conftest.$ac_ext <<EOF 18712#line 18712 "configure" 18713#include "confdefs.h" 18714 18715#if HAVE_DLFCN_H 18716#include <dlfcn.h> 18717#endif 18718 18719#include <stdio.h> 18720 18721#ifdef RTLD_GLOBAL 18722# define LT_DLGLOBAL RTLD_GLOBAL 18723#else 18724# ifdef DL_GLOBAL 18725# define LT_DLGLOBAL DL_GLOBAL 18726# else 18727# define LT_DLGLOBAL 0 18728# endif 18729#endif 18730 18731/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18732 find out it does not work in some platform. */ 18733#ifndef LT_DLLAZY_OR_NOW 18734# ifdef RTLD_LAZY 18735# define LT_DLLAZY_OR_NOW RTLD_LAZY 18736# else 18737# ifdef DL_LAZY 18738# define LT_DLLAZY_OR_NOW DL_LAZY 18739# else 18740# ifdef RTLD_NOW 18741# define LT_DLLAZY_OR_NOW RTLD_NOW 18742# else 18743# ifdef DL_NOW 18744# define LT_DLLAZY_OR_NOW DL_NOW 18745# else 18746# define LT_DLLAZY_OR_NOW 0 18747# endif 18748# endif 18749# endif 18750# endif 18751#endif 18752 18753#ifdef __cplusplus 18754extern "C" void exit (int); 18755#endif 18756 18757void fnord() { int i=42;} 18758int main () 18759{ 18760 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18761 int status = $lt_dlunknown; 18762 18763 if (self) 18764 { 18765 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18766 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18767 /* dlclose (self); */ 18768 } 18769 18770 exit (status); 18771} 18772EOF 18773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18774 (eval $ac_link) 2>&5 18775 ac_status=$? 18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18777 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18778 (./conftest; exit; ) >&5 2>/dev/null 18779 lt_status=$? 18780 case x$lt_status in 18781 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18782 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18783 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18784 esac 18785 else : 18786 # compilation failed 18787 lt_cv_dlopen_self_static=no 18788 fi 18789fi 18790rm -fr conftest* 18791 18792 18793fi 18794echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18795echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18796 fi 18797 18798 CPPFLAGS="$save_CPPFLAGS" 18799 LDFLAGS="$save_LDFLAGS" 18800 LIBS="$save_LIBS" 18801 ;; 18802 esac 18803 18804 case $lt_cv_dlopen_self in 18805 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18806 *) enable_dlopen_self=unknown ;; 18807 esac 18808 18809 case $lt_cv_dlopen_self_static in 18810 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18811 *) enable_dlopen_self_static=unknown ;; 18812 esac 18813fi 18814 18815 18816# The else clause should only fire when bootstrapping the 18817# libtool distribution, otherwise you forgot to ship ltmain.sh 18818# with your package, and you will get complaints that there are 18819# no rules to generate ltmain.sh. 18820if test -f "$ltmain"; then 18821 # See if we are running on zsh, and set the options which allow our commands through 18822 # without removal of \ escapes. 18823 if test -n "${ZSH_VERSION+set}" ; then 18824 setopt NO_GLOB_SUBST 18825 fi 18826 # Now quote all the things that may contain metacharacters while being 18827 # careful not to overquote the AC_SUBSTed values. We take copies of the 18828 # variables and quote the copies for generation of the libtool script. 18829 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18830 SED SHELL STRIP \ 18831 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18832 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18833 deplibs_check_method reload_flag reload_cmds need_locks \ 18834 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18835 lt_cv_sys_global_symbol_to_c_name_address \ 18836 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18837 old_postinstall_cmds old_postuninstall_cmds \ 18838 compiler_GCJ \ 18839 CC_GCJ \ 18840 LD_GCJ \ 18841 lt_prog_compiler_wl_GCJ \ 18842 lt_prog_compiler_pic_GCJ \ 18843 lt_prog_compiler_static_GCJ \ 18844 lt_prog_compiler_no_builtin_flag_GCJ \ 18845 export_dynamic_flag_spec_GCJ \ 18846 thread_safe_flag_spec_GCJ \ 18847 whole_archive_flag_spec_GCJ \ 18848 enable_shared_with_static_runtimes_GCJ \ 18849 old_archive_cmds_GCJ \ 18850 old_archive_from_new_cmds_GCJ \ 18851 predep_objects_GCJ \ 18852 postdep_objects_GCJ \ 18853 predeps_GCJ \ 18854 postdeps_GCJ \ 18855 compiler_lib_search_path_GCJ \ 18856 archive_cmds_GCJ \ 18857 archive_expsym_cmds_GCJ \ 18858 postinstall_cmds_GCJ \ 18859 postuninstall_cmds_GCJ \ 18860 old_archive_from_expsyms_cmds_GCJ \ 18861 allow_undefined_flag_GCJ \ 18862 no_undefined_flag_GCJ \ 18863 export_symbols_cmds_GCJ \ 18864 hardcode_libdir_flag_spec_GCJ \ 18865 hardcode_libdir_flag_spec_ld_GCJ \ 18866 hardcode_libdir_separator_GCJ \ 18867 hardcode_automatic_GCJ \ 18868 module_cmds_GCJ \ 18869 module_expsym_cmds_GCJ \ 18870 lt_cv_prog_compiler_c_o_GCJ \ 18871 exclude_expsyms_GCJ \ 18872 include_expsyms_GCJ; do 18873 18874 case $var in 18875 old_archive_cmds_GCJ | \ 18876 old_archive_from_new_cmds_GCJ | \ 18877 archive_cmds_GCJ | \ 18878 archive_expsym_cmds_GCJ | \ 18879 module_cmds_GCJ | \ 18880 module_expsym_cmds_GCJ | \ 18881 old_archive_from_expsyms_cmds_GCJ | \ 18882 export_symbols_cmds_GCJ | \ 18883 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18884 postinstall_cmds | postuninstall_cmds | \ 18885 old_postinstall_cmds | old_postuninstall_cmds | \ 18886 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18887 # Double-quote double-evaled strings. 18888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18889 ;; 18890 *) 18891 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18892 ;; 18893 esac 18894 done 18895 18896 case $lt_echo in 18897 *'\$0 --fallback-echo"') 18898 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18899 ;; 18900 esac 18901 18902cfgfile="$ofile" 18903 18904 cat <<__EOF__ >> "$cfgfile" 18905# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18906 18907# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18908 18909# Shell to use when invoking shell scripts. 18910SHELL=$lt_SHELL 18911 18912# Whether or not to build shared libraries. 18913build_libtool_libs=$enable_shared 18914 18915# Whether or not to build static libraries. 18916build_old_libs=$enable_static 18917 18918# Whether or not to add -lc for building shared libraries. 18919build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18920 18921# Whether or not to disallow shared libs when runtime libs are static 18922allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18923 18924# Whether or not to optimize for fast installation. 18925fast_install=$enable_fast_install 18926 18927# The host system. 18928host_alias=$host_alias 18929host=$host 18930host_os=$host_os 18931 18932# The build system. 18933build_alias=$build_alias 18934build=$build 18935build_os=$build_os 18936 18937# An echo program that does not interpret backslashes. 18938echo=$lt_echo 18939 18940# The archiver. 18941AR=$lt_AR 18942AR_FLAGS=$lt_AR_FLAGS 18943 18944# A C compiler. 18945LTCC=$lt_LTCC 18946 18947# A language-specific compiler. 18948CC=$lt_compiler_GCJ 18949 18950# Is the compiler the GNU C compiler? 18951with_gcc=$GCC_GCJ 18952 18953# An ERE matcher. 18954EGREP=$lt_EGREP 18955 18956# The linker used to build libraries. 18957LD=$lt_LD_GCJ 18958 18959# Whether we need hard or soft links. 18960LN_S=$lt_LN_S 18961 18962# A BSD-compatible nm program. 18963NM=$lt_NM 18964 18965# A symbol stripping program 18966STRIP=$lt_STRIP 18967 18968# Used to examine libraries when file_magic_cmd begins "file" 18969MAGIC_CMD=$MAGIC_CMD 18970 18971# Used on cygwin: DLL creation program. 18972DLLTOOL="$DLLTOOL" 18973 18974# Used on cygwin: object dumper. 18975OBJDUMP="$OBJDUMP" 18976 18977# Used on cygwin: assembler. 18978AS="$AS" 18979 18980# The name of the directory that contains temporary libtool files. 18981objdir=$objdir 18982 18983# How to create reloadable object files. 18984reload_flag=$lt_reload_flag 18985reload_cmds=$lt_reload_cmds 18986 18987# How to pass a linker flag through the compiler. 18988wl=$lt_lt_prog_compiler_wl_GCJ 18989 18990# Object file suffix (normally "o"). 18991objext="$ac_objext" 18992 18993# Old archive suffix (normally "a"). 18994libext="$libext" 18995 18996# Shared library suffix (normally ".so"). 18997shrext_cmds='$shrext_cmds' 18998 18999# Executable file suffix (normally ""). 19000exeext="$exeext" 19001 19002# Additional compiler flags for building library objects. 19003pic_flag=$lt_lt_prog_compiler_pic_GCJ 19004pic_mode=$pic_mode 19005 19006# What is the maximum length of a command? 19007max_cmd_len=$lt_cv_sys_max_cmd_len 19008 19009# Does compiler simultaneously support -c and -o options? 19010compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19011 19012# Must we lock files when doing compilation? 19013need_locks=$lt_need_locks 19014 19015# Do we need the lib prefix for modules? 19016need_lib_prefix=$need_lib_prefix 19017 19018# Do we need a version for libraries? 19019need_version=$need_version 19020 19021# Whether dlopen is supported. 19022dlopen_support=$enable_dlopen 19023 19024# Whether dlopen of programs is supported. 19025dlopen_self=$enable_dlopen_self 19026 19027# Whether dlopen of statically linked programs is supported. 19028dlopen_self_static=$enable_dlopen_self_static 19029 19030# Compiler flag to prevent dynamic linking. 19031link_static_flag=$lt_lt_prog_compiler_static_GCJ 19032 19033# Compiler flag to turn off builtin functions. 19034no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19035 19036# Compiler flag to allow reflexive dlopens. 19037export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19038 19039# Compiler flag to generate shared objects directly from archives. 19040whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19041 19042# Compiler flag to generate thread-safe objects. 19043thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19044 19045# Library versioning type. 19046version_type=$version_type 19047 19048# Format of library name prefix. 19049libname_spec=$lt_libname_spec 19050 19051# List of archive names. First name is the real one, the rest are links. 19052# The last name is the one that the linker finds with -lNAME. 19053library_names_spec=$lt_library_names_spec 19054 19055# The coded name of the library, if different from the real name. 19056soname_spec=$lt_soname_spec 19057 19058# Commands used to build and install an old-style archive. 19059RANLIB=$lt_RANLIB 19060old_archive_cmds=$lt_old_archive_cmds_GCJ 19061old_postinstall_cmds=$lt_old_postinstall_cmds 19062old_postuninstall_cmds=$lt_old_postuninstall_cmds 19063 19064# Create an old-style archive from a shared archive. 19065old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19066 19067# Create a temporary old-style archive to link instead of a shared archive. 19068old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19069 19070# Commands used to build and install a shared archive. 19071archive_cmds=$lt_archive_cmds_GCJ 19072archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19073postinstall_cmds=$lt_postinstall_cmds 19074postuninstall_cmds=$lt_postuninstall_cmds 19075 19076# Commands used to build a loadable module (assumed same as above if empty) 19077module_cmds=$lt_module_cmds_GCJ 19078module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19079 19080# Commands to strip libraries. 19081old_striplib=$lt_old_striplib 19082striplib=$lt_striplib 19083 19084# Dependencies to place before the objects being linked to create a 19085# shared library. 19086predep_objects=$lt_predep_objects_GCJ 19087 19088# Dependencies to place after the objects being linked to create a 19089# shared library. 19090postdep_objects=$lt_postdep_objects_GCJ 19091 19092# Dependencies to place before the objects being linked to create a 19093# shared library. 19094predeps=$lt_predeps_GCJ 19095 19096# Dependencies to place after the objects being linked to create a 19097# shared library. 19098postdeps=$lt_postdeps_GCJ 19099 19100# The library search path used internally by the compiler when linking 19101# a shared library. 19102compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19103 19104# Method to check whether dependent libraries are shared objects. 19105deplibs_check_method=$lt_deplibs_check_method 19106 19107# Command to use when deplibs_check_method == file_magic. 19108file_magic_cmd=$lt_file_magic_cmd 19109 19110# Flag that allows shared libraries with undefined symbols to be built. 19111allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19112 19113# Flag that forces no undefined symbols. 19114no_undefined_flag=$lt_no_undefined_flag_GCJ 19115 19116# Commands used to finish a libtool library installation in a directory. 19117finish_cmds=$lt_finish_cmds 19118 19119# Same as above, but a single script fragment to be evaled but not shown. 19120finish_eval=$lt_finish_eval 19121 19122# Take the output of nm and produce a listing of raw symbols and C names. 19123global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19124 19125# Transform the output of nm in a proper C declaration 19126global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19127 19128# Transform the output of nm in a C name address pair 19129global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19130 19131# This is the shared library runtime path variable. 19132runpath_var=$runpath_var 19133 19134# This is the shared library path variable. 19135shlibpath_var=$shlibpath_var 19136 19137# Is shlibpath searched before the hard-coded library search path? 19138shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19139 19140# How to hardcode a shared library path into an executable. 19141hardcode_action=$hardcode_action_GCJ 19142 19143# Whether we should hardcode library paths into libraries. 19144hardcode_into_libs=$hardcode_into_libs 19145 19146# Flag to hardcode \$libdir into a binary during linking. 19147# This must work even if \$libdir does not exist. 19148hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19149 19150# If ld is used when linking, flag to hardcode \$libdir into 19151# a binary during linking. This must work even if \$libdir does 19152# not exist. 19153hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19154 19155# Whether we need a single -rpath flag with a separated argument. 19156hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19157 19158# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19159# resulting binary. 19160hardcode_direct=$hardcode_direct_GCJ 19161 19162# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19163# resulting binary. 19164hardcode_minus_L=$hardcode_minus_L_GCJ 19165 19166# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19167# the resulting binary. 19168hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19169 19170# Set to yes if building a shared library automatically hardcodes DIR into the library 19171# and all subsequent libraries and executables linked against it. 19172hardcode_automatic=$hardcode_automatic_GCJ 19173 19174# Variables whose values should be saved in libtool wrapper scripts and 19175# restored at relink time. 19176variables_saved_for_relink="$variables_saved_for_relink" 19177 19178# Whether libtool must link a program against all its dependency libraries. 19179link_all_deplibs=$link_all_deplibs_GCJ 19180 19181# Compile-time system search path for libraries 19182sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19183 19184# Run-time system search path for libraries 19185sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19186 19187# Fix the shell variable \$srcfile for the compiler. 19188fix_srcfile_path="$fix_srcfile_path_GCJ" 19189 19190# Set to yes if exported symbols are required. 19191always_export_symbols=$always_export_symbols_GCJ 19192 19193# The commands to list exported symbols. 19194export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19195 19196# The commands to extract the exported symbol list from a shared archive. 19197extract_expsyms_cmds=$lt_extract_expsyms_cmds 19198 19199# Symbols that should not be listed in the preloaded symbols. 19200exclude_expsyms=$lt_exclude_expsyms_GCJ 19201 19202# Symbols that must always be exported. 19203include_expsyms=$lt_include_expsyms_GCJ 19204 19205# ### END LIBTOOL TAG CONFIG: $tagname 19206 19207__EOF__ 19208 19209 19210else 19211 # If there is no Makefile yet, we rely on a make rule to execute 19212 # `config.status --recheck' to rerun these tests and create the 19213 # libtool script then. 19214 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19215 if test -f "$ltmain_in"; then 19216 test -f Makefile && make "$ltmain" 19217 fi 19218fi 19219 19220 19221ac_ext=c 19222ac_cpp='$CPP $CPPFLAGS' 19223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19225ac_compiler_gnu=$ac_cv_c_compiler_gnu 19226 19227CC="$lt_save_CC" 19228 19229 else 19230 tagname="" 19231 fi 19232 ;; 19233 19234 RC) 19235 19236 19237 19238# Source file extension for RC test sources. 19239ac_ext=rc 19240 19241# Object file extension for compiled RC test sources. 19242objext=o 19243objext_RC=$objext 19244 19245# Code to be used in simple compile tests 19246lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19247 19248# Code to be used in simple link tests 19249lt_simple_link_test_code="$lt_simple_compile_test_code" 19250 19251# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19252 19253# If no C compiler was specified, use CC. 19254LTCC=${LTCC-"$CC"} 19255 19256# Allow CC to be a program name with arguments. 19257compiler=$CC 19258 19259 19260# save warnings/boilerplate of simple test code 19261ac_outfile=conftest.$ac_objext 19262printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19263eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19264_lt_compiler_boilerplate=`cat conftest.err` 19265$rm conftest* 19266 19267ac_outfile=conftest.$ac_objext 19268printf "$lt_simple_link_test_code" >conftest.$ac_ext 19269eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19270_lt_linker_boilerplate=`cat conftest.err` 19271$rm conftest* 19272 19273 19274# Allow CC to be a program name with arguments. 19275lt_save_CC="$CC" 19276CC=${RC-"windres"} 19277compiler=$CC 19278compiler_RC=$CC 19279for cc_temp in $compiler""; do 19280 case $cc_temp in 19281 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19282 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19283 \-*) ;; 19284 *) break;; 19285 esac 19286done 19287cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19288 19289lt_cv_prog_compiler_c_o_RC=yes 19290 19291# The else clause should only fire when bootstrapping the 19292# libtool distribution, otherwise you forgot to ship ltmain.sh 19293# with your package, and you will get complaints that there are 19294# no rules to generate ltmain.sh. 19295if test -f "$ltmain"; then 19296 # See if we are running on zsh, and set the options which allow our commands through 19297 # without removal of \ escapes. 19298 if test -n "${ZSH_VERSION+set}" ; then 19299 setopt NO_GLOB_SUBST 19300 fi 19301 # Now quote all the things that may contain metacharacters while being 19302 # careful not to overquote the AC_SUBSTed values. We take copies of the 19303 # variables and quote the copies for generation of the libtool script. 19304 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19305 SED SHELL STRIP \ 19306 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19307 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19308 deplibs_check_method reload_flag reload_cmds need_locks \ 19309 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19310 lt_cv_sys_global_symbol_to_c_name_address \ 19311 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19312 old_postinstall_cmds old_postuninstall_cmds \ 19313 compiler_RC \ 19314 CC_RC \ 19315 LD_RC \ 19316 lt_prog_compiler_wl_RC \ 19317 lt_prog_compiler_pic_RC \ 19318 lt_prog_compiler_static_RC \ 19319 lt_prog_compiler_no_builtin_flag_RC \ 19320 export_dynamic_flag_spec_RC \ 19321 thread_safe_flag_spec_RC \ 19322 whole_archive_flag_spec_RC \ 19323 enable_shared_with_static_runtimes_RC \ 19324 old_archive_cmds_RC \ 19325 old_archive_from_new_cmds_RC \ 19326 predep_objects_RC \ 19327 postdep_objects_RC \ 19328 predeps_RC \ 19329 postdeps_RC \ 19330 compiler_lib_search_path_RC \ 19331 archive_cmds_RC \ 19332 archive_expsym_cmds_RC \ 19333 postinstall_cmds_RC \ 19334 postuninstall_cmds_RC \ 19335 old_archive_from_expsyms_cmds_RC \ 19336 allow_undefined_flag_RC \ 19337 no_undefined_flag_RC \ 19338 export_symbols_cmds_RC \ 19339 hardcode_libdir_flag_spec_RC \ 19340 hardcode_libdir_flag_spec_ld_RC \ 19341 hardcode_libdir_separator_RC \ 19342 hardcode_automatic_RC \ 19343 module_cmds_RC \ 19344 module_expsym_cmds_RC \ 19345 lt_cv_prog_compiler_c_o_RC \ 19346 exclude_expsyms_RC \ 19347 include_expsyms_RC; do 19348 19349 case $var in 19350 old_archive_cmds_RC | \ 19351 old_archive_from_new_cmds_RC | \ 19352 archive_cmds_RC | \ 19353 archive_expsym_cmds_RC | \ 19354 module_cmds_RC | \ 19355 module_expsym_cmds_RC | \ 19356 old_archive_from_expsyms_cmds_RC | \ 19357 export_symbols_cmds_RC | \ 19358 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19359 postinstall_cmds | postuninstall_cmds | \ 19360 old_postinstall_cmds | old_postuninstall_cmds | \ 19361 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19362 # Double-quote double-evaled strings. 19363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19364 ;; 19365 *) 19366 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19367 ;; 19368 esac 19369 done 19370 19371 case $lt_echo in 19372 *'\$0 --fallback-echo"') 19373 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19374 ;; 19375 esac 19376 19377cfgfile="$ofile" 19378 19379 cat <<__EOF__ >> "$cfgfile" 19380# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19381 19382# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19383 19384# Shell to use when invoking shell scripts. 19385SHELL=$lt_SHELL 19386 19387# Whether or not to build shared libraries. 19388build_libtool_libs=$enable_shared 19389 19390# Whether or not to build static libraries. 19391build_old_libs=$enable_static 19392 19393# Whether or not to add -lc for building shared libraries. 19394build_libtool_need_lc=$archive_cmds_need_lc_RC 19395 19396# Whether or not to disallow shared libs when runtime libs are static 19397allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19398 19399# Whether or not to optimize for fast installation. 19400fast_install=$enable_fast_install 19401 19402# The host system. 19403host_alias=$host_alias 19404host=$host 19405host_os=$host_os 19406 19407# The build system. 19408build_alias=$build_alias 19409build=$build 19410build_os=$build_os 19411 19412# An echo program that does not interpret backslashes. 19413echo=$lt_echo 19414 19415# The archiver. 19416AR=$lt_AR 19417AR_FLAGS=$lt_AR_FLAGS 19418 19419# A C compiler. 19420LTCC=$lt_LTCC 19421 19422# A language-specific compiler. 19423CC=$lt_compiler_RC 19424 19425# Is the compiler the GNU C compiler? 19426with_gcc=$GCC_RC 19427 19428# An ERE matcher. 19429EGREP=$lt_EGREP 19430 19431# The linker used to build libraries. 19432LD=$lt_LD_RC 19433 19434# Whether we need hard or soft links. 19435LN_S=$lt_LN_S 19436 19437# A BSD-compatible nm program. 19438NM=$lt_NM 19439 19440# A symbol stripping program 19441STRIP=$lt_STRIP 19442 19443# Used to examine libraries when file_magic_cmd begins "file" 19444MAGIC_CMD=$MAGIC_CMD 19445 19446# Used on cygwin: DLL creation program. 19447DLLTOOL="$DLLTOOL" 19448 19449# Used on cygwin: object dumper. 19450OBJDUMP="$OBJDUMP" 19451 19452# Used on cygwin: assembler. 19453AS="$AS" 19454 19455# The name of the directory that contains temporary libtool files. 19456objdir=$objdir 19457 19458# How to create reloadable object files. 19459reload_flag=$lt_reload_flag 19460reload_cmds=$lt_reload_cmds 19461 19462# How to pass a linker flag through the compiler. 19463wl=$lt_lt_prog_compiler_wl_RC 19464 19465# Object file suffix (normally "o"). 19466objext="$ac_objext" 19467 19468# Old archive suffix (normally "a"). 19469libext="$libext" 19470 19471# Shared library suffix (normally ".so"). 19472shrext_cmds='$shrext_cmds' 19473 19474# Executable file suffix (normally ""). 19475exeext="$exeext" 19476 19477# Additional compiler flags for building library objects. 19478pic_flag=$lt_lt_prog_compiler_pic_RC 19479pic_mode=$pic_mode 19480 19481# What is the maximum length of a command? 19482max_cmd_len=$lt_cv_sys_max_cmd_len 19483 19484# Does compiler simultaneously support -c and -o options? 19485compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19486 19487# Must we lock files when doing compilation? 19488need_locks=$lt_need_locks 19489 19490# Do we need the lib prefix for modules? 19491need_lib_prefix=$need_lib_prefix 19492 19493# Do we need a version for libraries? 19494need_version=$need_version 19495 19496# Whether dlopen is supported. 19497dlopen_support=$enable_dlopen 19498 19499# Whether dlopen of programs is supported. 19500dlopen_self=$enable_dlopen_self 19501 19502# Whether dlopen of statically linked programs is supported. 19503dlopen_self_static=$enable_dlopen_self_static 19504 19505# Compiler flag to prevent dynamic linking. 19506link_static_flag=$lt_lt_prog_compiler_static_RC 19507 19508# Compiler flag to turn off builtin functions. 19509no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19510 19511# Compiler flag to allow reflexive dlopens. 19512export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19513 19514# Compiler flag to generate shared objects directly from archives. 19515whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19516 19517# Compiler flag to generate thread-safe objects. 19518thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19519 19520# Library versioning type. 19521version_type=$version_type 19522 19523# Format of library name prefix. 19524libname_spec=$lt_libname_spec 19525 19526# List of archive names. First name is the real one, the rest are links. 19527# The last name is the one that the linker finds with -lNAME. 19528library_names_spec=$lt_library_names_spec 19529 19530# The coded name of the library, if different from the real name. 19531soname_spec=$lt_soname_spec 19532 19533# Commands used to build and install an old-style archive. 19534RANLIB=$lt_RANLIB 19535old_archive_cmds=$lt_old_archive_cmds_RC 19536old_postinstall_cmds=$lt_old_postinstall_cmds 19537old_postuninstall_cmds=$lt_old_postuninstall_cmds 19538 19539# Create an old-style archive from a shared archive. 19540old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19541 19542# Create a temporary old-style archive to link instead of a shared archive. 19543old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19544 19545# Commands used to build and install a shared archive. 19546archive_cmds=$lt_archive_cmds_RC 19547archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19548postinstall_cmds=$lt_postinstall_cmds 19549postuninstall_cmds=$lt_postuninstall_cmds 19550 19551# Commands used to build a loadable module (assumed same as above if empty) 19552module_cmds=$lt_module_cmds_RC 19553module_expsym_cmds=$lt_module_expsym_cmds_RC 19554 19555# Commands to strip libraries. 19556old_striplib=$lt_old_striplib 19557striplib=$lt_striplib 19558 19559# Dependencies to place before the objects being linked to create a 19560# shared library. 19561predep_objects=$lt_predep_objects_RC 19562 19563# Dependencies to place after the objects being linked to create a 19564# shared library. 19565postdep_objects=$lt_postdep_objects_RC 19566 19567# Dependencies to place before the objects being linked to create a 19568# shared library. 19569predeps=$lt_predeps_RC 19570 19571# Dependencies to place after the objects being linked to create a 19572# shared library. 19573postdeps=$lt_postdeps_RC 19574 19575# The library search path used internally by the compiler when linking 19576# a shared library. 19577compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19578 19579# Method to check whether dependent libraries are shared objects. 19580deplibs_check_method=$lt_deplibs_check_method 19581 19582# Command to use when deplibs_check_method == file_magic. 19583file_magic_cmd=$lt_file_magic_cmd 19584 19585# Flag that allows shared libraries with undefined symbols to be built. 19586allow_undefined_flag=$lt_allow_undefined_flag_RC 19587 19588# Flag that forces no undefined symbols. 19589no_undefined_flag=$lt_no_undefined_flag_RC 19590 19591# Commands used to finish a libtool library installation in a directory. 19592finish_cmds=$lt_finish_cmds 19593 19594# Same as above, but a single script fragment to be evaled but not shown. 19595finish_eval=$lt_finish_eval 19596 19597# Take the output of nm and produce a listing of raw symbols and C names. 19598global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19599 19600# Transform the output of nm in a proper C declaration 19601global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19602 19603# Transform the output of nm in a C name address pair 19604global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19605 19606# This is the shared library runtime path variable. 19607runpath_var=$runpath_var 19608 19609# This is the shared library path variable. 19610shlibpath_var=$shlibpath_var 19611 19612# Is shlibpath searched before the hard-coded library search path? 19613shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19614 19615# How to hardcode a shared library path into an executable. 19616hardcode_action=$hardcode_action_RC 19617 19618# Whether we should hardcode library paths into libraries. 19619hardcode_into_libs=$hardcode_into_libs 19620 19621# Flag to hardcode \$libdir into a binary during linking. 19622# This must work even if \$libdir does not exist. 19623hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19624 19625# If ld is used when linking, flag to hardcode \$libdir into 19626# a binary during linking. This must work even if \$libdir does 19627# not exist. 19628hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19629 19630# Whether we need a single -rpath flag with a separated argument. 19631hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19632 19633# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19634# resulting binary. 19635hardcode_direct=$hardcode_direct_RC 19636 19637# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19638# resulting binary. 19639hardcode_minus_L=$hardcode_minus_L_RC 19640 19641# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19642# the resulting binary. 19643hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19644 19645# Set to yes if building a shared library automatically hardcodes DIR into the library 19646# and all subsequent libraries and executables linked against it. 19647hardcode_automatic=$hardcode_automatic_RC 19648 19649# Variables whose values should be saved in libtool wrapper scripts and 19650# restored at relink time. 19651variables_saved_for_relink="$variables_saved_for_relink" 19652 19653# Whether libtool must link a program against all its dependency libraries. 19654link_all_deplibs=$link_all_deplibs_RC 19655 19656# Compile-time system search path for libraries 19657sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19658 19659# Run-time system search path for libraries 19660sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19661 19662# Fix the shell variable \$srcfile for the compiler. 19663fix_srcfile_path="$fix_srcfile_path_RC" 19664 19665# Set to yes if exported symbols are required. 19666always_export_symbols=$always_export_symbols_RC 19667 19668# The commands to list exported symbols. 19669export_symbols_cmds=$lt_export_symbols_cmds_RC 19670 19671# The commands to extract the exported symbol list from a shared archive. 19672extract_expsyms_cmds=$lt_extract_expsyms_cmds 19673 19674# Symbols that should not be listed in the preloaded symbols. 19675exclude_expsyms=$lt_exclude_expsyms_RC 19676 19677# Symbols that must always be exported. 19678include_expsyms=$lt_include_expsyms_RC 19679 19680# ### END LIBTOOL TAG CONFIG: $tagname 19681 19682__EOF__ 19683 19684 19685else 19686 # If there is no Makefile yet, we rely on a make rule to execute 19687 # `config.status --recheck' to rerun these tests and create the 19688 # libtool script then. 19689 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19690 if test -f "$ltmain_in"; then 19691 test -f Makefile && make "$ltmain" 19692 fi 19693fi 19694 19695 19696ac_ext=c 19697ac_cpp='$CPP $CPPFLAGS' 19698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19700ac_compiler_gnu=$ac_cv_c_compiler_gnu 19701 19702CC="$lt_save_CC" 19703 19704 ;; 19705 19706 *) 19707 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19708echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19709 { (exit 1); exit 1; }; } 19710 ;; 19711 esac 19712 19713 # Append the new tag name to the list of available tags. 19714 if test -n "$tagname" ; then 19715 available_tags="$available_tags $tagname" 19716 fi 19717 fi 19718 done 19719 IFS="$lt_save_ifs" 19720 19721 # Now substitute the updated list of available tags. 19722 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19723 mv "${ofile}T" "$ofile" 19724 chmod +x "$ofile" 19725 else 19726 rm -f "${ofile}T" 19727 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19728echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19729 { (exit 1); exit 1; }; } 19730 fi 19731fi 19732 19733 19734 19735# This can be used to rebuild libtool when needed 19736LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19737 19738# Always use our own libtool. 19739LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19740 19741# Prevent multiple expansion 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 19762 19763# Checks for libraries. 19764 19765# Checks for header files. 19766echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19767echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 19768if test "${ac_cv_header_stdc+set}" = set; then 19769 echo $ECHO_N "(cached) $ECHO_C" >&6 19770else 19771 cat >conftest.$ac_ext <<_ACEOF 19772/* confdefs.h. */ 19773_ACEOF 19774cat confdefs.h >>conftest.$ac_ext 19775cat >>conftest.$ac_ext <<_ACEOF 19776/* end confdefs.h. */ 19777#include <stdlib.h> 19778#include <stdarg.h> 19779#include <string.h> 19780#include <float.h> 19781 19782int 19783main () 19784{ 19785 19786 ; 19787 return 0; 19788} 19789_ACEOF 19790rm -f conftest.$ac_objext 19791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19792 (eval $ac_compile) 2>conftest.er1 19793 ac_status=$? 19794 grep -v '^ *+' conftest.er1 >conftest.err 19795 rm -f conftest.er1 19796 cat conftest.err >&5 19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19798 (exit $ac_status); } && 19799 { ac_try='test -z "$ac_c_werror_flag" 19800 || test ! -s conftest.err' 19801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19802 (eval $ac_try) 2>&5 19803 ac_status=$? 19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19805 (exit $ac_status); }; } && 19806 { ac_try='test -s conftest.$ac_objext' 19807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19808 (eval $ac_try) 2>&5 19809 ac_status=$? 19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19811 (exit $ac_status); }; }; then 19812 ac_cv_header_stdc=yes 19813else 19814 echo "$as_me: failed program was:" >&5 19815sed 's/^/| /' conftest.$ac_ext >&5 19816 19817ac_cv_header_stdc=no 19818fi 19819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19820 19821if test $ac_cv_header_stdc = yes; then 19822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19823 cat >conftest.$ac_ext <<_ACEOF 19824/* confdefs.h. */ 19825_ACEOF 19826cat confdefs.h >>conftest.$ac_ext 19827cat >>conftest.$ac_ext <<_ACEOF 19828/* end confdefs.h. */ 19829#include <string.h> 19830 19831_ACEOF 19832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19833 $EGREP "memchr" >/dev/null 2>&1; then 19834 : 19835else 19836 ac_cv_header_stdc=no 19837fi 19838rm -f conftest* 19839 19840fi 19841 19842if test $ac_cv_header_stdc = yes; then 19843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19844 cat >conftest.$ac_ext <<_ACEOF 19845/* confdefs.h. */ 19846_ACEOF 19847cat confdefs.h >>conftest.$ac_ext 19848cat >>conftest.$ac_ext <<_ACEOF 19849/* end confdefs.h. */ 19850#include <stdlib.h> 19851 19852_ACEOF 19853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19854 $EGREP "free" >/dev/null 2>&1; then 19855 : 19856else 19857 ac_cv_header_stdc=no 19858fi 19859rm -f conftest* 19860 19861fi 19862 19863if test $ac_cv_header_stdc = yes; then 19864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19865 if test "$cross_compiling" = yes; then 19866 : 19867else 19868 cat >conftest.$ac_ext <<_ACEOF 19869/* confdefs.h. */ 19870_ACEOF 19871cat confdefs.h >>conftest.$ac_ext 19872cat >>conftest.$ac_ext <<_ACEOF 19873/* end confdefs.h. */ 19874#include <ctype.h> 19875#if ((' ' & 0x0FF) == 0x020) 19876# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19877# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19878#else 19879# define ISLOWER(c) \ 19880 (('a' <= (c) && (c) <= 'i') \ 19881 || ('j' <= (c) && (c) <= 'r') \ 19882 || ('s' <= (c) && (c) <= 'z')) 19883# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19884#endif 19885 19886#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19887int 19888main () 19889{ 19890 int i; 19891 for (i = 0; i < 256; i++) 19892 if (XOR (islower (i), ISLOWER (i)) 19893 || toupper (i) != TOUPPER (i)) 19894 exit(2); 19895 exit (0); 19896} 19897_ACEOF 19898rm -f conftest$ac_exeext 19899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19900 (eval $ac_link) 2>&5 19901 ac_status=$? 19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19905 (eval $ac_try) 2>&5 19906 ac_status=$? 19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19908 (exit $ac_status); }; }; then 19909 : 19910else 19911 echo "$as_me: program exited with status $ac_status" >&5 19912echo "$as_me: failed program was:" >&5 19913sed 's/^/| /' conftest.$ac_ext >&5 19914 19915( exit $ac_status ) 19916ac_cv_header_stdc=no 19917fi 19918rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19919fi 19920fi 19921fi 19922echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 19923echo "${ECHO_T}$ac_cv_header_stdc" >&6 19924if test $ac_cv_header_stdc = yes; then 19925 19926cat >>confdefs.h <<\_ACEOF 19927#define STDC_HEADERS 1 19928_ACEOF 19929 19930fi 19931 19932 19933for ac_header in stdint.h 19934do 19935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19936if eval "test \"\${$as_ac_Header+set}\" = set"; then 19937 echo "$as_me:$LINENO: checking for $ac_header" >&5 19938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19939if eval "test \"\${$as_ac_Header+set}\" = set"; then 19940 echo $ECHO_N "(cached) $ECHO_C" >&6 19941fi 19942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19944else 19945 # Is the header compilable? 19946echo "$as_me:$LINENO: checking $ac_header usability" >&5 19947echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19948cat >conftest.$ac_ext <<_ACEOF 19949/* confdefs.h. */ 19950_ACEOF 19951cat confdefs.h >>conftest.$ac_ext 19952cat >>conftest.$ac_ext <<_ACEOF 19953/* end confdefs.h. */ 19954$ac_includes_default 19955#include <$ac_header> 19956_ACEOF 19957rm -f conftest.$ac_objext 19958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19959 (eval $ac_compile) 2>conftest.er1 19960 ac_status=$? 19961 grep -v '^ *+' conftest.er1 >conftest.err 19962 rm -f conftest.er1 19963 cat conftest.err >&5 19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19965 (exit $ac_status); } && 19966 { ac_try='test -z "$ac_c_werror_flag" 19967 || test ! -s conftest.err' 19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19969 (eval $ac_try) 2>&5 19970 ac_status=$? 19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19972 (exit $ac_status); }; } && 19973 { ac_try='test -s conftest.$ac_objext' 19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19975 (eval $ac_try) 2>&5 19976 ac_status=$? 19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19978 (exit $ac_status); }; }; then 19979 ac_header_compiler=yes 19980else 19981 echo "$as_me: failed program was:" >&5 19982sed 's/^/| /' conftest.$ac_ext >&5 19983 19984ac_header_compiler=no 19985fi 19986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19987echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19988echo "${ECHO_T}$ac_header_compiler" >&6 19989 19990# Is the header present? 19991echo "$as_me:$LINENO: checking $ac_header presence" >&5 19992echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19993cat >conftest.$ac_ext <<_ACEOF 19994/* confdefs.h. */ 19995_ACEOF 19996cat confdefs.h >>conftest.$ac_ext 19997cat >>conftest.$ac_ext <<_ACEOF 19998/* end confdefs.h. */ 19999#include <$ac_header> 20000_ACEOF 20001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20003 ac_status=$? 20004 grep -v '^ *+' conftest.er1 >conftest.err 20005 rm -f conftest.er1 20006 cat conftest.err >&5 20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20008 (exit $ac_status); } >/dev/null; then 20009 if test -s conftest.err; then 20010 ac_cpp_err=$ac_c_preproc_warn_flag 20011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20012 else 20013 ac_cpp_err= 20014 fi 20015else 20016 ac_cpp_err=yes 20017fi 20018if test -z "$ac_cpp_err"; then 20019 ac_header_preproc=yes 20020else 20021 echo "$as_me: failed program was:" >&5 20022sed 's/^/| /' conftest.$ac_ext >&5 20023 20024 ac_header_preproc=no 20025fi 20026rm -f conftest.err conftest.$ac_ext 20027echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20028echo "${ECHO_T}$ac_header_preproc" >&6 20029 20030# So? What about this header? 20031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20032 yes:no: ) 20033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20034echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20036echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20037 ac_header_preproc=yes 20038 ;; 20039 no:yes:* ) 20040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20041echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20043echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20045echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20047echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20049echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20051echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20052 ( 20053 cat <<\_ASBOX 20054## ------------------------------ ## 20055## Report this to the oto lists. ## 20056## ------------------------------ ## 20057_ASBOX 20058 ) | 20059 sed "s/^/$as_me: WARNING: /" >&2 20060 ;; 20061esac 20062echo "$as_me:$LINENO: checking for $ac_header" >&5 20063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20064if eval "test \"\${$as_ac_Header+set}\" = set"; then 20065 echo $ECHO_N "(cached) $ECHO_C" >&6 20066else 20067 eval "$as_ac_Header=\$ac_header_preproc" 20068fi 20069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20071 20072fi 20073if test `eval echo '${'$as_ac_Header'}'` = yes; then 20074 cat >>confdefs.h <<_ACEOF 20075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20076_ACEOF 20077 20078fi 20079 20080done 20081 20082 20083if test "x$ac_cv_header_stdc" = "xno"; then 20084 { { echo "$as_me:$LINENO: error: *** The required stdc header files not found." >&5 20085echo "$as_me: error: *** The required stdc header files not found." >&2;} 20086 { (exit 1); exit 1; }; } 20087fi 20088 20089if test "x$ac_cv_header_stdint" = "xno"; then 20090 { { echo "$as_me:$LINENO: error: *** The required stdint.h header files not found." >&5 20091echo "$as_me: error: *** The required stdint.h header files not found." >&2;} 20092 { (exit 1); exit 1; }; } 20093fi 20094 20095# Checks for typedefs, structures, and compiler characteristics. 20096echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 20097echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 20098if test "${ac_cv_c_const+set}" = set; then 20099 echo $ECHO_N "(cached) $ECHO_C" >&6 20100else 20101 cat >conftest.$ac_ext <<_ACEOF 20102/* confdefs.h. */ 20103_ACEOF 20104cat confdefs.h >>conftest.$ac_ext 20105cat >>conftest.$ac_ext <<_ACEOF 20106/* end confdefs.h. */ 20107 20108int 20109main () 20110{ 20111/* FIXME: Include the comments suggested by Paul. */ 20112#ifndef __cplusplus 20113 /* Ultrix mips cc rejects this. */ 20114 typedef int charset[2]; 20115 const charset x; 20116 /* SunOS 4.1.1 cc rejects this. */ 20117 char const *const *ccp; 20118 char **p; 20119 /* NEC SVR4.0.2 mips cc rejects this. */ 20120 struct point {int x, y;}; 20121 static struct point const zero = {0,0}; 20122 /* AIX XL C 1.02.0.0 rejects this. 20123 It does not let you subtract one const X* pointer from another in 20124 an arm of an if-expression whose if-part is not a constant 20125 expression */ 20126 const char *g = "string"; 20127 ccp = &g + (g ? g-g : 0); 20128 /* HPUX 7.0 cc rejects these. */ 20129 ++ccp; 20130 p = (char**) ccp; 20131 ccp = (char const *const *) p; 20132 { /* SCO 3.2v4 cc rejects this. */ 20133 char *t; 20134 char const *s = 0 ? (char *) 0 : (char const *) 0; 20135 20136 *t++ = 0; 20137 } 20138 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20139 int x[] = {25, 17}; 20140 const int *foo = &x[0]; 20141 ++foo; 20142 } 20143 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20144 typedef const int *iptr; 20145 iptr p = 0; 20146 ++p; 20147 } 20148 { /* AIX XL C 1.02.0.0 rejects this saying 20149 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20150 struct s { int j; const int *ap[3]; }; 20151 struct s *b; b->j = 5; 20152 } 20153 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20154 const int foo = 10; 20155 } 20156#endif 20157 20158 ; 20159 return 0; 20160} 20161_ACEOF 20162rm -f conftest.$ac_objext 20163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20164 (eval $ac_compile) 2>conftest.er1 20165 ac_status=$? 20166 grep -v '^ *+' conftest.er1 >conftest.err 20167 rm -f conftest.er1 20168 cat conftest.err >&5 20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20170 (exit $ac_status); } && 20171 { ac_try='test -z "$ac_c_werror_flag" 20172 || test ! -s conftest.err' 20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20174 (eval $ac_try) 2>&5 20175 ac_status=$? 20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20177 (exit $ac_status); }; } && 20178 { ac_try='test -s conftest.$ac_objext' 20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20180 (eval $ac_try) 2>&5 20181 ac_status=$? 20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20183 (exit $ac_status); }; }; then 20184 ac_cv_c_const=yes 20185else 20186 echo "$as_me: failed program was:" >&5 20187sed 's/^/| /' conftest.$ac_ext >&5 20188 20189ac_cv_c_const=no 20190fi 20191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20192fi 20193echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 20194echo "${ECHO_T}$ac_cv_c_const" >&6 20195if test $ac_cv_c_const = no; then 20196 20197cat >>confdefs.h <<\_ACEOF 20198#define const 20199_ACEOF 20200 20201fi 20202 20203 20204# Checks for library functions. 20205 20206for ac_func in iconv 20207do 20208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20209echo "$as_me:$LINENO: checking for $ac_func" >&5 20210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20211if eval "test \"\${$as_ac_var+set}\" = set"; then 20212 echo $ECHO_N "(cached) $ECHO_C" >&6 20213else 20214 cat >conftest.$ac_ext <<_ACEOF 20215/* confdefs.h. */ 20216_ACEOF 20217cat confdefs.h >>conftest.$ac_ext 20218cat >>conftest.$ac_ext <<_ACEOF 20219/* end confdefs.h. */ 20220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20221 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20222#define $ac_func innocuous_$ac_func 20223 20224/* System header to define __stub macros and hopefully few prototypes, 20225 which can conflict with char $ac_func (); below. 20226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20227 <limits.h> exists even on freestanding compilers. */ 20228 20229#ifdef __STDC__ 20230# include <limits.h> 20231#else 20232# include <assert.h> 20233#endif 20234 20235#undef $ac_func 20236 20237/* Override any gcc2 internal prototype to avoid an error. */ 20238#ifdef __cplusplus 20239extern "C" 20240{ 20241#endif 20242/* We use char because int might match the return type of a gcc2 20243 builtin and then its argument prototype would still apply. */ 20244char $ac_func (); 20245/* The GNU C library defines this for functions which it implements 20246 to always fail with ENOSYS. Some functions are actually named 20247 something starting with __ and the normal name is an alias. */ 20248#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20249choke me 20250#else 20251char (*f) () = $ac_func; 20252#endif 20253#ifdef __cplusplus 20254} 20255#endif 20256 20257int 20258main () 20259{ 20260return f != $ac_func; 20261 ; 20262 return 0; 20263} 20264_ACEOF 20265rm -f conftest.$ac_objext conftest$ac_exeext 20266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20267 (eval $ac_link) 2>conftest.er1 20268 ac_status=$? 20269 grep -v '^ *+' conftest.er1 >conftest.err 20270 rm -f conftest.er1 20271 cat conftest.err >&5 20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20273 (exit $ac_status); } && 20274 { ac_try='test -z "$ac_c_werror_flag" 20275 || test ! -s conftest.err' 20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20277 (eval $ac_try) 2>&5 20278 ac_status=$? 20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20280 (exit $ac_status); }; } && 20281 { ac_try='test -s conftest$ac_exeext' 20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20283 (eval $ac_try) 2>&5 20284 ac_status=$? 20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20286 (exit $ac_status); }; }; then 20287 eval "$as_ac_var=yes" 20288else 20289 echo "$as_me: failed program was:" >&5 20290sed 's/^/| /' conftest.$ac_ext >&5 20291 20292eval "$as_ac_var=no" 20293fi 20294rm -f conftest.err conftest.$ac_objext \ 20295 conftest$ac_exeext conftest.$ac_ext 20296fi 20297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20298echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20299if test `eval echo '${'$as_ac_var'}'` = yes; then 20300 cat >>confdefs.h <<_ACEOF 20301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20302_ACEOF 20303 break 20304fi 20305done 20306 20307 20308 ac_config_files="$ac_config_files Makefile oto.spec config/Makefile src/Makefile" 20309 20310cat >confcache <<\_ACEOF 20311# This file is a shell script that caches the results of configure 20312# tests run on this system so they can be shared between configure 20313# scripts and configure runs, see configure's option --config-cache. 20314# It is not useful on other systems. If it contains results you don't 20315# want to keep, you may remove or edit it. 20316# 20317# config.status only pays attention to the cache file if you give it 20318# the --recheck option to rerun configure. 20319# 20320# `ac_cv_env_foo' variables (set or unset) will be overridden when 20321# loading this file, other *unset* `ac_cv_foo' will be assigned the 20322# following values. 20323 20324_ACEOF 20325 20326# The following way of writing the cache mishandles newlines in values, 20327# but we know of no workaround that is simple, portable, and efficient. 20328# So, don't put newlines in cache variables' values. 20329# Ultrix sh set writes to stderr and can't be redirected directly, 20330# and sets the high bit in the cache file unless we assign to the vars. 20331{ 20332 (set) 2>&1 | 20333 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20334 *ac_space=\ *) 20335 # `set' does not quote correctly, so add quotes (double-quote 20336 # substitution turns \\\\ into \\, and sed turns \\ into \). 20337 sed -n \ 20338 "s/'/'\\\\''/g; 20339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20340 ;; 20341 *) 20342 # `set' quotes correctly as required by POSIX, so do not add quotes. 20343 sed -n \ 20344 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20345 ;; 20346 esac; 20347} | 20348 sed ' 20349 t clear 20350 : clear 20351 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20352 t end 20353 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20354 : end' >>confcache 20355if diff $cache_file confcache >/dev/null 2>&1; then :; else 20356 if test -w $cache_file; then 20357 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20358 cat confcache >$cache_file 20359 else 20360 echo "not updating unwritable cache $cache_file" 20361 fi 20362fi 20363rm -f confcache 20364 20365test "x$prefix" = xNONE && prefix=$ac_default_prefix 20366# Let make expand exec_prefix. 20367test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20368 20369# VPATH may cause trouble with some makes, so we remove $(srcdir), 20370# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20371# trailing colons and then remove the whole line if VPATH becomes empty 20372# (actually we leave an empty line to preserve line numbers). 20373if test "x$srcdir" = x.; then 20374 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20375s/:*\$(srcdir):*/:/; 20376s/:*\${srcdir}:*/:/; 20377s/:*@srcdir@:*/:/; 20378s/^\([^=]*=[ ]*\):*/\1/; 20379s/:*$//; 20380s/^[^=]*=[ ]*$//; 20381}' 20382fi 20383 20384DEFS=-DHAVE_CONFIG_H 20385 20386ac_libobjs= 20387ac_ltlibobjs= 20388for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20389 # 1. Remove the extension, and $U if already installed. 20390 ac_i=`echo "$ac_i" | 20391 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20392 # 2. Add them. 20393 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20394 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20395done 20396LIBOBJS=$ac_libobjs 20397 20398LTLIBOBJS=$ac_ltlibobjs 20399 20400 20401if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20402 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20403Usually this means the macro was only invoked conditionally." >&5 20404echo "$as_me: error: conditional \"AMDEP\" was never defined. 20405Usually this means the macro was only invoked conditionally." >&2;} 20406 { (exit 1); exit 1; }; } 20407fi 20408if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20409 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20410Usually this means the macro was only invoked conditionally." >&5 20411echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20412Usually this means the macro was only invoked conditionally." >&2;} 20413 { (exit 1); exit 1; }; } 20414fi 20415if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20416 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20417Usually this means the macro was only invoked conditionally." >&5 20418echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20419Usually this means the macro was only invoked conditionally." >&2;} 20420 { (exit 1); exit 1; }; } 20421fi 20422 20423: ${CONFIG_STATUS=./config.status} 20424ac_clean_files_save=$ac_clean_files 20425ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20426{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20427echo "$as_me: creating $CONFIG_STATUS" >&6;} 20428cat >$CONFIG_STATUS <<_ACEOF 20429#! $SHELL 20430# Generated by $as_me. 20431# Run this file to recreate the current configuration. 20432# Compiler output produced by configure, useful for debugging 20433# configure, is in config.log if it exists. 20434 20435debug=false 20436ac_cs_recheck=false 20437ac_cs_silent=false 20438SHELL=\${CONFIG_SHELL-$SHELL} 20439_ACEOF 20440 20441cat >>$CONFIG_STATUS <<\_ACEOF 20442## --------------------- ## 20443## M4sh Initialization. ## 20444## --------------------- ## 20445 20446# Be Bourne compatible 20447if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20448 emulate sh 20449 NULLCMD=: 20450 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20451 # is contrary to our usage. Disable this feature. 20452 alias -g '${1+"$@"}'='"$@"' 20453elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20454 set -o posix 20455fi 20456DUALCASE=1; export DUALCASE # for MKS sh 20457 20458# Support unset when possible. 20459if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20460 as_unset=unset 20461else 20462 as_unset=false 20463fi 20464 20465 20466# Work around bugs in pre-3.0 UWIN ksh. 20467$as_unset ENV MAIL MAILPATH 20468PS1='$ ' 20469PS2='> ' 20470PS4='+ ' 20471 20472# NLS nuisances. 20473for as_var in \ 20474 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20475 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20476 LC_TELEPHONE LC_TIME 20477do 20478 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20479 eval $as_var=C; export $as_var 20480 else 20481 $as_unset $as_var 20482 fi 20483done 20484 20485# Required to use basename. 20486if expr a : '\(a\)' >/dev/null 2>&1; then 20487 as_expr=expr 20488else 20489 as_expr=false 20490fi 20491 20492if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 20493 as_basename=basename 20494else 20495 as_basename=false 20496fi 20497 20498 20499# Name of the executable. 20500as_me=`$as_basename "$0" || 20501$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20502 X"$0" : 'X\(//\)$' \| \ 20503 X"$0" : 'X\(/\)$' \| \ 20504 . : '\(.\)' 2>/dev/null || 20505echo X/"$0" | 20506 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20507 /^X\/\(\/\/\)$/{ s//\1/; q; } 20508 /^X\/\(\/\).*/{ s//\1/; q; } 20509 s/.*/./; q'` 20510 20511 20512# PATH needs CR, and LINENO needs CR and PATH. 20513# Avoid depending upon Character Ranges. 20514as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20515as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20516as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20517as_cr_digits='0123456789' 20518as_cr_alnum=$as_cr_Letters$as_cr_digits 20519 20520# The user is always right. 20521if test "${PATH_SEPARATOR+set}" != set; then 20522 echo "#! /bin/sh" >conf$$.sh 20523 echo "exit 0" >>conf$$.sh 20524 chmod +x conf$$.sh 20525 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20526 PATH_SEPARATOR=';' 20527 else 20528 PATH_SEPARATOR=: 20529 fi 20530 rm -f conf$$.sh 20531fi 20532 20533 20534 as_lineno_1=$LINENO 20535 as_lineno_2=$LINENO 20536 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20537 test "x$as_lineno_1" != "x$as_lineno_2" && 20538 test "x$as_lineno_3" = "x$as_lineno_2" || { 20539 # Find who we are. Look in the path if we contain no path at all 20540 # relative or not. 20541 case $0 in 20542 *[\\/]* ) as_myself=$0 ;; 20543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20544for as_dir in $PATH 20545do 20546 IFS=$as_save_IFS 20547 test -z "$as_dir" && as_dir=. 20548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20549done 20550 20551 ;; 20552 esac 20553 # We did not find ourselves, most probably we were run as `sh COMMAND' 20554 # in which case we are not to be found in the path. 20555 if test "x$as_myself" = x; then 20556 as_myself=$0 20557 fi 20558 if test ! -f "$as_myself"; then 20559 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 20560echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 20561 { (exit 1); exit 1; }; } 20562 fi 20563 case $CONFIG_SHELL in 20564 '') 20565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20566for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20567do 20568 IFS=$as_save_IFS 20569 test -z "$as_dir" && as_dir=. 20570 for as_base in sh bash ksh sh5; do 20571 case $as_dir in 20572 /*) 20573 if ("$as_dir/$as_base" -c ' 20574 as_lineno_1=$LINENO 20575 as_lineno_2=$LINENO 20576 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20577 test "x$as_lineno_1" != "x$as_lineno_2" && 20578 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 20579 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 20580 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 20581 CONFIG_SHELL=$as_dir/$as_base 20582 export CONFIG_SHELL 20583 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20584 fi;; 20585 esac 20586 done 20587done 20588;; 20589 esac 20590 20591 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20592 # uniformly replaced by the line number. The first 'sed' inserts a 20593 # line-number line before each line; the second 'sed' does the real 20594 # work. The second script uses 'N' to pair each line-number line 20595 # with the numbered line, and appends trailing '-' during 20596 # substitution so that $LINENO is not a special case at line end. 20597 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20598 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 20599 sed '=' <$as_myself | 20600 sed ' 20601 N 20602 s,$,-, 20603 : loop 20604 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 20605 t loop 20606 s,-$,, 20607 s,^['$as_cr_digits']*\n,, 20608 ' >$as_me.lineno && 20609 chmod +x $as_me.lineno || 20610 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 20611echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 20612 { (exit 1); exit 1; }; } 20613 20614 # Don't try to exec as it changes $[0], causing all sort of problems 20615 # (the dirname of $[0] is not the place where we might find the 20616 # original and so on. Autoconf is especially sensible to this). 20617 . ./$as_me.lineno 20618 # Exit status is that of the last command. 20619 exit 20620} 20621 20622 20623case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 20624 *c*,-n*) ECHO_N= ECHO_C=' 20625' ECHO_T=' ' ;; 20626 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 20627 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 20628esac 20629 20630if expr a : '\(a\)' >/dev/null 2>&1; then 20631 as_expr=expr 20632else 20633 as_expr=false 20634fi 20635 20636rm -f conf$$ conf$$.exe conf$$.file 20637echo >conf$$.file 20638if ln -s conf$$.file conf$$ 2>/dev/null; then 20639 # We could just check for DJGPP; but this test a) works b) is more generic 20640 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 20641 if test -f conf$$.exe; then 20642 # Don't use ln at all; we don't have any links 20643 as_ln_s='cp -p' 20644 else 20645 as_ln_s='ln -s' 20646 fi 20647elif ln conf$$.file conf$$ 2>/dev/null; then 20648 as_ln_s=ln 20649else 20650 as_ln_s='cp -p' 20651fi 20652rm -f conf$$ conf$$.exe conf$$.file 20653 20654if mkdir -p . 2>/dev/null; then 20655 as_mkdir_p=: 20656else 20657 test -d ./-p && rmdir ./-p 20658 as_mkdir_p=false 20659fi 20660 20661as_executable_p="test -f" 20662 20663# Sed expression to map a string onto a valid CPP name. 20664as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20665 20666# Sed expression to map a string onto a valid variable name. 20667as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20668 20669 20670# IFS 20671# We need space, tab and new line, in precisely that order. 20672as_nl=' 20673' 20674IFS=" $as_nl" 20675 20676# CDPATH. 20677$as_unset CDPATH 20678 20679exec 6>&1 20680 20681# Open the log real soon, to keep \$[0] and so on meaningful, and to 20682# report actual input values of CONFIG_FILES etc. instead of their 20683# values after options handling. Logging --version etc. is OK. 20684exec 5>>config.log 20685{ 20686 echo 20687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20688## Running $as_me. ## 20689_ASBOX 20690} >&5 20691cat >&5 <<_CSEOF 20692 20693This file was extended by oto $as_me 0.5, which was 20694generated by GNU Autoconf 2.59. Invocation command line was 20695 20696 CONFIG_FILES = $CONFIG_FILES 20697 CONFIG_HEADERS = $CONFIG_HEADERS 20698 CONFIG_LINKS = $CONFIG_LINKS 20699 CONFIG_COMMANDS = $CONFIG_COMMANDS 20700 $ $0 $@ 20701 20702_CSEOF 20703echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 20704echo >&5 20705_ACEOF 20706 20707# Files that config.status was made for. 20708if test -n "$ac_config_files"; then 20709 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 20710fi 20711 20712if test -n "$ac_config_headers"; then 20713 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 20714fi 20715 20716if test -n "$ac_config_links"; then 20717 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 20718fi 20719 20720if test -n "$ac_config_commands"; then 20721 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 20722fi 20723 20724cat >>$CONFIG_STATUS <<\_ACEOF 20725 20726ac_cs_usage="\ 20727\`$as_me' instantiates files from templates according to the 20728current configuration. 20729 20730Usage: $0 [OPTIONS] [FILE]... 20731 20732 -h, --help print this help, then exit 20733 -V, --version print version number, then exit 20734 -q, --quiet do not print progress messages 20735 -d, --debug don't remove temporary files 20736 --recheck update $as_me by reconfiguring in the same conditions 20737 --file=FILE[:TEMPLATE] 20738 instantiate the configuration file FILE 20739 --header=FILE[:TEMPLATE] 20740 instantiate the configuration header FILE 20741 20742Configuration files: 20743$config_files 20744 20745Configuration headers: 20746$config_headers 20747 20748Configuration commands: 20749$config_commands 20750 20751Report bugs to <bug-autoconf@gnu.org>." 20752_ACEOF 20753 20754cat >>$CONFIG_STATUS <<_ACEOF 20755ac_cs_version="\\ 20756oto config.status 0.5 20757configured by $0, generated by GNU Autoconf 2.59, 20758 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 20759 20760Copyright (C) 2003 Free Software Foundation, Inc. 20761This config.status script is free software; the Free Software Foundation 20762gives unlimited permission to copy, distribute and modify it." 20763srcdir=$srcdir 20764INSTALL="$INSTALL" 20765_ACEOF 20766 20767cat >>$CONFIG_STATUS <<\_ACEOF 20768# If no file are specified by the user, then we need to provide default 20769# value. By we need to know if files were specified by the user. 20770ac_need_defaults=: 20771while test $# != 0 20772do 20773 case $1 in 20774 --*=*) 20775 ac_option=`expr "x$1" : 'x\([^=]*\)='` 20776 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 20777 ac_shift=: 20778 ;; 20779 -*) 20780 ac_option=$1 20781 ac_optarg=$2 20782 ac_shift=shift 20783 ;; 20784 *) # This is not an option, so the user has probably given explicit 20785 # arguments. 20786 ac_option=$1 20787 ac_need_defaults=false;; 20788 esac 20789 20790 case $ac_option in 20791 # Handling of the options. 20792_ACEOF 20793cat >>$CONFIG_STATUS <<\_ACEOF 20794 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20795 ac_cs_recheck=: ;; 20796 --version | --vers* | -V ) 20797 echo "$ac_cs_version"; exit 0 ;; 20798 --he | --h) 20799 # Conflict between --help and --header 20800 { { echo "$as_me:$LINENO: error: ambiguous option: $1 20801Try \`$0 --help' for more information." >&5 20802echo "$as_me: error: ambiguous option: $1 20803Try \`$0 --help' for more information." >&2;} 20804 { (exit 1); exit 1; }; };; 20805 --help | --hel | -h ) 20806 echo "$ac_cs_usage"; exit 0 ;; 20807 --debug | --d* | -d ) 20808 debug=: ;; 20809 --file | --fil | --fi | --f ) 20810 $ac_shift 20811 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20812 ac_need_defaults=false;; 20813 --header | --heade | --head | --hea ) 20814 $ac_shift 20815 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20816 ac_need_defaults=false;; 20817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20818 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20819 ac_cs_silent=: ;; 20820 20821 # This is an error. 20822 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 20823Try \`$0 --help' for more information." >&5 20824echo "$as_me: error: unrecognized option: $1 20825Try \`$0 --help' for more information." >&2;} 20826 { (exit 1); exit 1; }; } ;; 20827 20828 *) ac_config_targets="$ac_config_targets $1" ;; 20829 20830 esac 20831 shift 20832done 20833 20834ac_configure_extra_args= 20835 20836if $ac_cs_silent; then 20837 exec 6>/dev/null 20838 ac_configure_extra_args="$ac_configure_extra_args --silent" 20839fi 20840 20841_ACEOF 20842cat >>$CONFIG_STATUS <<_ACEOF 20843if \$ac_cs_recheck; then 20844 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20845 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20846fi 20847 20848_ACEOF 20849 20850cat >>$CONFIG_STATUS <<_ACEOF 20851# 20852# INIT-COMMANDS section. 20853# 20854 20855AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20856 20857_ACEOF 20858 20859 20860 20861cat >>$CONFIG_STATUS <<\_ACEOF 20862for ac_config_target in $ac_config_targets 20863do 20864 case "$ac_config_target" in 20865 # Handling of arguments. 20866 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20867 "oto.spec" ) CONFIG_FILES="$CONFIG_FILES oto.spec" ;; 20868 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 20869 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20870 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20871 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20872 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20873echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20874 { (exit 1); exit 1; }; };; 20875 esac 20876done 20877 20878# If the user did not use the arguments to specify the items to instantiate, 20879# then the envvar interface is used. Set only those that are not. 20880# We use the long form for the default assignment because of an extremely 20881# bizarre bug on SunOS 4.1.3. 20882if $ac_need_defaults; then 20883 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20884 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20885 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20886fi 20887 20888# Have a temporary directory for convenience. Make it in the build tree 20889# simply because there is no reason to put it here, and in addition, 20890# creating and moving files from /tmp can sometimes cause problems. 20891# Create a temporary directory, and hook for its removal unless debugging. 20892$debug || 20893{ 20894 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20895 trap '{ (exit 1); exit 1; }' 1 2 13 15 20896} 20897 20898# Create a (secure) tmp directory for tmp files. 20899 20900{ 20901 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 20902 test -n "$tmp" && test -d "$tmp" 20903} || 20904{ 20905 tmp=./confstat$$-$RANDOM 20906 (umask 077 && mkdir $tmp) 20907} || 20908{ 20909 echo "$me: cannot create a temporary directory in ." >&2 20910 { (exit 1); exit 1; } 20911} 20912 20913_ACEOF 20914 20915cat >>$CONFIG_STATUS <<_ACEOF 20916 20917# 20918# CONFIG_FILES section. 20919# 20920 20921# No need to generate the scripts if there are no CONFIG_FILES. 20922# This happens for instance when ./config.status config.h 20923if test -n "\$CONFIG_FILES"; then 20924 # Protect against being on the right side of a sed subst in config.status. 20925 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20926 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20927s,@SHELL@,$SHELL,;t t 20928s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 20929s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 20930s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 20931s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 20932s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 20933s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 20934s,@exec_prefix@,$exec_prefix,;t t 20935s,@prefix@,$prefix,;t t 20936s,@program_transform_name@,$program_transform_name,;t t 20937s,@bindir@,$bindir,;t t 20938s,@sbindir@,$sbindir,;t t 20939s,@libexecdir@,$libexecdir,;t t 20940s,@datadir@,$datadir,;t t 20941s,@sysconfdir@,$sysconfdir,;t t 20942s,@sharedstatedir@,$sharedstatedir,;t t 20943s,@localstatedir@,$localstatedir,;t t 20944s,@libdir@,$libdir,;t t 20945s,@includedir@,$includedir,;t t 20946s,@oldincludedir@,$oldincludedir,;t t 20947s,@infodir@,$infodir,;t t 20948s,@mandir@,$mandir,;t t 20949s,@build_alias@,$build_alias,;t t 20950s,@host_alias@,$host_alias,;t t 20951s,@target_alias@,$target_alias,;t t 20952s,@DEFS@,$DEFS,;t t 20953s,@ECHO_C@,$ECHO_C,;t t 20954s,@ECHO_N@,$ECHO_N,;t t 20955s,@ECHO_T@,$ECHO_T,;t t 20956s,@LIBS@,$LIBS,;t t 20957s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 20958s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 20959s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20960s,@CYGPATH_W@,$CYGPATH_W,;t t 20961s,@PACKAGE@,$PACKAGE,;t t 20962s,@VERSION@,$VERSION,;t t 20963s,@ACLOCAL@,$ACLOCAL,;t t 20964s,@AUTOCONF@,$AUTOCONF,;t t 20965s,@AUTOMAKE@,$AUTOMAKE,;t t 20966s,@AUTOHEADER@,$AUTOHEADER,;t t 20967s,@MAKEINFO@,$MAKEINFO,;t t 20968s,@install_sh@,$install_sh,;t t 20969s,@STRIP@,$STRIP,;t t 20970s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 20971s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 20972s,@mkdir_p@,$mkdir_p,;t t 20973s,@AWK@,$AWK,;t t 20974s,@SET_MAKE@,$SET_MAKE,;t t 20975s,@am__leading_dot@,$am__leading_dot,;t t 20976s,@AMTAR@,$AMTAR,;t t 20977s,@am__tar@,$am__tar,;t t 20978s,@am__untar@,$am__untar,;t t 20979s,@CC@,$CC,;t t 20980s,@CFLAGS@,$CFLAGS,;t t 20981s,@LDFLAGS@,$LDFLAGS,;t t 20982s,@CPPFLAGS@,$CPPFLAGS,;t t 20983s,@ac_ct_CC@,$ac_ct_CC,;t t 20984s,@EXEEXT@,$EXEEXT,;t t 20985s,@OBJEXT@,$OBJEXT,;t t 20986s,@DEPDIR@,$DEPDIR,;t t 20987s,@am__include@,$am__include,;t t 20988s,@am__quote@,$am__quote,;t t 20989s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 20990s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 20991s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 20992s,@CCDEPMODE@,$CCDEPMODE,;t t 20993s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 20994s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 20995s,@build@,$build,;t t 20996s,@build_cpu@,$build_cpu,;t t 20997s,@build_vendor@,$build_vendor,;t t 20998s,@build_os@,$build_os,;t t 20999s,@host@,$host,;t t 21000s,@host_cpu@,$host_cpu,;t t 21001s,@host_vendor@,$host_vendor,;t t 21002s,@host_os@,$host_os,;t t 21003s,@EGREP@,$EGREP,;t t 21004s,@LN_S@,$LN_S,;t t 21005s,@ECHO@,$ECHO,;t t 21006s,@AR@,$AR,;t t 21007s,@ac_ct_AR@,$ac_ct_AR,;t t 21008s,@RANLIB@,$RANLIB,;t t 21009s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 21010s,@CPP@,$CPP,;t t 21011s,@CXX@,$CXX,;t t 21012s,@CXXFLAGS@,$CXXFLAGS,;t t 21013s,@ac_ct_CXX@,$ac_ct_CXX,;t t 21014s,@CXXDEPMODE@,$CXXDEPMODE,;t t 21015s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 21016s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 21017s,@CXXCPP@,$CXXCPP,;t t 21018s,@F77@,$F77,;t t 21019s,@FFLAGS@,$FFLAGS,;t t 21020s,@ac_ct_F77@,$ac_ct_F77,;t t 21021s,@LIBTOOL@,$LIBTOOL,;t t 21022s,@LIBOBJS@,$LIBOBJS,;t t 21023s,@LTLIBOBJS@,$LTLIBOBJS,;t t 21024CEOF 21025 21026_ACEOF 21027 21028 cat >>$CONFIG_STATUS <<\_ACEOF 21029 # Split the substitutions into bite-sized pieces for seds with 21030 # small command number limits, like on Digital OSF/1 and HP-UX. 21031 ac_max_sed_lines=48 21032 ac_sed_frag=1 # Number of current file. 21033 ac_beg=1 # First line for current file. 21034 ac_end=$ac_max_sed_lines # Line after last line for current file. 21035 ac_more_lines=: 21036 ac_sed_cmds= 21037 while $ac_more_lines; do 21038 if test $ac_beg -gt 1; then 21039 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21040 else 21041 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21042 fi 21043 if test ! -s $tmp/subs.frag; then 21044 ac_more_lines=false 21045 else 21046 # The purpose of the label and of the branching condition is to 21047 # speed up the sed processing (if there are no `@' at all, there 21048 # is no need to browse any of the substitutions). 21049 # These are the two extra sed commands mentioned above. 21050 (echo ':t 21051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 21052 if test -z "$ac_sed_cmds"; then 21053 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 21054 else 21055 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 21056 fi 21057 ac_sed_frag=`expr $ac_sed_frag + 1` 21058 ac_beg=$ac_end 21059 ac_end=`expr $ac_end + $ac_max_sed_lines` 21060 fi 21061 done 21062 if test -z "$ac_sed_cmds"; then 21063 ac_sed_cmds=cat 21064 fi 21065fi # test -n "$CONFIG_FILES" 21066 21067_ACEOF 21068cat >>$CONFIG_STATUS <<\_ACEOF 21069for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 21070 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21071 case $ac_file in 21072 - | *:- | *:-:* ) # input from stdin 21073 cat >$tmp/stdin 21074 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21075 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21076 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21077 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21078 * ) ac_file_in=$ac_file.in ;; 21079 esac 21080 21081 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21082 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21083$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21084 X"$ac_file" : 'X\(//\)[^/]' \| \ 21085 X"$ac_file" : 'X\(//\)$' \| \ 21086 X"$ac_file" : 'X\(/\)' \| \ 21087 . : '\(.\)' 2>/dev/null || 21088echo X"$ac_file" | 21089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21090 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21091 /^X\(\/\/\)$/{ s//\1/; q; } 21092 /^X\(\/\).*/{ s//\1/; q; } 21093 s/.*/./; q'` 21094 { if $as_mkdir_p; then 21095 mkdir -p "$ac_dir" 21096 else 21097 as_dir="$ac_dir" 21098 as_dirs= 21099 while test ! -d "$as_dir"; do 21100 as_dirs="$as_dir $as_dirs" 21101 as_dir=`(dirname "$as_dir") 2>/dev/null || 21102$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21103 X"$as_dir" : 'X\(//\)[^/]' \| \ 21104 X"$as_dir" : 'X\(//\)$' \| \ 21105 X"$as_dir" : 'X\(/\)' \| \ 21106 . : '\(.\)' 2>/dev/null || 21107echo X"$as_dir" | 21108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21109 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21110 /^X\(\/\/\)$/{ s//\1/; q; } 21111 /^X\(\/\).*/{ s//\1/; q; } 21112 s/.*/./; q'` 21113 done 21114 test ! -n "$as_dirs" || mkdir $as_dirs 21115 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21116echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21117 { (exit 1); exit 1; }; }; } 21118 21119 ac_builddir=. 21120 21121if test "$ac_dir" != .; then 21122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21123 # A "../" for each directory in $ac_dir_suffix. 21124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21125else 21126 ac_dir_suffix= ac_top_builddir= 21127fi 21128 21129case $srcdir in 21130 .) # No --srcdir option. We are building in place. 21131 ac_srcdir=. 21132 if test -z "$ac_top_builddir"; then 21133 ac_top_srcdir=. 21134 else 21135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21136 fi ;; 21137 [\\/]* | ?:[\\/]* ) # Absolute path. 21138 ac_srcdir=$srcdir$ac_dir_suffix; 21139 ac_top_srcdir=$srcdir ;; 21140 *) # Relative path. 21141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21142 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21143esac 21144 21145# Do not use `cd foo && pwd` to compute absolute paths, because 21146# the directories may not exist. 21147case `pwd` in 21148.) ac_abs_builddir="$ac_dir";; 21149*) 21150 case "$ac_dir" in 21151 .) ac_abs_builddir=`pwd`;; 21152 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21153 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21154 esac;; 21155esac 21156case $ac_abs_builddir in 21157.) ac_abs_top_builddir=${ac_top_builddir}.;; 21158*) 21159 case ${ac_top_builddir}. in 21160 .) ac_abs_top_builddir=$ac_abs_builddir;; 21161 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21162 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21163 esac;; 21164esac 21165case $ac_abs_builddir in 21166.) ac_abs_srcdir=$ac_srcdir;; 21167*) 21168 case $ac_srcdir in 21169 .) ac_abs_srcdir=$ac_abs_builddir;; 21170 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21171 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21172 esac;; 21173esac 21174case $ac_abs_builddir in 21175.) ac_abs_top_srcdir=$ac_top_srcdir;; 21176*) 21177 case $ac_top_srcdir in 21178 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21179 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21180 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21181 esac;; 21182esac 21183 21184 21185 case $INSTALL in 21186 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21187 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21188 esac 21189 21190 if test x"$ac_file" != x-; then 21191 { echo "$as_me:$LINENO: creating $ac_file" >&5 21192echo "$as_me: creating $ac_file" >&6;} 21193 rm -f "$ac_file" 21194 fi 21195 # Let's still pretend it is `configure' which instantiates (i.e., don't 21196 # use $as_me), people would be surprised to read: 21197 # /* config.h. Generated by config.status. */ 21198 if test x"$ac_file" = x-; then 21199 configure_input= 21200 else 21201 configure_input="$ac_file. " 21202 fi 21203 configure_input=$configure_input"Generated from `echo $ac_file_in | 21204 sed 's,.*/,,'` by configure." 21205 21206 # First look for the input files in the build tree, otherwise in the 21207 # src tree. 21208 ac_file_inputs=`IFS=: 21209 for f in $ac_file_in; do 21210 case $f in 21211 -) echo $tmp/stdin ;; 21212 [\\/$]*) 21213 # Absolute (can't be DOS-style, as IFS=:) 21214 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21215echo "$as_me: error: cannot find input file: $f" >&2;} 21216 { (exit 1); exit 1; }; } 21217 echo "$f";; 21218 *) # Relative 21219 if test -f "$f"; then 21220 # Build tree 21221 echo "$f" 21222 elif test -f "$srcdir/$f"; then 21223 # Source tree 21224 echo "$srcdir/$f" 21225 else 21226 # /dev/null tree 21227 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21228echo "$as_me: error: cannot find input file: $f" >&2;} 21229 { (exit 1); exit 1; }; } 21230 fi;; 21231 esac 21232 done` || { (exit 1); exit 1; } 21233_ACEOF 21234cat >>$CONFIG_STATUS <<_ACEOF 21235 sed "$ac_vpsub 21236$extrasub 21237_ACEOF 21238cat >>$CONFIG_STATUS <<\_ACEOF 21239:t 21240/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21241s,@configure_input@,$configure_input,;t t 21242s,@srcdir@,$ac_srcdir,;t t 21243s,@abs_srcdir@,$ac_abs_srcdir,;t t 21244s,@top_srcdir@,$ac_top_srcdir,;t t 21245s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21246s,@builddir@,$ac_builddir,;t t 21247s,@abs_builddir@,$ac_abs_builddir,;t t 21248s,@top_builddir@,$ac_top_builddir,;t t 21249s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21250s,@INSTALL@,$ac_INSTALL,;t t 21251" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21252 rm -f $tmp/stdin 21253 if test x"$ac_file" != x-; then 21254 mv $tmp/out $ac_file 21255 else 21256 cat $tmp/out 21257 rm -f $tmp/out 21258 fi 21259 21260done 21261_ACEOF 21262cat >>$CONFIG_STATUS <<\_ACEOF 21263 21264# 21265# CONFIG_HEADER section. 21266# 21267 21268# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 21269# NAME is the cpp macro being defined and VALUE is the value it is being given. 21270# 21271# ac_d sets the value in "#define NAME VALUE" lines. 21272ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 21273ac_dB='[ ].*$,\1#\2' 21274ac_dC=' ' 21275ac_dD=',;t' 21276# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 21277ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 21278ac_uB='$,\1#\2define\3' 21279ac_uC=' ' 21280ac_uD=',;t' 21281 21282for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 21283 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21284 case $ac_file in 21285 - | *:- | *:-:* ) # input from stdin 21286 cat >$tmp/stdin 21287 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21288 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21289 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21290 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21291 * ) ac_file_in=$ac_file.in ;; 21292 esac 21293 21294 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 21295echo "$as_me: creating $ac_file" >&6;} 21296 21297 # First look for the input files in the build tree, otherwise in the 21298 # src tree. 21299 ac_file_inputs=`IFS=: 21300 for f in $ac_file_in; do 21301 case $f in 21302 -) echo $tmp/stdin ;; 21303 [\\/$]*) 21304 # Absolute (can't be DOS-style, as IFS=:) 21305 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21306echo "$as_me: error: cannot find input file: $f" >&2;} 21307 { (exit 1); exit 1; }; } 21308 # Do quote $f, to prevent DOS paths from being IFS'd. 21309 echo "$f";; 21310 *) # Relative 21311 if test -f "$f"; then 21312 # Build tree 21313 echo "$f" 21314 elif test -f "$srcdir/$f"; then 21315 # Source tree 21316 echo "$srcdir/$f" 21317 else 21318 # /dev/null tree 21319 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21320echo "$as_me: error: cannot find input file: $f" >&2;} 21321 { (exit 1); exit 1; }; } 21322 fi;; 21323 esac 21324 done` || { (exit 1); exit 1; } 21325 # Remove the trailing spaces. 21326 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 21327 21328_ACEOF 21329 21330# Transform confdefs.h into two sed scripts, `conftest.defines' and 21331# `conftest.undefs', that substitutes the proper values into 21332# config.h.in to produce config.h. The first handles `#define' 21333# templates, and the second `#undef' templates. 21334# And first: Protect against being on the right side of a sed subst in 21335# config.status. Protect against being in an unquoted here document 21336# in config.status. 21337rm -f conftest.defines conftest.undefs 21338# Using a here document instead of a string reduces the quoting nightmare. 21339# Putting comments in sed scripts is not portable. 21340# 21341# `end' is used to avoid that the second main sed command (meant for 21342# 0-ary CPP macros) applies to n-ary macro definitions. 21343# See the Autoconf documentation for `clear'. 21344cat >confdef2sed.sed <<\_ACEOF 21345s/[\\&,]/\\&/g 21346s,[\\$`],\\&,g 21347t clear 21348: clear 21349s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 21350t end 21351s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 21352: end 21353_ACEOF 21354# If some macros were called several times there might be several times 21355# the same #defines, which is useless. Nevertheless, we may not want to 21356# sort them, since we want the *last* AC-DEFINE to be honored. 21357uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 21358sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 21359rm -f confdef2sed.sed 21360 21361# This sed command replaces #undef with comments. This is necessary, for 21362# example, in the case of _POSIX_SOURCE, which is predefined and required 21363# on some systems where configure will not decide to define it. 21364cat >>conftest.undefs <<\_ACEOF 21365s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 21366_ACEOF 21367 21368# Break up conftest.defines because some shells have a limit on the size 21369# of here documents, and old seds have small limits too (100 cmds). 21370echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 21371echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 21372echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 21373echo ' :' >>$CONFIG_STATUS 21374rm -f conftest.tail 21375while grep . conftest.defines >/dev/null 21376do 21377 # Write a limited-size here document to $tmp/defines.sed. 21378 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 21379 # Speed up: don't consider the non `#define' lines. 21380 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 21381 # Work around the forget-to-reset-the-flag bug. 21382 echo 't clr' >>$CONFIG_STATUS 21383 echo ': clr' >>$CONFIG_STATUS 21384 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 21385 echo 'CEOF 21386 sed -f $tmp/defines.sed $tmp/in >$tmp/out 21387 rm -f $tmp/in 21388 mv $tmp/out $tmp/in 21389' >>$CONFIG_STATUS 21390 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 21391 rm -f conftest.defines 21392 mv conftest.tail conftest.defines 21393done 21394rm -f conftest.defines 21395echo ' fi # grep' >>$CONFIG_STATUS 21396echo >>$CONFIG_STATUS 21397 21398# Break up conftest.undefs because some shells have a limit on the size 21399# of here documents, and old seds have small limits too (100 cmds). 21400echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 21401rm -f conftest.tail 21402while grep . conftest.undefs >/dev/null 21403do 21404 # Write a limited-size here document to $tmp/undefs.sed. 21405 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 21406 # Speed up: don't consider the non `#undef' 21407 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 21408 # Work around the forget-to-reset-the-flag bug. 21409 echo 't clr' >>$CONFIG_STATUS 21410 echo ': clr' >>$CONFIG_STATUS 21411 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 21412 echo 'CEOF 21413 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 21414 rm -f $tmp/in 21415 mv $tmp/out $tmp/in 21416' >>$CONFIG_STATUS 21417 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 21418 rm -f conftest.undefs 21419 mv conftest.tail conftest.undefs 21420done 21421rm -f conftest.undefs 21422 21423cat >>$CONFIG_STATUS <<\_ACEOF 21424 # Let's still pretend it is `configure' which instantiates (i.e., don't 21425 # use $as_me), people would be surprised to read: 21426 # /* config.h. Generated by config.status. */ 21427 if test x"$ac_file" = x-; then 21428 echo "/* Generated by configure. */" >$tmp/config.h 21429 else 21430 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 21431 fi 21432 cat $tmp/in >>$tmp/config.h 21433 rm -f $tmp/in 21434 if test x"$ac_file" != x-; then 21435 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 21436 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21437echo "$as_me: $ac_file is unchanged" >&6;} 21438 else 21439 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21440$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21441 X"$ac_file" : 'X\(//\)[^/]' \| \ 21442 X"$ac_file" : 'X\(//\)$' \| \ 21443 X"$ac_file" : 'X\(/\)' \| \ 21444 . : '\(.\)' 2>/dev/null || 21445echo X"$ac_file" | 21446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21447 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21448 /^X\(\/\/\)$/{ s//\1/; q; } 21449 /^X\(\/\).*/{ s//\1/; q; } 21450 s/.*/./; q'` 21451 { if $as_mkdir_p; then 21452 mkdir -p "$ac_dir" 21453 else 21454 as_dir="$ac_dir" 21455 as_dirs= 21456 while test ! -d "$as_dir"; do 21457 as_dirs="$as_dir $as_dirs" 21458 as_dir=`(dirname "$as_dir") 2>/dev/null || 21459$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21460 X"$as_dir" : 'X\(//\)[^/]' \| \ 21461 X"$as_dir" : 'X\(//\)$' \| \ 21462 X"$as_dir" : 'X\(/\)' \| \ 21463 . : '\(.\)' 2>/dev/null || 21464echo X"$as_dir" | 21465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21466 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21467 /^X\(\/\/\)$/{ s//\1/; q; } 21468 /^X\(\/\).*/{ s//\1/; q; } 21469 s/.*/./; q'` 21470 done 21471 test ! -n "$as_dirs" || mkdir $as_dirs 21472 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21473echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21474 { (exit 1); exit 1; }; }; } 21475 21476 rm -f $ac_file 21477 mv $tmp/config.h $ac_file 21478 fi 21479 else 21480 cat $tmp/config.h 21481 rm -f $tmp/config.h 21482 fi 21483# Compute $ac_file's index in $config_headers. 21484_am_stamp_count=1 21485for _am_header in $config_headers :; do 21486 case $_am_header in 21487 $ac_file | $ac_file:* ) 21488 break ;; 21489 * ) 21490 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21491 esac 21492done 21493echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 21494$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21495 X$ac_file : 'X\(//\)[^/]' \| \ 21496 X$ac_file : 'X\(//\)$' \| \ 21497 X$ac_file : 'X\(/\)' \| \ 21498 . : '\(.\)' 2>/dev/null || 21499echo X$ac_file | 21500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21501 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21502 /^X\(\/\/\)$/{ s//\1/; q; } 21503 /^X\(\/\).*/{ s//\1/; q; } 21504 s/.*/./; q'`/stamp-h$_am_stamp_count 21505done 21506_ACEOF 21507cat >>$CONFIG_STATUS <<\_ACEOF 21508 21509# 21510# CONFIG_COMMANDS section. 21511# 21512for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 21513 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 21514 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 21515 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 21516$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21517 X"$ac_dest" : 'X\(//\)[^/]' \| \ 21518 X"$ac_dest" : 'X\(//\)$' \| \ 21519 X"$ac_dest" : 'X\(/\)' \| \ 21520 . : '\(.\)' 2>/dev/null || 21521echo X"$ac_dest" | 21522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21523 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21524 /^X\(\/\/\)$/{ s//\1/; q; } 21525 /^X\(\/\).*/{ s//\1/; q; } 21526 s/.*/./; q'` 21527 { if $as_mkdir_p; then 21528 mkdir -p "$ac_dir" 21529 else 21530 as_dir="$ac_dir" 21531 as_dirs= 21532 while test ! -d "$as_dir"; do 21533 as_dirs="$as_dir $as_dirs" 21534 as_dir=`(dirname "$as_dir") 2>/dev/null || 21535$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21536 X"$as_dir" : 'X\(//\)[^/]' \| \ 21537 X"$as_dir" : 'X\(//\)$' \| \ 21538 X"$as_dir" : 'X\(/\)' \| \ 21539 . : '\(.\)' 2>/dev/null || 21540echo X"$as_dir" | 21541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21542 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21543 /^X\(\/\/\)$/{ s//\1/; q; } 21544 /^X\(\/\).*/{ s//\1/; q; } 21545 s/.*/./; q'` 21546 done 21547 test ! -n "$as_dirs" || mkdir $as_dirs 21548 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21549echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21550 { (exit 1); exit 1; }; }; } 21551 21552 ac_builddir=. 21553 21554if test "$ac_dir" != .; then 21555 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21556 # A "../" for each directory in $ac_dir_suffix. 21557 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21558else 21559 ac_dir_suffix= ac_top_builddir= 21560fi 21561 21562case $srcdir in 21563 .) # No --srcdir option. We are building in place. 21564 ac_srcdir=. 21565 if test -z "$ac_top_builddir"; then 21566 ac_top_srcdir=. 21567 else 21568 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21569 fi ;; 21570 [\\/]* | ?:[\\/]* ) # Absolute path. 21571 ac_srcdir=$srcdir$ac_dir_suffix; 21572 ac_top_srcdir=$srcdir ;; 21573 *) # Relative path. 21574 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21575 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21576esac 21577 21578# Do not use `cd foo && pwd` to compute absolute paths, because 21579# the directories may not exist. 21580case `pwd` in 21581.) ac_abs_builddir="$ac_dir";; 21582*) 21583 case "$ac_dir" in 21584 .) ac_abs_builddir=`pwd`;; 21585 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21586 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21587 esac;; 21588esac 21589case $ac_abs_builddir in 21590.) ac_abs_top_builddir=${ac_top_builddir}.;; 21591*) 21592 case ${ac_top_builddir}. in 21593 .) ac_abs_top_builddir=$ac_abs_builddir;; 21594 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21595 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21596 esac;; 21597esac 21598case $ac_abs_builddir in 21599.) ac_abs_srcdir=$ac_srcdir;; 21600*) 21601 case $ac_srcdir in 21602 .) ac_abs_srcdir=$ac_abs_builddir;; 21603 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21604 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21605 esac;; 21606esac 21607case $ac_abs_builddir in 21608.) ac_abs_top_srcdir=$ac_top_srcdir;; 21609*) 21610 case $ac_top_srcdir in 21611 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21612 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21613 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21614 esac;; 21615esac 21616 21617 21618 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 21619echo "$as_me: executing $ac_dest commands" >&6;} 21620 case $ac_dest in 21621 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21622 # Strip MF so we end up with the name of the file. 21623 mf=`echo "$mf" | sed -e 's/:.*$//'` 21624 # Check whether this is an Automake generated Makefile or not. 21625 # We used to match only the files named `Makefile.in', but 21626 # some people rename them; so instead we look at the file content. 21627 # Grep'ing the first line is not enough: some people post-process 21628 # each Makefile.in and add a new line on top of each file to say so. 21629 # So let's grep whole file. 21630 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21631 dirpart=`(dirname "$mf") 2>/dev/null || 21632$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21633 X"$mf" : 'X\(//\)[^/]' \| \ 21634 X"$mf" : 'X\(//\)$' \| \ 21635 X"$mf" : 'X\(/\)' \| \ 21636 . : '\(.\)' 2>/dev/null || 21637echo X"$mf" | 21638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21639 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21640 /^X\(\/\/\)$/{ s//\1/; q; } 21641 /^X\(\/\).*/{ s//\1/; q; } 21642 s/.*/./; q'` 21643 else 21644 continue 21645 fi 21646 # Extract the definition of DEPDIR, am__include, and am__quote 21647 # from the Makefile without running `make'. 21648 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21649 test -z "$DEPDIR" && continue 21650 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21651 test -z "am__include" && continue 21652 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21653 # When using ansi2knr, U may be empty or an underscore; expand it 21654 U=`sed -n 's/^U = //p' < "$mf"` 21655 # Find all dependency output files, they are included files with 21656 # $(DEPDIR) in their names. We invoke sed twice because it is the 21657 # simplest approach to changing $(DEPDIR) to its actual value in the 21658 # expansion. 21659 for file in `sed -n " 21660 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21661 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21662 # Make sure the directory exists. 21663 test -f "$dirpart/$file" && continue 21664 fdir=`(dirname "$file") 2>/dev/null || 21665$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21666 X"$file" : 'X\(//\)[^/]' \| \ 21667 X"$file" : 'X\(//\)$' \| \ 21668 X"$file" : 'X\(/\)' \| \ 21669 . : '\(.\)' 2>/dev/null || 21670echo X"$file" | 21671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21672 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21673 /^X\(\/\/\)$/{ s//\1/; q; } 21674 /^X\(\/\).*/{ s//\1/; q; } 21675 s/.*/./; q'` 21676 { if $as_mkdir_p; then 21677 mkdir -p $dirpart/$fdir 21678 else 21679 as_dir=$dirpart/$fdir 21680 as_dirs= 21681 while test ! -d "$as_dir"; do 21682 as_dirs="$as_dir $as_dirs" 21683 as_dir=`(dirname "$as_dir") 2>/dev/null || 21684$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21685 X"$as_dir" : 'X\(//\)[^/]' \| \ 21686 X"$as_dir" : 'X\(//\)$' \| \ 21687 X"$as_dir" : 'X\(/\)' \| \ 21688 . : '\(.\)' 2>/dev/null || 21689echo X"$as_dir" | 21690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21691 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21692 /^X\(\/\/\)$/{ s//\1/; q; } 21693 /^X\(\/\).*/{ s//\1/; q; } 21694 s/.*/./; q'` 21695 done 21696 test ! -n "$as_dirs" || mkdir $as_dirs 21697 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 21698echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 21699 { (exit 1); exit 1; }; }; } 21700 21701 # echo "creating $dirpart/$file" 21702 echo '# dummy' > "$dirpart/$file" 21703 done 21704done 21705 ;; 21706 esac 21707done 21708_ACEOF 21709 21710cat >>$CONFIG_STATUS <<\_ACEOF 21711 21712{ (exit 0); exit 0; } 21713_ACEOF 21714chmod +x $CONFIG_STATUS 21715ac_clean_files=$ac_clean_files_save 21716 21717 21718# configure is writing to config.log, and then calls config.status. 21719# config.status does its own redirection, appending to config.log. 21720# Unfortunately, on DOS this fails, as config.log is still kept open 21721# by configure, so config.status won't be able to write to it; its 21722# output is simply discarded. So we exec the FD to /dev/null, 21723# effectively closing config.log, so it can be properly (re)opened and 21724# appended to by config.status. When coming back to configure, we 21725# need to make the FD available again. 21726if test "$no_create" != yes; then 21727 ac_cs_success=: 21728 ac_config_status_args= 21729 test "$silent" = yes && 21730 ac_config_status_args="$ac_config_status_args --quiet" 21731 exec 5>/dev/null 21732 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21733 exec 5>>config.log 21734 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21735 # would make configure fail if this is the last instruction. 21736 $ac_cs_success || { (exit 1); exit 1; } 21737fi 21738 21739